@webority/ui-elements 0.188.0 → 0.189.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/WuiDatePicker-DqFAl1Iq.js +1 -0
- package/dist/WuiDateRange-CJl2GJIT.js +1 -0
- package/dist/{WuiPhone-B5ZLabTY.js → WuiPhone-DjRBSXkX.js} +1 -1
- package/dist/WuiSelect-BlwwrAxZ.js +1 -0
- package/dist/WuiTimePicker-22K1_FhW.js +1 -0
- package/dist/WuiTreePicker-lqC1h9wU.js +1 -0
- package/dist/{chips-DtDYq3XM.js → chips-DwE4Op1f.js} +1 -1
- package/dist/elements/date-range.js +1 -1
- package/dist/elements/datepicker.js +1 -1
- package/dist/elements/phone.js +1 -1
- package/dist/elements/select.js +1 -1
- package/dist/elements/timepicker.js +1 -1
- package/dist/elements/tree-picker.js +1 -1
- package/dist/{search-BAgNDqG2.js → search-BXL4B5QD.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.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/dist/WuiDatePicker-CRqjwyf2.js +0 -1
- package/dist/WuiDateRange-BBm_Q69p.js +0 -1
- package/dist/WuiSelect-C1NNAsFQ.js +0 -1
- package/dist/WuiTimePicker-BKFPf8Fn.js +0 -1
- package/dist/WuiTreePicker-DLddmEgG.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}if(r!==e||!t.backdrop)return;let a=e.getBoundingClientRect();(n.clientX<a.left||n.clientX>a.right||n.clientY<a.top||n.clientY>a.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=n({fillText:()=>N,pluralText:()=>et,readText:()=>M,setText:()=>Ze,subscribeText:()=>Qe,textLocale:()=>$e}),Ue=`en-IN`,We=/\{([A-Za-z0-9_]+)\}/g,Ge=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,Ke,qe=new Map,Je=0,Ye=new Set,Xe=new Map;function Ze(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(!tt(i))throw RangeError(`Text ${e} must be an object of string keys.`);t.set(e,nt(e,i))}}Ke=n,qe=t,Je+=1;for(let e of Array.from(Ye))e()}function M(e,t){let n=qe.get(e);if(n===void 0)return t;let r=Xe.get(e);if(r!==void 0&&r.version===Je&&r.english===t&&it(r.merged,t))return r.merged;let i=rt(e,n,t);return Xe.set(e,{version:Je,english:t,merged:i}),i}function Qe(e){return Ye.add(e),()=>{Ye.delete(e)}}function $e(){return Ke??Ue}function N(e,t){return e.replace(We,(e,n)=>Ge(t,n)?String(t[n]):e)}function et(e,t,n,r){let i=`${t}Other`;if(!Ge(e,i))throw RangeError(`Plural text ${t} has no ${i} key; every plural needs its Other form.`);let a=new Intl.PluralRules($e()).select(n),o=`${t}${a.charAt(0).toUpperCase()}${a.slice(1)}`,s=e[Ge(e,o)?o:i];if(s===void 0)throw RangeError(`Plural text ${t} has no ${o} key.`);return N(s,{count:n,...r})}function tt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function nt(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 rt(e,t,n){let r={};for(let[i,a]of Object.entries(t)){let t=Ge(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=at(t);for(let t of at(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 it(e,t){let n=Object.keys(t);return Object.keys(e).length===n.length&&n.every(t=>Ge(e,t))}function at(e){return Array.from(e.matchAll(We),e=>e[1]??``)}var ot={closeLabel:`Close`,helpLabel:`Show these shortcuts`,nextItemLabel:`Next item`,openItemLabel:`Open the item`,previousItemLabel:`Previous item`,selectItemLabel:`Select the item`,sheetTitle:`Keyboard shortcuts`},st=n({SHORTCUTS_OFF_ATTRIBUTE:()=>lt,SHORTCUT_EVENT:()=>dt,SHORTCUT_SCOPE_ATTRIBUTE:()=>ut,ariaKeyShortcuts:()=>Ct,inShortcutScope:()=>Dt,isTypingTarget:()=>wt,listKeys:()=>pt,moveFocus:()=>kt,runShortcut:()=>Ot,selectKey:()=>mt,shortcutKey:()=>St,shortcutName:()=>xt,shortcutText:()=>ft,shortcutsOff:()=>Et}),ct=()=>M(`shortcutKeys`,ot),lt=`data-wui-shortcuts`,ut=`data-shortcut-scope`,dt=`wui:shortcut`,ft=()=>({title:ct().sheetTitle,close:ct().closeLabel,help:ct().helpLabel}),pt=()=>[{key:`J`,label:ct().nextItemLabel},{key:`K`,label:ct().previousItemLabel},{key:`Enter`,label:ct().openItemLabel}],mt=()=>({key:`X`,label:ct().selectItemLabel}),ht={"/":`slash`,"?":`help`,Escape:`esc`,Esc:`esc`,Enter:`enter`},gt={esc:`Esc`,escape:`Esc`,enter:`Enter`,slash:`/`,help:`?`},_t={esc:`Escape`,ctrl:`Control`,cmd:`Meta`,option:`Alt`,opt:`Alt`},vt=new Set([`checkbox`,`radio`,`button`,`submit`,`reset`,`range`,`color`,`file`,`image`]),yt=new Set([`textbox`,`searchbox`,`combobox`]),bt=`a[href], button, summary, input, select, textarea, [role="button"], [role="link"], [role="menuitem"], [role="option"], [role="tab"], [role="checkbox"], [role="switch"]`;function xt(e){if(!e||e.ctrlKey||e.metaKey||e.altKey)return null;let t=e.key;return typeof t!=`string`||!t?null:ht[t]?ht[t]:t.length===1&&t.trim()?t.toLowerCase():null}function St(e){let t=String(e??``).trim();return t.length===1?t.toUpperCase():gt[t.toLowerCase()]??t}function Ct(e){return String(e??``).trim().split(/\s+/).filter(Boolean).map(e=>_t[e.toLowerCase()]??(e.length===1?e.toUpperCase():e)).join(`+`)}function wt(e){if(!e||!Tt(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!vt.has(t.toLowerCase())}return yt.has(e.getAttribute?.(`role`))}function Tt(e){return e.nodeType===1}function Et(e=typeof document>`u`?null:document){return e?.documentElement?.getAttribute(lt)===`off`}function Dt(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 Ot(e,t,n=null){let r=e.target instanceof Node?e.target:null;if(!t||e.defaultPrevented||Et(r?.ownerDocument??void 0))return!1;let i=xt(e);if(!i||!Dt(r,n)||wt(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(bt)?!1:(e.preventDefault(),a(e),!0)}function kt(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 At(e){"@babel/helpers - typeof";return At=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},At(e)}function jt(e,t){if(At(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(At(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Mt(e){var t=jt(e,`string`);return At(t)==`symbol`?t:t+``}function P(e,t,n){return(t=Mt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nt=2,Pt=`wui-filter-popover-pinned`,Ft=`.wui-filter-popover-trigger`,It=`.wui-filter-popover-panel`,Lt=`.wui-filter-popover-head`,Rt=`input:not([type]),input[type="text"],input[type="search"]`,zt=`a[href],button:not([disabled]),input:not([disabled]):not([type='hidden']),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex='-1'])`;function Bt(){try{return sessionStorage.getItem(Pt)===`1`}catch{return!1}}function Vt(e){try{e?sessionStorage.setItem(Pt,`1`):sessionStorage.removeItem(Pt)}catch(e){if(!(e instanceof DOMException))throw e}}function Ht(e){if(e===null||e instanceof Node)return e;throw TypeError(`event target is not a node`)}function Ut(e,t){let n=e?.querySelector(t)??null;return n instanceof HTMLElement?n:null}var Wt=class extends s{constructor(){super(),P(this,`_doc`,void 0),P(this,`_timer`,void 0),P(this,`_sticky`,void 0),P(this,`_closingByCode`,void 0),P(this,`_inside`,void 0),P(this,`_pendingSubmit`,void 0),P(this,`_onEnter`,void 0),P(this,`_onLeave`,void 0),P(this,`_onClick`,void 0),P(this,`_onChange`,void 0),P(this,`_onListClose`,void 0),P(this,`_onFocusOut`,void 0),P(this,`_onKeyDown`,void 0),P(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(Ht(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){Vt(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(Ht(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(Rt))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&&Ot(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),Bt()&&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 Ut(this,Ft)}get _panel(){return Ut(this,It)}get _pin(){let e=this.querySelector(`${Lt} 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&&(Ut(n.querySelector(`.wui-filter-popover-grid`),zt)??Ut(n,zt))?.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 Gt(){i(`wui-filter-popover`,Wt)}var Kt=class extends s{static get observedAttributes(){return[`open`,`static`,`no-escape`]}constructor(){super(),P(this,`_doc`,void 0),P(this,`_release`,void 0),P(this,`_opener`,void 0),P(this,`_returnTo`,void 0),P(this,`_session`,void 0),P(this,`_closing`,void 0),P(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`),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?.()}_dialog(){let e=this.querySelector(`dialog`);if(!(e instanceof HTMLDialogElement))throw TypeError(`wui-modal has no <dialog>`);return e}},qt=n({avatarNode:()=>Yt,safeImageUrl:()=>Jt}),Jt=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 Yt(e,t=`wui-opt-avatar`){let n=Jt(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 Xt=n({devError:()=>Qt,devWarn:()=>Zt});function Zt(e,...t){console.warn(e,...t)}function Qt(e,...t){console.error(e,...t)}var $t=n({BUSY_CLASS:()=>en,isInert:()=>F,isReadOnly:()=>tn,syncFieldState:()=>nn}),en=`wui-field-busy`,tn=e=>e.hasAttribute(`readonly`),F=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`readonly`)||e.hasAttribute(`loading`);function nn(e,t){let n=e.hasAttribute(`loading`);n?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),t&&(t.classList.toggle(en,n),tn(e)?t.setAttribute(`aria-readonly`,`true`):t.removeAttribute(`aria-readonly`))}var rn=n({syncFormMirror:()=>cn,syncFormMirrors:()=>ln}),an=`data-wui-mirror`;function on(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 sn(e){let t=document.createElement(`input`);return t.type=`hidden`,t.setAttribute(an,``),e.appendChild(t),t}function cn(e,t){let n=e.getAttribute(`name`)??``,r=e.querySelector(`:scope > input[${an}]`),i=r instanceof HTMLInputElement?r:null;n?(i||=sn(e),on(e,i,n,t)):i?.remove()}function ln(e,t){let n=e.getAttribute(`name`)??``,r=[...e.querySelectorAll(`:scope > input[${an}]`)].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)=>{on(e,r[i]??sn(e),n,t)})}var un=n({hasOwn:()=>dn}),dn=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,fn=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`}),pn=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:[]},"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(fn).join(`, `)},shell:{entries:[`global/parts/shell.ts`],tags:[],markers:`[data-app-shell]`},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:`formatters.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 mn=`ui-elements/`;function hn(e){let t=pn[e];if(t===void 0)throw Error(`[webority-ui] No on-demand element chunk is named ${e}.`);return t}function gn(e){let t=hn(e);if(!t.selfContained)return`${mn+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 _n=n({CHUNK_DIR:()=>mn,CHUNK_RETRY_MS:()=>bn,ELEMENTS_DEFINED_EVENT:()=>vn,ELEMENTS_LOAD_ERROR_EVENT:()=>yn,assetUrl:()=>Rn,chunkReadyCheckKeys:()=>zn,loadChunk:()=>L,registerChunkReadyCheck:()=>I,startElementLoader:()=>Fn,stopElementLoader:()=>In,whenElementsReady:()=>Ln}),vn=`wui-elements:defined`,yn=`wui-elements:load-error`,bn=1e3,xn={"ui-elements/carousel.global.js":`0c78a5dfa033`,"ui-elements/data-table.global.js":`dab97c46d79d`,"ui-elements/dock.global.js":`5aaa06976c59`,"ui-elements/hover-card.global.js":`898c28e48ca4`,"ui-elements/navigation-menu.global.js":`e7801cb0fac9`,"ui-elements/notification-center.global.js":`6ea16cdc424a`,"ui-elements/onboarding-checklist.global.js":`2f3f85953a3a`,"ui-elements/otp.global.js":`02389e4e0b9d`,"ui-elements/overflow.global.js":`dff5b8a428db`,"ui-elements/rating.global.js":`3057e9a1c2d7`,"ui-elements/record-pager.global.js":`f098e6480a10`,"ui-elements/relative-time.global.js":`9f48dd1f3c60`,"ui-elements/shortcuts.global.js":`9dd48779e8a2`,"ui-elements/show-more.global.js":`2e540719fe11`,"ui-elements/calendar-views.global.js":`a52bce5f1b85`,"ui-elements/truncate.global.js":`f8ac5c63aee4`,"ui-elements/whats-new.global.js":`67d80a0f1a41`,"ui-elements/offline-banner.global.js":`96e6450aed1e`,"ui-elements/code-block.global.js":`a608663f83de`,"ui-elements/command-palette.global.js":`17cf15ff3ecb`,"ui-elements/comment-thread.global.js":`6fe5a1afc98b`,"ui-elements/consent-banner.global.js":`e447935ae0d6`,"ui-elements/context-menu.global.js":`059269172da4`,"ui-elements/date-range.global.js":`f1f4b6cfa820`,"ui-elements/date-time.global.js":`b1c42663f714`,"ui-elements/datepicker.global.js":`052acf4f7c81`,"ui-elements/mini-calendar.global.js":`536bf7fdf0de`,"ui-elements/drawer.global.js":`43a69010fcc3`,"ui-elements/dropdown.global.js":`b464f7d4f7fb`,"ui-elements/entry-grid.global.js":`8b3e77e86426`,"ui-elements/gantt.global.js":`0364c4fc80d8`,"ui-elements/image-crop.global.js":`dedd0cef4274`,"ui-elements/inline-edit.global.js":`4ea8212e7c1d`,"ui-elements/kanban.global.js":`750bb7ac71f7`,"ui-elements/dashboard-grid.global.js":`042596e92021`,"ui-elements/lead-popup.global.js":`8518937c572b`,"ui-elements/lightbox.global.js":`6a907a5abae2`,"ui-elements/org-tree.global.js":`b3771ac0d6fb`,"ui-elements/markdown.global.js":`a94652167014`,"ui-elements/phone.global.js":`f1e20d69bb9e`,"ui-elements/popover.global.js":`b61b95ef61d7`,"ui-elements/saved-views.global.js":`247f14af3426`,"ui-elements/glyphs.global.js":`3882ba93270c`,"ui-elements/select-chips.global.js":`e1a4792bfd2f`,"ui-elements/select-recents.global.js":`c7c4cae9ebcb`,"ui-elements/select-search.global.js":`a5a27ab353c5`,"ui-elements/select-window.global.js":`0f7bbc9807e0`,"ui-elements/table-export.global.js":`002891cbd317`,"ui-elements/server.global.js":`1e8dca95bd95`,"ui-elements/shell.global.js":`1fa369932d08`,"ui-elements/slider.global.js":`e8ed5bccf6fc`,"ui-elements/sortable.global.js":`bd046637240b`,"ui-elements/status-icon.global.js":`7fb91915ddeb`,"ui-elements/timepicker.global.js":`7fd4108f0cc9`,"ui-elements/tour.global.js":`b48d2f6338df`,"ui-elements/tree.global.js":`4640a9259974`,"ui-elements/tree-picker.global.js":`79bcfbb79473`,"ui-elements/wizard.global.js":`2119ffe568e0`,"ui-chart.global.js":`3e60b2bdf273`,"ui-calendar.global.js":`e4de59e25e99`,"ui-rich-text.global.js":`64dcebd2efc3`,"ui-file-viewer.global.js":`97495f2e4ffa`,"ui-phone.global.js":`c646775bc1d1`},Sn=new Map;for(let[e,t]of Object.entries(pn))for(let n of t.tags)Sn.set(n,e);var Cn=[...Sn.keys()].join(`,`),wn=[];for(let[e,t]of Object.entries(pn))t.markers!==void 0&&wn.push([e,t.markers]);var Tn=[...new Set(wn.flatMap(([,e])=>[...e.matchAll(/\[([a-z-]+)\]/g)]).flatMap(e=>e[1]===void 0?[]:[e[1]]))],En=null,Dn=``,On=!1,kn=null,An=new Map,jn=new Map,Mn=`The file ran but did not hand over its modules; see the error above.`,Nn=`The file has no ready check, so the loader cannot tell whether it ran.`;function Pn(){let e=document.currentScript;return e instanceof HTMLScriptElement?e:null}function Fn(e=Pn()){On||(On=!0,En=e?.src?e.src:null,Dn=e?.nonce||``,Un(document),kn=new MutationObserver(e=>{for(let t of e)if(t.type===`attributes`)t.target instanceof Element&&Un(t.target);else for(let e of t.addedNodes)e instanceof Element&&Un(e)}),kn.observe(document.documentElement,{childList:!0,subtree:!0,...Tn.length>0?{attributes:!0,attributeFilter:Tn}:{}}))}function In(){kn?.disconnect(),kn=null,On=!1,En=null,Dn=``,An.clear()}function Ln(e=document){return Promise.all([...Hn(e)].map(e=>L(e))).then(()=>void 0)}function Rn(e){if(En===null)throw Error(`The on-demand element files have no address to load from.`);let t=new URL(e,En);return t.search=dn(xn,e)?`?v=${xn[e]}`:``,t.href}function I(e,t){hn(e),jn.set(e,t)}function zn(){return[...jn.keys()]}function L(e){let t=An.get(e)?.promise??null;if(t!==null)return t;let n=hn(e),{tags:r}=n,i=gn(e),a=()=>Promise.all(r.map(e=>customElements.whenDefined(e))),o={status:`loading`,promise:null},s=new Promise((t,s)=>{let c=``,l=()=>{kn&&Object.keys(pn).every(e=>An.get(e)?.status===`loaded`||An.get(e)?.status===`failed`)&&kn.disconnect()},u=()=>{o.status=`loaded`,l(),document.dispatchEvent(new CustomEvent(vn,{detail:{chunk:e,tags:r}})),t()},d=t=>{o.status=`failed`,l(),Qt(`[webority-ui] Could not load ${c} for ${r.length?r.join(`, `):e}.${t?` ${t.message}`:``}`),document.dispatchEvent(new CustomEvent(yn,{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,Dn&&(o.nonce=Dn),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&&!jn.has(e)){d(Error(Nn));return}let t=jn.get(e);t!==void 0&&!t()?d(Error(Mn)):a().then(u)}),o.addEventListener(`error`,()=>{o.remove(),i?d():setTimeout(()=>f(t,!0),bn)}),document.head.append(o)},p=[...document.scripts].find(e=>new URL(e.src,location.href).pathname.endsWith(`/${i}`));if(p!==void 0){let t=jn.get(e);if(r.length>0||t===void 0&&n.selfContained){a().then(u);return}if(t===void 0){d(Error(Nn));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(Mn)))};p.addEventListener(`load`,o),window.addEventListener(`load`,o),p.addEventListener(`error`,()=>{i||(i=!0,d())})}else{try{c=Rn(i)}catch(e){d(e instanceof Error?e:void 0);return}f(c,!1)}});return o.promise=s,An.set(e,o),s}function Bn(e){return Sn.has(e.localName)&&!customElements.get(e.localName)}function Vn(e,t){let n=Sn.get(t.localName);n!==void 0&&Bn(t)&&e.add(n)}function Hn(e){let t=new Set;e instanceof Element&&Vn(t,e);for(let n of e.querySelectorAll(Cn))Vn(t,n);for(let[n,r]of wn)An.get(n)?.status!==`loaded`&&(e instanceof Element&&e.matches(r)||e.querySelector(r)!==null)&&t.add(n);return t}function Un(e){for(let t of Hn(e))Promise.allSettled([L(t)])}var Wn={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`}]]},Gn=n({svgNodes:()=>qn,svgRoot:()=>Jn}),Kn=`http://www.w3.org/2000/svg`;function qn(e){return e.map(Yn)}function Jn(e,t){let n=document.createElementNS(Kn,`svg`);return Xn(n,e),n.append(...qn(t)),n}function Yn(e){let[t,n,r]=e,i=document.createElementNS(Kn,t);return Xn(i,n),typeof r==`string`?i.append(document.createTextNode(r)):r&&i.append(...qn(r)),i}function Xn(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 Zn=n({GLYPH_CHUNK:()=>Qn,GLYPH_PENDING_ATTRIBUTE:()=>$n,glyphNode:()=>R,lazyGlyphsRegistered:()=>ur,registerGlyphs:()=>dr}),Qn=`glyphs`,$n=`data-wui-glyph-pending`,er=`svg[${$n}]`,tr=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,nr={...Wn},rr=new Map,ir=!1,ar=!1,or=null;function sr(e){return dn(nr,e)?nr[e]:void 0}function cr(e,t,n,r){return{class:n?`wui-icon ${n}`:`wui-icon`,"data-icon":e,[$n]:r?!0:void 0,width:t,height:t,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`}}function R(e,{size:t=16,className:n=``}={}){let r=sr(e);if(r!==void 0){let i=`${e}|${t}|${n}`,a=rr.get(i);return a===void 0&&(a=Jn(cr(e,t,n,!1),r),rr.set(i,a)),Be(a.cloneNode(!0),SVGSVGElement,`glyphNode: ${e} did not clone to an svg`)}return ir||!tr.test(e)?null:(Promise.allSettled([L(Qn)]),Jn(cr(e,t,n,!0),[]))}function lr(e){let t=e instanceof Element&&e.matches(er)?[e]:[];for(let n of[...t,...e.querySelectorAll(er)]){let e=sr(n.getAttribute(`data-icon`)??``);e===void 0?n.remove():(n.removeAttribute($n),n.replaceChildren(...qn(e)))}}function ur(){return ar}function dr(e){Object.assign(nr,e),ir=!0,ar=!0,lr(document),or===null&&(or=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof Element&&lr(e)}),or.observe(document.documentElement,{childList:!0,subtree:!0}))}var fr=n({isImeComposing:()=>pr,isImeSafeEnter:()=>mr});function pr(e){return e.isComposing||e.keyCode===229}function mr(e){return e.key===`Enter`&&!pr(e)}var hr=n({createListboxKeyNav:()=>_r,moveActiveRow:()=>vr}),gr=e=>e.target instanceof Element?e.target.tagName:void 0;function _r(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=gr(e)===`INPUT`||gr(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(mr(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&&gr(e)!==`INPUT`&&gr(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 vr(e,t){let n=e.querySelector(`.is-active`);n!==t&&(n?.classList.remove(`is-active`),t?.classList.add(`is-active`))}var yr=n({TRUSTED_LABEL:()=>br,optionLabelNodes:()=>Er,optionText:()=>Dr,stripTags:()=>Cr,withTrustedLabel:()=>xr}),br=Symbol(`wui.trustedLabel`),xr=(e,t)=>{let n=document.createDocumentFragment();return n.append(t.cloneNode(!0)),{...e,[br]:n}},Sr=e=>`wui-flag wui-flag-${e}`,Cr=e=>String(e??``).replace(/<[^>]*>/g,``),wr=e=>{if(!e)return null;let t=String(e).toLowerCase().replace(/[^a-z0-9-]/g,``);return t?R(t):null},Tr=e=>{let t=String(e??``).toLowerCase();return/^[a-z]{2}$/.test(t)?j(`span`,{class:Sr(t),"aria-hidden":`true`}):null};function Er(e){if(e==null)return[];let t=Tr(e.flag),n=wr(e.icon),r=e[br],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 Dr=e=>{if(e==null)return``;let t=e[br];return t?t.textContent??``:Cr(e.label)},Or=n({SELECT_TEXT:()=>kr}),kr={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…`},Ar=n({clearOptions:()=>Rr,drawn:()=>Nr,filterOptions:()=>Mr,nodesSignature:()=>Fr,optionRow:()=>Kr,posAttrMap:()=>Pr,refreshWindow:()=>Hr,registerWindowImpl:()=>Lr,renderOptions:()=>zr,revealRow:()=>Ur,rowId:()=>Br,rowIndexByPrefix:()=>Gr,rowIndexOfValue:()=>Wr,windowImplRegistered:()=>Ir}),jr=()=>M(`select`,kr);function Mr(e,t){let n=String(t??``).trim().toLowerCase();return n?e.filter(e=>[Dr(e),e.description,e.meta].some(e=>String(e??``).toLowerCase().includes(n))):e}var Nr=new WeakMap,Pr=e=>e?{"data-index":String(e.index),"aria-setsize":String(e.size),"aria-posinset":String(e.index+1)}:{},Fr=e=>e.map(e=>e instanceof Element?e.outerHTML:e.textContent??``).join(``),z;function Ir(){return z!==void 0}function Lr(e){z=e}function Rr(e){z?.clear(e),Nr.delete(e),e.replaceChildren()}function zr(e,t,n={}){let{selected:r=[],query:i=``,status:a=`idle`,emptyText:o=jr().emptyText,searchingText:s=jr().searchingText,loadingMoreText:c=jr().loadingMoreText,hintText:l=jr().hintText,actionRow:u=[],recents:d=null}=n,f=new Set(r.map(String)),p=Mr(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=z,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:Br(m,t),class:`wui-select-option wui-select-add`,"data-value":String(e.value??``),"data-custom":`true`,"aria-selected":`false`,...Pr(S(t))},e.label)},w=e=>{let t=C++;return Kr(e,Br(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:Fr(n),postSig:Fr(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=Fr(re);return Nr.get(e)===ie||(Nr.set(e,ie),e.replaceChildren(...re)),{rows:C,windowed:!1,long:y}}var Br=(e,t)=>`${e}-opt-${t}`,Vr=e=>[...e.querySelectorAll(`.wui-select-option`)];function Hr(e){return z?z.refresh(e):!1}function Ur(e,t){return z?z.reveal(e,t):Vr(e)[t]??null}function Wr(e,t){if(z)return z.indexOfValue(e,t);let n=new Set(t.map(String));return Vr(e).findIndex(e=>n.has(e.dataset.value??``))}function Gr(e,t){return z?z.indexByPrefix(e,t):Vr(e).findIndex(e=>(e.textContent??``).trim().toLowerCase().startsWith(t))}function Kr(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,...Pr(r)},o=j(`span`,{class:`wui-select-check`,"aria-hidden":`true`},R(`check`));if(!e.description&&!e.meta)return j(`button`,{type:`button`,class:`wui-select-option${n?` selected`:``}`,...a},Yt(e),j(`span`,{class:`wui-select-opt-name`},...Er(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},Yt(e),j(`span`,{class:`wui-select-option-text`},j(`span`,{class:`wui-opt-label`},...Er(e)),s),c,o)}var qr=Object.freeze([`single`,`multiple`,`search`,`tag`,`country`]),B=e=>e===`multiple`||e===`tag`,Jr=n({registerSelectPart:()=>Xr,selectPart:()=>Zr}),Yr=new Map;function Xr(e,t){Yr.set(e,t)}function Zr(e){return Yr.get(e)}var Qr={chips:`select-chips`,search:`select-search`,country:`phone`,recents:`select-recents`};function $r(e){let t=dn(Qr,e)?Qr[e]:void 0;if(!t)return Promise.reject(Error(`Unknown <wui-select> part: ${e}.`));let n=Zr(e);return n?Promise.resolve(n):L(t).then(()=>A(Zr(e),`The ${e} part of <wui-select> did not register.`))}var ei=n({searchesRemotely:()=>ti}),ti=e=>typeof e.loadOptions==`function`||!!e.getAttribute(`source`)||e.hasAttribute(`remote`),ni=()=>L(`select-window`),ri={requiredFieldMessage:`Please fill in this field.`},ii={clearLabel:`Clear search`,placeholder:`Search…`,searchLabel:`Search`},ai=n({WuiSelect:()=>li}),V=()=>M(`select`,kr),oi=()=>M(`search`,ii),si=()=>M(`field`,ri),ci=160,li=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(),P(this,`_internals`,void 0),P(this,`_value`,void 0),P(this,`_optionsProp`,void 0),P(this,`_partOptions`,void 0),P(this,`_known`,void 0),P(this,`_loadOptionsFn`,void 0),P(this,`_validateFn`,void 0),P(this,`_declared`,void 0),P(this,`_query`,void 0),P(this,`_ownsFilter`,void 0),P(this,`_active`,void 0),P(this,`_rows`,void 0),P(this,`_windowed`,void 0),P(this,`_windowLoad`,void 0),P(this,`_windowFailed`,void 0),P(this,`_scrollFrame`,void 0),P(this,`_endFrame`,void 0),P(this,`_status`,void 0),P(this,`_error`,void 0),P(this,`_nav`,void 0),P(this,`_parts`,void 0),P(this,`_partSig`,void 0),P(this,`_partsMounted`,void 0),P(this,`_partToken`,void 0),P(this,`_rendered`,void 0),P(this,`_searchShown`,void 0),P(this,`_defaultValue`,void 0),P(this,`_warnedMode`,void 0),P(this,`_warnedDensity`,void 0),P(this,`_hoverTimer`,void 0),P(this,`_hoverOpened`,void 0),P(this,`_onHoverOver`,void 0),P(this,`_onHoverOut`,void 0),P(this,`_panelShown`,void 0),P(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)},pi)))},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()},mi)))}}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=bi(n,B(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=bi(this._value,B(this.mode)),this._partOptions=null,this._known.clear(),this._ensureParts()),(e===`source`||e===`remote`||e===`recents-key`)&&this._ensureParts(),vi.has(e)?this._rendered&&(this._drawValue(),this.renderList()):_i.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`:di(e)?e:(e!==this._warnedMode&&(this._warnedMode=e,Zt(`<wui-select> mode "${e}" is not one of ${qr.join(`, `)}; it is treated as "single".`)),`single`)}_checkDensity(){let e=this.getAttribute(`density`);e===null||fi.includes(e)||e===this._warnedDensity||(this._warnedDensity=e,Zt(`<wui-select> density "${e}" is not one of ${fi.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=bi(e,B(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(){F(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=Mr(this._listOptions(),t).length+n.length+(r?.options.length??0),this._windowed=!1,Rr(e.list),this._anchorMenu();return}let i=zr(e.list,this._listOptions(),{selected:this._selectedValues(),query:t,status:this._status,emptyText:this.getAttribute(`empty-text`)||V().emptyText,searchingText:this.getAttribute(`searching-text`)||V().searchingText,loadingMoreText:V().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-ci))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=B(t),r=t===`tag`,i=n&&(r||this.hasAttribute(`allow-custom`));this._value=bi(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=bi(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:`input 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:`input wui-select-control`,...v,...y,disabled:u||void 0}),x=[s?R(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":V().clearSelectionLabel,hidden:!0},R(`x`)):null,R(`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`?V().countrySearchPlaceholder:oi().placeholder),te=j(`div`,{class:`wui-select-menu wui-select-menu-fixed`,popover:`auto`},ee?j(`div`,{class:`wui-select-search`},R(`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":oi().clearLabel,hidden:!0},R(`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(),nn(this,this.querySelector(`.wui-select-control`)),this._syncUnderline(),this._mountParts(e)}_accessibleName(){return this.getAttribute(`aria-label`)||this.getAttribute(`placeholder`)||V().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`)??Ei(e).trim(),label:t.textContent??``,selected:e.hasAttribute(`selected`)};for(let[t,r]of yi){let i=e.getAttribute(t);i&&(n[r]=i)}return e.hasAttribute(`disabled`)&&(n.disabled=!0),xr(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`)||gi()[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(){B(this.mode)?ln(this,this._selectedValues()):cn(this,this._value)}_drawValue(){let e=this._refs();if(!e.value)return;let t=B(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?Er(n):r?[r]:[])}_syncTitle(e){let t=this.querySelector(`.wui-select-control`);if(!t)return;let n=e&&!this.hasAttribute(`title`)?Dr(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=!B(this.mode)&&this._hasValue()?Yt({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},si().requiredFieldMessage,t instanceof HTMLElement?t:void 0)}else e.setValidity({})}}_syncReset(){let e=H(this,`.wui-select-reset`,HTMLElement);e&&(e.hidden=!(this.hasAttribute(`clearable`)&&this._hasValue()&&!F(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=H(this,`.wui-select-error`,HTMLElement);e&&(e.textContent=this._error,e.hidden=!this._error),this._syncInvalid()}_refs(){return{control:H(this,`.wui-select-control`,HTMLElement),value:H(this,`.wui-select-value`,HTMLElement),menu:H(this,`.wui-select-menu`,HTMLElement),list:H(this,`.wui-select-options`,HTMLElement),search:H(this,`.wui-select-search input`,HTMLInputElement),input:H(this,`.wui-select-draft`,HTMLInputElement)}}_menuOpen(){let e=H(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`)||F(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>hi}_visible(){let e=this._refs();return e.list?Ti(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?Ur(n.list,e):null)),vr(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&&Hr(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=H(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?Wr(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=H(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:Ei(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);B(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`&&ti(this)}_onKeyDown(e){if(!F(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`||mr(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(H(this,`.wui-select`,HTMLElement),`The select wrapper is missing.`),i=H(this,`.wui-select-search .wui-select-clear`,HTMLElement),a=H(this,`.wui-select-reset`,HTMLElement);this._nav=_r({getVisibleOptions:()=>this._visible(),getActive:()=>this._active,setActive:e=>this._setActive(e),getCount:()=>this._rowCount(),getOptionAt:e=>this._rowEl(e),findByPrefix:e=>this._windowed?Gr(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()&&!F(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(F(this))return;this._refs().input?.focus(),!this._menuOpen()&&this._draftOpens()&&this._open({focus:!1});return}if(e.target instanceof HTMLInputElement){!this._menuOpen()&&!F(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():F(this)||this._open({focus:!0})}),a?.addEventListener(`click`,e=>{e.stopPropagation(),this.commit(B(this.mode)?[]:``),this._close(),t.focus()}),n.addEventListener(`click`,n=>{let r=wi(n).closest(`.wui-select-option`);if(r instanceof HTMLElement&&(this._pick(r),B(this.mode))){let n=this.querySelector(`.wui-select-draft`);(e.search??(n instanceof HTMLElement?n:t)).focus()}}),n.addEventListener(`mousedown`,e=>{B(this.mode)&&e.target instanceof Element&&e.target.closest(`.wui-select-option`)&&e.preventDefault()}),n.addEventListener(`mousemove`,e=>{let t=wi(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=H(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=Si(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=>Di(this,e))).then(e=>{n===this._partToken&&(this._parts=e.filter(e=>e!==null),this._mountParts())})}_loadWindow(){this._windowLoad===null&&(this._windowLoad=ni().then(()=>this.renderList(),()=>{this._windowFailed=!0,document.dispatchEvent(new CustomEvent(yn,{bubbles:!0,composed:!0,detail:{chunk:`select-window`}})),this.setError(V().partLoadMessage)}))}_mountParts(e={draft:``,query:``}){if(!this._parts||this._partsMounted||!this._rendered||!this.isConnected)return;this._partsMounted=!0;let t=ui(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??``}}};P(li,`formAssociated`,!0);var ui=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}},di=e=>qr.includes(e),fi=[`comfortable`,`compact`],pi=150,mi=250,hi=10,gi=()=>{let e=V();return{single:e.placeholder,search:e.placeholder,multiple:e.placeholder,tag:e.tagPlaceholder,country:e.countryPlaceholder}},_i=new Set([`countries`,`suggested`,`suggested-label`,`all-countries-label`,`max-tags`,`pattern`,`collapse-chips`,`source`,`remote`,`min-chars`]),vi=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`]),yi=[[`icon`,`icon`],[`description`,`description`],[`meta`,`meta`],[`group`,`group`],[`avatar`,`avatar`],[`initials`,`initials`],[`disabled-hint`,`disabledHint`]],bi=(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),xi=(e,t)=>t===`multiple`?ti(e)?[`chips`,`search`]:[`chips`]:t===`search`?[`search`]:t===`country`?[`country`]:t===`tag`?ti(e)?[`chips`,`search`]:[`chips`]:[],Si=(e,t)=>e.hasAttribute(`recents-key`)?[`recents`,...xi(e,t)]:xi(e,t),Ci=e=>typeof e==`object`&&!!e&&`default`in e&&typeof e.default==`function`,wi=e=>{if(e.target instanceof Element)return e.target;throw Error(`The event target is not an element.`)},H=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},Ti=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement),Ei=e=>{let t=e.textContent;if(t===null)throw Error(`The element has no text.`);return t},Di=(e,t)=>$r(t).then(e=>{if(!Ci(e))throw Error(`The part ${t} has no default export.`);return e.default()}).catch(()=>(document.dispatchEvent(new CustomEvent(yn,{bubbles:!0,composed:!0,detail:{chunk:t}})),e.setError(V().partLoadMessage),null)),Oi=n({TABLE_EXPORT_CHUNK:()=>ki,loadTableExport:()=>ji,registerTableExport:()=>Mi,tableExportRegistered:()=>Ni}),ki=`table-export`,Ai=null;function ji(){return Ai===null?L(ki).then(()=>{if(Ai===null)throw Error(`[webority-ui] The table-export chunk ran without handing over its writers.`);return Ai}):Promise.resolve(Ai)}function Mi(e){Ai=e}function Ni(){return Ai!==null}function Pi(){I(`glyphs`,ur),I(`select-chips`,()=>Zr(`chips`)!==void 0),I(`select-recents`,()=>Zr(`recents`)!==void 0),I(`select-search`,()=>Zr(`search`)!==void 0),I(`select-window`,Ir),I(`table-export`,Ni)}var Fi={closeLabel:`Close`,error:`Error`,failedText:`That did not work. Try again.`,loading:`Loading...`,moreText:`more`,success:`Done`},Ii=n({TOAST_ACTION_METHODS:()=>Li,parseToastAction:()=>Bi}),Li=Object.freeze([`POST`,`PUT`,`PATCH`,`DELETE`]),Ri=e=>(Zt(`[@webority/ui-elements] Wui-Toast-Action: ${e}; the toast shows no action.`),null),zi=e=>typeof e==`object`&&!!e;function Bi(e){if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch{return Ri(`the value is not JSON`)}let n=zi(t)?t:{},r=n.label,i=n.url,a=String(n.method??`POST`).toUpperCase();return typeof r!=`string`||r===``||typeof i!=`string`||i===``?Ri(`label and url must be non-empty strings`):Li.includes(a)?{label:r,url:i,method:a}:Ri(`method must be one of ${Li.join(`, `)}`)}var Vi=n({FLASH_STORAGE_KEY:()=>Wi,FLASH_VARIANTS:()=>Hi,isToastVariant:()=>Ui,storeFlash:()=>Gi,takeStoredFlash:()=>qi}),Hi=Object.freeze([`success`,`info`,`warning`,`danger`]),Ui=e=>Hi.some(t=>t===e),Wi=`wui.flash`;function Gi(e,t,n){e&&window.sessionStorage.setItem(Wi,JSON.stringify({message:e,variant:t,action:n??null}))}var Ki=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`||!Li.includes(r))throw TypeError(`stored flash action is not an action.`);return{label:t,url:n,method:r}};function qi(){let e=window.sessionStorage.getItem(Wi);if(e===null)return null;window.sessionStorage.removeItem(Wi);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`||!Ui(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:Ki(i)}}var Ji=n({parseServerHtml:()=>Yi});function Yi(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var Xi=n({wuiHost:()=>Zi});function Zi(){return A(window.WUI,`window.WUI is not defined: the Razor behaviour script did not load on this page.`)}var Qi=n({CSRF_META_NAME:()=>$i,DEFAULT_CSRF_HEADER:()=>ea,DEFAULT_TIMEOUT_MS:()=>ua,HTTP_KINDS:()=>ia,WUI_HEADERS:()=>U,WUI_REQUEST_HEADER:()=>ra,classifyStatus:()=>ca,configureCsrf:()=>na,createRequestQueue:()=>ya,isSameOrigin:()=>sa,readCsrf:()=>oa,settleResponse:()=>_a,timeoutFromAttribute:()=>da,wuiFetch:()=>va}),$i=`wui-csrf`,ea=`RequestVerificationToken`,ta={metaName:$i,header:ea};function na({metaName:e=$i,header:t=ea}={}){ta={metaName:e,header:t}}var ra=`Wui-Request`,U=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`}),ia=Object.freeze([`ok`,`validation`,`forbidden`,`networkCheck`,`client`,`server`,`network`,`timeout`,`aborted`,`stale`,`session`]),aa=new Set([`GET`,`HEAD`]);function oa(e=document){let t=[...e.querySelectorAll(`meta`)].find(e=>e.getAttribute(`name`)===ta.metaName),n=t?.getAttribute(`content`);return!t||!n?null:{header:t.getAttribute(`data-header`)||ta.header,token:n}}var sa=e=>{try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}};function ca(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 la=e=>typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`,ua=3e4;function da(e){let t=e?.trim()??``;return/^\d+$/.test(t)?Number(t):void 0}var fa=`The ${U.refresh} response header must be {tables, regions, reloadPage}.`,pa=e=>e===`all`||Array.isArray(e)&&e.every(e=>typeof e==`string`),ma=e=>{if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch(e){throw TypeError(`The ${U.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(fa);let{tables:n,regions:r,reloadPage:i}=t;if(!pa(n)||!pa(r)||typeof i!=`boolean`)throw TypeError(fa);return{tables:n,regions:r,reloadPage:i}},ha=(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})}},ga=e=>{if(e==null)return null;try{return decodeURIComponent(e)}catch{return e}};function _a(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:ga(r(U.message)),redirect:r(U.redirect),result:r(U.result),keepOpen:r(U.keepOpen)===`1`,toastVariant:r(U.toastVariant),toastAction:Bi(r(U.toastAction)),fragment:r(U.fragment)===`1`,data:ha(t,n),next:r(U.next),refresh:ma(ga(r(U.refresh)))}}async function va(e,t={}){let n=(t.method||`GET`).toUpperCase(),r=t.navigate||(e=>window.location.assign(e)),i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[ra]:`1`,...t.headers};if(!aa.has(n)&&sa(e)){let e=oa();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`:la(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 _a(d(e))}let s=ca(o.status,o.headers);if(s===`ok`&&o.redirected&&o.headers.get(U.fragment)!==`1`&&(s=`session`),s===`session`)return r(o.status===401?o.headers.get(`Location`)||window.location.href:o.url),_a(s,o);let c=``;if(s===`ok`||s===`validation`)try{c=await o.text()}catch(e){return _a(d(e),o)}return _a(s,o,c)}finally{clearTimeout(u),s?.removeEventListener(`abort`,o)}}function ya(){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 va(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 ba=n({REFRESH_ATTR:()=>Ca,REGION_KEY_ATTR:()=>Sa,REGION_SRC_ATTR:()=>xa,refreshRegions:()=>Ea}),xa=`data-wui-region-src`,Sa=`data-wui-region-key`,Ca=`data-wui-refresh`,wa=new WeakSet,Ta=new Map;async function Ea(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(`[${xa}]`)){if(!(e instanceof HTMLElement)||e.getAttribute(`data-wui-refresh`)===`none`)continue;let r=e.getAttribute(`data-wui-region-src`)??``,i=e.getAttribute(Sa);if(!i){wa.has(e)||(wa.add(e),Qt(Error(`A [${xa}] element needs ${Sa}: ${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])=>Da(e,t)))}async function Da(e,t){let n=(Ta.get(e)??0)+1;Ta.set(e,n);let r=await va(e);if(Ta.get(e)!==n||r.kind===`aborted`||r.kind===`stale`||r.kind===`session`)return;if(!r.ok){Zt(`A region refresh failed; the region keeps its content.`,e,r.kind);return}let i=new Map;for(let e of Yi(r.html).querySelectorAll(`[${Sa}]`)){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(Sa);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?Oa(n,r):Zt(`A region refresh reply has no element for the region's key; the region keeps its content.`,e,t)}}function Oa(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);Zi().refresh(e)}var ka=n({getServerTable:()=>Na,isServerTableWired:()=>Ma,registerServerTable:()=>ja}),Aa=new WeakMap;function ja(e,t){Aa.set(e,t)}function Ma(e){return Aa.has(e)}function Na(e){let t=e instanceof Element?e.closest(`[data-wui-server]`):null;return t instanceof HTMLElement&&Aa.get(t)||null}var Pa=n({applyPlan:()=>Xa,applyRefresh:()=>Qa,holdInDialog:()=>Ga,isRefreshOff:()=>Ia,mergePlans:()=>Ba,planOf:()=>La,planReloads:()=>Va,refreshAfter:()=>Za,refreshesNothing:()=>Ka,reloadPage:()=>Ua,reloadsPage:()=>Ha,setDialogHold:()=>Wa}),Fa=null;function Ia(e){return e?.getAttribute(`data-wui-refresh`)===`none`}function La(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 Ra={never:0,auto:1,page:2},za=(e,t)=>e===`all`||t===`all`?`all`:[...new Set([...e,...t])];function Ba(e,t){return e===null?t:{tables:za(e.tables,t.tables),regions:za(e.regions,t.regions),reload:Ra[e.reload]>=Ra[t.reload]?e.reload:t.reload,message:t.message,variant:t.variant,action:t.action}}function Va(e){return e.reload===`page`||e.reload===`auto`&&document.querySelector(`[data-wui-server]`)===null}function Ha(e){let t=La(e);return t!==null&&Va(t)}function Ua(){let e=new URL(window.location.href);e.hash=``,window.location.assign(e.href)}function Wa(e){Fa=e}function Ga(e,t){return Fa?Fa(t,e):!1}function Ka(e){return e!==null&&e.tables!==`all`&&e.tables.length===0&&e.regions!==`all`&&e.regions.length===0&&e.reload===`never`}var qa=e=>[e.querySelector(`.table-wrap`)?.id??``,e.id].filter(e=>e!==``),Ja=(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(qa));for(let e of t)i.has(e)||Zt(`A refresh names the table "${e}", which is not on this page.`);r=n.filter(e=>qa(e).some(e=>t.includes(e)))}return r.filter(e=>(!t||e!==t&&!e.contains(t))&&!Ia(e))},Ya=async e=>{await Na(e)?.reload({quiet:!0})};async function Xa(e,t={}){if(t.origin&&Ga(e,t.origin))return`held`;if(Va(e)&&(e.reload===`page`||t.allowReload!==!1))return Gi(e.message,e.variant,e.action),Ua(),`reloaded`;let n=Ja(e,t.skip).map(e=>Ya(e).catch(Qt));return(e.regions===`all`||e.regions.length>0)&&n.push(Ea(e.regions).catch(Qt)),await Promise.all(n),`refreshed`}async function Za(e,t={}){let n=La(e);return n===null?`none`:Xa(n,t)}async function Qa(){await Xa({tables:`all`,regions:`all`,reload:`never`,message:null,variant:`success`,action:null},{allowReload:!1})}var $a=n({TOAST_ACTION_MS:()=>eo,runToastAction:()=>ao,showResultToast:()=>ro,showToast:()=>io}),eo=8e3,to=()=>M(`toast`,Fi);function no(e){if(!Ui(e))throw RangeError(`Unknown toast variant "${e}".`);return e}function ro(e,t=`success`){e?.message&&io(e.message,t,e.toastAction)}function io(e,t,n=null){n?Zi().toast(e,{variant:no(t),duration:eo,action:{label:n.label,onClick:e=>void ao(n,e)}}):Zi().toast(e,{variant:no(t)})}async function ao(e,t=null){let n=await va(e.url,{method:e.method});n.kind!==`session`&&n.kind!==`aborted`&&(n.ok?(Ha(n)||ro(n,n.toastVariant||`success`),await Za(n,{origin:t})):Zi().toast(n.message||to().failedText,{variant:`danger`}))}var oo=n({HTTP_FAILURE_TEXT:()=>so}),so={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.`},co=n({SERVER_CHUNK:()=>lo,SHELL_CHUNK:()=>uo,loadServer:()=>mo,loadShell:()=>_o,loadedServer:()=>ho,loadedShell:()=>vo,registerServer:()=>go,registerShellParts:()=>yo}),lo=`server`,uo=`shell`,fo=null,po=null;I(lo,()=>fo!==null),I(uo,()=>po!==null);function mo(){return fo===null?L(lo).then(()=>{if(fo===null)throw Error(`[webority-ui] The server chunk ran without handing over its modules.`);return fo}):Promise.resolve(fo)}function ho(){return fo}function go(e){fo=e}function _o(){return po===null?L(uo).then(()=>{if(po===null)throw Error(`[webority-ui] The shell chunk ran without handing over its modules.`);return po}):Promise.resolve(po)}function vo(){return po}function yo(e){po=e}var bo=`[data-wui-confirm]:not(form), [data-wui-post], [data-wui-row-action], [data-wui-modal], [data-wui-drawer], [data-wui-pane]`,xo=`form[data-wui-post-form], form[data-wui-confirm]`,So=`[data-wui-confirm]`,Co=`a[href]:is([data-wui-modal], [data-wui-drawer], [data-wui-pane]):not([data-wui-confirm], [data-wui-post])`,wo=new WeakSet,To=new WeakMap;function Eo(e=document){wo.has(e)||(wo.add(e),e.addEventListener(`click`,Do,!0),e.addEventListener(`submit`,Oo,!0))}function Do(e){if(ho()!==null||!(e.target instanceof Element))return;let t=e.target.closest(bo);t instanceof HTMLElement&&((e.ctrlKey||e.metaKey||e.shiftKey||e.button!==0)&&t.matches(Co)||ko(e,t,()=>t.click()))}function Oo(e){if(ho()!==null||!(e.target instanceof HTMLFormElement))return;let t=e.target,n=e.submitter??null;(t.matches(xo)||(n?.matches(So)??!1))&&ko(e,t,()=>Ao(t,n))}function ko(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),To.has(t)||(To.set(t,!0),mo().then(()=>{To.delete(t),t.isConnected&&n()},()=>{To.delete(t),io(M(`httpFailure`,so).networkText,`danger`)}))}function Ao(e,t){let n=t instanceof HTMLButtonElement||t instanceof HTMLInputElement?t.form===e:!1;t!==null&&n?e.requestSubmit(t):e.requestSubmit()}var jo=n({APP_BUTTON_MARKER:()=>Mo,buttonClass:()=>Io}),Mo=`AppButton`,No=new Set([`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Po={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 Fo(e){return dn(Po,e)}function Io(e=`primary`,t=`solid`,n=`md`){if(!No.has(e))throw RangeError(`buttonClass: unknown tone "${e}"`);if(!Fo(t))throw RangeError(`buttonClass: unknown variant "${t}"`);let r=Po[t](e);return n===`md`?`btn ${r}`:`btn ${r} btn-${n}`}var Lo=`INR`,Ro=Object.freeze({INR:`₹`,USD:`$`,EUR:`€`,GBP:`£`,JPY:`¥`}),zo=e=>typeof e==`string`&&/^[A-Z]{3}$/.test(e),Bo=(e=`INR`)=>Ro[e]??`${e} `,Vo={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`},Ho=n({IST_OFFSET_MS:()=>Uo,IST_TIME_ZONE:()=>W,isTimeZone:()=>Ko,nowIn:()=>$o,todayIn:()=>Qo,wallClockOf:()=>Zo,wallToInstant:()=>Yo,zoneOffsetMs:()=>Jo,zoneParts:()=>qo}),W=`Asia/Kolkata`,Uo=198e5,Wo=new Map;function Go(e){let t=Wo.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`}),Wo.set(e,t)),t}function Ko(e){if(typeof e!=`string`||e===``)return!1;try{return Go(e),!0}catch{return!1}}function qo(e,t=W){if(t===`Asia/Kolkata`){let t=new Date(e+Uo);return{year:t.getUTCFullYear(),month:t.getUTCMonth(),day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}let n=Object.fromEntries(Go(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 Jo(e,t=W){if(t===`Asia/Kolkata`)return Uo;let n=qo(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 Yo(e,t=W){let n=e-Jo(e,t);return n=e-Jo(n,t),n}var Xo=e=>e instanceof Date?e.getTime():e;function Zo(e,t=W){return new Date(e+Jo(e,t)).toISOString().slice(0,19)}function Qo(e=W,t=Date.now()){return Zo(Xo(t),e).slice(0,10)}function $o(e=W,t=Date.now()){let n=Xo(t);return new Date(n+Jo(n,e))}var es=n({CURRENCIES:()=>ns,DATE_PATTERNS:()=>as,DURATION_UNITS:()=>is,FORMAT_STYLES:()=>ts,IST_OFFSET_MS:()=>Uo,IST_TIME_ZONE:()=>W,MAX_DECIMALS:()=>20,MONEY_UNITS:()=>rs,compactFormatOf:()=>Bs,emptyValueLabel:()=>G,formatCompact:()=>Ns,formatCurrency:()=>js,formatDate:()=>J,formatDateTime:()=>Vs,formatDayShort:()=>Rs,formatDuration:()=>Is,formatNumber:()=>K,formatPercent:()=>Ps,formatValue:()=>zs,isMoneyUnit:()=>os,istParts:()=>Ls,monthLabel:()=>ps,monthLongLabel:()=>ms,paiseToRupeeText:()=>Ds,timeZoneLabel:()=>Ws,toInstant:()=>q,weekdayLabel:()=>hs}),ts=[`number`,`currency`,`percent`,`compact`,`duration`,`date`],ns=[`INR`,`USD`,`EUR`,`GBP`],rs=[`rupees`,`paise`],is=[`ms`,`s`,`min`,`h`],as=[`day`,`month`,`year`,`datetime`,`time`];function os(e){return rs.some(t=>t===e)}var ss=()=>M(`formatters`,Vo),G=()=>ss().emptyValueLabel,cs=`−`,ls=[`janShortLabel`,`febShortLabel`,`marShortLabel`,`aprShortLabel`,`mayShortLabel`,`junShortLabel`,`julShortLabel`,`augShortLabel`,`sepShortLabel`,`octShortLabel`,`novShortLabel`,`decShortLabel`],us=[`januaryLabel`,`februaryLabel`,`marchLabel`,`aprilLabel`,`mayLabel`,`juneLabel`,`julyLabel`,`augustLabel`,`septemberLabel`,`octoberLabel`,`novemberLabel`,`decemberLabel`],ds={short:[`sunShortLabel`,`monShortLabel`,`tueShortLabel`,`wedShortLabel`,`thuShortLabel`,`friShortLabel`,`satShortLabel`],long:[`sundayLabel`,`mondayLabel`,`tuesdayLabel`,`wednesdayLabel`,`thursdayLabel`,`fridayLabel`,`saturdayLabel`],min:[`sunMinLabel`,`monMinLabel`,`tueMinLabel`,`wedMinLabel`,`thuMinLabel`,`friMinLabel`,`satMinLabel`]},fs=(e,t)=>ss()[A(e[t],`no date name at index ${t}`)],ps=e=>fs(ls,e),ms=e=>fs(us,e);function hs(e,t){return fs(ds[t],e)}var gs=(e,t)=>A(e[t],`no compact unit at index ${t}`),_s=[[1e7,`Cr`],[1e5,`L`],[1e3,`K`]],vs=[[1e9,`B`],[1e6,`M`],[1e3,`K`]],ys=e=>!e||e===`INR`?`en-IN`:`en-US`,bs=(e,t)=>typeof e==`number`&&Number.isInteger(e)&&e>=0&&e<=20?e:t,xs=new Map,Ss=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=xs.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:e}),xs.set(n,r)),r},Cs=new Map,ws=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=Cs.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}),Cs.set(n,r)),r},Ts=e=>typeof e==`number`&&Number.isFinite(e),Es=e=>e<0&&!Object.is(Math.abs(e),0)?cs:``;function Ds(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 Os=(e,t)=>t===`paise`?Number(Ds(e)):e,ks=2,As=(e,t,n)=>{let r=Math.min(t,ks),i=10n**BigInt(ks-r),a=(BigInt(Ds(e).replace(`.`,``))+i/2n)/i,o=10n**BigInt(r),s=ws(0,n).format(a/o);return t===0?s:`${s}.${(a%o).toString().padStart(r,`0`)}${`0`.repeat(t-r)}`};function K(e,{decimals:t}={}){if(!Ts(e))return G();let n=Ss(bs(t,2)).format(Math.abs(e));return n===`0`?`0`:Es(e)+n}function js(e,t){if(!t?.currency)throw TypeError(`[@webority/ui-elements] formatCurrency needs options.currency, an ISO 4217 code such as "INR".`);if(!Ts(e))return G();let{unit:n=`rupees`,decimals:r,currency:i}=t,a=bs(r,0),o=ys(i),s=n===`paise`?As(Math.abs(e),a,o):ws(a,o).format(Math.abs(e));return(Number(s.replace(/,/g,``))===0?``:Es(e))+Bo(i)+s}var Ms=e=>e>0&&e<.1?Math.min(20,1-Math.floor(Math.log10(e))):2;function Ns(e,{currency:t,unit:n=`rupees`}={}){if(!Ts(e))return G();let r=t?Os(e,n):e,i=t?Bo(t):``,a=t?ys(t):`en-IN`,o=a===`en-IN`?_s:vs,s=Math.abs(r),c=o.findIndex(([e])=>s>=e);if(c===-1){let e=Ss(Ms(s),a).format(s);if(e!==`1,000`)return(e===`0`?``:Es(r))+i+e;c=o.length-1}let[l,u]=gs(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]=gs(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f))),`${Es(r)}${i}${Ss(f,a).format(p)} ${u}`}function Ps(e,{decimals:t}={}){return Ts(e)?`${K(e*100,{decimals:bs(t,1)})}%`:G()}var Fs={ms:1,s:1e3,min:6e4,h:36e5};function Is(e,{unit:t=`s`}={}){if(!Ts(e))return G();let n=Fs[t]??1e3,r=Math.abs(e*n),i=Es(e);if(Math.round(r)<1e3)return`${i}${Ss(0).format(r)} ms`;let a=r/1e3;if(a<10)return`${i}${Ss(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}${Ss(0).format(l)}h ${s(c%60)}m`}function q(e,t=W){if(e instanceof Date)return e.getTime();if(Ts(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?Yo(a.getTime(),t):NaN}return Date.parse(e)}function Ls(e,t=W){let{year:n,month:r,day:i,hour:a,minute:o}=qo(e,t);return{year:n,month:r,day:i,hour:a,minute:o}}function J(e,{pattern:t=`day`,timeZone:n=W}={}){let r=q(e,n);if(!Number.isFinite(r))return G();let i=Ls(r,n),a=e=>String(e).padStart(2,`0`),o=`${a(i.day)}-${ps(i.month)}-${i.year}`,s=`${a(i.hour)}:${a(i.minute)}`;switch(t){case`month`:return`${ps(i.month)}-${i.year}`;case`year`:return String(i.year);case`datetime`:return`${o} ${s}`;case`time`:return s;default:return o}}function Rs(e,{timeZone:t=W}={}){let n=q(e,t);if(!Number.isFinite(n))return G();let r=Ls(n,t);return`${String(r.day).padStart(2,`0`)}-${ps(r.month)}`}function zs(e,t){if(e==null||e===``)return G();let n=t?.style;if(n===`date`)return J(e,t);if(typeof e!=`number`)return String(e);switch(n){case`currency`:return js(e,{...t,currency:t?.currency??``});case`percent`:return Ps(e,t);case`compact`:return Ns(e,t);case`duration`:return Is(e,t);default:return K(e,t)}}function Bs(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 Vs(e,{timeZone:t=W}={}){let n=q(e);if(!Number.isFinite(n))return G();let r=Object.fromEntries(Us(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}-${ps(Number(r.month)-1)}-${r.year}, ${r.hour}:${r.minute} ${i.toUpperCase()}`}var Hs=new Map;function Us(e){let t=Hs.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}),Hs.set(e,t)),t}function Ws(e=W){return new Intl.DateTimeFormat(`en-IN`,{timeZone:e,timeZoneName:`short`}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??e}var Gs=n({DISPLAY_FORMAT:()=>Zs,MONTH_DISPLAY_FORMAT:()=>tc,YEAR_DISPLAY_FORMAT:()=>ac,clampMonth:()=>cc,daysIn:()=>sc,firstWeekday:()=>qs,fmt:()=>Qs,fmtMonth:()=>nc,fmtYear:()=>oc,pad:()=>Js,parseIso:()=>Xs,parseIsoMonth:()=>$s,parseIsoYear:()=>rc,toIso:()=>Ys,toIsoMonth:()=>ec,toIsoYear:()=>ic}),Ks=e=>{let t=String(e??``).trim();return/^[0-6]$/.test(t)?Number(t):null},qs=e=>Ks(e.getAttribute(`first-day`))??Ks(getComputedStyle(e).getPropertyValue(`--wui-first-day`))??1,Js=e=>String(e).padStart(2,`0`),Ys=(e,t,n)=>`${e}-${Js(t+1)}-${Js(n)}`,Xs=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>sc(a,o-1)?null:{y:a,m:o-1,d:s}},Zs=`dd-MMM-yyyy`,Qs=(e,t=Zs)=>{let n=Xs(e);if(!n)return``;let r={yyyy:n.y,MMMM:ms(n.m),MMM:ps(n.m),MM:Js(n.m+1),dd:Js(n.d),d:n.d};return(t||`dd-MMM-yyyy`).replace(/yyyy|MMMM|MMM|MM|dd|d/g,e=>String(r[e]))},$s=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}},ec=(e,t)=>`${e}-${Js(t+1)}`,tc=`MMM yyyy`,nc=(e,t=tc)=>{let n=$s(e);if(!n)return``;let r={yyyy:n.y,MMMM:ms(n.m),MMM:ps(n.m),MM:Js(n.m+1)};return(t||`MMM yyyy`).replace(/yyyy|MMMM|MMM|MM/g,e=>String(r[e]))},rc=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}},ic=e=>String(e).padStart(4,`0`),ac=`yyyy`,oc=(e,t=ac)=>{let n=rc(e);return n?(t||`yyyy`).replace(/yyyy/g,String(n.y)):``},sc=(e,t)=>{let n=new Date(0);return n.setFullYear(e,t+1,0),n.getDate()},cc=(e,t)=>{for(;t<0;)t+=12,--e;for(;t>11;)t-=12,e+=1;return{y:e,m:t}},lc=n({COPY_FEEDBACK_MS:()=>uc,copyTextToClipboard:()=>dc}),uc=2e3;async function dc(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 fc=n({DATA_TABLE_TEXT:()=>pc}),pc={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.`},mc=n({COLUMN_MAX_WIDTH:()=>gc,COLUMN_MIN_WIDTH:()=>48,PIN_AT_VAR:()=>Ic,PIN_SIDES:()=>yc,RESIZE_STEP:()=>10,RESIZE_STEP_LARGE:()=>50,ROW_HEIGHTS:()=>xc,ROW_MOVE_LIMIT:()=>200,ROW_MOVE_MS:()=>220,ROW_SAVE_ATTR:()=>Yc,ROW_SAVE_ERROR_CLASS:()=>Xc,ROW_SAVE_STATES:()=>Jc,ROW_STATUS_CLASS:()=>Zc,VIRTUAL_OVERSCAN:()=>8,clampColumnWidth:()=>kc,groupCount:()=>Oc,groupItems:()=>Ac,groupRowsText:()=>wc,identityCell:()=>Qc,measureRows:()=>Gc,notSavedText:()=>Dc,paintSaveStatus:()=>tl,pinAtValue:()=>Lc,pinClasses:()=>zc,pinOffsetVar:()=>Fc,planPins:()=>Rc,playRowMoves:()=>Kc,readColumnWidths:()=>Nc,resizeName:()=>Sc,rowLabel:()=>$c,rowOrderChanged:()=>qc,saveOutcomeText:()=>il,savedManyText:()=>Ec,savedText:()=>Tc,setRowSaveState:()=>nl,settledRows:()=>rl,virtualRange:()=>jc,widthText:()=>Cc,writeColumnWidths:()=>Pc}),hc=48,gc=1200,_c=10,vc=50,yc=[`start`,`end`],bc=8,xc={comfortable:72,cozy:48,compact:40},Y=()=>M(`dataTable`,pc),Sc=e=>e?N(Y().resizeColumnText,{label:e}):Y().resizeColumnLabel,Cc=e=>N(Y().resizeText,{px:e}),wc=e=>et(Y(),`groupRows`,e,{count:K(e,{decimals:0})}),Tc=e=>e?N(Y().savedText,{label:e}):Y().rowSavedText,Ec=e=>N(Y().rowsSavedText,{n:K(e,{decimals:0})}),Dc=(e,t)=>`${e?N(Y().wasNotSavedText,{label:e}):Y().rowWasNotSavedText}${t?` ${t}`:``}`,Oc=e=>K(e,{decimals:0}),kc=e=>Math.min(gc,Math.max(48,Math.round(Number(e)||0)));function Ac(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 jc({scrollTop:e,viewport:t,rowHeight:n,count:r,overscan:i=8}){let a=n>0?n:xc.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 Mc=e=>`wui-widths:${e}`;function Nc(e){if(!e)return{};try{let t=JSON.parse(window.localStorage.getItem(Mc(e))||`{}`),n={};if(t&&typeof t==`object`)for(let[e,r]of Object.entries(t))Number.isFinite(r)&&(n[e]=kc(r));return n}catch{return{}}}function Pc(e,t){if(e)try{Object.keys(t).length?window.localStorage.setItem(Mc(e),JSON.stringify(t)):window.localStorage.removeItem(Mc(e))}catch(e){if(!(e instanceof DOMException))throw e}}var Fc=(e,t)=>`--wui-pin-${e}-${t}`,Ic=`--wui-pin-at`,Lc=(e,t)=>`var(${Fc(e,t)}, 0px)`;function Rc(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 zc=e=>e?`wui-pin-${e.side}${e.edge?` wui-pin-${e.side}-edge`:``}`:``,Bc=200,Vc=220,Hc=`cubic-bezier(0.22, 1, 0.36, 1)`,Uc=()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,Wc=e=>e.getAttribute(`data-row-key`)??e;function Gc(e){let t=[...e];if(t.length>200)return null;let n=new Map;for(let e of t)e.hidden||n.set(Wc(e),e.offsetTop);return n}function Kc(e,t){let n=[...e];if(!t||n.length>200||Uc())return 0;let r=0;for(let e of n){if(e.hidden||typeof e.animate!=`function`)continue;let n=t.get(Wc(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:Hc}),r++)}return r}function qc(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 Jc=[`saving`,`error`,`saved`],Yc=`data-wui-save-state`,Xc=`wui-row-save-error`,Zc=`wui-row-status`,Qc=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 $c(e){let t=Qc(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 el(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 tl(e,t){e.querySelector(`:scope > * > .${Zc}`)?.remove();let n=t===null?null:el(e,t),r=n===null?null:Qc(e);if(t!==null&&n!==null&&r){let i=e.ownerDocument.createElement(`span`);i.className=`${Zc} ${Zc}-${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 nl(e,t,n=``){if(t!==null&&!Jc.includes(t))throw Error(`A row's save state is ${Jc.join(` or `)} (or null to clear it), not "${t}".`);e.querySelector(`:scope > * > .${Xc}`)?.remove(),t===null?e.removeAttribute(Yc):e.setAttribute(Yc,t),t===`saving`?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),tl(e,t);let r=t===`error`&&n?Qc(e):null;if(r){let t=e.ownerDocument.createElement(`span`);t.className=Xc,t.textContent=n,r.append(t)}}function rl(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 il(e){let t=e.filter(e=>e.ok),n=[],[r]=t;t.length===1&&r?n.push(Tc(r.label)):t.length>1&&n.push(Ec(t.length));for(let t of e)t.ok||n.push(Dc(t.label,t.message));return n.join(` `)}var al=n({isDrawn:()=>ol});function ol(e){return typeof e.checkVisibility==`function`?e.checkVisibility():e.closest(`[hidden]`)===null&&getComputedStyle(e).display!==`none`}var sl=n({MENTION_ID_PATTERN:()=>cl,mentionLabel:()=>dl,mentionTextFromValue:()=>ml,mentionValueFromText:()=>hl,mentionedIds:()=>gl,parseMentionValue:()=>pl}),cl=/^[A-Za-z0-9_.:-]{1,64}$/,ll=/@(\\+)\[|@\[([^[\]\n]{1,100})\]\(([A-Za-z0-9_.:-]{1,64})\)/g,ul=/@(\\*)\[/g;function dl(e){return String(e??``).replace(/[[\]\r\n]+/g,` `).replace(/\s+/g,` `).trim().slice(0,100)}var fl=e=>e.replace(ul,(e,t)=>`@\\${t}[`);function pl(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(ll))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 ml(e){let t=``,n=[];for(let r of pl(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 hl(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}`||!cl.test(e.id)||(i+=fl(n.slice(a,e.start)),i+=`@[${e.label}](${e.id})`,a=e.end);return i+fl(n.slice(a))}function gl(e){let t=[];for(let n of pl(e))`id`in n&&!t.includes(n.id)&&t.push(n.id);return t}var _l=n({bindMenuKeys:()=>Sl}),vl=500,yl=10,bl=new Set([`INPUT`,`TEXTAREA`,`SELECT`]);function xl(e){return e instanceof HTMLElement?bl.has(e.tagName)||e.isContentEditable:!1}function Sl(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(ol),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=xl(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)+yl,s-1));return}if(e.key===`PageUp`){u(Math.max((l<0?s:l)-yl,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,vl);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 Cl=n({NOTIFICATION_CENTRE_TEXT:()=>wl}),wl={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`},Tl=n({NOTIFICATION_COUNT_CAP:()=>99,groupNotificationsByDay:()=>Pl,notificationCountText:()=>kl,notificationDayHeading:()=>Nl,notificationTime:()=>Ml,notificationTriggerLabel:()=>Al,notificationUnreadAnnouncement:()=>jl}),El=99,Dl=864e5,Ol=()=>M(`notificationCentre`,wl);function kl(e){return e>99?`99+`:String(e)}function Al(e,t){return t===0?e:`${e}, ${kl(t)} ${Ol().unreadWordLabel}`}function jl(e){return e===0?Ol().noneUnreadText:et(Ol(),`unreadAnnouncementText`,e,{unread:kl(e)})}function Ml(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?``:J(e,{pattern:`time`})}function Nl(e,t=Date.now()){let n=J(e);return n===J(t)?Ol().todayLabel:n===J(q(t)-Dl)?Ol().yesterdayLabel:n}function Pl(e,t=Date.now()){let n=new Map;for(let r of e){if(!Number.isFinite(q(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=J(r.at),i=n.get(e);i||(i={key:e,heading:Nl(r.at,t),items:[]},n.set(e,i)),i.items.push(r)}return[...n.values()]}var Fl={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`},Il=n({RELATIVE_LIMIT_DAYS:()=>7,formatRelativeTime:()=>Ul,relativeTimeTitle:()=>Wl}),Ll=6e4,Rl=60*Ll,zl=24*Rl,Bl=()=>M(`relativeTime`,Fl),Vl={minute:`minutesAgoText`,hour:`hoursAgoText`,day:`daysAgoText`},Hl={minute:`inMinutesText`,hour:`inHoursText`,day:`inDaysText`};function Ul(e,t=Date.now()){let n=q(e);if(!Number.isFinite(n))return G();let r=t-n,i=Math.abs(r);if(i>=7*zl)return J(n);if(i<Ll)return Bl().justNowText;let[a,o]=i<Rl?[Math.floor(i/Ll),`minute`]:i<zl?[Math.floor(i/Rl),`hour`]:[Math.floor(i/zl),`day`];return et(Bl(),(r>0?Vl:Hl)[o],a)}function Wl(e){let t=q(e);return Number.isFinite(t)?`${J(t,{pattern:`datetime`})} IST`:G()}var Gl=n({FALLBACK_ROW_HEIGHT:()=>36,SELECT_WINDOW_OVERSCAN:()=>8,createHeightIndex:()=>ql,scrollTopToReveal:()=>Yl,windowRange:()=>Jl}),Kl=.5;function ql(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)<=Kl||(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)<=Kl?!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 Jl(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 Yl(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 Xl=n({WuiPostError:()=>Zl}),Zl=class extends Error{constructor(e,t){super(e,t.cause===void 0?void 0:{cause:t.cause}),P(this,`code`,void 0),P(this,`status`,void 0),P(this,`html`,void 0),P(this,`body`,void 0),P(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}},Ql=n({forgetShell:()=>tu,registerShell:()=>eu,wiredShell:()=>nu}),$l=new WeakMap;function eu(e,t){$l.set(e,t)}function tu(e){$l.delete(e)}function nu(e){let t=e?.closest(`[data-app-shell]`);return(t&&$l.get(t))??null}var ru=n({wuiUpload:()=>ou}),iu=new Set([204,205,304]),au=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 ou(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`,[ra]:`1`,...n.headers};if(sa(e)){let e=oa();e&&(i[e.header]=e.token)}let a=n.signal,o=n.navigate||(e=>window.location.assign(e));return a?.aborted?_a(`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(_a(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=au(c.getAllResponseHeaders()),r=ca(t,n),i=c.responseURL!==``&&c.responseURL!==new URL(e,window.location.href).href;r===`ok`&&i&&n.get(U.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(iu.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 su=n({deriveStepStatus:()=>cu,stepperHeaderItems:()=>lu});function cu(e,t){return typeof t==`number`?e<t?`done`:e===t?`active`:`pending`:`pending`}function lu(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 uu={selectAllLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`},du=n({GROUP_SELECT_CLASS:()=>pu,SELECT_CELL_CLASS:()=>X,addRowSelectCells:()=>Cu,addSelectColumn:()=>wu,attachShiftRange:()=>Ou,createGroupSelectCell:()=>vu,createSelectHeaderCell:()=>hu,createSelectRowCell:()=>gu,createSelectSpacerCell:()=>_u,groupRowsOf:()=>yu,syncGroupSelect:()=>Eu,syncSelectAll:()=>Tu}),fu=()=>M(`tableSelect`,uu),X=`wui-select-cell`,pu=`wui-group-select`,mu=(e,t)=>{let n=e.createElement(`input`);return n.type=`checkbox`,n.className=`form-check-input`,n.setAttribute(`aria-label`,t),n};function hu(e=document){let t=e.createElement(`th`);return t.className=X,t.appendChild(mu(e,fu().selectAllLabel)),t}function gu(e=document,{disabled:t=!1}={}){let n=e.createElement(`td`);n.className=X;let r=mu(e,fu().selectRowLabel);return r.disabled=t,n.appendChild(r),n}function _u(e=document){let t=e.createElement(`td`);return t.className=X,t}function vu(e,t){let n=e.createElement(`td`);return n.className=`${X} ${pu}`,n.appendChild(mu(e,N(fu().selectGroupLabel,{group:t}))),n}function yu(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 bu=e=>e.firstElementChild?.classList.contains(X),xu=e=>e.matches(`.wui-group-row, .wui-virtual-spacer, .wui-row-expanded`),Su=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n);function Cu(e){for(let t of e){if(bu(t)||xu(t))continue;let e=t.getAttribute(`data-row-selectable`)===`false`;t.insertBefore(gu(t.ownerDocument,{disabled:e}),t.firstChild)}}function wu(e){let t=e.querySelector(`thead tr`);if(!(t instanceof HTMLTableRowElement))return null;bu(t)||t.insertBefore(hu(e.ownerDocument),t.firstChild),Cu(Su(e,`tbody tr`,HTMLTableRowElement));for(let t of Su(e,`tfoot tr`,HTMLTableRowElement))bu(t)||t.insertBefore(_u(e.ownerDocument),t.firstChild);let n=t.querySelector(`.${X} .form-check-input`);return n instanceof HTMLInputElement?n:null}function Tu(e){let t=e.querySelector(`thead .${X} .form-check-input`),n=Su(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 Su(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 Eu(e){for(let t of Su(e,`tbody tr.wui-group-row`,HTMLTableRowElement)){let e=t.querySelector(`.${pu} .form-check-input`);if(!(e instanceof HTMLInputElement))continue;let n=yu(t).flatMap(e=>Su(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 Du=`tbody tr:not(.wui-group-row) .${X} .form-check-input:not(:disabled)`;function Ou(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=Su(e,Du,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 ku=n({DATE_PICKER_TEXT:()=>Au}),Au={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}.`},ju=n({DRAWER_TEXT:()=>Mu}),Mu={closeLabel:`Close`,confirmDiscard:`Discard your changes?`,discardLabel:`Discard`,keepLabel:`Keep editing`,screenText:`{now}% of the screen`,sheetHeightLabel:`Sheet height`},Nu=n({matchSegments:()=>Pu});function Pu(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 Fu=n({TOOLTIP_ATTRIBUTE:()=>Iu,TOOLTIP_CLASS_ATTRIBUTE:()=>Ru,TOOLTIP_ID_ATTRIBUTE:()=>zu,TOOLTIP_OPEN_ATTRIBUTE:()=>Bu,TOOLTIP_PLACEMENT_ATTRIBUTE:()=>Lu,TOOLTIP_SHORTCUT_ATTRIBUTE:()=>Vu,showPinnedTooltips:()=>Uu,wireTooltips:()=>Hu}),Iu=`data-wui-tooltip`,Lu=`data-wui-tooltip-placement`,Ru=`data-wui-tooltip-class`,zu=`data-wui-tooltip-id`,Bu=`data-wui-tooltip-open`,Vu=`data-wui-tooltip-shortcut`;function Hu(e){qu.has(e)||(qu.add(e),e.addEventListener(`pointerover`,t=>{let n=Qu(t.target);n&&!ed(e,n)&&rd(e,n,!1)}),e.addEventListener(`pointerout`,t=>{let n=Yu(e).transient;n&&Qu(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||id(e,n))}),e.addEventListener(`focusin`,t=>{let n=t.target;if(!(n instanceof Element)||!n.matches(`:focus-visible`))return;let r=Qu(n);r&&!ed(e,r)&&rd(e,r,!1)}),e.addEventListener(`focusout`,t=>{let n=Yu(e).transient;n&&Qu(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||id(e,n))}),e.addEventListener(`click`,t=>{let n=Yu(e).transient;n&&Qu(t.target)===n.trigger&&id(e,n)}))}function Uu(e){let t=e instanceof Document?e:e.ownerDocument;for(let n of e.querySelectorAll(`[${Bu}]`))rd(t,n,!0)}var Wu=[`top`,`bottom`,`start`,`end`],Gu=`wui-tooltip`,Ku=`[${Iu}], [${zu}]`,qu=new WeakSet,Ju=new WeakMap;function Yu(e){let t=Ju.get(e);return t||(t={bubble:null,transient:null,pinned:new Map,pinnedCount:0,onEscape:t=>{t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),ad(e))}},Ju.set(e,t)),t}function Xu(e){return Wu.includes(e)}function Zu(e){return e===`auto`||Xu(e)}function Qu(e){if(!(e instanceof Element))return null;let t=e.closest(Ku);return t instanceof HTMLElement?t:null}function $u(e,t){return e.transient?.trigger===t?e.transient:e.pinned.get(t)}function ed(e,t){return $u(Yu(e),t)!==void 0}function td(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 nd(e,t){return t.bubble||=td(e,Gu),t.bubble}function rd(e,t,n){let r=t.getAttribute(Iu),i=t.getAttribute(zu);if(r===null&&i===null)throw Error(`a tooltip trigger carries ${Iu} or ${zu}`);if(r!==null&&i!==null)throw Error(`a tooltip trigger carries ${Iu} or ${zu}, not both`);let a=t.getAttribute(`data-wui-tooltip-placement`)??`top`;if(!Zu(a))throw Error(`${Lu} "${a}" is not auto, top, bottom, start or end`);let o=Yu(e);id(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?td(e,`${Gu}-pinned-${++o.pinnedCount}`):nd(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(Vu);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||id(e,$u(Yu(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 id(e,t){if(!t)return;let n=Yu(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 ad(e){let t=Yu(e);id(e,t.transient);for(let n of[...t.pinned.values()])id(e,n)}var od=Object.freeze({anchorOverlay:d,avatarNode:qt,buttonClass:jo,calendarMath:Gs,copyText:lc,dataTable:mc,dataTableText:fc,datePickerText:ku,defineElement:r,devWarn:Xt,dom:ze,drawerText:ju,elementBase:a,fieldState:$t,flash:Vi,formatters:es,formMirror:rn,glyphs:Zn,hasOwn:un,httpFailureText:oo,iconGlyphs:Zn,imeSafeEnter:fr,isDrawn:al,listboxKeyNav:hr,loader:_n,mentionText:sl,menuKeyNav:_l,nativeOverlay:ne,notificationCentreText:Cl,notificationDays:Tl,optionLabel:yr,partRegistry:Jr,postError:Xl,refreshAfter:Pa,regions:ba,relativeTime:Il,rtl:c,selectList:Ar,selectRemote:ei,selectText:Or,selectWindow:Gl,server:co,serverHtml:Ji,serverTableRegistry:ka,shellRegistry:Ql,shortcutKeys:st,stepperHeader:su,svgNodes:Gn,tableExport:Oi,tableSelect:du,textMatch:Nu,textStore:He,toastAction:$a,toastHeader:Ii,tooltips:Fu,wuiHost:Xi,wuiHttp:Qi,wuiUpload:ru,WuiSelect:ai,zone:Ho}),sd={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`},cd=`image/jpeg,image/png,image/webp,image/heic,image/heif,.heic,.heif`,ld=10,ud=512,dd=`image/webp`,fd=[96,48];function pd(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 md(e){let t=M(`imagePicker`,sd);return pd(e)?t.heicUnreadableMessage:t.photoUnreadableMessage}function hd(e,t){let n=Number(t);return{name:e?.name||`photo`,type:dd,size:Number.isInteger(n)&&n>0?n:512}}var gd=`/`,_d=`.search-wrap.wui-search-collapsible`,vd=`.wui-topsearch-panel`,yd=`.modal, wui-drawer[open]`,bd=new WeakSet,xd=e=>{let t=e.querySelector(`.wui-search-toggle`);return t instanceof HTMLElement?t:null},Sd=e=>{let t=e.querySelector(`.search-input`);return t instanceof HTMLInputElement?t:null},Cd=e=>[...e.querySelectorAll(_d)].filter(e=>e instanceof HTMLElement);function wd(e){e.classList.remove(`is-collapsed`),xd(e)?.setAttribute(`aria-expanded`,`true`),Sd(e)?.focus()}function Td(e){Sd(e)?.value||(e.classList.add(`is-collapsed`),xd(e)?.setAttribute(`aria-expanded`,`false`))}function Ed(e){if(e.dataset.wuiCollapseWired)return;e.dataset.wuiCollapseWired=`1`;let t=xd(e),n=Sd(e);t?.addEventListener(`click`,()=>wd(e)),n?.addEventListener(`keydown`,r=>{r.key!==`Escape`||n?.value||(r.preventDefault(),Td(e),t?.focus())}),e.addEventListener(`focusout`,t=>{let n=t.relatedTarget;n instanceof Node&&e.contains(n)||Td(e)})}function Dd(e){bd.has(e)||(bd.add(e),e.addEventListener(`keydown`,t=>{if(t.key!==`/`||t.ctrlKey||t.altKey||t.metaKey||t.defaultPrevented||wt(t.target instanceof Node?t.target:null)||t.target instanceof Element&&t.target.closest(yd)||e.querySelector(vd))return;let n=Cd(e).find(e=>e.offsetParent!==null);n&&(t.preventDefault(),wd(n))}))}function Od(e=document){let t=e;for(let e of Cd(t))Ed(e);Dd(e instanceof Element?e.ownerDocument:e)}var kd=`data-wui-command-shortcut`,Ad=`k`,jd=new WeakSet,Md=/ \(Ctrl\+([^)]+)\)$/;function Nd(e=navigator){return/mac|iphone|ipad/i.test(e.userAgentData?.platform??e.platform)}function Pd(e,t){return!(e.ctrlKey||e.metaKey)||e.altKey||e.shiftKey||e.repeat?!1:String(e.key).toLowerCase()===String(t).toLowerCase()}function Fd(e){return e.nodeType===Node.DOCUMENT_NODE}function Id(e){e.closest(`wui-modal`)?.show()}function Ld(e){if(Nd())for(let t of e.querySelectorAll(`[${kd}]`)){let e=t.getAttribute(`placeholder`);e!==null&&t.setAttribute(`placeholder`,e.replace(Md,(e,t)=>` (⌘${t})`))}}function Rd(e){let t=Fd(e)?e:e.ownerDocument;e.querySelector(`[data-wui-command-shortcut]`)&&(Ld(t),jd.has(t)||(jd.add(t),t.addEventListener(`keydown`,e=>{for(let n of t.querySelectorAll(`[${kd}]`))if(Pd(e,n.getAttribute(`data-wui-command-shortcut`)||Ad)){e.preventDefault(),n.localName===`wui-command-palette`||n.localName===`wui-modal`?Id(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=()=>M(`fileValidation`,zd),Bd=`image/png,image/jpeg,image/webp`,Vd=5,Hd={"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`]},Ud={"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`},Wd={"text/plain":`textFileLabel`,".txt":`textFileLabel`,"image/*":`imagesLabel`,"video/*":`videosLabel`,"audio/*":`audioLabel`},Gd=new Set([`image/*`,`video/*`,`audio/*`]),Kd=e=>{let t=Wd[e];return t?Z()[t]:Ud[e]},qd=e=>String(e||``).split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean),Jd=[`.png`,`.jpg`,`.jpeg`,`.webp`,`.gif`,`.svg`,`.bmp`,`.avif`,`.heic`,`.heif`];function Yd(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 Jd.some(e=>r.endsWith(e))}var Xd=[`kilobyteLabel`,`megabyteLabel`,`gigabyteLabel`];function Zd(e){if(e<1024)return`${e} ${Z().byteLabel}`;let t=e/1024,n=0;for(;t>=1024&&n<Xd.length-1;)t/=1024,n+=1;return`${t.toFixed(1)} ${Z()[Xd[n]??`gigabyteLabel`]}`}function Qd(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 $d(e){let t=qd(e);return t.length?t.every(e=>e.startsWith(`.`)?Jd.includes(e):e===`image/*`||e.startsWith(`image/`)):!1}function ef(e){let t=[];for(let n of qd(e)){let e=Kd(n)||(n.startsWith(`.`)?n.slice(1).toUpperCase():n.toUpperCase());t.includes(e)||t.push(e)}return t.length<=1?t[0]||Z().supportedLabel:N(Z().orText,{names:t.slice(0,-1).join(`, `),last:t.slice(-1).join(``)})}function tf(e,t){let n=qd(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&&(Hd[e]||[]).some(e=>i.endsWith(e)))}function nf(e,t={}){if(!e)return null;let n=t.accept===void 0?Bd:t.accept,r=t.maxSizeMb===void 0?5:t.maxSizeMb;if(!tf(e,n)){let e=ef(n),t=qd(n).map(e=>Gd.has(e));return t.every(Boolean)?N(Z().chooseText,{label:e}):t.some(Boolean)?N(Z().chooseText,{label:e.endsWith(` file`)?`${e}s`:`${e} files`}):N(Z().chooseText,{label:`a ${e.endsWith(` file`)?e:`${e} file`}`})}return r!==null&&r>0&&e.size>r*1024*1024?N(Z().keepFileUnderMbText,{maxSizeMb:r}):null}function rf(e,t){let n=Array.from(e||[]),r=t.multiple?n:n.slice(0,1),i=[],a=[];for(let e of r){let n=nf(e,{accept:t.accept,maxSizeMb:t.maxSizeMb});n?a.push({file:e,message:n}):i.push(e)}return{files:i,rejections:a}}function af(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}=rf(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 of={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`},sf=/[0-9]/,cf={9:sf,A:/[A-Za-z]/,"*":/[0-9A-Za-z]/},lf=/[9A*]/,uf=new Set([`text`,`tel`,`search`,`url`,`password`]),df=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},ff=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},pf=e=>e.length<=3?e:`${e.slice(0,-3).replace(/\B(?=(\d{2})+(?!\d))/g,`,`)},${e.slice(-3)}`,mf=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());return t?`${t[3]}-${t[2]}-${t[1]}`:e},Q=()=>M(`inputMask`,of);function hf(e,{upper:t=!1,normalize:n,valid:r,post:i=e=>e,message:a=Q().incompleteMessage}={}){let o=[...e].map(e=>{let t=cf[e];return t?{re:t}:{lit:e}}),s=o.filter(e=>e.re).length;return{inputMode:o.every(e=>!e.re||e.re===sf)?`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 gf(){return{inputMode:`decimal`,post:e=>e,message:Q().amountMessage,extract(e){let t=``,n=!1,r=0;for(let i of e)sf.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=pf(t)+(e.includes(`.`)?`.${n}`:``);return{text:r,isRaw:[...r].map(e=>e!==`,`)}},isValid:e=>/^\d+(\.\d{1,2})?$/.test(e)}}var _f={"phone-in":()=>hf(`99999 99999`,{normalize:df,valid:e=>/^[6-9]/.test(e),message:Q().phoneInMessage}),pan:()=>hf(`AAAAA9999A`,{upper:!0,valid:e=>/^[A-Z]{5}\d{4}[A-Z]$/.test(e),message:Q().panMessage}),gstin:()=>hf(`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:()=>hf(`9999 9999 9999`,{valid:e=>/^[2-9]/.test(e),message:Q().aadhaarMessage}),ifsc:()=>hf(`AAAA*******`,{upper:!0,valid:e=>/^[A-Z]{4}0[A-Z0-9]{6}$/.test(e),message:Q().ifscMessage}),"pin-code":()=>hf(`999999`,{valid:e=>/^[1-9]/.test(e),message:Q().pinCodeMessage}),date:()=>hf(`99-99-9999`,{normalize:mf,valid:ff,post:(e,t)=>e.length===8&&ff(e)?`${e.slice(4)}-${e.slice(2,4)}-${e.slice(0,2)}`:t,message:Q().dateMessage}),amount:gf},vf=Object.keys(_f),yf=e=>{let t=String(e).toLowerCase();return dn(_f,t)?t:void 0},bf=e=>lf.test(String(e))&&yf(e)===void 0,xf=new Map;Qe(()=>xf.clear());function Sf(e){if(e==null||e===``)return null;let t=String(e),n=xf.get(t);return n===void 0&&(n=bf(t)?hf(t):dn(_f,t)?_f[t]?.()??null:null,xf.set(t,n)),n}var $=(e,t)=>e.normalize?e.normalize(t):t;function Cf(e,t){let n=Sf(e);return n?n.extract($(n,String(t??``))):String(t??``)}function wf(e,t){let n=Sf(e);if(!n)return String(t??``);let r=n.extract($(n,String(t??``)));return n.post(r,n.layout(r).text)}function Tf(e,t){let n=Sf(e);return n?n.layout(n.extract($(n,String(t??``)))).text:String(t??``)}var Ef=(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},Df=new WeakMap,Of=e=>Df.get(e)?.(),kf=new WeakMap;function Af(e,t,n,r){let i=e.getAll(t),a=kf.get(e)??new Set;kf.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 jf(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 Mf(e,{mask:t,postFormatted:n=!1,onChange:r,onInvalidChange:i}={}){let a=Sf(t);if(!a||!uf.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??jf(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&&uf.has(e.type))){let t=Ef(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&&Af(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),Df.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),Df.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 Nf(){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=Of(e);return n===void 0?t.call(this,e):n},e.wuiMaskHook=!0}var Pf=new WeakMap,Ff,If=e=>{Pf.has(e)||Pf.set(e,Mf(e,{mask:e.dataset.appMask,postFormatted:e.hasAttribute(`data-mask-post-formatted`)}))},Lf=e=>[...e.querySelectorAll(`input[data-app-mask]`)].filter(e=>e instanceof HTMLInputElement),Rf=e=>e instanceof Element?[...e instanceof HTMLInputElement&&e.matches(`input[data-app-mask]`)?[e]:[],...Lf(e)]:[];function zf(){Ff||typeof MutationObserver>`u`||(Ff=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Rf(e))Pf.get(t)?.(),Pf.delete(t);for(let e of t.addedNodes)for(let t of Rf(e))If(t)}}),Ff.observe(document.documentElement,{childList:!0,subtree:!0}))}function Bf(e=document){Nf();for(let t of Lf(e))If(t);e===document&&zf()}var Vf=`data-wui-bulk-in-bar`,Hf=`[data-wui-page-header-bar][data-wui-bulk-for]`,Uf=new WeakSet;function Wf(e){return`${K(e,{decimals:0})} selected`}function Gf(e){let t=e.dataset.wuiBulkFor;return t===void 0?null:document.getElementById(t)}function Kf(e){return typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`}function qf(e,t){return[...e.querySelectorAll(t)].flatMap(e=>e instanceof HTMLElement?[e]:[])}function Jf(e,t){for(let n of qf(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?Wf(t):``}function Yf(e=document){for(let t of qf(e,Hf))Gf(t)?.setAttribute(Vf,``);Uf.has(document)||(Uf.add(document),document.addEventListener(`selectionchange`,e=>{if(!(e instanceof CustomEvent)||!Kf(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 qf(document,Hf))Gf(n)?.contains(t)&&Jf(n,e.detail.selected)}))}var Xf={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`},Zf={minLength:10,uppercase:!0,lowercase:!0,digit:!0,special:!0,uniqueChars:0,customRules:[]},Qf=()=>M(`passwordRules`,Xf);function $f(e){return e===!0||e==null?{...Zf}:{...Zf,...e}}function ep(e){let t=$f(e),n=[];if(t.minLength>0&&n.push({key:`length`,label:N(Qf().lengthText,{minLength:t.minLength}),test:e=>e.length>=t.minLength}),t.uppercase&&n.push({key:`uppercase`,label:Qf().uppercaseText,test:e=>/[A-Z]/.test(e)}),t.lowercase&&n.push({key:`lowercase`,label:Qf().lowercaseText,test:e=>/[a-z]/.test(e)}),t.digit&&n.push({key:`digit`,label:Qf().digitText,test:e=>/[0-9]/.test(e)}),t.special&&n.push({key:`special`,label:Qf().specialText,test:e=>/[^A-Za-z0-9]/.test(e)}),t.uniqueChars>0){let e=t.uniqueChars;n.push({key:`unique`,label:et(Qf(),`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 ep(t).map(e=>({key:e.key,label:e.label,met:e.test(n)}))}function np(e,t){return tp(e,t).every(e=>e.met)}var rp={moveLabel:`Move to`,moveText:`Move to {label}`},ip=`wui:row-drop`,ap=`is-drop-over`,op=`application/x-wui-rows`,sp=`wui-row-dragging`,cp=`[data-wui-drop-target]`,lp=`tbody tr[data-row-key]`,up=`input, button, a, select, textarea, label`,dp=`.wui-select-cell .form-check-input`,fp=new WeakMap,pp=new WeakSet,mp=null,hp=null;function gp(e){let t=e.querySelector(dp);return t instanceof HTMLInputElement&&t.checked}function _p(e){let t=[];for(let n of e.querySelectorAll(`tbody tr:not(.wui-group-row)`))n instanceof HTMLElement&&gp(n)&&t.push(n.dataset.rowKey);return t}function vp(e,t){return Ve(e,t)}function yp(e,t){let n=vp(e,t);return n instanceof HTMLElement?n:null}function bp(e){let t=e.textContent;if(t===null)throw Error(`A drop target has no text content.`);return t.trim()}var xp=e=>typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`;function Sp(){mp=null,document.body.classList.remove(sp);for(let e of document.querySelectorAll(`${cp}.${ap}`))e.classList.remove(ap)}function Cp(e,t,n){e.dispatchEvent(new CustomEvent(ip,{bubbles:!0,detail:{keys:t,target:n.dataset.wuiDropTarget}}))}function wp(e){let t=yp(e.target,cp);if(!t||!mp)return;e.preventDefault();let n=A(e.dataTransfer,`A drag event arrived without its DataTransfer.`);n.dropEffect=`move`,t.classList.add(ap)}function Tp(e){let t=yp(e.target,cp);!t||e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||t.classList.remove(ap)}function Ep(e){let t=yp(e.target,cp);if(!t||!mp)return;e.preventDefault(),t.classList.remove(ap);let{root:n,keys:r}=mp;Cp(n,r,t),Sp()}function Dp(e){let t=yp(e.target,cp);t&&hp?.keys.length&&(e.preventDefault(),Cp(hp.root,hp.keys,t))}function Op(e){(mr(e)||e.key===` `)&&Dp(e)}function kp(e){pp.has(e)||(pp.add(e),e.addEventListener(`dragover`,wp),e.addEventListener(`dragenter`,wp),e.addEventListener(`dragleave`,Tp),e.addEventListener(`drop`,Ep),e.addEventListener(`click`,Dp),e.addEventListener(`keydown`,Op))}function Ap(e){let t=fp.get(e);if(t)return t;kp(e.ownerDocument||e);let n=t=>{let n=yp(t.target,lp);if(!n||!e.contains(n))return;let r=vp(t.target,up);r&&n.contains(r)||(n.draggable=!0)},r=t=>{let n=yp(t.target,lp);if(!n||!e.contains(n))return;let r=gp(n)?_p(e):[n.dataset.rowKey],i=A(t.dataTransfer,`A drag event arrived without its DataTransfer.`);i.setData(op,JSON.stringify(r)),i.setData(`text/plain`,r.join(`,`)),i.effectAllowed=`move`,mp={root:e,keys:r},document.body.classList.add(sp)},i=t=>{let n=t instanceof CustomEvent?t.detail:void 0;if(xp(n)){let{keys:t}=n;n.selected>0?hp={root:e,keys:Array.isArray(t)?t:_p(e)}:n.selected===0&&(hp=null)}Mp(document)};e.addEventListener(`pointerdown`,n),e.addEventListener(`dragstart`,r),e.addEventListener(`dragend`,Sp),e.addEventListener(`selectionchange`,i);let a=()=>{e.removeEventListener(`pointerdown`,n),e.removeEventListener(`dragstart`,r),e.removeEventListener(`dragend`,Sp),e.removeEventListener(`selectionchange`,i),fp.delete(e)};return fp.set(e,a),a}var jp=()=>M(`rowDrop`,rp);function Mp(e=document){let t=e.querySelector(`[data-wui-row-drag] tbody tr:not(.wui-group-row) ${dp}:checked`)!==null;for(let n of e.querySelectorAll(cp)){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`)||bp(n);n.setAttribute(`aria-label`,N(jp().moveText,{label:e}))}for(let t of e.querySelectorAll(`.wui-drop-tray`))t.hasAttribute(`role`)||(t.setAttribute(`role`,`toolbar`),t.setAttribute(`aria-label`,jp().moveLabel))}function Np(e=document){for(let t of e.querySelectorAll(`[data-wui-row-drag]`))t instanceof HTMLElement&&Ap(t);Mp(e.ownerDocument||e)}var Pp=`.table-wrap, .table-responsive, [class*="table-responsive-"]`,Fp=1;function Ip(e){let t=()=>{let t=e.scrollWidth-e.clientWidth,n=Math.abs(e.scrollLeft);e.toggleAttribute(`data-wui-overflow-start`,t>Fp&&n>Fp),e.toggleAttribute(`data-wui-overflow-end`,t>Fp&&n<t-Fp),e.toggleAttribute(`data-wui-overflow-top`,e.scrollTop>Fp)},n=()=>{if(e.scrollWidth-e.clientWidth>Fp){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 Lp=new WeakMap,Rp,zp=e=>{Lp.has(e)||Lp.set(e,Ip(e))},Bp=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(Pp)].filter(e=>e instanceof HTMLElement);return[...t,...n]};function Vp(){Rp||typeof MutationObserver>`u`||(Rp=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Bp(e))Lp.get(t)?.(),Lp.delete(t);for(let e of t.addedNodes)for(let t of Bp(e))zp(t)}}),Rp.observe(document.documentElement,{childList:!0,subtree:!0}))}function Hp(e=document){for(let t of e.querySelectorAll(Pp))t instanceof HTMLElement&&zp(t);e===document&&Vp()}var Up=new WeakSet;function Wp(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(!Ui(t))throw TypeError(`data-wui-flash-variant="${t}" is not supported. Use ${Hi.join(`, `)}.`);let n=e.getAttribute(`data-wui-flash`)||(e.textContent??``).trim();e.remove(),n&&io(n,t)}}function Gp(e=document){let t=e instanceof Element?e.ownerDocument:e;if(!Up.has(t)){Up.add(t);let e=qi();e&&io(e.message,e.variant,e.action)}Wp(e)}var Kp=`data-wui-submit-once`,qp=`data-wui-submit-pending`,Jp=`wui-submit-spinner`,Yp=new WeakSet,Xp=new WeakMap;function Zp(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement?e:null}function Qp(e){if(e.setAttribute(`aria-busy`,`true`),e.tagName===`INPUT`||e.querySelector(`.${Jp}`))return;let t=e.ownerDocument.createElement(`span`);t.className=`spinner-border spinner-border-sm me-2 ${Jp}`,t.setAttribute(`aria-hidden`,`true`),e.prepend(t)}function $p(e){e.removeAttribute(`aria-busy`),e.querySelector(`.${Jp}`)?.remove()}function em(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)||!em(t))return;if(t.hasAttribute(qp)){e.preventDefault();return}t.setAttribute(qp,``);let n=Zp(e.submitter);setTimeout(()=>{t.hasAttribute(qp)&&(e.defaultPrevented?t.removeAttribute(qp):n&&(n.disabled=!0,Qp(n),Xp.set(t,n)))},0)}var nm=e=>[...e.querySelectorAll(`form[${qp}]`)].filter(e=>e instanceof HTMLFormElement);function rm(e){for(let t of nm(e)){t.removeAttribute(qp);let e=Xp.get(t);e&&(e.disabled=!1,$p(e),Xp.delete(t))}}function im(e){let t=e.ownerDocument===null?e:e.ownerDocument;Yp.has(t)||(Yp.add(t),t.addEventListener(`submit`,tm,!0),t.defaultView?.addEventListener(`pageshow`,()=>rm(t)))}var am=[`light`,`dark`,`auto`],om=[`wave`,`circle`,`slide`,`blinds`,`fade`,`none`],sm=`fade`,cm=`theme`,lm={wave:1100,circle:700,slide:600,blinds:900,fade:350,none:0},um=`wui-theme-switching`,dm=`wui:theme:change`,fm=`(prefers-color-scheme: dark)`,pm=e=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(e).matches,mm=e=>am.some(t=>t===e);function hm(e){return e===`dark`||e===`auto`&&pm(fm)?`dark`:`light`}function gm(e=cm){let t=null;try{t=window.localStorage.getItem(e)}catch(e){if(!(e instanceof DOMException))throw e}return mm(t)?t:`auto`}function _m(e,t=cm){try{window.localStorage.setItem(t,e)}catch(e){if(!(e instanceof DOMException))throw e}}function vm(e){let t=document.documentElement,n=hm(e);t.setAttribute(`data-theme`,e),t.setAttribute(`data-bs-theme`,n),document.dispatchEvent(new CustomEvent(dm,{detail:{mode:n,preference:e}}))}var ym=`((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 bm(e=cm){return`${ym}${JSON.stringify(String(e)).replace(/</g,`\\u003c`)})`}function xm(e,{includeAuto:t=!1}={}){return e===`light`?`dark`:e===`dark`&&t?`auto`:`light`}function Sm(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(fm),n=()=>e(t.matches?`dark`:`light`);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var Cm=60,wm=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,Tm=e=>e.toFixed(1),Em=(e,t)=>`${Tm(e)}px ${Tm(t)}px`,Dm={amplitude:22,segments:36,cycles:1.5,ripples:2},Om=6,km=(e,t,n,r,i)=>{let{amplitude:a,segments:o,cycles:s}=Dm,c=n*(t+2*a),l=i?t+a-c:c-a,u=i?t+2*a:-2*a,d=[Em(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(Em(n,i))}return d.push(Em(e,u)),`polygon(${d.join(`, `)})`},Am=(e,t,n,r)=>{let i=t/Om,a=[];for(let t=0;t<Om;t++){let o=t*i,s=i*n,c=r?o+i-s:o,l=r?o+i:o+s;a.push(Em(0,c),Em(e,c),Em(e,l),Em(0,l))}return`polygon(${a.join(`, `)})`};function jm(e,{width:t,height:n,to:r=`dark`,origin:i}){let a=r===`dark`,o=[];for(let r=0;r<=Cm;r++){let s=r/Cm,c=wm(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(${Tm(a*c)}px at ${Tm(e)}px ${Tm(r)}px)`});break}case`slide`:{let e=n*(1-c);o.push({clipPath:a?`inset(${Tm(e)}px 0px 0px 0px)`:`inset(0px 0px ${Tm(e)}px 0px)`});break}case`blinds`:o.push({clipPath:Am(t,n,c,a)});break;case`fade`:o.push({clipPath:`none`,opacity:c});break;case`none`:return[];default:o.push({clipPath:km(t,n,c,s*Dm.ripples*2*Math.PI,a)})}}return o}var Mm=e=>{e instanceof DOMException&&(e.name===`AbortError`||e.name===`InvalidStateError`)||Qt(`[@webority/ui-elements] The theme view transition failed:`,e)};function Nm(e,{effect:t=sm,to:n,origin:r,duration:i}={}){let a=document.documentElement,o=n!==void 0&&a.getAttribute(`data-bs-theme`)===n;if(t===`none`||o||pm(`(prefers-reduced-motion: reduce)`)||typeof document.startViewTransition!=`function`||typeof a.animate!=`function`)return e(),Promise.resolve(!1);a.classList.add(um);let s=document.startViewTransition(e),c=i??lm[t]??lm.fade;return s.ready.then(()=>{let e=jm(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(Mm),s.finished.catch(Mm).finally(()=>a.classList.remove(um)).then(()=>!0)}function Pm(){Gt(),i(`wui-select`,li),i(`wui-modal`,Kt)}return globalThis.WeborityUiElementsInternal||(globalThis.WeborityUiElementsInternal={version:`0.188.0`,modules:od}),Pi(),Fn(),Eo(),Pm(),e.AVATAR_ACCEPT=cd,e.AVATAR_MAX_SIZE_MB=ld,e.AVATAR_OUTPUT_SIZE=ud,e.AVATAR_OUTPUT_TYPE=dd,e.AVATAR_PREVIEW_SIZES=fd,e.BAR_BULK_IN_BAR_ATTRIBUTE=Vf,e.COLUMN_MAX_WIDTH=gc,e.COLUMN_MIN_WIDTH=hc,e.COMMAND_SHORTCUT_ATTRIBUTE=kd,e.COPY_FEEDBACK_MS=uc,e.CSRF_META_NAME=$i,e.CURRENCIES=ns,e.CURRENCY_SYMBOLS=Ro,e.DATE_PATTERNS=as,e.DEFAULT_CSRF_HEADER=ea,e.DEFAULT_CURRENCY=Lo,e.DEFAULT_IMAGE_ACCEPT=Bd,e.DEFAULT_MAX_SIZE_MB=Vd,e.DEFAULT_PASSWORD_RULES=Zf,e.DEFAULT_THEME_EFFECT=sm,e.DEFAULT_THEME_STORAGE_KEY=cm,e.DROP_OVER_CLASS=ap,e.DURATION_UNITS=is,e.FILTER_POPOVER_MAX_CHIPS=Nt,e.FLASH_STORAGE_KEY=Wi,e.FLASH_VARIANTS=Hi,e.FORMAT_STYLES=ts,e.GROUP_SELECT_CLASS=pu,e.HTTP_KINDS=ia,e.IST_TIME_ZONE=W,e.MASK_INPUT_TYPES=uf,e.MASK_NAMES=vf,e.MENTION_ID_PATTERN=cl,e.MONEY_UNITS=rs,e.NOTIFICATION_COUNT_CAP=El,e.PIN_AT_VAR=Ic,e.PIN_SIDES=yc,e.RESIZE_STEP=_c,e.RESIZE_STEP_LARGE=vc,e.ROW_DRAG_TYPE=op,e.ROW_DROP_EVENT=ip,e.ROW_HEIGHTS=xc,e.ROW_MOVE_LIMIT=Bc,e.ROW_MOVE_MS=Vc,e.ROW_SAVE_ATTR=Yc,e.ROW_SAVE_ERROR_CLASS=Xc,e.ROW_SAVE_STATES=Jc,e.SCROLL_EDGE_SELECTOR=Pp,e.SEARCH_OPEN_KEY=gd,e.SELECT_CELL_CLASS=X,e.SHORTCUTS_OFF_ATTRIBUTE=lt,e.SHORTCUT_EVENT=dt,e.SHORTCUT_SCOPE_ATTRIBUTE=ut,e.SUBMIT_ONCE_ATTRIBUTE=Kp,e.THEME_BOOT_SCRIPT_BODY=ym,e.THEME_CHANGE_EVENT=dm,e.THEME_EFFECTS=om,e.THEME_EFFECT_DURATION=lm,e.THEME_MODES=am,e.THEME_SWITCHING_CLASS=um,e.TOAST_ACTION_METHODS=Li,e.TOAST_ACTION_MS=eo,e.VIRTUAL_OVERSCAN=bc,e.WUI_HEADERS=U,e.WuiPostError=Zl,e.WuiSelect=li,e.acceptDroppedFiles=rf,e.acceptLabel=ef,e.addRowSelectCells=Cu,e.addSelectColumn=wu,e.applyBarBulk=Jf,e.applyRefresh=Qa,e.applyTheme=vm,e.ariaKeyShortcuts=Ct,e.attachFileDrop=af,e.attachInputMask=Mf,e.attachRowDrag=Ap,e.attachScrollEdges=Ip,e.attachShiftRange=Ou,e.avatarCropOptions=hd,e.avatarUnreadableMessage=md,e.barBulkCountText=Wf,e.buildPasswordRules=ep,e.clampColumnWidth=kc,e.classifyStatus=ca,e.collapseSearch=Td,e.configureCsrf=na,e.copyTextToClipboard=dc,e.createGroupSelectCell=vu,e.createRequestQueue=ya,e.createSelectHeaderCell=hu,e.createSelectRowCell=gu,e.createSelectSpacerCell=_u,e.currencyPrefix=Bo,e.deriveStepStatus=cu,e.emptyValueLabel=G,e.evaluatePassword=tp,e.fillText=N,e.formatCompact=Ns,e.formatCurrency=js,e.formatDate=J,e.formatDateTime=Vs,e.formatDuration=Is,e.formatFileSize=Zd,e.formatMasked=Tf,e.formatNumber=K,e.formatPercent=Ps,e.formatRelativeTime=Ul,e.formatValue=zs,e.glyphNode=R,e.groupCount=Oc,e.groupItems=Ac,e.groupNotificationsByDay=Pl,e.groupRowsOf=yu,e.identityCell=Qc,e.inShortcutScope=Dt,e.initCollapsibleSearch=Od,e.initCommandShortcuts=Rd,e.initFlashToasts=Gp,e.initInputMasks=Bf,e.initPageBarBulk=Yf,e.initRowDrag=Np,e.initScrollEdges=Hp,e.initSubmitOnce=im,e.isCommandChord=Pd,e.isCurrencyCode=zo,e.isHeicFile=pd,e.isImageFile=Yd,e.isImageOnlyAccept=$d,e.isMaskPattern=bf,e.isPdfFile=Qd,e.isTimeZone=Ko,e.isTypingTarget=wt,e.loadServer=mo,e.loadShell=_o,e.loadedServer=ho,e.loadedShell=vo,e.maskedPostValue=Of,e.matchSegments=Pu,e.matchesAccept=tf,e.measureRows=Gc,e.mentionLabel=dl,e.mentionTextFromValue=ml,e.mentionValueFromText=hl,e.mentionedIds=gl,e.moveFocus=kt,e.nextTheme=xm,e.notificationCountText=kl,e.notificationDayHeading=Nl,e.notificationTime=Ml,e.notificationTriggerLabel=Al,e.notificationUnreadAnnouncement=jl,e.openSearch=wd,e.parseMentionValue=pl,e.parseServerHtml=Yi,e.parseToastAction=Bi,e.passwordSatisfies=np,e.pinAtValue=Lc,e.pinClasses=zc,e.pinOffsetVar=Fc,e.planPins=Rc,e.playRowMoves=Kc,e.pluralText=et,e.postedMasked=wf,e.rawMasked=Cf,e.readColumnWidths=Nc,e.readCsrf=oa,e.readStoredTheme=gm,e.readText=M,e.refreshAfter=Za,e.refreshRegions=Ea,e.relativeTimeTitle=Wl,e.reloadsPage=Ha,e.resolveMask=Sf,e.resolveTheme=hm,e.rowLabel=$c,e.rowOrderChanged=qc,e.runShortcut=Ot,e.runToastAction=ao,e.saveOutcomeText=il,e.setRowSaveState=nl,e.setText=Ze,e.settledRows=rl,e.shortcutKey=St,e.shortcutName=xt,e.shortcutsOff=Et,e.showResultToast=ro,e.showToast=io,e.stepperHeaderItems=lu,e.storeTheme=_m,e.syncGroupSelect=Eu,e.syncSelectAll=Tu,e.syncTargets=Mp,e.themeBootScript=bm,e.themeKeyframes=jm,e.tickedKeys=_p,e.timeZoneLabel=Ws,e.timeoutFromAttribute=da,e.toInstant=q,e.todayIn=Qo,e.transitionTheme=Nm,e.validateFile=nf,e.virtualRange=jc,e.wallClockOf=Zo,e.watchSystemTheme=Sm,e.whenElementsReady=Ln,e.withTrustedLabel=xr,e.writeColumnWidths=Pc,e.wuiFetch=va,e.wuiUpload=ou,e.zoneOffsetMs=Jo,e.zoneParts=qo,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:()=>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}if(r!==e||!t.backdrop)return;let a=e.getBoundingClientRect();(n.clientX<a.left||n.clientX>a.right||n.clientY<a.top||n.clientY>a.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=n({fillText:()=>N,pluralText:()=>et,readText:()=>M,setText:()=>Ze,subscribeText:()=>Qe,textLocale:()=>$e}),Ue=`en-IN`,We=/\{([A-Za-z0-9_]+)\}/g,Ge=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,Ke,qe=new Map,Je=0,Ye=new Set,Xe=new Map;function Ze(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(!tt(i))throw RangeError(`Text ${e} must be an object of string keys.`);t.set(e,nt(e,i))}}Ke=n,qe=t,Je+=1;for(let e of Array.from(Ye))e()}function M(e,t){let n=qe.get(e);if(n===void 0)return t;let r=Xe.get(e);if(r!==void 0&&r.version===Je&&r.english===t&&it(r.merged,t))return r.merged;let i=rt(e,n,t);return Xe.set(e,{version:Je,english:t,merged:i}),i}function Qe(e){return Ye.add(e),()=>{Ye.delete(e)}}function $e(){return Ke??Ue}function N(e,t){return e.replace(We,(e,n)=>Ge(t,n)?String(t[n]):e)}function et(e,t,n,r){let i=`${t}Other`;if(!Ge(e,i))throw RangeError(`Plural text ${t} has no ${i} key; every plural needs its Other form.`);let a=new Intl.PluralRules($e()).select(n),o=`${t}${a.charAt(0).toUpperCase()}${a.slice(1)}`,s=e[Ge(e,o)?o:i];if(s===void 0)throw RangeError(`Plural text ${t} has no ${o} key.`);return N(s,{count:n,...r})}function tt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function nt(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 rt(e,t,n){let r={};for(let[i,a]of Object.entries(t)){let t=Ge(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=at(t);for(let t of at(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 it(e,t){let n=Object.keys(t);return Object.keys(e).length===n.length&&n.every(t=>Ge(e,t))}function at(e){return Array.from(e.matchAll(We),e=>e[1]??``)}var ot={closeLabel:`Close`,helpLabel:`Show these shortcuts`,nextItemLabel:`Next item`,openItemLabel:`Open the item`,previousItemLabel:`Previous item`,selectItemLabel:`Select the item`,sheetTitle:`Keyboard shortcuts`},st=n({SHORTCUTS_OFF_ATTRIBUTE:()=>lt,SHORTCUT_EVENT:()=>dt,SHORTCUT_SCOPE_ATTRIBUTE:()=>ut,ariaKeyShortcuts:()=>Ct,inShortcutScope:()=>Dt,isTypingTarget:()=>wt,listKeys:()=>pt,moveFocus:()=>kt,runShortcut:()=>Ot,selectKey:()=>mt,shortcutKey:()=>St,shortcutName:()=>xt,shortcutText:()=>ft,shortcutsOff:()=>Et}),ct=()=>M(`shortcutKeys`,ot),lt=`data-wui-shortcuts`,ut=`data-shortcut-scope`,dt=`wui:shortcut`,ft=()=>({title:ct().sheetTitle,close:ct().closeLabel,help:ct().helpLabel}),pt=()=>[{key:`J`,label:ct().nextItemLabel},{key:`K`,label:ct().previousItemLabel},{key:`Enter`,label:ct().openItemLabel}],mt=()=>({key:`X`,label:ct().selectItemLabel}),ht={"/":`slash`,"?":`help`,Escape:`esc`,Esc:`esc`,Enter:`enter`},gt={esc:`Esc`,escape:`Esc`,enter:`Enter`,slash:`/`,help:`?`},_t={esc:`Escape`,ctrl:`Control`,cmd:`Meta`,option:`Alt`,opt:`Alt`},vt=new Set([`checkbox`,`radio`,`button`,`submit`,`reset`,`range`,`color`,`file`,`image`]),yt=new Set([`textbox`,`searchbox`,`combobox`]),bt=`a[href], button, summary, input, select, textarea, [role="button"], [role="link"], [role="menuitem"], [role="option"], [role="tab"], [role="checkbox"], [role="switch"]`;function xt(e){if(!e||e.ctrlKey||e.metaKey||e.altKey)return null;let t=e.key;return typeof t!=`string`||!t?null:ht[t]?ht[t]:t.length===1&&t.trim()?t.toLowerCase():null}function St(e){let t=String(e??``).trim();return t.length===1?t.toUpperCase():gt[t.toLowerCase()]??t}function Ct(e){return String(e??``).trim().split(/\s+/).filter(Boolean).map(e=>_t[e.toLowerCase()]??(e.length===1?e.toUpperCase():e)).join(`+`)}function wt(e){if(!e||!Tt(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!vt.has(t.toLowerCase())}return yt.has(e.getAttribute?.(`role`))}function Tt(e){return e.nodeType===1}function Et(e=typeof document>`u`?null:document){return e?.documentElement?.getAttribute(lt)===`off`}function Dt(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 Ot(e,t,n=null){let r=e.target instanceof Node?e.target:null;if(!t||e.defaultPrevented||Et(r?.ownerDocument??void 0))return!1;let i=xt(e);if(!i||!Dt(r,n)||wt(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(bt)?!1:(e.preventDefault(),a(e),!0)}function kt(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 At(e){"@babel/helpers - typeof";return At=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},At(e)}function jt(e,t){if(At(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(At(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Mt(e){var t=jt(e,`string`);return At(t)==`symbol`?t:t+``}function P(e,t,n){return(t=Mt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nt=2,Pt=`wui-filter-popover-pinned`,Ft=`.wui-filter-popover-trigger`,It=`.wui-filter-popover-panel`,Lt=`.wui-filter-popover-head`,Rt=`input:not([type]),input[type="text"],input[type="search"]`,zt=`a[href],button:not([disabled]),input:not([disabled]):not([type='hidden']),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex='-1'])`;function Bt(){try{return sessionStorage.getItem(Pt)===`1`}catch{return!1}}function Vt(e){try{e?sessionStorage.setItem(Pt,`1`):sessionStorage.removeItem(Pt)}catch(e){if(!(e instanceof DOMException))throw e}}function Ht(e){if(e===null||e instanceof Node)return e;throw TypeError(`event target is not a node`)}function Ut(e,t){let n=e?.querySelector(t)??null;return n instanceof HTMLElement?n:null}var Wt=class extends s{constructor(){super(),P(this,`_doc`,void 0),P(this,`_timer`,void 0),P(this,`_sticky`,void 0),P(this,`_closingByCode`,void 0),P(this,`_inside`,void 0),P(this,`_pendingSubmit`,void 0),P(this,`_onEnter`,void 0),P(this,`_onLeave`,void 0),P(this,`_onClick`,void 0),P(this,`_onChange`,void 0),P(this,`_onListClose`,void 0),P(this,`_onFocusOut`,void 0),P(this,`_onKeyDown`,void 0),P(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(Ht(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){Vt(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(Ht(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(Rt))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&&Ot(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),Bt()&&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 Ut(this,Ft)}get _panel(){return Ut(this,It)}get _pin(){let e=this.querySelector(`${Lt} 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&&(Ut(n.querySelector(`.wui-filter-popover-grid`),zt)??Ut(n,zt))?.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 Gt(){i(`wui-filter-popover`,Wt)}var Kt=class extends s{static get observedAttributes(){return[`open`,`static`,`no-escape`]}constructor(){super(),P(this,`_doc`,void 0),P(this,`_release`,void 0),P(this,`_opener`,void 0),P(this,`_returnTo`,void 0),P(this,`_session`,void 0),P(this,`_closing`,void 0),P(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`),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?.()}_dialog(){let e=this.querySelector(`dialog`);if(!(e instanceof HTMLDialogElement))throw TypeError(`wui-modal has no <dialog>`);return e}},qt=n({avatarNode:()=>Yt,safeImageUrl:()=>Jt}),Jt=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 Yt(e,t=`wui-opt-avatar`){let n=Jt(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 Xt=n({devError:()=>Qt,devWarn:()=>Zt});function Zt(e,...t){console.warn(e,...t)}function Qt(e,...t){console.error(e,...t)}var $t=n({BUSY_CLASS:()=>en,isInert:()=>F,isReadOnly:()=>tn,syncFieldState:()=>nn}),en=`wui-field-busy`,tn=e=>e.hasAttribute(`readonly`),F=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`readonly`)||e.hasAttribute(`loading`);function nn(e,t){let n=e.hasAttribute(`loading`);n?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),t&&(t.classList.toggle(en,n),tn(e)?t.setAttribute(`aria-readonly`,`true`):t.removeAttribute(`aria-readonly`))}var rn=n({syncFormMirror:()=>cn,syncFormMirrors:()=>ln}),an=`data-wui-mirror`;function on(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 sn(e){let t=document.createElement(`input`);return t.type=`hidden`,t.setAttribute(an,``),e.appendChild(t),t}function cn(e,t){let n=e.getAttribute(`name`)??``,r=e.querySelector(`:scope > input[${an}]`),i=r instanceof HTMLInputElement?r:null;n?(i||=sn(e),on(e,i,n,t)):i?.remove()}function ln(e,t){let n=e.getAttribute(`name`)??``,r=[...e.querySelectorAll(`:scope > input[${an}]`)].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)=>{on(e,r[i]??sn(e),n,t)})}var un=n({hasOwn:()=>dn}),dn=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,fn=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`}),pn=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:[]},"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(fn).join(`, `)},shell:{entries:[`global/parts/shell.ts`],tags:[],markers:`[data-app-shell]`},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:`formatters.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 mn=`ui-elements/`;function hn(e){let t=pn[e];if(t===void 0)throw Error(`[webority-ui] No on-demand element chunk is named ${e}.`);return t}function gn(e){let t=hn(e);if(!t.selfContained)return`${mn+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 _n=n({CHUNK_DIR:()=>mn,CHUNK_RETRY_MS:()=>bn,ELEMENTS_DEFINED_EVENT:()=>vn,ELEMENTS_LOAD_ERROR_EVENT:()=>yn,assetUrl:()=>Rn,chunkReadyCheckKeys:()=>zn,loadChunk:()=>L,registerChunkReadyCheck:()=>I,startElementLoader:()=>Fn,stopElementLoader:()=>In,whenElementsReady:()=>Ln}),vn=`wui-elements:defined`,yn=`wui-elements:load-error`,bn=1e3,xn={"ui-elements/carousel.global.js":`df7f817e7659`,"ui-elements/data-table.global.js":`11c8c89e9f77`,"ui-elements/dock.global.js":`7c950e459089`,"ui-elements/hover-card.global.js":`c8516ccaca6c`,"ui-elements/navigation-menu.global.js":`8289d5c0e794`,"ui-elements/notification-center.global.js":`23c86da972fd`,"ui-elements/onboarding-checklist.global.js":`85d8f2157853`,"ui-elements/otp.global.js":`0287a3785219`,"ui-elements/overflow.global.js":`a85347117097`,"ui-elements/rating.global.js":`c72f7d966020`,"ui-elements/record-pager.global.js":`d04dc2b0ad5a`,"ui-elements/relative-time.global.js":`ced2880d5e96`,"ui-elements/shortcuts.global.js":`29cc76467193`,"ui-elements/show-more.global.js":`3f88a463b372`,"ui-elements/calendar-views.global.js":`08a14eff9c13`,"ui-elements/truncate.global.js":`464c2254f665`,"ui-elements/whats-new.global.js":`ea58e7d5ba6c`,"ui-elements/offline-banner.global.js":`62c7793e022b`,"ui-elements/code-block.global.js":`f7cc4d58d916`,"ui-elements/command-palette.global.js":`7f44aaae06f0`,"ui-elements/comment-thread.global.js":`8597b1a528de`,"ui-elements/consent-banner.global.js":`f0d37384388e`,"ui-elements/context-menu.global.js":`857d0d048568`,"ui-elements/date-range.global.js":`2b3c9ff78106`,"ui-elements/date-time.global.js":`a48aefc73a15`,"ui-elements/datepicker.global.js":`05ec6614daee`,"ui-elements/mini-calendar.global.js":`e5af13eb27db`,"ui-elements/drawer.global.js":`b0eecf679ac1`,"ui-elements/dropdown.global.js":`2e2972e03ffb`,"ui-elements/entry-grid.global.js":`65e0ff3461d9`,"ui-elements/gantt.global.js":`05d976d93bc4`,"ui-elements/image-crop.global.js":`c8896d7f5007`,"ui-elements/inline-edit.global.js":`77f022dc05c9`,"ui-elements/kanban.global.js":`409ce77c8ffc`,"ui-elements/dashboard-grid.global.js":`817280b0674c`,"ui-elements/lead-popup.global.js":`00c466d077dc`,"ui-elements/lightbox.global.js":`58ae70187fb8`,"ui-elements/org-tree.global.js":`5a95b29c7cbb`,"ui-elements/markdown.global.js":`a30dab83c35f`,"ui-elements/phone.global.js":`95a2e5e59126`,"ui-elements/popover.global.js":`a87c533f62db`,"ui-elements/saved-views.global.js":`4c18e2fb65fc`,"ui-elements/glyphs.global.js":`1dac934ddf0e`,"ui-elements/select-chips.global.js":`4f49c69fdc0c`,"ui-elements/select-recents.global.js":`c6a5457b7459`,"ui-elements/select-search.global.js":`bce7dbd76145`,"ui-elements/select-window.global.js":`57ba279cf2bb`,"ui-elements/table-export.global.js":`889f0978fab6`,"ui-elements/server.global.js":`c6d335c71b4e`,"ui-elements/shell.global.js":`10a7f7c88541`,"ui-elements/slider.global.js":`f22ae33e5537`,"ui-elements/sortable.global.js":`a86149fbb223`,"ui-elements/status-icon.global.js":`f51ce3e9778b`,"ui-elements/timepicker.global.js":`9c35e15fc3af`,"ui-elements/tour.global.js":`689d3c83c588`,"ui-elements/tree.global.js":`02e9db6de485`,"ui-elements/tree-picker.global.js":`1da0bddf4c94`,"ui-elements/wizard.global.js":`108e7c2282ec`,"ui-chart.global.js":`3e60b2bdf273`,"ui-calendar.global.js":`e4de59e25e99`,"ui-rich-text.global.js":`64dcebd2efc3`,"ui-file-viewer.global.js":`97495f2e4ffa`,"ui-phone.global.js":`c646775bc1d1`},Sn=new Map;for(let[e,t]of Object.entries(pn))for(let n of t.tags)Sn.set(n,e);var Cn=[...Sn.keys()].join(`,`),wn=[];for(let[e,t]of Object.entries(pn))t.markers!==void 0&&wn.push([e,t.markers]);var Tn=[...new Set(wn.flatMap(([,e])=>[...e.matchAll(/\[([a-z-]+)\]/g)]).flatMap(e=>e[1]===void 0?[]:[e[1]]))],En=null,Dn=``,On=!1,kn=null,An=new Map,jn=new Map,Mn=`The file ran but did not hand over its modules; see the error above.`,Nn=`The file has no ready check, so the loader cannot tell whether it ran.`;function Pn(){let e=document.currentScript;return e instanceof HTMLScriptElement?e:null}function Fn(e=Pn()){On||(On=!0,En=e?.src?e.src:null,Dn=e?.nonce||``,Un(document),kn=new MutationObserver(e=>{for(let t of e)if(t.type===`attributes`)t.target instanceof Element&&Un(t.target);else for(let e of t.addedNodes)e instanceof Element&&Un(e)}),kn.observe(document.documentElement,{childList:!0,subtree:!0,...Tn.length>0?{attributes:!0,attributeFilter:Tn}:{}}))}function In(){kn?.disconnect(),kn=null,On=!1,En=null,Dn=``,An.clear()}function Ln(e=document){return Promise.all([...Hn(e)].map(e=>L(e))).then(()=>void 0)}function Rn(e){if(En===null)throw Error(`The on-demand element files have no address to load from.`);let t=new URL(e,En);return t.search=dn(xn,e)?`?v=${xn[e]}`:``,t.href}function I(e,t){hn(e),jn.set(e,t)}function zn(){return[...jn.keys()]}function L(e){let t=An.get(e)?.promise??null;if(t!==null)return t;let n=hn(e),{tags:r}=n,i=gn(e),a=()=>Promise.all(r.map(e=>customElements.whenDefined(e))),o={status:`loading`,promise:null},s=new Promise((t,s)=>{let c=``,l=()=>{kn&&Object.keys(pn).every(e=>An.get(e)?.status===`loaded`||An.get(e)?.status===`failed`)&&kn.disconnect()},u=()=>{o.status=`loaded`,l(),document.dispatchEvent(new CustomEvent(vn,{detail:{chunk:e,tags:r}})),t()},d=t=>{o.status=`failed`,l(),Qt(`[webority-ui] Could not load ${c} for ${r.length?r.join(`, `):e}.${t?` ${t.message}`:``}`),document.dispatchEvent(new CustomEvent(yn,{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,Dn&&(o.nonce=Dn),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&&!jn.has(e)){d(Error(Nn));return}let t=jn.get(e);t!==void 0&&!t()?d(Error(Mn)):a().then(u)}),o.addEventListener(`error`,()=>{o.remove(),i?d():setTimeout(()=>f(t,!0),bn)}),document.head.append(o)},p=[...document.scripts].find(e=>new URL(e.src,location.href).pathname.endsWith(`/${i}`));if(p!==void 0){let t=jn.get(e);if(r.length>0||t===void 0&&n.selfContained){a().then(u);return}if(t===void 0){d(Error(Nn));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(Mn)))};p.addEventListener(`load`,o),window.addEventListener(`load`,o),p.addEventListener(`error`,()=>{i||(i=!0,d())})}else{try{c=Rn(i)}catch(e){d(e instanceof Error?e:void 0);return}f(c,!1)}});return o.promise=s,An.set(e,o),s}function Bn(e){return Sn.has(e.localName)&&!customElements.get(e.localName)}function Vn(e,t){let n=Sn.get(t.localName);n!==void 0&&Bn(t)&&e.add(n)}function Hn(e){let t=new Set;e instanceof Element&&Vn(t,e);for(let n of e.querySelectorAll(Cn))Vn(t,n);for(let[n,r]of wn)An.get(n)?.status!==`loaded`&&(e instanceof Element&&e.matches(r)||e.querySelector(r)!==null)&&t.add(n);return t}function Un(e){for(let t of Hn(e))Promise.allSettled([L(t)])}var Wn={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`}]]},Gn=n({svgNodes:()=>qn,svgRoot:()=>Jn}),Kn=`http://www.w3.org/2000/svg`;function qn(e){return e.map(Yn)}function Jn(e,t){let n=document.createElementNS(Kn,`svg`);return Xn(n,e),n.append(...qn(t)),n}function Yn(e){let[t,n,r]=e,i=document.createElementNS(Kn,t);return Xn(i,n),typeof r==`string`?i.append(document.createTextNode(r)):r&&i.append(...qn(r)),i}function Xn(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 Zn=n({GLYPH_CHUNK:()=>Qn,GLYPH_PENDING_ATTRIBUTE:()=>$n,glyphNode:()=>R,lazyGlyphsRegistered:()=>ur,registerGlyphs:()=>dr}),Qn=`glyphs`,$n=`data-wui-glyph-pending`,er=`svg[${$n}]`,tr=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,nr={...Wn},rr=new Map,ir=!1,ar=!1,or=null;function sr(e){return dn(nr,e)?nr[e]:void 0}function cr(e,t,n,r){return{class:n?`wui-icon ${n}`:`wui-icon`,"data-icon":e,[$n]:r?!0:void 0,width:t,height:t,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`}}function R(e,{size:t=16,className:n=``}={}){let r=sr(e);if(r!==void 0){let i=`${e}|${t}|${n}`,a=rr.get(i);return a===void 0&&(a=Jn(cr(e,t,n,!1),r),rr.set(i,a)),Be(a.cloneNode(!0),SVGSVGElement,`glyphNode: ${e} did not clone to an svg`)}return ir||!tr.test(e)?null:(Promise.allSettled([L(Qn)]),Jn(cr(e,t,n,!0),[]))}function lr(e){let t=e instanceof Element&&e.matches(er)?[e]:[];for(let n of[...t,...e.querySelectorAll(er)]){let e=sr(n.getAttribute(`data-icon`)??``);e===void 0?n.remove():(n.removeAttribute($n),n.replaceChildren(...qn(e)))}}function ur(){return ar}function dr(e){Object.assign(nr,e),ir=!0,ar=!0,lr(document),or===null&&(or=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof Element&&lr(e)}),or.observe(document.documentElement,{childList:!0,subtree:!0}))}var fr=n({isImeComposing:()=>pr,isImeSafeEnter:()=>mr});function pr(e){return e.isComposing||e.keyCode===229}function mr(e){return e.key===`Enter`&&!pr(e)}var hr=n({createListboxKeyNav:()=>_r,moveActiveRow:()=>vr}),gr=e=>e.target instanceof Element?e.target.tagName:void 0;function _r(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=gr(e)===`INPUT`||gr(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(mr(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&&gr(e)!==`INPUT`&&gr(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 vr(e,t){let n=e.querySelector(`.is-active`);n!==t&&(n?.classList.remove(`is-active`),t?.classList.add(`is-active`))}var yr=n({TRUSTED_LABEL:()=>br,optionLabelNodes:()=>Er,optionText:()=>Dr,stripTags:()=>Cr,withTrustedLabel:()=>xr}),br=Symbol(`wui.trustedLabel`),xr=(e,t)=>{let n=document.createDocumentFragment();return n.append(t.cloneNode(!0)),{...e,[br]:n}},Sr=e=>`wui-flag wui-flag-${e}`,Cr=e=>String(e??``).replace(/<[^>]*>/g,``),wr=e=>{if(!e)return null;let t=String(e).toLowerCase().replace(/[^a-z0-9-]/g,``);return t?R(t):null},Tr=e=>{let t=String(e??``).toLowerCase();return/^[a-z]{2}$/.test(t)?j(`span`,{class:Sr(t),"aria-hidden":`true`}):null};function Er(e){if(e==null)return[];let t=Tr(e.flag),n=wr(e.icon),r=e[br],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 Dr=e=>{if(e==null)return``;let t=e[br];return t?t.textContent??``:Cr(e.label)},Or=n({SELECT_TEXT:()=>kr}),kr={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…`},Ar=n({clearOptions:()=>Rr,drawn:()=>Nr,filterOptions:()=>Mr,nodesSignature:()=>Fr,optionRow:()=>Kr,posAttrMap:()=>Pr,refreshWindow:()=>Hr,registerWindowImpl:()=>Lr,renderOptions:()=>zr,revealRow:()=>Ur,rowId:()=>Br,rowIndexByPrefix:()=>Gr,rowIndexOfValue:()=>Wr,windowImplRegistered:()=>Ir}),jr=()=>M(`select`,kr);function Mr(e,t){let n=String(t??``).trim().toLowerCase();return n?e.filter(e=>[Dr(e),e.description,e.meta].some(e=>String(e??``).toLowerCase().includes(n))):e}var Nr=new WeakMap,Pr=e=>e?{"data-index":String(e.index),"aria-setsize":String(e.size),"aria-posinset":String(e.index+1)}:{},Fr=e=>e.map(e=>e instanceof Element?e.outerHTML:e.textContent??``).join(``),z;function Ir(){return z!==void 0}function Lr(e){z=e}function Rr(e){z?.clear(e),Nr.delete(e),e.replaceChildren()}function zr(e,t,n={}){let{selected:r=[],query:i=``,status:a=`idle`,emptyText:o=jr().emptyText,searchingText:s=jr().searchingText,loadingMoreText:c=jr().loadingMoreText,hintText:l=jr().hintText,actionRow:u=[],recents:d=null}=n,f=new Set(r.map(String)),p=Mr(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=z,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:Br(m,t),class:`wui-select-option wui-select-add`,"data-value":String(e.value??``),"data-custom":`true`,"aria-selected":`false`,...Pr(S(t))},e.label)},w=e=>{let t=C++;return Kr(e,Br(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:Fr(n),postSig:Fr(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=Fr(re);return Nr.get(e)===ie||(Nr.set(e,ie),e.replaceChildren(...re)),{rows:C,windowed:!1,long:y}}var Br=(e,t)=>`${e}-opt-${t}`,Vr=e=>[...e.querySelectorAll(`.wui-select-option`)];function Hr(e){return z?z.refresh(e):!1}function Ur(e,t){return z?z.reveal(e,t):Vr(e)[t]??null}function Wr(e,t){if(z)return z.indexOfValue(e,t);let n=new Set(t.map(String));return Vr(e).findIndex(e=>n.has(e.dataset.value??``))}function Gr(e,t){return z?z.indexByPrefix(e,t):Vr(e).findIndex(e=>(e.textContent??``).trim().toLowerCase().startsWith(t))}function Kr(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,...Pr(r)},o=j(`span`,{class:`wui-select-check`,"aria-hidden":`true`},R(`check`));if(!e.description&&!e.meta)return j(`button`,{type:`button`,class:`wui-select-option${n?` selected`:``}`,...a},Yt(e),j(`span`,{class:`wui-select-opt-name`},...Er(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},Yt(e),j(`span`,{class:`wui-select-option-text`},j(`span`,{class:`wui-opt-label`},...Er(e)),s),c,o)}var qr=Object.freeze([`single`,`multiple`,`search`,`tag`,`country`]),B=e=>e===`multiple`||e===`tag`,Jr=n({registerSelectPart:()=>Xr,selectPart:()=>Zr}),Yr=new Map;function Xr(e,t){Yr.set(e,t)}function Zr(e){return Yr.get(e)}var Qr={chips:`select-chips`,search:`select-search`,country:`phone`,recents:`select-recents`};function $r(e){let t=dn(Qr,e)?Qr[e]:void 0;if(!t)return Promise.reject(Error(`Unknown <wui-select> part: ${e}.`));let n=Zr(e);return n?Promise.resolve(n):L(t).then(()=>A(Zr(e),`The ${e} part of <wui-select> did not register.`))}var ei=n({searchesRemotely:()=>ti}),ti=e=>typeof e.loadOptions==`function`||!!e.getAttribute(`source`)||e.hasAttribute(`remote`),ni=()=>L(`select-window`),ri={requiredFieldMessage:`Please fill in this field.`},ii={clearLabel:`Clear search`,placeholder:`Search…`,searchLabel:`Search`},ai=n({WuiSelect:()=>li}),V=()=>M(`select`,kr),oi=()=>M(`search`,ii),si=()=>M(`field`,ri),ci=160,li=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(),P(this,`_internals`,void 0),P(this,`_value`,void 0),P(this,`_optionsProp`,void 0),P(this,`_partOptions`,void 0),P(this,`_known`,void 0),P(this,`_loadOptionsFn`,void 0),P(this,`_validateFn`,void 0),P(this,`_declared`,void 0),P(this,`_query`,void 0),P(this,`_ownsFilter`,void 0),P(this,`_active`,void 0),P(this,`_rows`,void 0),P(this,`_windowed`,void 0),P(this,`_windowLoad`,void 0),P(this,`_windowFailed`,void 0),P(this,`_scrollFrame`,void 0),P(this,`_endFrame`,void 0),P(this,`_status`,void 0),P(this,`_error`,void 0),P(this,`_nav`,void 0),P(this,`_parts`,void 0),P(this,`_partSig`,void 0),P(this,`_partsMounted`,void 0),P(this,`_partToken`,void 0),P(this,`_rendered`,void 0),P(this,`_searchShown`,void 0),P(this,`_defaultValue`,void 0),P(this,`_warnedMode`,void 0),P(this,`_warnedDensity`,void 0),P(this,`_hoverTimer`,void 0),P(this,`_hoverOpened`,void 0),P(this,`_onHoverOver`,void 0),P(this,`_onHoverOut`,void 0),P(this,`_panelShown`,void 0),P(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)},pi)))},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()},mi)))}}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=bi(n,B(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=bi(this._value,B(this.mode)),this._partOptions=null,this._known.clear(),this._ensureParts()),(e===`source`||e===`remote`||e===`recents-key`)&&this._ensureParts(),vi.has(e)?this._rendered&&(this._drawValue(),this.renderList()):_i.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`:di(e)?e:(e!==this._warnedMode&&(this._warnedMode=e,Zt(`<wui-select> mode "${e}" is not one of ${qr.join(`, `)}; it is treated as "single".`)),`single`)}_checkDensity(){let e=this.getAttribute(`density`);e===null||fi.includes(e)||e===this._warnedDensity||(this._warnedDensity=e,Zt(`<wui-select> density "${e}" is not one of ${fi.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=bi(e,B(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(){F(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=Mr(this._listOptions(),t).length+n.length+(r?.options.length??0),this._windowed=!1,Rr(e.list),this._anchorMenu();return}let i=zr(e.list,this._listOptions(),{selected:this._selectedValues(),query:t,status:this._status,emptyText:this.getAttribute(`empty-text`)||V().emptyText,searchingText:this.getAttribute(`searching-text`)||V().searchingText,loadingMoreText:V().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-ci))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=B(t),r=t===`tag`,i=n&&(r||this.hasAttribute(`allow-custom`));this._value=bi(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=bi(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?R(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":V().clearSelectionLabel,hidden:!0},R(`x`)):null,R(`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`?V().countrySearchPlaceholder:oi().placeholder),te=j(`div`,{class:`wui-select-menu wui-select-menu-fixed`,popover:`auto`},ee?j(`div`,{class:`wui-select-search`},R(`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":oi().clearLabel,hidden:!0},R(`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(),nn(this,this.querySelector(`.wui-select-control`)),this._syncUnderline(),this._mountParts(e)}_accessibleName(){return this.getAttribute(`aria-label`)||this.getAttribute(`placeholder`)||V().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`)??Ei(e).trim(),label:t.textContent??``,selected:e.hasAttribute(`selected`)};for(let[t,r]of yi){let i=e.getAttribute(t);i&&(n[r]=i)}return e.hasAttribute(`disabled`)&&(n.disabled=!0),xr(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`)||gi()[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(){B(this.mode)?ln(this,this._selectedValues()):cn(this,this._value)}_drawValue(){let e=this._refs();if(!e.value)return;let t=B(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?Er(n):r?[r]:[])}_syncTitle(e){let t=this.querySelector(`.wui-select-control`);if(!t)return;let n=e&&!this.hasAttribute(`title`)?Dr(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=!B(this.mode)&&this._hasValue()?Yt({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},si().requiredFieldMessage,t instanceof HTMLElement?t:void 0)}else e.setValidity({})}}_syncReset(){let e=H(this,`.wui-select-reset`,HTMLElement);e&&(e.hidden=!(this.hasAttribute(`clearable`)&&this._hasValue()&&!F(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=H(this,`.wui-select-error`,HTMLElement);e&&(e.textContent=this._error,e.hidden=!this._error),this._syncInvalid()}_refs(){return{control:H(this,`.wui-select-control`,HTMLElement),value:H(this,`.wui-select-value`,HTMLElement),menu:H(this,`.wui-select-menu`,HTMLElement),list:H(this,`.wui-select-options`,HTMLElement),search:H(this,`.wui-select-search input`,HTMLInputElement),input:H(this,`.wui-select-draft`,HTMLInputElement)}}_menuOpen(){let e=H(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`)||F(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>hi}_visible(){let e=this._refs();return e.list?Ti(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?Ur(n.list,e):null)),vr(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&&Hr(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=H(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?Wr(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=H(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:Ei(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);B(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`&&ti(this)}_onKeyDown(e){if(!F(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`||mr(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(H(this,`.wui-select`,HTMLElement),`The select wrapper is missing.`),i=H(this,`.wui-select-search .wui-select-clear`,HTMLElement),a=H(this,`.wui-select-reset`,HTMLElement);this._nav=_r({getVisibleOptions:()=>this._visible(),getActive:()=>this._active,setActive:e=>this._setActive(e),getCount:()=>this._rowCount(),getOptionAt:e=>this._rowEl(e),findByPrefix:e=>this._windowed?Gr(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()&&!F(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(F(this))return;this._refs().input?.focus(),!this._menuOpen()&&this._draftOpens()&&this._open({focus:!1});return}if(e.target instanceof HTMLInputElement){!this._menuOpen()&&!F(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():F(this)||this._open({focus:!0})}),a?.addEventListener(`click`,e=>{e.stopPropagation(),this.commit(B(this.mode)?[]:``),this._close(),t.focus()}),n.addEventListener(`click`,n=>{let r=wi(n).closest(`.wui-select-option`);if(r instanceof HTMLElement&&(this._pick(r),B(this.mode))){let n=this.querySelector(`.wui-select-draft`);(e.search??(n instanceof HTMLElement?n:t)).focus()}}),n.addEventListener(`mousedown`,e=>{B(this.mode)&&e.target instanceof Element&&e.target.closest(`.wui-select-option`)&&e.preventDefault()}),n.addEventListener(`mousemove`,e=>{let t=wi(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=H(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=Si(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=>Di(this,e))).then(e=>{n===this._partToken&&(this._parts=e.filter(e=>e!==null),this._mountParts())})}_loadWindow(){this._windowLoad===null&&(this._windowLoad=ni().then(()=>this.renderList(),()=>{this._windowFailed=!0,document.dispatchEvent(new CustomEvent(yn,{bubbles:!0,composed:!0,detail:{chunk:`select-window`}})),this.setError(V().partLoadMessage)}))}_mountParts(e={draft:``,query:``}){if(!this._parts||this._partsMounted||!this._rendered||!this.isConnected)return;this._partsMounted=!0;let t=ui(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??``}}};P(li,`formAssociated`,!0);var ui=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}},di=e=>qr.includes(e),fi=[`comfortable`,`compact`],pi=150,mi=250,hi=10,gi=()=>{let e=V();return{single:e.placeholder,search:e.placeholder,multiple:e.placeholder,tag:e.tagPlaceholder,country:e.countryPlaceholder}},_i=new Set([`countries`,`suggested`,`suggested-label`,`all-countries-label`,`max-tags`,`pattern`,`collapse-chips`,`source`,`remote`,`min-chars`]),vi=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`]),yi=[[`icon`,`icon`],[`description`,`description`],[`meta`,`meta`],[`group`,`group`],[`avatar`,`avatar`],[`initials`,`initials`],[`disabled-hint`,`disabledHint`]],bi=(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),xi=(e,t)=>t===`multiple`?ti(e)?[`chips`,`search`]:[`chips`]:t===`search`?[`search`]:t===`country`?[`country`]:t===`tag`?ti(e)?[`chips`,`search`]:[`chips`]:[],Si=(e,t)=>e.hasAttribute(`recents-key`)?[`recents`,...xi(e,t)]:xi(e,t),Ci=e=>typeof e==`object`&&!!e&&`default`in e&&typeof e.default==`function`,wi=e=>{if(e.target instanceof Element)return e.target;throw Error(`The event target is not an element.`)},H=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},Ti=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement),Ei=e=>{let t=e.textContent;if(t===null)throw Error(`The element has no text.`);return t},Di=(e,t)=>$r(t).then(e=>{if(!Ci(e))throw Error(`The part ${t} has no default export.`);return e.default()}).catch(()=>(document.dispatchEvent(new CustomEvent(yn,{bubbles:!0,composed:!0,detail:{chunk:t}})),e.setError(V().partLoadMessage),null)),Oi=n({TABLE_EXPORT_CHUNK:()=>ki,loadTableExport:()=>ji,registerTableExport:()=>Mi,tableExportRegistered:()=>Ni}),ki=`table-export`,Ai=null;function ji(){return Ai===null?L(ki).then(()=>{if(Ai===null)throw Error(`[webority-ui] The table-export chunk ran without handing over its writers.`);return Ai}):Promise.resolve(Ai)}function Mi(e){Ai=e}function Ni(){return Ai!==null}function Pi(){I(`glyphs`,ur),I(`select-chips`,()=>Zr(`chips`)!==void 0),I(`select-recents`,()=>Zr(`recents`)!==void 0),I(`select-search`,()=>Zr(`search`)!==void 0),I(`select-window`,Ir),I(`table-export`,Ni)}var Fi={closeLabel:`Close`,error:`Error`,failedText:`That did not work. Try again.`,loading:`Loading...`,moreText:`more`,success:`Done`},Ii=n({TOAST_ACTION_METHODS:()=>Li,parseToastAction:()=>Bi}),Li=Object.freeze([`POST`,`PUT`,`PATCH`,`DELETE`]),Ri=e=>(Zt(`[@webority/ui-elements] Wui-Toast-Action: ${e}; the toast shows no action.`),null),zi=e=>typeof e==`object`&&!!e;function Bi(e){if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch{return Ri(`the value is not JSON`)}let n=zi(t)?t:{},r=n.label,i=n.url,a=String(n.method??`POST`).toUpperCase();return typeof r!=`string`||r===``||typeof i!=`string`||i===``?Ri(`label and url must be non-empty strings`):Li.includes(a)?{label:r,url:i,method:a}:Ri(`method must be one of ${Li.join(`, `)}`)}var Vi=n({FLASH_STORAGE_KEY:()=>Wi,FLASH_VARIANTS:()=>Hi,isToastVariant:()=>Ui,storeFlash:()=>Gi,takeStoredFlash:()=>qi}),Hi=Object.freeze([`success`,`info`,`warning`,`danger`]),Ui=e=>Hi.some(t=>t===e),Wi=`wui.flash`;function Gi(e,t,n){e&&window.sessionStorage.setItem(Wi,JSON.stringify({message:e,variant:t,action:n??null}))}var Ki=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`||!Li.includes(r))throw TypeError(`stored flash action is not an action.`);return{label:t,url:n,method:r}};function qi(){let e=window.sessionStorage.getItem(Wi);if(e===null)return null;window.sessionStorage.removeItem(Wi);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`||!Ui(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:Ki(i)}}var Ji=n({parseServerHtml:()=>Yi});function Yi(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var Xi=n({wuiHost:()=>Zi});function Zi(){return A(window.WUI,`window.WUI is not defined: the Razor behaviour script did not load on this page.`)}var Qi=n({CSRF_META_NAME:()=>$i,DEFAULT_CSRF_HEADER:()=>ea,DEFAULT_TIMEOUT_MS:()=>ua,HTTP_KINDS:()=>ia,WUI_HEADERS:()=>U,WUI_REQUEST_HEADER:()=>ra,classifyStatus:()=>ca,configureCsrf:()=>na,createRequestQueue:()=>ya,isSameOrigin:()=>sa,readCsrf:()=>oa,settleResponse:()=>_a,timeoutFromAttribute:()=>da,wuiFetch:()=>va}),$i=`wui-csrf`,ea=`RequestVerificationToken`,ta={metaName:$i,header:ea};function na({metaName:e=$i,header:t=ea}={}){ta={metaName:e,header:t}}var ra=`Wui-Request`,U=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`}),ia=Object.freeze([`ok`,`validation`,`forbidden`,`networkCheck`,`client`,`server`,`network`,`timeout`,`aborted`,`stale`,`session`]),aa=new Set([`GET`,`HEAD`]);function oa(e=document){let t=[...e.querySelectorAll(`meta`)].find(e=>e.getAttribute(`name`)===ta.metaName),n=t?.getAttribute(`content`);return!t||!n?null:{header:t.getAttribute(`data-header`)||ta.header,token:n}}var sa=e=>{try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}};function ca(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 la=e=>typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`,ua=3e4;function da(e){let t=e?.trim()??``;return/^\d+$/.test(t)?Number(t):void 0}var fa=`The ${U.refresh} response header must be {tables, regions, reloadPage}.`,pa=e=>e===`all`||Array.isArray(e)&&e.every(e=>typeof e==`string`),ma=e=>{if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch(e){throw TypeError(`The ${U.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(fa);let{tables:n,regions:r,reloadPage:i}=t;if(!pa(n)||!pa(r)||typeof i!=`boolean`)throw TypeError(fa);return{tables:n,regions:r,reloadPage:i}},ha=(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})}},ga=e=>{if(e==null)return null;try{return decodeURIComponent(e)}catch{return e}};function _a(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:ga(r(U.message)),redirect:r(U.redirect),result:r(U.result),keepOpen:r(U.keepOpen)===`1`,toastVariant:r(U.toastVariant),toastAction:Bi(r(U.toastAction)),fragment:r(U.fragment)===`1`,data:ha(t,n),next:r(U.next),refresh:ma(ga(r(U.refresh)))}}async function va(e,t={}){let n=(t.method||`GET`).toUpperCase(),r=t.navigate||(e=>window.location.assign(e)),i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[ra]:`1`,...t.headers};if(!aa.has(n)&&sa(e)){let e=oa();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`:la(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 _a(d(e))}let s=ca(o.status,o.headers);if(s===`ok`&&o.redirected&&o.headers.get(U.fragment)!==`1`&&(s=`session`),s===`session`)return r(o.status===401?o.headers.get(`Location`)||window.location.href:o.url),_a(s,o);let c=``;if(s===`ok`||s===`validation`)try{c=await o.text()}catch(e){return _a(d(e),o)}return _a(s,o,c)}finally{clearTimeout(u),s?.removeEventListener(`abort`,o)}}function ya(){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 va(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 ba=n({REFRESH_ATTR:()=>Ca,REGION_KEY_ATTR:()=>Sa,REGION_SRC_ATTR:()=>xa,refreshRegions:()=>Ea}),xa=`data-wui-region-src`,Sa=`data-wui-region-key`,Ca=`data-wui-refresh`,wa=new WeakSet,Ta=new Map;async function Ea(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(`[${xa}]`)){if(!(e instanceof HTMLElement)||e.getAttribute(`data-wui-refresh`)===`none`)continue;let r=e.getAttribute(`data-wui-region-src`)??``,i=e.getAttribute(Sa);if(!i){wa.has(e)||(wa.add(e),Qt(Error(`A [${xa}] element needs ${Sa}: ${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])=>Da(e,t)))}async function Da(e,t){let n=(Ta.get(e)??0)+1;Ta.set(e,n);let r=await va(e);if(Ta.get(e)!==n||r.kind===`aborted`||r.kind===`stale`||r.kind===`session`)return;if(!r.ok){Zt(`A region refresh failed; the region keeps its content.`,e,r.kind);return}let i=new Map;for(let e of Yi(r.html).querySelectorAll(`[${Sa}]`)){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(Sa);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?Oa(n,r):Zt(`A region refresh reply has no element for the region's key; the region keeps its content.`,e,t)}}function Oa(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);Zi().refresh(e)}var ka=n({getServerTable:()=>Na,isServerTableWired:()=>Ma,registerServerTable:()=>ja}),Aa=new WeakMap;function ja(e,t){Aa.set(e,t)}function Ma(e){return Aa.has(e)}function Na(e){let t=e instanceof Element?e.closest(`[data-wui-server]`):null;return t instanceof HTMLElement&&Aa.get(t)||null}var Pa=n({applyPlan:()=>Xa,applyRefresh:()=>Qa,holdInDialog:()=>Ga,isRefreshOff:()=>Ia,mergePlans:()=>Ba,planOf:()=>La,planReloads:()=>Va,refreshAfter:()=>Za,refreshesNothing:()=>Ka,reloadPage:()=>Ua,reloadsPage:()=>Ha,setDialogHold:()=>Wa}),Fa=null;function Ia(e){return e?.getAttribute(`data-wui-refresh`)===`none`}function La(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 Ra={never:0,auto:1,page:2},za=(e,t)=>e===`all`||t===`all`?`all`:[...new Set([...e,...t])];function Ba(e,t){return e===null?t:{tables:za(e.tables,t.tables),regions:za(e.regions,t.regions),reload:Ra[e.reload]>=Ra[t.reload]?e.reload:t.reload,message:t.message,variant:t.variant,action:t.action}}function Va(e){return e.reload===`page`||e.reload===`auto`&&document.querySelector(`[data-wui-server]`)===null}function Ha(e){let t=La(e);return t!==null&&Va(t)}function Ua(){let e=new URL(window.location.href);e.hash=``,window.location.assign(e.href)}function Wa(e){Fa=e}function Ga(e,t){return Fa?Fa(t,e):!1}function Ka(e){return e!==null&&e.tables!==`all`&&e.tables.length===0&&e.regions!==`all`&&e.regions.length===0&&e.reload===`never`}var qa=e=>[e.querySelector(`.table-wrap`)?.id??``,e.id].filter(e=>e!==``),Ja=(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(qa));for(let e of t)i.has(e)||Zt(`A refresh names the table "${e}", which is not on this page.`);r=n.filter(e=>qa(e).some(e=>t.includes(e)))}return r.filter(e=>(!t||e!==t&&!e.contains(t))&&!Ia(e))},Ya=async e=>{await Na(e)?.reload({quiet:!0})};async function Xa(e,t={}){if(t.origin&&Ga(e,t.origin))return`held`;if(Va(e)&&(e.reload===`page`||t.allowReload!==!1))return Gi(e.message,e.variant,e.action),Ua(),`reloaded`;let n=Ja(e,t.skip).map(e=>Ya(e).catch(Qt));return(e.regions===`all`||e.regions.length>0)&&n.push(Ea(e.regions).catch(Qt)),await Promise.all(n),`refreshed`}async function Za(e,t={}){let n=La(e);return n===null?`none`:Xa(n,t)}async function Qa(){await Xa({tables:`all`,regions:`all`,reload:`never`,message:null,variant:`success`,action:null},{allowReload:!1})}var $a=n({TOAST_ACTION_MS:()=>eo,runToastAction:()=>ao,showResultToast:()=>ro,showToast:()=>io}),eo=8e3,to=()=>M(`toast`,Fi);function no(e){if(!Ui(e))throw RangeError(`Unknown toast variant "${e}".`);return e}function ro(e,t=`success`){e?.message&&io(e.message,t,e.toastAction)}function io(e,t,n=null){n?Zi().toast(e,{variant:no(t),duration:eo,action:{label:n.label,onClick:e=>void ao(n,e)}}):Zi().toast(e,{variant:no(t)})}async function ao(e,t=null){let n=await va(e.url,{method:e.method});n.kind!==`session`&&n.kind!==`aborted`&&(n.ok?(Ha(n)||ro(n,n.toastVariant||`success`),await Za(n,{origin:t})):Zi().toast(n.message||to().failedText,{variant:`danger`}))}var oo=n({HTTP_FAILURE_TEXT:()=>so}),so={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.`},co=n({SERVER_CHUNK:()=>lo,SHELL_CHUNK:()=>uo,loadServer:()=>mo,loadShell:()=>_o,loadedServer:()=>ho,loadedShell:()=>vo,registerServer:()=>go,registerShellParts:()=>yo}),lo=`server`,uo=`shell`,fo=null,po=null;I(lo,()=>fo!==null),I(uo,()=>po!==null);function mo(){return fo===null?L(lo).then(()=>{if(fo===null)throw Error(`[webority-ui] The server chunk ran without handing over its modules.`);return fo}):Promise.resolve(fo)}function ho(){return fo}function go(e){fo=e}function _o(){return po===null?L(uo).then(()=>{if(po===null)throw Error(`[webority-ui] The shell chunk ran without handing over its modules.`);return po}):Promise.resolve(po)}function vo(){return po}function yo(e){po=e}var bo=`[data-wui-confirm]:not(form), [data-wui-post], [data-wui-row-action], [data-wui-modal], [data-wui-drawer], [data-wui-pane]`,xo=`form[data-wui-post-form], form[data-wui-confirm]`,So=`[data-wui-confirm]`,Co=`a[href]:is([data-wui-modal], [data-wui-drawer], [data-wui-pane]):not([data-wui-confirm], [data-wui-post])`,wo=new WeakSet,To=new WeakMap;function Eo(e=document){wo.has(e)||(wo.add(e),e.addEventListener(`click`,Do,!0),e.addEventListener(`submit`,Oo,!0))}function Do(e){if(ho()!==null||!(e.target instanceof Element))return;let t=e.target.closest(bo);t instanceof HTMLElement&&((e.ctrlKey||e.metaKey||e.shiftKey||e.button!==0)&&t.matches(Co)||ko(e,t,()=>t.click()))}function Oo(e){if(ho()!==null||!(e.target instanceof HTMLFormElement))return;let t=e.target,n=e.submitter??null;(t.matches(xo)||(n?.matches(So)??!1))&&ko(e,t,()=>Ao(t,n))}function ko(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),To.has(t)||(To.set(t,!0),mo().then(()=>{To.delete(t),t.isConnected&&n()},()=>{To.delete(t),io(M(`httpFailure`,so).networkText,`danger`)}))}function Ao(e,t){let n=t instanceof HTMLButtonElement||t instanceof HTMLInputElement?t.form===e:!1;t!==null&&n?e.requestSubmit(t):e.requestSubmit()}var jo=n({APP_BUTTON_MARKER:()=>Mo,buttonClass:()=>Io}),Mo=`AppButton`,No=new Set([`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Po={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 Fo(e){return dn(Po,e)}function Io(e=`primary`,t=`solid`,n=`md`){if(!No.has(e))throw RangeError(`buttonClass: unknown tone "${e}"`);if(!Fo(t))throw RangeError(`buttonClass: unknown variant "${t}"`);let r=Po[t](e);return n===`md`?`btn ${r}`:`btn ${r} btn-${n}`}var Lo=`INR`,Ro=Object.freeze({INR:`₹`,USD:`$`,EUR:`€`,GBP:`£`,JPY:`¥`}),zo=e=>typeof e==`string`&&/^[A-Z]{3}$/.test(e),Bo=(e=`INR`)=>Ro[e]??`${e} `,Vo={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`},Ho=n({IST_OFFSET_MS:()=>Uo,IST_TIME_ZONE:()=>W,isTimeZone:()=>Ko,nowIn:()=>$o,todayIn:()=>Qo,wallClockOf:()=>Zo,wallToInstant:()=>Yo,zoneOffsetMs:()=>Jo,zoneParts:()=>qo}),W=`Asia/Kolkata`,Uo=198e5,Wo=new Map;function Go(e){let t=Wo.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`}),Wo.set(e,t)),t}function Ko(e){if(typeof e!=`string`||e===``)return!1;try{return Go(e),!0}catch{return!1}}function qo(e,t=W){if(t===`Asia/Kolkata`){let t=new Date(e+Uo);return{year:t.getUTCFullYear(),month:t.getUTCMonth(),day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}let n=Object.fromEntries(Go(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 Jo(e,t=W){if(t===`Asia/Kolkata`)return Uo;let n=qo(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 Yo(e,t=W){let n=e-Jo(e,t);return n=e-Jo(n,t),n}var Xo=e=>e instanceof Date?e.getTime():e;function Zo(e,t=W){return new Date(e+Jo(e,t)).toISOString().slice(0,19)}function Qo(e=W,t=Date.now()){return Zo(Xo(t),e).slice(0,10)}function $o(e=W,t=Date.now()){let n=Xo(t);return new Date(n+Jo(n,e))}var es=n({CURRENCIES:()=>ns,DATE_PATTERNS:()=>as,DURATION_UNITS:()=>is,FORMAT_STYLES:()=>ts,IST_OFFSET_MS:()=>Uo,IST_TIME_ZONE:()=>W,MAX_DECIMALS:()=>20,MONEY_UNITS:()=>rs,compactFormatOf:()=>Bs,emptyValueLabel:()=>G,formatCompact:()=>Ns,formatCurrency:()=>js,formatDate:()=>J,formatDateTime:()=>Vs,formatDayShort:()=>Rs,formatDuration:()=>Is,formatNumber:()=>K,formatPercent:()=>Ps,formatValue:()=>zs,isMoneyUnit:()=>os,istParts:()=>Ls,monthLabel:()=>ps,monthLongLabel:()=>ms,paiseToRupeeText:()=>Ds,timeZoneLabel:()=>Ws,toInstant:()=>q,weekdayLabel:()=>hs}),ts=[`number`,`currency`,`percent`,`compact`,`duration`,`date`],ns=[`INR`,`USD`,`EUR`,`GBP`],rs=[`rupees`,`paise`],is=[`ms`,`s`,`min`,`h`],as=[`day`,`month`,`year`,`datetime`,`time`];function os(e){return rs.some(t=>t===e)}var ss=()=>M(`formatters`,Vo),G=()=>ss().emptyValueLabel,cs=`−`,ls=[`janShortLabel`,`febShortLabel`,`marShortLabel`,`aprShortLabel`,`mayShortLabel`,`junShortLabel`,`julShortLabel`,`augShortLabel`,`sepShortLabel`,`octShortLabel`,`novShortLabel`,`decShortLabel`],us=[`januaryLabel`,`februaryLabel`,`marchLabel`,`aprilLabel`,`mayLabel`,`juneLabel`,`julyLabel`,`augustLabel`,`septemberLabel`,`octoberLabel`,`novemberLabel`,`decemberLabel`],ds={short:[`sunShortLabel`,`monShortLabel`,`tueShortLabel`,`wedShortLabel`,`thuShortLabel`,`friShortLabel`,`satShortLabel`],long:[`sundayLabel`,`mondayLabel`,`tuesdayLabel`,`wednesdayLabel`,`thursdayLabel`,`fridayLabel`,`saturdayLabel`],min:[`sunMinLabel`,`monMinLabel`,`tueMinLabel`,`wedMinLabel`,`thuMinLabel`,`friMinLabel`,`satMinLabel`]},fs=(e,t)=>ss()[A(e[t],`no date name at index ${t}`)],ps=e=>fs(ls,e),ms=e=>fs(us,e);function hs(e,t){return fs(ds[t],e)}var gs=(e,t)=>A(e[t],`no compact unit at index ${t}`),_s=[[1e7,`Cr`],[1e5,`L`],[1e3,`K`]],vs=[[1e9,`B`],[1e6,`M`],[1e3,`K`]],ys=e=>!e||e===`INR`?`en-IN`:`en-US`,bs=(e,t)=>typeof e==`number`&&Number.isInteger(e)&&e>=0&&e<=20?e:t,xs=new Map,Ss=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=xs.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:e}),xs.set(n,r)),r},Cs=new Map,ws=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=Cs.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}),Cs.set(n,r)),r},Ts=e=>typeof e==`number`&&Number.isFinite(e),Es=e=>e<0&&!Object.is(Math.abs(e),0)?cs:``;function Ds(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 Os=(e,t)=>t===`paise`?Number(Ds(e)):e,ks=2,As=(e,t,n)=>{let r=Math.min(t,ks),i=10n**BigInt(ks-r),a=(BigInt(Ds(e).replace(`.`,``))+i/2n)/i,o=10n**BigInt(r),s=ws(0,n).format(a/o);return t===0?s:`${s}.${(a%o).toString().padStart(r,`0`)}${`0`.repeat(t-r)}`};function K(e,{decimals:t}={}){if(!Ts(e))return G();let n=Ss(bs(t,2)).format(Math.abs(e));return n===`0`?`0`:Es(e)+n}function js(e,t){if(!t?.currency)throw TypeError(`[@webority/ui-elements] formatCurrency needs options.currency, an ISO 4217 code such as "INR".`);if(!Ts(e))return G();let{unit:n=`rupees`,decimals:r,currency:i}=t,a=bs(r,0),o=ys(i),s=n===`paise`?As(Math.abs(e),a,o):ws(a,o).format(Math.abs(e));return(Number(s.replace(/,/g,``))===0?``:Es(e))+Bo(i)+s}var Ms=e=>e>0&&e<.1?Math.min(20,1-Math.floor(Math.log10(e))):2;function Ns(e,{currency:t,unit:n=`rupees`}={}){if(!Ts(e))return G();let r=t?Os(e,n):e,i=t?Bo(t):``,a=t?ys(t):`en-IN`,o=a===`en-IN`?_s:vs,s=Math.abs(r),c=o.findIndex(([e])=>s>=e);if(c===-1){let e=Ss(Ms(s),a).format(s);if(e!==`1,000`)return(e===`0`?``:Es(r))+i+e;c=o.length-1}let[l,u]=gs(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]=gs(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f))),`${Es(r)}${i}${Ss(f,a).format(p)} ${u}`}function Ps(e,{decimals:t}={}){return Ts(e)?`${K(e*100,{decimals:bs(t,1)})}%`:G()}var Fs={ms:1,s:1e3,min:6e4,h:36e5};function Is(e,{unit:t=`s`}={}){if(!Ts(e))return G();let n=Fs[t]??1e3,r=Math.abs(e*n),i=Es(e);if(Math.round(r)<1e3)return`${i}${Ss(0).format(r)} ms`;let a=r/1e3;if(a<10)return`${i}${Ss(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}${Ss(0).format(l)}h ${s(c%60)}m`}function q(e,t=W){if(e instanceof Date)return e.getTime();if(Ts(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?Yo(a.getTime(),t):NaN}return Date.parse(e)}function Ls(e,t=W){let{year:n,month:r,day:i,hour:a,minute:o}=qo(e,t);return{year:n,month:r,day:i,hour:a,minute:o}}function J(e,{pattern:t=`day`,timeZone:n=W}={}){let r=q(e,n);if(!Number.isFinite(r))return G();let i=Ls(r,n),a=e=>String(e).padStart(2,`0`),o=`${a(i.day)}-${ps(i.month)}-${i.year}`,s=`${a(i.hour)}:${a(i.minute)}`;switch(t){case`month`:return`${ps(i.month)}-${i.year}`;case`year`:return String(i.year);case`datetime`:return`${o} ${s}`;case`time`:return s;default:return o}}function Rs(e,{timeZone:t=W}={}){let n=q(e,t);if(!Number.isFinite(n))return G();let r=Ls(n,t);return`${String(r.day).padStart(2,`0`)}-${ps(r.month)}`}function zs(e,t){if(e==null||e===``)return G();let n=t?.style;if(n===`date`)return J(e,t);if(typeof e!=`number`)return String(e);switch(n){case`currency`:return js(e,{...t,currency:t?.currency??``});case`percent`:return Ps(e,t);case`compact`:return Ns(e,t);case`duration`:return Is(e,t);default:return K(e,t)}}function Bs(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 Vs(e,{timeZone:t=W}={}){let n=q(e);if(!Number.isFinite(n))return G();let r=Object.fromEntries(Us(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}-${ps(Number(r.month)-1)}-${r.year}, ${r.hour}:${r.minute} ${i.toUpperCase()}`}var Hs=new Map;function Us(e){let t=Hs.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}),Hs.set(e,t)),t}function Ws(e=W){return new Intl.DateTimeFormat(`en-IN`,{timeZone:e,timeZoneName:`short`}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??e}var Gs=n({DISPLAY_FORMAT:()=>Zs,MONTH_DISPLAY_FORMAT:()=>tc,YEAR_DISPLAY_FORMAT:()=>ac,clampMonth:()=>cc,daysIn:()=>sc,firstWeekday:()=>qs,fmt:()=>Qs,fmtMonth:()=>nc,fmtYear:()=>oc,pad:()=>Js,parseIso:()=>Xs,parseIsoMonth:()=>$s,parseIsoYear:()=>rc,toIso:()=>Ys,toIsoMonth:()=>ec,toIsoYear:()=>ic}),Ks=e=>{let t=String(e??``).trim();return/^[0-6]$/.test(t)?Number(t):null},qs=e=>Ks(e.getAttribute(`first-day`))??Ks(getComputedStyle(e).getPropertyValue(`--wui-first-day`))??1,Js=e=>String(e).padStart(2,`0`),Ys=(e,t,n)=>`${e}-${Js(t+1)}-${Js(n)}`,Xs=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>sc(a,o-1)?null:{y:a,m:o-1,d:s}},Zs=`dd-MMM-yyyy`,Qs=(e,t=Zs)=>{let n=Xs(e);if(!n)return``;let r={yyyy:n.y,MMMM:ms(n.m),MMM:ps(n.m),MM:Js(n.m+1),dd:Js(n.d),d:n.d};return(t||`dd-MMM-yyyy`).replace(/yyyy|MMMM|MMM|MM|dd|d/g,e=>String(r[e]))},$s=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}},ec=(e,t)=>`${e}-${Js(t+1)}`,tc=`MMM yyyy`,nc=(e,t=tc)=>{let n=$s(e);if(!n)return``;let r={yyyy:n.y,MMMM:ms(n.m),MMM:ps(n.m),MM:Js(n.m+1)};return(t||`MMM yyyy`).replace(/yyyy|MMMM|MMM|MM/g,e=>String(r[e]))},rc=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}},ic=e=>String(e).padStart(4,`0`),ac=`yyyy`,oc=(e,t=ac)=>{let n=rc(e);return n?(t||`yyyy`).replace(/yyyy/g,String(n.y)):``},sc=(e,t)=>{let n=new Date(0);return n.setFullYear(e,t+1,0),n.getDate()},cc=(e,t)=>{for(;t<0;)t+=12,--e;for(;t>11;)t-=12,e+=1;return{y:e,m:t}},lc=n({COPY_FEEDBACK_MS:()=>uc,copyTextToClipboard:()=>dc}),uc=2e3;async function dc(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 fc=n({DATA_TABLE_TEXT:()=>pc}),pc={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.`},mc=n({COLUMN_MAX_WIDTH:()=>gc,COLUMN_MIN_WIDTH:()=>48,PIN_AT_VAR:()=>Ic,PIN_SIDES:()=>yc,RESIZE_STEP:()=>10,RESIZE_STEP_LARGE:()=>50,ROW_HEIGHTS:()=>xc,ROW_MOVE_LIMIT:()=>200,ROW_MOVE_MS:()=>220,ROW_SAVE_ATTR:()=>Yc,ROW_SAVE_ERROR_CLASS:()=>Xc,ROW_SAVE_STATES:()=>Jc,ROW_STATUS_CLASS:()=>Zc,VIRTUAL_OVERSCAN:()=>8,clampColumnWidth:()=>kc,groupCount:()=>Oc,groupItems:()=>Ac,groupRowsText:()=>wc,identityCell:()=>Qc,measureRows:()=>Gc,notSavedText:()=>Dc,paintSaveStatus:()=>tl,pinAtValue:()=>Lc,pinClasses:()=>zc,pinOffsetVar:()=>Fc,planPins:()=>Rc,playRowMoves:()=>Kc,readColumnWidths:()=>Nc,resizeName:()=>Sc,rowLabel:()=>$c,rowOrderChanged:()=>qc,saveOutcomeText:()=>il,savedManyText:()=>Ec,savedText:()=>Tc,setRowSaveState:()=>nl,settledRows:()=>rl,virtualRange:()=>jc,widthText:()=>Cc,writeColumnWidths:()=>Pc}),hc=48,gc=1200,_c=10,vc=50,yc=[`start`,`end`],bc=8,xc={comfortable:72,cozy:48,compact:40},Y=()=>M(`dataTable`,pc),Sc=e=>e?N(Y().resizeColumnText,{label:e}):Y().resizeColumnLabel,Cc=e=>N(Y().resizeText,{px:e}),wc=e=>et(Y(),`groupRows`,e,{count:K(e,{decimals:0})}),Tc=e=>e?N(Y().savedText,{label:e}):Y().rowSavedText,Ec=e=>N(Y().rowsSavedText,{n:K(e,{decimals:0})}),Dc=(e,t)=>`${e?N(Y().wasNotSavedText,{label:e}):Y().rowWasNotSavedText}${t?` ${t}`:``}`,Oc=e=>K(e,{decimals:0}),kc=e=>Math.min(gc,Math.max(48,Math.round(Number(e)||0)));function Ac(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 jc({scrollTop:e,viewport:t,rowHeight:n,count:r,overscan:i=8}){let a=n>0?n:xc.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 Mc=e=>`wui-widths:${e}`;function Nc(e){if(!e)return{};try{let t=JSON.parse(window.localStorage.getItem(Mc(e))||`{}`),n={};if(t&&typeof t==`object`)for(let[e,r]of Object.entries(t))Number.isFinite(r)&&(n[e]=kc(r));return n}catch{return{}}}function Pc(e,t){if(e)try{Object.keys(t).length?window.localStorage.setItem(Mc(e),JSON.stringify(t)):window.localStorage.removeItem(Mc(e))}catch(e){if(!(e instanceof DOMException))throw e}}var Fc=(e,t)=>`--wui-pin-${e}-${t}`,Ic=`--wui-pin-at`,Lc=(e,t)=>`var(${Fc(e,t)}, 0px)`;function Rc(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 zc=e=>e?`wui-pin-${e.side}${e.edge?` wui-pin-${e.side}-edge`:``}`:``,Bc=200,Vc=220,Hc=`cubic-bezier(0.22, 1, 0.36, 1)`,Uc=()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,Wc=e=>e.getAttribute(`data-row-key`)??e;function Gc(e){let t=[...e];if(t.length>200)return null;let n=new Map;for(let e of t)e.hidden||n.set(Wc(e),e.offsetTop);return n}function Kc(e,t){let n=[...e];if(!t||n.length>200||Uc())return 0;let r=0;for(let e of n){if(e.hidden||typeof e.animate!=`function`)continue;let n=t.get(Wc(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:Hc}),r++)}return r}function qc(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 Jc=[`saving`,`error`,`saved`],Yc=`data-wui-save-state`,Xc=`wui-row-save-error`,Zc=`wui-row-status`,Qc=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 $c(e){let t=Qc(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 el(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 tl(e,t){e.querySelector(`:scope > * > .${Zc}`)?.remove();let n=t===null?null:el(e,t),r=n===null?null:Qc(e);if(t!==null&&n!==null&&r){let i=e.ownerDocument.createElement(`span`);i.className=`${Zc} ${Zc}-${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 nl(e,t,n=``){if(t!==null&&!Jc.includes(t))throw Error(`A row's save state is ${Jc.join(` or `)} (or null to clear it), not "${t}".`);e.querySelector(`:scope > * > .${Xc}`)?.remove(),t===null?e.removeAttribute(Yc):e.setAttribute(Yc,t),t===`saving`?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),tl(e,t);let r=t===`error`&&n?Qc(e):null;if(r){let t=e.ownerDocument.createElement(`span`);t.className=Xc,t.textContent=n,r.append(t)}}function rl(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 il(e){let t=e.filter(e=>e.ok),n=[],[r]=t;t.length===1&&r?n.push(Tc(r.label)):t.length>1&&n.push(Ec(t.length));for(let t of e)t.ok||n.push(Dc(t.label,t.message));return n.join(` `)}var al=n({isDrawn:()=>ol});function ol(e){return typeof e.checkVisibility==`function`?e.checkVisibility():e.closest(`[hidden]`)===null&&getComputedStyle(e).display!==`none`}var sl=n({MENTION_ID_PATTERN:()=>cl,mentionLabel:()=>dl,mentionTextFromValue:()=>ml,mentionValueFromText:()=>hl,mentionedIds:()=>gl,parseMentionValue:()=>pl}),cl=/^[A-Za-z0-9_.:-]{1,64}$/,ll=/@(\\+)\[|@\[([^[\]\n]{1,100})\]\(([A-Za-z0-9_.:-]{1,64})\)/g,ul=/@(\\*)\[/g;function dl(e){return String(e??``).replace(/[[\]\r\n]+/g,` `).replace(/\s+/g,` `).trim().slice(0,100)}var fl=e=>e.replace(ul,(e,t)=>`@\\${t}[`);function pl(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(ll))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 ml(e){let t=``,n=[];for(let r of pl(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 hl(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}`||!cl.test(e.id)||(i+=fl(n.slice(a,e.start)),i+=`@[${e.label}](${e.id})`,a=e.end);return i+fl(n.slice(a))}function gl(e){let t=[];for(let n of pl(e))`id`in n&&!t.includes(n.id)&&t.push(n.id);return t}var _l=n({bindMenuKeys:()=>Sl}),vl=500,yl=10,bl=new Set([`INPUT`,`TEXTAREA`,`SELECT`]);function xl(e){return e instanceof HTMLElement?bl.has(e.tagName)||e.isContentEditable:!1}function Sl(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(ol),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=xl(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)+yl,s-1));return}if(e.key===`PageUp`){u(Math.max((l<0?s:l)-yl,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,vl);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 Cl=n({NOTIFICATION_CENTRE_TEXT:()=>wl}),wl={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`},Tl=n({NOTIFICATION_COUNT_CAP:()=>99,groupNotificationsByDay:()=>Pl,notificationCountText:()=>kl,notificationDayHeading:()=>Nl,notificationTime:()=>Ml,notificationTriggerLabel:()=>Al,notificationUnreadAnnouncement:()=>jl}),El=99,Dl=864e5,Ol=()=>M(`notificationCentre`,wl);function kl(e){return e>99?`99+`:String(e)}function Al(e,t){return t===0?e:`${e}, ${kl(t)} ${Ol().unreadWordLabel}`}function jl(e){return e===0?Ol().noneUnreadText:et(Ol(),`unreadAnnouncementText`,e,{unread:kl(e)})}function Ml(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?``:J(e,{pattern:`time`})}function Nl(e,t=Date.now()){let n=J(e);return n===J(t)?Ol().todayLabel:n===J(q(t)-Dl)?Ol().yesterdayLabel:n}function Pl(e,t=Date.now()){let n=new Map;for(let r of e){if(!Number.isFinite(q(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=J(r.at),i=n.get(e);i||(i={key:e,heading:Nl(r.at,t),items:[]},n.set(e,i)),i.items.push(r)}return[...n.values()]}var Fl={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`},Il=n({RELATIVE_LIMIT_DAYS:()=>7,formatRelativeTime:()=>Ul,relativeTimeTitle:()=>Wl}),Ll=6e4,Rl=60*Ll,zl=24*Rl,Bl=()=>M(`relativeTime`,Fl),Vl={minute:`minutesAgoText`,hour:`hoursAgoText`,day:`daysAgoText`},Hl={minute:`inMinutesText`,hour:`inHoursText`,day:`inDaysText`};function Ul(e,t=Date.now()){let n=q(e);if(!Number.isFinite(n))return G();let r=t-n,i=Math.abs(r);if(i>=7*zl)return J(n);if(i<Ll)return Bl().justNowText;let[a,o]=i<Rl?[Math.floor(i/Ll),`minute`]:i<zl?[Math.floor(i/Rl),`hour`]:[Math.floor(i/zl),`day`];return et(Bl(),(r>0?Vl:Hl)[o],a)}function Wl(e){let t=q(e);return Number.isFinite(t)?`${J(t,{pattern:`datetime`})} IST`:G()}var Gl=n({FALLBACK_ROW_HEIGHT:()=>36,SELECT_WINDOW_OVERSCAN:()=>8,createHeightIndex:()=>ql,scrollTopToReveal:()=>Yl,windowRange:()=>Jl}),Kl=.5;function ql(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)<=Kl||(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)<=Kl?!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 Jl(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 Yl(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 Xl=n({WuiPostError:()=>Zl}),Zl=class extends Error{constructor(e,t){super(e,t.cause===void 0?void 0:{cause:t.cause}),P(this,`code`,void 0),P(this,`status`,void 0),P(this,`html`,void 0),P(this,`body`,void 0),P(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}},Ql=n({forgetShell:()=>tu,registerShell:()=>eu,wiredShell:()=>nu}),$l=new WeakMap;function eu(e,t){$l.set(e,t)}function tu(e){$l.delete(e)}function nu(e){let t=e?.closest(`[data-app-shell]`);return(t&&$l.get(t))??null}var ru=n({wuiUpload:()=>ou}),iu=new Set([204,205,304]),au=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 ou(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`,[ra]:`1`,...n.headers};if(sa(e)){let e=oa();e&&(i[e.header]=e.token)}let a=n.signal,o=n.navigate||(e=>window.location.assign(e));return a?.aborted?_a(`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(_a(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=au(c.getAllResponseHeaders()),r=ca(t,n),i=c.responseURL!==``&&c.responseURL!==new URL(e,window.location.href).href;r===`ok`&&i&&n.get(U.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(iu.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 su=n({deriveStepStatus:()=>cu,stepperHeaderItems:()=>lu});function cu(e,t){return typeof t==`number`?e<t?`done`:e===t?`active`:`pending`:`pending`}function lu(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 uu={selectAllLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`},du=n({GROUP_SELECT_CLASS:()=>pu,SELECT_CELL_CLASS:()=>X,addRowSelectCells:()=>Cu,addSelectColumn:()=>wu,attachShiftRange:()=>Ou,createGroupSelectCell:()=>vu,createSelectHeaderCell:()=>hu,createSelectRowCell:()=>gu,createSelectSpacerCell:()=>_u,groupRowsOf:()=>yu,syncGroupSelect:()=>Eu,syncSelectAll:()=>Tu}),fu=()=>M(`tableSelect`,uu),X=`wui-select-cell`,pu=`wui-group-select`,mu=(e,t)=>{let n=e.createElement(`input`);return n.type=`checkbox`,n.className=`form-check-input`,n.setAttribute(`aria-label`,t),n};function hu(e=document){let t=e.createElement(`th`);return t.className=X,t.appendChild(mu(e,fu().selectAllLabel)),t}function gu(e=document,{disabled:t=!1}={}){let n=e.createElement(`td`);n.className=X;let r=mu(e,fu().selectRowLabel);return r.disabled=t,n.appendChild(r),n}function _u(e=document){let t=e.createElement(`td`);return t.className=X,t}function vu(e,t){let n=e.createElement(`td`);return n.className=`${X} ${pu}`,n.appendChild(mu(e,N(fu().selectGroupLabel,{group:t}))),n}function yu(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 bu=e=>e.firstElementChild?.classList.contains(X),xu=e=>e.matches(`.wui-group-row, .wui-virtual-spacer, .wui-row-expanded`),Su=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n);function Cu(e){for(let t of e){if(bu(t)||xu(t))continue;let e=t.getAttribute(`data-row-selectable`)===`false`;t.insertBefore(gu(t.ownerDocument,{disabled:e}),t.firstChild)}}function wu(e){let t=e.querySelector(`thead tr`);if(!(t instanceof HTMLTableRowElement))return null;bu(t)||t.insertBefore(hu(e.ownerDocument),t.firstChild),Cu(Su(e,`tbody tr`,HTMLTableRowElement));for(let t of Su(e,`tfoot tr`,HTMLTableRowElement))bu(t)||t.insertBefore(_u(e.ownerDocument),t.firstChild);let n=t.querySelector(`.${X} .form-check-input`);return n instanceof HTMLInputElement?n:null}function Tu(e){let t=e.querySelector(`thead .${X} .form-check-input`),n=Su(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 Su(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 Eu(e){for(let t of Su(e,`tbody tr.wui-group-row`,HTMLTableRowElement)){let e=t.querySelector(`.${pu} .form-check-input`);if(!(e instanceof HTMLInputElement))continue;let n=yu(t).flatMap(e=>Su(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 Du=`tbody tr:not(.wui-group-row) .${X} .form-check-input:not(:disabled)`;function Ou(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=Su(e,Du,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 ku=n({DATE_PICKER_TEXT:()=>Au}),Au={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}.`},ju=n({DRAWER_TEXT:()=>Mu}),Mu={closeLabel:`Close`,confirmDiscard:`Discard your changes?`,discardLabel:`Discard`,keepLabel:`Keep editing`,screenText:`{now}% of the screen`,sheetHeightLabel:`Sheet height`},Nu=n({matchSegments:()=>Pu});function Pu(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 Fu=n({TOOLTIP_ATTRIBUTE:()=>Iu,TOOLTIP_CLASS_ATTRIBUTE:()=>Ru,TOOLTIP_ID_ATTRIBUTE:()=>zu,TOOLTIP_OPEN_ATTRIBUTE:()=>Bu,TOOLTIP_PLACEMENT_ATTRIBUTE:()=>Lu,TOOLTIP_SHORTCUT_ATTRIBUTE:()=>Vu,showPinnedTooltips:()=>Uu,wireTooltips:()=>Hu}),Iu=`data-wui-tooltip`,Lu=`data-wui-tooltip-placement`,Ru=`data-wui-tooltip-class`,zu=`data-wui-tooltip-id`,Bu=`data-wui-tooltip-open`,Vu=`data-wui-tooltip-shortcut`;function Hu(e){qu.has(e)||(qu.add(e),e.addEventListener(`pointerover`,t=>{let n=Qu(t.target);n&&!ed(e,n)&&rd(e,n,!1)}),e.addEventListener(`pointerout`,t=>{let n=Yu(e).transient;n&&Qu(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||id(e,n))}),e.addEventListener(`focusin`,t=>{let n=t.target;if(!(n instanceof Element)||!n.matches(`:focus-visible`))return;let r=Qu(n);r&&!ed(e,r)&&rd(e,r,!1)}),e.addEventListener(`focusout`,t=>{let n=Yu(e).transient;n&&Qu(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||id(e,n))}),e.addEventListener(`click`,t=>{let n=Yu(e).transient;n&&Qu(t.target)===n.trigger&&id(e,n)}))}function Uu(e){let t=e instanceof Document?e:e.ownerDocument;for(let n of e.querySelectorAll(`[${Bu}]`))rd(t,n,!0)}var Wu=[`top`,`bottom`,`start`,`end`],Gu=`wui-tooltip`,Ku=`[${Iu}], [${zu}]`,qu=new WeakSet,Ju=new WeakMap;function Yu(e){let t=Ju.get(e);return t||(t={bubble:null,transient:null,pinned:new Map,pinnedCount:0,onEscape:t=>{t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),ad(e))}},Ju.set(e,t)),t}function Xu(e){return Wu.includes(e)}function Zu(e){return e===`auto`||Xu(e)}function Qu(e){if(!(e instanceof Element))return null;let t=e.closest(Ku);return t instanceof HTMLElement?t:null}function $u(e,t){return e.transient?.trigger===t?e.transient:e.pinned.get(t)}function ed(e,t){return $u(Yu(e),t)!==void 0}function td(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 nd(e,t){return t.bubble||=td(e,Gu),t.bubble}function rd(e,t,n){let r=t.getAttribute(Iu),i=t.getAttribute(zu);if(r===null&&i===null)throw Error(`a tooltip trigger carries ${Iu} or ${zu}`);if(r!==null&&i!==null)throw Error(`a tooltip trigger carries ${Iu} or ${zu}, not both`);let a=t.getAttribute(`data-wui-tooltip-placement`)??`top`;if(!Zu(a))throw Error(`${Lu} "${a}" is not auto, top, bottom, start or end`);let o=Yu(e);id(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?td(e,`${Gu}-pinned-${++o.pinnedCount}`):nd(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(Vu);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||id(e,$u(Yu(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 id(e,t){if(!t)return;let n=Yu(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 ad(e){let t=Yu(e);id(e,t.transient);for(let n of[...t.pinned.values()])id(e,n)}var od=Object.freeze({anchorOverlay:d,avatarNode:qt,buttonClass:jo,calendarMath:Gs,copyText:lc,dataTable:mc,dataTableText:fc,datePickerText:ku,defineElement:r,devWarn:Xt,dom:ze,drawerText:ju,elementBase:a,fieldState:$t,flash:Vi,formatters:es,formMirror:rn,glyphs:Zn,hasOwn:un,httpFailureText:oo,iconGlyphs:Zn,imeSafeEnter:fr,isDrawn:al,listboxKeyNav:hr,loader:_n,mentionText:sl,menuKeyNav:_l,nativeOverlay:ne,notificationCentreText:Cl,notificationDays:Tl,optionLabel:yr,partRegistry:Jr,postError:Xl,refreshAfter:Pa,regions:ba,relativeTime:Il,rtl:c,selectList:Ar,selectRemote:ei,selectText:Or,selectWindow:Gl,server:co,serverHtml:Ji,serverTableRegistry:ka,shellRegistry:Ql,shortcutKeys:st,stepperHeader:su,svgNodes:Gn,tableExport:Oi,tableSelect:du,textMatch:Nu,textStore:He,toastAction:$a,toastHeader:Ii,tooltips:Fu,wuiHost:Xi,wuiHttp:Qi,wuiUpload:ru,WuiSelect:ai,zone:Ho}),sd={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`},cd=`image/jpeg,image/png,image/webp,image/heic,image/heif,.heic,.heif`,ld=10,ud=512,dd=`image/webp`,fd=[96,48];function pd(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 md(e){let t=M(`imagePicker`,sd);return pd(e)?t.heicUnreadableMessage:t.photoUnreadableMessage}function hd(e,t){let n=Number(t);return{name:e?.name||`photo`,type:dd,size:Number.isInteger(n)&&n>0?n:512}}var gd=`/`,_d=`.search-wrap.wui-search-collapsible`,vd=`.wui-topsearch-panel`,yd=`.modal, wui-drawer[open]`,bd=new WeakSet,xd=e=>{let t=e.querySelector(`.wui-search-toggle`);return t instanceof HTMLElement?t:null},Sd=e=>{let t=e.querySelector(`.search-input`);return t instanceof HTMLInputElement?t:null},Cd=e=>[...e.querySelectorAll(_d)].filter(e=>e instanceof HTMLElement);function wd(e){e.classList.remove(`is-collapsed`),xd(e)?.setAttribute(`aria-expanded`,`true`),Sd(e)?.focus()}function Td(e){Sd(e)?.value||(e.classList.add(`is-collapsed`),xd(e)?.setAttribute(`aria-expanded`,`false`))}function Ed(e){if(e.dataset.wuiCollapseWired)return;e.dataset.wuiCollapseWired=`1`;let t=xd(e),n=Sd(e);t?.addEventListener(`click`,()=>wd(e)),n?.addEventListener(`keydown`,r=>{r.key!==`Escape`||n?.value||(r.preventDefault(),Td(e),t?.focus())}),e.addEventListener(`focusout`,t=>{let n=t.relatedTarget;n instanceof Node&&e.contains(n)||Td(e)})}function Dd(e){bd.has(e)||(bd.add(e),e.addEventListener(`keydown`,t=>{if(t.key!==`/`||t.ctrlKey||t.altKey||t.metaKey||t.defaultPrevented||wt(t.target instanceof Node?t.target:null)||t.target instanceof Element&&t.target.closest(yd)||e.querySelector(vd))return;let n=Cd(e).find(e=>e.offsetParent!==null);n&&(t.preventDefault(),wd(n))}))}function Od(e=document){let t=e;for(let e of Cd(t))Ed(e);Dd(e instanceof Element?e.ownerDocument:e)}var kd=`data-wui-command-shortcut`,Ad=`k`,jd=new WeakSet,Md=/ \(Ctrl\+([^)]+)\)$/;function Nd(e=navigator){return/mac|iphone|ipad/i.test(e.userAgentData?.platform??e.platform)}function Pd(e,t){return!(e.ctrlKey||e.metaKey)||e.altKey||e.shiftKey||e.repeat?!1:String(e.key).toLowerCase()===String(t).toLowerCase()}function Fd(e){return e.nodeType===Node.DOCUMENT_NODE}function Id(e){e.closest(`wui-modal`)?.show()}function Ld(e){if(Nd())for(let t of e.querySelectorAll(`[${kd}]`)){let e=t.getAttribute(`placeholder`);e!==null&&t.setAttribute(`placeholder`,e.replace(Md,(e,t)=>` (⌘${t})`))}}function Rd(e){let t=Fd(e)?e:e.ownerDocument;e.querySelector(`[data-wui-command-shortcut]`)&&(Ld(t),jd.has(t)||(jd.add(t),t.addEventListener(`keydown`,e=>{for(let n of t.querySelectorAll(`[${kd}]`))if(Pd(e,n.getAttribute(`data-wui-command-shortcut`)||Ad)){e.preventDefault(),n.localName===`wui-command-palette`||n.localName===`wui-modal`?Id(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=()=>M(`fileValidation`,zd),Bd=`image/png,image/jpeg,image/webp`,Vd=5,Hd={"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`]},Ud={"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`},Wd={"text/plain":`textFileLabel`,".txt":`textFileLabel`,"image/*":`imagesLabel`,"video/*":`videosLabel`,"audio/*":`audioLabel`},Gd=new Set([`image/*`,`video/*`,`audio/*`]),Kd=e=>{let t=Wd[e];return t?Z()[t]:Ud[e]},qd=e=>String(e||``).split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean),Jd=[`.png`,`.jpg`,`.jpeg`,`.webp`,`.gif`,`.svg`,`.bmp`,`.avif`,`.heic`,`.heif`];function Yd(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 Jd.some(e=>r.endsWith(e))}var Xd=[`kilobyteLabel`,`megabyteLabel`,`gigabyteLabel`];function Zd(e){if(e<1024)return`${e} ${Z().byteLabel}`;let t=e/1024,n=0;for(;t>=1024&&n<Xd.length-1;)t/=1024,n+=1;return`${t.toFixed(1)} ${Z()[Xd[n]??`gigabyteLabel`]}`}function Qd(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 $d(e){let t=qd(e);return t.length?t.every(e=>e.startsWith(`.`)?Jd.includes(e):e===`image/*`||e.startsWith(`image/`)):!1}function ef(e){let t=[];for(let n of qd(e)){let e=Kd(n)||(n.startsWith(`.`)?n.slice(1).toUpperCase():n.toUpperCase());t.includes(e)||t.push(e)}return t.length<=1?t[0]||Z().supportedLabel:N(Z().orText,{names:t.slice(0,-1).join(`, `),last:t.slice(-1).join(``)})}function tf(e,t){let n=qd(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&&(Hd[e]||[]).some(e=>i.endsWith(e)))}function nf(e,t={}){if(!e)return null;let n=t.accept===void 0?Bd:t.accept,r=t.maxSizeMb===void 0?5:t.maxSizeMb;if(!tf(e,n)){let e=ef(n),t=qd(n).map(e=>Gd.has(e));return t.every(Boolean)?N(Z().chooseText,{label:e}):t.some(Boolean)?N(Z().chooseText,{label:e.endsWith(` file`)?`${e}s`:`${e} files`}):N(Z().chooseText,{label:`a ${e.endsWith(` file`)?e:`${e} file`}`})}return r!==null&&r>0&&e.size>r*1024*1024?N(Z().keepFileUnderMbText,{maxSizeMb:r}):null}function rf(e,t){let n=Array.from(e||[]),r=t.multiple?n:n.slice(0,1),i=[],a=[];for(let e of r){let n=nf(e,{accept:t.accept,maxSizeMb:t.maxSizeMb});n?a.push({file:e,message:n}):i.push(e)}return{files:i,rejections:a}}function af(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}=rf(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 of={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`},sf=/[0-9]/,cf={9:sf,A:/[A-Za-z]/,"*":/[0-9A-Za-z]/},lf=/[9A*]/,uf=new Set([`text`,`tel`,`search`,`url`,`password`]),df=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},ff=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},pf=e=>e.length<=3?e:`${e.slice(0,-3).replace(/\B(?=(\d{2})+(?!\d))/g,`,`)},${e.slice(-3)}`,mf=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());return t?`${t[3]}-${t[2]}-${t[1]}`:e},Q=()=>M(`inputMask`,of);function hf(e,{upper:t=!1,normalize:n,valid:r,post:i=e=>e,message:a=Q().incompleteMessage}={}){let o=[...e].map(e=>{let t=cf[e];return t?{re:t}:{lit:e}}),s=o.filter(e=>e.re).length;return{inputMode:o.every(e=>!e.re||e.re===sf)?`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 gf(){return{inputMode:`decimal`,post:e=>e,message:Q().amountMessage,extract(e){let t=``,n=!1,r=0;for(let i of e)sf.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=pf(t)+(e.includes(`.`)?`.${n}`:``);return{text:r,isRaw:[...r].map(e=>e!==`,`)}},isValid:e=>/^\d+(\.\d{1,2})?$/.test(e)}}var _f={"phone-in":()=>hf(`99999 99999`,{normalize:df,valid:e=>/^[6-9]/.test(e),message:Q().phoneInMessage}),pan:()=>hf(`AAAAA9999A`,{upper:!0,valid:e=>/^[A-Z]{5}\d{4}[A-Z]$/.test(e),message:Q().panMessage}),gstin:()=>hf(`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:()=>hf(`9999 9999 9999`,{valid:e=>/^[2-9]/.test(e),message:Q().aadhaarMessage}),ifsc:()=>hf(`AAAA*******`,{upper:!0,valid:e=>/^[A-Z]{4}0[A-Z0-9]{6}$/.test(e),message:Q().ifscMessage}),"pin-code":()=>hf(`999999`,{valid:e=>/^[1-9]/.test(e),message:Q().pinCodeMessage}),date:()=>hf(`99-99-9999`,{normalize:mf,valid:ff,post:(e,t)=>e.length===8&&ff(e)?`${e.slice(4)}-${e.slice(2,4)}-${e.slice(0,2)}`:t,message:Q().dateMessage}),amount:gf},vf=Object.keys(_f),yf=e=>{let t=String(e).toLowerCase();return dn(_f,t)?t:void 0},bf=e=>lf.test(String(e))&&yf(e)===void 0,xf=new Map;Qe(()=>xf.clear());function Sf(e){if(e==null||e===``)return null;let t=String(e),n=xf.get(t);return n===void 0&&(n=bf(t)?hf(t):dn(_f,t)?_f[t]?.()??null:null,xf.set(t,n)),n}var $=(e,t)=>e.normalize?e.normalize(t):t;function Cf(e,t){let n=Sf(e);return n?n.extract($(n,String(t??``))):String(t??``)}function wf(e,t){let n=Sf(e);if(!n)return String(t??``);let r=n.extract($(n,String(t??``)));return n.post(r,n.layout(r).text)}function Tf(e,t){let n=Sf(e);return n?n.layout(n.extract($(n,String(t??``)))).text:String(t??``)}var Ef=(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},Df=new WeakMap,Of=e=>Df.get(e)?.(),kf=new WeakMap;function Af(e,t,n,r){let i=e.getAll(t),a=kf.get(e)??new Set;kf.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 jf(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 Mf(e,{mask:t,postFormatted:n=!1,onChange:r,onInvalidChange:i}={}){let a=Sf(t);if(!a||!uf.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??jf(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&&uf.has(e.type))){let t=Ef(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&&Af(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),Df.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),Df.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 Nf(){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=Of(e);return n===void 0?t.call(this,e):n},e.wuiMaskHook=!0}var Pf=new WeakMap,Ff,If=e=>{Pf.has(e)||Pf.set(e,Mf(e,{mask:e.dataset.appMask,postFormatted:e.hasAttribute(`data-mask-post-formatted`)}))},Lf=e=>[...e.querySelectorAll(`input[data-app-mask]`)].filter(e=>e instanceof HTMLInputElement),Rf=e=>e instanceof Element?[...e instanceof HTMLInputElement&&e.matches(`input[data-app-mask]`)?[e]:[],...Lf(e)]:[];function zf(){Ff||typeof MutationObserver>`u`||(Ff=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Rf(e))Pf.get(t)?.(),Pf.delete(t);for(let e of t.addedNodes)for(let t of Rf(e))If(t)}}),Ff.observe(document.documentElement,{childList:!0,subtree:!0}))}function Bf(e=document){Nf();for(let t of Lf(e))If(t);e===document&&zf()}var Vf=`data-wui-bulk-in-bar`,Hf=`[data-wui-page-header-bar][data-wui-bulk-for]`,Uf=new WeakSet;function Wf(e){return`${K(e,{decimals:0})} selected`}function Gf(e){let t=e.dataset.wuiBulkFor;return t===void 0?null:document.getElementById(t)}function Kf(e){return typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`}function qf(e,t){return[...e.querySelectorAll(t)].flatMap(e=>e instanceof HTMLElement?[e]:[])}function Jf(e,t){for(let n of qf(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?Wf(t):``}function Yf(e=document){for(let t of qf(e,Hf))Gf(t)?.setAttribute(Vf,``);Uf.has(document)||(Uf.add(document),document.addEventListener(`selectionchange`,e=>{if(!(e instanceof CustomEvent)||!Kf(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 qf(document,Hf))Gf(n)?.contains(t)&&Jf(n,e.detail.selected)}))}var Xf={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`},Zf={minLength:10,uppercase:!0,lowercase:!0,digit:!0,special:!0,uniqueChars:0,customRules:[]},Qf=()=>M(`passwordRules`,Xf);function $f(e){return e===!0||e==null?{...Zf}:{...Zf,...e}}function ep(e){let t=$f(e),n=[];if(t.minLength>0&&n.push({key:`length`,label:N(Qf().lengthText,{minLength:t.minLength}),test:e=>e.length>=t.minLength}),t.uppercase&&n.push({key:`uppercase`,label:Qf().uppercaseText,test:e=>/[A-Z]/.test(e)}),t.lowercase&&n.push({key:`lowercase`,label:Qf().lowercaseText,test:e=>/[a-z]/.test(e)}),t.digit&&n.push({key:`digit`,label:Qf().digitText,test:e=>/[0-9]/.test(e)}),t.special&&n.push({key:`special`,label:Qf().specialText,test:e=>/[^A-Za-z0-9]/.test(e)}),t.uniqueChars>0){let e=t.uniqueChars;n.push({key:`unique`,label:et(Qf(),`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 ep(t).map(e=>({key:e.key,label:e.label,met:e.test(n)}))}function np(e,t){return tp(e,t).every(e=>e.met)}var rp={moveLabel:`Move to`,moveText:`Move to {label}`},ip=`wui:row-drop`,ap=`is-drop-over`,op=`application/x-wui-rows`,sp=`wui-row-dragging`,cp=`[data-wui-drop-target]`,lp=`tbody tr[data-row-key]`,up=`input, button, a, select, textarea, label`,dp=`.wui-select-cell .form-check-input`,fp=new WeakMap,pp=new WeakSet,mp=null,hp=null;function gp(e){let t=e.querySelector(dp);return t instanceof HTMLInputElement&&t.checked}function _p(e){let t=[];for(let n of e.querySelectorAll(`tbody tr:not(.wui-group-row)`))n instanceof HTMLElement&&gp(n)&&t.push(n.dataset.rowKey);return t}function vp(e,t){return Ve(e,t)}function yp(e,t){let n=vp(e,t);return n instanceof HTMLElement?n:null}function bp(e){let t=e.textContent;if(t===null)throw Error(`A drop target has no text content.`);return t.trim()}var xp=e=>typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`;function Sp(){mp=null,document.body.classList.remove(sp);for(let e of document.querySelectorAll(`${cp}.${ap}`))e.classList.remove(ap)}function Cp(e,t,n){e.dispatchEvent(new CustomEvent(ip,{bubbles:!0,detail:{keys:t,target:n.dataset.wuiDropTarget}}))}function wp(e){let t=yp(e.target,cp);if(!t||!mp)return;e.preventDefault();let n=A(e.dataTransfer,`A drag event arrived without its DataTransfer.`);n.dropEffect=`move`,t.classList.add(ap)}function Tp(e){let t=yp(e.target,cp);!t||e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||t.classList.remove(ap)}function Ep(e){let t=yp(e.target,cp);if(!t||!mp)return;e.preventDefault(),t.classList.remove(ap);let{root:n,keys:r}=mp;Cp(n,r,t),Sp()}function Dp(e){let t=yp(e.target,cp);t&&hp?.keys.length&&(e.preventDefault(),Cp(hp.root,hp.keys,t))}function Op(e){(mr(e)||e.key===` `)&&Dp(e)}function kp(e){pp.has(e)||(pp.add(e),e.addEventListener(`dragover`,wp),e.addEventListener(`dragenter`,wp),e.addEventListener(`dragleave`,Tp),e.addEventListener(`drop`,Ep),e.addEventListener(`click`,Dp),e.addEventListener(`keydown`,Op))}function Ap(e){let t=fp.get(e);if(t)return t;kp(e.ownerDocument||e);let n=t=>{let n=yp(t.target,lp);if(!n||!e.contains(n))return;let r=vp(t.target,up);r&&n.contains(r)||(n.draggable=!0)},r=t=>{let n=yp(t.target,lp);if(!n||!e.contains(n))return;let r=gp(n)?_p(e):[n.dataset.rowKey],i=A(t.dataTransfer,`A drag event arrived without its DataTransfer.`);i.setData(op,JSON.stringify(r)),i.setData(`text/plain`,r.join(`,`)),i.effectAllowed=`move`,mp={root:e,keys:r},document.body.classList.add(sp)},i=t=>{let n=t instanceof CustomEvent?t.detail:void 0;if(xp(n)){let{keys:t}=n;n.selected>0?hp={root:e,keys:Array.isArray(t)?t:_p(e)}:n.selected===0&&(hp=null)}Mp(document)};e.addEventListener(`pointerdown`,n),e.addEventListener(`dragstart`,r),e.addEventListener(`dragend`,Sp),e.addEventListener(`selectionchange`,i);let a=()=>{e.removeEventListener(`pointerdown`,n),e.removeEventListener(`dragstart`,r),e.removeEventListener(`dragend`,Sp),e.removeEventListener(`selectionchange`,i),fp.delete(e)};return fp.set(e,a),a}var jp=()=>M(`rowDrop`,rp);function Mp(e=document){let t=e.querySelector(`[data-wui-row-drag] tbody tr:not(.wui-group-row) ${dp}:checked`)!==null;for(let n of e.querySelectorAll(cp)){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`)||bp(n);n.setAttribute(`aria-label`,N(jp().moveText,{label:e}))}for(let t of e.querySelectorAll(`.wui-drop-tray`))t.hasAttribute(`role`)||(t.setAttribute(`role`,`toolbar`),t.setAttribute(`aria-label`,jp().moveLabel))}function Np(e=document){for(let t of e.querySelectorAll(`[data-wui-row-drag]`))t instanceof HTMLElement&&Ap(t);Mp(e.ownerDocument||e)}var Pp=`.table-wrap, .table-responsive, [class*="table-responsive-"]`,Fp=1;function Ip(e){let t=()=>{let t=e.scrollWidth-e.clientWidth,n=Math.abs(e.scrollLeft);e.toggleAttribute(`data-wui-overflow-start`,t>Fp&&n>Fp),e.toggleAttribute(`data-wui-overflow-end`,t>Fp&&n<t-Fp),e.toggleAttribute(`data-wui-overflow-top`,e.scrollTop>Fp)},n=()=>{if(e.scrollWidth-e.clientWidth>Fp){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 Lp=new WeakMap,Rp,zp=e=>{Lp.has(e)||Lp.set(e,Ip(e))},Bp=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(Pp)].filter(e=>e instanceof HTMLElement);return[...t,...n]};function Vp(){Rp||typeof MutationObserver>`u`||(Rp=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Bp(e))Lp.get(t)?.(),Lp.delete(t);for(let e of t.addedNodes)for(let t of Bp(e))zp(t)}}),Rp.observe(document.documentElement,{childList:!0,subtree:!0}))}function Hp(e=document){for(let t of e.querySelectorAll(Pp))t instanceof HTMLElement&&zp(t);e===document&&Vp()}var Up=new WeakSet;function Wp(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(!Ui(t))throw TypeError(`data-wui-flash-variant="${t}" is not supported. Use ${Hi.join(`, `)}.`);let n=e.getAttribute(`data-wui-flash`)||(e.textContent??``).trim();e.remove(),n&&io(n,t)}}function Gp(e=document){let t=e instanceof Element?e.ownerDocument:e;if(!Up.has(t)){Up.add(t);let e=qi();e&&io(e.message,e.variant,e.action)}Wp(e)}var Kp=`data-wui-submit-once`,qp=`data-wui-submit-pending`,Jp=`wui-submit-spinner`,Yp=new WeakSet,Xp=new WeakMap;function Zp(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement?e:null}function Qp(e){if(e.setAttribute(`aria-busy`,`true`),e.tagName===`INPUT`||e.querySelector(`.${Jp}`))return;let t=e.ownerDocument.createElement(`span`);t.className=`spinner-border spinner-border-sm me-2 ${Jp}`,t.setAttribute(`aria-hidden`,`true`),e.prepend(t)}function $p(e){e.removeAttribute(`aria-busy`),e.querySelector(`.${Jp}`)?.remove()}function em(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)||!em(t))return;if(t.hasAttribute(qp)){e.preventDefault();return}t.setAttribute(qp,``);let n=Zp(e.submitter);setTimeout(()=>{t.hasAttribute(qp)&&(e.defaultPrevented?t.removeAttribute(qp):n&&(n.disabled=!0,Qp(n),Xp.set(t,n)))},0)}var nm=e=>[...e.querySelectorAll(`form[${qp}]`)].filter(e=>e instanceof HTMLFormElement);function rm(e){for(let t of nm(e)){t.removeAttribute(qp);let e=Xp.get(t);e&&(e.disabled=!1,$p(e),Xp.delete(t))}}function im(e){let t=e.ownerDocument===null?e:e.ownerDocument;Yp.has(t)||(Yp.add(t),t.addEventListener(`submit`,tm,!0),t.defaultView?.addEventListener(`pageshow`,()=>rm(t)))}var am=[`light`,`dark`,`auto`],om=[`wave`,`circle`,`slide`,`blinds`,`fade`,`none`],sm=`fade`,cm=`theme`,lm={wave:1100,circle:700,slide:600,blinds:900,fade:350,none:0},um=`wui-theme-switching`,dm=`wui:theme:change`,fm=`(prefers-color-scheme: dark)`,pm=e=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(e).matches,mm=e=>am.some(t=>t===e);function hm(e){return e===`dark`||e===`auto`&&pm(fm)?`dark`:`light`}function gm(e=cm){let t=null;try{t=window.localStorage.getItem(e)}catch(e){if(!(e instanceof DOMException))throw e}return mm(t)?t:`auto`}function _m(e,t=cm){try{window.localStorage.setItem(t,e)}catch(e){if(!(e instanceof DOMException))throw e}}function vm(e){let t=document.documentElement,n=hm(e);t.setAttribute(`data-theme`,e),t.setAttribute(`data-bs-theme`,n),document.dispatchEvent(new CustomEvent(dm,{detail:{mode:n,preference:e}}))}var ym=`((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 bm(e=cm){return`${ym}${JSON.stringify(String(e)).replace(/</g,`\\u003c`)})`}function xm(e,{includeAuto:t=!1}={}){return e===`light`?`dark`:e===`dark`&&t?`auto`:`light`}function Sm(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(fm),n=()=>e(t.matches?`dark`:`light`);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var Cm=60,wm=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,Tm=e=>e.toFixed(1),Em=(e,t)=>`${Tm(e)}px ${Tm(t)}px`,Dm={amplitude:22,segments:36,cycles:1.5,ripples:2},Om=6,km=(e,t,n,r,i)=>{let{amplitude:a,segments:o,cycles:s}=Dm,c=n*(t+2*a),l=i?t+a-c:c-a,u=i?t+2*a:-2*a,d=[Em(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(Em(n,i))}return d.push(Em(e,u)),`polygon(${d.join(`, `)})`},Am=(e,t,n,r)=>{let i=t/Om,a=[];for(let t=0;t<Om;t++){let o=t*i,s=i*n,c=r?o+i-s:o,l=r?o+i:o+s;a.push(Em(0,c),Em(e,c),Em(e,l),Em(0,l))}return`polygon(${a.join(`, `)})`};function jm(e,{width:t,height:n,to:r=`dark`,origin:i}){let a=r===`dark`,o=[];for(let r=0;r<=Cm;r++){let s=r/Cm,c=wm(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(${Tm(a*c)}px at ${Tm(e)}px ${Tm(r)}px)`});break}case`slide`:{let e=n*(1-c);o.push({clipPath:a?`inset(${Tm(e)}px 0px 0px 0px)`:`inset(0px 0px ${Tm(e)}px 0px)`});break}case`blinds`:o.push({clipPath:Am(t,n,c,a)});break;case`fade`:o.push({clipPath:`none`,opacity:c});break;case`none`:return[];default:o.push({clipPath:km(t,n,c,s*Dm.ripples*2*Math.PI,a)})}}return o}var Mm=e=>{e instanceof DOMException&&(e.name===`AbortError`||e.name===`InvalidStateError`)||Qt(`[@webority/ui-elements] The theme view transition failed:`,e)};function Nm(e,{effect:t=sm,to:n,origin:r,duration:i}={}){let a=document.documentElement,o=n!==void 0&&a.getAttribute(`data-bs-theme`)===n;if(t===`none`||o||pm(`(prefers-reduced-motion: reduce)`)||typeof document.startViewTransition!=`function`||typeof a.animate!=`function`)return e(),Promise.resolve(!1);a.classList.add(um);let s=document.startViewTransition(e),c=i??lm[t]??lm.fade;return s.ready.then(()=>{let e=jm(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(Mm),s.finished.catch(Mm).finally(()=>a.classList.remove(um)).then(()=>!0)}function Pm(){Gt(),i(`wui-select`,li),i(`wui-modal`,Kt)}return globalThis.WeborityUiElementsInternal||(globalThis.WeborityUiElementsInternal={version:`0.189.0`,modules:od}),Pi(),Fn(),Eo(),Pm(),e.AVATAR_ACCEPT=cd,e.AVATAR_MAX_SIZE_MB=ld,e.AVATAR_OUTPUT_SIZE=ud,e.AVATAR_OUTPUT_TYPE=dd,e.AVATAR_PREVIEW_SIZES=fd,e.BAR_BULK_IN_BAR_ATTRIBUTE=Vf,e.COLUMN_MAX_WIDTH=gc,e.COLUMN_MIN_WIDTH=hc,e.COMMAND_SHORTCUT_ATTRIBUTE=kd,e.COPY_FEEDBACK_MS=uc,e.CSRF_META_NAME=$i,e.CURRENCIES=ns,e.CURRENCY_SYMBOLS=Ro,e.DATE_PATTERNS=as,e.DEFAULT_CSRF_HEADER=ea,e.DEFAULT_CURRENCY=Lo,e.DEFAULT_IMAGE_ACCEPT=Bd,e.DEFAULT_MAX_SIZE_MB=Vd,e.DEFAULT_PASSWORD_RULES=Zf,e.DEFAULT_THEME_EFFECT=sm,e.DEFAULT_THEME_STORAGE_KEY=cm,e.DROP_OVER_CLASS=ap,e.DURATION_UNITS=is,e.FILTER_POPOVER_MAX_CHIPS=Nt,e.FLASH_STORAGE_KEY=Wi,e.FLASH_VARIANTS=Hi,e.FORMAT_STYLES=ts,e.GROUP_SELECT_CLASS=pu,e.HTTP_KINDS=ia,e.IST_TIME_ZONE=W,e.MASK_INPUT_TYPES=uf,e.MASK_NAMES=vf,e.MENTION_ID_PATTERN=cl,e.MONEY_UNITS=rs,e.NOTIFICATION_COUNT_CAP=El,e.PIN_AT_VAR=Ic,e.PIN_SIDES=yc,e.RESIZE_STEP=_c,e.RESIZE_STEP_LARGE=vc,e.ROW_DRAG_TYPE=op,e.ROW_DROP_EVENT=ip,e.ROW_HEIGHTS=xc,e.ROW_MOVE_LIMIT=Bc,e.ROW_MOVE_MS=Vc,e.ROW_SAVE_ATTR=Yc,e.ROW_SAVE_ERROR_CLASS=Xc,e.ROW_SAVE_STATES=Jc,e.SCROLL_EDGE_SELECTOR=Pp,e.SEARCH_OPEN_KEY=gd,e.SELECT_CELL_CLASS=X,e.SHORTCUTS_OFF_ATTRIBUTE=lt,e.SHORTCUT_EVENT=dt,e.SHORTCUT_SCOPE_ATTRIBUTE=ut,e.SUBMIT_ONCE_ATTRIBUTE=Kp,e.THEME_BOOT_SCRIPT_BODY=ym,e.THEME_CHANGE_EVENT=dm,e.THEME_EFFECTS=om,e.THEME_EFFECT_DURATION=lm,e.THEME_MODES=am,e.THEME_SWITCHING_CLASS=um,e.TOAST_ACTION_METHODS=Li,e.TOAST_ACTION_MS=eo,e.VIRTUAL_OVERSCAN=bc,e.WUI_HEADERS=U,e.WuiPostError=Zl,e.WuiSelect=li,e.acceptDroppedFiles=rf,e.acceptLabel=ef,e.addRowSelectCells=Cu,e.addSelectColumn=wu,e.applyBarBulk=Jf,e.applyRefresh=Qa,e.applyTheme=vm,e.ariaKeyShortcuts=Ct,e.attachFileDrop=af,e.attachInputMask=Mf,e.attachRowDrag=Ap,e.attachScrollEdges=Ip,e.attachShiftRange=Ou,e.avatarCropOptions=hd,e.avatarUnreadableMessage=md,e.barBulkCountText=Wf,e.buildPasswordRules=ep,e.clampColumnWidth=kc,e.classifyStatus=ca,e.collapseSearch=Td,e.configureCsrf=na,e.copyTextToClipboard=dc,e.createGroupSelectCell=vu,e.createRequestQueue=ya,e.createSelectHeaderCell=hu,e.createSelectRowCell=gu,e.createSelectSpacerCell=_u,e.currencyPrefix=Bo,e.deriveStepStatus=cu,e.emptyValueLabel=G,e.evaluatePassword=tp,e.fillText=N,e.formatCompact=Ns,e.formatCurrency=js,e.formatDate=J,e.formatDateTime=Vs,e.formatDuration=Is,e.formatFileSize=Zd,e.formatMasked=Tf,e.formatNumber=K,e.formatPercent=Ps,e.formatRelativeTime=Ul,e.formatValue=zs,e.glyphNode=R,e.groupCount=Oc,e.groupItems=Ac,e.groupNotificationsByDay=Pl,e.groupRowsOf=yu,e.identityCell=Qc,e.inShortcutScope=Dt,e.initCollapsibleSearch=Od,e.initCommandShortcuts=Rd,e.initFlashToasts=Gp,e.initInputMasks=Bf,e.initPageBarBulk=Yf,e.initRowDrag=Np,e.initScrollEdges=Hp,e.initSubmitOnce=im,e.isCommandChord=Pd,e.isCurrencyCode=zo,e.isHeicFile=pd,e.isImageFile=Yd,e.isImageOnlyAccept=$d,e.isMaskPattern=bf,e.isPdfFile=Qd,e.isTimeZone=Ko,e.isTypingTarget=wt,e.loadServer=mo,e.loadShell=_o,e.loadedServer=ho,e.loadedShell=vo,e.maskedPostValue=Of,e.matchSegments=Pu,e.matchesAccept=tf,e.measureRows=Gc,e.mentionLabel=dl,e.mentionTextFromValue=ml,e.mentionValueFromText=hl,e.mentionedIds=gl,e.moveFocus=kt,e.nextTheme=xm,e.notificationCountText=kl,e.notificationDayHeading=Nl,e.notificationTime=Ml,e.notificationTriggerLabel=Al,e.notificationUnreadAnnouncement=jl,e.openSearch=wd,e.parseMentionValue=pl,e.parseServerHtml=Yi,e.parseToastAction=Bi,e.passwordSatisfies=np,e.pinAtValue=Lc,e.pinClasses=zc,e.pinOffsetVar=Fc,e.planPins=Rc,e.playRowMoves=Kc,e.pluralText=et,e.postedMasked=wf,e.rawMasked=Cf,e.readColumnWidths=Nc,e.readCsrf=oa,e.readStoredTheme=gm,e.readText=M,e.refreshAfter=Za,e.refreshRegions=Ea,e.relativeTimeTitle=Wl,e.reloadsPage=Ha,e.resolveMask=Sf,e.resolveTheme=hm,e.rowLabel=$c,e.rowOrderChanged=qc,e.runShortcut=Ot,e.runToastAction=ao,e.saveOutcomeText=il,e.setRowSaveState=nl,e.setText=Ze,e.settledRows=rl,e.shortcutKey=St,e.shortcutName=xt,e.shortcutsOff=Et,e.showResultToast=ro,e.showToast=io,e.stepperHeaderItems=lu,e.storeTheme=_m,e.syncGroupSelect=Eu,e.syncSelectAll=Tu,e.syncTargets=Mp,e.themeBootScript=bm,e.themeKeyframes=jm,e.tickedKeys=_p,e.timeZoneLabel=Ws,e.timeoutFromAttribute=da,e.toInstant=q,e.todayIn=Qo,e.transitionTheme=Nm,e.validateFile=nf,e.virtualRange=jc,e.wallClockOf=Zo,e.watchSystemTheme=Sm,e.whenElementsReady=Ln,e.withTrustedLabel=xr,e.writeColumnWidths=Pc,e.wuiFetch=va,e.wuiUpload=ou,e.zoneOffsetMs=Jo,e.zoneParts=qo,e})({});
|