@webority/ui-elements 0.200.0 → 0.201.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{WuiInlineEdit-8QIAUktT.js → WuiInlineEdit-BKjUqAFD.js} +1 -1
- package/dist/{drawerDiscard-233UVlX5.js → drawerDiscard-DO4bmfVZ.js} +1 -1
- package/dist/elements/inline-edit.js +1 -1
- package/dist/refreshAfter-C2bqZfb9.js +1 -0
- package/dist/server.js +1 -1
- package/dist/ui-elements/calendar-views.global.js +1 -1
- package/dist/ui-elements/carousel.global.js +1 -1
- package/dist/ui-elements/code-block.global.js +1 -1
- package/dist/ui-elements/command-palette.global.js +1 -1
- package/dist/ui-elements/comment-thread.global.js +1 -1
- package/dist/ui-elements/consent-banner.global.js +1 -1
- package/dist/ui-elements/context-menu.global.js +1 -1
- package/dist/ui-elements/dashboard-grid.global.js +1 -1
- package/dist/ui-elements/data-table.global.js +1 -1
- package/dist/ui-elements/date-range.global.js +1 -1
- package/dist/ui-elements/date-time.global.js +1 -1
- package/dist/ui-elements/datepicker.global.js +1 -1
- package/dist/ui-elements/dock.global.js +1 -1
- package/dist/ui-elements/drawer.global.js +1 -1
- package/dist/ui-elements/dropdown.global.js +1 -1
- package/dist/ui-elements/entry-grid.global.js +1 -1
- package/dist/ui-elements/gantt.global.js +1 -1
- package/dist/ui-elements/glyphs-a.global.js +1 -1
- package/dist/ui-elements/glyphs-b.global.js +1 -1
- package/dist/ui-elements/glyphs-c.global.js +1 -1
- package/dist/ui-elements/glyphs-d.global.js +1 -1
- package/dist/ui-elements/glyphs-e.global.js +1 -1
- package/dist/ui-elements/glyphs-f.global.js +1 -1
- package/dist/ui-elements/glyphs-g.global.js +1 -1
- package/dist/ui-elements/glyphs-h.global.js +1 -1
- package/dist/ui-elements/glyphs-i.global.js +1 -1
- package/dist/ui-elements/glyphs-j.global.js +1 -1
- package/dist/ui-elements/glyphs-k.global.js +1 -1
- package/dist/ui-elements/glyphs-l.global.js +1 -1
- package/dist/ui-elements/glyphs-m.global.js +1 -1
- package/dist/ui-elements/glyphs-n.global.js +1 -1
- package/dist/ui-elements/glyphs-o.global.js +1 -1
- package/dist/ui-elements/glyphs-p.global.js +1 -1
- package/dist/ui-elements/glyphs-q.global.js +1 -1
- package/dist/ui-elements/glyphs-r.global.js +1 -1
- package/dist/ui-elements/glyphs-s.global.js +1 -1
- package/dist/ui-elements/glyphs-t.global.js +1 -1
- package/dist/ui-elements/glyphs-u.global.js +1 -1
- package/dist/ui-elements/glyphs-v.global.js +1 -1
- package/dist/ui-elements/glyphs-w.global.js +1 -1
- package/dist/ui-elements/glyphs-x.global.js +1 -1
- package/dist/ui-elements/glyphs-z.global.js +1 -1
- package/dist/ui-elements/glyphs.global.js +1 -1
- package/dist/ui-elements/hover-card.global.js +1 -1
- package/dist/ui-elements/image-crop.global.js +1 -1
- package/dist/ui-elements/inline-edit.global.js +1 -1
- package/dist/ui-elements/kanban.global.js +1 -1
- package/dist/ui-elements/lead-popup.global.js +1 -1
- package/dist/ui-elements/lightbox.global.js +1 -1
- package/dist/ui-elements/markdown.global.js +1 -1
- package/dist/ui-elements/mini-calendar.global.js +1 -1
- package/dist/ui-elements/navigation-menu.global.js +1 -1
- package/dist/ui-elements/notification-center.global.js +1 -1
- package/dist/ui-elements/offline-banner.global.js +1 -1
- package/dist/ui-elements/onboarding-checklist.global.js +1 -1
- package/dist/ui-elements/org-tree.global.js +1 -1
- package/dist/ui-elements/otp.global.js +1 -1
- package/dist/ui-elements/overflow.global.js +1 -1
- package/dist/ui-elements/phone.global.js +1 -1
- package/dist/ui-elements/popover.global.js +1 -1
- package/dist/ui-elements/rating.global.js +1 -1
- package/dist/ui-elements/record-pager.global.js +1 -1
- package/dist/ui-elements/relative-time.global.js +1 -1
- package/dist/ui-elements/saved-views.global.js +1 -1
- package/dist/ui-elements/select-chips.global.js +1 -1
- package/dist/ui-elements/select-recents.global.js +1 -1
- package/dist/ui-elements/select-search.global.js +1 -1
- package/dist/ui-elements/select-window.global.js +1 -1
- package/dist/ui-elements/server.global.js +1 -1
- package/dist/ui-elements/shell.global.js +1 -1
- package/dist/ui-elements/shortcuts.global.js +1 -1
- package/dist/ui-elements/show-more.global.js +1 -1
- package/dist/ui-elements/slider.global.js +1 -1
- package/dist/ui-elements/sortable.global.js +1 -1
- package/dist/ui-elements/status-icon.global.js +1 -1
- package/dist/ui-elements/table-export.global.js +1 -1
- package/dist/ui-elements/timepicker.global.js +1 -1
- package/dist/ui-elements/tour.global.js +1 -1
- package/dist/ui-elements/tree-picker.global.js +1 -1
- package/dist/ui-elements/tree.global.js +1 -1
- package/dist/ui-elements/truncate.global.js +1 -1
- package/dist/ui-elements/whats-new.global.js +1 -1
- package/dist/ui-elements/wizard.global.js +1 -1
- package/dist/ui-elements.global.js +1 -1
- package/dist/ui-elements.js +1 -1
- package/package.json +5 -5
- package/types/server/regionMorph.d.ts +1 -0
- package/types/server/regions.d.ts +1 -0
- package/dist/refreshAfter-DhYgWXmQ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var WeborityUiElements=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},r=n({defineElement:()=>i});function i(e,t){if(typeof customElements>`u`||customElements.get(e))return;let n=[];if(typeof document<`u`)for(let r of document.querySelectorAll(e))for(let i of Object.keys(r)){let a=Object.getOwnPropertyDescriptor(t.prototype,i);if(a&&(a.set||a.get)&&(n.push([r,i,Reflect.get(r,i)]),!Reflect.deleteProperty(r,i)))throw Error(`defineElement: could not clear the early "${i}" property on <${e}>.`)}customElements.define(e,t);for(let[t,r,i]of n)if(!Reflect.set(t,r,i))throw Error(`defineElement: could not restore the "${r}" property on <${e}>.`)}var a=n({ElementBase:()=>s,NO_DOM_MESSAGE:()=>o}),o=`@webority/ui-elements needs a browser DOM; import its types or helpers entry on the server`;if(typeof HTMLElement>`u`)throw Error(o);var s=HTMLElement,c=n({isRtl:()=>l,mirrorKey:()=>u});function l(e){return getComputedStyle(e).direction===`rtl`}function u(e,t){return t?e===`ArrowRight`?`ArrowLeft`:e===`ArrowLeft`?`ArrowRight`:e:e}var d=n({anchorOverlay:()=>w,bindReanchor:()=>te,unbindReanchor:()=>T}),f=4,p=8,m=300,h=400;function g(e,t,n){let r=t.offsetWidth,i=t.offsetHeight,a=n?e.left-f-r<f:e.right+f+r>window.innerWidth-f,o=n?!a:a,s=o?e.left-f-r:e.right+f;t.style.left=`${Math.max(f,s)}px`,t.style.top=`${Math.max(f,Math.min(e.top,window.innerHeight-i-f))}px`,t.dataset.side=o?`start`:`end`}function _(e,t){return t?e===`start`?`end`:e===`end`?`start`:e:e}var v=8,y={top:`bottom`,bottom:`top`,start:`end`,end:`start`},b=[`bottom`,`top`,`end`,`start`];function x(e,t){return e===`bottom`?window.innerHeight-t.bottom:e===`top`?t.top:e===`end`?window.innerWidth-t.right:t.left}function S(e,t,n,r){return e===`start`?t:e===`end`?n-r:t+(n-t-r)/2}function C(e,t,n){return Math.max(v,Math.min(e,t-n-v))}function ee(e,t,n,r){let i=r.gap??f,a=r.align??`start`,o=t.offsetWidth,s=t.offsetHeight,c=n===`auto`?b.reduce((t,n)=>x(n,e)>x(t,e)?n:t):n,l=c===`top`||c===`bottom`,u=(l?s:o)+i,d=x(c,e)<u&&x(y[c],e)>x(c,e)?y[c]:c,p=s;if(r.clampHeight){let n=d===`bottom`?window.innerHeight-e.bottom-i-f:d===`top`?e.top-i-f:window.innerHeight-8;n<s&&(p=Math.max(n,0),t.style.maxHeight=`${p}px`)}let m,h;if(l){h=d===`bottom`?e.bottom+i:Math.max(f,e.top-p-i);let t=S(a,e.left,e.right,o);r.flipAlign&&a===`start`&&t+o>window.innerWidth-f&&e.right-o>=f?t=e.right-o:r.flipAlign&&a===`end`&&t<f&&e.left+o<=window.innerWidth-f&&(t=e.left),m=Math.max(f,Math.min(t,window.innerWidth-o-f))}else m=Math.max(f,d===`end`?e.right+i:e.left-o-i),h=Math.max(f,Math.min(S(a,e.top,e.bottom,p),window.innerHeight-p-f));t.style.left=`${m}px`,t.style.top=`${h}px`,t.dataset.side=d;let g=r.arrow;if(g){if(l){let t=(e.left+e.right)/2-m-g.offsetWidth/2;g.style.left=`${C(t,o,g.offsetWidth)}px`}else{let t=(e.top+e.bottom)/2-h-g.offsetHeight/2;g.style.top=`${C(t,p,g.offsetHeight)}px`}}}function w(e,t,n={}){if(!e)throw Error(`anchorOverlay: missing trigger`);if(!t)throw Error(`anchorOverlay: missing panel`);t.style.position=`fixed`;let r=e.getBoundingClientRect(),i=e instanceof Element&&l(e);if(n.beside){g(r,t,i);return}if(n.side!==void 0){let e=n.clampHeight?Array.from(t.children,e=>[e,e.scrollTop]):[];t.classList.remove(`drop-up`),t.style.maxHeight=``,ee(r,t,n.side===`auto`?`auto`:_(n.side,i),n);for(let[t,n]of e)t.scrollTop=n;return}let a=n.clampHeight?t.scrollTop:0;n.clampHeight&&(t.style.maxHeight=``);let o=t.offsetHeight,s=window.innerHeight-r.bottom,c=!n.below&&s<o+f&&r.top>s;if(t.classList.toggle(`drop-up`,c),t.style.top=c?`${Math.max(f,r.top-o-f)}px`:`${r.bottom+f}px`,n.clampHeight){let e=c?r.top-8:window.innerHeight-r.bottom-8;e<o&&(t.style.maxHeight=`${Math.max(e,0)}px`),t.scrollTop=a}n.matchWidth&&(r.width>=m?(t.style.minWidth=`${r.width}px`,t.style.width=`${r.width}px`,t.style.maxWidth=`${r.width}px`):(t.style.minWidth=`${r.width}px`,t.style.width=`max-content`,t.style.maxWidth=`${Math.min(h,window.innerWidth-8)}px`));let u=t.offsetWidth;if(n.alignEnd){let e=r.right-u,n=e>=p?e:r.left,i=Math.max(p,Math.min(n,window.innerWidth-u-p));t.style.left=`${i}px`}else{let e=n.flipAlign&&r.left+u>window.innerWidth-f&&r.right-u>=f,i=Math.min(e?r.right-u:r.left,window.innerWidth-u-f);t.style.left=`${Math.max(f,i)}px`}}function te(e,t){T(e),e._reanchor=t,e._reanchorScroll=n=>{n.composedPath().includes(e)||t()},window.addEventListener(`resize`,e._reanchor),window.addEventListener(`scroll`,e._reanchorScroll,!0)}function T(e){if(!e?._reanchor)return;window.removeEventListener(`resize`,e._reanchor);let t=e._reanchorScroll;t&&window.removeEventListener(`scroll`,t,!0),e._reanchor=null,e._reanchorScroll=null}var ne=n({CLOSE_MOTION_LIMIT_MS:()=>400,CLOSING_ATTRIBUTE:()=>O,DISMISS_ATTRIBUTE:()=>D,OPEN_ATTRIBUTE:()=>E,closeAnchoredPopover:()=>Me,closeModalDialog:()=>Ae,isPopoverOpen:()=>k,onOverlayRootChange:()=>Le,openAnchoredPopover:()=>je,openModalDialog:()=>ke,overlayRoot:()=>Ie,raisePopover:()=>Pe,returnFocus:()=>Ee,setPopoverOpen:()=>Ne,wireOpenTriggers:()=>Re}),E=`data-wui-open`,D=`data-wui-dismiss`,O=`data-wui-closing`,re=`[${D}]`,ie=`[${E}]`,ae=`(prefers-reduced-motion: reduce)`,oe=`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,se=400,ce=new WeakSet,le=new WeakSet,ue=new WeakSet,de=Symbol.for(`webority.ui.modal-stack`),fe=Symbol.for(`webority.ui.root-watches`);function pe(e){let t=e;return t[fe]??=new Set,t[fe]}var me=new WeakMap,he=new WeakMap,ge=new WeakMap;function _e(e){let t=e.querySelector(`[data-autofocus]`);if(t)return t;let n=null;for(let t of e.querySelectorAll(oe))if(!t.closest(`[hidden],[inert]`)){if(!t.closest(`${re},.wui-modal-back`))return t;n??=t}return n}function ve(e){let t=[],n=new Map;for(let r of e.querySelectorAll(oe))if(!(r.closest(`[hidden],[inert]`)||r.closest(`dialog`)!==e)&&!(r.tabIndex<0||r.getClientRects().length===0)){if(r instanceof HTMLInputElement&&r.type===`radio`&&r.name){let e=n.get(r.name);e?r.checked&&!e.checked&&(e.checked=r,t[t.indexOf(e.first)]=r):(n.set(r.name,{first:r,checked:r.checked?r:null}),t.push(r))}else t.push(r)}return t}function ye(e){return e.localName.includes(`-`)&&`show`in e&&typeof e.show==`function`}function be(e){return e.localName.includes(`-`)&&customElements.get(e.localName)===void 0}function xe(e){let t=e;return t[de]??=[],t[de]}function Se(e){Ce(e),xe(e.ownerDocument).push(e)}function Ce(e){let t=xe(e.ownerDocument),n=t.indexOf(e);n>=0&&t.splice(n,1)}function we(e){for(let t of pe(e)){let n=Ie(e);t.last!==n&&(t.last=n,t.listener(n))}}function Te(e){let t=Promise.allSettled(e.getAnimations().map(e=>e.finished));return new Promise(e=>{let n=window.setTimeout(e,400);t.then(()=>{window.clearTimeout(n),e()})})}function Ee(e,t){if(!e?.isConnected)return;let n=e.ownerDocument.activeElement;(!n||n===e.ownerDocument.body||t.contains(n))&&e.focus()}function De(e){let t=e.getBoundingClientRect();return t.bottom<0||t.right<0||t.top>window.innerHeight||t.left>window.innerWidth}function Oe(e,t){ge.get(e)?.();let n=t.ownerDocument,r=0,i=()=>{window.clearTimeout(o),window.clearTimeout(r),n.removeEventListener(`pointerdown`,i,!0),n.removeEventListener(`keydown`,i,!0),t.removeEventListener(`click`,a,!0),ge.delete(e)},a=()=>{t.removeEventListener(`click`,a,!0),r=window.setTimeout(i,0)},o=window.setTimeout(i,se);n.addEventListener(`pointerdown`,i,!0),n.addEventListener(`keydown`,i,!0),t.addEventListener(`click`,a,!0),ge.set(e,i)}function ke(e,t){let n=t.focus===`first-control`?_e(e):null,r=n??e,i=r===e&&!e.hasAttribute(`tabindex`);i&&e.setAttribute(`tabindex`,`-1`);let a=!t.escape&&!e.hasAttribute(`closedby`);a&&e.setAttribute(`closedby`,`none`),ce.add(e);let o=()=>{if(Se(e),!e.hasAttribute(`open`)){let t=n!==null&&!e.querySelector(`[autofocus]`);t&&n.setAttribute(`autofocus`,``);try{e.showModal()}catch(t){throw Ce(e),t}finally{t&&n.removeAttribute(`autofocus`)}}r.focus(),we(e.ownerDocument)},s=!1,c=n=>{if(n.key!==`Escape`||n.defaultPrevented||!t.escape||n.altKey||n.ctrlKey||n.metaKey)return;let r=e.ownerDocument;Ie(r)===e&&(e.querySelector(`:popover-open`)||r.querySelector(`[popover=""]:popover-open, [popover="auto"]:popover-open`)||(s=!0,window.setTimeout(()=>{s&&ce.has(e)&&e.open&&(s=!1,t.onRequestClose(`escape`))},0)))},l=t=>{if(t.key!==`Tab`||t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey)return;let n=e.ownerDocument;if(Ie(n)!==e||e.querySelector(`:popover-open`))return;t.preventDefault();let r=ve(e),i=r[0],a=r[r.length-1];if(!i||!a){e.focus();return}let o=n.activeElement,s=o?r.findIndex(e=>e===o||e.contains(o)):-1;s<0?(t.shiftKey?a:i).focus():r[((t.shiftKey?s-1:s+1)+r.length)%r.length]?.focus()},u=e=>{s=!1,e.preventDefault(),t.escape&&t.onRequestClose(`escape`)},d=n=>{let r=n.target;if(!(r instanceof Element))return;let i=r.closest(re);if(i&&i.closest(`dialog`)===e){t.onRequestClose(`dismiss`);return}let a=t.backdrop;if(!a||r.closest(`dialog`)!==e||r!==a&&a.contains(r))return;let o=a.getBoundingClientRect();(n.clientX<o.left||n.clientX>o.right||n.clientY<o.top||n.clientY>o.bottom)&&t.onRequestClose(`backdrop`)},f=()=>{let n=s;s=!1,Ce(e),ce.has(e)?(o(),n&&t.onRequestClose(`escape`)):we(e.ownerDocument)},p=e.ownerDocument;return p.addEventListener(`keydown`,c),p.addEventListener(`keydown`,l),e.addEventListener(`cancel`,u),e.addEventListener(`click`,d),e.addEventListener(`close`,f),o(),()=>{p.removeEventListener(`keydown`,c),p.removeEventListener(`keydown`,l),e.removeEventListener(`cancel`,u),e.removeEventListener(`click`,d),e.removeEventListener(`close`,f),ce.delete(e),i&&e.removeAttribute(`tabindex`),a&&e.removeAttribute(`closedby`),Ce(e),we(e.ownerDocument)}}async function Ae(e){ce.delete(e),e.setAttribute(O,``),!window.matchMedia(ae).matches&&typeof e.getAnimations==`function`&&e.getAnimations().length>0&&await Te(e),e.close(),Ce(e),we(e.ownerDocument),e.removeAttribute(O)}function je(e,t,n){let r=ge.get(t);if(r){r();return}me.get(t)?.(),t.setAttribute(`popover`,n.mode),t.showPopover();let i=()=>w(e,t,n);try{i()}catch(e){throw Me(t),e}te(t,()=>{!k(t)||!t.isConnected?he.get(t)?.():e.isConnected&&n.scrollSettling?.()?i():!e.isConnected||!n.keepOffscreen&&De(e)?Me(t):i()});let a=new ResizeObserver(()=>{k(t)&&t.isConnected&&e.isConnected&&i()});a.observe(t);let o=e=>{`newState`in e&&e.newState===`closed`&&he.get(t)?.()},s=()=>{n.mode===`auto`&&k(t)&&Oe(t,e)};t.addEventListener(`toggle`,o),e.addEventListener(`pointerdown`,s,!0),me.set(t,()=>{t.removeEventListener(`toggle`,o),e.removeEventListener(`pointerdown`,s,!0),T(t),a.disconnect(),me.delete(t),he.delete(t)}),he.set(t,()=>{me.get(t)?.(),n.onClosed?.()})}function Me(e){k(e)&&e.hidePopover(),he.get(e)?.()}function k(e){return e.matches(`:popover-open`)}function Ne(e,t){Fe(e),k(e)!==t&&(t?e.showPopover():e.hidePopover())}function Pe(e){if(Fe(e),!e.isConnected)throw Error(`nativeOverlay: raisePopover was given a panel that is not on the page; a caller whose overlay root can leave the page skips the raise until the panel moves to the new root`);e.hidePopover(),e.showPopover()}function Fe(e){if(!e.hasAttribute(`popover`))throw Error(`nativeOverlay: the panel has no popover attribute`)}function Ie(e=document){let t=xe(e);for(let e=t.length-1;e>=0;e--){let n=t[e];if(n?.isConnected&&n.hasAttribute(`open`))return n}return e.body}function Le(e,t=document){le.has(t)||(le.add(t),t.addEventListener(`toggle`,()=>we(t),!0),t.addEventListener(`close`,()=>we(t),!0));let n={last:Ie(t),listener:e};return pe(t).add(n),()=>{pe(t).delete(n)}}function Re(e){ue.has(e)||(ue.add(e),e.addEventListener(`click`,t=>{let n=t.target,r=n instanceof Element?n.closest(ie):null;if(!(r instanceof HTMLElement))return;let i=(r.getAttribute(`data-wui-open`)??``).replace(/^#/,``),a=e.getElementById(i);if(!a)throw Error(`[data-wui-open] names #${i}, which is not on the page.`);ye(a)?(t.preventDefault(),a.show(r)):be(a)&&(t.preventDefault(),customElements.whenDefined(a.localName).then(()=>{a.isConnected&&ye(a)&&a.show(r)}))}))}var ze=n({closestOf:()=>Ve,elementOf:()=>Be,make:()=>j,must:()=>A});function A(e,t){if(e==null)throw Error(t);return e}function Be(e,t,n){if(!(e instanceof t))throw TypeError(n);return e}function Ve(e,t){return e instanceof Element?e.closest(t):null}function j(e,t,...n){if(e.toLowerCase()===`svg`)throw Error(`make() builds HTML elements; use svgRoot for svg`);let r=document.createElement(e);for(let[e,n]of Object.entries(t??{}))n===!0?r.setAttribute(e,``):(typeof n==`string`||typeof n==`number`)&&r.setAttribute(e,String(n));let i=[];for(let e of n)e instanceof Node?i.push(e):(typeof e==`string`||typeof e==`number`)&&i.push(document.createTextNode(String(e)));return r.append(...i),r}var He=`INR`,Ue=Object.freeze({INR:`₹`,USD:`$`,EUR:`€`,GBP:`£`,JPY:`¥`}),We=e=>typeof e==`string`&&/^[A-Z]{3}$/.test(e),Ge=(e=`INR`)=>Ue[e]??`${e} `,Ke={aprShortLabel:`Apr`,aprilLabel:`April`,augShortLabel:`Aug`,augustLabel:`August`,decShortLabel:`Dec`,decemberLabel:`December`,emptyValueLabel:`-`,febShortLabel:`Feb`,februaryLabel:`February`,friMinLabel:`Fr`,friShortLabel:`Fri`,fridayLabel:`Friday`,janShortLabel:`Jan`,januaryLabel:`January`,julShortLabel:`Jul`,julyLabel:`July`,junShortLabel:`Jun`,juneLabel:`June`,marShortLabel:`Mar`,marchLabel:`March`,mayLabel:`May`,mayShortLabel:`May`,monMinLabel:`Mo`,monShortLabel:`Mon`,mondayLabel:`Monday`,novShortLabel:`Nov`,novemberLabel:`November`,octShortLabel:`Oct`,octoberLabel:`October`,satMinLabel:`Sa`,satShortLabel:`Sat`,saturdayLabel:`Saturday`,sepShortLabel:`Sep`,septemberLabel:`September`,sunMinLabel:`Su`,sunShortLabel:`Sun`,sundayLabel:`Sunday`,thuMinLabel:`Th`,thuShortLabel:`Thu`,thursdayLabel:`Thursday`,tueMinLabel:`Tu`,tueShortLabel:`Tue`,tuesdayLabel:`Tuesday`,wedMinLabel:`We`,wedShortLabel:`Wed`,wednesdayLabel:`Wednesday`},qe=Ke,Je=e=>Object.getOwnPropertyDescriptor(Ke,e)!==void 0;function Ye(e){let t={...Ke};for(let[n,r]of Object.entries(e))if(r!==void 0){if(!Je(n))throw RangeError(`Format text ${n} is not a key of the default text. Allowed keys: ${Object.keys(Ke).join(`, `)}.`);if(typeof r!=`string`)throw RangeError(`Format text ${n} must be a string.`);t[n]=r}qe=t}function Xe(){return qe}var M=`Asia/Kolkata`,Ze=198e5,Qe=new Map;function $e(e){let t=Qe.get(e);return t||(t=new Intl.DateTimeFormat(`en-US`,{timeZone:e,hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),Qe.set(e,t)),t}function et(e){if(typeof e!=`string`||e===``)return!1;try{return $e(e),!0}catch{return!1}}function tt(e,t=M){if(t===`Asia/Kolkata`){let t=new Date(e+Ze);return{year:t.getUTCFullYear(),month:t.getUTCMonth(),day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}let n=Object.fromEntries($e(t).formatToParts(e).map(e=>[e.type,Number(e.value)]));return{year:Number(n.year),month:Number(n.month)-1,day:Number(n.day),hour:Number(n.hour)%24,minute:Number(n.minute),second:Number(n.second)}}function nt(e,t=M){if(t===`Asia/Kolkata`)return Ze;let n=tt(e,t),r=new Date(0);return r.setUTCFullYear(n.year,n.month,n.day),r.setUTCHours(n.hour,n.minute,n.second,0),r.getTime()-Math.floor(e/1e3)*1e3}function rt(e,t=M){let n=e-nt(e,t);return n=e-nt(n,t),n}var it=[`number`,`currency`,`percent`,`compact`,`duration`,`date`,`status`],at=[`INR`,`USD`,`EUR`,`GBP`],ot=[`rupees`,`paise`],st=[`ms`,`s`,`min`,`h`],ct=[`day`,`month`,`year`,`datetime`,`time`];function lt(e){return ot.some(t=>t===e)}var N=()=>Xe().emptyValueLabel,ut=`−`,dt=[`janShortLabel`,`febShortLabel`,`marShortLabel`,`aprShortLabel`,`mayShortLabel`,`junShortLabel`,`julShortLabel`,`augShortLabel`,`sepShortLabel`,`octShortLabel`,`novShortLabel`,`decShortLabel`],ft=[`januaryLabel`,`februaryLabel`,`marchLabel`,`aprilLabel`,`mayLabel`,`juneLabel`,`julyLabel`,`augustLabel`,`septemberLabel`,`octoberLabel`,`novemberLabel`,`decemberLabel`],pt={short:[`sunShortLabel`,`monShortLabel`,`tueShortLabel`,`wedShortLabel`,`thuShortLabel`,`friShortLabel`,`satShortLabel`],long:[`sundayLabel`,`mondayLabel`,`tuesdayLabel`,`wednesdayLabel`,`thursdayLabel`,`fridayLabel`,`saturdayLabel`],min:[`sunMinLabel`,`monMinLabel`,`tueMinLabel`,`wedMinLabel`,`thuMinLabel`,`friMinLabel`,`satMinLabel`]},mt=(e,t)=>{let n=e[t];if(n===void 0)throw RangeError(`no date name at index ${t}`);return Xe()[n]},ht=e=>mt(dt,e),gt=e=>mt(ft,e);function _t(e,t){return mt(pt[t],e)}var vt=(e,t)=>{let n=e[t];if(n===void 0)throw RangeError(`no compact unit at index ${t}`);return n},yt=[[1e7,`Cr`],[1e5,`L`],[1e3,`K`]],bt=[[1e9,`B`],[1e6,`M`],[1e3,`K`]],xt=e=>!e||e===`INR`?`en-IN`:`en-US`,St=(e,t)=>typeof e==`number`&&Number.isInteger(e)&&e>=0&&e<=20?e:t,Ct=new Map,wt=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=Ct.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:e}),Ct.set(n,r)),r},Tt=new Map,Et=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=Tt.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}),Tt.set(n,r)),r},Dt=e=>typeof e==`number`&&Number.isFinite(e),Ot=e=>e<0&&!Object.is(Math.abs(e),0)?ut:``;function kt(e){if(!Number.isInteger(e))throw Error(`A paise amount must be a whole number, got ${e}`);let t=BigInt(Math.abs(e)).toString().padStart(3,`0`);return`${e<0?`-`:``}${t.slice(0,-2)}.${t.slice(-2)}`}var At=(e,t)=>t===`paise`?Number(kt(e)):e,jt=2,Mt=(e,t,n)=>{let r=Math.min(t,jt),i=10n**BigInt(jt-r),a=(BigInt(kt(e).replace(`.`,``))+i/2n)/i,o=10n**BigInt(r),s=Et(0,n).format(Number(a/o));return t===0?s:`${s}.${(a%o).toString().padStart(r,`0`)}${`0`.repeat(t-r)}`};function P(e,{decimals:t}={}){if(!Dt(e))return N();let n=wt(St(t,2)).format(Math.abs(e));return n===`0`?`0`:Ot(e)+n}function Nt(e,t){if(!t?.currency)throw TypeError(`[@webority/ui-elements] formatCurrency needs options.currency, an ISO 4217 code such as "INR".`);if(!Dt(e))return N();let{unit:n=`rupees`,decimals:r,currency:i}=t,a=St(r,0),o=xt(i),s=n===`paise`?Mt(Math.abs(e),a,o):Et(a,o).format(Math.abs(e));return(Number(s.replace(/,/g,``))===0?``:Ot(e))+Ge(i)+s}var Pt=e=>e>0&&e<.1?Math.min(20,1-Math.floor(Math.log10(e))):2;function Ft(e,{currency:t,unit:n=`rupees`}={}){if(!Dt(e))return N();let r=t?At(e,n):e,i=t?Ge(t):``,a=t?xt(t):`en-IN`,o=a===`en-IN`?yt:bt,s=Math.abs(r),c=o.findIndex(([e])=>s>=e);if(c===-1){let e=wt(Pt(s),a).format(s);if(e!==`1,000`)return(e===`0`?``:Ot(r))+i+e;c=o.length-1}let[l,u]=vt(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f));return p>=100&&c>0&&(--c,[l,u]=vt(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f))),`${Ot(r)}${i}${wt(f,a).format(p)} ${u}`}function It(e,{decimals:t}={}){return Dt(e)?`${P(e*100,{decimals:St(t,1)})}%`:N()}var Lt={ms:1,s:1e3,min:6e4,h:36e5};function Rt(e,{unit:t=`s`}={}){if(!Dt(e))return N();let n=Lt[t]??1e3,r=Math.abs(e*n),i=Ot(e);if(Math.round(r)<1e3)return`${i}${wt(0).format(r)} ms`;let a=r/1e3;if(a<10)return`${i}${wt(1).format(a)}s`;let o=Math.round(a);if(o<60)return`${i}${o}s`;let s=e=>String(e).padStart(2,`0`),c=Math.floor(o/60);if(c<60)return`${i}${c}m ${s(o%60)}s`;let l=Math.floor(c/60);return`${i}${wt(0).format(l)}h ${s(c%60)}m`}function F(e,t=M){if(e instanceof Date)return e.getTime();if(Dt(e))return e;if(typeof e!=`string`)return NaN;let n=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(n){let[e,r,i]=[Number(n[1]),Number(n[2]),Number(n[3])],a=new Date(Date.UTC(2e3,r-1,i));return a.setUTCFullYear(e),a.getUTCFullYear()===e&&a.getUTCMonth()===r-1&&a.getUTCDate()===i?rt(a.getTime(),t):NaN}return Date.parse(e)}function zt(e,t=M){let{year:n,month:r,day:i,hour:a,minute:o}=tt(e,t);return{year:n,month:r,day:i,hour:a,minute:o}}function I(e,{pattern:t=`day`,timeZone:n=M}={}){let r=F(e,n);if(!Number.isFinite(r))return N();let i=zt(r,n),a=e=>String(e).padStart(2,`0`),o=`${a(i.day)}-${ht(i.month)}-${i.year}`,s=`${a(i.hour)}:${a(i.minute)}`;switch(t){case`month`:return`${ht(i.month)}-${i.year}`;case`year`:return String(i.year);case`datetime`:return`${o} ${s}`;case`time`:return s;default:return o}}function Bt(e,{timeZone:t=M}={}){let n=F(e,t);if(!Number.isFinite(n))return N();let r=zt(n,t);return`${String(r.day).padStart(2,`0`)}-${ht(r.month)}`}function Vt(e,t){if(e==null||e===``)return N();let n=t?.style;if(n===`date`)return I(e,t);if(n===`status`||typeof e!=`number`)return String(e);switch(n){case`currency`:return Nt(e,{...t,currency:t?.currency??``});case`percent`:return It(e,t);case`compact`:return Ft(e,t);case`duration`:return Rt(e,t);default:return P(e,t)}}function Ht(e){let t=e?.style;if(t===`currency`){if(!e?.currency)throw TypeError(`[@webority/ui-elements] a currency format needs a currency, an ISO 4217 code such as "INR".`);return{style:`compact`,currency:e.currency,unit:e.unit}}return!t||t===`number`?{style:`compact`}:e??{}}function Ut(e,{timeZone:t=M}={}){let n=F(e);if(!Number.isFinite(n))return N();let r=Object.fromEntries(Gt(t).formatToParts(n).map(e=>[e.type,e.value])),i=r.dayPeriod;if(i===void 0)throw Error(`Intl returned no day period for a 12-hour clock`);return`${r.day}-${ht(Number(r.month)-1)}-${r.year}, ${r.hour}:${r.minute} ${i.toUpperCase()}`}var Wt=new Map;function Gt(e){let t=Wt.get(e);return t||(t=new Intl.DateTimeFormat(`en-IN`,{day:`2-digit`,month:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,hour12:!0,timeZone:e}),Wt.set(e,t)),t}function Kt(e=M){return new Intl.DateTimeFormat(`en-IN`,{timeZone:e,timeZoneName:`short`}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??e}var qt={active:`info`,approved:`success`,"at-risk":`warning`,completed:`success`,delivered:`success`,done:`success`,failed:`danger`,"in-progress":`info`,"on-hold":`warning`,open:`info`,overdue:`danger`,paid:`success`,pending:`warning`,rejected:`danger`},Jt=[`primary`,`success`,`warning`,`danger`,`info`,`neutral`];function Yt(e){return Jt.some(t=>t===e)}var Xt={};for(let[e,t]of Object.entries(qt)){if(!Yt(t))throw Error(`statusTones.json: "${e}" has tone "${t}", not one of ${Jt.join(`, `)}`);Xt[e]=t}var Zt=Object.freeze(Xt),Qt=n({CURRENCIES:()=>at,CURRENCY_SYMBOLS:()=>Ue,DATE_PATTERNS:()=>ct,DEFAULT_CURRENCY:()=>`INR`,DURATION_UNITS:()=>st,FORMAT_STYLES:()=>it,IST_OFFSET_MS:()=>Ze,IST_TIME_ZONE:()=>M,MAX_DECIMALS:()=>20,MONEY_UNITS:()=>ot,STATUS_TONES:()=>Zt,compactFormatOf:()=>Ht,configureFormatText:()=>Ye,currencyPrefix:()=>Ge,emptyValueLabel:()=>N,formatCompact:()=>Ft,formatCurrency:()=>Nt,formatDate:()=>I,formatDateTime:()=>Ut,formatDayShort:()=>Bt,formatDuration:()=>Rt,formatNumber:()=>P,formatPercent:()=>It,formatValue:()=>Vt,isCurrencyCode:()=>We,isMoneyUnit:()=>lt,isTimeZone:()=>et,istParts:()=>zt,monthLabel:()=>ht,monthLongLabel:()=>gt,paiseToRupeeText:()=>kt,timeZoneLabel:()=>Kt,toInstant:()=>F,wallToInstant:()=>rt,weekdayLabel:()=>_t,zoneOffsetMs:()=>nt,zoneParts:()=>tt}),$t=n({fillText:()=>R,pluralCategory:()=>hn,pluralText:()=>gn,readText:()=>L,setText:()=>ln,subscribeText:()=>un,textLocale:()=>dn}),en=`en-IN`,tn=/\{([A-Za-z0-9_]+)\}/g,nn=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,rn,an=new Map,on=0,sn=new Set,cn=new Map;function ln(e){let t=new Map,n,r=Object.entries(e);for(let[e,i]of r)if(i!==void 0){if(e===`locale`){if(typeof i!=`string`)throw RangeError(`Text locale must be a BCP 47 tag string.`);n=i}else{if(!_n(i))throw RangeError(`Text ${e} must be an object of string keys.`);t.set(e,vn(e,i))}}Ye(t.get(`formatters`)??{}),rn=n,an=t,on+=1;for(let e of Array.from(sn))e()}function L(e,t){let n=an.get(e);if(n===void 0)return t;let r=cn.get(e);if(r!==void 0&&r.version===on&&r.english===t&&bn(r.merged,t))return r.merged;let i=yn(e,n,t);return cn.set(e,{version:on,english:t,merged:i}),i}function un(e){return sn.add(e),()=>{sn.delete(e)}}function dn(){return rn??en}var fn=e=>e===1?`one`:`other`,pn=e=>Math.trunc(Math.abs(e))===0||e===1?`one`:`other`,mn={en:fn,ta:fn,te:fn,ml:fn,mr:fn,ne:fn,or:fn,ur:fn,hi:pn,bn:pn,gu:pn,kn:pn,as:pn,pa:pn};function hn(e,t){let n=e.split(/[-_]/)[0]?.toLowerCase()??``,r=nn(mn,n)?mn[n]:void 0;if(r===void 0)throw RangeError(`No plural rule for locale "${e}". Supported languages: ${Object.keys(mn).join(`, `)}.`);return r(t)}function R(e,t){return e.replace(tn,(e,n)=>nn(t,n)?String(t[n]):e)}function gn(e,t,n,r){let i=`${t}Other`;if(!nn(e,i))throw RangeError(`Plural text ${t} has no ${i} key; every plural needs its Other form.`);let a=hn(dn(),n),o=`${t}${a.charAt(0).toUpperCase()}${a.slice(1)}`,s=e[nn(e,o)?o:i];if(s===void 0)throw RangeError(`Plural text ${t} has no ${o} key.`);return R(s,{count:n,...r})}function _n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function vn(e,t){let n={};for(let[r,i]of Object.entries(t)){if(typeof i!=`string`)throw RangeError(`Text ${e}.${r} must be a string.`);n[r]=i}return n}function yn(e,t,n){let r={};for(let[i,a]of Object.entries(t)){let t=nn(n,i)?n[i]:void 0;if(t===void 0)throw RangeError(`Text ${e}.${i} is not a key of the English text. Allowed keys: ${Object.keys(n).join(`, `)}.`);let o=xn(t);for(let t of xn(a))if(!o.includes(t))throw RangeError(`Text ${e}.${i} uses {${t}}, which the English text does not have. Allowed placeholders: ${o.length===0?`none`:o.map(e=>`{${e}}`).join(`, `)}.`);r[i]=a}return Object.assign({},n,r)}function bn(e,t){let n=Object.keys(t);return Object.keys(e).length===n.length&&n.every(t=>nn(e,t))}function xn(e){return Array.from(e.matchAll(tn),e=>e[1]??``)}var Sn={closeLabel:`Close`,helpLabel:`Show these shortcuts`,nextItemLabel:`Next item`,openItemLabel:`Open the item`,previousItemLabel:`Previous item`,selectItemLabel:`Select the item`,sheetTitle:`Keyboard shortcuts`},Cn=n({SHORTCUTS_OFF_ATTRIBUTE:()=>Tn,SHORTCUT_EVENT:()=>Dn,SHORTCUT_SCOPE_ATTRIBUTE:()=>En,ariaKeyShortcuts:()=>zn,inShortcutScope:()=>Un,isTypingTarget:()=>Bn,listKeys:()=>kn,moveFocus:()=>Gn,runShortcut:()=>Wn,selectKey:()=>An,shortcutKey:()=>Rn,shortcutName:()=>Ln,shortcutText:()=>On,shortcutsOff:()=>Hn}),wn=()=>L(`shortcutKeys`,Sn),Tn=`data-wui-shortcuts`,En=`data-shortcut-scope`,Dn=`wui:shortcut`,On=()=>({title:wn().sheetTitle,close:wn().closeLabel,help:wn().helpLabel}),kn=()=>[{key:`J`,label:wn().nextItemLabel},{key:`K`,label:wn().previousItemLabel},{key:`Enter`,label:wn().openItemLabel}],An=()=>({key:`X`,label:wn().selectItemLabel}),jn={"/":`slash`,"?":`help`,Escape:`esc`,Esc:`esc`,Enter:`enter`},Mn={esc:`Esc`,escape:`Esc`,enter:`Enter`,slash:`/`,help:`?`},Nn={esc:`Escape`,ctrl:`Control`,cmd:`Meta`,option:`Alt`,opt:`Alt`},Pn=new Set([`checkbox`,`radio`,`button`,`submit`,`reset`,`range`,`color`,`file`,`image`]),Fn=new Set([`textbox`,`searchbox`,`combobox`]),In=`a[href], button, summary, input, select, textarea, [role="button"], [role="link"], [role="menuitem"], [role="option"], [role="tab"], [role="checkbox"], [role="switch"]`;function Ln(e){if(!e||e.ctrlKey||e.metaKey||e.altKey)return null;let t=e.key;return typeof t!=`string`||!t?null:jn[t]?jn[t]:t.length===1&&t.trim()?t.toLowerCase():null}function Rn(e){let t=String(e??``).trim();return t.length===1?t.toUpperCase():Mn[t.toLowerCase()]??t}function zn(e){return String(e??``).trim().split(/\s+/).filter(Boolean).map(e=>Nn[e.toLowerCase()]??(e.length===1?e.toUpperCase():e)).join(`+`)}function Bn(e){if(!e||!Vn(e))return!1;if(e instanceof HTMLElement&&e.isContentEditable||e.closest?.(`[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]`)||e.tagName===`TEXTAREA`||e.tagName===`SELECT`)return!0;if(e.tagName===`INPUT`){let t=e instanceof HTMLInputElement&&e.type?e.type:`text`;return!Pn.has(t.toLowerCase())}return Fn.has(e.getAttribute?.(`role`))}function Vn(e){return e.nodeType===1}function Hn(e=typeof document>`u`?null:document){return e?.documentElement?.getAttribute(Tn)===`off`}function Un(e,t){if(!t||e&&t.contains(e))return!0;let n=t.ownerDocument;return(!e||e===n.body||e===n.documentElement)&&n.querySelector(`[data-shortcut-scope]`)===t}function Wn(e,t,n=null){let r=e.target instanceof Node?e.target:null;if(!t||e.defaultPrevented||Hn(r?.ownerDocument??void 0))return!1;let i=Ln(e);if(!i||!Un(r,n)||Bn(r))return!1;let a=t[i]??(i.length===1?t[i.toUpperCase()]:void 0);return typeof a!=`function`||i===`enter`&&r instanceof Element&&r.closest(In)?!1:(e.preventDefault(),a(e),!0)}function Gn(e,t){let n=e[0]?.ownerDocument;if(!n)return null;let r=n.activeElement,i=e.findIndex(e=>e===r||e.contains(r));if(i<0&&r&&r!==n.body){let t=r.closest?.(`li, tr`);t&&(i=e.findIndex(e=>t.contains(e)))}i<0&&(i=e.findIndex(e=>e.getAttribute(`aria-current`)===`true`));let a=A(e[i<0?t>0?0:e.length-1:Math.min(e.length-1,Math.max(0,i+t))],`moveFocus: no item at the clamped index`);return a.focus(),a.scrollIntoView?.({block:`nearest`}),a}function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Kn(e)}function qn(e,t){if(Kn(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Kn(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Jn(e){var t=qn(e,`string`);return Kn(t)==`symbol`?t:t+``}function z(e,t,n){return(t=Jn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yn=2,Xn=`wui-filter-popover-pinned`,Zn=`.wui-filter-popover-trigger`,Qn=`.wui-filter-popover-panel`,$n=`.wui-filter-popover-head`,er=`input:not([type]),input[type="text"],input[type="search"]`,tr=`a[href],button:not([disabled]),input:not([disabled]):not([type='hidden']),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex='-1'])`;function nr(){try{return sessionStorage.getItem(Xn)===`1`}catch{return!1}}function rr(e){try{e?sessionStorage.setItem(Xn,`1`):sessionStorage.removeItem(Xn)}catch(e){if(!(e instanceof DOMException))throw e}}function ir(e){if(e===null||e instanceof Node)return e;throw TypeError(`event target is not a node`)}function ar(e,t){let n=e?.querySelector(t)??null;return n instanceof HTMLElement?n:null}var or=class extends s{constructor(){super(),z(this,`_doc`,void 0),z(this,`_timer`,void 0),z(this,`_sticky`,void 0),z(this,`_closingByCode`,void 0),z(this,`_inside`,void 0),z(this,`_pendingSubmit`,void 0),z(this,`_onEnter`,void 0),z(this,`_onLeave`,void 0),z(this,`_onClick`,void 0),z(this,`_onChange`,void 0),z(this,`_onListClose`,void 0),z(this,`_onFocusOut`,void 0),z(this,`_onKeyDown`,void 0),z(this,`_onShortcut`,void 0),this._doc=null,this._timer=null,this._sticky=!1,this._closingByCode=!1,this._inside=!1,this._pendingSubmit=!1,this._onEnter=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!0,this._schedule(!0))},this._onLeave=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!1,this._schedule(!1))},this._onClick=e=>{this._trigger?.contains(ir(e.target))&&(this._clear(),this.isOpen&&this._sticky?this._close(!0):this._open(!0,e.detail===0))},this._onChange=e=>{let t=this._pin;if(t&&e.target===t){rr(t.checked),t.checked?this._clear():this._schedule(!1);return}let n=e.target;if(n instanceof Element&&n.closest(`wui-select[mode="multiple"], wui-select[mode="tag"]`)?.querySelector(`[aria-expanded="true"]`)){this._pendingSubmit=!0;return}let r=this.closest(`form.wui-filter-form`);r instanceof HTMLFormElement&&r.requestSubmit()},this._onListClose=()=>{if(!this._pendingSubmit)return;this._pendingSubmit=!1;let e=this.closest(`form.wui-filter-form`);e instanceof HTMLFormElement&&e.requestSubmit()},this._onFocusOut=e=>{this.contains(ir(e.relatedTarget))||this._schedule(!1)},this._onKeyDown=e=>{let t=e.target;if(e.key!==`Enter`||!(t instanceof Element)||!this._panel?.contains(t)||!t.matches(er))return;e.preventDefault();let n=this.closest(`form.wui-filter-form`);n instanceof HTMLFormElement&&n.requestSubmit()},this._onShortcut=e=>{this.ownerDocument.querySelector(`wui-filter-popover`)===this&&Wn(e,{f:()=>this._open(!0,!0)})}}get isOpen(){let e=this._panel;return e?k(e):!1}connectedCallback(){this._doc=this.ownerDocument,this.addEventListener(`pointerenter`,this._onEnter),this.addEventListener(`pointerleave`,this._onLeave),this.addEventListener(`click`,this._onClick),this.addEventListener(`change`,this._onChange),this.addEventListener(`focusout`,this._onFocusOut),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`wui-select:close`,this._onListClose),this._doc.addEventListener(`keydown`,this._onShortcut),nr()&&this._pin&&(this._pin.checked=!0,this._open(!1,!1))}disconnectedCallback(){this._clear();let e=this._panel;e&&this._closeByCode(e),this.removeEventListener(`pointerenter`,this._onEnter),this.removeEventListener(`pointerleave`,this._onLeave),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`change`,this._onChange),this.removeEventListener(`focusout`,this._onFocusOut),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`wui-select:close`,this._onListClose),this._doc?.removeEventListener(`keydown`,this._onShortcut),this._doc=null}get _trigger(){return ar(this,Zn)}get _panel(){return ar(this,Qn)}get _pin(){let e=this.querySelector(`${$n} input[type="checkbox"]`);return e instanceof HTMLInputElement?e:null}get _pinned(){return this._pin?.checked===!0}_clear(){this._timer!==null&&clearTimeout(this._timer),this._timer=null}_schedule(e){if(this._clear(),e){if(this.isOpen)return;this._timer=setTimeout(()=>{this._timer=null,this._open(!1,!1)},150)}else this.isOpen&&!this._stayOpen()&&(this._timer=setTimeout(()=>{this._timer=null,this._stayOpen()||this._close(!1)},400))}_stayOpen(){let e=this._panel;return e?this._pinned||this._inside||e.contains(this.ownerDocument.activeElement)||e.querySelector(`[aria-expanded="true"]`)!==null:!1}_open(e,t){this._clear();let n=this._panel,r=this._trigger;n&&r&&(this.isOpen?e&&(this._sticky=!0):(r.setAttribute(`aria-expanded`,`true`),this._sticky=e,je(r,n,{mode:`auto`,clampHeight:!0,alignEnd:!0,onClosed:()=>this._closed()})),t&&(ar(n.querySelector(`.wui-filter-popover-grid`),tr)??ar(n,tr))?.focus())}_close(e){this._clear();let t=this._panel;if(!t||!this.isOpen)return;let n=t.contains(this.ownerDocument.activeElement);this._closeByCode(t),e&&n&&this._trigger?.focus()}_closeByCode(e){this._closingByCode=!0;try{Me(e)}finally{this._closingByCode=!1}}_closed(){if(this._trigger?.setAttribute(`aria-expanded`,`false`),this._sticky=!1,this._closingByCode)return;let e=this._trigger,t=this._panel,n=this.ownerDocument.activeElement;e&&(n===this.ownerDocument.body||t?.contains(n))&&e.focus()}};function sr(){i(`wui-filter-popover`,or)}var cr=class extends s{static get observedAttributes(){return[`open`,`static`,`no-escape`]}constructor(){super(),z(this,`_doc`,void 0),z(this,`_release`,void 0),z(this,`_opener`,void 0),z(this,`_returnTo`,void 0),z(this,`_session`,void 0),z(this,`_closing`,void 0),z(this,`_reopen`,void 0),this._doc=null,this._release=null,this._opener=null,this._returnTo=null,this._session=0,this._closing=!1,this._reopen=!1}connectedCallback(){this._doc=this.ownerDocument,Re(this._doc),this.hasAttribute(`open`)&&this._open()}disconnectedCallback(){this._session++,this._closing=!1,this._reopen=!1;let e=this.querySelector(`dialog`);this._release&&e instanceof HTMLDialogElement&&e.close(),this._releaseDialog(),this._opener=null,this._returnTo=null,this._doc=null}attributeChangedCallback(e){this._doc&&e===`open`&&(this.hasAttribute(`open`)?this._open():this._close())}get isOpen(){return this.hasAttribute(`open`)}show(e){e&&(this._opener=e),this.setAttribute(`open`,``)}hide(){this.removeAttribute(`open`)}_open(){if(this._closing){this._reopen=!0;return}if(this._release)return;let e=++this._session,t=this._opener;if(this._returnTo=t,this._opener=null,this.dispatchEvent(new CustomEvent(`wui-modal-open`,{bubbles:!0,detail:{trigger:t}})),!this.isOpen)return;let n=this._dialog();this._release=ke(n,{escape:!this.hasAttribute(`no-escape`),backdrop:this.hasAttribute(`static`)?null:this._card(n),focus:`first-control`,onRequestClose:e=>this._requestClose(e)}),this._settle(e,n)}_close(){if(this._closing){this._reopen=!1;return}if(!this._release)return;this._closing=!0;let e=this._session,t=this._dialog();Ae(t).then(()=>{e===this._session&&(this._closing=!1,this._releaseDialog(),Ee(this._returnTo,t),this._returnTo=null,this.dispatchEvent(new CustomEvent(`wui-modal-closed`,{bubbles:!0})),this._reopen&&(this._reopen=!1,this.isOpen&&this._open()))})}_settle(e,t){let n=t.getAnimations?.()??[];n.length?Promise.allSettled(n.map(e=>e.finished)).then(()=>{e===this._session&&this.isOpen&&this._announceOpened()}):this._announceOpened()}_announceOpened(){this.dispatchEvent(new CustomEvent(`wui-modal-opened`,{bubbles:!0}))}_requestClose(e){this.dispatchEvent(new CustomEvent(`wui-modal-close`,{bubbles:!0,cancelable:!0,detail:{reason:e}}))&&this.removeAttribute(`open`)}_releaseDialog(){let e=this._release;this._release=null,e?.()}_card(e){let t=e.querySelector(`.modal-content.wui-modal`);if(!(t instanceof HTMLElement))throw TypeError(`wui-modal has no .modal-content.wui-modal`);return t}_dialog(){let e=this.querySelector(`dialog`);if(!(e instanceof HTMLDialogElement))throw TypeError(`wui-modal has no <dialog>`);return e}},lr=n({avatarNode:()=>dr,safeImageUrl:()=>ur}),ur=e=>{let t=String(e??``).trim();return/^(https?:)?\/\//i.test(t)||/^\/(?!\/)/.test(t)||/^data:image\/(png|jpe?g|gif|webp|avif);/i.test(t)?t:``};function dr(e,t=`wui-opt-avatar`){let n=ur(e.avatar);return!n&&!e.initials?null:j(`span`,{class:`avatar ${t}`,"aria-hidden":`true`},j(`span`,{class:`avatar-face`},e.initials??``),n?j(`img`,{class:`avatar-img`,src:n,alt:``}):null)}var fr=n({devError:()=>mr,devWarn:()=>pr});function pr(e,...t){console.warn(e,...t)}function mr(e,...t){console.error(e,...t)}var hr=n({BUSY_CLASS:()=>gr,isInert:()=>B,isReadOnly:()=>_r,syncFieldState:()=>vr}),gr=`wui-field-busy`,_r=e=>e.hasAttribute(`readonly`),B=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`readonly`)||e.hasAttribute(`loading`);function vr(e,t){let n=e.hasAttribute(`loading`);n?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),t&&(t.classList.toggle(gr,n),_r(e)?t.setAttribute(`aria-readonly`,`true`):t.removeAttribute(`aria-readonly`))}var yr=n({syncFormMirror:()=>Cr,syncFormMirrors:()=>wr}),br=`data-wui-mirror`;function xr(e,t,n,r){t.name=n,t.value=r==null?``:String(r);for(let n of[...t.attributes])n.name.startsWith(`data-val`)&&!e.hasAttribute(n.name)&&t.removeAttribute(n.name);for(let n of e.attributes)n.name.startsWith(`data-val`)&&t.setAttribute(n.name,n.value);t.disabled=e.hasAttribute(`disabled`)}function Sr(e){let t=document.createElement(`input`);return t.type=`hidden`,t.setAttribute(br,``),e.appendChild(t),t}function Cr(e,t){let n=e.getAttribute(`name`)??``,r=e.querySelector(`:scope > input[${br}]`),i=r instanceof HTMLInputElement?r:null;n?(i||=Sr(e),xr(e,i,n,t)):i?.remove()}function wr(e,t){let n=e.getAttribute(`name`)??``,r=[...e.querySelectorAll(`:scope > input[${br}]`)].filter(e=>e instanceof HTMLInputElement),i=[...e.attributes].some(e=>e.name.startsWith(`data-val`)),a=n?t.length>0?t:i?[``]:[]:[];for(let e of r.splice(a.length))e.remove();a.forEach((t,i)=>{xr(e,r[i]??Sr(e),n,t)})}var Tr=n({hasOwn:()=>Er}),Er=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,Dr=[`a`,`b`,`c`,`d`,`e`,`f`,`g`,`h`,`i`,`j`,`k`,`l`,`m`,`n`,`o`,`p`,`q`,`r`,`s`,`t`,`u`,`v`,`w`,`x`,`z`],Or=Object.freeze({serverActions:`[data-wui-confirm], [data-wui-post], form[data-wui-post-form], [data-wui-row-action], [data-wui-auto-submit]`,unsavedChanges:`form[data-wui-unsaved]`,remoteModal:`[data-wui-modal], [data-wui-drawer], [data-wui-pane], wui-modal[data-wui-remote-url]`,serverTable:`[data-wui-server]`,drawerDiscard:`wui-drawer[confirm-discard], wui-modal form`}),kr=`[data-app-shell]`,Ar=Object.freeze({carousel:{entries:[`elements/carousel.ts`],tags:[`wui-carousel`]},"data-table":{entries:[`elements/data-table.ts`],tags:[`wui-data-table`]},dock:{entries:[`elements/dock.ts`],tags:[`wui-dock`]},"hover-card":{entries:[`elements/hover-card.ts`],tags:[`wui-hover-card`]},"navigation-menu":{entries:[`elements/navigation-menu.ts`],tags:[`wui-navigation-menu`]},"notification-center":{entries:[`elements/notification-center.ts`],tags:[`wui-notification-center`]},"onboarding-checklist":{entries:[`elements/onboarding-checklist.ts`],tags:[`wui-onboarding-checklist`]},otp:{entries:[`elements/otp.ts`],tags:[`wui-otp`]},overflow:{entries:[`elements/overflow.ts`],tags:[`wui-overflow`]},rating:{entries:[`elements/rating.ts`],tags:[`wui-rating`]},"record-pager":{entries:[`elements/record-pager.ts`],tags:[`wui-record-pager`]},"relative-time":{entries:[`elements/relative-time.ts`],tags:[`wui-relative-time`]},shortcuts:{entries:[`elements/shortcuts.ts`],tags:[`wui-shortcuts`]},"show-more":{entries:[`elements/show-more.ts`],tags:[`wui-show-more`]},"calendar-views":{entries:[`elements/calendar-views.ts`],tags:[`wui-calendar-views`]},truncate:{entries:[`elements/truncate.ts`],tags:[`wui-truncate`]},"whats-new":{entries:[`elements/whats-new.ts`],tags:[`wui-whats-new`]},"offline-banner":{entries:[`elements/offline-banner.ts`],tags:[`wui-offline-banner`]},"code-block":{entries:[`elements/code-block.ts`],tags:[`wui-code-block`]},"command-palette":{entries:[`elements/command-palette.ts`],tags:[`wui-command-palette`]},"comment-thread":{entries:[`elements/comment-thread.ts`],tags:[`wui-mention-input`,`wui-comment-thread`]},"consent-banner":{entries:[`elements/consent-banner.ts`],tags:[`wui-consent-banner`]},"context-menu":{entries:[`elements/context-menu.ts`],tags:[`wui-context-menu`]},"date-range":{entries:[`elements/date-range.ts`],tags:[`wui-date-range`]},"date-time":{entries:[`elements/date-time.ts`],tags:[`wui-date-time`]},datepicker:{entries:[`elements/datepicker.ts`],tags:[`wui-datepicker`]},"mini-calendar":{entries:[`elements/mini-calendar.ts`],tags:[`wui-mini-calendar`]},drawer:{entries:[`elements/drawer.ts`],tags:[`wui-drawer`]},dropdown:{entries:[`elements/dropdown.ts`],tags:[`wui-dropdown`]},"entry-grid":{entries:[`elements/entry-grid.ts`],tags:[`wui-entry-grid`]},gantt:{entries:[`elements/gantt.ts`],tags:[`wui-gantt`]},"image-crop":{entries:[`elements/image-crop.ts`],tags:[`wui-image-crop`]},"inline-edit":{entries:[`elements/inline-edit.ts`],tags:[`wui-inline-edit`]},kanban:{entries:[`elements/kanban.ts`],tags:[`wui-kanban`]},"dashboard-grid":{entries:[`elements/dashboard-grid.ts`],tags:[`wui-dashboard-grid`]},"lead-popup":{entries:[`elements/lead-popup.ts`],tags:[`wui-lead-popup`]},lightbox:{entries:[`elements/lightbox.ts`],tags:[`wui-lightbox`]},"org-tree":{entries:[`elements/org-tree.ts`],tags:[`wui-org-tree`]},markdown:{entries:[`elements/markdown.ts`],tags:[`wui-markdown`]},phone:{entries:[`elements/phone.ts`,`global/parts/select-country.ts`],tags:[`wui-phone`]},popover:{entries:[`elements/popover.ts`],tags:[`wui-popover`]},"saved-views":{entries:[`elements/saved-views.ts`],tags:[`wui-saved-views`]},glyphs:{entries:[`global/parts/glyphs.ts`],tags:[]},...Object.fromEntries(Dr.map(e=>[`glyphs-${e}`,{entries:[`global/parts/glyphs-${e}.g.ts`],tags:[]}])),"select-chips":{entries:[`global/parts/select-chips.ts`],tags:[]},"select-recents":{entries:[`global/parts/select-recents.ts`],tags:[]},"select-search":{entries:[`global/parts/select-search.ts`],tags:[]},"select-window":{entries:[`global/parts/select-window.ts`],tags:[]},"table-export":{entries:[`global/parts/table-export.ts`],tags:[]},server:{entries:[`global/parts/server.ts`],tags:[],markers:Object.values(Or).join(`, `)},shell:{entries:[`global/parts/shell.ts`],tags:[],markers:kr},slider:{entries:[`elements/slider.ts`],tags:[`wui-slider`]},sortable:{entries:[`elements/sortable.ts`],tags:[`wui-sortable`]},"status-icon":{entries:[`elements/status-icon.ts`],tags:[`wui-status-icon`]},timepicker:{entries:[`elements/timepicker.ts`],tags:[`wui-timepicker`]},tour:{entries:[`elements/tour.ts`],tags:[`wui-tour`]},tree:{entries:[`elements/tree.ts`],tags:[`wui-tree`]},"tree-picker":{entries:[`elements/tree-picker.ts`],tags:[`wui-tree-picker`]},wizard:{entries:[`elements/wizard.ts`],tags:[`wui-wizard-step`,`wui-wizard`]},chart:{file:`ui-chart.global.js`,tags:[`wui-chart`],selfContained:!0},calendar:{file:`ui-calendar.global.js`,tags:[`wui-calendar`],selfContained:!0},"rich-text":{file:`ui-rich-text.global.js`,tags:[`wui-rich-text`],selfContained:!0},"file-viewer":{file:`ui-file-viewer.global.js`,tags:[`wui-file-viewer`],selfContained:!0}});Object.freeze({anchorOverlay:`anchorOverlay.ts`,avatarNode:`avatarNode.ts`,buttonClass:`buttonClass.ts`,calendarMath:`calendarMath.ts`,copyText:`copyText.ts`,dataTable:`dataTable.ts`,dataTableText:`text/web/dataTable.g.ts`,datePickerText:`text/web/datePicker.g.ts`,defineElement:`defineElement.ts`,devWarn:`devWarn.ts`,dom:`dom.ts`,drawerText:`text/web/drawer.g.ts`,elementBase:`elementBase.ts`,fieldState:`fieldState.ts`,flash:`server/flash.ts`,formatters:`../../markdown-core/src/format/index.ts`,formMirror:`formMirror.ts`,glyphs:`global/glyphs.ts`,hasOwn:`hasOwn.ts`,httpFailureText:`text/web/httpFailure.g.ts`,iconGlyphs:`iconGlyphs.g.ts`,imeSafeEnter:`imeSafeEnter.ts`,isDrawn:`isDrawn.ts`,listboxKeyNav:`listboxKeyNav.ts`,loader:`global/loader.ts`,mentionText:`mentionText.ts`,menuKeyNav:`menuKeyNav.ts`,nativeOverlay:`nativeOverlay.ts`,notificationCentreText:`text/web/notificationCentre.g.ts`,notificationDays:`notificationDays.ts`,optionLabel:`optionLabel.ts`,partRegistry:`select/partRegistry.ts`,postError:`server/postError.ts`,refreshAfter:`server/refreshAfter.ts`,regions:`server/regions.ts`,relativeTime:`relativeTime.ts`,rtl:`rtl.ts`,selectList:`select/list.ts`,selectRemote:`select/remote.ts`,selectText:`text/web/select.g.ts`,selectWindow:`select/window.ts`,server:`global/server.ts`,serverHtml:`server/serverHtml.ts`,serverTableRegistry:`server/serverTableRegistry.ts`,shellRegistry:`server/shellRegistry.ts`,shortcutKeys:`shortcutKeys.ts`,stepperHeader:`stepperHeader.ts`,svgNodes:`svgNodes.ts`,tableExport:`global/tableExport.ts`,tableSelect:`tableSelect.ts`,textMatch:`textMatch.ts`,textStore:`text/textStore.ts`,toastAction:`server/toastAction.ts`,toastHeader:`server/toastHeader.ts`,tooltips:`tooltips.ts`,wuiHost:`server/wuiHost.ts`,wuiHttp:`server/wuiHttp.ts`,wuiUpload:`server/wuiUpload.ts`,WuiSelect:`WuiSelect.ts`,zone:`zone.ts`});var jr=`ui-elements/`;function Mr(e){let t=Ar[e];if(t===void 0)throw Error(`[webority-ui] No on-demand element chunk is named ${e}.`);return t}function Nr(e){let t=Mr(e);if(!t.selfContained)return`${jr+e}.global.js`;if(t.file===void 0)throw Error(`[webority-ui] The self-contained element chunk ${e} names no file.`);return t.file}var Pr=n({CHUNK_DIR:()=>jr,CHUNK_RETRY_MS:()=>Lr,ELEMENTS_DEFINED_EVENT:()=>Fr,ELEMENTS_LOAD_ERROR_EVENT:()=>Ir,assetUrl:()=>ti,chunkReadyCheckKeys:()=>ni,loadChunk:()=>H,registerChunkReadyCheck:()=>V,startElementLoader:()=>Qr,stopElementLoader:()=>$r,whenElementsReady:()=>ei}),Fr=`wui-elements:defined`,Ir=`wui-elements:load-error`,Lr=1e3,Rr={"ui-elements/carousel.global.js":`525be1f35356`,"ui-elements/data-table.global.js":`056067850434`,"ui-elements/dock.global.js":`bb7b0e213322`,"ui-elements/hover-card.global.js":`dcbe8c14e2aa`,"ui-elements/navigation-menu.global.js":`3ac20a61d2e7`,"ui-elements/notification-center.global.js":`eea09291253a`,"ui-elements/onboarding-checklist.global.js":`642b20bf12cc`,"ui-elements/otp.global.js":`1410a002cd33`,"ui-elements/overflow.global.js":`2aa823629a6e`,"ui-elements/rating.global.js":`d351ada0e8c5`,"ui-elements/record-pager.global.js":`d69c8d6cc20f`,"ui-elements/relative-time.global.js":`e30b5a6314f1`,"ui-elements/shortcuts.global.js":`e9b7c28830cb`,"ui-elements/show-more.global.js":`996e2d42810c`,"ui-elements/calendar-views.global.js":`0e5cace11070`,"ui-elements/truncate.global.js":`0e19ac576dc6`,"ui-elements/whats-new.global.js":`54b035044c2b`,"ui-elements/offline-banner.global.js":`4fe0b86d8fc8`,"ui-elements/code-block.global.js":`f571ffbef0d7`,"ui-elements/command-palette.global.js":`a547512663e4`,"ui-elements/comment-thread.global.js":`029aa9d9147c`,"ui-elements/consent-banner.global.js":`7905ea4ebbc1`,"ui-elements/context-menu.global.js":`bb8cdb0d905f`,"ui-elements/date-range.global.js":`a93b672ea233`,"ui-elements/date-time.global.js":`b0ba38f20ffb`,"ui-elements/datepicker.global.js":`d21497b9f6b1`,"ui-elements/mini-calendar.global.js":`53823cbc4023`,"ui-elements/drawer.global.js":`a85a3d70f6eb`,"ui-elements/dropdown.global.js":`ca559e20746f`,"ui-elements/entry-grid.global.js":`f1f728f435c7`,"ui-elements/gantt.global.js":`6eef4ca6f08c`,"ui-elements/image-crop.global.js":`f8bfe9d10d53`,"ui-elements/inline-edit.global.js":`e86ea1551172`,"ui-elements/kanban.global.js":`d3ebe8c55386`,"ui-elements/dashboard-grid.global.js":`20a1c9d07eea`,"ui-elements/lead-popup.global.js":`28079bf90f77`,"ui-elements/lightbox.global.js":`7684df815ec9`,"ui-elements/org-tree.global.js":`23cd3628b156`,"ui-elements/markdown.global.js":`9ece98ab6724`,"ui-elements/phone.global.js":`f05732705014`,"ui-elements/popover.global.js":`385138f795b9`,"ui-elements/saved-views.global.js":`66693a6a9013`,"ui-elements/glyphs.global.js":`4cdaff138cd8`,"ui-elements/glyphs-a.global.js":`fd55ac5e69bb`,"ui-elements/glyphs-b.global.js":`9d04ce1c6e6b`,"ui-elements/glyphs-c.global.js":`16209398e964`,"ui-elements/glyphs-d.global.js":`9f1e83fdd8c4`,"ui-elements/glyphs-e.global.js":`ba7a2697acc8`,"ui-elements/glyphs-f.global.js":`c0a78d8e5e7f`,"ui-elements/glyphs-g.global.js":`853f3d6a5348`,"ui-elements/glyphs-h.global.js":`5ccb42c3255e`,"ui-elements/glyphs-i.global.js":`0eef21684f68`,"ui-elements/glyphs-j.global.js":`61bea234f911`,"ui-elements/glyphs-k.global.js":`bf69db1112d1`,"ui-elements/glyphs-l.global.js":`4a8e37efd086`,"ui-elements/glyphs-m.global.js":`c4ad5ecbef47`,"ui-elements/glyphs-n.global.js":`ef5a550486aa`,"ui-elements/glyphs-o.global.js":`ade394e74aae`,"ui-elements/glyphs-p.global.js":`a527ba2bba0e`,"ui-elements/glyphs-q.global.js":`f01b44a5858e`,"ui-elements/glyphs-r.global.js":`7f6a0f75120f`,"ui-elements/glyphs-s.global.js":`deec7c1797cd`,"ui-elements/glyphs-t.global.js":`40dc0801f30e`,"ui-elements/glyphs-u.global.js":`aef884779a87`,"ui-elements/glyphs-v.global.js":`ce755720d16d`,"ui-elements/glyphs-w.global.js":`588cda1e1f97`,"ui-elements/glyphs-x.global.js":`5357fcbe0e1c`,"ui-elements/glyphs-z.global.js":`062ecdebbc4d`,"ui-elements/select-chips.global.js":`a676b1058299`,"ui-elements/select-recents.global.js":`3499a663f88e`,"ui-elements/select-search.global.js":`1f2a4920686e`,"ui-elements/select-window.global.js":`47daabac0746`,"ui-elements/table-export.global.js":`c1042c968cee`,"ui-elements/server.global.js":`582ac686189a`,"ui-elements/shell.global.js":`d688c6d54d1a`,"ui-elements/slider.global.js":`c318e800b376`,"ui-elements/sortable.global.js":`bc21d6b174a6`,"ui-elements/status-icon.global.js":`3765cf4d8810`,"ui-elements/timepicker.global.js":`955a90e2e0df`,"ui-elements/tour.global.js":`190a4338662e`,"ui-elements/tree.global.js":`adf47a0c56c1`,"ui-elements/tree-picker.global.js":`4f3da7b8b5da`,"ui-elements/wizard.global.js":`151b1329b2b3`,"ui-chart.global.js":`9d0b1d24796c`,"ui-calendar.global.js":`1f8681fedb97`,"ui-rich-text.global.js":`64dcebd2efc3`,"ui-file-viewer.global.js":`fc3717f88112`,"ui-phone.global.js":`c646775bc1d1`},zr=new Map;for(let[e,t]of Object.entries(Ar))for(let n of t.tags)zr.set(n,e);var Br=[...zr.keys()].join(`,`),Vr=[];for(let[e,t]of Object.entries(Ar))t.markers!==void 0&&Vr.push([e,t.markers]);var Hr=[...new Set(Vr.flatMap(([,e])=>[...e.matchAll(/\[([a-z-]+)\]/g)]).flatMap(e=>e[1]===void 0?[]:[e[1]]))],Ur=null,Wr=``,Gr=!1,Kr=null,qr=new Map,Jr=new Map,Yr=`The file ran but did not hand over its modules; see the error above.`,Xr=`The file has no ready check, so the loader cannot tell whether it ran.`;function Zr(){let e=document.currentScript;return e instanceof HTMLScriptElement?e:null}function Qr(e=Zr()){Gr||(Gr=!0,Ur=e?.src?e.src:null,Wr=e?.nonce||``,oi(document),Kr=new MutationObserver(e=>{for(let t of e)if(t.type===`attributes`)t.target instanceof Element&&oi(t.target);else for(let e of t.addedNodes)e instanceof Element&&oi(e)}),Kr.observe(document.documentElement,{childList:!0,subtree:!0,...Hr.length>0?{attributes:!0,attributeFilter:Hr}:{}}))}function $r(){Kr?.disconnect(),Kr=null,Gr=!1,Ur=null,Wr=``,qr.clear()}function ei(e=document){return Promise.all([...ai(e)].map(e=>H(e))).then(()=>void 0)}function ti(e){if(Ur===null)throw Error(`The on-demand element files have no address to load from.`);let t=new URL(e,Ur);return t.search=Er(Rr,e)?`?v=${Rr[e]}`:``,t.href}function V(e,t){Mr(e),Jr.set(e,t)}function ni(){return[...Jr.keys()]}function H(e){let t=qr.get(e)?.promise??null;if(t!==null)return t;let n=Mr(e),{tags:r}=n,i=Nr(e),a=()=>Promise.all(r.map(e=>customElements.whenDefined(e))),o={status:`loading`,promise:null},s=new Promise((t,s)=>{let c=``,l=()=>{Kr&&Object.keys(Ar).every(e=>qr.get(e)?.status===`loaded`||qr.get(e)?.status===`failed`)&&Kr.disconnect()},u=()=>{o.status=`loaded`,l(),document.dispatchEvent(new CustomEvent(Fr,{detail:{chunk:e,tags:r}})),t()},d=t=>{o.status=`failed`,l(),mr(`[webority-ui] Could not load ${c} for ${r.length?r.join(`, `):e}.${t?` ${t.message}`:``}`),document.dispatchEvent(new CustomEvent(Ir,{detail:{chunk:e,url:c,tags:r}})),s(Error(`[webority-ui] The ${e} elements failed to load.`))},f=(t,i)=>{let o=document.createElement(`script`);o.src=t,o.async=!1,Wr&&(o.nonce=Wr),o.addEventListener(`load`,()=>{if(!n.selfContained&&!r.every(e=>customElements.get(e))){d(Error(`The file ran but did not define its elements; see the error above.`));return}if(!n.selfContained&&r.length===0&&!Jr.has(e)){d(Error(Xr));return}let t=Jr.get(e);t!==void 0&&!t()?d(Error(Yr)):a().then(u)}),o.addEventListener(`error`,()=>{o.remove(),i?d():setTimeout(()=>f(t,!0),Lr)}),document.head.append(o)},p=[...document.scripts].find(e=>new URL(e.src,location.href).pathname.endsWith(`/${i}`));if(p!==void 0){let t=Jr.get(e);if(r.length>0||t===void 0&&n.selfContained){a().then(u);return}if(t===void 0){d(Error(Xr));return}if(t()){u();return}if(document.readyState===`complete`){d(Error(`The page's own tag for this file ran without handing over its modules.`));return}let i=!1,o=()=>{i||(i=!0,t()?u():d(Error(Yr)))};p.addEventListener(`load`,o),window.addEventListener(`load`,o),p.addEventListener(`error`,()=>{i||(i=!0,d())})}else{try{c=ti(i)}catch(e){d(e instanceof Error?e:void 0);return}f(c,!1)}});return o.promise=s,qr.set(e,o),s}function ri(e){return zr.has(e.localName)&&!customElements.get(e.localName)}function ii(e,t){let n=zr.get(t.localName);n!==void 0&&ri(t)&&e.add(n)}function ai(e){let t=new Set;e instanceof Element&&ii(t,e);for(let n of e.querySelectorAll(Br))ii(t,n);for(let[n,r]of Vr)qr.get(n)?.status!==`loaded`&&(e instanceof Element&&e.matches(r)||e.querySelector(r)!==null)&&t.add(n);return t}function oi(e){for(let t of ai(e))Promise.allSettled([H(t)])}var si=n({svgNodes:()=>li,svgRoot:()=>ui}),ci=`http://www.w3.org/2000/svg`;function li(e){return e.map(di)}function ui(e,t){let n=document.createElementNS(ci,`svg`);return fi(n,e),n.append(...li(t)),n}function di(e){let[t,n,r]=e,i=document.createElementNS(ci,t);return fi(i,n),typeof r==`string`?i.append(document.createTextNode(r)):r&&i.append(...li(r)),i}function fi(e,t){for(let[n,r]of Object.entries(t))r===!0?e.setAttribute(n,``):(typeof r==`string`||typeof r==`number`)&&e.setAttribute(n,String(r))}var pi=`data-wui-glyph-pending`,mi=`svg[${pi}]`,hi=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function gi(e,t,n,r){return{class:n?`wui-icon ${n}`:`wui-icon`,"data-icon":e,[pi]:r?!0:void 0,width:t,height:t,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`}}function _i(e){let t=e[0];return t!==void 0&&t>=`a`&&t<=`z`?t:`0`}function vi(e,t){let n={...e},r=new Map,i=new Set(t.shardKeys),a=new Set,o=new Set,s=!1,c=!1,l=null,u=()=>t.loadCurated===void 0||c;function d(e){return Er(n,e)?n[e]:void 0}function f(e){if(!hi.test(e))return!0;if(!u())return!1;let t=_i(e);return!i.has(t)||o.has(t)}function p(){s||t.loadCurated===void 0||(s=!0,Promise.allSettled([t.loadCurated()]))}function m(e){i.has(e)&&!a.has(e)&&(a.add(e),Promise.allSettled([t.loadShard(e).then(t=>{t!==void 0&&_(t,{shard:e})})]))}function h(e){let t=e instanceof Element&&e.matches(mi)?[e]:[];for(let n of[...t,...e.querySelectorAll(mi)]){let e=n.getAttribute(`data-icon`)??``,t=d(e);t===void 0?f(e)&&n.remove():(n.removeAttribute(pi),n.replaceChildren(...li(t)))}}function g(){l===null&&(l=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof Element&&h(e)}),l.observe(document.documentElement,{childList:!0,subtree:!0}))}function _(e,t){Object.assign(n,e),t===`curated`?c=!0:o.add(t.shard),h(document),g()}function v(e,{size:t=16,className:n=``}={}){let i=d(e);if(i!==void 0){let a=`${e}|${t}|${n}`,o=r.get(a);return o===void 0&&(o=ui(gi(e,t,n,!1),i),r.set(a,o)),Be(o.cloneNode(!0),SVGSVGElement,`glyphNode: ${e} did not clone to an svg`)}return f(e)?null:(p(),m(_i(e)),ui(gi(e,t,n,!0),[]))}return{glyphNode:v,register:_,shardRegistered:e=>o.has(e),curatedRegistered:()=>c}}var yi={add:[[`path`,{d:`M6 12h12M12 18V6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-circle":[[`path`,{d:`M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.2v.1`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-triangle":[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"arrow-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67`}]],"arrow-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M14.43 5.93L20.5 12l-6.07 6.07M3.5 12h16.83`}]],at:[[`path`,{d:`M16 12a4 4 0 1 1-8 0 4 4 0 1 1 8 0M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.5 7.13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],calendar:[[`path`,{d:`M8 2v3M16 2v3M3.5 9.09h17M21 8.5V17c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.695 13.7h.009M15.695 16.7h.009M11.995 13.7h.01M11.995 16.7h.01M8.294 13.7h.01M8.294 16.7h.01`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"calendar-dots":[[`path`,{d:`M8 2v3M16 2v3M16 3.5c3.33.18 5 1.45 5 6.15v6.18c0 4.12-1 6.18-6 6.18H9c-5 0-6-2.06-6-6.18V9.65c0-4.7 1.67-5.96 5-6.15h8ZM20.75 17.6H3.25`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 8.25c-1.23 0-2.27.67-2.27 1.97 0 .62.29 1.09.73 1.39-.61.36-.96.94-.96 1.62 0 1.24.95 2.01 2.5 2.01 1.54 0 2.5-.77 2.5-2.01 0-.68-.35-1.27-.97-1.62.45-.31.73-.77.73-1.39 0-1.3-1.03-1.97-2.26-1.97Zm0 2.84c-.52 0-.9-.31-.9-.8 0-.5.38-.79.9-.79s.9.29.9.79c0 .49-.38.8-.9.8ZM12 14c-.66 0-1.14-.33-1.14-.93 0-.6.48-.92 1.14-.92.66 0 1.14.33 1.14.92 0 .6-.48.93-1.14.93Z`,fill:`currentColor`}]],chart:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.5 18.5c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2s-2 .9-2 2v9a2 2 0 0 0 2 2ZM8.5 18.5c1.1 0 2-.9 2-2V13c0-1.1-.9-2-2-2s-2 .9-2 2v3.5a2 2 0 0 0 2 2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],check:[[`path`,{d:`m5 12.75 4.5 4.5L19 7.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"check-circle":[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m7.75 12 2.83 2.83 5.67-5.66`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"chevron-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95`}]],"chevron-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08`}]],"chevron-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08`}]],"chevron-up":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 15.05L13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52`}]],"chevrons-up-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.01 20.5l-5.02-5.01M9.01 3.5v17M14.99 3.5l5.02 5.01M14.99 20.5v-17`}]],circle:[[`path`,{d:`M11.97 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.23a4.23 4.23 0 1 0 0-8.46 4.23 4.23 0 0 0 0 8.46Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],clock:[[`path`,{d:`M22 12c0 5.52-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2s10 4.48 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m15.71 15.18-3.1-1.85c-.54-.32-.98-1.09-.98-1.72v-4.1`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],code:[[`path`,{d:`M9 13c-.66.33-1.21.82-1.62 1.43-.23.35-.23.79 0 1.14.41.61.96 1.1 1.62 1.43M15.21 13c.66.33 1.21.82 1.62 1.43.23.35.23.79 0 1.14-.41.61-.96 1.1-1.62 1.43`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM2.23 8.01 21.45 8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],comment:[[`path`,{d:`M8.5 19H8c-4 0-6-1-6-6V8c0-4 2-6 6-6h8c4 0 6 2 6 6v5c0 4-2 6-6 6h-.5c-.31 0-.61.15-.8.4l-1.5 2c-.66.88-1.74.88-2.4 0l-1.5-2c-.16-.22-.53-.4-.8-.4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.996 11h.01M11.995 11h.01M7.995 11h.008`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],danger:[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],database:[[`path`,{d:`M18.5 12.65v3.7c0 3.12-2.91 5.65-6.5 5.65s-6.5-2.53-6.5-5.65v-3.7C5.5 15.77 8.41 18 12 18s6.5-2.23 6.5-5.35Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65c0 .91-.25 1.75-.69 2.47C16.74 11.88 14.54 13 12 13c-2.54 0-4.74-1.12-5.81-2.88-.44-.72-.69-1.56-.69-2.47 0-1.56.73-2.97 1.9-3.99C8.58 2.63 10.2 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65v5c0 3.12-2.91 5.35-6.5 5.35s-6.5-2.23-6.5-5.35v-5C5.5 4.53 8.41 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],display:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],document:[[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],download:[[`path`,{d:`M9 11v6l2-2M9 17l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],edit:[[`path`,{d:`m13.26 3.6-8.21 8.69c-.31.33-.61.98-.67 1.43l-.37 3.24c-.13 1.17.71 1.97 1.87 1.77l3.22-.55c.45-.08 1.08-.41 1.39-.75l8.21-8.69c1.42-1.5 2.06-3.21-.15-5.3-2.2-2.07-3.87-1.34-5.29.16Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.89 5.05a6.126 6.126 0 0 0 5.45 5.15M3 22h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],ellipsis:[[`path`,{d:`M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z`,stroke:`currentColor`,"stroke-width":`1.5`}]],export:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.32 6.5l2.56-2.56 2.56 2.56M11.88 14.18V4.01M4 12c0 4.42 3 8 8 8s8-3.58 8-8`}]],"file-text":[[`path`,{d:`M21 7v10c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V7c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],files:[[`path`,{d:`M17 13.4v3c0 4-1.6 5.6-5.6 5.6H7.6c-4 0-5.6-1.6-5.6-5.6v-3.8C2 8.6 3.6 7 7.6 7h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 13.4h-3.2c-2.4 0-3.2-.8-3.2-3.2V7l6.4 6.4ZM11.6 2h4M7 5c0-1.66 1.34-3 3-3h2.62M22 8v6.19c0 1.55-1.26 2.81-2.81 2.81M22 8h-3c-2.25 0-3-.75-3-3V2l6 6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],filter:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],flag:[[`path`,{d:`M5.15 2v20M5.15 4h11.2c2.7 0 3.3 1.5 1.4 3.4l-1.2 1.2c-.8.8-.8 2.1 0 2.8l1.2 1.2c1.9 1.9 1.2 3.4-1.4 3.4H5.15`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],funnel:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],gauge:[[`path`,{d:`M19.14 19.5a9.964 9.964 0 0 0 2.86-7c0-5.52-4.48-10-10-10S2 6.98 2 12.5c0 2.72 1.08 5.18 2.84 6.99`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 21.5a3.38 3.38 0 1 0 0-6.76 3.38 3.38 0 0 0 0 6.76ZM15.25 12H16c.82 0 1.5-.67 1.5-1.5 0-.82-.68-1.5-1.5-1.5s-1.5.67-1.5 1.5v.75c0 .41.34.75.75.75Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],grid:[[`path`,{d:`M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],image:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM2.67 18.95l4.93-3.31c.79-.53 1.93-.47 2.64.14l.33.29c.78.67 2.04.67 2.82 0l4.16-3.57c.78-.67 2.04-.67 2.82 0L22 13.9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],info:[[`g`,{transform:`rotate(180 12 12)`},[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 16h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]]],key:[[`path`,{d:`M19.79 14.93a7.575 7.575 0 0 1-7.6 1.87l-4.71 4.7c-.34.35-1.01.56-1.49.49l-2.18-.3c-.72-.1-1.39-.78-1.5-1.5l-.3-2.18c-.07-.48.16-1.15.49-1.49l4.7-4.7c-.8-2.6-.18-5.55 1.88-7.6 2.95-2.95 7.74-2.95 10.7 0 2.96 2.95 2.96 7.76.01 10.71ZM6.89 17.49l2.3 2.3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],list:[[`path`,{d:`M3 4.5h18M3 9.5h9.47M3 14.5h18M3 19.5h9.47`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],lock:[[`path`,{d:`M6 10V8c0-3.31 1-6 6-6s6 2.69 6 6v2M12 18.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 22H7c-4 0-5-1-5-5v-2c0-4 1-5 5-5h10c4 0 5 1 5 5v2c0 4-1 5-5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"maximize-4":[[`path`,{d:`M21 9V3h-6M3 15v6h6M21 3l-7.5 7.5M10.5 13.5 3 21`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],menu:[[`path`,{d:`M3 7h18M3 12h18M3 17h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],minus:[[`path`,{d:`M6 12h12`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],monitor:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],moon:[[`path`,{d:`M2.03 12.42c.36 5.15 4.73 9.34 9.96 9.57 3.69.16 6.99-1.56 8.97-4.27.82-1.11.38-1.85-.99-1.6-.67.12-1.36.17-2.08.14C13 16.06 9 11.97 8.98 7.14c-.01-1.3.26-2.53.75-3.65.54-1.24-.11-1.83-1.36-1.3C4.41 3.86 1.7 7.85 2.03 12.42Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],music:[[`path`,{d:`M6.28 22a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20.84 16.8V4.6c0-2.6-1.63-2.96-3.28-2.51l-6.24 1.7C10.18 4.1 9.4 5 9.4 6.3v12.57`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17.72 19.92a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24ZM9.4 9.52 20.84 6.4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],pause:[[`path`,{d:`M10.65 19.11V4.89c0-1.35-.57-1.89-2.01-1.89H5.01C3.57 3 3 3.54 3 4.89v14.22C3 20.46 3.57 21 5.01 21h3.63c1.44 0 2.01-.54 2.01-1.89ZM21 19.11V4.89C21 3.54 20.43 3 18.99 3h-3.63c-1.43 0-2.01.54-2.01 1.89v14.22c0 1.35.57 1.89 2.01 1.89h3.63c1.44 0 2.01-.54 2.01-1.89Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],people:[[`path`,{d:`M18 7.16a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58A2.589 2.589 0 0 1 18 7.16ZM16.97 14.44c1.37.23 2.88-.01 3.94-.72 1.41-.94 1.41-2.48 0-3.42-1.07-.71-2.6-.95-3.97-.71M5.97 7.16c.06-.01.13-.01.19 0a2.573 2.573 0 0 0 2.48-2.58C8.64 3.15 7.49 2 6.06 2a2.58 2.58 0 0 0-2.58 2.58c.01 1.4 1.11 2.53 2.49 2.58ZM7 14.44c-1.37.23-2.88-.01-3.94-.72-1.41-.94-1.41-2.48 0-3.42 1.07-.71 2.6-.95 3.97-.71M12 14.63a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58c-.01 1.4-1.11 2.54-2.49 2.58ZM9.09 17.78c-1.41.94-1.41 2.48 0 3.42 1.6 1.07 4.22 1.07 5.82 0 1.41-.94 1.41-2.48 0-3.42-1.59-1.06-4.22-1.06-5.82 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],phone:[[`path`,{d:`M21.97 18.33c0 .36-.08.73-.25 1.09-.17.36-.39.7-.68 1.02-.49.54-1.03.93-1.64 1.18-.6.25-1.25.38-1.95.38-1.02 0-2.11-.24-3.26-.73s-2.3-1.15-3.44-1.98a28.75 28.75 0 0 1-3.28-2.8 28.414 28.414 0 0 1-2.79-3.27c-.82-1.14-1.48-2.28-1.96-3.41C2.24 8.67 2 7.58 2 6.54c0-.68.12-1.33.36-1.93.24-.61.62-1.17 1.15-1.67C4.15 2.31 4.85 2 5.59 2c.28 0 .56.06.81.18.26.12.49.3.67.56l2.32 3.27c.18.25.31.48.4.7.09.21.14.42.14.61 0 .24-.07.48-.21.71-.13.23-.32.47-.56.71l-.76.79c-.11.11-.16.24-.16.4 0 .08.01.15.03.23.03.08.06.14.08.2.18.33.49.76.93 1.28.45.52.93 1.05 1.45 1.58.54.53 1.06 1.02 1.59 1.47.52.44.95.74 1.29.92.05.02.11.05.18.08.08.03.16.04.25.04.17 0 .3-.06.41-.17l.76-.75c.25-.25.49-.44.72-.56.23-.14.46-.21.71-.21.19 0 .39.04.61.13.22.09.45.22.7.39l3.31 2.35c.26.18.44.39.55.64.1.25.16.5.16.78Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],play:[[`path`,{d:`M4 12V8.44c0-4.42 3.13-6.23 6.96-4.02l3.09 1.78 3.09 1.78c3.83 2.21 3.83 5.83 0 8.04l-3.09 1.78-3.09 1.78C7.13 21.79 4 19.98 4 15.56V12Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],printer:[[`path`,{d:`M7.25 7h9.5V5c0-2-.75-3-3-3h-3.5c-2.25 0-3 1-3 3v2ZM16 15v4c0 2-1 3-3 3h-2c-2 0-3-1-3-3v-4h8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M21 10v5c0 2-1 3-3 3h-2v-3H8v3H6c-2 0-3-1-3-3v-5c0-2 1-3 3-3h12c2 0 3 1 3 3ZM17 15H7M7 11h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],refresh:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44`}]],"rotate-ccw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M9.11 5.08c.87-.26 1.83-.43 2.89-.43 4.79 0 8.67 3.88 8.67 8.67s-3.88 8.67-8.67 8.67-8.67-3.88-8.67-8.67c0-1.78.54-3.44 1.46-4.82M7.87 5.32L10.76 2M7.87 5.32l3.37 2.46`}]],"rotate-cw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M14.89 5.08c-.87-.26-1.83-.43-2.89-.43-4.79 0-8.67 3.88-8.67 8.67C3.33 18.12 7.21 22 12 22s8.67-3.88 8.67-8.67c0-1.78-.54-3.44-1.46-4.82M16.13 5.32L13.24 2M16.13 5.32l-3.37 2.46`}]],search:[[`path`,{d:`M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],send:[[`path`,{d:`m7.4 6.32 8.49-2.83c3.81-1.27 5.88.81 4.62 4.62l-2.83 8.49c-1.9 5.71-5.02 5.71-6.92 0l-.84-2.52-2.52-.84c-5.71-1.9-5.71-5.01 0-6.92ZM10.11 13.65l3.58-3.59`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],server:[[`path`,{d:`M19.32 10H4.69c-1.48 0-2.68-1.21-2.68-2.68V4.69c0-1.48 1.21-2.68 2.68-2.68h14.63C20.8 2.01 22 3.22 22 4.69v2.63C22 8.79 20.79 10 19.32 10ZM19.32 22H4.69c-1.48 0-2.68-1.21-2.68-2.68v-2.63c0-1.48 1.21-2.68 2.68-2.68h14.63c1.48 0 2.68 1.21 2.68 2.68v2.63c0 1.47-1.21 2.68-2.68 2.68ZM6 5v2M10 5v2M6 17v2M10 17v2M14 6h4M14 18h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sort:[[`path`,{d:`M3 7h18M6 12h12M10 17h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],stop:[[`path`,{d:`M9.3 21h5.4c4.5 0 6.3-1.8 6.3-6.3V9.3C21 4.8 19.2 3 14.7 3H9.3C4.8 3 3 4.8 3 9.3v5.4C3 19.2 4.8 21 9.3 21Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],subtitle:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM17.5 17.08h-1.85M12.97 17.08H6.5M17.5 13.32h-5.53M9.27 13.32H6.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sun:[[`path`,{d:`M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m19.14 19.14-.13-.13m0-14.02.13-.13-.13.13ZM4.86 19.14l.13-.13-.13.13ZM12 2.08V2v.08ZM12 22v-.08.08ZM2.08 12H2h.08ZM22 12h-.08.08ZM4.99 4.99l-.13-.13.13.13Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],tag:[[`path`,{d:`m4.405 15.526 4.53 4.53a4.78 4.78 0 0 0 6.75 0l4.39-4.39a4.78 4.78 0 0 0 0-6.75l-4.54-4.52a4.75 4.75 0 0 0-3.6-1.39l-5 .24c-2 .09-3.59 1.68-3.69 3.67l-.24 5c-.06 1.35.45 2.66 1.4 3.61Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.735 12.226a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}],[`path`,{d:`m13.235 17.226 4-4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],text:[[`path`,{d:`M2.67 7.17V5.35c0-1.15.93-2.07 2.07-2.07h14.52c1.15 0 2.07.93 2.07 2.07v1.82M12 20.72V4.11M8.06 20.72h7.88`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"two-page":[[`path`,{d:`M22 16.74V4.67c0-1.2-.98-2.09-2.17-1.99h-.06c-2.1.18-5.29 1.25-7.07 2.37l-.17.11c-.29.18-.77.18-1.06 0l-.25-.15C9.44 3.9 6.26 2.84 4.16 2.67 2.97 2.57 2 3.47 2 4.66v12.08c0 .96.78 1.86 1.74 1.98l.29.04c2.17.29 5.52 1.39 7.44 2.44l.04.02c.27.15.7.15.96 0 1.92-1.06 5.28-2.17 7.46-2.46l.33-.04c.96-.12 1.74-1.02 1.74-1.98ZM12 5.49v15M7.75 8.49H5.5M8.5 11.49h-3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],user:[[`path`,{d:`M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM20.59 22c0-3.87-3.85-7-8.59-7s-8.59 3.13-8.59 7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-high":[[`path`,{d:`M2 10v4c0 2 1 3 3 3h1.43c.37 0 .74.11 1.06.3l2.92 1.83c2.52 1.58 4.59.43 4.59-2.54V7.41c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3Z`,stroke:`currentColor`,"stroke-width":`1.5`}],[`path`,{d:`M18 8a6.66 6.66 0 0 1 0 8M19.83 5.5a10.83 10.83 0 0 1 0 13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-mute":[[`path`,{d:`M15 8.37v-.96c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3v4c0 2 1 3 3 3h2M10.41 19.13c2.52 1.58 4.59.43 4.59-2.54v-3.64M18.81 9.42c.9 2.15.63 4.66-.81 6.58M21.15 7.8a10.82 10.82 0 0 1-1.32 10.7M22 2 2 22`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],x:[[`path`,{d:`M6.4 6.4l11.2 11.2M17.6 6.4 6.4 17.6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-in":[[`path`,{d:`M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-out":[[`path`,{d:`M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]},bi=n({GLYPH_CHUNK:()=>xi,GLYPH_PENDING_ATTRIBUTE:()=>pi,catalogueShardRegistered:()=>Ei,glyphNode:()=>U,lazyGlyphsRegistered:()=>Ci,registerCatalogueGlyphs:()=>Ti,registerGlyphs:()=>wi}),xi=`glyphs`,Si=vi(yi,{loadCurated:()=>H(xi),loadShard:e=>H(`glyphs-${e}`).then(()=>void 0),shardKeys:Dr}),U=Si.glyphNode,Ci=Si.curatedRegistered;function wi(e){Si.register(e,`curated`)}function Ti(e,t){Si.register(t,{shard:e})}function Ei(e){return Si.shardRegistered(e)}var Di=n({isImeComposing:()=>Oi,isImeSafeEnter:()=>ki});function Oi(e){return e.isComposing||e.keyCode===229}function ki(e){return e.key===`Enter`&&!Oi(e)}var Ai=n({createListboxKeyNav:()=>Mi,moveActiveRow:()=>Ni}),ji=e=>e.target instanceof Element?e.target.tagName:void 0;function Mi(e){let{getVisibleOptions:t,getActive:n,setActive:r,onEnter:i,onEscape:a,onTypeahead:o,typeaheadMs:s=500,getCount:c,getOptionAt:l,findByPrefix:u}=e,d=``,f=null,p=()=>{clearTimeout(f??void 0),f=null,d=``};return{handler:e=>{let m=c?[]:t(),h=c?c():m.length,g=()=>c?t():m,_=n(),v=ji(e)===`INPUT`||ji(e)===`TEXTAREA`;if(e.key===`ArrowDown`)e.preventDefault(),r(Math.min(_+1,h-1));else if(e.key===`ArrowUp`)e.preventDefault(),r(Math.max(_-1,0));else if(e.key===`Home`&&!v)e.preventDefault(),h&&r(0);else if(e.key===`End`&&!v)e.preventDefault(),h&&r(h-1);else if(e.key===`PageDown`&&!v){if(e.preventDefault(),!h)return;r(Math.min(Math.max(0,_)+8,h-1))}else if(e.key===`PageUp`&&!v){if(e.preventDefault(),!h)return;r(Math.max(Math.max(0,_)-8,0))}else if(ki(e))i&&(e.preventDefault(),i(l?l(_):m[_],g()));else if(e.key===`Escape`)a&&a(e);else if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&ji(e)!==`INPUT`&&ji(e)!==`TEXTAREA`){e.preventDefault(),clearTimeout(f??void 0),d+=e.key.toLowerCase(),f=setTimeout(p,s);let t=u?u(d,Math.max(0,_)):m.findIndex(e=>e.textContent.trim().toLowerCase().startsWith(d));t>=0&&(r(t),o&&o(e.key,t,g()))}},clearTypeahead:p}}function Ni(e,t){let n=e.querySelector(`.is-active`);n!==t&&(n?.classList.remove(`is-active`),t?.classList.add(`is-active`))}var Pi=n({TRUSTED_LABEL:()=>Fi,optionLabelNodes:()=>Vi,optionText:()=>Hi,stripTags:()=>Ri,withTrustedLabel:()=>Ii}),Fi=Symbol(`wui.trustedLabel`),Ii=(e,t)=>{let n=document.createDocumentFragment();return n.append(t.cloneNode(!0)),{...e,[Fi]:n}},Li=e=>`wui-flag wui-flag-${e}`,Ri=e=>String(e??``).replace(/<[^>]*>/g,``),zi=e=>{if(!e)return null;let t=String(e).toLowerCase().replace(/[^a-z0-9-]/g,``);return t?U(t):null},Bi=e=>{let t=String(e??``).toLowerCase();return/^[a-z]{2}$/.test(t)?j(`span`,{class:Li(t),"aria-hidden":`true`}):null};function Vi(e){if(e==null)return[];let t=Bi(e.flag),n=zi(e.icon),r=e[Fi],i=r?[...r.cloneNode(!0).childNodes]:[document.createTextNode(String(e.label??``))];return!t&&!n?i:[j(`span`,{class:`wui-opt-label`},t,n,...i)]}var Hi=e=>{if(e==null)return``;let t=e[Fi];return t?t.textContent??``:Ri(e.label)},Ui=n({SELECT_TEXT:()=>Wi}),Wi={addLabel:`Add '{query}'`,addTagsLabel:`Add tags`,allCountriesLabel:`All countries`,clearAllLabel:`Clear all`,clearSelectionLabel:`Clear selection`,countryPlaceholder:`Select country`,countrySearchPlaceholder:`Search countries…`,createLabel:`Create '{text}'`,defaultSearchPlaceholder:`Search {labelText}…`,emptyText:`No matches`,fallbackName:`Select`,helpLabel:`More information`,hintText:`Type to search…`,invalidMessage:`That option is not available.`,loadingMoreText:`Loading more…`,optionalLabel:`(optional)`,partLoadMessage:`This control could not load. Reload the page.`,placeholder:`Select…`,recentsLabel:`Recent`,removeText:`Remove {text}`,searchingText:`Searching…`,selectedText:`{count} selected`,suggestedLabel:`Suggested`,tagPlaceholder:`Add…`},Gi=n({clearOptions:()=>$i,drawn:()=>Ji,filterOptions:()=>qi,nodesSignature:()=>Xi,optionRow:()=>sa,posAttrMap:()=>Yi,refreshWindow:()=>ra,registerWindowImpl:()=>Qi,renderOptions:()=>ea,revealRow:()=>ia,rowId:()=>ta,rowIndexByPrefix:()=>oa,rowIndexOfValue:()=>aa,windowImplRegistered:()=>Zi}),Ki=()=>L(`select`,Wi);function qi(e,t){let n=String(t??``).trim().toLowerCase();return n?e.filter(e=>[Hi(e),e.description,e.meta].some(e=>String(e??``).toLowerCase().includes(n))):e}var Ji=new WeakMap,Yi=e=>e?{"data-index":String(e.index),"aria-setsize":String(e.size),"aria-posinset":String(e.index+1)}:{},Xi=e=>e.map(e=>e instanceof Element?e.outerHTML:e.textContent??``).join(``),W;function Zi(){return W!==void 0}function Qi(e){W=e}function $i(e){W?.clear(e),Ji.delete(e),e.replaceChildren()}function ea(e,t,n={}){let{selected:r=[],query:i=``,status:a=`idle`,emptyText:o=Ki().emptyText,searchingText:s=Ki().searchingText,loadingMoreText:c=Ki().loadingMoreText,hintText:l=Ki().hintText,actionRow:u=[],recents:d=null}=n,f=new Set(r.map(String)),p=qi(t,i),m=e.id,h=u.filter(e=>e.position===`top`),g=u.filter(e=>e.position===`bottom`),_=d?.options.length?d.options:[],v=h.length+_.length+p.length+g.length,y=p.length>300,b=W,x=y&&b!==void 0,S=e=>x?{index:e,size:v}:void 0,C=0,ee=e=>{let t=C++;return j(`button`,{type:`button`,role:`option`,id:ta(m,t),class:`wui-select-option wui-select-add`,"data-value":String(e.value??``),"data-custom":`true`,"aria-selected":`false`,...Yi(S(t))},e.label)},w=e=>{let t=C++;return sa(e,ta(m,t),f.has(String(e.value)),S(t))},te=h.map(ee),T=_.length&&d?[j(`div`,{class:`wui-select-group`},d.label),..._.map(w),j(`div`,{class:`wui-select-sep`,"aria-hidden":`true`})]:[],ne=C,E=[];if(x)C+=p.length;else{let e=``;for(let t of p)t.group&&t.group!==e&&E.push(j(`div`,{class:`wui-select-group`},t.group)),e=t.group??``,E.push(w(t))}let D=g.map(ee),O=[];if(a===`loading`||a===`more`?O=[j(`div`,{class:`wui-select-loading`},j(`span`,{class:`wui-select-spinner spinner-border spinner-border-sm`,role:`status`,"aria-hidden":`true`}),a===`more`?c:s)]:a===`hint`?O=[j(`div`,{class:`wui-select-hint`},l)]:(a===`empty`||p.length===0&&u.length===0)&&(O=[j(`div`,{class:`wui-select-empty`},o)]),x&&b){let n=[...te,...T],r=[...D,...O];return b.render(e,{options:t,query:i,rows:p,pre:n,post:r,preSig:Xi(n),postSig:Xi(r),picked:f,top:h,recent:_,bottom:g,bodyBase:ne,total:v}),{rows:v,windowed:!0,long:y}}b?.clear(e);let re=[...te,...T,...E,...D,...O],ie=Xi(re);return Ji.get(e)===ie||(Ji.set(e,ie),e.replaceChildren(...re)),{rows:C,windowed:!1,long:y}}var ta=(e,t)=>`${e}-opt-${t}`,na=e=>[...e.querySelectorAll(`.wui-select-option`)];function ra(e){return W?W.refresh(e):!1}function ia(e,t){return W?W.reveal(e,t):na(e)[t]??null}function aa(e,t){if(W)return W.indexOfValue(e,t);let n=new Set(t.map(String));return na(e).findIndex(e=>n.has(e.dataset.value??``))}function oa(e,t){return W?W.indexByPrefix(e,t):na(e).findIndex(e=>(e.textContent??``).trim().toLowerCase().startsWith(t))}function sa(e,t,n,r){let i=!!e.disabled,a={id:t,role:`option`,"data-value":String(e.value??``),"aria-selected":String(n),"aria-disabled":i?`true`:void 0,title:i&&e.disabledHint?e.disabledHint:void 0,...Yi(r)},o=j(`span`,{class:`wui-select-check`,"aria-hidden":`true`},U(`check`));if(!e.description&&!e.meta)return j(`button`,{type:`button`,class:`wui-select-option${n?` selected`:``}`,...a},dr(e),j(`span`,{class:`wui-select-opt-name`},...Vi(e)),o);let s=e.description?j(`span`,{class:`wui-select-opt-desc`},e.description):null,c=e.meta?j(`span`,{class:`wui-select-opt-meta`},e.meta):null;return j(`div`,{class:`wui-select-option wui-select-option-rich${n?` selected`:``}`,...a},dr(e),j(`span`,{class:`wui-select-option-text`},j(`span`,{class:`wui-opt-label`},...Vi(e)),s),c,o)}var ca=Object.freeze([`single`,`multiple`,`search`,`tag`,`country`]),G=e=>e===`multiple`||e===`tag`,la=n({registerSelectPart:()=>da,selectPart:()=>fa}),ua=new Map;function da(e,t){ua.set(e,t)}function fa(e){return ua.get(e)}var pa={chips:`select-chips`,search:`select-search`,country:`phone`,recents:`select-recents`};function ma(e){let t=Er(pa,e)?pa[e]:void 0;if(!t)return Promise.reject(Error(`Unknown <wui-select> part: ${e}.`));let n=fa(e);return n?Promise.resolve(n):H(t).then(()=>A(fa(e),`The ${e} part of <wui-select> did not register.`))}var ha=n({searchesRemotely:()=>ga}),ga=e=>typeof e.loadOptions==`function`||!!e.getAttribute(`source`)||e.hasAttribute(`remote`),_a=()=>H(`select-window`),va={requiredFieldMessage:`Please fill in this field.`},ya={clearLabel:`Clear search`,placeholder:`Search…`,searchLabel:`Search`},ba=n({WuiSelect:()=>wa}),K=()=>L(`select`,Wi),xa=()=>L(`search`,ya),Sa=()=>L(`field`,va),Ca=160,wa=class extends s{static get observedAttributes(){return`class.mode.value.placeholder.search-placeholder.empty-text.searchable.clearable.disabled.readonly.loading.required.size.density.icon.prefix.open.open-on-hover.lazy-options.aria-label.aria-describedby.aria-invalid.min-chars.debounce.source.remote.allow-custom.add-label.searching-text.hint-text.value-label.value-avatar.value-initials.max-tags.allow-duplicates.separators.pattern.invalid-message.create-label.collapse-chips.selected-text.clear-all-label.countries.suggested.suggested-label.all-countries-label.recents-key.recents-limit.recents-label`.split(`.`)}constructor(){super(),z(this,`_internals`,void 0),z(this,`_value`,void 0),z(this,`_optionsProp`,void 0),z(this,`_partOptions`,void 0),z(this,`_known`,void 0),z(this,`_loadOptionsFn`,void 0),z(this,`_validateFn`,void 0),z(this,`_declared`,void 0),z(this,`_query`,void 0),z(this,`_ownsFilter`,void 0),z(this,`_active`,void 0),z(this,`_rows`,void 0),z(this,`_windowed`,void 0),z(this,`_windowLoad`,void 0),z(this,`_windowFailed`,void 0),z(this,`_scrollFrame`,void 0),z(this,`_endFrame`,void 0),z(this,`_status`,void 0),z(this,`_error`,void 0),z(this,`_nav`,void 0),z(this,`_parts`,void 0),z(this,`_partSig`,void 0),z(this,`_partsMounted`,void 0),z(this,`_partToken`,void 0),z(this,`_rendered`,void 0),z(this,`_searchShown`,void 0),z(this,`_defaultValue`,void 0),z(this,`_warnedMode`,void 0),z(this,`_warnedDensity`,void 0),z(this,`_hoverTimer`,void 0),z(this,`_hoverOpened`,void 0),z(this,`_onHoverOver`,void 0),z(this,`_onHoverOut`,void 0),z(this,`_panelShown`,void 0),z(this,`_pressOpen`,void 0);try{this._internals=this.attachInternals()}catch{this._internals=null}this._value=``,this._optionsProp=null,this._partOptions=null,this._known=new Map,this._loadOptionsFn=null,this._validateFn=null,this._declared=void 0,this._query=``,this._ownsFilter=!1,this._active=-1,this._rows=0,this._windowed=!1,this._windowLoad=null,this._windowFailed=!1,this._scrollFrame=null,this._endFrame=null,this._status=`idle`,this._error=``,this._nav=null,this._parts=null,this._partSig=``,this._partsMounted=!1,this._partToken=0,this._rendered=!1,this._searchShown=!1,this._defaultValue=void 0,this._warnedMode=null,this._hoverTimer=null,this._hoverOpened=!1,this._panelShown=!1,this._pressOpen=null,this._onHoverOver=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&(this._clearHover(),!this._menuOpen()&&this._hoverEligible()&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,!this._menuOpen()&&this._hoverEligible()&&(this._open({focus:!1}),this._hoverOpened=!0)},Oa)))},this._onHoverOut=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&!this._hoverZone(e.relatedTarget)&&(this._clearHover(),this._menuOpen()&&this.hasAttribute(`open-on-hover`)&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,this._close()},ka)))}}connectedCallback(){this.addEventListener(`pointerover`,this._onHoverOver),this.addEventListener(`pointerout`,this._onHoverOut),this._rendered||this.render(),this._ensureParts(),this._mountParts()}disconnectedCallback(){this.removeEventListener(`pointerover`,this._onHoverOver),this.removeEventListener(`pointerout`,this._onHoverOut),this._clearHover(),this._dropMenu(),this._teardown(),this._teardownParts()}attributeChangedCallback(e,t,n){e===`class`?this._syncUnderline():e===`value`?(this._value=Fa(n,G(this.mode)),this._applyValue()):e===`aria-invalid`?this._syncInvalid():e===`open`?this._rendered&&(this.hasAttribute(`open`)?this._open({focus:!1}):this._close({force:!0})):e===`open-on-hover`?this.hasAttribute(`open-on-hover`)||this._clearHover():e!==`lazy-options`&&(e===`mode`&&(this._value=Fa(this._value,G(this.mode)),this._partOptions=null,this._known.clear(),this._ensureParts()),(e===`source`||e===`remote`||e===`recents-key`)&&this._ensureParts(),Na.has(e)?this._rendered&&(this._drawValue(),this.renderList()):Ma.has(e)?this._remountParts():this._rendered&&this.render())}formResetCallback(){if(this.value=this._defaultValue??``,!this._rendered)return;let e=this._refs();e.input&&(e.input.value=``,e.input.removeAttribute(`aria-invalid`)),e.search&&(e.search.value=``),this.setError(``),this._query!==``&&this._onQueryChange(``)}get mode(){let e=this.getAttribute(`mode`);return e===null?`single`:Ea(e)?e:(e!==this._warnedMode&&(this._warnedMode=e,pr(`<wui-select> mode "${e}" is not one of ${ca.join(`, `)}; it is treated as "single".`)),`single`)}_checkDensity(){let e=this.getAttribute(`density`);e===null||Da.includes(e)||e===this._warnedDensity||(this._warnedDensity=e,pr(`<wui-select> density "${e}" is not one of ${Da.join(`, `)}; it is treated as "comfortable".`))}set mode(e){this.setAttribute(`mode`,String(e))}get value(){return Array.isArray(this._value)?this._value.slice():this._value}set value(e){this._value=Fa(e,G(this.mode)),this._applyValue()}get options(){return this._readOptions()}set options(e){this._optionsProp=Array.isArray(e)?e:null,this.mode!==`country`&&(this._partOptions=null);for(let e of this._activePartsList())e.onOptions?.();if(this._rendered){if(this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._autoSearch()!==this._searchShown){this.render();return}this._drawValue(),this.renderList()}}get loadOptions(){return this._loadOptionsFn}set loadOptions(e){this._loadOptionsFn=typeof e==`function`?e:null,this._ensureParts()}get validate(){return this._validateFn}set validate(e){this._validateFn=typeof e==`function`?e:null}commit(e,t={}){this.value=e,this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,detail:{isCustom:!!t.isCustom}}))}setPartOptions(e){this._partOptions=Array.isArray(e)?e:null,this._drawValue(),this.renderList()}setStatus(e){this._status=e,this.renderList()}setError(e){this._error=e?String(e):``,this._syncError()}openMenu(){B(this)||this._open({focus:!1})}closeMenu({focusControl:e=!1}={}){this._close(),e&&this._refs().control?.focus()}renderList(){let e=this._refs();if(!e.list)return;let t=this._ownsFilter?``:this._query,n=this._actionRows(),r=this._recents();if(this.hasAttribute(`lazy-options`)&&!this._menuOpen()){this._rows=qi(this._listOptions(),t).length+n.length+(r?.options.length??0),this._windowed=!1,$i(e.list),this._anchorMenu();return}let i=ea(e.list,this._listOptions(),{selected:this._selectedValues(),query:t,status:this._status,emptyText:this.getAttribute(`empty-text`)||K().emptyText,searchingText:this.getAttribute(`searching-text`)||K().searchingText,loadingMoreText:K().loadingMoreText,hintText:this.getAttribute(`hint-text`)||void 0,actionRow:n,recents:r});this._rows=i.rows,this._windowed=i.windowed,i.long&&!i.windowed&&!this._windowFailed&&this._loadWindow(),this._active>=this._rowCount()&&(this._active=-1),this._active>=0&&this._setActive(this._active,{reveal:!1}),this._anchorMenu(),this._watchListEnd()}_watchListEnd(){this._endFrame===null&&this._activePartsList().some(e=>e.onListEnd)&&(this._endFrame=requestAnimationFrame(()=>{this._endFrame=null,this._checkListEnd()}))}_checkListEnd(){let e=this._refs().list;if(e?.clientHeight&&this._menuOpen()&&!(e.scrollTop+e.clientHeight<e.scrollHeight-Ca))for(let e of this._activePartsList())e.onListEnd?.()}render(){this._dropMenu();let e=this._carry();this._teardownParts(),this._snapshotDeclared();let t=this.mode;this._checkDensity();let n=G(t),r=t===`tag`,i=n&&(r||this.hasAttribute(`allow-custom`));this._value=Fa(this._value,n),this._defaultValue===void 0&&n&&this._value.length===0&&(this._value=this._declaredSelected()),n||this._preselect(),this._defaultValue===void 0&&(this._defaultValue=Fa(this._value,n));let a=this.getAttribute(`size`),o=a===`sm`?` wui-select-sm`:a===`lg`?` wui-select-lg`:a===`xl`?` wui-select-xl`:``,s=this.getAttribute(`icon`),c=this.getAttribute(`prefix`),l=this.hasAttribute(`clearable`),u=this.hasAttribute(`disabled`);if(!this.id){let e=crypto.getRandomValues(new Uint8Array(8));this.id=`wui-select-${Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``)}`}let d=`${this.id}-listbox`,f=`${this.id}-entry-error`,p=this.getAttribute(`aria-describedby`)?.trim(),m=p?`${p} ${f}`:f,h=this.hasAttribute(`aria-invalid`)||!!this._error,g=this.hasAttribute(`required`)&&!i,_=this._accessibleName(),v=i?{}:{role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":`false`,"aria-controls":d},y={"aria-label":_,"aria-describedby":m,"aria-invalid":h?`true`:void 0,"aria-required":g?`true`:void 0},b=n?j(`div`,{class:`form-control wui-select-control wui-select-multi`,...v,...y,"aria-disabled":u?`true`:void 0,tabindex:!u&&!r?`0`:void 0}):j(`button`,{type:`button`,class:`form-control wui-select-control`,...v,...y,disabled:u||void 0}),x=[s?U(s,{className:`wui-select-icon`}):null,c?j(`span`,{class:`wui-select-prefix`},c):null,j(`span`,{class:`wui-select-value`,"data-label":!0}),l?j(`span`,{class:`wui-select-reset`,role:`button`,"aria-label":K().clearSelectionLabel,hidden:!0},U(`x`)):null,U(`chevron-down`,{className:`wui-select-caret`})];b.append(...x.filter(e=>e!==null));let S=this.getAttribute(`searchable`),C=S===null?t===`multiple`||t===`country`||this._autoSearch():S!==`false`,ee=t===`search`||C&&!i;this._searchShown=ee;let w=this.getAttribute(`search-placeholder`)||(t===`country`?K().countrySearchPlaceholder:xa().placeholder),te=j(`div`,{class:`wui-select-menu wui-select-menu-fixed`,popover:`auto`},ee?j(`div`,{class:`wui-select-search`},U(`search`),j(`input`,{class:`wui-select-input`,placeholder:w,"aria-label":w,"aria-autocomplete":`list`}),j(`button`,{type:`button`,class:`wui-select-clear`,"aria-label":xa().clearLabel,hidden:!0},U(`x`))):null,j(`div`,{class:`wui-select-options`,role:`listbox`,id:d,tabindex:`-1`,"aria-multiselectable":n?`true`:void 0})),T=j(`div`,{class:`field-error wui-select-error`,id:f,"aria-live":`polite`,hidden:!this._error||void 0},this._error||null);this.replaceChildren(j(`div`,{class:`wui-select${o}`},b,te),T),this._rendered=!0,this._syncMirror(),this._syncValidity(),this._drawValue(),this._syncReset(),this.renderList(),this._wire(),vr(this,this.querySelector(`.wui-select-control`)),this._syncUnderline(),this._mountParts(e)}_accessibleName(){return this.getAttribute(`aria-label`)||this.getAttribute(`placeholder`)||K().fallbackName}_snapshotDeclared(){if(this._declared)return;let e=[...this.querySelectorAll(`:scope > wui-option`)];e.length&&(this._declared=e.map(e=>{let t=document.createDocumentFragment();for(let n of e.childNodes)t.append(n.cloneNode(!0));let n={value:e.getAttribute(`value`)??Va(e).trim(),label:t.textContent??``,selected:e.hasAttribute(`selected`)};for(let[t,r]of Pa){let i=e.getAttribute(t);i&&(n[r]=i)}return e.hasAttribute(`disabled`)&&(n.disabled=!0),Ii(n,t)}))}_readOptions(){return this.mode===`country`?this._partOptions||[]:this._partOptions?this._partOptions:this._optionsProp?this._optionsProp:(this._snapshotDeclared(),this._declared||[])}_listOptions(){let e=this._readOptions(),t=this.getAttribute(`value-label`);if(this.mode!==`search`||!t||this._value===``)return e;let n=String(this._value);return e.some(e=>String(e.value)===n)?e:[...e,{value:n,label:t}]}_declaredSelected(){return this._optionsProp?[]:(this._declared??[]).filter(e=>e.selected).map(e=>String(e.value))}_preselect(){let e=this._readOptions(),t=this._value!==``&&e.find(e=>String(e.value)===this._value)||e.find(e=>`selected`in e&&!!e.selected);t&&(this._value=String(t.value))}_optionFor(e){let t=String(e),n=this._readOptions().find(e=>String(e.value)===t);return n?(this._known.set(t,n),n):this._known.get(t)}_placeholder(){return this.getAttribute(`placeholder`)||ja()[this.mode]}_hasValue(){return Array.isArray(this._value)?this._value.length>0:this._value!==``}_selectedValues(){return Array.isArray(this._value)?this._value:this._value===``?this._listOptions().some(e=>String(e.value)===``)?[``]:[]:[this._value]}_applyValue(){this._syncMirror(),this._syncValidity(),this._rendered&&(this._drawValue(),this._syncReset(),this.renderList())}_syncMirror(){G(this.mode)?wr(this,this._selectedValues()):Cr(this,this._value)}_drawValue(){let e=this._refs();if(!e.value)return;let t=G(this.mode),n=t?void 0:this._optionFor(this._value);if(this._syncTitle(n),this._syncValueAvatar(),this._activePartsList().some(e=>e.renderValue?.()===!0))return;if(t){e.value.classList.remove(`wui-select-placeholder`),e.value.textContent=``;return}e.value.classList.toggle(`wui-select-placeholder`,!n);let r=this._placeholder();e.value.replaceChildren(...n?Vi(n):r?[r]:[])}_syncTitle(e){let t=this.querySelector(`.wui-select-control`);if(!t)return;let n=e&&!this.hasAttribute(`title`)?Hi(e).trim():``;n?t.setAttribute(`title`,n):t.removeAttribute(`title`)}_syncValueAvatar(){let e=this.querySelector(`.wui-select-control`);if(!e)return;e.querySelector(`:scope > .wui-select-value-avatar`)?.remove();let t=!G(this.mode)&&this._hasValue()?dr({avatar:this.getAttribute(`value-avatar`),initials:this.getAttribute(`value-initials`)},`avatar-xs`):null;e.classList.toggle(`wui-has-value-avatar`,!!t),t&&e.prepend(j(`span`,{class:`wui-select-value-avatar`,"aria-hidden":`true`},t))}_syncValidity(){let e=this._internals;if(typeof e?.setValidity==`function`){if(this.hasAttribute(`required`)&&!this._hasValue()){let t=this.querySelector(`.wui-select-control`);e.setValidity({valueMissing:!0},Sa().requiredFieldMessage,t instanceof HTMLElement?t:void 0)}else e.setValidity({})}}_syncReset(){let e=q(this,`.wui-select-reset`,HTMLElement);e&&(e.hidden=!(this.hasAttribute(`clearable`)&&this._hasValue()&&!B(this)))}_syncUnderline(){this.querySelector(`.wui-select-control`)?.classList.toggle(`wui-input-underline`,this.classList.contains(`wui-input-underline`))}_syncInvalid(){let e=this.querySelector(`.wui-select-control`);e&&(this.hasAttribute(`aria-invalid`)||this._error?e.setAttribute(`aria-invalid`,`true`):e.removeAttribute(`aria-invalid`))}_syncError(){let e=q(this,`.wui-select-error`,HTMLElement);e&&(e.textContent=this._error,e.hidden=!this._error),this._syncInvalid()}_refs(){return{control:q(this,`.wui-select-control`,HTMLElement),value:q(this,`.wui-select-value`,HTMLElement),menu:q(this,`.wui-select-menu`,HTMLElement),list:q(this,`.wui-select-options`,HTMLElement),search:q(this,`.wui-select-search input`,HTMLInputElement),input:q(this,`.wui-select-draft`,HTMLInputElement)}}_menuOpen(){let e=q(this,`.wui-select-menu`,HTMLElement);return e!==null&&k(e)}_hoverZone(e){if(!(e instanceof Element))return!1;let t=e.closest(`.wui-select-control, .wui-select-menu`);return t!==null&&this.contains(t)}_hoverEligible(){if(!this.hasAttribute(`open-on-hover`)||B(this)||this.mode===`tag`)return!1;let e=this._refs();return e.search===null&&e.input===null}_clearHover(){this._hoverTimer!==null&&clearTimeout(this._hoverTimer),this._hoverTimer=null}_autoSearch(){return this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._readOptions().length>Aa}_visible(){let e=this._refs();return e.list?Ba(e.list,`.wui-select-option`):[]}_rowCount(){return this._windowed?this._rows:this._visible().length}_rowEl(e){if(!this._windowed)return this._visible()[e];let t=this._refs().list?.querySelector(`[data-index="${e}"]`);return t instanceof HTMLElement?t:void 0}_setActive(e,{reveal:t=!0}={}){let n=this._refs();if(!n.list||!n.control)return;this._active=e;let r=null;e>=0&&e<this._rowCount()&&(r=this._rowEl(e)??(this._windowed&&t?ia(n.list,e):null)),Ni(n.list,r),r?(t&&r.scrollIntoView({block:`nearest`}),n.control.setAttribute(`aria-activedescendant`,r.id)):n.control.removeAttribute(`aria-activedescendant`)}_onListScroll(){this._scrollFrame=null;let e=this._refs().list;e&&(this._windowed&&ra(e)&&this._active>=0&&this._setActive(this._active,{reveal:!1}),this._checkListEnd())}_actionRows(){let e=[];for(let t of this._activePartsList()){let n=t.actionRow?.(this._query);n&&e.push(n)}return e}_recents(){if(this._query.trim()!==``)return null;for(let e of this._activePartsList()){let t=e.recents?.(this._listOptions());if(t)return t}return null}_menuPlacement(e,t){let n=this.hasAttribute(`open`)?{below:!0}:{};if(this.getAttribute(`density`)!==`compact`)return{matchWidth:!0,...n};let r=e.getBoundingClientRect();return t.style.width=`max-content`,t.style.minWidth=`${r.width}px`,t.style.maxWidth=`280px`,n}_anchorMenu(){let e=this._refs();e.control&&e.menu&&this._menuOpen()&&w(e.control,e.menu,this._menuPlacement(e.control,e.menu))}_showMenu(e,t){je(e,t,{...this._menuPlacement(e,t),mode:`auto`,keepOffscreen:this.hasAttribute(`open`),onClosed:()=>this._onPanelClosed()}),this._panelShown=!0}_onPanelClosed(){if(!this._panelShown)return;this._panelShown=!1;let e=this._refs();e.control&&(e.control.setAttribute(`aria-expanded`,`false`),this._setActive(-1),this._nav?.clearTypeahead(),this.dispatchEvent(new CustomEvent(`wui-select:close`,{bubbles:!0})))}_open({focus:e=!0}={}){let t=this._refs();if(!t.menu||!t.control)return;let n=this._menuOpen();this._hoverOpened=!1,t.control.setAttribute(`aria-expanded`,`true`),this._query=t.input?t.input.value:``,this._ownsFilter=this._ownsFilter&&this._query!==``;let r=q(this,`.wui-select-search .wui-select-clear`,HTMLElement);if(r&&(r.hidden=!0),t.search&&(t.search.value=``),n||this._showMenu(t.control,t.menu),this.renderList(),e&&(t.search?.focus(),this._setActive(this._windowed&&t.list?aa(t.list,this._selectedValues()):this._visible().findIndex(e=>e.classList.contains(`selected`)))),!n){this.dispatchEvent(new CustomEvent(`wui-select:open`,{bubbles:!0}));for(let e of this._activePartsList())e.onOpen?.()}}_close({force:e=!1}={}){if(!e&&this.hasAttribute(`open`))return;let t=this._refs();if(!t.menu||!t.control)return;this._hoverOpened=!1;let n=t.menu.contains(document.activeElement);k(t.menu)&&Me(t.menu),this._onPanelClosed(),n&&t.control.focus()}_onQueryChange(e){this._query=e,this._setActive(-1);let t=q(this,`.wui-select-search .wui-select-clear`,HTMLElement);t&&(t.hidden=!e);let n=!1;for(let t of this._activePartsList())t.onQuery?.(e)===!0&&(n=!0);this._ownsFilter=n,this.renderList()}_pick(e){if(e.getAttribute(`aria-disabled`)===`true`)return;let t=e.dataset.custom===`true`,n=e.dataset.value??``,r=t?{value:n,label:Va(e).trim()}:this._listOptions().find(e=>String(e.value)===n)??{value:n,label:n},i=this._activePartsList().some(e=>e.onPick?.(r,{isCustom:t})===!0);G(this.mode)||(i||this.commit(n,{isCustom:t}),this._close(),this._refs().control?.focus())}_draftOpens(){return this.mode===`multiple`?this.hasAttribute(`allow-custom`):this.mode===`tag`&&ga(this)}_onKeyDown(e){if(!B(this)){for(let t of this._activePartsList())if(t.onKey?.(e)===!0)return;if(!this._menuOpen()){if(e.target instanceof HTMLInputElement){if(e.key!==`ArrowDown`||!this._draftOpens())return;this._open({focus:!1})}else{(e.key===`ArrowDown`||ki(e)||e.key===` `)&&(e.preventDefault(),this._open({focus:!0}));return}}A(this._nav,`Listbox keys are not wired.`).handler(e)}}_wire(){this._teardown();let e=this._refs(),t=e.control,n=e.list;if(!t||!e.menu||!n)return;let r=A(q(this,`.wui-select`,HTMLElement),`The select wrapper is missing.`),i=q(this,`.wui-select-search .wui-select-clear`,HTMLElement),a=q(this,`.wui-select-reset`,HTMLElement);this._nav=Mi({getVisibleOptions:()=>this._visible(),getActive:()=>this._active,setActive:e=>this._setActive(e),getCount:()=>this._rowCount(),getOptionAt:e=>this._rowEl(e),findByPrefix:e=>this._windowed?oa(n,e):this._visible().findIndex(t=>t.textContent.trim().toLowerCase().startsWith(e)),onEnter:(e,t)=>{if(e)this._pick(e);else if(this._query.trim()!==``){let e=t.find(e=>e.dataset.custom===`true`);if(e)this._pick(e);else if(t.length===1){let e=t[0];e&&this._pick(e)}}},onEscape:e=>{e.preventDefault(),this._nav?.clearTypeahead(),this._close(),t.focus()}}),r.addEventListener(`keydown`,e=>this._onKeyDown(e)),r.addEventListener(`input`,e=>{let t=e.target;if(!(t instanceof HTMLInputElement)||!t.matches(`.wui-select-input, .wui-select-draft`))return;this._onQueryChange(t.value);let n=t.matches(`.wui-select-draft`),r=this._rows>0||this._actionRows().length>0;n&&r&&!this._menuOpen()&&!B(this)&&this._draftOpens()&&this._open({focus:!1})}),r.addEventListener(`focusout`,e=>{let t=e.relatedTarget;t instanceof Node&&this.contains(t)||!this._activePartsList().some(e=>e.onBlur?.()===!0)&&t&&this._close()}),i?.addEventListener(`click`,()=>{let t=A(e.search,`The search input is missing.`);t.value=``,this._onQueryChange(``),t.focus()}),t.addEventListener(`pointerdown`,()=>{this._pressOpen=this._menuOpen()}),t.addEventListener(`click`,e=>{if(e.target instanceof Element&&e.target.closest(`[data-remove]`))return;if(this.mode===`tag`){if(B(this))return;this._refs().input?.focus(),!this._menuOpen()&&this._draftOpens()&&this._open({focus:!1});return}if(e.target instanceof HTMLInputElement){!this._menuOpen()&&!B(this)&&this._open({focus:!1});return}let t=e.detail>0&&this._pressOpen!==null?this._pressOpen:this._menuOpen();this._pressOpen=null,this._clearHover(),this._hoverOpened&&t?(this._hoverOpened=!1,this._open({focus:!0})):t?this._close():B(this)||this._open({focus:!0})}),a?.addEventListener(`click`,e=>{e.stopPropagation(),this.commit(G(this.mode)?[]:``),this._close(),t.focus()}),n.addEventListener(`click`,n=>{let r=za(n).closest(`.wui-select-option`);if(r instanceof HTMLElement&&(this._pick(r),G(this.mode))){let n=this.querySelector(`.wui-select-draft`);(e.search??(n instanceof HTMLElement?n:t)).focus()}}),n.addEventListener(`mousedown`,e=>{G(this.mode)&&e.target instanceof Element&&e.target.closest(`.wui-select-option`)&&e.preventDefault()}),n.addEventListener(`mousemove`,e=>{let t=za(e).closest(`.wui-select-option`);t instanceof HTMLElement&&!t.classList.contains(`is-active`)&&this._setActive(this._windowed?Number(t.dataset.index):this._visible().indexOf(t),{reveal:!1})}),n.addEventListener(`scroll`,()=>{this._scrollFrame===null&&(this._scrollFrame=requestAnimationFrame(()=>this._onListScroll()))},{passive:!0}),n.addEventListener(`mouseleave`,()=>this._setActive(-1)),n.addEventListener(`error`,e=>{let t=e.target;t instanceof Element&&t.classList.contains(`avatar-img`)&&t.remove()},!0),this.hasAttribute(`open`)&&this._open({focus:!1})}_teardown(){this._nav?.clearTypeahead(),this._scrollFrame!==null&&cancelAnimationFrame(this._scrollFrame),this._scrollFrame=null,this._endFrame!==null&&cancelAnimationFrame(this._endFrame),this._endFrame=null}_dropMenu(){let e=q(this,`.wui-select-menu`,HTMLElement);e&&Me(e)}_activePartsList(){return this._partsMounted?A(this._parts,`The mounted parts are missing.`):[]}_ensureParts(){if(!this.isConnected)return;(this.hasAttribute(`source`)||this.hasAttribute(`remote`)||this.hasAttribute(`recents-key`)||this._loadOptionsFn!==null)&&this._loadWindow();let e=La(this,this.mode),t=e.join(`,`);if(t===this._partSig)return;this._teardownParts(),this._parts=null,this._partSig=t;let n=++this._partToken;Promise.all(e.map(e=>Ha(this,e))).then(e=>{n===this._partToken&&(this._parts=e.filter(e=>e!==null),this._mountParts())})}_loadWindow(){this._windowLoad===null&&(this._windowLoad=_a().then(()=>this.renderList(),()=>{this._windowFailed=!0,document.dispatchEvent(new CustomEvent(Ir,{bubbles:!0,composed:!0,detail:{chunk:`select-window`}})),this.setError(K().partLoadMessage)}))}_mountParts(e={draft:``,query:``}){if(!this._parts||this._partsMounted||!this._rendered||!this.isConnected)return;this._partsMounted=!0;let t=Ta(this._refs());for(let n of this._parts)n.mount(this,t,{carry:e});this._drawValue(),this.renderList()}_teardownParts(){let e=this._activePartsList();this._partsMounted=!1;for(let t of e)t.teardown()}_remountParts(){if(!this._partsMounted)return;let e=this._carry();this._teardownParts(),this._mountParts(e)}_carry(){let e=this._refs();return{draft:e.input?.value??``,query:e.search?.value??``}}};z(wa,`formAssociated`,!0);var Ta=e=>{let{control:t,value:n,menu:r,list:i}=e;return{control:A(t,`control missing`),value:A(n,`value missing`),menu:A(r,`menu missing`),list:A(i,`list missing`),search:e.search,input:e.input}},Ea=e=>ca.includes(e),Da=[`comfortable`,`compact`],Oa=150,ka=250,Aa=10,ja=()=>{let e=K();return{single:e.placeholder,search:e.placeholder,multiple:e.placeholder,tag:e.tagPlaceholder,country:e.countryPlaceholder}},Ma=new Set([`countries`,`suggested`,`suggested-label`,`all-countries-label`,`max-tags`,`pattern`,`collapse-chips`,`source`,`remote`,`min-chars`]),Na=new Set([`separators`,`allow-duplicates`,`invalid-message`,`create-label`,`add-label`,`selected-text`,`clear-all-label`,`value-label`,`value-avatar`,`value-initials`,`hint-text`,`recents-key`,`recents-limit`,`recents-label`]),Pa=[[`icon`,`icon`],[`description`,`description`],[`meta`,`meta`],[`group`,`group`],[`avatar`,`avatar`],[`initials`,`initials`],[`disabled-hint`,`disabledHint`]],Fa=(e,t)=>t?Array.isArray(e)?e.map(String):e==null||e===``?[]:String(e).split(`,`).map(e=>e.trim()).filter(Boolean):Array.isArray(e)?e.length?String(e[0]):``:e==null?``:String(e),Ia=(e,t)=>t===`multiple`?ga(e)?[`chips`,`search`]:[`chips`]:t===`search`?[`search`]:t===`country`?[`country`]:t===`tag`?ga(e)?[`chips`,`search`]:[`chips`]:[],La=(e,t)=>e.hasAttribute(`recents-key`)?[`recents`,...Ia(e,t)]:Ia(e,t),Ra=e=>typeof e==`object`&&!!e&&`default`in e&&typeof e.default==`function`,za=e=>{if(e.target instanceof Element)return e.target;throw Error(`The event target is not an element.`)},q=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},Ba=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement),Va=e=>{let t=e.textContent;if(t===null)throw Error(`The element has no text.`);return t},Ha=(e,t)=>ma(t).then(e=>{if(!Ra(e))throw Error(`The part ${t} has no default export.`);return e.default()}).catch(()=>(document.dispatchEvent(new CustomEvent(Ir,{bubbles:!0,composed:!0,detail:{chunk:t}})),e.setError(K().partLoadMessage),null)),Ua=n({TABLE_EXPORT_CHUNK:()=>Wa,loadTableExport:()=>Ka,registerTableExport:()=>qa,tableExportRegistered:()=>Ja}),Wa=`table-export`,Ga=null;function Ka(){return Ga===null?H(Wa).then(()=>{if(Ga===null)throw Error(`[webority-ui] The table-export chunk ran without handing over its writers.`);return Ga}):Promise.resolve(Ga)}function qa(e){Ga=e}function Ja(){return Ga!==null}function Ya(){V(`glyphs`,Ci);for(let e of Dr)V(`glyphs-${e}`,()=>Ei(e));V(`select-chips`,()=>fa(`chips`)!==void 0),V(`select-recents`,()=>fa(`recents`)!==void 0),V(`select-search`,()=>fa(`search`)!==void 0),V(`select-window`,Zi),V(`table-export`,Ja)}var Xa={closeLabel:`Close`,error:`Error`,failedText:`That did not work. Try again.`,loading:`Loading...`,moreText:`more`,success:`Done`},Za=n({TOAST_ACTION_METHODS:()=>Qa,parseToastAction:()=>to}),Qa=Object.freeze([`POST`,`PUT`,`PATCH`,`DELETE`]),$a=e=>(pr(`[@webority/ui-elements] Wui-Toast-Action: ${e}; the toast shows no action.`),null),eo=e=>typeof e==`object`&&!!e;function to(e){if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch{return $a(`the value is not JSON`)}let n=eo(t)?t:{},r=n.label,i=n.url,a=String(n.method??`POST`).toUpperCase();return typeof r!=`string`||r===``||typeof i!=`string`||i===``?$a(`label and url must be non-empty strings`):Qa.includes(a)?{label:r,url:i,method:a}:$a(`method must be one of ${Qa.join(`, `)}`)}var no=n({FLASH_STORAGE_KEY:()=>ao,FLASH_VARIANTS:()=>ro,isToastVariant:()=>io,storeFlash:()=>oo,takeStoredFlash:()=>co}),ro=Object.freeze([`success`,`info`,`warning`,`danger`]),io=e=>ro.some(t=>t===e),ao=`wui.flash`;function oo(e,t,n){e&&window.sessionStorage.setItem(ao,JSON.stringify({message:e,variant:t,action:n??null}))}var so=e=>{if(typeof e!=`object`||!e||!(`label`in e)||!(`url`in e)||!(`method`in e))throw TypeError(`stored flash action is not an action.`);let{label:t,url:n,method:r}=e;if(typeof t!=`string`||t===``||typeof n!=`string`||n===``||typeof r!=`string`||!Qa.includes(r))throw TypeError(`stored flash action is not an action.`);return{label:t,url:n,method:r}};function co(){let e=window.sessionStorage.getItem(ao);if(e===null)return null;window.sessionStorage.removeItem(ao);let t=JSON.parse(e);if(typeof t!=`object`||!t)throw TypeError(`stored flash is not an object.`);let n=`message`in t?t.message:void 0,r=`variant`in t?t.variant:void 0;if(typeof r!=`string`||!io(r))throw TypeError(`stored flash variant "${String(r)}" is not supported.`);if(typeof n!=`string`)throw TypeError(`stored flash message is not text.`);let i=`action`in t?t.action:null;return{message:n,variant:r,action:i===null?null:so(i)}}var lo=n({parseServerHtml:()=>uo});function uo(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var fo=n({wuiHost:()=>po});function po(){return A(window.WUI,`window.WUI is not defined: the Razor behaviour script did not load on this page.`)}var mo=n({CSRF_META_NAME:()=>ho,DEFAULT_CSRF_HEADER:()=>go,DEFAULT_TIMEOUT_MS:()=>Eo,HTTP_KINDS:()=>bo,WUI_HEADERS:()=>J,WUI_REQUEST_HEADER:()=>yo,classifyStatus:()=>wo,configureCsrf:()=>vo,createRequestQueue:()=>Fo,isSameOrigin:()=>Co,readCsrf:()=>So,settleResponse:()=>No,timeoutFromAttribute:()=>Do,wuiFetch:()=>Po}),ho=`wui-csrf`,go=`RequestVerificationToken`,_o={metaName:ho,header:go};function vo({metaName:e=ho,header:t=go}={}){_o={metaName:e,header:t}}var yo=`Wui-Request`,J=Object.freeze({fragment:`Wui-Fragment`,message:`Wui-Message`,redirect:`Wui-Redirect`,result:`Wui-Result`,keepOpen:`Wui-Keep-Open`,toastVariant:`Wui-Toast-Variant`,toastAction:`Wui-Toast-Action`,refresh:`Wui-Refresh`,next:`Wui-Next`}),bo=Object.freeze([`ok`,`validation`,`forbidden`,`networkCheck`,`client`,`server`,`network`,`timeout`,`aborted`,`stale`,`session`]),xo=new Set([`GET`,`HEAD`]);function So(e=document){let t=[...e.querySelectorAll(`meta`)].find(e=>e.getAttribute(`name`)===_o.metaName),n=t?.getAttribute(`content`);return!t||!n?null:{header:t.getAttribute(`data-header`)||_o.header,token:n}}var Co=e=>{try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}};function wo(e,t=null){return e>=200&&e<300?`ok`:e===401?`session`:e===403?t?.get(`cf-mitigated`)===`challenge`?`networkCheck`:`forbidden`:e===422?`validation`:e>=400&&e<500?`client`:`server`}var To=e=>typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`,Eo=3e4;function Do(e){let t=e?.trim()??``;return/^\d+$/.test(t)?Number(t):void 0}var Oo=`The ${J.refresh} response header must be {tables, regions, reloadPage}.`,ko=e=>e===`all`||Array.isArray(e)&&e.every(e=>typeof e==`string`),Ao=e=>{if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch(e){throw TypeError(`The ${J.refresh} response header is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}if(typeof t!=`object`||!t||!(`tables`in t)||!(`regions`in t)||!(`reloadPage`in t))throw TypeError(Oo);let{tables:n,regions:r,reloadPage:i}=t;if(!ko(n)||!ko(r)||typeof i!=`boolean`)throw TypeError(Oo);return{tables:n,regions:r,reloadPage:i}},jo=(e,t)=>{if(!/json/i.test(e?.headers.get(`Content-Type`)??``)||t.trim()===``)return null;try{return JSON.parse(t)}catch(e){throw TypeError(`The JSON answer body is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}},Mo=e=>{if(e==null)return null;try{return decodeURIComponent(e)}catch{return e}};function No(e,t=null,n=``){let r=e=>t?.headers.get(e)??null;return{kind:e,ok:e===`ok`,status:t?.status??0,html:n,response:t,message:Mo(r(J.message)),redirect:r(J.redirect),result:r(J.result),keepOpen:r(J.keepOpen)===`1`,toastVariant:r(J.toastVariant),toastAction:to(r(J.toastAction)),fragment:r(J.fragment)===`1`,data:jo(t,n),next:r(J.next),refresh:Ao(Mo(r(J.refresh)))}}async function Po(e,t={}){let n=(t.method||`GET`).toUpperCase(),r=t.navigate||(e=>window.location.assign(e)),i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[yo]:`1`,...t.headers};if(!xo.has(n)&&Co(e)){let e=So();e&&(i[e.header]=e.token)}let a=new AbortController,o=()=>a.abort(),s=t.signal;s?.aborted&&a.abort(),s?.addEventListener(`abort`,o,{once:!0});let c=t.timeoutMs??0,l=!1,u=c>0?setTimeout(()=>{l=!0,a.abort()},c):void 0,d=e=>s?.aborted?`aborted`:l?`timeout`:To(e)?`aborted`:`network`;try{let o;try{o=await fetch(e,{method:n,...t.body===void 0?{}:{body:t.body},headers:i,signal:a.signal,credentials:`same-origin`})}catch(e){return No(d(e))}let s=wo(o.status,o.headers);if(s===`ok`&&o.redirected&&o.headers.get(J.fragment)!==`1`&&(s=`session`),s===`session`)return r(o.status===401?o.headers.get(`Location`)||window.location.href:o.url),No(s,o);let c=``;if(s===`ok`||s===`validation`)try{c=await o.text()}catch(e){return No(d(e),o)}return No(s,o,c)}finally{clearTimeout(u),s?.removeEventListener(`abort`,o)}}function Fo(){let e=null,t=0;return{async run(n,r={}){e?.abort();let i=new AbortController;e=i;let a=++t,o=r.signal;o&&(o.aborted?i.abort():o.addEventListener(`abort`,()=>i.abort(),{once:!0}));let s;try{s=await Po(n,{...r,signal:i.signal})}finally{e===i&&(e=null)}return a!==t&&s.kind!==`aborted`?{...s,kind:`stale`,ok:!1}:s},abort(){e?.abort(),e=null}}}var Io=n({REFRESH_ATTR:()=>zo,REGION_KEY_ATTR:()=>Ro,REGION_SRC_ATTR:()=>Lo,refreshRegions:()=>Ho}),Lo=`data-wui-region-src`,Ro=`data-wui-region-key`,zo=`data-wui-refresh`,Bo=new WeakSet,Vo=new Map;async function Ho(e=`all`){if(e!==`all`&&e.length===0)return;let t=e===`all`?null:new Set(e),n=new Map;for(let e of document.querySelectorAll(`[${Lo}]`)){if(!(e instanceof HTMLElement)||e.getAttribute(`data-wui-refresh`)===`none`)continue;let r=e.getAttribute(`data-wui-region-src`)??``,i=e.getAttribute(Ro);if(!i){Bo.has(e)||(Bo.add(e),mr(Error(`A [${Lo}] element needs ${Ro}: ${r}`)));continue}if(t&&!t.has(i))continue;let a=n.get(r)??[];a.push(e),n.set(r,a)}await Promise.all([...n].map(([e,t])=>Uo(e,t)))}async function Uo(e,t){let n=(Vo.get(e)??0)+1;Vo.set(e,n);let r=await Po(e);if(Vo.get(e)!==n||r.kind===`aborted`||r.kind===`stale`||r.kind===`session`)return;if(!r.ok){pr(`A region refresh failed; the region keeps its content.`,e,r.kind);return}let i=new Map;for(let e of uo(r.html).querySelectorAll(`[${Ro}]`)){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(Ro);t!==null&&!i.has(t)&&i.set(t,e)}for(let n of t){if(!n.isConnected)continue;let t=n.getAttribute(`data-wui-region-key`)??``,r=i.get(t);r?Wo(n,r):pr(`A region refresh reply has no element for the region's key; the region keeps its content.`,e,t)}}function Wo(e,t){for(let t of Array.from(e.children))t.dispatchEvent(new CustomEvent(`wui:teardown`,{bubbles:!0}));e.replaceChildren(...Array.from(t.childNodes,e=>document.importNode(e,!0))),e.hidden=t.hidden;let n=t.getAttribute(`title`);n===null?e.removeAttribute(`title`):e.setAttribute(`title`,n);for(let t of Array.from(e.classList))t.startsWith(`tone-`)&&e.classList.remove(t);for(let n of Array.from(t.classList))n.startsWith(`tone-`)&&e.classList.add(n);po().refresh(e)}var Go=n({getServerTable:()=>Yo,isServerTableWired:()=>Jo,registerServerTable:()=>qo}),Ko=new WeakMap;function qo(e,t){Ko.set(e,t)}function Jo(e){return Ko.has(e)}function Yo(e){let t=e instanceof Element?e.closest(`[data-wui-server]`):null;return t instanceof HTMLElement&&Ko.get(t)||null}var Xo=n({applyPlan:()=>fs,applyRefresh:()=>ms,holdInDialog:()=>ss,isRefreshOff:()=>Qo,mergePlans:()=>ns,planOf:()=>$o,planReloads:()=>rs,refreshAfter:()=>ps,refreshesNothing:()=>cs,reloadPage:()=>as,reloadsPage:()=>is,setDialogHold:()=>os}),Zo=null;function Qo(e){return e?.getAttribute(`data-wui-refresh`)===`none`}function $o(e){if(!e.ok)return null;let t=e.message,n=e.toastVariant||`success`,r=e.toastAction,i=e.refresh;return i===null?{tables:`all`,regions:`all`,reload:`auto`,message:t,variant:n,action:r}:{tables:i.tables,regions:i.regions,reload:i.reloadPage?`page`:`never`,message:t,variant:n,action:r}}var es={never:0,auto:1,page:2},ts=(e,t)=>e===`all`||t===`all`?`all`:[...new Set([...e,...t])];function ns(e,t){return e===null?t:{tables:ts(e.tables,t.tables),regions:ts(e.regions,t.regions),reload:es[e.reload]>=es[t.reload]?e.reload:t.reload,message:t.message,variant:t.variant,action:t.action}}function rs(e){return e.reload===`page`||e.reload===`auto`&&document.querySelector(`[data-wui-server]`)===null}function is(e){let t=$o(e);return t!==null&&rs(t)}function as(){let e=new URL(window.location.href);e.hash=``,window.location.assign(e.href)}function os(e){Zo=e}function ss(e,t){return Zo?Zo(t,e):!1}function cs(e){return e!==null&&e.tables!==`all`&&e.tables.length===0&&e.regions!==`all`&&e.regions.length===0&&e.reload===`never`}var ls=e=>[e.querySelector(`.table-wrap`)?.id??``,e.id].filter(e=>e!==``),us=(e,t)=>{let n=[...document.querySelectorAll(`[data-wui-server]`)].filter(e=>e instanceof HTMLElement),r=n;if(e.tables!==`all`){let t=e.tables,i=new Set(n.flatMap(ls));for(let e of t)i.has(e)||pr(`A refresh names the table "${e}", which is not on this page.`);r=n.filter(e=>ls(e).some(e=>t.includes(e)))}return r.filter(e=>(!t||e!==t&&!e.contains(t))&&!Qo(e))},ds=async e=>{await Yo(e)?.reload({quiet:!0})};async function fs(e,t={}){if(t.origin&&ss(e,t.origin))return`held`;if(rs(e)&&(e.reload===`page`||t.allowReload!==!1))return oo(e.message,e.variant,e.action),as(),`reloaded`;let n=us(e,t.skip).map(e=>ds(e).catch(mr));return(e.regions===`all`||e.regions.length>0)&&n.push(Ho(e.regions).catch(mr)),await Promise.all(n),`refreshed`}async function ps(e,t={}){let n=$o(e);return n===null?`none`:fs(n,t)}async function ms(){await fs({tables:`all`,regions:`all`,reload:`never`,message:null,variant:`success`,action:null},{allowReload:!1})}var hs=n({TOAST_ACTION_MS:()=>gs,runToastAction:()=>xs,showResultToast:()=>ys,showToast:()=>bs}),gs=8e3,_s=()=>L(`toast`,Xa);function vs(e){if(!io(e))throw RangeError(`Unknown toast variant "${e}".`);return e}function ys(e,t=`success`){e?.message&&bs(e.message,t,e.toastAction)}function bs(e,t,n=null){n?po().toast(e,{variant:vs(t),duration:gs,action:{label:n.label,onClick:e=>void xs(n,e)}}):po().toast(e,{variant:vs(t)})}async function xs(e,t=null){let n=await Po(e.url,{method:e.method});n.kind!==`session`&&n.kind!==`aborted`&&(n.ok?(is(n)||ys(n,n.toastVariant||`success`),await ps(n,{origin:t})):po().toast(n.message||_s().failedText,{variant:`danger`}))}var Ss=n({HTTP_FAILURE_TEXT:()=>Cs}),Cs={networkCheckText:`A network check stopped this request. Try again, or report it if it keeps happening.`,networkText:`We could not reach the server. Check your network or firewall and try again.`},ws=n({SERVER_CHUNK:()=>Ts,SHELL_CHUNK:()=>Es,loadServer:()=>ks,loadShell:()=>Ms,loadedServer:()=>As,loadedShell:()=>Ns,registerServer:()=>js,registerShellParts:()=>Ps}),Ts=`server`,Es=`shell`,Ds=null,Os=null;V(Ts,()=>Ds!==null),V(Es,()=>Os!==null);function ks(){return Ds===null?H(Ts).then(()=>{if(Ds===null)throw Error(`[webority-ui] The server chunk ran without handing over its modules.`);return Ds}):Promise.resolve(Ds)}function As(){return Ds}function js(e){Ds=e}function Ms(){return Os===null?H(Es).then(()=>{if(Os===null)throw Error(`[webority-ui] The shell chunk ran without handing over its modules.`);return Os}):Promise.resolve(Os)}function Ns(){return Os}function Ps(e){Os=e}var Fs=`[data-wui-confirm]:not(form), [data-wui-post], [data-wui-row-action], [data-wui-modal], [data-wui-drawer], [data-wui-pane]`,Is=`form[data-wui-post-form], form[data-wui-confirm]`,Ls=`[data-wui-confirm]`,Rs=`a[href]:is([data-wui-modal], [data-wui-drawer], [data-wui-pane]):not([data-wui-confirm], [data-wui-post])`,zs=new WeakSet,Bs=new WeakMap;function Vs(e=document){zs.has(e)||(zs.add(e),e.addEventListener(`click`,Hs,!0),e.addEventListener(`submit`,Us,!0))}function Hs(e){if(As()!==null||!(e.target instanceof Element))return;let t=e.target.closest(Fs);t instanceof HTMLElement&&((e.ctrlKey||e.metaKey||e.shiftKey||e.button!==0)&&t.matches(Rs)||Ws(e,t,()=>t.click()))}function Us(e){if(As()!==null||!(e.target instanceof HTMLFormElement))return;let t=e.target,n=e.submitter??null;(t.matches(Is)||(n?.matches(Ls)??!1))&&Ws(e,t,()=>Gs(t,n))}function Ws(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),Bs.has(t)||(Bs.set(t,!0),ks().then(()=>{Bs.delete(t),t.isConnected&&n()},()=>{Bs.delete(t),bs(L(`httpFailure`,Cs).networkText,`danger`)}))}function Gs(e,t){let n=t instanceof HTMLButtonElement||t instanceof HTMLInputElement?t.form===e:!1;t!==null&&n?e.requestSubmit(t):e.requestSubmit()}var Ks=n({APP_BUTTON_MARKER:()=>qs,buttonClass:()=>Zs}),qs=`AppButton`,Js=new Set([`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Ys={solid:e=>`btn-${e}`,soft:e=>`btn-soft-${e}`,outline:e=>`btn-outline-${e}`,ghost:e=>`btn-ghost-${e}`,link:e=>`btn-link-${e}`,glass:()=>`btn-glass`};function Xs(e){return Er(Ys,e)}function Zs(e=`primary`,t=`solid`,n=`md`){if(!Js.has(e))throw RangeError(`buttonClass: unknown tone "${e}"`);if(!Xs(t))throw RangeError(`buttonClass: unknown variant "${t}"`);let r=Ys[t](e);return n===`md`?`btn ${r}`:`btn ${r} btn-${n}`}var Qs=n({DISPLAY_FORMAT:()=>ic,MONTH_DISPLAY_FORMAT:()=>cc,YEAR_DISPLAY_FORMAT:()=>fc,clampMonth:()=>hc,daysIn:()=>mc,firstWeekday:()=>ec,fmt:()=>ac,fmtMonth:()=>lc,fmtYear:()=>pc,pad:()=>tc,parseIso:()=>rc,parseIsoMonth:()=>oc,parseIsoYear:()=>uc,toIso:()=>nc,toIsoMonth:()=>sc,toIsoYear:()=>dc}),$s=e=>{let t=String(e??``).trim();return/^[0-6]$/.test(t)?Number(t):null},ec=e=>$s(e.getAttribute(`first-day`))??$s(getComputedStyle(e).getPropertyValue(`--wui-first-day`))??1,tc=e=>String(e).padStart(2,`0`),nc=(e,t,n)=>`${e}-${tc(t+1)}-${tc(n)}`,rc=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r,i]=t;if(n===void 0||r===void 0||i===void 0)throw Error(`ISO date parts missing`);let a=+n,o=+r,s=+i;return o<1||o>12||s<1||s>mc(a,o-1)?null:{y:a,m:o-1,d:s}},ic=`dd-MMM-yyyy`,ac=(e,t=ic)=>{let n=rc(e);if(!n)return``;let r={yyyy:n.y,MMMM:gt(n.m),MMM:ht(n.m),MM:tc(n.m+1),dd:tc(n.d),d:n.d};return(t||`dd-MMM-yyyy`).replace(/yyyy|MMMM|MMM|MM|dd|d/g,e=>String(r[e]))},oc=e=>{let t=/^(\d{4})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r]=t;if(n===void 0||r===void 0)throw Error(`ISO month parts missing`);let i=+r;return i<1||i>12?null:{y:+n,m:i-1}},sc=(e,t)=>`${e}-${tc(t+1)}`,cc=`MMM yyyy`,lc=(e,t=cc)=>{let n=oc(e);if(!n)return``;let r={yyyy:n.y,MMMM:gt(n.m),MMM:ht(n.m),MM:tc(n.m+1)};return(t||`MMM yyyy`).replace(/yyyy|MMMM|MMM|MM/g,e=>String(r[e]))},uc=e=>{let t=/^(\d{4})$/.exec(e||``);if(!t)return null;let[,n]=t;if(n===void 0)throw Error(`ISO year part missing`);return{y:+n}},dc=e=>String(e).padStart(4,`0`),fc=`yyyy`,pc=(e,t=fc)=>{let n=uc(e);return n?(t||`yyyy`).replace(/yyyy/g,String(n.y)):``},mc=(e,t)=>{let n=new Date(0);return n.setFullYear(e,t+1,0),n.getDate()},hc=(e,t)=>{for(;t<0;)t+=12,--e;for(;t>11;)t-=12,e+=1;return{y:e,m:t}},gc=n({COPY_FEEDBACK_MS:()=>_c,copyTextToClipboard:()=>vc}),_c=2e3;async function vc(e){if(!navigator.clipboard?.writeText)return!1;try{return await navigator.clipboard.writeText(e),!0}catch(e){if(!(e instanceof DOMException))throw e;return!1}}var yc=n({DATA_TABLE_TEXT:()=>bc}),bc={actionFailedMessage:`That did not work. Try again.`,actionForbiddenMessage:`You do not have permission to do that.`,collapseRowLabel:`Collapse row`,densityComfortableLabel:`Comfortable rows`,densityCompactLabel:`Compact rows`,densityLabel:`Row density`,empty:`No records found.`,emptyLabel:`No rows`,errorText:`These rows did not load. Try again.`,expandLabel:`Expand`,expandRowLabel:`Expand row`,exportCsvLabel:`Download CSV`,exportExcelLabel:`Download Excel`,forbiddenMessage:`You do not have access to these rows.`,groupRowsOne:`1 row`,groupRowsOther:`{count} rows`,loadingText:`Loading rows`,moreActionsForText:`More actions for {firstValue}`,networkMessage:`The connection dropped before the rows loaded. Check it and try again.`,pageTextOne:`Page {page} of {pages}, {total} row`,pageTextOther:`Page {page} of {pages}, {total} rows`,pageTextPending:`Page {page}`,resizeColumnLabel:`Resize column`,resizeColumnText:`Resize {label} column`,resizeText:`{px} pixels`,retryLabel:`Retry`,rowActionsLabel:`Actions`,rowSavedText:`Row saved.`,rowWasNotSavedText:`Row was not saved.`,rowsSavedText:`{n} rows saved.`,saveBusyLabel:`Saving`,saveDoneLabel:`Saved`,saveFailedLabel:`Not saved`,savedText:`{label} saved.`,selectAllRowsLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`,timeoutMessage:`The server did not answer in time. Check your connection and try again.`,wasNotSavedText:`{label} was not saved.`},xc=n({COLUMN_MAX_WIDTH:()=>Cc,COLUMN_MIN_WIDTH:()=>48,PIN_AT_VAR:()=>Uc,PIN_SIDES:()=>Ec,RESIZE_STEP:()=>10,RESIZE_STEP_LARGE:()=>50,ROW_HEIGHTS:()=>Oc,ROW_MOVE_LIMIT:()=>200,ROW_MOVE_MS:()=>220,ROW_SAVE_ATTR:()=>nl,ROW_SAVE_ERROR_CLASS:()=>rl,ROW_SAVE_STATES:()=>tl,ROW_STATUS_CLASS:()=>il,VIRTUAL_OVERSCAN:()=>8,clampColumnWidth:()=>Ic,groupCount:()=>Fc,groupItems:()=>Lc,groupRowsText:()=>jc,identityCell:()=>al,measureRows:()=>Qc,notSavedText:()=>Pc,paintSaveStatus:()=>cl,pinAtValue:()=>Wc,pinClasses:()=>Kc,pinOffsetVar:()=>Hc,planPins:()=>Gc,playRowMoves:()=>$c,readColumnWidths:()=>Bc,resizeName:()=>kc,rowLabel:()=>ol,rowOrderChanged:()=>el,saveOutcomeText:()=>dl,savedManyText:()=>Nc,savedText:()=>Mc,setRowSaveState:()=>ll,settledRows:()=>ul,virtualRange:()=>Rc,widthText:()=>Ac,writeColumnWidths:()=>Vc}),Sc=48,Cc=1200,wc=10,Tc=50,Ec=[`start`,`end`],Dc=8,Oc={comfortable:72,cozy:48,compact:40},Y=()=>L(`dataTable`,bc),kc=e=>e?R(Y().resizeColumnText,{label:e}):Y().resizeColumnLabel,Ac=e=>R(Y().resizeText,{px:e}),jc=e=>gn(Y(),`groupRows`,e,{count:P(e,{decimals:0})}),Mc=e=>e?R(Y().savedText,{label:e}):Y().rowSavedText,Nc=e=>R(Y().rowsSavedText,{n:P(e,{decimals:0})}),Pc=(e,t)=>`${e?R(Y().wasNotSavedText,{label:e}):Y().rowWasNotSavedText}${t?` ${t}`:``}`,Fc=e=>P(e,{decimals:0}),Ic=e=>Math.min(Cc,Math.max(48,Math.round(Number(e)||0)));function Lc(e,t,n=[]){let r=new Map(n.map(e=>[e,[]]));return e.forEach((e,n)=>{let i=t(e,n),a=r.get(i);a||(a=[],r.set(i,a)),a.push(e)}),[...r].filter(([,e])=>e.length>0).map(([e,t])=>({key:e,items:t}))}function Rc({scrollTop:e,viewport:t,rowHeight:n,count:r,overscan:i=8}){let a=n>0?n:Oc.cozy,o=Math.floor(Math.max(0,e)/a),s=Math.max(0,o-i);s-=s%2;let c=Math.min(r,o+Math.ceil(Math.max(0,t)/a)+i),l=Math.min(s,c);return{start:l,end:c,before:l*a,after:Math.max(0,r-c)*a}}var zc=e=>`wui-widths:${e}`;function Bc(e){if(!e)return{};try{let t=JSON.parse(window.localStorage.getItem(zc(e))||`{}`),n={};if(t&&typeof t==`object`)for(let[e,r]of Object.entries(t))Number.isFinite(r)&&(n[e]=Ic(r));return n}catch{return{}}}function Vc(e,t){if(e)try{Object.keys(t).length?window.localStorage.setItem(zc(e),JSON.stringify(t)):window.localStorage.removeItem(zc(e))}catch(e){if(!(e instanceof DOMException))throw e}}var Hc=(e,t)=>`--wui-pin-${e}-${t}`,Uc=`--wui-pin-at`,Wc=(e,t)=>`var(${Hc(e,t)}, 0px)`;function Gc(e){let t=e.map(()=>null),n=-1;e.forEach((e,t)=>{e===`start`&&(n=t)});let r=0;for(let i=0;i<=n;i++)(e[i]===`start`||e[i]===`lead`)&&(t[i]={side:`start`,ordinal:r++,edge:!1});let i=t[n];i&&(i.edge=!0);let a=-1;r=0;for(let n=e.length-1;n>=0;n--)e[n]===`end`&&(t[n]={side:`end`,ordinal:r++,edge:!1},a=n);let o=t[a];return o&&(o.edge=!0),t}var Kc=e=>e?`wui-pin-${e.side}${e.edge?` wui-pin-${e.side}-edge`:``}`:``,qc=200,Jc=220,Yc=`cubic-bezier(0.22, 1, 0.36, 1)`,Xc=()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,Zc=e=>e.getAttribute(`data-row-key`)??e;function Qc(e){let t=[...e];if(t.length>200)return null;let n=new Map;for(let e of t)e.hidden||n.set(Zc(e),e.offsetTop);return n}function $c(e,t){let n=[...e];if(!t||n.length>200||Xc())return 0;let r=0;for(let e of n){if(e.hidden||typeof e.animate!=`function`)continue;let n=t.get(Zc(e));if(n===void 0)continue;let i=n-e.offsetTop;Math.abs(i)<1||(e.animate([{transform:`translateY(${i}px)`},{transform:`translateY(0)`}],{duration:220,easing:Yc}),r++)}return r}function el(e,t){if(!e||!t)return!1;let n=new Set(t),r=new Set(e),i=e.filter(e=>n.has(e)),a=t.filter(e=>r.has(e));return i.some((e,t)=>e!==a[t])}var tl=[`saving`,`error`,`saved`],nl=`data-wui-save-state`,rl=`wui-row-save-error`,il=`wui-row-status`,al=e=>{let t=e.querySelector(`:scope > .wui-name-cell`);return t instanceof HTMLTableCellElement?t:[...e.cells].find(e=>!e.matches(`.wui-select-cell, .wui-expand-cell`))??null};function ol(e){let t=al(e);if(!t)return``;let n=t.querySelector(`.u-name`);if(n)return(n.textContent??``).trim();let r=``;for(let e of t.childNodes)e instanceof Element&&(e.classList.contains(`wui-row-save-error`)||e.classList.contains(`wui-row-status`))||(r+=e.textContent??``);return r.replace(/\s+/g,` `).trim()}function sl(e,t){let n=e.closest(`.table-wrap`);if(!n?.hasAttribute(`data-wui-save-labels`))return null;let r=Y();return t===`saving`?n.getAttribute(`data-wui-save-busy`)??r.saveBusyLabel:t===`saved`?n.getAttribute(`data-wui-save-done`)??r.saveDoneLabel:n.getAttribute(`data-wui-save-failed`)??r.saveFailedLabel}function cl(e,t){e.querySelector(`:scope > * > .${il}`)?.remove();let n=t===null?null:sl(e,t),r=n===null?null:al(e);if(t!==null&&n!==null&&r){let i=e.ownerDocument.createElement(`span`);i.className=`${il} ${il}-${t}`,i.textContent=n,r.prepend(i)}let i=t===`saving`&&n!==null;e.querySelectorAll(`.u-row-actions`).forEach(e=>{e.toggleAttribute(`hidden`,i)})}function ll(e,t,n=``){if(t!==null&&!tl.includes(t))throw Error(`A row's save state is ${tl.join(` or `)} (or null to clear it), not "${t}".`);e.querySelector(`:scope > * > .${rl}`)?.remove(),t===null?e.removeAttribute(nl):e.setAttribute(nl,t),t===`saving`?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),cl(e,t);let r=t===`error`&&n?al(e):null;if(r){let t=e.ownerDocument.createElement(`span`);t.className=rl,t.textContent=n,r.append(t)}}function ul(e,t){let n=[];if(!e)return n;for(let[r,i]of e){let e=t.get(r);i.state===`saving`&&e&&e.state!==`saving`&&n.push({label:e.label,ok:e.state!==`error`,message:e.message||``})}return n}function dl(e){let t=e.filter(e=>e.ok),n=[],[r]=t;t.length===1&&r?n.push(Mc(r.label)):t.length>1&&n.push(Nc(t.length));for(let t of e)t.ok||n.push(Pc(t.label,t.message));return n.join(` `)}var fl=n({isDrawn:()=>pl});function pl(e){return typeof e.checkVisibility==`function`?e.checkVisibility():e.closest(`[hidden]`)===null&&getComputedStyle(e).display!==`none`}var ml=n({MENTION_ID_PATTERN:()=>hl,mentionLabel:()=>vl,mentionTextFromValue:()=>xl,mentionValueFromText:()=>Sl,mentionedIds:()=>Cl,parseMentionValue:()=>bl}),hl=/^[A-Za-z0-9_.:-]{1,64}$/,gl=/@(\\+)\[|@\[([^[\]\n]{1,100})\]\(([A-Za-z0-9_.:-]{1,64})\)/g,_l=/@(\\*)\[/g;function vl(e){return String(e??``).replace(/[[\]\r\n]+/g,` `).replace(/\s+/g,` `).trim().slice(0,100)}var yl=e=>e.replace(_l,(e,t)=>`@\\${t}[`);function bl(e){let t=String(e??``),n=[],r=e=>{if(!e)return;let t=n[n.length-1];t&&`text`in t?t.text+=e:n.push({text:e})},i=0;for(let e of t.matchAll(gl))r(t.slice(i,e.index)),e[1]===void 0?n.push({id:e[3]??``,label:e[2]??``}):r(`@${e[1].slice(1)}[`),i=e.index+e[0].length;return r(t.slice(i)),n}function xl(e){let t=``,n=[];for(let r of bl(e)){if(`text`in r){t+=r.text;continue}let e=`@${r.label}`;n.push({start:t.length,end:t.length+e.length,id:r.id,label:r.label}),t+=e}return{text:t,mentions:n}}function Sl(e,t=[]){let n=String(e??``),r=[...t].sort((e,t)=>e.start-t.start),i=``,a=0;for(let e of r)e.start<a||n.slice(e.start,e.end)!==`@${e.label}`||!hl.test(e.id)||(i+=yl(n.slice(a,e.start)),i+=`@[${e.label}](${e.id})`,a=e.end);return i+yl(n.slice(a))}function Cl(e){let t=[];for(let n of bl(e))`id`in n&&!t.includes(n.id)&&t.push(n.id);return t}var wl=n({bindMenuKeys:()=>kl}),Tl=500,El=10,Dl=new Set([`INPUT`,`TEXTAREA`,`SELECT`]);function Ol(e){return e instanceof HTMLElement?Dl.has(e.tagName)||e.isContentEditable:!1}function kl(e,t){let{items:n,typeahead:r=!0}=t,i=``,a=null,o=()=>{a!==null&&clearTimeout(a),a=null,i=``},s=e=>{let t=n().filter(pl),s=t.length;if(s===0)return;let c=e.target,l=t.findIndex(e=>c instanceof Node&&e.contains(c)),u=n=>{e.preventDefault(),e.stopPropagation(),t[n]?.focus()},d=Ol(c);if(e.key===`ArrowDown`){u(l<0?0:(l+1)%s);return}if(e.key===`ArrowUp`){u(l<0?s-1:(l-1+s)%s);return}if(e.key===`Home`&&!d){u(0);return}if(e.key===`End`&&!d){u(s-1);return}if(e.key===`PageDown`){u(Math.min((l<0?-1:l)+El,s-1));return}if(e.key===`PageUp`){u(Math.max((l<0?s:l)-El,0));return}if(!r||!/^\S$/.test(e.key)||e.ctrlKey||e.metaKey||e.altKey||d)return;e.preventDefault(),e.stopPropagation(),a!==null&&clearTimeout(a),i+=e.key.toLowerCase(),a=setTimeout(o,Tl);let f=i.length>1&&Array.from(i).every(e=>e===i[0]),p=f?i[0]??``:i,m=i.length===1||f?l+1:Math.max(l,0);for(let e=0;e<s;e++){let n=(m+e)%s;if((t[n]?.textContent??``).trim().toLowerCase().startsWith(p)){t[n]?.focus();return}}};return e.addEventListener(`keydown`,s),()=>{e.removeEventListener(`keydown`,s),o()}}var Al=n({NOTIFICATION_CENTRE_TEXT:()=>jl}),jl={allLabel:`All`,allReadText:`All notifications marked as read.`,archivedLabel:`Archived`,clientMessage:`These could not be marked as read. Refresh the page and try again.`,earlierLabel:`See earlier`,emptyText:`You are all caught up.`,errorText:`Notifications did not load`,forbiddenMessage:`You do not have permission to mark these as read.`,label:`Notifications`,loadingText:`Loading notifications…`,markAllLabel:`Mark all read`,networkMessage:`Could not reach the server, so these were not marked as read. Check your connection and try again.`,noneUnreadText:`No unread notifications`,retryLabel:`Try again`,scrollTabsBackwardLabel:`Scroll tabs backward`,scrollTabsForwardLabel:`Scroll tabs forward`,serverMessage:`Something went wrong on our side, so these were not marked as read. Try again in a moment.`,todayLabel:`Today`,unreadAnnouncementTextOne:`{unread} unread notification`,unreadAnnouncementTextOther:`{unread} unread notifications`,unreadLabel:`Unread`,unreadPrefixText:`Unread:`,unreadWordLabel:`unread`,viewAllLabel:`View all`,yesterdayLabel:`Yesterday`},Ml=n({NOTIFICATION_COUNT_CAP:()=>99,groupNotificationsByDay:()=>Vl,notificationCountText:()=>Il,notificationDayHeading:()=>Bl,notificationTime:()=>zl,notificationTriggerLabel:()=>Ll,notificationUnreadAnnouncement:()=>Rl}),Nl=99,Pl=864e5,Fl=()=>L(`notificationCentre`,jl);function Il(e){return e>99?`99+`:String(e)}function Ll(e,t){return t===0?e:`${e}, ${Il(t)} ${Fl().unreadWordLabel}`}function Rl(e){return e===0?Fl().noneUnreadText:gn(Fl(),`unreadAnnouncementText`,e,{unread:Il(e)})}function zl(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?``:I(e,{pattern:`time`})}function Bl(e,t=Date.now()){let n=I(e);return n===I(t)?Fl().todayLabel:n===I(F(t)-Pl)?Fl().yesterdayLabel:n}function Vl(e,t=Date.now()){let n=new Map;for(let r of e){if(!Number.isFinite(F(r.at)))throw Error(`<AppNotificationCenter> item "${r.id}": at must be an ISO date-time with its zone (or a YYYY-MM-DD day), got ${String(r.at)}.`);let e=I(r.at),i=n.get(e);i||(i={key:e,heading:Bl(r.at,t),items:[]},n.set(e,i)),i.items.push(r)}return[...n.values()]}var Hl={daysAgoTextOne:`{count} day ago`,daysAgoTextOther:`{count} days ago`,hoursAgoTextOne:`{count} hour ago`,hoursAgoTextOther:`{count} hours ago`,inDaysTextOne:`in {count} day`,inDaysTextOther:`in {count} days`,inHoursTextOne:`in {count} hour`,inHoursTextOther:`in {count} hours`,inMinutesTextOne:`in {count} minute`,inMinutesTextOther:`in {count} minutes`,justNowText:`just now`,minutesAgoTextOne:`{count} minute ago`,minutesAgoTextOther:`{count} minutes ago`},Ul=n({RELATIVE_LIMIT_DAYS:()=>7,formatRelativeTime:()=>Xl,relativeTimeTitle:()=>Zl}),Wl=6e4,Gl=60*Wl,Kl=24*Gl,ql=()=>L(`relativeTime`,Hl),Jl={minute:`minutesAgoText`,hour:`hoursAgoText`,day:`daysAgoText`},Yl={minute:`inMinutesText`,hour:`inHoursText`,day:`inDaysText`};function Xl(e,t=Date.now()){let n=F(e);if(!Number.isFinite(n))return N();let r=t-n,i=Math.abs(r);if(i>=7*Kl)return I(n);if(i<Wl)return ql().justNowText;let[a,o]=i<Gl?[Math.floor(i/Wl),`minute`]:i<Kl?[Math.floor(i/Gl),`hour`]:[Math.floor(i/Kl),`day`];return gn(ql(),(r>0?Jl:Yl)[o],a)}function Zl(e){let t=F(e);return Number.isFinite(t)?`${I(t,{pattern:`datetime`})} IST`:N()}var Ql=n({FALLBACK_ROW_HEIGHT:()=>36,SELECT_WINDOW_OVERSCAN:()=>8,createHeightIndex:()=>eu,scrollTopToReveal:()=>nu,windowRange:()=>tu}),$l=.5;function eu(e,t=36){let n=Math.max(0,Math.floor(e)),r=new Float64Array(n),i=null,a=e=>{let t=e>=0&&e<n?r[e]??0:0;return t>0?t:s.estimate},o=()=>{if(i)return i;let e=new Float64Array(n+1);for(let t=0;t<n;t++)e[t+1]=(e[t]??0)+a(t);return i=e,e},s={count:n,estimate:t,setEstimate(e){!(e>0)||Math.abs(e-s.estimate)<=$l||(s.estimate=e,i=null)},set(e,t){if(e<0||e>=n||!(t>0))return!1;let o=a(e);return r[e]=t,Math.abs(o-t)<=$l?!1:(i=null,!0)},heightOf:a,offsetOf(e){return o()[Math.min(Math.max(0,Math.floor(e)),n)]??0},total(){return o()[n]??0},indexAt(e){if(n===0)return 0;let t=o(),r=0,i=n-1;for(;r<i;){let n=r+i+1>>1;(t[n]??0)<=e?r=n:i=n-1}return r}};return s}function tu(e,t){if(e.count===0)return{start:0,end:0,before:0,after:0};let{overscan:n=8}=t,r=Math.max(0,t.scrollTop),i=e.indexAt(r),a=e.indexAt(r+Math.max(0,t.viewport)),o=Math.max(0,i-n),s=Math.min(e.count,a+1+n);return{start:o,end:s,before:e.offsetOf(o),after:e.total()-e.offsetOf(s)}}function nu(e,t,n){let r=e.offsetOf(t),i=r+e.heightOf(t);return r<n.scrollTop?r:i>n.scrollTop+n.viewport?i-n.viewport:n.scrollTop}var ru=n({WuiPostError:()=>iu}),iu=class extends Error{constructor(e,t){super(e,t.cause===void 0?void 0:{cause:t.cause}),z(this,`code`,void 0),z(this,`status`,void 0),z(this,`html`,void 0),z(this,`body`,void 0),z(this,`kind`,void 0),this.name=`WuiPostError`,this.code=t.code,this.status=t.status,this.html=t.html,this.body=t.body,this.kind=t.kind}},au=n({forgetShell:()=>cu,registerShell:()=>su,wiredShell:()=>lu}),ou=new WeakMap;function su(e,t){ou.set(e,t)}function cu(e){ou.delete(e)}function lu(e){let t=e?.closest(`[data-app-shell]`);return(t&&ou.get(t))??null}var uu=n({wuiUpload:()=>pu}),du=new Set([204,205,304]),fu=e=>{let t=new Headers;for(let n of e.split(/\r?\n/)){let e=n.indexOf(`:`);e>0&&t.append(n.slice(0,e).trim(),n.slice(e+1).trim())}return t};async function pu(e,t,n={}){if(!(t instanceof FormData))throw TypeError(`wuiUpload: body must be FormData`);let r=n.timeoutMs;if(r!==void 0&&!(Number.isFinite(r)&&r>0))throw TypeError(`wuiUpload: timeoutMs must be a positive number`);let i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[yo]:`1`,...n.headers};if(Co(e)){let e=So();e&&(i[e.header]=e.token)}let a=n.signal,o=n.navigate||(e=>window.location.assign(e));return a?.aborted?No(`aborted`):new Promise(s=>{let c=new XMLHttpRequest,l=!1,u,d=()=>c.abort(),f=(e,t=null,n=``)=>{u!==void 0&&clearTimeout(u),a?.removeEventListener(`abort`,d),s(No(e,t,n))};c.upload.onprogress=e=>{n.onProgress?.(e.loaded,e.lengthComputable?e.total:0)},c.onload=()=>{let t=c.status;if(t===0){f(`network`);return}let n=fu(c.getAllResponseHeaders()),r=wo(t,n),i=c.responseURL!==``&&c.responseURL!==new URL(e,window.location.href).href;r===`ok`&&i&&n.get(J.fragment)!==`1`&&(r=`session`);let a=c.responseText,s=r===`ok`||r===`validation`?a:``;if(t<200||t>599){f(r,null,s);return}let l=new Response(du.has(t)?null:a,{status:t,headers:n});r===`session`?(o(t===401?n.get(`Location`)||window.location.href:c.responseURL),f(`session`,l)):f(r,l,s)},c.onerror=()=>f(`network`),c.onabort=()=>{f(a?.aborted?`aborted`:l?`timeout`:`aborted`)},r!==void 0&&(u=setTimeout(()=>{l=!0,c.abort()},r)),a?.addEventListener(`abort`,d,{once:!0}),c.open(`POST`,e,!0);for(let[e,t]of Object.entries(i))c.setRequestHeader(e,t);c.send(t)})}var mu=n({deriveStepStatus:()=>hu,stepperHeaderItems:()=>gu});function hu(e,t){return typeof t==`number`?e<t?`done`:e===t?`active`:`pending`:`pending`}function gu(e,t){let{statusOf:n,journey:r,connectors:i}=t;return e.map((t,a)=>{let o=n(a),s;return s=o===`done`?{icon:`check`}:o===`error`?{icon:`alert-triangle`}:o===`skipped`?{icon:`minus`}:t.icon?{icon:t.icon}:{number:a+1},{index:a,status:o,className:o===`pending`?`step`:`step ${o}`,glyph:s,current:o===`active`,line:r&&i&&a<e.length-1?{done:o===`done`}:null}})}var _u={selectAllLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`},vu=n({GROUP_SELECT_CLASS:()=>bu,SELECT_CELL_CLASS:()=>X,addRowSelectCells:()=>Au,addSelectColumn:()=>ju,attachShiftRange:()=>Fu,createGroupSelectCell:()=>Tu,createSelectHeaderCell:()=>Su,createSelectRowCell:()=>Cu,createSelectSpacerCell:()=>wu,groupRowsOf:()=>Eu,syncGroupSelect:()=>Nu,syncSelectAll:()=>Mu}),yu=()=>L(`tableSelect`,_u),X=`wui-select-cell`,bu=`wui-group-select`,xu=(e,t)=>{let n=e.createElement(`input`);return n.type=`checkbox`,n.className=`form-check-input`,n.setAttribute(`aria-label`,t),n};function Su(e=document){let t=e.createElement(`th`);return t.className=X,t.appendChild(xu(e,yu().selectAllLabel)),t}function Cu(e=document,{disabled:t=!1}={}){let n=e.createElement(`td`);n.className=X;let r=xu(e,yu().selectRowLabel);return r.disabled=t,n.appendChild(r),n}function wu(e=document){let t=e.createElement(`td`);return t.className=X,t}function Tu(e,t){let n=e.createElement(`td`);return n.className=`${X} ${bu}`,n.appendChild(xu(e,R(yu().selectGroupLabel,{group:t}))),n}function Eu(e){let t=[];for(let n=e.nextElementSibling;n instanceof HTMLTableRowElement&&!n.matches(`.wui-group-row, .wui-virtual-spacer`);n=n.nextElementSibling)n.matches(`.wui-row-expanded`)||t.push(n);return t}var Du=e=>e.firstElementChild?.classList.contains(X),Ou=e=>e.matches(`.wui-group-row, .wui-virtual-spacer, .wui-row-expanded`),ku=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n);function Au(e){for(let t of e){if(Du(t)||Ou(t))continue;let e=t.getAttribute(`data-row-selectable`)===`false`;t.insertBefore(Cu(t.ownerDocument,{disabled:e}),t.firstChild)}}function ju(e){let t=e.querySelector(`thead tr`);if(!(t instanceof HTMLTableRowElement))return null;Du(t)||t.insertBefore(Su(e.ownerDocument),t.firstChild),Au(ku(e,`tbody tr`,HTMLTableRowElement));for(let t of ku(e,`tfoot tr`,HTMLTableRowElement))Du(t)||t.insertBefore(wu(e.ownerDocument),t.firstChild);let n=t.querySelector(`.${X} .form-check-input`);return n instanceof HTMLInputElement?n:null}function Mu(e){let t=e.querySelector(`thead .${X} .form-check-input`),n=ku(e,`tbody tr:not(.wui-group-row) .form-check-input:not(:disabled)`,HTMLInputElement),r=n.length,i=n.filter(e=>e.checked).length;t instanceof HTMLInputElement&&(t.checked=r>0&&i===r,t.indeterminate=i>0&&i<r);for(let t of ku(e,`tbody tr:not(.wui-group-row)`,HTMLTableRowElement)){let e=t.querySelector(`.form-check-input`);t.classList.toggle(`is-selected`,e instanceof HTMLInputElement&&e.checked)}return{selected:i,total:r}}function Nu(e){for(let t of ku(e,`tbody tr.wui-group-row`,HTMLTableRowElement)){let e=t.querySelector(`.${bu} .form-check-input`);if(!(e instanceof HTMLInputElement))continue;let n=Eu(t).flatMap(e=>ku(e,`.${X} .form-check-input:not(:disabled)`,HTMLInputElement)),r=n.filter(e=>e.checked).length;e.disabled=n.length===0,e.checked=r>0&&r===n.length,e.indeterminate=r>0&&r<n.length}}var Pu=`tbody tr:not(.wui-group-row) .${X} .form-check-input:not(:disabled)`;function Fu(e,t){let n=null,r=e=>e instanceof Element&&e.matches(`.wui-select-cell .form-check-input:not(:disabled)`)&&!!e.closest(`tbody`)&&!e.closest(`tr.wui-group-row`);e.addEventListener(`mousedown`,e=>{e.shiftKey&&r(e.target)&&e.preventDefault()}),e.addEventListener(`click`,i=>{let a=i.target;if(r(a)){if(i.shiftKey&&n?.isConnected&&n!==a){let r=ku(e,Pu,HTMLInputElement),i=r.indexOf(n),o=r.indexOf(a);if(i>=0&&o>=0){let e=[];for(let t of r.slice(Math.min(i,o),Math.max(i,o)+1))t!==a&&t.checked!==a.checked&&(t.checked=a.checked,e.push(t));e.length&&t?.(e,a.checked)}}n=a}})}var Iu=n({DATE_PICKER_TEXT:()=>Lu}),Lu={chooseMonthYearLabel:`Choose month and year`,chooseYearLabel:`Choose year`,clearLabel:`Clear`,dateTimeLabel:`Time`,helpLabel:`More information`,monthPlaceholder:`Choose a month`,nextDecadeLabel:`Next decade`,nextMonth:`Next month`,nextYearLabel:`Next year`,optionalLabel:`(optional)`,placeholder:`Choose a date`,previousDecadeLabel:`Previous decade`,previousMonth:`Previous month`,previousYearLabel:`Previous year`,todayLabel:`Today`,yearPlaceholder:`Choose a year`,zoneNote:`Times are shown in {zone}.`},Ru=n({DRAWER_TEXT:()=>zu}),zu={closeLabel:`Close`,confirmDiscard:`Discard your changes?`,discardLabel:`Discard`,keepLabel:`Keep editing`,screenText:`{now}% of the screen`,sheetHeightLabel:`Sheet height`},Bu=n({matchSegments:()=>Vu});function Vu(e,t){let n=String(e??``),r=String(t??``).trim();if(!r||!n)return[{text:n,match:!1}];let i=n.toLowerCase(),a=r.toLowerCase();if(i.length!==n.length)return[{text:n,match:!1}];let o=[],s=0,c=i.indexOf(a,s);for(;c!==-1;)c>s&&o.push({text:n.slice(s,c),match:!1}),o.push({text:n.slice(c,c+a.length),match:!0}),s=c+a.length,c=i.indexOf(a,s);return s<n.length&&o.push({text:n.slice(s),match:!1}),o}var Hu=n({TOOLTIP_ATTRIBUTE:()=>Uu,TOOLTIP_CLASS_ATTRIBUTE:()=>Gu,TOOLTIP_ID_ATTRIBUTE:()=>Ku,TOOLTIP_OPEN_ATTRIBUTE:()=>qu,TOOLTIP_PLACEMENT_ATTRIBUTE:()=>Wu,TOOLTIP_SHORTCUT_ATTRIBUTE:()=>Ju,showPinnedTooltips:()=>Xu,wireTooltips:()=>Yu}),Uu=`data-wui-tooltip`,Wu=`data-wui-tooltip-placement`,Gu=`data-wui-tooltip-class`,Ku=`data-wui-tooltip-id`,qu=`data-wui-tooltip-open`,Ju=`data-wui-tooltip-shortcut`;function Yu(e){ed.has(e)||(ed.add(e),e.addEventListener(`pointerover`,t=>{let n=ad(t.target);n&&!sd(e,n)&&ud(e,n,!1)}),e.addEventListener(`pointerout`,t=>{let n=nd(e).transient;n&&ad(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||dd(e,n))}),e.addEventListener(`focusin`,t=>{let n=t.target;if(!(n instanceof Element)||!n.matches(`:focus-visible`))return;let r=ad(n);r&&!sd(e,r)&&ud(e,r,!1)}),e.addEventListener(`focusout`,t=>{let n=nd(e).transient;n&&ad(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||dd(e,n))}),e.addEventListener(`click`,t=>{let n=nd(e).transient;n&&ad(t.target)===n.trigger&&dd(e,n)}))}function Xu(e){let t=e instanceof Document?e:e.ownerDocument;for(let n of e.querySelectorAll(`[${qu}]`))ud(t,n,!0)}var Zu=[`top`,`bottom`,`start`,`end`],Qu=`wui-tooltip`,$u=`[${Uu}], [${Ku}]`,ed=new WeakSet,td=new WeakMap;function nd(e){let t=td.get(e);return t||(t={bubble:null,transient:null,pinned:new Map,pinnedCount:0,onEscape:t=>{t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),fd(e))}},td.set(e,t)),t}function rd(e){return Zu.includes(e)}function id(e){return e===`auto`||rd(e)}function ad(e){if(!(e instanceof Element))return null;let t=e.closest($u);return t instanceof HTMLElement?t:null}function od(e,t){return e.transient?.trigger===t?e.transient:e.pinned.get(t)}function sd(e,t){return od(nd(e),t)!==void 0}function cd(e,t){let n=e.createElement(`div`);n.id=t,n.setAttribute(`role`,`tooltip`),n.setAttribute(`popover`,`manual`);let r=e.createElement(`div`);r.className=`tooltip-arrow`;let i=e.createElement(`div`);return i.className=`tooltip-inner`,n.append(r,i),{el:n,arrow:r,inner:i}}function ld(e,t){return t.bubble||=cd(e,Qu),t.bubble}function ud(e,t,n){let r=t.getAttribute(Uu),i=t.getAttribute(Ku);if(r===null&&i===null)throw Error(`a tooltip trigger carries ${Uu} or ${Ku}`);if(r!==null&&i!==null)throw Error(`a tooltip trigger carries ${Uu} or ${Ku}, not both`);let a=t.getAttribute(`data-wui-tooltip-placement`)??`top`;if(!id(a))throw Error(`${Wu} "${a}" is not auto, top, bottom, start or end`);let o=nd(e);dd(e,n?o.pinned.get(t):o.transient);let s,c=null,l=null,u=!1;if(i!==null){let t=e.getElementById(i);if(!(t instanceof HTMLElement))throw Error(`no element with id "${i}" for a tooltip`);s=t,c=e.createComment(`wui-tooltip`),s.replaceWith(c),l=s.getAttribute(`popover`),s.setAttribute(`popover`,`manual`)}else{let i=n?cd(e,`${Qu}-pinned-${++o.pinnedCount}`):ld(e,o);u=n;let c=t.getAttribute(`data-wui-tooltip-class`)??``;i.el.className=`tooltip wui-tooltip bs-tooltip-${a} ${c}`.trim();let l=t.getAttribute(Ju);i.inner.replaceChildren(r??``,...l?[j(`span`,{class:`wui-kbd`},l)]:[]),s=i.el}let d=t.getAttribute(`aria-describedby`);t.setAttribute(`aria-describedby`,s.id);let f=()=>w(t,s,{side:a,align:`center`,gap:6,arrow:s.querySelector(`.tooltip-arrow`)});Ie(e).append(s),s.showPopover(),f();let p=Le(e=>{s.parentElement!==e&&e.append(s),Pe(s),f()},e),m=new MutationObserver(()=>{t.isConnected||dd(e,od(nd(e),t))});m.observe(e,{childList:!0,subtree:!0});let h={el:s,trigger:t,pinned:n,own:u,home:c,popover:l,describedBy:d,watch:m,unroot:p};n?o.pinned.set(t,h):o.transient=h,e.addEventListener(`keydown`,o.onEscape,!0)}function dd(e,t){if(!t)return;let n=nd(e);t.pinned?n.pinned.delete(t.trigger):n.transient=null,!n.transient&&n.pinned.size===0&&e.removeEventListener(`keydown`,n.onEscape,!0),t.watch.disconnect(),t.unroot(),t.el.hidePopover(),t.home?(t.popover===null?t.el.removeAttribute(`popover`):t.el.setAttribute(`popover`,t.popover),t.home.replaceWith(t.el)):t.own&&t.el.remove(),t.describedBy===null?t.trigger.removeAttribute(`aria-describedby`):t.trigger.setAttribute(`aria-describedby`,t.describedBy)}function fd(e){let t=nd(e);dd(e,t.transient);for(let n of[...t.pinned.values()])dd(e,n)}var pd=n({nowIn:()=>_d,todayIn:()=>gd,wallClockOf:()=>hd}),md=e=>e instanceof Date?e.getTime():e;function hd(e,t=M){return new Date(e+nt(e,t)).toISOString().slice(0,19)}function gd(e=M,t=Date.now()){return hd(md(t),e).slice(0,10)}function _d(e=M,t=Date.now()){let n=md(t);return new Date(n+nt(n,e))}var vd=Object.freeze({anchorOverlay:d,avatarNode:lr,buttonClass:Ks,calendarMath:Qs,copyText:gc,dataTable:xc,dataTableText:yc,datePickerText:Iu,defineElement:r,devWarn:fr,dom:ze,drawerText:Ru,elementBase:a,fieldState:hr,flash:no,formatters:Qt,formMirror:yr,glyphs:bi,hasOwn:Tr,httpFailureText:Ss,iconGlyphs:bi,imeSafeEnter:Di,isDrawn:fl,listboxKeyNav:Ai,loader:Pr,mentionText:ml,menuKeyNav:wl,nativeOverlay:ne,notificationCentreText:Al,notificationDays:Ml,optionLabel:Pi,partRegistry:la,postError:ru,refreshAfter:Xo,regions:Io,relativeTime:Ul,rtl:c,selectList:Gi,selectRemote:ha,selectText:Ui,selectWindow:Ql,server:ws,serverHtml:lo,serverTableRegistry:Go,shellRegistry:au,shortcutKeys:Cn,stepperHeader:mu,svgNodes:si,tableExport:Ua,tableSelect:vu,textMatch:Bu,textStore:$t,toastAction:hs,toastHeader:Za,tooltips:Hu,wuiHost:fo,wuiHttp:mo,wuiUpload:uu,WuiSelect:ba,zone:pd}),yd={avatarCropFailed:`That photo could not be saved. Try again, or choose another one.`,avatarDialogSubtitle:`Drag to position the photo, then zoom or rotate it.`,avatarDialogTitle:`Edit photo`,avatarSave:`Save photo`,cameraLabel:`Take photo`,cancel:`Cancel`,changeLabel:`Change photo`,closeLabel:`Close`,cropFailed:`That image could not be cropped. Choose another one.`,dialogSubtitle:`Drag the frame and zoom to choose what to keep.`,dialogTitle:`Crop photo`,heicUnreadableMessage:`This browser cannot open HEIC photos. Choose a JPG, PNG or WebP image instead.`,optionalLabel:`(optional)`,overlayLabel:`Update photo`,photoUnreadableMessage:`That photo could not be opened. Choose a JPG, PNG or WebP image.`,removeLabel:`Remove photo`,save:`Apply`,unreadable:`That image could not be opened. Choose another one.`,uploadLabel:`Upload photo`},bd=`image/jpeg,image/png,image/webp,image/heic,image/heif,.heic,.heif`,xd=10,Sd=512,Cd=`image/webp`,wd=[96,48];function Td(e){if(!e)return!1;let t=String(e.type||``).toLowerCase();return t===`image/heic`||t===`image/heif`||/\.hei[cf]$/i.test(String(e.name||``))}function Ed(e){let t=L(`imagePicker`,yd);return Td(e)?t.heicUnreadableMessage:t.photoUnreadableMessage}function Dd(e,t){let n=Number(t);return{name:e?.name||`photo`,type:Cd,size:Number.isInteger(n)&&n>0?n:512}}var Od=`/`,kd=`.search-wrap.wui-search-collapsible`,Ad=`.wui-topsearch-panel`,jd=`.modal, wui-drawer[open]`,Md=new WeakSet,Nd=e=>{let t=e.querySelector(`.wui-search-toggle`);return t instanceof HTMLElement?t:null},Pd=e=>{let t=e.querySelector(`.search-input`);return t instanceof HTMLInputElement?t:null},Fd=e=>[...e.querySelectorAll(kd)].filter(e=>e instanceof HTMLElement);function Id(e){e.classList.remove(`is-collapsed`),Nd(e)?.setAttribute(`aria-expanded`,`true`),Pd(e)?.focus()}function Ld(e){Pd(e)?.value||(e.classList.add(`is-collapsed`),Nd(e)?.setAttribute(`aria-expanded`,`false`))}function Rd(e){if(e.dataset.wuiCollapseWired)return;e.dataset.wuiCollapseWired=`1`;let t=Nd(e),n=Pd(e);t?.addEventListener(`click`,()=>Id(e)),n?.addEventListener(`keydown`,r=>{r.key!==`Escape`||n?.value||(r.preventDefault(),Ld(e),t?.focus())}),e.addEventListener(`focusout`,t=>{let n=t.relatedTarget;n instanceof Node&&e.contains(n)||Ld(e)})}function zd(e){Md.has(e)||(Md.add(e),e.addEventListener(`keydown`,t=>{if(t.key!==`/`||t.ctrlKey||t.altKey||t.metaKey||t.defaultPrevented||Bn(t.target instanceof Node?t.target:null)||t.target instanceof Element&&t.target.closest(jd)||e.querySelector(Ad))return;let n=Fd(e).find(e=>e.offsetParent!==null);n&&(t.preventDefault(),Id(n))}))}function Bd(e=document){let t=e;for(let e of Fd(t))Rd(e);zd(e instanceof Element?e.ownerDocument:e)}var Vd=`data-wui-command-shortcut`,Hd=`k`,Ud=new WeakSet,Wd=/ \(Ctrl\+([^)]+)\)$/;function Gd(e=navigator){return/mac|iphone|ipad/i.test(e.userAgentData?.platform??e.platform)}function Kd(e,t){return!(e.ctrlKey||e.metaKey)||e.altKey||e.shiftKey||e.repeat?!1:String(e.key).toLowerCase()===String(t).toLowerCase()}function qd(e){return e.nodeType===Node.DOCUMENT_NODE}function Jd(e){e.closest(`wui-modal`)?.show()}function Yd(e){if(Gd())for(let t of e.querySelectorAll(`[${Vd}]`)){let e=t.getAttribute(`placeholder`);e!==null&&t.setAttribute(`placeholder`,e.replace(Wd,(e,t)=>` (⌘${t})`))}}function Xd(e){let t=qd(e)?e:e.ownerDocument;e.querySelector(`[data-wui-command-shortcut]`)&&(Yd(t),Ud.has(t)||(Ud.add(t),t.addEventListener(`keydown`,e=>{for(let n of t.querySelectorAll(`[${Vd}]`))if(Kd(e,n.getAttribute(`data-wui-command-shortcut`)||Hd)){e.preventDefault(),n.localName===`wui-command-palette`||n.localName===`wui-modal`?Jd(n):(n.focus(),`select`in n&&typeof n.select==`function`&&n.select());return}})))}var Zd={audioLabel:`audio`,byteLabel:`B`,chooseText:`Choose {label}.`,gigabyteLabel:`GB`,imagesLabel:`images`,keepFileUnderMbText:`Keep the file under {maxSizeMb} MB.`,kilobyteLabel:`KB`,megabyteLabel:`MB`,orText:`{names} or {last}`,supportedLabel:`supported`,textFileLabel:`text file`,videosLabel:`videos`},Z=()=>L(`fileValidation`,Zd),Qd=`image/png,image/jpeg,image/webp`,$d=5,ef={"image/png":[`.png`],"image/jpeg":[`.jpg`,`.jpeg`],"image/webp":[`.webp`],"image/gif":[`.gif`],"image/svg+xml":[`.svg`],"image/heic":[`.heic`],"image/heif":[`.heif`],"application/pdf":[`.pdf`],"text/plain":[`.txt`]},tf={"image/png":`PNG`,"image/jpeg":`JPG`,"image/webp":`WEBP`,"image/gif":`GIF`,"image/svg+xml":`SVG`,"image/heic":`HEIC`,"image/heif":`HEIC`,"application/pdf":`PDF`,".png":`PNG`,".jpg":`JPG`,".jpeg":`JPG`,".webp":`WEBP`,".gif":`GIF`,".svg":`SVG`,".heic":`HEIC`,".heif":`HEIC`,".pdf":`PDF`},nf={"text/plain":`textFileLabel`,".txt":`textFileLabel`,"image/*":`imagesLabel`,"video/*":`videosLabel`,"audio/*":`audioLabel`},rf=new Set([`image/*`,`video/*`,`audio/*`]),af=e=>{let t=nf[e];return t?Z()[t]:tf[e]},of=e=>String(e||``).split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean),sf=[`.png`,`.jpg`,`.jpeg`,`.webp`,`.gif`,`.svg`,`.bmp`,`.avif`,`.heic`,`.heif`];function cf(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t.startsWith(`image/`);let n=typeof e==`string`?e:e.name||e.url||``,r=String(n).toLowerCase();return sf.some(e=>r.endsWith(e))}var lf=[`kilobyteLabel`,`megabyteLabel`,`gigabyteLabel`];function uf(e){if(e<1024)return`${e} ${Z().byteLabel}`;let t=e/1024,n=0;for(;t>=1024&&n<lf.length-1;)t/=1024,n+=1;return`${t.toFixed(1)} ${Z()[lf[n]??`gigabyteLabel`]}`}function df(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t===`application/pdf`;let n=typeof e==`string`?e:e.name||e.url||``;return String(n).toLowerCase().replace(/[?#][\s\S]*$/,``).endsWith(`.pdf`)}function ff(e){let t=of(e);return t.length?t.every(e=>e.startsWith(`.`)?sf.includes(e):e===`image/*`||e.startsWith(`image/`)):!1}function pf(e){let t=[];for(let n of of(e)){let e=af(n)||(n.startsWith(`.`)?n.slice(1).toUpperCase():n.toUpperCase());t.includes(e)||t.push(e)}return t.length<=1?t[0]||Z().supportedLabel:R(Z().orText,{names:t.slice(0,-1).join(`, `),last:t.slice(-1).join(``)})}function mf(e,t){let n=of(t);if(!n.length)return!0;let r=(e.type||``).toLowerCase(),i=(e.name||``).toLowerCase();return n.some(e=>e.startsWith(`.`)?i.endsWith(e):e.endsWith(`/*`)?r.startsWith(e.slice(0,-1)):r&&r===e?!0:!r&&(ef[e]||[]).some(e=>i.endsWith(e)))}function hf(e,t={}){if(!e)return null;let n=t.accept===void 0?Qd:t.accept,r=t.maxSizeMb===void 0?5:t.maxSizeMb;if(!mf(e,n)){let e=pf(n),t=of(n).map(e=>rf.has(e));return t.every(Boolean)?R(Z().chooseText,{label:e}):t.some(Boolean)?R(Z().chooseText,{label:e.endsWith(` file`)?`${e}s`:`${e} files`}):R(Z().chooseText,{label:`a ${e.endsWith(` file`)?e:`${e} file`}`})}return r!==null&&r>0&&e.size>r*1024*1024?R(Z().keepFileUnderMbText,{maxSizeMb:r}):null}function gf(e,t){let n=Array.from(e||[]),r=t.multiple?n:n.slice(0,1),i=[],a=[];for(let e of r){let n=hf(e,{accept:t.accept,maxSizeMb:t.maxSizeMb});n?a.push({file:e,message:n}):i.push(e)}return{files:i,rejections:a}}function _f(e,t){let{overClass:n,isDisabled:r=()=>!1,onFiles:i,onReject:a,...o}=t,s=0,c=t=>e.classList.toggle(n,t),l=e=>{e.preventDefault(),r()||(s+=1,c(!0))},u=e=>{e.preventDefault(),r()||c(!0)},d=e=>{e.preventDefault(),r()||(s=Math.max(0,s-1),s===0&&c(!1))},f=e=>{if(e.preventDefault(),s=0,c(!1),r())return;let{files:t,rejections:n}=gf(e.dataTransfer?.files,o);t.length&&i(t);let l=n[0];l&&a(l)};return e.addEventListener(`dragenter`,l),e.addEventListener(`dragover`,u),e.addEventListener(`dragleave`,d),e.addEventListener(`drop`,f),()=>{e.removeEventListener(`dragenter`,l),e.removeEventListener(`dragover`,u),e.removeEventListener(`dragleave`,d),e.removeEventListener(`drop`,f)}}var vf={aadhaarMessage:`Enter a valid 12-digit Aadhaar number`,amountMessage:`Enter a valid amount`,dateMessage:`Enter a valid date as DD-MM-YYYY`,gstinMessage:`Enter a valid GSTIN`,ifscMessage:`Enter a valid IFSC`,incompleteMessage:`Enter the full value`,panMessage:`Enter a valid PAN`,phoneInMessage:`Enter a 10-digit mobile number`,pinCodeMessage:`Enter a valid 6-digit PIN code`},yf=/[0-9]/,bf={9:yf,A:/[A-Za-z]/,"*":/[0-9A-Za-z]/},xf=/[9A*]/,Sf=new Set([`text`,`tel`,`search`,`url`,`password`]),Cf=e=>{let t=e.replace(/\D/g,``);return t.length===12&&t.startsWith(`91`)?t.slice(2):t.length===11&&t.startsWith(`0`)?t.slice(1):e},wf=e=>{let t=Number(e.slice(0,2)),n=Number(e.slice(2,4)),r=Number(e.slice(4,8));if(r<1)return!1;let i=new Date(Date.UTC(r,n-1,t));return i.getUTCFullYear()===r&&i.getUTCMonth()===n-1&&i.getUTCDate()===t},Tf=e=>e.length<=3?e:`${e.slice(0,-3).replace(/\B(?=(\d{2})+(?!\d))/g,`,`)},${e.slice(-3)}`,Ef=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());return t?`${t[3]}-${t[2]}-${t[1]}`:e},Q=()=>L(`inputMask`,vf);function Df(e,{upper:t=!1,normalize:n,valid:r,post:i=e=>e,message:a=Q().incompleteMessage}={}){let o=[...e].map(e=>{let t=bf[e];return t?{re:t}:{lit:e}}),s=o.filter(e=>e.re).length;return{inputMode:o.every(e=>!e.re||e.re===yf)?`numeric`:`text`,normalize:n,post:i,message:a,extract(e){let n=``,r=0;for(let i of e){for(;r<o.length&&o[r]?.lit!==void 0&&o[r]?.lit!==i;)r++;if(r>=o.length)break;let e=o[r];e?.lit===void 0?e?.re.test(i)&&(n+=t?i.toUpperCase():i,r++):r++}return n},layout(e){let t=``,n=[],r=0;for(let i=0;i<o.length&&r<e.length;i++){let a=o[i];a?.lit===void 0?(t+=e.charAt(r++),n.push(!0)):(t+=a.lit,n.push(!1))}return{text:t,isRaw:n}},isValid:e=>e.length===s&&(!r||r(e))}}function Of(){return{inputMode:`decimal`,post:e=>e,message:Q().amountMessage,extract(e){let t=``,n=!1,r=0;for(let i of e)yf.test(i)?n?r<2&&(t+=i,r++):t+=i:i===`.`&&!n&&(n=!0,t+=i);return t.startsWith(`.`)&&(t=`0${t}`),t.replace(/^0+(?=\d)/,``)},layout(e){let[t=``,n]=e.split(`.`),r=Tf(t)+(e.includes(`.`)?`.${n}`:``);return{text:r,isRaw:[...r].map(e=>e!==`,`)}},isValid:e=>/^\d+(\.\d{1,2})?$/.test(e)}}var kf={"phone-in":()=>Df(`99999 99999`,{normalize:Cf,valid:e=>/^[6-9]/.test(e),message:Q().phoneInMessage}),pan:()=>Df(`AAAAA9999A`,{upper:!0,valid:e=>/^[A-Z]{5}\d{4}[A-Z]$/.test(e),message:Q().panMessage}),gstin:()=>Df(`99AAAAA9999A***`,{upper:!0,valid:e=>/^\d{2}[A-Z]{5}\d{4}[A-Z][1-9A-Z]Z[0-9A-Z]$/.test(e),message:Q().gstinMessage}),aadhaar:()=>Df(`9999 9999 9999`,{valid:e=>/^[2-9]/.test(e),message:Q().aadhaarMessage}),ifsc:()=>Df(`AAAA*******`,{upper:!0,valid:e=>/^[A-Z]{4}0[A-Z0-9]{6}$/.test(e),message:Q().ifscMessage}),"pin-code":()=>Df(`999999`,{valid:e=>/^[1-9]/.test(e),message:Q().pinCodeMessage}),date:()=>Df(`99-99-9999`,{normalize:Ef,valid:wf,post:(e,t)=>e.length===8&&wf(e)?`${e.slice(4)}-${e.slice(2,4)}-${e.slice(0,2)}`:t,message:Q().dateMessage}),amount:Of},Af=Object.keys(kf),jf=e=>{let t=String(e).toLowerCase();return Er(kf,t)?t:void 0},Mf=e=>xf.test(String(e))&&jf(e)===void 0,Nf=new Map;un(()=>Nf.clear());function Pf(e){if(e==null||e===``)return null;let t=String(e),n=Nf.get(t);return n===void 0&&(n=Mf(t)?Df(t):Er(kf,t)?kf[t]?.()??null:null,Nf.set(t,n)),n}var $=(e,t)=>e.normalize?e.normalize(t):t;function Ff(e,t){let n=Pf(e);return n?n.extract($(n,String(t??``))):String(t??``)}function If(e,t){let n=Pf(e);if(!n)return String(t??``);let r=n.extract($(n,String(t??``)));return n.post(r,n.layout(r).text)}function Lf(e,t){let n=Pf(e);return n?n.layout(n.extract($(n,String(t??``)))).text:String(t??``)}var Rf=(e,t)=>{if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(e[r]&&++n===t)return r+1;return e.length},zf=new WeakMap,Bf=e=>zf.get(e)?.(),Vf=new WeakMap;function Hf(e,t,n,r){let i=e.getAll(t),a=Vf.get(e)??new Set;Vf.set(e,a);let o=i.findIndex((e,r)=>e===n&&!a.has(`${t}\u0000${r}`));if(!(o<0)){if(a.add(`${t}\u0000${o}`),i[o]=r,i.length===1)e.set(t,r);else{e.delete(t);for(let n of i)e.append(t,n)}}}function Uf(e){let t=null,n=null,r=!1,i=(t,n)=>{n===null?e.removeAttribute(t):n!==void 0&&e.setAttribute(t,n)},a,o,s=()=>{t?.remove(),t=null,n&&(n.hidden=!1),n=null,r&&e.classList.remove(`error`),r=!1,i(`aria-invalid`,a),i(`aria-describedby`,o),a=void 0,o=void 0};return i=>{if(!i){s();return}let c=e.closest(`.field`),l=c instanceof HTMLElement?c:null,u=l?.querySelector(`.field-error`);if(!(u&&u!==t&&u.textContent?.trim())){if(!t){if(r=!e.classList.contains(`error`),e.classList.add(`error`),a=e.getAttribute(`aria-invalid`),o=e.getAttribute(`aria-describedby`),l){t=document.createElement(`div`),t.className=`field-error`,e.id&&(t.id=`${e.id}-error`);let r=l.querySelector(`.field-hint`);n=r instanceof HTMLElement?r:null,n&&(n.hidden=!0),l.insertBefore(t,[...l.children].find(e=>e.classList.contains(`field-count`))??null),t.id&&e.setAttribute(`aria-describedby`,t.id)}e.setAttribute(`aria-invalid`,`true`)}t&&(t.textContent=i)}}}function Wf(e,{mask:t,postFormatted:n=!1,onChange:r,onInvalidChange:i}={}){let a=Pf(t);if(!a||!Sf.has(e.type))return()=>{};let o=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(o,`value`);if(!s?.set)throw Error(`input value setter missing`);let c=s.set,l=!e.hasAttribute(`inputmode`);l&&e.setAttribute(`inputmode`,a.inputMode);let u=i??Uf(e),d=null,f=!1,p=!1,m=!1,h=``,g=``,_,v=()=>{let e=m?h:``;e!==g&&(g=e,u(g))},y=(t,n,i)=>{let o=a.extract(t.slice(0,n)).length,s=a.extract(t),{text:l,isRaw:u}=a.layout(s);if(e.value!==l&&(c.call(e,l),document.activeElement===e&&Sf.has(e.type))){let t=Rf(u,o);e.setSelectionRange(t,t)}e.dataset.maskRaw=s,h=s&&!a.isValid(s)?a.message:``,e.setCustomValidity(h),v(),i&&s!==d&&r?.(s,l),d=s},b=Object.getOwnPropertyDescriptor(e,`value`),x=b??s;Object.defineProperty(e,"value",{configurable:!0,...x.enumerable===void 0?{}:{enumerable:x.enumerable},get:()=>A(x.get,`input value getter missing`).call(e),set:t=>{if(A(x.set,`input value setter missing`).call(e,t),p)return;let n=$(a,e.value);y(n,n.length,!0)}});let S=()=>{f=!0,e.dispatchEvent(new Event(`input`,{bubbles:!0})),f=!1},C=t=>{let n=t instanceof InputEvent?t:null;if(f||p||n?.isComposing)return;let r=n?.inputType===`insertText`&&(n.data?.length??0)<=1||n?.inputType?.startsWith(`delete`)?e.value:$(a,e.value);y(r,e.selectionStart??r.length,!0)},ee=()=>{p=!0},w=()=>{p=!1;let t=$(a,e.value);y(t,e.selectionStart??t.length,!0),S()},te=t=>{let n=t.inputType===`deleteContentBackward`;if(!n&&t.inputType!==`deleteContentForward`||t.isComposing)return;let r=e.selectionStart;if(r==null||r!==e.selectionEnd)return;let{isRaw:i}=a.layout(a.extract(e.value)),o=n?r-1:r;for(;o>=0&&o<i.length&&!i[o];)o+=n?-1:1;o!==(n?r-1:r)&&(t.preventDefault(),o<0||o>=i.length||(y(e.value.slice(0,o)+e.value.slice(o+1),n?o:r,!0),S()))},T=t=>{if(e.readOnly||e.disabled)return;let n=t.clipboardData?.getData(`text`);if(n==null)return;t.preventDefault();let r=$(a,n),i=e.selectionStart??e.value.length,o=e.selectionEnd??i;y(e.value.slice(0,i)+r+e.value.slice(o),i+r.length,!0),S()},ne=()=>{let t=a.extract(e.value);return a.post(t,a.layout(t).text)},E=()=>{m=!0,v()};e.addEventListener(`input`,C),e.addEventListener(`beforeinput`,te),e.addEventListener(`paste`,T),e.addEventListener(`compositionstart`,ee),e.addEventListener(`compositionend`,w),e.addEventListener(`blur`,E),e.addEventListener(`invalid`,E);let D=e.form,O=t=>{e.name&&!e.disabled&&Hf(t.formData,e.name,e.value,ne())},re=()=>{clearTimeout(_),_=setTimeout(()=>{m=!1,y($(a,e.value),e.value.length,!0)},0)};n||(D?.addEventListener(`formdata`,O),zf.set(e,ne)),D?.addEventListener(`reset`,re),D?.addEventListener(`submit`,E);let ie=$(a,e.value);return y(ie,ie.length,!1),()=>{clearTimeout(_),e.removeEventListener(`input`,C),e.removeEventListener(`beforeinput`,te),e.removeEventListener(`paste`,T),e.removeEventListener(`compositionstart`,ee),e.removeEventListener(`compositionend`,w),e.removeEventListener(`blur`,E),e.removeEventListener(`invalid`,E),D?.removeEventListener(`formdata`,O),D?.removeEventListener(`reset`,re),D?.removeEventListener(`submit`,E),zf.delete(e),b?Object.defineProperty(e,"value",b):Reflect.deleteProperty(e,`value`),m=!1,h=``,v(),e.setCustomValidity(``),delete e.dataset.maskRaw,l&&e.removeAttribute(`inputmode`)}}function Gf(){let e=typeof window>`u`?void 0:window.jQuery?.validator?.prototype;if(!e||e.wuiMaskHook)return;let t=e.elementValue;e.elementValue=function(e){let n=Bf(e);return n===void 0?t.call(this,e):n},e.wuiMaskHook=!0}var Kf=new WeakMap,qf,Jf=e=>{Kf.has(e)||Kf.set(e,Wf(e,{mask:e.dataset.appMask,postFormatted:e.hasAttribute(`data-mask-post-formatted`)}))},Yf=e=>[...e.querySelectorAll(`input[data-app-mask]`)].filter(e=>e instanceof HTMLInputElement),Xf=e=>e instanceof Element?[...e instanceof HTMLInputElement&&e.matches(`input[data-app-mask]`)?[e]:[],...Yf(e)]:[];function Zf(){qf||typeof MutationObserver>`u`||(qf=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Xf(e))Kf.get(t)?.(),Kf.delete(t);for(let e of t.addedNodes)for(let t of Xf(e))Jf(t)}}),qf.observe(document.documentElement,{childList:!0,subtree:!0}))}function Qf(e=document){Gf();for(let t of Yf(e))Jf(t);e===document&&Zf()}var $f=`data-wui-bulk-in-bar`,ep=`[data-wui-page-header-bar][data-wui-bulk-for]`,tp=new WeakSet;function np(e){return`${P(e,{decimals:0})} selected`}function rp(e){let t=e.dataset.wuiBulkFor;return t===void 0?null:document.getElementById(t)}function ip(e){return typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`}function ap(e,t){return[...e.querySelectorAll(t)].flatMap(e=>e instanceof HTMLElement?[e]:[])}function op(e,t){for(let n of ap(e,`[data-wui-bar-swap]`))n.hidden=t>0;let n=e.querySelector(`[data-wui-bar-bulk]`);if(!n)return;if(!(n instanceof HTMLElement))throw Error(`The bulk slot is not an HTML element.`);n.hidden=t===0;let r=n.querySelector(`.page-header-bar-bulk-count`);if(!(r instanceof HTMLElement))throw Error(`The bulk slot has no count element.`);r.textContent=t>0?np(t):``}function sp(e=document){for(let t of ap(e,ep))rp(t)?.setAttribute($f,``);tp.has(document)||(tp.add(document),document.addEventListener(`selectionchange`,e=>{if(!(e instanceof CustomEvent)||!ip(e.detail))return;let t=e.target;if(t!==null&&!(t instanceof Node))throw Error(`The selection changed on a target that is not a node.`);for(let n of ap(document,ep))rp(n)?.contains(t)&&op(n,e.detail.selected)}))}var cp={digitText:`At least one digit`,lengthText:`At least {minLength} characters long`,lowercaseText:`At least one lowercase letter`,requirementsTitle:`Password requirements`,specialText:`At least one special character`,uniqueCharsTextOne:`At least {n} unique character`,uniqueCharsTextOther:`At least {n} unique characters`,uppercaseText:`At least one uppercase letter`},lp={minLength:10,uppercase:!0,lowercase:!0,digit:!0,special:!0,uniqueChars:0,customRules:[]},up=()=>L(`passwordRules`,cp);function dp(e){return e===!0||e==null?{...lp}:{...lp,...e}}function fp(e){let t=dp(e),n=[];if(t.minLength>0&&n.push({key:`length`,label:R(up().lengthText,{minLength:t.minLength}),test:e=>e.length>=t.minLength}),t.uppercase&&n.push({key:`uppercase`,label:up().uppercaseText,test:e=>/[A-Z]/.test(e)}),t.lowercase&&n.push({key:`lowercase`,label:up().lowercaseText,test:e=>/[a-z]/.test(e)}),t.digit&&n.push({key:`digit`,label:up().digitText,test:e=>/[0-9]/.test(e)}),t.special&&n.push({key:`special`,label:up().specialText,test:e=>/[^A-Za-z0-9]/.test(e)}),t.uniqueChars>0){let e=t.uniqueChars;n.push({key:`unique`,label:gn(up(),`uniqueCharsText`,e,{n:e}),test:t=>new Set(t).size>=e})}for(let[e,r]of(t.customRules??[]).entries()){let t=new RegExp(r.pattern);n.push({key:`custom-${e}`,label:r.label,test:e=>t.test(e)})}return n}function pp(e,t){let n=e==null?``:String(e);return fp(t).map(e=>({key:e.key,label:e.label,met:e.test(n)}))}function mp(e,t){return pp(e,t).every(e=>e.met)}var hp={moveLabel:`Move to`,moveText:`Move to {label}`},gp=`wui:row-drop`,_p=`is-drop-over`,vp=`application/x-wui-rows`,yp=`wui-row-dragging`,bp=`[data-wui-drop-target]`,xp=`tbody tr[data-row-key]`,Sp=`input, button, a, select, textarea, label`,Cp=`.wui-select-cell .form-check-input`,wp=new WeakMap,Tp=new WeakSet,Ep=null,Dp=null;function Op(e){let t=e.querySelector(Cp);return t instanceof HTMLInputElement&&t.checked}function kp(e){let t=[];for(let n of e.querySelectorAll(`tbody tr:not(.wui-group-row)`))n instanceof HTMLElement&&Op(n)&&t.push(n.dataset.rowKey);return t}function Ap(e,t){return Ve(e,t)}function jp(e,t){let n=Ap(e,t);return n instanceof HTMLElement?n:null}function Mp(e){let t=e.textContent;if(t===null)throw Error(`A drop target has no text content.`);return t.trim()}var Np=e=>typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`;function Pp(){Ep=null,document.body.classList.remove(yp);for(let e of document.querySelectorAll(`${bp}.${_p}`))e.classList.remove(_p)}function Fp(e,t,n){e.dispatchEvent(new CustomEvent(gp,{bubbles:!0,detail:{keys:t,target:n.dataset.wuiDropTarget}}))}function Ip(e){let t=jp(e.target,bp);if(!t||!Ep)return;e.preventDefault();let n=A(e.dataTransfer,`A drag event arrived without its DataTransfer.`);n.dropEffect=`move`,t.classList.add(_p)}function Lp(e){let t=jp(e.target,bp);!t||e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||t.classList.remove(_p)}function Rp(e){let t=jp(e.target,bp);if(!t||!Ep)return;e.preventDefault(),t.classList.remove(_p);let{root:n,keys:r}=Ep;Fp(n,r,t),Pp()}function zp(e){let t=jp(e.target,bp);t&&Dp?.keys.length&&(e.preventDefault(),Fp(Dp.root,Dp.keys,t))}function Bp(e){(ki(e)||e.key===` `)&&zp(e)}function Vp(e){Tp.has(e)||(Tp.add(e),e.addEventListener(`dragover`,Ip),e.addEventListener(`dragenter`,Ip),e.addEventListener(`dragleave`,Lp),e.addEventListener(`drop`,Rp),e.addEventListener(`click`,zp),e.addEventListener(`keydown`,Bp))}function Hp(e){let t=wp.get(e);if(t)return t;Vp(e.ownerDocument||e);let n=t=>{let n=jp(t.target,xp);if(!n||!e.contains(n))return;let r=Ap(t.target,Sp);r&&n.contains(r)||(n.draggable=!0)},r=t=>{let n=jp(t.target,xp);if(!n||!e.contains(n))return;let r=Op(n)?kp(e):[n.dataset.rowKey],i=A(t.dataTransfer,`A drag event arrived without its DataTransfer.`);i.setData(vp,JSON.stringify(r)),i.setData(`text/plain`,r.join(`,`)),i.effectAllowed=`move`,Ep={root:e,keys:r},document.body.classList.add(yp)},i=t=>{let n=t instanceof CustomEvent?t.detail:void 0;if(Np(n)){let{keys:t}=n;n.selected>0?Dp={root:e,keys:Array.isArray(t)?t:kp(e)}:n.selected===0&&(Dp=null)}Wp(document)};e.addEventListener(`pointerdown`,n),e.addEventListener(`dragstart`,r),e.addEventListener(`dragend`,Pp),e.addEventListener(`selectionchange`,i);let a=()=>{e.removeEventListener(`pointerdown`,n),e.removeEventListener(`dragstart`,r),e.removeEventListener(`dragend`,Pp),e.removeEventListener(`selectionchange`,i),wp.delete(e)};return wp.set(e,a),a}var Up=()=>L(`rowDrop`,hp);function Wp(e=document){let t=e.querySelector(`[data-wui-row-drag] tbody tr:not(.wui-group-row) ${Cp}:checked`)!==null;for(let n of e.querySelectorAll(bp)){n.tagName!==`BUTTON`&&(n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`)),t?n.removeAttribute(`aria-disabled`):n.setAttribute(`aria-disabled`,`true`);let e=n.getAttribute(`data-wui-drop-label`)||Mp(n);n.setAttribute(`aria-label`,R(Up().moveText,{label:e}))}for(let t of e.querySelectorAll(`.wui-drop-tray`))t.hasAttribute(`role`)||(t.setAttribute(`role`,`toolbar`),t.setAttribute(`aria-label`,Up().moveLabel))}function Gp(e=document){for(let t of e.querySelectorAll(`[data-wui-row-drag]`))t instanceof HTMLElement&&Hp(t);Wp(e.ownerDocument||e)}var Kp=`.table-wrap, .table-responsive, [class*="table-responsive-"]`,qp=1;function Jp(e){let t=()=>{let t=e.scrollWidth-e.clientWidth,n=Math.abs(e.scrollLeft);e.toggleAttribute(`data-wui-overflow-start`,t>qp&&n>qp),e.toggleAttribute(`data-wui-overflow-end`,t>qp&&n<t-qp),e.toggleAttribute(`data-wui-overflow-top`,e.scrollTop>qp)},n=()=>{if(e.scrollWidth-e.clientWidth>qp){let t=getComputedStyle(e);e.style.setProperty(`--wui-scroll-pad-start`,t.paddingInlineStart),e.style.setProperty(`--wui-scroll-pad-end`,t.paddingInlineEnd)}else e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))},r=()=>{n(),t()};e.addEventListener(`scroll`,t,{passive:!0});let i=null;if(typeof ResizeObserver<`u`){i=new ResizeObserver(r),i.observe(e);for(let t of e.children)i.observe(t)}return r(),()=>{e.removeEventListener(`scroll`,t),i?.disconnect(),e.removeAttribute(`data-wui-overflow-start`),e.removeAttribute(`data-wui-overflow-end`),e.removeAttribute(`data-wui-overflow-top`),e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))}}var Yp=new WeakMap,Xp,Zp=e=>{Yp.has(e)||Yp.set(e,Jp(e))},Qp=e=>{if(!(e instanceof HTMLElement))return[];let t=e.matches(`.table-wrap, .table-responsive, [class*="table-responsive-"]`)?[e]:[];if(e.firstElementChild===null)return t;let n=[...e.querySelectorAll(Kp)].filter(e=>e instanceof HTMLElement);return[...t,...n]};function $p(){Xp||typeof MutationObserver>`u`||(Xp=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Qp(e))Yp.get(t)?.(),Yp.delete(t);for(let e of t.addedNodes)for(let t of Qp(e))Zp(t)}}),Xp.observe(document.documentElement,{childList:!0,subtree:!0}))}function em(e=document){for(let t of e.querySelectorAll(Kp))t instanceof HTMLElement&&Zp(t);e===document&&$p()}var tm=new WeakSet;function nm(e){let t=e.querySelectorAll?[...e.querySelectorAll(`[data-wui-flash]`)]:[];e instanceof Element&&e.matches(`[data-wui-flash]`)&&t.unshift(e);for(let e of t){let t=e.getAttribute(`data-wui-flash-variant`)||`success`;if(!io(t))throw TypeError(`data-wui-flash-variant="${t}" is not supported. Use ${ro.join(`, `)}.`);let n=e.getAttribute(`data-wui-flash`)||(e.textContent??``).trim();e.remove(),n&&bs(n,t)}}function rm(e=document){let t=e instanceof Element?e.ownerDocument:e;if(!tm.has(t)){tm.add(t);let e=co();e&&bs(e.message,e.variant,e.action)}nm(e)}var im=`data-wui-submit-once`,am=`data-wui-submit-pending`,om=`wui-submit-spinner`,sm=new WeakSet,cm=new WeakMap;function lm(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement?e:null}function um(e){if(e.setAttribute(`aria-busy`,`true`),e.tagName===`INPUT`||e.querySelector(`.${om}`))return;let t=e.ownerDocument.createElement(`span`);t.className=`spinner-border spinner-border-sm me-2 ${om}`,t.setAttribute(`aria-hidden`,`true`),e.prepend(t)}function dm(e){e.removeAttribute(`aria-busy`),e.querySelector(`.${om}`)?.remove()}function fm(e){return e.method===`post`&&e.target!==`_blank`&&e.getAttribute(`data-wui-submit-once`)!==`off`}function pm(e){let t=e.target;if(!(t instanceof HTMLFormElement)||!fm(t))return;if(t.hasAttribute(am)){e.preventDefault();return}t.setAttribute(am,``);let n=lm(e.submitter);setTimeout(()=>{t.hasAttribute(am)&&(e.defaultPrevented?t.removeAttribute(am):n&&(n.disabled=!0,um(n),cm.set(t,n)))},0)}var mm=e=>[...e.querySelectorAll(`form[${am}]`)].filter(e=>e instanceof HTMLFormElement);function hm(e){for(let t of mm(e)){t.removeAttribute(am);let e=cm.get(t);e&&(e.disabled=!1,dm(e),cm.delete(t))}}function gm(e){let t=e.ownerDocument===null?e:e.ownerDocument;sm.has(t)||(sm.add(t),t.addEventListener(`submit`,pm,!0),t.defaultView?.addEventListener(`pageshow`,()=>hm(t)))}var _m=[`light`,`dark`,`auto`],vm=[`wave`,`circle`,`slide`,`blinds`,`fade`,`none`],ym=`fade`,bm=`theme`,xm={wave:1100,circle:700,slide:600,blinds:900,fade:350,none:0},Sm=`wui-theme-switching`,Cm=`wui:theme:change`,wm=`(prefers-color-scheme: dark)`,Tm=e=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(e).matches,Em=e=>_m.some(t=>t===e);function Dm(e){return e===`dark`||e===`auto`&&Tm(wm)?`dark`:`light`}function Om(e=bm){let t=null;try{t=window.localStorage.getItem(e)}catch(e){if(!(e instanceof DOMException))throw e}return Em(t)?t:`auto`}function km(e,t=bm){try{window.localStorage.setItem(t,e)}catch(e){if(!(e instanceof DOMException))throw e}}function Am(e){let t=document.documentElement,n=Dm(e);t.setAttribute(`data-theme`,e),t.setAttribute(`data-bs-theme`,n),document.dispatchEvent(new CustomEvent(Cm,{detail:{mode:n,preference:e}}))}var jm=`((k)=>{let m;try{m=localStorage.getItem(k)}catch{m=null}if(m!=='light'&&m!=='dark')m='auto';const r=document.documentElement,q=window.matchMedia?window.matchMedia('(prefers-color-scheme: dark)'):null;function s(){const t=r.getAttribute('data-theme');r.setAttribute('data-bs-theme',t==='auto'?(q?.matches?'dark':'light'):t)}r.setAttribute('data-theme',m);s();if(q?.addEventListener)q.addEventListener('change',()=>{if(r.getAttribute('data-theme')==='auto')s()})})(`;function Mm(e=bm){return`${jm}${JSON.stringify(String(e)).replace(/</g,`\\u003c`)})`}function Nm(e,{includeAuto:t=!1}={}){return e===`light`?`dark`:e===`dark`&&t?`auto`:`light`}function Pm(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(wm),n=()=>e(t.matches?`dark`:`light`);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var Fm=60,Im=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,Lm=e=>e.toFixed(1),Rm=(e,t)=>`${Lm(e)}px ${Lm(t)}px`,zm={amplitude:22,segments:36,cycles:1.5,ripples:2},Bm=6,Vm=(e,t,n,r,i)=>{let{amplitude:a,segments:o,cycles:s}=zm,c=n*(t+2*a),l=i?t+a-c:c-a,u=i?t+2*a:-2*a,d=[Rm(0,u)];for(let t=0;t<=o;t++){let n=e*t/o,i=l+a*Math.sin(2*Math.PI*s*t/o+r);d.push(Rm(n,i))}return d.push(Rm(e,u)),`polygon(${d.join(`, `)})`},Hm=(e,t,n,r)=>{let i=t/Bm,a=[];for(let t=0;t<Bm;t++){let o=t*i,s=i*n,c=r?o+i-s:o,l=r?o+i:o+s;a.push(Rm(0,c),Rm(e,c),Rm(e,l),Rm(0,l))}return`polygon(${a.join(`, `)})`};function Um(e,{width:t,height:n,to:r=`dark`,origin:i}){let a=r===`dark`,o=[];for(let r=0;r<=Fm;r++){let s=r/Fm,c=Im(s);switch(e){case`circle`:{let e=i?.x??t/2,r=i?.y??n/2,a=Math.hypot(Math.max(e,t-e),Math.max(r,n-r));o.push({clipPath:`circle(${Lm(a*c)}px at ${Lm(e)}px ${Lm(r)}px)`});break}case`slide`:{let e=n*(1-c);o.push({clipPath:a?`inset(${Lm(e)}px 0px 0px 0px)`:`inset(0px 0px ${Lm(e)}px 0px)`});break}case`blinds`:o.push({clipPath:Hm(t,n,c,a)});break;case`fade`:o.push({clipPath:`none`,opacity:c});break;case`none`:return[];default:o.push({clipPath:Vm(t,n,c,s*zm.ripples*2*Math.PI,a)})}}return o}var Wm=e=>{e instanceof DOMException&&(e.name===`AbortError`||e.name===`InvalidStateError`)||mr(`[@webority/ui-elements] The theme view transition failed:`,e)};function Gm(e,{effect:t=ym,to:n,origin:r,duration:i}={}){let a=document.documentElement,o=n!==void 0&&a.getAttribute(`data-bs-theme`)===n;if(t===`none`||o||Tm(`(prefers-reduced-motion: reduce)`)||typeof document.startViewTransition!=`function`||typeof a.animate!=`function`)return e(),Promise.resolve(!1);a.classList.add(Sm);let s=document.startViewTransition(e),c=i??xm[t]??xm.fade;return s.ready.then(()=>{let e=Um(t,{width:window.innerWidth,height:window.innerHeight,to:n,origin:r});a.animate(e,{duration:c,easing:`linear`,fill:`both`,pseudoElement:`::view-transition-new(root)`})}).catch(Wm),s.finished.catch(Wm).finally(()=>a.classList.remove(Sm)).then(()=>!0)}function Km(){sr(),i(`wui-select`,wa),i(`wui-modal`,cr)}return globalThis.WeborityUiElementsInternal||(globalThis.WeborityUiElementsInternal={version:`0.200.0`,modules:vd}),Ya(),Qr(),Vs(),Km(),e.AVATAR_ACCEPT=bd,e.AVATAR_MAX_SIZE_MB=xd,e.AVATAR_OUTPUT_SIZE=Sd,e.AVATAR_OUTPUT_TYPE=Cd,e.AVATAR_PREVIEW_SIZES=wd,e.BAR_BULK_IN_BAR_ATTRIBUTE=$f,e.COLUMN_MAX_WIDTH=Cc,e.COLUMN_MIN_WIDTH=Sc,e.COMMAND_SHORTCUT_ATTRIBUTE=Vd,e.COPY_FEEDBACK_MS=_c,e.CSRF_META_NAME=ho,e.CURRENCIES=at,e.CURRENCY_SYMBOLS=Ue,e.DATE_PATTERNS=ct,e.DEFAULT_CSRF_HEADER=go,e.DEFAULT_CURRENCY=He,e.DEFAULT_IMAGE_ACCEPT=Qd,e.DEFAULT_MAX_SIZE_MB=$d,e.DEFAULT_PASSWORD_RULES=lp,e.DEFAULT_THEME_EFFECT=ym,e.DEFAULT_THEME_STORAGE_KEY=bm,e.DROP_OVER_CLASS=_p,e.DURATION_UNITS=st,e.FILTER_POPOVER_MAX_CHIPS=Yn,e.FLASH_STORAGE_KEY=ao,e.FLASH_VARIANTS=ro,e.FORMAT_STYLES=it,e.GROUP_SELECT_CLASS=bu,e.HTTP_KINDS=bo,e.IST_TIME_ZONE=M,e.MASK_INPUT_TYPES=Sf,e.MASK_NAMES=Af,e.MENTION_ID_PATTERN=hl,e.MONEY_UNITS=ot,e.NOTIFICATION_COUNT_CAP=Nl,e.PIN_AT_VAR=Uc,e.PIN_SIDES=Ec,e.RESIZE_STEP=wc,e.RESIZE_STEP_LARGE=Tc,e.ROW_DRAG_TYPE=vp,e.ROW_DROP_EVENT=gp,e.ROW_HEIGHTS=Oc,e.ROW_MOVE_LIMIT=qc,e.ROW_MOVE_MS=Jc,e.ROW_SAVE_ATTR=nl,e.ROW_SAVE_ERROR_CLASS=rl,e.ROW_SAVE_STATES=tl,e.SCROLL_EDGE_SELECTOR=Kp,e.SEARCH_OPEN_KEY=Od,e.SELECT_CELL_CLASS=X,e.SHORTCUTS_OFF_ATTRIBUTE=Tn,e.SHORTCUT_EVENT=Dn,e.SHORTCUT_SCOPE_ATTRIBUTE=En,e.SUBMIT_ONCE_ATTRIBUTE=im,e.THEME_BOOT_SCRIPT_BODY=jm,e.THEME_CHANGE_EVENT=Cm,e.THEME_EFFECTS=vm,e.THEME_EFFECT_DURATION=xm,e.THEME_MODES=_m,e.THEME_SWITCHING_CLASS=Sm,e.TOAST_ACTION_METHODS=Qa,e.TOAST_ACTION_MS=gs,e.VIRTUAL_OVERSCAN=Dc,e.WUI_HEADERS=J,e.WuiPostError=iu,e.WuiSelect=wa,e.acceptDroppedFiles=gf,e.acceptLabel=pf,e.addRowSelectCells=Au,e.addSelectColumn=ju,e.applyBarBulk=op,e.applyRefresh=ms,e.applyTheme=Am,e.ariaKeyShortcuts=zn,e.attachFileDrop=_f,e.attachInputMask=Wf,e.attachRowDrag=Hp,e.attachScrollEdges=Jp,e.attachShiftRange=Fu,e.avatarCropOptions=Dd,e.avatarUnreadableMessage=Ed,e.barBulkCountText=np,e.buildPasswordRules=fp,e.clampColumnWidth=Ic,e.classifyStatus=wo,e.collapseSearch=Ld,e.configureCsrf=vo,e.copyTextToClipboard=vc,e.createGroupSelectCell=Tu,e.createRequestQueue=Fo,e.createSelectHeaderCell=Su,e.createSelectRowCell=Cu,e.createSelectSpacerCell=wu,e.currencyPrefix=Ge,e.deriveStepStatus=hu,e.emptyValueLabel=N,e.evaluatePassword=pp,e.fillText=R,e.formatCompact=Ft,e.formatCurrency=Nt,e.formatDate=I,e.formatDateTime=Ut,e.formatDuration=Rt,e.formatFileSize=uf,e.formatMasked=Lf,e.formatNumber=P,e.formatPercent=It,e.formatRelativeTime=Xl,e.formatValue=Vt,e.glyphNode=U,e.groupCount=Fc,e.groupItems=Lc,e.groupNotificationsByDay=Vl,e.groupRowsOf=Eu,e.identityCell=al,e.inShortcutScope=Un,e.initCollapsibleSearch=Bd,e.initCommandShortcuts=Xd,e.initFlashToasts=rm,e.initInputMasks=Qf,e.initPageBarBulk=sp,e.initRowDrag=Gp,e.initScrollEdges=em,e.initSubmitOnce=gm,e.isCommandChord=Kd,e.isCurrencyCode=We,e.isHeicFile=Td,e.isImageFile=cf,e.isImageOnlyAccept=ff,e.isMaskPattern=Mf,e.isPdfFile=df,e.isTimeZone=et,e.isTypingTarget=Bn,e.loadServer=ks,e.loadShell=Ms,e.loadedServer=As,e.loadedShell=Ns,e.maskedPostValue=Bf,e.matchSegments=Vu,e.matchesAccept=mf,e.measureRows=Qc,e.mentionLabel=vl,e.mentionTextFromValue=xl,e.mentionValueFromText=Sl,e.mentionedIds=Cl,e.moveFocus=Gn,e.nextTheme=Nm,e.notificationCountText=Il,e.notificationDayHeading=Bl,e.notificationTime=zl,e.notificationTriggerLabel=Ll,e.notificationUnreadAnnouncement=Rl,e.openSearch=Id,e.parseMentionValue=bl,e.parseServerHtml=uo,e.parseToastAction=to,e.passwordSatisfies=mp,e.pinAtValue=Wc,e.pinClasses=Kc,e.pinOffsetVar=Hc,e.planPins=Gc,e.playRowMoves=$c,e.pluralText=gn,e.postedMasked=If,e.rawMasked=Ff,e.readColumnWidths=Bc,e.readCsrf=So,e.readStoredTheme=Om,e.readText=L,e.refreshAfter=ps,e.refreshRegions=Ho,e.relativeTimeTitle=Zl,e.reloadsPage=is,e.resolveMask=Pf,e.resolveTheme=Dm,e.rowLabel=ol,e.rowOrderChanged=el,e.runShortcut=Wn,e.runToastAction=xs,e.saveOutcomeText=dl,e.setRowSaveState=ll,e.setText=ln,e.settledRows=ul,e.shortcutKey=Rn,e.shortcutName=Ln,e.shortcutsOff=Hn,e.showResultToast=ys,e.showToast=bs,e.stepperHeaderItems=gu,e.storeTheme=km,e.syncGroupSelect=Nu,e.syncSelectAll=Mu,e.syncTargets=Wp,e.themeBootScript=Mm,e.themeKeyframes=Um,e.tickedKeys=kp,e.timeZoneLabel=Kt,e.timeoutFromAttribute=Do,e.toInstant=F,e.todayIn=gd,e.transitionTheme=Gm,e.validateFile=hf,e.virtualRange=Rc,e.wallClockOf=hd,e.watchSystemTheme=Pm,e.whenElementsReady=ei,e.withTrustedLabel=Ii,e.writeColumnWidths=Vc,e.wuiFetch=Po,e.wuiUpload=pu,e.zoneOffsetMs=nt,e.zoneParts=tt,e})({});
|
|
1
|
+
var WeborityUiElements=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},r=n({defineElement:()=>i});function i(e,t){if(typeof customElements>`u`||customElements.get(e))return;let n=[];if(typeof document<`u`)for(let r of document.querySelectorAll(e))for(let i of Object.keys(r)){let a=Object.getOwnPropertyDescriptor(t.prototype,i);if(a&&(a.set||a.get)&&(n.push([r,i,Reflect.get(r,i)]),!Reflect.deleteProperty(r,i)))throw Error(`defineElement: could not clear the early "${i}" property on <${e}>.`)}customElements.define(e,t);for(let[t,r,i]of n)if(!Reflect.set(t,r,i))throw Error(`defineElement: could not restore the "${r}" property on <${e}>.`)}var a=n({ElementBase:()=>s,NO_DOM_MESSAGE:()=>o}),o=`@webority/ui-elements needs a browser DOM; import its types or helpers entry on the server`;if(typeof HTMLElement>`u`)throw Error(o);var s=HTMLElement,c=n({isRtl:()=>l,mirrorKey:()=>u});function l(e){return getComputedStyle(e).direction===`rtl`}function u(e,t){return t?e===`ArrowRight`?`ArrowLeft`:e===`ArrowLeft`?`ArrowRight`:e:e}var d=n({anchorOverlay:()=>w,bindReanchor:()=>te,unbindReanchor:()=>ne}),f=4,p=8,m=300,h=400;function g(e,t,n){let r=t.offsetWidth,i=t.offsetHeight,a=n?e.left-f-r<f:e.right+f+r>window.innerWidth-f,o=n?!a:a,s=o?e.left-f-r:e.right+f;t.style.left=`${Math.max(f,s)}px`,t.style.top=`${Math.max(f,Math.min(e.top,window.innerHeight-i-f))}px`,t.dataset.side=o?`start`:`end`}function _(e,t){return t?e===`start`?`end`:e===`end`?`start`:e:e}var v=8,y={top:`bottom`,bottom:`top`,start:`end`,end:`start`},b=[`bottom`,`top`,`end`,`start`];function x(e,t){return e===`bottom`?window.innerHeight-t.bottom:e===`top`?t.top:e===`end`?window.innerWidth-t.right:t.left}function S(e,t,n,r){return e===`start`?t:e===`end`?n-r:t+(n-t-r)/2}function C(e,t,n){return Math.max(v,Math.min(e,t-n-v))}function ee(e,t,n,r){let i=r.gap??f,a=r.align??`start`,o=t.offsetWidth,s=t.offsetHeight,c=n===`auto`?b.reduce((t,n)=>x(n,e)>x(t,e)?n:t):n,l=c===`top`||c===`bottom`,u=(l?s:o)+i,d=x(c,e)<u&&x(y[c],e)>x(c,e)?y[c]:c,p=s;if(r.clampHeight){let n=d===`bottom`?window.innerHeight-e.bottom-i-f:d===`top`?e.top-i-f:window.innerHeight-8;n<s&&(p=Math.max(n,0),t.style.maxHeight=`${p}px`)}let m,h;if(l){h=d===`bottom`?e.bottom+i:Math.max(f,e.top-p-i);let t=S(a,e.left,e.right,o);r.flipAlign&&a===`start`&&t+o>window.innerWidth-f&&e.right-o>=f?t=e.right-o:r.flipAlign&&a===`end`&&t<f&&e.left+o<=window.innerWidth-f&&(t=e.left),m=Math.max(f,Math.min(t,window.innerWidth-o-f))}else m=Math.max(f,d===`end`?e.right+i:e.left-o-i),h=Math.max(f,Math.min(S(a,e.top,e.bottom,p),window.innerHeight-p-f));t.style.left=`${m}px`,t.style.top=`${h}px`,t.dataset.side=d;let g=r.arrow;if(g){if(l){let t=(e.left+e.right)/2-m-g.offsetWidth/2;g.style.left=`${C(t,o,g.offsetWidth)}px`}else{let t=(e.top+e.bottom)/2-h-g.offsetHeight/2;g.style.top=`${C(t,p,g.offsetHeight)}px`}}}function w(e,t,n={}){if(!e)throw Error(`anchorOverlay: missing trigger`);if(!t)throw Error(`anchorOverlay: missing panel`);t.style.position=`fixed`;let r=e.getBoundingClientRect(),i=e instanceof Element&&l(e);if(n.beside){g(r,t,i);return}if(n.side!==void 0){let e=n.clampHeight?Array.from(t.children,e=>[e,e.scrollTop]):[];t.classList.remove(`drop-up`),t.style.maxHeight=``,ee(r,t,n.side===`auto`?`auto`:_(n.side,i),n);for(let[t,n]of e)t.scrollTop=n;return}let a=n.clampHeight?t.scrollTop:0;n.clampHeight&&(t.style.maxHeight=``);let o=t.offsetHeight,s=window.innerHeight-r.bottom,c=!n.below&&s<o+f&&r.top>s;if(t.classList.toggle(`drop-up`,c),t.style.top=c?`${Math.max(f,r.top-o-f)}px`:`${r.bottom+f}px`,n.clampHeight){let e=c?r.top-8:window.innerHeight-r.bottom-8;e<o&&(t.style.maxHeight=`${Math.max(e,0)}px`),t.scrollTop=a}n.matchWidth&&(r.width>=m?(t.style.minWidth=`${r.width}px`,t.style.width=`${r.width}px`,t.style.maxWidth=`${r.width}px`):(t.style.minWidth=`${r.width}px`,t.style.width=`max-content`,t.style.maxWidth=`${Math.min(h,window.innerWidth-8)}px`));let u=t.offsetWidth;if(n.alignEnd){let e=r.right-u,n=e>=p?e:r.left,i=Math.max(p,Math.min(n,window.innerWidth-u-p));t.style.left=`${i}px`}else{let e=n.flipAlign&&r.left+u>window.innerWidth-f&&r.right-u>=f,i=Math.min(e?r.right-u:r.left,window.innerWidth-u-f);t.style.left=`${Math.max(f,i)}px`}}function te(e,t){ne(e),e._reanchor=t,e._reanchorScroll=n=>{n.composedPath().includes(e)||t()},window.addEventListener(`resize`,e._reanchor),window.addEventListener(`scroll`,e._reanchorScroll,!0)}function ne(e){if(!e?._reanchor)return;window.removeEventListener(`resize`,e._reanchor);let t=e._reanchorScroll;t&&window.removeEventListener(`scroll`,t,!0),e._reanchor=null,e._reanchorScroll=null}var re=n({CLOSE_MOTION_LIMIT_MS:()=>400,CLOSING_ATTRIBUTE:()=>D,DISMISS_ATTRIBUTE:()=>E,OPEN_ATTRIBUTE:()=>T,closeAnchoredPopover:()=>Ne,closeModalDialog:()=>je,isPopoverOpen:()=>O,onOverlayRootChange:()=>Re,openAnchoredPopover:()=>Me,openModalDialog:()=>Ae,overlayRoot:()=>Le,raisePopover:()=>Fe,returnFocus:()=>De,setPopoverOpen:()=>Pe,wireOpenTriggers:()=>ze}),T=`data-wui-open`,E=`data-wui-dismiss`,D=`data-wui-closing`,ie=`[${E}]`,ae=`[${T}]`,oe=`(prefers-reduced-motion: reduce)`,se=`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,ce=400,le=new WeakSet,ue=new WeakSet,de=new WeakSet,fe=Symbol.for(`webority.ui.modal-stack`),pe=Symbol.for(`webority.ui.root-watches`);function me(e){let t=e;return t[pe]??=new Set,t[pe]}var he=new WeakMap,ge=new WeakMap,_e=new WeakMap;function ve(e){let t=e.querySelector(`[data-autofocus]`);if(t)return t;let n=null;for(let t of e.querySelectorAll(se))if(!t.closest(`[hidden],[inert]`)){if(!t.closest(`${ie},.wui-modal-back`))return t;n??=t}return n}function ye(e){let t=[],n=new Map;for(let r of e.querySelectorAll(se))if(!(r.closest(`[hidden],[inert]`)||r.closest(`dialog`)!==e)&&!(r.tabIndex<0||r.getClientRects().length===0)){if(r instanceof HTMLInputElement&&r.type===`radio`&&r.name){let e=n.get(r.name);e?r.checked&&!e.checked&&(e.checked=r,t[t.indexOf(e.first)]=r):(n.set(r.name,{first:r,checked:r.checked?r:null}),t.push(r))}else t.push(r)}return t}function be(e){return e.localName.includes(`-`)&&`show`in e&&typeof e.show==`function`}function xe(e){return e.localName.includes(`-`)&&customElements.get(e.localName)===void 0}function Se(e){let t=e;return t[fe]??=[],t[fe]}function Ce(e){we(e),Se(e.ownerDocument).push(e)}function we(e){let t=Se(e.ownerDocument),n=t.indexOf(e);n>=0&&t.splice(n,1)}function Te(e){for(let t of me(e)){let n=Le(e);t.last!==n&&(t.last=n,t.listener(n))}}function Ee(e){let t=Promise.allSettled(e.getAnimations().map(e=>e.finished));return new Promise(e=>{let n=window.setTimeout(e,400);t.then(()=>{window.clearTimeout(n),e()})})}function De(e,t){if(!e?.isConnected)return;let n=e.ownerDocument.activeElement;(!n||n===e.ownerDocument.body||t.contains(n))&&e.focus()}function Oe(e){let t=e.getBoundingClientRect();return t.bottom<0||t.right<0||t.top>window.innerHeight||t.left>window.innerWidth}function ke(e,t){_e.get(e)?.();let n=t.ownerDocument,r=0,i=()=>{window.clearTimeout(o),window.clearTimeout(r),n.removeEventListener(`pointerdown`,i,!0),n.removeEventListener(`keydown`,i,!0),t.removeEventListener(`click`,a,!0),_e.delete(e)},a=()=>{t.removeEventListener(`click`,a,!0),r=window.setTimeout(i,0)},o=window.setTimeout(i,ce);n.addEventListener(`pointerdown`,i,!0),n.addEventListener(`keydown`,i,!0),t.addEventListener(`click`,a,!0),_e.set(e,i)}function Ae(e,t){let n=t.focus===`first-control`?ve(e):null,r=n??e,i=r===e&&!e.hasAttribute(`tabindex`);i&&e.setAttribute(`tabindex`,`-1`);let a=!t.escape&&!e.hasAttribute(`closedby`);a&&e.setAttribute(`closedby`,`none`),le.add(e);let o=()=>{if(Ce(e),!e.hasAttribute(`open`)){let t=n!==null&&!e.querySelector(`[autofocus]`);t&&n.setAttribute(`autofocus`,``);try{e.showModal()}catch(t){throw we(e),t}finally{t&&n.removeAttribute(`autofocus`)}}r.focus(),Te(e.ownerDocument)},s=!1,c=n=>{if(n.key!==`Escape`||n.defaultPrevented||!t.escape||n.altKey||n.ctrlKey||n.metaKey)return;let r=e.ownerDocument;Le(r)===e&&(e.querySelector(`:popover-open`)||r.querySelector(`[popover=""]:popover-open, [popover="auto"]:popover-open`)||(s=!0,window.setTimeout(()=>{s&&le.has(e)&&e.open&&(s=!1,t.onRequestClose(`escape`))},0)))},l=t=>{if(t.key!==`Tab`||t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey)return;let n=e.ownerDocument;if(Le(n)!==e||e.querySelector(`:popover-open`))return;t.preventDefault();let r=ye(e),i=r[0],a=r[r.length-1];if(!i||!a){e.focus();return}let o=n.activeElement,s=o?r.findIndex(e=>e===o||e.contains(o)):-1;s<0?(t.shiftKey?a:i).focus():r[((t.shiftKey?s-1:s+1)+r.length)%r.length]?.focus()},u=e=>{s=!1,e.preventDefault(),t.escape&&t.onRequestClose(`escape`)},d=n=>{let r=n.target;if(!(r instanceof Element))return;let i=r.closest(ie);if(i&&i.closest(`dialog`)===e){t.onRequestClose(`dismiss`);return}let a=t.backdrop;if(!a||r.closest(`dialog`)!==e||r!==a&&a.contains(r))return;let o=a.getBoundingClientRect();(n.clientX<o.left||n.clientX>o.right||n.clientY<o.top||n.clientY>o.bottom)&&t.onRequestClose(`backdrop`)},f=()=>{let n=s;s=!1,we(e),le.has(e)?(o(),n&&t.onRequestClose(`escape`)):Te(e.ownerDocument)},p=e.ownerDocument;return p.addEventListener(`keydown`,c),p.addEventListener(`keydown`,l),e.addEventListener(`cancel`,u),e.addEventListener(`click`,d),e.addEventListener(`close`,f),o(),()=>{p.removeEventListener(`keydown`,c),p.removeEventListener(`keydown`,l),e.removeEventListener(`cancel`,u),e.removeEventListener(`click`,d),e.removeEventListener(`close`,f),le.delete(e),i&&e.removeAttribute(`tabindex`),a&&e.removeAttribute(`closedby`),we(e),Te(e.ownerDocument)}}async function je(e){le.delete(e),e.setAttribute(D,``),!window.matchMedia(oe).matches&&typeof e.getAnimations==`function`&&e.getAnimations().length>0&&await Ee(e),e.close(),we(e),Te(e.ownerDocument),e.removeAttribute(D)}function Me(e,t,n){let r=_e.get(t);if(r){r();return}he.get(t)?.(),t.setAttribute(`popover`,n.mode),t.showPopover();let i=()=>w(e,t,n);try{i()}catch(e){throw Ne(t),e}te(t,()=>{!O(t)||!t.isConnected?ge.get(t)?.():e.isConnected&&n.scrollSettling?.()?i():!e.isConnected||!n.keepOffscreen&&Oe(e)?Ne(t):i()});let a=new ResizeObserver(()=>{O(t)&&t.isConnected&&e.isConnected&&i()});a.observe(t);let o=e=>{`newState`in e&&e.newState===`closed`&&ge.get(t)?.()},s=()=>{n.mode===`auto`&&O(t)&&ke(t,e)};t.addEventListener(`toggle`,o),e.addEventListener(`pointerdown`,s,!0),he.set(t,()=>{t.removeEventListener(`toggle`,o),e.removeEventListener(`pointerdown`,s,!0),ne(t),a.disconnect(),he.delete(t),ge.delete(t)}),ge.set(t,()=>{he.get(t)?.(),n.onClosed?.()})}function Ne(e){O(e)&&e.hidePopover(),ge.get(e)?.()}function O(e){return e.matches(`:popover-open`)}function Pe(e,t){Ie(e),O(e)!==t&&(t?e.showPopover():e.hidePopover())}function Fe(e){if(Ie(e),!e.isConnected)throw Error(`nativeOverlay: raisePopover was given a panel that is not on the page; a caller whose overlay root can leave the page skips the raise until the panel moves to the new root`);e.hidePopover(),e.showPopover()}function Ie(e){if(!e.hasAttribute(`popover`))throw Error(`nativeOverlay: the panel has no popover attribute`)}function Le(e=document){let t=Se(e);for(let e=t.length-1;e>=0;e--){let n=t[e];if(n?.isConnected&&n.hasAttribute(`open`))return n}return e.body}function Re(e,t=document){ue.has(t)||(ue.add(t),t.addEventListener(`toggle`,()=>Te(t),!0),t.addEventListener(`close`,()=>Te(t),!0));let n={last:Le(t),listener:e};return me(t).add(n),()=>{me(t).delete(n)}}function ze(e){de.has(e)||(de.add(e),e.addEventListener(`click`,t=>{let n=t.target,r=n instanceof Element?n.closest(ae):null;if(!(r instanceof HTMLElement))return;let i=(r.getAttribute(`data-wui-open`)??``).replace(/^#/,``),a=e.getElementById(i);if(!a)throw Error(`[data-wui-open] names #${i}, which is not on the page.`);be(a)?(t.preventDefault(),a.show(r)):xe(a)&&(t.preventDefault(),customElements.whenDefined(a.localName).then(()=>{a.isConnected&&be(a)&&a.show(r)}))}))}var Be=n({closestOf:()=>He,elementOf:()=>Ve,make:()=>A,must:()=>k});function k(e,t){if(e==null)throw Error(t);return e}function Ve(e,t,n){if(!(e instanceof t))throw TypeError(n);return e}function He(e,t){return e instanceof Element?e.closest(t):null}function A(e,t,...n){if(e.toLowerCase()===`svg`)throw Error(`make() builds HTML elements; use svgRoot for svg`);let r=document.createElement(e);for(let[e,n]of Object.entries(t??{}))n===!0?r.setAttribute(e,``):(typeof n==`string`||typeof n==`number`)&&r.setAttribute(e,String(n));let i=[];for(let e of n)e instanceof Node?i.push(e):(typeof e==`string`||typeof e==`number`)&&i.push(document.createTextNode(String(e)));return r.append(...i),r}var Ue=`INR`,We=Object.freeze({INR:`₹`,USD:`$`,EUR:`€`,GBP:`£`,JPY:`¥`}),Ge=e=>typeof e==`string`&&/^[A-Z]{3}$/.test(e),Ke=(e=`INR`)=>We[e]??`${e} `,qe={aprShortLabel:`Apr`,aprilLabel:`April`,augShortLabel:`Aug`,augustLabel:`August`,decShortLabel:`Dec`,decemberLabel:`December`,emptyValueLabel:`-`,febShortLabel:`Feb`,februaryLabel:`February`,friMinLabel:`Fr`,friShortLabel:`Fri`,fridayLabel:`Friday`,janShortLabel:`Jan`,januaryLabel:`January`,julShortLabel:`Jul`,julyLabel:`July`,junShortLabel:`Jun`,juneLabel:`June`,marShortLabel:`Mar`,marchLabel:`March`,mayLabel:`May`,mayShortLabel:`May`,monMinLabel:`Mo`,monShortLabel:`Mon`,mondayLabel:`Monday`,novShortLabel:`Nov`,novemberLabel:`November`,octShortLabel:`Oct`,octoberLabel:`October`,satMinLabel:`Sa`,satShortLabel:`Sat`,saturdayLabel:`Saturday`,sepShortLabel:`Sep`,septemberLabel:`September`,sunMinLabel:`Su`,sunShortLabel:`Sun`,sundayLabel:`Sunday`,thuMinLabel:`Th`,thuShortLabel:`Thu`,thursdayLabel:`Thursday`,tueMinLabel:`Tu`,tueShortLabel:`Tue`,tuesdayLabel:`Tuesday`,wedMinLabel:`We`,wedShortLabel:`Wed`,wednesdayLabel:`Wednesday`},Je=qe,Ye=e=>Object.getOwnPropertyDescriptor(qe,e)!==void 0;function Xe(e){let t={...qe};for(let[n,r]of Object.entries(e))if(r!==void 0){if(!Ye(n))throw RangeError(`Format text ${n} is not a key of the default text. Allowed keys: ${Object.keys(qe).join(`, `)}.`);if(typeof r!=`string`)throw RangeError(`Format text ${n} must be a string.`);t[n]=r}Je=t}function Ze(){return Je}var j=`Asia/Kolkata`,Qe=198e5,$e=new Map;function et(e){let t=$e.get(e);return t||(t=new Intl.DateTimeFormat(`en-US`,{timeZone:e,hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),$e.set(e,t)),t}function tt(e){if(typeof e!=`string`||e===``)return!1;try{return et(e),!0}catch{return!1}}function nt(e,t=j){if(t===`Asia/Kolkata`){let t=new Date(e+Qe);return{year:t.getUTCFullYear(),month:t.getUTCMonth(),day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}let n=Object.fromEntries(et(t).formatToParts(e).map(e=>[e.type,Number(e.value)]));return{year:Number(n.year),month:Number(n.month)-1,day:Number(n.day),hour:Number(n.hour)%24,minute:Number(n.minute),second:Number(n.second)}}function rt(e,t=j){if(t===`Asia/Kolkata`)return Qe;let n=nt(e,t),r=new Date(0);return r.setUTCFullYear(n.year,n.month,n.day),r.setUTCHours(n.hour,n.minute,n.second,0),r.getTime()-Math.floor(e/1e3)*1e3}function it(e,t=j){let n=e-rt(e,t);return n=e-rt(n,t),n}var at=[`number`,`currency`,`percent`,`compact`,`duration`,`date`,`status`],ot=[`INR`,`USD`,`EUR`,`GBP`],st=[`rupees`,`paise`],ct=[`ms`,`s`,`min`,`h`],lt=[`day`,`month`,`year`,`datetime`,`time`];function ut(e){return st.some(t=>t===e)}var M=()=>Ze().emptyValueLabel,dt=`−`,ft=[`janShortLabel`,`febShortLabel`,`marShortLabel`,`aprShortLabel`,`mayShortLabel`,`junShortLabel`,`julShortLabel`,`augShortLabel`,`sepShortLabel`,`octShortLabel`,`novShortLabel`,`decShortLabel`],pt=[`januaryLabel`,`februaryLabel`,`marchLabel`,`aprilLabel`,`mayLabel`,`juneLabel`,`julyLabel`,`augustLabel`,`septemberLabel`,`octoberLabel`,`novemberLabel`,`decemberLabel`],mt={short:[`sunShortLabel`,`monShortLabel`,`tueShortLabel`,`wedShortLabel`,`thuShortLabel`,`friShortLabel`,`satShortLabel`],long:[`sundayLabel`,`mondayLabel`,`tuesdayLabel`,`wednesdayLabel`,`thursdayLabel`,`fridayLabel`,`saturdayLabel`],min:[`sunMinLabel`,`monMinLabel`,`tueMinLabel`,`wedMinLabel`,`thuMinLabel`,`friMinLabel`,`satMinLabel`]},ht=(e,t)=>{let n=e[t];if(n===void 0)throw RangeError(`no date name at index ${t}`);return Ze()[n]},gt=e=>ht(ft,e),_t=e=>ht(pt,e);function vt(e,t){return ht(mt[t],e)}var yt=(e,t)=>{let n=e[t];if(n===void 0)throw RangeError(`no compact unit at index ${t}`);return n},bt=[[1e7,`Cr`],[1e5,`L`],[1e3,`K`]],xt=[[1e9,`B`],[1e6,`M`],[1e3,`K`]],St=e=>!e||e===`INR`?`en-IN`:`en-US`,Ct=(e,t)=>typeof e==`number`&&Number.isInteger(e)&&e>=0&&e<=20?e:t,wt=new Map,Tt=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=wt.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:e}),wt.set(n,r)),r},Et=new Map,Dt=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=Et.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}),Et.set(n,r)),r},Ot=e=>typeof e==`number`&&Number.isFinite(e),kt=e=>e<0&&!Object.is(Math.abs(e),0)?dt:``;function At(e){if(!Number.isInteger(e))throw Error(`A paise amount must be a whole number, got ${e}`);let t=BigInt(Math.abs(e)).toString().padStart(3,`0`);return`${e<0?`-`:``}${t.slice(0,-2)}.${t.slice(-2)}`}var jt=(e,t)=>t===`paise`?Number(At(e)):e,Mt=2,Nt=(e,t,n)=>{let r=Math.min(t,Mt),i=10n**BigInt(Mt-r),a=(BigInt(At(e).replace(`.`,``))+i/2n)/i,o=10n**BigInt(r),s=Dt(0,n).format(Number(a/o));return t===0?s:`${s}.${(a%o).toString().padStart(r,`0`)}${`0`.repeat(t-r)}`};function N(e,{decimals:t}={}){if(!Ot(e))return M();let n=Tt(Ct(t,2)).format(Math.abs(e));return n===`0`?`0`:kt(e)+n}function Pt(e,t){if(!t?.currency)throw TypeError(`[@webority/ui-elements] formatCurrency needs options.currency, an ISO 4217 code such as "INR".`);if(!Ot(e))return M();let{unit:n=`rupees`,decimals:r,currency:i}=t,a=Ct(r,0),o=St(i),s=n===`paise`?Nt(Math.abs(e),a,o):Dt(a,o).format(Math.abs(e));return(Number(s.replace(/,/g,``))===0?``:kt(e))+Ke(i)+s}var Ft=e=>e>0&&e<.1?Math.min(20,1-Math.floor(Math.log10(e))):2;function It(e,{currency:t,unit:n=`rupees`}={}){if(!Ot(e))return M();let r=t?jt(e,n):e,i=t?Ke(t):``,a=t?St(t):`en-IN`,o=a===`en-IN`?bt:xt,s=Math.abs(r),c=o.findIndex(([e])=>s>=e);if(c===-1){let e=Tt(Ft(s),a).format(s);if(e!==`1,000`)return(e===`0`?``:kt(r))+i+e;c=o.length-1}let[l,u]=yt(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f));return p>=100&&c>0&&(--c,[l,u]=yt(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f))),`${kt(r)}${i}${Tt(f,a).format(p)} ${u}`}function Lt(e,{decimals:t}={}){return Ot(e)?`${N(e*100,{decimals:Ct(t,1)})}%`:M()}var Rt={ms:1,s:1e3,min:6e4,h:36e5};function zt(e,{unit:t=`s`}={}){if(!Ot(e))return M();let n=Rt[t]??1e3,r=Math.abs(e*n),i=kt(e);if(Math.round(r)<1e3)return`${i}${Tt(0).format(r)} ms`;let a=r/1e3;if(a<10)return`${i}${Tt(1).format(a)}s`;let o=Math.round(a);if(o<60)return`${i}${o}s`;let s=e=>String(e).padStart(2,`0`),c=Math.floor(o/60);if(c<60)return`${i}${c}m ${s(o%60)}s`;let l=Math.floor(c/60);return`${i}${Tt(0).format(l)}h ${s(c%60)}m`}function P(e,t=j){if(e instanceof Date)return e.getTime();if(Ot(e))return e;if(typeof e!=`string`)return NaN;let n=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(n){let[e,r,i]=[Number(n[1]),Number(n[2]),Number(n[3])],a=new Date(Date.UTC(2e3,r-1,i));return a.setUTCFullYear(e),a.getUTCFullYear()===e&&a.getUTCMonth()===r-1&&a.getUTCDate()===i?it(a.getTime(),t):NaN}return Date.parse(e)}function Bt(e,t=j){let{year:n,month:r,day:i,hour:a,minute:o}=nt(e,t);return{year:n,month:r,day:i,hour:a,minute:o}}function F(e,{pattern:t=`day`,timeZone:n=j}={}){let r=P(e,n);if(!Number.isFinite(r))return M();let i=Bt(r,n),a=e=>String(e).padStart(2,`0`),o=`${a(i.day)}-${gt(i.month)}-${i.year}`,s=`${a(i.hour)}:${a(i.minute)}`;switch(t){case`month`:return`${gt(i.month)}-${i.year}`;case`year`:return String(i.year);case`datetime`:return`${o} ${s}`;case`time`:return s;default:return o}}function Vt(e,{timeZone:t=j}={}){let n=P(e,t);if(!Number.isFinite(n))return M();let r=Bt(n,t);return`${String(r.day).padStart(2,`0`)}-${gt(r.month)}`}function Ht(e,t){if(e==null||e===``)return M();let n=t?.style;if(n===`date`)return F(e,t);if(n===`status`||typeof e!=`number`)return String(e);switch(n){case`currency`:return Pt(e,{...t,currency:t?.currency??``});case`percent`:return Lt(e,t);case`compact`:return It(e,t);case`duration`:return zt(e,t);default:return N(e,t)}}function Ut(e){let t=e?.style;if(t===`currency`){if(!e?.currency)throw TypeError(`[@webority/ui-elements] a currency format needs a currency, an ISO 4217 code such as "INR".`);return{style:`compact`,currency:e.currency,unit:e.unit}}return!t||t===`number`?{style:`compact`}:e??{}}function Wt(e,{timeZone:t=j}={}){let n=P(e);if(!Number.isFinite(n))return M();let r=Object.fromEntries(Kt(t).formatToParts(n).map(e=>[e.type,e.value])),i=r.dayPeriod;if(i===void 0)throw Error(`Intl returned no day period for a 12-hour clock`);return`${r.day}-${gt(Number(r.month)-1)}-${r.year}, ${r.hour}:${r.minute} ${i.toUpperCase()}`}var Gt=new Map;function Kt(e){let t=Gt.get(e);return t||(t=new Intl.DateTimeFormat(`en-IN`,{day:`2-digit`,month:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,hour12:!0,timeZone:e}),Gt.set(e,t)),t}function qt(e=j){return new Intl.DateTimeFormat(`en-IN`,{timeZone:e,timeZoneName:`short`}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??e}var Jt={active:`info`,approved:`success`,"at-risk":`warning`,completed:`success`,delivered:`success`,done:`success`,failed:`danger`,"in-progress":`info`,"on-hold":`warning`,open:`info`,overdue:`danger`,paid:`success`,pending:`warning`,rejected:`danger`},Yt=[`primary`,`success`,`warning`,`danger`,`info`,`neutral`];function Xt(e){return Yt.some(t=>t===e)}var Zt={};for(let[e,t]of Object.entries(Jt)){if(!Xt(t))throw Error(`statusTones.json: "${e}" has tone "${t}", not one of ${Yt.join(`, `)}`);Zt[e]=t}var Qt=Object.freeze(Zt),$t=n({CURRENCIES:()=>ot,CURRENCY_SYMBOLS:()=>We,DATE_PATTERNS:()=>lt,DEFAULT_CURRENCY:()=>`INR`,DURATION_UNITS:()=>ct,FORMAT_STYLES:()=>at,IST_OFFSET_MS:()=>Qe,IST_TIME_ZONE:()=>j,MAX_DECIMALS:()=>20,MONEY_UNITS:()=>st,STATUS_TONES:()=>Qt,compactFormatOf:()=>Ut,configureFormatText:()=>Xe,currencyPrefix:()=>Ke,emptyValueLabel:()=>M,formatCompact:()=>It,formatCurrency:()=>Pt,formatDate:()=>F,formatDateTime:()=>Wt,formatDayShort:()=>Vt,formatDuration:()=>zt,formatNumber:()=>N,formatPercent:()=>Lt,formatValue:()=>Ht,isCurrencyCode:()=>Ge,isMoneyUnit:()=>ut,isTimeZone:()=>tt,istParts:()=>Bt,monthLabel:()=>gt,monthLongLabel:()=>_t,paiseToRupeeText:()=>At,timeZoneLabel:()=>qt,toInstant:()=>P,wallToInstant:()=>it,weekdayLabel:()=>vt,zoneOffsetMs:()=>rt,zoneParts:()=>nt}),en=n({fillText:()=>R,pluralCategory:()=>hn,pluralText:()=>gn,readText:()=>I,setText:()=>un,subscribeText:()=>dn,textLocale:()=>fn}),tn=`en-IN`,nn=/\{([A-Za-z0-9_]+)\}/g,rn=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,an,on=new Map,sn=0,cn=new Set,ln=new Map;function un(e){let t=new Map,n,r=Object.entries(e);for(let[e,i]of r)if(i!==void 0){if(e===`locale`){if(typeof i!=`string`)throw RangeError(`Text locale must be a BCP 47 tag string.`);n=i}else{if(!_n(i))throw RangeError(`Text ${e} must be an object of string keys.`);t.set(e,vn(e,i))}}Xe(t.get(`formatters`)??{}),an=n,on=t,sn+=1;for(let e of Array.from(cn))e()}function I(e,t){let n=on.get(e);if(n===void 0)return t;let r=ln.get(e);if(r!==void 0&&r.version===sn&&r.english===t&&bn(r.merged,t))return r.merged;let i=yn(e,n,t);return ln.set(e,{version:sn,english:t,merged:i}),i}function dn(e){return cn.add(e),()=>{cn.delete(e)}}function fn(){return an??tn}var L=e=>e===1?`one`:`other`,pn=e=>Math.trunc(Math.abs(e))===0||e===1?`one`:`other`,mn={en:L,ta:L,te:L,ml:L,mr:L,ne:L,or:L,ur:L,hi:pn,bn:pn,gu:pn,kn:pn,as:pn,pa:pn};function hn(e,t){let n=e.split(/[-_]/)[0]?.toLowerCase()??``,r=rn(mn,n)?mn[n]:void 0;if(r===void 0)throw RangeError(`No plural rule for locale "${e}". Supported languages: ${Object.keys(mn).join(`, `)}.`);return r(t)}function R(e,t){return e.replace(nn,(e,n)=>rn(t,n)?String(t[n]):e)}function gn(e,t,n,r){let i=`${t}Other`;if(!rn(e,i))throw RangeError(`Plural text ${t} has no ${i} key; every plural needs its Other form.`);let a=hn(fn(),n),o=`${t}${a.charAt(0).toUpperCase()}${a.slice(1)}`,s=e[rn(e,o)?o:i];if(s===void 0)throw RangeError(`Plural text ${t} has no ${o} key.`);return R(s,{count:n,...r})}function _n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function vn(e,t){let n={};for(let[r,i]of Object.entries(t)){if(typeof i!=`string`)throw RangeError(`Text ${e}.${r} must be a string.`);n[r]=i}return n}function yn(e,t,n){let r={};for(let[i,a]of Object.entries(t)){let t=rn(n,i)?n[i]:void 0;if(t===void 0)throw RangeError(`Text ${e}.${i} is not a key of the English text. Allowed keys: ${Object.keys(n).join(`, `)}.`);let o=xn(t);for(let t of xn(a))if(!o.includes(t))throw RangeError(`Text ${e}.${i} uses {${t}}, which the English text does not have. Allowed placeholders: ${o.length===0?`none`:o.map(e=>`{${e}}`).join(`, `)}.`);r[i]=a}return Object.assign({},n,r)}function bn(e,t){let n=Object.keys(t);return Object.keys(e).length===n.length&&n.every(t=>rn(e,t))}function xn(e){return Array.from(e.matchAll(nn),e=>e[1]??``)}var Sn={closeLabel:`Close`,helpLabel:`Show these shortcuts`,nextItemLabel:`Next item`,openItemLabel:`Open the item`,previousItemLabel:`Previous item`,selectItemLabel:`Select the item`,sheetTitle:`Keyboard shortcuts`},Cn=n({SHORTCUTS_OFF_ATTRIBUTE:()=>Tn,SHORTCUT_EVENT:()=>Dn,SHORTCUT_SCOPE_ATTRIBUTE:()=>En,ariaKeyShortcuts:()=>zn,inShortcutScope:()=>Un,isTypingTarget:()=>Bn,listKeys:()=>kn,moveFocus:()=>Gn,runShortcut:()=>Wn,selectKey:()=>An,shortcutKey:()=>Rn,shortcutName:()=>Ln,shortcutText:()=>On,shortcutsOff:()=>Hn}),wn=()=>I(`shortcutKeys`,Sn),Tn=`data-wui-shortcuts`,En=`data-shortcut-scope`,Dn=`wui:shortcut`,On=()=>({title:wn().sheetTitle,close:wn().closeLabel,help:wn().helpLabel}),kn=()=>[{key:`J`,label:wn().nextItemLabel},{key:`K`,label:wn().previousItemLabel},{key:`Enter`,label:wn().openItemLabel}],An=()=>({key:`X`,label:wn().selectItemLabel}),jn={"/":`slash`,"?":`help`,Escape:`esc`,Esc:`esc`,Enter:`enter`},Mn={esc:`Esc`,escape:`Esc`,enter:`Enter`,slash:`/`,help:`?`},Nn={esc:`Escape`,ctrl:`Control`,cmd:`Meta`,option:`Alt`,opt:`Alt`},Pn=new Set([`checkbox`,`radio`,`button`,`submit`,`reset`,`range`,`color`,`file`,`image`]),Fn=new Set([`textbox`,`searchbox`,`combobox`]),In=`a[href], button, summary, input, select, textarea, [role="button"], [role="link"], [role="menuitem"], [role="option"], [role="tab"], [role="checkbox"], [role="switch"]`;function Ln(e){if(!e||e.ctrlKey||e.metaKey||e.altKey)return null;let t=e.key;return typeof t!=`string`||!t?null:jn[t]?jn[t]:t.length===1&&t.trim()?t.toLowerCase():null}function Rn(e){let t=String(e??``).trim();return t.length===1?t.toUpperCase():Mn[t.toLowerCase()]??t}function zn(e){return String(e??``).trim().split(/\s+/).filter(Boolean).map(e=>Nn[e.toLowerCase()]??(e.length===1?e.toUpperCase():e)).join(`+`)}function Bn(e){if(!e||!Vn(e))return!1;if(e instanceof HTMLElement&&e.isContentEditable||e.closest?.(`[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]`)||e.tagName===`TEXTAREA`||e.tagName===`SELECT`)return!0;if(e.tagName===`INPUT`){let t=e instanceof HTMLInputElement&&e.type?e.type:`text`;return!Pn.has(t.toLowerCase())}return Fn.has(e.getAttribute?.(`role`))}function Vn(e){return e.nodeType===1}function Hn(e=typeof document>`u`?null:document){return e?.documentElement?.getAttribute(Tn)===`off`}function Un(e,t){if(!t||e&&t.contains(e))return!0;let n=t.ownerDocument;return(!e||e===n.body||e===n.documentElement)&&n.querySelector(`[data-shortcut-scope]`)===t}function Wn(e,t,n=null){let r=e.target instanceof Node?e.target:null;if(!t||e.defaultPrevented||Hn(r?.ownerDocument??void 0))return!1;let i=Ln(e);if(!i||!Un(r,n)||Bn(r))return!1;let a=t[i]??(i.length===1?t[i.toUpperCase()]:void 0);return typeof a!=`function`||i===`enter`&&r instanceof Element&&r.closest(In)?!1:(e.preventDefault(),a(e),!0)}function Gn(e,t){let n=e[0]?.ownerDocument;if(!n)return null;let r=n.activeElement,i=e.findIndex(e=>e===r||e.contains(r));if(i<0&&r&&r!==n.body){let t=r.closest?.(`li, tr`);t&&(i=e.findIndex(e=>t.contains(e)))}i<0&&(i=e.findIndex(e=>e.getAttribute(`aria-current`)===`true`));let a=k(e[i<0?t>0?0:e.length-1:Math.min(e.length-1,Math.max(0,i+t))],`moveFocus: no item at the clamped index`);return a.focus(),a.scrollIntoView?.({block:`nearest`}),a}function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Kn(e)}function qn(e,t){if(Kn(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Kn(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Jn(e){var t=qn(e,`string`);return Kn(t)==`symbol`?t:t+``}function z(e,t,n){return(t=Jn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yn=2,Xn=`wui-filter-popover-pinned`,Zn=`.wui-filter-popover-trigger`,Qn=`.wui-filter-popover-panel`,$n=`.wui-filter-popover-head`,er=`input:not([type]),input[type="text"],input[type="search"]`,tr=`a[href],button:not([disabled]),input:not([disabled]):not([type='hidden']),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex='-1'])`;function nr(){try{return sessionStorage.getItem(Xn)===`1`}catch{return!1}}function rr(e){try{e?sessionStorage.setItem(Xn,`1`):sessionStorage.removeItem(Xn)}catch(e){if(!(e instanceof DOMException))throw e}}function ir(e){if(e===null||e instanceof Node)return e;throw TypeError(`event target is not a node`)}function ar(e,t){let n=e?.querySelector(t)??null;return n instanceof HTMLElement?n:null}var or=class extends s{constructor(){super(),z(this,`_doc`,void 0),z(this,`_timer`,void 0),z(this,`_sticky`,void 0),z(this,`_closingByCode`,void 0),z(this,`_inside`,void 0),z(this,`_pendingSubmit`,void 0),z(this,`_onEnter`,void 0),z(this,`_onLeave`,void 0),z(this,`_onClick`,void 0),z(this,`_onChange`,void 0),z(this,`_onListClose`,void 0),z(this,`_onFocusOut`,void 0),z(this,`_onKeyDown`,void 0),z(this,`_onShortcut`,void 0),this._doc=null,this._timer=null,this._sticky=!1,this._closingByCode=!1,this._inside=!1,this._pendingSubmit=!1,this._onEnter=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!0,this._schedule(!0))},this._onLeave=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!1,this._schedule(!1))},this._onClick=e=>{this._trigger?.contains(ir(e.target))&&(this._clear(),this.isOpen&&this._sticky?this._close(!0):this._open(!0,e.detail===0))},this._onChange=e=>{let t=this._pin;if(t&&e.target===t){rr(t.checked),t.checked?this._clear():this._schedule(!1);return}let n=e.target;if(n instanceof Element&&n.closest(`wui-select[mode="multiple"], wui-select[mode="tag"]`)?.querySelector(`[aria-expanded="true"]`)){this._pendingSubmit=!0;return}let r=this.closest(`form.wui-filter-form`);r instanceof HTMLFormElement&&r.requestSubmit()},this._onListClose=()=>{if(!this._pendingSubmit)return;this._pendingSubmit=!1;let e=this.closest(`form.wui-filter-form`);e instanceof HTMLFormElement&&e.requestSubmit()},this._onFocusOut=e=>{this.contains(ir(e.relatedTarget))||this._schedule(!1)},this._onKeyDown=e=>{let t=e.target;if(e.key!==`Enter`||!(t instanceof Element)||!this._panel?.contains(t)||!t.matches(er))return;e.preventDefault();let n=this.closest(`form.wui-filter-form`);n instanceof HTMLFormElement&&n.requestSubmit()},this._onShortcut=e=>{this.ownerDocument.querySelector(`wui-filter-popover`)===this&&Wn(e,{f:()=>this._open(!0,!0)})}}get isOpen(){let e=this._panel;return e?O(e):!1}connectedCallback(){this._doc=this.ownerDocument,this.addEventListener(`pointerenter`,this._onEnter),this.addEventListener(`pointerleave`,this._onLeave),this.addEventListener(`click`,this._onClick),this.addEventListener(`change`,this._onChange),this.addEventListener(`focusout`,this._onFocusOut),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`wui-select:close`,this._onListClose),this._doc.addEventListener(`keydown`,this._onShortcut),nr()&&this._pin&&(this._pin.checked=!0,this._open(!1,!1))}disconnectedCallback(){this._clear();let e=this._panel;e&&this._closeByCode(e),this.removeEventListener(`pointerenter`,this._onEnter),this.removeEventListener(`pointerleave`,this._onLeave),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`change`,this._onChange),this.removeEventListener(`focusout`,this._onFocusOut),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`wui-select:close`,this._onListClose),this._doc?.removeEventListener(`keydown`,this._onShortcut),this._doc=null}get _trigger(){return ar(this,Zn)}get _panel(){return ar(this,Qn)}get _pin(){let e=this.querySelector(`${$n} input[type="checkbox"]`);return e instanceof HTMLInputElement?e:null}get _pinned(){return this._pin?.checked===!0}_clear(){this._timer!==null&&clearTimeout(this._timer),this._timer=null}_schedule(e){if(this._clear(),e){if(this.isOpen)return;this._timer=setTimeout(()=>{this._timer=null,this._open(!1,!1)},150)}else this.isOpen&&!this._stayOpen()&&(this._timer=setTimeout(()=>{this._timer=null,this._stayOpen()||this._close(!1)},400))}_stayOpen(){let e=this._panel;return e?this._pinned||this._inside||e.contains(this.ownerDocument.activeElement)||e.querySelector(`[aria-expanded="true"]`)!==null:!1}_open(e,t){this._clear();let n=this._panel,r=this._trigger;n&&r&&(this.isOpen?e&&(this._sticky=!0):(r.setAttribute(`aria-expanded`,`true`),this._sticky=e,Me(r,n,{mode:`auto`,clampHeight:!0,alignEnd:!0,onClosed:()=>this._closed()})),t&&(ar(n.querySelector(`.wui-filter-popover-grid`),tr)??ar(n,tr))?.focus())}_close(e){this._clear();let t=this._panel;if(!t||!this.isOpen)return;let n=t.contains(this.ownerDocument.activeElement);this._closeByCode(t),e&&n&&this._trigger?.focus()}_closeByCode(e){this._closingByCode=!0;try{Ne(e)}finally{this._closingByCode=!1}}_closed(){if(this._trigger?.setAttribute(`aria-expanded`,`false`),this._sticky=!1,this._closingByCode)return;let e=this._trigger,t=this._panel,n=this.ownerDocument.activeElement;e&&(n===this.ownerDocument.body||t?.contains(n))&&e.focus()}};function sr(){i(`wui-filter-popover`,or)}var cr=class extends s{static get observedAttributes(){return[`open`,`static`,`no-escape`]}constructor(){super(),z(this,`_doc`,void 0),z(this,`_release`,void 0),z(this,`_opener`,void 0),z(this,`_returnTo`,void 0),z(this,`_session`,void 0),z(this,`_closing`,void 0),z(this,`_reopen`,void 0),this._doc=null,this._release=null,this._opener=null,this._returnTo=null,this._session=0,this._closing=!1,this._reopen=!1}connectedCallback(){this._doc=this.ownerDocument,ze(this._doc),this.hasAttribute(`open`)&&this._open()}disconnectedCallback(){this._session++,this._closing=!1,this._reopen=!1;let e=this.querySelector(`dialog`);this._release&&e instanceof HTMLDialogElement&&e.close(),this._releaseDialog(),this._opener=null,this._returnTo=null,this._doc=null}attributeChangedCallback(e){this._doc&&e===`open`&&(this.hasAttribute(`open`)?this._open():this._close())}get isOpen(){return this.hasAttribute(`open`)}show(e){e&&(this._opener=e),this.setAttribute(`open`,``)}hide(){this.removeAttribute(`open`)}_open(){if(this._closing){this._reopen=!0;return}if(this._release)return;let e=++this._session,t=this._opener;if(this._returnTo=t,this._opener=null,this.dispatchEvent(new CustomEvent(`wui-modal-open`,{bubbles:!0,detail:{trigger:t}})),!this.isOpen)return;let n=this._dialog();this._release=Ae(n,{escape:!this.hasAttribute(`no-escape`),backdrop:this.hasAttribute(`static`)?null:this._card(n),focus:`first-control`,onRequestClose:e=>this._requestClose(e)}),this._settle(e,n)}_close(){if(this._closing){this._reopen=!1;return}if(!this._release)return;this._closing=!0;let e=this._session,t=this._dialog();je(t).then(()=>{e===this._session&&(this._closing=!1,this._releaseDialog(),De(this._returnTo,t),this._returnTo=null,this.dispatchEvent(new CustomEvent(`wui-modal-closed`,{bubbles:!0})),this._reopen&&(this._reopen=!1,this.isOpen&&this._open()))})}_settle(e,t){let n=t.getAnimations?.()??[];n.length?Promise.allSettled(n.map(e=>e.finished)).then(()=>{e===this._session&&this.isOpen&&this._announceOpened()}):this._announceOpened()}_announceOpened(){this.dispatchEvent(new CustomEvent(`wui-modal-opened`,{bubbles:!0}))}_requestClose(e){this.dispatchEvent(new CustomEvent(`wui-modal-close`,{bubbles:!0,cancelable:!0,detail:{reason:e}}))&&this.removeAttribute(`open`)}_releaseDialog(){let e=this._release;this._release=null,e?.()}_card(e){let t=e.querySelector(`.modal-content.wui-modal`);if(!(t instanceof HTMLElement))throw TypeError(`wui-modal has no .modal-content.wui-modal`);return t}_dialog(){let e=this.querySelector(`dialog`);if(!(e instanceof HTMLDialogElement))throw TypeError(`wui-modal has no <dialog>`);return e}},lr=n({avatarNode:()=>dr,safeImageUrl:()=>ur}),ur=e=>{let t=String(e??``).trim();return/^(https?:)?\/\//i.test(t)||/^\/(?!\/)/.test(t)||/^data:image\/(png|jpe?g|gif|webp|avif);/i.test(t)?t:``};function dr(e,t=`wui-opt-avatar`){let n=ur(e.avatar);return!n&&!e.initials?null:A(`span`,{class:`avatar ${t}`,"aria-hidden":`true`},A(`span`,{class:`avatar-face`},e.initials??``),n?A(`img`,{class:`avatar-img`,src:n,alt:``}):null)}var fr=n({devError:()=>mr,devWarn:()=>pr});function pr(e,...t){console.warn(e,...t)}function mr(e,...t){console.error(e,...t)}var hr=n({BUSY_CLASS:()=>gr,isInert:()=>B,isReadOnly:()=>_r,syncFieldState:()=>vr}),gr=`wui-field-busy`,_r=e=>e.hasAttribute(`readonly`),B=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`readonly`)||e.hasAttribute(`loading`);function vr(e,t){let n=e.hasAttribute(`loading`);n?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),t&&(t.classList.toggle(gr,n),_r(e)?t.setAttribute(`aria-readonly`,`true`):t.removeAttribute(`aria-readonly`))}var yr=n({syncFormMirror:()=>Cr,syncFormMirrors:()=>wr}),br=`data-wui-mirror`;function xr(e,t,n,r){t.name=n,t.value=r==null?``:String(r);for(let n of[...t.attributes])n.name.startsWith(`data-val`)&&!e.hasAttribute(n.name)&&t.removeAttribute(n.name);for(let n of e.attributes)n.name.startsWith(`data-val`)&&t.setAttribute(n.name,n.value);t.disabled=e.hasAttribute(`disabled`)}function Sr(e){let t=document.createElement(`input`);return t.type=`hidden`,t.setAttribute(br,``),e.appendChild(t),t}function Cr(e,t){let n=e.getAttribute(`name`)??``,r=e.querySelector(`:scope > input[${br}]`),i=r instanceof HTMLInputElement?r:null;n?(i||=Sr(e),xr(e,i,n,t)):i?.remove()}function wr(e,t){let n=e.getAttribute(`name`)??``,r=[...e.querySelectorAll(`:scope > input[${br}]`)].filter(e=>e instanceof HTMLInputElement),i=[...e.attributes].some(e=>e.name.startsWith(`data-val`)),a=n?t.length>0?t:i?[``]:[]:[];for(let e of r.splice(a.length))e.remove();a.forEach((t,i)=>{xr(e,r[i]??Sr(e),n,t)})}var Tr=n({hasOwn:()=>Er}),Er=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,Dr=[`a`,`b`,`c`,`d`,`e`,`f`,`g`,`h`,`i`,`j`,`k`,`l`,`m`,`n`,`o`,`p`,`q`,`r`,`s`,`t`,`u`,`v`,`w`,`x`,`z`],Or=Object.freeze({serverActions:`[data-wui-confirm], [data-wui-post], form[data-wui-post-form], [data-wui-row-action], [data-wui-auto-submit]`,unsavedChanges:`form[data-wui-unsaved]`,remoteModal:`[data-wui-modal], [data-wui-drawer], [data-wui-pane], wui-modal[data-wui-remote-url]`,serverTable:`[data-wui-server]`,drawerDiscard:`wui-drawer[confirm-discard], wui-modal form`}),kr=`[data-app-shell]`,Ar=Object.freeze({carousel:{entries:[`elements/carousel.ts`],tags:[`wui-carousel`]},"data-table":{entries:[`elements/data-table.ts`],tags:[`wui-data-table`]},dock:{entries:[`elements/dock.ts`],tags:[`wui-dock`]},"hover-card":{entries:[`elements/hover-card.ts`],tags:[`wui-hover-card`]},"navigation-menu":{entries:[`elements/navigation-menu.ts`],tags:[`wui-navigation-menu`]},"notification-center":{entries:[`elements/notification-center.ts`],tags:[`wui-notification-center`]},"onboarding-checklist":{entries:[`elements/onboarding-checklist.ts`],tags:[`wui-onboarding-checklist`]},otp:{entries:[`elements/otp.ts`],tags:[`wui-otp`]},overflow:{entries:[`elements/overflow.ts`],tags:[`wui-overflow`]},rating:{entries:[`elements/rating.ts`],tags:[`wui-rating`]},"record-pager":{entries:[`elements/record-pager.ts`],tags:[`wui-record-pager`]},"relative-time":{entries:[`elements/relative-time.ts`],tags:[`wui-relative-time`]},shortcuts:{entries:[`elements/shortcuts.ts`],tags:[`wui-shortcuts`]},"show-more":{entries:[`elements/show-more.ts`],tags:[`wui-show-more`]},"calendar-views":{entries:[`elements/calendar-views.ts`],tags:[`wui-calendar-views`]},truncate:{entries:[`elements/truncate.ts`],tags:[`wui-truncate`]},"whats-new":{entries:[`elements/whats-new.ts`],tags:[`wui-whats-new`]},"offline-banner":{entries:[`elements/offline-banner.ts`],tags:[`wui-offline-banner`]},"code-block":{entries:[`elements/code-block.ts`],tags:[`wui-code-block`]},"command-palette":{entries:[`elements/command-palette.ts`],tags:[`wui-command-palette`]},"comment-thread":{entries:[`elements/comment-thread.ts`],tags:[`wui-mention-input`,`wui-comment-thread`]},"consent-banner":{entries:[`elements/consent-banner.ts`],tags:[`wui-consent-banner`]},"context-menu":{entries:[`elements/context-menu.ts`],tags:[`wui-context-menu`]},"date-range":{entries:[`elements/date-range.ts`],tags:[`wui-date-range`]},"date-time":{entries:[`elements/date-time.ts`],tags:[`wui-date-time`]},datepicker:{entries:[`elements/datepicker.ts`],tags:[`wui-datepicker`]},"mini-calendar":{entries:[`elements/mini-calendar.ts`],tags:[`wui-mini-calendar`]},drawer:{entries:[`elements/drawer.ts`],tags:[`wui-drawer`]},dropdown:{entries:[`elements/dropdown.ts`],tags:[`wui-dropdown`]},"entry-grid":{entries:[`elements/entry-grid.ts`],tags:[`wui-entry-grid`]},gantt:{entries:[`elements/gantt.ts`],tags:[`wui-gantt`]},"image-crop":{entries:[`elements/image-crop.ts`],tags:[`wui-image-crop`]},"inline-edit":{entries:[`elements/inline-edit.ts`],tags:[`wui-inline-edit`]},kanban:{entries:[`elements/kanban.ts`],tags:[`wui-kanban`]},"dashboard-grid":{entries:[`elements/dashboard-grid.ts`],tags:[`wui-dashboard-grid`]},"lead-popup":{entries:[`elements/lead-popup.ts`],tags:[`wui-lead-popup`]},lightbox:{entries:[`elements/lightbox.ts`],tags:[`wui-lightbox`]},"org-tree":{entries:[`elements/org-tree.ts`],tags:[`wui-org-tree`]},markdown:{entries:[`elements/markdown.ts`],tags:[`wui-markdown`]},phone:{entries:[`elements/phone.ts`,`global/parts/select-country.ts`],tags:[`wui-phone`]},popover:{entries:[`elements/popover.ts`],tags:[`wui-popover`]},"saved-views":{entries:[`elements/saved-views.ts`],tags:[`wui-saved-views`]},glyphs:{entries:[`global/parts/glyphs.ts`],tags:[]},...Object.fromEntries(Dr.map(e=>[`glyphs-${e}`,{entries:[`global/parts/glyphs-${e}.g.ts`],tags:[]}])),"select-chips":{entries:[`global/parts/select-chips.ts`],tags:[]},"select-recents":{entries:[`global/parts/select-recents.ts`],tags:[]},"select-search":{entries:[`global/parts/select-search.ts`],tags:[]},"select-window":{entries:[`global/parts/select-window.ts`],tags:[]},"table-export":{entries:[`global/parts/table-export.ts`],tags:[]},server:{entries:[`global/parts/server.ts`],tags:[],markers:Object.values(Or).join(`, `)},shell:{entries:[`global/parts/shell.ts`],tags:[],markers:kr},slider:{entries:[`elements/slider.ts`],tags:[`wui-slider`]},sortable:{entries:[`elements/sortable.ts`],tags:[`wui-sortable`]},"status-icon":{entries:[`elements/status-icon.ts`],tags:[`wui-status-icon`]},timepicker:{entries:[`elements/timepicker.ts`],tags:[`wui-timepicker`]},tour:{entries:[`elements/tour.ts`],tags:[`wui-tour`]},tree:{entries:[`elements/tree.ts`],tags:[`wui-tree`]},"tree-picker":{entries:[`elements/tree-picker.ts`],tags:[`wui-tree-picker`]},wizard:{entries:[`elements/wizard.ts`],tags:[`wui-wizard-step`,`wui-wizard`]},chart:{file:`ui-chart.global.js`,tags:[`wui-chart`],selfContained:!0},calendar:{file:`ui-calendar.global.js`,tags:[`wui-calendar`],selfContained:!0},"rich-text":{file:`ui-rich-text.global.js`,tags:[`wui-rich-text`],selfContained:!0},"file-viewer":{file:`ui-file-viewer.global.js`,tags:[`wui-file-viewer`],selfContained:!0}});Object.freeze({anchorOverlay:`anchorOverlay.ts`,avatarNode:`avatarNode.ts`,buttonClass:`buttonClass.ts`,calendarMath:`calendarMath.ts`,copyText:`copyText.ts`,dataTable:`dataTable.ts`,dataTableText:`text/web/dataTable.g.ts`,datePickerText:`text/web/datePicker.g.ts`,defineElement:`defineElement.ts`,devWarn:`devWarn.ts`,dom:`dom.ts`,drawerText:`text/web/drawer.g.ts`,elementBase:`elementBase.ts`,fieldState:`fieldState.ts`,flash:`server/flash.ts`,formatters:`../../markdown-core/src/format/index.ts`,formMirror:`formMirror.ts`,glyphs:`global/glyphs.ts`,hasOwn:`hasOwn.ts`,httpFailureText:`text/web/httpFailure.g.ts`,iconGlyphs:`iconGlyphs.g.ts`,imeSafeEnter:`imeSafeEnter.ts`,isDrawn:`isDrawn.ts`,listboxKeyNav:`listboxKeyNav.ts`,loader:`global/loader.ts`,mentionText:`mentionText.ts`,menuKeyNav:`menuKeyNav.ts`,nativeOverlay:`nativeOverlay.ts`,notificationCentreText:`text/web/notificationCentre.g.ts`,notificationDays:`notificationDays.ts`,optionLabel:`optionLabel.ts`,partRegistry:`select/partRegistry.ts`,postError:`server/postError.ts`,refreshAfter:`server/refreshAfter.ts`,regions:`server/regions.ts`,relativeTime:`relativeTime.ts`,rtl:`rtl.ts`,selectList:`select/list.ts`,selectRemote:`select/remote.ts`,selectText:`text/web/select.g.ts`,selectWindow:`select/window.ts`,server:`global/server.ts`,serverHtml:`server/serverHtml.ts`,serverTableRegistry:`server/serverTableRegistry.ts`,shellRegistry:`server/shellRegistry.ts`,shortcutKeys:`shortcutKeys.ts`,stepperHeader:`stepperHeader.ts`,svgNodes:`svgNodes.ts`,tableExport:`global/tableExport.ts`,tableSelect:`tableSelect.ts`,textMatch:`textMatch.ts`,textStore:`text/textStore.ts`,toastAction:`server/toastAction.ts`,toastHeader:`server/toastHeader.ts`,tooltips:`tooltips.ts`,wuiHost:`server/wuiHost.ts`,wuiHttp:`server/wuiHttp.ts`,wuiUpload:`server/wuiUpload.ts`,WuiSelect:`WuiSelect.ts`,zone:`zone.ts`});var jr=`ui-elements/`;function Mr(e){let t=Ar[e];if(t===void 0)throw Error(`[webority-ui] No on-demand element chunk is named ${e}.`);return t}function Nr(e){let t=Mr(e);if(!t.selfContained)return`${jr+e}.global.js`;if(t.file===void 0)throw Error(`[webority-ui] The self-contained element chunk ${e} names no file.`);return t.file}var Pr=n({CHUNK_DIR:()=>jr,CHUNK_RETRY_MS:()=>Lr,ELEMENTS_DEFINED_EVENT:()=>Fr,ELEMENTS_LOAD_ERROR_EVENT:()=>Ir,assetUrl:()=>ti,chunkReadyCheckKeys:()=>ni,loadChunk:()=>H,registerChunkReadyCheck:()=>V,startElementLoader:()=>Qr,stopElementLoader:()=>$r,whenElementsReady:()=>ei}),Fr=`wui-elements:defined`,Ir=`wui-elements:load-error`,Lr=1e3,Rr={"ui-elements/carousel.global.js":`23c8d6793550`,"ui-elements/data-table.global.js":`ea6a66d827de`,"ui-elements/dock.global.js":`8a08eef0f924`,"ui-elements/hover-card.global.js":`165709e1e423`,"ui-elements/navigation-menu.global.js":`e7e293373357`,"ui-elements/notification-center.global.js":`e74b800b67a9`,"ui-elements/onboarding-checklist.global.js":`f3b536f12114`,"ui-elements/otp.global.js":`39991fdd4010`,"ui-elements/overflow.global.js":`6a05be807592`,"ui-elements/rating.global.js":`475929ed5ffc`,"ui-elements/record-pager.global.js":`daae40c54c44`,"ui-elements/relative-time.global.js":`dd70eeb671e4`,"ui-elements/shortcuts.global.js":`b775978b79d8`,"ui-elements/show-more.global.js":`6bd229d5b927`,"ui-elements/calendar-views.global.js":`25ca3b164e23`,"ui-elements/truncate.global.js":`013f1bbff1a3`,"ui-elements/whats-new.global.js":`d85e13e2f12f`,"ui-elements/offline-banner.global.js":`2a0a714d83ba`,"ui-elements/code-block.global.js":`48092750505a`,"ui-elements/command-palette.global.js":`f0eaa558b825`,"ui-elements/comment-thread.global.js":`e63abd5061c1`,"ui-elements/consent-banner.global.js":`bc7bc79093f1`,"ui-elements/context-menu.global.js":`8141bbb85962`,"ui-elements/date-range.global.js":`77297e531194`,"ui-elements/date-time.global.js":`08ba1a3f7ee1`,"ui-elements/datepicker.global.js":`25ed2c5b1f88`,"ui-elements/mini-calendar.global.js":`8a4f95572494`,"ui-elements/drawer.global.js":`9d2a7e661ff8`,"ui-elements/dropdown.global.js":`99ae05bc2e8f`,"ui-elements/entry-grid.global.js":`b9dd22f87a8a`,"ui-elements/gantt.global.js":`3cc9bb74df2e`,"ui-elements/image-crop.global.js":`d67b3f55a4dc`,"ui-elements/inline-edit.global.js":`246aa98a4ebc`,"ui-elements/kanban.global.js":`eed7128836ea`,"ui-elements/dashboard-grid.global.js":`b0d916d3c412`,"ui-elements/lead-popup.global.js":`60c3c8114275`,"ui-elements/lightbox.global.js":`0423294b3d21`,"ui-elements/org-tree.global.js":`2fedfdb38bbc`,"ui-elements/markdown.global.js":`f85db005c93e`,"ui-elements/phone.global.js":`83e605034ffb`,"ui-elements/popover.global.js":`f6ee4fb1ddc8`,"ui-elements/saved-views.global.js":`b92e11a54b65`,"ui-elements/glyphs.global.js":`7dd6e2be2a05`,"ui-elements/glyphs-a.global.js":`03fff972aa0c`,"ui-elements/glyphs-b.global.js":`44962d0cff9a`,"ui-elements/glyphs-c.global.js":`f38e3c694982`,"ui-elements/glyphs-d.global.js":`5ad08f89025b`,"ui-elements/glyphs-e.global.js":`454e1c6285cb`,"ui-elements/glyphs-f.global.js":`b0353eb3ffce`,"ui-elements/glyphs-g.global.js":`1e997cad4622`,"ui-elements/glyphs-h.global.js":`32bcc62785a7`,"ui-elements/glyphs-i.global.js":`9377be717fdf`,"ui-elements/glyphs-j.global.js":`359445dfec16`,"ui-elements/glyphs-k.global.js":`01b327a61af3`,"ui-elements/glyphs-l.global.js":`cb1011c5206c`,"ui-elements/glyphs-m.global.js":`3a440bec404f`,"ui-elements/glyphs-n.global.js":`bb2d73b34ddd`,"ui-elements/glyphs-o.global.js":`65a1ebc78dd0`,"ui-elements/glyphs-p.global.js":`db9427ea6e8f`,"ui-elements/glyphs-q.global.js":`52688b037967`,"ui-elements/glyphs-r.global.js":`0789b48c45dd`,"ui-elements/glyphs-s.global.js":`c73cb31d2cf0`,"ui-elements/glyphs-t.global.js":`470c58bcc45b`,"ui-elements/glyphs-u.global.js":`fdd1e1a832e4`,"ui-elements/glyphs-v.global.js":`12f0aca86b0f`,"ui-elements/glyphs-w.global.js":`4ce4e6528efa`,"ui-elements/glyphs-x.global.js":`b1816d1d5057`,"ui-elements/glyphs-z.global.js":`73701ea0cfd3`,"ui-elements/select-chips.global.js":`83d05133aecc`,"ui-elements/select-recents.global.js":`1c475b209c41`,"ui-elements/select-search.global.js":`53f30cdd60f1`,"ui-elements/select-window.global.js":`1714fa93d01d`,"ui-elements/table-export.global.js":`94c6faed4531`,"ui-elements/server.global.js":`879ae3cf2a62`,"ui-elements/shell.global.js":`7093ded1e266`,"ui-elements/slider.global.js":`c034005a93bf`,"ui-elements/sortable.global.js":`763304851989`,"ui-elements/status-icon.global.js":`9128824ee4a0`,"ui-elements/timepicker.global.js":`d598ee65b42a`,"ui-elements/tour.global.js":`5e4802c4ce05`,"ui-elements/tree.global.js":`9e1cfb76939c`,"ui-elements/tree-picker.global.js":`b682a565fc59`,"ui-elements/wizard.global.js":`10e08f282530`,"ui-chart.global.js":`9d0b1d24796c`,"ui-calendar.global.js":`1f8681fedb97`,"ui-rich-text.global.js":`64dcebd2efc3`,"ui-file-viewer.global.js":`fc3717f88112`,"ui-phone.global.js":`c646775bc1d1`},zr=new Map;for(let[e,t]of Object.entries(Ar))for(let n of t.tags)zr.set(n,e);var Br=[...zr.keys()].join(`,`),Vr=[];for(let[e,t]of Object.entries(Ar))t.markers!==void 0&&Vr.push([e,t.markers]);var Hr=[...new Set(Vr.flatMap(([,e])=>[...e.matchAll(/\[([a-z-]+)\]/g)]).flatMap(e=>e[1]===void 0?[]:[e[1]]))],Ur=null,Wr=``,Gr=!1,Kr=null,qr=new Map,Jr=new Map,Yr=`The file ran but did not hand over its modules; see the error above.`,Xr=`The file has no ready check, so the loader cannot tell whether it ran.`;function Zr(){let e=document.currentScript;return e instanceof HTMLScriptElement?e:null}function Qr(e=Zr()){Gr||(Gr=!0,Ur=e?.src?e.src:null,Wr=e?.nonce||``,oi(document),Kr=new MutationObserver(e=>{for(let t of e)if(t.type===`attributes`)t.target instanceof Element&&oi(t.target);else for(let e of t.addedNodes)e instanceof Element&&oi(e)}),Kr.observe(document.documentElement,{childList:!0,subtree:!0,...Hr.length>0?{attributes:!0,attributeFilter:Hr}:{}}))}function $r(){Kr?.disconnect(),Kr=null,Gr=!1,Ur=null,Wr=``,qr.clear()}function ei(e=document){return Promise.all([...ai(e)].map(e=>H(e))).then(()=>void 0)}function ti(e){if(Ur===null)throw Error(`The on-demand element files have no address to load from.`);let t=new URL(e,Ur);return t.search=Er(Rr,e)?`?v=${Rr[e]}`:``,t.href}function V(e,t){Mr(e),Jr.set(e,t)}function ni(){return[...Jr.keys()]}function H(e){let t=qr.get(e)?.promise??null;if(t!==null)return t;let n=Mr(e),{tags:r}=n,i=Nr(e),a=()=>Promise.all(r.map(e=>customElements.whenDefined(e))),o={status:`loading`,promise:null},s=new Promise((t,s)=>{let c=``,l=()=>{Kr&&Object.keys(Ar).every(e=>qr.get(e)?.status===`loaded`||qr.get(e)?.status===`failed`)&&Kr.disconnect()},u=()=>{o.status=`loaded`,l(),document.dispatchEvent(new CustomEvent(Fr,{detail:{chunk:e,tags:r}})),t()},d=t=>{o.status=`failed`,l(),mr(`[webority-ui] Could not load ${c} for ${r.length?r.join(`, `):e}.${t?` ${t.message}`:``}`),document.dispatchEvent(new CustomEvent(Ir,{detail:{chunk:e,url:c,tags:r}})),s(Error(`[webority-ui] The ${e} elements failed to load.`))},f=(t,i)=>{let o=document.createElement(`script`);o.src=t,o.async=!1,Wr&&(o.nonce=Wr),o.addEventListener(`load`,()=>{if(!n.selfContained&&!r.every(e=>customElements.get(e))){d(Error(`The file ran but did not define its elements; see the error above.`));return}if(!n.selfContained&&r.length===0&&!Jr.has(e)){d(Error(Xr));return}let t=Jr.get(e);t!==void 0&&!t()?d(Error(Yr)):a().then(u)}),o.addEventListener(`error`,()=>{o.remove(),i?d():setTimeout(()=>f(t,!0),Lr)}),document.head.append(o)},p=[...document.scripts].find(e=>new URL(e.src,location.href).pathname.endsWith(`/${i}`));if(p!==void 0){let t=Jr.get(e);if(r.length>0||t===void 0&&n.selfContained){a().then(u);return}if(t===void 0){d(Error(Xr));return}if(t()){u();return}if(document.readyState===`complete`){d(Error(`The page's own tag for this file ran without handing over its modules.`));return}let i=!1,o=()=>{i||(i=!0,t()?u():d(Error(Yr)))};p.addEventListener(`load`,o),window.addEventListener(`load`,o),p.addEventListener(`error`,()=>{i||(i=!0,d())})}else{try{c=ti(i)}catch(e){d(e instanceof Error?e:void 0);return}f(c,!1)}});return o.promise=s,qr.set(e,o),s}function ri(e){return zr.has(e.localName)&&!customElements.get(e.localName)}function ii(e,t){let n=zr.get(t.localName);n!==void 0&&ri(t)&&e.add(n)}function ai(e){let t=new Set;e instanceof Element&&ii(t,e);for(let n of e.querySelectorAll(Br))ii(t,n);for(let[n,r]of Vr)qr.get(n)?.status!==`loaded`&&(e instanceof Element&&e.matches(r)||e.querySelector(r)!==null)&&t.add(n);return t}function oi(e){for(let t of ai(e))Promise.allSettled([H(t)])}var si=n({svgNodes:()=>li,svgRoot:()=>ui}),ci=`http://www.w3.org/2000/svg`;function li(e){return e.map(di)}function ui(e,t){let n=document.createElementNS(ci,`svg`);return fi(n,e),n.append(...li(t)),n}function di(e){let[t,n,r]=e,i=document.createElementNS(ci,t);return fi(i,n),typeof r==`string`?i.append(document.createTextNode(r)):r&&i.append(...li(r)),i}function fi(e,t){for(let[n,r]of Object.entries(t))r===!0?e.setAttribute(n,``):(typeof r==`string`||typeof r==`number`)&&e.setAttribute(n,String(r))}var pi=`data-wui-glyph-pending`,mi=`svg[${pi}]`,hi=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function gi(e,t,n,r){return{class:n?`wui-icon ${n}`:`wui-icon`,"data-icon":e,[pi]:r?!0:void 0,width:t,height:t,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`}}function _i(e){let t=e[0];return t!==void 0&&t>=`a`&&t<=`z`?t:`0`}function vi(e,t){let n={...e},r=new Map,i=new Set(t.shardKeys),a=new Set,o=new Set,s=!1,c=!1,l=null,u=()=>t.loadCurated===void 0||c;function d(e){return Er(n,e)?n[e]:void 0}function f(e){if(!hi.test(e))return!0;if(!u())return!1;let t=_i(e);return!i.has(t)||o.has(t)}function p(){s||t.loadCurated===void 0||(s=!0,Promise.allSettled([t.loadCurated()]))}function m(e){i.has(e)&&!a.has(e)&&(a.add(e),Promise.allSettled([t.loadShard(e).then(t=>{t!==void 0&&_(t,{shard:e})})]))}function h(e){let t=e instanceof Element&&e.matches(mi)?[e]:[];for(let n of[...t,...e.querySelectorAll(mi)]){let e=n.getAttribute(`data-icon`)??``,t=d(e);t===void 0?f(e)&&n.remove():(n.removeAttribute(pi),n.replaceChildren(...li(t)))}}function g(){l===null&&(l=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof Element&&h(e)}),l.observe(document.documentElement,{childList:!0,subtree:!0}))}function _(e,t){Object.assign(n,e),t===`curated`?c=!0:o.add(t.shard),h(document),g()}function v(e,{size:t=16,className:n=``}={}){let i=d(e);if(i!==void 0){let a=`${e}|${t}|${n}`,o=r.get(a);return o===void 0&&(o=ui(gi(e,t,n,!1),i),r.set(a,o)),Ve(o.cloneNode(!0),SVGSVGElement,`glyphNode: ${e} did not clone to an svg`)}return f(e)?null:(p(),m(_i(e)),ui(gi(e,t,n,!0),[]))}return{glyphNode:v,register:_,shardRegistered:e=>o.has(e),curatedRegistered:()=>c}}var yi={add:[[`path`,{d:`M6 12h12M12 18V6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-circle":[[`path`,{d:`M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.2v.1`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-triangle":[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"arrow-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67`}]],"arrow-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M14.43 5.93L20.5 12l-6.07 6.07M3.5 12h16.83`}]],at:[[`path`,{d:`M16 12a4 4 0 1 1-8 0 4 4 0 1 1 8 0M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.5 7.13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],calendar:[[`path`,{d:`M8 2v3M16 2v3M3.5 9.09h17M21 8.5V17c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.695 13.7h.009M15.695 16.7h.009M11.995 13.7h.01M11.995 16.7h.01M8.294 13.7h.01M8.294 16.7h.01`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"calendar-dots":[[`path`,{d:`M8 2v3M16 2v3M16 3.5c3.33.18 5 1.45 5 6.15v6.18c0 4.12-1 6.18-6 6.18H9c-5 0-6-2.06-6-6.18V9.65c0-4.7 1.67-5.96 5-6.15h8ZM20.75 17.6H3.25`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 8.25c-1.23 0-2.27.67-2.27 1.97 0 .62.29 1.09.73 1.39-.61.36-.96.94-.96 1.62 0 1.24.95 2.01 2.5 2.01 1.54 0 2.5-.77 2.5-2.01 0-.68-.35-1.27-.97-1.62.45-.31.73-.77.73-1.39 0-1.3-1.03-1.97-2.26-1.97Zm0 2.84c-.52 0-.9-.31-.9-.8 0-.5.38-.79.9-.79s.9.29.9.79c0 .49-.38.8-.9.8ZM12 14c-.66 0-1.14-.33-1.14-.93 0-.6.48-.92 1.14-.92.66 0 1.14.33 1.14.92 0 .6-.48.93-1.14.93Z`,fill:`currentColor`}]],chart:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.5 18.5c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2s-2 .9-2 2v9a2 2 0 0 0 2 2ZM8.5 18.5c1.1 0 2-.9 2-2V13c0-1.1-.9-2-2-2s-2 .9-2 2v3.5a2 2 0 0 0 2 2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],check:[[`path`,{d:`m5 12.75 4.5 4.5L19 7.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"check-circle":[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m7.75 12 2.83 2.83 5.67-5.66`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"chevron-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95`}]],"chevron-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08`}]],"chevron-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08`}]],"chevron-up":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 15.05L13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52`}]],"chevrons-up-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.01 20.5l-5.02-5.01M9.01 3.5v17M14.99 3.5l5.02 5.01M14.99 20.5v-17`}]],circle:[[`path`,{d:`M11.97 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.23a4.23 4.23 0 1 0 0-8.46 4.23 4.23 0 0 0 0 8.46Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],clock:[[`path`,{d:`M22 12c0 5.52-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2s10 4.48 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m15.71 15.18-3.1-1.85c-.54-.32-.98-1.09-.98-1.72v-4.1`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],code:[[`path`,{d:`M9 13c-.66.33-1.21.82-1.62 1.43-.23.35-.23.79 0 1.14.41.61.96 1.1 1.62 1.43M15.21 13c.66.33 1.21.82 1.62 1.43.23.35.23.79 0 1.14-.41.61-.96 1.1-1.62 1.43`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM2.23 8.01 21.45 8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],comment:[[`path`,{d:`M8.5 19H8c-4 0-6-1-6-6V8c0-4 2-6 6-6h8c4 0 6 2 6 6v5c0 4-2 6-6 6h-.5c-.31 0-.61.15-.8.4l-1.5 2c-.66.88-1.74.88-2.4 0l-1.5-2c-.16-.22-.53-.4-.8-.4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.996 11h.01M11.995 11h.01M7.995 11h.008`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],danger:[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],database:[[`path`,{d:`M18.5 12.65v3.7c0 3.12-2.91 5.65-6.5 5.65s-6.5-2.53-6.5-5.65v-3.7C5.5 15.77 8.41 18 12 18s6.5-2.23 6.5-5.35Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65c0 .91-.25 1.75-.69 2.47C16.74 11.88 14.54 13 12 13c-2.54 0-4.74-1.12-5.81-2.88-.44-.72-.69-1.56-.69-2.47 0-1.56.73-2.97 1.9-3.99C8.58 2.63 10.2 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65v5c0 3.12-2.91 5.35-6.5 5.35s-6.5-2.23-6.5-5.35v-5C5.5 4.53 8.41 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],display:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],document:[[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],download:[[`path`,{d:`M9 11v6l2-2M9 17l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],edit:[[`path`,{d:`m13.26 3.6-8.21 8.69c-.31.33-.61.98-.67 1.43l-.37 3.24c-.13 1.17.71 1.97 1.87 1.77l3.22-.55c.45-.08 1.08-.41 1.39-.75l8.21-8.69c1.42-1.5 2.06-3.21-.15-5.3-2.2-2.07-3.87-1.34-5.29.16Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.89 5.05a6.126 6.126 0 0 0 5.45 5.15M3 22h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],ellipsis:[[`path`,{d:`M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z`,stroke:`currentColor`,"stroke-width":`1.5`}]],export:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.32 6.5l2.56-2.56 2.56 2.56M11.88 14.18V4.01M4 12c0 4.42 3 8 8 8s8-3.58 8-8`}]],"file-text":[[`path`,{d:`M21 7v10c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V7c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],files:[[`path`,{d:`M17 13.4v3c0 4-1.6 5.6-5.6 5.6H7.6c-4 0-5.6-1.6-5.6-5.6v-3.8C2 8.6 3.6 7 7.6 7h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 13.4h-3.2c-2.4 0-3.2-.8-3.2-3.2V7l6.4 6.4ZM11.6 2h4M7 5c0-1.66 1.34-3 3-3h2.62M22 8v6.19c0 1.55-1.26 2.81-2.81 2.81M22 8h-3c-2.25 0-3-.75-3-3V2l6 6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],filter:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],flag:[[`path`,{d:`M5.15 2v20M5.15 4h11.2c2.7 0 3.3 1.5 1.4 3.4l-1.2 1.2c-.8.8-.8 2.1 0 2.8l1.2 1.2c1.9 1.9 1.2 3.4-1.4 3.4H5.15`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],funnel:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],gauge:[[`path`,{d:`M19.14 19.5a9.964 9.964 0 0 0 2.86-7c0-5.52-4.48-10-10-10S2 6.98 2 12.5c0 2.72 1.08 5.18 2.84 6.99`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 21.5a3.38 3.38 0 1 0 0-6.76 3.38 3.38 0 0 0 0 6.76ZM15.25 12H16c.82 0 1.5-.67 1.5-1.5 0-.82-.68-1.5-1.5-1.5s-1.5.67-1.5 1.5v.75c0 .41.34.75.75.75Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],grid:[[`path`,{d:`M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],image:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM2.67 18.95l4.93-3.31c.79-.53 1.93-.47 2.64.14l.33.29c.78.67 2.04.67 2.82 0l4.16-3.57c.78-.67 2.04-.67 2.82 0L22 13.9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],info:[[`g`,{transform:`rotate(180 12 12)`},[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 16h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]]],key:[[`path`,{d:`M19.79 14.93a7.575 7.575 0 0 1-7.6 1.87l-4.71 4.7c-.34.35-1.01.56-1.49.49l-2.18-.3c-.72-.1-1.39-.78-1.5-1.5l-.3-2.18c-.07-.48.16-1.15.49-1.49l4.7-4.7c-.8-2.6-.18-5.55 1.88-7.6 2.95-2.95 7.74-2.95 10.7 0 2.96 2.95 2.96 7.76.01 10.71ZM6.89 17.49l2.3 2.3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],list:[[`path`,{d:`M3 4.5h18M3 9.5h9.47M3 14.5h18M3 19.5h9.47`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],lock:[[`path`,{d:`M6 10V8c0-3.31 1-6 6-6s6 2.69 6 6v2M12 18.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 22H7c-4 0-5-1-5-5v-2c0-4 1-5 5-5h10c4 0 5 1 5 5v2c0 4-1 5-5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"maximize-4":[[`path`,{d:`M21 9V3h-6M3 15v6h6M21 3l-7.5 7.5M10.5 13.5 3 21`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],menu:[[`path`,{d:`M3 7h18M3 12h18M3 17h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],minus:[[`path`,{d:`M6 12h12`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],monitor:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],moon:[[`path`,{d:`M2.03 12.42c.36 5.15 4.73 9.34 9.96 9.57 3.69.16 6.99-1.56 8.97-4.27.82-1.11.38-1.85-.99-1.6-.67.12-1.36.17-2.08.14C13 16.06 9 11.97 8.98 7.14c-.01-1.3.26-2.53.75-3.65.54-1.24-.11-1.83-1.36-1.3C4.41 3.86 1.7 7.85 2.03 12.42Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],music:[[`path`,{d:`M6.28 22a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20.84 16.8V4.6c0-2.6-1.63-2.96-3.28-2.51l-6.24 1.7C10.18 4.1 9.4 5 9.4 6.3v12.57`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17.72 19.92a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24ZM9.4 9.52 20.84 6.4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],pause:[[`path`,{d:`M10.65 19.11V4.89c0-1.35-.57-1.89-2.01-1.89H5.01C3.57 3 3 3.54 3 4.89v14.22C3 20.46 3.57 21 5.01 21h3.63c1.44 0 2.01-.54 2.01-1.89ZM21 19.11V4.89C21 3.54 20.43 3 18.99 3h-3.63c-1.43 0-2.01.54-2.01 1.89v14.22c0 1.35.57 1.89 2.01 1.89h3.63c1.44 0 2.01-.54 2.01-1.89Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],people:[[`path`,{d:`M18 7.16a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58A2.589 2.589 0 0 1 18 7.16ZM16.97 14.44c1.37.23 2.88-.01 3.94-.72 1.41-.94 1.41-2.48 0-3.42-1.07-.71-2.6-.95-3.97-.71M5.97 7.16c.06-.01.13-.01.19 0a2.573 2.573 0 0 0 2.48-2.58C8.64 3.15 7.49 2 6.06 2a2.58 2.58 0 0 0-2.58 2.58c.01 1.4 1.11 2.53 2.49 2.58ZM7 14.44c-1.37.23-2.88-.01-3.94-.72-1.41-.94-1.41-2.48 0-3.42 1.07-.71 2.6-.95 3.97-.71M12 14.63a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58c-.01 1.4-1.11 2.54-2.49 2.58ZM9.09 17.78c-1.41.94-1.41 2.48 0 3.42 1.6 1.07 4.22 1.07 5.82 0 1.41-.94 1.41-2.48 0-3.42-1.59-1.06-4.22-1.06-5.82 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],phone:[[`path`,{d:`M21.97 18.33c0 .36-.08.73-.25 1.09-.17.36-.39.7-.68 1.02-.49.54-1.03.93-1.64 1.18-.6.25-1.25.38-1.95.38-1.02 0-2.11-.24-3.26-.73s-2.3-1.15-3.44-1.98a28.75 28.75 0 0 1-3.28-2.8 28.414 28.414 0 0 1-2.79-3.27c-.82-1.14-1.48-2.28-1.96-3.41C2.24 8.67 2 7.58 2 6.54c0-.68.12-1.33.36-1.93.24-.61.62-1.17 1.15-1.67C4.15 2.31 4.85 2 5.59 2c.28 0 .56.06.81.18.26.12.49.3.67.56l2.32 3.27c.18.25.31.48.4.7.09.21.14.42.14.61 0 .24-.07.48-.21.71-.13.23-.32.47-.56.71l-.76.79c-.11.11-.16.24-.16.4 0 .08.01.15.03.23.03.08.06.14.08.2.18.33.49.76.93 1.28.45.52.93 1.05 1.45 1.58.54.53 1.06 1.02 1.59 1.47.52.44.95.74 1.29.92.05.02.11.05.18.08.08.03.16.04.25.04.17 0 .3-.06.41-.17l.76-.75c.25-.25.49-.44.72-.56.23-.14.46-.21.71-.21.19 0 .39.04.61.13.22.09.45.22.7.39l3.31 2.35c.26.18.44.39.55.64.1.25.16.5.16.78Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],play:[[`path`,{d:`M4 12V8.44c0-4.42 3.13-6.23 6.96-4.02l3.09 1.78 3.09 1.78c3.83 2.21 3.83 5.83 0 8.04l-3.09 1.78-3.09 1.78C7.13 21.79 4 19.98 4 15.56V12Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],printer:[[`path`,{d:`M7.25 7h9.5V5c0-2-.75-3-3-3h-3.5c-2.25 0-3 1-3 3v2ZM16 15v4c0 2-1 3-3 3h-2c-2 0-3-1-3-3v-4h8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M21 10v5c0 2-1 3-3 3h-2v-3H8v3H6c-2 0-3-1-3-3v-5c0-2 1-3 3-3h12c2 0 3 1 3 3ZM17 15H7M7 11h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],refresh:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44`}]],"rotate-ccw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M9.11 5.08c.87-.26 1.83-.43 2.89-.43 4.79 0 8.67 3.88 8.67 8.67s-3.88 8.67-8.67 8.67-8.67-3.88-8.67-8.67c0-1.78.54-3.44 1.46-4.82M7.87 5.32L10.76 2M7.87 5.32l3.37 2.46`}]],"rotate-cw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M14.89 5.08c-.87-.26-1.83-.43-2.89-.43-4.79 0-8.67 3.88-8.67 8.67C3.33 18.12 7.21 22 12 22s8.67-3.88 8.67-8.67c0-1.78-.54-3.44-1.46-4.82M16.13 5.32L13.24 2M16.13 5.32l-3.37 2.46`}]],search:[[`path`,{d:`M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],send:[[`path`,{d:`m7.4 6.32 8.49-2.83c3.81-1.27 5.88.81 4.62 4.62l-2.83 8.49c-1.9 5.71-5.02 5.71-6.92 0l-.84-2.52-2.52-.84c-5.71-1.9-5.71-5.01 0-6.92ZM10.11 13.65l3.58-3.59`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],server:[[`path`,{d:`M19.32 10H4.69c-1.48 0-2.68-1.21-2.68-2.68V4.69c0-1.48 1.21-2.68 2.68-2.68h14.63C20.8 2.01 22 3.22 22 4.69v2.63C22 8.79 20.79 10 19.32 10ZM19.32 22H4.69c-1.48 0-2.68-1.21-2.68-2.68v-2.63c0-1.48 1.21-2.68 2.68-2.68h14.63c1.48 0 2.68 1.21 2.68 2.68v2.63c0 1.47-1.21 2.68-2.68 2.68ZM6 5v2M10 5v2M6 17v2M10 17v2M14 6h4M14 18h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sort:[[`path`,{d:`M3 7h18M6 12h12M10 17h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],stop:[[`path`,{d:`M9.3 21h5.4c4.5 0 6.3-1.8 6.3-6.3V9.3C21 4.8 19.2 3 14.7 3H9.3C4.8 3 3 4.8 3 9.3v5.4C3 19.2 4.8 21 9.3 21Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],subtitle:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM17.5 17.08h-1.85M12.97 17.08H6.5M17.5 13.32h-5.53M9.27 13.32H6.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sun:[[`path`,{d:`M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m19.14 19.14-.13-.13m0-14.02.13-.13-.13.13ZM4.86 19.14l.13-.13-.13.13ZM12 2.08V2v.08ZM12 22v-.08.08ZM2.08 12H2h.08ZM22 12h-.08.08ZM4.99 4.99l-.13-.13.13.13Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],tag:[[`path`,{d:`m4.405 15.526 4.53 4.53a4.78 4.78 0 0 0 6.75 0l4.39-4.39a4.78 4.78 0 0 0 0-6.75l-4.54-4.52a4.75 4.75 0 0 0-3.6-1.39l-5 .24c-2 .09-3.59 1.68-3.69 3.67l-.24 5c-.06 1.35.45 2.66 1.4 3.61Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.735 12.226a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}],[`path`,{d:`m13.235 17.226 4-4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],text:[[`path`,{d:`M2.67 7.17V5.35c0-1.15.93-2.07 2.07-2.07h14.52c1.15 0 2.07.93 2.07 2.07v1.82M12 20.72V4.11M8.06 20.72h7.88`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"two-page":[[`path`,{d:`M22 16.74V4.67c0-1.2-.98-2.09-2.17-1.99h-.06c-2.1.18-5.29 1.25-7.07 2.37l-.17.11c-.29.18-.77.18-1.06 0l-.25-.15C9.44 3.9 6.26 2.84 4.16 2.67 2.97 2.57 2 3.47 2 4.66v12.08c0 .96.78 1.86 1.74 1.98l.29.04c2.17.29 5.52 1.39 7.44 2.44l.04.02c.27.15.7.15.96 0 1.92-1.06 5.28-2.17 7.46-2.46l.33-.04c.96-.12 1.74-1.02 1.74-1.98ZM12 5.49v15M7.75 8.49H5.5M8.5 11.49h-3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],user:[[`path`,{d:`M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM20.59 22c0-3.87-3.85-7-8.59-7s-8.59 3.13-8.59 7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-high":[[`path`,{d:`M2 10v4c0 2 1 3 3 3h1.43c.37 0 .74.11 1.06.3l2.92 1.83c2.52 1.58 4.59.43 4.59-2.54V7.41c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3Z`,stroke:`currentColor`,"stroke-width":`1.5`}],[`path`,{d:`M18 8a6.66 6.66 0 0 1 0 8M19.83 5.5a10.83 10.83 0 0 1 0 13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-mute":[[`path`,{d:`M15 8.37v-.96c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3v4c0 2 1 3 3 3h2M10.41 19.13c2.52 1.58 4.59.43 4.59-2.54v-3.64M18.81 9.42c.9 2.15.63 4.66-.81 6.58M21.15 7.8a10.82 10.82 0 0 1-1.32 10.7M22 2 2 22`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],x:[[`path`,{d:`M6.4 6.4l11.2 11.2M17.6 6.4 6.4 17.6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-in":[[`path`,{d:`M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-out":[[`path`,{d:`M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]},bi=n({GLYPH_CHUNK:()=>xi,GLYPH_PENDING_ATTRIBUTE:()=>pi,catalogueShardRegistered:()=>Ei,glyphNode:()=>U,lazyGlyphsRegistered:()=>Ci,registerCatalogueGlyphs:()=>Ti,registerGlyphs:()=>wi}),xi=`glyphs`,Si=vi(yi,{loadCurated:()=>H(xi),loadShard:e=>H(`glyphs-${e}`).then(()=>void 0),shardKeys:Dr}),U=Si.glyphNode,Ci=Si.curatedRegistered;function wi(e){Si.register(e,`curated`)}function Ti(e,t){Si.register(t,{shard:e})}function Ei(e){return Si.shardRegistered(e)}var Di=n({isImeComposing:()=>Oi,isImeSafeEnter:()=>ki});function Oi(e){return e.isComposing||e.keyCode===229}function ki(e){return e.key===`Enter`&&!Oi(e)}var Ai=n({createListboxKeyNav:()=>Mi,moveActiveRow:()=>Ni}),ji=e=>e.target instanceof Element?e.target.tagName:void 0;function Mi(e){let{getVisibleOptions:t,getActive:n,setActive:r,onEnter:i,onEscape:a,onTypeahead:o,typeaheadMs:s=500,getCount:c,getOptionAt:l,findByPrefix:u}=e,d=``,f=null,p=()=>{clearTimeout(f??void 0),f=null,d=``};return{handler:e=>{let m=c?[]:t(),h=c?c():m.length,g=()=>c?t():m,_=n(),v=ji(e)===`INPUT`||ji(e)===`TEXTAREA`;if(e.key===`ArrowDown`)e.preventDefault(),r(Math.min(_+1,h-1));else if(e.key===`ArrowUp`)e.preventDefault(),r(Math.max(_-1,0));else if(e.key===`Home`&&!v)e.preventDefault(),h&&r(0);else if(e.key===`End`&&!v)e.preventDefault(),h&&r(h-1);else if(e.key===`PageDown`&&!v){if(e.preventDefault(),!h)return;r(Math.min(Math.max(0,_)+8,h-1))}else if(e.key===`PageUp`&&!v){if(e.preventDefault(),!h)return;r(Math.max(Math.max(0,_)-8,0))}else if(ki(e))i&&(e.preventDefault(),i(l?l(_):m[_],g()));else if(e.key===`Escape`)a&&a(e);else if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&ji(e)!==`INPUT`&&ji(e)!==`TEXTAREA`){e.preventDefault(),clearTimeout(f??void 0),d+=e.key.toLowerCase(),f=setTimeout(p,s);let t=u?u(d,Math.max(0,_)):m.findIndex(e=>e.textContent.trim().toLowerCase().startsWith(d));t>=0&&(r(t),o&&o(e.key,t,g()))}},clearTypeahead:p}}function Ni(e,t){let n=e.querySelector(`.is-active`);n!==t&&(n?.classList.remove(`is-active`),t?.classList.add(`is-active`))}var Pi=n({TRUSTED_LABEL:()=>Fi,optionLabelNodes:()=>Vi,optionText:()=>Hi,stripTags:()=>Ri,withTrustedLabel:()=>Ii}),Fi=Symbol(`wui.trustedLabel`),Ii=(e,t)=>{let n=document.createDocumentFragment();return n.append(t.cloneNode(!0)),{...e,[Fi]:n}},Li=e=>`wui-flag wui-flag-${e}`,Ri=e=>String(e??``).replace(/<[^>]*>/g,``),zi=e=>{if(!e)return null;let t=String(e).toLowerCase().replace(/[^a-z0-9-]/g,``);return t?U(t):null},Bi=e=>{let t=String(e??``).toLowerCase();return/^[a-z]{2}$/.test(t)?A(`span`,{class:Li(t),"aria-hidden":`true`}):null};function Vi(e){if(e==null)return[];let t=Bi(e.flag),n=zi(e.icon),r=e[Fi],i=r?[...r.cloneNode(!0).childNodes]:[document.createTextNode(String(e.label??``))];return!t&&!n?i:[A(`span`,{class:`wui-opt-label`},t,n,...i)]}var Hi=e=>{if(e==null)return``;let t=e[Fi];return t?t.textContent??``:Ri(e.label)},Ui=n({SELECT_TEXT:()=>Wi}),Wi={addLabel:`Add '{query}'`,addTagsLabel:`Add tags`,allCountriesLabel:`All countries`,clearAllLabel:`Clear all`,clearSelectionLabel:`Clear selection`,countryPlaceholder:`Select country`,countrySearchPlaceholder:`Search countries…`,createLabel:`Create '{text}'`,defaultSearchPlaceholder:`Search {labelText}…`,emptyText:`No matches`,fallbackName:`Select`,helpLabel:`More information`,hintText:`Type to search…`,invalidMessage:`That option is not available.`,loadingMoreText:`Loading more…`,optionalLabel:`(optional)`,partLoadMessage:`This control could not load. Reload the page.`,placeholder:`Select…`,recentsLabel:`Recent`,removeText:`Remove {text}`,searchingText:`Searching…`,selectedText:`{count} selected`,suggestedLabel:`Suggested`,tagPlaceholder:`Add…`},Gi=n({clearOptions:()=>$i,drawn:()=>Ji,filterOptions:()=>qi,nodesSignature:()=>Xi,optionRow:()=>sa,posAttrMap:()=>Yi,refreshWindow:()=>ra,registerWindowImpl:()=>Qi,renderOptions:()=>ea,revealRow:()=>ia,rowId:()=>ta,rowIndexByPrefix:()=>oa,rowIndexOfValue:()=>aa,windowImplRegistered:()=>Zi}),Ki=()=>I(`select`,Wi);function qi(e,t){let n=String(t??``).trim().toLowerCase();return n?e.filter(e=>[Hi(e),e.description,e.meta].some(e=>String(e??``).toLowerCase().includes(n))):e}var Ji=new WeakMap,Yi=e=>e?{"data-index":String(e.index),"aria-setsize":String(e.size),"aria-posinset":String(e.index+1)}:{},Xi=e=>e.map(e=>e instanceof Element?e.outerHTML:e.textContent??``).join(``),W;function Zi(){return W!==void 0}function Qi(e){W=e}function $i(e){W?.clear(e),Ji.delete(e),e.replaceChildren()}function ea(e,t,n={}){let{selected:r=[],query:i=``,status:a=`idle`,emptyText:o=Ki().emptyText,searchingText:s=Ki().searchingText,loadingMoreText:c=Ki().loadingMoreText,hintText:l=Ki().hintText,actionRow:u=[],recents:d=null}=n,f=new Set(r.map(String)),p=qi(t,i),m=e.id,h=u.filter(e=>e.position===`top`),g=u.filter(e=>e.position===`bottom`),_=d?.options.length?d.options:[],v=h.length+_.length+p.length+g.length,y=p.length>300,b=W,x=y&&b!==void 0,S=e=>x?{index:e,size:v}:void 0,C=0,ee=e=>{let t=C++;return A(`button`,{type:`button`,role:`option`,id:ta(m,t),class:`wui-select-option wui-select-add`,"data-value":String(e.value??``),"data-custom":`true`,"aria-selected":`false`,...Yi(S(t))},e.label)},w=e=>{let t=C++;return sa(e,ta(m,t),f.has(String(e.value)),S(t))},te=h.map(ee),ne=_.length&&d?[A(`div`,{class:`wui-select-group`},d.label),..._.map(w),A(`div`,{class:`wui-select-sep`,"aria-hidden":`true`})]:[],re=C,T=[];if(x)C+=p.length;else{let e=``;for(let t of p)t.group&&t.group!==e&&T.push(A(`div`,{class:`wui-select-group`},t.group)),e=t.group??``,T.push(w(t))}let E=g.map(ee),D=[];if(a===`loading`||a===`more`?D=[A(`div`,{class:`wui-select-loading`},A(`span`,{class:`wui-select-spinner spinner-border spinner-border-sm`,role:`status`,"aria-hidden":`true`}),a===`more`?c:s)]:a===`hint`?D=[A(`div`,{class:`wui-select-hint`},l)]:(a===`empty`||p.length===0&&u.length===0)&&(D=[A(`div`,{class:`wui-select-empty`},o)]),x&&b){let n=[...te,...ne],r=[...E,...D];return b.render(e,{options:t,query:i,rows:p,pre:n,post:r,preSig:Xi(n),postSig:Xi(r),picked:f,top:h,recent:_,bottom:g,bodyBase:re,total:v}),{rows:v,windowed:!0,long:y}}b?.clear(e);let ie=[...te,...ne,...T,...E,...D],ae=Xi(ie);return Ji.get(e)===ae||(Ji.set(e,ae),e.replaceChildren(...ie)),{rows:C,windowed:!1,long:y}}var ta=(e,t)=>`${e}-opt-${t}`,na=e=>[...e.querySelectorAll(`.wui-select-option`)];function ra(e){return W?W.refresh(e):!1}function ia(e,t){return W?W.reveal(e,t):na(e)[t]??null}function aa(e,t){if(W)return W.indexOfValue(e,t);let n=new Set(t.map(String));return na(e).findIndex(e=>n.has(e.dataset.value??``))}function oa(e,t){return W?W.indexByPrefix(e,t):na(e).findIndex(e=>(e.textContent??``).trim().toLowerCase().startsWith(t))}function sa(e,t,n,r){let i=!!e.disabled,a={id:t,role:`option`,"data-value":String(e.value??``),"aria-selected":String(n),"aria-disabled":i?`true`:void 0,title:i&&e.disabledHint?e.disabledHint:void 0,...Yi(r)},o=A(`span`,{class:`wui-select-check`,"aria-hidden":`true`},U(`check`));if(!e.description&&!e.meta)return A(`button`,{type:`button`,class:`wui-select-option${n?` selected`:``}`,...a},dr(e),A(`span`,{class:`wui-select-opt-name`},...Vi(e)),o);let s=e.description?A(`span`,{class:`wui-select-opt-desc`},e.description):null,c=e.meta?A(`span`,{class:`wui-select-opt-meta`},e.meta):null;return A(`div`,{class:`wui-select-option wui-select-option-rich${n?` selected`:``}`,...a},dr(e),A(`span`,{class:`wui-select-option-text`},A(`span`,{class:`wui-opt-label`},...Vi(e)),s),c,o)}var ca=Object.freeze([`single`,`multiple`,`search`,`tag`,`country`]),G=e=>e===`multiple`||e===`tag`,la=n({registerSelectPart:()=>da,selectPart:()=>fa}),ua=new Map;function da(e,t){ua.set(e,t)}function fa(e){return ua.get(e)}var pa={chips:`select-chips`,search:`select-search`,country:`phone`,recents:`select-recents`};function ma(e){let t=Er(pa,e)?pa[e]:void 0;if(!t)return Promise.reject(Error(`Unknown <wui-select> part: ${e}.`));let n=fa(e);return n?Promise.resolve(n):H(t).then(()=>k(fa(e),`The ${e} part of <wui-select> did not register.`))}var ha=n({searchesRemotely:()=>ga}),ga=e=>typeof e.loadOptions==`function`||!!e.getAttribute(`source`)||e.hasAttribute(`remote`),_a=()=>H(`select-window`),va={requiredFieldMessage:`Please fill in this field.`},ya={clearLabel:`Clear search`,placeholder:`Search…`,searchLabel:`Search`},ba=n({WuiSelect:()=>wa}),K=()=>I(`select`,Wi),xa=()=>I(`search`,ya),Sa=()=>I(`field`,va),Ca=160,wa=class extends s{static get observedAttributes(){return`class.mode.value.placeholder.search-placeholder.empty-text.searchable.clearable.disabled.readonly.loading.required.size.density.icon.prefix.open.open-on-hover.lazy-options.aria-label.aria-describedby.aria-invalid.min-chars.debounce.source.remote.allow-custom.add-label.searching-text.hint-text.value-label.value-avatar.value-initials.max-tags.allow-duplicates.separators.pattern.invalid-message.create-label.collapse-chips.selected-text.clear-all-label.countries.suggested.suggested-label.all-countries-label.recents-key.recents-limit.recents-label`.split(`.`)}constructor(){super(),z(this,`_internals`,void 0),z(this,`_value`,void 0),z(this,`_optionsProp`,void 0),z(this,`_partOptions`,void 0),z(this,`_known`,void 0),z(this,`_loadOptionsFn`,void 0),z(this,`_validateFn`,void 0),z(this,`_declared`,void 0),z(this,`_query`,void 0),z(this,`_ownsFilter`,void 0),z(this,`_active`,void 0),z(this,`_rows`,void 0),z(this,`_windowed`,void 0),z(this,`_windowLoad`,void 0),z(this,`_windowFailed`,void 0),z(this,`_scrollFrame`,void 0),z(this,`_endFrame`,void 0),z(this,`_status`,void 0),z(this,`_error`,void 0),z(this,`_nav`,void 0),z(this,`_parts`,void 0),z(this,`_partSig`,void 0),z(this,`_partsMounted`,void 0),z(this,`_partToken`,void 0),z(this,`_rendered`,void 0),z(this,`_searchShown`,void 0),z(this,`_defaultValue`,void 0),z(this,`_warnedMode`,void 0),z(this,`_warnedDensity`,void 0),z(this,`_hoverTimer`,void 0),z(this,`_hoverOpened`,void 0),z(this,`_onHoverOver`,void 0),z(this,`_onHoverOut`,void 0),z(this,`_panelShown`,void 0),z(this,`_pressOpen`,void 0);try{this._internals=this.attachInternals()}catch{this._internals=null}this._value=``,this._optionsProp=null,this._partOptions=null,this._known=new Map,this._loadOptionsFn=null,this._validateFn=null,this._declared=void 0,this._query=``,this._ownsFilter=!1,this._active=-1,this._rows=0,this._windowed=!1,this._windowLoad=null,this._windowFailed=!1,this._scrollFrame=null,this._endFrame=null,this._status=`idle`,this._error=``,this._nav=null,this._parts=null,this._partSig=``,this._partsMounted=!1,this._partToken=0,this._rendered=!1,this._searchShown=!1,this._defaultValue=void 0,this._warnedMode=null,this._hoverTimer=null,this._hoverOpened=!1,this._panelShown=!1,this._pressOpen=null,this._onHoverOver=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&(this._clearHover(),!this._menuOpen()&&this._hoverEligible()&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,!this._menuOpen()&&this._hoverEligible()&&(this._open({focus:!1}),this._hoverOpened=!0)},Oa)))},this._onHoverOut=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&!this._hoverZone(e.relatedTarget)&&(this._clearHover(),this._menuOpen()&&this.hasAttribute(`open-on-hover`)&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,this._close()},ka)))}}connectedCallback(){this.addEventListener(`pointerover`,this._onHoverOver),this.addEventListener(`pointerout`,this._onHoverOut),this._rendered||this.render(),this._ensureParts(),this._mountParts()}disconnectedCallback(){this.removeEventListener(`pointerover`,this._onHoverOver),this.removeEventListener(`pointerout`,this._onHoverOut),this._clearHover(),this._dropMenu(),this._teardown(),this._teardownParts()}attributeChangedCallback(e,t,n){e===`class`?this._syncUnderline():e===`value`?(this._value=Fa(n,G(this.mode)),this._applyValue()):e===`aria-invalid`?this._syncInvalid():e===`open`?this._rendered&&(this.hasAttribute(`open`)?this._open({focus:!1}):this._close({force:!0})):e===`open-on-hover`?this.hasAttribute(`open-on-hover`)||this._clearHover():e!==`lazy-options`&&(e===`mode`&&(this._value=Fa(this._value,G(this.mode)),this._partOptions=null,this._known.clear(),this._ensureParts()),(e===`source`||e===`remote`||e===`recents-key`)&&this._ensureParts(),Na.has(e)?this._rendered&&(this._drawValue(),this.renderList()):Ma.has(e)?this._remountParts():this._rendered&&this.render())}formResetCallback(){if(this.value=this._defaultValue??``,!this._rendered)return;let e=this._refs();e.input&&(e.input.value=``,e.input.removeAttribute(`aria-invalid`)),e.search&&(e.search.value=``),this.setError(``),this._query!==``&&this._onQueryChange(``)}get mode(){let e=this.getAttribute(`mode`);return e===null?`single`:Ea(e)?e:(e!==this._warnedMode&&(this._warnedMode=e,pr(`<wui-select> mode "${e}" is not one of ${ca.join(`, `)}; it is treated as "single".`)),`single`)}_checkDensity(){let e=this.getAttribute(`density`);e===null||Da.includes(e)||e===this._warnedDensity||(this._warnedDensity=e,pr(`<wui-select> density "${e}" is not one of ${Da.join(`, `)}; it is treated as "comfortable".`))}set mode(e){this.setAttribute(`mode`,String(e))}get value(){return Array.isArray(this._value)?this._value.slice():this._value}set value(e){this._value=Fa(e,G(this.mode)),this._applyValue()}get options(){return this._readOptions()}set options(e){this._optionsProp=Array.isArray(e)?e:null,this.mode!==`country`&&(this._partOptions=null);for(let e of this._activePartsList())e.onOptions?.();if(this._rendered){if(this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._autoSearch()!==this._searchShown){this.render();return}this._drawValue(),this.renderList()}}get loadOptions(){return this._loadOptionsFn}set loadOptions(e){this._loadOptionsFn=typeof e==`function`?e:null,this._ensureParts()}get validate(){return this._validateFn}set validate(e){this._validateFn=typeof e==`function`?e:null}commit(e,t={}){this.value=e,this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,detail:{isCustom:!!t.isCustom}}))}setPartOptions(e){this._partOptions=Array.isArray(e)?e:null,this._drawValue(),this.renderList()}setStatus(e){this._status=e,this.renderList()}setError(e){this._error=e?String(e):``,this._syncError()}openMenu(){B(this)||this._open({focus:!1})}closeMenu({focusControl:e=!1}={}){this._close(),e&&this._refs().control?.focus()}renderList(){let e=this._refs();if(!e.list)return;let t=this._ownsFilter?``:this._query,n=this._actionRows(),r=this._recents();if(this.hasAttribute(`lazy-options`)&&!this._menuOpen()){this._rows=qi(this._listOptions(),t).length+n.length+(r?.options.length??0),this._windowed=!1,$i(e.list),this._anchorMenu();return}let i=ea(e.list,this._listOptions(),{selected:this._selectedValues(),query:t,status:this._status,emptyText:this.getAttribute(`empty-text`)||K().emptyText,searchingText:this.getAttribute(`searching-text`)||K().searchingText,loadingMoreText:K().loadingMoreText,hintText:this.getAttribute(`hint-text`)||void 0,actionRow:n,recents:r});this._rows=i.rows,this._windowed=i.windowed,i.long&&!i.windowed&&!this._windowFailed&&this._loadWindow(),this._active>=this._rowCount()&&(this._active=-1),this._active>=0&&this._setActive(this._active,{reveal:!1}),this._anchorMenu(),this._watchListEnd()}_watchListEnd(){this._endFrame===null&&this._activePartsList().some(e=>e.onListEnd)&&(this._endFrame=requestAnimationFrame(()=>{this._endFrame=null,this._checkListEnd()}))}_checkListEnd(){let e=this._refs().list;if(e?.clientHeight&&this._menuOpen()&&!(e.scrollTop+e.clientHeight<e.scrollHeight-Ca))for(let e of this._activePartsList())e.onListEnd?.()}render(){this._dropMenu();let e=this._carry();this._teardownParts(),this._snapshotDeclared();let t=this.mode;this._checkDensity();let n=G(t),r=t===`tag`,i=n&&(r||this.hasAttribute(`allow-custom`));this._value=Fa(this._value,n),this._defaultValue===void 0&&n&&this._value.length===0&&(this._value=this._declaredSelected()),n||this._preselect(),this._defaultValue===void 0&&(this._defaultValue=Fa(this._value,n));let a=this.getAttribute(`size`),o=a===`sm`?` wui-select-sm`:a===`lg`?` wui-select-lg`:a===`xl`?` wui-select-xl`:``,s=this.getAttribute(`icon`),c=this.getAttribute(`prefix`),l=this.hasAttribute(`clearable`),u=this.hasAttribute(`disabled`);if(!this.id){let e=crypto.getRandomValues(new Uint8Array(8));this.id=`wui-select-${Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``)}`}let d=`${this.id}-listbox`,f=`${this.id}-entry-error`,p=this.getAttribute(`aria-describedby`)?.trim(),m=p?`${p} ${f}`:f,h=this.hasAttribute(`aria-invalid`)||!!this._error,g=this.hasAttribute(`required`)&&!i,_=this._accessibleName(),v=i?{}:{role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":`false`,"aria-controls":d},y={"aria-label":_,"aria-describedby":m,"aria-invalid":h?`true`:void 0,"aria-required":g?`true`:void 0},b=n?A(`div`,{class:`form-control wui-select-control wui-select-multi`,...v,...y,"aria-disabled":u?`true`:void 0,tabindex:!u&&!r?`0`:void 0}):A(`button`,{type:`button`,class:`form-control wui-select-control`,...v,...y,disabled:u||void 0}),x=[s?U(s,{className:`wui-select-icon`}):null,c?A(`span`,{class:`wui-select-prefix`},c):null,A(`span`,{class:`wui-select-value`,"data-label":!0}),l?A(`span`,{class:`wui-select-reset`,role:`button`,"aria-label":K().clearSelectionLabel,hidden:!0},U(`x`)):null,U(`chevron-down`,{className:`wui-select-caret`})];b.append(...x.filter(e=>e!==null));let S=this.getAttribute(`searchable`),C=S===null?t===`multiple`||t===`country`||this._autoSearch():S!==`false`,ee=t===`search`||C&&!i;this._searchShown=ee;let w=this.getAttribute(`search-placeholder`)||(t===`country`?K().countrySearchPlaceholder:xa().placeholder),te=A(`div`,{class:`wui-select-menu wui-select-menu-fixed`,popover:`auto`},ee?A(`div`,{class:`wui-select-search`},U(`search`),A(`input`,{class:`wui-select-input`,placeholder:w,"aria-label":w,"aria-autocomplete":`list`}),A(`button`,{type:`button`,class:`wui-select-clear`,"aria-label":xa().clearLabel,hidden:!0},U(`x`))):null,A(`div`,{class:`wui-select-options`,role:`listbox`,id:d,tabindex:`-1`,"aria-multiselectable":n?`true`:void 0})),ne=A(`div`,{class:`field-error wui-select-error`,id:f,"aria-live":`polite`,hidden:!this._error||void 0},this._error||null);this.replaceChildren(A(`div`,{class:`wui-select${o}`},b,te),ne),this._rendered=!0,this._syncMirror(),this._syncValidity(),this._drawValue(),this._syncReset(),this.renderList(),this._wire(),vr(this,this.querySelector(`.wui-select-control`)),this._syncUnderline(),this._mountParts(e)}_accessibleName(){return this.getAttribute(`aria-label`)||this.getAttribute(`placeholder`)||K().fallbackName}_snapshotDeclared(){if(this._declared)return;let e=[...this.querySelectorAll(`:scope > wui-option`)];e.length&&(this._declared=e.map(e=>{let t=document.createDocumentFragment();for(let n of e.childNodes)t.append(n.cloneNode(!0));let n={value:e.getAttribute(`value`)??Va(e).trim(),label:t.textContent??``,selected:e.hasAttribute(`selected`)};for(let[t,r]of Pa){let i=e.getAttribute(t);i&&(n[r]=i)}return e.hasAttribute(`disabled`)&&(n.disabled=!0),Ii(n,t)}))}_readOptions(){return this.mode===`country`?this._partOptions||[]:this._partOptions?this._partOptions:this._optionsProp?this._optionsProp:(this._snapshotDeclared(),this._declared||[])}_listOptions(){let e=this._readOptions(),t=this.getAttribute(`value-label`);if(this.mode!==`search`||!t||this._value===``)return e;let n=String(this._value);return e.some(e=>String(e.value)===n)?e:[...e,{value:n,label:t}]}_declaredSelected(){return this._optionsProp?[]:(this._declared??[]).filter(e=>e.selected).map(e=>String(e.value))}_preselect(){let e=this._readOptions(),t=this._value!==``&&e.find(e=>String(e.value)===this._value)||e.find(e=>`selected`in e&&!!e.selected);t&&(this._value=String(t.value))}_optionFor(e){let t=String(e),n=this._readOptions().find(e=>String(e.value)===t);return n?(this._known.set(t,n),n):this._known.get(t)}_placeholder(){return this.getAttribute(`placeholder`)||ja()[this.mode]}_hasValue(){return Array.isArray(this._value)?this._value.length>0:this._value!==``}_selectedValues(){return Array.isArray(this._value)?this._value:this._value===``?this._listOptions().some(e=>String(e.value)===``)?[``]:[]:[this._value]}_applyValue(){this._syncMirror(),this._syncValidity(),this._rendered&&(this._drawValue(),this._syncReset(),this.renderList())}_syncMirror(){G(this.mode)?wr(this,this._selectedValues()):Cr(this,this._value)}_drawValue(){let e=this._refs();if(!e.value)return;let t=G(this.mode),n=t?void 0:this._optionFor(this._value);if(this._syncTitle(n),this._syncValueAvatar(),this._activePartsList().some(e=>e.renderValue?.()===!0))return;if(t){e.value.classList.remove(`wui-select-placeholder`),e.value.textContent=``;return}e.value.classList.toggle(`wui-select-placeholder`,!n);let r=this._placeholder();e.value.replaceChildren(...n?Vi(n):r?[r]:[])}_syncTitle(e){let t=this.querySelector(`.wui-select-control`);if(!t)return;let n=e&&!this.hasAttribute(`title`)?Hi(e).trim():``;n?t.setAttribute(`title`,n):t.removeAttribute(`title`)}_syncValueAvatar(){let e=this.querySelector(`.wui-select-control`);if(!e)return;e.querySelector(`:scope > .wui-select-value-avatar`)?.remove();let t=!G(this.mode)&&this._hasValue()?dr({avatar:this.getAttribute(`value-avatar`),initials:this.getAttribute(`value-initials`)},`avatar-xs`):null;e.classList.toggle(`wui-has-value-avatar`,!!t),t&&e.prepend(A(`span`,{class:`wui-select-value-avatar`,"aria-hidden":`true`},t))}_syncValidity(){let e=this._internals;if(typeof e?.setValidity==`function`){if(this.hasAttribute(`required`)&&!this._hasValue()){let t=this.querySelector(`.wui-select-control`);e.setValidity({valueMissing:!0},Sa().requiredFieldMessage,t instanceof HTMLElement?t:void 0)}else e.setValidity({})}}_syncReset(){let e=q(this,`.wui-select-reset`,HTMLElement);e&&(e.hidden=!(this.hasAttribute(`clearable`)&&this._hasValue()&&!B(this)))}_syncUnderline(){this.querySelector(`.wui-select-control`)?.classList.toggle(`wui-input-underline`,this.classList.contains(`wui-input-underline`))}_syncInvalid(){let e=this.querySelector(`.wui-select-control`);e&&(this.hasAttribute(`aria-invalid`)||this._error?e.setAttribute(`aria-invalid`,`true`):e.removeAttribute(`aria-invalid`))}_syncError(){let e=q(this,`.wui-select-error`,HTMLElement);e&&(e.textContent=this._error,e.hidden=!this._error),this._syncInvalid()}_refs(){return{control:q(this,`.wui-select-control`,HTMLElement),value:q(this,`.wui-select-value`,HTMLElement),menu:q(this,`.wui-select-menu`,HTMLElement),list:q(this,`.wui-select-options`,HTMLElement),search:q(this,`.wui-select-search input`,HTMLInputElement),input:q(this,`.wui-select-draft`,HTMLInputElement)}}_menuOpen(){let e=q(this,`.wui-select-menu`,HTMLElement);return e!==null&&O(e)}_hoverZone(e){if(!(e instanceof Element))return!1;let t=e.closest(`.wui-select-control, .wui-select-menu`);return t!==null&&this.contains(t)}_hoverEligible(){if(!this.hasAttribute(`open-on-hover`)||B(this)||this.mode===`tag`)return!1;let e=this._refs();return e.search===null&&e.input===null}_clearHover(){this._hoverTimer!==null&&clearTimeout(this._hoverTimer),this._hoverTimer=null}_autoSearch(){return this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._readOptions().length>Aa}_visible(){let e=this._refs();return e.list?Ba(e.list,`.wui-select-option`):[]}_rowCount(){return this._windowed?this._rows:this._visible().length}_rowEl(e){if(!this._windowed)return this._visible()[e];let t=this._refs().list?.querySelector(`[data-index="${e}"]`);return t instanceof HTMLElement?t:void 0}_setActive(e,{reveal:t=!0}={}){let n=this._refs();if(!n.list||!n.control)return;this._active=e;let r=null;e>=0&&e<this._rowCount()&&(r=this._rowEl(e)??(this._windowed&&t?ia(n.list,e):null)),Ni(n.list,r),r?(t&&r.scrollIntoView({block:`nearest`}),n.control.setAttribute(`aria-activedescendant`,r.id)):n.control.removeAttribute(`aria-activedescendant`)}_onListScroll(){this._scrollFrame=null;let e=this._refs().list;e&&(this._windowed&&ra(e)&&this._active>=0&&this._setActive(this._active,{reveal:!1}),this._checkListEnd())}_actionRows(){let e=[];for(let t of this._activePartsList()){let n=t.actionRow?.(this._query);n&&e.push(n)}return e}_recents(){if(this._query.trim()!==``)return null;for(let e of this._activePartsList()){let t=e.recents?.(this._listOptions());if(t)return t}return null}_menuPlacement(e,t){let n=this.hasAttribute(`open`)?{below:!0}:{};if(this.getAttribute(`density`)!==`compact`)return{matchWidth:!0,...n};let r=e.getBoundingClientRect();return t.style.width=`max-content`,t.style.minWidth=`${r.width}px`,t.style.maxWidth=`280px`,n}_anchorMenu(){let e=this._refs();e.control&&e.menu&&this._menuOpen()&&w(e.control,e.menu,this._menuPlacement(e.control,e.menu))}_showMenu(e,t){Me(e,t,{...this._menuPlacement(e,t),mode:`auto`,keepOffscreen:this.hasAttribute(`open`),onClosed:()=>this._onPanelClosed()}),this._panelShown=!0}_onPanelClosed(){if(!this._panelShown)return;this._panelShown=!1;let e=this._refs();e.control&&(e.control.setAttribute(`aria-expanded`,`false`),this._setActive(-1),this._nav?.clearTypeahead(),this.dispatchEvent(new CustomEvent(`wui-select:close`,{bubbles:!0})))}_open({focus:e=!0}={}){let t=this._refs();if(!t.menu||!t.control)return;let n=this._menuOpen();this._hoverOpened=!1,t.control.setAttribute(`aria-expanded`,`true`),this._query=t.input?t.input.value:``,this._ownsFilter=this._ownsFilter&&this._query!==``;let r=q(this,`.wui-select-search .wui-select-clear`,HTMLElement);if(r&&(r.hidden=!0),t.search&&(t.search.value=``),n||this._showMenu(t.control,t.menu),this.renderList(),e&&(t.search?.focus(),this._setActive(this._windowed&&t.list?aa(t.list,this._selectedValues()):this._visible().findIndex(e=>e.classList.contains(`selected`)))),!n){this.dispatchEvent(new CustomEvent(`wui-select:open`,{bubbles:!0}));for(let e of this._activePartsList())e.onOpen?.()}}_close({force:e=!1}={}){if(!e&&this.hasAttribute(`open`))return;let t=this._refs();if(!t.menu||!t.control)return;this._hoverOpened=!1;let n=t.menu.contains(document.activeElement);O(t.menu)&&Ne(t.menu),this._onPanelClosed(),n&&t.control.focus()}_onQueryChange(e){this._query=e,this._setActive(-1);let t=q(this,`.wui-select-search .wui-select-clear`,HTMLElement);t&&(t.hidden=!e);let n=!1;for(let t of this._activePartsList())t.onQuery?.(e)===!0&&(n=!0);this._ownsFilter=n,this.renderList()}_pick(e){if(e.getAttribute(`aria-disabled`)===`true`)return;let t=e.dataset.custom===`true`,n=e.dataset.value??``,r=t?{value:n,label:Va(e).trim()}:this._listOptions().find(e=>String(e.value)===n)??{value:n,label:n},i=this._activePartsList().some(e=>e.onPick?.(r,{isCustom:t})===!0);G(this.mode)||(i||this.commit(n,{isCustom:t}),this._close(),this._refs().control?.focus())}_draftOpens(){return this.mode===`multiple`?this.hasAttribute(`allow-custom`):this.mode===`tag`&&ga(this)}_onKeyDown(e){if(!B(this)){for(let t of this._activePartsList())if(t.onKey?.(e)===!0)return;if(!this._menuOpen()){if(e.target instanceof HTMLInputElement){if(e.key!==`ArrowDown`||!this._draftOpens())return;this._open({focus:!1})}else{(e.key===`ArrowDown`||ki(e)||e.key===` `)&&(e.preventDefault(),this._open({focus:!0}));return}}k(this._nav,`Listbox keys are not wired.`).handler(e)}}_wire(){this._teardown();let e=this._refs(),t=e.control,n=e.list;if(!t||!e.menu||!n)return;let r=k(q(this,`.wui-select`,HTMLElement),`The select wrapper is missing.`),i=q(this,`.wui-select-search .wui-select-clear`,HTMLElement),a=q(this,`.wui-select-reset`,HTMLElement);this._nav=Mi({getVisibleOptions:()=>this._visible(),getActive:()=>this._active,setActive:e=>this._setActive(e),getCount:()=>this._rowCount(),getOptionAt:e=>this._rowEl(e),findByPrefix:e=>this._windowed?oa(n,e):this._visible().findIndex(t=>t.textContent.trim().toLowerCase().startsWith(e)),onEnter:(e,t)=>{if(e)this._pick(e);else if(this._query.trim()!==``){let e=t.find(e=>e.dataset.custom===`true`);if(e)this._pick(e);else if(t.length===1){let e=t[0];e&&this._pick(e)}}},onEscape:e=>{e.preventDefault(),this._nav?.clearTypeahead(),this._close(),t.focus()}}),r.addEventListener(`keydown`,e=>this._onKeyDown(e)),r.addEventListener(`input`,e=>{let t=e.target;if(!(t instanceof HTMLInputElement)||!t.matches(`.wui-select-input, .wui-select-draft`))return;this._onQueryChange(t.value);let n=t.matches(`.wui-select-draft`),r=this._rows>0||this._actionRows().length>0;n&&r&&!this._menuOpen()&&!B(this)&&this._draftOpens()&&this._open({focus:!1})}),r.addEventListener(`focusout`,e=>{let t=e.relatedTarget;t instanceof Node&&this.contains(t)||!this._activePartsList().some(e=>e.onBlur?.()===!0)&&t&&this._close()}),i?.addEventListener(`click`,()=>{let t=k(e.search,`The search input is missing.`);t.value=``,this._onQueryChange(``),t.focus()}),t.addEventListener(`pointerdown`,()=>{this._pressOpen=this._menuOpen()}),t.addEventListener(`click`,e=>{if(e.target instanceof Element&&e.target.closest(`[data-remove]`))return;if(this.mode===`tag`){if(B(this))return;this._refs().input?.focus(),!this._menuOpen()&&this._draftOpens()&&this._open({focus:!1});return}if(e.target instanceof HTMLInputElement){!this._menuOpen()&&!B(this)&&this._open({focus:!1});return}let t=e.detail>0&&this._pressOpen!==null?this._pressOpen:this._menuOpen();this._pressOpen=null,this._clearHover(),this._hoverOpened&&t?(this._hoverOpened=!1,this._open({focus:!0})):t?this._close():B(this)||this._open({focus:!0})}),a?.addEventListener(`click`,e=>{e.stopPropagation(),this.commit(G(this.mode)?[]:``),this._close(),t.focus()}),n.addEventListener(`click`,n=>{let r=za(n).closest(`.wui-select-option`);if(r instanceof HTMLElement&&(this._pick(r),G(this.mode))){let n=this.querySelector(`.wui-select-draft`);(e.search??(n instanceof HTMLElement?n:t)).focus()}}),n.addEventListener(`mousedown`,e=>{G(this.mode)&&e.target instanceof Element&&e.target.closest(`.wui-select-option`)&&e.preventDefault()}),n.addEventListener(`mousemove`,e=>{let t=za(e).closest(`.wui-select-option`);t instanceof HTMLElement&&!t.classList.contains(`is-active`)&&this._setActive(this._windowed?Number(t.dataset.index):this._visible().indexOf(t),{reveal:!1})}),n.addEventListener(`scroll`,()=>{this._scrollFrame===null&&(this._scrollFrame=requestAnimationFrame(()=>this._onListScroll()))},{passive:!0}),n.addEventListener(`mouseleave`,()=>this._setActive(-1)),n.addEventListener(`error`,e=>{let t=e.target;t instanceof Element&&t.classList.contains(`avatar-img`)&&t.remove()},!0),this.hasAttribute(`open`)&&this._open({focus:!1})}_teardown(){this._nav?.clearTypeahead(),this._scrollFrame!==null&&cancelAnimationFrame(this._scrollFrame),this._scrollFrame=null,this._endFrame!==null&&cancelAnimationFrame(this._endFrame),this._endFrame=null}_dropMenu(){let e=q(this,`.wui-select-menu`,HTMLElement);e&&Ne(e)}_activePartsList(){return this._partsMounted?k(this._parts,`The mounted parts are missing.`):[]}_ensureParts(){if(!this.isConnected)return;(this.hasAttribute(`source`)||this.hasAttribute(`remote`)||this.hasAttribute(`recents-key`)||this._loadOptionsFn!==null)&&this._loadWindow();let e=La(this,this.mode),t=e.join(`,`);if(t===this._partSig)return;this._teardownParts(),this._parts=null,this._partSig=t;let n=++this._partToken;Promise.all(e.map(e=>Ha(this,e))).then(e=>{n===this._partToken&&(this._parts=e.filter(e=>e!==null),this._mountParts())})}_loadWindow(){this._windowLoad===null&&(this._windowLoad=_a().then(()=>this.renderList(),()=>{this._windowFailed=!0,document.dispatchEvent(new CustomEvent(Ir,{bubbles:!0,composed:!0,detail:{chunk:`select-window`}})),this.setError(K().partLoadMessage)}))}_mountParts(e={draft:``,query:``}){if(!this._parts||this._partsMounted||!this._rendered||!this.isConnected)return;this._partsMounted=!0;let t=Ta(this._refs());for(let n of this._parts)n.mount(this,t,{carry:e});this._drawValue(),this.renderList()}_teardownParts(){let e=this._activePartsList();this._partsMounted=!1;for(let t of e)t.teardown()}_remountParts(){if(!this._partsMounted)return;let e=this._carry();this._teardownParts(),this._mountParts(e)}_carry(){let e=this._refs();return{draft:e.input?.value??``,query:e.search?.value??``}}};z(wa,`formAssociated`,!0);var Ta=e=>{let{control:t,value:n,menu:r,list:i}=e;return{control:k(t,`control missing`),value:k(n,`value missing`),menu:k(r,`menu missing`),list:k(i,`list missing`),search:e.search,input:e.input}},Ea=e=>ca.includes(e),Da=[`comfortable`,`compact`],Oa=150,ka=250,Aa=10,ja=()=>{let e=K();return{single:e.placeholder,search:e.placeholder,multiple:e.placeholder,tag:e.tagPlaceholder,country:e.countryPlaceholder}},Ma=new Set([`countries`,`suggested`,`suggested-label`,`all-countries-label`,`max-tags`,`pattern`,`collapse-chips`,`source`,`remote`,`min-chars`]),Na=new Set([`separators`,`allow-duplicates`,`invalid-message`,`create-label`,`add-label`,`selected-text`,`clear-all-label`,`value-label`,`value-avatar`,`value-initials`,`hint-text`,`recents-key`,`recents-limit`,`recents-label`]),Pa=[[`icon`,`icon`],[`description`,`description`],[`meta`,`meta`],[`group`,`group`],[`avatar`,`avatar`],[`initials`,`initials`],[`disabled-hint`,`disabledHint`]],Fa=(e,t)=>t?Array.isArray(e)?e.map(String):e==null||e===``?[]:String(e).split(`,`).map(e=>e.trim()).filter(Boolean):Array.isArray(e)?e.length?String(e[0]):``:e==null?``:String(e),Ia=(e,t)=>t===`multiple`?ga(e)?[`chips`,`search`]:[`chips`]:t===`search`?[`search`]:t===`country`?[`country`]:t===`tag`?ga(e)?[`chips`,`search`]:[`chips`]:[],La=(e,t)=>e.hasAttribute(`recents-key`)?[`recents`,...Ia(e,t)]:Ia(e,t),Ra=e=>typeof e==`object`&&!!e&&`default`in e&&typeof e.default==`function`,za=e=>{if(e.target instanceof Element)return e.target;throw Error(`The event target is not an element.`)},q=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},Ba=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement),Va=e=>{let t=e.textContent;if(t===null)throw Error(`The element has no text.`);return t},Ha=(e,t)=>ma(t).then(e=>{if(!Ra(e))throw Error(`The part ${t} has no default export.`);return e.default()}).catch(()=>(document.dispatchEvent(new CustomEvent(Ir,{bubbles:!0,composed:!0,detail:{chunk:t}})),e.setError(K().partLoadMessage),null)),Ua=n({TABLE_EXPORT_CHUNK:()=>Wa,loadTableExport:()=>Ka,registerTableExport:()=>qa,tableExportRegistered:()=>Ja}),Wa=`table-export`,Ga=null;function Ka(){return Ga===null?H(Wa).then(()=>{if(Ga===null)throw Error(`[webority-ui] The table-export chunk ran without handing over its writers.`);return Ga}):Promise.resolve(Ga)}function qa(e){Ga=e}function Ja(){return Ga!==null}function Ya(){V(`glyphs`,Ci);for(let e of Dr)V(`glyphs-${e}`,()=>Ei(e));V(`select-chips`,()=>fa(`chips`)!==void 0),V(`select-recents`,()=>fa(`recents`)!==void 0),V(`select-search`,()=>fa(`search`)!==void 0),V(`select-window`,Zi),V(`table-export`,Ja)}var Xa={closeLabel:`Close`,error:`Error`,failedText:`That did not work. Try again.`,loading:`Loading...`,moreText:`more`,success:`Done`},Za=n({TOAST_ACTION_METHODS:()=>Qa,parseToastAction:()=>to}),Qa=Object.freeze([`POST`,`PUT`,`PATCH`,`DELETE`]),$a=e=>(pr(`[@webority/ui-elements] Wui-Toast-Action: ${e}; the toast shows no action.`),null),eo=e=>typeof e==`object`&&!!e;function to(e){if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch{return $a(`the value is not JSON`)}let n=eo(t)?t:{},r=n.label,i=n.url,a=String(n.method??`POST`).toUpperCase();return typeof r!=`string`||r===``||typeof i!=`string`||i===``?$a(`label and url must be non-empty strings`):Qa.includes(a)?{label:r,url:i,method:a}:$a(`method must be one of ${Qa.join(`, `)}`)}var no=n({FLASH_STORAGE_KEY:()=>ao,FLASH_VARIANTS:()=>ro,isToastVariant:()=>io,storeFlash:()=>oo,takeStoredFlash:()=>co}),ro=Object.freeze([`success`,`info`,`warning`,`danger`]),io=e=>ro.some(t=>t===e),ao=`wui.flash`;function oo(e,t,n){e&&window.sessionStorage.setItem(ao,JSON.stringify({message:e,variant:t,action:n??null}))}var so=e=>{if(typeof e!=`object`||!e||!(`label`in e)||!(`url`in e)||!(`method`in e))throw TypeError(`stored flash action is not an action.`);let{label:t,url:n,method:r}=e;if(typeof t!=`string`||t===``||typeof n!=`string`||n===``||typeof r!=`string`||!Qa.includes(r))throw TypeError(`stored flash action is not an action.`);return{label:t,url:n,method:r}};function co(){let e=window.sessionStorage.getItem(ao);if(e===null)return null;window.sessionStorage.removeItem(ao);let t=JSON.parse(e);if(typeof t!=`object`||!t)throw TypeError(`stored flash is not an object.`);let n=`message`in t?t.message:void 0,r=`variant`in t?t.variant:void 0;if(typeof r!=`string`||!io(r))throw TypeError(`stored flash variant "${String(r)}" is not supported.`);if(typeof n!=`string`)throw TypeError(`stored flash message is not text.`);let i=`action`in t?t.action:null;return{message:n,variant:r,action:i===null?null:so(i)}}var lo=`data-a2ui-id`,uo=1;function fo(e){return e.nodeType===uo}function po(e){return e.tagName.includes(`-`)}function mo(e,t){for(let n of Array.from(e.attributes))t.hasAttribute(n.name)||e.removeAttribute(n.name);for(let n of Array.from(t.attributes))e.getAttribute(n.name)!==n.value&&e.setAttribute(n.name,n.value)}function ho(e){return e.tagName===`INPUT`}function go(e){return e.tagName===`TEXTAREA`}function _o(e){return e.tagName===`OPTION`}function vo(e,t){ho(e)?(e.value=t.getAttribute(`value`)??``,e.checked=t.hasAttribute(`checked`)):go(e)?e.value=t.textContent??``:_o(e)&&(e.selected=t.hasAttribute(`selected`))}function yo(e){let t=e.ownerDocument.defaultView?.CustomEvent??CustomEvent;e.dispatchEvent(new t(`wui:teardown`,{bubbles:!0}))}function bo(e,t){let n=e.ownerDocument,r=new Map;for(let t of e.querySelectorAll(`[${lo}]`)){let e=t.getAttribute(lo);e!==null&&!r.has(e)&&r.set(e,t)}let i=new Set;function a(e,t){if(fo(t)){if(po(t))return null;let n=t.getAttribute(lo);if(n!==null){let a=r.get(n);return a!==void 0&&!i.has(a)&&a.tagName===t.tagName&&!a.contains(e)?a:null}for(let n of Array.from(e.childNodes))if(!i.has(n)&&fo(n)&&n.tagName===t.tagName&&!n.hasAttribute(lo))return n;return null}if(t.nodeType===3||t.nodeType===8){for(let n of Array.from(e.childNodes))if(!i.has(n)&&n.nodeType===t.nodeType)return n}return null}function o(e,t){let r=Array.from(t.childNodes);for(r.forEach((t,r)=>{let s=a(e,t);s===null?(s=n.importNode(t,!0),i.add(s)):(i.add(s),fo(s)&&fo(t)?(mo(s,t),vo(s,t),o(s,t)):s.nodeValue!==t.nodeValue&&(s.nodeValue=t.nodeValue));let c=e.childNodes[r]??null;c!==s&&e.insertBefore(s,c)});e.childNodes.length>r.length;){let t=e.childNodes[r.length];if(t===void 0)break;fo(t)&&yo(t),e.removeChild(t)}}o(e,t)}var xo=n({parseServerHtml:()=>So});function So(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var Co=n({wuiHost:()=>wo});function wo(){return k(window.WUI,`window.WUI is not defined: the Razor behaviour script did not load on this page.`)}var To=n({CSRF_META_NAME:()=>Eo,DEFAULT_CSRF_HEADER:()=>Do,DEFAULT_TIMEOUT_MS:()=>Lo,HTTP_KINDS:()=>jo,WUI_HEADERS:()=>J,WUI_REQUEST_HEADER:()=>Ao,classifyStatus:()=>Fo,configureCsrf:()=>ko,createRequestQueue:()=>Ko,isSameOrigin:()=>Po,readCsrf:()=>No,settleResponse:()=>Wo,timeoutFromAttribute:()=>Ro,wuiFetch:()=>Go}),Eo=`wui-csrf`,Do=`RequestVerificationToken`,Oo={metaName:Eo,header:Do};function ko({metaName:e=Eo,header:t=Do}={}){Oo={metaName:e,header:t}}var Ao=`Wui-Request`,J=Object.freeze({fragment:`Wui-Fragment`,message:`Wui-Message`,redirect:`Wui-Redirect`,result:`Wui-Result`,keepOpen:`Wui-Keep-Open`,toastVariant:`Wui-Toast-Variant`,toastAction:`Wui-Toast-Action`,refresh:`Wui-Refresh`,next:`Wui-Next`}),jo=Object.freeze([`ok`,`validation`,`forbidden`,`networkCheck`,`client`,`server`,`network`,`timeout`,`aborted`,`stale`,`session`]),Mo=new Set([`GET`,`HEAD`]);function No(e=document){let t=[...e.querySelectorAll(`meta`)].find(e=>e.getAttribute(`name`)===Oo.metaName),n=t?.getAttribute(`content`);return!t||!n?null:{header:t.getAttribute(`data-header`)||Oo.header,token:n}}var Po=e=>{try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}};function Fo(e,t=null){return e>=200&&e<300?`ok`:e===401?`session`:e===403?t?.get(`cf-mitigated`)===`challenge`?`networkCheck`:`forbidden`:e===422?`validation`:e>=400&&e<500?`client`:`server`}var Io=e=>typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`,Lo=3e4;function Ro(e){let t=e?.trim()??``;return/^\d+$/.test(t)?Number(t):void 0}var zo=`The ${J.refresh} response header must be {tables, regions, reloadPage}.`,Bo=e=>e===`all`||Array.isArray(e)&&e.every(e=>typeof e==`string`),Vo=e=>{if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch(e){throw TypeError(`The ${J.refresh} response header is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}if(typeof t!=`object`||!t||!(`tables`in t)||!(`regions`in t)||!(`reloadPage`in t))throw TypeError(zo);let{tables:n,regions:r,reloadPage:i}=t;if(!Bo(n)||!Bo(r)||typeof i!=`boolean`)throw TypeError(zo);return{tables:n,regions:r,reloadPage:i}},Ho=(e,t)=>{if(!/json/i.test(e?.headers.get(`Content-Type`)??``)||t.trim()===``)return null;try{return JSON.parse(t)}catch(e){throw TypeError(`The JSON answer body is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}},Uo=e=>{if(e==null)return null;try{return decodeURIComponent(e)}catch{return e}};function Wo(e,t=null,n=``){let r=e=>t?.headers.get(e)??null;return{kind:e,ok:e===`ok`,status:t?.status??0,html:n,response:t,message:Uo(r(J.message)),redirect:r(J.redirect),result:r(J.result),keepOpen:r(J.keepOpen)===`1`,toastVariant:r(J.toastVariant),toastAction:to(r(J.toastAction)),fragment:r(J.fragment)===`1`,data:Ho(t,n),next:r(J.next),refresh:Vo(Uo(r(J.refresh)))}}async function Go(e,t={}){let n=(t.method||`GET`).toUpperCase(),r=t.navigate||(e=>window.location.assign(e)),i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[Ao]:`1`,...t.headers};if(!Mo.has(n)&&Po(e)){let e=No();e&&(i[e.header]=e.token)}let a=new AbortController,o=()=>a.abort(),s=t.signal;s?.aborted&&a.abort(),s?.addEventListener(`abort`,o,{once:!0});let c=t.timeoutMs??0,l=!1,u=c>0?setTimeout(()=>{l=!0,a.abort()},c):void 0,d=e=>s?.aborted?`aborted`:l?`timeout`:Io(e)?`aborted`:`network`;try{let o;try{o=await fetch(e,{method:n,...t.body===void 0?{}:{body:t.body},headers:i,signal:a.signal,credentials:`same-origin`})}catch(e){return Wo(d(e))}let s=Fo(o.status,o.headers);if(s===`ok`&&o.redirected&&o.headers.get(J.fragment)!==`1`&&(s=`session`),s===`session`)return r(o.status===401?o.headers.get(`Location`)||window.location.href:o.url),Wo(s,o);let c=``;if(s===`ok`||s===`validation`)try{c=await o.text()}catch(e){return Wo(d(e),o)}return Wo(s,o,c)}finally{clearTimeout(u),s?.removeEventListener(`abort`,o)}}function Ko(){let e=null,t=0;return{async run(n,r={}){e?.abort();let i=new AbortController;e=i;let a=++t,o=r.signal;o&&(o.aborted?i.abort():o.addEventListener(`abort`,()=>i.abort(),{once:!0}));let s;try{s=await Go(n,{...r,signal:i.signal})}finally{e===i&&(e=null)}return a!==t&&s.kind!==`aborted`?{...s,kind:`stale`,ok:!1}:s},abort(){e?.abort(),e=null}}}var qo=n({REFRESH_ATTR:()=>Xo,REGION_KEY_ATTR:()=>Yo,REGION_SRC_ATTR:()=>Jo,SCREEN_REGION_ATTR:()=>Zo,refreshRegions:()=>es}),Jo=`data-wui-region-src`,Yo=`data-wui-region-key`,Xo=`data-wui-refresh`,Zo=`data-wui-screen`,Qo=new WeakSet,$o=new Map;async function es(e=`all`){if(e!==`all`&&e.length===0)return;let t=e===`all`?null:new Set(e),n=new Map;for(let e of document.querySelectorAll(`[${Jo}]`)){if(!(e instanceof HTMLElement)||e.getAttribute(`data-wui-refresh`)===`none`)continue;let r=e.getAttribute(`data-wui-region-src`)??``,i=e.getAttribute(Yo);if(!i){Qo.has(e)||(Qo.add(e),mr(Error(`A [${Jo}] element needs ${Yo}: ${r}`)));continue}if(t&&!t.has(i))continue;let a=n.get(r)??[];a.push(e),n.set(r,a)}await Promise.all([...n].map(([e,t])=>ts(e,t)))}async function ts(e,t){let n=($o.get(e)??0)+1;$o.set(e,n);let r=await Go(e);if($o.get(e)!==n||r.kind===`aborted`||r.kind===`stale`||r.kind===`session`)return;if(!r.ok){pr(`A region refresh failed; the region keeps its content.`,e,r.kind);return}let i=new Map;for(let e of So(r.html).querySelectorAll(`[${Yo}]`)){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(Yo);t!==null&&!i.has(t)&&i.set(t,e)}for(let n of t){if(!n.isConnected)continue;let t=n.getAttribute(`data-wui-region-key`)??``,r=i.get(t);r?ns(n,r):pr(`A region refresh reply has no element for the region's key; the region keeps its content.`,e,t)}}function ns(e,t){if(e.hasAttribute(`data-wui-screen`))bo(e,t);else{for(let t of Array.from(e.children))t.dispatchEvent(new CustomEvent(`wui:teardown`,{bubbles:!0}));e.replaceChildren(...Array.from(t.childNodes,e=>document.importNode(e,!0)))}e.hidden=t.hidden;let n=t.getAttribute(`title`);n===null?e.removeAttribute(`title`):e.setAttribute(`title`,n);for(let t of Array.from(e.classList))t.startsWith(`tone-`)&&e.classList.remove(t);for(let n of Array.from(t.classList))n.startsWith(`tone-`)&&e.classList.add(n);wo().refresh(e)}var rs=n({getServerTable:()=>ss,isServerTableWired:()=>os,registerServerTable:()=>as}),is=new WeakMap;function as(e,t){is.set(e,t)}function os(e){return is.has(e)}function ss(e){let t=e instanceof Element?e.closest(`[data-wui-server]`):null;return t instanceof HTMLElement&&is.get(t)||null}var cs=n({applyPlan:()=>ws,applyRefresh:()=>Es,holdInDialog:()=>ys,isRefreshOff:()=>us,mergePlans:()=>ms,planOf:()=>ds,planReloads:()=>hs,refreshAfter:()=>Ts,refreshesNothing:()=>bs,reloadPage:()=>_s,reloadsPage:()=>gs,setDialogHold:()=>vs}),ls=null;function us(e){return e?.getAttribute(`data-wui-refresh`)===`none`}function ds(e){if(!e.ok)return null;let t=e.message,n=e.toastVariant||`success`,r=e.toastAction,i=e.refresh;return i===null?{tables:`all`,regions:`all`,reload:`auto`,message:t,variant:n,action:r}:{tables:i.tables,regions:i.regions,reload:i.reloadPage?`page`:`never`,message:t,variant:n,action:r}}var fs={never:0,auto:1,page:2},ps=(e,t)=>e===`all`||t===`all`?`all`:[...new Set([...e,...t])];function ms(e,t){return e===null?t:{tables:ps(e.tables,t.tables),regions:ps(e.regions,t.regions),reload:fs[e.reload]>=fs[t.reload]?e.reload:t.reload,message:t.message,variant:t.variant,action:t.action}}function hs(e){return e.reload===`page`||e.reload===`auto`&&document.querySelector(`[data-wui-server]`)===null}function gs(e){let t=ds(e);return t!==null&&hs(t)}function _s(){let e=new URL(window.location.href);e.hash=``,window.location.assign(e.href)}function vs(e){ls=e}function ys(e,t){return ls?ls(t,e):!1}function bs(e){return e!==null&&e.tables!==`all`&&e.tables.length===0&&e.regions!==`all`&&e.regions.length===0&&e.reload===`never`}var xs=e=>[e.querySelector(`.table-wrap`)?.id??``,e.id].filter(e=>e!==``),Ss=(e,t)=>{let n=[...document.querySelectorAll(`[data-wui-server]`)].filter(e=>e instanceof HTMLElement),r=n;if(e.tables!==`all`){let t=e.tables,i=new Set(n.flatMap(xs));for(let e of t)i.has(e)||pr(`A refresh names the table "${e}", which is not on this page.`);r=n.filter(e=>xs(e).some(e=>t.includes(e)))}return r.filter(e=>(!t||e!==t&&!e.contains(t))&&!us(e))},Cs=async e=>{await ss(e)?.reload({quiet:!0})};async function ws(e,t={}){if(t.origin&&ys(e,t.origin))return`held`;if(hs(e)&&(e.reload===`page`||t.allowReload!==!1))return oo(e.message,e.variant,e.action),_s(),`reloaded`;let n=Ss(e,t.skip).map(e=>Cs(e).catch(mr));return(e.regions===`all`||e.regions.length>0)&&n.push(es(e.regions).catch(mr)),await Promise.all(n),`refreshed`}async function Ts(e,t={}){let n=ds(e);return n===null?`none`:ws(n,t)}async function Es(){await ws({tables:`all`,regions:`all`,reload:`never`,message:null,variant:`success`,action:null},{allowReload:!1})}var Ds=n({TOAST_ACTION_MS:()=>Os,runToastAction:()=>Ns,showResultToast:()=>js,showToast:()=>Ms}),Os=8e3,ks=()=>I(`toast`,Xa);function As(e){if(!io(e))throw RangeError(`Unknown toast variant "${e}".`);return e}function js(e,t=`success`){e?.message&&Ms(e.message,t,e.toastAction)}function Ms(e,t,n=null){n?wo().toast(e,{variant:As(t),duration:Os,action:{label:n.label,onClick:e=>void Ns(n,e)}}):wo().toast(e,{variant:As(t)})}async function Ns(e,t=null){let n=await Go(e.url,{method:e.method});n.kind!==`session`&&n.kind!==`aborted`&&(n.ok?(gs(n)||js(n,n.toastVariant||`success`),await Ts(n,{origin:t})):wo().toast(n.message||ks().failedText,{variant:`danger`}))}var Ps=n({HTTP_FAILURE_TEXT:()=>Fs}),Fs={networkCheckText:`A network check stopped this request. Try again, or report it if it keeps happening.`,networkText:`We could not reach the server. Check your network or firewall and try again.`},Is=n({SERVER_CHUNK:()=>Ls,SHELL_CHUNK:()=>Rs,loadServer:()=>Vs,loadShell:()=>Ws,loadedServer:()=>Hs,loadedShell:()=>Gs,registerServer:()=>Us,registerShellParts:()=>Ks}),Ls=`server`,Rs=`shell`,zs=null,Bs=null;V(Ls,()=>zs!==null),V(Rs,()=>Bs!==null);function Vs(){return zs===null?H(Ls).then(()=>{if(zs===null)throw Error(`[webority-ui] The server chunk ran without handing over its modules.`);return zs}):Promise.resolve(zs)}function Hs(){return zs}function Us(e){zs=e}function Ws(){return Bs===null?H(Rs).then(()=>{if(Bs===null)throw Error(`[webority-ui] The shell chunk ran without handing over its modules.`);return Bs}):Promise.resolve(Bs)}function Gs(){return Bs}function Ks(e){Bs=e}var qs=`[data-wui-confirm]:not(form), [data-wui-post], [data-wui-row-action], [data-wui-modal], [data-wui-drawer], [data-wui-pane]`,Js=`form[data-wui-post-form], form[data-wui-confirm]`,Ys=`[data-wui-confirm]`,Xs=`a[href]:is([data-wui-modal], [data-wui-drawer], [data-wui-pane]):not([data-wui-confirm], [data-wui-post])`,Zs=new WeakSet,Qs=new WeakMap;function $s(e=document){Zs.has(e)||(Zs.add(e),e.addEventListener(`click`,ec,!0),e.addEventListener(`submit`,tc,!0))}function ec(e){if(Hs()!==null||!(e.target instanceof Element))return;let t=e.target.closest(qs);t instanceof HTMLElement&&((e.ctrlKey||e.metaKey||e.shiftKey||e.button!==0)&&t.matches(Xs)||nc(e,t,()=>t.click()))}function tc(e){if(Hs()!==null||!(e.target instanceof HTMLFormElement))return;let t=e.target,n=e.submitter??null;(t.matches(Js)||(n?.matches(Ys)??!1))&&nc(e,t,()=>rc(t,n))}function nc(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),Qs.has(t)||(Qs.set(t,!0),Vs().then(()=>{Qs.delete(t),t.isConnected&&n()},()=>{Qs.delete(t),Ms(I(`httpFailure`,Fs).networkText,`danger`)}))}function rc(e,t){let n=t instanceof HTMLButtonElement||t instanceof HTMLInputElement?t.form===e:!1;t!==null&&n?e.requestSubmit(t):e.requestSubmit()}var ic=n({APP_BUTTON_MARKER:()=>ac,buttonClass:()=>lc}),ac=`AppButton`,oc=new Set([`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),sc={solid:e=>`btn-${e}`,soft:e=>`btn-soft-${e}`,outline:e=>`btn-outline-${e}`,ghost:e=>`btn-ghost-${e}`,link:e=>`btn-link-${e}`,glass:()=>`btn-glass`};function cc(e){return Er(sc,e)}function lc(e=`primary`,t=`solid`,n=`md`){if(!oc.has(e))throw RangeError(`buttonClass: unknown tone "${e}"`);if(!cc(t))throw RangeError(`buttonClass: unknown variant "${t}"`);let r=sc[t](e);return n===`md`?`btn ${r}`:`btn ${r} btn-${n}`}var uc=n({DISPLAY_FORMAT:()=>gc,MONTH_DISPLAY_FORMAT:()=>bc,YEAR_DISPLAY_FORMAT:()=>wc,clampMonth:()=>Dc,daysIn:()=>Ec,firstWeekday:()=>fc,fmt:()=>_c,fmtMonth:()=>xc,fmtYear:()=>Tc,pad:()=>pc,parseIso:()=>hc,parseIsoMonth:()=>vc,parseIsoYear:()=>Sc,toIso:()=>mc,toIsoMonth:()=>yc,toIsoYear:()=>Cc}),dc=e=>{let t=String(e??``).trim();return/^[0-6]$/.test(t)?Number(t):null},fc=e=>dc(e.getAttribute(`first-day`))??dc(getComputedStyle(e).getPropertyValue(`--wui-first-day`))??1,pc=e=>String(e).padStart(2,`0`),mc=(e,t,n)=>`${e}-${pc(t+1)}-${pc(n)}`,hc=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r,i]=t;if(n===void 0||r===void 0||i===void 0)throw Error(`ISO date parts missing`);let a=+n,o=+r,s=+i;return o<1||o>12||s<1||s>Ec(a,o-1)?null:{y:a,m:o-1,d:s}},gc=`dd-MMM-yyyy`,_c=(e,t=gc)=>{let n=hc(e);if(!n)return``;let r={yyyy:n.y,MMMM:_t(n.m),MMM:gt(n.m),MM:pc(n.m+1),dd:pc(n.d),d:n.d};return(t||`dd-MMM-yyyy`).replace(/yyyy|MMMM|MMM|MM|dd|d/g,e=>String(r[e]))},vc=e=>{let t=/^(\d{4})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r]=t;if(n===void 0||r===void 0)throw Error(`ISO month parts missing`);let i=+r;return i<1||i>12?null:{y:+n,m:i-1}},yc=(e,t)=>`${e}-${pc(t+1)}`,bc=`MMM yyyy`,xc=(e,t=bc)=>{let n=vc(e);if(!n)return``;let r={yyyy:n.y,MMMM:_t(n.m),MMM:gt(n.m),MM:pc(n.m+1)};return(t||`MMM yyyy`).replace(/yyyy|MMMM|MMM|MM/g,e=>String(r[e]))},Sc=e=>{let t=/^(\d{4})$/.exec(e||``);if(!t)return null;let[,n]=t;if(n===void 0)throw Error(`ISO year part missing`);return{y:+n}},Cc=e=>String(e).padStart(4,`0`),wc=`yyyy`,Tc=(e,t=wc)=>{let n=Sc(e);return n?(t||`yyyy`).replace(/yyyy/g,String(n.y)):``},Ec=(e,t)=>{let n=new Date(0);return n.setFullYear(e,t+1,0),n.getDate()},Dc=(e,t)=>{for(;t<0;)t+=12,--e;for(;t>11;)t-=12,e+=1;return{y:e,m:t}},Oc=n({COPY_FEEDBACK_MS:()=>kc,copyTextToClipboard:()=>Ac}),kc=2e3;async function Ac(e){if(!navigator.clipboard?.writeText)return!1;try{return await navigator.clipboard.writeText(e),!0}catch(e){if(!(e instanceof DOMException))throw e;return!1}}var jc=n({DATA_TABLE_TEXT:()=>Mc}),Mc={actionFailedMessage:`That did not work. Try again.`,actionForbiddenMessage:`You do not have permission to do that.`,collapseRowLabel:`Collapse row`,densityComfortableLabel:`Comfortable rows`,densityCompactLabel:`Compact rows`,densityLabel:`Row density`,empty:`No records found.`,emptyLabel:`No rows`,errorText:`These rows did not load. Try again.`,expandLabel:`Expand`,expandRowLabel:`Expand row`,exportCsvLabel:`Download CSV`,exportExcelLabel:`Download Excel`,forbiddenMessage:`You do not have access to these rows.`,groupRowsOne:`1 row`,groupRowsOther:`{count} rows`,loadingText:`Loading rows`,moreActionsForText:`More actions for {firstValue}`,networkMessage:`The connection dropped before the rows loaded. Check it and try again.`,pageTextOne:`Page {page} of {pages}, {total} row`,pageTextOther:`Page {page} of {pages}, {total} rows`,pageTextPending:`Page {page}`,resizeColumnLabel:`Resize column`,resizeColumnText:`Resize {label} column`,resizeText:`{px} pixels`,retryLabel:`Retry`,rowActionsLabel:`Actions`,rowSavedText:`Row saved.`,rowWasNotSavedText:`Row was not saved.`,rowsSavedText:`{n} rows saved.`,saveBusyLabel:`Saving`,saveDoneLabel:`Saved`,saveFailedLabel:`Not saved`,savedText:`{label} saved.`,selectAllRowsLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`,timeoutMessage:`The server did not answer in time. Check your connection and try again.`,wasNotSavedText:`{label} was not saved.`},Nc=n({COLUMN_MAX_WIDTH:()=>Fc,COLUMN_MIN_WIDTH:()=>48,PIN_AT_VAR:()=>tl,PIN_SIDES:()=>Rc,RESIZE_STEP:()=>10,RESIZE_STEP_LARGE:()=>50,ROW_HEIGHTS:()=>Bc,ROW_MOVE_LIMIT:()=>200,ROW_MOVE_MS:()=>220,ROW_SAVE_ATTR:()=>ml,ROW_SAVE_ERROR_CLASS:()=>hl,ROW_SAVE_STATES:()=>pl,ROW_STATUS_CLASS:()=>gl,VIRTUAL_OVERSCAN:()=>8,clampColumnWidth:()=>Jc,groupCount:()=>qc,groupItems:()=>Yc,groupRowsText:()=>Uc,identityCell:()=>_l,measureRows:()=>ul,notSavedText:()=>Kc,paintSaveStatus:()=>bl,pinAtValue:()=>nl,pinClasses:()=>il,pinOffsetVar:()=>el,planPins:()=>rl,playRowMoves:()=>dl,readColumnWidths:()=>Qc,resizeName:()=>Vc,rowLabel:()=>vl,rowOrderChanged:()=>fl,saveOutcomeText:()=>Cl,savedManyText:()=>Gc,savedText:()=>Wc,setRowSaveState:()=>xl,settledRows:()=>Sl,virtualRange:()=>Xc,widthText:()=>Hc,writeColumnWidths:()=>$c}),Pc=48,Fc=1200,Ic=10,Lc=50,Rc=[`start`,`end`],zc=8,Bc={comfortable:72,cozy:48,compact:40},Y=()=>I(`dataTable`,Mc),Vc=e=>e?R(Y().resizeColumnText,{label:e}):Y().resizeColumnLabel,Hc=e=>R(Y().resizeText,{px:e}),Uc=e=>gn(Y(),`groupRows`,e,{count:N(e,{decimals:0})}),Wc=e=>e?R(Y().savedText,{label:e}):Y().rowSavedText,Gc=e=>R(Y().rowsSavedText,{n:N(e,{decimals:0})}),Kc=(e,t)=>`${e?R(Y().wasNotSavedText,{label:e}):Y().rowWasNotSavedText}${t?` ${t}`:``}`,qc=e=>N(e,{decimals:0}),Jc=e=>Math.min(Fc,Math.max(48,Math.round(Number(e)||0)));function Yc(e,t,n=[]){let r=new Map(n.map(e=>[e,[]]));return e.forEach((e,n)=>{let i=t(e,n),a=r.get(i);a||(a=[],r.set(i,a)),a.push(e)}),[...r].filter(([,e])=>e.length>0).map(([e,t])=>({key:e,items:t}))}function Xc({scrollTop:e,viewport:t,rowHeight:n,count:r,overscan:i=8}){let a=n>0?n:Bc.cozy,o=Math.floor(Math.max(0,e)/a),s=Math.max(0,o-i);s-=s%2;let c=Math.min(r,o+Math.ceil(Math.max(0,t)/a)+i),l=Math.min(s,c);return{start:l,end:c,before:l*a,after:Math.max(0,r-c)*a}}var Zc=e=>`wui-widths:${e}`;function Qc(e){if(!e)return{};try{let t=JSON.parse(window.localStorage.getItem(Zc(e))||`{}`),n={};if(t&&typeof t==`object`)for(let[e,r]of Object.entries(t))Number.isFinite(r)&&(n[e]=Jc(r));return n}catch{return{}}}function $c(e,t){if(e)try{Object.keys(t).length?window.localStorage.setItem(Zc(e),JSON.stringify(t)):window.localStorage.removeItem(Zc(e))}catch(e){if(!(e instanceof DOMException))throw e}}var el=(e,t)=>`--wui-pin-${e}-${t}`,tl=`--wui-pin-at`,nl=(e,t)=>`var(${el(e,t)}, 0px)`;function rl(e){let t=e.map(()=>null),n=-1;e.forEach((e,t)=>{e===`start`&&(n=t)});let r=0;for(let i=0;i<=n;i++)(e[i]===`start`||e[i]===`lead`)&&(t[i]={side:`start`,ordinal:r++,edge:!1});let i=t[n];i&&(i.edge=!0);let a=-1;r=0;for(let n=e.length-1;n>=0;n--)e[n]===`end`&&(t[n]={side:`end`,ordinal:r++,edge:!1},a=n);let o=t[a];return o&&(o.edge=!0),t}var il=e=>e?`wui-pin-${e.side}${e.edge?` wui-pin-${e.side}-edge`:``}`:``,al=200,ol=220,sl=`cubic-bezier(0.22, 1, 0.36, 1)`,cl=()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,ll=e=>e.getAttribute(`data-row-key`)??e;function ul(e){let t=[...e];if(t.length>200)return null;let n=new Map;for(let e of t)e.hidden||n.set(ll(e),e.offsetTop);return n}function dl(e,t){let n=[...e];if(!t||n.length>200||cl())return 0;let r=0;for(let e of n){if(e.hidden||typeof e.animate!=`function`)continue;let n=t.get(ll(e));if(n===void 0)continue;let i=n-e.offsetTop;Math.abs(i)<1||(e.animate([{transform:`translateY(${i}px)`},{transform:`translateY(0)`}],{duration:220,easing:sl}),r++)}return r}function fl(e,t){if(!e||!t)return!1;let n=new Set(t),r=new Set(e),i=e.filter(e=>n.has(e)),a=t.filter(e=>r.has(e));return i.some((e,t)=>e!==a[t])}var pl=[`saving`,`error`,`saved`],ml=`data-wui-save-state`,hl=`wui-row-save-error`,gl=`wui-row-status`,_l=e=>{let t=e.querySelector(`:scope > .wui-name-cell`);return t instanceof HTMLTableCellElement?t:[...e.cells].find(e=>!e.matches(`.wui-select-cell, .wui-expand-cell`))??null};function vl(e){let t=_l(e);if(!t)return``;let n=t.querySelector(`.u-name`);if(n)return(n.textContent??``).trim();let r=``;for(let e of t.childNodes)e instanceof Element&&(e.classList.contains(`wui-row-save-error`)||e.classList.contains(`wui-row-status`))||(r+=e.textContent??``);return r.replace(/\s+/g,` `).trim()}function yl(e,t){let n=e.closest(`.table-wrap`);if(!n?.hasAttribute(`data-wui-save-labels`))return null;let r=Y();return t===`saving`?n.getAttribute(`data-wui-save-busy`)??r.saveBusyLabel:t===`saved`?n.getAttribute(`data-wui-save-done`)??r.saveDoneLabel:n.getAttribute(`data-wui-save-failed`)??r.saveFailedLabel}function bl(e,t){e.querySelector(`:scope > * > .${gl}`)?.remove();let n=t===null?null:yl(e,t),r=n===null?null:_l(e);if(t!==null&&n!==null&&r){let i=e.ownerDocument.createElement(`span`);i.className=`${gl} ${gl}-${t}`,i.textContent=n,r.prepend(i)}let i=t===`saving`&&n!==null;e.querySelectorAll(`.u-row-actions`).forEach(e=>{e.toggleAttribute(`hidden`,i)})}function xl(e,t,n=``){if(t!==null&&!pl.includes(t))throw Error(`A row's save state is ${pl.join(` or `)} (or null to clear it), not "${t}".`);e.querySelector(`:scope > * > .${hl}`)?.remove(),t===null?e.removeAttribute(ml):e.setAttribute(ml,t),t===`saving`?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),bl(e,t);let r=t===`error`&&n?_l(e):null;if(r){let t=e.ownerDocument.createElement(`span`);t.className=hl,t.textContent=n,r.append(t)}}function Sl(e,t){let n=[];if(!e)return n;for(let[r,i]of e){let e=t.get(r);i.state===`saving`&&e&&e.state!==`saving`&&n.push({label:e.label,ok:e.state!==`error`,message:e.message||``})}return n}function Cl(e){let t=e.filter(e=>e.ok),n=[],[r]=t;t.length===1&&r?n.push(Wc(r.label)):t.length>1&&n.push(Gc(t.length));for(let t of e)t.ok||n.push(Kc(t.label,t.message));return n.join(` `)}var wl=n({isDrawn:()=>Tl});function Tl(e){return typeof e.checkVisibility==`function`?e.checkVisibility():e.closest(`[hidden]`)===null&&getComputedStyle(e).display!==`none`}var El=n({MENTION_ID_PATTERN:()=>Dl,mentionLabel:()=>Al,mentionTextFromValue:()=>Nl,mentionValueFromText:()=>Pl,mentionedIds:()=>Fl,parseMentionValue:()=>Ml}),Dl=/^[A-Za-z0-9_.:-]{1,64}$/,Ol=/@(\\+)\[|@\[([^[\]\n]{1,100})\]\(([A-Za-z0-9_.:-]{1,64})\)/g,kl=/@(\\*)\[/g;function Al(e){return String(e??``).replace(/[[\]\r\n]+/g,` `).replace(/\s+/g,` `).trim().slice(0,100)}var jl=e=>e.replace(kl,(e,t)=>`@\\${t}[`);function Ml(e){let t=String(e??``),n=[],r=e=>{if(!e)return;let t=n[n.length-1];t&&`text`in t?t.text+=e:n.push({text:e})},i=0;for(let e of t.matchAll(Ol))r(t.slice(i,e.index)),e[1]===void 0?n.push({id:e[3]??``,label:e[2]??``}):r(`@${e[1].slice(1)}[`),i=e.index+e[0].length;return r(t.slice(i)),n}function Nl(e){let t=``,n=[];for(let r of Ml(e)){if(`text`in r){t+=r.text;continue}let e=`@${r.label}`;n.push({start:t.length,end:t.length+e.length,id:r.id,label:r.label}),t+=e}return{text:t,mentions:n}}function Pl(e,t=[]){let n=String(e??``),r=[...t].sort((e,t)=>e.start-t.start),i=``,a=0;for(let e of r)e.start<a||n.slice(e.start,e.end)!==`@${e.label}`||!Dl.test(e.id)||(i+=jl(n.slice(a,e.start)),i+=`@[${e.label}](${e.id})`,a=e.end);return i+jl(n.slice(a))}function Fl(e){let t=[];for(let n of Ml(e))`id`in n&&!t.includes(n.id)&&t.push(n.id);return t}var Il=n({bindMenuKeys:()=>Vl}),Ll=500,Rl=10,zl=new Set([`INPUT`,`TEXTAREA`,`SELECT`]);function Bl(e){return e instanceof HTMLElement?zl.has(e.tagName)||e.isContentEditable:!1}function Vl(e,t){let{items:n,typeahead:r=!0}=t,i=``,a=null,o=()=>{a!==null&&clearTimeout(a),a=null,i=``},s=e=>{let t=n().filter(Tl),s=t.length;if(s===0)return;let c=e.target,l=t.findIndex(e=>c instanceof Node&&e.contains(c)),u=n=>{e.preventDefault(),e.stopPropagation(),t[n]?.focus()},d=Bl(c);if(e.key===`ArrowDown`){u(l<0?0:(l+1)%s);return}if(e.key===`ArrowUp`){u(l<0?s-1:(l-1+s)%s);return}if(e.key===`Home`&&!d){u(0);return}if(e.key===`End`&&!d){u(s-1);return}if(e.key===`PageDown`){u(Math.min((l<0?-1:l)+Rl,s-1));return}if(e.key===`PageUp`){u(Math.max((l<0?s:l)-Rl,0));return}if(!r||!/^\S$/.test(e.key)||e.ctrlKey||e.metaKey||e.altKey||d)return;e.preventDefault(),e.stopPropagation(),a!==null&&clearTimeout(a),i+=e.key.toLowerCase(),a=setTimeout(o,Ll);let f=i.length>1&&Array.from(i).every(e=>e===i[0]),p=f?i[0]??``:i,m=i.length===1||f?l+1:Math.max(l,0);for(let e=0;e<s;e++){let n=(m+e)%s;if((t[n]?.textContent??``).trim().toLowerCase().startsWith(p)){t[n]?.focus();return}}};return e.addEventListener(`keydown`,s),()=>{e.removeEventListener(`keydown`,s),o()}}var Hl=n({NOTIFICATION_CENTRE_TEXT:()=>Ul}),Ul={allLabel:`All`,allReadText:`All notifications marked as read.`,archivedLabel:`Archived`,clientMessage:`These could not be marked as read. Refresh the page and try again.`,earlierLabel:`See earlier`,emptyText:`You are all caught up.`,errorText:`Notifications did not load`,forbiddenMessage:`You do not have permission to mark these as read.`,label:`Notifications`,loadingText:`Loading notifications…`,markAllLabel:`Mark all read`,networkMessage:`Could not reach the server, so these were not marked as read. Check your connection and try again.`,noneUnreadText:`No unread notifications`,retryLabel:`Try again`,scrollTabsBackwardLabel:`Scroll tabs backward`,scrollTabsForwardLabel:`Scroll tabs forward`,serverMessage:`Something went wrong on our side, so these were not marked as read. Try again in a moment.`,todayLabel:`Today`,unreadAnnouncementTextOne:`{unread} unread notification`,unreadAnnouncementTextOther:`{unread} unread notifications`,unreadLabel:`Unread`,unreadPrefixText:`Unread:`,unreadWordLabel:`unread`,viewAllLabel:`View all`,yesterdayLabel:`Yesterday`},Wl=n({NOTIFICATION_COUNT_CAP:()=>99,groupNotificationsByDay:()=>$l,notificationCountText:()=>Jl,notificationDayHeading:()=>Ql,notificationTime:()=>Zl,notificationTriggerLabel:()=>Yl,notificationUnreadAnnouncement:()=>Xl}),Gl=99,Kl=864e5,ql=()=>I(`notificationCentre`,Ul);function Jl(e){return e>99?`99+`:String(e)}function Yl(e,t){return t===0?e:`${e}, ${Jl(t)} ${ql().unreadWordLabel}`}function Xl(e){return e===0?ql().noneUnreadText:gn(ql(),`unreadAnnouncementText`,e,{unread:Jl(e)})}function Zl(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?``:F(e,{pattern:`time`})}function Ql(e,t=Date.now()){let n=F(e);return n===F(t)?ql().todayLabel:n===F(P(t)-Kl)?ql().yesterdayLabel:n}function $l(e,t=Date.now()){let n=new Map;for(let r of e){if(!Number.isFinite(P(r.at)))throw Error(`<AppNotificationCenter> item "${r.id}": at must be an ISO date-time with its zone (or a YYYY-MM-DD day), got ${String(r.at)}.`);let e=F(r.at),i=n.get(e);i||(i={key:e,heading:Ql(r.at,t),items:[]},n.set(e,i)),i.items.push(r)}return[...n.values()]}var eu={daysAgoTextOne:`{count} day ago`,daysAgoTextOther:`{count} days ago`,hoursAgoTextOne:`{count} hour ago`,hoursAgoTextOther:`{count} hours ago`,inDaysTextOne:`in {count} day`,inDaysTextOther:`in {count} days`,inHoursTextOne:`in {count} hour`,inHoursTextOther:`in {count} hours`,inMinutesTextOne:`in {count} minute`,inMinutesTextOther:`in {count} minutes`,justNowText:`just now`,minutesAgoTextOne:`{count} minute ago`,minutesAgoTextOther:`{count} minutes ago`},tu=n({RELATIVE_LIMIT_DAYS:()=>7,formatRelativeTime:()=>cu,relativeTimeTitle:()=>lu}),nu=6e4,ru=60*nu,iu=24*ru,au=()=>I(`relativeTime`,eu),ou={minute:`minutesAgoText`,hour:`hoursAgoText`,day:`daysAgoText`},su={minute:`inMinutesText`,hour:`inHoursText`,day:`inDaysText`};function cu(e,t=Date.now()){let n=P(e);if(!Number.isFinite(n))return M();let r=t-n,i=Math.abs(r);if(i>=7*iu)return F(n);if(i<nu)return au().justNowText;let[a,o]=i<ru?[Math.floor(i/nu),`minute`]:i<iu?[Math.floor(i/ru),`hour`]:[Math.floor(i/iu),`day`];return gn(au(),(r>0?ou:su)[o],a)}function lu(e){let t=P(e);return Number.isFinite(t)?`${F(t,{pattern:`datetime`})} IST`:M()}var uu=n({FALLBACK_ROW_HEIGHT:()=>36,SELECT_WINDOW_OVERSCAN:()=>8,createHeightIndex:()=>fu,scrollTopToReveal:()=>mu,windowRange:()=>pu}),du=.5;function fu(e,t=36){let n=Math.max(0,Math.floor(e)),r=new Float64Array(n),i=null,a=e=>{let t=e>=0&&e<n?r[e]??0:0;return t>0?t:s.estimate},o=()=>{if(i)return i;let e=new Float64Array(n+1);for(let t=0;t<n;t++)e[t+1]=(e[t]??0)+a(t);return i=e,e},s={count:n,estimate:t,setEstimate(e){!(e>0)||Math.abs(e-s.estimate)<=du||(s.estimate=e,i=null)},set(e,t){if(e<0||e>=n||!(t>0))return!1;let o=a(e);return r[e]=t,Math.abs(o-t)<=du?!1:(i=null,!0)},heightOf:a,offsetOf(e){return o()[Math.min(Math.max(0,Math.floor(e)),n)]??0},total(){return o()[n]??0},indexAt(e){if(n===0)return 0;let t=o(),r=0,i=n-1;for(;r<i;){let n=r+i+1>>1;(t[n]??0)<=e?r=n:i=n-1}return r}};return s}function pu(e,t){if(e.count===0)return{start:0,end:0,before:0,after:0};let{overscan:n=8}=t,r=Math.max(0,t.scrollTop),i=e.indexAt(r),a=e.indexAt(r+Math.max(0,t.viewport)),o=Math.max(0,i-n),s=Math.min(e.count,a+1+n);return{start:o,end:s,before:e.offsetOf(o),after:e.total()-e.offsetOf(s)}}function mu(e,t,n){let r=e.offsetOf(t),i=r+e.heightOf(t);return r<n.scrollTop?r:i>n.scrollTop+n.viewport?i-n.viewport:n.scrollTop}var hu=n({WuiPostError:()=>gu}),gu=class extends Error{constructor(e,t){super(e,t.cause===void 0?void 0:{cause:t.cause}),z(this,`code`,void 0),z(this,`status`,void 0),z(this,`html`,void 0),z(this,`body`,void 0),z(this,`kind`,void 0),this.name=`WuiPostError`,this.code=t.code,this.status=t.status,this.html=t.html,this.body=t.body,this.kind=t.kind}},_u=n({forgetShell:()=>bu,registerShell:()=>yu,wiredShell:()=>xu}),vu=new WeakMap;function yu(e,t){vu.set(e,t)}function bu(e){vu.delete(e)}function xu(e){let t=e?.closest(`[data-app-shell]`);return(t&&vu.get(t))??null}var Su=n({wuiUpload:()=>Tu}),Cu=new Set([204,205,304]),wu=e=>{let t=new Headers;for(let n of e.split(/\r?\n/)){let e=n.indexOf(`:`);e>0&&t.append(n.slice(0,e).trim(),n.slice(e+1).trim())}return t};async function Tu(e,t,n={}){if(!(t instanceof FormData))throw TypeError(`wuiUpload: body must be FormData`);let r=n.timeoutMs;if(r!==void 0&&!(Number.isFinite(r)&&r>0))throw TypeError(`wuiUpload: timeoutMs must be a positive number`);let i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[Ao]:`1`,...n.headers};if(Po(e)){let e=No();e&&(i[e.header]=e.token)}let a=n.signal,o=n.navigate||(e=>window.location.assign(e));return a?.aborted?Wo(`aborted`):new Promise(s=>{let c=new XMLHttpRequest,l=!1,u,d=()=>c.abort(),f=(e,t=null,n=``)=>{u!==void 0&&clearTimeout(u),a?.removeEventListener(`abort`,d),s(Wo(e,t,n))};c.upload.onprogress=e=>{n.onProgress?.(e.loaded,e.lengthComputable?e.total:0)},c.onload=()=>{let t=c.status;if(t===0){f(`network`);return}let n=wu(c.getAllResponseHeaders()),r=Fo(t,n),i=c.responseURL!==``&&c.responseURL!==new URL(e,window.location.href).href;r===`ok`&&i&&n.get(J.fragment)!==`1`&&(r=`session`);let a=c.responseText,s=r===`ok`||r===`validation`?a:``;if(t<200||t>599){f(r,null,s);return}let l=new Response(Cu.has(t)?null:a,{status:t,headers:n});r===`session`?(o(t===401?n.get(`Location`)||window.location.href:c.responseURL),f(`session`,l)):f(r,l,s)},c.onerror=()=>f(`network`),c.onabort=()=>{f(a?.aborted?`aborted`:l?`timeout`:`aborted`)},r!==void 0&&(u=setTimeout(()=>{l=!0,c.abort()},r)),a?.addEventListener(`abort`,d,{once:!0}),c.open(`POST`,e,!0);for(let[e,t]of Object.entries(i))c.setRequestHeader(e,t);c.send(t)})}var Eu=n({deriveStepStatus:()=>Du,stepperHeaderItems:()=>Ou});function Du(e,t){return typeof t==`number`?e<t?`done`:e===t?`active`:`pending`:`pending`}function Ou(e,t){let{statusOf:n,journey:r,connectors:i}=t;return e.map((t,a)=>{let o=n(a),s;return s=o===`done`?{icon:`check`}:o===`error`?{icon:`alert-triangle`}:o===`skipped`?{icon:`minus`}:t.icon?{icon:t.icon}:{number:a+1},{index:a,status:o,className:o===`pending`?`step`:`step ${o}`,glyph:s,current:o===`active`,line:r&&i&&a<e.length-1?{done:o===`done`}:null}})}var ku={selectAllLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`},Au=n({GROUP_SELECT_CLASS:()=>Mu,SELECT_CELL_CLASS:()=>X,addRowSelectCells:()=>Hu,addSelectColumn:()=>Uu,attachShiftRange:()=>qu,createGroupSelectCell:()=>Lu,createSelectHeaderCell:()=>Pu,createSelectRowCell:()=>Fu,createSelectSpacerCell:()=>Iu,groupRowsOf:()=>Ru,syncGroupSelect:()=>Gu,syncSelectAll:()=>Wu}),ju=()=>I(`tableSelect`,ku),X=`wui-select-cell`,Mu=`wui-group-select`,Nu=(e,t)=>{let n=e.createElement(`input`);return n.type=`checkbox`,n.className=`form-check-input`,n.setAttribute(`aria-label`,t),n};function Pu(e=document){let t=e.createElement(`th`);return t.className=X,t.appendChild(Nu(e,ju().selectAllLabel)),t}function Fu(e=document,{disabled:t=!1}={}){let n=e.createElement(`td`);n.className=X;let r=Nu(e,ju().selectRowLabel);return r.disabled=t,n.appendChild(r),n}function Iu(e=document){let t=e.createElement(`td`);return t.className=X,t}function Lu(e,t){let n=e.createElement(`td`);return n.className=`${X} ${Mu}`,n.appendChild(Nu(e,R(ju().selectGroupLabel,{group:t}))),n}function Ru(e){let t=[];for(let n=e.nextElementSibling;n instanceof HTMLTableRowElement&&!n.matches(`.wui-group-row, .wui-virtual-spacer`);n=n.nextElementSibling)n.matches(`.wui-row-expanded`)||t.push(n);return t}var zu=e=>e.firstElementChild?.classList.contains(X),Bu=e=>e.matches(`.wui-group-row, .wui-virtual-spacer, .wui-row-expanded`),Vu=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n);function Hu(e){for(let t of e){if(zu(t)||Bu(t))continue;let e=t.getAttribute(`data-row-selectable`)===`false`;t.insertBefore(Fu(t.ownerDocument,{disabled:e}),t.firstChild)}}function Uu(e){let t=e.querySelector(`thead tr`);if(!(t instanceof HTMLTableRowElement))return null;zu(t)||t.insertBefore(Pu(e.ownerDocument),t.firstChild),Hu(Vu(e,`tbody tr`,HTMLTableRowElement));for(let t of Vu(e,`tfoot tr`,HTMLTableRowElement))zu(t)||t.insertBefore(Iu(e.ownerDocument),t.firstChild);let n=t.querySelector(`.${X} .form-check-input`);return n instanceof HTMLInputElement?n:null}function Wu(e){let t=e.querySelector(`thead .${X} .form-check-input`),n=Vu(e,`tbody tr:not(.wui-group-row) .form-check-input:not(:disabled)`,HTMLInputElement),r=n.length,i=n.filter(e=>e.checked).length;t instanceof HTMLInputElement&&(t.checked=r>0&&i===r,t.indeterminate=i>0&&i<r);for(let t of Vu(e,`tbody tr:not(.wui-group-row)`,HTMLTableRowElement)){let e=t.querySelector(`.form-check-input`);t.classList.toggle(`is-selected`,e instanceof HTMLInputElement&&e.checked)}return{selected:i,total:r}}function Gu(e){for(let t of Vu(e,`tbody tr.wui-group-row`,HTMLTableRowElement)){let e=t.querySelector(`.${Mu} .form-check-input`);if(!(e instanceof HTMLInputElement))continue;let n=Ru(t).flatMap(e=>Vu(e,`.${X} .form-check-input:not(:disabled)`,HTMLInputElement)),r=n.filter(e=>e.checked).length;e.disabled=n.length===0,e.checked=r>0&&r===n.length,e.indeterminate=r>0&&r<n.length}}var Ku=`tbody tr:not(.wui-group-row) .${X} .form-check-input:not(:disabled)`;function qu(e,t){let n=null,r=e=>e instanceof Element&&e.matches(`.wui-select-cell .form-check-input:not(:disabled)`)&&!!e.closest(`tbody`)&&!e.closest(`tr.wui-group-row`);e.addEventListener(`mousedown`,e=>{e.shiftKey&&r(e.target)&&e.preventDefault()}),e.addEventListener(`click`,i=>{let a=i.target;if(r(a)){if(i.shiftKey&&n?.isConnected&&n!==a){let r=Vu(e,Ku,HTMLInputElement),i=r.indexOf(n),o=r.indexOf(a);if(i>=0&&o>=0){let e=[];for(let t of r.slice(Math.min(i,o),Math.max(i,o)+1))t!==a&&t.checked!==a.checked&&(t.checked=a.checked,e.push(t));e.length&&t?.(e,a.checked)}}n=a}})}var Ju=n({DATE_PICKER_TEXT:()=>Yu}),Yu={chooseMonthYearLabel:`Choose month and year`,chooseYearLabel:`Choose year`,clearLabel:`Clear`,dateTimeLabel:`Time`,helpLabel:`More information`,monthPlaceholder:`Choose a month`,nextDecadeLabel:`Next decade`,nextMonth:`Next month`,nextYearLabel:`Next year`,optionalLabel:`(optional)`,placeholder:`Choose a date`,previousDecadeLabel:`Previous decade`,previousMonth:`Previous month`,previousYearLabel:`Previous year`,todayLabel:`Today`,yearPlaceholder:`Choose a year`,zoneNote:`Times are shown in {zone}.`},Xu=n({DRAWER_TEXT:()=>Zu}),Zu={closeLabel:`Close`,confirmDiscard:`Discard your changes?`,discardLabel:`Discard`,keepLabel:`Keep editing`,screenText:`{now}% of the screen`,sheetHeightLabel:`Sheet height`},Qu=n({matchSegments:()=>$u});function $u(e,t){let n=String(e??``),r=String(t??``).trim();if(!r||!n)return[{text:n,match:!1}];let i=n.toLowerCase(),a=r.toLowerCase();if(i.length!==n.length)return[{text:n,match:!1}];let o=[],s=0,c=i.indexOf(a,s);for(;c!==-1;)c>s&&o.push({text:n.slice(s,c),match:!1}),o.push({text:n.slice(c,c+a.length),match:!0}),s=c+a.length,c=i.indexOf(a,s);return s<n.length&&o.push({text:n.slice(s),match:!1}),o}var ed=n({TOOLTIP_ATTRIBUTE:()=>td,TOOLTIP_CLASS_ATTRIBUTE:()=>rd,TOOLTIP_ID_ATTRIBUTE:()=>id,TOOLTIP_OPEN_ATTRIBUTE:()=>ad,TOOLTIP_PLACEMENT_ATTRIBUTE:()=>nd,TOOLTIP_SHORTCUT_ATTRIBUTE:()=>od,showPinnedTooltips:()=>cd,wireTooltips:()=>sd}),td=`data-wui-tooltip`,nd=`data-wui-tooltip-placement`,rd=`data-wui-tooltip-class`,id=`data-wui-tooltip-id`,ad=`data-wui-tooltip-open`,od=`data-wui-tooltip-shortcut`;function sd(e){fd.has(e)||(fd.add(e),e.addEventListener(`pointerover`,t=>{let n=_d(t.target);n&&!yd(e,n)&&Sd(e,n,!1)}),e.addEventListener(`pointerout`,t=>{let n=md(e).transient;n&&_d(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||Cd(e,n))}),e.addEventListener(`focusin`,t=>{let n=t.target;if(!(n instanceof Element)||!n.matches(`:focus-visible`))return;let r=_d(n);r&&!yd(e,r)&&Sd(e,r,!1)}),e.addEventListener(`focusout`,t=>{let n=md(e).transient;n&&_d(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||Cd(e,n))}),e.addEventListener(`click`,t=>{let n=md(e).transient;n&&_d(t.target)===n.trigger&&Cd(e,n)}))}function cd(e){let t=e instanceof Document?e:e.ownerDocument;for(let n of e.querySelectorAll(`[${ad}]`))Sd(t,n,!0)}var ld=[`top`,`bottom`,`start`,`end`],ud=`wui-tooltip`,dd=`[${td}], [${id}]`,fd=new WeakSet,pd=new WeakMap;function md(e){let t=pd.get(e);return t||(t={bubble:null,transient:null,pinned:new Map,pinnedCount:0,onEscape:t=>{t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),wd(e))}},pd.set(e,t)),t}function hd(e){return ld.includes(e)}function gd(e){return e===`auto`||hd(e)}function _d(e){if(!(e instanceof Element))return null;let t=e.closest(dd);return t instanceof HTMLElement?t:null}function vd(e,t){return e.transient?.trigger===t?e.transient:e.pinned.get(t)}function yd(e,t){return vd(md(e),t)!==void 0}function bd(e,t){let n=e.createElement(`div`);n.id=t,n.setAttribute(`role`,`tooltip`),n.setAttribute(`popover`,`manual`);let r=e.createElement(`div`);r.className=`tooltip-arrow`;let i=e.createElement(`div`);return i.className=`tooltip-inner`,n.append(r,i),{el:n,arrow:r,inner:i}}function xd(e,t){return t.bubble||=bd(e,ud),t.bubble}function Sd(e,t,n){let r=t.getAttribute(td),i=t.getAttribute(id);if(r===null&&i===null)throw Error(`a tooltip trigger carries ${td} or ${id}`);if(r!==null&&i!==null)throw Error(`a tooltip trigger carries ${td} or ${id}, not both`);let a=t.getAttribute(`data-wui-tooltip-placement`)??`top`;if(!gd(a))throw Error(`${nd} "${a}" is not auto, top, bottom, start or end`);let o=md(e);Cd(e,n?o.pinned.get(t):o.transient);let s,c=null,l=null,u=!1;if(i!==null){let t=e.getElementById(i);if(!(t instanceof HTMLElement))throw Error(`no element with id "${i}" for a tooltip`);s=t,c=e.createComment(`wui-tooltip`),s.replaceWith(c),l=s.getAttribute(`popover`),s.setAttribute(`popover`,`manual`)}else{let i=n?bd(e,`${ud}-pinned-${++o.pinnedCount}`):xd(e,o);u=n;let c=t.getAttribute(`data-wui-tooltip-class`)??``;i.el.className=`tooltip wui-tooltip bs-tooltip-${a} ${c}`.trim();let l=t.getAttribute(od);i.inner.replaceChildren(r??``,...l?[A(`span`,{class:`wui-kbd`},l)]:[]),s=i.el}let d=t.getAttribute(`aria-describedby`);t.setAttribute(`aria-describedby`,s.id);let f=()=>w(t,s,{side:a,align:`center`,gap:6,arrow:s.querySelector(`.tooltip-arrow`)});Le(e).append(s),s.showPopover(),f();let p=Re(e=>{s.parentElement!==e&&e.append(s),Fe(s),f()},e),m=new MutationObserver(()=>{t.isConnected||Cd(e,vd(md(e),t))});m.observe(e,{childList:!0,subtree:!0});let h={el:s,trigger:t,pinned:n,own:u,home:c,popover:l,describedBy:d,watch:m,unroot:p};n?o.pinned.set(t,h):o.transient=h,e.addEventListener(`keydown`,o.onEscape,!0)}function Cd(e,t){if(!t)return;let n=md(e);t.pinned?n.pinned.delete(t.trigger):n.transient=null,!n.transient&&n.pinned.size===0&&e.removeEventListener(`keydown`,n.onEscape,!0),t.watch.disconnect(),t.unroot(),t.el.hidePopover(),t.home?(t.popover===null?t.el.removeAttribute(`popover`):t.el.setAttribute(`popover`,t.popover),t.home.replaceWith(t.el)):t.own&&t.el.remove(),t.describedBy===null?t.trigger.removeAttribute(`aria-describedby`):t.trigger.setAttribute(`aria-describedby`,t.describedBy)}function wd(e){let t=md(e);Cd(e,t.transient);for(let n of[...t.pinned.values()])Cd(e,n)}var Td=n({nowIn:()=>kd,todayIn:()=>Od,wallClockOf:()=>Dd}),Ed=e=>e instanceof Date?e.getTime():e;function Dd(e,t=j){return new Date(e+rt(e,t)).toISOString().slice(0,19)}function Od(e=j,t=Date.now()){return Dd(Ed(t),e).slice(0,10)}function kd(e=j,t=Date.now()){let n=Ed(t);return new Date(n+rt(n,e))}var Ad=Object.freeze({anchorOverlay:d,avatarNode:lr,buttonClass:ic,calendarMath:uc,copyText:Oc,dataTable:Nc,dataTableText:jc,datePickerText:Ju,defineElement:r,devWarn:fr,dom:Be,drawerText:Xu,elementBase:a,fieldState:hr,flash:no,formatters:$t,formMirror:yr,glyphs:bi,hasOwn:Tr,httpFailureText:Ps,iconGlyphs:bi,imeSafeEnter:Di,isDrawn:wl,listboxKeyNav:Ai,loader:Pr,mentionText:El,menuKeyNav:Il,nativeOverlay:re,notificationCentreText:Hl,notificationDays:Wl,optionLabel:Pi,partRegistry:la,postError:hu,refreshAfter:cs,regions:qo,relativeTime:tu,rtl:c,selectList:Gi,selectRemote:ha,selectText:Ui,selectWindow:uu,server:Is,serverHtml:xo,serverTableRegistry:rs,shellRegistry:_u,shortcutKeys:Cn,stepperHeader:Eu,svgNodes:si,tableExport:Ua,tableSelect:Au,textMatch:Qu,textStore:en,toastAction:Ds,toastHeader:Za,tooltips:ed,wuiHost:Co,wuiHttp:To,wuiUpload:Su,WuiSelect:ba,zone:Td}),jd={avatarCropFailed:`That photo could not be saved. Try again, or choose another one.`,avatarDialogSubtitle:`Drag to position the photo, then zoom or rotate it.`,avatarDialogTitle:`Edit photo`,avatarSave:`Save photo`,cameraLabel:`Take photo`,cancel:`Cancel`,changeLabel:`Change photo`,closeLabel:`Close`,cropFailed:`That image could not be cropped. Choose another one.`,dialogSubtitle:`Drag the frame and zoom to choose what to keep.`,dialogTitle:`Crop photo`,heicUnreadableMessage:`This browser cannot open HEIC photos. Choose a JPG, PNG or WebP image instead.`,optionalLabel:`(optional)`,overlayLabel:`Update photo`,photoUnreadableMessage:`That photo could not be opened. Choose a JPG, PNG or WebP image.`,removeLabel:`Remove photo`,save:`Apply`,unreadable:`That image could not be opened. Choose another one.`,uploadLabel:`Upload photo`},Md=`image/jpeg,image/png,image/webp,image/heic,image/heif,.heic,.heif`,Nd=10,Pd=512,Fd=`image/webp`,Id=[96,48];function Ld(e){if(!e)return!1;let t=String(e.type||``).toLowerCase();return t===`image/heic`||t===`image/heif`||/\.hei[cf]$/i.test(String(e.name||``))}function Rd(e){let t=I(`imagePicker`,jd);return Ld(e)?t.heicUnreadableMessage:t.photoUnreadableMessage}function zd(e,t){let n=Number(t);return{name:e?.name||`photo`,type:Fd,size:Number.isInteger(n)&&n>0?n:512}}var Bd=`/`,Vd=`.search-wrap.wui-search-collapsible`,Hd=`.wui-topsearch-panel`,Ud=`.modal, wui-drawer[open]`,Wd=new WeakSet,Gd=e=>{let t=e.querySelector(`.wui-search-toggle`);return t instanceof HTMLElement?t:null},Kd=e=>{let t=e.querySelector(`.search-input`);return t instanceof HTMLInputElement?t:null},qd=e=>[...e.querySelectorAll(Vd)].filter(e=>e instanceof HTMLElement);function Jd(e){e.classList.remove(`is-collapsed`),Gd(e)?.setAttribute(`aria-expanded`,`true`),Kd(e)?.focus()}function Yd(e){Kd(e)?.value||(e.classList.add(`is-collapsed`),Gd(e)?.setAttribute(`aria-expanded`,`false`))}function Xd(e){if(e.dataset.wuiCollapseWired)return;e.dataset.wuiCollapseWired=`1`;let t=Gd(e),n=Kd(e);t?.addEventListener(`click`,()=>Jd(e)),n?.addEventListener(`keydown`,r=>{r.key!==`Escape`||n?.value||(r.preventDefault(),Yd(e),t?.focus())}),e.addEventListener(`focusout`,t=>{let n=t.relatedTarget;n instanceof Node&&e.contains(n)||Yd(e)})}function Zd(e){Wd.has(e)||(Wd.add(e),e.addEventListener(`keydown`,t=>{if(t.key!==`/`||t.ctrlKey||t.altKey||t.metaKey||t.defaultPrevented||Bn(t.target instanceof Node?t.target:null)||t.target instanceof Element&&t.target.closest(Ud)||e.querySelector(Hd))return;let n=qd(e).find(e=>e.offsetParent!==null);n&&(t.preventDefault(),Jd(n))}))}function Qd(e=document){let t=e;for(let e of qd(t))Xd(e);Zd(e instanceof Element?e.ownerDocument:e)}var $d=`data-wui-command-shortcut`,ef=`k`,tf=new WeakSet,nf=/ \(Ctrl\+([^)]+)\)$/;function rf(e=navigator){return/mac|iphone|ipad/i.test(e.userAgentData?.platform??e.platform)}function af(e,t){return!(e.ctrlKey||e.metaKey)||e.altKey||e.shiftKey||e.repeat?!1:String(e.key).toLowerCase()===String(t).toLowerCase()}function of(e){return e.nodeType===Node.DOCUMENT_NODE}function sf(e){e.closest(`wui-modal`)?.show()}function cf(e){if(rf())for(let t of e.querySelectorAll(`[${$d}]`)){let e=t.getAttribute(`placeholder`);e!==null&&t.setAttribute(`placeholder`,e.replace(nf,(e,t)=>` (⌘${t})`))}}function lf(e){let t=of(e)?e:e.ownerDocument;e.querySelector(`[data-wui-command-shortcut]`)&&(cf(t),tf.has(t)||(tf.add(t),t.addEventListener(`keydown`,e=>{for(let n of t.querySelectorAll(`[${$d}]`))if(af(e,n.getAttribute(`data-wui-command-shortcut`)||ef)){e.preventDefault(),n.localName===`wui-command-palette`||n.localName===`wui-modal`?sf(n):(n.focus(),`select`in n&&typeof n.select==`function`&&n.select());return}})))}var uf={audioLabel:`audio`,byteLabel:`B`,chooseText:`Choose {label}.`,gigabyteLabel:`GB`,imagesLabel:`images`,keepFileUnderMbText:`Keep the file under {maxSizeMb} MB.`,kilobyteLabel:`KB`,megabyteLabel:`MB`,orText:`{names} or {last}`,supportedLabel:`supported`,textFileLabel:`text file`,videosLabel:`videos`},Z=()=>I(`fileValidation`,uf),df=`image/png,image/jpeg,image/webp`,ff=5,pf={"image/png":[`.png`],"image/jpeg":[`.jpg`,`.jpeg`],"image/webp":[`.webp`],"image/gif":[`.gif`],"image/svg+xml":[`.svg`],"image/heic":[`.heic`],"image/heif":[`.heif`],"application/pdf":[`.pdf`],"text/plain":[`.txt`]},mf={"image/png":`PNG`,"image/jpeg":`JPG`,"image/webp":`WEBP`,"image/gif":`GIF`,"image/svg+xml":`SVG`,"image/heic":`HEIC`,"image/heif":`HEIC`,"application/pdf":`PDF`,".png":`PNG`,".jpg":`JPG`,".jpeg":`JPG`,".webp":`WEBP`,".gif":`GIF`,".svg":`SVG`,".heic":`HEIC`,".heif":`HEIC`,".pdf":`PDF`},hf={"text/plain":`textFileLabel`,".txt":`textFileLabel`,"image/*":`imagesLabel`,"video/*":`videosLabel`,"audio/*":`audioLabel`},gf=new Set([`image/*`,`video/*`,`audio/*`]),_f=e=>{let t=hf[e];return t?Z()[t]:mf[e]},vf=e=>String(e||``).split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean),yf=[`.png`,`.jpg`,`.jpeg`,`.webp`,`.gif`,`.svg`,`.bmp`,`.avif`,`.heic`,`.heif`];function bf(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t.startsWith(`image/`);let n=typeof e==`string`?e:e.name||e.url||``,r=String(n).toLowerCase();return yf.some(e=>r.endsWith(e))}var xf=[`kilobyteLabel`,`megabyteLabel`,`gigabyteLabel`];function Sf(e){if(e<1024)return`${e} ${Z().byteLabel}`;let t=e/1024,n=0;for(;t>=1024&&n<xf.length-1;)t/=1024,n+=1;return`${t.toFixed(1)} ${Z()[xf[n]??`gigabyteLabel`]}`}function Cf(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t===`application/pdf`;let n=typeof e==`string`?e:e.name||e.url||``;return String(n).toLowerCase().replace(/[?#][\s\S]*$/,``).endsWith(`.pdf`)}function wf(e){let t=vf(e);return t.length?t.every(e=>e.startsWith(`.`)?yf.includes(e):e===`image/*`||e.startsWith(`image/`)):!1}function Tf(e){let t=[];for(let n of vf(e)){let e=_f(n)||(n.startsWith(`.`)?n.slice(1).toUpperCase():n.toUpperCase());t.includes(e)||t.push(e)}return t.length<=1?t[0]||Z().supportedLabel:R(Z().orText,{names:t.slice(0,-1).join(`, `),last:t.slice(-1).join(``)})}function Ef(e,t){let n=vf(t);if(!n.length)return!0;let r=(e.type||``).toLowerCase(),i=(e.name||``).toLowerCase();return n.some(e=>e.startsWith(`.`)?i.endsWith(e):e.endsWith(`/*`)?r.startsWith(e.slice(0,-1)):r&&r===e?!0:!r&&(pf[e]||[]).some(e=>i.endsWith(e)))}function Df(e,t={}){if(!e)return null;let n=t.accept===void 0?df:t.accept,r=t.maxSizeMb===void 0?5:t.maxSizeMb;if(!Ef(e,n)){let e=Tf(n),t=vf(n).map(e=>gf.has(e));return t.every(Boolean)?R(Z().chooseText,{label:e}):t.some(Boolean)?R(Z().chooseText,{label:e.endsWith(` file`)?`${e}s`:`${e} files`}):R(Z().chooseText,{label:`a ${e.endsWith(` file`)?e:`${e} file`}`})}return r!==null&&r>0&&e.size>r*1024*1024?R(Z().keepFileUnderMbText,{maxSizeMb:r}):null}function Of(e,t){let n=Array.from(e||[]),r=t.multiple?n:n.slice(0,1),i=[],a=[];for(let e of r){let n=Df(e,{accept:t.accept,maxSizeMb:t.maxSizeMb});n?a.push({file:e,message:n}):i.push(e)}return{files:i,rejections:a}}function kf(e,t){let{overClass:n,isDisabled:r=()=>!1,onFiles:i,onReject:a,...o}=t,s=0,c=t=>e.classList.toggle(n,t),l=e=>{e.preventDefault(),r()||(s+=1,c(!0))},u=e=>{e.preventDefault(),r()||c(!0)},d=e=>{e.preventDefault(),r()||(s=Math.max(0,s-1),s===0&&c(!1))},f=e=>{if(e.preventDefault(),s=0,c(!1),r())return;let{files:t,rejections:n}=Of(e.dataTransfer?.files,o);t.length&&i(t);let l=n[0];l&&a(l)};return e.addEventListener(`dragenter`,l),e.addEventListener(`dragover`,u),e.addEventListener(`dragleave`,d),e.addEventListener(`drop`,f),()=>{e.removeEventListener(`dragenter`,l),e.removeEventListener(`dragover`,u),e.removeEventListener(`dragleave`,d),e.removeEventListener(`drop`,f)}}var Af={aadhaarMessage:`Enter a valid 12-digit Aadhaar number`,amountMessage:`Enter a valid amount`,dateMessage:`Enter a valid date as DD-MM-YYYY`,gstinMessage:`Enter a valid GSTIN`,ifscMessage:`Enter a valid IFSC`,incompleteMessage:`Enter the full value`,panMessage:`Enter a valid PAN`,phoneInMessage:`Enter a 10-digit mobile number`,pinCodeMessage:`Enter a valid 6-digit PIN code`},jf=/[0-9]/,Mf={9:jf,A:/[A-Za-z]/,"*":/[0-9A-Za-z]/},Nf=/[9A*]/,Pf=new Set([`text`,`tel`,`search`,`url`,`password`]),Ff=e=>{let t=e.replace(/\D/g,``);return t.length===12&&t.startsWith(`91`)?t.slice(2):t.length===11&&t.startsWith(`0`)?t.slice(1):e},If=e=>{let t=Number(e.slice(0,2)),n=Number(e.slice(2,4)),r=Number(e.slice(4,8));if(r<1)return!1;let i=new Date(Date.UTC(r,n-1,t));return i.getUTCFullYear()===r&&i.getUTCMonth()===n-1&&i.getUTCDate()===t},Lf=e=>e.length<=3?e:`${e.slice(0,-3).replace(/\B(?=(\d{2})+(?!\d))/g,`,`)},${e.slice(-3)}`,Rf=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());return t?`${t[3]}-${t[2]}-${t[1]}`:e},Q=()=>I(`inputMask`,Af);function zf(e,{upper:t=!1,normalize:n,valid:r,post:i=e=>e,message:a=Q().incompleteMessage}={}){let o=[...e].map(e=>{let t=Mf[e];return t?{re:t}:{lit:e}}),s=o.filter(e=>e.re).length;return{inputMode:o.every(e=>!e.re||e.re===jf)?`numeric`:`text`,normalize:n,post:i,message:a,extract(e){let n=``,r=0;for(let i of e){for(;r<o.length&&o[r]?.lit!==void 0&&o[r]?.lit!==i;)r++;if(r>=o.length)break;let e=o[r];e?.lit===void 0?e?.re.test(i)&&(n+=t?i.toUpperCase():i,r++):r++}return n},layout(e){let t=``,n=[],r=0;for(let i=0;i<o.length&&r<e.length;i++){let a=o[i];a?.lit===void 0?(t+=e.charAt(r++),n.push(!0)):(t+=a.lit,n.push(!1))}return{text:t,isRaw:n}},isValid:e=>e.length===s&&(!r||r(e))}}function Bf(){return{inputMode:`decimal`,post:e=>e,message:Q().amountMessage,extract(e){let t=``,n=!1,r=0;for(let i of e)jf.test(i)?n?r<2&&(t+=i,r++):t+=i:i===`.`&&!n&&(n=!0,t+=i);return t.startsWith(`.`)&&(t=`0${t}`),t.replace(/^0+(?=\d)/,``)},layout(e){let[t=``,n]=e.split(`.`),r=Lf(t)+(e.includes(`.`)?`.${n}`:``);return{text:r,isRaw:[...r].map(e=>e!==`,`)}},isValid:e=>/^\d+(\.\d{1,2})?$/.test(e)}}var Vf={"phone-in":()=>zf(`99999 99999`,{normalize:Ff,valid:e=>/^[6-9]/.test(e),message:Q().phoneInMessage}),pan:()=>zf(`AAAAA9999A`,{upper:!0,valid:e=>/^[A-Z]{5}\d{4}[A-Z]$/.test(e),message:Q().panMessage}),gstin:()=>zf(`99AAAAA9999A***`,{upper:!0,valid:e=>/^\d{2}[A-Z]{5}\d{4}[A-Z][1-9A-Z]Z[0-9A-Z]$/.test(e),message:Q().gstinMessage}),aadhaar:()=>zf(`9999 9999 9999`,{valid:e=>/^[2-9]/.test(e),message:Q().aadhaarMessage}),ifsc:()=>zf(`AAAA*******`,{upper:!0,valid:e=>/^[A-Z]{4}0[A-Z0-9]{6}$/.test(e),message:Q().ifscMessage}),"pin-code":()=>zf(`999999`,{valid:e=>/^[1-9]/.test(e),message:Q().pinCodeMessage}),date:()=>zf(`99-99-9999`,{normalize:Rf,valid:If,post:(e,t)=>e.length===8&&If(e)?`${e.slice(4)}-${e.slice(2,4)}-${e.slice(0,2)}`:t,message:Q().dateMessage}),amount:Bf},Hf=Object.keys(Vf),Uf=e=>{let t=String(e).toLowerCase();return Er(Vf,t)?t:void 0},Wf=e=>Nf.test(String(e))&&Uf(e)===void 0,Gf=new Map;dn(()=>Gf.clear());function Kf(e){if(e==null||e===``)return null;let t=String(e),n=Gf.get(t);return n===void 0&&(n=Wf(t)?zf(t):Er(Vf,t)?Vf[t]?.()??null:null,Gf.set(t,n)),n}var $=(e,t)=>e.normalize?e.normalize(t):t;function qf(e,t){let n=Kf(e);return n?n.extract($(n,String(t??``))):String(t??``)}function Jf(e,t){let n=Kf(e);if(!n)return String(t??``);let r=n.extract($(n,String(t??``)));return n.post(r,n.layout(r).text)}function Yf(e,t){let n=Kf(e);return n?n.layout(n.extract($(n,String(t??``)))).text:String(t??``)}var Xf=(e,t)=>{if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(e[r]&&++n===t)return r+1;return e.length},Zf=new WeakMap,Qf=e=>Zf.get(e)?.(),$f=new WeakMap;function ep(e,t,n,r){let i=e.getAll(t),a=$f.get(e)??new Set;$f.set(e,a);let o=i.findIndex((e,r)=>e===n&&!a.has(`${t}\u0000${r}`));if(!(o<0)){if(a.add(`${t}\u0000${o}`),i[o]=r,i.length===1)e.set(t,r);else{e.delete(t);for(let n of i)e.append(t,n)}}}function tp(e){let t=null,n=null,r=!1,i=(t,n)=>{n===null?e.removeAttribute(t):n!==void 0&&e.setAttribute(t,n)},a,o,s=()=>{t?.remove(),t=null,n&&(n.hidden=!1),n=null,r&&e.classList.remove(`error`),r=!1,i(`aria-invalid`,a),i(`aria-describedby`,o),a=void 0,o=void 0};return i=>{if(!i){s();return}let c=e.closest(`.field`),l=c instanceof HTMLElement?c:null,u=l?.querySelector(`.field-error`);if(!(u&&u!==t&&u.textContent?.trim())){if(!t){if(r=!e.classList.contains(`error`),e.classList.add(`error`),a=e.getAttribute(`aria-invalid`),o=e.getAttribute(`aria-describedby`),l){t=document.createElement(`div`),t.className=`field-error`,e.id&&(t.id=`${e.id}-error`);let r=l.querySelector(`.field-hint`);n=r instanceof HTMLElement?r:null,n&&(n.hidden=!0),l.insertBefore(t,[...l.children].find(e=>e.classList.contains(`field-count`))??null),t.id&&e.setAttribute(`aria-describedby`,t.id)}e.setAttribute(`aria-invalid`,`true`)}t&&(t.textContent=i)}}}function np(e,{mask:t,postFormatted:n=!1,onChange:r,onInvalidChange:i}={}){let a=Kf(t);if(!a||!Pf.has(e.type))return()=>{};let o=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(o,`value`);if(!s?.set)throw Error(`input value setter missing`);let c=s.set,l=!e.hasAttribute(`inputmode`);l&&e.setAttribute(`inputmode`,a.inputMode);let u=i??tp(e),d=null,f=!1,p=!1,m=!1,h=``,g=``,_,v=()=>{let e=m?h:``;e!==g&&(g=e,u(g))},y=(t,n,i)=>{let o=a.extract(t.slice(0,n)).length,s=a.extract(t),{text:l,isRaw:u}=a.layout(s);if(e.value!==l&&(c.call(e,l),document.activeElement===e&&Pf.has(e.type))){let t=Xf(u,o);e.setSelectionRange(t,t)}e.dataset.maskRaw=s,h=s&&!a.isValid(s)?a.message:``,e.setCustomValidity(h),v(),i&&s!==d&&r?.(s,l),d=s},b=Object.getOwnPropertyDescriptor(e,`value`),x=b??s;Object.defineProperty(e,"value",{configurable:!0,...x.enumerable===void 0?{}:{enumerable:x.enumerable},get:()=>k(x.get,`input value getter missing`).call(e),set:t=>{if(k(x.set,`input value setter missing`).call(e,t),p)return;let n=$(a,e.value);y(n,n.length,!0)}});let S=()=>{f=!0,e.dispatchEvent(new Event(`input`,{bubbles:!0})),f=!1},C=t=>{let n=t instanceof InputEvent?t:null;if(f||p||n?.isComposing)return;let r=n?.inputType===`insertText`&&(n.data?.length??0)<=1||n?.inputType?.startsWith(`delete`)?e.value:$(a,e.value);y(r,e.selectionStart??r.length,!0)},ee=()=>{p=!0},w=()=>{p=!1;let t=$(a,e.value);y(t,e.selectionStart??t.length,!0),S()},te=t=>{let n=t.inputType===`deleteContentBackward`;if(!n&&t.inputType!==`deleteContentForward`||t.isComposing)return;let r=e.selectionStart;if(r==null||r!==e.selectionEnd)return;let{isRaw:i}=a.layout(a.extract(e.value)),o=n?r-1:r;for(;o>=0&&o<i.length&&!i[o];)o+=n?-1:1;o!==(n?r-1:r)&&(t.preventDefault(),o<0||o>=i.length||(y(e.value.slice(0,o)+e.value.slice(o+1),n?o:r,!0),S()))},ne=t=>{if(e.readOnly||e.disabled)return;let n=t.clipboardData?.getData(`text`);if(n==null)return;t.preventDefault();let r=$(a,n),i=e.selectionStart??e.value.length,o=e.selectionEnd??i;y(e.value.slice(0,i)+r+e.value.slice(o),i+r.length,!0),S()},re=()=>{let t=a.extract(e.value);return a.post(t,a.layout(t).text)},T=()=>{m=!0,v()};e.addEventListener(`input`,C),e.addEventListener(`beforeinput`,te),e.addEventListener(`paste`,ne),e.addEventListener(`compositionstart`,ee),e.addEventListener(`compositionend`,w),e.addEventListener(`blur`,T),e.addEventListener(`invalid`,T);let E=e.form,D=t=>{e.name&&!e.disabled&&ep(t.formData,e.name,e.value,re())},ie=()=>{clearTimeout(_),_=setTimeout(()=>{m=!1,y($(a,e.value),e.value.length,!0)},0)};n||(E?.addEventListener(`formdata`,D),Zf.set(e,re)),E?.addEventListener(`reset`,ie),E?.addEventListener(`submit`,T);let ae=$(a,e.value);return y(ae,ae.length,!1),()=>{clearTimeout(_),e.removeEventListener(`input`,C),e.removeEventListener(`beforeinput`,te),e.removeEventListener(`paste`,ne),e.removeEventListener(`compositionstart`,ee),e.removeEventListener(`compositionend`,w),e.removeEventListener(`blur`,T),e.removeEventListener(`invalid`,T),E?.removeEventListener(`formdata`,D),E?.removeEventListener(`reset`,ie),E?.removeEventListener(`submit`,T),Zf.delete(e),b?Object.defineProperty(e,"value",b):Reflect.deleteProperty(e,`value`),m=!1,h=``,v(),e.setCustomValidity(``),delete e.dataset.maskRaw,l&&e.removeAttribute(`inputmode`)}}function rp(){let e=typeof window>`u`?void 0:window.jQuery?.validator?.prototype;if(!e||e.wuiMaskHook)return;let t=e.elementValue;e.elementValue=function(e){let n=Qf(e);return n===void 0?t.call(this,e):n},e.wuiMaskHook=!0}var ip=new WeakMap,ap,op=e=>{ip.has(e)||ip.set(e,np(e,{mask:e.dataset.appMask,postFormatted:e.hasAttribute(`data-mask-post-formatted`)}))},sp=e=>[...e.querySelectorAll(`input[data-app-mask]`)].filter(e=>e instanceof HTMLInputElement),cp=e=>e instanceof Element?[...e instanceof HTMLInputElement&&e.matches(`input[data-app-mask]`)?[e]:[],...sp(e)]:[];function lp(){ap||typeof MutationObserver>`u`||(ap=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of cp(e))ip.get(t)?.(),ip.delete(t);for(let e of t.addedNodes)for(let t of cp(e))op(t)}}),ap.observe(document.documentElement,{childList:!0,subtree:!0}))}function up(e=document){rp();for(let t of sp(e))op(t);e===document&&lp()}var dp=`data-wui-bulk-in-bar`,fp=`[data-wui-page-header-bar][data-wui-bulk-for]`,pp=new WeakSet;function mp(e){return`${N(e,{decimals:0})} selected`}function hp(e){let t=e.dataset.wuiBulkFor;return t===void 0?null:document.getElementById(t)}function gp(e){return typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`}function _p(e,t){return[...e.querySelectorAll(t)].flatMap(e=>e instanceof HTMLElement?[e]:[])}function vp(e,t){for(let n of _p(e,`[data-wui-bar-swap]`))n.hidden=t>0;let n=e.querySelector(`[data-wui-bar-bulk]`);if(!n)return;if(!(n instanceof HTMLElement))throw Error(`The bulk slot is not an HTML element.`);n.hidden=t===0;let r=n.querySelector(`.page-header-bar-bulk-count`);if(!(r instanceof HTMLElement))throw Error(`The bulk slot has no count element.`);r.textContent=t>0?mp(t):``}function yp(e=document){for(let t of _p(e,fp))hp(t)?.setAttribute(dp,``);pp.has(document)||(pp.add(document),document.addEventListener(`selectionchange`,e=>{if(!(e instanceof CustomEvent)||!gp(e.detail))return;let t=e.target;if(t!==null&&!(t instanceof Node))throw Error(`The selection changed on a target that is not a node.`);for(let n of _p(document,fp))hp(n)?.contains(t)&&vp(n,e.detail.selected)}))}var bp={digitText:`At least one digit`,lengthText:`At least {minLength} characters long`,lowercaseText:`At least one lowercase letter`,requirementsTitle:`Password requirements`,specialText:`At least one special character`,uniqueCharsTextOne:`At least {n} unique character`,uniqueCharsTextOther:`At least {n} unique characters`,uppercaseText:`At least one uppercase letter`},xp={minLength:10,uppercase:!0,lowercase:!0,digit:!0,special:!0,uniqueChars:0,customRules:[]},Sp=()=>I(`passwordRules`,bp);function Cp(e){return e===!0||e==null?{...xp}:{...xp,...e}}function wp(e){let t=Cp(e),n=[];if(t.minLength>0&&n.push({key:`length`,label:R(Sp().lengthText,{minLength:t.minLength}),test:e=>e.length>=t.minLength}),t.uppercase&&n.push({key:`uppercase`,label:Sp().uppercaseText,test:e=>/[A-Z]/.test(e)}),t.lowercase&&n.push({key:`lowercase`,label:Sp().lowercaseText,test:e=>/[a-z]/.test(e)}),t.digit&&n.push({key:`digit`,label:Sp().digitText,test:e=>/[0-9]/.test(e)}),t.special&&n.push({key:`special`,label:Sp().specialText,test:e=>/[^A-Za-z0-9]/.test(e)}),t.uniqueChars>0){let e=t.uniqueChars;n.push({key:`unique`,label:gn(Sp(),`uniqueCharsText`,e,{n:e}),test:t=>new Set(t).size>=e})}for(let[e,r]of(t.customRules??[]).entries()){let t=new RegExp(r.pattern);n.push({key:`custom-${e}`,label:r.label,test:e=>t.test(e)})}return n}function Tp(e,t){let n=e==null?``:String(e);return wp(t).map(e=>({key:e.key,label:e.label,met:e.test(n)}))}function Ep(e,t){return Tp(e,t).every(e=>e.met)}var Dp={moveLabel:`Move to`,moveText:`Move to {label}`},Op=`wui:row-drop`,kp=`is-drop-over`,Ap=`application/x-wui-rows`,jp=`wui-row-dragging`,Mp=`[data-wui-drop-target]`,Np=`tbody tr[data-row-key]`,Pp=`input, button, a, select, textarea, label`,Fp=`.wui-select-cell .form-check-input`,Ip=new WeakMap,Lp=new WeakSet,Rp=null,zp=null;function Bp(e){let t=e.querySelector(Fp);return t instanceof HTMLInputElement&&t.checked}function Vp(e){let t=[];for(let n of e.querySelectorAll(`tbody tr:not(.wui-group-row)`))n instanceof HTMLElement&&Bp(n)&&t.push(n.dataset.rowKey);return t}function Hp(e,t){return He(e,t)}function Up(e,t){let n=Hp(e,t);return n instanceof HTMLElement?n:null}function Wp(e){let t=e.textContent;if(t===null)throw Error(`A drop target has no text content.`);return t.trim()}var Gp=e=>typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`;function Kp(){Rp=null,document.body.classList.remove(jp);for(let e of document.querySelectorAll(`${Mp}.${kp}`))e.classList.remove(kp)}function qp(e,t,n){e.dispatchEvent(new CustomEvent(Op,{bubbles:!0,detail:{keys:t,target:n.dataset.wuiDropTarget}}))}function Jp(e){let t=Up(e.target,Mp);if(!t||!Rp)return;e.preventDefault();let n=k(e.dataTransfer,`A drag event arrived without its DataTransfer.`);n.dropEffect=`move`,t.classList.add(kp)}function Yp(e){let t=Up(e.target,Mp);!t||e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||t.classList.remove(kp)}function Xp(e){let t=Up(e.target,Mp);if(!t||!Rp)return;e.preventDefault(),t.classList.remove(kp);let{root:n,keys:r}=Rp;qp(n,r,t),Kp()}function Zp(e){let t=Up(e.target,Mp);t&&zp?.keys.length&&(e.preventDefault(),qp(zp.root,zp.keys,t))}function Qp(e){(ki(e)||e.key===` `)&&Zp(e)}function $p(e){Lp.has(e)||(Lp.add(e),e.addEventListener(`dragover`,Jp),e.addEventListener(`dragenter`,Jp),e.addEventListener(`dragleave`,Yp),e.addEventListener(`drop`,Xp),e.addEventListener(`click`,Zp),e.addEventListener(`keydown`,Qp))}function em(e){let t=Ip.get(e);if(t)return t;$p(e.ownerDocument||e);let n=t=>{let n=Up(t.target,Np);if(!n||!e.contains(n))return;let r=Hp(t.target,Pp);r&&n.contains(r)||(n.draggable=!0)},r=t=>{let n=Up(t.target,Np);if(!n||!e.contains(n))return;let r=Bp(n)?Vp(e):[n.dataset.rowKey],i=k(t.dataTransfer,`A drag event arrived without its DataTransfer.`);i.setData(Ap,JSON.stringify(r)),i.setData(`text/plain`,r.join(`,`)),i.effectAllowed=`move`,Rp={root:e,keys:r},document.body.classList.add(jp)},i=t=>{let n=t instanceof CustomEvent?t.detail:void 0;if(Gp(n)){let{keys:t}=n;n.selected>0?zp={root:e,keys:Array.isArray(t)?t:Vp(e)}:n.selected===0&&(zp=null)}nm(document)};e.addEventListener(`pointerdown`,n),e.addEventListener(`dragstart`,r),e.addEventListener(`dragend`,Kp),e.addEventListener(`selectionchange`,i);let a=()=>{e.removeEventListener(`pointerdown`,n),e.removeEventListener(`dragstart`,r),e.removeEventListener(`dragend`,Kp),e.removeEventListener(`selectionchange`,i),Ip.delete(e)};return Ip.set(e,a),a}var tm=()=>I(`rowDrop`,Dp);function nm(e=document){let t=e.querySelector(`[data-wui-row-drag] tbody tr:not(.wui-group-row) ${Fp}:checked`)!==null;for(let n of e.querySelectorAll(Mp)){n.tagName!==`BUTTON`&&(n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`)),t?n.removeAttribute(`aria-disabled`):n.setAttribute(`aria-disabled`,`true`);let e=n.getAttribute(`data-wui-drop-label`)||Wp(n);n.setAttribute(`aria-label`,R(tm().moveText,{label:e}))}for(let t of e.querySelectorAll(`.wui-drop-tray`))t.hasAttribute(`role`)||(t.setAttribute(`role`,`toolbar`),t.setAttribute(`aria-label`,tm().moveLabel))}function rm(e=document){for(let t of e.querySelectorAll(`[data-wui-row-drag]`))t instanceof HTMLElement&&em(t);nm(e.ownerDocument||e)}var im=`.table-wrap, .table-responsive, [class*="table-responsive-"]`,am=1;function om(e){let t=()=>{let t=e.scrollWidth-e.clientWidth,n=Math.abs(e.scrollLeft);e.toggleAttribute(`data-wui-overflow-start`,t>am&&n>am),e.toggleAttribute(`data-wui-overflow-end`,t>am&&n<t-am),e.toggleAttribute(`data-wui-overflow-top`,e.scrollTop>am)},n=()=>{if(e.scrollWidth-e.clientWidth>am){let t=getComputedStyle(e);e.style.setProperty(`--wui-scroll-pad-start`,t.paddingInlineStart),e.style.setProperty(`--wui-scroll-pad-end`,t.paddingInlineEnd)}else e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))},r=()=>{n(),t()};e.addEventListener(`scroll`,t,{passive:!0});let i=null;if(typeof ResizeObserver<`u`){i=new ResizeObserver(r),i.observe(e);for(let t of e.children)i.observe(t)}return r(),()=>{e.removeEventListener(`scroll`,t),i?.disconnect(),e.removeAttribute(`data-wui-overflow-start`),e.removeAttribute(`data-wui-overflow-end`),e.removeAttribute(`data-wui-overflow-top`),e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))}}var sm=new WeakMap,cm,lm=e=>{sm.has(e)||sm.set(e,om(e))},um=e=>{if(!(e instanceof HTMLElement))return[];let t=e.matches(`.table-wrap, .table-responsive, [class*="table-responsive-"]`)?[e]:[];if(e.firstElementChild===null)return t;let n=[...e.querySelectorAll(im)].filter(e=>e instanceof HTMLElement);return[...t,...n]};function dm(){cm||typeof MutationObserver>`u`||(cm=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of um(e))sm.get(t)?.(),sm.delete(t);for(let e of t.addedNodes)for(let t of um(e))lm(t)}}),cm.observe(document.documentElement,{childList:!0,subtree:!0}))}function fm(e=document){for(let t of e.querySelectorAll(im))t instanceof HTMLElement&&lm(t);e===document&&dm()}var pm=new WeakSet;function mm(e){let t=e.querySelectorAll?[...e.querySelectorAll(`[data-wui-flash]`)]:[];e instanceof Element&&e.matches(`[data-wui-flash]`)&&t.unshift(e);for(let e of t){let t=e.getAttribute(`data-wui-flash-variant`)||`success`;if(!io(t))throw TypeError(`data-wui-flash-variant="${t}" is not supported. Use ${ro.join(`, `)}.`);let n=e.getAttribute(`data-wui-flash`)||(e.textContent??``).trim();e.remove(),n&&Ms(n,t)}}function hm(e=document){let t=e instanceof Element?e.ownerDocument:e;if(!pm.has(t)){pm.add(t);let e=co();e&&Ms(e.message,e.variant,e.action)}mm(e)}var gm=`data-wui-submit-once`,_m=`data-wui-submit-pending`,vm=`wui-submit-spinner`,ym=new WeakSet,bm=new WeakMap;function xm(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement?e:null}function Sm(e){if(e.setAttribute(`aria-busy`,`true`),e.tagName===`INPUT`||e.querySelector(`.${vm}`))return;let t=e.ownerDocument.createElement(`span`);t.className=`spinner-border spinner-border-sm me-2 ${vm}`,t.setAttribute(`aria-hidden`,`true`),e.prepend(t)}function Cm(e){e.removeAttribute(`aria-busy`),e.querySelector(`.${vm}`)?.remove()}function wm(e){return e.method===`post`&&e.target!==`_blank`&&e.getAttribute(`data-wui-submit-once`)!==`off`}function Tm(e){let t=e.target;if(!(t instanceof HTMLFormElement)||!wm(t))return;if(t.hasAttribute(_m)){e.preventDefault();return}t.setAttribute(_m,``);let n=xm(e.submitter);setTimeout(()=>{t.hasAttribute(_m)&&(e.defaultPrevented?t.removeAttribute(_m):n&&(n.disabled=!0,Sm(n),bm.set(t,n)))},0)}var Em=e=>[...e.querySelectorAll(`form[${_m}]`)].filter(e=>e instanceof HTMLFormElement);function Dm(e){for(let t of Em(e)){t.removeAttribute(_m);let e=bm.get(t);e&&(e.disabled=!1,Cm(e),bm.delete(t))}}function Om(e){let t=e.ownerDocument===null?e:e.ownerDocument;ym.has(t)||(ym.add(t),t.addEventListener(`submit`,Tm,!0),t.defaultView?.addEventListener(`pageshow`,()=>Dm(t)))}var km=[`light`,`dark`,`auto`],Am=[`wave`,`circle`,`slide`,`blinds`,`fade`,`none`],jm=`fade`,Mm=`theme`,Nm={wave:1100,circle:700,slide:600,blinds:900,fade:350,none:0},Pm=`wui-theme-switching`,Fm=`wui:theme:change`,Im=`(prefers-color-scheme: dark)`,Lm=e=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(e).matches,Rm=e=>km.some(t=>t===e);function zm(e){return e===`dark`||e===`auto`&&Lm(Im)?`dark`:`light`}function Bm(e=Mm){let t=null;try{t=window.localStorage.getItem(e)}catch(e){if(!(e instanceof DOMException))throw e}return Rm(t)?t:`auto`}function Vm(e,t=Mm){try{window.localStorage.setItem(t,e)}catch(e){if(!(e instanceof DOMException))throw e}}function Hm(e){let t=document.documentElement,n=zm(e);t.setAttribute(`data-theme`,e),t.setAttribute(`data-bs-theme`,n),document.dispatchEvent(new CustomEvent(Fm,{detail:{mode:n,preference:e}}))}var Um=`((k)=>{let m;try{m=localStorage.getItem(k)}catch{m=null}if(m!=='light'&&m!=='dark')m='auto';const r=document.documentElement,q=window.matchMedia?window.matchMedia('(prefers-color-scheme: dark)'):null;function s(){const t=r.getAttribute('data-theme');r.setAttribute('data-bs-theme',t==='auto'?(q?.matches?'dark':'light'):t)}r.setAttribute('data-theme',m);s();if(q?.addEventListener)q.addEventListener('change',()=>{if(r.getAttribute('data-theme')==='auto')s()})})(`;function Wm(e=Mm){return`${Um}${JSON.stringify(String(e)).replace(/</g,`\\u003c`)})`}function Gm(e,{includeAuto:t=!1}={}){return e===`light`?`dark`:e===`dark`&&t?`auto`:`light`}function Km(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(Im),n=()=>e(t.matches?`dark`:`light`);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var qm=60,Jm=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,Ym=e=>e.toFixed(1),Xm=(e,t)=>`${Ym(e)}px ${Ym(t)}px`,Zm={amplitude:22,segments:36,cycles:1.5,ripples:2},Qm=6,$m=(e,t,n,r,i)=>{let{amplitude:a,segments:o,cycles:s}=Zm,c=n*(t+2*a),l=i?t+a-c:c-a,u=i?t+2*a:-2*a,d=[Xm(0,u)];for(let t=0;t<=o;t++){let n=e*t/o,i=l+a*Math.sin(2*Math.PI*s*t/o+r);d.push(Xm(n,i))}return d.push(Xm(e,u)),`polygon(${d.join(`, `)})`},eh=(e,t,n,r)=>{let i=t/Qm,a=[];for(let t=0;t<Qm;t++){let o=t*i,s=i*n,c=r?o+i-s:o,l=r?o+i:o+s;a.push(Xm(0,c),Xm(e,c),Xm(e,l),Xm(0,l))}return`polygon(${a.join(`, `)})`};function th(e,{width:t,height:n,to:r=`dark`,origin:i}){let a=r===`dark`,o=[];for(let r=0;r<=qm;r++){let s=r/qm,c=Jm(s);switch(e){case`circle`:{let e=i?.x??t/2,r=i?.y??n/2,a=Math.hypot(Math.max(e,t-e),Math.max(r,n-r));o.push({clipPath:`circle(${Ym(a*c)}px at ${Ym(e)}px ${Ym(r)}px)`});break}case`slide`:{let e=n*(1-c);o.push({clipPath:a?`inset(${Ym(e)}px 0px 0px 0px)`:`inset(0px 0px ${Ym(e)}px 0px)`});break}case`blinds`:o.push({clipPath:eh(t,n,c,a)});break;case`fade`:o.push({clipPath:`none`,opacity:c});break;case`none`:return[];default:o.push({clipPath:$m(t,n,c,s*Zm.ripples*2*Math.PI,a)})}}return o}var nh=e=>{e instanceof DOMException&&(e.name===`AbortError`||e.name===`InvalidStateError`)||mr(`[@webority/ui-elements] The theme view transition failed:`,e)};function rh(e,{effect:t=jm,to:n,origin:r,duration:i}={}){let a=document.documentElement,o=n!==void 0&&a.getAttribute(`data-bs-theme`)===n;if(t===`none`||o||Lm(`(prefers-reduced-motion: reduce)`)||typeof document.startViewTransition!=`function`||typeof a.animate!=`function`)return e(),Promise.resolve(!1);a.classList.add(Pm);let s=document.startViewTransition(e),c=i??Nm[t]??Nm.fade;return s.ready.then(()=>{let e=th(t,{width:window.innerWidth,height:window.innerHeight,to:n,origin:r});a.animate(e,{duration:c,easing:`linear`,fill:`both`,pseudoElement:`::view-transition-new(root)`})}).catch(nh),s.finished.catch(nh).finally(()=>a.classList.remove(Pm)).then(()=>!0)}function ih(){sr(),i(`wui-select`,wa),i(`wui-modal`,cr)}return globalThis.WeborityUiElementsInternal||(globalThis.WeborityUiElementsInternal={version:`0.201.0`,modules:Ad}),Ya(),Qr(),$s(),ih(),e.AVATAR_ACCEPT=Md,e.AVATAR_MAX_SIZE_MB=Nd,e.AVATAR_OUTPUT_SIZE=Pd,e.AVATAR_OUTPUT_TYPE=Fd,e.AVATAR_PREVIEW_SIZES=Id,e.BAR_BULK_IN_BAR_ATTRIBUTE=dp,e.COLUMN_MAX_WIDTH=Fc,e.COLUMN_MIN_WIDTH=Pc,e.COMMAND_SHORTCUT_ATTRIBUTE=$d,e.COPY_FEEDBACK_MS=kc,e.CSRF_META_NAME=Eo,e.CURRENCIES=ot,e.CURRENCY_SYMBOLS=We,e.DATE_PATTERNS=lt,e.DEFAULT_CSRF_HEADER=Do,e.DEFAULT_CURRENCY=Ue,e.DEFAULT_IMAGE_ACCEPT=df,e.DEFAULT_MAX_SIZE_MB=ff,e.DEFAULT_PASSWORD_RULES=xp,e.DEFAULT_THEME_EFFECT=jm,e.DEFAULT_THEME_STORAGE_KEY=Mm,e.DROP_OVER_CLASS=kp,e.DURATION_UNITS=ct,e.FILTER_POPOVER_MAX_CHIPS=Yn,e.FLASH_STORAGE_KEY=ao,e.FLASH_VARIANTS=ro,e.FORMAT_STYLES=at,e.GROUP_SELECT_CLASS=Mu,e.HTTP_KINDS=jo,e.IST_TIME_ZONE=j,e.MASK_INPUT_TYPES=Pf,e.MASK_NAMES=Hf,e.MENTION_ID_PATTERN=Dl,e.MONEY_UNITS=st,e.NOTIFICATION_COUNT_CAP=Gl,e.PIN_AT_VAR=tl,e.PIN_SIDES=Rc,e.RESIZE_STEP=Ic,e.RESIZE_STEP_LARGE=Lc,e.ROW_DRAG_TYPE=Ap,e.ROW_DROP_EVENT=Op,e.ROW_HEIGHTS=Bc,e.ROW_MOVE_LIMIT=al,e.ROW_MOVE_MS=ol,e.ROW_SAVE_ATTR=ml,e.ROW_SAVE_ERROR_CLASS=hl,e.ROW_SAVE_STATES=pl,e.SCROLL_EDGE_SELECTOR=im,e.SEARCH_OPEN_KEY=Bd,e.SELECT_CELL_CLASS=X,e.SHORTCUTS_OFF_ATTRIBUTE=Tn,e.SHORTCUT_EVENT=Dn,e.SHORTCUT_SCOPE_ATTRIBUTE=En,e.SUBMIT_ONCE_ATTRIBUTE=gm,e.THEME_BOOT_SCRIPT_BODY=Um,e.THEME_CHANGE_EVENT=Fm,e.THEME_EFFECTS=Am,e.THEME_EFFECT_DURATION=Nm,e.THEME_MODES=km,e.THEME_SWITCHING_CLASS=Pm,e.TOAST_ACTION_METHODS=Qa,e.TOAST_ACTION_MS=Os,e.VIRTUAL_OVERSCAN=zc,e.WUI_HEADERS=J,e.WuiPostError=gu,e.WuiSelect=wa,e.acceptDroppedFiles=Of,e.acceptLabel=Tf,e.addRowSelectCells=Hu,e.addSelectColumn=Uu,e.applyBarBulk=vp,e.applyRefresh=Es,e.applyTheme=Hm,e.ariaKeyShortcuts=zn,e.attachFileDrop=kf,e.attachInputMask=np,e.attachRowDrag=em,e.attachScrollEdges=om,e.attachShiftRange=qu,e.avatarCropOptions=zd,e.avatarUnreadableMessage=Rd,e.barBulkCountText=mp,e.buildPasswordRules=wp,e.clampColumnWidth=Jc,e.classifyStatus=Fo,e.collapseSearch=Yd,e.configureCsrf=ko,e.copyTextToClipboard=Ac,e.createGroupSelectCell=Lu,e.createRequestQueue=Ko,e.createSelectHeaderCell=Pu,e.createSelectRowCell=Fu,e.createSelectSpacerCell=Iu,e.currencyPrefix=Ke,e.deriveStepStatus=Du,e.emptyValueLabel=M,e.evaluatePassword=Tp,e.fillText=R,e.formatCompact=It,e.formatCurrency=Pt,e.formatDate=F,e.formatDateTime=Wt,e.formatDuration=zt,e.formatFileSize=Sf,e.formatMasked=Yf,e.formatNumber=N,e.formatPercent=Lt,e.formatRelativeTime=cu,e.formatValue=Ht,e.glyphNode=U,e.groupCount=qc,e.groupItems=Yc,e.groupNotificationsByDay=$l,e.groupRowsOf=Ru,e.identityCell=_l,e.inShortcutScope=Un,e.initCollapsibleSearch=Qd,e.initCommandShortcuts=lf,e.initFlashToasts=hm,e.initInputMasks=up,e.initPageBarBulk=yp,e.initRowDrag=rm,e.initScrollEdges=fm,e.initSubmitOnce=Om,e.isCommandChord=af,e.isCurrencyCode=Ge,e.isHeicFile=Ld,e.isImageFile=bf,e.isImageOnlyAccept=wf,e.isMaskPattern=Wf,e.isPdfFile=Cf,e.isTimeZone=tt,e.isTypingTarget=Bn,e.loadServer=Vs,e.loadShell=Ws,e.loadedServer=Hs,e.loadedShell=Gs,e.maskedPostValue=Qf,e.matchSegments=$u,e.matchesAccept=Ef,e.measureRows=ul,e.mentionLabel=Al,e.mentionTextFromValue=Nl,e.mentionValueFromText=Pl,e.mentionedIds=Fl,e.moveFocus=Gn,e.nextTheme=Gm,e.notificationCountText=Jl,e.notificationDayHeading=Ql,e.notificationTime=Zl,e.notificationTriggerLabel=Yl,e.notificationUnreadAnnouncement=Xl,e.openSearch=Jd,e.parseMentionValue=Ml,e.parseServerHtml=So,e.parseToastAction=to,e.passwordSatisfies=Ep,e.pinAtValue=nl,e.pinClasses=il,e.pinOffsetVar=el,e.planPins=rl,e.playRowMoves=dl,e.pluralText=gn,e.postedMasked=Jf,e.rawMasked=qf,e.readColumnWidths=Qc,e.readCsrf=No,e.readStoredTheme=Bm,e.readText=I,e.refreshAfter=Ts,e.refreshRegions=es,e.relativeTimeTitle=lu,e.reloadsPage=gs,e.resolveMask=Kf,e.resolveTheme=zm,e.rowLabel=vl,e.rowOrderChanged=fl,e.runShortcut=Wn,e.runToastAction=Ns,e.saveOutcomeText=Cl,e.setRowSaveState=xl,e.setText=un,e.settledRows=Sl,e.shortcutKey=Rn,e.shortcutName=Ln,e.shortcutsOff=Hn,e.showResultToast=js,e.showToast=Ms,e.stepperHeaderItems=Ou,e.storeTheme=Vm,e.syncGroupSelect=Gu,e.syncSelectAll=Wu,e.syncTargets=nm,e.themeBootScript=Wm,e.themeKeyframes=th,e.tickedKeys=Vp,e.timeZoneLabel=qt,e.timeoutFromAttribute=Ro,e.toInstant=P,e.todayIn=Od,e.transitionTheme=rh,e.validateFile=Df,e.virtualRange=Xc,e.wallClockOf=Dd,e.watchSystemTheme=Km,e.whenElementsReady=ei,e.withTrustedLabel=Ii,e.writeColumnWidths=$c,e.wuiFetch=Go,e.wuiUpload=Tu,e.zoneOffsetMs=rt,e.zoneParts=nt,e})({});
|