diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 0ee5467499c..4950b345720 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -9,5 +9,5 @@ "yii2-adapter/**/*.scss": ["stylelint --fix --allow-empty-input -c ./yii2-adapter/.stylelintrc.json"], "!(yii2-adapter)/**/*.scss": ["stylelint --fix --allow-empty-input"], "!(yii2-adapter)/**/*.{html,json,css,scss}": "prettier --ignore-unknown --write", - "resources/js/**/*.{ts,vue}": ["eslint"] + "resources/js/**/*.{ts,vue}": ["eslint", "vue-tsc --noEmit"] } diff --git a/CHANGELOG.md b/CHANGELOG.md index ec42964373d..ff2206006a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ - Fixed a bug where Single sections had Max Authors settings. ([#19001](https://github.com/craftcms/cms/pull/19001)) - Fixed a bug where Channel and Structure sections didn’t have Max Authors settings. ([#19001](https://github.com/craftcms/cms/pull/19001)) - Fixed a bug where sections’ Min Authors settings were defaulting to `1` when blank. ([#19001](https://github.com/craftcms/cms/pull/19001)) +- Fixed a JavaScript error that could occur in the Control Panel when a custom element was registered more than once. +- Fixed a bug where Control Panel action menu items could trigger their action twice when clicked. +- Fixed a bug where legacy Control Panel JavaScript wasn’t loaded and initialized on all Control Panel pages. ## 6.0.0-alpha.5 - 2026-05-27 diff --git a/packages/craftcms-cp/package.json b/packages/craftcms-cp/package.json index 0b2e49d24aa..2b869da7015 100644 --- a/packages/craftcms-cp/package.json +++ b/packages/craftcms-cp/package.json @@ -21,8 +21,8 @@ "dev": "node ./scripts/build.js --develop", "prebuild": "npm run format", "build": "node ./scripts/build.js", - "format": "npx prettier --write .", - "check:format": "prettier --check .", + "format": "npx prettier --write ./src", + "check:format": "prettier --check ./src", "check:exports": "attw --pack .", "check:types": "tsc --noEmit", "storybook": "storybook dev -p 6006", diff --git a/packages/craftcms-legacy/cp/src/js/CP.js b/packages/craftcms-legacy/cp/src/js/CP.js index 3fee97996fe..7387335a166 100644 --- a/packages/craftcms-legacy/cp/src/js/CP.js +++ b/packages/craftcms-legacy/cp/src/js/CP.js @@ -1,4 +1,8 @@ -import {QueueService} from '@craftcms/cp'; +// Import from the deep service module rather than the package root. The root +// entry (`@craftcms/cp`) side-effect-registers WebAwesome components (e.g. +// `wa-icon`); pulling that into this separately-webpacked legacy bundle causes +// a duplicate custom-element registration when it loads alongside the Vite app. +import {QueueService} from '@craftcms/cp/services/Queue.ts.mjs'; /** global: Craft */ /** global: Garnish */ /** global: $ */ @@ -1322,7 +1326,7 @@ Craft.CP = Garnish.Base.extend( if (Array.isArray(alerts) && alerts.length) { this.$alerts = $('
yes/no/true/false/on/off/0/1`})},null,8,E)]),_:1},8,[`label`,`modelValue`,`error`,`disabled`,`options`]),r(g,{label:o(e)(`Retry Duration`),id:`retry-duration`,name:`retryDuration`,modelValue:o(O).retryDuration,"onUpdate:modelValue":s[2]||=e=>o(O).retryDuration=e,error:h.value?.retryDuration,inputmode:`numeric`,maxlength:`4`,disabled:o(x)},{default:i(()=>[u(`div`,{slot:`help-text`,innerHTML:o(e)(`The number of seconds that the Retry-After HTTP header should be set to for 503 responses when the system is offline.`)},null,8,D)]),_:1},8,[`label`,`modelValue`,`error`,`disabled`]),r(v,{label:o(e)(`Time Zone`),id:`time-zone`,name:`timeZone`,modelValue:o(O).timeZone,"onUpdate:modelValue":s[3]||=e=>o(O).timeZone=e,error:h.value?.timeZone,disabled:o(x),"show-all-on-empty":``,options:t.timezoneOptions},{item:i(({item:e})=>[d(l(e.label)+l(e.data?.hint?` — ${e.data.hint}`:``),1)]),after:i(()=>[...s[4]||=[u(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},[d(` This can be set to an environment variable with a value of a `),u(`a`,{href:`https://www.php.net/manual/en/timezones.php`,rel:`noopener`,target:`_blank`},`supported time zone`),d(`. `)],-1)]]),_:1},8,[`label`,`modelValue`,`error`,`disabled`,`options`])])]),_:1})]),_:1},8,[`title`,`form`,`onSave`]))}}),[[`__scopeId`,`data-v-743087f9`]]);export{O as default};
\ No newline at end of file
+import{l as e}from"./nav-item-CDlDuMpT-DENemU4x.js";import"./cp-C98QgSGF.js";import{E as t,R as n,T as r,X as i,_ as a,dt as o,s,t as c,tt as l,v as u,w as d,y as f}from"./_plugin-vue_export-helper-Cuhevpfm.js";import{t as p}from"./Pane-DrGNHYDe.js";import{i as m,n as h}from"./wayfinder-BVzzwyvd.js";import{t as g}from"./CraftInput-5KetvMVv.js";import{t as _}from"./AppLayout-CjKT-72e.js";import{t as v}from"./CraftCombobox-D1ggFDh2.js";import{t as y}from"./useSettingsSave-D9MlzG7m.js";import{t as b}from"./transformBooleanOptions-BLsz-PU9.js";var x=e=>({url:x.url(e),method:`get`});x.definition={methods:[`get`,`head`],url:`/admin/settings/general`},x.url=e=>x.definition.url+h(e),x.get=e=>({url:x.url(e),method:`get`}),x.head=e=>({url:x.url(e),method:`head`});var S=e=>({url:S.url(e),method:`post`});S.definition={methods:[`post`],url:`/admin/settings/general`},S.url=e=>S.definition.url+h(e),S.post=e=>({url:S.url(e),method:`post`});var C={class:`grid gap-3`},w={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},T={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},E=[`innerHTML`],D=[`innerHTML`],O=c(t({__name:`General`,props:{system:{},nameSuggestions:{default:()=>[]},timezoneOptions:{default:()=>[]},systemStatusOptions:{default:()=>[]},flash:{},errors:{}},setup(t){let c=t,h=a(()=>c.errors),{readOnly:x}=m(),O=s({name:c.system.name??``,live:c.system.live,retryDuration:c.system.retryDuration,timeZone:c.system.timeZone}),{save:k}=y(O,S),A=a(()=>b(c.systemStatusOptions,{trueLabel:e(`Online`),falseLabel:e(`Offline`)})),j=a(()=>[{value:`1`,label:e(`Online`),data:{indicator:{variant:`success`}}},{value:`0`,label:e(`Offline`),data:{indicator:{variant:`empty`}}},...A.value]);return(a,s)=>(n(),f(_,{title:o(e)(`General Settings`),form:o(O),onSave:o(k)},{default:i(()=>[r(p,{appearance:`raised`},{default:i(()=>[u(`div`,C,[r(v,{label:o(e)(`System Name`),id:`name`,name:`name`,modelValue:o(O).name,"onUpdate:modelValue":s[0]||=e=>o(O).name=e,"has-feedback-for":h.value?.name?`error`:``,disabled:o(x),"require-option-match":!1,"show-all-on-empty":``,options:t.nameSuggestions,error:h.value?.name},{after:i(()=>[u(`craft-callout`,w,[d(l(o(e)(`This can begin with an environment variable.`))+` `,1),u(`a`,T,l(o(e)(`Learn more`)),1)])]),_:1},8,[`label`,`modelValue`,`has-feedback-for`,`disabled`,`options`,`error`]),r(v,{label:o(e)(`System Status`),id:`live`,name:`live`,modelValue:o(O).live,"onUpdate:modelValue":s[1]||=e=>o(O).live=e,error:h.value?.live,disabled:o(x),"show-all-on-empty":``,options:j.value},{after:i(()=>[u(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:o(e)(`This can be set to an environment variable with a boolean value ({examples})`,{examples:`yes/no/true/false/on/off/0/1`})},null,8,E)]),_:1},8,[`label`,`modelValue`,`error`,`disabled`,`options`]),r(g,{label:o(e)(`Retry Duration`),id:`retry-duration`,name:`retryDuration`,modelValue:o(O).retryDuration,"onUpdate:modelValue":s[2]||=e=>o(O).retryDuration=e,error:h.value?.retryDuration,inputmode:`numeric`,maxlength:`4`,disabled:o(x)},{default:i(()=>[u(`div`,{slot:`help-text`,innerHTML:o(e)(`The number of seconds that the Retry-After HTTP header should be set to for 503 responses when the system is offline.`)},null,8,D)]),_:1},8,[`label`,`modelValue`,`error`,`disabled`]),r(v,{label:o(e)(`Time Zone`),id:`time-zone`,name:`timeZone`,modelValue:o(O).timeZone,"onUpdate:modelValue":s[3]||=e=>o(O).timeZone=e,error:h.value?.timeZone,disabled:o(x),"show-all-on-empty":``,options:t.timezoneOptions},{item:i(({item:e})=>[d(l(e.label)+l(e.data?.hint?` — ${e.data.hint}`:``),1)]),after:i(()=>[...s[4]||=[u(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},[d(` This can be set to an environment variable with a value of a `),u(`a`,{href:`https://www.php.net/manual/en/timezones.php`,rel:`noopener`,target:`_blank`},`supported time zone`),d(`. `)],-1)]]),_:1},8,[`label`,`modelValue`,`error`,`disabled`,`options`])])]),_:1})]),_:1},8,[`title`,`form`,`onSave`]))}}),[[`__scopeId`,`data-v-743087f9`]]);export{O as default};
\ No newline at end of file
diff --git a/resources/build/assets/ImageTransforms-Ax093kIy.js b/resources/build/assets/ImageTransforms-Ax093kIy.js
new file mode 100644
index 00000000000..075efd1c4a8
--- /dev/null
+++ b/resources/build/assets/ImageTransforms-Ax093kIy.js
@@ -0,0 +1 @@
+import{l as e}from"./nav-item-CDlDuMpT-DENemU4x.js";import{r as t}from"./cp-C98QgSGF.js";import{B as n,E as r,R as i,T as a,X as o,_ as s,dt as c,ft as l,k as u,m as d,ot as f,tt as p,v as m,w as h,x as g,y as _}from"./_plugin-vue_export-helper-Cuhevpfm.js";import{l as v,n as y,s as b,t as x}from"./AdminTable-C5dgSydv.js";import{s as S}from"./InlineFlash-BCEBB6cj.js";import{t as C}from"./DeleteButton-3fbwp8kr.js";import{t as w}from"./createCraftColumnHelper-DUzcpR9W.js";import{t as T}from"./IndexLayout-6yHrM6uc.js";import{c as E,i as D,o as O,s as k}from"./VolumesController-ChaxPTtl.js";var A=r({__name:`ImageTransforms`,props:{transforms:{}},setup(r){function A(t){confirm(e(`Are you sure you want to delete the “{name}” transform?`,{name:t.name}))&&l.delete(k(t.id))}let j=r,M=f({name:!0,handle:!0}),N=w(),P=f([N.link(`name`,{header:e(`Name`)}),N.handle(`handle`),N.accessor(`mode`,{header:e(`Mode`)}),N.display({id:`dimensions`,header:e(`Dimensions`),cell:({row:e})=>`${e.original.width??`Auto`} x ${e.original.height??`Auto`}`}),N.accessor(`interlace`,{header:e(`Interlace`),cell:({row:e})=>e.original.interlace?t(e.original.interlace):`None`}),N.accessor(`format`,{header:e(`Format`),cell:({row:e})=>e.original.format?t(e.original.format):`Auto`}),N.actions(({row:e})=>[u(C,{onClick:()=>A(e.original)})])]),F=b({get data(){return j.transforms},get columns(){return P.value},enableSorting:!1,getCoreRowModel:v(),state:{get columnVisibility(){return M.value}}}),I=s(()=>({volumes:{label:e(`Volumes`),url:D().url},transforms:{label:e(`Image Transforms`),url:E().url,active:!0}}));return(t,r)=>(i(),_(T,null,{actions:o(()=>[a(S,{appearance:`button`,inertia:!1,href:c(O)().url,variant:`primary`,icon:`plus`},{default:o(()=>[h(p(c(e)(`New image transform`)),1)]),_:1},8,[`href`])]),"interior-nav":o(()=>[m(`craft-nav-list`,null,[(i(!0),g(d,null,n(I.value,(e,t)=>(i(),_(S,{key:t,as:`craft-nav-item`,active:e.active??!1,href:e.url,block:``,flush:``,inertia:e.inertia??!0},{default:o(()=>[h(p(e.label),1)]),_:2},1032,[`active`,`href`,`inertia`]))),128))])]),default:o(()=>[a(x,{table:c(F)},{"empty-row":o(()=>[a(y,{label:c(e)(`No image transforms exist yet.`),icon:`image`},{default:o(()=>[a(S,{appearance:`button`,inertia:!1,href:c(O)().url,variant:`default`,icon:`plus`},{default:o(()=>[h(p(c(e)(`New image transform`)),1)]),_:1},8,[`href`])]),_:1},8,[`label`])]),_:1},8,[`table`])]),_:1}))}});export{A as default};
\ No newline at end of file
diff --git a/resources/build/assets/ImageTransforms-Cx-vC0NT.js b/resources/build/assets/ImageTransforms-Cx-vC0NT.js
deleted file mode 100644
index 5ab966fac9d..00000000000
--- a/resources/build/assets/ImageTransforms-Cx-vC0NT.js
+++ /dev/null
@@ -1 +0,0 @@
-import{r as e}from"./cp-DdGjhisW.js";import{l as t}from"./nav-item-ixoxjtrg-BwccWdU9.js";import{B as n,E as r,R as i,T as a,X as o,_ as s,dt as c,ft as l,k as u,m as d,ot as f,tt as p,v as m,w as h,x as g,y as _}from"./_plugin-vue_export-helper-B5xWb4v9.js";import{l as v,n as y,s as b,t as x}from"./AdminTable-fmWBDoLo.js";import{s as S}from"./InlineFlash-CASXlxQJ.js";import{t as C}from"./DeleteButton-B6fT-tEn.js";import{t as w}from"./createCraftColumnHelper-DmeFY1c4.js";import{t as T}from"./IndexLayout-pvGJ0smu.js";import{c as E,i as D,o as O,s as k}from"./VolumesController-RT9K4v-C.js";var A=r({__name:`ImageTransforms`,props:{transforms:{}},setup(r){function A(e){confirm(t(`Are you sure you want to delete the “{name}” transform?`,{name:e.name}))&&l.delete(k(e.id))}let j=r,M=f({name:!0,handle:!0}),N=w(),P=f([N.link(`name`,{header:t(`Name`)}),N.handle(`handle`),N.accessor(`mode`,{header:t(`Mode`)}),N.display({id:`dimensions`,header:t(`Dimensions`),cell:({row:e})=>`${e.original.width??`Auto`} x ${e.original.height??`Auto`}`}),N.accessor(`interlace`,{header:t(`Interlace`),cell:({row:t})=>t.original.interlace?e(t.original.interlace):`None`}),N.accessor(`format`,{header:t(`Format`),cell:({row:t})=>t.original.format?e(t.original.format):`Auto`}),N.actions(({row:e})=>[u(C,{onClick:()=>A(e.original)})])]),F=b({get data(){return j.transforms},get columns(){return P.value},enableSorting:!1,getCoreRowModel:v(),state:{get columnVisibility(){return M.value}}}),I=s(()=>({volumes:{label:t(`Volumes`),url:D().url},transforms:{label:t(`Image Transforms`),url:E().url,active:!0}}));return(e,r)=>(i(),_(T,null,{actions:o(()=>[a(S,{appearance:`button`,inertia:!1,href:c(O)().url,variant:`primary`,icon:`plus`},{default:o(()=>[h(p(c(t)(`New image transform`)),1)]),_:1},8,[`href`])]),"interior-nav":o(()=>[m(`craft-nav-list`,null,[(i(!0),g(d,null,n(I.value,(e,t)=>(i(),_(S,{key:t,as:`craft-nav-item`,active:e.active??!1,href:e.url,block:``,flush:``,inertia:e.inertia??!0},{default:o(()=>[h(p(e.label),1)]),_:2},1032,[`active`,`href`,`inertia`]))),128))])]),default:o(()=>[a(x,{table:c(F)},{"empty-row":o(()=>[a(y,{label:c(t)(`No image transforms exist yet.`),icon:`image`},{default:o(()=>[a(S,{appearance:`button`,inertia:!1,href:c(O)().url,variant:`default`,icon:`plus`},{default:o(()=>[h(p(c(t)(`New image transform`)),1)]),_:1},8,[`href`])]),_:1},8,[`label`])]),_:1},8,[`table`])]),_:1}))}});export{A as default};
\ No newline at end of file
diff --git a/resources/build/assets/Index-CoQkToLa.js b/resources/build/assets/Index-DEM1d6FZ.js
similarity index 84%
rename from resources/build/assets/Index-CoQkToLa.js
rename to resources/build/assets/Index-DEM1d6FZ.js
index b8674462cb3..ffa90c52d06 100644
--- a/resources/build/assets/Index-CoQkToLa.js
+++ b/resources/build/assets/Index-DEM1d6FZ.js
@@ -1,4 +1,4 @@
-import{m as e}from"./cp-DdGjhisW.js";import{l as t}from"./nav-item-ixoxjtrg-BwccWdU9.js";import{B as n,E as r,I as i,J as a,R as o,T as s,_ as c,a as l,b as u,dt as d,m as f,ot as p,t as m,tt as h,v as g,x as _}from"./_plugin-vue_export-helper-B5xWb4v9.js";function v(n,r){let i=p({...r}),a=p(!1),o=c(()=>!!i.value.error),s=c(()=>!!i.value.finished);async function l(t){a.value=!0;let r;try{r=await e.post(`/admin/actions/${n}/${t}`,{data:i.value.data},{headers:{"Content-Type":`application/json`,Accept:`application/json`}})}catch(e){f(e)}finally{a.value=!1}r&&u(r.data)}function u(e){e.data&&(i.value.data=e.data),i.value={...i.value,status:e.status,error:e.error,errorDetails:e.errorDetails,options:e.options,finished:e.finished,returnUrl:e.returnUrl??i.value.returnUrl,nextAction:e.nextAction},e.nextAction&&l(e.nextAction)}function d(e){e.nextAction&&(i.value.error=void 0,i.value.errorDetails=void 0,i.value.options=void 0,e.status&&(i.value.status=e.status),e.data&&(i.value.data=e.data),l(e.nextAction))}function f(r){let a=r.response?.data?.message||r.message||`Unknown error`,o=r.response?.statusText||`Error`;i.value.error=t(`A fatal error has occurred:`),i.value.errorDetails=`${t(`Status:`)} ${o}\n\n${t(`Response:`)} ${a}`,i.value.options=[{label:t(`Troubleshoot`),url:`https://craftcms.com/knowledge-base/failed-updates`},{label:t(`Send for help`),email:`support@craftcms.com`}],e.post(`/admin/actions/${n}/finish`,{data:i.value.data},{headers:{"Content-Type":`application/json`,Accept:`application/json`}}).catch(()=>{})}function m(e){let t=encodeURIComponent(e.subject||`Craft update failure`),n=`Describe what happened here.`;return i.value.errorDetails&&(n+=`
+import{l as e}from"./nav-item-CDlDuMpT-DENemU4x.js";import{m as t}from"./cp-C98QgSGF.js";import{B as n,E as r,I as i,J as a,R as o,T as s,_ as c,a as l,b as u,dt as d,m as f,ot as p,t as m,tt as h,v as g,x as _}from"./_plugin-vue_export-helper-Cuhevpfm.js";function v(n,r){let i=p({...r}),a=p(!1),o=c(()=>!!i.value.error),s=c(()=>!!i.value.finished);async function l(e){a.value=!0;let r;try{r=await t.post(`/admin/actions/${n}/${e}`,{data:i.value.data},{headers:{"Content-Type":`application/json`,Accept:`application/json`}})}catch(e){f(e)}finally{a.value=!1}r&&u(r.data)}function u(e){e.data&&(i.value.data=e.data),i.value={...i.value,status:e.status,error:e.error,errorDetails:e.errorDetails,options:e.options,finished:e.finished,returnUrl:e.returnUrl??i.value.returnUrl,nextAction:e.nextAction},e.nextAction&&l(e.nextAction)}function d(e){e.nextAction&&(i.value.error=void 0,i.value.errorDetails=void 0,i.value.options=void 0,e.status&&(i.value.status=e.status),e.data&&(i.value.data=e.data),l(e.nextAction))}function f(r){let a=r.response?.data?.message||r.message||`Unknown error`,o=r.response?.statusText||`Error`;i.value.error=e(`A fatal error has occurred:`),i.value.errorDetails=`${e(`Status:`)} ${o}\n\n${e(`Response:`)} ${a}`,i.value.options=[{label:e(`Troubleshoot`),url:`https://craftcms.com/knowledge-base/failed-updates`},{label:e(`Send for help`),email:`support@craftcms.com`}],t.post(`/admin/actions/${n}/finish`,{data:i.value.data},{headers:{"Content-Type":`application/json`,Accept:`application/json`}}).catch(()=>{})}function m(e){let t=encodeURIComponent(e.subject||`Craft update failure`),n=`Describe what happened here.`;return i.value.errorDetails&&(n+=`
-----------------------------------------------------------
diff --git a/resources/build/assets/Index-BIInLoJb.js b/resources/build/assets/Index-NUa2WAIV.js
similarity index 81%
rename from resources/build/assets/Index-BIInLoJb.js
rename to resources/build/assets/Index-NUa2WAIV.js
index 6889a412860..1d2bbdb541c 100644
--- a/resources/build/assets/Index-BIInLoJb.js
+++ b/resources/build/assets/Index-NUa2WAIV.js
@@ -1 +1 @@
-import"./cp-DdGjhisW.js";import{l as e}from"./nav-item-ixoxjtrg-BwccWdU9.js";import{B as t,E as n,R as r,T as i,X as a,b as o,dt as s,m as c,t as l,tt as u,v as d,w as f,x as p,y as m}from"./_plugin-vue_export-helper-B5xWb4v9.js";import{s as h}from"./InlineFlash-CASXlxQJ.js";import{n as g}from"./wayfinder-BO4LFEOp.js";import{n as _,t as v}from"./AppLayout-CMfRP4dO.js";var y=e=>({url:y.url(e),method:`get`});y.definition={methods:[`get`,`head`],url:`/admin/settings`},y.url=e=>y.definition.url+g(e),y.get=e=>({url:y.url(e),method:`get`}),y.head=e=>({url:y.url(e),method:`head`});var b={class:`py-3`},x={class:`grid gap-6`},S=[`id`],C=[`aria-labelledby`],w={class:`settings-grid`},T={class:`settings-content`},E={class:`settings-icon`},D=[`name`],O=[`innerHTML`],k={class:`sr-only`},A=l(n({__name:`Index`,props:{readOnly:{type:Boolean},settings:{}},setup(n){return(l,g)=>(r(),m(v,{title:s(e)(`Settings`)},{default:a(()=>[d(`div`,b,[n.readOnly?(r(),m(_,{key:0})):o(``,!0),d(`div`,x,[(r(!0),p(c,null,t(n.settings,(n,l,m)=>(r(),p(`div`,{key:l},[d(`h2`,{id:`category-heading-${m}`,class:`mb-2 text-lg leading-tight`},u(l),9,S),d(`nav`,{"aria-labelledby":`category-heading-${m}`},[d(`ul`,w,[(r(!0),p(c,null,t(n,(t,n)=>(r(),p(`li`,{key:n},[i(h,{href:t.url||`${s(y)().url}/${n}`,class:`settings-item`},{default:a(()=>[d(`div`,T,[d(`div`,E,[t.iconName?(r(),p(`craft-icon`,{key:0,name:t.iconName,style:{"font-size":`calc(40rem / 16)`}},null,8,D)):t.icon?(r(),p(`div`,{key:1,innerHTML:t.icon,class:`w-[40px] h-[40px] inline-block align-self-center`},null,8,O)):o(``,!0)]),f(` `+u(t.label),1),d(`span`,k,` - `+u(s(e)(`Settings`)),1)])]),_:2},1032,[`href`])]))),128))])],8,C)]))),128))])])]),_:1},8,[`title`]))}}),[[`__scopeId`,`data-v-b00fbfa2`]]);export{A as default};
\ No newline at end of file
+import{l as e}from"./nav-item-CDlDuMpT-DENemU4x.js";import"./cp-C98QgSGF.js";import{B as t,E as n,R as r,T as i,X as a,b as o,dt as s,m as c,t as l,tt as u,v as d,w as f,x as p,y as m}from"./_plugin-vue_export-helper-Cuhevpfm.js";import{s as h}from"./InlineFlash-BCEBB6cj.js";import{n as g}from"./wayfinder-BVzzwyvd.js";import{n as _,t as v}from"./AppLayout-CjKT-72e.js";var y=e=>({url:y.url(e),method:`get`});y.definition={methods:[`get`,`head`],url:`/admin/settings`},y.url=e=>y.definition.url+g(e),y.get=e=>({url:y.url(e),method:`get`}),y.head=e=>({url:y.url(e),method:`head`});var b={class:`py-3`},x={class:`grid gap-6`},S=[`id`],C=[`aria-labelledby`],w={class:`settings-grid`},T={class:`settings-content`},E={class:`settings-icon`},D=[`name`],O=[`innerHTML`],k={class:`sr-only`},A=l(n({__name:`Index`,props:{readOnly:{type:Boolean},settings:{}},setup(n){return(l,g)=>(r(),m(v,{title:s(e)(`Settings`)},{default:a(()=>[d(`div`,b,[n.readOnly?(r(),m(_,{key:0})):o(``,!0),d(`div`,x,[(r(!0),p(c,null,t(n.settings,(n,l,m)=>(r(),p(`div`,{key:l},[d(`h2`,{id:`category-heading-${m}`,class:`mb-2 text-lg leading-tight`},u(l),9,S),d(`nav`,{"aria-labelledby":`category-heading-${m}`},[d(`ul`,w,[(r(!0),p(c,null,t(n,(t,n)=>(r(),p(`li`,{key:n},[i(h,{href:t.url||`${s(y)().url}/${n}`,class:`settings-item`},{default:a(()=>[d(`div`,T,[d(`div`,E,[t.iconName?(r(),p(`craft-icon`,{key:0,name:t.iconName,style:{"font-size":`calc(40rem / 16)`}},null,8,D)):t.icon?(r(),p(`div`,{key:1,innerHTML:t.icon,class:`w-[40px] h-[40px] inline-block align-self-center`},null,8,O)):o(``,!0)]),f(` `+u(t.label),1),d(`span`,k,` - `+u(s(e)(`Settings`)),1)])]),_:2},1032,[`href`])]))),128))])],8,C)]))),128))])])]),_:1},8,[`title`]))}}),[[`__scopeId`,`data-v-b00fbfa2`]]);export{A as default};
\ No newline at end of file
diff --git a/resources/build/assets/IndexLayout-pvGJ0smu.js b/resources/build/assets/IndexLayout-6yHrM6uc.js
similarity index 87%
rename from resources/build/assets/IndexLayout-pvGJ0smu.js
rename to resources/build/assets/IndexLayout-6yHrM6uc.js
index 7cb26b21e3e..c9e1d04d78a 100644
--- a/resources/build/assets/IndexLayout-pvGJ0smu.js
+++ b/resources/build/assets/IndexLayout-6yHrM6uc.js
@@ -1 +1 @@
-import"./cp-DdGjhisW.js";import{l as e}from"./nav-item-ixoxjtrg-BwccWdU9.js";import{$ as t,B as n,E as r,J as i,K as a,O as o,R as s,S as c,V as l,X as u,_ as d,b as f,dt as p,et as m,ot as h,t as g,tt as _,v,w as y,x as b,y as x}from"./_plugin-vue_export-helper-B5xWb4v9.js";import{r as S}from"./dist-CpsNQjmZ.js";import{t as C}from"./AppLayout-CMfRP4dO.js";var w={class:`index-grid`},T=[`aria-label`],E=[`aria-expanded`],D=[`name`],O={key:1,id:`nav-container`},k={id:`content-pane`,class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm @container`,tabindex:`-1`},A=g(r({__name:`IndexLayout`,props:{title:{},debug:{},fullWidth:{type:Boolean},form:{},formActions:{},additionalSkipLinks:{}},setup(r){let g=a(),A=S(`(min-width: 768px)`),j=h(`expanded`),M=d(()=>{let{default:e,...t}=g;return t}),N=d(()=>j.value===`expanded`?e(`Hide sidebar`):e(`Show sidebar`));function P(){j.value=j.value===`expanded`?`collapsed`:`expanded`}let F=[{label:e(`Skip to secondary navigation`),url:`#secondary-nav`},{label:e(`Skip to content`),url:`#content-pane`}];return i(A,e=>{j.value=e?`expanded`:`collapsed`},{immediate:!0}),(i,a)=>(s(),x(C,{"full-width":!0,title:r.title,debug:r.debug,"additional-skip-links":F},c({default:u(()=>[v(`div`,w,[v(`nav`,{id:`secondary-nav`,"aria-label":p(e)(`Secondary`),tabindex:`-1`},[p(A)?f(``,!0):(s(),b(`craft-button`,{key:0,type:`button`,"aria-controls":`nav-container`,"aria-expanded":j.value===`expanded`,onClick:P,align:`start`,class:`text-sm py-0 min-h-0`},[v(`craft-icon`,{slot:`suffix`,name:j.value===`expanded`?`chevron-up`:`chevron-down`,style:m({fontSize:`0.8em`,position:`relative`,insetBlockStart:j.value===`expanded`?`1px`:0})},null,12,D),y(` `+_(N.value),1)],8,E)),j.value===`expanded`?(s(),b(`div`,O,[l(i.$slots,`interior-nav`,{state:j.value},void 0,!0)])):f(``,!0)],8,T),v(`div`,k,[l(i.$slots,`default`,{},void 0,!0)])])]),_:2},[n(M.value,(e,n)=>({name:n,fn:u(e=>[l(i.$slots,n,t(o(e||{})),void 0,!0)])}))]),1032,[`title`,`debug`]))}}),[[`__scopeId`,`data-v-e8e3a455`]]);export{A as t};
\ No newline at end of file
+import{l as e}from"./nav-item-CDlDuMpT-DENemU4x.js";import"./cp-C98QgSGF.js";import{$ as t,B as n,E as r,J as i,K as a,O as o,R as s,S as c,V as l,X as u,_ as d,b as f,dt as p,et as m,ot as h,t as g,tt as _,v,w as y,x as b,y as x}from"./_plugin-vue_export-helper-Cuhevpfm.js";import{r as S}from"./dist-QTXkEWuv.js";import{t as C}from"./AppLayout-CjKT-72e.js";var w={class:`index-grid`},T=[`aria-label`],E=[`aria-expanded`],D=[`name`],O={key:1,id:`nav-container`},k={id:`content-pane`,class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm @container`,tabindex:`-1`},A=g(r({__name:`IndexLayout`,props:{title:{},debug:{},fullWidth:{type:Boolean},form:{},formActions:{},additionalSkipLinks:{}},setup(r){let g=a(),A=S(`(min-width: 768px)`),j=h(`expanded`),M=d(()=>{let{default:e,...t}=g;return t}),N=d(()=>j.value===`expanded`?e(`Hide sidebar`):e(`Show sidebar`));function P(){j.value=j.value===`expanded`?`collapsed`:`expanded`}let F=[{label:e(`Skip to secondary navigation`),url:`#secondary-nav`},{label:e(`Skip to content`),url:`#content-pane`}];return i(A,e=>{j.value=e?`expanded`:`collapsed`},{immediate:!0}),(i,a)=>(s(),x(C,{"full-width":!0,title:r.title,debug:r.debug,"additional-skip-links":F},c({default:u(()=>[v(`div`,w,[v(`nav`,{id:`secondary-nav`,"aria-label":p(e)(`Secondary`),tabindex:`-1`},[p(A)?f(``,!0):(s(),b(`craft-button`,{key:0,type:`button`,"aria-controls":`nav-container`,"aria-expanded":j.value===`expanded`,onClick:P,align:`start`,class:`text-sm py-0 min-h-0`},[v(`craft-icon`,{slot:`suffix`,name:j.value===`expanded`?`chevron-up`:`chevron-down`,style:m({fontSize:`0.8em`,position:`relative`,insetBlockStart:j.value===`expanded`?`1px`:0})},null,12,D),y(` `+_(N.value),1)],8,E)),j.value===`expanded`?(s(),b(`div`,O,[l(i.$slots,`interior-nav`,{state:j.value},void 0,!0)])):f(``,!0)],8,T),v(`div`,k,[l(i.$slots,`default`,{},void 0,!0)])])]),_:2},[n(M.value,(e,n)=>({name:n,fn:u(e=>[l(i.$slots,n,t(o(e||{})),void 0,!0)])}))]),1032,[`title`,`debug`]))}}),[[`__scopeId`,`data-v-e8e3a455`]]);export{A as t};
\ No newline at end of file
diff --git a/resources/build/assets/InlineFlash-CASXlxQJ.js b/resources/build/assets/InlineFlash-BCEBB6cj.js
similarity index 98%
rename from resources/build/assets/InlineFlash-CASXlxQJ.js
rename to resources/build/assets/InlineFlash-BCEBB6cj.js
index 98124e54c63..58250e06fee 100644
--- a/resources/build/assets/InlineFlash-CASXlxQJ.js
+++ b/resources/build/assets/InlineFlash-BCEBB6cj.js
@@ -1 +1 @@
-import{$ as e,E as t,O as n,Q as r,R as i,V as a,X as o,_ as s,b as c,dt as l,l as u,o as d,ot as f,t as p,tt as m,u as h,v as g,x as _,y as v}from"./_plugin-vue_export-helper-B5xWb4v9.js";var y={class:`flex gap-1 items-center`},b=[`name`],x=[`href`],S={class:`flex gap-1 items-center`},C=[`name`],w=p(t({__name:`CpLink`,props:{as:{},onClick:{},component:{},data:{},method:{},replace:{type:Boolean},preserveScroll:{type:[Boolean,String,Function]},preserveState:{type:[Boolean,String,Function]},preserveUrl:{type:Boolean},only:{},except:{},headers:{},queryStringArrayFormat:{},async:{type:Boolean},viewTransition:{type:[Boolean,Function]},onCancelToken:{},onBefore:{},onBeforeUpdate:{},onStart:{},onProgress:{},onFinish:{},onCancel:{},onSuccess:{},onError:{},onHttpException:{},onNetworkError:{},onFlash:{},onPrefetched:{},onPrefetching:{},href:{},instant:{type:Boolean},pageProps:{},prefetch:{type:[Boolean,String,Array]},cacheFor:{},cacheTags:{},variant:{default:`default`},size:{default:`medium`},appearance:{default:`inline`},icon:{},block:{type:Boolean,default:!1},inertia:{type:Boolean,default:!0}},setup(e){let t=e,n=s(()=>({block:t.block,"inline-flex":!t.block,"cp-link":!0,"cp-link--zero":t.size===`zero`,"cp-link--small":t.size===`small`,"cp-link--medium":t.size===`medium`,"cp-link--large":t.size===`large`,"cp-link--inline":t.appearance===`inline`,"cp-link--button":t.appearance===`button`,"cp-link--default":t.variant===`default`,"cp-link--primary":t.variant===`primary`,"cp-link--danger":t.variant===`danger`})),u=s(()=>typeof t.href==`string`?t.href:t.href?.url);return(t,s)=>e.inertia?(i(),v(l(d),{key:0,as:e.as,href:e.href,class:r(n.value)},{default:o(()=>[g(`div`,y,[e.icon?(i(),_(`craft-icon`,{key:0,name:e.icon},null,8,b)):c(``,!0),a(t.$slots,`default`,{},void 0,!0)])]),_:3},8,[`as`,`href`,`class`])):(i(),_(`a`,{key:1,href:u.value,class:r(n.value)},[g(`div`,S,[e.icon?(i(),_(`craft-icon`,{key:0,name:e.icon},null,8,C)):c(``,!0),a(t.$slots,`default`,{},void 0,!0)])],10,x))}}),[[`__scopeId`,`data-v-e0e842f4`]]),T=f({success:null,error:null});function E(e={duration:2e3}){e.initialMessages&&(T.value=l(e.initialMessages));function t(e,t,n={}){let{duration:r=n.duration??5e3}=n;T.value[e]=t,r!==-1&&setTimeout(()=>{T.value[e]=null},r)}function n(e){T.value[e]=null}function r(){T.value={success:null,error:null}}return{flash:t,clear:n,clearAll:r,messages:T}}var D=p(t({__name:`VarDump`,props:{data:{}},setup(t){return(r,a)=>(i(),_(`pre`,e(n(r.$attrs)),m(JSON.stringify(t.data,null,2)),17))}}),[[`__scopeId`,`data-v-9d6b32cd`]]),O={};function k(e,t){return i(),v(h,{name:`fade`},{default:o(()=>[a(e.$slots,`default`,{},void 0,!0)]),_:3})}var A=p(O,[[`render`,k],[`__scopeId`,`data-v-472cd7f2`]]),j=f(null),M=f(null);function N(e={}){function t(t){t&&(M.value!==null&&clearTimeout(M.value),j.value=t,M.value=setTimeout(()=>{j.value=null},e.timeout||5e3))}return{announcement:j,announce:t}}function P(){let e=u(),t=s(()=>e.props.flash);return{flash:t,successFlash:s(()=>t.value.success),errorFlash:s(()=>t.value.error)}}var F={key:0,variant:`success`,appearance:`plain`,icon:`circle-check`,inline:``,class:`p-0`},I={key:1,variant:`danger`,appearance:`plain`,icon:`triangle-exclamation`,inline:``,class:`p-0`},L=t({__name:`InlineFlash`,props:{isActive:{type:Boolean,default:!1}},setup(e){let{successFlash:t,errorFlash:n}=P();return(r,a)=>(i(),v(A,null,{default:o(()=>[e.isActive&&l(t)?(i(),_(`craft-callout`,F,m(l(t)),1)):c(``,!0),e.isActive&&l(n)?(i(),_(`craft-callout`,I,m(l(n)),1)):c(``,!0)]),_:1}))}});export{D as a,A as i,P as n,E as o,N as r,w as s,L as t};
\ No newline at end of file
+import{$ as e,E as t,O as n,Q as r,R as i,V as a,X as o,_ as s,b as c,dt as l,l as u,o as d,ot as f,t as p,tt as m,u as h,v as g,x as _,y as v}from"./_plugin-vue_export-helper-Cuhevpfm.js";var y={class:`flex gap-1 items-center`},b=[`name`],x=[`href`],S={class:`flex gap-1 items-center`},C=[`name`],w=p(t({__name:`CpLink`,props:{as:{},onClick:{},component:{},data:{},method:{},replace:{type:Boolean},preserveScroll:{type:[Boolean,String,Function]},preserveState:{type:[Boolean,String,Function]},preserveUrl:{type:Boolean},only:{},except:{},headers:{},queryStringArrayFormat:{},async:{type:Boolean},viewTransition:{type:[Boolean,Function]},onCancelToken:{},onBefore:{},onBeforeUpdate:{},onStart:{},onProgress:{},onFinish:{},onCancel:{},onSuccess:{},onError:{},onHttpException:{},onNetworkError:{},onFlash:{},onPrefetched:{},onPrefetching:{},href:{},instant:{type:Boolean},pageProps:{},prefetch:{type:[Boolean,String,Array]},cacheFor:{},cacheTags:{},variant:{default:`default`},size:{default:`medium`},appearance:{default:`inline`},icon:{},block:{type:Boolean,default:!1},inertia:{type:Boolean,default:!0}},setup(e){let t=e,n=s(()=>({block:t.block,"inline-flex":!t.block,"cp-link":!0,"cp-link--zero":t.size===`zero`,"cp-link--small":t.size===`small`,"cp-link--medium":t.size===`medium`,"cp-link--large":t.size===`large`,"cp-link--inline":t.appearance===`inline`,"cp-link--button":t.appearance===`button`,"cp-link--default":t.variant===`default`,"cp-link--primary":t.variant===`primary`,"cp-link--danger":t.variant===`danger`})),u=s(()=>typeof t.href==`string`?t.href:t.href?.url);return(t,s)=>e.inertia?(i(),v(l(d),{key:0,as:e.as,href:e.href,class:r(n.value)},{default:o(()=>[g(`div`,y,[e.icon?(i(),_(`craft-icon`,{key:0,name:e.icon},null,8,b)):c(``,!0),a(t.$slots,`default`,{},void 0,!0)])]),_:3},8,[`as`,`href`,`class`])):(i(),_(`a`,{key:1,href:u.value,class:r(n.value)},[g(`div`,S,[e.icon?(i(),_(`craft-icon`,{key:0,name:e.icon},null,8,C)):c(``,!0),a(t.$slots,`default`,{},void 0,!0)])],10,x))}}),[[`__scopeId`,`data-v-e0e842f4`]]),T=f({success:null,error:null});function E(e={duration:2e3}){e.initialMessages&&(T.value=l(e.initialMessages));function t(e,t,n={}){let{duration:r=n.duration??5e3}=n;T.value[e]=t,r!==-1&&setTimeout(()=>{T.value[e]=null},r)}function n(e){T.value[e]=null}function r(){T.value={success:null,error:null}}return{flash:t,clear:n,clearAll:r,messages:T}}var D=p(t({__name:`VarDump`,props:{data:{}},setup(t){return(r,a)=>(i(),_(`pre`,e(n(r.$attrs)),m(JSON.stringify(t.data,null,2)),17))}}),[[`__scopeId`,`data-v-9d6b32cd`]]),O={};function k(e,t){return i(),v(h,{name:`fade`},{default:o(()=>[a(e.$slots,`default`,{},void 0,!0)]),_:3})}var A=p(O,[[`render`,k],[`__scopeId`,`data-v-472cd7f2`]]),j=f(null),M=f(null);function N(e={}){function t(t){t&&(M.value!==null&&clearTimeout(M.value),j.value=t,M.value=setTimeout(()=>{j.value=null},e.timeout||5e3))}return{announcement:j,announce:t}}function P(){let e=u(),t=s(()=>e.props.flash);return{flash:t,successFlash:s(()=>t.value.success),errorFlash:s(()=>t.value.error)}}var F={key:0,variant:`success`,appearance:`plain`,icon:`circle-check`,inline:``,class:`p-0`},I={key:1,variant:`danger`,appearance:`plain`,icon:`triangle-exclamation`,inline:``,class:`p-0`},L=t({__name:`InlineFlash`,props:{isActive:{type:Boolean,default:!1}},setup(e){let{successFlash:t,errorFlash:n}=P();return(r,a)=>(i(),v(A,null,{default:o(()=>[e.isActive&&l(t)?(i(),_(`craft-callout`,F,m(l(t)),1)):c(``,!0),e.isActive&&l(n)?(i(),_(`craft-callout`,I,m(l(n)),1)):c(``,!0)]),_:1}))}});export{D as a,A as i,P as n,E as o,N as r,w as s,L as t};
\ No newline at end of file
diff --git a/resources/build/assets/InputCombobox-DyQ9GfLq.js b/resources/build/assets/InputCombobox-C2-gVliR.js
similarity index 99%
rename from resources/build/assets/InputCombobox-DyQ9GfLq.js
rename to resources/build/assets/InputCombobox-C2-gVliR.js
index 8652a34dcdd..c43f7673bea 100644
--- a/resources/build/assets/InputCombobox-DyQ9GfLq.js
+++ b/resources/build/assets/InputCombobox-C2-gVliR.js
@@ -1,4 +1,4 @@
-import{$ as e,B as t,E as n,I as r,J as i,L as a,N as o,P as s,Q as c,R as l,T as u,V as d,X as f,Y as p,_ as m,at as h,b as g,ct as _,dt as v,et as y,g as b,it as x,j as S,k as C,m as w,ot as T,q as E,st as D,t as O,tt as k,ut as A,v as j,w as M,x as N,y as ee,z as P}from"./_plugin-vue_export-helper-B5xWb4v9.js";import{a as te,c as F,d as ne,f as I,i as re,l as L,m as R,n as z,o as B,p as V,r as ie,s as ae,t as H,u as U}from"./keyboard-CnTkv6a2.js";function W(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o;n.key&&n.debug?.call(n)&&(o=Date.now());let s=e();if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug?.call(n)&&(c=Date.now()),i=t(...s),n.key&&n.debug?.call(n)){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.lengthen/en-GB`})},null,8,G)]),_:1},8,[`modelValue`,`label`,`help-text`,`options`,`disabled`,`error`]),w.value||!Z.value.id?(a(),b(E,{key:1,label:d(n)(`Status`),name:`enabled`,id:`enabled`,disabled:d(x),modelValue:S.value.enabled,"onUpdate:modelValue":t[5]||=e=>S.value.enabled=e,"require-option-match":!0,options:j.value,error:S.value.errors?.enabled},{default:s(()=>[_(`div`,K,[Z.value.primary?(a(),y(`craft-callout`,q,g(d(n)(`The primary site cannot be disabled.`)),1)):u(``,!0),_(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:d(n)(`This can be set to an environment variable with a boolean value ({examples})`,{examples:`yes/no/true/false/on/off/0/1`})},null,8,J)])]),_:1},8,[`label`,`disabled`,`modelValue`,`options`,`error`])):u(``,!0),(w.value||!Z.value.id)&&!Z.value.primary?(a(),y(p,{key:2},[Z.value.primary?u(``,!0):(a(),y(`craft-switch`,{key:0,label:d(n)(`Make this the primary site`),"help-text":d(n)(`The primary site will be loaded by default on the front end.`),disabled:d(x),checked:S.value.primary,onCheckedChanged:t[6]||=e=>S.value.primary=e.target?.checked},null,40,Y))],64)):u(``,!0),_(`craft-switch`,{label:d(n)(`This site has its own base URL`),id:`has-urls`,name:`hasUrls`,disabled:d(x),checked:S.value.hasUrls,onCheckedChanged:t[7]||=e=>S.value.hasUrls=e.target?.checked},null,40,te),S.value.hasUrls?(a(),b(E,{key:3,modelValue:S.value.baseUrl,"onUpdate:modelValue":t[8]||=e=>S.value.baseUrl=e,label:d(n)(`Base URL`),"help-text":d(n)(`The base URL for the site.`),id:`base-url`,name:`baseUrl`,error:S.value.errors?.baseUrl,options:X.value,disabled:d(x)},{after:s(()=>[_(`craft-callout`,ne,[v(g(d(n)(`This can begin with an environment variable or alias.`))+` `,1),_(`a`,re,g(d(n)(`Learn more`)),1)])]),_:1},8,[`modelValue`,`label`,`help-text`,`error`,`options`,`disabled`])):u(``,!0)],64))}}),Z={key:0,size:`small`,inline:``},Q={class:`grid gap-3`},$=i({__name:`SitesEdit`,props:{title:{},crumbs:{},site:{},groupId:{},flash:{},errors:{},isMultisite:{type:Boolean}},setup(e){let t=e,r=h({siteId:t.site.id??null,group:t.groupId,name:t.site.nameRaw,handle:t.site.handle,language:t.site.languageRaw,enabled:t.site.enabledRaw,hasUrls:t.site.hasUrls,primary:t.site.primary,baseUrl:t.site.baseUrlRaw??``});w(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),i())});let{save:i}=D(r,A),c=m(!1);return(l,f)=>(a(),y(p,null,[o(T,{title:e.title,form:d(r),onSave:d(i)},{"title-badge":s(()=>[o(S,{variant:e.site.enabled?`success`:`default`},{default:s(()=>[v(g(e.site.enabled?d(n)(`Enabled`):d(n)(`Disabled`)),1)]),_:1},8,[`variant`]),e.site.primary?(a(),y(`craft-callout`,Z,[_(`span`,null,g(d(n)(`Primary`)),1)])):u(``,!0)]),default:s(()=>[o(x,{appearance:`raised`},{default:s(()=>[_(`div`,Q,[o(X,{"inertia-form":d(r)},null,8,[`inertia-form`])])]),_:1})]),_:1},8,[`title`,`form`,`onSave`]),e.site.primary?u(``,!0):(a(),b(j,{key:0,onClose:f[0]||=e=>c.value=!1,open:c.value,site:t.site},null,8,[`open`,`site`]))],64))}});export{$ as default};
\ No newline at end of file
+import{l as e}from"./nav-item-CDlDuMpT-DENemU4x.js";import{a as t,o as n}from"./cp-C98QgSGF.js";import{B as r,E as i,R as a,T as o,X as s,Z as c,_ as l,b as u,dt as d,f,l as ee,m as p,ot as m,s as h,tt as g,v as _,w as v,x as y,y as b}from"./_plugin-vue_export-helper-Cuhevpfm.js";import{t as x}from"./Pane-DrGNHYDe.js";import{t as S}from"./Badge-CZivKMDx.js";import{i as C}from"./wayfinder-BVzzwyvd.js";import{n as w}from"./dist-QTXkEWuv.js";import{t as T}from"./AppLayout-CjKT-72e.js";import{t as E}from"./CraftCombobox-D1ggFDh2.js";import{t as D}from"./useSettingsSave-D9MlzG7m.js";import{t as O}from"./transformBooleanOptions-BLsz-PU9.js";import{t as k}from"./useInputGenerator-CtsYS3cX.js";import{a as A,t as j}from"./DeleteSiteModal-DqUEfPKa.js";var M=[`label`,`help-text`,`.model-value`,`disabled`],N={slot:`input`},P=[`value`],F={key:0,class:`error-list`,slot:`feedback`},I={key:1,slot:`after`},L={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},R={class:`sr-only`},z={slot:`after`},B={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},V={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},H=[`label`,`help-text`,`has-feedback-for`,`disabled`],U={slot:`feedback`},W={key:0,class:`error-list`},G=[`innerHTML`],K={slot:`after`},q={key:0,variant:`warning`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},J=[`innerHTML`],Y=[`label`,`help-text`,`disabled`,`checked`],te=[`label`,`disabled`,`checked`],ne={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},re={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},X=i({__name:`SiteFields`,props:{inertiaForm:{}},setup(i){let m=i,h=ee(),{readOnly:x}=C(),S=l(()=>m.inertiaForm),w=l(()=>h.props.isMultisite),T=l(()=>h.props.groupOptions),D=l(()=>h.props.nameSuggestions),A=l(()=>h.props.languageOptions),j=l(()=>O(h.props.booleanEnvOptions)),X=l(()=>h.props.baseUrlSuggestions),Z=l(()=>h.props.site),Q=k(()=>S.value.name,e=>S.value.handle=t(e)),$=k(()=>S.value.name,e=>S.value.baseUrl=n(e,{prefix:`$`,suffix:`_URL`}));return S.value.id&&(Q.stop(),$.stop()),(t,n)=>(a(),y(p,null,[S.value.id?c((a(),y(`input`,{key:0,name:`id`,"onUpdate:modelValue":n[0]||=e=>S.value.id=e,type:`hidden`},null,512)),[[f,S.value.id]]):u(``,!0),_(`craft-select`,{label:d(e)(`Group`),"help-text":d(e)(`Which group should this site belong to?`),name:`group`,id:`group`,".model-value":S.value.group,onModelValueChanged:n[1]||=e=>S.value.group=e.target?.modelValue,disabled:d(x)},[_(`select`,N,[(a(!0),y(p,null,r(T.value,e=>(a(),y(`option`,{key:e.value,value:e.value},g(e.label),9,P))),128))]),S.value.errors?.group?(a(),y(`ul`,F,[(a(!0),y(p,null,r(S.value.errors?.group,e=>(a(),y(`li`,{key:e},g(e),1))),128))])):u(``,!0),S.value?.id&&w.value?(a(),y(`div`,I,[_(`craft-callout`,L,[_(`span`,R,g(d(e)(`Warning:`)),1),v(` `+g(d(e)(`Changing this may result in data loss.`)),1)])])):u(``,!0)],40,M),o(E,{modelValue:S.value.name,"onUpdate:modelValue":n[2]||=e=>S.value.name=e,options:D.value,label:d(e)(`Name`),id:`name`,name:`name`,disabled:d(x),error:S.value.errors?.name},{default:s(()=>[_(`div`,z,[_(`craft-callout`,B,[v(g(d(e)(`This can begin with an environment variable.`))+` `,1),_(`a`,V,g(d(e)(`Learn more`)),1)])])]),_:1},8,[`modelValue`,`options`,`label`,`disabled`,`error`]),c(_(`craft-input-handle`,{label:d(e)(`Handle`),"help-text":d(e)(`How you’ll refer to this site in the templates.`),ref:`handle`,id:`handle`,name:`handle`,"has-feedback-for":S.value.errors?.handle?`error`:``,disabled:d(x),"onUpdate:modelValue":n[3]||=e=>S.value.handle=e},[_(`div`,U,[S.value.errors?.handle?(a(),y(`ul`,W,[_(`li`,null,g(S.value.errors.handle),1)])):u(``,!0)])],8,H),[[f,S.value.handle]]),o(E,{modelValue:S.value.language,"onUpdate:modelValue":n[4]||=e=>S.value.language=e,label:d(e)(`Language`),name:`language`,id:`site-language`,"help-text":d(e)(`The language content in this site will use.`),options:A.value,disabled:d(x),error:S.value.errors?.language,"require-option-match":!0},{after:s(()=>[_(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:d(e)(`This can be set to an environment variable with a valid language ID ({examples}).`,{examples:`en/en-GB`})},null,8,G)]),_:1},8,[`modelValue`,`label`,`help-text`,`options`,`disabled`,`error`]),w.value||!Z.value.id?(a(),b(E,{key:1,label:d(e)(`Status`),name:`enabled`,id:`enabled`,disabled:d(x),modelValue:S.value.enabled,"onUpdate:modelValue":n[5]||=e=>S.value.enabled=e,"require-option-match":!0,options:j.value,error:S.value.errors?.enabled},{default:s(()=>[_(`div`,K,[Z.value.primary?(a(),y(`craft-callout`,q,g(d(e)(`The primary site cannot be disabled.`)),1)):u(``,!0),_(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:d(e)(`This can be set to an environment variable with a boolean value ({examples})`,{examples:`yes/no/true/false/on/off/0/1`})},null,8,J)])]),_:1},8,[`label`,`disabled`,`modelValue`,`options`,`error`])):u(``,!0),(w.value||!Z.value.id)&&!Z.value.primary?(a(),y(p,{key:2},[Z.value.primary?u(``,!0):(a(),y(`craft-switch`,{key:0,label:d(e)(`Make this the primary site`),"help-text":d(e)(`The primary site will be loaded by default on the front end.`),disabled:d(x),checked:S.value.primary,onCheckedChanged:n[6]||=e=>S.value.primary=e.target?.checked},null,40,Y))],64)):u(``,!0),_(`craft-switch`,{label:d(e)(`This site has its own base URL`),id:`has-urls`,name:`hasUrls`,disabled:d(x),checked:S.value.hasUrls,onCheckedChanged:n[7]||=e=>S.value.hasUrls=e.target?.checked},null,40,te),S.value.hasUrls?(a(),b(E,{key:3,modelValue:S.value.baseUrl,"onUpdate:modelValue":n[8]||=e=>S.value.baseUrl=e,label:d(e)(`Base URL`),"help-text":d(e)(`The base URL for the site.`),id:`base-url`,name:`baseUrl`,error:S.value.errors?.baseUrl,options:X.value,disabled:d(x)},{after:s(()=>[_(`craft-callout`,ne,[v(g(d(e)(`This can begin with an environment variable or alias.`))+` `,1),_(`a`,re,g(d(e)(`Learn more`)),1)])]),_:1},8,[`modelValue`,`label`,`help-text`,`error`,`options`,`disabled`])):u(``,!0)],64))}}),Z={key:0,size:`small`,inline:``},Q={class:`grid gap-3`},$=i({__name:`SitesEdit`,props:{title:{},crumbs:{},site:{},groupId:{},flash:{},errors:{},isMultisite:{type:Boolean}},setup(t){let n=t,r=h({siteId:n.site.id??null,group:n.groupId,name:n.site.nameRaw,handle:n.site.handle,language:n.site.languageRaw,enabled:n.site.enabledRaw,hasUrls:n.site.hasUrls,primary:n.site.primary,baseUrl:n.site.baseUrlRaw??``});w(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),i())});let{save:i}=D(r,A),c=m(!1);return(l,f)=>(a(),y(p,null,[o(T,{title:t.title,form:d(r),onSave:d(i)},{"title-badge":s(()=>[o(S,{variant:t.site.enabled?`success`:`default`},{default:s(()=>[v(g(t.site.enabled?d(e)(`Enabled`):d(e)(`Disabled`)),1)]),_:1},8,[`variant`]),t.site.primary?(a(),y(`craft-callout`,Z,[_(`span`,null,g(d(e)(`Primary`)),1)])):u(``,!0)]),default:s(()=>[o(x,{appearance:`raised`},{default:s(()=>[_(`div`,Q,[o(X,{"inertia-form":d(r)},null,8,[`inertia-form`])])]),_:1})]),_:1},8,[`title`,`form`,`onSave`]),t.site.primary?u(``,!0):(a(),b(j,{key:0,onClose:f[0]||=e=>c.value=!1,open:c.value,site:n.site},null,8,[`open`,`site`]))],64))}});export{$ as default};
\ No newline at end of file
diff --git a/resources/build/assets/Tokens-BeqRdx65.js b/resources/build/assets/Tokens-CyRSK-Ze.js
similarity index 84%
rename from resources/build/assets/Tokens-BeqRdx65.js
rename to resources/build/assets/Tokens-CyRSK-Ze.js
index a508ce35b68..f4c67f24c35 100644
--- a/resources/build/assets/Tokens-BeqRdx65.js
+++ b/resources/build/assets/Tokens-CyRSK-Ze.js
@@ -1 +1 @@
-import"./cp-DdGjhisW.js";import{l as e}from"./nav-item-ixoxjtrg-BwccWdU9.js";import{E as t,R as n,T as r,X as i,dt as a,ft as o,k as s,tt as c,w as l,y as u}from"./_plugin-vue_export-helper-B5xWb4v9.js";import{l as d,n as f,s as p,t as m}from"./AdminTable-fmWBDoLo.js";import{t as h}from"./Pane-CukoaDZn.js";import{s as g}from"./InlineFlash-CASXlxQJ.js";import{n as _,t as v}from"./wayfinder-BO4LFEOp.js";import{t as y}from"./DeleteButton-B6fT-tEn.js";import{t as b}from"./createCraftColumnHelper-DmeFY1c4.js";import{t as x}from"./AppLayout-CMfRP4dO.js";var S=e=>({url:S.url(e),method:`post`});S.definition={methods:[`post`],url:`/admin/actions/graphql/generate-token`},S.url=e=>S.definition.url+_(e),S.post=e=>({url:S.url(e),method:`post`});var C=e=>({url:C.url(e),method:`post`});C.definition={methods:[`post`],url:`/admin/actions/graphql/save-token`},C.url=e=>C.definition.url+_(e),C.post=e=>({url:C.url(e),method:`post`});var w=e=>({url:w.url(e),method:`post`});w.definition={methods:[`post`],url:`/admin/actions/graphql/fetch-token`},w.url=e=>w.definition.url+_(e),w.post=e=>({url:w.url(e),method:`post`});var T=e=>({url:T.url(e),method:`get`});T.definition={methods:[`get`,`head`],url:`/admin/graphql/tokens`},T.url=e=>T.definition.url+_(e),T.get=e=>({url:T.url(e),method:`get`}),T.head=e=>({url:T.url(e),method:`head`});var E=e=>({url:E.url(e),method:`get`});E.definition={methods:[`get`,`head`],url:`/admin/graphql/tokens/new`},E.url=e=>E.definition.url+_(e),E.get=e=>({url:E.url(e),method:`get`}),E.head=e=>({url:E.url(e),method:`head`});var D=(e,t)=>({url:D.url(e,t),method:`get`});D.definition={methods:[`get`,`head`],url:`/admin/graphql/tokens/{tokenId}`},D.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={tokenId:e}),Array.isArray(e)&&(e={tokenId:e[0]}),e=v(e);let n={tokenId:e.tokenId};return D.definition.url.replace(`{tokenId}`,n.tokenId.toString()).replace(/\/+$/,``)+_(t)},D.get=(e,t)=>({url:D.url(e,t),method:`get`}),D.head=(e,t)=>({url:D.url(e,t),method:`head`});var O=(e,t)=>({url:O.url(e,t),method:`delete`});O.definition={methods:[`delete`],url:`/admin/graphql/tokens/{tokenId}`},O.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={tokenId:e}),Array.isArray(e)&&(e={tokenId:e[0]}),e=v(e);let n={tokenId:e.tokenId};return O.definition.url.replace(`{tokenId}`,n.tokenId.toString()).replace(/\/+$/,``)+_(t)},O.delete=(e,t)=>({url:O.url(e,t),method:`delete`});var k=t({__name:`Tokens`,props:{tokens:{},dates:{},readOnly:{type:Boolean}},setup(t){let _=t;function v(t){confirm(e(`Are you sure you want to delete the “{name}” token?`,{name:t.name}))&&o.delete(O(t.id))}let S=b(),C=p({get columns(){return[S.link(`name`,{header:e(`Name`),props:({row:e})=>({href:D(e.original.id).url,inertia:!1})}),S.date(`lastUsed`,{header:e(`Last Used`)}),S.date(`expiryDate`,{header:e(`Expires`)}),S.actions(({row:e})=>[s(y,{onClick:()=>v(e.original)})])]},get data(){return _.tokens},state:{get columnVisibility(){return{name:!0,lastUsed:!0,expiryDate:!0,actions:!_.readOnly}}},enableSorting:!1,getCoreRowModel:d()});return(t,o)=>(n(),u(x,null,{actions:i(()=>[r(g,{href:a(E)().url,icon:`plus`,inertia:!1,appearance:`button`,variant:`primary`},{default:i(()=>[l(c(a(e)(`New token`)),1)]),_:1},8,[`href`])]),default:i(()=>[r(h,{padding:0,appearance:`raised`},{default:i(()=>[r(m,{table:a(C)},{"empty-row":i(()=>[r(f,{label:a(e)(`No GraphQL tokens exist yet.`)},{default:i(()=>[r(g,{href:a(E)().url,icon:`plus`,inertia:!1,appearance:`button`},{default:i(()=>[l(c(a(e)(`New token`)),1)]),_:1},8,[`href`])]),_:1},8,[`label`])]),_:1},8,[`table`])]),_:1})]),_:1}))}});export{k as default};
\ No newline at end of file
+import{l as e}from"./nav-item-CDlDuMpT-DENemU4x.js";import"./cp-C98QgSGF.js";import{E as t,R as n,T as r,X as i,dt as a,ft as o,k as s,tt as c,w as l,y as u}from"./_plugin-vue_export-helper-Cuhevpfm.js";import{l as d,n as f,s as p,t as m}from"./AdminTable-C5dgSydv.js";import{t as h}from"./Pane-DrGNHYDe.js";import{s as g}from"./InlineFlash-BCEBB6cj.js";import{n as _,t as v}from"./wayfinder-BVzzwyvd.js";import{t as y}from"./DeleteButton-3fbwp8kr.js";import{t as b}from"./createCraftColumnHelper-DUzcpR9W.js";import{t as x}from"./AppLayout-CjKT-72e.js";var S=e=>({url:S.url(e),method:`post`});S.definition={methods:[`post`],url:`/admin/actions/graphql/generate-token`},S.url=e=>S.definition.url+_(e),S.post=e=>({url:S.url(e),method:`post`});var C=e=>({url:C.url(e),method:`post`});C.definition={methods:[`post`],url:`/admin/actions/graphql/save-token`},C.url=e=>C.definition.url+_(e),C.post=e=>({url:C.url(e),method:`post`});var w=e=>({url:w.url(e),method:`post`});w.definition={methods:[`post`],url:`/admin/actions/graphql/fetch-token`},w.url=e=>w.definition.url+_(e),w.post=e=>({url:w.url(e),method:`post`});var T=e=>({url:T.url(e),method:`get`});T.definition={methods:[`get`,`head`],url:`/admin/graphql/tokens`},T.url=e=>T.definition.url+_(e),T.get=e=>({url:T.url(e),method:`get`}),T.head=e=>({url:T.url(e),method:`head`});var E=e=>({url:E.url(e),method:`get`});E.definition={methods:[`get`,`head`],url:`/admin/graphql/tokens/new`},E.url=e=>E.definition.url+_(e),E.get=e=>({url:E.url(e),method:`get`}),E.head=e=>({url:E.url(e),method:`head`});var D=(e,t)=>({url:D.url(e,t),method:`get`});D.definition={methods:[`get`,`head`],url:`/admin/graphql/tokens/{tokenId}`},D.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={tokenId:e}),Array.isArray(e)&&(e={tokenId:e[0]}),e=v(e);let n={tokenId:e.tokenId};return D.definition.url.replace(`{tokenId}`,n.tokenId.toString()).replace(/\/+$/,``)+_(t)},D.get=(e,t)=>({url:D.url(e,t),method:`get`}),D.head=(e,t)=>({url:D.url(e,t),method:`head`});var O=(e,t)=>({url:O.url(e,t),method:`delete`});O.definition={methods:[`delete`],url:`/admin/graphql/tokens/{tokenId}`},O.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={tokenId:e}),Array.isArray(e)&&(e={tokenId:e[0]}),e=v(e);let n={tokenId:e.tokenId};return O.definition.url.replace(`{tokenId}`,n.tokenId.toString()).replace(/\/+$/,``)+_(t)},O.delete=(e,t)=>({url:O.url(e,t),method:`delete`});var k=t({__name:`Tokens`,props:{tokens:{},dates:{},readOnly:{type:Boolean}},setup(t){let _=t;function v(t){confirm(e(`Are you sure you want to delete the “{name}” token?`,{name:t.name}))&&o.delete(O(t.id))}let S=b(),C=p({get columns(){return[S.link(`name`,{header:e(`Name`),props:({row:e})=>({href:D(e.original.id).url,inertia:!1})}),S.date(`lastUsed`,{header:e(`Last Used`)}),S.date(`expiryDate`,{header:e(`Expires`)}),S.actions(({row:e})=>[s(y,{onClick:()=>v(e.original)})])]},get data(){return _.tokens},state:{get columnVisibility(){return{name:!0,lastUsed:!0,expiryDate:!0,actions:!_.readOnly}}},enableSorting:!1,getCoreRowModel:d()});return(t,o)=>(n(),u(x,null,{actions:i(()=>[r(g,{href:a(E)().url,icon:`plus`,inertia:!1,appearance:`button`,variant:`primary`},{default:i(()=>[l(c(a(e)(`New token`)),1)]),_:1},8,[`href`])]),default:i(()=>[r(h,{padding:0,appearance:`raised`},{default:i(()=>[r(m,{table:a(C)},{"empty-row":i(()=>[r(f,{label:a(e)(`No GraphQL tokens exist yet.`)},{default:i(()=>[r(g,{href:a(E)().url,icon:`plus`,inertia:!1,appearance:`button`},{default:i(()=>[l(c(a(e)(`New token`)),1)]),_:1},8,[`href`])]),_:1},8,[`label`])]),_:1},8,[`table`])]),_:1})]),_:1}))}});export{k as default};
\ No newline at end of file
diff --git a/resources/build/assets/UserGroups-CD-noNZH.js b/resources/build/assets/UserGroups-D9CUs3uK.js
similarity index 73%
rename from resources/build/assets/UserGroups-CD-noNZH.js
rename to resources/build/assets/UserGroups-D9CUs3uK.js
index e42462668a0..ec7b386f655 100644
--- a/resources/build/assets/UserGroups-CD-noNZH.js
+++ b/resources/build/assets/UserGroups-D9CUs3uK.js
@@ -1 +1 @@
-import"./cp-DdGjhisW.js";import{l as e}from"./nav-item-ixoxjtrg-BwccWdU9.js";import{B as t,E as n,R as r,T as i,X as a,dt as o,ft as s,k as c,m as l,tt as u,v as d,w as f,x as p,y as m}from"./_plugin-vue_export-helper-B5xWb4v9.js";import{l as h,n as g,s as _,t as v}from"./AdminTable-fmWBDoLo.js";import{s as y}from"./InlineFlash-CASXlxQJ.js";import{t as b}from"./DeleteButton-B6fT-tEn.js";import{t as x}from"./createCraftColumnHelper-DmeFY1c4.js";import{t as S}from"./IndexLayout-pvGJ0smu.js";import{n as C,r as w,t as T}from"./UserGroupsController-CGeKH4IE.js";var E=n({__name:`UserGroups`,props:{groups:{},subnav:{},readOnly:{type:Boolean}},setup(n){let E=n;function D(t){confirm(e(`Are you sure you want to delete "{name}"?`,{name:t.name}))&&s.delete(C(t.id))}let O=x(),k=_({get columns(){return[O.link(`name`,{header:e(`Name`),props:({row:e})=>({href:w(e.original.id).url})}),O.handle(`handle`),O.actions(({row:e})=>[c(b,{onClick:()=>D(e.original)})])]},get data(){return E.groups},state:{get columnVisibility(){return{}}},manualPagination:!0,pageCount:1,getCoreRowModel:h()});return(s,c)=>(r(),m(S,null,{actions:a(()=>[i(y,{inertia:!1,href:o(T)().url,class:`btn submit add icon`,icon:`plus`,appearance:`button`,variant:`primary`},{default:a(()=>[f(u(o(e)(`New user group`)),1)]),_:1},8,[`href`])]),"interior-nav":a(()=>[d(`craft-nav-list`,null,[(r(!0),p(l,null,t(n.subnav,(e,t)=>(r(),m(y,{key:t,as:`craft-nav-item`,active:e.active??!1,href:e.url,inertia:e.inertia??!0,block:``,flush:``},{default:a(()=>[f(u(e.label),1)]),_:2},1032,[`active`,`href`,`inertia`]))),128))])]),default:a(()=>[i(v,{table:o(k)},{"empty-row":a(()=>[i(g,{icon:`users`,label:o(e)(`No groups exist yet.`)},{default:a(()=>[i(y,{inertia:!1,href:o(T)().url,class:`btn submit add icon`,icon:`plus`,appearance:`button`},{default:a(()=>[f(u(o(e)(`New user group`)),1)]),_:1},8,[`href`])]),_:1},8,[`label`])]),_:1},8,[`table`])]),_:1}))}});export{E as default};
\ No newline at end of file
+import{l as e}from"./nav-item-CDlDuMpT-DENemU4x.js";import"./cp-C98QgSGF.js";import{B as t,E as n,R as r,T as i,X as a,dt as o,ft as s,k as c,m as l,tt as u,v as d,w as f,x as p,y as m}from"./_plugin-vue_export-helper-Cuhevpfm.js";import{l as h,n as g,s as _,t as v}from"./AdminTable-C5dgSydv.js";import{s as y}from"./InlineFlash-BCEBB6cj.js";import{t as b}from"./DeleteButton-3fbwp8kr.js";import{t as x}from"./createCraftColumnHelper-DUzcpR9W.js";import{t as S}from"./IndexLayout-6yHrM6uc.js";import{n as C,r as w,t as T}from"./UserGroupsController-Wt-WndSC.js";var E=n({__name:`UserGroups`,props:{groups:{},subnav:{},readOnly:{type:Boolean}},setup(n){let E=n;function D(t){confirm(e(`Are you sure you want to delete "{name}"?`,{name:t.name}))&&s.delete(C(t.id))}let O=x(),k=_({get columns(){return[O.link(`name`,{header:e(`Name`),props:({row:e})=>({href:w(e.original.id).url})}),O.handle(`handle`),O.actions(({row:e})=>[c(b,{onClick:()=>D(e.original)})])]},get data(){return E.groups},state:{get columnVisibility(){return{}}},manualPagination:!0,pageCount:1,getCoreRowModel:h()});return(s,c)=>(r(),m(S,null,{actions:a(()=>[i(y,{inertia:!1,href:o(T)().url,class:`btn submit add icon`,icon:`plus`,appearance:`button`,variant:`primary`},{default:a(()=>[f(u(o(e)(`New user group`)),1)]),_:1},8,[`href`])]),"interior-nav":a(()=>[d(`craft-nav-list`,null,[(r(!0),p(l,null,t(n.subnav,(e,t)=>(r(),m(y,{key:t,as:`craft-nav-item`,active:e.active??!1,href:e.url,inertia:e.inertia??!0,block:``,flush:``},{default:a(()=>[f(u(e.label),1)]),_:2},1032,[`active`,`href`,`inertia`]))),128))])]),default:a(()=>[i(v,{table:o(k)},{"empty-row":a(()=>[i(g,{icon:`users`,label:o(e)(`No groups exist yet.`)},{default:a(()=>[i(y,{inertia:!1,href:o(T)().url,class:`btn submit add icon`,icon:`plus`,appearance:`button`},{default:a(()=>[f(u(o(e)(`New user group`)),1)]),_:1},8,[`href`])]),_:1},8,[`label`])]),_:1},8,[`table`])]),_:1}))}});export{E as default};
\ No newline at end of file
diff --git a/resources/build/assets/UserGroupsController-CGeKH4IE.js b/resources/build/assets/UserGroupsController-CGeKH4IE.js
deleted file mode 100644
index 39d53a81a14..00000000000
--- a/resources/build/assets/UserGroupsController-CGeKH4IE.js
+++ /dev/null
@@ -1 +0,0 @@
-import{n as e,t}from"./wayfinder-BO4LFEOp.js";var n=e=>({url:n.url(e),method:`get`});n.definition={methods:[`get`,`head`],url:`/admin/settings/users`},n.url=t=>n.definition.url+e(t),n.get=e=>({url:n.url(e),method:`get`}),n.head=e=>({url:n.url(e),method:`head`});var r=e=>({url:r.url(e),method:`get`});r.definition={methods:[`get`,`head`],url:`/admin/settings/users/groups/new`},r.url=t=>r.definition.url+e(t),r.get=e=>({url:r.url(e),method:`get`}),r.head=e=>({url:r.url(e),method:`head`});var i=e=>({url:i.url(e),method:`post`});i.definition={methods:[`post`],url:`/admin/settings/users/groups`},i.url=t=>i.definition.url+e(t),i.post=e=>({url:i.url(e),method:`post`});var a=(e,t)=>({url:a.url(e,t),method:`delete`});a.definition={methods:[`delete`],url:`/admin/settings/users/groups/{groupId}`},a.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={groupId:n}),Array.isArray(n)&&(n={groupId:n[0]}),n=t(n);let i={groupId:n.groupId};return a.definition.url.replace(`{groupId}`,i.groupId.toString()).replace(/\/+$/,``)+e(r)},a.delete=(e,t)=>({url:a.url(e,t),method:`delete`});var o=(e,t)=>({url:o.url(e,t),method:`get`});o.definition={methods:[`get`,`head`],url:`/admin/settings/users/groups/{userGroup}`},o.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={userGroup:n}),typeof n==`object`&&!Array.isArray(n)&&`id`in n&&(n={userGroup:n.id}),Array.isArray(n)&&(n={userGroup:n[0]}),n=t(n);let i={userGroup:typeof n.userGroup==`object`?n.userGroup.id:n.userGroup};return o.definition.url.replace(`{userGroup}`,i.userGroup.toString()).replace(/\/+$/,``)+e(r)},o.get=(e,t)=>({url:o.url(e,t),method:`get`}),o.head=(e,t)=>({url:o.url(e,t),method:`head`});export{i,a as n,o as r,r as t};
\ No newline at end of file
diff --git a/resources/build/assets/UserGroupsController-Wt-WndSC.js b/resources/build/assets/UserGroupsController-Wt-WndSC.js
new file mode 100644
index 00000000000..782c3bf9ab8
--- /dev/null
+++ b/resources/build/assets/UserGroupsController-Wt-WndSC.js
@@ -0,0 +1 @@
+import{n as e,t}from"./wayfinder-BVzzwyvd.js";var n=e=>({url:n.url(e),method:`get`});n.definition={methods:[`get`,`head`],url:`/admin/settings/users/groups/new`},n.url=t=>n.definition.url+e(t),n.get=e=>({url:n.url(e),method:`get`}),n.head=e=>({url:n.url(e),method:`head`});var r=e=>({url:r.url(e),method:`post`});r.definition={methods:[`post`],url:`/admin/settings/users/groups`},r.url=t=>r.definition.url+e(t),r.post=e=>({url:r.url(e),method:`post`});var i=(e,t)=>({url:i.url(e,t),method:`delete`});i.definition={methods:[`delete`],url:`/admin/settings/users/groups/{groupId}`},i.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={groupId:n}),Array.isArray(n)&&(n={groupId:n[0]}),n=t(n);let a={groupId:n.groupId};return i.definition.url.replace(`{groupId}`,a.groupId.toString()).replace(/\/+$/,``)+e(r)},i.delete=(e,t)=>({url:i.url(e,t),method:`delete`});var a=(e,t)=>({url:a.url(e,t),method:`get`});a.definition={methods:[`get`,`head`],url:`/admin/settings/users/groups/{userGroup}`},a.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={userGroup:n}),typeof n==`object`&&!Array.isArray(n)&&`id`in n&&(n={userGroup:n.id}),Array.isArray(n)&&(n={userGroup:n[0]}),n=t(n);let i={userGroup:typeof n.userGroup==`object`?n.userGroup.id:n.userGroup};return a.definition.url.replace(`{userGroup}`,i.userGroup.toString()).replace(/\/+$/,``)+e(r)},a.get=(e,t)=>({url:a.url(e,t),method:`get`}),a.head=(e,t)=>({url:a.url(e,t),method:`head`});export{r as i,i as n,a as r,n as t};
\ No newline at end of file
diff --git a/resources/build/assets/UserGroupsEdit-CXpSSM9e.js b/resources/build/assets/UserGroupsEdit-CMxBtHZ1.js
similarity index 90%
rename from resources/build/assets/UserGroupsEdit-CXpSSM9e.js
rename to resources/build/assets/UserGroupsEdit-CMxBtHZ1.js
index 1dfb648e505..54b22a23834 100644
--- a/resources/build/assets/UserGroupsEdit-CXpSSM9e.js
+++ b/resources/build/assets/UserGroupsEdit-CMxBtHZ1.js
@@ -1 +1 @@
-import"./cp-DdGjhisW.js";import{l as e}from"./nav-item-ixoxjtrg-BwccWdU9.js";import{B as t,E as n,H as r,Q as i,R as a,T as o,X as s,_ as c,b as l,dt as u,et as d,ft as f,m as p,s as m,t as h,tt as g,v as _,w as v,x as y,y as b}from"./_plugin-vue_export-helper-B5xWb4v9.js";import{t as x}from"./Pane-CukoaDZn.js";import{t as S}from"./CraftInput-OjhrLWw-.js";import{n as C,t as w}from"./CraftTextarea-Dsy8Ztwt.js";import{t as T}from"./AppLayout-CMfRP4dO.js";import{t as E}from"./useSettingsSave-Ddp2zTwK.js";import{t as D}from"./CraftInputHandle-QcuBEwPz.js";import{i as O,n as k}from"./UserGroupsController-CGeKH4IE.js";function A(e){return e.nested&&typeof e.nested==`object`&&!Array.isArray(e.nested)&&Object.keys(e.nested).length>0}function j(e){return!e||!A(e)?[]:Object.values(e.nested).flatMap(e=>[e.key.toLowerCase(),...j(e)])}var M={key:0,slot:`help-text`},N={key:1,class:`flex gap-1 items-center`,"data-color":`warning`},P=h(n({__name:`PermissionList`,props:{modelValue:{default:()=>[]},permissions:{default:()=>({})},disabled:{type:Boolean,default:!1},level:{default:0}},emits:[`update:modelValue`],setup(e,{emit:n}){let c=n,f=e;function m(e){let t=e.toLowerCase();if(f.modelValue.indexOf(t)===-1)c(`update:modelValue`,[...f.modelValue,t]);else{let n=new Set([t,...j(f.permissions[e])]);c(`update:modelValue`,f.modelValue.filter(e=>!n.has(e)))}}return(n,f)=>{let h=r(`PermissionList`,!0);return a(!0),y(p,null,t(e.permissions,(t,n)=>(a(),y(`ul`,{class:`group`,key:n,style:d({"--gap-x":`calc((${e.level} * 1lh) + var(--c-spacing-md))`})},[_(`li`,null,[o(C,{label:t.label,"model-value":e.modelValue.includes(n.toLowerCase()),value:n,disabled:e.disabled,"onUpdate:modelValue":e=>m(n),class:i({"cp-checkbox-indentation":e.level>0})},{default:s(()=>[t.info||t.warning?(a(),y(`div`,M,[t.info?(a(),y(p,{key:0},[v(g(t.info),1)],64)):l(``,!0),t.warning?(a(),y(`div`,N,[f[1]||=_(`craft-icon`,{name:`triangle-exclamation`},null,-1),v(` `+g(t.warning),1)])):l(``,!0)])):l(``,!0)]),_:2},1032,[`label`,`model-value`,`value`,`disabled`,`onUpdate:modelValue`,`class`]),u(A)(t)?(a(),b(h,{key:0,permissions:t.nested,"model-value":e.modelValue,disabled:e.disabled||!e.modelValue.includes(t.key.toLowerCase()),"onUpdate:modelValue":f[0]||=e=>c(`update:modelValue`,e),level:e.level+1},null,8,[`permissions`,`model-value`,`disabled`,`level`])):l(``,!0)])],4))),128)}}}),[[`__scopeId`,`data-v-851d8baa`]]),F={class:`grid gap-3`},I={class:`text-lg mb-3`},L={class:`grid gap-3`},R={class:`flex gap-2 items-center`},z=[`id`],B=[`onClick`],V=n({__name:`UserGroupsEdit`,props:{group:{},permissions:{},formActions:{},redirect:{},toolbar:{},errors:{},readOnly:{type:Boolean},redirectUrl:{}},setup(n){let r=n,i=m({id:r.group.id,redirect:r.redirect,name:r.group.name,handle:r.group.handle,description:r.group.description??``,permissions:r.group.permissions??[]});function l(e){return Object.values(e).flatMap(e=>[e.key,...A(e)?l(e.nested):[]])}let d=c(()=>r.permissions.reduce((e,t)=>(e[t.handle]=l(t.permissions).map(e=>e.toLowerCase()),e),{}));function h(e){if(!e)return!1;let t=new Set(i.permissions);return e.every(e=>t.has(e))}function C(e){let t=d.value[e];if(t)if(h(t)){let e=new Set(t);i.permissions=i.permissions.filter(t=>!e.has(t))}else i.permissions=[...new Set([...i.permissions,...t])]}let{save:j}=E(i,O),M=c(()=>r.readOnly||!r.group.id?[]:[{variant:`danger`,label:e(`Delete group`),onClick:()=>{confirm(e(`Are you sure you want to delete “{name}”?`,{name:r.group.name}))&&f.delete(k({groupId:r.group.id}))}}]);return(r,c)=>(a(),b(T,{form:u(i),"form-actions":M.value,onSave:u(j)},{default:s(()=>[o(x,{appearance:`raised`},{default:s(()=>[_(`div`,F,[o(S,{label:u(e)(`Name`),id:`name`,"data-error-key":`name`,autofocus:!0,required:!0,disabled:n.readOnly,error:n.errors?.name,name:`name`,modelValue:u(i).name,"onUpdate:modelValue":c[0]||=e=>u(i).name=e},null,8,[`label`,`disabled`,`error`,`modelValue`]),o(D,{label:u(e)(`Handle`),id:`handle`,modelValue:u(i).handle,"onUpdate:modelValue":c[1]||=e=>u(i).handle=e,autocorrect:!1,autocapitalize:!1,name:`handle`,error:n.errors?.handle,required:!0,"data-error-key":`handle`,disabled:n.readOnly},null,8,[`label`,`modelValue`,`error`,`disabled`]),o(w,{label:u(e)(`Description`),id:`description`,name:`description`,modelValue:u(i).description,"onUpdate:modelValue":c[2]||=e=>u(i).description=e,error:n.errors?.description,"data-error-key":`description`,disabled:n.readOnly},null,8,[`label`,`modelValue`,`error`,`disabled`])]),c[4]||=_(`hr`,{class:`my-8`},null,-1),_(`h2`,I,g(u(e)(`Permissions`)),1),_(`div`,L,[(a(!0),y(p,null,t(n.permissions,t=>(a(),y(`div`,{key:t.handle},[_(`div`,R,[_(`h3`,{class:`mb-1 text-base`,id:`content-heading-${t.handle}`},g(t.heading),9,z),_(`craft-button`,{type:`button`,size:`small`,appearance:`plain`,onClick:e=>C(t.handle)},[h(d.value[t.handle])?(a(),y(p,{key:0},[v(g(u(e)(`Deselect all`)),1)],64)):(a(),y(p,{key:1},[v(g(u(e)(`Select all`)),1)],64))],8,B)]),o(P,{permissions:t.permissions,modelValue:u(i).permissions,"onUpdate:modelValue":c[3]||=e=>u(i).permissions=e},null,8,[`permissions`,`modelValue`])]))),128))])]),_:1})]),_:1},8,[`form`,`form-actions`,`onSave`]))}});export{V as default};
\ No newline at end of file
+import{l as e}from"./nav-item-CDlDuMpT-DENemU4x.js";import"./cp-C98QgSGF.js";import{B as t,E as n,H as r,Q as i,R as a,T as o,X as s,_ as c,b as l,dt as u,et as d,ft as f,m as p,s as m,t as h,tt as g,v as _,w as v,x as y,y as b}from"./_plugin-vue_export-helper-Cuhevpfm.js";import{t as x}from"./Pane-DrGNHYDe.js";import{t as S}from"./CraftInput-5KetvMVv.js";import{n as C,t as w}from"./CraftTextarea-CNtKDxBR.js";import{t as T}from"./AppLayout-CjKT-72e.js";import{t as E}from"./useSettingsSave-D9MlzG7m.js";import{t as D}from"./CraftInputHandle-DbWX1yFQ.js";import{i as O,n as k}from"./UserGroupsController-Wt-WndSC.js";function A(e){return e.nested&&typeof e.nested==`object`&&!Array.isArray(e.nested)&&Object.keys(e.nested).length>0}function j(e){return!e||!A(e)?[]:Object.values(e.nested).flatMap(e=>[e.key.toLowerCase(),...j(e)])}var M={key:0,slot:`help-text`},N={key:1,class:`flex gap-1 items-center`,"data-color":`warning`},P=h(n({__name:`PermissionList`,props:{modelValue:{default:()=>[]},permissions:{default:()=>({})},disabled:{type:Boolean,default:!1},level:{default:0}},emits:[`update:modelValue`],setup(e,{emit:n}){let c=n,f=e;function m(e){let t=e.toLowerCase();if(f.modelValue.indexOf(t)===-1)c(`update:modelValue`,[...f.modelValue,t]);else{let n=new Set([t,...j(f.permissions[e])]);c(`update:modelValue`,f.modelValue.filter(e=>!n.has(e)))}}return(n,f)=>{let h=r(`PermissionList`,!0);return a(!0),y(p,null,t(e.permissions,(t,n)=>(a(),y(`ul`,{class:`group`,key:n,style:d({"--gap-x":`calc((${e.level} * 1lh) + var(--c-spacing-md))`})},[_(`li`,null,[o(C,{label:t.label,"model-value":e.modelValue.includes(n.toLowerCase()),value:n,disabled:e.disabled,"onUpdate:modelValue":e=>m(n),class:i({"cp-checkbox-indentation":e.level>0})},{default:s(()=>[t.info||t.warning?(a(),y(`div`,M,[t.info?(a(),y(p,{key:0},[v(g(t.info),1)],64)):l(``,!0),t.warning?(a(),y(`div`,N,[f[1]||=_(`craft-icon`,{name:`triangle-exclamation`},null,-1),v(` `+g(t.warning),1)])):l(``,!0)])):l(``,!0)]),_:2},1032,[`label`,`model-value`,`value`,`disabled`,`onUpdate:modelValue`,`class`]),u(A)(t)?(a(),b(h,{key:0,permissions:t.nested,"model-value":e.modelValue,disabled:e.disabled||!e.modelValue.includes(t.key.toLowerCase()),"onUpdate:modelValue":f[0]||=e=>c(`update:modelValue`,e),level:e.level+1},null,8,[`permissions`,`model-value`,`disabled`,`level`])):l(``,!0)])],4))),128)}}}),[[`__scopeId`,`data-v-851d8baa`]]),F={class:`grid gap-3`},I={class:`text-lg mb-3`},L={class:`grid gap-3`},R={class:`flex gap-2 items-center`},z=[`id`],B=[`onClick`],V=n({__name:`UserGroupsEdit`,props:{group:{},permissions:{},formActions:{},redirect:{},toolbar:{},errors:{},readOnly:{type:Boolean},redirectUrl:{}},setup(n){let r=n,i=m({id:r.group.id,redirect:r.redirect,name:r.group.name,handle:r.group.handle,description:r.group.description??``,permissions:r.group.permissions??[]});function l(e){return Object.values(e).flatMap(e=>[e.key,...A(e)?l(e.nested):[]])}let d=c(()=>r.permissions.reduce((e,t)=>(e[t.handle]=l(t.permissions).map(e=>e.toLowerCase()),e),{}));function h(e){if(!e)return!1;let t=new Set(i.permissions);return e.every(e=>t.has(e))}function C(e){let t=d.value[e];if(t)if(h(t)){let e=new Set(t);i.permissions=i.permissions.filter(t=>!e.has(t))}else i.permissions=[...new Set([...i.permissions,...t])]}let{save:j}=E(i,O),M=c(()=>r.readOnly||!r.group.id?[]:[{variant:`danger`,label:e(`Delete group`),onClick:()=>{confirm(e(`Are you sure you want to delete “{name}”?`,{name:r.group.name}))&&f.delete(k({groupId:r.group.id}))}}]);return(r,c)=>(a(),b(T,{form:u(i),"form-actions":M.value,onSave:u(j)},{default:s(()=>[o(x,{appearance:`raised`},{default:s(()=>[_(`div`,F,[o(S,{label:u(e)(`Name`),id:`name`,"data-error-key":`name`,autofocus:!0,required:!0,disabled:n.readOnly,error:n.errors?.name,name:`name`,modelValue:u(i).name,"onUpdate:modelValue":c[0]||=e=>u(i).name=e},null,8,[`label`,`disabled`,`error`,`modelValue`]),o(D,{label:u(e)(`Handle`),id:`handle`,modelValue:u(i).handle,"onUpdate:modelValue":c[1]||=e=>u(i).handle=e,autocorrect:!1,autocapitalize:!1,name:`handle`,error:n.errors?.handle,required:!0,"data-error-key":`handle`,disabled:n.readOnly},null,8,[`label`,`modelValue`,`error`,`disabled`]),o(w,{label:u(e)(`Description`),id:`description`,name:`description`,modelValue:u(i).description,"onUpdate:modelValue":c[2]||=e=>u(i).description=e,error:n.errors?.description,"data-error-key":`description`,disabled:n.readOnly},null,8,[`label`,`modelValue`,`error`,`disabled`])]),c[4]||=_(`hr`,{class:`my-8`},null,-1),_(`h2`,I,g(u(e)(`Permissions`)),1),_(`div`,L,[(a(!0),y(p,null,t(n.permissions,t=>(a(),y(`div`,{key:t.handle},[_(`div`,R,[_(`h3`,{class:`mb-1 text-base`,id:`content-heading-${t.handle}`},g(t.heading),9,z),_(`craft-button`,{type:`button`,size:`small`,appearance:`plain`,onClick:e=>C(t.handle)},[h(d.value[t.handle])?(a(),y(p,{key:0},[v(g(u(e)(`Deselect all`)),1)],64)):(a(),y(p,{key:1},[v(g(u(e)(`Select all`)),1)],64))],8,B)]),o(P,{permissions:t.permissions,modelValue:u(i).permissions,"onUpdate:modelValue":c[3]||=e=>u(i).permissions=e},null,8,[`permissions`,`modelValue`])]))),128))])]),_:1})]),_:1},8,[`form`,`form-actions`,`onSave`]))}});export{V as default};
\ No newline at end of file
diff --git a/resources/build/assets/Volumes-BKk84KCL.js b/resources/build/assets/Volumes-BfjPXiYZ.js
similarity index 75%
rename from resources/build/assets/Volumes-BKk84KCL.js
rename to resources/build/assets/Volumes-BfjPXiYZ.js
index 43730a754c2..8228d6d0736 100644
--- a/resources/build/assets/Volumes-BKk84KCL.js
+++ b/resources/build/assets/Volumes-BfjPXiYZ.js
@@ -1 +1 @@
-import"./cp-DdGjhisW.js";import{l as e}from"./nav-item-ixoxjtrg-BwccWdU9.js";import{B as t,E as n,J as r,P as i,R as a,T as o,X as s,_ as c,dt as l,ft as u,k as d,m as f,ot as p,tt as m,v as h,w as g,x as _,y as v}from"./_plugin-vue_export-helper-B5xWb4v9.js";import{l as y,n as b,s as x,t as S}from"./AdminTable-fmWBDoLo.js";import{s as C}from"./InlineFlash-CASXlxQJ.js";import{t as w}from"./DeleteButton-B6fT-tEn.js";import{t as T}from"./createCraftColumnHelper-DmeFY1c4.js";import{t as E}from"./IndexLayout-pvGJ0smu.js";import{a as D,c as O,i as k,n as A,r as j,t as M}from"./VolumesController-RT9K4v-C.js";var N=n({__name:`Volumes`,props:{title:{},volumes:{},sort:{},readOnly:{type:Boolean}},setup(n){let N=n;function P(t){confirm(e(`Are you sure you want to delete “{name}?`,{name:t.name}))&&u.delete(A(t.id))}let F=p(N.volumes.map(e=>e.id)),I=c(()=>(F.value??[]).map(e=>N.volumes.find(t=>t.id===e)).filter(e=>e!==void 0));function L(e,t){let n=[...F.value],[r]=n.splice(e,1);r!==void 0&&(n.splice(t,0,r),F.value=n)}r(F,(e,t)=>{i(()=>{u.post(D(),{ids:[...e]},{preserveScroll:!0,preserveState:!0,onError:()=>{F.value=t}})})});let R=T(),z=c(()=>({name:!0,handle:!0,actions:!N.readOnly})),B=c(()=>[R.link(`name`,{header:e(`Name`),props:({row:e})=>({href:j(e.original.id).url,inertia:!1})}),R.handle(`handle`),R.actions(({row:e})=>[d(w,{onClick:()=>P(e.original)})])]),V=x({get data(){return I.value},get columns(){return B.value},state:{get columnVisibility(){return z.value}},enableSorting:!1,getCoreRowModel:y()}),H=c(()=>({volumes:{label:e(`Volumes`),url:k().url,active:!0},transforms:{label:e(`Image Transforms`),url:O().url}}));return(r,i)=>(a(),v(E,{title:n.title},{actions:s(()=>[o(C,{appearance:`button`,href:l(M)().url,variant:`primary`,inertia:!1,icon:`plus`},{default:s(()=>[g(m(l(e)(`New volume`)),1)]),_:1},8,[`href`])]),"interior-nav":s(()=>[h(`craft-nav-list`,null,[(a(!0),_(f,null,t(H.value,(e,t)=>(a(),v(C,{key:t,as:`craft-nav-item`,active:e.active??!1,href:e.url,block:``,flush:``,inertia:e.inertia??!0},{default:s(()=>[g(m(e.label),1)]),_:2},1032,[`active`,`href`,`inertia`]))),128))])]),default:s(()=>[o(S,{table:l(V),reorderable:!0,"read-only":n.readOnly,onReorder:L},{"empty-row":s(()=>[o(b,{label:l(e)(`No volumes exist yet.`),icon:`light/files`},null,8,[`label`])]),_:1},8,[`table`,`read-only`])]),_:1},8,[`title`]))}});export{N as default};
\ No newline at end of file
+import{l as e}from"./nav-item-CDlDuMpT-DENemU4x.js";import"./cp-C98QgSGF.js";import{B as t,E as n,J as r,P as i,R as a,T as o,X as s,_ as c,dt as l,ft as u,k as d,m as f,ot as p,tt as m,v as h,w as g,x as _,y as v}from"./_plugin-vue_export-helper-Cuhevpfm.js";import{l as y,n as b,s as x,t as S}from"./AdminTable-C5dgSydv.js";import{s as C}from"./InlineFlash-BCEBB6cj.js";import{t as w}from"./DeleteButton-3fbwp8kr.js";import{t as T}from"./createCraftColumnHelper-DUzcpR9W.js";import{t as E}from"./IndexLayout-6yHrM6uc.js";import{a as D,c as O,i as k,n as A,r as j,t as M}from"./VolumesController-ChaxPTtl.js";var N=n({__name:`Volumes`,props:{title:{},volumes:{},sort:{},readOnly:{type:Boolean}},setup(n){let N=n;function P(t){confirm(e(`Are you sure you want to delete “{name}?`,{name:t.name}))&&u.delete(A(t.id))}let F=p(N.volumes.map(e=>e.id)),I=c(()=>(F.value??[]).map(e=>N.volumes.find(t=>t.id===e)).filter(e=>e!==void 0));function L(e,t){let n=[...F.value],[r]=n.splice(e,1);r!==void 0&&(n.splice(t,0,r),F.value=n)}r(F,(e,t)=>{i(()=>{u.post(D(),{ids:[...e]},{preserveScroll:!0,preserveState:!0,onError:()=>{F.value=t}})})});let R=T(),z=c(()=>({name:!0,handle:!0,actions:!N.readOnly})),B=c(()=>[R.link(`name`,{header:e(`Name`),props:({row:e})=>({href:j(e.original.id).url,inertia:!1})}),R.handle(`handle`),R.actions(({row:e})=>[d(w,{onClick:()=>P(e.original)})])]),V=x({get data(){return I.value},get columns(){return B.value},state:{get columnVisibility(){return z.value}},enableSorting:!1,getCoreRowModel:y()}),H=c(()=>({volumes:{label:e(`Volumes`),url:k().url,active:!0},transforms:{label:e(`Image Transforms`),url:O().url}}));return(r,i)=>(a(),v(E,{title:n.title},{actions:s(()=>[o(C,{appearance:`button`,href:l(M)().url,variant:`primary`,inertia:!1,icon:`plus`},{default:s(()=>[g(m(l(e)(`New volume`)),1)]),_:1},8,[`href`])]),"interior-nav":s(()=>[h(`craft-nav-list`,null,[(a(!0),_(f,null,t(H.value,(e,t)=>(a(),v(C,{key:t,as:`craft-nav-item`,active:e.active??!1,href:e.url,block:``,flush:``,inertia:e.inertia??!0},{default:s(()=>[g(m(e.label),1)]),_:2},1032,[`active`,`href`,`inertia`]))),128))])]),default:s(()=>[o(S,{table:l(V),reorderable:!0,"read-only":n.readOnly,onReorder:L},{"empty-row":s(()=>[o(b,{label:l(e)(`No volumes exist yet.`),icon:`light/files`},null,8,[`label`])]),_:1},8,[`table`,`read-only`])]),_:1},8,[`title`]))}});export{N as default};
\ No newline at end of file
diff --git a/resources/build/assets/VolumesController-RT9K4v-C.js b/resources/build/assets/VolumesController-ChaxPTtl.js
similarity index 98%
rename from resources/build/assets/VolumesController-RT9K4v-C.js
rename to resources/build/assets/VolumesController-ChaxPTtl.js
index d10ea76a69a..945a59fc64a 100644
--- a/resources/build/assets/VolumesController-RT9K4v-C.js
+++ b/resources/build/assets/VolumesController-ChaxPTtl.js
@@ -1 +1 @@
-import{n as e,t}from"./wayfinder-BO4LFEOp.js";var n=e=>({url:n.url(e),method:`post`});n.definition={methods:[`post`],url:`/admin/actions/image-transforms/save`},n.url=t=>n.definition.url+e(t),n.post=e=>({url:n.url(e),method:`post`});var r=e=>({url:r.url(e),method:`get`});r.definition={methods:[`get`,`head`],url:`/admin/settings/assets/transforms`},r.url=t=>r.definition.url+e(t),r.get=e=>({url:r.url(e),method:`get`}),r.head=e=>({url:r.url(e),method:`head`});var i=e=>({url:i.url(e),method:`get`});i.definition={methods:[`get`,`head`],url:`/admin/settings/assets/transforms/new`},i.url=t=>i.definition.url+e(t),i.get=e=>({url:i.url(e),method:`get`}),i.head=e=>({url:i.url(e),method:`head`});var a=(e,t)=>({url:a.url(e,t),method:`get`});a.definition={methods:[`get`,`head`],url:`/admin/settings/assets/transforms/{transformHandle}`},a.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={transformHandle:n}),Array.isArray(n)&&(n={transformHandle:n[0]}),n=t(n);let i={transformHandle:n.transformHandle};return a.definition.url.replace(`{transformHandle}`,i.transformHandle.toString()).replace(/\/+$/,``)+e(r)},a.get=(e,t)=>({url:a.url(e,t),method:`get`}),a.head=(e,t)=>({url:a.url(e,t),method:`head`});var o=(e,t)=>({url:o.url(e,t),method:`delete`});o.definition={methods:[`delete`],url:`/admin/settings/assets/transforms/{transformId}`},o.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={transformId:n}),Array.isArray(n)&&(n={transformId:n[0]}),n=t(n);let i={transformId:n.transformId};return o.definition.url.replace(`{transformId}`,i.transformId.toString()).replace(/\/+$/,``)+e(r)},o.delete=(e,t)=>({url:o.url(e,t),method:`delete`});var s=e=>({url:s.url(e),method:`post`});s.definition={methods:[`post`],url:`/admin/actions/volumes/save-volume`},s.url=t=>s.definition.url+e(t),s.post=e=>({url:s.url(e),method:`post`});var c=e=>({url:c.url(e),method:`post`});c.definition={methods:[`post`],url:`/admin/actions/volumes/reorder-volumes`},c.url=t=>c.definition.url+e(t),c.post=e=>({url:c.url(e),method:`post`});var l=e=>({url:l.url(e),method:`get`});l.definition={methods:[`get`,`head`],url:`/admin/settings/assets`},l.url=t=>l.definition.url+e(t),l.get=e=>({url:l.url(e),method:`get`}),l.head=e=>({url:l.url(e),method:`head`});var u=e=>({url:u.url(e),method:`get`});u.definition={methods:[`get`,`head`],url:`/admin/settings/assets/volumes/new`},u.url=t=>u.definition.url+e(t),u.get=e=>({url:u.url(e),method:`get`}),u.head=e=>({url:u.url(e),method:`head`});var d=(e,t)=>({url:d.url(e,t),method:`get`});d.definition={methods:[`get`,`head`],url:`/admin/settings/assets/volumes/{volumeId}`},d.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={volumeId:n}),Array.isArray(n)&&(n={volumeId:n[0]}),n=t(n);let i={volumeId:n.volumeId};return d.definition.url.replace(`{volumeId}`,i.volumeId.toString()).replace(/\/+$/,``)+e(r)},d.get=(e,t)=>({url:d.url(e,t),method:`get`}),d.head=(e,t)=>({url:d.url(e,t),method:`head`});var f=(e,t)=>({url:f.url(e,t),method:`delete`});f.definition={methods:[`delete`],url:`/admin/settings/assets/volumes/{volumeId}`},f.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={volumeId:n}),Array.isArray(n)&&(n={volumeId:n[0]}),n=t(n);let i={volumeId:n.volumeId};return f.definition.url.replace(`{volumeId}`,i.volumeId.toString()).replace(/\/+$/,``)+e(r)},f.delete=(e,t)=>({url:f.url(e,t),method:`delete`});export{c as a,r as c,l as i,f as n,i as o,d as r,o as s,u as t};
\ No newline at end of file
+import{n as e,t}from"./wayfinder-BVzzwyvd.js";var n=e=>({url:n.url(e),method:`post`});n.definition={methods:[`post`],url:`/admin/actions/image-transforms/save`},n.url=t=>n.definition.url+e(t),n.post=e=>({url:n.url(e),method:`post`});var r=e=>({url:r.url(e),method:`get`});r.definition={methods:[`get`,`head`],url:`/admin/settings/assets/transforms`},r.url=t=>r.definition.url+e(t),r.get=e=>({url:r.url(e),method:`get`}),r.head=e=>({url:r.url(e),method:`head`});var i=e=>({url:i.url(e),method:`get`});i.definition={methods:[`get`,`head`],url:`/admin/settings/assets/transforms/new`},i.url=t=>i.definition.url+e(t),i.get=e=>({url:i.url(e),method:`get`}),i.head=e=>({url:i.url(e),method:`head`});var a=(e,t)=>({url:a.url(e,t),method:`get`});a.definition={methods:[`get`,`head`],url:`/admin/settings/assets/transforms/{transformHandle}`},a.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={transformHandle:n}),Array.isArray(n)&&(n={transformHandle:n[0]}),n=t(n);let i={transformHandle:n.transformHandle};return a.definition.url.replace(`{transformHandle}`,i.transformHandle.toString()).replace(/\/+$/,``)+e(r)},a.get=(e,t)=>({url:a.url(e,t),method:`get`}),a.head=(e,t)=>({url:a.url(e,t),method:`head`});var o=(e,t)=>({url:o.url(e,t),method:`delete`});o.definition={methods:[`delete`],url:`/admin/settings/assets/transforms/{transformId}`},o.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={transformId:n}),Array.isArray(n)&&(n={transformId:n[0]}),n=t(n);let i={transformId:n.transformId};return o.definition.url.replace(`{transformId}`,i.transformId.toString()).replace(/\/+$/,``)+e(r)},o.delete=(e,t)=>({url:o.url(e,t),method:`delete`});var s=e=>({url:s.url(e),method:`post`});s.definition={methods:[`post`],url:`/admin/actions/volumes/save-volume`},s.url=t=>s.definition.url+e(t),s.post=e=>({url:s.url(e),method:`post`});var c=e=>({url:c.url(e),method:`post`});c.definition={methods:[`post`],url:`/admin/actions/volumes/reorder-volumes`},c.url=t=>c.definition.url+e(t),c.post=e=>({url:c.url(e),method:`post`});var l=e=>({url:l.url(e),method:`get`});l.definition={methods:[`get`,`head`],url:`/admin/settings/assets`},l.url=t=>l.definition.url+e(t),l.get=e=>({url:l.url(e),method:`get`}),l.head=e=>({url:l.url(e),method:`head`});var u=e=>({url:u.url(e),method:`get`});u.definition={methods:[`get`,`head`],url:`/admin/settings/assets/volumes/new`},u.url=t=>u.definition.url+e(t),u.get=e=>({url:u.url(e),method:`get`}),u.head=e=>({url:u.url(e),method:`head`});var d=(e,t)=>({url:d.url(e,t),method:`get`});d.definition={methods:[`get`,`head`],url:`/admin/settings/assets/volumes/{volumeId}`},d.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={volumeId:n}),Array.isArray(n)&&(n={volumeId:n[0]}),n=t(n);let i={volumeId:n.volumeId};return d.definition.url.replace(`{volumeId}`,i.volumeId.toString()).replace(/\/+$/,``)+e(r)},d.get=(e,t)=>({url:d.url(e,t),method:`get`}),d.head=(e,t)=>({url:d.url(e,t),method:`head`});var f=(e,t)=>({url:f.url(e,t),method:`delete`});f.definition={methods:[`delete`],url:`/admin/settings/assets/volumes/{volumeId}`},f.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={volumeId:n}),Array.isArray(n)&&(n={volumeId:n[0]}),n=t(n);let i={volumeId:n.volumeId};return f.definition.url.replace(`{volumeId}`,i.volumeId.toString()).replace(/\/+$/,``)+e(r)},f.delete=(e,t)=>({url:f.url(e,t),method:`delete`});export{c as a,r as c,l as i,f as n,i as o,d as r,o as s,u as t};
\ No newline at end of file
diff --git a/resources/build/assets/_plugin-vue_export-helper-B5xWb4v9.js b/resources/build/assets/_plugin-vue_export-helper-Cuhevpfm.js
similarity index 99%
rename from resources/build/assets/_plugin-vue_export-helper-B5xWb4v9.js
rename to resources/build/assets/_plugin-vue_export-helper-Cuhevpfm.js
index 00b8b568c78..d57ba6b6f8f 100644
--- a/resources/build/assets/_plugin-vue_export-helper-B5xWb4v9.js
+++ b/resources/build/assets/_plugin-vue_export-helper-Cuhevpfm.js
@@ -1,4 +1,4 @@
-import{n as e}from"./rolldown-runtime-tcWNtVWY.js";function t(e){return typeof e==`symbol`||e instanceof Symbol}var n=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)();function r(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function i(){}function a(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function o(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function s(e){if(a(e))return e;if(Array.isArray(e)||o(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function c(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function l(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var u=`[object RegExp]`,d=`[object String]`,f=`[object Number]`,p=`[object Boolean]`,m=`[object Arguments]`,h=`[object Symbol]`,g=`[object Date]`,_=`[object Map]`,v=`[object Set]`,y=`[object Array]`,b=`[object Function]`,x=`[object ArrayBuffer]`,S=`[object Object]`,C=`[object Error]`,w=`[object DataView]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,ee=`[object Uint32Array]`,te=`[object BigUint64Array]`,ne=`[object Int8Array]`,re=`[object Int16Array]`,ie=`[object Int32Array]`,ae=`[object BigInt64Array]`,oe=`[object Float32Array]`,se=`[object Float64Array]`;function ce(e){return n.Buffer!==void 0&&n.Buffer.isBuffer(e)}function le(e,t){return ue(e,void 0,e,new Map,t)}function ue(e,t,n,r=new Map,i=void 0){let s=i?.(e,t,n,r);if(s!==void 0)return s;if(a(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;an.notes?n.notes.replace(/(<\/?h)(3|4|5)\b/g,(e,t,n)=>`${t}${parseInt(n)+1} class="h${n}"`):``),o=y(()=>!!n.notes);return(n,s)=>(g(),M(x(yn),{"default-open":i.value},{default:v(({open:n})=>[k(`div`,{class:h([`release`,{"release--critical":e.critical}])},[o.value?(g(),M(x(bn),{key:0,class:`release-trigger`},{default:v(()=>[k(`craft-icon`,{name:n?`chevron-down`:`chevron-right`,style:{"font-size":`0.8em`}},null,8,Sn),k(`div`,Cn,[k(`strong`,wn,O(e.version),1),e.critical?(g(),j(`span`,Tn,O(x(t)(`Critical`)),1)):b(``,!0),e.date?(g(),j(`span`,En,O(r(e.date)),1)):b(``,!0)])]),_:2},1024)):(g(),j(`div`,Dn,[k(`div`,On,[k(`strong`,kn,O(e.version),1),e.critical?(g(),j(`span`,An,O(x(t)(`Critical`)),1)):b(``,!0),e.date?(g(),j(`span`,jn,O(r(e.date)),1)):b(``,!0)])])),o.value?(g(),M(x(xn),{key:2,class:`release-notes prose`,innerHTML:a.value},null,8,[`innerHTML`])):b(``,!0)],2)]),_:1},8,[`default-open`]))}}),[[`__scopeId`,`data-v-4f89c26b`]]),G=e=>({url:G.url(e),method:`post`});G.definition={methods:[`post`],url:`/admin/actions/updater`},G.url=e=>G.definition.url+N(e),G.post=e=>({url:G.url(e),method:`post`});var Nn=e=>({url:Nn.url(e),method:`post`});Nn.definition={methods:[`post`],url:`/admin/updates`},Nn.url=e=>Nn.definition.url+N(e),Nn.post=e=>({url:Nn.url(e),method:`post`});var Pn={"/admin/actions/updater":G,"/admin/updates":Nn},Fn=e=>({url:Fn.url(e),method:`post`});Fn.definition={methods:[`post`],url:`/admin/actions/updater/force-update`},Fn.url=e=>Fn.definition.url+N(e),Fn.post=e=>({url:Fn.url(e),method:`post`});var In=e=>({url:In.url(e),method:`post`});In.definition={methods:[`post`],url:`/admin/actions/updater/backup`},In.url=e=>In.definition.url+N(e),In.post=e=>({url:In.url(e),method:`post`});var Ln=e=>({url:Ln.url(e),method:`post`});Ln.definition={methods:[`post`],url:`/admin/actions/updater/server-check`},Ln.url=e=>Ln.definition.url+N(e),Ln.post=e=>({url:Ln.url(e),method:`post`});var Rn=e=>({url:Rn.url(e),method:`post`});Rn.definition={methods:[`post`],url:`/admin/actions/updater/revert`},Rn.url=e=>Rn.definition.url+N(e),Rn.post=e=>({url:Rn.url(e),method:`post`});var zn=e=>({url:zn.url(e),method:`post`});zn.definition={methods:[`post`],url:`/admin/actions/updater/migrate`},zn.url=e=>zn.definition.url+N(e),zn.post=e=>({url:zn.url(e),method:`post`});var Bn=e=>({url:Bn.url(e),method:`post`});Bn.definition={methods:[`post`],url:`/admin/actions/updater/precheck`},Bn.url=e=>Bn.definition.url+N(e),Bn.post=e=>({url:Bn.url(e),method:`post`});var Vn=e=>({url:Vn.url(e),method:`post`});Vn.definition={methods:[`post`],url:`/admin/actions/updater/recheck-composer`},Vn.url=e=>Vn.definition.url+N(e),Vn.post=e=>({url:Vn.url(e),method:`post`});var Hn=e=>({url:Hn.url(e),method:`post`});Hn.definition={methods:[`post`],url:`/admin/actions/updater/composer-install`},Hn.url=e=>Hn.definition.url+N(e),Hn.post=e=>({url:Hn.url(e),method:`post`});var Un=e=>({url:Un.url(e),method:`post`});Un.definition={methods:[`post`],url:`/admin/actions/updater/composer-remove`},Un.url=e=>Un.definition.url+N(e),Un.post=e=>({url:Un.url(e),method:`post`});var Wn=e=>({url:Wn.url(e),method:`post`});Wn.definition={methods:[`post`],url:`/admin/actions/updater/finish`},Wn.url=e=>Wn.definition.url+N(e),Wn.post=e=>({url:Wn.url(e),method:`post`});var Gn={index:Pn,forceUpdate:Fn,backup:In,serverCheck:Ln,revert:Rn,migrate:zn,precheck:Bn,recheckComposer:Vn,composerInstall:Hn,composerRemove:Un,finish:Wn},Kn={class:`update`},qn={class:`update-header`},Jn={class:`text-xl font-semibold`},Yn={class:`update-actions`},Xn=[`name`,`value`],Zn=[`name`,`value`],Qn=[`loading`],$n={type:`button`,slot:`invoker`,icon:``},er=[`label`],tr={slot:`content`},nr={key:0,class:`note`},rr={key:1,class:`note ineligible`},ir={class:`releases`},ar=D(l({__name:`Update`,props:{name:{},handle:{},packageName:{},releases:{default:()=>[]},status:{default:`eligible`},statusText:{},abandoned:{type:Boolean,default:!1},latestVersion:{},ctaText:{},ctaUrl:{type:[String,Boolean]},altCtaText:{},altCtaUrl:{},allowUpdates:{type:Boolean,default:!0}},setup(e){let n=e,r=y(()=>n.allowUpdates&&n.latestVersion&&n.ctaUrl!==void 0),i=y(()=>n.ctaText||t(`Update`)),a=t(`Copy plugin handle`),o=E(a);async function s(){try{await navigator.clipboard.writeText(n.handle??``),o.value=t(`Copied!`),setTimeout(()=>{o.value=a},1500)}catch(e){console.error(e),o.value=t(`Failed to copy`)}}let l=t(`Copy package name`),u=E(l);async function d(){try{await navigator.clipboard.writeText(n.packageName??``),u.value=t(`Copied!`),setTimeout(()=>{u.value=l},1500)}catch(e){console.error(e),u.value=t(`Failed to copy`)}}return(n,a)=>(g(),j(`div`,Kn,[k(`div`,qn,[k(`h2`,Jn,O(e.name),1),k(`div`,Yn,[r.value?(g(),j(T,{key:0},[e.ctaUrl?(g(),M(Ce,{key:0,href:e.ctaUrl,target:`_blank`,variant:`primary`,appearance:`button`},{default:v(()=>[A(O(i.value),1)]),_:1},8,[`href`])):(g(),M(x(C),{key:1,action:x(Gn).index[`/admin/actions/updater`](),method:`post`},{default:v(({processing:t})=>[a[0]||=k(`input`,{type:`hidden`,name:`return`,value:`utilities/updates`},null,-1),k(`input`,{type:`hidden`,name:`install[${e.handle}]`,value:`^${e.latestVersion}`},null,8,Xn),k(`input`,{type:`hidden`,name:`packageNames[${e.handle}]`,value:e.packageName},null,8,Zn),k(`craft-button`,{type:`submit`,variant:`primary`,loading:t},O(i.value),9,Qn)]),_:1},8,[`action`]))],64)):b(``,!0),e.allowUpdates&&e.altCtaText?(g(),j(T,{key:1},[e.altCtaUrl?(g(),M(Ce,{key:0,href:e.altCtaUrl,appearance:`button`,variant:`default`},{default:v(()=>[A(O(e.altCtaText),1)]),_:1},8,[`href`])):b(``,!0)],64)):b(``,!0),k(`craft-action-menu`,null,[k(`craft-button`,$n,[k(`craft-icon`,{name:`ellipsis`,label:x(t)(`Actions`)},null,8,er)]),k(`div`,tr,[k(`craft-action-item`,{icon:`clipboard`,onClick:s},O(o.value),1),k(`craft-action-item`,{icon:`clipboard`,onClick:d},O(u.value),1)])])])]),e.abandoned?(g(),j(`blockquote`,nr,[k(`p`,null,O(e.statusText),1)])):e.status===`eligible`?b(``,!0):(g(),j(`blockquote`,rr,[k(`p`,null,O(e.statusText),1)])),k(`div`,ir,[(g(!0),j(T,null,c(e.releases,e=>(g(),M(Mn,m({key:e.version},{ref_for:!0},e),null,16))),128))])]))}}),[[`__scopeId`,`data-v-6406f6d7`]]),or=e=>({url:or.url(e),method:`post`});or.definition={methods:[`post`],url:`/admin/actions/app/check-for-updates`},or.url=e=>or.definition.url+N(e),or.post=e=>({url:or.url(e),method:`post`});var sr=e=>({url:sr.url(e),method:`post`});sr.definition={methods:[`post`],url:`/admin/actions/app/cache-updates`},sr.url=e=>sr.definition.url+N(e),sr.post=e=>({url:sr.url(e),method:`post`});var cr={check:or,cache:sr},lr={key:1,class:`updates-utility`},ur={key:0,class:`updates-header`},dr={class:`text-2xl font-semibold`},fr=[`loading`],pr={class:`updates-grid`},mr=D(l({__name:`Updates`,setup(e){let{data:n,isSuccess:r}=ke(`updates`,{params:{forceRefresh:!0,includeDetails:!0}}),{execute:i,data:a,isError:o,isSuccess:s}=Ae(cr.cache().url,{method:`post`,immediate:!1});f(r,()=>{r.value&&n.value&&i({updates:n.value,includeDetails:!0})});let l=y(()=>a.value?.allowUpdates??!1),u=y(()=>{let e=a.value?.updates?.cms;return!e||e.releases.length===0&&!e.abandoned?null:e}),d=y(()=>(a.value?.updates?.plugins??[]).filter(e=>e.releases.length>0||e.abandoned)),p=y(()=>u.value!==null||d.value.length>0),h=y(()=>{let e=0;return u.value&&ne(u.value)&&e++,d.value.forEach(t=>{ne(t)&&e++}),e}),ee=y(()=>{let e=[];return u.value&&te(u.value)&&e.push(u.value),d.value.forEach(t=>{te(t)&&e.push(t)}),e}),_=y(()=>t(`{num, plural, =1{# Available Update} other{# Available Updates}}`,{num:h.value}));function te(e){return!(e.status===`phpIssue`||e.status===`expired`||!e.releases.length||e.latestVersion===null)}function ne(e){return!(e.status===`phpIssue`||!e.releases.length||e.latestVersion===null)}let re=E(!1);function ie(){if(ee.value.length===0)return;re.value=!0;let e={},t={};ee.value.forEach(n=>{e[n.handle]=`^${n.latestVersion}`,t[n.handle]=n.packageName}),S.post(Gn.index[`/admin/actions/updater`](),{return:`utilities/updates`,install:e,packageNames:t},{onFinish:()=>{re.value=!1}})}return(e,n)=>x(o)?(g(),M(he,{key:0,icon:`alert-circle`,label:x(t)(`Unable to fetch updates at this time.`)},null,8,[`label`])):x(s)?(g(),j(T,{key:1},[p.value?(g(),j(`div`,lr,[l.value&&ee.value.length>1?(g(),j(`div`,ur,[k(`h1`,dr,O(_.value),1),k(`craft-button`,{type:`button`,variant:`primary`,loading:re.value,onClick:ie},O(x(t)(`Update all`)),9,fr)])):b(``,!0),k(`div`,pr,[u.value?(g(),M(ar,m({key:0},u.value,{"allow-updates":l.value}),null,16,[`allow-updates`])):b(``,!0),(g(!0),j(T,null,c(d.value,e=>(g(),M(ar,m({key:e.handle},{ref_for:!0},e,{"allow-updates":l.value}),null,16,[`allow-updates`]))),128))])])):(g(),M(he,{key:0,icon:`check`,label:x(t)(`You’re all up to date!`)},null,8,[`label`]))],64)):(g(),M(he,{key:2,label:x(t)(`Checking for updates…`)},{graphic:v(()=>[...n[0]||=[k(`craft-spinner`,{style:{"--size":`3rem`},visible:!0},null,-1)]]),_:1},8,[`label`]))}}),[[`__scopeId`,`data-v-b8bbb598`]]),K=e=>({url:K.url(e),method:`post`});K.definition={methods:[`post`],url:`/admin/actions/project-config/rebuild`},K.url=e=>K.definition.url+N(e),K.post=e=>({url:K.url(e),method:`post`});var q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/admin/actions/project-config/diff`},q.url=e=>q.definition.url+N(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var J=e=>({url:J.url(e),method:`post`});J.definition={methods:[`post`],url:`/admin/actions/project-config/discard`},J.url=e=>J.definition.url+N(e),J.post=e=>({url:J.url(e),method:`post`});var Y=e=>({url:Y.url(e),method:`get`});Y.definition={methods:[`get`,`head`],url:`/admin/actions/project-config/download`},Y.url=e=>Y.definition.url+N(e),Y.get=e=>({url:Y.url(e),method:`get`}),Y.head=e=>({url:Y.url(e),method:`head`});var hr={rebuild:K,diff:q,discard:J,download:Y},gr={key:0,class:`diff-loading`},_r={class:`py-2`},vr={key:0,class:`diff-show-all`},yr=20,br=D(l({__name:`ProjectConfigDiff`,props:{invert:{type:Boolean}},setup(e){let n=e,{data:r,isLoading:i}=Ae(hr.diff().url,{params:{invert:n.invert}}),a=E([]),o=E(!1);f(r,e=>{a.value=e.split(/\n/)});function s(){o.value=!0}let l=y(()=>o.value||a.value.length<=yr?a.value:a.value.slice(0,yr)),u=y(()=>a.value.length>yr&&!o.value);return(e,n)=>(g(),M(ve,{variant:`code`,padding:0,class:h({loading:x(i)}),tabindex:`0`},{default:v(()=>[x(i)?(g(),j(`div`,gr,[...n[0]||=[k(`craft-spinner`,{visible:!0,class:`spinner`},null,-1)]])):(g(),j(T,{key:1},[k(`pre`,_r,[(g(!0),j(T,null,c(l.value,(e,t)=>(g(),j(`code`,{key:t,class:h({"diff-line":!0,"diff-line--add":e.startsWith(`+`),"diff-line--remove":e.startsWith(`-`),"diff-line--info":e.startsWith(`@@`)})},O(e),3))),128))]),u.value?(g(),j(`div`,vr,[k(`craft-button`,{type:`button`,variant:`hairline`,size:`lg`,onClick:s},O(x(t)(`Show all changes`)),1)])):b(``,!0)],64))]),_:1},8,[`class`]))}}),[[`__scopeId`,`data-v-d9a5713c`]]);function xr(){let e=E(!1),n=E(!1);function r(){confirm(t(`Are you sure you want to discard the pending project config YAML changes?`))&&(n.value=!0,S.post(hr.discard().url,{},{onFinish:()=>{n.value=!1}}))}async function i(){e.value=!0;try{let e=await o.get(Y().url,{responseType:`blob`}),t=window.URL.createObjectURL(new Blob([e.data])),n=document.createElement(`a`);n.href=t,n.setAttribute(`download`,`project.zip`),document.body.appendChild(n),n.click(),n.remove(),window.URL.revokeObjectURL(t)}catch(e){console.error(`Download failed:`,e)}finally{e.value=!1}}return{isDownloading:e,isDiscarding:n,discardChanges:r,downloadConfig:i}}var Sr=e=>({url:Sr.url(e),method:`post`});Sr.definition={methods:[`post`],url:`/admin/actions/config-sync`},Sr.url=e=>Sr.definition.url+N(e),Sr.post=e=>({url:Sr.url(e),method:`post`});var Cr=e=>({url:Cr.url(e),method:`post`});Cr.definition={methods:[`post`],url:`/admin/actions/config-sync/retry`},Cr.url=e=>Cr.definition.url+N(e),Cr.post=e=>({url:Cr.url(e),method:`post`});var wr=e=>({url:wr.url(e),method:`post`});wr.definition={methods:[`post`],url:`/admin/actions/config-sync/apply-yaml-changes`},wr.url=e=>wr.definition.url+N(e),wr.post=e=>({url:wr.url(e),method:`post`});var Tr=e=>({url:Tr.url(e),method:`post`});Tr.definition={methods:[`post`],url:`/admin/actions/config-sync/regenerate-yaml`},Tr.url=e=>Tr.definition.url+N(e),Tr.post=e=>({url:Tr.url(e),method:`post`});var Er=e=>({url:Er.url(e),method:`post`});Er.definition={methods:[`post`],url:`/admin/actions/config-sync/uninstall-plugin`},Er.url=e=>Er.definition.url+N(e),Er.post=e=>({url:Er.url(e),method:`post`});var Dr=e=>({url:Dr.url(e),method:`post`});Dr.definition={methods:[`post`],url:`/admin/actions/config-sync/install-plugin`},Dr.url=e=>Dr.definition.url+N(e),Dr.post=e=>({url:Dr.url(e),method:`post`});var Or=e=>({url:Or.url(e),method:`post`});Or.definition={methods:[`post`],url:`/admin/actions/config-sync/precheck`},Or.url=e=>Or.definition.url+N(e),Or.post=e=>({url:Or.url(e),method:`post`});var kr=e=>({url:kr.url(e),method:`post`});kr.definition={methods:[`post`],url:`/admin/actions/config-sync/recheck-composer`},kr.url=e=>kr.definition.url+N(e),kr.post=e=>({url:kr.url(e),method:`post`});var Ar=e=>({url:Ar.url(e),method:`post`});Ar.definition={methods:[`post`],url:`/admin/actions/config-sync/composer-install`},Ar.url=e=>Ar.definition.url+N(e),Ar.post=e=>({url:Ar.url(e),method:`post`});var jr=e=>({url:jr.url(e),method:`post`});jr.definition={methods:[`post`],url:`/admin/actions/config-sync/composer-remove`},jr.url=e=>jr.definition.url+N(e),jr.post=e=>({url:jr.url(e),method:`post`});var X=e=>({url:X.url(e),method:`post`});X.definition={methods:[`post`],url:`/admin/actions/config-sync/finish`},X.url=e=>X.definition.url+N(e),X.post=e=>({url:X.url(e),method:`post`});var Mr={index:Sr,retry:Cr,applyYamlChanges:wr,regenerateYaml:Tr,uninstallPlugin:Er,installPlugin:Dr,precheck:Or,recheckComposer:kr,composerInstall:Ar,composerRemove:jr,finish:X},Nr=[`value`],Pr={key:0,type:`hidden`,name:`force`,value:`1`},Fr=[`loading`],Ir=l({__name:`SyncConfigButton`,props:{force:{type:Boolean,default:!1},returnTo:{default:`utilities/project-config`},label:{default:t(`Reapply everything`)}},setup(e){return(t,n)=>(g(),M(x(C),{action:x(Mr).index()},{default:v(({processing:n})=>[k(`input`,{type:`hidden`,name:`return`,value:e.returnTo},null,8,Nr),e.force?(g(),j(`input`,Pr)):b(``,!0),k(`craft-button`,m({type:`submit`,variant:`primary`,loading:n},t.$attrs),[te(t.$slots,`label`,{},()=>[A(O(e.label),1)])],16,Fr)]),_:3},8,[`action`]))}}),Lr={class:`project-config-utility`},Rr={class:`config-section`},zr=[`innerHTML`],Br={class:`mt-3`},Vr=[`innerHTML`],Hr={key:0,class:`buttons`},Ur=[`loading`],Wr={key:1,class:`buttons`},Gr=[`loading`],Kr={variant:`success`,icon:`circle-check`,class:`my-3`},qr={class:`buttons`},Jr={key:1,class:`buttons`},Yr=[`loading`],Xr={class:`config-section`},Zr={class:`buttons`},Qr={class:`flex gap-2 items-center`},$r=[`loading`],ei={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},ti={class:`config-section`},ni={class:`buttons`},ri=[`loading`],ii=D(l({__name:`ProjectConfig`,props:{readOnly:{type:Boolean},invert:{type:Boolean},yamlExists:{type:Boolean},areChangesPending:{type:Boolean},entireConfig:{}},setup(e){let n=e,{isDownloading:r,isDiscarding:i,discardChanges:a,downloadConfig:o}=xr(),s=y(()=>n.yamlExists?n.invert?t(`Update YAML Files`):t(`Apply YAML Changes`):t(`Generate YAML Files`)),c=y(()=>n.yamlExists?n.invert?t(`Update your project config YAML files to reflect the latest changes in the loaded project config.`):t(`Apply changes in your project config YAML files to the loaded project config.`):t(`Save the loaded project config data to YAML files in your {folder} folder.`,{folder:`config/project/`})),l=y(()=>n.invert?t(`Make sure you're not overwriting changes in the YAML files that were made on another environment.`):t(`Make sure you've followed the Environment Setup instructions before applying project config YAML changes.`,{url:`https://craftcms.com/docs/5.x/system/project-config.html#environment-setup`}));return(n,u)=>(g(),j(`div`,Lr,[k(`section`,Rr,[k(`h2`,null,O(s.value),1),k(`p`,{innerHTML:c.value,class:`mb-3`},null,8,zr),k(`div`,Br,[e.yamlExists?(g(),j(T,{key:0},[e.areChangesPending?(g(),j(T,{key:0},[_(br,{invert:e.invert},null,8,[`invert`]),k(`craft-callout`,{variant:`info`,innerHTML:l.value,class:`my-2`},null,8,Vr),e.invert?(g(),j(`div`,Hr,[k(`craft-button`,{type:`button`,variant:`secondary`,loading:x(i),onClick:u[0]||=(...e)=>x(a)&&x(a)(...e)},O(x(t)(`Update YAML files`)),9,Ur),_(Ir,{label:x(t)(`Apply YAML changes`)},null,8,[`label`])])):(g(),j(`div`,Wr,[_(Ir,{label:x(t)(`Apply changes only`),variant:`default`},null,8,[`label`]),_(Ir,{force:!0}),e.readOnly?b(``,!0):(g(),j(`craft-button`,{key:0,type:`button`,loading:x(i),onClick:u[1]||=(...e)=>x(a)&&x(a)(...e)},O(x(t)(`Discard changes`)),9,Gr))]))],64)):(g(),j(T,{key:1},[k(`craft-callout`,Kr,O(x(t)(`There aren't any pending project config changes to apply.`)),1),k(`div`,qr,[_(Ir,{force:!0,label:x(t)(`Reapply everything`)},null,8,[`label`])])],64))],64)):(g(),j(`div`,Jr,[_(x(C),{action:x(J)()},{default:v(({processing:e})=>[k(`craft-button`,{type:`submit`,variant:`secondary`,loading:e},O(x(t)(`Generate`)),9,Yr)]),_:1},8,[`action`])]))])]),e.readOnly?b(``,!0):(g(),j(T,{key:0},[u[3]||=k(`hr`,null,null,-1),k(`section`,Xr,[k(`h2`,null,O(x(t)(`Rebuild the Config`)),1),k(`p`,null,O(x(t)(`Rebuild the project config based on the data stored throughout the database.`)),1),k(`div`,Zr,[_(x(C),{action:x(K)(),method:`post`},{default:v(({processing:e,recentlySuccessful:n})=>[k(`div`,Qr,[k(`craft-button`,{type:`submit`,variant:`default`,loading:e},O(x(t)(`Rebuild`)),9,$r),_(be,null,{default:v(()=>[n?(g(),j(`craft-callout`,ei,O(x(t)(`Config rebuilt.`)),1)):b(``,!0)]),_:2},1024)])]),_:1},8,[`action`])])])],64)),u[5]||=k(`hr`,null,null,-1),k(`section`,ti,[k(`h2`,null,O(x(t)(`Loaded Project Config Data`)),1),_(ve,{variant:`code`,tabindex:`0`,class:`my-3`},{default:v(()=>[k(`pre`,null,[k(`code`,null,O(e.entireConfig),1)])]),_:1}),k(`div`,ni,[k(`craft-button`,{type:`button`,loading:x(r),onClick:u[2]||=(...e)=>x(o)&&x(o)(...e)},[u[4]||=k(`craft-icon`,{name:`download`,slot:`prefix`},null,-1),A(` `+O(x(t)(`Download`)),1)],8,ri)])])]))}}),[[`__scopeId`,`data-v-563599f4`]]),ai={class:`progress-cell`},oi=[`total`,`processed`,`pending`],si=D(l({__name:`SessionProgress`,props:{processedEntries:{},totalEntries:{},pending:{type:Boolean}},setup(e){return(t,n)=>(g(),j(`div`,ai,[k(`craft-progress-bar`,{total:e.totalEntries,processed:e.processedEntries,pending:e.pending,"show-status":``},null,8,oi)]))}}),[[`__scopeId`,`data-v-c5b50a8f`]]),ci={class:`flex gap-1`},li=[`loading`],ui=[`loading`],di=l({__name:`SessionActions`,props:{sessionId:{},actionRequired:{type:Boolean}},emits:[`stop`,`review`],setup(e,{emit:n}){let r=n,i=E(!1),a=E(!1);function o(e){a.value=!0,r(`stop`,e)}function s(e){i.value=!0,r(`review`,e)}return(n,r)=>(g(),j(`div`,ci,[e.actionRequired?(g(),j(`craft-button`,{key:0,type:`button`,size:`small`,loading:i.value,onClick:r[0]||=t=>s(e.sessionId)},O(x(t)(`Review`)),9,li)):b(``,!0),k(`craft-button`,{type:`button`,size:`small`,variant:`danger`,loading:a.value,onClick:r[1]||=t=>o(e.sessionId)},[r[2]||=k(`craft-icon`,{name:`x`,slot:`prefix`},null,-1),A(` `+O(x(t)(`Discard`)),1)],8,ui)]))}}),Z=de(null),fi=E(new Map),pi=E(null),mi=E(null),hi=E(!1),gi=E(!1),_i=E(null),vi=E(!1),yi=!1;function bi(){Z.value&&(fi.value=new Map(Z.value.getSessions().map(e=>[e.id,e])),pi.value=Z.value.getCurrentSessionId())}function xi(){Z.value&&(Z.value.on(`change`,({reviewSessionId:e})=>{if(bi(),hi.value&&mi.value&&!fi.value.has(mi.value.id)&&Pi(),e&&!hi.value){let t=fi.value.get(e);t&&Ni(t)}}),Z.value.on(`error`,({message:e})=>{_i.value=e}),Z.value.on(`complete`,()=>{vi.value=!0}))}var Si=y(()=>Array.from(fi.value.values())),Ci=y(()=>fi.value.size>0),wi=y(()=>Z.value?.isProcessing()??!1),Ti=y(()=>pi.value===null?null:fi.value.get(pi.value)??null),Ei=y(()=>{let e=Ti.value;return!e||e.totalEntries===0?0:Math.round(e.processedEntries/e.totalEntries*100)}),Di=y(()=>{let e=Ti.value;return e?`${e.processedEntries} / ${e.totalEntries}`:null});async function Oi(e){if(!(!Z.value||e.volumes.length===0)){gi.value=!0,vi.value=!1,_i.value=null;try{let t=await Z.value.startIndexing(e);return bi(),t}finally{gi.value=!1}}}function ki(e){Z.value?.stopSession(e)}function Ai(e){Z.value?.getSessionOverview(e)}function ji(e){Z.value?.finishSession(e)}function Mi(e){ki(e)}function Ni(e){hi.value||=(mi.value=e,!0)}function Pi(){hi.value=!1,mi.value=null}function Fi(e={}){if(!yi){let{existingSessions:t=[],maxConcurrentConnections:r,autoResume:i=!0}=e;Z.value=new n({existingSessions:t,maxConcurrentConnections:r,autoResume:i}),xi(),bi(),yi=!0}return{sessions:fi,sessionsArray:Si,currentSessionId:pi,currentSession:Ti,hasSessions:Ci,isProcessing:wi,isStarting:gi,isComplete:vi,lastError:_i,progressPercent:Ei,progressInfo:Di,reviewSession:mi,isReviewOpen:hi,startIndexing:Oi,stopSession:ki,reviewSessionOverview:Ai,finishSession:ji,keepFiles:Mi,openReview:Ni,closeReview:Pi}}var Ii={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Li(e){return e.replace(/[&<>"']/g,e=>Ii[e]??``)}var Ri={class:`grid gap-3`},zi={key:0},Bi={class:`mb-2`},Vi={class:`my-2`},Hi={key:1},Ui=l({__name:`ReviewSessionModal`,props:{isActive:{type:Boolean,default:!1}},setup(e){let{finishSession:n,closeReview:r,reviewSession:i}=Fi(),a=y(()=>i.value?.missingEntries),o=y(()=>a.value?.folders??{}),s=y(()=>a.value?.files??{}),l=y(()=>o.value?Object.keys(o.value).length>0:!1),u=y(()=>s.value?Object.keys(s.value??{}).length>0:!1),d=y(()=>l.value||u.value),f=y(()=>o.value?Object.keys(o.value).map(e=>({label:Li(o.value[e]),value:e})):[]),p=y(()=>s.value?Object.keys(s.value).map(e=>({label:Li(s.value[e]),value:e})):[]),m=re({deleteFolder:[``,...f.value.map(e=>e.value.toString())],deleteAsset:[``,...p.value.map(e=>e.value.toString())]});function h(e,n){return e===`folders`&&i.value?.listEmptyFolders?t(`Missing or empty {items}`,n):t(`Missing {items}`,n)}function ee(e,n){return e===`files`&&i.value?.listEmptyFolders?t(`The following {items} could not be found or are empty. Should they be deleted from the index?`,n):t(`The following {items} could not be found. Should they be deleted from the index?`,n)}async function te(){n({sessionId:i.value.id,deleteFolder:m.deleteFolder?.filter(Boolean),deleteAsset:m.deleteAsset?.filter(Boolean)}),S.visit(F({id:`asset-indexes`}))}return(e,n)=>x(i)?(g(),M(Xe,{key:0,"is-active":!0,onClose:x(r),"reset-label":d.value?x(t)(`Keep them`):void 0,"submit-label":d.value?x(t)(`Delete them`):x(t)(`OK`),onSubmit:te},{default:v(()=>[k(`div`,Ri,[x(i).skippedEntries?(g(),j(`div`,zi,[k(`h2`,Bi,O(x(t)(`Skipped files`)),1),k(`p`,null,O(x(t)(`The following items were not indexed.`)),1),k(`ul`,Vi,[(g(!0),j(T,null,c(x(i).skippedEntries,e=>(g(),j(`li`,{key:e},[k(`code`,null,O(e),1)]))),128))])])):b(``,!0),d.value?(g(),j(`div`,Hi,[l.value?(g(),j(T,{key:0},[k(`h2`,null,O(h(`folders`,{items:`folders`})),1),k(`p`,null,O(ee(`folders`,{items:`folders`})),1),_(Bt,{class:`my-2`,label:x(t)(`Delete folders`),"model-value":m.deleteFolder?.map(String)??[],options:f.value,"allow-select-all":!0},{label:v(({option:e})=>[k(`code`,null,O(e.label),1)]),_:1},8,[`label`,`model-value`,`options`])],64)):b(``,!0),u.value?(g(),j(T,{key:1},[k(`h2`,null,O(h(`files`,{items:`files`})),1),k(`p`,null,O(ee(`files`,{items:`files`})),1),_(Bt,{class:`my-2`,label:x(t)(`Delete assets`),"model-value":m.deleteAsset?.map(String)??[],options:p.value,"allow-select-all":!0},{label:v(({option:e})=>[k(`code`,null,O(e.label),1)]),_:1},8,[`label`,`model-value`,`options`])],64)):b(``,!0)])):b(``,!0)])]),_:1},8,[`onClose`,`reset-label`,`submit-label`])):b(``,!0)}}),Wi={class:``},Gi=l({__name:`SessionVolumes`,props:{value:{}},setup(e){function t(e){let t=JSON.parse(e);return Object.values(t)}return(n,r)=>(g(),j(`ul`,Wi,[(g(!0),j(T,null,c(t(e.value),e=>(g(),j(`li`,{key:e},O(e),1))),128))]))}}),Ki={class:`sessions`},qi={class:`session__label`},Ji={class:`mb-1`},Yi={class:`session__status`},Xi={class:`mb-1`},Zi={class:`session__last-update`},Qi={class:`mb-1`},$i={class:`session__progress`},ea={class:`mb-1`},ta={class:`session__actions`},na=D(l({__name:`IndexingSessions`,setup(e){let{sessionsArray:n,currentSessionId:r,stopSession:i,reviewSessionOverview:a,reviewSession:o}=Fi();return(e,s)=>(g(),j(T,null,[k(`div`,Ki,[(g(!0),j(T,null,c(x(n),e=>(g(),j(`div`,{key:e.id,class:`session`},[k(`div`,qi,[k(`div`,Ji,[k(`strong`,null,O(x(t)(`Volumes being indexed`)),1)]),_(Gi,{value:e.indexedVolumes},null,8,[`value`])]),k(`div`,Yi,[k(`div`,Xi,[k(`strong`,null,O(x(t)(`Status`)),1)]),e.actionRequired?(g(),M(Te,{key:0,variant:`warning`},{default:v(()=>[A(O(x(t)(`Waiting for review`)),1)]),_:1})):e.id===x(r)?(g(),M(Te,{key:1,variant:`success`},{default:v(()=>[A(O(x(t)(`Active`)),1)]),_:1})):(g(),M(Te,{key:2},{default:v(()=>[A(O(x(t)(`Waiting`)),1)]),_:1}))]),k(`div`,Zi,[k(`div`,Qi,[k(`strong`,null,O(x(t)(`Last update`)),1)]),_(Fe,{value:e.dateUpdated.date},null,8,[`value`])]),k(`div`,$i,[k(`div`,ea,[k(`strong`,null,O(x(t)(`Progress`)),1)]),_(si,{"processed-entries":e.processedEntries,"total-entries":e.totalEntries,pending:!e.actionRequired&&e.id!==x(r)},null,8,[`processed-entries`,`total-entries`,`pending`])]),k(`div`,ta,[_(di,{"session-id":e.id,"action-required":e.actionRequired,onStop:s[0]||=e=>x(i)(e),onReview:s[1]||=e=>x(a)(e)},null,8,[`session-id`,`action-required`])])]))),128))]),x(o)?(g(),M(Ui,{key:0})):b(``,!0)],64))}}),[[`__scopeId`,`data-v-8dc6d98c`]]),ra={key:0,class:`p-4`},ia={key:1,class:`p-4`},aa={class:`text-sm mb-2 mt-6`},oa={class:`grid gap-3`},sa=[`label`,`checked`,`disabled`],ca={slot:`help-text`},la=[`label`,`checked`],ua={slot:`help-text`},da={class:`mt-4 flex gap-2 items-center`},fa=[`loading`,`disabled`],pa=l({__name:`AssetIndexes`,props:{existingSessions:{default:()=>[]},volumeOptions:{default:()=>[]},dateFormat:{},isEphemeral:{type:Boolean}},setup(e){let n=e,{hasSessions:r,startIndexing:i,isStarting:a}=Fi({existingSessions:n.existingSessions}),o=re({volumes:[`*`,...n.volumeOptions.map(e=>e.value)],cacheImages:!1,listEmptyFolders:!1});async function s(){await i(o)}return(n,i)=>(g(),j(T,null,[x(r)?(g(),j(`div`,ra,[_(na)])):b(``,!0),e.volumeOptions?(g(),j(`div`,ia,[k(`form`,{onSubmit:ce(s,[`prevent`])},[_(Bt,{name:`volumes[]`,label:x(t)(`Volumes`),modelValue:o.volumes,"onUpdate:modelValue":i[0]||=e=>o.volumes=e,options:e.volumeOptions,"allow-select-all":!0},null,8,[`label`,`modelValue`,`options`]),k(`h2`,aa,O(x(t)(`Options`)),1),k(`div`,oa,[e.isEphemeral?b(``,!0):(g(),j(`craft-switch`,{key:0,name:`cacheImages`,label:x(t)(`Cache remote images`),checked:o.cacheImages,disabled:e.isEphemeral,onChange:i[1]||=e=>o.cacheImages=e.target.checked},[k(`div`,ca,[A(O(x(t)(`Download copies of remote images to the local filesystem.`))+` `,1),e.isEphemeral?(g(),j(T,{key:0},[i[3]||=k(`br`,null,null,-1),k(`em`,null,O(x(t)(`This option is disabled for ephemeral environments.`)),1)],64)):b(``,!0)])],40,sa)),k(`craft-switch`,{name:`listEmptyFolders`,label:x(t)(`List empty folders`),checked:o.listEmptyFolders,onChange:i[2]||=e=>o.listEmptyFolders=e.target.checked},[k(`div`,ua,O(x(t)(`Include empty folders in the review step.`)),1)],40,la)]),k(`div`,da,[k(`craft-button`,{type:`submit`,variant:`primary`,loading:x(a),disabled:o.volumes.length===0},O(x(t)(`Update asset indexes`)),9,fa)])],32)])):b(``,!0)],64))}}),Q=(e,t)=>({url:Q.url(e,t),method:`get`});Q.definition={methods:[`get`,`head`],url:`/admin/system-messages/{key}`},Q.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={key:e}),Array.isArray(e)&&(e={key:e[0]}),e=Oe(e);let n={key:e.key};return Q.definition.url.replace(`{key}`,n.key.toString()).replace(/\/+$/,``)+N(t)},Q.get=(e,t)=>({url:Q.url(e,t),method:`get`}),Q.head=(e,t)=>({url:Q.url(e,t),method:`head`});var $=e=>({url:$.url(e),method:`post`});$.definition={methods:[`post`],url:`/admin/system-messages`},$.url=e=>$.definition.url+N(e),$.post=e=>({url:$.url(e),method:`post`});var ma={show:Q,store:$},ha={class:`flex items-center gap-2`},ga=[`visible`],_a={class:`grid gap-3 w-4xl`},va=[`variant`,`icon`],ya=l({__name:`SystemMessageEditModal`,props:{isActive:{type:Boolean},message:{},locales:{},isMultiSite:{type:Boolean},initialLanguage:{}},emits:[`close`,`save`],setup(e,{emit:n}){let r=e,i=n,{flash:a}=xe(),o=E(null),s=ie({language:r.initialLanguage}),c=y(()=>s.processing),l=ie({key:r.message.key,language:r.initialLanguage,subject:r.message.subject,body:r.message.body});function d(){s.get(ma.show({key:r.message.key}).url,{onSuccess:({message:e})=>{e&&(l.language=e.language,l.subject=e.subject,l.body=e.body)}})}f(()=>r.message,e=>{l.key=e.key,l.subject=e.subject,l.body=e.body,l.language=r.initialLanguage});function p({closeOnSuccess:e=!0}={}){!l.subject.trim()||!l.body.trim()||(o.value=null,l.post($().url,{onHttpException:()=>{o.value={icon:`triangle-exclamation`,message:t(`Failed to save message.`),variant:`danger`}},onSuccess:n=>{i(`save`,{subject:n.subject,body:n.body,language:n.language}),e?(a(`success`,t(`Message saved.`),{duration:-1}),i(`close`)):o.value={icon:`circle-check`,message:t(`Message saved`),variant:`success`}},onError:()=>{o.value={icon:`triangle-exclamation`,message:t(`Failed to save`),variant:`danger`}}}))}function m(){p()}return Ne(`keydown`,e=>{r.isActive&&((e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),m()),(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),p({closeOnSuccess:!1})))}),(n,r)=>{let a=u(`Select`);return g(),M(Xe,{"is-active":e.isActive,title:x(t)(`Edit Message`),loading:x(l).processing,onClose:r[3]||=e=>i(`close`),onSubmit:m},ee({"header-actions":v(()=>[k(`div`,ha,[k(`craft-spinner`,{visible:x(s).processing,style:{"--size":`1rem`}},null,8,ga),_(a,{modelValue:x(s).language,"onUpdate:modelValue":r[0]||=e=>x(s).language=e,options:e.locales,onChange:d},null,8,[`modelValue`,`options`])])]),default:v(()=>[k(`div`,_a,[_(Le,{label:x(t)(`Subject`),"help-text":x(t)(`Evaluated as a twig template, then parsed as markdown.`),modelValue:x(l).subject,"onUpdate:modelValue":r[1]||=e=>x(l).subject=e,class:`w-full`,maxlength:`1000`,required:``,disabled:c.value},null,8,[`label`,`help-text`,`modelValue`,`disabled`]),_(ze,{label:x(t)(`Body`),"help-text":x(t)(`Evaluated as a twig template, then parsed as markdown.`),modelValue:x(l).body,"onUpdate:modelValue":r[2]||=e=>x(l).body=e,class:`w-full`,monospace:``,required:``,disabled:x(s).processing,"max-rows":`25`},null,8,[`label`,`help-text`,`modelValue`,`disabled`])])]),_:2},[o.value?{name:`feedback`,fn:v(()=>[k(`craft-callout`,{variant:o.value.variant,icon:o.value.icon,appearance:`plain`,inline:``,class:`p-0`},O(o.value.message),9,va)]),key:`0`}:void 0]),1032,[`is-active`,`title`,`loading`])}}}),ba={id:`messages`,class:`p-4`},xa={class:`text-lg mb-2`},Sa={class:`font-medium`},Ca=[`onClick`],wa=[`label`],Ta=[`innerHTML`],Ea=D(l({__name:`SystemMessages`,props:{messages:{},locales:{},isMultiSite:{type:Boolean},primaryLanguage:{}},setup(e){let n=e,r=E([...n.messages]),i=E(!1),a=E(null);function o(e){a.value=e,i.value=!0}function s(){i.value=!1,a.value=null}function l(e){if(a.value&&e.language===n.primaryLanguage){let t=r.value.findIndex(e=>e.key===a.value?.key),n=r.value[t];n&&(n.subject=e.subject,n.body=e.body)}}function u(e){return e.replace(/\n/g,`
`)}return(n,d)=>(g(),j(T,null,[k(`div`,ba,[(g(!0),j(T,null,c(r.value,e=>(g(),j(`div`,{key:e.key,class:`mb-6`},[k(`h2`,xa,O(e.heading),1),_(ve,{appearance:`outline`},{title:v(()=>[k(`div`,Sa,O(e.subject),1)]),"header-actions":v(()=>[k(`craft-button`,{type:`button`,icon:``,size:`small`,onClick:t=>o(e)},[k(`craft-icon`,{name:`pencil`,label:x(t)(`Edit message`)},null,8,wa)],8,Ca)]),default:v(()=>[k(`div`,{class:`font-mono text-xs`,innerHTML:u(e.body)},null,8,Ta)]),_:2},1024)]))),128))]),a.value?(g(),M(ya,{key:0,"is-active":i.value,message:a.value,locales:e.locales,"is-multi-site":e.isMultiSite,"initial-language":e.primaryLanguage,onClose:s,onSave:l},null,8,[`is-active`,`message`,`locales`,`is-multi-site`,`initial-language`])):b(``,!0)],64))}}),[[`__scopeId`,`data-v-633bf085`]]),Da=[`disabled`,`loading`],Oa=l({__name:`DeprecationErrorsToolbar`,props:{logs:{},disabled:{type:Boolean}},setup(e){return(n,r)=>(g(),j(`div`,null,[e.logs.length?(g(),M(x(C),{key:0,action:x(R)(),method:`post`},{default:v(({processing:n})=>[k(`craft-button`,{disabled:e.disabled,loading:n,type:`submit`},O(x(t)(`Clear All`)),9,Da)]),_:1},8,[`action`])):b(``,!0)]))}}),ka=[],Aa=[],ja=a.getInstance(),Ma=s.getInstance(),Na={initialConfig:{},get $config(){return ja},get $queue(){return Ma},get $axios(){return o},booted(e){ka.push(e)},booting(e){Aa.push(e)},config(e){this.initialConfig=e},init(){ja.initialize(this.initialConfig),Ma.initialize({runAutomatically:ja.get(`runQueueAutomatically`,!0),enabled:!0,appId:ja.get(`systemUid`,``),canAccessQueueManager:ja.get(`canAccessQueueManager`,!1)}),e(this.initialConfig.translations)},async start(){this.init(),o.defaults.headers.common[`X-Requested-With`]=`XMLHttpRequest`,o.defaults.headers.common[`X-CSRF-TOKEN`]=this.$config.get(`csrfToken`),console.groupCollapsed(`Craft configuration`),console.log(ja.all().entries()),console.groupEnd(),console.log(`Calling booting callbacks`,Aa),Aa.forEach(e=>e(this)),Aa=[],await se({resolve:async(e,t)=>{let n=await Object.assign({"../pages/auth/Login.vue":()=>r(()=>import(`./Login-DDDaMUgL.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),"../pages/graphql/Schemas.vue":()=>r(()=>import(`./Schemas-BLy70nZf.js`),__vite__mapDeps([13,1,2,5,6,7,8,9,14,15,16,17,18,10,11,19,20,21,22,23,24,25]),import.meta.url),"../pages/graphql/Tokens.vue":()=>r(()=>import(`./Tokens-CyRSK-Ze.js`),__vite__mapDeps([26,1,2,5,6,7,8,9,14,15,16,17,18,10,11,19,20,21,22,23,24,25]),import.meta.url),"../pages/install/Install.vue":()=>r(()=>import(`./Install-emtubhmm.js`),__vite__mapDeps([27,1,2,5,6,7,8,9,18,28,15,29,30,23,24,11,31,32,33,34,35,36]),import.meta.url),"../pages/settings/Email.vue":()=>r(()=>import(`./Email-WVti_EFw.js`),__vite__mapDeps([37,1,2,5,6,7,8,9,14,15,16,28,38,33,34,35,11,17,18,10,19,20,21,23,24,32,39]),import.meta.url),"../pages/settings/EntryTypes.vue":()=>r(()=>import(`./EntryTypes-CA-sYX3b.js`),__vite__mapDeps([40,1,2,5,6,7,8,9,14,15,16,41,11,17,18,10,19,20,21,22,42,23,24,25,43,28]),import.meta.url),"../pages/settings/Fields.vue":()=>r(()=>import(`./Fields-Djac0wji.js`),__vite__mapDeps([44,1,2,5,6,7,8,9,14,15,16,17,18,10,11,19,20,21,23,24,25,43,28]),import.meta.url),"../pages/settings/Filesystems.vue":()=>r(()=>import(`./Filesystems-DsZ_Ehcq.js`),__vite__mapDeps([45,1,2,5,6,7,8,9,14,15,16,17,18,10,11,19,20,21,22,23,24,25]),import.meta.url),"../pages/settings/General.vue":()=>r(()=>import(`./General-nAzSbgX4.js`),__vite__mapDeps([46,1,2,5,6,7,8,9,28,17,18,10,11,19,20,21,23,24,32,33,34,35,47,39,48]),import.meta.url),"../pages/settings/ImageTransforms.vue":()=>r(()=>import(`./ImageTransforms-Ax093kIy.js`),__vite__mapDeps([49,1,2,5,6,7,8,9,14,15,16,50,11,19,20,22,51,18,17,10,21,52,25]),import.meta.url),"../pages/settings/Index.vue":()=>r(()=>import(`./Index-NUa2WAIV.js`),__vite__mapDeps([53,1,2,5,6,7,8,9,17,18,10,11,19,20,21,54]),import.meta.url),"../pages/settings/Plugins.vue":()=>r(()=>import(`./Plugins-DDg9MFlY.js`),__vite__mapDeps([55,1,2,5,6,7,8,9,14,15,16,28,17,18,10,11,19,20,21,56,22,23,24,31,57]),import.meta.url),"../pages/settings/Sections.vue":()=>r(()=>import(`./Sections-BVXFuCXm.js`),__vite__mapDeps([58,1,2,14,5,6,7,8,9,15,16,59,11,17,18,10,19,20,21,22,23,24,43,28]),import.meta.url),"../pages/settings/SectionsEdit.vue":()=>r(()=>import(`./SectionsEdit-cP3lMw5k.js`),__vite__mapDeps([60,1,2,5,6,7,8,9,14,15,16,28,61,38,33,34,35,11,41,59,17,18,10,19,20,21,23,24,62,25,39,63]),import.meta.url),"../pages/settings/Sites.vue":()=>r(()=>import(`./Sites-CxXFwdEZ.js`),__vite__mapDeps([64,1,2,5,6,7,8,9,14,15,16,33,34,35,65,66,29,18,30,23,24,11,17,10,19,20,21,56,22,51,52,67]),import.meta.url),"../pages/settings/SitesEdit.vue":()=>r(()=>import(`./SitesEdit--YS2Khfk.js`),__vite__mapDeps([68,1,2,5,6,7,8,9,18,65,66,29,30,23,24,11,17,10,19,20,21,56,62,32,33,34,35,47,39]),import.meta.url),"../pages/settings/UserGroups.vue":()=>r(()=>import(`./UserGroups-D9CUs3uK.js`),__vite__mapDeps([69,1,2,5,6,7,8,9,14,15,16,70,11,19,20,22,51,18,17,10,21,52,25]),import.meta.url),"../pages/settings/UserGroupsEdit.vue":()=>r(()=>import(`./UserGroupsEdit-CMxBtHZ1.js`),__vite__mapDeps([71,1,2,5,6,7,8,9,72,28,61,70,11,17,18,10,19,20,21,23,24,39,73]),import.meta.url),"../pages/settings/Volumes.vue":()=>r(()=>import(`./Volumes-BfjPXiYZ.js`),__vite__mapDeps([74,1,2,5,6,7,8,9,14,15,16,50,11,19,20,22,51,18,17,10,21,52,25]),import.meta.url),"../pages/updater/Index.vue":()=>r(()=>import(`./Index-DEM1d6FZ.js`),__vite__mapDeps([75,1,2,5,6,7,8,9,76]),import.meta.url),"../pages/utilities/Show.vue":()=>r(()=>import(`./Show-DceyZwJu.js`),__vite__mapDeps([77,1,2,19,20,42,51,5,6,7,8,9,18,17,10,11,21,52]),import.meta.url)})[`../pages/${e}.vue`]?.();if(!n)throw Error(`Page not found: ${e}`);return n.default??n},withApp(e){e.provide(mt,Ma),e.provide(ht,o),e.provide(gt,ja),e.component(`QueueManager`,_t),e.component(`QueueManagerToolbar`,Ct),e.component(`DeprecationErrors`,jt),e.component(`DeprecationErrorsToolbar`,Oa),e.component(`ClearCaches`,Qt),e.component(`FindReplace`,an),e.component(`DatabaseBackup`,dn),e.component(`Migrations`,pn),e.component(`Updates`,mr),e.component(`ProjectConfig`,ii),e.component(`AssetIndexes`,pa),e.component(`SystemMessages`,Ea)}}),Pa(),console.log(`Calling booted callbacks`,ka),ka.forEach(e=>e(this)),ka=[]}};function Pa(){let e=``;S.on(`start`,t=>{let n=t.detail.visit;n.prefetch||n.async||n.method!==`get`||(e=n.url.href)}),S.on(`finish`,t=>{let n=t.detail.visit;e===n.url.href&&(e=``)}),S.on(`httpException`,t=>{let n=t.detail.response,r=[200,302,301].includes(n.status)&&n.headers[`content-type`]?.includes(`text/html`);n.headers[`x-redirect`]&&(e=n.headers[`x-redirect`]),!(!e||!r)&&(t.preventDefault(),window.location.assign(e))})}export{Na as t}; \ No newline at end of file diff --git a/resources/build/assets/cp-DdGjhisW.js b/resources/build/assets/cp-C98QgSGF.js similarity index 98% rename from resources/build/assets/cp-DdGjhisW.js rename to resources/build/assets/cp-C98QgSGF.js index ea2faefb51a..3f04b832917 100644 --- a/resources/build/assets/cp-DdGjhisW.js +++ b/resources/build/assets/cp-C98QgSGF.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bg-BG-Da4qCczb.js","./bg-CDEegjzB.js","./cs-CZ-b3YP2kcH.js","./cs-Bj-cDA9C.js","./de-DE-ZRMhM0av.js","./de-Doya6njT.js","./en-AU-DmaPitM1.js","./en-BIhU5iWO.js","./en-GB-D44_nh16.js","./en-US-CEV1dmto.js","./es-ES-DG0uYupn.js","./es-B-cb9H6I.js","./fr-FR-CFWJdx8Q.js","./fr-Ido_b_59.js","./fr-BE-BAls0n65.js","./hu-HU-Co0UcOOY.js","./hu-CQA-7SNA.js","./it-IT-BHKQIgWt.js","./it-ulAm0Ax6.js","./nl-BE-p9yqJgZE.js","./nl-B8zUicXa.js","./nl-NL-BoVLJUmO.js","./pl-PL-CY9kv1vI.js","./pl-Dbzem9IS.js","./ro-RO-DVMA5zOp.js","./ro-nljakKKa.js","./ru-RU-Bj0Tc3A0.js","./ru-CT0saDhS.js","./sk-SK-DG82L6Pb.js","./sk-CkoCVeDz.js","./tr-TR-BSGg2_QT.js","./tr-Dbj7368p.js","./uk-UA-DZ6TOQ5J.js","./uk-B4GDYLoN.js","./bg-BG-u3cJ95GX.js","./bg-DVAt4mMM.js","./cs-CZ-9sFOxkts.js","./cs-KkLzX48H.js","./de-DE-CIMdv8f6.js","./de-DhdzYgDX.js","./en-AU-0aojkls-.js","./en-D-QE6lBK.js","./en-GB-sn6gnIya.js","./en-US-BTdpWnpk.js","./es-ES-Dzj4NbGF.js","./es-hgWagEOk.js","./fr-FR-GN4Rt546.js","./fr-Cg3-CoZB.js","./fr-BE-EJM9hhPv.js","./hu-HU-Qv5-Jgp4.js","./hu-BIPbBjml.js","./id-ID-BzIMhDGH.js","./id-CDhftYdq.js","./it-IT-6fZOiAyG.js","./it-DRT4TxsG.js","./nl-BE-BW_USGqC.js","./nl-CIJ3FZXF.js","./nl-NL-Des6WdvY.js","./pl-PL-D5U0zG-1.js","./pl-f1HGlNb7.js","./ro-RO-BLdVT5g8.js","./ro-BTHP4lJy.js","./ru-RU-BoEZxKBD.js","./ru-CkobGLrw.js","./sk-SK-DHzKt8su.js","./sk-DiGiynX5.js","./uk-UA-DUGvsHaY.js","./uk-Cxpw6UDZ.js"])))=>i.map(i=>d[i]); -import{n as e}from"./rolldown-runtime-tcWNtVWY.js";import{a as t,i as n,l as r,n as i,o as a,r as o,s}from"./nav-item-ixoxjtrg-BwccWdU9.js";import{a as c,c as l,d as u,f as d,i as f,n as p,r as m,t as h}from"./lit-BpPOIUnZ.js";import{a as g,i as _,o as v,r as y,t as b}from"./decorators-BOwDFZC2.js";import"./nav-list.ts-DFQCq34g.js";var x={Pending:1,Reserved:2,Done:3,Failed:4,Delayed:5,Cancelled:6},S={Default:`default`,Success:`success`,Warning:`warning`,Danger:`danger`,Info:`info`},C={Accent:`accent`,OutlineFill:`outline-fill`,Fill:`fill`,Outline:`outline`,Plain:`plain`},w={Idle:`idle`,Loading:`loading`,Success:`success`,Error:`error`};function ee(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function T(e,t,n){ee(e,t),t.set(e,n)}function E(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function D(e,t,n){return e.set(E(e,t),n),n}function O(e,t){return e.get(E(e,t))}function te(e,t){ee(e,t),t.add(e)}var ne=new WeakMap,re=new WeakSet,ie=class e{constructor(){te(this,re),T(this,ne,new Map)}static getInstance(t={}){return oe._||=new e,oe._}static resetInstance(){oe._&&=null}initialize(e={}){D(ne,this,new Map(Object.entries(e)))}getCpUrl(e){return E(re,this,ae).call(this,O(ne,this).get(`cpUrl`),e)}getActionUrl(e){return E(re,this,ae).call(this,O(ne,this).get(`actionUrl`),e)}all(){return O(ne,this)}set(e,t){O(ne,this).set(e,t)}get(e,t=null){return O(ne,this).has(e)?O(ne,this).get(e):t}};function ae(e,t){let n=new URL(e),r=t.startsWith(`/`)?t.slice(1):t;return n.pathname=`${n.pathname}/${r}`,n.toString()}var oe={_:null};function se(e,t){return function(){return e.apply(t,arguments)}}var{toString:ce}=Object.prototype,{getPrototypeOf:le}=Object,{iterator:ue,toStringTag:de}=Symbol,fe=(e=>t=>{let n=ce.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pe=e=>(e=e.toLowerCase(),t=>fe(t)===e),me=e=>t=>typeof t===e,{isArray:he}=Array,ge=me(`undefined`);function _e(e){return e!==null&&!ge(e)&&e.constructor!==null&&!ge(e.constructor)&&xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var ve=pe(`ArrayBuffer`);function ye(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ve(e.buffer),t}var be=me(`string`),xe=me(`function`),Se=me(`number`),Ce=e=>typeof e==`object`&&!!e,we=e=>e===!0||e===!1,Te=e=>{if(fe(e)!==`object`)return!1;let t=le(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(de in e)&&!(ue in e)},Ee=e=>{if(!Ce(e)||_e(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},De=pe(`Date`),Oe=pe(`File`),ke=e=>!!(e&&e.uri!==void 0),Ae=e=>e&&e.getParts!==void 0,je=pe(`Blob`),Me=pe(`FileList`),Ne=e=>Ce(e)&&xe(e.pipe);function Pe(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var Fe=Pe(),Ie=Fe.FormData===void 0?void 0:Fe.FormData,Le=e=>{if(!e)return!1;if(Ie&&e instanceof Ie)return!0;let t=le(e);if(!t||t===Object.prototype||!xe(e.append))return!1;let n=fe(e);return n===`formdata`||n===`object`&&xe(e.toString)&&e.toString()===`[object FormData]`},Re=pe(`URLSearchParams`),[ze,Be,Ve,He]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(pe),Ue=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function We(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),he(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}var Ke=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,qe=e=>!ge(e)&&e!==Ke;function Je(){let{caseless:e,skipUndefined:t}=qe(this)&&this||{},n={},r=(r,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=e&&Ge(n,i)||i;Te(n[a])&&Te(r)?n[a]=Je(n[a],r):Te(r)?n[a]=Je({},r):he(r)?n[a]=r.slice():(!t||!ge(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e(We(t,(t,r)=>{n&&xe(t)?Object.defineProperty(e,r,{value:se(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Xe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ze=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},Qe=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&le(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},et=e=>{if(!e)return null;if(he(e))return e;let t=e.length;if(!Se(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},tt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&le(Uint8Array)),nt=(e,t)=>{let n=(e&&e[ue]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},rt=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},it=pe(`HTMLFormElement`),at=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),ot=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),st=pe(`RegExp`),ct=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};We(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},lt=e=>{ct(e,(t,n)=>{if(xe(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(xe(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},ut=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return he(e)?r(e):r(String(e).split(t)),n},dt=()=>{},ft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pt(e){return!!(e&&xe(e.append)&&e[de]===`FormData`&&e[ue])}var mt=e=>{let t=Array(10),n=(e,r)=>{if(Ce(e)){if(t.indexOf(e)>=0)return;if(_e(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=he(e)?[]:{};return We(e,(e,t)=>{let a=n(e,r+1);!ge(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},ht=pe(`AsyncFunction`),gt=e=>e&&(Ce(e)||xe(e))&&xe(e.then)&&xe(e.catch),_t=((e,t)=>e?setImmediate:t?((e,t)=>(Ke.addEventListener(`message`,({source:n,data:r})=>{n===Ke&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Ke.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,xe(Ke.postMessage)),k={isArray:he,isArrayBuffer:ve,isBuffer:_e,isFormData:Le,isArrayBufferView:ye,isString:be,isNumber:Se,isBoolean:we,isObject:Ce,isPlainObject:Te,isEmptyObject:Ee,isReadableStream:ze,isRequest:Be,isResponse:Ve,isHeaders:He,isUndefined:ge,isDate:De,isFile:Oe,isReactNativeBlob:ke,isReactNative:Ae,isBlob:je,isRegExp:st,isFunction:xe,isStream:Ne,isURLSearchParams:Re,isTypedArray:tt,isFileList:Me,forEach:We,merge:Je,extend:Ye,trim:Ue,stripBOM:Xe,inherits:Ze,toFlatObject:Qe,kindOf:fe,kindOfTest:pe,endsWith:$e,toArray:et,forEachEntry:nt,matchAll:rt,isHTMLForm:it,hasOwnProperty:ot,hasOwnProp:ot,reduceDescriptors:ct,freezeMethods:lt,toObjectSet:ut,toCamelCase:at,noop:dt,toFiniteNumber:ft,findKey:Ge,global:Ke,isContextDefined:qe,isSpecCompliantForm:pt,toJSONObject:mt,isAsyncFn:ht,isThenable:gt,setImmediate:_t,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(Ke):typeof process<`u`&&process.nextTick||_t,isIterable:e=>e!=null&&xe(e[ue])},A=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.status}}};A.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,A.ERR_BAD_OPTION=`ERR_BAD_OPTION`,A.ECONNABORTED=`ECONNABORTED`,A.ETIMEDOUT=`ETIMEDOUT`,A.ERR_NETWORK=`ERR_NETWORK`,A.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,A.ERR_DEPRECATED=`ERR_DEPRECATED`,A.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,A.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,A.ERR_CANCELED=`ERR_CANCELED`,A.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,A.ERR_INVALID_URL=`ERR_INVALID_URL`,A.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function vt(e){return k.isPlainObject(e)||k.isArray(e)}function yt(e){return k.endsWith(e,`[]`)?e.slice(0,-2):e}function bt(e,t,n){return e?e.concat(t).map(function(e,t){return e=yt(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function xt(e){return k.isArray(e)&&!e.some(vt)}var St=k.toFlatObject(k,{},null,function(e){return/^is[A-Z]/.test(e)});function Ct(e,t,n){if(!k.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!k.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&k.isSpecCompliantForm(t);if(!k.isFunction(i))throw TypeError(`visitor must be a function`);function u(e){if(e===null)return``;if(k.isDate(e))return e.toISOString();if(k.isBoolean(e))return e.toString();if(!l&&k.isBlob(e))throw new A(`Blob is not supported. Use a Buffer instead.`);return k.isArrayBuffer(e)||k.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function d(e,n,i){let s=e;if(k.isReactNative(t)&&k.isReactNativeBlob(e))return t.append(bt(i,n,a),u(e)),!1;if(e&&!i&&typeof e==`object`){if(k.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(k.isArray(e)&&xt(e)||(k.isFileList(e)||k.endsWith(n,`[]`))&&(s=k.toArray(e)))return n=yt(n),s.forEach(function(e,r){!(k.isUndefined(e)||e===null)&&t.append(o===!0?bt([n],r,a):o===null?n:n+`[]`,u(e))}),!1}return vt(e)?!0:(t.append(bt(i,n,a),u(e)),!1)}let f=[],p=Object.assign(St,{defaultVisitor:d,convertValue:u,isVisitable:vt});function m(e,n,r=0){if(!k.isUndefined(e)){if(r>c)throw new A(`Object is too deeply nested (`+r+` levels). Max depth: `+c,A.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));f.push(e),k.forEach(e,function(e,a){(!(k.isUndefined(e)||e===null)&&i.call(t,e,k.isString(a)?a.trim():a,n,p))===!0&&m(e,n?n.concat(a):[a],r+1)}),f.pop()}}if(!k.isObject(e))throw TypeError(`data must be an object`);return m(e),t}function wt(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Tt(e,t){this._pairs=[],e&&Ct(e,this,t)}var Et=Tt.prototype;Et.append=function(e,t){this._pairs.push([e,t])},Et.toString=function(e){let t=e?function(t){return e.call(this,t,wt)}:wt;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Dt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Ot(e,t,n){if(!t)return e;let r=n&&n.encode||Dt,i=k.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):k.isURLSearchParams(t)?t.toString():new Tt(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var kt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){k.forEach(this.handlers,function(t){t!==null&&e(t)})}},At={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},jt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Tt,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Mt=e({hasBrowserEnv:()=>Nt,hasStandardBrowserEnv:()=>Ft,hasStandardBrowserWebWorkerEnv:()=>It,navigator:()=>Pt,origin:()=>Lt}),Nt=typeof window<`u`&&typeof document<`u`,Pt=typeof navigator==`object`&&navigator||void 0,Ft=Nt&&(!Pt||[`ReactNative`,`NativeScript`,`NS`].indexOf(Pt.product)<0),It=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Lt=Nt&&window.location.href||`http://localhost`,Rt={...Mt,...jt};function zt(e,t){return Ct(e,new Rt.classes.URLSearchParams,{visitor:function(e,t,n,r){return Rt.isNode&&k.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Bt(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Vt(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r=e.length;return a=!a&&k.isArray(r)?r.length:a,s?(k.hasOwnProp(r,a)?r[a]=k.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!r[a]||!k.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&k.isArray(r[a])&&(r[a]=Vt(r[a])),!o)}if(k.isFormData(e)&&k.isFunction(e.entries)){let n={};return k.forEachEntry(e,(e,r)=>{t(Bt(e),r,n,0)}),n}return null}var Ut=(e,t)=>e!=null&&k.hasOwnProp(e,t)?e[t]:void 0;function Wt(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Gt={transitional:At,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=k.isObject(e);if(i&&k.isHTMLForm(e)&&(e=new FormData(e)),k.isFormData(e))return r?JSON.stringify(Ht(e)):e;if(k.isArrayBuffer(e)||k.isBuffer(e)||k.isStream(e)||k.isFile(e)||k.isBlob(e)||k.isReadableStream(e))return e;if(k.isArrayBufferView(e))return e.buffer;if(k.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Ut(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return zt(e,t).toString();if((a=k.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Ut(this,`env`),r=n&&n.FormData;return Ct(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Wt(e)):e}],transformResponse:[function(e){let t=Ut(this,`transitional`)||Gt.transitional,n=t&&t.forcedJSONParsing,r=Ut(this,`responseType`),i=r===`json`;if(k.isResponse(e)||k.isReadableStream(e))return e;if(e&&k.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Ut(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?A.from(e,A.ERR_BAD_RESPONSE,this,null,Ut(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};k.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{Gt.headers[e]={}});var Kt=k.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),qt=e=>{let t={},n,r,i;return e&&e.split(` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bg-BG-iL3vNu9Q.js","./bg-CucplSWx.js","./cs-CZ-BAE2BH7l.js","./cs--qUy3Nx2.js","./de-DE-DBN8SwtY.js","./de-sehBmv7c.js","./en-AU-DHX_5VkQ.js","./en-B-uUj7O3.js","./en-GB-DUpHw4ei.js","./en-US-LrMUjqot.js","./es-ES-CQxJyn1D.js","./es-DALklOq9.js","./fr-FR-Cu-l_ZvJ.js","./fr-dxwGobgP.js","./fr-BE-C_qRltXX.js","./hu-HU-BsO26ISI.js","./hu-DNmHAHEu.js","./it-IT-CS-Jef5h.js","./it-BACnFsF3.js","./nl-BE-Bj9JCY-9.js","./nl-CQYIOSZc.js","./nl-NL-JOIOuXJK.js","./pl-PL-B4pUA187.js","./pl-DXJ3oGk6.js","./ro-RO-Czws9hhG.js","./ro-CbWqT7lY.js","./ru-RU-BA31zApc.js","./ru-BEbYVW_P.js","./sk-SK-CHxWAjlR.js","./sk-DNRkarje.js","./tr-TR-1VgN_SpE.js","./tr-CxH_O2El.js","./uk-UA-DgqiT9GI.js","./uk-5I7buBCW.js","./bg-BG-B6w8-6X8.js","./bg-D_zEfyY_.js","./cs-CZ-DRv5RrjN.js","./cs-Cpy-3YbT.js","./de-DE-cjRBmNkb.js","./de-huZNhxdz.js","./en-AU-Ze2DRyrf.js","./en-Do9-hg_L.js","./en-GB-C5p3DSVr.js","./en-US-CFEtoz7t.js","./es-ES-EnSLn2df.js","./es-CV5LFjER.js","./fr-FR-CNlDcBtl.js","./fr-Dxyx6tzH.js","./fr-BE-DUFRsltW.js","./hu-HU-B6I4wkFH.js","./hu-C0DfNJNP.js","./id-ID-Fwir59fE.js","./id-KMg-nMT_.js","./it-IT-CG4En0J7.js","./it-CCSfcJjN.js","./nl-BE-AqjyE0wx.js","./nl-DkO29h75.js","./nl-NL-DuEiOvyw.js","./pl-PL-CVSvGMbf.js","./pl-6aasCQed.js","./ro-RO-CYPGn6-Q.js","./ro-Vin-pOvN.js","./ru-RU-B2XNx0n2.js","./ru-D4hAPORs.js","./sk-SK-CF-oEA2E.js","./sk-BT3NaDJE.js","./uk-UA-D-lNHWaa.js","./uk-YdkXUUsn.js"])))=>i.map(i=>d[i]); +import{n as e}from"./rolldown-runtime-DXc-PV0M.js";import{a as t,i as n,l as r,n as i,o as a,r as o,s}from"./nav-item-CDlDuMpT-DENemU4x.js";import{a as c,c as l,d as u,f as d,i as f,n as p,r as m,t as h}from"./lit-BpPOIUnZ.js";import{a as g,i as _,o as v,r as y,t as b}from"./decorators-BOwDFZC2.js";import"./nav-list.ts-DjsniC4m.js";var x={Pending:1,Reserved:2,Done:3,Failed:4,Delayed:5,Cancelled:6},S={Default:`default`,Success:`success`,Warning:`warning`,Danger:`danger`,Info:`info`},C={Accent:`accent`,OutlineFill:`outline-fill`,Fill:`fill`,Outline:`outline`,Plain:`plain`},w={Idle:`idle`,Loading:`loading`,Success:`success`,Error:`error`};function ee(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function T(e,t,n){ee(e,t),t.set(e,n)}function E(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function D(e,t,n){return e.set(E(e,t),n),n}function O(e,t){return e.get(E(e,t))}function te(e,t){ee(e,t),t.add(e)}var ne=new WeakMap,re=new WeakSet,ie=class e{constructor(){te(this,re),T(this,ne,new Map)}static getInstance(t={}){return oe._||=new e,oe._}static resetInstance(){oe._&&=null}initialize(e={}){D(ne,this,new Map(Object.entries(e)))}getCpUrl(e){return E(re,this,ae).call(this,O(ne,this).get(`cpUrl`),e)}getActionUrl(e){return E(re,this,ae).call(this,O(ne,this).get(`actionUrl`),e)}all(){return O(ne,this)}set(e,t){O(ne,this).set(e,t)}get(e,t=null){return O(ne,this).has(e)?O(ne,this).get(e):t}};function ae(e,t){let n=new URL(e),r=t.startsWith(`/`)?t.slice(1):t;return n.pathname=`${n.pathname}/${r}`,n.toString()}var oe={_:null};function se(e,t){return function(){return e.apply(t,arguments)}}var{toString:ce}=Object.prototype,{getPrototypeOf:le}=Object,{iterator:ue,toStringTag:de}=Symbol,fe=(e=>t=>{let n=ce.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pe=e=>(e=e.toLowerCase(),t=>fe(t)===e),me=e=>t=>typeof t===e,{isArray:he}=Array,ge=me(`undefined`);function _e(e){return e!==null&&!ge(e)&&e.constructor!==null&&!ge(e.constructor)&&xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var ve=pe(`ArrayBuffer`);function ye(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ve(e.buffer),t}var be=me(`string`),xe=me(`function`),Se=me(`number`),Ce=e=>typeof e==`object`&&!!e,we=e=>e===!0||e===!1,Te=e=>{if(fe(e)!==`object`)return!1;let t=le(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(de in e)&&!(ue in e)},Ee=e=>{if(!Ce(e)||_e(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},De=pe(`Date`),Oe=pe(`File`),ke=e=>!!(e&&e.uri!==void 0),Ae=e=>e&&e.getParts!==void 0,je=pe(`Blob`),Me=pe(`FileList`),Ne=e=>Ce(e)&&xe(e.pipe);function Pe(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var Fe=Pe(),Ie=Fe.FormData===void 0?void 0:Fe.FormData,Le=e=>{if(!e)return!1;if(Ie&&e instanceof Ie)return!0;let t=le(e);if(!t||t===Object.prototype||!xe(e.append))return!1;let n=fe(e);return n===`formdata`||n===`object`&&xe(e.toString)&&e.toString()===`[object FormData]`},Re=pe(`URLSearchParams`),[ze,Be,Ve,He]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(pe),Ue=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function We(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),he(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}var Ke=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,qe=e=>!ge(e)&&e!==Ke;function Je(){let{caseless:e,skipUndefined:t}=qe(this)&&this||{},n={},r=(r,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=e&&Ge(n,i)||i;Te(n[a])&&Te(r)?n[a]=Je(n[a],r):Te(r)?n[a]=Je({},r):he(r)?n[a]=r.slice():(!t||!ge(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e (We(t,(t,r)=>{n&&xe(t)?Object.defineProperty(e,r,{value:se(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Xe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ze=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},Qe=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&le(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},et=e=>{if(!e)return null;if(he(e))return e;let t=e.length;if(!Se(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},tt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&le(Uint8Array)),nt=(e,t)=>{let n=(e&&e[ue]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},rt=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},it=pe(`HTMLFormElement`),at=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),ot=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),st=pe(`RegExp`),ct=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};We(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},lt=e=>{ct(e,(t,n)=>{if(xe(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(xe(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},ut=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return he(e)?r(e):r(String(e).split(t)),n},dt=()=>{},ft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pt(e){return!!(e&&xe(e.append)&&e[de]===`FormData`&&e[ue])}var mt=e=>{let t=Array(10),n=(e,r)=>{if(Ce(e)){if(t.indexOf(e)>=0)return;if(_e(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=he(e)?[]:{};return We(e,(e,t)=>{let a=n(e,r+1);!ge(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},ht=pe(`AsyncFunction`),gt=e=>e&&(Ce(e)||xe(e))&&xe(e.then)&&xe(e.catch),_t=((e,t)=>e?setImmediate:t?((e,t)=>(Ke.addEventListener(`message`,({source:n,data:r})=>{n===Ke&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Ke.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,xe(Ke.postMessage)),k={isArray:he,isArrayBuffer:ve,isBuffer:_e,isFormData:Le,isArrayBufferView:ye,isString:be,isNumber:Se,isBoolean:we,isObject:Ce,isPlainObject:Te,isEmptyObject:Ee,isReadableStream:ze,isRequest:Be,isResponse:Ve,isHeaders:He,isUndefined:ge,isDate:De,isFile:Oe,isReactNativeBlob:ke,isReactNative:Ae,isBlob:je,isRegExp:st,isFunction:xe,isStream:Ne,isURLSearchParams:Re,isTypedArray:tt,isFileList:Me,forEach:We,merge:Je,extend:Ye,trim:Ue,stripBOM:Xe,inherits:Ze,toFlatObject:Qe,kindOf:fe,kindOfTest:pe,endsWith:$e,toArray:et,forEachEntry:nt,matchAll:rt,isHTMLForm:it,hasOwnProperty:ot,hasOwnProp:ot,reduceDescriptors:ct,freezeMethods:lt,toObjectSet:ut,toCamelCase:at,noop:dt,toFiniteNumber:ft,findKey:Ge,global:Ke,isContextDefined:qe,isSpecCompliantForm:pt,toJSONObject:mt,isAsyncFn:ht,isThenable:gt,setImmediate:_t,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(Ke):typeof process<`u`&&process.nextTick||_t,isIterable:e=>e!=null&&xe(e[ue])},A=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.status}}};A.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,A.ERR_BAD_OPTION=`ERR_BAD_OPTION`,A.ECONNABORTED=`ECONNABORTED`,A.ETIMEDOUT=`ETIMEDOUT`,A.ERR_NETWORK=`ERR_NETWORK`,A.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,A.ERR_DEPRECATED=`ERR_DEPRECATED`,A.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,A.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,A.ERR_CANCELED=`ERR_CANCELED`,A.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,A.ERR_INVALID_URL=`ERR_INVALID_URL`,A.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function vt(e){return k.isPlainObject(e)||k.isArray(e)}function yt(e){return k.endsWith(e,`[]`)?e.slice(0,-2):e}function bt(e,t,n){return e?e.concat(t).map(function(e,t){return e=yt(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function xt(e){return k.isArray(e)&&!e.some(vt)}var St=k.toFlatObject(k,{},null,function(e){return/^is[A-Z]/.test(e)});function Ct(e,t,n){if(!k.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!k.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&k.isSpecCompliantForm(t);if(!k.isFunction(i))throw TypeError(`visitor must be a function`);function u(e){if(e===null)return``;if(k.isDate(e))return e.toISOString();if(k.isBoolean(e))return e.toString();if(!l&&k.isBlob(e))throw new A(`Blob is not supported. Use a Buffer instead.`);return k.isArrayBuffer(e)||k.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function d(e,n,i){let s=e;if(k.isReactNative(t)&&k.isReactNativeBlob(e))return t.append(bt(i,n,a),u(e)),!1;if(e&&!i&&typeof e==`object`){if(k.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(k.isArray(e)&&xt(e)||(k.isFileList(e)||k.endsWith(n,`[]`))&&(s=k.toArray(e)))return n=yt(n),s.forEach(function(e,r){!(k.isUndefined(e)||e===null)&&t.append(o===!0?bt([n],r,a):o===null?n:n+`[]`,u(e))}),!1}return vt(e)?!0:(t.append(bt(i,n,a),u(e)),!1)}let f=[],p=Object.assign(St,{defaultVisitor:d,convertValue:u,isVisitable:vt});function m(e,n,r=0){if(!k.isUndefined(e)){if(r>c)throw new A(`Object is too deeply nested (`+r+` levels). Max depth: `+c,A.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));f.push(e),k.forEach(e,function(e,a){(!(k.isUndefined(e)||e===null)&&i.call(t,e,k.isString(a)?a.trim():a,n,p))===!0&&m(e,n?n.concat(a):[a],r+1)}),f.pop()}}if(!k.isObject(e))throw TypeError(`data must be an object`);return m(e),t}function wt(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Tt(e,t){this._pairs=[],e&&Ct(e,this,t)}var Et=Tt.prototype;Et.append=function(e,t){this._pairs.push([e,t])},Et.toString=function(e){let t=e?function(t){return e.call(this,t,wt)}:wt;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Dt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Ot(e,t,n){if(!t)return e;let r=n&&n.encode||Dt,i=k.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):k.isURLSearchParams(t)?t.toString():new Tt(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var kt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){k.forEach(this.handlers,function(t){t!==null&&e(t)})}},At={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},jt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Tt,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Mt=e({hasBrowserEnv:()=>Nt,hasStandardBrowserEnv:()=>Ft,hasStandardBrowserWebWorkerEnv:()=>It,navigator:()=>Pt,origin:()=>Lt}),Nt=typeof window<`u`&&typeof document<`u`,Pt=typeof navigator==`object`&&navigator||void 0,Ft=Nt&&(!Pt||[`ReactNative`,`NativeScript`,`NS`].indexOf(Pt.product)<0),It=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Lt=Nt&&window.location.href||`http://localhost`,Rt={...Mt,...jt};function zt(e,t){return Ct(e,new Rt.classes.URLSearchParams,{visitor:function(e,t,n,r){return Rt.isNode&&k.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Bt(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Vt(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r=e.length;return a=!a&&k.isArray(r)?r.length:a,s?(k.hasOwnProp(r,a)?r[a]=k.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!r[a]||!k.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&k.isArray(r[a])&&(r[a]=Vt(r[a])),!o)}if(k.isFormData(e)&&k.isFunction(e.entries)){let n={};return k.forEachEntry(e,(e,r)=>{t(Bt(e),r,n,0)}),n}return null}var Ut=(e,t)=>e!=null&&k.hasOwnProp(e,t)?e[t]:void 0;function Wt(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Gt={transitional:At,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=k.isObject(e);if(i&&k.isHTMLForm(e)&&(e=new FormData(e)),k.isFormData(e))return r?JSON.stringify(Ht(e)):e;if(k.isArrayBuffer(e)||k.isBuffer(e)||k.isStream(e)||k.isFile(e)||k.isBlob(e)||k.isReadableStream(e))return e;if(k.isArrayBufferView(e))return e.buffer;if(k.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Ut(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return zt(e,t).toString();if((a=k.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Ut(this,`env`),r=n&&n.FormData;return Ct(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Wt(e)):e}],transformResponse:[function(e){let t=Ut(this,`transitional`)||Gt.transitional,n=t&&t.forcedJSONParsing,r=Ut(this,`responseType`),i=r===`json`;if(k.isResponse(e)||k.isReadableStream(e))return e;if(e&&k.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Ut(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?A.from(e,A.ERR_BAD_RESPONSE,this,null,Ut(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};k.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{Gt.headers[e]={}});var Kt=k.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),qt=e=>{let t={},n,r,i;return e&&e.split(` `).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Kt[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},Jt=Symbol(`internals`),Yt=/[^\x09\x20-\x7E\x80-\xFF]/g;function Xt(e){let t=0,n=e.length;for(;t t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function Zt(e){return e&&String(e).trim().toLowerCase()}function Qt(e){return Xt(e.replace(Yt,``))}function $t(e){return e===!1||e==null?e:k.isArray(e)?e.map($t):Qt(String(e))}function en(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var tn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nn(e,t,n,r,i){if(k.isFunction(r))return r.call(this,t,n);if(i&&(t=n),k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function an(e,t){let n=k.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var on=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Zt(t);if(!i)throw Error(`header name must be a non-empty string`);let a=k.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=$t(e))}let a=(e,t)=>k.forEach(e,(e,n)=>i(e,n,t));if(k.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(k.isString(e)&&(e=e.trim())&&!tn(e))a(qt(e),t);else if(k.isObject(e)&&k.isIterable(e)){let n={},r,i;for(let t of e){if(!k.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?k.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Zt(e),e){let n=k.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return en(e);if(k.isFunction(t))return t.call(this,e,n);if(k.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Zt(e),e){let n=k.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||nn(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Zt(e),e){let i=k.findKey(n,e);i&&(!t||nn(n,n[i],i,t))&&(delete n[i],r=!0)}}return k.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||nn(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return k.forEach(this,(r,i)=>{let a=k.findKey(n,i);if(a){t[a]=$t(r),delete t[i];return}let o=e?rn(i):String(i).trim();o!==i&&delete t[i],t[o]=$t(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return k.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&k.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(` `)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Jt]=this[Jt]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Zt(e);t[r]||(an(n,e),t[r]=!0)}return k.isArray(e)?e.forEach(r):r(e),this}};on.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),k.reduceDescriptors(on.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),k.freezeMethods(on);function sn(e,t){let n=this||Gt,r=t||n,i=on.from(r.headers),a=r.data;return k.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function cn(e){return!!(e&&e.__CANCEL__)}var ln=class extends A{constructor(e,t,n){super(e??`canceled`,A.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function un(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new A(`Request failed with status code `+n.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function dn(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function fn(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o {n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var mn=(e,t,n=3)=>{let r=0,i=fn(50,250);return pn(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},hn=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},gn=e=>(...t)=>k.asap(()=>e(...t)),_n=Rt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Rt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Rt.origin),Rt.navigator&&/(msie|trident)/i.test(Rt.navigator.userAgent)):()=>!0,vn=Rt.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];k.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),k.isString(r)&&s.push(`path=${r}`),k.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),k.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function yn(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function bn(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function xn(e,t,n){let r=!yn(t);return e&&(r||n===!1)?bn(e,t):t}var Sn=e=>e instanceof on?{...e}:e;function Cn(e,t){t||={};let n=Object.create(null);Object.defineProperty(n,`hasOwnProperty`,{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return k.isPlainObject(e)&&k.isPlainObject(t)?k.merge.call({caseless:r},e,t):k.isPlainObject(t)?k.merge({},t):k.isArray(t)?t.slice():t}function i(e,t,n,i){if(!k.isUndefined(t))return r(e,t,n,i);if(!k.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!k.isUndefined(t))return r(void 0,t)}function o(e,t){if(!k.isUndefined(t))return r(void 0,t);if(!k.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(k.hasOwnProp(t,a))return r(n,i);if(k.hasOwnProp(e,a))return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Sn(e),Sn(t),n,!0)};return k.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=k.hasOwnProp(c,r)?c[r]:i,o=a(k.hasOwnProp(e,r)?e[r]:void 0,k.hasOwnProp(t,r)?t[r]:void 0,r);k.isUndefined(o)&&a!==s||(n[r]=o)}),n}var wn=e=>{let t=Cn({},e),n=e=>k.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=on.from(s),t.url=Ot(xn(l,d,u),e.params,e.paramsSerializer),c&&s.set(`Authorization`,`Basic `+btoa((c.username||``)+`:`+(c.password?unescape(encodeURIComponent(c.password)):``))),k.isFormData(r)){if(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(k.isFunction(r.getHeaders)){let e=r.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&s.set(e,n)})}}if(Rt.hasStandardBrowserEnv&&(k.isFunction(i)&&(i=i(t)),i===!0||i==null&&_n(t.url))){let e=a&&o&&vn.read(o);e&&s.set(a,e)}return t},Tn=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=wn(e),i=r.data,a=on.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=on.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());un(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new A(`Request aborted`,A.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new A(t&&t.message?t.message:`Network Error`,A.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||At;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new A(t,i.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&k.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),k.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=mn(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=mn(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new ln(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=dn(r.url);if(_&&Rt.protocols.indexOf(_)===-1){n(new A(`Unsupported protocol `+_+`:`,A.ERR_BAD_REQUEST,e));return}h.send(i||null)})},En=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof A?t:new ln(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new A(`timeout of ${t}ms exceeded`,A.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>k.asap(o),s}},Dn=function*(e,t){let n=e.byteLength;if(!t||n {let i=On(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},jn=64*1024,{isFunction:Mn}=k,Nn=(({Request:e,Response:t})=>({Request:e,Response:t}))(k.global),{ReadableStream:Pn,TextEncoder:Fn}=k.global,In=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ln=e=>{e=k.merge.call({skipUndefined:!0},Nn,e);let{fetch:t,Request:n,Response:r}=e,i=t?Mn(t):typeof fetch==`function`,a=Mn(n),o=Mn(r);if(!i)return!1;let s=i&&Mn(Pn),c=i&&(typeof Fn==`function`?(e=>t=>e.encode(t))(new Fn):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&In(()=>{let e=!1,t=new n(Rt.origin,{body:new Pn,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),u=o&&s&&In(()=>k.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new A(`Response type '${e}' is not supported`,A.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new n(Rt.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(k.isArrayBufferView(e)||k.isArrayBuffer(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e+=``),k.isString(e))return(await c(e)).byteLength},p=async(e,t)=>k.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:b}=wn(e),x=t||fetch;_=_?(_+``).toLowerCase():`text`;let S=En([c,f&&f.toAbortSignal()],m),C=null,w=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),ee;try{if(g&&l&&o!==`get`&&o!==`head`&&(ee=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(k.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=hn(ee,mn(gn(g)));s=An(e.body,jn,t,n)}}k.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype;if(k.isFormData(s)){let e=v.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&v.delete(`content-type`)}let c={...b,signal:S,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};C=a&&new n(i,c);let f=await(a?x(C,b):x(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&w)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=k.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&hn(t,mn(gn(h),!0))||[];f=new r(An(f.body,jn,n,()=>{i&&i(),w&&w()}),e)}_||=`text`;let T=await d[k.findKey(d,_)||`text`](f,e);return!m&&w&&w(),await new Promise((t,n)=>{un(t,n,{data:T,headers:on.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:C})})}catch(t){throw w&&w(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new A(`Network Error`,A.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t}):A.from(t,t&&t.code,e,C,t&&t.response)}}},Rn=new Map,zn=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Rn;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Ln(t)),l=c;return c};zn();var Bn={http:null,xhr:Tn,fetch:{get:zn}};k.forEach(Bn,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var Vn=e=>`- ${e}`,Hn=e=>k.isFunction(e)||e===null||e===!1;function Un(e,t){e=k.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o `adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new A(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since : `+e.map(Vn).join(` @@ -1528,7 +1528,7 @@ import{n as e}from"./rolldown-runtime-tcWNtVWY.js";import{a as t,i as n,l as r,n margin: 0; /* remove input margin in Safari */ font-size: 100%; /* normalize default input font-size */ } - `]}_getAriaDescriptionElements(){return[this._helpTextNode,this._feedbackNode]}addToAriaLabelledBy(e,{idPrefix:t=``,reorder:n=!0}={}){e.id=e.id||`${t}-${this._inputId}`,this._ariaLabelledNodes.includes(e)||(this._ariaLabelledNodes=[...this._ariaLabelledNodes,e],this.__reorderAriaLabelledNodes=!!n)}removeFromAriaLabelledBy(e){this._ariaLabelledNodes.includes(e)&&(this._ariaLabelledNodes.splice(this._ariaLabelledNodes.indexOf(e),1),this._ariaLabelledNodes=[...this._ariaLabelledNodes],this.__reorderAriaLabelledNodes=!1)}addToAriaDescribedBy(e,{idPrefix:t=``,reorder:n=!0}={}){e.id=e.id||`${t}-${this._inputId}`,this._ariaDescribedNodes.includes(e)||(this._ariaDescribedNodes=[...this._ariaDescribedNodes,e],this.__reorderAriaDescribedNodes=!!n)}removeFromAriaDescribedBy(e){this._ariaDescribedNodes.includes(e)&&(this._ariaDescribedNodes.splice(this._ariaDescribedNodes.indexOf(e),1),this._ariaDescribedNodes=[...this._ariaDescribedNodes],this.__reorderAriaLabelledNodes=!1)}__getDirectSlotChild(e){return Array.from(this.children).find(t=>t.slot===e)}_dispatchInitialModelValueChangedEvent(){this._repropagationRole!==`child`&&(this.__repropagateChildrenInitialized=!0,this.dispatchEvent(new CustomEvent(`model-value-changed`,{bubbles:!0,detail:{formPath:[this],initialize:!0,isTriggeredByUser:!1}})))}_onBeforeRepropagateChildrenValues(e){}__repropagateChildrenValues(e){this._onBeforeRepropagateChildrenValues(e);let t=e.detail&&e.detail.element||e.target,n=this._isRepropagationEndpoint||this._repropagationRole===`choice-group`;if(t===this)return;e.stopImmediatePropagation();let r=this._repropagationRole!==`child`&&!this.__repropagateChildrenInitialized,i=e.detail&&e.detail.initialize;if(r||i||!this._repropagationCondition(t))return;let a=[];n||(a=e.detail&&e.detail.formPath||[t]);let o=[...a,this];this.dispatchEvent(new CustomEvent(`model-value-changed`,{bubbles:!0,detail:{formPath:o,isTriggeredByUser:!!e.detail?.isTriggeredByUser}}))}_repropagationCondition(e){return!!e}_onLabelClick(){}}),Kl=class{constructor(){this.__running=!1,this.__queue=[]}add(e){this.__queue.push(e),this.__running||(this.complete=new Promise(e=>{this.__callComplete=e}),this.__run())}async __run(){this.__running=!0,await this.__queue[0](),this.__queue.shift(),this.__queue.length>0?this.__run():(this.__running=!1,this.__callComplete&&this.__callComplete())}};function ql(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Jl=R(e=>class extends e{constructor(){super(),this.__SyncUpdatableNamespace={}}firstUpdated(e){super.firstUpdated(e),this.__syncUpdatableInitialize()}connectedCallback(){super.connectedCallback(),this.__SyncUpdatableNamespace.connected=!0}disconnectedCallback(){super.disconnectedCallback(),this.__SyncUpdatableNamespace.connected=!1}static enabledWarnings=super.enabledWarnings?.filter(e=>e!==`change-in-update`)||[];static __syncUpdatableHasChanged(e,t,n){let r=this.elementProperties;return r.get(e)&&r.get(e).hasChanged?r.get(e).hasChanged(t,n):t!==n}__syncUpdatableInitialize(){let e=this.__SyncUpdatableNamespace,t=this.constructor;e.initialized=!0,e.queue&&Array.from(e.queue).forEach(e=>{t.__syncUpdatableHasChanged(e,this[e],void 0)&&this.updateSync(e,void 0)})}requestUpdate(e,t,n){if(super.requestUpdate(e,t,n),e===void 0)return;this.__SyncUpdatableNamespace=this.__SyncUpdatableNamespace||{};let r=this.__SyncUpdatableNamespace,i=this.constructor;r.initialized?i.__syncUpdatableHasChanged(e,this[e],t)&&this.updateSync(e,t):(r.queue=r.queue||new Set,r.queue.add(e))}updateSync(e,t){}}),Yl=e=>{switch(e){case`bg-BG`:return M(()=>import(`./bg-BG-Da4qCczb.js`),__vite__mapDeps([0,1]),import.meta.url);case`bg`:return M(()=>import(`./bg-CDEegjzB.js`),[],import.meta.url);case`cs-CZ`:return M(()=>import(`./cs-CZ-b3YP2kcH.js`),__vite__mapDeps([2,3]),import.meta.url);case`cs`:return M(()=>import(`./cs-Bj-cDA9C.js`),[],import.meta.url);case`de-DE`:return M(()=>import(`./de-DE-ZRMhM0av.js`),__vite__mapDeps([4,5]),import.meta.url);case`de`:return M(()=>import(`./de-Doya6njT.js`),[],import.meta.url);case`en-AU`:return M(()=>import(`./en-AU-DmaPitM1.js`),__vite__mapDeps([6,7]),import.meta.url);case`en-GB`:return M(()=>import(`./en-GB-D44_nh16.js`),__vite__mapDeps([8,7]),import.meta.url);case`en-US`:return M(()=>import(`./en-US-CEV1dmto.js`),__vite__mapDeps([9,7]),import.meta.url);case`en-PH`:case`en`:return M(()=>import(`./en-BIhU5iWO.js`),[],import.meta.url);case`es-ES`:return M(()=>import(`./es-ES-DG0uYupn.js`),__vite__mapDeps([10,11]),import.meta.url);case`es`:return M(()=>import(`./es-B-cb9H6I.js`),[],import.meta.url);case`fr-FR`:return M(()=>import(`./fr-FR-CFWJdx8Q.js`),__vite__mapDeps([12,13]),import.meta.url);case`fr-BE`:return M(()=>import(`./fr-BE-BAls0n65.js`),__vite__mapDeps([14,13]),import.meta.url);case`fr`:return M(()=>import(`./fr-Ido_b_59.js`),[],import.meta.url);case`hu-HU`:return M(()=>import(`./hu-HU-Co0UcOOY.js`),__vite__mapDeps([15,16]),import.meta.url);case`hu`:return M(()=>import(`./hu-CQA-7SNA.js`),[],import.meta.url);case`it-IT`:return M(()=>import(`./it-IT-BHKQIgWt.js`),__vite__mapDeps([17,18]),import.meta.url);case`it`:return M(()=>import(`./it-ulAm0Ax6.js`),[],import.meta.url);case`nl-BE`:return M(()=>import(`./nl-BE-p9yqJgZE.js`),__vite__mapDeps([19,20]),import.meta.url);case`nl-NL`:return M(()=>import(`./nl-NL-BoVLJUmO.js`),__vite__mapDeps([21,20]),import.meta.url);case`nl`:return M(()=>import(`./nl-B8zUicXa.js`),[],import.meta.url);case`pl-PL`:return M(()=>import(`./pl-PL-CY9kv1vI.js`),__vite__mapDeps([22,23]),import.meta.url);case`pl`:return M(()=>import(`./pl-Dbzem9IS.js`),[],import.meta.url);case`ro-RO`:return M(()=>import(`./ro-RO-DVMA5zOp.js`),__vite__mapDeps([24,25]),import.meta.url);case`ro`:return M(()=>import(`./ro-nljakKKa.js`),[],import.meta.url);case`ru-RU`:return M(()=>import(`./ru-RU-Bj0Tc3A0.js`),__vite__mapDeps([26,27]),import.meta.url);case`ru`:return M(()=>import(`./ru-CT0saDhS.js`),[],import.meta.url);case`sk-SK`:return M(()=>import(`./sk-SK-DG82L6Pb.js`),__vite__mapDeps([28,29]),import.meta.url);case`sk`:return M(()=>import(`./sk-CkoCVeDz.js`),[],import.meta.url);case`tr-TR`:return M(()=>import(`./tr-TR-BSGg2_QT.js`),__vite__mapDeps([30,31]),import.meta.url);case`tr`:return M(()=>import(`./tr-Dbj7368p.js`),[],import.meta.url);case`uk-UA`:return M(()=>import(`./uk-UA-DZ6TOQ5J.js`),__vite__mapDeps([32,33]),import.meta.url);case`uk`:return M(()=>import(`./uk-B4GDYLoN.js`),[],import.meta.url);case`zh-CN`:case`zh`:return M(()=>import(`./zh-BT5UNfC2.js`),[],import.meta.url);default:return M(()=>import(`./en-BIhU5iWO.js`),[],import.meta.url)}},Xl=e=>`${e[0].toUpperCase()}${e.slice(1)}`,Zl=class extends Pl(h){static get properties(){return{feedbackData:{attribute:!1}}}static localizeNamespaces=[{"lion-form-core":Yl},...super.localizeNamespaces];static get styles(){return[d` + `]}_getAriaDescriptionElements(){return[this._helpTextNode,this._feedbackNode]}addToAriaLabelledBy(e,{idPrefix:t=``,reorder:n=!0}={}){e.id=e.id||`${t}-${this._inputId}`,this._ariaLabelledNodes.includes(e)||(this._ariaLabelledNodes=[...this._ariaLabelledNodes,e],this.__reorderAriaLabelledNodes=!!n)}removeFromAriaLabelledBy(e){this._ariaLabelledNodes.includes(e)&&(this._ariaLabelledNodes.splice(this._ariaLabelledNodes.indexOf(e),1),this._ariaLabelledNodes=[...this._ariaLabelledNodes],this.__reorderAriaLabelledNodes=!1)}addToAriaDescribedBy(e,{idPrefix:t=``,reorder:n=!0}={}){e.id=e.id||`${t}-${this._inputId}`,this._ariaDescribedNodes.includes(e)||(this._ariaDescribedNodes=[...this._ariaDescribedNodes,e],this.__reorderAriaDescribedNodes=!!n)}removeFromAriaDescribedBy(e){this._ariaDescribedNodes.includes(e)&&(this._ariaDescribedNodes.splice(this._ariaDescribedNodes.indexOf(e),1),this._ariaDescribedNodes=[...this._ariaDescribedNodes],this.__reorderAriaLabelledNodes=!1)}__getDirectSlotChild(e){return Array.from(this.children).find(t=>t.slot===e)}_dispatchInitialModelValueChangedEvent(){this._repropagationRole!==`child`&&(this.__repropagateChildrenInitialized=!0,this.dispatchEvent(new CustomEvent(`model-value-changed`,{bubbles:!0,detail:{formPath:[this],initialize:!0,isTriggeredByUser:!1}})))}_onBeforeRepropagateChildrenValues(e){}__repropagateChildrenValues(e){this._onBeforeRepropagateChildrenValues(e);let t=e.detail&&e.detail.element||e.target,n=this._isRepropagationEndpoint||this._repropagationRole===`choice-group`;if(t===this)return;e.stopImmediatePropagation();let r=this._repropagationRole!==`child`&&!this.__repropagateChildrenInitialized,i=e.detail&&e.detail.initialize;if(r||i||!this._repropagationCondition(t))return;let a=[];n||(a=e.detail&&e.detail.formPath||[t]);let o=[...a,this];this.dispatchEvent(new CustomEvent(`model-value-changed`,{bubbles:!0,detail:{formPath:o,isTriggeredByUser:!!e.detail?.isTriggeredByUser}}))}_repropagationCondition(e){return!!e}_onLabelClick(){}}),Kl=class{constructor(){this.__running=!1,this.__queue=[]}add(e){this.__queue.push(e),this.__running||(this.complete=new Promise(e=>{this.__callComplete=e}),this.__run())}async __run(){this.__running=!0,await this.__queue[0](),this.__queue.shift(),this.__queue.length>0?this.__run():(this.__running=!1,this.__callComplete&&this.__callComplete())}};function ql(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Jl=R(e=>class extends e{constructor(){super(),this.__SyncUpdatableNamespace={}}firstUpdated(e){super.firstUpdated(e),this.__syncUpdatableInitialize()}connectedCallback(){super.connectedCallback(),this.__SyncUpdatableNamespace.connected=!0}disconnectedCallback(){super.disconnectedCallback(),this.__SyncUpdatableNamespace.connected=!1}static enabledWarnings=super.enabledWarnings?.filter(e=>e!==`change-in-update`)||[];static __syncUpdatableHasChanged(e,t,n){let r=this.elementProperties;return r.get(e)&&r.get(e).hasChanged?r.get(e).hasChanged(t,n):t!==n}__syncUpdatableInitialize(){let e=this.__SyncUpdatableNamespace,t=this.constructor;e.initialized=!0,e.queue&&Array.from(e.queue).forEach(e=>{t.__syncUpdatableHasChanged(e,this[e],void 0)&&this.updateSync(e,void 0)})}requestUpdate(e,t,n){if(super.requestUpdate(e,t,n),e===void 0)return;this.__SyncUpdatableNamespace=this.__SyncUpdatableNamespace||{};let r=this.__SyncUpdatableNamespace,i=this.constructor;r.initialized?i.__syncUpdatableHasChanged(e,this[e],t)&&this.updateSync(e,t):(r.queue=r.queue||new Set,r.queue.add(e))}updateSync(e,t){}}),Yl=e=>{switch(e){case`bg-BG`:return M(()=>import(`./bg-BG-iL3vNu9Q.js`),__vite__mapDeps([0,1]),import.meta.url);case`bg`:return M(()=>import(`./bg-CucplSWx.js`),[],import.meta.url);case`cs-CZ`:return M(()=>import(`./cs-CZ-BAE2BH7l.js`),__vite__mapDeps([2,3]),import.meta.url);case`cs`:return M(()=>import(`./cs--qUy3Nx2.js`),[],import.meta.url);case`de-DE`:return M(()=>import(`./de-DE-DBN8SwtY.js`),__vite__mapDeps([4,5]),import.meta.url);case`de`:return M(()=>import(`./de-sehBmv7c.js`),[],import.meta.url);case`en-AU`:return M(()=>import(`./en-AU-DHX_5VkQ.js`),__vite__mapDeps([6,7]),import.meta.url);case`en-GB`:return M(()=>import(`./en-GB-DUpHw4ei.js`),__vite__mapDeps([8,7]),import.meta.url);case`en-US`:return M(()=>import(`./en-US-LrMUjqot.js`),__vite__mapDeps([9,7]),import.meta.url);case`en-PH`:case`en`:return M(()=>import(`./en-B-uUj7O3.js`),[],import.meta.url);case`es-ES`:return M(()=>import(`./es-ES-CQxJyn1D.js`),__vite__mapDeps([10,11]),import.meta.url);case`es`:return M(()=>import(`./es-DALklOq9.js`),[],import.meta.url);case`fr-FR`:return M(()=>import(`./fr-FR-Cu-l_ZvJ.js`),__vite__mapDeps([12,13]),import.meta.url);case`fr-BE`:return M(()=>import(`./fr-BE-C_qRltXX.js`),__vite__mapDeps([14,13]),import.meta.url);case`fr`:return M(()=>import(`./fr-dxwGobgP.js`),[],import.meta.url);case`hu-HU`:return M(()=>import(`./hu-HU-BsO26ISI.js`),__vite__mapDeps([15,16]),import.meta.url);case`hu`:return M(()=>import(`./hu-DNmHAHEu.js`),[],import.meta.url);case`it-IT`:return M(()=>import(`./it-IT-CS-Jef5h.js`),__vite__mapDeps([17,18]),import.meta.url);case`it`:return M(()=>import(`./it-BACnFsF3.js`),[],import.meta.url);case`nl-BE`:return M(()=>import(`./nl-BE-Bj9JCY-9.js`),__vite__mapDeps([19,20]),import.meta.url);case`nl-NL`:return M(()=>import(`./nl-NL-JOIOuXJK.js`),__vite__mapDeps([21,20]),import.meta.url);case`nl`:return M(()=>import(`./nl-CQYIOSZc.js`),[],import.meta.url);case`pl-PL`:return M(()=>import(`./pl-PL-B4pUA187.js`),__vite__mapDeps([22,23]),import.meta.url);case`pl`:return M(()=>import(`./pl-DXJ3oGk6.js`),[],import.meta.url);case`ro-RO`:return M(()=>import(`./ro-RO-Czws9hhG.js`),__vite__mapDeps([24,25]),import.meta.url);case`ro`:return M(()=>import(`./ro-CbWqT7lY.js`),[],import.meta.url);case`ru-RU`:return M(()=>import(`./ru-RU-BA31zApc.js`),__vite__mapDeps([26,27]),import.meta.url);case`ru`:return M(()=>import(`./ru-BEbYVW_P.js`),[],import.meta.url);case`sk-SK`:return M(()=>import(`./sk-SK-CHxWAjlR.js`),__vite__mapDeps([28,29]),import.meta.url);case`sk`:return M(()=>import(`./sk-DNRkarje.js`),[],import.meta.url);case`tr-TR`:return M(()=>import(`./tr-TR-1VgN_SpE.js`),__vite__mapDeps([30,31]),import.meta.url);case`tr`:return M(()=>import(`./tr-CxH_O2El.js`),[],import.meta.url);case`uk-UA`:return M(()=>import(`./uk-UA-DgqiT9GI.js`),__vite__mapDeps([32,33]),import.meta.url);case`uk`:return M(()=>import(`./uk-5I7buBCW.js`),[],import.meta.url);case`zh-CN`:case`zh`:return M(()=>import(`./zh-_pPKeJY5.js`),[],import.meta.url);default:return M(()=>import(`./en-B-uUj7O3.js`),[],import.meta.url)}},Xl=e=>`${e[0].toUpperCase()}${e.slice(1)}`,Zl=class extends Pl(h){static get properties(){return{feedbackData:{attribute:!1}}}static localizeNamespaces=[{"lion-form-core":Yl},...super.localizeNamespaces];static get styles(){return[d` .validation-feedback__type { position: absolute; width: 1px; @@ -1604,7 +1604,7 @@ import{n as e}from"./rolldown-runtime-tcWNtVWY.js";import{a as t,i as n,l as r,n font-size: var(--c-text-base); color: var(--c-text-quiet); } -`,gu=class extends mu{constructor(...e){super(...e),this.size=`medium`,this.small=!1,this.center=!1}static get styles(){return[...super.styles,Kc,hu]}connectedCallback(){super.connectedCallback(),this._inputNode&&this.maxlength&&this.maxlength>0&&(this._inputNode.maxLength=this.maxlength)}};s([g({type:Number,reflect:!0})],gu.prototype,`maxlength`,void 0),s([g({type:String,reflect:!0})],gu.prototype,`size`,void 0),s([g({reflect:!0,type:Boolean})],gu.prototype,`small`,void 0),s([g({reflect:!0,type:Boolean})],gu.prototype,`center`,void 0),customElements.get(`craft-input`)||customElements.define(`craft-input`,gu);var _u=e=>e??m,vu=class extends Ql{static validatorName=`IsAcceptedFile`;static checkFileSize(e,t){return e<=t}static getExtension(e){return e?.slice(e.lastIndexOf(`.`))}static isExtensionAllowed(e,t){return t?.find(t=>t.toUpperCase()===e.toUpperCase())}static isFileTypeAllowed(e,t){return t?.find(t=>t.toUpperCase()===e.toUpperCase())}execute(e,t=this.param){let n,r,i=this.constructor,{allowedFileTypes:a,allowedFileExtensions:o,maxFileSize:s}=t;return a?.length?(n=e.some(e=>!i.isFileTypeAllowed(e.type,a)),n):o?.length?(r=e.some(e=>!i.isExtensionAllowed(i.getExtension(e.name),o)),r):e.findIndex(e=>!i.checkFileSize(e.size,s))>-1}static async getMessage(){return``}},yu=class extends Ql{static validatorName=`DuplicateFileNames`;constructor(e,t){super(e,t),this.type=`info`}execute(e,t=this.param){return t.show}static async getMessage(){return xl().msg(`lion-input-file:uploadTextDuplicateFileName`)}},bu=524288e3,xu={type:`FILE_TYPE`,size:`FILE_SIZE`},Su={fail:`FAIL`,pass:`SUCCESS`},Cu=class{constructor(e,t){this.failedProp=[],this.systemFile=e,this._acceptCriteria=t,this.uploadFileStatus(),this.failedProp.length===0&&this.createDownloadUrl(e)}_getFileNameExtension(e){return e.slice(e.lastIndexOf(`.`))}uploadFileStatus(){if(this._acceptCriteria.allowedFileExtensions.length){let e=this._getFileNameExtension(this.systemFile.name);vu.isExtensionAllowed(e,this._acceptCriteria.allowedFileExtensions)||(this.status=Su.fail,this.failedProp.push(xu.type))}else if(this._acceptCriteria.allowedFileTypes.length){let e=this.systemFile.type;vu.isFileTypeAllowed(e,this._acceptCriteria.allowedFileTypes)||(this.status=Su.fail,this.failedProp.push(xu.type))}vu.checkFileSize(this.systemFile.size,this._acceptCriteria.maxFileSize)?this.status!==Su.fail&&(this.status=Su.pass):(this.status=Su.fail,this.failedProp.push(xu.size))}createDownloadUrl(e){this.downloadUrl=window.URL.createObjectURL(e)}},wu=(e,t,n)=>{let r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},Tu=n(class extends t{constructor(e){if(super(e),e.type!==a.CHILD)throw Error(`repeat() can only be used in text expressions`)}dt(e,t,n){let r;n===void 0?n=t:t!==void 0&&(r=t);let i=[],a=[],o=0;for(let t of e)i[o]=r?r(t,o):o,a[o]=n(t,o),o++;return{values:a,keys:i}}render(e,t,n){return this.dt(e,t,n).values}update(e,[t,n,r]){let i=zi(e),{values:a,keys:o}=this.dt(t,n,r);if(!Array.isArray(i))return this.ut=o,a;let s=this.ut??=[],c=[],l,u,d=0,p=i.length-1,m=0,h=a.length-1;for(;d<=p&&m<=h;)if(i[d]===null)d++;else if(i[p]===null)p--;else if(s[d]===o[m])c[m]=Ii(i[d],a[m]),d++,m++;else if(s[p]===o[h])c[h]=Ii(i[p],a[h]),p--,h--;else if(s[d]===o[h])c[h]=Ii(i[d],a[h]),Fi(e,c[h+1],i[d]),d++,h--;else if(s[p]===o[m])c[m]=Ii(i[p],a[m]),Fi(e,i[d],i[p]),p--,m++;else if(l===void 0&&(l=wu(o,m,h),u=wu(s,d,p)),l.has(s[d]))if(l.has(s[p])){let t=u.get(o[m]),n=t===void 0?null:i[t];if(n===null){let t=Fi(e,i[d]);Ii(t,a[m]),c[m]=t}else c[m]=Ii(n,a[m]),Fi(e,i[d],n),i[t]=null;m++}else Bi(i[p]),p--;else Bi(i[d]),d++;for(;m<=h;){let t=Fi(e,c[h+1]);Ii(t,a[m]),c[m++]=t}for(;d<=p;){let e=i[d++];e!==null&&Bi(e)}return this.ut=o,Ri(e,c),f}}),Eu=e=>{switch(e){case`bg-BG`:return M(()=>import(`./bg-BG-u3cJ95GX.js`),__vite__mapDeps([34,35]),import.meta.url);case`bg`:return M(()=>import(`./bg-DVAt4mMM.js`),[],import.meta.url);case`cs-CZ`:return M(()=>import(`./cs-CZ-9sFOxkts.js`),__vite__mapDeps([36,37]),import.meta.url);case`cs`:return M(()=>import(`./cs-KkLzX48H.js`),[],import.meta.url);case`de-DE`:return M(()=>import(`./de-DE-CIMdv8f6.js`),__vite__mapDeps([38,39]),import.meta.url);case`de`:return M(()=>import(`./de-DhdzYgDX.js`),[],import.meta.url);case`en-AU`:return M(()=>import(`./en-AU-0aojkls-.js`),__vite__mapDeps([40,41]),import.meta.url);case`en-GB`:return M(()=>import(`./en-GB-sn6gnIya.js`),__vite__mapDeps([42,41]),import.meta.url);case`en-US`:return M(()=>import(`./en-US-BTdpWnpk.js`),__vite__mapDeps([43,41]),import.meta.url);case`en-PH`:case`en`:return M(()=>import(`./en-D-QE6lBK.js`),[],import.meta.url);case`es-ES`:return M(()=>import(`./es-ES-Dzj4NbGF.js`),__vite__mapDeps([44,45]),import.meta.url);case`es`:return M(()=>import(`./es-hgWagEOk.js`),[],import.meta.url);case`fr-FR`:return M(()=>import(`./fr-FR-GN4Rt546.js`),__vite__mapDeps([46,47]),import.meta.url);case`fr-BE`:return M(()=>import(`./fr-BE-EJM9hhPv.js`),__vite__mapDeps([48,47]),import.meta.url);case`fr`:return M(()=>import(`./fr-Cg3-CoZB.js`),[],import.meta.url);case`hu-HU`:return M(()=>import(`./hu-HU-Qv5-Jgp4.js`),__vite__mapDeps([49,50]),import.meta.url);case`hu`:return M(()=>import(`./hu-BIPbBjml.js`),[],import.meta.url);case`id-ID`:return M(()=>import(`./id-ID-BzIMhDGH.js`),__vite__mapDeps([51,52]),import.meta.url);case`id`:return M(()=>import(`./id-CDhftYdq.js`),[],import.meta.url);case`it-IT`:return M(()=>import(`./it-IT-6fZOiAyG.js`),__vite__mapDeps([53,54]),import.meta.url);case`it`:return M(()=>import(`./it-DRT4TxsG.js`),[],import.meta.url);case`nl-BE`:return M(()=>import(`./nl-BE-BW_USGqC.js`),__vite__mapDeps([55,56]),import.meta.url);case`nl-NL`:return M(()=>import(`./nl-NL-Des6WdvY.js`),__vite__mapDeps([57,56]),import.meta.url);case`nl`:return M(()=>import(`./nl-CIJ3FZXF.js`),[],import.meta.url);case`pl-PL`:return M(()=>import(`./pl-PL-D5U0zG-1.js`),__vite__mapDeps([58,59]),import.meta.url);case`pl`:return M(()=>import(`./pl-f1HGlNb7.js`),[],import.meta.url);case`ro-RO`:return M(()=>import(`./ro-RO-BLdVT5g8.js`),__vite__mapDeps([60,61]),import.meta.url);case`ro`:return M(()=>import(`./ro-BTHP4lJy.js`),[],import.meta.url);case`ru-RU`:return M(()=>import(`./ru-RU-BoEZxKBD.js`),__vite__mapDeps([62,63]),import.meta.url);case`ru`:return M(()=>import(`./ru-CkobGLrw.js`),[],import.meta.url);case`sk-SK`:return M(()=>import(`./sk-SK-DHzKt8su.js`),__vite__mapDeps([64,65]),import.meta.url);case`sk`:return M(()=>import(`./sk-DiGiynX5.js`),[],import.meta.url);case`uk-UA`:return M(()=>import(`./uk-UA-DUGvsHaY.js`),__vite__mapDeps([66,67]),import.meta.url);case`uk`:return M(()=>import(`./uk-Cxpw6UDZ.js`),[],import.meta.url);case`zh-CN`:case`zh`:return M(()=>import(`./zh-Y3uFT2UE.js`),[],import.meta.url);default:return M(()=>import(`./en-D-QE6lBK.js`),[],import.meta.url)}},Du=class extends Pl(Bl(h)){static get scopedElements(){return{...super.scopedElements,"lion-validation-feedback":Zl}}static get properties(){return{fileList:{type:Array},multiple:{type:Boolean}}}static localizeNamespaces=[{"lion-input-file":Eu},...super.localizeNamespaces];constructor(){super(),this.fileList=[],this.multiple=!1}updated(e){super.updated(e),e.has(`fileList`)&&this._enhanceLightDomA11y()}_enhanceLightDomA11y(){let e=this.shadowRoot?.querySelectorAll(`[id^="file-feedback"]`),t=this.parentNode?.parentNode;e?.forEach(e=>{t?.addEventListener(`focusin`,()=>{e.setAttribute(`aria-live`,`polite`)}),t?.addEventListener(`focusout`,()=>{e.setAttribute(`aria-live`,`assertive`)})})}_removeFile(e){this.dispatchEvent(new CustomEvent(`file-remove-requested`,{detail:{removedFile:e,status:e.status,uploadResponse:e.response}}))}_validationFeedbackTemplate(e,t){return l` +`,gu=class extends mu{constructor(...e){super(...e),this.size=`medium`,this.small=!1,this.center=!1}static get styles(){return[...super.styles,Kc,hu]}connectedCallback(){super.connectedCallback(),this._inputNode&&this.maxlength&&this.maxlength>0&&(this._inputNode.maxLength=this.maxlength)}};s([g({type:Number,reflect:!0})],gu.prototype,`maxlength`,void 0),s([g({type:String,reflect:!0})],gu.prototype,`size`,void 0),s([g({reflect:!0,type:Boolean})],gu.prototype,`small`,void 0),s([g({reflect:!0,type:Boolean})],gu.prototype,`center`,void 0),customElements.get(`craft-input`)||customElements.define(`craft-input`,gu);var _u=e=>e??m,vu=class extends Ql{static validatorName=`IsAcceptedFile`;static checkFileSize(e,t){return e<=t}static getExtension(e){return e?.slice(e.lastIndexOf(`.`))}static isExtensionAllowed(e,t){return t?.find(t=>t.toUpperCase()===e.toUpperCase())}static isFileTypeAllowed(e,t){return t?.find(t=>t.toUpperCase()===e.toUpperCase())}execute(e,t=this.param){let n,r,i=this.constructor,{allowedFileTypes:a,allowedFileExtensions:o,maxFileSize:s}=t;return a?.length?(n=e.some(e=>!i.isFileTypeAllowed(e.type,a)),n):o?.length?(r=e.some(e=>!i.isExtensionAllowed(i.getExtension(e.name),o)),r):e.findIndex(e=>!i.checkFileSize(e.size,s))>-1}static async getMessage(){return``}},yu=class extends Ql{static validatorName=`DuplicateFileNames`;constructor(e,t){super(e,t),this.type=`info`}execute(e,t=this.param){return t.show}static async getMessage(){return xl().msg(`lion-input-file:uploadTextDuplicateFileName`)}},bu=524288e3,xu={type:`FILE_TYPE`,size:`FILE_SIZE`},Su={fail:`FAIL`,pass:`SUCCESS`},Cu=class{constructor(e,t){this.failedProp=[],this.systemFile=e,this._acceptCriteria=t,this.uploadFileStatus(),this.failedProp.length===0&&this.createDownloadUrl(e)}_getFileNameExtension(e){return e.slice(e.lastIndexOf(`.`))}uploadFileStatus(){if(this._acceptCriteria.allowedFileExtensions.length){let e=this._getFileNameExtension(this.systemFile.name);vu.isExtensionAllowed(e,this._acceptCriteria.allowedFileExtensions)||(this.status=Su.fail,this.failedProp.push(xu.type))}else if(this._acceptCriteria.allowedFileTypes.length){let e=this.systemFile.type;vu.isFileTypeAllowed(e,this._acceptCriteria.allowedFileTypes)||(this.status=Su.fail,this.failedProp.push(xu.type))}vu.checkFileSize(this.systemFile.size,this._acceptCriteria.maxFileSize)?this.status!==Su.fail&&(this.status=Su.pass):(this.status=Su.fail,this.failedProp.push(xu.size))}createDownloadUrl(e){this.downloadUrl=window.URL.createObjectURL(e)}},wu=(e,t,n)=>{let r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},Tu=n(class extends t{constructor(e){if(super(e),e.type!==a.CHILD)throw Error(`repeat() can only be used in text expressions`)}dt(e,t,n){let r;n===void 0?n=t:t!==void 0&&(r=t);let i=[],a=[],o=0;for(let t of e)i[o]=r?r(t,o):o,a[o]=n(t,o),o++;return{values:a,keys:i}}render(e,t,n){return this.dt(e,t,n).values}update(e,[t,n,r]){let i=zi(e),{values:a,keys:o}=this.dt(t,n,r);if(!Array.isArray(i))return this.ut=o,a;let s=this.ut??=[],c=[],l,u,d=0,p=i.length-1,m=0,h=a.length-1;for(;d<=p&&m<=h;)if(i[d]===null)d++;else if(i[p]===null)p--;else if(s[d]===o[m])c[m]=Ii(i[d],a[m]),d++,m++;else if(s[p]===o[h])c[h]=Ii(i[p],a[h]),p--,h--;else if(s[d]===o[h])c[h]=Ii(i[d],a[h]),Fi(e,c[h+1],i[d]),d++,h--;else if(s[p]===o[m])c[m]=Ii(i[p],a[m]),Fi(e,i[d],i[p]),p--,m++;else if(l===void 0&&(l=wu(o,m,h),u=wu(s,d,p)),l.has(s[d]))if(l.has(s[p])){let t=u.get(o[m]),n=t===void 0?null:i[t];if(n===null){let t=Fi(e,i[d]);Ii(t,a[m]),c[m]=t}else c[m]=Ii(n,a[m]),Fi(e,i[d],n),i[t]=null;m++}else Bi(i[p]),p--;else Bi(i[d]),d++;for(;m<=h;){let t=Fi(e,c[h+1]);Ii(t,a[m]),c[m++]=t}for(;d<=p;){let e=i[d++];e!==null&&Bi(e)}return this.ut=o,Ri(e,c),f}}),Eu=e=>{switch(e){case`bg-BG`:return M(()=>import(`./bg-BG-B6w8-6X8.js`),__vite__mapDeps([34,35]),import.meta.url);case`bg`:return M(()=>import(`./bg-D_zEfyY_.js`),[],import.meta.url);case`cs-CZ`:return M(()=>import(`./cs-CZ-DRv5RrjN.js`),__vite__mapDeps([36,37]),import.meta.url);case`cs`:return M(()=>import(`./cs-Cpy-3YbT.js`),[],import.meta.url);case`de-DE`:return M(()=>import(`./de-DE-cjRBmNkb.js`),__vite__mapDeps([38,39]),import.meta.url);case`de`:return M(()=>import(`./de-huZNhxdz.js`),[],import.meta.url);case`en-AU`:return M(()=>import(`./en-AU-Ze2DRyrf.js`),__vite__mapDeps([40,41]),import.meta.url);case`en-GB`:return M(()=>import(`./en-GB-C5p3DSVr.js`),__vite__mapDeps([42,41]),import.meta.url);case`en-US`:return M(()=>import(`./en-US-CFEtoz7t.js`),__vite__mapDeps([43,41]),import.meta.url);case`en-PH`:case`en`:return M(()=>import(`./en-Do9-hg_L.js`),[],import.meta.url);case`es-ES`:return M(()=>import(`./es-ES-EnSLn2df.js`),__vite__mapDeps([44,45]),import.meta.url);case`es`:return M(()=>import(`./es-CV5LFjER.js`),[],import.meta.url);case`fr-FR`:return M(()=>import(`./fr-FR-CNlDcBtl.js`),__vite__mapDeps([46,47]),import.meta.url);case`fr-BE`:return M(()=>import(`./fr-BE-DUFRsltW.js`),__vite__mapDeps([48,47]),import.meta.url);case`fr`:return M(()=>import(`./fr-Dxyx6tzH.js`),[],import.meta.url);case`hu-HU`:return M(()=>import(`./hu-HU-B6I4wkFH.js`),__vite__mapDeps([49,50]),import.meta.url);case`hu`:return M(()=>import(`./hu-C0DfNJNP.js`),[],import.meta.url);case`id-ID`:return M(()=>import(`./id-ID-Fwir59fE.js`),__vite__mapDeps([51,52]),import.meta.url);case`id`:return M(()=>import(`./id-KMg-nMT_.js`),[],import.meta.url);case`it-IT`:return M(()=>import(`./it-IT-CG4En0J7.js`),__vite__mapDeps([53,54]),import.meta.url);case`it`:return M(()=>import(`./it-CCSfcJjN.js`),[],import.meta.url);case`nl-BE`:return M(()=>import(`./nl-BE-AqjyE0wx.js`),__vite__mapDeps([55,56]),import.meta.url);case`nl-NL`:return M(()=>import(`./nl-NL-DuEiOvyw.js`),__vite__mapDeps([57,56]),import.meta.url);case`nl`:return M(()=>import(`./nl-DkO29h75.js`),[],import.meta.url);case`pl-PL`:return M(()=>import(`./pl-PL-CVSvGMbf.js`),__vite__mapDeps([58,59]),import.meta.url);case`pl`:return M(()=>import(`./pl-6aasCQed.js`),[],import.meta.url);case`ro-RO`:return M(()=>import(`./ro-RO-CYPGn6-Q.js`),__vite__mapDeps([60,61]),import.meta.url);case`ro`:return M(()=>import(`./ro-Vin-pOvN.js`),[],import.meta.url);case`ru-RU`:return M(()=>import(`./ru-RU-B2XNx0n2.js`),__vite__mapDeps([62,63]),import.meta.url);case`ru`:return M(()=>import(`./ru-D4hAPORs.js`),[],import.meta.url);case`sk-SK`:return M(()=>import(`./sk-SK-CF-oEA2E.js`),__vite__mapDeps([64,65]),import.meta.url);case`sk`:return M(()=>import(`./sk-BT3NaDJE.js`),[],import.meta.url);case`uk-UA`:return M(()=>import(`./uk-UA-D-lNHWaa.js`),__vite__mapDeps([66,67]),import.meta.url);case`uk`:return M(()=>import(`./uk-YdkXUUsn.js`),[],import.meta.url);case`zh-CN`:case`zh`:return M(()=>import(`./zh-Bc2haxdD.js`),[],import.meta.url);default:return M(()=>import(`./en-Do9-hg_L.js`),[],import.meta.url)}},Du=class extends Pl(Bl(h)){static get scopedElements(){return{...super.scopedElements,"lion-validation-feedback":Zl}}static get properties(){return{fileList:{type:Array},multiple:{type:Boolean}}}static localizeNamespaces=[{"lion-input-file":Eu},...super.localizeNamespaces];constructor(){super(),this.fileList=[],this.multiple=!1}updated(e){super.updated(e),e.has(`fileList`)&&this._enhanceLightDomA11y()}_enhanceLightDomA11y(){let e=this.shadowRoot?.querySelectorAll(`[id^="file-feedback"]`),t=this.parentNode?.parentNode;e?.forEach(e=>{t?.addEventListener(`focusin`,()=>{e.setAttribute(`aria-live`,`polite`)}),t?.addEventListener(`focusout`,()=>{e.setAttribute(`aria-live`,`assertive`)})})}_removeFile(e){this.dispatchEvent(new CustomEvent(`file-remove-requested`,{detail:{removedFile:e,status:e.status,uploadResponse:e.response}}))}_validationFeedbackTemplate(e,t){return l` e.cssText).join(``)}function Vf(e,t,{teardown:n=!1}={}){let r=e===document?document.body:e,i=t.cssText||Bf(t);if(n){let e=Array.from(r.querySelectorAll(`style`));for(let t of e)if(t.textContent===i){t.remove();break}}else{let e=document.createElement(`style`),t=window.litNonce;t!==void 0&&e.setAttribute(`nonce`,t),e.textContent=i,r.appendChild(e)}}function Hf(e,t,{teardown:n=!1}={}){let r=!1;e&&!zf.has(e)&&zf.set(e,[]);let i=zf.get(e)??[],a=i.find(e=>t===e);return a&&n?i.splice(i.indexOf(t),1):!a&&!n?i.push(t):(a&&!n||!a&&n)&&(r=!0),{haltFurtherExecution:r}}function Uf(e,t,{teardown:n=!1}={}){let{haltFurtherExecution:r}=Hf(e,t,{teardown:n});if(r)return;if(!Rf.supportsAdoptingStyleSheets||ms.isIOS){Vf(e,t,{teardown:n});return}let i=t instanceof CSSStyleSheet?t:t.styleSheet;if(!i)throw Error(`Please provide a CSSResultOrNative style`);n?e.adoptedStyleSheets.includes(i)&&e.adoptedStyleSheets.splice(e.adoptedStyleSheets.indexOf(i),1):e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]}function Wf(e,t,{teardown:n=!1}={}){for(let r of t)Rf.adoptStyle(e,r,{teardown:n})}Rf.adoptStyle=Uf,Rf.adoptStyles=Wf;var Gf=({visibility:e,display:t})=>e!==`hidden`&&t!==`none`,Kf=({display:e})=>e===`contents`;function qf(e){if(!e||!e.isConnected||!Gf(e.style))return!1;let t=window.getComputedStyle(e);return Gf(t)?Kf(t)?!0:!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length):!1}function Jf(e,t){let n=Math.max(e.tabIndex,0),r=Math.max(t.tabIndex,0);return n===0||r===0?r>n:n>r}function Yf(e,t){let n=[];for(;e.length>0&&t.length>0;)Jf(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return[...n,...e,...t]}function Xf(e){let t=e.length;if(t<2)return e;let n=Math.ceil(t/2);return Yf(Xf(e.slice(0,n)),Xf(e.slice(n)))}var Zf=`matches`in Element.prototype?`matches`:`msMatchesSelector`;function Qf(e){return e[Zf](`input, select, textarea, button, object`)?e[Zf](`:not([disabled])`):e[Zf](`a[href], area[href], iframe, [tabindex], [contentEditable]`)}function $f(e){return Qf(e)?Number(e.getAttribute(`tabindex`)||0):-1}function ep(e){if(e.localName===`slot`)return e.assignedNodes({flatten:!0});let{children:t}=e.shadowRoot||e;return t||[]}function tp(e){return e.nodeType===Node.ELEMENT_NODE?e.localName===`slot`?!0:qf(e):!1}function np(e,t){if(!tp(e))return!1;let n=e,r=$f(n),i=r>0;r>=0&&t.push(n);let a=ep(n);for(let e=0;e import(`./popper-ygk3V7yR.js`),[],import.meta.url)}var op=new WeakMap,sp=class e extends EventTarget{#e=!1;constructor(e={},t=Ff){super(),this.manager=t,this.__sharedConfig=e,this.__activeElementRightBeforeHide=null,this.config={},this._defaultConfig={placementMode:void 0,contentNode:e.contentNode,contentWrapperNode:e.contentWrapperNode,invokerNode:e.invokerNode,backdropNode:e.backdropNode,referenceNode:void 0,elementToFocusAfterHide:e.invokerNode,inheritsReferenceWidth:`none`,hasBackdrop:!1,isBlocking:!1,preventsScroll:!1,trapsKeyboardFocus:!1,hidesOnEsc:!1,hidesOnOutsideEsc:!1,hidesOnOutsideClick:!1,isTooltip:!1,isAlertDialog:!1,invokerRelation:`description`,visibilityTriggerFunction:void 0,handlesAccessibility:!1,popperConfig:{placement:`top`,strategy:`fixed`,modifiers:[{name:`preventOverflow`,enabled:!0,options:{boundariesElement:`viewport`,padding:8}},{name:`flip`,options:{boundariesElement:`viewport`,padding:16}},{name:`offset`,enabled:!0,options:{offset:[0,8]}},{name:`arrow`,enabled:!1}]},viewportConfig:{placement:`center`},zIndex:9999},this._contentId=`overlay-content--${Math.random().toString(36).slice(2,10)}`,this.__originalAttrs=new Map,this.__escKeyHandler=this.__escKeyHandler.bind(this),this.updateConfig(e),this.__hasActiveBackdrop=!0,this.__cancelHandler=this.__cancelHandler.bind(this),this.__escKeyHandlerCalled=!1}get invoker(){return this.invokerNode}get content(){return this.__wrappingDialogNode}get placementMode(){return this.config?.placementMode}get invokerNode(){return this.config?.invokerNode}get referenceNode(){return this.config?.referenceNode}get contentNode(){return this.config?.contentNode}get contentWrapperNode(){return this.__contentWrapperNode||this.config?.contentWrapperNode}get backdropNode(){return this.__backdropNode||this.config?.backdropNode}get elementToFocusAfterHide(){return this.__elementToFocusAfterHide||this.config?.elementToFocusAfterHide}get hasBackdrop(){return!!this.backdropNode||this.config?.hasBackdrop}get isBlocking(){return this.config?.isBlocking}get preventsScroll(){return this.config?.preventsScroll}get trapsKeyboardFocus(){return this.config?.trapsKeyboardFocus}get hidesOnEsc(){return this.config?.hidesOnEsc}get hidesOnOutsideClick(){return this.config?.hidesOnOutsideClick}get hidesOnOutsideEsc(){return this.config?.hidesOnOutsideEsc}get inheritsReferenceWidth(){return this.config?.inheritsReferenceWidth}get handlesAccessibility(){return this.config?.handlesAccessibility}get isTooltip(){return this.config?.isTooltip}get isAlertDialog(){return this.config?.isAlertDialog}get invokerRelation(){return this.config?.invokerRelation}get popperConfig(){return this.config?.popperConfig}get viewportConfig(){return this.config?.viewportConfig}get visibilityTriggerFunction(){return this.config?.visibilityTriggerFunction}get _referenceNode(){return this.referenceNode||this.invokerNode}set elevation(e){this.__wrappingDialogNode.style.zIndex=`${this.config.zIndex+e}`}get elevation(){return Number(this.contentWrapperNode?.style.zIndex)}updateConfig(e){this.teardown(),this.__prevConfig=this.config,this.config={...this._defaultConfig,...this.__sharedConfig,...e,popperConfig:{...this._defaultConfig.popperConfig||{},...this.__sharedConfig.popperConfig||{},...e.popperConfig||{},modifiers:[...this._defaultConfig.popperConfig?.modifiers||[],...this.__sharedConfig.popperConfig?.modifiers||[],...e.popperConfig?.modifiers||[]]}},this.__validateConfiguration(this.config),this._init(),this.__elementToFocusAfterHide=void 0,this.#t()||this.manager.add(this)}#t(){return!!this.manager.list.find(e=>this===e)}__validateConfiguration(e){if(!e.placementMode)throw Error(`[OverlayController] You need to provide a .placementMode ("global"|"local")`);if(![`global`,`local`].includes(e.placementMode))throw Error(`[OverlayController] "${e.placementMode}" is not a valid .placementMode, use ("global"|"local")`);if(!e.contentNode)throw Error(`[OverlayController] You need to provide a .contentNode`);if(e.isTooltip&&!e.handlesAccessibility)throw Error(`[OverlayController] .isTooltip only takes effect when .handlesAccessibility is enabled`)}_init(){this.__contentHasBeenInitialized||=(this.__initContentDomStructure(),!0),this.contentWrapperNode.removeAttribute(`style`),this.contentWrapperNode.removeAttribute(`class`),this.placementMode===`local`&&(e.popperModule||=ap()),this.__handleOverlayStyles({phase:`init`}),this._handleFeatures({phase:`init`})}__handleOverlayStyles({phase:e}){let t=this.contentWrapperNode?.getRootNode();e===`init`?Rf.adoptStyle(t,Lf):e===`teardown`&&Rf.adoptStyle(t,Lf,{teardown:!0})}__initContentDomStructure(){let e=document.createElement(`dialog`);e.setAttribute(`role`,`none`),e.setAttribute(`data-overlay-outer-wrapper`,``),e.style.cssText=`display:none; z-index: ${this.config.zIndex}; padding: 0;`,this.__wrappingDialogNode=e,this.config?.contentWrapperNode||(this.__contentWrapperNode=document.createElement(`div`)),this.contentWrapperNode.setAttribute(`data-id`,`content-wrapper`),ip({wrappingDialogNodeL1:e,contentWrapperNodeL2:this.contentWrapperNode,contentNodeL3:this.contentNode}),e.open=!0,this.isTooltip&&e.setAttribute(`tabindex`,`-1`),this.__wrappingDialogNode.style.display=`none`,this.contentWrapperNode.style.zIndex=`1`,getComputedStyle(this.contentNode).position===`absolute`&&(this.contentNode.style.position=`static`),HTMLDialogElement&&`closedBy`in HTMLDialogElement.prototype?e.closedBy=`none`:(e.addEventListener(`keydown`,e=>{e.key===`Escape`&&e.preventDefault()}),e.addEventListener(`keyup`,e=>{e.key===`Escape`&&e.preventDefault()}),e.addEventListener(`cancel`,e=>{e.stopPropagation()}),e.addEventListener(`close`,e=>{e.stopPropagation()}))}_handleZIndex({phase:e}){if(this.placementMode===`local`&&e===`setup`){let e=Number(getComputedStyle(this.contentNode).zIndex);(e<1||Number.isNaN(e))&&(this.contentNode.style.zIndex=`1`)}}__setupTeardownAccessibility({phase:e}){if(e===`init`){this.__storeOriginalAttrs(this.contentNode,[`role`,`id`]);let e=this.trapsKeyboardFocus;if(this.invokerNode){let t=[`aria-labelledby`,`aria-describedby`];e||t.push(`aria-expanded`),this.__storeOriginalAttrs(this.invokerNode,t)}this.contentNode.id||this.contentNode.setAttribute(`id`,this._contentId),this.isTooltip?(this.invokerNode&&this.invokerNode.setAttribute(this.invokerRelation===`label`?`aria-labelledby`:`aria-describedby`,this._contentId),this.contentNode.setAttribute(`role`,`tooltip`)):(this.invokerNode&&!e&&this.invokerNode.setAttribute(`aria-expanded`,`${this.isShown}`),this.isAlertDialog?this.contentNode.setAttribute(`role`,`alertdialog`):this.contentNode.getAttribute(`role`)||this.contentNode.setAttribute(`role`,`dialog`))}else e===`teardown`&&this.__restoreOriginalAttrs()}__storeOriginalAttrs(e,t){let n={};t.forEach(t=>{n[t]=e.getAttribute(t)}),this.__originalAttrs.set(e,n)}__restoreOriginalAttrs(){for(let[e,t]of this.__originalAttrs)Object.entries(t).forEach(([t,n])=>{n===null?e.removeAttribute(t):e.setAttribute(t,n)});this.__originalAttrs.clear()}get isShown(){return this.__wrappingDialogNode?.style.display!==`none`}async show(e=this.elementToFocusAfterHide){if(this._showComplete&&await this._showComplete,this._showComplete=new Promise(e=>{this._showResolve=e}),this.manager&&this.manager.show(this),this.isShown){this._showResolve();return}let t=new CustomEvent(`before-show`,{cancelable:!0});this.dispatchEvent(t),t.defaultPrevented||(`HTMLDialogElement`in window&&this.__wrappingDialogNode instanceof HTMLDialogElement&&(this.__wrappingDialogNode.open=!0),this.__wrappingDialogNode.style.display=``,this._keepBodySize({phase:`before-show`}),await this._handleFeatures({phase:`show`}),this._keepBodySize({phase:`show`}),await this._handlePosition({phase:`show`}),this.__elementToFocusAfterHide=e,this.dispatchEvent(new Event(`show`)),await this._transitionShow({backdropNode:this.backdropNode,contentNode:this.contentNode})),this._showResolve()}async _handlePosition({phase:e}){if(this.placementMode===`global`){let t=`overlays__overlay-container--${this.viewportConfig.placement}`;e===`show`?(this.contentWrapperNode.classList.add(`overlays__overlay-container`),this.contentWrapperNode.classList.add(t),this.contentNode.classList.add(`overlays__overlay`)):e===`hide`&&(this.contentWrapperNode.classList.remove(`overlays__overlay-container`),this.contentWrapperNode.classList.remove(t),this.contentNode.classList.remove(`overlays__overlay`))}else this.placementMode===`local`&&e===`show`&&(await this.__createPopperInstance(),this._popper.forceUpdate())}_keepBodySize({phase:e}){if(this.preventsScroll)switch(e){case`before-show`:this.__bodyClientWidth=document.body.clientWidth,this.__bodyClientHeight=document.body.clientHeight,this.__bodyMarginRightInline=document.body.style.marginRight,this.__bodyMarginBottomInline=document.body.style.marginBottom;break;case`show`:{if(window.getComputedStyle){let e=window.getComputedStyle(document.body);this.__bodyMarginRight=parseInt(e.getPropertyValue(`margin-right`),10),this.__bodyMarginBottom=parseInt(e.getPropertyValue(`margin-bottom`),10)}else this.__bodyMarginRight=0,this.__bodyMarginBottom=0;let e=document.body.clientWidth-this.__bodyClientWidth,t=document.body.clientHeight-this.__bodyClientHeight,n=this.__bodyMarginRight+e,r=this.__bodyMarginBottom+t;window.CSS?.number&&document.body.attributeStyleMap?.set?(document.body.attributeStyleMap.set(`margin-right`,CSS.px(n)),document.body.attributeStyleMap.set(`margin-bottom`,CSS.px(r))):(document.body.style.marginRight=`${n}px`,document.body.style.marginBottom=`${r}px`);break}case`hide`:document.body.style.marginRight=this.__bodyMarginRightInline||``,document.body.style.marginBottom=this.__bodyMarginBottomInline||``;break}}async hide(){if(this._hideComplete=new Promise(e=>{this._hideResolve=e}),this.__activeElementRightBeforeHide=this.contentNode.getRootNode().activeElement,this.manager&&this.#t()&&this.manager.hide(this),!this.isShown){this._hideResolve();return}let e=new CustomEvent(`before-hide`,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented||(await this._transitionHide({backdropNode:this.backdropNode,contentNode:this.contentNode}),`HTMLDialogElement`in window&&this.__wrappingDialogNode instanceof HTMLDialogElement&&this.__wrappingDialogNode.close(),this.__wrappingDialogNode.style.display=`none`,this._handleFeatures({phase:`hide`}),this._keepBodySize({phase:`hide`}),this.dispatchEvent(new Event(`hide`)),this._restoreFocus()),this._hideResolve()}async transitionHide(e){}async _transitionHide({backdropNode:e,contentNode:t}){await this.transitionHide({backdropNode:e,contentNode:t}),this._handlePosition({phase:`hide`}),e&&e.classList.remove(`overlays__backdrop--animation-in`)}async transitionShow(e){}async _transitionShow(e){await this.transitionShow({backdropNode:this.backdropNode,contentNode:this.contentNode}),e.backdropNode&&e.backdropNode.classList.add(`overlays__backdrop--animation-in`)}_restoreFocus(){this.__activeElementRightBeforeHide instanceof HTMLElement&&this.contentNode.contains(this.__activeElementRightBeforeHide)&&(this.elementToFocusAfterHide instanceof HTMLElement?(this.elementToFocusAfterHide.focus(),this.elementToFocusAfterHide.scrollIntoView({block:`nearest`})):this.__activeElementRightBeforeHide.blur())}async toggle(){return this.isShown?this.hide():this.show()}_handleFeatures({phase:e}){this._handleZIndex({phase:e}),this.preventsScroll&&this._handlePreventsScroll({phase:e}),this.isBlocking&&this._handleBlocking({phase:e}),this.hasBackdrop&&this._handleBackdrop({phase:e}),this.trapsKeyboardFocus&&this._handleTrapsKeyboardFocus({phase:e}),this.hidesOnEsc&&this._handleHidesOnEsc({phase:e}),this.hidesOnOutsideEsc&&this._handleHidesOnOutsideEsc({phase:e}),this.hidesOnOutsideClick&&this._handleHidesOnOutsideClick({phase:e}),this.handlesAccessibility&&this._handleAccessibility({phase:e}),this.inheritsReferenceWidth&&this._handleInheritsReferenceWidth(),this.visibilityTriggerFunction&&this._handleVisibilityTriggers({phase:e})}_handleVisibilityTriggers({phase:e}){typeof this.visibilityTriggerFunction==`function`&&(e===`init`&&(this.__visibilityTriggerHandler=this.visibilityTriggerFunction({phase:e,controller:this})),this.__visibilityTriggerHandler[e]&&this.__visibilityTriggerHandler[e]())}_handlePreventsScroll({phase:e}){switch(e){case`show`:this.manager.requestToPreventScroll();break;case`hide`:this.manager.requestToEnableScroll();break;case`teardown`:this.manager.requestToEnableScroll(this);break}}_handleBlocking({phase:e}){switch(e){case`show`:this.manager.requestToShowOnly(this);break;case`hide`:this.manager.retractRequestToShowOnly(this);break}}get hasActiveBackdrop(){return this.__hasActiveBackdrop}_handleBackdrop({phase:e}){switch(e){case`init`:this.__backdropInitialized||=(this.config?.backdropNode||(this.__backdropNode=document.createElement(`div`),this.__backdropNode.classList.add(`overlays__backdrop`)),this.__wrappingDialogNode.prepend(this.backdropNode),!0);break;case`show`:this.config.hasBackdrop&&this.backdropNode.classList.add(`overlays__backdrop--visible`),this.__hasActiveBackdrop=!0;break;case`hide`:case`teardown`:this.backdropNode.classList.remove(`overlays__backdrop--visible`),this.__hasActiveBackdrop=!1;break}}#n=e=>{e.key===`Shift`&&(this.#e=!0)};#r=e=>{e.key===`Shift`&&(this.#e=!1)};#i=()=>{window.addEventListener(`keydown`,this.#n),window.addEventListener(`keyup`,this.#r)};#a=()=>{window.removeEventListener(`keydown`,this.#n),window.removeEventListener(`keyup`,this.#r)};#o=()=>rp(this.contentNode).find(e=>e.hasAttribute(`autofocus`))||this.contentNode;#s=()=>{this.__wrappingDialogNode?.addEventListener(`focus`,()=>{this.#e||this.#o().focus()})};_handleTrapsKeyboardFocus({phase:e}){e===`init`&&(this.contentNode.style.outline=`none`,this.contentNode.tabIndex=-1,this.contentNode.shadowRoot&&console.warn(`[overlays]: For best accessibility (compatibility with Safari + VoiceOver), provide a contentNode that is not a host for a shadow root`)),e===`show`&&(this.#i(),this.#s(),this.__wrappingDialogNode?.close(),this.__wrappingDialogNode?.showModal(),this.#o().focus()),e===`hide`&&this.#a()}__cancelHandler(e){e.preventDefault()}__escKeyHandler(e){e.key!==`Escape`||op.has(e)||!this.isShown&&this.__escKeyHandlerCalled||this.#c(e)&&(this.__escKeyHandlerCalled=!0,this.hide(),op.set(e,this))}#c=e=>e.composedPath().includes(this.__wrappingDialogNode)||this.invokerNode&&e.composedPath().includes(this.invokerNode)||If(this.contentNode,e.target);#l=e=>{e.key===`Escape`&&(this.#c(e)||this.hide())};_handleHidesOnEsc({phase:e}){e===`init`&&(this.contentNode.removeEventListener(`keyup`,this.__escKeyHandler),this.contentNode.addEventListener(`keyup`,this.__escKeyHandler),this.invokerNode&&this.invokerNode.addEventListener(`keyup`,this.__escKeyHandler)),e===`show`&&(this.__escKeyHandlerCalled=!1),e===`teardown`&&(this.contentNode.removeEventListener(`keyup`,this.__escKeyHandler),this.invokerNode&&this.invokerNode.removeEventListener(`keyup`,this.__escKeyHandler))}_handleHidesOnOutsideEsc({phase:e}){e===`init`?(document.removeEventListener(`keyup`,this.#l),document.addEventListener(`keyup`,this.#l)):e===`teardown`&&document.removeEventListener(`keyup`,this.#l)}_handleInheritsReferenceWidth(){if(!this._referenceNode||this.placementMode===`global`)return;let e=`${this._referenceNode.getBoundingClientRect().width}px`;switch(this.inheritsReferenceWidth){case`max`:this.contentWrapperNode.style.maxWidth=e;break;case`full`:this.contentWrapperNode.style.width=e;break;case`min`:this.contentWrapperNode.style.minWidth=e,this.contentWrapperNode.style.width=`auto`;break}}_handleHidesOnOutsideClick({phase:e}){let t=e===`show`?`addEventListener`:`removeEventListener`;if(e===`show`){let e=!1,t=!1;this.__onInsideMouseDown=()=>{e=!0},this.__onInsideMouseUp=()=>{t=!0},this.__onDocumentMouseUp=()=>{setTimeout(()=>{!e&&!t&&this.hide(),e=!1,t=!1})},this.__onWindowBlur=()=>{setTimeout(()=>{this.hide()})}}this.contentWrapperNode[t](`mousedown`,this.__onInsideMouseDown,!0),this.contentWrapperNode[t](`mouseup`,this.__onInsideMouseUp,!0),this.invokerNode&&(this.invokerNode[t](`mousedown`,this.__onInsideMouseDown,!0),this.invokerNode[t](`mouseup`,this.__onInsideMouseUp,!0)),document.documentElement[t](`mouseup`,this.__onDocumentMouseUp,!0),window[t](`blur`,this.__onWindowBlur)}_handleAccessibility({phase:e}){(e===`init`||e===`teardown`)&&this.__setupTeardownAccessibility({phase:e});let t=this.trapsKeyboardFocus;this.invokerNode&&!this.isTooltip&&!t&&this.invokerNode.setAttribute(`aria-expanded`,`${e===`show`}`)}teardown(){this.__handleOverlayStyles({phase:`teardown`}),this._handleFeatures({phase:`teardown`}),this.#t()&&this.manager.remove(this)}async __createPopperInstance(){if(this._popper&&=(this._popper.destroy(),void 0),e.popperModule!==void 0){let{createPopper:t}=await e.popperModule;this._popper=t(this._referenceNode,this.contentWrapperNode,{...this.config?.popperConfig})}}_hasDisabledInvoker(){return this.invokerNode?this.invokerNode.disabled||this.invokerNode.getAttribute(`aria-disabled`)===`true`:!1}};sp.popperModule=void 0;function cp(e,t){if(typeof e!=`object`||typeof t!=`object`||e===null||t===null)return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length?n.every(n=>cp(e[n],t[n])):!1}var lp=R(e=>class extends e{static get properties(){return{opened:{type:Boolean,reflect:!0}}}#e=!1;constructor(){super(),this.opened=!1,this.config={},this.toggle=this.toggle.bind(this),this.open=this.open.bind(this),this.close=this.close.bind(this)}get config(){return this.__config}set config(e){let t=!cp(this.config,e);this._overlayCtrl&&t&&this._overlayCtrl.updateConfig(e),this.__config=e,this._overlayCtrl&&t&&this.__syncToOverlayController()}requestUpdate(e,t,n){super.requestUpdate(e,t,n),e===`opened`&&this.opened!==t&&this.dispatchEvent(new CustomEvent(`opened-changed`,{detail:{opened:this.opened}}))}_defineOverlay({contentNode:e,invokerNode:t,referenceNode:n,backdropNode:r,contentWrapperNode:i}){let a=this._defineOverlayConfig()||{};return new sp({contentNode:e,invokerNode:t,referenceNode:n,backdropNode:r,contentWrapperNode:i,...a,...this.config,popperConfig:{...a.popperConfig||{},...this.config?.popperConfig||{},modifiers:[...a.popperConfig?.modifiers||[],...this.config?.popperConfig?.modifiers||[]]}})}_defineOverlayConfig(){return{placementMode:`local`}}updated(e){super.updated(e),e.has(`opened`)&&this._overlayCtrl&&!this.__blockSyncToOverlayCtrl&&this.__syncToOverlayController()}_setupOpenCloseListeners(){this.__closeEventInContentNodeHandler=e=>{e.stopPropagation(),this._overlayCtrl.hide()},this._overlayContentNode&&this._overlayContentNode.addEventListener(`close-overlay`,this.__closeEventInContentNodeHandler)}_teardownOpenCloseListeners(){this._overlayContentNode&&this._overlayContentNode.removeEventListener(`close-overlay`,this.__closeEventInContentNodeHandler)}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.isConnected&&(this.#e||=(this._setupOverlayCtrl(),!0))})}async disconnectedCallback(){super.disconnectedCallback(),await this._isPermanentlyDisconnected()&&(this._teardownOverlayCtrl(),this.#e=!1)}static enabledWarnings=super.enabledWarnings?.filter(e=>e!==`change-in-update`)||[];get _overlayInvokerNode(){return Array.from(this.children).find(e=>e.slot===`invoker`)}get _overlayReferenceNode(){}get _overlayBackdropNode(){return this.__cachedOverlayBackdropNode||=Array.from(this.children).find(e=>e.slot===`backdrop`),this.__cachedOverlayBackdropNode}get _overlayContentNode(){return this._cachedOverlayContentNode||=Array.from(this.children).find(e=>e.slot===`content`)||this.config.contentNode,this._cachedOverlayContentNode}get _overlayContentWrapperNode(){return this.shadowRoot?.querySelector(`#overlay-content-node-wrapper`)}_setupOverlayCtrl(){if(this.#e)return;let e={contentNode:this._overlayContentNode,contentWrapperNode:this._overlayContentWrapperNode,invokerNode:this._overlayInvokerNode,referenceNode:this._overlayReferenceNode,backdropNode:this._overlayBackdropNode};this._overlayCtrl?this._overlayCtrl.updateConfig(e):this._overlayCtrl=this._defineOverlay(e),this.__syncToOverlayController(),this.__setupSyncFromOverlayController(),this._setupOpenCloseListeners()}_teardownOverlayCtrl(){this._overlayCtrl&&(this._teardownOpenCloseListeners(),this.__teardownSyncFromOverlayController(),this._overlayCtrl.teardown())}async _setOpenedWithoutPropertyEffects(e){this.__blockSyncToOverlayCtrl=!0,this.opened=e,await this.updateComplete,this.__blockSyncToOverlayCtrl=!1}__setupSyncFromOverlayController(){this.__onOverlayCtrlShow=()=>{this.opened=!0},this.__onOverlayCtrlHide=()=>{this.opened=!1},this.__onBeforeShow=e=>{let t=new CustomEvent(`before-opened`,{cancelable:!0});this.dispatchEvent(t),t.defaultPrevented&&(this._setOpenedWithoutPropertyEffects(this._overlayCtrl.isShown),e.preventDefault())},this.__onBeforeHide=e=>{let t=new CustomEvent(`before-closed`,{cancelable:!0});this.dispatchEvent(t),t.defaultPrevented&&(this._setOpenedWithoutPropertyEffects(this._overlayCtrl.isShown),e.preventDefault())},this._overlayCtrl.addEventListener(`show`,this.__onOverlayCtrlShow),this._overlayCtrl.addEventListener(`hide`,this.__onOverlayCtrlHide),this._overlayCtrl.addEventListener(`before-show`,this.__onBeforeShow),this._overlayCtrl.addEventListener(`before-hide`,this.__onBeforeHide)}__teardownSyncFromOverlayController(){this._overlayCtrl.removeEventListener(`show`,this.__onOverlayCtrlShow),this._overlayCtrl.removeEventListener(`hide`,this.__onOverlayCtrlHide),this._overlayCtrl.removeEventListener(`before-show`,this.__onBeforeShow),this._overlayCtrl.removeEventListener(`before-hide`,this.__onBeforeHide)}__syncToOverlayController(){this.opened?this._overlayCtrl.show():this._overlayCtrl.hide()}async toggle(){await this._overlayCtrl.toggle()}async open(){await this._overlayCtrl.show()}async close(){await this._overlayCtrl.hide()}repositionOverlay(){let e=this._overlayCtrl;e.placementMode===`local`&&e._popper&&e._popper.update()}async _isPermanentlyDisconnected(){return await this.updateComplete,!this.isConnected}});function up(){return{visibilityTriggerFunction:({controller:e})=>{function t(){e._hasDisabledInvoker()||e.toggle()}return{init:()=>{e.invokerNode?.addEventListener(`click`,t)},teardown:()=>{e.invokerNode?.removeEventListener(`click`,t)}}}}}var dp=()=>({placementMode:`local`,inheritsReferenceWidth:`min`,hidesOnOutsideClick:!0,hidesOnEsc:!0,popperConfig:{placement:`bottom-start`,modifiers:[{name:`offset`,enabled:!1}]},handlesAccessibility:!0,...up()}),fp=class extends lp(h){_defineOverlayConfig(){return{...dp()}}_addEventListeners(){this.actionItems.forEach(e=>{e.addEventListener(`click`,e=>{e.target?.dispatchEvent(new Event(`close-overlay`,{bubbles:!0}))})})}_setupInvoker(){let e=this.invokerNodes[0];e&&(e.setAttribute(`id`,`invoker-${this.uid}`),e.setAttribute(`aria-controls`,`content-${this.uid}`))}_setupContent(){let e=this.contentNodes[0];e&&(e.setAttribute(`id`,`content-${this.uid}`),e.setAttribute(`role`,`none`))}_setupOverlayCtrl(){super._setupOverlayCtrl(),this._setupInvoker(),this._setupContent()}firstUpdated(){this.uid=hs(),this._addEventListeners()}render(){return l` +`,Rf={supportsAdoptingStyleSheets:window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,adoptStyle:void 0,adoptStyles:void 0},zf=new WeakMap;function Bf(e){return Array.from(e.cssRules).map(e=>e.cssText).join(``)}function Vf(e,t,{teardown:n=!1}={}){let r=e===document?document.body:e,i=t.cssText||Bf(t);if(n){let e=Array.from(r.querySelectorAll(`style`));for(let t of e)if(t.textContent===i){t.remove();break}}else{let e=document.createElement(`style`),t=window.litNonce;t!==void 0&&e.setAttribute(`nonce`,t),e.textContent=i,r.appendChild(e)}}function Hf(e,t,{teardown:n=!1}={}){let r=!1;e&&!zf.has(e)&&zf.set(e,[]);let i=zf.get(e)??[],a=i.find(e=>t===e);return a&&n?i.splice(i.indexOf(t),1):!a&&!n?i.push(t):(a&&!n||!a&&n)&&(r=!0),{haltFurtherExecution:r}}function Uf(e,t,{teardown:n=!1}={}){let{haltFurtherExecution:r}=Hf(e,t,{teardown:n});if(r)return;if(!Rf.supportsAdoptingStyleSheets||ms.isIOS){Vf(e,t,{teardown:n});return}let i=t instanceof CSSStyleSheet?t:t.styleSheet;if(!i)throw Error(`Please provide a CSSResultOrNative style`);n?e.adoptedStyleSheets.includes(i)&&e.adoptedStyleSheets.splice(e.adoptedStyleSheets.indexOf(i),1):e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]}function Wf(e,t,{teardown:n=!1}={}){for(let r of t)Rf.adoptStyle(e,r,{teardown:n})}Rf.adoptStyle=Uf,Rf.adoptStyles=Wf;var Gf=({visibility:e,display:t})=>e!==`hidden`&&t!==`none`,Kf=({display:e})=>e===`contents`;function qf(e){if(!e||!e.isConnected||!Gf(e.style))return!1;let t=window.getComputedStyle(e);return Gf(t)?Kf(t)?!0:!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length):!1}function Jf(e,t){let n=Math.max(e.tabIndex,0),r=Math.max(t.tabIndex,0);return n===0||r===0?r>n:n>r}function Yf(e,t){let n=[];for(;e.length>0&&t.length>0;)Jf(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return[...n,...e,...t]}function Xf(e){let t=e.length;if(t<2)return e;let n=Math.ceil(t/2);return Yf(Xf(e.slice(0,n)),Xf(e.slice(n)))}var Zf=`matches`in Element.prototype?`matches`:`msMatchesSelector`;function Qf(e){return e[Zf](`input, select, textarea, button, object`)?e[Zf](`:not([disabled])`):e[Zf](`a[href], area[href], iframe, [tabindex], [contentEditable]`)}function $f(e){return Qf(e)?Number(e.getAttribute(`tabindex`)||0):-1}function ep(e){if(e.localName===`slot`)return e.assignedNodes({flatten:!0});let{children:t}=e.shadowRoot||e;return t||[]}function tp(e){return e.nodeType===Node.ELEMENT_NODE?e.localName===`slot`?!0:qf(e):!1}function np(e,t){if(!tp(e))return!1;let n=e,r=$f(n),i=r>0;r>=0&&t.push(n);let a=ep(n);for(let e=0;e import(`./popper-DA_WtsnZ.js`),[],import.meta.url)}var op=new WeakMap,sp=class e extends EventTarget{#e=!1;constructor(e={},t=Ff){super(),this.manager=t,this.__sharedConfig=e,this.__activeElementRightBeforeHide=null,this.config={},this._defaultConfig={placementMode:void 0,contentNode:e.contentNode,contentWrapperNode:e.contentWrapperNode,invokerNode:e.invokerNode,backdropNode:e.backdropNode,referenceNode:void 0,elementToFocusAfterHide:e.invokerNode,inheritsReferenceWidth:`none`,hasBackdrop:!1,isBlocking:!1,preventsScroll:!1,trapsKeyboardFocus:!1,hidesOnEsc:!1,hidesOnOutsideEsc:!1,hidesOnOutsideClick:!1,isTooltip:!1,isAlertDialog:!1,invokerRelation:`description`,visibilityTriggerFunction:void 0,handlesAccessibility:!1,popperConfig:{placement:`top`,strategy:`fixed`,modifiers:[{name:`preventOverflow`,enabled:!0,options:{boundariesElement:`viewport`,padding:8}},{name:`flip`,options:{boundariesElement:`viewport`,padding:16}},{name:`offset`,enabled:!0,options:{offset:[0,8]}},{name:`arrow`,enabled:!1}]},viewportConfig:{placement:`center`},zIndex:9999},this._contentId=`overlay-content--${Math.random().toString(36).slice(2,10)}`,this.__originalAttrs=new Map,this.__escKeyHandler=this.__escKeyHandler.bind(this),this.updateConfig(e),this.__hasActiveBackdrop=!0,this.__cancelHandler=this.__cancelHandler.bind(this),this.__escKeyHandlerCalled=!1}get invoker(){return this.invokerNode}get content(){return this.__wrappingDialogNode}get placementMode(){return this.config?.placementMode}get invokerNode(){return this.config?.invokerNode}get referenceNode(){return this.config?.referenceNode}get contentNode(){return this.config?.contentNode}get contentWrapperNode(){return this.__contentWrapperNode||this.config?.contentWrapperNode}get backdropNode(){return this.__backdropNode||this.config?.backdropNode}get elementToFocusAfterHide(){return this.__elementToFocusAfterHide||this.config?.elementToFocusAfterHide}get hasBackdrop(){return!!this.backdropNode||this.config?.hasBackdrop}get isBlocking(){return this.config?.isBlocking}get preventsScroll(){return this.config?.preventsScroll}get trapsKeyboardFocus(){return this.config?.trapsKeyboardFocus}get hidesOnEsc(){return this.config?.hidesOnEsc}get hidesOnOutsideClick(){return this.config?.hidesOnOutsideClick}get hidesOnOutsideEsc(){return this.config?.hidesOnOutsideEsc}get inheritsReferenceWidth(){return this.config?.inheritsReferenceWidth}get handlesAccessibility(){return this.config?.handlesAccessibility}get isTooltip(){return this.config?.isTooltip}get isAlertDialog(){return this.config?.isAlertDialog}get invokerRelation(){return this.config?.invokerRelation}get popperConfig(){return this.config?.popperConfig}get viewportConfig(){return this.config?.viewportConfig}get visibilityTriggerFunction(){return this.config?.visibilityTriggerFunction}get _referenceNode(){return this.referenceNode||this.invokerNode}set elevation(e){this.__wrappingDialogNode.style.zIndex=`${this.config.zIndex+e}`}get elevation(){return Number(this.contentWrapperNode?.style.zIndex)}updateConfig(e){this.teardown(),this.__prevConfig=this.config,this.config={...this._defaultConfig,...this.__sharedConfig,...e,popperConfig:{...this._defaultConfig.popperConfig||{},...this.__sharedConfig.popperConfig||{},...e.popperConfig||{},modifiers:[...this._defaultConfig.popperConfig?.modifiers||[],...this.__sharedConfig.popperConfig?.modifiers||[],...e.popperConfig?.modifiers||[]]}},this.__validateConfiguration(this.config),this._init(),this.__elementToFocusAfterHide=void 0,this.#t()||this.manager.add(this)}#t(){return!!this.manager.list.find(e=>this===e)}__validateConfiguration(e){if(!e.placementMode)throw Error(`[OverlayController] You need to provide a .placementMode ("global"|"local")`);if(![`global`,`local`].includes(e.placementMode))throw Error(`[OverlayController] "${e.placementMode}" is not a valid .placementMode, use ("global"|"local")`);if(!e.contentNode)throw Error(`[OverlayController] You need to provide a .contentNode`);if(e.isTooltip&&!e.handlesAccessibility)throw Error(`[OverlayController] .isTooltip only takes effect when .handlesAccessibility is enabled`)}_init(){this.__contentHasBeenInitialized||=(this.__initContentDomStructure(),!0),this.contentWrapperNode.removeAttribute(`style`),this.contentWrapperNode.removeAttribute(`class`),this.placementMode===`local`&&(e.popperModule||=ap()),this.__handleOverlayStyles({phase:`init`}),this._handleFeatures({phase:`init`})}__handleOverlayStyles({phase:e}){let t=this.contentWrapperNode?.getRootNode();e===`init`?Rf.adoptStyle(t,Lf):e===`teardown`&&Rf.adoptStyle(t,Lf,{teardown:!0})}__initContentDomStructure(){let e=document.createElement(`dialog`);e.setAttribute(`role`,`none`),e.setAttribute(`data-overlay-outer-wrapper`,``),e.style.cssText=`display:none; z-index: ${this.config.zIndex}; padding: 0;`,this.__wrappingDialogNode=e,this.config?.contentWrapperNode||(this.__contentWrapperNode=document.createElement(`div`)),this.contentWrapperNode.setAttribute(`data-id`,`content-wrapper`),ip({wrappingDialogNodeL1:e,contentWrapperNodeL2:this.contentWrapperNode,contentNodeL3:this.contentNode}),e.open=!0,this.isTooltip&&e.setAttribute(`tabindex`,`-1`),this.__wrappingDialogNode.style.display=`none`,this.contentWrapperNode.style.zIndex=`1`,getComputedStyle(this.contentNode).position===`absolute`&&(this.contentNode.style.position=`static`),HTMLDialogElement&&`closedBy`in HTMLDialogElement.prototype?e.closedBy=`none`:(e.addEventListener(`keydown`,e=>{e.key===`Escape`&&e.preventDefault()}),e.addEventListener(`keyup`,e=>{e.key===`Escape`&&e.preventDefault()}),e.addEventListener(`cancel`,e=>{e.stopPropagation()}),e.addEventListener(`close`,e=>{e.stopPropagation()}))}_handleZIndex({phase:e}){if(this.placementMode===`local`&&e===`setup`){let e=Number(getComputedStyle(this.contentNode).zIndex);(e<1||Number.isNaN(e))&&(this.contentNode.style.zIndex=`1`)}}__setupTeardownAccessibility({phase:e}){if(e===`init`){this.__storeOriginalAttrs(this.contentNode,[`role`,`id`]);let e=this.trapsKeyboardFocus;if(this.invokerNode){let t=[`aria-labelledby`,`aria-describedby`];e||t.push(`aria-expanded`),this.__storeOriginalAttrs(this.invokerNode,t)}this.contentNode.id||this.contentNode.setAttribute(`id`,this._contentId),this.isTooltip?(this.invokerNode&&this.invokerNode.setAttribute(this.invokerRelation===`label`?`aria-labelledby`:`aria-describedby`,this._contentId),this.contentNode.setAttribute(`role`,`tooltip`)):(this.invokerNode&&!e&&this.invokerNode.setAttribute(`aria-expanded`,`${this.isShown}`),this.isAlertDialog?this.contentNode.setAttribute(`role`,`alertdialog`):this.contentNode.getAttribute(`role`)||this.contentNode.setAttribute(`role`,`dialog`))}else e===`teardown`&&this.__restoreOriginalAttrs()}__storeOriginalAttrs(e,t){let n={};t.forEach(t=>{n[t]=e.getAttribute(t)}),this.__originalAttrs.set(e,n)}__restoreOriginalAttrs(){for(let[e,t]of this.__originalAttrs)Object.entries(t).forEach(([t,n])=>{n===null?e.removeAttribute(t):e.setAttribute(t,n)});this.__originalAttrs.clear()}get isShown(){return this.__wrappingDialogNode?.style.display!==`none`}async show(e=this.elementToFocusAfterHide){if(this._showComplete&&await this._showComplete,this._showComplete=new Promise(e=>{this._showResolve=e}),this.manager&&this.manager.show(this),this.isShown){this._showResolve();return}let t=new CustomEvent(`before-show`,{cancelable:!0});this.dispatchEvent(t),t.defaultPrevented||(`HTMLDialogElement`in window&&this.__wrappingDialogNode instanceof HTMLDialogElement&&(this.__wrappingDialogNode.open=!0),this.__wrappingDialogNode.style.display=``,this._keepBodySize({phase:`before-show`}),await this._handleFeatures({phase:`show`}),this._keepBodySize({phase:`show`}),await this._handlePosition({phase:`show`}),this.__elementToFocusAfterHide=e,this.dispatchEvent(new Event(`show`)),await this._transitionShow({backdropNode:this.backdropNode,contentNode:this.contentNode})),this._showResolve()}async _handlePosition({phase:e}){if(this.placementMode===`global`){let t=`overlays__overlay-container--${this.viewportConfig.placement}`;e===`show`?(this.contentWrapperNode.classList.add(`overlays__overlay-container`),this.contentWrapperNode.classList.add(t),this.contentNode.classList.add(`overlays__overlay`)):e===`hide`&&(this.contentWrapperNode.classList.remove(`overlays__overlay-container`),this.contentWrapperNode.classList.remove(t),this.contentNode.classList.remove(`overlays__overlay`))}else this.placementMode===`local`&&e===`show`&&(await this.__createPopperInstance(),this._popper.forceUpdate())}_keepBodySize({phase:e}){if(this.preventsScroll)switch(e){case`before-show`:this.__bodyClientWidth=document.body.clientWidth,this.__bodyClientHeight=document.body.clientHeight,this.__bodyMarginRightInline=document.body.style.marginRight,this.__bodyMarginBottomInline=document.body.style.marginBottom;break;case`show`:{if(window.getComputedStyle){let e=window.getComputedStyle(document.body);this.__bodyMarginRight=parseInt(e.getPropertyValue(`margin-right`),10),this.__bodyMarginBottom=parseInt(e.getPropertyValue(`margin-bottom`),10)}else this.__bodyMarginRight=0,this.__bodyMarginBottom=0;let e=document.body.clientWidth-this.__bodyClientWidth,t=document.body.clientHeight-this.__bodyClientHeight,n=this.__bodyMarginRight+e,r=this.__bodyMarginBottom+t;window.CSS?.number&&document.body.attributeStyleMap?.set?(document.body.attributeStyleMap.set(`margin-right`,CSS.px(n)),document.body.attributeStyleMap.set(`margin-bottom`,CSS.px(r))):(document.body.style.marginRight=`${n}px`,document.body.style.marginBottom=`${r}px`);break}case`hide`:document.body.style.marginRight=this.__bodyMarginRightInline||``,document.body.style.marginBottom=this.__bodyMarginBottomInline||``;break}}async hide(){if(this._hideComplete=new Promise(e=>{this._hideResolve=e}),this.__activeElementRightBeforeHide=this.contentNode.getRootNode().activeElement,this.manager&&this.#t()&&this.manager.hide(this),!this.isShown){this._hideResolve();return}let e=new CustomEvent(`before-hide`,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented||(await this._transitionHide({backdropNode:this.backdropNode,contentNode:this.contentNode}),`HTMLDialogElement`in window&&this.__wrappingDialogNode instanceof HTMLDialogElement&&this.__wrappingDialogNode.close(),this.__wrappingDialogNode.style.display=`none`,this._handleFeatures({phase:`hide`}),this._keepBodySize({phase:`hide`}),this.dispatchEvent(new Event(`hide`)),this._restoreFocus()),this._hideResolve()}async transitionHide(e){}async _transitionHide({backdropNode:e,contentNode:t}){await this.transitionHide({backdropNode:e,contentNode:t}),this._handlePosition({phase:`hide`}),e&&e.classList.remove(`overlays__backdrop--animation-in`)}async transitionShow(e){}async _transitionShow(e){await this.transitionShow({backdropNode:this.backdropNode,contentNode:this.contentNode}),e.backdropNode&&e.backdropNode.classList.add(`overlays__backdrop--animation-in`)}_restoreFocus(){this.__activeElementRightBeforeHide instanceof HTMLElement&&this.contentNode.contains(this.__activeElementRightBeforeHide)&&(this.elementToFocusAfterHide instanceof HTMLElement?(this.elementToFocusAfterHide.focus(),this.elementToFocusAfterHide.scrollIntoView({block:`nearest`})):this.__activeElementRightBeforeHide.blur())}async toggle(){return this.isShown?this.hide():this.show()}_handleFeatures({phase:e}){this._handleZIndex({phase:e}),this.preventsScroll&&this._handlePreventsScroll({phase:e}),this.isBlocking&&this._handleBlocking({phase:e}),this.hasBackdrop&&this._handleBackdrop({phase:e}),this.trapsKeyboardFocus&&this._handleTrapsKeyboardFocus({phase:e}),this.hidesOnEsc&&this._handleHidesOnEsc({phase:e}),this.hidesOnOutsideEsc&&this._handleHidesOnOutsideEsc({phase:e}),this.hidesOnOutsideClick&&this._handleHidesOnOutsideClick({phase:e}),this.handlesAccessibility&&this._handleAccessibility({phase:e}),this.inheritsReferenceWidth&&this._handleInheritsReferenceWidth(),this.visibilityTriggerFunction&&this._handleVisibilityTriggers({phase:e})}_handleVisibilityTriggers({phase:e}){typeof this.visibilityTriggerFunction==`function`&&(e===`init`&&(this.__visibilityTriggerHandler=this.visibilityTriggerFunction({phase:e,controller:this})),this.__visibilityTriggerHandler[e]&&this.__visibilityTriggerHandler[e]())}_handlePreventsScroll({phase:e}){switch(e){case`show`:this.manager.requestToPreventScroll();break;case`hide`:this.manager.requestToEnableScroll();break;case`teardown`:this.manager.requestToEnableScroll(this);break}}_handleBlocking({phase:e}){switch(e){case`show`:this.manager.requestToShowOnly(this);break;case`hide`:this.manager.retractRequestToShowOnly(this);break}}get hasActiveBackdrop(){return this.__hasActiveBackdrop}_handleBackdrop({phase:e}){switch(e){case`init`:this.__backdropInitialized||=(this.config?.backdropNode||(this.__backdropNode=document.createElement(`div`),this.__backdropNode.classList.add(`overlays__backdrop`)),this.__wrappingDialogNode.prepend(this.backdropNode),!0);break;case`show`:this.config.hasBackdrop&&this.backdropNode.classList.add(`overlays__backdrop--visible`),this.__hasActiveBackdrop=!0;break;case`hide`:case`teardown`:this.backdropNode.classList.remove(`overlays__backdrop--visible`),this.__hasActiveBackdrop=!1;break}}#n=e=>{e.key===`Shift`&&(this.#e=!0)};#r=e=>{e.key===`Shift`&&(this.#e=!1)};#i=()=>{window.addEventListener(`keydown`,this.#n),window.addEventListener(`keyup`,this.#r)};#a=()=>{window.removeEventListener(`keydown`,this.#n),window.removeEventListener(`keyup`,this.#r)};#o=()=>rp(this.contentNode).find(e=>e.hasAttribute(`autofocus`))||this.contentNode;#s=()=>{this.__wrappingDialogNode?.addEventListener(`focus`,()=>{this.#e||this.#o().focus()})};_handleTrapsKeyboardFocus({phase:e}){e===`init`&&(this.contentNode.style.outline=`none`,this.contentNode.tabIndex=-1,this.contentNode.shadowRoot&&console.warn(`[overlays]: For best accessibility (compatibility with Safari + VoiceOver), provide a contentNode that is not a host for a shadow root`)),e===`show`&&(this.#i(),this.#s(),this.__wrappingDialogNode?.close(),this.__wrappingDialogNode?.showModal(),this.#o().focus()),e===`hide`&&this.#a()}__cancelHandler(e){e.preventDefault()}__escKeyHandler(e){e.key!==`Escape`||op.has(e)||!this.isShown&&this.__escKeyHandlerCalled||this.#c(e)&&(this.__escKeyHandlerCalled=!0,this.hide(),op.set(e,this))}#c=e=>e.composedPath().includes(this.__wrappingDialogNode)||this.invokerNode&&e.composedPath().includes(this.invokerNode)||If(this.contentNode,e.target);#l=e=>{e.key===`Escape`&&(this.#c(e)||this.hide())};_handleHidesOnEsc({phase:e}){e===`init`&&(this.contentNode.removeEventListener(`keyup`,this.__escKeyHandler),this.contentNode.addEventListener(`keyup`,this.__escKeyHandler),this.invokerNode&&this.invokerNode.addEventListener(`keyup`,this.__escKeyHandler)),e===`show`&&(this.__escKeyHandlerCalled=!1),e===`teardown`&&(this.contentNode.removeEventListener(`keyup`,this.__escKeyHandler),this.invokerNode&&this.invokerNode.removeEventListener(`keyup`,this.__escKeyHandler))}_handleHidesOnOutsideEsc({phase:e}){e===`init`?(document.removeEventListener(`keyup`,this.#l),document.addEventListener(`keyup`,this.#l)):e===`teardown`&&document.removeEventListener(`keyup`,this.#l)}_handleInheritsReferenceWidth(){if(!this._referenceNode||this.placementMode===`global`)return;let e=`${this._referenceNode.getBoundingClientRect().width}px`;switch(this.inheritsReferenceWidth){case`max`:this.contentWrapperNode.style.maxWidth=e;break;case`full`:this.contentWrapperNode.style.width=e;break;case`min`:this.contentWrapperNode.style.minWidth=e,this.contentWrapperNode.style.width=`auto`;break}}_handleHidesOnOutsideClick({phase:e}){let t=e===`show`?`addEventListener`:`removeEventListener`;if(e===`show`){let e=!1,t=!1;this.__onInsideMouseDown=()=>{e=!0},this.__onInsideMouseUp=()=>{t=!0},this.__onDocumentMouseUp=()=>{setTimeout(()=>{!e&&!t&&this.hide(),e=!1,t=!1})},this.__onWindowBlur=()=>{setTimeout(()=>{this.hide()})}}this.contentWrapperNode[t](`mousedown`,this.__onInsideMouseDown,!0),this.contentWrapperNode[t](`mouseup`,this.__onInsideMouseUp,!0),this.invokerNode&&(this.invokerNode[t](`mousedown`,this.__onInsideMouseDown,!0),this.invokerNode[t](`mouseup`,this.__onInsideMouseUp,!0)),document.documentElement[t](`mouseup`,this.__onDocumentMouseUp,!0),window[t](`blur`,this.__onWindowBlur)}_handleAccessibility({phase:e}){(e===`init`||e===`teardown`)&&this.__setupTeardownAccessibility({phase:e});let t=this.trapsKeyboardFocus;this.invokerNode&&!this.isTooltip&&!t&&this.invokerNode.setAttribute(`aria-expanded`,`${e===`show`}`)}teardown(){this.__handleOverlayStyles({phase:`teardown`}),this._handleFeatures({phase:`teardown`}),this.#t()&&this.manager.remove(this)}async __createPopperInstance(){if(this._popper&&=(this._popper.destroy(),void 0),e.popperModule!==void 0){let{createPopper:t}=await e.popperModule;this._popper=t(this._referenceNode,this.contentWrapperNode,{...this.config?.popperConfig})}}_hasDisabledInvoker(){return this.invokerNode?this.invokerNode.disabled||this.invokerNode.getAttribute(`aria-disabled`)===`true`:!1}};sp.popperModule=void 0;function cp(e,t){if(typeof e!=`object`||typeof t!=`object`||e===null||t===null)return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length?n.every(n=>cp(e[n],t[n])):!1}var lp=R(e=>class extends e{static get properties(){return{opened:{type:Boolean,reflect:!0}}}#e=!1;constructor(){super(),this.opened=!1,this.config={},this.toggle=this.toggle.bind(this),this.open=this.open.bind(this),this.close=this.close.bind(this)}get config(){return this.__config}set config(e){let t=!cp(this.config,e);this._overlayCtrl&&t&&this._overlayCtrl.updateConfig(e),this.__config=e,this._overlayCtrl&&t&&this.__syncToOverlayController()}requestUpdate(e,t,n){super.requestUpdate(e,t,n),e===`opened`&&this.opened!==t&&this.dispatchEvent(new CustomEvent(`opened-changed`,{detail:{opened:this.opened}}))}_defineOverlay({contentNode:e,invokerNode:t,referenceNode:n,backdropNode:r,contentWrapperNode:i}){let a=this._defineOverlayConfig()||{};return new sp({contentNode:e,invokerNode:t,referenceNode:n,backdropNode:r,contentWrapperNode:i,...a,...this.config,popperConfig:{...a.popperConfig||{},...this.config?.popperConfig||{},modifiers:[...a.popperConfig?.modifiers||[],...this.config?.popperConfig?.modifiers||[]]}})}_defineOverlayConfig(){return{placementMode:`local`}}updated(e){super.updated(e),e.has(`opened`)&&this._overlayCtrl&&!this.__blockSyncToOverlayCtrl&&this.__syncToOverlayController()}_setupOpenCloseListeners(){this.__closeEventInContentNodeHandler=e=>{e.stopPropagation(),this._overlayCtrl.hide()},this._overlayContentNode&&this._overlayContentNode.addEventListener(`close-overlay`,this.__closeEventInContentNodeHandler)}_teardownOpenCloseListeners(){this._overlayContentNode&&this._overlayContentNode.removeEventListener(`close-overlay`,this.__closeEventInContentNodeHandler)}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.isConnected&&(this.#e||=(this._setupOverlayCtrl(),!0))})}async disconnectedCallback(){super.disconnectedCallback(),await this._isPermanentlyDisconnected()&&(this._teardownOverlayCtrl(),this.#e=!1)}static enabledWarnings=super.enabledWarnings?.filter(e=>e!==`change-in-update`)||[];get _overlayInvokerNode(){return Array.from(this.children).find(e=>e.slot===`invoker`)}get _overlayReferenceNode(){}get _overlayBackdropNode(){return this.__cachedOverlayBackdropNode||=Array.from(this.children).find(e=>e.slot===`backdrop`),this.__cachedOverlayBackdropNode}get _overlayContentNode(){return this._cachedOverlayContentNode||=Array.from(this.children).find(e=>e.slot===`content`)||this.config.contentNode,this._cachedOverlayContentNode}get _overlayContentWrapperNode(){return this.shadowRoot?.querySelector(`#overlay-content-node-wrapper`)}_setupOverlayCtrl(){if(this.#e)return;let e={contentNode:this._overlayContentNode,contentWrapperNode:this._overlayContentWrapperNode,invokerNode:this._overlayInvokerNode,referenceNode:this._overlayReferenceNode,backdropNode:this._overlayBackdropNode};this._overlayCtrl?this._overlayCtrl.updateConfig(e):this._overlayCtrl=this._defineOverlay(e),this.__syncToOverlayController(),this.__setupSyncFromOverlayController(),this._setupOpenCloseListeners()}_teardownOverlayCtrl(){this._overlayCtrl&&(this._teardownOpenCloseListeners(),this.__teardownSyncFromOverlayController(),this._overlayCtrl.teardown())}async _setOpenedWithoutPropertyEffects(e){this.__blockSyncToOverlayCtrl=!0,this.opened=e,await this.updateComplete,this.__blockSyncToOverlayCtrl=!1}__setupSyncFromOverlayController(){this.__onOverlayCtrlShow=()=>{this.opened=!0},this.__onOverlayCtrlHide=()=>{this.opened=!1},this.__onBeforeShow=e=>{let t=new CustomEvent(`before-opened`,{cancelable:!0});this.dispatchEvent(t),t.defaultPrevented&&(this._setOpenedWithoutPropertyEffects(this._overlayCtrl.isShown),e.preventDefault())},this.__onBeforeHide=e=>{let t=new CustomEvent(`before-closed`,{cancelable:!0});this.dispatchEvent(t),t.defaultPrevented&&(this._setOpenedWithoutPropertyEffects(this._overlayCtrl.isShown),e.preventDefault())},this._overlayCtrl.addEventListener(`show`,this.__onOverlayCtrlShow),this._overlayCtrl.addEventListener(`hide`,this.__onOverlayCtrlHide),this._overlayCtrl.addEventListener(`before-show`,this.__onBeforeShow),this._overlayCtrl.addEventListener(`before-hide`,this.__onBeforeHide)}__teardownSyncFromOverlayController(){this._overlayCtrl.removeEventListener(`show`,this.__onOverlayCtrlShow),this._overlayCtrl.removeEventListener(`hide`,this.__onOverlayCtrlHide),this._overlayCtrl.removeEventListener(`before-show`,this.__onBeforeShow),this._overlayCtrl.removeEventListener(`before-hide`,this.__onBeforeHide)}__syncToOverlayController(){this.opened?this._overlayCtrl.show():this._overlayCtrl.hide()}async toggle(){await this._overlayCtrl.toggle()}async open(){await this._overlayCtrl.show()}async close(){await this._overlayCtrl.hide()}repositionOverlay(){let e=this._overlayCtrl;e.placementMode===`local`&&e._popper&&e._popper.update()}async _isPermanentlyDisconnected(){return await this.updateComplete,!this.isConnected}});function up(){return{visibilityTriggerFunction:({controller:e})=>{function t(){e._hasDisabledInvoker()||e.toggle()}return{init:()=>{e.invokerNode?.addEventListener(`click`,t)},teardown:()=>{e.invokerNode?.removeEventListener(`click`,t)}}}}}var dp=()=>({placementMode:`local`,inheritsReferenceWidth:`min`,hidesOnOutsideClick:!0,hidesOnEsc:!0,popperConfig:{placement:`bottom-start`,modifiers:[{name:`offset`,enabled:!1}]},handlesAccessibility:!0,...up()}),fp=class extends lp(h){_defineOverlayConfig(){return{...dp()}}_addEventListeners(){this.actionItems.forEach(e=>{e.addEventListener(`click`,e=>{e.target?.dispatchEvent(new Event(`close-overlay`,{bubbles:!0}))})})}_setupInvoker(){let e=this.invokerNodes[0];e&&(e.setAttribute(`id`,`invoker-${this.uid}`),e.setAttribute(`aria-controls`,`content-${this.uid}`))}_setupContent(){let e=this.contentNodes[0];e&&(e.setAttribute(`id`,`content-${this.uid}`),e.setAttribute(`role`,`none`))}_setupOverlayCtrl(){super._setupOverlayCtrl(),this._setupInvoker(),this._setupContent()}firstUpdated(){this.uid=hs(),this._addEventListeners()}render(){return l` @@ -4905,7 +4905,7 @@ import{n as e}from"./rolldown-runtime-tcWNtVWY.js";import{a as t,i as n,l as r,n z-index: 1; background: white; } - `]}static get localizeNamespaces(){return[{"lion-combobox":e=>{switch(e){case`bg-BG`:case`bg`:return M(()=>import(`./bg-NetaZsYp.js`),[],import.meta.url);case`cs-CZ`:case`cs`:return M(()=>import(`./cs-BEDP_Av7.js`),[],import.meta.url);case`de-AT`:case`de-DE`:case`de`:return M(()=>import(`./de-Dxh2rp_0.js`),[],import.meta.url);case`en-AU`:case`en-GB`:case`en-PH`:case`en-US`:case`en`:return M(()=>import(`./en-BYaE7gsq.js`),[],import.meta.url);case`es-ES`:case`es`:return M(()=>import(`./es-DLIHKxfy.js`),[],import.meta.url);case`fr-FR`:case`fr-BE`:case`fr`:return M(()=>import(`./fr-CXeuAkLD.js`),[],import.meta.url);case`hu-HU`:case`hu`:return M(()=>import(`./hu-7_5vUfLG.js`),[],import.meta.url);case`it-IT`:case`it`:return M(()=>import(`./it-XrpC3Dpw.js`),[],import.meta.url);case`nl-BE`:case`nl-NL`:case`nl`:return M(()=>import(`./nl-D1esCHcC.js`),[],import.meta.url);case`pl-PL`:case`pl`:return M(()=>import(`./pl-CtGLEJog.js`),[],import.meta.url);case`ro-RO`:case`ro`:return M(()=>import(`./ro-Cu4KC9bw.js`),[],import.meta.url);case`ru-RU`:case`ru`:return M(()=>import(`./ru-E8f-RrcZ.js`),[],import.meta.url);case`sk-SK`:case`sk`:return M(()=>import(`./sk-bTKzKab6.js`),[],import.meta.url);case`uk-UA`:case`uk`:return M(()=>import(`./uk-BDb6n5Lw.js`),[],import.meta.url);case`zh-CN`:case`zh`:return M(()=>import(`./zh--SGp65C0.js`),[],import.meta.url);default:return M(()=>import(`./en-BYaE7gsq.js`),[],import.meta.url)}}},...super.localizeNamespaces]}get modelValue(){let e=super.modelValue;return e===``?this.parser(this.value):e}set modelValue(e){super.modelValue=e}get value(){return this._inputNode?.value||this.__value||``}set value(e){this._inputNode?(this._inputNode.value=e,this.__value=void 0):this.__value=e}reset(){super.reset(),this.multipleChoice||(this.value=this._initialModelValue),this._resetListboxOptions()}_resetListboxOptions(){this.formElements.forEach((e,t)=>{this._unhighlightMatchedOption(e),!this.showAllOnEmpty||!this.opened?e.style.display=`none`:(e.style.display=``,e.setAttribute(`aria-posinset`,`${t+1}`),e.setAttribute(`aria-setsize`,`${this.formElements.length}`),e.removeAttribute(`aria-hidden`))})}_inputGroupInputTemplate(){return l` + `]}static get localizeNamespaces(){return[{"lion-combobox":e=>{switch(e){case`bg-BG`:case`bg`:return M(()=>import(`./bg-hud0UK7n.js`),[],import.meta.url);case`cs-CZ`:case`cs`:return M(()=>import(`./cs-DDTmPCqn.js`),[],import.meta.url);case`de-AT`:case`de-DE`:case`de`:return M(()=>import(`./de-Cbh03JL9.js`),[],import.meta.url);case`en-AU`:case`en-GB`:case`en-PH`:case`en-US`:case`en`:return M(()=>import(`./en-DRfVtf7A.js`),[],import.meta.url);case`es-ES`:case`es`:return M(()=>import(`./es-BgW1XGKa.js`),[],import.meta.url);case`fr-FR`:case`fr-BE`:case`fr`:return M(()=>import(`./fr-BgV-t6Mc.js`),[],import.meta.url);case`hu-HU`:case`hu`:return M(()=>import(`./hu-Cb5LHz_u.js`),[],import.meta.url);case`it-IT`:case`it`:return M(()=>import(`./it-D9dkuW8y.js`),[],import.meta.url);case`nl-BE`:case`nl-NL`:case`nl`:return M(()=>import(`./nl-Bnnn_mHd.js`),[],import.meta.url);case`pl-PL`:case`pl`:return M(()=>import(`./pl-DrP0Ego3.js`),[],import.meta.url);case`ro-RO`:case`ro`:return M(()=>import(`./ro-Bfek1r_N.js`),[],import.meta.url);case`ru-RU`:case`ru`:return M(()=>import(`./ru-CtZrREco.js`),[],import.meta.url);case`sk-SK`:case`sk`:return M(()=>import(`./sk-CIsvWlC7.js`),[],import.meta.url);case`uk-UA`:case`uk`:return M(()=>import(`./uk-7nDnIfSD.js`),[],import.meta.url);case`zh-CN`:case`zh`:return M(()=>import(`./zh-W20ZWvpi.js`),[],import.meta.url);default:return M(()=>import(`./en-DRfVtf7A.js`),[],import.meta.url)}}},...super.localizeNamespaces]}get modelValue(){let e=super.modelValue;return e===``?this.parser(this.value):e}set modelValue(e){super.modelValue=e}get value(){return this._inputNode?.value||this.__value||``}set value(e){this._inputNode?(this._inputNode.value=e,this.__value=void 0):this.__value=e}reset(){super.reset(),this.multipleChoice||(this.value=this._initialModelValue),this._resetListboxOptions()}_resetListboxOptions(){this.formElements.forEach((e,t)=>{this._unhighlightMatchedOption(e),!this.showAllOnEmpty||!this.opened?e.style.display=`none`:(e.style.display=``,e.setAttribute(`aria-posinset`,`${t+1}`),e.setAttribute(`aria-setsize`,`${this.formElements.length}`),e.removeAttribute(`aria-hidden`))})}_inputGroupInputTemplate(){return l` diff --git a/resources/build/assets/cp-DMdeS8U_.css b/resources/build/assets/cp-DMdeS8U_.css new file mode 100644 index 00000000000..9c39079f11a --- /dev/null +++ b/resources/build/assets/cp-DMdeS8U_.css @@ -0,0 +1 @@ +.selectize-control{position:relative}.selectize-dropdown,.selectize-input,.selectize-input input{color:#303030;font-smoothing:inherit;font-family:inherit;font-size:13px;line-height:18px}.selectize-control.single .selectize-input.input-active,.selectize-input{cursor:text;background:#fff;display:inline-block}.selectize-input{box-sizing:border-box;z-index:1;border:1px solid #d0d0d0;border-radius:3px;width:100%;padding:8px;display:inline-block;position:relative;box-shadow:inset 0 1px 1px #0000001a}.selectize-control.multi .selectize-input.has-items{padding:6px 8px 3px}.selectize-input.full{background-color:#fff}.selectize-input.disabled,.selectize-input.disabled *{cursor:default!important}.selectize-input.focus{box-shadow:inset 0 1px 2px #00000026}.selectize-input.dropdown-active{border-radius:3px 3px 0 0}.selectize-input>*{vertical-align:baseline;zoom:1;display:inline-block}.selectize-control.multi .selectize-input>div{color:#303030;cursor:pointer;background:#f2f2f2;border:0 solid #d0d0d0;margin:0 3px 3px 0;padding:2px 6px}.selectize-control.multi .selectize-input>div.active{color:#303030;background:#e8e8e8;border:0 solid #cacaca}.selectize-control.multi .selectize-input.disabled>div,.selectize-control.multi .selectize-input.disabled>div.active{color:#7d7d7d;background:#fff;border:0 solid #fff}.selectize-input>input{box-shadow:none!important;line-height:inherit!important;text-indent:0!important;-webkit-user-select:auto!important;user-select:auto!important;background:0 0!important;border:0!important;max-width:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;display:inline-block!important}.selectize-input>input::-ms-clear{display:none}.selectize-input>input:focus{outline:none!important}.selectize-input>input[placeholder]{box-sizing:initial}.selectize-input.has-items>input{margin:0!important}.selectize-input:after{clear:left;content:" ";display:block}.selectize-input.dropdown-active:before{content:" ";background:#f0f0f0;height:1px;display:block;position:absolute;bottom:0;left:0;right:0}.selectize-dropdown{box-sizing:border-box;z-index:10;background:#fff;border:1px solid #d0d0d0;border-top:0;border-radius:0 0 3px 3px;width:100%;margin:-1px 0 0;position:absolute;top:100%;left:0;box-shadow:0 1px 3px #0000001a}.selectize-dropdown [data-selectable]{cursor:pointer;overflow:hidden}.selectize-dropdown [data-selectable] .highlight{background:#7da8d033;border-radius:1px}.selectize-dropdown .create,.selectize-dropdown .no-results,.selectize-dropdown .optgroup-header,.selectize-dropdown .option{padding:5px 8px}.selectize-dropdown .option,.selectize-dropdown [data-disabled],.selectize-dropdown [data-disabled] [data-selectable].option{cursor:inherit;opacity:.5}.selectize-dropdown [data-selectable].option{cursor:pointer;opacity:1}.selectize-dropdown .optgroup:first-child .optgroup-header{border-top:0}.selectize-dropdown .optgroup-header{color:#303030;cursor:default;background:#fff}.selectize-dropdown .active{color:#303030;background-color:#e8e8e8}.selectize-dropdown .active.create{color:#495c68}.selectize-dropdown .selected{color:#303030;background-color:#e8e8e8}.selectize-dropdown .create{color:#30303080}.selectize-dropdown .active:not(.selected){color:#495c68;background:#f5fafd}.selectize-dropdown-content{overflow-scrolling:touch;max-height:200px;overflow:hidden auto}.selectize-dropdown-emptyoptionlabel{text-align:center}.selectize-dropdown .spinner{width:30px;height:30px;margin:5px 8px;display:inline-block}.selectize-dropdown .spinner:after{content:" ";border:5px solid #d0d0d0;border-color:#d0d0d0 #0000;border-radius:50%;width:24px;height:24px;margin:3px;animation:1.2s linear infinite lds-dual-ring;display:block}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.selectize-control.single .selectize-input,.selectize-control.single .selectize-input input{cursor:pointer}.selectize-control.single .selectize-input.input-active,.selectize-control.single .selectize-input.input-active input:not(:read-only){cursor:text}.selectize-control.single .selectize-input:not(.no-arrow):after{content:" ";border:5px solid #0000;border-top-color:gray;border-bottom-width:0;width:0;height:0;margin-top:-3px;display:block;position:absolute;top:50%;right:15px}.selectize-control.single .selectize-input:not(.no-arrow).dropdown-active:after{border-width:0 5px 5px;border-color:#0000 #0000 gray;margin-top:-4px}.selectize-control.rtl{text-align:right}.selectize-control.rtl.single .selectize-input:after{left:15px;right:auto}.selectize-control.rtl .selectize-input>input{margin:0 4px 0 -2px!important}.selectize-control .selectize-input.disabled{opacity:.5;background-color:#fafafa}.selectize-dropdown.plugin-auto_position.selectize-position-top{border-top:1px solid #d0d0d0;border-bottom:0;border-radius:3px 3px 0 0;box-shadow:0 -6px 12px #0000002e}.selectize-control.plugin-auto_position .selectize-input.selectize-position-top.dropdown-active{border-top:0;border-radius:0 0 3px 3px}.selectize-control.plugin-auto_position .selectize-input.selectize-position-top.dropdown-active:before{bottom:unset;top:0}.selectize-control.plugin-clear_button .clear{color:#000;cursor:pointer;opacity:.4;z-index:1;border:0;justify-content:center;align-items:center;width:25px;height:100%;font-size:21px;font-weight:700;text-decoration:none;display:flex;position:absolute;top:0;right:2px}.selectize-control.plugin-clear_button .clear:hover{opacity:1}.selectize-control.plugin-clear_button.single .clear{right:calc(2px + 1.5rem)}.selectize-control.plugin-drag_drop.multi>.selectize-input.dragging{overflow:visible}.selectize-control.plugin-drag_drop.multi>.selectize-input>div.ui-sortable-placeholder{box-shadow:inset 0 0 12px 4px #fff;visibility:visible!important;background:#0000000f!important;border:0!important}.selectize-control.plugin-drag_drop .ui-sortable-placeholder:after{content:"!";visibility:hidden}.selectize-control.plugin-drag_drop .ui-sortable-helper{box-shadow:0 2px 5px #0003}.selectize-dropdown.plugin-dropdown_header .selectize-dropdown-header{background:#f8f8f8;border-bottom:1px solid #d0d0d0;border-radius:3px 3px 0 0;padding:10px 8px;position:relative}.selectize-dropdown.plugin-dropdown_header .selectize-dropdown-header-close{color:#303030;opacity:.4;margin-top:-12px;line-height:20px;text-decoration:none;position:absolute;top:50%;right:8px;font-size:20px!important}.selectize-dropdown.plugin-dropdown_header .selectize-dropdown-header-close:hover{color:#000}.selectize-dropdown.plugin-optgroup_columns .selectize-dropdown-content{display:flex}.selectize-dropdown.plugin-optgroup_columns .optgroup{border-top:0;border-right:1px solid #f2f2f2;flex-grow:1;flex-basis:0;min-width:0}.selectize-dropdown.plugin-optgroup_columns .optgroup:last-child{border-right:0}.selectize-dropdown.plugin-optgroup_columns .optgroup:before{display:none}.selectize-dropdown.plugin-optgroup_columns .optgroup-header{border-top:0}.selectize-control.plugin-remove_button .item{align-items:center;display:inline-flex;padding-right:0!important}.selectize-control.plugin-remove_button .item .remove{box-sizing:border-box;color:inherit;vertical-align:middle;border-left:1px solid #d0d0d0;border-radius:0 2px 2px 0;margin-left:6px;padding:2px 6px;text-decoration:none;display:inline-block}.selectize-control.plugin-remove_button .item .remove:hover{background:#0000000d}.selectize-control.plugin-remove_button .item.active .remove{border-left-color:#cacaca}.selectize-control.plugin-remove_button .disabled .item .remove:hover{background:0}.selectize-control.plugin-remove_button .disabled .item .remove{border-left-color:#fff} diff --git a/resources/build/assets/cp-DMiKNmHz.js b/resources/build/assets/cp-DMiKNmHz.js deleted file mode 100644 index 0935c37bfea..00000000000 --- a/resources/build/assets/cp-DMiKNmHz.js +++ /dev/null @@ -1 +0,0 @@ -import"./cp-DdGjhisW.js";import{t as e}from"./cp-JBHEwgkq.js";import"./CpGlobalSidebar-DCHlPFlX.js";import"./CpQueueIndicator-Dvcn0peV.js";window.Cp={...window.Cp||{},...e},console.log(`window.Cp defined`,window.Cp); \ No newline at end of file diff --git a/resources/build/assets/cp-JBHEwgkq.js b/resources/build/assets/cp-JBHEwgkq.js deleted file mode 100644 index b9b03f50d60..00000000000 --- a/resources/build/assets/cp-JBHEwgkq.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Login-C2hh2SSE.js","./_plugin-vue_export-helper-B5xWb4v9.js","./rolldown-runtime-tcWNtVWY.js","./login-form-D4iZYHEp.js","./decorate-Cew0PsnK.js","./cp-DdGjhisW.js","./lit-BpPOIUnZ.js","./decorators-BOwDFZC2.js","./nav-item-ixoxjtrg-BwccWdU9.js","./nav-list.ts-DFQCq34g.js","./LoginController-CcEGM60c.js","./wayfinder-BO4LFEOp.js","./Login-Djs9SWPw.css","./Schemas-DnW-muFG.js","./AdminTable-fmWBDoLo.js","./Select-DjNjrJvy.js","./AdminTable-Bj_YAoYj.css","./AppLayout-CMfRP4dO.js","./dist-CpsNQjmZ.js","./InlineFlash-CASXlxQJ.js","./InlineFlash-C-_rKaUn.css","./AppLayout-DBrzZxlL.css","./createCraftColumnHelper-DmeFY1c4.js","./Pane-CukoaDZn.js","./Pane-xB61L5lj.css","./DeleteButton-B6fT-tEn.js","./Tokens-BeqRdx65.js","./Install-C2AqAj63.js","./CraftInput-OjhrLWw-.js","./Modal-CL0jkx8C.js","./Modal-CNWY-vSm.css","./useFetch-Cy5lqSMM.js","./CraftCombobox-B64mFprO.js","./InputCombobox-DyQ9GfLq.js","./keyboard-CnTkv6a2.js","./InputCombobox-BXC3WkiB.css","./Install-DmCljMo-.css","./Email-KnC4LAQv.js","./useEditableTable-CvZkA1nY.js","./useSettingsSave-Ddp2zTwK.js","./EntryTypes-CFAdvH6n.js","./EntryTypesController-Dp1B-3A3.js","./DynamicHtmlRenderer-D9wFz2Y2.js","./useServerSort-DMoG73XS.js","./Fields-DZc5YARJ.js","./Filesystems-D1Z5CWFD.js","./General-BICvMtYY.js","./transformBooleanOptions-CGCIZkUn.js","./General-R4Ku0d-3.css","./ImageTransforms-Cx-vC0NT.js","./VolumesController-RT9K4v-C.js","./IndexLayout-pvGJ0smu.js","./IndexLayout-CUUgPCnc.css","./Index-BIInLoJb.js","./Index-DxfI2Esy.css","./Plugins-2gJYuIka.js","./Badge-B3VABdfY.js","./Plugins--9TE2AuK.css","./Sections-CGx28Lvz.js","./SectionsController-B3ByRvU3.js","./SectionsEdit-BVoVw_jD.js","./CraftInputHandle-QcuBEwPz.js","./useInputGenerator-CoRT24tj.js","./SectionsEdit-Bs3JBJkW.css","./Sites-m_h0JPaw.js","./DeleteSiteModal-D1_4llb0.js","./ModalForm-ThXtiTAf.js","./Sites-BrJ7_owM.css","./SitesEdit-CUTKbU4C.js","./UserGroups-CD-noNZH.js","./UserGroupsController-CGeKH4IE.js","./UserGroupsEdit-CXpSSM9e.js","./CraftTextarea-Dsy8Ztwt.js","./UserGroupsEdit-15c5W_U5.css","./Volumes-BKk84KCL.js","./Index-CoQkToLa.js","./Index-BCuyzzDV.css","./Show-DLwL8lpT.js"])))=>i.map(i=>d[i]); -import{c as e,f as t,g as n,h as r,m as i,p as a}from"./cp-DdGjhisW.js";import{c as o,l as s}from"./nav-item-ixoxjtrg-BwccWdU9.js";import{B as c,E as l,H as u,I as d,J as f,L as p,N as m,Q as h,R as g,S as ee,T as _,V as te,X as v,Y as ne,_ as y,at as re,b,c as ie,dt as x,ft as S,h as ae,i as C,j as oe,k as w,m as T,n as se,ot as E,p as ce,q as le,s as ue,st as de,t as D,tt as O,v as k,w as A,x as j,y as M,z as fe}from"./_plugin-vue_export-helper-B5xWb4v9.js";import{c as pe,l as me,n as he,s as ge,t as _e}from"./AdminTable-fmWBDoLo.js";import{t as ve}from"./Pane-CukoaDZn.js";import{a as ye,i as be,o as xe,r as Se,s as Ce,t as we}from"./InlineFlash-CASXlxQJ.js";import{t as Te}from"./Badge-B3VABdfY.js";import{i as Ee,n as N,r as De,t as Oe}from"./wayfinder-BO4LFEOp.js";import{n as ke,r as Ae,t as je}from"./useFetch-Cy5lqSMM.js";import{t as Me}from"./DeleteButton-B6fT-tEn.js";import{n as Ne}from"./dist-CpsNQjmZ.js";import{t as Pe}from"./Modal-CL0jkx8C.js";import{n as Fe,t as Ie}from"./createCraftColumnHelper-DmeFY1c4.js";import{t as Le}from"./CraftInput-OjhrLWw-.js";import{n as Re,t as ze}from"./CraftTextarea-Dsy8Ztwt.js";import{a as Be,c as Ve,d as He,f as Ue,m as We,n as Ge,o as Ke,p as qe,r as Je,t as Ye}from"./keyboard-CnTkv6a2.js";import{t as Xe}from"./ModalForm-ThXtiTAf.js";var P=(e,t)=>({url:P.url(e,t),method:`get`});P.definition={methods:[`get`,`head`],url:`/admin/utilities/deprecation-errors/{logId}`},P.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={logId:e}),Array.isArray(e)&&(e={logId:e[0]}),e=Oe(e);let n={logId:e.logId};return P.definition.url.replace(`{logId}`,n.logId.toString()).replace(/\/+$/,``)+N(t)},P.get=(e,t)=>({url:P.url(e,t),method:`get`}),P.head=(e,t)=>({url:P.url(e,t),method:`head`});var Ze={show:Object.assign(P,P)},F=(e,t)=>({url:F.url(e,t),method:`get`});F.definition={methods:[`get`,`head`],url:`/admin/utilities/{id}/{extra?}`},F.url=(e,t)=>{Array.isArray(e)&&(e={id:e[0],extra:e[1]}),e=Oe(e),De(e,[`extra`]);let n={id:e.id,extra:e.extra};return F.definition.url.replace(`{id}`,n.id.toString()).replace(`{extra?}`,n.extra?.toString()??``).replace(/\/+$/,``)+N(t)},F.get=(e,t)=>({url:F.url(e,t),method:`get`}),F.head=(e,t)=>({url:F.url(e,t),method:`head`}),Object.assign(Ze,Ze),Object.assign(F,F);var Qe=[`loading`],$e=l({__name:`RetryJobButton`,props:{job:{}},setup(e){let t=e,{flash:r}=xe(),{execute:i,state:a}=je(`queue/retry`);async function o(){confirm(s(`Are you sure you want to restart the job “{description}”? Any progress could be lost.`,{description:t.job.description}))&&(await i({id:x(t.job.uid)}),S.visit(F({id:`queue-manager`}),{only:[`contentHtml`]}))}return f(a,e=>{e===`success`?t.job.status.value===n.Reserved?r(`success`,s(`Job restarted.`)):r(`success`,s(`Job retried.`)):e===`error`&&r(`error`,s(`Failed to retry job.`))}),(e,t)=>(g(),j(`craft-button`,m({type:`button`,onClick:o,size:`small`,loading:x(a)===`loading`},e.$attrs),[t[0]||=k(`craft-icon`,{name:`play`,slot:`prefix`,style:{"font-size":`0.7em`}},null,-1),A(` `+O(x(s)(`Retry`)),1)],16,Qe))}}),et=[`loading`],tt=l({__name:`ReleaseJobButton`,props:{job:{}},setup(e){let t=e,{flash:n}=xe(),{execute:r,state:i}=je(`queue/release`);async function a(){confirm(s(`Are you sure you want to release the job “{description}”?`,{description:t.job.description}))&&(await r({id:x(t.job.uid)}),S.visit(F({id:`queue-manager`}),{only:[`contentHtml`]}))}return f(i,e=>{e===`success`?n(`success`,s(`Job released.`)):e===`error`&&n(`error`,s(`Failed to release job.`))}),(e,t)=>(g(),j(`craft-button`,m({type:`button`,onClick:a,size:`small`,loading:x(i)===`loading`},e.$attrs),[t[0]||=k(`craft-icon`,{name:`remove`,slot:`prefix`},null,-1),A(` `+O(x(s)(`Release`)),1)],16,et))}}),nt=[`textContent`],rt=l({__name:`QueueManagerIndex`,props:{jobs:{},totalJobs:{default:0}},setup(e){let t=e,r=pe();function i(e){return e===2||e===3?`success`:e===4?`danger`:e===5?`warning`:`default`}function a(e){return e.status.value==n.Failed}let o=E([r.accessor(`description`,{header:()=>s(`Name`),cell:({row:e,getValue:t})=>w(Ce,{href:F.url({id:`queue-manager`,extra:e.original.uid})},()=>t())}),r.accessor(`status`,{header:()=>s(`Status`),size:50,cell:e=>w(Te,{variant:i(e.getValue().value)},()=>e.getValue().label)}),r.display({id:`progress`,header:()=>s(`Progress`),cell:({row:e})=>e.original.progress>0?`${e.original.progress}% ${e.original.progressLabel?`(${e.original.progressLabel})`:``}`:``}),r.display({id:`actions`,cell:({row:e})=>w(`div`,{class:`flex justify-end gap-2`},[a(e.original)?w($e,{job:e.original}):null,e.original.status.value===n.Done?null:w(tt,{job:e.original})])})]),c=ge({get data(){return t.jobs},get columns(){return o.value},getCoreRowModel:me()});return(t,n)=>e.jobs.length>0?(g(),M(ve,{key:0,padding:0},{footer:v(()=>[k(`div`,{class:`flex p-2 bg-slate-100`,textContent:O(x(s)(`{totalJobs, plural, =0{No jobs} =1{# job} other{# jobs}}`,{totalJobs:e.totalJobs}))},null,8,nt)]),default:v(()=>[_(_e,{table:x(c),reorderable:!1,layout:`fixed`},null,8,[`table`])]),_:1})):(g(),M(he,{key:1,icon:`play`,label:x(s)(`There are no jobs in the queue`)},null,8,[`label`]))}}),it={class:`p-4`},at={class:`mb-3`},ot={class:`table-fixed border-collapse w-full`},st={key:0},ct={key:3},lt={key:1},ut={class:`mt-6`},dt={class:`text-lg`},ft={class:`my-2`},pt=D(l({__name:`QueueManagerShow`,props:{job:{}},setup(e){let t=e,n=y(()=>t.job),r=[`delay`,`description`,`progressLabel`,`job`];function i(e){return e===2||e===3?`success`:e===4?`danger`:e===5?`warning`:`default`}function a(e){return s(`{num, number} {num, plural, =1{second} other{seconds}}`,{num:e})}function o(e){switch(e){case`uid`:return s(`UID`);case`class`:return s(`Class`);case`status`:return s(`Status`);case`progress`:return s(`Progress`);case`description`:return s(`Description`);case`label`:return s(`Label`);case`dateCreated`:return s(`Created`);case`ttr`:return s(`Time to reserve`);case`error`:return s(`Error`);case`delay`:return s(`Delay`);default:return e}}return(t,l)=>(g(),j(`div`,it,[k(`h2`,at,O(e.job.description),1),k(`table`,ot,[k(`tbody`,null,[(g(!0),j(T,null,c(n.value,(t,n)=>(g(),j(`tr`,{key:n},[r.includes(n)?b(``,!0):(g(),j(T,{key:0},[k(`th`,{class:h({"text-left":!0,"py-2":!0,"text-red-600":n===`error`})},O(o(n)),3),k(`td`,{class:h({"py-2":!0,"text-red-600":n===`error`})},[n==`status`?(g(),M(Te,{key:0,variant:i(e.job.status.value)},{default:v(()=>[A(O(e.job.status.label),1)]),_:1},8,[`variant`])):n==`progress`?(g(),j(T,{key:1},[A(O(e.job.progress)+`% `,1),e.job.progressLabel?(g(),j(`span`,st,`(`+O(e.job.progressLabel)+`)`,1)):b(``,!0)],64)):n==`ttr`?(g(),j(T,{key:2},[A(O(a(t)),1)],64)):n==`class`?(g(),j(`code`,ct,O(t),1)):n===`dateCreated`?(g(),j(T,{key:4},[A(O(new Date(t).toLocaleString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,second:`2-digit`,timeZoneName:`short`})),1)],64)):(g(),j(T,{key:5},[typeof t==`string`?(g(),j(T,{key:0},[A(O(t),1)],64)):(g(),j(`code`,lt,O(JSON.stringify(t,null,2)),1))],64))],2)],64))]))),128))])]),k(`div`,ut,[k(`h4`,dt,O(x(s)(`Job Data`)),1),k(`div`,ft,[_(ye,{data:e.job,style:{"font-size":`0.8rem`}},null,8,[`data`])])])]))}}),[[`__scopeId`,`data-v-093869df`]]),mt=Symbol(`Queue`),ht=Symbol(`Axios`),gt=Symbol(`Config`),_t=l({__name:`QueueManager`,props:{initialData:{},totalJobs:{default:0},activeJob:{default:null},hasReservedJobs:{type:Boolean,default:!1},hasWaitingJobs:{type:Boolean,default:!1}},setup(e){let t=e,n=oe(mt),r=E(t.initialData??[]),i=E(t.totalJobs);return d(async()=>{n?.addEventListener(`job-update`,e=>{let{detail:t}=e;r.value=t.jobInfo,i.value=t.totalJobs}),t.hasReservedJobs?n?.startTracking(!0):t.hasWaitingJobs&&await n?.runQueue()}),(t,n)=>e.activeJob?(g(),M(pt,{key:0,job:e.activeJob},null,8,[`job`])):(g(),M(rt,{key:1,jobs:r.value,"total-jobs":i.value},null,8,[`jobs`,`total-jobs`]))}}),vt={key:0,class:`spinner`},yt={key:0,icon:`triangle-exlamation`,variant:`danger`,appearance:`plain`},bt={key:0,icon:`circle-check`,variant:`success`,appearance:`plain`},xt=[`loading`],St=[`loading`],Ct=l({__name:`QueueManagerToolbar`,props:{activeJob:{default:null},jobs:{default:()=>[]}},setup(e){let t=e,{execute:r,state:i,error:a}=je(`queue/retry-all`),{execute:o,state:c,error:l}=je(`queue/release-all`),{flash:u,messages:d}=xe(),p=E(!1),m=y(()=>t.activeJob?.status.value==n.Reserved||t.activeJob?.status.value==n.Failed);async function h(){await r(),u(`success`,s(`Retrying all failed jobs.`)),S.visit(F({id:`queue-manager`}),{only:[`contentHtml`]})}f(a,()=>{u(`error`,s(`Failed to retry all jobs.`))}),f(l,()=>{u(`error`,s(`Failed to release all jobs.`))});async function ee(){confirm(s(`Are you sure you want to release all jobs in the queue?`))&&(await o(),u(`success`,s(`All jobs released.`)),S.visit(F({id:`queue-manager`}),{only:[`contentHtml`]}))}return(t,r)=>e.activeJob?(g(),j(T,{key:0},[_(Ce,{as:`craft-button`,href:x(F).url({id:`queue-manager`})},{default:v(()=>[r[0]||=k(`craft-icon`,{name:`arrow-left`,slot:`prefix`},null,-1),A(` `+O(x(s)(`Back`)),1)]),_:1},8,[`href`]),r[1]||=k(`div`,{class:`grow`},null,-1),p.value?(g(),j(`craft-spinner`,vt)):b(``,!0),m.value?(g(),M($e,{key:1,job:e.activeJob,size:`default`},null,8,[`job`])):b(``,!0),e.activeJob.status.value===x(n).Done?b(``,!0):(g(),M(tt,{key:2,job:e.activeJob,size:`default`},null,8,[`job`]))],64)):e.jobs.length?(g(),j(T,{key:1},[_(be,null,{default:v(()=>[x(d).error?(g(),j(`craft-callout`,yt,O(x(d).error),1)):b(``,!0)]),_:1}),_(be,null,{default:v(()=>[x(d).success?(g(),j(`craft-callout`,bt,O(x(d).success),1)):b(``,!0)]),_:1}),k(`craft-button`,{type:`button`,onClick:h,loading:x(i)===`loading`},[r[2]||=k(`craft-icon`,{name:`play`,slot:`prefix`},null,-1),A(` `+O(x(s)(`Retry all failed jobs`)),1)],8,xt),k(`craft-button`,{type:`button`,onClick:ee,loading:x(c)===`loading`},[r[3]||=k(`craft-icon`,{name:`remove`,slot:`prefix`},null,-1),A(` `+O(x(s)(`Release all jobs`)),1)],8,St)],64)):b(``,!0)}}),I=e=>({url:I.url(e),method:`post`});I.definition={methods:[`post`],url:`/admin/actions/utilities/get-deprecation-error-traces-modal`},I.url=e=>I.definition.url+N(e),I.post=e=>({url:I.url(e),method:`post`});var L=e=>({url:L.url(e),method:`post`});L.definition={methods:[`post`],url:`/admin/actions/utilities/delete-deprecation-error`},L.url=e=>L.definition.url+N(e),L.post=e=>({url:L.url(e),method:`post`});var R=e=>({url:R.url(e),method:`post`});R.definition={methods:[`post`],url:`/admin/actions/utilities/delete-all-deprecation-errors`},R.url=e=>R.definition.url+N(e),R.post=e=>({url:R.url(e),method:`post`});var z=(e,t)=>({url:z.url(e,t),method:`get`});z.definition={methods:[`get`,`head`],url:`/admin/utilities/deprecation-errors/{logId}`},z.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={logId:e}),Array.isArray(e)&&(e={logId:e[0]}),e=Oe(e);let n={logId:e.logId};return z.definition.url.replace(`{logId}`,n.logId.toString()).replace(/\/+$/,``)+N(t)},z.get=(e,t)=>({url:z.url(e,t),method:`get`}),z.head=(e,t)=>({url:z.url(e,t),method:`head`});var wt=(e,t)=>({url:wt.url(e,t),method:`delete`});wt.definition={methods:[`delete`],url:`/admin/utilities/deprecation-errors/{logId}`},wt.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={logId:e}),Array.isArray(e)&&(e={logId:e[0]}),e=Oe(e);let n={logId:e.logId};return wt.definition.url.replace(`{logId}`,n.logId.toString()).replace(/\/+$/,``)+N(t)},wt.delete=(e,t)=>({url:wt.url(e,t),method:`delete`});var Tt=e=>({url:Tt.url(e),method:`delete`});Tt.definition={methods:[`delete`],url:`/admin/utilities/deprecation-errors`},Tt.url=e=>Tt.definition.url+N(e),Tt.delete=e=>({url:Tt.url(e),method:`delete`});var Et=l({__name:`DeleteLogButton`,props:{logId:{}},setup(e){let{flash:t}=xe(),n=ue({logId:e.logId});async function r(){n.submit(L(),{preserveScroll:!0,preserveState:!0,onSuccess:()=>{t(`success`,s(`Log deleted.`))},onError:()=>{t(`error`,s(`Failed to delete log.`))}})}return(e,t)=>(g(),M(Me,{loading:x(n).processing,onClick:r,label:x(s)(`Delete log`)},null,8,[`loading`,`label`]))}}),Dt={key:0},Ot=[`innerHTML`],kt=l({__name:`StackTrace`,props:{logId:{}},setup(e){let t=ie({logId:e.logId}),n=E(null);return d(()=>{t.post(I().url,{onSuccess:({html:e})=>{n.value={html:e}}})}),(e,r)=>(g(),M(ve,{class:`max-w-4xl`},{default:v(()=>[x(t).processing?(g(),j(`craft-spinner`,Dt)):b(``,!0),x(t).wasSuccessful?(g(),j(`div`,{key:1,innerHTML:n.value?.html},null,8,Ot)):b(``,!0)]),_:1}))}}),At=l({__name:`StackTraceButton`,props:{logId:{}},setup(e){let t=E(!1);return(n,r)=>(g(),j(T,null,[k(`craft-button`,{size:`small`,type:`button`,onClick:r[0]||=ce(e=>t.value=!0,[`prevent`])},O(x(s)(`Stack Trace`)),1),(g(),M(ae,{to:`body`},[_(Pe,{"is-active":t.value,onClose:r[1]||=e=>t.value=!1},{default:v(()=>[_(kt,{"log-id":e.logId},null,8,[`log-id`])]),_:1},8,[`is-active`])]))],64))}}),jt=l({__name:`DeprecationErrors`,props:{logs:{}},setup(e){let t=e,n=Ie(),r=E([n.accessor(`message`,{header:s(`Message`),cell:e=>w(`span`,{innerHTML:e.getValue()}),meta:{trackSize:`3fr`,wrap:!0}}),n.accessor(`origin`,{header:s(`Origin`),cell:e=>w(`code`,{innerHTML:e.getValue()}),meta:{trackSize:`2fr`,wrap:!0}}),n.date(`lastOccurrence`),n.display({id:`stackTrace`,header:s(`Stack Trace`),meta:{trackSize:`120px`},cell:({row:e})=>w(At,{logId:e.original.id})}),n.actions(({row:e})=>[w(Et,{logId:e.original.id})])]),i=ge({get columns(){return r.value},get data(){return t.logs},getCoreRowModel:me(),enableSorting:!1});return(t,n)=>(g(),M(_e,{spacing:`relaxed`,layout:`auto`,table:x(i),from:1,to:e.logs.length,total:e.logs.length,reorderable:!1},{"empty-row":v(()=>[_(he,{label:x(s)(`No deprecation warnings to report!`)},null,8,[`label`])]),_:1},8,[`table`,`to`,`total`]))}}),B=e=>({url:B.url(e),method:`post`});B.definition={methods:[`post`],url:`/admin/actions/utilities/clear-caches-perform-action`},B.url=e=>B.definition.url+N(e),B.post=e=>({url:B.url(e),method:`post`});var V=e=>({url:V.url(e),method:`post`});V.definition={methods:[`post`],url:`/admin/actions/utilities/invalidate-tags`},V.url=e=>V.definition.url+N(e),V.post=e=>({url:V.url(e),method:`post`});var Mt=[`name`,`label`,`.model-value`,`disabled`],Nt=[`label`],Pt=[`.choice-value`],Ft={slot:`label`},It=[`innerHTML`],Lt=[`.choice-value`],Rt={slot:`label`},zt=[`innerHTML`],Bt=l({__name:`CheckboxGroup`,props:{name:{},label:{},disabled:{type:Boolean},modelValue:{},options:{},allowSelectAll:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=t;function r(e){let t=e.target;n(`update:modelValue`,t.modelValue)}return(t,n)=>(g(),j(`craft-checkbox-group`,{name:e.name,label:e.label,".model-value":e.modelValue,onModelValueChanged:r,disabled:e.disabled},[e.allowSelectAll?(g(),j(`craft-checkbox-indeterminate`,{key:0,label:x(s)(`All`)},[(g(!0),j(T,null,c(e.options,e=>(g(),j(`craft-checkbox`,{key:e.value,".choice-value":e.value},[k(`label`,Ft,[te(t.$slots,`label`,{option:e},()=>[A(O(e.label),1)])]),e.info?(g(),j(`div`,{key:0,slot:`help-text`,innerHTML:e.info},null,8,It)):b(``,!0)],40,Pt))),128))],8,Nt)):(g(!0),j(T,{key:1},c(e.options,e=>(g(),j(`craft-checkbox`,{key:e.value,".choice-value":e.value},[k(`label`,Rt,[te(t.$slots,`label`,{option:e},()=>[A(O(e.label),1)])]),e.info?(g(),j(`div`,{key:0,slot:`help-text`,innerHTML:e.info},null,8,zt)):b(``,!0)],40,Lt))),128))],40,Mt))}}),Vt={class:`p-4`},Ht={class:`mb-3`},Ut={class:`mt-4 flex gap-2 items-center`},Wt=[`loading`],Gt={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},Kt={class:`p-4`},qt={class:`mb-3`},Jt={class:`mt-4`},Yt={class:`flex gap-2 items-center`},Xt=[`loading`],Zt={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},Qt=l({__name:`ClearCaches`,props:{cacheOptions:{},tagOptions:{}},setup(e){let t=e,{announce:n}=Se(),r=ue({caches:t.cacheOptions.map(e=>e.value)}),i=ue({tags:t.tagOptions.map(e=>e.value)});function a(e=[]){return e.filter(Boolean)}return(t,o)=>(g(),j(T,null,[k(`div`,Vt,[k(`h2`,Ht,O(x(s)(`Clear Caches`)),1),_(x(C),{method:`post`,action:x(B)(),transform:e=>({caches:a(e.caches)}),"on-success":()=>{x(n)(x(s)(`Caches cleared`))}},{default:v(({processing:t,recentlySuccessful:n})=>[_(Bt,{name:`caches[]`,label:x(s)(`Caches`),modelValue:x(r).caches,"onUpdate:modelValue":o[0]||=e=>x(r).caches=e,options:e.cacheOptions,"allow-select-all":!0},null,8,[`label`,`modelValue`,`options`]),k(`div`,Ut,[k(`craft-button`,{type:`submit`,loading:t},O(x(s)(`Clear caches`)),9,Wt),_(be,null,{default:v(()=>[n?(g(),j(`craft-callout`,Gt,O(x(s)(`Caches cleared.`)),1)):b(``,!0)]),_:2},1024)])]),_:1},8,[`action`,`transform`,`on-success`])]),o[2]||=k(`hr`,null,null,-1),k(`div`,Kt,[k(`h2`,qt,O(x(s)(`Invalidate Data Caches`)),1),_(x(C),{method:`post`,action:x(V)(),transform:e=>({tags:a(e.tags)}),"on-success":()=>{x(n)(x(s)(`Data caches invalidated`))}},{default:v(({processing:t,recentlySuccessful:n})=>[_(Bt,{name:`tags[]`,label:x(s)(`Data Caches`),modelValue:x(i).tags,"onUpdate:modelValue":o[1]||=e=>x(i).tags=e,options:e.tagOptions,"allow-select-all":!0},null,8,[`label`,`modelValue`,`options`]),k(`div`,Jt,[k(`div`,Yt,[k(`craft-button`,{type:`submit`,loading:t},O(x(s)(`Invalidate caches`)),9,Xt),_(be,null,{default:v(()=>[n?(g(),j(`craft-callout`,Zt,O(x(s)(`Data caches invalidated.`)),1)):b(``,!0)]),_:2},1024)])])]),_:1},8,[`action`,`transform`,`on-success`])])],64))}}),H=e=>({url:H.url(e),method:`post`});H.definition={methods:[`post`],url:`/admin/actions/utilities/find-and-replace-perform-action`},H.url=e=>H.definition.url+N(e),H.post=e=>({url:H.url(e),method:`post`});var $t={class:`p-4`},en={class:`grid gap-3`},tn={class:`mt-4`},nn={class:`flex gap-2 items-center`},rn=[`loading`],an=l({__name:`FindReplace`,setup(e){let t=ue({find:``,replace:``});function n(){t.clearErrors(),t.submit(H(),{onSuccess:()=>{t.reset()}})}return(e,r)=>(g(),j(`div`,$t,[k(`form`,{onSubmit:ce(n,[`prevent`]),method:`post`},[k(`div`,en,[_(Le,{label:x(s)(`Find Text`),modelValue:x(t).find,"onUpdate:modelValue":r[0]||=e=>x(t).find=e,name:`find`,error:x(t).errors.find},null,8,[`label`,`modelValue`,`error`]),_(Le,{label:x(s)(`Replace Text`),modelValue:x(t).replace,"onUpdate:modelValue":r[1]||=e=>x(t).replace=e,name:`replace`,error:x(t).errors.replace},null,8,[`label`,`modelValue`,`error`])]),k(`div`,tn,[k(`div`,nn,[k(`craft-button`,{type:`submit`,loading:x(t).processing,variant:`primary`},O(x(s)(`Find and Replace`)),9,rn),_(we,{"is-active":x(t).recentlySuccessful},null,8,[`is-active`])])])],32)]))}}),U=e=>({url:U.url(e),method:`post`});U.definition={methods:[`post`],url:`/admin/actions/utilities/db-backup-perform-action`},U.url=e=>U.definition.url+N(e),U.post=e=>({url:U.url(e),method:`post`});var on={class:`p-4`},sn=[`action`],cn=[`name`,`value`],ln={class:`mt-4`},un=[`loading`],dn=l({__name:`DatabaseBackup`,setup(e){let t=ue({downloadBackup:!0}),{csrfTokenValue:n,csrfTokenName:r}=Ee(),i=le(`formRef`);function a(){if(t.clearErrors(),t.downloadBackup){i.value?.submit();return}t.post(U().url,{onSuccess:()=>{t.reset()}})}return(e,o)=>(g(),j(`div`,on,[k(`form`,{action:x(U)().url,ref_key:`formRef`,ref:i,onSubmit:ce(a,[`prevent`]),id:`db-backup`,method:`post`},[x(r)&&x(n)?(g(),j(`input`,{key:0,type:`hidden`,name:x(r),value:x(n)},null,8,cn)):b(``,!0),_(Re,{label:x(s)(`Download backup`),name:`downloadBackup`,modelValue:x(t).downloadBackup,"onUpdate:modelValue":o[0]||=e=>x(t).downloadBackup=e,value:`on`},null,8,[`label`,`modelValue`]),k(`div`,ln,[k(`craft-button`,{type:`submit`,variant:`primary`,loading:x(t).processing},O(x(s)(`Backup`)),9,un)])],40,sn)]))}}),W=e=>({url:W.url(e),method:`post`});W.definition={methods:[`post`],url:`/admin/actions/utilities/apply-new-migrations`},W.url=e=>W.definition.url+N(e),W.post=e=>({url:W.url(e),method:`post`});var fn={type:`submit`,variant:`primary`},pn=l({__name:`Migrations`,props:{newMigrations:{},migrationHistory:{}},setup(e){let t=e,n=y(()=>[...t.newMigrations.map(e=>({name:e,status:s(`New`),batch:void 0})),...t.migrationHistory.map(e=>({name:e.migration??e.name,status:s(`Applied`),batch:e.batch}))]),r=pe(),i=E([r.accessor(`name`,{header:s(`Name`),cell:e=>e.getValue()}),r.accessor(`status`,{header:s(`Status`),cell:e=>e.getValue()}),r.accessor(`batch`,{header:s(`Batch`),cell:e=>e.getValue()})]),a=ge({get columns(){return i.value},get data(){return n.value},getCoreRowModel:me()});return(t,r)=>(g(),j(T,null,[e.newMigrations?b(``,!0):(g(),M(he,{key:0,label:x(s)(`No pending content migrations.`)},null,8,[`label`])),n.value.length?(g(),j(T,{key:1},[e.newMigrations.length?(g(),M(x(C),{key:0,action:x(W)(),method:`post`},{default:v(()=>[k(`craft-button`,fn,O(x(s)(`Apply new migrations`)),1)]),_:1},8,[`action`])):b(``,!0),_(_e,{table:x(a),reorderable:!1},null,8,[`table`])],64)):b(``,!0)],64))}}),mn=(e=>(e[e.Open=0]=`Open`,e[e.Closed=1]=`Closed`,e))(mn||{}),hn=Symbol(`DisclosureContext`);function gn(e){let t=oe(hn,null);if(t===null){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,gn),t}return t}var _n=Symbol(`DisclosurePanelContext`);function vn(){return oe(_n,null)}var yn=l({name:`Disclosure`,props:{as:{type:[Object,String],default:`template`},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=E(+!e.defaultOpen),i=E(null),a=E(null),o={buttonId:E(`headlessui-disclosure-button-${We()}`),panelId:E(`headlessui-disclosure-panel-${We()}`),disclosureState:r,panel:i,button:a,toggleDisclosure(){r.value=Ue(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(e){o.closeDisclosure(),(e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?qe(e):qe(o.button):qe(o.button))?.focus()}};return fe(hn,o),Be(y(()=>Ue(r.value,{0:Ge.Open,1:Ge.Closed}))),()=>{let{defaultOpen:i,...a}=e;return Ke({theirProps:a,ourProps:{},slot:{open:r.value===0,close:o.close},slots:t,attrs:n,name:`Disclosure`})}}}),bn=l({name:`DisclosureButton`,props:{as:{type:[Object,String],default:`button`},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=gn(`DisclosureButton`),a=vn(),o=y(()=>a===null?!1:a.value===i.panelId.value);d(()=>{o.value||e.id!==null&&(i.buttonId.value=e.id)}),p(()=>{o.value||(i.buttonId.value=null)});let s=E(null);r({el:s,$el:s}),o.value||ne(()=>{i.button.value=s.value});let c=He(y(()=>({as:e.as,type:t.type})),s);function l(){var t;e.disabled||(o.value?(i.toggleDisclosure(),(t=qe(i.button))==null||t.focus()):i.toggleDisclosure())}function u(t){var n;if(!e.disabled)if(o.value)switch(t.key){case Ye.Space:case Ye.Enter:t.preventDefault(),t.stopPropagation(),i.toggleDisclosure(),(n=qe(i.button))==null||n.focus();break}else switch(t.key){case Ye.Space:case Ye.Enter:t.preventDefault(),t.stopPropagation(),i.toggleDisclosure();break}}function f(e){switch(e.key){case Ye.Space:e.preventDefault();break}}return()=>{let r={open:i.disclosureState.value===0},{id:a,...d}=e;return Ke({ourProps:o.value?{ref:s,type:c.value,onClick:l,onKeydown:u}:{id:i.buttonId.value??a,ref:s,type:c.value,"aria-expanded":i.disclosureState.value===0,"aria-controls":i.disclosureState.value===0||qe(i.panel)?i.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:l,onKeydown:u,onKeyup:f},theirProps:d,slot:r,attrs:t,slots:n,name:`DisclosureButton`})}}}),xn=l({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:t,slots:n,expose:r}){let i=gn(`DisclosurePanel`);d(()=>{e.id!==null&&(i.panelId.value=e.id)}),p(()=>{i.panelId.value=null}),r({el:i.panel,$el:i.panel}),fe(_n,i.panelId);let a=Je(),o=y(()=>a===null?i.disclosureState.value===0:(a.value&Ge.Open)===Ge.Open);return()=>{let r={open:i.disclosureState.value===0,close:i.close},{id:a,...s}=e;return Ke({ourProps:{id:i.panelId.value??a,ref:i.panel},theirProps:s,slot:r,attrs:t,slots:n,features:Ve.RenderStrategy|Ve.Static,visible:o.value,name:`DisclosurePanel`})}}}),Sn=[`name`],Cn={class:`release-info`},wn={class:`release-version`},Tn={key:0,class:`release-badge`},En={key:1,class:`release-date`},Dn={key:1,class:`release-header-static`},On={class:`release-info`},kn={class:`release-version`},An={key:0,class:`release-badge`},jn={key:1,class:`release-date`},Mn=D(l({__name:`Release`,props:{version:{},date:{},critical:{type:Boolean},notes:{}},setup(e){let t=e;function n(e){return e?new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`}):``}let r=y(()=>!!(t.critical||t.notes&&t.notes.includes(` t.notes?t.notes.replace(/(<\/?h)(3|4|5)\b/g,(e,t,n)=>`${t}${parseInt(n)+1} class="h${n}"`):``),a=y(()=>!!t.notes);return(t,o)=>(g(),M(x(yn),{"default-open":r.value},{default:v(({open:t})=>[k(`div`,{class:h([`release`,{"release--critical":e.critical}])},[a.value?(g(),M(x(bn),{key:0,class:`release-trigger`},{default:v(()=>[k(`craft-icon`,{name:t?`chevron-down`:`chevron-right`,style:{"font-size":`0.8em`}},null,8,Sn),k(`div`,Cn,[k(`strong`,wn,O(e.version),1),e.critical?(g(),j(`span`,Tn,O(x(s)(`Critical`)),1)):b(``,!0),e.date?(g(),j(`span`,En,O(n(e.date)),1)):b(``,!0)])]),_:2},1024)):(g(),j(`div`,Dn,[k(`div`,On,[k(`strong`,kn,O(e.version),1),e.critical?(g(),j(`span`,An,O(x(s)(`Critical`)),1)):b(``,!0),e.date?(g(),j(`span`,jn,O(n(e.date)),1)):b(``,!0)])])),a.value?(g(),M(x(xn),{key:2,class:`release-notes prose`,innerHTML:i.value},null,8,[`innerHTML`])):b(``,!0)],2)]),_:1},8,[`default-open`]))}}),[[`__scopeId`,`data-v-4f89c26b`]]),Nn=e=>({url:Nn.url(e),method:`post`});Nn.definition={methods:[`post`],url:`/admin/actions/updater`},Nn.url=e=>Nn.definition.url+N(e),Nn.post=e=>({url:Nn.url(e),method:`post`});var Pn=e=>({url:Pn.url(e),method:`post`});Pn.definition={methods:[`post`],url:`/admin/updates`},Pn.url=e=>Pn.definition.url+N(e),Pn.post=e=>({url:Pn.url(e),method:`post`});var Fn={"/admin/actions/updater":Nn,"/admin/updates":Pn},In=e=>({url:In.url(e),method:`post`});In.definition={methods:[`post`],url:`/admin/actions/updater/force-update`},In.url=e=>In.definition.url+N(e),In.post=e=>({url:In.url(e),method:`post`});var Ln=e=>({url:Ln.url(e),method:`post`});Ln.definition={methods:[`post`],url:`/admin/actions/updater/backup`},Ln.url=e=>Ln.definition.url+N(e),Ln.post=e=>({url:Ln.url(e),method:`post`});var Rn=e=>({url:Rn.url(e),method:`post`});Rn.definition={methods:[`post`],url:`/admin/actions/updater/server-check`},Rn.url=e=>Rn.definition.url+N(e),Rn.post=e=>({url:Rn.url(e),method:`post`});var zn=e=>({url:zn.url(e),method:`post`});zn.definition={methods:[`post`],url:`/admin/actions/updater/revert`},zn.url=e=>zn.definition.url+N(e),zn.post=e=>({url:zn.url(e),method:`post`});var Bn=e=>({url:Bn.url(e),method:`post`});Bn.definition={methods:[`post`],url:`/admin/actions/updater/migrate`},Bn.url=e=>Bn.definition.url+N(e),Bn.post=e=>({url:Bn.url(e),method:`post`});var Vn=e=>({url:Vn.url(e),method:`post`});Vn.definition={methods:[`post`],url:`/admin/actions/updater/precheck`},Vn.url=e=>Vn.definition.url+N(e),Vn.post=e=>({url:Vn.url(e),method:`post`});var Hn=e=>({url:Hn.url(e),method:`post`});Hn.definition={methods:[`post`],url:`/admin/actions/updater/recheck-composer`},Hn.url=e=>Hn.definition.url+N(e),Hn.post=e=>({url:Hn.url(e),method:`post`});var Un=e=>({url:Un.url(e),method:`post`});Un.definition={methods:[`post`],url:`/admin/actions/updater/composer-install`},Un.url=e=>Un.definition.url+N(e),Un.post=e=>({url:Un.url(e),method:`post`});var Wn=e=>({url:Wn.url(e),method:`post`});Wn.definition={methods:[`post`],url:`/admin/actions/updater/composer-remove`},Wn.url=e=>Wn.definition.url+N(e),Wn.post=e=>({url:Wn.url(e),method:`post`});var Gn=e=>({url:Gn.url(e),method:`post`});Gn.definition={methods:[`post`],url:`/admin/actions/updater/finish`},Gn.url=e=>Gn.definition.url+N(e),Gn.post=e=>({url:Gn.url(e),method:`post`});var Kn={index:Fn,forceUpdate:In,backup:Ln,serverCheck:Rn,revert:zn,migrate:Bn,precheck:Vn,recheckComposer:Hn,composerInstall:Un,composerRemove:Wn,finish:Gn},qn={class:`update`},Jn={class:`update-header`},Yn={class:`text-xl font-semibold`},Xn={class:`update-actions`},Zn=[`name`,`value`],Qn=[`name`,`value`],$n=[`loading`],er={type:`button`,slot:`invoker`,icon:``},tr=[`label`],nr={slot:`content`},rr={key:0,class:`note`},ir={key:1,class:`note ineligible`},ar={class:`releases`},or=D(l({__name:`Update`,props:{name:{},handle:{},packageName:{},releases:{default:()=>[]},status:{default:`eligible`},statusText:{},abandoned:{type:Boolean,default:!1},latestVersion:{},ctaText:{},ctaUrl:{type:[String,Boolean]},altCtaText:{},altCtaUrl:{},allowUpdates:{type:Boolean,default:!0}},setup(e){let t=e,n=y(()=>t.allowUpdates&&t.latestVersion&&t.ctaUrl!==void 0),r=y(()=>t.ctaText||s(`Update`)),i=s(`Copy plugin handle`),a=E(i);async function o(){try{await navigator.clipboard.writeText(t.handle??``),a.value=s(`Copied!`),setTimeout(()=>{a.value=i},1500)}catch(e){console.error(e),a.value=s(`Failed to copy`)}}let l=s(`Copy package name`),u=E(l);async function d(){try{await navigator.clipboard.writeText(t.packageName??``),u.value=s(`Copied!`),setTimeout(()=>{u.value=l},1500)}catch(e){console.error(e),u.value=s(`Failed to copy`)}}return(t,i)=>(g(),j(`div`,qn,[k(`div`,Jn,[k(`h2`,Yn,O(e.name),1),k(`div`,Xn,[n.value?(g(),j(T,{key:0},[e.ctaUrl?(g(),M(Ce,{key:0,href:e.ctaUrl,target:`_blank`,variant:`primary`,appearance:`button`},{default:v(()=>[A(O(r.value),1)]),_:1},8,[`href`])):(g(),M(x(C),{key:1,action:x(Kn).index[`/admin/actions/updater`](),method:`post`},{default:v(({processing:t})=>[i[0]||=k(`input`,{type:`hidden`,name:`return`,value:`utilities/updates`},null,-1),k(`input`,{type:`hidden`,name:`install[${e.handle}]`,value:`^${e.latestVersion}`},null,8,Zn),k(`input`,{type:`hidden`,name:`packageNames[${e.handle}]`,value:e.packageName},null,8,Qn),k(`craft-button`,{type:`submit`,variant:`primary`,loading:t},O(r.value),9,$n)]),_:1},8,[`action`]))],64)):b(``,!0),e.allowUpdates&&e.altCtaText?(g(),j(T,{key:1},[e.altCtaUrl?(g(),M(Ce,{key:0,href:e.altCtaUrl,appearance:`button`,variant:`default`},{default:v(()=>[A(O(e.altCtaText),1)]),_:1},8,[`href`])):b(``,!0)],64)):b(``,!0),k(`craft-action-menu`,null,[k(`craft-button`,er,[k(`craft-icon`,{name:`ellipsis`,label:x(s)(`Actions`)},null,8,tr)]),k(`div`,nr,[k(`craft-action-item`,{icon:`clipboard`,onClick:o},O(a.value),1),k(`craft-action-item`,{icon:`clipboard`,onClick:d},O(u.value),1)])])])]),e.abandoned?(g(),j(`blockquote`,rr,[k(`p`,null,O(e.statusText),1)])):e.status===`eligible`?b(``,!0):(g(),j(`blockquote`,ir,[k(`p`,null,O(e.statusText),1)])),k(`div`,ar,[(g(!0),j(T,null,c(e.releases,e=>(g(),M(Mn,m({key:e.version},{ref_for:!0},e),null,16))),128))])]))}}),[[`__scopeId`,`data-v-6406f6d7`]]),sr=e=>({url:sr.url(e),method:`post`});sr.definition={methods:[`post`],url:`/admin/actions/app/check-for-updates`},sr.url=e=>sr.definition.url+N(e),sr.post=e=>({url:sr.url(e),method:`post`});var cr=e=>({url:cr.url(e),method:`post`});cr.definition={methods:[`post`],url:`/admin/actions/app/cache-updates`},cr.url=e=>cr.definition.url+N(e),cr.post=e=>({url:cr.url(e),method:`post`});var lr={check:sr,cache:cr},ur={key:1,class:`updates-utility`},dr={key:0,class:`updates-header`},fr={class:`text-2xl font-semibold`},pr=[`loading`],mr={class:`updates-grid`},hr=D(l({__name:`Updates`,setup(e){let{data:t,isSuccess:n}=ke(`updates`,{params:{forceRefresh:!0,includeDetails:!0}}),{execute:r,data:i,isError:a,isSuccess:o}=Ae(lr.cache().url,{method:`post`,immediate:!1});f(n,()=>{n.value&&t.value&&r({updates:t.value,includeDetails:!0})});let l=y(()=>i.value?.allowUpdates??!1),u=y(()=>{let e=i.value?.updates?.cms;return!e||e.releases.length===0&&!e.abandoned?null:e}),d=y(()=>(i.value?.updates?.plugins??[]).filter(e=>e.releases.length>0||e.abandoned)),p=y(()=>u.value!==null||d.value.length>0),h=y(()=>{let e=0;return u.value&&ne(u.value)&&e++,d.value.forEach(t=>{ne(t)&&e++}),e}),ee=y(()=>{let e=[];return u.value&&te(u.value)&&e.push(u.value),d.value.forEach(t=>{te(t)&&e.push(t)}),e}),_=y(()=>s(`{num, plural, =1{# Available Update} other{# Available Updates}}`,{num:h.value}));function te(e){return!(e.status===`phpIssue`||e.status===`expired`||!e.releases.length||e.latestVersion===null)}function ne(e){return!(e.status===`phpIssue`||!e.releases.length||e.latestVersion===null)}let re=E(!1);function ie(){if(ee.value.length===0)return;re.value=!0;let e={},t={};ee.value.forEach(n=>{e[n.handle]=`^${n.latestVersion}`,t[n.handle]=n.packageName}),S.post(Kn.index[`/admin/actions/updater`](),{return:`utilities/updates`,install:e,packageNames:t},{onFinish:()=>{re.value=!1}})}return(e,t)=>x(a)?(g(),M(he,{key:0,icon:`alert-circle`,label:x(s)(`Unable to fetch updates at this time.`)},null,8,[`label`])):x(o)?(g(),j(T,{key:1},[p.value?(g(),j(`div`,ur,[l.value&&ee.value.length>1?(g(),j(`div`,dr,[k(`h1`,fr,O(_.value),1),k(`craft-button`,{type:`button`,variant:`primary`,loading:re.value,onClick:ie},O(x(s)(`Update all`)),9,pr)])):b(``,!0),k(`div`,mr,[u.value?(g(),M(or,m({key:0},u.value,{"allow-updates":l.value}),null,16,[`allow-updates`])):b(``,!0),(g(!0),j(T,null,c(d.value,e=>(g(),M(or,m({key:e.handle},{ref_for:!0},e,{"allow-updates":l.value}),null,16,[`allow-updates`]))),128))])])):(g(),M(he,{key:0,icon:`check`,label:x(s)(`You’re all up to date!`)},null,8,[`label`]))],64)):(g(),M(he,{key:2,label:x(s)(`Checking for updates…`)},{graphic:v(()=>[...t[0]||=[k(`craft-spinner`,{style:{"--size":`3rem`},visible:!0},null,-1)]]),_:1},8,[`label`]))}}),[[`__scopeId`,`data-v-b8bbb598`]]),G=e=>({url:G.url(e),method:`post`});G.definition={methods:[`post`],url:`/admin/actions/project-config/rebuild`},G.url=e=>G.definition.url+N(e),G.post=e=>({url:G.url(e),method:`post`});var K=e=>({url:K.url(e),method:`get`});K.definition={methods:[`get`,`head`],url:`/admin/actions/project-config/diff`},K.url=e=>K.definition.url+N(e),K.get=e=>({url:K.url(e),method:`get`}),K.head=e=>({url:K.url(e),method:`head`});var q=e=>({url:q.url(e),method:`post`});q.definition={methods:[`post`],url:`/admin/actions/project-config/discard`},q.url=e=>q.definition.url+N(e),q.post=e=>({url:q.url(e),method:`post`});var J=e=>({url:J.url(e),method:`get`});J.definition={methods:[`get`,`head`],url:`/admin/actions/project-config/download`},J.url=e=>J.definition.url+N(e),J.get=e=>({url:J.url(e),method:`get`}),J.head=e=>({url:J.url(e),method:`head`});var gr={rebuild:G,diff:K,discard:q,download:J},_r={key:0,class:`diff-loading`},vr={class:`py-2`},yr={key:0,class:`diff-show-all`},br=20,xr=D(l({__name:`ProjectConfigDiff`,props:{invert:{type:Boolean}},setup(e){let t=e,{data:n,isLoading:r}=Ae(gr.diff().url,{params:{invert:t.invert}}),i=E([]),a=E(!1);f(n,e=>{i.value=e.split(/\n/)});function o(){a.value=!0}let l=y(()=>a.value||i.value.length<=br?i.value:i.value.slice(0,br)),u=y(()=>i.value.length>br&&!a.value);return(e,t)=>(g(),M(ve,{variant:`code`,padding:0,class:h({loading:x(r)}),tabindex:`0`},{default:v(()=>[x(r)?(g(),j(`div`,_r,[...t[0]||=[k(`craft-spinner`,{visible:!0,class:`spinner`},null,-1)]])):(g(),j(T,{key:1},[k(`pre`,vr,[(g(!0),j(T,null,c(l.value,(e,t)=>(g(),j(`code`,{key:t,class:h({"diff-line":!0,"diff-line--add":e.startsWith(`+`),"diff-line--remove":e.startsWith(`-`),"diff-line--info":e.startsWith(`@@`)})},O(e),3))),128))]),u.value?(g(),j(`div`,yr,[k(`craft-button`,{type:`button`,variant:`hairline`,size:`lg`,onClick:o},O(x(s)(`Show all changes`)),1)])):b(``,!0)],64))]),_:1},8,[`class`]))}}),[[`__scopeId`,`data-v-d9a5713c`]]);function Sr(){let e=E(!1),t=E(!1);function n(){confirm(s(`Are you sure you want to discard the pending project config YAML changes?`))&&(t.value=!0,S.post(gr.discard().url,{},{onFinish:()=>{t.value=!1}}))}async function r(){e.value=!0;try{let e=await i.get(J().url,{responseType:`blob`}),t=window.URL.createObjectURL(new Blob([e.data])),n=document.createElement(`a`);n.href=t,n.setAttribute(`download`,`project.zip`),document.body.appendChild(n),n.click(),n.remove(),window.URL.revokeObjectURL(t)}catch(e){console.error(`Download failed:`,e)}finally{e.value=!1}}return{isDownloading:e,isDiscarding:t,discardChanges:n,downloadConfig:r}}var Cr=e=>({url:Cr.url(e),method:`post`});Cr.definition={methods:[`post`],url:`/admin/actions/config-sync`},Cr.url=e=>Cr.definition.url+N(e),Cr.post=e=>({url:Cr.url(e),method:`post`});var wr=e=>({url:wr.url(e),method:`post`});wr.definition={methods:[`post`],url:`/admin/actions/config-sync/retry`},wr.url=e=>wr.definition.url+N(e),wr.post=e=>({url:wr.url(e),method:`post`});var Tr=e=>({url:Tr.url(e),method:`post`});Tr.definition={methods:[`post`],url:`/admin/actions/config-sync/apply-yaml-changes`},Tr.url=e=>Tr.definition.url+N(e),Tr.post=e=>({url:Tr.url(e),method:`post`});var Er=e=>({url:Er.url(e),method:`post`});Er.definition={methods:[`post`],url:`/admin/actions/config-sync/regenerate-yaml`},Er.url=e=>Er.definition.url+N(e),Er.post=e=>({url:Er.url(e),method:`post`});var Dr=e=>({url:Dr.url(e),method:`post`});Dr.definition={methods:[`post`],url:`/admin/actions/config-sync/uninstall-plugin`},Dr.url=e=>Dr.definition.url+N(e),Dr.post=e=>({url:Dr.url(e),method:`post`});var Or=e=>({url:Or.url(e),method:`post`});Or.definition={methods:[`post`],url:`/admin/actions/config-sync/install-plugin`},Or.url=e=>Or.definition.url+N(e),Or.post=e=>({url:Or.url(e),method:`post`});var kr=e=>({url:kr.url(e),method:`post`});kr.definition={methods:[`post`],url:`/admin/actions/config-sync/precheck`},kr.url=e=>kr.definition.url+N(e),kr.post=e=>({url:kr.url(e),method:`post`});var Ar=e=>({url:Ar.url(e),method:`post`});Ar.definition={methods:[`post`],url:`/admin/actions/config-sync/recheck-composer`},Ar.url=e=>Ar.definition.url+N(e),Ar.post=e=>({url:Ar.url(e),method:`post`});var jr=e=>({url:jr.url(e),method:`post`});jr.definition={methods:[`post`],url:`/admin/actions/config-sync/composer-install`},jr.url=e=>jr.definition.url+N(e),jr.post=e=>({url:jr.url(e),method:`post`});var Mr=e=>({url:Mr.url(e),method:`post`});Mr.definition={methods:[`post`],url:`/admin/actions/config-sync/composer-remove`},Mr.url=e=>Mr.definition.url+N(e),Mr.post=e=>({url:Mr.url(e),method:`post`});var Y=e=>({url:Y.url(e),method:`post`});Y.definition={methods:[`post`],url:`/admin/actions/config-sync/finish`},Y.url=e=>Y.definition.url+N(e),Y.post=e=>({url:Y.url(e),method:`post`});var Nr={index:Cr,retry:wr,applyYamlChanges:Tr,regenerateYaml:Er,uninstallPlugin:Dr,installPlugin:Or,precheck:kr,recheckComposer:Ar,composerInstall:jr,composerRemove:Mr,finish:Y},Pr=[`value`],Fr={key:0,type:`hidden`,name:`force`,value:`1`},Ir=[`loading`],Lr=l({__name:`SyncConfigButton`,props:{force:{type:Boolean,default:!1},returnTo:{default:`utilities/project-config`},label:{default:s(`Reapply everything`)}},setup(e){return(t,n)=>(g(),M(x(C),{action:x(Nr).index()},{default:v(({processing:n})=>[k(`input`,{type:`hidden`,name:`return`,value:e.returnTo},null,8,Pr),e.force?(g(),j(`input`,Fr)):b(``,!0),k(`craft-button`,m({type:`submit`,variant:`primary`,loading:n},t.$attrs),[te(t.$slots,`label`,{},()=>[A(O(e.label),1)])],16,Ir)]),_:3},8,[`action`]))}}),Rr={class:`project-config-utility`},zr={class:`config-section`},Br=[`innerHTML`],Vr={class:`mt-3`},Hr=[`innerHTML`],Ur={key:0,class:`buttons`},Wr=[`loading`],Gr={key:1,class:`buttons`},Kr=[`loading`],qr={variant:`success`,icon:`circle-check`,class:`my-3`},Jr={class:`buttons`},Yr={key:1,class:`buttons`},Xr=[`loading`],Zr={class:`config-section`},Qr={class:`buttons`},$r={class:`flex gap-2 items-center`},ei=[`loading`],ti={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},ni={class:`config-section`},ri={class:`buttons`},ii=[`loading`],ai=D(l({__name:`ProjectConfig`,props:{readOnly:{type:Boolean},invert:{type:Boolean},yamlExists:{type:Boolean},areChangesPending:{type:Boolean},entireConfig:{}},setup(e){let t=e,{isDownloading:n,isDiscarding:r,discardChanges:i,downloadConfig:a}=Sr(),o=y(()=>t.yamlExists?t.invert?s(`Update YAML Files`):s(`Apply YAML Changes`):s(`Generate YAML Files`)),c=y(()=>t.yamlExists?t.invert?s(`Update your project config YAML files to reflect the latest changes in the loaded project config.`):s(`Apply changes in your project config YAML files to the loaded project config.`):s(`Save the loaded project config data to YAML files in your {folder} folder.`,{folder:`config/project/`})),l=y(()=>t.invert?s(`Make sure you're not overwriting changes in the YAML files that were made on another environment.`):s(`Make sure you've followed the Environment Setup instructions before applying project config YAML changes.`,{url:`https://craftcms.com/docs/5.x/system/project-config.html#environment-setup`}));return(t,u)=>(g(),j(`div`,Rr,[k(`section`,zr,[k(`h2`,null,O(o.value),1),k(`p`,{innerHTML:c.value,class:`mb-3`},null,8,Br),k(`div`,Vr,[e.yamlExists?(g(),j(T,{key:0},[e.areChangesPending?(g(),j(T,{key:0},[_(xr,{invert:e.invert},null,8,[`invert`]),k(`craft-callout`,{variant:`info`,innerHTML:l.value,class:`my-2`},null,8,Hr),e.invert?(g(),j(`div`,Ur,[k(`craft-button`,{type:`button`,variant:`secondary`,loading:x(r),onClick:u[0]||=(...e)=>x(i)&&x(i)(...e)},O(x(s)(`Update YAML files`)),9,Wr),_(Lr,{label:x(s)(`Apply YAML changes`)},null,8,[`label`])])):(g(),j(`div`,Gr,[_(Lr,{label:x(s)(`Apply changes only`),variant:`default`},null,8,[`label`]),_(Lr,{force:!0}),e.readOnly?b(``,!0):(g(),j(`craft-button`,{key:0,type:`button`,loading:x(r),onClick:u[1]||=(...e)=>x(i)&&x(i)(...e)},O(x(s)(`Discard changes`)),9,Kr))]))],64)):(g(),j(T,{key:1},[k(`craft-callout`,qr,O(x(s)(`There aren't any pending project config changes to apply.`)),1),k(`div`,Jr,[_(Lr,{force:!0,label:x(s)(`Reapply everything`)},null,8,[`label`])])],64))],64)):(g(),j(`div`,Yr,[_(x(C),{action:x(q)()},{default:v(({processing:e})=>[k(`craft-button`,{type:`submit`,variant:`secondary`,loading:e},O(x(s)(`Generate`)),9,Xr)]),_:1},8,[`action`])]))])]),e.readOnly?b(``,!0):(g(),j(T,{key:0},[u[3]||=k(`hr`,null,null,-1),k(`section`,Zr,[k(`h2`,null,O(x(s)(`Rebuild the Config`)),1),k(`p`,null,O(x(s)(`Rebuild the project config based on the data stored throughout the database.`)),1),k(`div`,Qr,[_(x(C),{action:x(G)(),method:`post`},{default:v(({processing:e,recentlySuccessful:t})=>[k(`div`,$r,[k(`craft-button`,{type:`submit`,variant:`default`,loading:e},O(x(s)(`Rebuild`)),9,ei),_(be,null,{default:v(()=>[t?(g(),j(`craft-callout`,ti,O(x(s)(`Config rebuilt.`)),1)):b(``,!0)]),_:2},1024)])]),_:1},8,[`action`])])])],64)),u[5]||=k(`hr`,null,null,-1),k(`section`,ni,[k(`h2`,null,O(x(s)(`Loaded Project Config Data`)),1),_(ve,{variant:`code`,tabindex:`0`,class:`my-3`},{default:v(()=>[k(`pre`,null,[k(`code`,null,O(e.entireConfig),1)])]),_:1}),k(`div`,ri,[k(`craft-button`,{type:`button`,loading:x(n),onClick:u[2]||=(...e)=>x(a)&&x(a)(...e)},[u[4]||=k(`craft-icon`,{name:`download`,slot:`prefix`},null,-1),A(` `+O(x(s)(`Download`)),1)],8,ii)])])]))}}),[[`__scopeId`,`data-v-563599f4`]]),oi={class:`progress-cell`},si=[`total`,`processed`,`pending`],ci=D(l({__name:`SessionProgress`,props:{processedEntries:{},totalEntries:{},pending:{type:Boolean}},setup(e){return(t,n)=>(g(),j(`div`,oi,[k(`craft-progress-bar`,{total:e.totalEntries,processed:e.processedEntries,pending:e.pending,"show-status":``},null,8,si)]))}}),[[`__scopeId`,`data-v-c5b50a8f`]]),li={class:`flex gap-1`},ui=[`loading`],di=[`loading`],fi=l({__name:`SessionActions`,props:{sessionId:{},actionRequired:{type:Boolean}},emits:[`stop`,`review`],setup(e,{emit:t}){let n=t,r=E(!1),i=E(!1);function a(e){i.value=!0,n(`stop`,e)}function o(e){r.value=!0,n(`review`,e)}return(t,n)=>(g(),j(`div`,li,[e.actionRequired?(g(),j(`craft-button`,{key:0,type:`button`,size:`small`,loading:r.value,onClick:n[0]||=t=>o(e.sessionId)},O(x(s)(`Review`)),9,ui)):b(``,!0),k(`craft-button`,{type:`button`,size:`small`,variant:`danger`,loading:i.value,onClick:n[1]||=t=>a(e.sessionId)},[n[2]||=k(`craft-icon`,{name:`x`,slot:`prefix`},null,-1),A(` `+O(x(s)(`Discard`)),1)],8,di)]))}}),X=de(null),pi=E(new Map),mi=E(null),hi=E(null),gi=E(!1),_i=E(!1),vi=E(null),yi=E(!1),bi=!1;function xi(){X.value&&(pi.value=new Map(X.value.getSessions().map(e=>[e.id,e])),mi.value=X.value.getCurrentSessionId())}function Si(){X.value&&(X.value.on(`change`,({reviewSessionId:e})=>{if(xi(),gi.value&&hi.value&&!pi.value.has(hi.value.id)&&Fi(),e&&!gi.value){let t=pi.value.get(e);t&&Pi(t)}}),X.value.on(`error`,({message:e})=>{vi.value=e}),X.value.on(`complete`,()=>{yi.value=!0}))}var Ci=y(()=>Array.from(pi.value.values())),wi=y(()=>pi.value.size>0),Ti=y(()=>X.value?.isProcessing()??!1),Ei=y(()=>mi.value===null?null:pi.value.get(mi.value)??null),Di=y(()=>{let e=Ei.value;return!e||e.totalEntries===0?0:Math.round(e.processedEntries/e.totalEntries*100)}),Oi=y(()=>{let e=Ei.value;return e?`${e.processedEntries} / ${e.totalEntries}`:null});async function ki(e){if(!(!X.value||e.volumes.length===0)){_i.value=!0,yi.value=!1,vi.value=null;try{let t=await X.value.startIndexing(e);return xi(),t}finally{_i.value=!1}}}function Ai(e){X.value?.stopSession(e)}function ji(e){X.value?.getSessionOverview(e)}function Mi(e){X.value?.finishSession(e)}function Ni(e){Ai(e)}function Pi(e){gi.value||=(hi.value=e,!0)}function Fi(){gi.value=!1,hi.value=null}function Ii(t={}){if(!bi){let{existingSessions:n=[],maxConcurrentConnections:r,autoResume:i=!0}=t;X.value=new e({existingSessions:n,maxConcurrentConnections:r,autoResume:i}),Si(),xi(),bi=!0}return{sessions:pi,sessionsArray:Ci,currentSessionId:mi,currentSession:Ei,hasSessions:wi,isProcessing:Ti,isStarting:_i,isComplete:yi,lastError:vi,progressPercent:Di,progressInfo:Oi,reviewSession:hi,isReviewOpen:gi,startIndexing:ki,stopSession:Ai,reviewSessionOverview:ji,finishSession:Mi,keepFiles:Ni,openReview:Pi,closeReview:Fi}}var Li={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Ri(e){return e.replace(/[&<>"']/g,e=>Li[e]??``)}var zi={class:`grid gap-3`},Bi={key:0},Vi={class:`mb-2`},Hi={class:`my-2`},Ui={key:1},Wi=l({__name:`ReviewSessionModal`,props:{isActive:{type:Boolean,default:!1}},setup(e){let{finishSession:t,closeReview:n,reviewSession:r}=Ii(),i=y(()=>r.value?.missingEntries),a=y(()=>i.value?.folders??{}),o=y(()=>i.value?.files??{}),l=y(()=>a.value?Object.keys(a.value).length>0:!1),u=y(()=>o.value?Object.keys(o.value??{}).length>0:!1),d=y(()=>l.value||u.value),f=y(()=>a.value?Object.keys(a.value).map(e=>({label:Ri(a.value[e]),value:e})):[]),p=y(()=>o.value?Object.keys(o.value).map(e=>({label:Ri(o.value[e]),value:e})):[]),m=re({deleteFolder:[``,...f.value.map(e=>e.value.toString())],deleteAsset:[``,...p.value.map(e=>e.value.toString())]});function h(e,t){return e===`folders`&&r.value?.listEmptyFolders?s(`Missing or empty {items}`,t):s(`Missing {items}`,t)}function ee(e,t){return e===`files`&&r.value?.listEmptyFolders?s(`The following {items} could not be found or are empty. Should they be deleted from the index?`,t):s(`The following {items} could not be found. Should they be deleted from the index?`,t)}async function te(){t({sessionId:r.value.id,deleteFolder:m.deleteFolder?.filter(Boolean),deleteAsset:m.deleteAsset?.filter(Boolean)}),S.visit(F({id:`asset-indexes`}))}return(e,t)=>x(r)?(g(),M(Xe,{key:0,"is-active":!0,onClose:x(n),"reset-label":d.value?x(s)(`Keep them`):void 0,"submit-label":d.value?x(s)(`Delete them`):x(s)(`OK`),onSubmit:te},{default:v(()=>[k(`div`,zi,[x(r).skippedEntries?(g(),j(`div`,Bi,[k(`h2`,Vi,O(x(s)(`Skipped files`)),1),k(`p`,null,O(x(s)(`The following items were not indexed.`)),1),k(`ul`,Hi,[(g(!0),j(T,null,c(x(r).skippedEntries,e=>(g(),j(`li`,{key:e},[k(`code`,null,O(e),1)]))),128))])])):b(``,!0),d.value?(g(),j(`div`,Ui,[l.value?(g(),j(T,{key:0},[k(`h2`,null,O(h(`folders`,{items:`folders`})),1),k(`p`,null,O(ee(`folders`,{items:`folders`})),1),_(Bt,{class:`my-2`,label:x(s)(`Delete folders`),"model-value":m.deleteFolder?.map(String)??[],options:f.value,"allow-select-all":!0},{label:v(({option:e})=>[k(`code`,null,O(e.label),1)]),_:1},8,[`label`,`model-value`,`options`])],64)):b(``,!0),u.value?(g(),j(T,{key:1},[k(`h2`,null,O(h(`files`,{items:`files`})),1),k(`p`,null,O(ee(`files`,{items:`files`})),1),_(Bt,{class:`my-2`,label:x(s)(`Delete assets`),"model-value":m.deleteAsset?.map(String)??[],options:p.value,"allow-select-all":!0},{label:v(({option:e})=>[k(`code`,null,O(e.label),1)]),_:1},8,[`label`,`model-value`,`options`])],64)):b(``,!0)])):b(``,!0)])]),_:1},8,[`onClose`,`reset-label`,`submit-label`])):b(``,!0)}}),Gi={class:``},Ki=l({__name:`SessionVolumes`,props:{value:{}},setup(e){function t(e){let t=JSON.parse(e);return Object.values(t)}return(n,r)=>(g(),j(`ul`,Gi,[(g(!0),j(T,null,c(t(e.value),e=>(g(),j(`li`,{key:e},O(e),1))),128))]))}}),qi={class:`sessions`},Ji={class:`session__label`},Yi={class:`mb-1`},Xi={class:`session__status`},Zi={class:`mb-1`},Qi={class:`session__last-update`},$i={class:`mb-1`},ea={class:`session__progress`},ta={class:`mb-1`},na={class:`session__actions`},ra=D(l({__name:`IndexingSessions`,setup(e){let{sessionsArray:t,currentSessionId:n,stopSession:r,reviewSessionOverview:i,reviewSession:a}=Ii();return(e,o)=>(g(),j(T,null,[k(`div`,qi,[(g(!0),j(T,null,c(x(t),e=>(g(),j(`div`,{key:e.id,class:`session`},[k(`div`,Ji,[k(`div`,Yi,[k(`strong`,null,O(x(s)(`Volumes being indexed`)),1)]),_(Ki,{value:e.indexedVolumes},null,8,[`value`])]),k(`div`,Xi,[k(`div`,Zi,[k(`strong`,null,O(x(s)(`Status`)),1)]),e.actionRequired?(g(),M(Te,{key:0,variant:`warning`},{default:v(()=>[A(O(x(s)(`Waiting for review`)),1)]),_:1})):e.id===x(n)?(g(),M(Te,{key:1,variant:`success`},{default:v(()=>[A(O(x(s)(`Active`)),1)]),_:1})):(g(),M(Te,{key:2},{default:v(()=>[A(O(x(s)(`Waiting`)),1)]),_:1}))]),k(`div`,Qi,[k(`div`,$i,[k(`strong`,null,O(x(s)(`Last update`)),1)]),_(Fe,{value:e.dateUpdated.date},null,8,[`value`])]),k(`div`,ea,[k(`div`,ta,[k(`strong`,null,O(x(s)(`Progress`)),1)]),_(ci,{"processed-entries":e.processedEntries,"total-entries":e.totalEntries,pending:!e.actionRequired&&e.id!==x(n)},null,8,[`processed-entries`,`total-entries`,`pending`])]),k(`div`,na,[_(fi,{"session-id":e.id,"action-required":e.actionRequired,onStop:o[0]||=e=>x(r)(e),onReview:o[1]||=e=>x(i)(e)},null,8,[`session-id`,`action-required`])])]))),128))]),x(a)?(g(),M(Wi,{key:0})):b(``,!0)],64))}}),[[`__scopeId`,`data-v-8dc6d98c`]]),ia={key:0,class:`p-4`},aa={key:1,class:`p-4`},oa={class:`text-sm mb-2 mt-6`},sa={class:`grid gap-3`},ca=[`label`,`checked`,`disabled`],la={slot:`help-text`},ua=[`label`,`checked`],da={slot:`help-text`},fa={class:`mt-4 flex gap-2 items-center`},pa=[`loading`,`disabled`],ma=l({__name:`AssetIndexes`,props:{existingSessions:{default:()=>[]},volumeOptions:{default:()=>[]},dateFormat:{},isEphemeral:{type:Boolean}},setup(e){let t=e,{hasSessions:n,startIndexing:r,isStarting:i}=Ii({existingSessions:t.existingSessions}),a=re({volumes:[`*`,...t.volumeOptions.map(e=>e.value)],cacheImages:!1,listEmptyFolders:!1});async function o(){await r(a)}return(t,r)=>(g(),j(T,null,[x(n)?(g(),j(`div`,ia,[_(ra)])):b(``,!0),e.volumeOptions?(g(),j(`div`,aa,[k(`form`,{onSubmit:ce(o,[`prevent`])},[_(Bt,{name:`volumes[]`,label:x(s)(`Volumes`),modelValue:a.volumes,"onUpdate:modelValue":r[0]||=e=>a.volumes=e,options:e.volumeOptions,"allow-select-all":!0},null,8,[`label`,`modelValue`,`options`]),k(`h2`,oa,O(x(s)(`Options`)),1),k(`div`,sa,[e.isEphemeral?b(``,!0):(g(),j(`craft-switch`,{key:0,name:`cacheImages`,label:x(s)(`Cache remote images`),checked:a.cacheImages,disabled:e.isEphemeral,onChange:r[1]||=e=>a.cacheImages=e.target.checked},[k(`div`,la,[A(O(x(s)(`Download copies of remote images to the local filesystem.`))+` `,1),e.isEphemeral?(g(),j(T,{key:0},[r[3]||=k(`br`,null,null,-1),k(`em`,null,O(x(s)(`This option is disabled for ephemeral environments.`)),1)],64)):b(``,!0)])],40,ca)),k(`craft-switch`,{name:`listEmptyFolders`,label:x(s)(`List empty folders`),checked:a.listEmptyFolders,onChange:r[2]||=e=>a.listEmptyFolders=e.target.checked},[k(`div`,da,O(x(s)(`Include empty folders in the review step.`)),1)],40,ua)]),k(`div`,fa,[k(`craft-button`,{type:`submit`,variant:`primary`,loading:x(i),disabled:a.volumes.length===0},O(x(s)(`Update asset indexes`)),9,pa)])],32)])):b(``,!0)],64))}}),Z=(e,t)=>({url:Z.url(e,t),method:`get`});Z.definition={methods:[`get`,`head`],url:`/admin/system-messages/{key}`},Z.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={key:e}),Array.isArray(e)&&(e={key:e[0]}),e=Oe(e);let n={key:e.key};return Z.definition.url.replace(`{key}`,n.key.toString()).replace(/\/+$/,``)+N(t)},Z.get=(e,t)=>({url:Z.url(e,t),method:`get`}),Z.head=(e,t)=>({url:Z.url(e,t),method:`head`});var Q=e=>({url:Q.url(e),method:`post`});Q.definition={methods:[`post`],url:`/admin/system-messages`},Q.url=e=>Q.definition.url+N(e),Q.post=e=>({url:Q.url(e),method:`post`});var ha={show:Z,store:Q},ga={class:`flex items-center gap-2`},_a=[`visible`],va={class:`grid gap-3 w-4xl`},ya=[`variant`,`icon`],ba=l({__name:`SystemMessageEditModal`,props:{isActive:{type:Boolean},message:{},locales:{},isMultiSite:{type:Boolean},initialLanguage:{}},emits:[`close`,`save`],setup(e,{emit:t}){let n=e,r=t,{flash:i}=xe(),a=E(null),o=ie({language:n.initialLanguage}),c=y(()=>o.processing),l=ie({key:n.message.key,language:n.initialLanguage,subject:n.message.subject,body:n.message.body});function d(){o.get(ha.show({key:n.message.key}).url,{onSuccess:({message:e})=>{e&&(l.language=e.language,l.subject=e.subject,l.body=e.body)}})}f(()=>n.message,e=>{l.key=e.key,l.subject=e.subject,l.body=e.body,l.language=n.initialLanguage});function p({closeOnSuccess:e=!0}={}){!l.subject.trim()||!l.body.trim()||(a.value=null,l.post(Q().url,{onHttpException:()=>{a.value={icon:`triangle-exclamation`,message:s(`Failed to save message.`),variant:`danger`}},onSuccess:t=>{r(`save`,{subject:t.subject,body:t.body,language:t.language}),e?(i(`success`,s(`Message saved.`),{duration:-1}),r(`close`)):a.value={icon:`circle-check`,message:s(`Message saved`),variant:`success`}},onError:()=>{a.value={icon:`triangle-exclamation`,message:s(`Failed to save`),variant:`danger`}}}))}function m(){p()}return Ne(`keydown`,e=>{n.isActive&&((e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),m()),(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),p({closeOnSuccess:!1})))}),(t,n)=>{let i=u(`Select`);return g(),M(Xe,{"is-active":e.isActive,title:x(s)(`Edit Message`),loading:x(l).processing,onClose:n[3]||=e=>r(`close`),onSubmit:m},ee({"header-actions":v(()=>[k(`div`,ga,[k(`craft-spinner`,{visible:x(o).processing,style:{"--size":`1rem`}},null,8,_a),_(i,{modelValue:x(o).language,"onUpdate:modelValue":n[0]||=e=>x(o).language=e,options:e.locales,onChange:d},null,8,[`modelValue`,`options`])])]),default:v(()=>[k(`div`,va,[_(Le,{label:x(s)(`Subject`),"help-text":x(s)(`Evaluated as a twig template, then parsed as markdown.`),modelValue:x(l).subject,"onUpdate:modelValue":n[1]||=e=>x(l).subject=e,class:`w-full`,maxlength:`1000`,required:``,disabled:c.value},null,8,[`label`,`help-text`,`modelValue`,`disabled`]),_(ze,{label:x(s)(`Body`),"help-text":x(s)(`Evaluated as a twig template, then parsed as markdown.`),modelValue:x(l).body,"onUpdate:modelValue":n[2]||=e=>x(l).body=e,class:`w-full`,monospace:``,required:``,disabled:x(o).processing,"max-rows":`25`},null,8,[`label`,`help-text`,`modelValue`,`disabled`])])]),_:2},[a.value?{name:`feedback`,fn:v(()=>[k(`craft-callout`,{variant:a.value.variant,icon:a.value.icon,appearance:`plain`,inline:``,class:`p-0`},O(a.value.message),9,ya)]),key:`0`}:void 0]),1032,[`is-active`,`title`,`loading`])}}}),xa={id:`messages`,class:`p-4`},Sa={class:`text-lg mb-2`},Ca={class:`font-medium`},wa=[`onClick`],Ta=[`label`],Ea=[`innerHTML`],Da=D(l({__name:`SystemMessages`,props:{messages:{},locales:{},isMultiSite:{type:Boolean},primaryLanguage:{}},setup(e){let t=e,n=E([...t.messages]),r=E(!1),i=E(null);function a(e){i.value=e,r.value=!0}function o(){r.value=!1,i.value=null}function l(e){if(i.value&&e.language===t.primaryLanguage){let t=n.value.findIndex(e=>e.key===i.value?.key),r=n.value[t];r&&(r.subject=e.subject,r.body=e.body)}}function u(e){return e.replace(/\n/g,`
`)}return(t,d)=>(g(),j(T,null,[k(`div`,xa,[(g(!0),j(T,null,c(n.value,e=>(g(),j(`div`,{key:e.key,class:`mb-6`},[k(`h2`,Sa,O(e.heading),1),_(ve,{appearance:`outline`},{title:v(()=>[k(`div`,Ca,O(e.subject),1)]),"header-actions":v(()=>[k(`craft-button`,{type:`button`,icon:``,size:`small`,onClick:t=>a(e)},[k(`craft-icon`,{name:`pencil`,label:x(s)(`Edit message`)},null,8,Ta)],8,wa)]),default:v(()=>[k(`div`,{class:`font-mono text-xs`,innerHTML:u(e.body)},null,8,Ea)]),_:2},1024)]))),128))]),i.value?(g(),M(ba,{key:0,"is-active":r.value,message:i.value,locales:e.locales,"is-multi-site":e.isMultiSite,"initial-language":e.primaryLanguage,onClose:o,onSave:l},null,8,[`is-active`,`message`,`locales`,`is-multi-site`,`initial-language`])):b(``,!0)],64))}}),[[`__scopeId`,`data-v-633bf085`]]),Oa=[`disabled`,`loading`],ka=l({__name:`DeprecationErrorsToolbar`,props:{logs:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(g(),j(`div`,null,[e.logs.length?(g(),M(x(C),{key:0,action:x(R)(),method:`post`},{default:v(({processing:t})=>[k(`craft-button`,{disabled:e.disabled,loading:t,type:`submit`},O(x(s)(`Clear All`)),9,Oa)]),_:1},8,[`action`])):b(``,!0)]))}}),Aa=[],ja=[],$=r.getInstance(),Ma=a.getInstance(),Na={initialConfig:{},get $config(){return $},get $queue(){return Ma},get $axios(){return i},booted(e){Aa.push(e)},booting(e){ja.push(e)},config(e){this.initialConfig=e},init(){$.initialize(this.initialConfig),Ma.initialize({runAutomatically:$.get(`runQueueAutomatically`,!0),enabled:!0,appId:$.get(`systemUid`,``),canAccessQueueManager:$.get(`canAccessQueueManager`,!1)}),o(this.initialConfig.translations)},async start(){this.init(),i.defaults.headers.common[`X-Requested-With`]=`XMLHttpRequest`,i.defaults.headers.common[`X-CSRF-TOKEN`]=this.$config.get(`csrfToken`),console.groupCollapsed(`Craft configuration`),console.log($.all().entries()),console.groupEnd(),console.log(`Calling booting callbacks`,ja),ja.forEach(e=>e(this)),ja=[],await se({resolve:async(e,n)=>{let r=await Object.assign({"../pages/auth/Login.vue":()=>t(()=>import(`./Login-C2hh2SSE.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),"../pages/graphql/Schemas.vue":()=>t(()=>import(`./Schemas-DnW-muFG.js`),__vite__mapDeps([13,1,2,5,6,7,8,9,14,15,16,17,18,10,11,19,20,21,22,23,24,25]),import.meta.url),"../pages/graphql/Tokens.vue":()=>t(()=>import(`./Tokens-BeqRdx65.js`),__vite__mapDeps([26,1,2,5,6,7,8,9,14,15,16,17,18,10,11,19,20,21,22,23,24,25]),import.meta.url),"../pages/install/Install.vue":()=>t(()=>import(`./Install-C2AqAj63.js`),__vite__mapDeps([27,1,2,5,6,7,8,9,18,28,15,29,30,23,24,11,31,32,33,34,35,36]),import.meta.url),"../pages/settings/Email.vue":()=>t(()=>import(`./Email-KnC4LAQv.js`),__vite__mapDeps([37,1,2,5,6,7,8,9,14,15,16,28,38,33,34,35,11,17,18,10,19,20,21,23,24,32,39]),import.meta.url),"../pages/settings/EntryTypes.vue":()=>t(()=>import(`./EntryTypes-CFAdvH6n.js`),__vite__mapDeps([40,1,2,5,6,7,8,9,14,15,16,41,11,17,18,10,19,20,21,22,42,23,24,25,43,28]),import.meta.url),"../pages/settings/Fields.vue":()=>t(()=>import(`./Fields-DZc5YARJ.js`),__vite__mapDeps([44,1,2,5,6,7,8,9,14,15,16,17,18,10,11,19,20,21,23,24,25,43,28]),import.meta.url),"../pages/settings/Filesystems.vue":()=>t(()=>import(`./Filesystems-D1Z5CWFD.js`),__vite__mapDeps([45,1,2,5,6,7,8,9,14,15,16,17,18,10,11,19,20,21,22,23,24,25]),import.meta.url),"../pages/settings/General.vue":()=>t(()=>import(`./General-BICvMtYY.js`),__vite__mapDeps([46,1,2,5,6,7,8,9,28,17,18,10,11,19,20,21,23,24,32,33,34,35,47,39,48]),import.meta.url),"../pages/settings/ImageTransforms.vue":()=>t(()=>import(`./ImageTransforms-Cx-vC0NT.js`),__vite__mapDeps([49,1,2,5,6,7,8,9,14,15,16,50,11,19,20,22,51,18,17,10,21,52,25]),import.meta.url),"../pages/settings/Index.vue":()=>t(()=>import(`./Index-BIInLoJb.js`),__vite__mapDeps([53,1,2,5,6,7,8,9,17,18,10,11,19,20,21,54]),import.meta.url),"../pages/settings/Plugins.vue":()=>t(()=>import(`./Plugins-2gJYuIka.js`),__vite__mapDeps([55,1,2,5,6,7,8,9,14,15,16,28,17,18,10,11,19,20,21,56,22,23,24,31,57]),import.meta.url),"../pages/settings/Sections.vue":()=>t(()=>import(`./Sections-CGx28Lvz.js`),__vite__mapDeps([58,1,2,14,5,6,7,8,9,15,16,59,11,17,18,10,19,20,21,22,23,24,43,28]),import.meta.url),"../pages/settings/SectionsEdit.vue":()=>t(()=>import(`./SectionsEdit-BVoVw_jD.js`),__vite__mapDeps([60,1,2,5,6,7,8,9,14,15,16,28,61,38,33,34,35,11,41,59,17,18,10,19,20,21,23,24,62,25,39,63]),import.meta.url),"../pages/settings/Sites.vue":()=>t(()=>import(`./Sites-m_h0JPaw.js`),__vite__mapDeps([64,1,2,5,6,7,8,9,14,15,16,33,34,35,65,66,29,18,30,23,24,11,17,10,19,20,21,56,22,51,52,67]),import.meta.url),"../pages/settings/SitesEdit.vue":()=>t(()=>import(`./SitesEdit-CUTKbU4C.js`),__vite__mapDeps([68,1,2,5,6,7,8,9,18,65,66,29,30,23,24,11,17,10,19,20,21,56,62,32,33,34,35,47,39]),import.meta.url),"../pages/settings/UserGroups.vue":()=>t(()=>import(`./UserGroups-CD-noNZH.js`),__vite__mapDeps([69,1,2,5,6,7,8,9,14,15,16,70,11,19,20,22,51,18,17,10,21,52,25]),import.meta.url),"../pages/settings/UserGroupsEdit.vue":()=>t(()=>import(`./UserGroupsEdit-CXpSSM9e.js`),__vite__mapDeps([71,1,2,5,6,7,8,9,72,28,61,70,11,17,18,10,19,20,21,23,24,39,73]),import.meta.url),"../pages/settings/Volumes.vue":()=>t(()=>import(`./Volumes-BKk84KCL.js`),__vite__mapDeps([74,1,2,5,6,7,8,9,14,15,16,50,11,19,20,22,51,18,17,10,21,52,25]),import.meta.url),"../pages/updater/Index.vue":()=>t(()=>import(`./Index-CoQkToLa.js`),__vite__mapDeps([75,1,2,5,6,7,8,9,76]),import.meta.url),"../pages/utilities/Show.vue":()=>t(()=>import(`./Show-DLwL8lpT.js`),__vite__mapDeps([77,1,2,19,20,42,51,5,6,7,8,9,18,17,10,11,21,52]),import.meta.url)})[`../pages/${e}.vue`]?.();if(!r)throw Error(`Page not found: ${e}`);return r.default??r},withApp(e){e.provide(mt,Ma),e.provide(ht,i),e.provide(gt,$),e.provide(Craft,$),e.component(`QueueManager`,_t),e.component(`QueueManagerToolbar`,Ct),e.component(`DeprecationErrors`,jt),e.component(`DeprecationErrorsToolbar`,ka),e.component(`ClearCaches`,Qt),e.component(`FindReplace`,an),e.component(`DatabaseBackup`,dn),e.component(`Migrations`,pn),e.component(`Updates`,hr),e.component(`ProjectConfig`,ai),e.component(`AssetIndexes`,ma),e.component(`SystemMessages`,Da)}}),Pa(),console.log(`Calling booted callbacks`,Aa),Aa.forEach(e=>e(this)),Aa=[]}};function Pa(){let e=``;S.on(`start`,t=>{let n=t.detail.visit;n.prefetch||n.async||n.method!==`get`||(e=n.url.href)}),S.on(`finish`,t=>{let n=t.detail.visit;e===n.url.href&&(e=``)}),S.on(`httpException`,t=>{let n=t.detail.response,r=[200,302,301].includes(n.status)&&n.headers[`content-type`]?.includes(`text/html`);n.headers[`x-redirect`]&&(e=n.headers[`x-redirect`]),!(!e||!r)&&(t.preventDefault(),window.location.assign(e))})}export{Na as t}; \ No newline at end of file diff --git a/resources/build/assets/cp-wvltR4_b.js b/resources/build/assets/cp-wvltR4_b.js new file mode 100644 index 00000000000..ad33fde28a4 --- /dev/null +++ b/resources/build/assets/cp-wvltR4_b.js @@ -0,0 +1,40 @@ +import"./cp-C98QgSGF.js";import{t as Cp}from"./cp-BmIkDRa7.js";import"./CpGlobalSidebar-7AFxlz3R.js";import"./CpQueueIndicator-Cperx-7A.js";(function(t,n,r){(function(){var t={221:function(t,n,r){var i=r(243);i.__esModule&&(i=i.default),typeof i==`string`&&(i=[[t.id,i,``]]),i.locals&&(t.exports=i.locals),(0,r(233).A)(`05dce11c`,i,!0,{})},233:function(t,n,r){function i(t,n){for(var r=[],i={},a=0;ar.parts.length&&(i.parts.length=r.parts.length)}else{var c=[];for(a=0;a {for(let n of t)if(n.type===`childList`){if(n.addedNodes)for(let t of n.addedNodes)t.nodeName===`IMG`&&this.couldBeAnimated(t)&&this.hideAnimation(t);n.removedNodes.length>0&&n.removedNodes.forEach(t=>{t.nodeName===`IMG`&&this.couldBeAnimated(t)&&this.removeBlockerUI(n.target)})}});return n.observe(t,{attributes:!0,childList:!0,subtree:!0}),n}static async waitForImage(t){return new Promise(n=>{if(t.complete)return n();t.onload=()=>n(),t.onerror=()=>n()})}static imageSizeChanged(t){let n=t.clientWidth,r=t.clientHeight,i=t.dataset.width,a=t.dataset.height;if(i&&a)return n!==parseInt(i,10)||r!==parseInt(a,10)}static createCover(t){if(this.getCover(t))return;let n=t.clientWidth,r=t.clientHeight,i=t.parentElement,a=document.createElement(`canvas`);a.width=n,a.height=r,a.setAttribute(`aria-hidden`,`true`),a.setAttribute(`role`,`presentation`),a.setAttribute(`data-image-cover`,`true`),a.style.position=`absolute`,a.style.top=`50%`,a.style.left=`50%`,a.style.transform=`translate(-50%, -50%)`,a.getContext(`2d`).drawImage(t,0,0,n,r),i.style.position=`relative`,i.insertBefore(a,t)}static getCover(t){var n;return t.parentElement?.querySelector(`[data-image-cover]`)}static removeCover(t){let n=this.getCover(t);n.parentElement.removeChild(n)}static removeBlockerUI(t){var n;(n=t.querySelector(`[data-image-cover]`))==null||n.remove()}static async hideAnimation(t){if(t.dataset.animationController)return;await this.waitForImage(t);let n=t.parentElement.querySelector(`[data-image-cover]`),r=t.clientWidth,i=t.clientHeight;t.setAttribute(`data-animation-state`,`paused`),n?n&&this.imageSizeChanged(t)&&(this.removeCover(t),this.createCover(t)):(t.setAttribute(`data-width`,r.toString()),t.setAttribute(`data-height`,i.toString()),this.createCover(t)),t.dataset.animationController=JSON.stringify(this)}static hideAllAnimations(){let t=this.getAllPotentiallyAnimated();for(let n=0;n this.couldBeAnimated(t))}static couldBeAnimated(t){let n=t.src,r=t.srcset;return this.extensions.some(t=>n.includes(t)||r.includes(t))||t.hasAttribute(`data-animated`)}static getAllPotentiallyAnimated(){let t=document.querySelectorAll(`img`);return this.filterImages(t)}}r=a,i=new WeakMap,a.extensions=[`.gif`,`.webp`]})();var r=Craft=typeof Craft>`u`?{}:Craft;for(var i in n)r[i]=n[i];n.__esModule&&Object.defineProperty(r,`__esModule`,{value:!0})})()}).call(window),(function(t,n,r){(function(r,i){typeof n==`object`&&t!==void 0?t.exports=i():typeof define==`function`&&define.amd?define(i):(r=typeof globalThis<`u`?globalThis:r||self).axios=i()})(this,function(){function t(t,n){this.v=t,this.k=n}function n(t,n){(n==null||n>t.length)&&(n=t.length);for(var r=0,i=Array(n);r 3?(a=g===i)&&(u=s[(l=s[4])?5:(l=3,3)],s[4]=s[5]=t):s[0]<=h&&((a=r<2&&h i||i>g)&&(s[4]=r,s[5]=i,m.n=g,l=0))}if(a||r>1)return c;throw p=!0,i}return function(a,f,g){if(d>1)throw TypeError(`Generator is already running`);for(p&&f===1&&h(f,g),l=f,u=g;(n=l<2?t:u)||!p;){s||(l?l<3?(l>1&&(m.n=-1),h(l,u)):m.n=u:m.v=u);try{if(d=2,s){if(l||(a=`next`),n=s[a]){if(!(n=n.call(s,u)))throw TypeError(`iterator result is not an object`);if(!n.done)return n;u=n.value,l<2&&(l=0)}else l===1&&(n=s.return)&&n.call(s),l<2&&(u=TypeError(`The iterator does not provide a '`+a+`' method`),l=1);s=t}else if((n=(p=m.n<0)?u:r.call(i,m))!==c)break}catch(n){s=t,l=1,u=n}finally{d=1}}return{value:n,done:p}}}(r,a,s),!0),d}var c={};function l(){}function u(){}function d(){}n=Object.getPrototypeOf;var f=[][i]?n(n([][i]())):(x(n={},i,function(){return this}),n),p=d.prototype=l.prototype=Object.create(f);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,x(t,a,`GeneratorFunction`)),t.prototype=Object.create(p),t}return u.prototype=d,x(p,`constructor`,d),x(d,`constructor`,u),u.displayName=`GeneratorFunction`,x(d,a,`GeneratorFunction`),x(p),x(p,a,`Generator`),x(p,i,function(){return this}),x(p,`toString`,function(){return`[object Generator]`}),(b=function(){return{w:s,m}})()}function x(t,n,r,i){var a=Object.defineProperty;try{a({},``,{})}catch{a=0}x=function(t,n,r,i){function s(n,r){x(t,n,function(t){return this._invoke(n,r,t)})}n?a?a(t,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):t[n]=r:(s(`next`,0),s(`throw`,1),s(`return`,2))},x(t,n,r,i)}function S(t){if(t!=null){var n=t[typeof Symbol==`function`&&Symbol.iterator||`@@iterator`],r=0;if(n)return n.call(t);if(typeof t.next==`function`)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw TypeError(typeof t+` is not iterable`)}function C(t,n){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},C(t,n)}function w(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=t==null?null:typeof Symbol<`u`&&t[Symbol.iterator]||t[`@@iterator`];if(r!=null){var i,a,s,c,l=[],u=!0,d=!1;try{if(s=(r=r.call(t)).next,n===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(i=s.call(r)).done)&&(l.push(i.value),l.length!==n);u=!0);}catch(t){d=!0,a=t}finally{try{if(!u&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}(t,n)||O(t,n)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function T(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if(typeof Symbol<`u`&&t[Symbol.iterator]!=null||t[`@@iterator`]!=null)return Array.from(t)}(t)||O(t)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E(t){var n=function(t,n){if(typeof t!=`object`||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,n);if(typeof i!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(t)}(t,`string`);return typeof n==`symbol`?n:n+``}function D(t){return D=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(t){return typeof t}:function(t){return t&&typeof Symbol==`function`&&t.constructor===Symbol&&t!==Symbol.prototype?`symbol`:typeof t},D(t)}function O(t,r){if(t){if(typeof t==`string`)return n(t,r);var i={}.toString.call(t).slice(8,-1);return i===`Object`&&t.constructor&&(i=t.constructor.name),i===`Map`||i===`Set`?Array.from(t):i===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,r):void 0}}function k(t){return function(){return new A(t.apply(this,arguments))}}function A(n){var r,i;function a(r,i){try{var c=n[r](i),l=c.value,u=l instanceof t;Promise.resolve(u?l.v:l).then(function(t){if(u){var i=r===`return`?`return`:`next`;if(!l.k||t.done)return a(i,t);t=n[i](t).value}s(c.done?`return`:`normal`,t)},function(t){a(`throw`,t)})}catch(t){s(`throw`,t)}}function s(t,n){switch(t){case`return`:r.resolve({value:n,done:!0});break;case`throw`:r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?a(r.key,r.arg):i=null}this._invoke=function(t,n){return new Promise(function(s,c){var l={key:t,arg:n,resolve:s,reject:c,next:null};i?i=i.next=l:(r=i=l,a(t,n))})},typeof n.return!=`function`&&(this.return=void 0)}function j(t){var n=typeof Map==`function`?new Map:void 0;return j=function(t){if(t===null||!function(t){try{return Function.toString.call(t).indexOf(`[native code]`)!==-1}catch{return typeof t==`function`}}(t))return t;if(typeof t!=`function`)throw TypeError(`Super expression must either be null or a function`);if(n!==void 0){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return function(t,n,r){if(_())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,n);var a=new(t.bind.apply(t,i));return r&&C(a,r.prototype),a}(t,arguments,h(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),C(r,t)},j(t)}function M(t,n){return function(){return t.apply(n,arguments)}}A.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},A.prototype.next=function(t){return this._invoke(`next`,t)},A.prototype.throw=function(t){return this._invoke(`throw`,t)},A.prototype.return=function(t){return this._invoke(`return`,t)};var N,P=Object.prototype.toString,F=Object.getPrototypeOf,I=Symbol.iterator,L=Symbol.toStringTag,R=(N=Object.create(null),function(t){var n=P.call(t);return N[n]||(N[n]=n.slice(8,-1).toLowerCase())}),z=function(t){return t=t.toLowerCase(),function(n){return R(n)===t}},ee=function(t){return function(n){return D(n)===t}},te=Array.isArray,ne=ee(`undefined`);function re(t){return t!==null&&!ne(t)&&t.constructor!==null&&!ne(t.constructor)&&B(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var ie=z(`ArrayBuffer`),ae=ee(`string`),B=ee(`function`),oe=ee(`number`),se=function(t){return t!==null&&D(t)===`object`},ce=function(t){if(R(t)!==`object`)return!1;var n=F(t);return!(n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||L in t||I in t)},le=z(`Date`),ue=z(`File`),de=z(`Blob`),fe=z(`FileList`),V=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},H=V.FormData===void 0?void 0:V.FormData,U=z(`URLSearchParams`),W=w([`ReadableStream`,`Request`,`Response`,`Headers`].map(z),4),pe=W[0],me=W[1],G=W[2],he=W[3];function ge(t,n){var r,i,a=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).allOwnKeys,s=a!==void 0&&a;if(t!=null)if(D(t)!==`object`&&(t=[t]),te(t))for(r=0,i=t.length;r0;)if(n===(r=i[a]).toLowerCase())return r;return null}var ve,ye,be,xe,Se,Ce=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,we=function(t){return!ne(t)&&t!==Ce},Te=(ve=typeof Uint8Array<`u`&&F(Uint8Array),function(t){return ve&&t instanceof ve}),Ee=z(`HTMLFormElement`),De=function(){var t=Object.prototype.hasOwnProperty;return function(n,r){return t.call(n,r)}}(),Oe=z(`RegExp`),ke=function(t,n){var r=Object.getOwnPropertyDescriptors(t),i={};ge(r,function(r,a){var s;!1!==(s=n(r,a,t))&&(i[a]=s||r)}),Object.defineProperties(t,i)},Ae=z(`AsyncFunction`),je=(ye=typeof setImmediate==`function`,be=B(Ce.postMessage),ye?setImmediate:be?(xe=`axios@${Math.random()}`,Se=[],Ce.addEventListener(`message`,function(t){var n=t.source,r=t.data;n===Ce&&r===xe&&Se.length&&Se.shift()()},!1),function(t){Se.push(t),Ce.postMessage(xe,`*`)}):function(t){return setTimeout(t)}),K={isArray:te,isArrayBuffer:ie,isBuffer:re,isFormData:function(t){if(!t)return!1;if(H&&t instanceof H)return!0;var n=F(t);if(!n||n===Object.prototype||!B(t.append))return!1;var r=R(t);return r===`formdata`||r===`object`&&B(t.toString)&&t.toString()===`[object FormData]`},isArrayBufferView:function(t){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&ie(t.buffer)},isString:ae,isNumber:oe,isBoolean:function(t){return!0===t||!1===t},isObject:se,isPlainObject:ce,isEmptyObject:function(t){if(!se(t)||re(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},isReadableStream:pe,isRequest:me,isResponse:G,isHeaders:he,isUndefined:ne,isDate:le,isFile:ue,isReactNativeBlob:function(t){return!(!t||t.uri===void 0)},isReactNative:function(t){return t&&t.getParts!==void 0},isBlob:de,isRegExp:Oe,isFunction:B,isStream:function(t){return se(t)&&B(t.pipe)},isURLSearchParams:U,isTypedArray:Te,isFileList:fe,forEach:ge,merge:function t(){for(var n=we(this)&&this||{},r=n.caseless,i=n.skipUndefined,a={},s=function(n,s){if(s!==`__proto__`&&s!==`constructor`&&s!==`prototype`){var c=r&&_e(a,s)||s;ce(a[c])&&ce(n)?a[c]=t(a[c],n):ce(n)?a[c]=t({},n):te(n)?a[c]=n.slice():i&&ne(n)||(a[c]=n)}},c=0,l=arguments.length;c3&&arguments[3]!==void 0?arguments[3]:{}).allOwnKeys}),t},trim:function(t){return t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)},stripBOM:function(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t},inherits:function(t,n,r,i){t.prototype=Object.create(n.prototype,i),Object.defineProperty(t.prototype,`constructor`,{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,`super`,{value:n.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:function(t,n,r,i){var a,s,c,l={};if(n||={},t==null)return n;do{for(s=(a=Object.getOwnPropertyNames(t)).length;s-- >0;)c=a[s],i&&!i(c,t,n)||l[c]||(n[c]=t[c],l[c]=!0);t=!1!==r&&F(t)}while(t&&(!r||r(t,n))&&t!==Object.prototype);return n},kindOf:R,kindOfTest:z,endsWith:function(t,n,r){t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=n.length;var i=t.indexOf(n,r);return i!==-1&&i===r},toArray:function(t){if(!t)return null;if(te(t))return t;var n=t.length;if(!oe(n))return null;for(var r=Array(n);n-- >0;)r[n]=t[n];return r},forEachEntry:function(t,n){for(var r,i=(t&&t[I]).call(t);(r=i.next())&&!r.done;){var a=r.value;n.call(t,a[0],a[1])}},matchAll:function(t,n){for(var r,i=[];(r=t.exec(n))!==null;)i.push(r);return i},isHTMLForm:Ee,hasOwnProperty:De,hasOwnProp:De,reduceDescriptors:ke,freezeMethods:function(t){ke(t,function(n,r){if(B(t)&&[`arguments`,`caller`,`callee`].indexOf(r)!==-1)return!1;var i=t[r];B(i)&&(n.enumerable=!1,`writable`in n?n.writable=!1:n.set||=function(){throw Error(`Can not rewrite read-only method '`+r+`'`)})})},toObjectSet:function(t,n){var r={},i=function(t){t.forEach(function(t){r[t]=!0})};return te(t)?i(t):i(String(t).split(n)),r},toCamelCase:function(t){return t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r})},noop:function(){},toFiniteNumber:function(t,n){return t!=null&&Number.isFinite(t=+t)?t:n},findKey:_e,global:Ce,isContextDefined:we,isSpecCompliantForm:function(t){return!!(t&&B(t.append)&&t[L]===`FormData`&&t[I])},toJSONObject:function(t){var n=Array(10),r=function(t,i){if(se(t)){if(n.indexOf(t)>=0)return;if(re(t))return t;if(!(`toJSON`in t)){n[i]=t;var a=te(t)?[]:{};return ge(t,function(t,n){var s=r(t,i+1);!ne(s)&&(a[n]=s)}),n[i]=void 0,a}}return t};return r(t,0)},isAsyncFn:Ae,isThenable:function(t){return t&&(se(t)||B(t))&&B(t.then)&&B(t.catch)},setImmediate:je,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(Ce):typeof process<`u`&&process.nextTick||je,isIterable:function(t){return t!=null&&B(t[I])}},q=function(t){function n(t,r,i,a,s){var c;return d(this,n),c=u(this,n,[t]),Object.defineProperty(c,`message`,{value:t,enumerable:!0,writable:!0,configurable:!0}),c.name=`AxiosError`,c.isAxiosError=!0,r&&(c.code=r),i&&(c.config=i),a&&(c.request=a),s&&(c.response=s,c.status=s.status),c}return g(n,t),p(n,[{key:`toJSON`,value:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}}],[{key:`from`,value:function(t,r,i,a,s,c){var l=new n(t.message,r||t.code,i,a,s);return l.cause=t,l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),c&&Object.assign(l,c),l}}])}(j(Error));function Me(t){return K.isPlainObject(t)||K.isArray(t)}function Ne(t){return K.endsWith(t,`[]`)?t.slice(0,-2):t}function Pe(t,n,r){return t?t.concat(n).map(function(t,n){return t=Ne(t),!r&&n?`[`+t+`]`:t}).join(r?`.`:``):n}q.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,q.ERR_BAD_OPTION=`ERR_BAD_OPTION`,q.ECONNABORTED=`ECONNABORTED`,q.ETIMEDOUT=`ETIMEDOUT`,q.ERR_NETWORK=`ERR_NETWORK`,q.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,q.ERR_DEPRECATED=`ERR_DEPRECATED`,q.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,q.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,q.ERR_CANCELED=`ERR_CANCELED`,q.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,q.ERR_INVALID_URL=`ERR_INVALID_URL`,q.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;var Fe=K.toFlatObject(K,{},null,function(t){return/^is[A-Z]/.test(t)});function Ie(t,n,r){if(!K.isObject(t))throw TypeError(`target must be an object`);n||=new FormData;var i=(r=K.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,n){return!K.isUndefined(n[t])})).metaTokens,a=r.visitor||p,s=r.dots,c=r.indexes,l=r.Blob||typeof Blob<`u`&&Blob,u=r.maxDepth===void 0?100:r.maxDepth,d=l&&K.isSpecCompliantForm(n);if(!K.isFunction(a))throw TypeError(`visitor must be a function`);function f(t){if(t===null)return``;if(K.isDate(t))return t.toISOString();if(K.isBoolean(t))return t.toString();if(!d&&K.isBlob(t))throw new q(`Blob is not supported. Use a Buffer instead.`);return K.isArrayBuffer(t)||K.isTypedArray(t)?d&&typeof Blob==`function`?new Blob([t]):Buffer.from(t):t}function p(t,r,a){var l=t;if(K.isReactNative(n)&&K.isReactNativeBlob(t))return n.append(Pe(a,r,s),f(t)),!1;if(t&&!a&&D(t)===`object`){if(K.endsWith(r,`{}`))r=i?r:r.slice(0,-2),t=JSON.stringify(t);else if(K.isArray(t)&&function(t){return K.isArray(t)&&!t.some(Me)}(t)||(K.isFileList(t)||K.endsWith(r,`[]`))&&(l=K.toArray(t)))return r=Ne(r),l.forEach(function(t,i){!K.isUndefined(t)&&t!==null&&n.append(!0===c?Pe([r],i,s):c===null?r:r+`[]`,f(t))}),!1}return!!Me(t)||(n.append(Pe(a,r,s),f(t)),!1)}var m=[],h=Object.assign(Fe,{defaultVisitor:p,convertValue:f,isVisitable:Me});if(!K.isObject(t))throw TypeError(`data must be an object`);return function t(r,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!K.isUndefined(r)){if(s>u)throw new q(`Object is too deeply nested (`+s+` levels). Max depth: `+u,q.ERR_FORM_DATA_DEPTH_EXCEEDED);if(m.indexOf(r)!==-1)throw Error(`Circular reference detected in `+i.join(`.`));m.push(r),K.forEach(r,function(r,c){!0===(!(K.isUndefined(r)||r===null)&&a.call(n,r,K.isString(c)?c.trim():c,i,h))&&t(r,i?i.concat(c):[c],s+1)}),m.pop()}}(t),n}function Le(t){var n={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return n[t]})}function Re(t,n){this._pairs=[],t&&Ie(t,this,n)}var ze=Re.prototype;function Be(t){return encodeURIComponent(t).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Ve(t,n,r){if(!n)return t;var i,a=r&&r.encode||Be,s=K.isFunction(r)?{serialize:r}:r,c=s&&s.serialize;if(i=c?c(n,s):K.isURLSearchParams(n)?n.toString():new Re(n,s).toString(a)){var l=t.indexOf(`#`);l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf(`?`)===-1?`?`:`&`)+i}return t}ze.append=function(t,n){this._pairs.push([t,n])},ze.toString=function(t){var n=t?function(n){return t.call(this,n,Le)}:Le;return this._pairs.map(function(t){return n(t[0])+`=`+n(t[1])},``).join(`&`)};var He=function(){return p(function t(){d(this,t),this.handlers=[]},[{key:`use`,value:function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}},{key:`eject`,value:function(t){this.handlers[t]&&(this.handlers[t]=null)}},{key:`clear`,value:function(){this.handlers&&=[]}},{key:`forEach`,value:function(t){K.forEach(this.handlers,function(n){n!==null&&t(n)})}}])}(),Ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},We={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Re,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Ge=typeof window<`u`&&typeof document<`u`,Ke=(typeof navigator>`u`?`undefined`:D(navigator))===`object`&&navigator||void 0,qe=Ge&&(!Ke||[`ReactNative`,`NativeScript`,`NS`].indexOf(Ke.product)<0),Je=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Ye=Ge&&window.location.href||`http://localhost`,Xe=y(y({},Object.freeze({__proto__:null,hasBrowserEnv:Ge,hasStandardBrowserEnv:qe,hasStandardBrowserWebWorkerEnv:Je,navigator:Ke,origin:Ye})),We);function Ze(t){function n(t,r,i,a){var s=t[a++];if(s===`__proto__`)return!0;var c=Number.isFinite(+s),l=a>=t.length;return s=!s&&K.isArray(i)?i.length:s,l?(K.hasOwnProp(i,s)?i[s]=K.isArray(i[s])?i[s].concat(r):[i[s],r]:i[s]=r,!c):(i[s]&&K.isObject(i[s])||(i[s]=[]),n(t,r,i[s],a)&&K.isArray(i[s])&&(i[s]=function(t){var n,r,i={},a=Object.keys(t),s=a.length;for(n=0;n -1,s=K.isObject(t);if(s&&K.isHTMLForm(t)&&(t=new FormData(t)),K.isFormData(t))return a?JSON.stringify(Ze(t)):t;if(K.isArrayBuffer(t)||K.isBuffer(t)||K.isStream(t)||K.isFile(t)||K.isBlob(t)||K.isReadableStream(t))return t;if(K.isArrayBufferView(t))return t.buffer;if(K.isURLSearchParams(t))return n.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),t.toString();if(s){var c=Qe(this,`formSerializer`);if(i.indexOf(`application/x-www-form-urlencoded`)>-1)return function(t,n){return Ie(t,new Xe.classes.URLSearchParams,y({visitor:function(t,n,r,i){return Xe.isNode&&K.isBuffer(t)?(this.append(n,t.toString(`base64`)),!1):i.defaultVisitor.apply(this,arguments)}},n))}(t,c).toString();if((r=K.isFileList(t))||i.indexOf(`multipart/form-data`)>-1){var l=Qe(this,`env`),u=l&&l.FormData;return Ie(r?{"files[]":t}:t,u&&new u,c)}}return s||a?(n.setContentType(`application/json`,!1),function(t){if(K.isString(t))try{return(0,JSON.parse)(t),K.trim(t)}catch(t){if(t.name!==`SyntaxError`)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var n=Qe(this,`transitional`)||$e.transitional,r=n&&n.forcedJSONParsing,i=Qe(this,`responseType`),a=i===`json`;if(K.isResponse(t)||K.isReadableStream(t))return t;if(t&&K.isString(t)&&(r&&!i||a)){var s=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,Qe(this,`parseReviver`))}catch(t){if(s)throw t.name===`SyntaxError`?q.from(t,q.ERR_BAD_RESPONSE,this,null,Qe(this,`response`)):t}}return t}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};K.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],function(t){$e.headers[t]={}});var et=K.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),tt=Symbol(`internals`),nt=/[^\x09\x20-\x7E\x80-\xFF]/g;function rt(t){return t&&String(t).trim().toLowerCase()}function it(t){return!1===t||t==null?t:K.isArray(t)?t.map(it):function(t){for(var n=0,r=t.length;nn;){var a=t.charCodeAt(r-1);if(a!==9&&a!==32)break;--r}return n===0&&r===t.length?t:t.slice(n,r)}(String(t).replace(nt,``))}function at(t,n,r,i,a){return K.isFunction(i)?i.call(this,n,r):(a&&(n=r),K.isString(n)?K.isString(i)?n.indexOf(i)!==-1:K.isRegExp(i)?i.test(n):void 0:void 0)}var ot=function(){return p(function t(n){d(this,t),n&&this.set(n)},[{key:`set`,value:function(t,n,r){var i=this;function a(t,n,r){var a=rt(n);if(!a)throw Error(`header name must be a non-empty string`);var s=K.findKey(i,a);(!s||i[s]===void 0||!0===r||r===void 0&&!1!==i[s])&&(i[s||n]=it(t))}var s=function(t,n){return K.forEach(t,function(t,r){return a(t,r,n)})};if(K.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(K.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))s(function(t){var n,r,i,a={};return t&&t.split(` +`).forEach(function(t){i=t.indexOf(`:`),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||a[n]&&et[n]||(n===`set-cookie`?a[n]?a[n].push(r):a[n]=[r]:a[n]=a[n]?a[n]+`, `+r:r)}),a}(t),n);else if(K.isObject(t)&&K.isIterable(t)){var c,l,u,d={},f=function(t){var n=typeof Symbol<`u`&&t[Symbol.iterator]||t[`@@iterator`];if(!n){if(Array.isArray(t)||(n=O(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||n.return==null||n.return()}finally{if(c)throw a}}}}(t);try{for(f.s();!(u=f.n()).done;){var p=u.value;if(!K.isArray(p))throw TypeError(`Object iterator must return a key-value pair`);d[l=p[0]]=(c=d[l])?K.isArray(c)?[].concat(T(c),[p[1]]):[c,p[1]]:p[1]}}catch(t){f.e(t)}finally{f.f()}s(d,n)}else t!=null&&a(n,t,r);return this}},{key:`get`,value:function(t,n){if(t=rt(t)){var r=K.findKey(this,t);if(r){var i=this[r];if(!n)return i;if(!0===n)return function(t){for(var n,r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;n=i.exec(t);)r[n[1]]=n[2];return r}(i);if(K.isFunction(n))return n.call(this,i,r);if(K.isRegExp(n))return n.exec(i);throw TypeError(`parser must be boolean|regexp|function`)}}}},{key:`has`,value:function(t,n){if(t=rt(t)){var r=K.findKey(this,t);return!(!r||this[r]===void 0||n&&!at(0,this[r],r,n))}return!1}},{key:`delete`,value:function(t,n){var r=this,i=!1;function a(t){if(t=rt(t)){var a=K.findKey(r,t);!a||n&&!at(0,r[a],a,n)||(delete r[a],i=!0)}}return K.isArray(t)?t.forEach(a):a(t),i}},{key:`clear`,value:function(t){for(var n=Object.keys(this),r=n.length,i=!1;r--;){var a=n[r];t&&!at(0,this[a],a,t,!0)||(delete this[a],i=!0)}return i}},{key:`normalize`,value:function(t){var n=this,r={};return K.forEach(this,function(i,a){var s=K.findKey(r,a);if(s)return n[s]=it(i),void delete n[a];var c=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r})}(a):String(a).trim();c!==a&&delete n[a],n[c]=it(i),r[c]=!0}),this}},{key:`concat`,value:function(){for(var t,n=arguments.length,r=Array(n),i=0;i 1?r-1:0),a=1;a 2&&arguments[2]!==void 0?arguments[2]:3,i=0,a=function(t,n){t||=10;var r,i=Array(t),a=Array(t),s=0,c=0;return n=n===void 0?1e3:n,function(l){var u=Date.now(),d=a[c];r||=u,i[s]=l,a[s]=u;for(var f=c,p=0;f!==s;)p+=i[f++],f%=t;if((s=(s+1)%t)===c&&(c=(c+1)%t),!(u-r 1&&arguments[1]!==void 0?arguments[1]:Date.now(),r=null,i&&=(clearTimeout(i),null),t.apply(void 0,T(n))};return[function(){for(var t=Date.now(),n=t-a,l=arguments.length,u=Array(l),d=0;d =s?c(u,t):(r=u,i||=setTimeout(function(){i=null,c(r)},s-n))},function(){return r&&c(r)}]}(function(r){var s=r.loaded,c=r.lengthComputable?r.total:void 0,l=c==null?s:Math.min(s,c),u=Math.max(0,l-i),d=a(u);i=Math.max(i,l),t(m({loaded:l,total:c,progress:c?l/c:void 0,bytes:u,rate:d||void 0,estimated:d&&c?(c-l)/d:void 0,event:r,lengthComputable:c!=null},n?`download`:`upload`,!0))},r)},ft=function(t,n){var r=t!=null;return[function(i){return n[0]({lengthComputable:r,total:t,loaded:i})},n[1]]},pt=function(t){return function(){var n=[...arguments];return K.asap(function(){return t.apply(void 0,n)})}},mt=Xe.hasStandardBrowserEnv?function(t,n){return function(r){return r=new URL(r,Xe.origin),t.protocol===r.protocol&&t.host===r.host&&(n||t.port===r.port)}}(new URL(Xe.origin),Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent)):function(){return!0},ht=Xe.hasStandardBrowserEnv?{write:function(t,n,r,i,a,s,c){if(typeof document<`u`){var l=[`${t}=${encodeURIComponent(n)}`];K.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),K.isString(i)&&l.push(`path=${i}`),K.isString(a)&&l.push(`domain=${a}`),!0===s&&l.push(`secure`),K.isString(c)&&l.push(`SameSite=${c}`),document.cookie=l.join(`; `)}},read:function(t){if(typeof document>`u`)return null;var n=document.cookie.match(RegExp(`(?:^|; )`+t+`=([^;]*)`));return n?decodeURIComponent(n[1]):null},remove:function(t){this.write(t,``,Date.now()-864e5,`/`)}}:{write:function(){},read:function(){return null},remove:function(){}};function gt(t,n,r){var i,a=!(typeof(i=n)==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));return t&&(a||!1===r)?function(t,n){return n?t.replace(/\/?\/$/,``)+`/`+n.replace(/^\/+/,``):t}(t,n):n}var _t=function(t){return t instanceof ot?y({},t):t};function vt(t,n){n||={};var r=Object.create(null);function i(t,n,r,i){return K.isPlainObject(t)&&K.isPlainObject(n)?K.merge.call({caseless:i},t,n):K.isPlainObject(n)?K.merge({},n):K.isArray(n)?n.slice():n}function a(t,n,r,a){return K.isUndefined(n)?K.isUndefined(t)?void 0:i(void 0,t,0,a):i(t,n,0,a)}function s(t,n){if(!K.isUndefined(n))return i(void 0,n)}function c(t,n){return K.isUndefined(n)?K.isUndefined(t)?void 0:i(void 0,t):i(void 0,n)}function l(r,a,s){return K.hasOwnProp(n,s)?i(r,a):K.hasOwnProp(t,s)?i(void 0,r):void 0}Object.defineProperty(r,`hasOwnProperty`,{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});var u={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:l,headers:function(t,n,r){return a(_t(t),_t(n),0,!0)}};return K.forEach(Object.keys(y(y({},t),n)),function(i){if(i!==`__proto__`&&i!==`constructor`&&i!==`prototype`){var s=K.hasOwnProp(u,i)?u[i]:a,c=s(K.hasOwnProp(t,i)?t[i]:void 0,K.hasOwnProp(n,i)?n[i]:void 0,i);K.isUndefined(c)&&s!==l||(r[i]=c)}}),r}var yt,bt=function(t){var n=vt({},t),r=function(t){return K.hasOwnProp(n,t)?n[t]:void 0},i=r(`data`),a=r(`withXSRFToken`),s=r(`xsrfHeaderName`),c=r(`xsrfCookieName`),l=r(`headers`),u=r(`auth`),d=r(`baseURL`),f=r(`allowAbsoluteUrls`),p=r(`url`);if(n.headers=l=ot.from(l),n.url=Ve(gt(d,p,f),t.params,t.paramsSerializer),u&&l.set(`Authorization`,`Basic `+btoa((u.username||``)+`:`+(u.password?unescape(encodeURIComponent(u.password)):``))),K.isFormData(i)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(K.isFunction(i.getHeaders)){var m=i.getHeaders(),h=[`content-type`,`content-length`];Object.entries(m).forEach(function(t){var n=w(t,2),r=n[0],i=n[1];h.includes(r.toLowerCase())&&l.set(r,i)})}}if(Xe.hasStandardBrowserEnv&&(K.isFunction(a)&&(a=a(n)),!0===a||a==null&&mt(n.url))){var g=s&&c&&ht.read(c);g&&l.set(s,g)}return n},xt=typeof XMLHttpRequest<`u`&&function(t){return new Promise(function(n,r){var i,a,s,c,l,u=bt(t),d=u.data,f=ot.from(u.headers).normalize(),p=u.responseType,m=u.onUploadProgress,h=u.onDownloadProgress;function g(){c&&c(),l&&l(),u.cancelToken&&u.cancelToken.unsubscribe(i),u.signal&&u.signal.removeEventListener(`abort`,i)}var _=new XMLHttpRequest;function v(){if(_){var i=ot.from(`getAllResponseHeaders`in _&&_.getAllResponseHeaders());ut(function(t){n(t),g()},function(t){r(t),g()},{data:p&&p!==`text`&&p!==`json`?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:i,config:t,request:_}),_=null}}if(_.open(u.method.toUpperCase(),u.url,!0),_.timeout=u.timeout,`onloadend`in _?_.onloadend=v:_.onreadystatechange=function(){_&&_.readyState===4&&(_.status!==0||_.responseURL&&_.responseURL.indexOf(`file:`)===0)&&setTimeout(v)},_.onabort=function(){_&&=(r(new q(`Request aborted`,q.ECONNABORTED,t,_)),null)},_.onerror=function(n){var i=new q(n&&n.message?n.message:`Network Error`,q.ERR_NETWORK,t,_);i.event=n||null,r(i),_=null},_.ontimeout=function(){var n=u.timeout?`timeout of `+u.timeout+`ms exceeded`:`timeout exceeded`,i=u.transitional||Ue;u.timeoutErrorMessage&&(n=u.timeoutErrorMessage),r(new q(n,i.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,t,_)),_=null},d===void 0&&f.setContentType(null),`setRequestHeader`in _&&K.forEach(f.toJSON(),function(t,n){_.setRequestHeader(n,t)}),K.isUndefined(u.withCredentials)||(_.withCredentials=!!u.withCredentials),p&&p!==`json`&&(_.responseType=u.responseType),h){var y=w(dt(h,!0),2);s=y[0],l=y[1],_.addEventListener(`progress`,s)}if(m&&_.upload){var b=w(dt(m),2);a=b[0],c=b[1],_.upload.addEventListener(`progress`,a),_.upload.addEventListener(`loadend`,c)}(u.cancelToken||u.signal)&&(i=function(n){_&&=(r(!n||n.type?new lt(null,t,_):n),_.abort(),null)},u.cancelToken&&u.cancelToken.subscribe(i),u.signal&&(u.signal.aborted?i():u.signal.addEventListener(`abort`,i)));var x,S,C=(x=u.url,(S=/^([-+\w]{1,25})(:?\/\/|:)/.exec(x))&&S[1]||``);C&&Xe.protocols.indexOf(C)===-1?r(new q(`Unsupported protocol `+C+`:`,q.ERR_BAD_REQUEST,t)):_.send(d||null)})},St=function(t,n){var r=(t=t?t.filter(Boolean):[]).length;if(n||r){var i,a=new AbortController,s=function(t){if(!i){i=!0,l();var n=t instanceof Error?t:this.reason;a.abort(n instanceof q?n:new lt(n instanceof Error?n.message:n))}},c=n&&setTimeout(function(){c=null,s(new q(`timeout of ${n}ms exceeded`,q.ETIMEDOUT))},n),l=function(){t&&=(c&&clearTimeout(c),c=null,t.forEach(function(t){t.unsubscribe?t.unsubscribe(s):t.removeEventListener(`abort`,s)}),null)};t.forEach(function(t){return t.addEventListener(`abort`,s)});var u=a.signal;return u.unsubscribe=function(){return K.asap(l)},u}},Ct=b().m(function t(n,r){var i,a,s;return b().w(function(t){for(;;)switch(t.n){case 0:if(i=n.byteLength,r&&!(i 1?`since : +`+u.map(Lt).join(` +`):` `+Lt(u[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i};function Bt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new lt(null,t)}function Vt(t){return Bt(t),t.headers=ot.from(t.headers),t.data=st.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1),zt(t.adapter||$e.adapter,t)(t).then(function(n){return Bt(t),n.data=st.call(t,t.transformResponse,n),n.headers=ot.from(n.headers),n},function(n){return ct(n)||(Bt(t),n&&n.response&&(n.response.data=st.call(t,t.transformResponse,n.response),n.response.headers=ot.from(n.response.headers))),Promise.reject(n)})}var Ht=`1.15.2`,Ut={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach(function(t,n){Ut[t]=function(r){return D(r)===t||`a`+(n<1?`n `:` `)+t}});var Wt={};Ut.transitional=function(t,n,r){function i(t,n){return`[Axios v`+Ht+`] Transitional option '`+t+`'`+n+(r?`. `+r:``)}return function(r,a,s){if(!1===t)throw new q(i(a,` has been removed`+(n?` in `+n:``)),q.ERR_DEPRECATED);return n&&!Wt[a]&&(Wt[a]=!0,console.warn(i(a,` has been deprecated since v`+n+` and will be removed in the near future`))),!t||t(r,a,s)}},Ut.spelling=function(t){return function(n,r){return console.warn(`${r} is likely a misspelling of ${t}`),!0}};var Gt={assertOptions:function(t,n,r){if(D(t)!==`object`)throw new q(`options must be an object`,q.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(t),a=i.length;a-- >0;){var s=i[a],c=Object.prototype.hasOwnProperty.call(n,s)?n[s]:void 0;if(c){var l=t[s],u=l===void 0||c(l,s,t);if(!0!==u)throw new q(`option `+s+` must be `+u,q.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new q(`Unknown option `+s,q.ERR_BAD_OPTION)}},validators:Ut},Kt=Gt.validators,qt=function(){return p(function t(n){d(this,t),this.defaults=n||{},this.interceptors={request:new He,response:new He}},[{key:`request`,value:(t=c(b().m(function t(n,r){var i,a,s,c,l,u;return b().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,this._request(n,r);case 1:return t.a(2,t.v);case 2:if(t.p=2,(u=t.v)instanceof Error){i={},Error.captureStackTrace?Error.captureStackTrace(i):i=Error(),a=function(){if(!i.stack)return``;var t=i.stack.indexOf(` +`);return t===-1?``:i.stack.slice(t+1)}();try{u.stack?a&&(s=a.indexOf(` +`),c=s===-1?-1:a.indexOf(` +`,s+1),l=c===-1?``:a.slice(c+1),String(u.stack).endsWith(l)||(u.stack+=` +`+a)):u.stack=a}catch{}}throw u;case 3:return t.a(2)}},t,this,[[0,2]])})),function(n,r){return t.apply(this,arguments)})},{key:`_request`,value:function(t,n){typeof t==`string`?(n||={}).url=t:n=t||{};var r=n=vt(this.defaults,n),i=r.transitional,a=r.paramsSerializer,s=r.headers;i!==void 0&&Gt.assertOptions(i,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean),legacyInterceptorReqResOrdering:Kt.transitional(Kt.boolean)},!1),a!=null&&(K.isFunction(a)?n.paramsSerializer={serialize:a}:Gt.assertOptions(a,{encode:Kt.function,serialize:Kt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?n.allowAbsoluteUrls=!0:n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Gt.assertOptions(n,{baseUrl:Kt.spelling(`baseURL`),withXsrfToken:Kt.spelling(`withXSRFToken`)},!0),n.method=(n.method||this.defaults.method||`get`).toLowerCase();var c=s&&K.merge(s.common,s[n.method]);s&&K.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],function(t){delete s[t]}),n.headers=ot.concat(c,s);var l=[],u=!0;this.interceptors.request.forEach(function(t){if(typeof t.runWhen!=`function`||!1!==t.runWhen(n)){u&&=t.synchronous;var r=n.transitional||Ue;r&&r.legacyInterceptorReqResOrdering?l.unshift(t.fulfilled,t.rejected):l.push(t.fulfilled,t.rejected)}});var d,f=[];this.interceptors.response.forEach(function(t){f.push(t.fulfilled,t.rejected)});var p,m=0;if(!u){var h=[Vt.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,f),p=h.length,d=Promise.resolve(n);m 0;)i._listeners[n](t);i._listeners=null}}),this.promise.then=function(t){var n,r=new Promise(function(t){i.subscribe(t),n=t}).then(t);return r.cancel=function(){i.unsubscribe(n)},r},n(function(t,n,a){i.reason||(i.reason=new lt(t,n,a),r(i.reason))})}return p(t,[{key:`throwIfRequested`,value:function(){if(this.reason)throw this.reason}},{key:`subscribe`,value:function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}},{key:`unsubscribe`,value:function(t){if(this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}}},{key:`toAbortSignal`,value:function(){var t=this,n=new AbortController,r=function(t){n.abort(t)};return this.subscribe(r),n.signal.unsubscribe=function(){return t.unsubscribe(r)},n.signal}}],[{key:`source`,value:function(){var n;return{token:new t(function(t){n=t}),cancel:n}}}])}(),Yt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Yt).forEach(function(t){var n=w(t,2),r=n[0],i=n[1];Yt[i]=r});var J=function t(n){var r=new qt(n),i=M(qt.prototype.request,r);return K.extend(i,qt.prototype,r,{allOwnKeys:!0}),K.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return t(vt(n,r))},i}($e);return J.Axios=qt,J.CanceledError=lt,J.CancelToken=Jt,J.isCancel=ct,J.VERSION=Ht,J.toFormData=Ie,J.AxiosError=q,J.Cancel=J.CanceledError,J.all=function(t){return Promise.all(t)},J.spread=function(t){return function(n){return t.apply(null,n)}},J.isAxiosError=function(t){return K.isObject(t)&&!0===t.isAxiosError},J.mergeConfig=vt,J.AxiosHeaders=ot,J.formToJSON=function(t){return Ze(K.isHTMLForm(t)?new FormData(t):t)},J.getAdapter=zt,J.HttpStatusCode=Yt,J.default=J,J})}).call(window),(function(t,n,r){console.info(` +IFRAME-RESIZER + +Iframe-Resizer 5 is now available via the following two packages: + + * @iframe-resizer/parent + * @iframe-resizer/child + +Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery. + +Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events. + +Please see https://iframe-resizer.com/upgrade for more details. +`),function(n){if(typeof window<`u`){var r,i,a=0,s=!1,c=!1,l=`[iFrameSizer]`,u=null,d=window.requestAnimationFrame,f=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),p={},m=null,h=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:`bodyOffset`,id:`iFrameResizer`,interval:32,license:`1jqr0si6pnt`,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:`parent`,scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:`scroll`,onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){C(`onMessage function not defined`)},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),g={};window.jQuery!==n&&((i=window.jQuery).fn?i.fn.iFrameResize||(i.fn.iFrameResize=function(t){return this.filter(`iframe`).each(function(n,r){L(r,t)}).end()}):S(``,`Unable to bind to jQuery, it is not fully loaded.`)),typeof define==`function`&&define.amd?define([],te):typeof t==`object`&&typeof t.exports==`object`&&(t.exports=te()),window.iFrameResize=window.iFrameResize||te()}function _(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function v(t,n,r){t.addEventListener(n,r,!1)}function y(t,n,r){t.removeEventListener(n,r,!1)}function b(t){return p[t]?p[t].log:s}function x(t,n){w(`log`,t,n,b(t))}function S(t,n){w(`info`,t,n,b(t))}function C(t,n){w(`warn`,t,n,!0)}function w(t,n,r,i){!0===i&&typeof window.console==`object`&&console[t](function(t){return l+`[`+function(t){var n=`Host page: `+t;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+`: `+t:`Nested host page: `+t),n}(t)+`]`}(n),r)}function T(t){function n(){r(`Height`),r(`Width`),P(function(){N(R),A(z),m(`onResized`,R)},R,`init`)}function r(t){var n=Number(p[z][`max`+t]),r=Number(p[z][`min`+t]),i=t.toLowerCase(),a=Number(R[i]);x(z,`Checking `+i+` is in range `+r+`-`+n),a
n&&(a=n,x(z,`Set `+i+` to max value`)),R[i]=``+a}function i(t){return L.slice(L.indexOf(`:`)+7+t)}function a(t,n){var r=function(){var r,i;F(`Send Page Info`,`pageInfo:`+(r=document.body.getBoundingClientRect(),i=R.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-r.top,10),offsetLeft:parseInt(i.left-r.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),t,n)},i;g[i=n]||(g[i]=setTimeout(function(){g[i]=null,r()},32))}function s(t){var n=t.getBoundingClientRect();return k(z),{x:Math.floor(Number(n.left)+Number(u.x)),y:Math.floor(Number(n.top)+Number(u.y))}}function c(t){var n=t?s(R.iframe):{x:0,y:0},r={x:Number(R.width)+n.x,y:Number(R.height)+n.y};x(z,`Reposition requested from iFrame (offset x:`+n.x+` y:`+n.y+`)`),window.top===window.self?(u=r,d(),x(z,`--`)):window.parentIFrame?window.parentIFrame[`scrollTo`+(t?`Offset`:``)](r.x,r.y):C(z,`Unable to scroll to requested position, window.parentIFrame not found`)}function d(){!1===m(`onScroll`,u)?j():A(z)}function f(t){var n={};if(Number(R.width)===0&&Number(R.height)===0){var r=i(9).split(`:`);n={x:r[1],y:r[0]}}else n={x:R.width,y:R.height};m(t,{iframe:R.iframe,screenX:Number(n.x),screenY:Number(n.y),type:R.type})}function m(t,n){return E(z,t,n)}var h,_,b,w,T,D,L=t.data,R={},z=null;L===`[iFrameResizerChild]Ready`?function(){for(var t in p)F(`iFrame requested init`,I(t),p[t].iframe,t)}():l===(``+L).slice(0,13)&&L.slice(13).split(`:`)[0]in p?(w=(b=L.slice(13).split(`:`))[1]?parseInt(b[1],10):0,T=p[b[0]]&&p[b[0]].iframe,D=getComputedStyle(T),R={iframe:T,id:b[0],height:w+function(t){return t.boxSizing===`border-box`?(t.paddingTop?parseInt(t.paddingTop,10):0)+(t.paddingBottom?parseInt(t.paddingBottom,10):0):0}(D)+function(t){return t.boxSizing===`border-box`?(t.borderTopWidth?parseInt(t.borderTopWidth,10):0)+(t.borderBottomWidth?parseInt(t.borderBottomWidth,10):0):0}(D),width:b[2],type:b[3]},z=R.id,p[z]&&(p[z].loaded=!0),(_=R.type in{true:1,false:1,undefined:1})&&x(z,`Ignoring init message from meta parent page`),!_&&function(t){var n=!0;return p[t]||(n=!1,C(R.type+` No settings for `+t+`. Message was: `+L)),n}(z)&&(x(z,`Received: `+L),h=!0,R.iframe===null&&(C(z,`IFrame (`+R.id+`) not found`),h=!1),h&&function(){var n,r=t.origin,i=p[z]&&p[z].checkOrigin;if(i&&``+r!=`null`&&!(i.constructor===Array?function(){var t=0,n=!1;for(x(z,`Checking connection is from allowed list of origins: `+i);t p[d][`max`+t])throw Error(`Value for min`+t+` can not be greater than max`+t)}r(`Height`),r(`Width`),n(`maxHeight`),n(`minHeight`),n(`maxWidth`),n(`minWidth`)}(),typeof(p[d]&&p[d].bodyMargin)!=`number`&&(p[d]&&p[d].bodyMargin)!==`0`||(p[d].bodyMarginV1=p[d].bodyMargin,p[d].bodyMargin=p[d].bodyMargin+`px`),l=I(d),(u=_())&&(r=function(n){if(!t.parentNode)return null;var r=new n(function(n){n.forEach(function(n){Array.prototype.slice.call(n.removedNodes).forEach(function(n){n===t&&O(t)})})});return r.observe(t.parentNode,{childList:!0}),r}(u)),v(t,`load`,function(){var r,i;F(`iFrame.onload`,l,t,n,!0),r=p[d]&&p[d].firstRun,i=p[d]&&p[d].heightCalculationMethod in f,!r&&i&&M({iframe:t,height:0,width:0,type:`init`})}),F(`init`,l,t,n,!0),p[d]&&(p[d].iframe.iFrameResizer={close:O.bind(null,p[d].iframe),removeListeners:D.bind(null,p[d].iframe),resize:F.bind(null,`Window resize`,`resize`,p[d].iframe),moveToAnchor:function(t){F(`Move to anchor`,`moveToAnchor:`+t,p[d].iframe,d)},sendMessage:function(t){F(`Send Message`,`message:`+(t=JSON.stringify(t)),p[d].iframe,d)}}))}function R(t,n){m===null&&(m=setTimeout(function(){m=null,t()},n))}function z(){document.visibilityState!==`hidden`&&(x(`document`,`Trigger event: Visibility change`),R(function(){ee(`Tab Visible`,`resize`)},16))}function ee(t,n){Object.keys(p).forEach(function(r){(function(t){return p[t]&&p[t].resizeFrom===`parent`&&p[t].autoResize&&!p[t].firstRun})(r)&&F(t,n,p[r].iframe,r)})}function te(){function t(t,n){n&&(function(){if(!n.tagName)throw TypeError(`Object is not a valid DOM element`);if(n.tagName.toUpperCase()!==`IFRAME`)throw TypeError(`Expected