@rero/rero-ils-ui
Version:
User interface for RERO integrated library system (RERO ILS).
140 lines (122 loc) • 63.3 kB
JavaScript
import{Ga as Be,wa as yt}from"./chunk-WKOKZ3JO.js";import{Aa as O,Ab as V,Ca as M,Ea as ut,Fa as we,Fc as pt,Gc as ft,Ha as _e,Kb as dt,La as Le,Vc as ht,a as h,b as Te,da as A,e as at,ea as Oe,ga as Ae,ia as b,ja as ot,l as N,mb as ct,od as mt,pb as Ne,pd as j,qb as te,ra as lt,sa as U,tc as He,uc as We,vd as H,yb as je,zb as Re,zd as gt}from"./chunk-3WD6XLXL.js";function gi(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0}function Ue(e,n,t=new WeakSet){if(e===n)return!0;if(!e||!n||typeof e!="object"||typeof n!="object"||t.has(e)||t.has(n))return!1;t.add(e).add(n);let i=Array.isArray(e),r=Array.isArray(n),s,a,o;if(i&&r){if(a=e.length,a!=n.length)return!1;for(s=a;s--!==0;)if(!Ue(e[s],n[s],t))return!1;return!0}if(i!=r)return!1;let l=e instanceof Date,u=n instanceof Date;if(l!=u)return!1;if(l&&u)return e.getTime()==n.getTime();let c=e instanceof RegExp,p=n instanceof RegExp;if(c!=p)return!1;if(c&&p)return e.toString()==n.toString();let d=Object.keys(e);if(a=d.length,a!==Object.keys(n).length)return!1;for(s=a;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,d[s]))return!1;for(s=a;s--!==0;)if(o=d[s],!Ue(e[o],n[o],t))return!1;return!0}function yi(e,n){return Ue(e,n)}function xe(e){return typeof e=="function"&&"call"in e&&"apply"in e}function G(e){return!gi(e)}function Ie(e,n){if(!e||!n)return null;try{let t=e[n];if(G(t))return t}catch{}if(Object.keys(e).length){if(xe(n))return n(e);if(n.indexOf(".")===-1)return e[n];{let t=n.split("."),i=e;for(let r=0,s=t.length;r<s;++r){if(i==null)return null;i=i[t[r]]}return i}}return null}function ie(e,n,t){return t?Ie(e,t)===Ie(n,t):yi(e,n)}function rn(e,n){if(e!=null&&n&&n.length){for(let t of n)if(ie(e,t))return!0}return!1}function Si(e,n=!0){return e instanceof Object&&e.constructor===Object&&(n||Object.keys(e).length!==0)}function sn(e,n){let t=-1;if(G(e))try{t=e.findLastIndex(n)}catch{t=e.lastIndexOf([...e].reverse().find(n))}return t}function L(e,...n){return xe(e)?e(...n):e}function ne(e,n=!0){return typeof e=="string"&&(n||e!=="")}function F(e){return ne(e)?e.replace(/(-|_)/g,"").toLowerCase():e}function Ve(e,n="",t={}){let i=F(n).split("."),r=i.shift();if(r){if(Si(e)){let s=Object.keys(e).find(a=>F(a)===r)||"";return Ve(L(e[s],t),i.join("."),t)}return}return L(e,t)}function St(e,n=!0){return Array.isArray(e)&&(n||e.length!==0)}function an(e){return e instanceof Date}function on(e=""){return G(e)&&e.length===1&&!!e.match(/\S| /)}function Pe(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function w(e){if(e&&/[\xC0-\xFF\u0100-\u017E]/.test(e)){let n={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let t in n)e=e.replace(n[t],t)}return e}function ln(e,n,t){e&&n!==t&&(t>=e.length&&(t%=e.length,n%=e.length),e.splice(t,0,e.splice(n,1)[0]))}function bi(e,n){return e?e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className):!1}function bt(e,n){if(e&&n){let t=i=>{bi(e,i)||(e.classList?e.classList.add(i):e.className+=" "+i)};[n].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(t))}}function vi(){return window.innerWidth-document.documentElement.offsetWidth}function cn(e){typeof e=="string"?bt(document.body,e||"p-overflow-hidden"):(e!=null&&e.variableName&&document.body.style.setProperty(e.variableName,vi()+"px"),bt(document.body,e?.className||"p-overflow-hidden"))}function vt(e,n){if(e&&n){let t=i=>{e.classList?e.classList.remove(i):e.className=e.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," ")};[n].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(t))}}function dn(e){typeof e=="string"?vt(document.body,e||"p-overflow-hidden"):(e!=null&&e.variableName&&document.body.style.removeProperty(e.variableName),vt(document.body,e?.className||"p-overflow-hidden"))}function qe(e){for(let n of document?.styleSheets)try{for(let t of n?.cssRules)for(let i of t?.style)if(e.test(i))return{name:i,value:t.style.getPropertyValue(i).trim()}}catch{}return null}function Ct(e){let n={width:0,height:0};if(e){let[t,i]=[e.style.visibility,e.style.display],r=e.getBoundingClientRect();e.style.visibility="hidden",e.style.display="block",n.width=r.width||e.offsetWidth,n.height=r.height||e.offsetHeight,e.style.display=i,e.style.visibility=t}return n}function Ye(){let e=window,n=document,t=n.documentElement,i=n.getElementsByTagName("body")[0],r=e.innerWidth||t.clientWidth||i.clientWidth,s=e.innerHeight||t.clientHeight||i.clientHeight;return{width:r,height:s}}function ze(e){return e?Math.abs(e.scrollLeft):0}function Ei(){let e=document.documentElement;return(window.pageXOffset||ze(e))-(e.clientLeft||0)}function Ci(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function Ti(e){return e?getComputedStyle(e).direction==="rtl":!1}function pn(e,n,t=!0){var i,r,s,a;if(e){let o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Ct(e),l=o.height,u=o.width,c=n.offsetHeight,p=n.offsetWidth,d=n.getBoundingClientRect(),f=Ci(),m=Ei(),g=Ye(),S,E,C="top";d.top+c+l>g.height?(S=d.top+f-l,C="bottom",S<0&&(S=f)):S=c+d.top+f,d.left+u>g.width?E=Math.max(0,d.left+m+p-u):E=d.left+m,Ti(e)?e.style.insetInlineEnd=E+"px":e.style.insetInlineStart=E+"px",e.style.top=S+"px",e.style.transformOrigin=C,t&&(e.style.marginTop=C==="bottom"?`calc(${(r=(i=qe(/-anchor-gutter$/))==null?void 0:i.value)!=null?r:"2px"} * -1)`:(a=(s=qe(/-anchor-gutter$/))==null?void 0:s.value)!=null?a:"")}}function Tt(e,n){e&&(typeof n=="string"?e.style.cssText=n:Object.entries(n||{}).forEach(([t,i])=>e.style[t]=i))}function Oi(e,n){if(e instanceof HTMLElement){let t=e.offsetWidth;if(n){let i=getComputedStyle(e);t+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return t}return 0}function fn(e,n,t=!0,i=void 0){var r;if(e){let s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:Ct(e),a=n.offsetHeight,o=n.getBoundingClientRect(),l=Ye(),u,c,p=i??"top";if(!i&&o.top+a+s.height>l.height?(u=-1*s.height,p="bottom",o.top+u<0&&(u=-1*o.top)):u=a,s.width>l.width?c=o.left*-1:o.left+s.width>l.width?c=(o.left+s.width-l.width)*-1:c=0,e.style.top=u+"px",e.style.insetInlineStart=c+"px",e.style.transformOrigin=p,t){let d=(r=qe(/-anchor-gutter$/))==null?void 0:r.value;e.style.marginTop=p==="bottom"?`calc(${d??"2px"} * -1)`:d??""}}}function Ot(e){if(e){let n=e.parentNode;return n&&n instanceof ShadowRoot&&n.host&&(n=n.host),n}return null}function Ai(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&Ot(e))}function W(e){return typeof Element<"u"?e instanceof Element:e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.nodeName=="string"}function De(e){var n;if(W(e))return e;if(!e||typeof e!="object")return;let t=e;if("current"in e)t=e.current,t=(n=De(t?.elementRef))!=null?n:t;else if("value"in e)t=e.value;else if("nativeElement"in e)t=e.nativeElement;else if("el"in e){let i=e.el;i&&typeof i=="object"&&"nativeElement"in i?t=i.nativeElement:t=i}else if("elementRef"in e)return De(e.elementRef);return t=L(t),W(t)?t:void 0}function wi(e,n){var t,i,r;if(e)switch(e){case"document":return document;case"window":return window;case"body":return document.body;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@first":return n?.firstElementChild;case"@last":return n?.lastElementChild;case"@child":return(t=n?.children)==null?void 0:t[0];case"@parent":return n?.parentElement;case"@grandparent":return(i=n?.parentElement)==null?void 0:i.parentElement;default:{if(typeof e=="string"){let o=e.match(/^@child\[(\d+)]/);return o?((r=n?.children)==null?void 0:r[parseInt(o[1],10)])||null:document.querySelector(e)||null}let s=(o=>typeof o=="function"&&"call"in o&&"apply"in o)(e)?e():e,a=De(s);return Ai(a)?a:s?.nodeType===9?s:void 0}}}function mn(e,n){let t=wi(e,n);if(t)t.appendChild(n);else throw new Error("Cannot append "+n+" to "+e)}var Ge;function gn(e){if(e){let n=getComputedStyle(e);return e.offsetHeight-e.clientHeight-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)}else{if(Ge!=null)return Ge;let n=document.createElement("div");Tt(n,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(n);let t=n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ge=t,t}}var Ke;function Et(e){if(e){let n=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}else{if(Ke!=null)return Ke;let n=document.createElement("div");Tt(n,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(n);let t=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),Ke=t,t}}function $e(e,n={}){if(W(e)){let t=(r,s)=>{var a,o;let l=(a=e?.$attrs)!=null&&a[r]?[(o=e?.$attrs)==null?void 0:o[r]]:[];return[s].flat().reduce((u,c)=>{if(c!=null){let p=typeof c;if(p==="string"||p==="number")u.push(c);else if(p==="object"){let d=Array.isArray(c)?t(r,c):Object.entries(c).map(([f,m])=>r==="style"&&(m||m===0)?`${f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${m}`:m?f:void 0);u=d.length?u.concat(d.filter(f=>!!f)):u}}return u},l)},i=r=>{t("style",r).forEach(s=>{let a=s.indexOf(":");if(a<0)return;let o=s.slice(0,a).trim(),l=s.slice(a+1).trim();o&&e.style.setProperty(o,l)})};Object.entries(n).forEach(([r,s])=>{if(s!=null){let a=r.match(/^on(.+)/);a?e.addEventListener(a[1].toLowerCase(),s):r==="p-bind"||r==="pBind"?$e(e,s):r==="style"?(i(s),(e.$attrs=e.$attrs||{})&&(e.$attrs[r]=e.style.cssText)):(s=r==="class"?[...new Set(t("class",s))].join(" ").trim():s,(e.$attrs=e.$attrs||{})&&(e.$attrs[r]=s),e.setAttribute(r,s))}})}}function yn(e,n={},...t){if(e){let i=document.createElement(e);return $e(i,n),i.append(...t),i}}function Sn(e,n){if(e){e.style.opacity="0";let t=+new Date,i="0",r=function(){i=`${+e.style.opacity+(new Date().getTime()-t)/n}`,e.style.opacity=i,t=+new Date,+i<1&&("requestAnimationFrame"in window?requestAnimationFrame(r):setTimeout(r,16))};r()}}function _i(e,n){return W(e)?Array.from(e.querySelectorAll(n)):[]}function bn(e,n){return W(e)?e.matches(n)?e:e.querySelector(n):null}function vn(e,n){e&&document.activeElement!==e&&e.focus(n)}function En(e,n){if(W(e)){let t=e.getAttribute(n);return isNaN(t)?t==="true"||t==="false"?t==="true":t:+t}}function At(e,n=""){let t=_i(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
[href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${n},
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`),i=[];for(let r of t)getComputedStyle(r).display!="none"&&getComputedStyle(r).visibility!="hidden"&&i.push(r);return i}function Cn(e,n){let t=At(e,n);return t.length>0?t[0]:null}function Tn(e){if(e){let n=e.offsetHeight,t=getComputedStyle(e);return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),n}return 0}function Li(e){if(e){let[n,t]=[e.style.visibility,e.style.display];e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display=t,e.style.visibility=n,i}return 0}function Ni(e){if(e){let[n,t]=[e.style.visibility,e.style.display];e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display=t,e.style.visibility=n,i}return 0}function On(e){var n;if(e){let t=(n=Ot(e))==null?void 0:n.childNodes,i=0;if(t)for(let r=0;r<t.length;r++){if(t[r]===e)return i;t[r].nodeType===1&&i++}}return-1}function An(e,n){let t=At(e,n);return t.length>0?t[t.length-1]:null}function Ri(e){if(e){let n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||ze(document.documentElement)||ze(document.body)||0)}}return{top:"auto",left:"auto"}}function wt(e,n){if(e){let t=e.offsetHeight;if(n){let i=getComputedStyle(e);t+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return t}return 0}function wn(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function _n(e){if(e){let n=e.offsetWidth,t=getComputedStyle(e);return n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)+parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth),n}return 0}function Ln(e){if(e){let n=e.nodeName,t=e.parentElement&&e.parentElement.nodeName;return n==="INPUT"||n==="TEXTAREA"||n==="BUTTON"||n==="A"||t==="INPUT"||t==="TEXTAREA"||t==="BUTTON"||t==="A"||!!e.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1}function Nn(e){return!!(e&&e.offsetParent!=null)}function Rn(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function In(e,n){var t,i;if(e){let r=e.parentElement,s=Ri(r),a=Ye(),o=e.offsetParent?e.offsetWidth:Ni(e),l=e.offsetParent?e.offsetHeight:Li(e),u=Oi((t=r?.children)==null?void 0:t[0]),c=wt((i=r?.children)==null?void 0:i[0]),p="",d="";s.left+u+o>a.width-Et()?s.left<o?n%2===1?p=s.left?"-"+s.left+"px":"100%":n%2===0&&(p=a.width-o-Et()+"px"):p="-100%":p="100%",e.getBoundingClientRect().top+c+l>a.height?d=`-${l-c}px`:d="0px",e.style.top=d,e.style.insetInlineStart=p}}function xn(){return new Promise(e=>{requestAnimationFrame(()=>{requestAnimationFrame(e)})})}function Pn(e){var n;e&&("remove"in Element.prototype?e.remove():(n=e.parentNode)==null||n.removeChild(e))}function Dn(e,n){let t=De(e);if(t)t.removeChild(n);else throw new Error("Cannot remove "+n+" from "+e)}function $n(e,n){let t=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=t?parseFloat(t):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),s=r?parseFloat(r):0,a=e.getBoundingClientRect(),o=n.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-i-s,l=e.scrollTop,u=e.clientHeight,c=wt(n);o<0?e.scrollTop=l+o:o+c>u&&(e.scrollTop=l+o-u+c)}function _t(e,n="",t){if(W(e)&&t!==null&&t!==void 0){if(n==="style"){typeof t=="string"?e.style.cssText=t:typeof t=="object"&&Object.entries(t).forEach(([i,r])=>{if(r==null)return;let s=i.startsWith("--")?i:i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e.style.setProperty(s,String(r))});return}e.setAttribute(n,t)}}var Me={};function Lt(e="pui_id_"){return Object.hasOwn(Me,e)||(Me[e]=0),Me[e]++,`${e}${Me[e]}`}function K(...e){if(e){let n=[];for(let t=0;t<e.length;t++){let i=e[t];if(!i)continue;let r=typeof i;if(r==="string"||r==="number")n.push(i);else if(r==="object"){let s=Array.isArray(i)?[K(...i)]:Object.entries(i).map(([a,o])=>o?a:void 0);n=s.length?n.concat(s.filter(a=>!!a)):n}}return n.join(" ").trim()}}var Ii=Object.defineProperty,Nt=Object.getOwnPropertySymbols,xi=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable,Rt=(e,n,t)=>n in e?Ii(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,It=(e,n)=>{for(var t in n||(n={}))xi.call(n,t)&&Rt(e,t,n[t]);if(Nt)for(var t of Nt(n))Pi.call(n,t)&&Rt(e,t,n[t]);return e};function xt(...e){if(e){let n=[];for(let t=0;t<e.length;t++){let i=e[t];if(!i)continue;let r=typeof i;if(r==="string"||r==="number")n.push(i);else if(r==="object"){let s=Array.isArray(i)?[xt(...i)]:Object.entries(i).map(([a,o])=>o?a:void 0);n=s.length?n.concat(s.filter(a=>!!a)):n}}return n.join(" ").trim()}}function Di(e){return typeof e=="function"&&"call"in e&&"apply"in e}function $i({skipUndefined:e=!1},...n){return n?.reduce((t,i={})=>{for(let r in i){let s=i[r];if(!(e&&s===void 0))if(r==="style")t.style=It(It({},t.style),i.style);else if(r==="class"||r==="className")t[r]=xt(t[r],i[r]);else if(Di(s)){let a=t[r];t[r]=a?(...o)=>{a(...o),s(...o)}:s}else t[r]=s}return t},{})}function Xe(...e){return $i({skipUndefined:!1},...e)}var Pt=["*"],Mi=(function(e){return e[e.ACCEPT=0]="ACCEPT",e[e.REJECT=1]="REJECT",e[e.CANCEL=2]="CANCEL",e})(Mi||{}),Un=(()=>{class e{requireConfirmationSource=new N;acceptConfirmationSource=new N;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(t){return this.requireConfirmationSource.next(t),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})();var T=(()=>{class e{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return e})(),Vn=(()=>{class e{static AND="and";static OR="or"}return e})(),Gn=(()=>{class e{filter(t,i,r,s,a){let o=[];if(t)for(let l of t)for(let u of i){let c=Ie(l,u);if(this.filters[s](c,r,a)){o.push(l);break}}return o}filters={startsWith:(t,i,r)=>{if(i==null||i.trim()==="")return!0;if(t==null)return!1;let s=w(i.toString()).toLocaleLowerCase(r);return w(t.toString()).toLocaleLowerCase(r).slice(0,s.length)===s},contains:(t,i,r)=>{if(i==null||typeof i=="string"&&i.trim()==="")return!0;if(t==null)return!1;let s=w(i.toString()).toLocaleLowerCase(r);return w(t.toString()).toLocaleLowerCase(r).indexOf(s)!==-1},notContains:(t,i,r)=>{if(i==null||typeof i=="string"&&i.trim()==="")return!0;if(t==null)return!1;let s=w(i.toString()).toLocaleLowerCase(r);return w(t.toString()).toLocaleLowerCase(r).indexOf(s)===-1},endsWith:(t,i,r)=>{if(i==null||i.trim()==="")return!0;if(t==null)return!1;let s=w(i.toString()).toLocaleLowerCase(r),a=w(t.toString()).toLocaleLowerCase(r);return a.indexOf(s,a.length-s.length)!==-1},equals:(t,i,r)=>i==null||typeof i=="string"&&i.trim()===""?!0:t==null?!1:t.getTime&&i.getTime?t.getTime()===i.getTime():t==i?!0:w(t.toString()).toLocaleLowerCase(r)==w(i.toString()).toLocaleLowerCase(r),notEquals:(t,i,r)=>i==null||typeof i=="string"&&i.trim()===""?!1:t==null?!0:t.getTime&&i.getTime?t.getTime()!==i.getTime():t==i?!1:w(t.toString()).toLocaleLowerCase(r)!=w(i.toString()).toLocaleLowerCase(r),in:(t,i)=>{if(i==null||i.length===0)return!0;for(let r=0;r<i.length;r++)if(ie(t,i[r]))return!0;return!1},between:(t,i)=>i==null||i[0]==null||i[1]==null?!0:t==null?!1:t.getTime?i[0].getTime()<=t.getTime()&&t.getTime()<=i[1].getTime():i[0]<=t&&t<=i[1],lt:(t,i,r)=>i==null?!0:t==null?!1:t.getTime&&i.getTime?t.getTime()<i.getTime():t<i,lte:(t,i,r)=>i==null?!0:t==null?!1:t.getTime&&i.getTime?t.getTime()<=i.getTime():t<=i,gt:(t,i,r)=>i==null?!0:t==null?!1:t.getTime&&i.getTime?t.getTime()>i.getTime():t>i,gte:(t,i,r)=>i==null?!0:t==null?!1:t.getTime&&i.getTime?t.getTime()>=i.getTime():t>=i,is:(t,i,r)=>this.filters.equals(t,i,r),isNot:(t,i,r)=>this.filters.notEquals(t,i,r),before:(t,i,r)=>this.filters.lt(t,i,r),after:(t,i,r)=>this.filters.gt(t,i,r),dateIs:(t,i)=>i==null?!0:t==null?!1:t.toDateString()===i.toDateString(),dateIsNot:(t,i)=>i==null?!0:t==null?!1:t.toDateString()!==i.toDateString(),dateBefore:(t,i)=>i==null?!0:t==null?!1:t.getTime()<i.getTime(),dateAfter:(t,i)=>i==null?!0:t==null?!1:(t.setHours(0,0,0,0),t.getTime()>i.getTime())};register(t,i){this.filters[t]=i}static \u0275fac=function(i){return new(i||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Kn=(()=>{class e{messageSource=new N;clearSource=new N;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(t){t&&this.messageSource.next(t)}addAll(t){t&&t.length&&this.messageSource.next(t)}clear(t){this.clearSource.next(t||null)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),qn=(()=>{class e{clickSource=new N;parentDragSource=new N;clickObservable=this.clickSource.asObservable();parentDragObservable=this.parentDragSource.asObservable();add(t){t&&this.clickSource.next(t)}emitParentDrag(t){this.parentDragSource.next(t)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var zn=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=je({type:e,selectors:[["p-header"]],standalone:!1,ngContentSelectors:Pt,decls:1,vars:0,template:function(i,r){i&1&&(He(),We(0))},encapsulation:2})}return e})(),Yn=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=je({type:e,selectors:[["p-footer"]],standalone:!1,ngContentSelectors:Pt,decls:1,vars:0,template:function(i,r){i&1&&(He(),We(0))},encapsulation:2})}return e})(),Xn=(()=>{class e{template;type;name;constructor(t){this.template=t}getType(){return this.name}static \u0275fac=function(i){return new(i||e)(te(ct))};static \u0275dir=V({type:e,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}})}return e})(),Zn=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Re({type:e});static \u0275inj=Oe({imports:[yt]})}return e})(),Jn=(()=>{class e{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return e})(),Qn=(()=>{class e{dragStartSource=new N;dragStopSource=new N;dragStart$=this.dragStartSource.asObservable();dragStop$=this.dragStopSource.asObservable();startDrag(t){this.dragStartSource.next(t)}stopDrag(t){this.dragStopSource.next(t)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})();var Fi=Object.defineProperty,Dt=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,ji=Object.prototype.propertyIsEnumerable,$t=(e,n,t)=>n in e?Fi(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Hi=(e,n)=>{for(var t in n||(n={}))ki.call(n,t)&&$t(e,t,n[t]);if(Dt)for(var t of Dt(n))ji.call(n,t)&&$t(e,t,n[t]);return e};function se(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0}function Wi(e){return typeof e=="function"&&"call"in e&&"apply"in e}function v(e){return!se(e)}function P(e,n=!0){return e instanceof Object&&e.constructor===Object&&(n||Object.keys(e).length!==0)}function Mt(e={},n={}){let t=Hi({},e);return Object.keys(n).forEach(i=>{let r=i;P(n[r])&&r in e&&P(e[r])?t[r]=Mt(e[r],n[r]):t[r]=n[r]}),t}function Ft(...e){return e.reduce((n,t,i)=>i===0?t:Mt(n,t),{})}function k(e,...n){return Wi(e)?e(...n):e}function B(e,n=!0){return typeof e=="string"&&(n||e!=="")}function kt(e){return v(e)&&!isNaN(e)}function R(e,n){if(n){let t=n.test(e);return n.lastIndex=0,t}return!1}function Ze(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function Fe(e){return B(e)?e.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():e}function tr(e){return e==="auto"?0:typeof e=="number"?e:Number(e.replace(/[^\d.]/g,"").replace(",","."))*1e3}function jt(){let e=new Map;return{on(n,t){let i=e.get(n);return i?i.push(t):i=[t],e.set(n,i),this},off(n,t){let i=e.get(n);return i&&i.splice(i.indexOf(t)>>>0,1),this},emit(n,t){let i=e.get(n);i&&i.forEach(r=>{r(t)})},clear(){e.clear()}}}function Bi(e,n){return e?e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className):!1}function rr(e,n){if(e&&n){let t=i=>{Bi(e,i)||(e.classList?e.classList.add(i):e.className+=" "+i)};[n].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(t))}}function sr(e,n){if(e&&n){let t=i=>{e.classList?e.classList.remove(i):e.className=e.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," ")};[n].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(t))}}function ar(e){let n={width:0,height:0};if(e){let[t,i]=[e.style.visibility,e.style.display],r=e.getBoundingClientRect();e.style.visibility="hidden",e.style.display="block",n.width=r.width||e.offsetWidth,n.height=r.height||e.offsetHeight,e.style.display=i,e.style.visibility=t}return n}function or(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function lr(e,n,t=null,i){var r;n&&((r=e?.style)==null||r.setProperty(n,t,i))}var Ui=Object.defineProperty,Vi=Object.defineProperties,Gi=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,Ht=(e,n,t)=>n in e?Ui(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,x=(e,n)=>{for(var t in n||(n={}))Bt.call(n,t)&&Ht(e,t,n[t]);if(ke)for(var t of ke(n))Ut.call(n,t)&&Ht(e,t,n[t]);return e},Je=(e,n)=>Vi(e,Gi(n)),D=(e,n)=>{var t={};for(var i in e)Bt.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&ke)for(var i of ke(e))n.indexOf(i)<0&&Ut.call(e,i)&&(t[i]=e[i]);return t};function fr(...e){return Ft(...e)}var Ki=jt(),_=Ki,ae=/{([^}]*)}/g,Vt=/(\d+\s+[\+\-\*\/]\s+\d+)/g,Gt=/var\([^)]+\)/g;function Wt(e){return B(e)?e.replace(/[A-Z]/g,(n,t)=>t===0?n:"."+n.toLowerCase()).toLowerCase():e}function qi(e){return P(e)&&e.hasOwnProperty("$value")&&e.hasOwnProperty("$type")?e.$value:e}function zi(e){return e.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Qe(e="",n=""){return zi(`${B(e,!1)&&B(n,!1)?`${e}-`:e}${n}`)}function Kt(e="",n=""){return`--${Qe(e,n)}`}function Yi(e=""){let n=(e.match(/{/g)||[]).length,t=(e.match(/}/g)||[]).length;return(n+t)%2!==0}function qt(e,n="",t="",i=[],r){if(B(e)){let s=e.trim();if(Yi(s))return;if(R(s,ae)){let a=s.replaceAll(ae,o=>{let l=o.replace(/{|}/g,"").split(".").filter(u=>!i.some(c=>R(u,c)));return`var(${Kt(t,Fe(l.join("-")))}${v(r)?`, ${r}`:""})`});return R(a.replace(Gt,"0"),Vt)?`calc(${a})`:a}return s}else if(kt(e))return e}function Xi(e,n,t){B(n,!1)&&e.push(`${n}:${t};`)}function q(e,n){return e?`${e}{${n}}`:""}function zt(e,n){if(e.indexOf("dt(")===-1)return e;function t(a,o){let l=[],u=0,c="",p=null,d=0;for(;u<=a.length;){let f=a[u];if((f==='"'||f==="'"||f==="`")&&a[u-1]!=="\\"&&(p=p===f?null:f),!p&&(f==="("&&d++,f===")"&&d--,(f===","||u===a.length)&&d===0)){let m=c.trim();m.startsWith("dt(")?l.push(zt(m,o)):l.push(i(m)),c="",u++;continue}f!==void 0&&(c+=f),u++}return l}function i(a){let o=a[0];if((o==='"'||o==="'"||o==="`")&&a[a.length-1]===o)return a.slice(1,-1);let l=Number(a);return isNaN(l)?a:l}let r=[],s=[];for(let a=0;a<e.length;a++)if(e[a]==="d"&&e.slice(a,a+3)==="dt(")s.push(a),a+=2;else if(e[a]===")"&&s.length>0){let o=s.pop();s.length===0&&r.push([o,a])}if(!r.length)return e;for(let a=r.length-1;a>=0;a--){let[o,l]=r[a],u=e.slice(o+3,l),c=t(u,n),p=n(...c);e=e.slice(0,o)+p+e.slice(l+1)}return e}var br=e=>{var n;let t=y.getTheme(),i=et(t,e,void 0,"variable"),r=(n=i?.match(/--[\w-]+/g))==null?void 0:n[0],s=et(t,e,void 0,"value");return{name:r,variable:i,value:s}},$=(...e)=>et(y.getTheme(),...e),et=(e={},n,t,i)=>{if(n){let{variable:r,options:s}=y.defaults||{},{prefix:a,transform:o}=e?.options||s||{},l=R(n,ae)?n:`{${n}}`;return i==="value"||se(i)&&o==="strict"?y.getTokenValue(n):qt(l,void 0,a,[r.excludedKeyRegex],t)}return""};function z(e,...n){if(e instanceof Array){let t=e.reduce((i,r,s)=>{var a;return i+r+((a=k(n[s],{dt:$}))!=null?a:"")},"");return zt(t,$)}return k(e,{dt:$})}function Zi(e,n={}){let t=y.defaults.variable,{prefix:i=t.prefix,selector:r=t.selector,excludedKeyRegex:s=t.excludedKeyRegex}=n,a=[],o=[],l=[{node:e,path:i}];for(;l.length;){let{node:c,path:p}=l.pop();for(let d in c){let f=c[d],m=qi(f),g=R(d,s)?Qe(p):Qe(p,Fe(d));if(P(m))l.push({node:m,path:g});else{let S=Kt(g),E=qt(m,g,i,[s]);Xi(o,S,E);let C=g;i&&C.startsWith(i+"-")&&(C=C.slice(i.length+1)),a.push(C.replace(/-/g,"."))}}}let u=o.join("");return{value:o,tokens:a,declarations:u,css:q(r,u)}}var I={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(e){return{type:"class",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(e){return{type:"attr",selector:`:root${e},:host${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:"media",selector:e,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(e.trim())}}},custom:{resolve(e){return{type:"custom",selector:e,matched:!0}}}},resolve(e){let n=Object.keys(this.rules).filter(t=>t!=="custom").map(t=>this.rules[t]);return[e].flat().map(t=>{var i;return(i=n.map(r=>r.resolve(t)).find(r=>r.matched))!=null?i:this.rules.custom.resolve(t)})}},_toVariables(e,n){return Zi(e,{prefix:n?.prefix})},getCommon({name:e="",theme:n={},params:t,set:i,defaults:r}){var s,a,o,l,u,c,p;let{preset:d,options:f}=n,m,g,S,E,C,Z,oe;if(v(d)&&f.transform!=="strict"){let{primitive:le,semantic:ue,extend:ce}=d,J=ue||{},{colorScheme:de}=J,pe=D(J,["colorScheme"]),fe=ce||{},{colorScheme:he}=fe,Q=D(fe,["colorScheme"]),ee=de||{},{dark:me}=ee,ge=D(ee,["dark"]),ye=he||{},{dark:Se}=ye,be=D(ye,["dark"]),ve=v(le)?this._toVariables({primitive:le},f):{},Ee=v(pe)?this._toVariables({semantic:pe},f):{},Ce=v(ge)?this._toVariables({light:ge},f):{},it=v(me)?this._toVariables({dark:me},f):{},nt=v(Q)?this._toVariables({semantic:Q},f):{},rt=v(be)?this._toVariables({light:be},f):{},st=v(Se)?this._toVariables({dark:Se},f):{},[Jt,Qt]=[(s=ve.declarations)!=null?s:"",ve.tokens],[ei,ti]=[(a=Ee.declarations)!=null?a:"",Ee.tokens||[]],[ii,ni]=[(o=Ce.declarations)!=null?o:"",Ce.tokens||[]],[ri,si]=[(l=it.declarations)!=null?l:"",it.tokens||[]],[ai,oi]=[(u=nt.declarations)!=null?u:"",nt.tokens||[]],[li,ui]=[(c=rt.declarations)!=null?c:"",rt.tokens||[]],[ci,di]=[(p=st.declarations)!=null?p:"",st.tokens||[]];m=this.transformCSS(e,Jt,"light","variable",f,i,r),g=Qt;let pi=this.transformCSS(e,`${ei}${ii}`,"light","variable",f,i,r),fi=this.transformCSS(e,`${ri}`,"dark","variable",f,i,r);S=`${pi}${fi}`,E=[...new Set([...ti,...ni,...si])];let hi=this.transformCSS(e,`${ai}${li}color-scheme:light`,"light","variable",f,i,r),mi=this.transformCSS(e,`${ci}color-scheme:dark`,"dark","variable",f,i,r);C=`${hi}${mi}`,Z=[...new Set([...oi,...ui,...di])],oe=k(d.css,{dt:$})}return{primitive:{css:m,tokens:g},semantic:{css:S,tokens:E},global:{css:C,tokens:Z},style:oe}},getPreset({name:e="",preset:n={},options:t,params:i,set:r,defaults:s,selector:a}){var o,l,u;let c,p,d;if(v(n)&&t.transform!=="strict"){let f=e.replace("-directive",""),m=n,{colorScheme:g,extend:S,css:E}=m,C=D(m,["colorScheme","extend","css"]),Z=S||{},{colorScheme:oe}=Z,le=D(Z,["colorScheme"]),ue=g||{},{dark:ce}=ue,J=D(ue,["dark"]),de=oe||{},{dark:pe}=de,fe=D(de,["dark"]),he=v(C)?this._toVariables({[f]:x(x({},C),le)},t):{},Q=v(J)?this._toVariables({[f]:x(x({},J),fe)},t):{},ee=v(ce)?this._toVariables({[f]:x(x({},ce),pe)},t):{},[me,ge]=[(o=he.declarations)!=null?o:"",he.tokens||[]],[ye,Se]=[(l=Q.declarations)!=null?l:"",Q.tokens||[]],[be,ve]=[(u=ee.declarations)!=null?u:"",ee.tokens||[]],Ee=this.transformCSS(f,`${me}${ye}`,"light","variable",t,r,s,a),Ce=this.transformCSS(f,be,"dark","variable",t,r,s,a);c=`${Ee}${Ce}`,p=[...new Set([...ge,...Se,...ve])],d=k(E,{dt:$})}return{css:c,tokens:p,style:d}},getPresetC({name:e="",theme:n={},params:t,set:i,defaults:r}){var s;let{preset:a,options:o}=n,l=(s=a?.components)==null?void 0:s[e];return this.getPreset({name:e,preset:l,options:o,params:t,set:i,defaults:r})},getPresetD({name:e="",theme:n={},params:t,set:i,defaults:r}){var s,a;let o=e.replace("-directive",""),{preset:l,options:u}=n,c=((s=l?.components)==null?void 0:s[o])||((a=l?.directives)==null?void 0:a[o]);return this.getPreset({name:o,preset:c,options:u,params:t,set:i,defaults:r})},applyDarkColorScheme(e){return!(e.darkModeSelector==="none"||e.darkModeSelector===!1)},getColorSchemeOption(e,n){var t;return this.applyDarkColorScheme(e)?this.regex.resolve(e.darkModeSelector===!0?n.options.darkModeSelector:(t=e.darkModeSelector)!=null?t:n.options.darkModeSelector):[]},getLayerOrder(e,n={},t,i){let{cssLayer:r}=n;return r?`@layer ${k(r.order||r.name||"primeui",t)}`:""},getCommonStyleSheet({name:e="",theme:n={},params:t,props:i={},set:r,defaults:s}){let a=this.getCommon({name:e,theme:n,params:t,set:r,defaults:s}),o=Object.entries(i).reduce((l,[u,c])=>l.push(`${u}="${c}"`)&&l,[]).join(" ");return Object.entries(a||{}).reduce((l,[u,c])=>{if(P(c)&&Object.hasOwn(c,"css")){let p=Ze(c.css),d=`${u}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${d}" ${o}>${p}</style>`)}return l},[]).join("")},getStyleSheet({name:e="",theme:n={},params:t,props:i={},set:r,defaults:s}){var a;let o={name:e,theme:n,params:t,set:r,defaults:s},l=(a=e.includes("-directive")?this.getPresetD(o):this.getPresetC(o))==null?void 0:a.css,u=Object.entries(i).reduce((c,[p,d])=>c.push(`${p}="${d}"`)&&c,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${e}-variables" ${u}>${Ze(l)}</style>`:""},createTokens(e={},n,t="",i="",r={}){let s=function(o,l={},u=[]){if(u.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:o,path:this.path,paths:l,value:void 0};u.push(this.path),l.name=this.path,l.binding||(l.binding={});let c=this.value;if(typeof this.value=="string"&&ae.test(this.value)){let p=this.value.trim().replace(ae,d=>{var f;let m=d.slice(1,-1),g=this.tokens[m];if(!g)return console.warn(`Token not found for path: ${m}`),"__UNRESOLVED__";let S=g.computed(o,l,u);return Array.isArray(S)&&S.length===2?`light-dark(${S[0].value},${S[1].value})`:(f=S?.value)!=null?f:"__UNRESOLVED__"});c=Vt.test(p.replace(Gt,"0"))?`calc(${p})`:p}return se(l.binding)&&delete l.binding,u.pop(),{colorScheme:o,path:this.path,paths:l,value:c.includes("__UNRESOLVED__")?void 0:c}},a=(o,l,u)=>{Object.entries(o).forEach(([c,p])=>{let d=R(c,n.variable.excludedKeyRegex)?l:l?`${l}.${Wt(c)}`:Wt(c),f=u?`${u}.${c}`:c;P(p)?a(p,d,f):(r[d]||(r[d]={paths:[],computed:(m,g={},S=[])=>{if(r[d].paths.length===1)return r[d].paths[0].computed(r[d].paths[0].scheme,g.binding,S);if(m&&m!=="none")for(let E=0;E<r[d].paths.length;E++){let C=r[d].paths[E];if(C.scheme===m)return C.computed(m,g.binding,S)}return r[d].paths.map(E=>E.computed(E.scheme,g[E.scheme],S))}}),r[d].paths.push({path:f,value:p,scheme:f.includes("colorScheme.light")?"light":f.includes("colorScheme.dark")?"dark":"none",computed:s,tokens:r}))})};return a(e,t,i),r},getTokenValue(e,n,t){var i;let r=(o=>o.split(".").filter(l=>!R(l.toLowerCase(),t.variable.excludedKeyRegex)).join("."))(n),s=n.includes("colorScheme.light")?"light":n.includes("colorScheme.dark")?"dark":void 0,a=[(i=e[r])==null?void 0:i.computed(s)].flat().filter(o=>o);return a.length===1?a[0].value:a.reduce((o={},l)=>{let u=l,{colorScheme:c}=u,p=D(u,["colorScheme"]);return o[c]=p,o},void 0)},getSelectorRule(e,n,t,i){return t==="class"||t==="attr"?q(v(n)?`${e}${n},${e} ${n}`:e,i):q(e,q(n??":root,:host",i))},transformCSS(e,n,t,i,r={},s,a,o){if(v(n)){let{cssLayer:l}=r;if(i!=="style"){let u=this.getColorSchemeOption(r,a);n=t==="dark"?u.reduce((c,{type:p,selector:d})=>(v(d)&&(c+=d.includes("[CSS]")?d.replace("[CSS]",n):this.getSelectorRule(d,o,p,n)),c),""):q(o??":root,:host",n)}if(l){let u={name:"primeui",order:"primeui"};P(l)&&(u.name=k(l.name,{name:e,type:i})),v(u.name)&&(n=q(`@layer ${u.name}`,n),s?.layerNames(u.name))}return n}return""}},y={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){let{theme:n}=e;n&&(this._theme=Je(x({},n),{options:x(x({},this.defaults.options),n.options)}),this._tokens=I.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var e;return((e=this.theme)==null?void 0:e.preset)||{}},get options(){var e;return((e=this.theme)==null?void 0:e.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),_.emit("theme:change",e)},getPreset(){return this.preset},setPreset(e){this._theme=Je(x({},this.theme),{preset:e}),this._tokens=I.createTokens(e,this.defaults),this.clearLoadedStyleNames(),_.emit("preset:change",e),_.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=Je(x({},this.theme),{options:e}),this.clearLoadedStyleNames(),_.emit("options:change",e),_.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return I.getTokenValue(this.tokens,e,this.defaults)},getCommon(e="",n){return I.getCommon({name:e,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e="",n){let t={name:e,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return I.getPresetC(t)},getDirective(e="",n){let t={name:e,theme:this.theme,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return I.getPresetD(t)},getCustomPreset(e="",n,t,i){let r={name:e,preset:n,options:this.options,selector:t,params:i,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return I.getPreset(r)},getLayerOrderCSS(e=""){return I.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e="",n,t="style",i){return I.transformCSS(e,n,i,t,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e="",n,t={}){return I.getCommonStyleSheet({name:e,theme:this.theme,params:n,props:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,n,t={}){return I.getStyleSheet({name:e,theme:this.theme,params:n,props:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:n}){this._loadingStyles.size&&(this._loadingStyles.delete(n),_.emit(`theme:${n}:load`,e),!this._loadingStyles.size&&_.emit("theme:load"))}};var Yt=`
*,
::before,
::after {
box-sizing: border-box;
}
.p-collapsible-enter-active {
animation: p-animate-collapsible-expand 0.2s ease-out;
overflow: hidden;
}
.p-collapsible-leave-active {
animation: p-animate-collapsible-collapse 0.2s ease-out;
overflow: hidden;
}
@keyframes p-animate-collapsible-expand {
from {
grid-template-rows: 0fr;
}
to {
grid-template-rows: 1fr;
}
}
@keyframes p-animate-collapsible-collapse {
from {
grid-template-rows: 1fr;
}
to {
grid-template-rows: 0fr;
}
}
.p-disabled,
.p-disabled * {
cursor: default;
pointer-events: none;
user-select: none;
}
.p-disabled,
.p-component:disabled {
opacity: dt('disabled.opacity');
}
.pi {
font-size: dt('icon.size');
}
.p-icon {
width: dt('icon.size');
height: dt('icon.size');
}
.p-overlay-mask {
background: var(--px-mask-background, dt('mask.background'));
color: dt('mask.color');
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.p-overlay-mask-enter-active {
animation: p-animate-overlay-mask-enter dt('mask.transition.duration') forwards;
}
.p-overlay-mask-leave-active {
animation: p-animate-overlay-mask-leave dt('mask.transition.duration') forwards;
}
@keyframes p-animate-overlay-mask-enter {
from {
background: transparent;
}
to {
background: var(--px-mask-background, dt('mask.background'));
}
}
@keyframes p-animate-overlay-mask-leave {
from {
background: var(--px-mask-background, dt('mask.background'));
}
to {
background: transparent;
}
}
.p-anchored-overlay-enter-active {
animation: p-animate-anchored-overlay-enter 300ms cubic-bezier(.19,1,.22,1);
}
.p-anchored-overlay-leave-active {
animation: p-animate-anchored-overlay-leave 300ms cubic-bezier(.19,1,.22,1);
}
@keyframes p-animate-anchored-overlay-enter {
from {
opacity: 0;
transform: scale(0.93);
}
}
@keyframes p-animate-anchored-overlay-leave {
to {
opacity: 0;
transform: scale(0.93);
}
}
`;var Ji=0,Xt=(()=>{class e{document=b(U);use(t,i={}){let r=!1,s=t,a=null,{immediate:o=!0,manual:l=!1,name:u=`style_${++Ji}`,id:c=void 0,media:p=void 0,nonce:d=void 0,first:f=!1,props:m={}}=i;if(this.document){if(a=this.document.querySelector(`style[data-primeng-style-id="${u}"]`)||c&&this.document.getElementById(c)||this.document.createElement("style"),a){if(!a.isConnected){s=t;let g=this.document.head;_t(a,"nonce",d),f&&g.firstChild?g.insertBefore(a,g.firstChild):g.appendChild(a),$e(a,{type:"text/css",media:p,nonce:d,"data-primeng-style-id":u})}a.textContent!==s&&(a.textContent=s)}return{id:c,name:u,el:a,css:s}}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Y={_loadedStyleNames:new Set,getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()}},Qi=`
.p-hidden-accessible {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.p-hidden-accessible input,
.p-hidden-accessible select {
transform: scale(0);
}
.p-overflow-hidden {
overflow: hidden;
padding-right: dt('scrollbar.width');
}
`,X=(()=>{class e{name="base";useStyle=b(Xt);css=void 0;style=void 0;classes={};inlineStyles={};load=(t,i={},r=s=>s)=>{let s=r(z`${L(t,{dt:$})}`);return s?this.useStyle.use(Pe(s),h({name:this.name},i)):{}};loadCSS=(t={})=>this.load(this.css,t);loadStyle=(t={},i="")=>this.load(this.style,t,(r="")=>y.transformCSS(t.name||this.name,`${r}${z`${i}`}`));loadBaseCSS=(t={})=>this.load(Qi,t);loadBaseStyle=(t={},i="")=>this.load(Yt,t,(r="")=>y.transformCSS(t.name||this.name,`${r}${z`${i}`}`));getCommonTheme=t=>y.getCommon(this.name,t);getComponentTheme=t=>y.getComponent(this.name,t);getPresetTheme=(t,i,r)=>y.getCustomPreset(this.name,t,i,r);getLayerOrderThemeCSS=()=>y.getLayerOrderCSS(this.name);getStyleSheet=(t="",i={})=>{if(this.css){let r=L(this.css,{dt:$}),s=Pe(z`${r}${t}`),a=Object.entries(i).reduce((o,[l,u])=>o.push(`${l}="${u}"`)&&o,[]).join(" ");return`<style type="text/css" data-primeng-style-id="${this.name}" ${a}>${s}</style>`}return""};getCommonThemeStyleSheet=(t,i={})=>y.getCommonStyleSheet(this.name,t,i);getThemeStyleSheet=(t,i={})=>{let r=[y.getStyleSheet(this.name,t,i)];if(this.style){let s=this.name==="base"?"global-style":`${this.name}-style`,a=z`${L(this.style,{dt:$})}`,o=Pe(y.transformCSS(s,a)),l=Object.entries(i).reduce((u,[c,p])=>u.push(`${c}="${p}"`)&&u,[]).join(" ");r.push(`<style type="text/css" data-primeng-style-id="${s}" ${l}>${o}</style>`)}return r.join("")};static \u0275fac=function(i){return new(i||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var en=(()=>{class e{theme=O(void 0);csp=O({nonce:void 0});isThemeChanged=!1;document=b(U);baseStyle=b(X);constructor(){M(()=>{_.on("theme:change",t=>{mt(()=>{this.isThemeChanged=!0,this.theme.set(t)})})}),M(()=>{let t=this.theme();this.document&&t&&(this.isThemeChanged||this.onThemeChange(t),this.isThemeChanged=!1)})}ngOnDestroy(){y.clearLoadedStyleNames(),_.clear()}onThemeChange(t){y.setTheme(t),this.document&&this.loadCommonTheme()}loadCommonTheme(){if(this.theme()!=="none"&&!y.isStyleNameLoaded("common")){let{primitive:t,semantic:i,global:r,style:s}=this.baseStyle.getCommonTheme?.()||{},a={nonce:this.csp?.()?.nonce};this.baseStyle.load(t?.css,h({name:"primitive-variables"},a)),this.baseStyle.load(i?.css,h({name:"semantic-variables"},a)),this.baseStyle.load(r?.css,h({name:"global-variables"},a)),this.baseStyle.loadBaseStyle(h({name:"global-style"},a),s),y.setLoadedStyleName("common")}}setThemeConfig(t){let{theme:i,csp:r}=t||{};i&&this.theme.set(i),r&&this.csp.set(r)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),tt=(()=>{class e extends en{ripple=O(!1);platformId=b(Le);inputStyle=O(null);inputVariant=O(null);overlayAppendTo=O("self");overlayOptions={};csp=O({nonce:void 0});unstyled=O(void 0);pt=O(void 0);ptOptions=O(void 0);filterMatchModeOptions={text:[T.STARTS_WITH,T.CONTAINS,T.NOT_CONTAINS,T.ENDS_WITH,T.EQUALS,T.NOT_EQUALS],numeric:[T.EQUALS,T.NOT_EQUALS,T.LESS_THAN,T.LESS_THAN_OR_EQUAL_TO,T.GREATER_THAN,T.GREATER_THAN_OR_EQUAL_TO],date:[T.DATE_IS,T.DATE_IS_NOT,T.DATE_BEFORE,T.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",completed:"Completed",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",