1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44264,e=>{"use strict";var t,i,r=e.i(90992),n=e.i(59312),o=e.i(23659),l="__PINTA_CSS_AUTOLOAD__",a="__PINTA_CLIENT_STORE__",s="__PINTA_CLIENT_SUBSCRIBERS__",c="__PINTA_BATCH_PENDING__",u="__PINTA_BATCH_SCHEDULED__",d="__PINTA_SNAPSHOT_VERSION__";function p(){return{components:new Set}}var f=(0,r.cache)(p);function h(){return"u"<typeof window?f():(globalThis[a]||(globalThis[a]=p()),globalThis[a])}function m(){return globalThis[s]||(globalThis[s]=new Set),globalThis[s]}function v(e){if("u"<typeof window)return()=>{};let t=m();return t.add(e),()=>t.delete(e)}var g={},b="__PINTA_RUNTIME_MANIFEST__",y="__PINTA_RUNTIME_BASE_PATH__";function w(e){return"string"==typeof e?e:e.file}function x(e){let t,i=[],r=globalThis[y]??"/_pinta-style",n=(t=globalThis[b])?t[e]:void 0;if(n){let e=w(n);if(e){let t={href:`${r}/${e}`};"object"==typeof n&&(n.inline&&(t.inline=!0),n.preload&&(t.preload=!0)),i.push(t)}}let o=g[e]??[];return i.push(...o),i}function E(){return globalThis[d]??0}var A=[],C=-1,T="",S=[],P=()=>S,k="__PINTA_SSR_LINKS__";function L(e){"u">typeof document&&(e?(document.documentElement.setAttribute("data-pinta-brand",e),localStorage.setItem("pinta-brand",e)):(document.documentElement.removeAttribute("data-pinta-brand"),localStorage.removeItem("pinta-brand")))}function R(){return"u"<typeof document?null:document.documentElement.getAttribute("data-pinta-brand")}function I(e,t){let i={};for(let{prop:r,attr:n,value:o}of t){let t=void 0!==o?o:r?e[r]:void 0;if(null!=t){if("boolean"==typeof t){t&&(i[n]="");continue}i[n]=String(t)}}return i}function j(e){if(!e||"icon"===e)return;let t=h();!(!t||t.components.has(e))&&(t.components.add(e),globalThis[d]=E()+1,"u">typeof window&&(globalThis[c]||(globalThis[c]=[]),globalThis[c].push(e),globalThis[u]||(globalThis[u]=!0,queueMicrotask(()=>{globalThis[u]=!1;let e=globalThis[c];e&&e.length>0&&(globalThis[c]=[],m().forEach(e=>e()))}))))}function _(e){if(!0!==globalThis[l])return null;let t=x(e).filter(e=>!0!==e.inline);return t&&0!==t.length&&t.forEach(e=>{(0,o.preinit)(e.href,{as:"style",precedence:"high",...e.crossOrigin&&{crossOrigin:e.crossOrigin}})}),null}function N(e){let t=null,i=null;if(e instanceof Event?(i=e).target&&i.target instanceof HTMLElement&&(t=i.target.closest("[pi-input]")):t=e,t&&!t.dataset.initialized){t.dataset.initialized="true",t.style.setProperty("--pi-input-label-background","transparent"),i&&t.removeEventListener(i.type,N);let e=t.querySelector("input"),r=t.querySelector("label");if(e&&r){let i=()=>(function(e,t){let i,r,n,o;t.classList.toggle("pi-elevated",(i=e.matches(":focus"),r=!!e.closest("[pi-pressed]"),n=""!==e.getAttribute("placeholder")&&e.matches(":placeholder-shown"),o=""!==e.value,i||r||n||o))})(e,t);(function(e){if(e.__pintaPatched)return;let t=Object.getOwnPropertyDescriptor(e,"value"),i=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),r=(null==t?void 0:t.set)??i.set,n=(null==t?void 0:t.get)??i.get;Object.defineProperty(e,"value",{configurable:!0,get:function(){return n.call(this)},set:function(e){r.call(this,e),this.dispatchEvent(new Event("input",{bubbles:!0}))}}),e.__pintaPatched=!0})(e),new MutationObserver(i).observe(e,{attributes:!0,attributeFilter:["value"]}),new MutationObserver(()=>{i(),z(e,r,t)}).observe(t,{attributes:!0,attributeFilter:["pi-pressed"]}),i(),e.addEventListener("input",i),e.addEventListener("focus",i),e.addEventListener("blur",i),z(e,r,t),r.addEventListener("transitionstart",()=>{z(e,r,t)})}}}function z(e,t,i){var r;let n,o=i.classList.contains("pi-elevated")||i.matches(":focus-within")||i.hasAttribute("pi-pressed"),l=(null==(r=t.textContent)?void 0:r.trim())!=="",a=isNaN(n=parseFloat(getComputedStyle(t).getPropertyValue("--s")))?1:n,s=parseFloat(getComputedStyle(t).paddingInline),c=l&&o?t.clientWidth*a+2*s:8;e.style.setProperty("--clip-end",`${c}px`)}var F=[{prop:"variant",attr:"pi-input"},{prop:"status",attr:"pi-status"},{prop:"size",attr:"pi-size"},{prop:"pressed",attr:"pi-pressed"}],O=(0,r.forwardRef)(({variant:e="full",status:t="neutral",size:i="medium",pressed:o,as:l="div",children:a,...s},c)=>{let u=(0,r.useRef)(null);j("input"),(0,r.useEffect)(()=>
1{if("u"<typeof document)return;let e=u.current;if(!e)return;if(!e.querySelector("input"))return void console.warn("PiInput: No input element found within the component");let t=e.closest("dialog");if(t&&!t.open){let i=new MutationObserver(()=>{t.open&&(i.disconnect(),N(e))});return i.observe(t,{attributes:!0,attributeFilter:["open"]}),()=>i.disconnect()}N(e)},[]);let d=I({variant:e,status:t,size:i,pressed:o},F);return(0,n.jsxs)(n.Fragment,{children:[_("input"),(0,n.jsx)(l,{ref:e=>{u.current=e,"function"==typeof c?c(e):c&&(c.current=e)},...d,...s,children:a})]})});O.displayName="PiInput";var M=new WeakMap;function D(e){return Array.from(e.querySelectorAll(":scope > a, :scope > span"))}function $(e){return e.scrollWidth>e.clientWidth}function B(e,t,i,r){let n=t.slice(1,-1);i.style.minWidth="",e.removeAttribute("pi-breadcrumbs-has-hidden"),n.forEach(e=>{e.setAttribute("pi-breadcrumbs-visible","")});let o=t.map(e=>e.style.flexShrink);t.forEach(e=>e.style.flexShrink="0");let l=$(e);if((t.forEach((e,t)=>e.style.flexShrink=o[t]),l)&&(i.style.minWidth=`${r}px`,$(e))){e.setAttribute("pi-breadcrumbs-has-hidden","");for(let o=0;o<n.length;o++)if(n[o].removeAttribute("pi-breadcrumbs-visible"),n.length-o-1>0){i.style.minWidth="";let l=[t[0],...n.slice(o+1),i],a=l.map(e=>e.style.flexShrink);l.forEach(e=>e.style.flexShrink="0");let s=$(e);if(l.forEach((e,t)=>e.style.flexShrink=a[t]),!s||(i.style.minWidth=`${r}px`,!$(e)))return}i.style.minWidth=""}}var H=[{prop:"variant",attr:"pi-breadcrumbs"}],q=(0,r.forwardRef)(({variant:e="light",children:t,...i},o)=>{let l=(0,r.useRef)(null);j("breadcrumbs"),(0,r.useEffect)(()=>{if("u"<typeof document)return;let e=l.current;if(e)return!function(e){if(!e||e.dataset.collapsedInitialized)return;e.dataset.collapsedInitialized="true";let t=D(e);if(t.length<3)return;let i=t[t.length-1],r=t.map(e=>e.style.flexShrink);t.forEach(e=>e.style.flexShrink="0");let n=Math.ceil(.5*i.scrollWidth);t.forEach((e,t)=>e.style.flexShrink=r[t]);let o=null;B(e,t,i,n);let l=new ResizeObserver(()=>{o&&clearTimeout(o),o=setTimeout(()=>B(e,t,i,n),50)});l.observe(e);let a=new MutationObserver(()=>{let t=D(e);if(t.length>=3){let i=t[t.length-1],r=t.map(e=>e.style.flexShrink);t.forEach(e=>e.style.flexShrink="0");let n=Math.ceil(.5*i.scrollWidth);t.forEach((e,t)=>e.style.flexShrink=r[t]),B(e,t,i,n)}});a.observe(e,{childList:!0}),M.set(e,{resizeObserver:l,mutationObserver:a,cleanup:()=>{o&&clearTimeout(o),l.disconnect(),a.disconnect(),delete e.dataset.collapsedInitialized}})}(e),()=>{let t;(t=M.get(e))&&(t.cleanup(),M.delete(e),D(e).forEach(e=>{e.removeAttribute("pi-breadcrumbs-visible"),e.style.minWidth=""}),e.removeAttribute("pi-breadcrumbs-has-hidden"))}},[]);let a=I({variant:e},H);return(0,n.jsxs)(n.Fragment,{children:[_("breadcrumbs"),(0,n.jsx)("nav",{ref:e=>{l.current=e,"function"==typeof o?o(e):o&&(o.current=e)},"pi-breadcrumbs-collapsed":"",...a,...i,children:t})]})});function U(e,t={},i){let r=document.createElement(e);return Object.entries(t).forEach(e=>{let t=e[0],i=e[1];r.setAttribute(t,i)}),i&&(r.textContent=i),r}q.displayName="PiBreadcrumbsCollapsed";var W=class{constructor(){this.instances=new Map,this.container=null,this.debouncedEnforceLimit=function(e){let t;return(...i)=>{clearTimeout(t),t=setTimeout(()=>e(...i),150)}}(()=>{this.enforceLimit()}),window.addEventListener("resize",this.debouncedEnforceLimit)}show(e){let t=e.customSlots&&Object.values(e.customSlots).some(Boolean);if(!e.html&&!t)throw Error("Snackbar must have html content");let i=this.generateId(),r=this.getContainer(),n={id:i,element:document.createElement("div"),config:e,abortController:new AbortController,cleanupCallbacks:[]};this.instances.set(i,n);let o=this.createSnackbarElement(e,i);n.element=o;let l=document.createDocumentFragment();if(l.appendChild(o),r.appendChild(l),requestAnimationFrame(()=>{o.setAttribute("pi-state","open")}),"none"!==e.duration){let t=e.duration||this.calculateDuration(e);n.totalDuration=t,n.timerStartedAt=Date.now(),n.timer=setTimeout(()=>{this.dismiss(i)},t),e.pauseOnHover&&(this.addEventListenerWithCleanup(n,o,"mouseenter",()=>{this.pauseTimer(i)}),this.addEventListenerWithCleanup(n,o,"mouseleave",()=>{this.resumeTimer(i)}))}return this.enforceLimit(),i}dismiss(e){let t=this.instances.get(e);t&&this.cleanupInstance(t)}
1dismissAll(){Array.from(this.instances.keys()).forEach(e=>{this.dismiss(e)})}getActiveCount(){return this.instances.size}isActive(e){return this.instances.has(e)}getSlotContainers(e){let t=this.instances.get(e);if(!t)return null;let i=t.element;return{icon:i.querySelector("[pi-snackbar-icon]"),content:i.querySelector("[pi-snackbar-message]"),controls:i.querySelector("[pi-snackbar-controls]"),close:i.querySelector("[pi-snackbar-close]")}}destroy(){window.removeEventListener("resize",this.debouncedEnforceLimit),this.dismissAll()}cleanupInstance(e){e.timer&&(clearTimeout(e.timer),e.timer=void 0),e.abortController&&e.abortController.abort(),e.cleanupCallbacks.forEach(e=>{try{e()}catch(e){console.warn("Snackbar cleanup callback failed:",e)}}),e.cleanupCallbacks.length=0,e.element.setAttribute("pi-state","closing");let t=()=>{var t,i;try{e.element.parentNode&&e.element.parentNode.removeChild(e.element),this.instances.delete(e.id)}catch(e){console.warn("Snackbar DOM cleanup failed:",e)}try{null==(i=(t=e.config).onDismiss)||i.call(t,e.id)}catch(e){console.warn("Snackbar onDismiss callback failed:",e)}},i=!1,r=()=>{i||(i=!0,t())};e.element.addEventListener("animationend",r,{once:!0}),setTimeout(r,700)}getDeviceLimit(){return window.innerWidth>=684?4:1}calculateDuration(e){let t=e.minDuration||4e3;return"string"==typeof e.html?Math.max(50*e.html.replace(/<[^>]*>/g,"").trim().length,t):t}getContainer(){return this.container||(this.container=document.createElement("div"),this.container.setAttribute("pi-snackbar-container",""),this.container.setAttribute("aria-live","polite"),this.container.setAttribute("role","region"),document.body.appendChild(this.container)),this.container}generateId(){return`snackbar-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}createControlsElement(e,t){let i=this.instances.get(t);if(!i)throw Error(`Snackbar instance ${t} not found`);let r=document.createElement("div");r.setAttribute("pi-snackbar-controls","");let n=document.createElement("div");return n.setAttribute("pi-snackbar-actions",""),e.forEach(e=>{if(e.html)if("string"==typeof e.html){let r=document.createElement("div");r.innerHTML=e.html;let o=r.firstElementChild;o&&(this.addEventListenerWithCleanup(i,o,"click",()=>{e.action(),this.dismiss(t)}),n.appendChild(o))}else{let r=e.html();this.addEventListenerWithCleanup(i,r,"click",()=>{e.action(),this.dismiss(t)}),n.appendChild(r)}else{let r=document.createElement("button");r.setAttribute("pi-button","invisible"),r.setAttribute("pi-color","accent-1"),r.setAttribute("pi-size","small"),r.textContent=e.label,this.addEventListenerWithCleanup(i,r,"click",()=>{e.action(),this.dismiss(t)}),n.appendChild(r)}}),r.appendChild(n),r}createSnackbarElement(e,t){var i;let r=e.customSlots,n={"pi-snackbar":"","pi-state":"close","data-snackbar-id":t,role:"alert"};e.controlsAlign&&(n["pi-controls-align"]=e.controlsAlign);let o=U("div",n),l=U("div",{"pi-snackbar-content":""}),a=U("div",{"pi-snackbar-main":""});if(null==r?void 0:r.icon)a.appendChild(U("div",{"pi-snackbar-icon":""}));else if(e.icon){let t=document.createElement("div");t.setAttribute("pi-snackbar-icon","");let i=document.createElement("i");i.setAttribute("pi-icon",e.icon),t.appendChild(i),a.appendChild(t)}let s=document.createElement("div");s.setAttribute("pi-snackbar-message",""),(null==r?void 0:r.content)||("string"==typeof e.html?s.innerHTML=e.html:s.innerHTML=e.html().outerHTML),a.appendChild(s);let c=(null==r?void 0:r.controls)||(null==(i=e.controls)?void 0:i.length),u=(null==r?void 0:r.close)||e.closeButton;if(c){let i;if(i=(null==r?void 0:r.controls)?U("div",{"pi-snackbar-controls":""}):this.createControlsElement(e.controls,t),"right"!==e.controlsAlign)return u&&((null==r?void 0:r.close)?a.appendChild(U("div",{"pi-snackbar-close":""})):e.closeButton&&a.appendChild(this.createCloseButton(t))),l.appendChild(a),l.appendChild(i),o.appendChild(l),o;a.appendChild(i)}return u&&((null==r?void 0:r.close)?a.appendChild(U("div",{"pi-snackbar-close":""})):e.closeButton&&a.appendChild(this.createCloseButton(t))),l.appendChild(a),o.appendChild(l),o}createCloseButton(e){let t=this.instances.get(e);if(!t)throw Error(`Snackbar instance ${e} not found`);let i=U("button",{"pi-snackbar-close":"","pi-button":"primary icon","pi-color":"glass","pi-size":"small","aria-label":"Close notification"}),r=U("i",{"pi-icon":"ic-s-cross"});return i.appendChild(r),this.addEventListenerWithCleanup(t,i,"click",()=>{this.dismiss(e)}),i}pauseTimer(e){let t=this.instances.get(e);
1if(!(null==t?void 0:t.timer)||!t.timerStartedAt)return;clearTimeout(t.timer),t.timer=void 0;let i=Date.now()-t.timerStartedAt;t.remainingDuration=Math.max((t.remainingDuration??t.totalDuration??0)-i,0)}resumeTimer(e){let t=this.instances.get(e);if(!t||t.timer)return;let i=t.remainingDuration;void 0===i||i<=0?this.dismiss(e):(t.timerStartedAt=Date.now(),t.timer=setTimeout(()=>{this.dismiss(e)},i))}enforceLimit(){let e=this.getDeviceLimit();if(this.instances.size>e){let t=Array.from(this.instances.entries());t.slice(0,t.length-e).forEach(e=>{this.dismiss(e[0])})}}addEventListenerWithCleanup(e,t,i,r,n){e.abortController||(e.abortController=new AbortController);let o={...n,signal:e.abortController.signal};t.addEventListener(i,r,o)}},V=null;function Y(){return V||(V=new W),V}var G=(0,r.forwardRef)(({message:e,duration:t,icon:i,closeButton:l=!0,controlsAlign:a,controls:s,slots:c,onShow:u,onDismiss:d,pauseOnHover:p},f)=>{let h=(0,r.useRef)(void 0),[m,v]=(0,r.useState)([]);j("snackbar");let g=()=>({html:e||"",duration:t,icon:i,closeButton:l,controlsAlign:a,controls:s,customSlots:c?{controls:!!c.controls,close:!!c.close,content:!!c.content,icon:!!c.icon}:void 0,pauseOnHover:p,onDismiss:e=>{h.current===e&&(v([]),h.current=void 0),null==d||d(e)}}),b=e=>{let t;if(!c)return;let i=(t=e,Y().getSlotContainers(t));if(!i)return;let r={dismiss:()=>{let t;return t=e,Y().dismiss(t)},id:e},n=[];c.controls&&i.controls&&n.push({container:i.controls,content:c.controls(r)}),c.close&&i.close&&n.push({container:i.close,content:c.close(r)}),c.content&&i.content&&n.push({container:i.content,content:c.content(r)}),c.icon&&i.icon&&n.push({container:i.icon,content:c.icon(r)}),n.length>0&&v(n)};return(0,r.useImperativeHandle)(f,()=>({show:()=>{let e,t,i;if("u"<typeof document)return"";h.current&&(e=h.current,Y().isActive(e))&&(t=h.current,Y().dismiss(t));let r=(i=g(),Y().show(i));return h.current=r,b(r),null==u||u(r),r},hide:()=>{let e;h.current&&(e=h.current,Y().dismiss(e))},toggle:()=>{let e;if(h.current&&(e=h.current,Y().isActive(e))){let e;e=h.current,Y().dismiss(e)}else{let e,t=(e=g(),Y().show(e));h.current=t,b(t),null==u||u(t)}},get isActive(){let e;return!!h.current&&(e=h.current,Y().isActive(e))}}),[e,t,i,l,a,s,c,u,d,p]),(0,r.useEffect)(()=>()=>{let e,t;h.current&&(e=h.current,Y().isActive(e))&&(t=h.current,Y().dismiss(t))},[]),(0,n.jsxs)(n.Fragment,{children:[_("snackbar"),m.map((e,t)=>(0,o.createPortal)(e.content,e.container,`snackbar-slot-${t}`))]})});G.displayName="PiSnackbar";var K=new Map,X=new Map,Z=new Map;function J(e){return"u">typeof HTMLDialogElement&&e instanceof HTMLDialogElement}function Q(e){let t="string"==typeof e?document.querySelector(e):e;if(!t)throw Error(`Modal element not found: ${e}`);return t}function ee(e,t){var i;let r,n,o,l=Q(e);if(t&&!K.has(l)){let e=document.documentElement.style.overflow;document.documentElement.style.overflow="hidden",K.set(l,()=>{document.documentElement.style.overflow=e})}J(l)?(l.open||("non-modal"===l.getAttribute("pi-modal-variant")?l.show():l.showModal()),et(i=l),r=e=>{e.preventDefault(),ei(i,!!K.has(i))},n=()=>{i.dispatchEvent(new CustomEvent("pi-modal-state-changed",{detail:{state:"close"},bubbles:!1}))},o=e=>{e.target===i&&ei(i,!!K.has(i))},i.addEventListener("cancel",r),i.addEventListener("close",n),i.addEventListener("click",o),Z.set(i,()=>{i.removeEventListener("cancel",r),i.removeEventListener("close",n),i.removeEventListener("click",o)})):l.setAttribute("pi-state","open"),!X.has(l)&&l.querySelector("[pi-modal-drag-handle]")&&X.set(l,function(e){if("u"<typeof document)return()=>{};let t=e.querySelector("[pi-modal-dialog]"),i=e.querySelector("[pi-modal-drag-handle]");if(!t||!i)return()=>{};let r=0,n=0,o=!1;function l(l){r=l.clientY,n=t.getBoundingClientRect().height,o=!1,e.setAttribute("pi-bottom-sheet-dragging",""),i.setPointerCapture(l.pointerId),i.addEventListener("pointermove",a),i.addEventListener("pointerup",s),i.addEventListener("pointercancel",s)}function a(t){let i=t.clientY-r;if(Math.abs(i)>8&&(o=!0),!o)return;let l=n-i,a=Math.max(0,Math.min(.9*window.innerHeight,l));e.style.setProperty("--pi-bottom-sheet-height",`${a}px`)}function s(r){if(i.removeEventListener("pointermove",a),i.removeEventListener("pointerup",s),i.removeEventListener("pointercancel",s),e.removeAttribute("pi-bottom-sheet-dragging"),!o)return;let n=t.getBoundingClientRect().height;if(n<Math.max(.2*window.innerHeight,80))return void ei(e,!0);let l=n>=.7*window.innerHeight?"expanded":"collapsed";e.dispatchEvent(new CustomEvent("pi-bottom-sheet-state-changed",{detail:{state:l},bubbles:!1}))}return i.addEventListener("pointerdown",l),()=>{i.removeEventListener("pointerdown",l),i.removeEventListener("pointermove",a),i.removeEventListener("pointerup",s),i.removeEventListener("pointercancel",s),e.removeAttribute("pi-bottom-sheet-dragging"),e.style.removeProperty("--pi-bottom-sheet-height")}}(l)),l.dispatchEvent(new CustomEvent("pi-modal-state-changed",{detail:{state:"open"},bubbles:!1}))}function et(e){let t=Z.get(e);t&&(t(),Z.delete(e))}function ei(e,t){let i,r=Q(e);if(t){let e=K.get(r);e&&(e(),K.delete(r))}let n=X.get(r);
1n&&(n(),X.delete(r)),et(r),(J(i=Q(r))?i.open:"open"===i.getAttribute("pi-state"))&&(J(r)?r.close():r.setAttribute("pi-state","close"),r.dispatchEvent(new CustomEvent("pi-modal-state-changed",{detail:{state:"close"},bubbles:!1})))}var er='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"]), [contenteditable="true"]',en=new Map;function eo(e){return"u"<typeof document?[]:Array.from(e.querySelectorAll(er)).filter(e=>{let t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&e.offsetWidth>0&&e.offsetHeight>0})}function el(e,t){if("u"<typeof document)return;let i=null;t&&(i=e.querySelector(t)),i||(i=eo(e.querySelector("[pi-modal-dialog]")||e)[0]),i||(i=e.querySelector("[pi-modal-dialog]")||e),i&&(i.hasAttribute("tabindex")||er.split(", ").some(e=>i.matches(e))||i.setAttribute("tabindex","-1"),i.focus())}function ea(e){if("u"<typeof document)return;if(!e||!document.contains(e))return void document.body.focus();let t=window.getComputedStyle(e);if("none"===t.display||"hidden"===t.visibility)return void document.body.focus();try{e.focus()}catch(e){console.warn("Failed to restore focus to previous element:",e),document.body.focus()}}function es(e,t){if("u"<typeof document)return()=>{};let i=e.querySelector("[pi-modal-dialog]");if(!i)return()=>{};let r=0,n=0,o=!1,l=null,a=!1;function s(t){1===t.touches.length&&(r=t.touches[0].clientX,n=t.touches[0].clientY,o=!1,l=null,a=window.innerWidth<=771&&!e.hasAttribute("pi-modal-fixed"))}function c(e){if(1!==e.touches.length)return;let t=e.touches[0].clientX-r,s=e.touches[0].clientY-n;if(null===l&&(Math.abs(t)>5||Math.abs(s)>5)&&(l=Math.abs(t)>Math.abs(s)),a){if(l||s<0)return;o=!0,e.preventDefault(),i.style.transform=`translateY(${s}px)`}else{if(!l||t<0)return;o=!0,e.preventDefault(),i.style.transform=`translateX(${t}px)`}}function u(e){o&&(a?e.changedTouches[0].clientY-n>.3*i.getBoundingClientRect().height?(i.style.transition="transform 200ms ease-in-out",i.style.transform="translateY(100%)",setTimeout(()=>{i.style.transition="",i.style.transform="",t()},200)):(i.style.transition="transform 200ms ease-in-out",i.style.transform="",setTimeout(()=>{i.style.transition=""},200)):e.changedTouches[0].clientX-r>.3*i.getBoundingClientRect().width?(i.style.transition="transform 200ms ease-in-out",i.style.transform="translateX(100%)",setTimeout(()=>{i.style.transition="",i.style.transform="",t()},200)):(i.style.transition="transform 200ms ease-in-out",i.style.transform="",setTimeout(()=>{i.style.transition=""},200)),o=!1)}return i.addEventListener("touchstart",s,{passive:!0}),i.addEventListener("touchmove",c,{passive:!1}),i.addEventListener("touchend",u,{passive:!0}),()=>{i.removeEventListener("touchstart",s),i.removeEventListener("touchmove",c),i.removeEventListener("touchend",u),i.style.transform="",i.style.transition=""}}var ec=[{prop:"variant",attr:"pi-button"},{prop:"size",attr:"pi-size"},{prop:"color",attr:"pi-color"},{prop:"state",attr:"pi-state"},{prop:"loading",attr:"pi-loading"}],eu=(0,r.forwardRef)(({variant:e="primary",size:t="medium",color:i="accent-1",state:r,loading:o=!1,as:l="button",children:a,...s},c)=>{j("button");let u=I({variant:e,size:t,color:i,state:r,loading:o},ec);return(0,n.jsxs)(n.Fragment,{children:[_("button"),(0,n.jsx)(l,{ref:c,type:"button"===l?"button":void 0,"aria-busy":o||void 0,...u,...s,children:a})]})});eu.displayName="PiButton";var ed=(0,r.createContext)(null);function ep(){let e=(0,r.useContext)(ed);if(!e)throw Error("Modal sub-components must be used within PiModal");return e}var ef=(0,r.forwardRef)(({mode:e="default",open:t=!1,preventBodyScroll:i=!1,focusTrap:o=!0,restoreFocus:l=!0,initialFocus:a,layout:s,variant:c,dragHandle:u=!1,gradient:d=!1,stroke:p=!1,fixedMode:f=!1,native:h=!1,onOpenChange:m,onOpen:v,onClose:g,children:b,...y},w)=>{let x=(0,r.useRef)(null),E=(0,r.useRef)(null),A=(0,r.useRef)(null),C=(0,r.useRef)(null),T=(0,r.useRef)(t),S=(0,r.useRef)(null),P=(0,r.useCallback)(e=>{x.current=e,"function"==typeof w?w(e):w&&(w.current=e)},[w]);j("modal");let k=(0,r.useCallback)(()=>{null==m||m(!1)},[m]);(0,r.useEffect)(()=>
1{if("u"<typeof document)return;let r=x.current;if(r){if(h){t&&!r.open&&null===S.current?(l&&(E.current=document.activeElement),S.current=setTimeout(()=>{S.current=null,r.open||(ee(r,i),null==v||v(),setTimeout(()=>{el(r,a)},0),"side-sheet"===e&&setTimeout(()=>{r.open&&(C.current=es(r,()=>{null==m||m(!1)}))},0))},0)):!t&&(null!==S.current&&(clearTimeout(S.current),S.current=null),r.open&&(C.current&&(C.current(),C.current=null),ei(r,i),null==g||g(),l&&E.current&&setTimeout(()=>{ea(E.current)},150))),T.current=t;return}t!==T.current&&(T.current=t,t?(l&&(E.current=document.activeElement),ee(r,i),null==v||v(),o&&"non-modal"!==c&&setTimeout(()=>{A.current=function(e){if("u"<typeof document||J(e))return()=>{};let t=eo(e.querySelector("[pi-modal-dialog]")||e),i=t[0],r=t[t.length-1],n=e=>{if("Tab"!==e.key)return;let n=e.shiftKey;if(0===t.length)return void e.preventDefault();if(1===t.length){e.preventDefault(),null==i||i.focus();return}n&&document.activeElement===i?(e.preventDefault(),null==r||r.focus()):n||document.activeElement!==r||(e.preventDefault(),null==i||i.focus())};document.addEventListener("keydown",n);let o={cleanup:()=>{document.removeEventListener("keydown",n),en.delete(e)},firstFocusableElement:i,lastFocusableElement:r};return en.set(e,o),o.cleanup}(r)},0),setTimeout(()=>{el(r,a)},0),"side-sheet"===e&&setTimeout(()=>{C.current=es(r,()=>{null==m||m(!1)})},0)):(A.current&&(A.current(),A.current=null),C.current&&(C.current(),C.current=null),ei(r,i),null==g||g(),l&&E.current&&setTimeout(()=>{ea(E.current)},150)))}},[t,i,o,l,a,c,e,u,h,v,g,m]),(0,r.useEffect)(()=>{if(h||!t||"u"<typeof document)return;let e=e=>{"Escape"===e.key&&(null==m||m(!1))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[h,t,m]),(0,r.useEffect)(()=>{if("u"<typeof document)return;let e=x.current;if(!e)return;let i=e=>{"close"===e.detail.state&&t&&(null==m||m(!1))};return e.addEventListener("pi-modal-state-changed",i),()=>e.removeEventListener("pi-modal-state-changed",i)},[t,m]);let L=(0,r.useCallback)(e=>{let t=e.target;h?t===x.current&&(null==m||m(!1)):t.hasAttribute("pi-modal-backdrop")&&(null==m||m(!1))},[h,m]),R=(0,r.useCallback)(e=>{let t=e.target;(t.hasAttribute("pi-modal-close")||t.closest("[pi-modal-close]"))&&(null==m||m(!1))},[m]);(0,r.useEffect)(()=>{let e=x.current;return()=>{null!==S.current&&(clearTimeout(S.current),S.current=null),A.current&&A.current(),C.current&&C.current(),e&&t&&ei(e,i)}},[]);let I=h?"dialog":"div";return(0,n.jsxs)(ed.Provider,{value:{close:k},children:[_("modal"),(0,n.jsx)(I,{ref:P,"pi-modal":e,...!h?{"pi-state":t?"open":"close"}:{},...s?{"pi-modal-layout":s}:{},...c?{"pi-modal-variant":c}:{},...d?{"pi-modal-gradient":""}:{},...p?{"pi-modal-stroke":""}:{},...f?{"pi-modal-fixed":""}:{},...!h?{role:"dialog"}:{},...!h&&"non-modal"!==c?{"aria-modal":"true"}:{},onClick:e=>{L(e),R(e)},...y,children:b})]})});ef.displayName="PiModal";var eh=(0,r.forwardRef)(({children:e,...t},i)=>(0,n.jsx)("div",{ref:i,"pi-modal-backdrop":"",...t,children:e}));eh.displayName="PiModal.Backdrop";var em=(0,r.forwardRef)(({children:e,...t},i)=>(0,n.jsx)("div",{ref:i,"pi-modal-dialog":"",...t,children:e}));em.displayName="PiModal.Dialog";var ev=(0,r.forwardRef)(({children:e,...t},i)=>(0,n.jsx)("div",{ref:i,"pi-modal-header":"",...t,children:e}));ev.displayName="PiModal.Header";var eg=(0,r.forwardRef)(({children:e,...t},i)=>(0,n.jsx)("div",{ref:i,"pi-modal-content":"",...t,children:e}));eg.displayName="PiModal.Content";var eb=(0,r.forwardRef)(({children:e,...t},i)=>(0,n.jsx)("div",{ref:i,"pi-modal-footer":"",...t,children:e}));eb.displayName="PiModal.Footer";var ey=(0,r.forwardRef)(({...e},t)=>(0,n.jsx)("div",{ref:t,"pi-modal-drag-handle":"",...e}));ey.displayName="PiModal.DragHandle";var ew=(0,r.forwardRef)(({children:e,onClick:t,...i},r)=>{let{close:o}=ep(),l={ref:r,"pi-modal-floating-close":"",variant:"invisible icon",color:"neutral",size:"small",onClick:e=>{o(),null==t||t(e)},...i};return(0,n.jsx)(eu,{...l,children:e})});ew.displayName="PiModal.FloatingClose";var ex=(0,r.forwardRef)(({children:e,onClick:t,...i},r)=>{let{close:o}=ep(),l={ref:r,"pi-modal-close":"",variant:"invisible icon",color:"neutral",onClick:e=>{o(),null==t||t(e)},...i};return(0,n.jsx)(eu,{...l,children:e})});ex.displayName="PiModal.Close";var eE=Object.assign(ef,{Backdrop:eh,Dialog:em,Header:ev,Content:eg,Footer:eb,Close:ex,FloatingClose:ew,DragHandle:ey}),eA=["top","right","bottom","left"],eC=Math.min,eT=Math.max,eS=Math.round,eP=Math.floor,ek=e=>({x:e,y:e}
1),eL={left:"right",right:"left",bottom:"top",top:"bottom"};function eR(e,t){return"function"==typeof e?e(t):e}function eI(e){return e.split("-")[0]}function ej(e){return e.split("-")[1]}function e_(e){return"x"===e?"y":"x"}function eN(e){return"y"===e?"height":"width"}function ez(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function eF(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var eO=["left","right"],eM=["right","left"],eD=["top","bottom"],e$=["bottom","top"];function eB(e){let t=eI(e);return eL[t]+e.slice(t.length)}function eH(e){let{x:t,y:i,width:r,height:n}=e;return{width:r,height:n,top:i,left:t,right:t+r,bottom:i+n,x:t,y:i}}function eq(e,t,i){let r,{reference:n,floating:o}=e,l=ez(t),a=e_(ez(t)),s=eN(a),c=eI(t),u="y"===l,d=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;switch(c){case"top":r={x:d,y:n.y-o.height};break;case"bottom":r={x:d,y:n.y+n.height};break;case"right":r={x:n.x+n.width,y:p};break;case"left":r={x:n.x-o.width,y:p};break;default:r={x:n.x,y:n.y}}switch(ej(t)){case"start":r[a]-=f*(i&&u?-1:1);break;case"end":r[a]+=f*(i&&u?-1:1)}return r}async function eU(e,t){var i,r;void 0===t&&(t={});let{x:n,y:o,platform:l,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=eR(t,e),m="number"!=typeof(r=h)?{top:0,right:0,bottom:0,left:0,...r}:{top:r,right:r,bottom:r,left:r},v=s[f?"floating"===p?"reference":"floating":p],g=eH(await l.getClippingRect({element:null==(i=await (null==l.isElement?void 0:l.isElement(v)))||i?v:v.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:c})),b="floating"===p?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),w=await (null==l.isElement?void 0:l.isElement(y))&&await (null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},x=eH(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:c}):b);return{top:(g.top-x.top+m.top)/w.y,bottom:(x.bottom-g.bottom+m.bottom)/w.y,left:(g.left-x.left+m.left)/w.x,right:(x.right-g.right+m.right)/w.x}}var eW=async(e,t,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:l}=i,a=l.detectOverflow?l:{...l,detectOverflow:eU},s=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=eq(c,r,s),p=r,f=0,h={};for(let i=0;i<o.length;i++){let m=o[i];if(!m)continue;let{name:v,fn:g}=m,{x:b,y:y,data:w,reset:x}=await g({x:u,y:d,initialPlacement:r,placement:p,strategy:n,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=y?y:d,h[v]={...h[v],...w},x&&f<50&&(f++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:n}):x.rects),{x:u,y:d}=eq(c,p,s)),i=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:h}};function eV(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eY(e){return eA.some(t=>e[t]>=0)}var eG=new Set(["left","top"]);async function eK(e,t){let{placement:i,platform:r,elements:n}=e,o=await (null==r.isRTL?void 0:r.isRTL(n.floating)),l=eI(i),a=ej(i),s="y"===ez(i),c=eG.has(l)?-1:1,u=o&&s?-1:1,d=eR(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(f="end"===a?-1*h:h),s?{x:f*u,y:p*c}:{x:p*c,y:f*u}}function eX(){return"u">typeof window}function eZ(e){return e0(e)?(e.nodeName||"").toLowerCase():"#document"}function eJ(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eQ(e){var t;return null==(t=(e0(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function e0(e){return!!eX()&&(e instanceof Node||e instanceof eJ(e).Node)}function e1(e){return!!eX()&&(e instanceof Element||e instanceof eJ(e).Element)}function e2(e){return!!eX()&&(e instanceof HTMLElement||e instanceof eJ(e).HTMLElement)}function e5(e){return!(!eX()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof eJ(e).ShadowRoot)}function e6(e){let{overflow:t,overflowX:i,overflowY:r,display:n}=ti(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&"inline"!==n&&"contents"!==n}function e8(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}var e4=/transform|translate|scale|rotate|perspective|filter/,e3=/paint|layout|strict|content/,e9=e=>!!e&&"none"!==e;function e7(e){let t=e1(e)?ti(e):e;return e9(t.transform)||e9(t.translate)||e9(t.scale)||e9(t.rotate)||e9(t.perspective)||!te()&&(e9(t.backdropFilter)||e9(t.filter))||e4.test(t.willChange||"")||e3.test(t.contain||"")}function te(){return null==i&&(i="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),i}function tt(e){return/^(html|body|#document)$/.test(eZ(e))}function ti(e){return eJ(e).getComputedStyle(e)}function tr(e){return e1(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tn(e){if("html"===eZ(e))return e;let t=e.assignedSlot||e.parentNode||e5(e)&&e.host||eQ(e);return e5(t)?t.host:t}function to(e,t,i){var r;void 0===t&&(t=[]),void 0===i&&(i=!0);let n=function e(t){let i=tn(t);return tt(i)?t.ownerDocument?t.ownerDocument.body:t.body:e2(i)&&e6(i)?i:e(i)}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),l=eJ(n);if(!o)return t.concat(n,to(n,[],i));{let e=tl(l);
1return t.concat(l,l.visualViewport||[],e6(n)?n:[],e&&i?to(e):[])}}function tl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ta(e){let t=ti(e),i=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=e2(e),o=n?e.offsetWidth:i,l=n?e.offsetHeight:r,a=eS(i)!==o||eS(r)!==l;return a&&(i=o,r=l),{width:i,height:r,$:a}}function ts(e){return e1(e)?e:e.contextElement}function tc(e){let t=ts(e);if(!e2(t))return ek(1);let i=t.getBoundingClientRect(),{width:r,height:n,$:o}=ta(t),l=(o?eS(i.width):i.width)/r,a=(o?eS(i.height):i.height)/n;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}var tu=ek(0);function td(e){let t=eJ(e);return te()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tu}function tp(e,t,i,r){var n;void 0===t&&(t=!1),void 0===i&&(i=!1);let o=e.getBoundingClientRect(),l=ts(e),a=ek(1);t&&(r?e1(r)&&(a=tc(r)):a=tc(e));let s=(void 0===(n=i)&&(n=!1),r&&(!n||r===eJ(l))&&n)?td(l):ek(0),c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let e=eJ(l),t=r&&e1(r)?eJ(r):r,i=e,n=tl(i);for(;n&&r&&t!==i;){let e=tc(n),t=n.getBoundingClientRect(),r=ti(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,p*=e.y,c+=o,u+=l,n=tl(i=eJ(n))}}return eH({width:d,height:p,x:c,y:u})}function tf(e,t){let i=tr(e).scrollLeft;return t?t.left+i:tp(eQ(e)).left+i}function th(e,t){let i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-tf(e,i),y:i.top+t.scrollTop}}function tm(e,t,i){var r;let n;if("viewport"===t)n=function(e,t){let i=eJ(e),r=eQ(e),n=i.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,s=0;if(n){o=n.width,l=n.height;let e=te();(!e||e&&"fixed"===t)&&(a=n.offsetLeft,s=n.offsetTop)}let c=tf(r);if(c<=0){let e=r.ownerDocument,t=e.body,i=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(i.marginLeft)+parseFloat(i.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-n);l<=25&&(o-=l)}else c<=25&&(o+=c);return{width:o,height:l,x:a,y:s}}(e,i);else if("document"===t){let t,i,o,l,a,s,c;r=eQ(e),t=eQ(r),i=tr(r),o=r.ownerDocument.body,l=eT(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=eT(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-i.scrollLeft+tf(r),c=-i.scrollTop,"rtl"===ti(o).direction&&(s+=eT(t.clientWidth,o.clientWidth)-l),n={width:l,height:a,x:s,y:c}}else if(e1(t)){let e,r,o,l,a,s;r=(e=tp(t,!0,"fixed"===i)).top+t.clientTop,o=e.left+t.clientLeft,l=e2(t)?tc(t):ek(1),a=t.clientWidth*l.x,s=t.clientHeight*l.y,n={width:a,height:s,x:o*l.x,y:r*l.y}}else{let i=td(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return eH(n)}function tv(e){return"static"===ti(e).position}function tg(e,t){if(!e2(e)||"fixed"===ti(e).position)return null;if(t)return t(e);let i=e.offsetParent;return eQ(e)===i&&(i=i.ownerDocument.body),i}function tb(e,t){var i;let r=eJ(e);if(e8(e))return r;if(!e2(e)){let t=tn(e);for(;t&&!tt(t);){if(e1(t)&&!tv(t))return t;t=tn(t)}return r}let n=tg(e,t);for(;n&&(i=n,/^(table|td|th)$/.test(eZ(i)))&&tv(n);)n=tg(n,t);return n&&tt(n)&&tv(n)&&!e7(n)?r:n||function(e){let t=tn(e);for(;e2(t)&&!tt(t);){if(e7(t))return t;
1if(e8(t))break;t=tn(t)}return null}(e)||r}var ty=async function(e){let t=this.getOffsetParent||tb,i=this.getDimensions,r=await i(e.floating);return{reference:function(e,t,i){let r=e2(t),n=eQ(t),o="fixed"===i,l=tp(e,!0,o,t),a={scrollLeft:0,scrollTop:0},s=ek(0);if(r||!r&&!o)if(("body"!==eZ(t)||e6(n))&&(a=tr(t)),r){let e=tp(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else n&&(s.x=tf(n));o&&!r&&n&&(s.x=tf(n));let c=!n||r||o?ek(0):th(n,a);return{x:l.left+a.scrollLeft-s.x-c.x,y:l.top+a.scrollTop-s.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},tw={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:r,strategy:n}=e,o="fixed"===n,l=eQ(r),a=!!t&&e8(t.floating);if(r===l||a&&o)return i;let s={scrollLeft:0,scrollTop:0},c=ek(1),u=ek(0),d=e2(r);if((d||!d&&!o)&&(("body"!==eZ(r)||e6(l))&&(s=tr(r)),d)){let e=tp(r);c=tc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let p=!l||d||o?ek(0):th(l,s);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-s.scrollLeft*c.x+u.x+p.x,y:i.y*c.y-s.scrollTop*c.y+u.y+p.y}},getDocumentElement:eQ,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:r,strategy:n}=e,o=[..."clippingAncestors"===i?e8(t)?[]:function(e,t){let i=t.get(e);if(i)return i;let r=to(e,[],!1).filter(e=>e1(e)&&"body"!==eZ(e)),n=null,o="fixed"===ti(e).position,l=o?tn(e):e;for(;e1(l)&&!tt(l);){let t=ti(l),i=e7(l);i||"fixed"!==t.position||(n=null),(o?i||n:!(!i&&"static"===t.position&&n&&("absolute"===n.position||"fixed"===n.position)||e6(l)&&!i&&function e(t,i){let r=tn(t);return!(r===i||!e1(r)||tt(r))&&("fixed"===ti(r).position||e(r,i))}(e,l)))?n=t:r=r.filter(e=>e!==l),l=tn(l)}return t.set(e,r),r}(t,this._c):[].concat(i),r],l=tm(t,o[0],n),a=l.top,s=l.right,c=l.bottom,u=l.left;for(let e=1;e<o.length;e++){let i=tm(t,o[e],n);a=eT(i.top,a),s=eC(i.right,s),c=eC(i.bottom,c),u=eT(i.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:tb,getElementRects:ty,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:i}=ta(e);return{width:t,height:i}},getScale:tc,isElement:e1,isRTL:function(e){return"rtl"===ti(e).direction}};function tx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tE(e,t,i,r){let n;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=ts(e),d=o||l?[...u?to(u):[],...t?to(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",i,{passive:!0}),l&&e.addEventListener("resize",i)});let p=u&&s?function(e,t){let i,r=null,n=eQ(e);function o(){var e;clearTimeout(i),null==(e=r)||e.disconnect(),r=null}return!function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),o();let c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(a||t(),!p||!f)return;let h={rootMargin:-eP(d)+"px "+-eP(n.clientWidth-(u+p))+"px "+-eP(n.clientHeight-(d+f))+"px "+-eP(u)+"px",threshold:eT(0,eC(1,s))||1},m=!0;function v(t){let r=t[0].intersectionRatio;if(r!==s){if(!m)return l();r?l(!1,r):i=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||tx(c,e.getBoundingClientRect())||l(),m=!1}try{r=new IntersectionObserver(v,{...h,root:n.ownerDocument})}catch(e){r=new IntersectionObserver(v,h)}r.observe(e)}(!0),o}(u,i):null,f=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),i()}),u&&!c&&h.observe(u),t&&h.observe(t));let m=c?tp(e):null;return c&&function t(){let r=tp(e);m&&!tx(m,r)&&i(),m=r,n=requestAnimationFrame(t)}(),i(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",i),l&&e.removeEventListener("resize",i)}),null==p||p(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(n)}}var tA=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var i,r;let{x:n,y:o,placement:l,middlewareData:a}=t,s=await eK(t,e);return l===(null==(i=a.offset)?void 0:i.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:n+s.x,y:o+s.y,data:{...s,placement:l}}}}},tC=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:i,y:r,placement:n,platform:o}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}},...c}=eR(e,t),u={x:i,y:r},d=await o.detectOverflow(t,c),p=ez(eI(n)),f=e_(p),h=u[f],m=u[p];if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",i=h+d[e],r=h-d[t];h=eT(i,eC(h,r))}
1if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",i=m+d[e],r=m-d[t];m=eT(i,eC(m,r))}let v=s.fn({...t,[f]:h,[p]:m});return{...v,data:{x:v.x-i,y:v.y-r,enabled:{[f]:l,[p]:a}}}}}},tT=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var i,r,n,o,l,a,s,c;let u,d,p,{placement:f,middlewareData:h,rects:m,initialPlacement:v,platform:g,elements:b}=t,{mainAxis:y=!0,crossAxis:w=!0,fallbackPlacements:x,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:C=!0,...T}=eR(e,t);if(null!=(i=h.arrow)&&i.alignmentOffset)return{};let S=eI(f),P=ez(v),k=eI(v)===v,L=await (null==g.isRTL?void 0:g.isRTL(b.floating)),R=x||(k||!C?[eB(v)]:(u=eB(v),[eF(v),u,eF(u)])),I="none"!==A;!x&&I&&R.push(...(d=ej(v),p=function(e,t,i){switch(e){case"top":case"bottom":if(i)return t?eM:eO;return t?eO:eM;case"left":case"right":return t?eD:e$;default:return[]}}(eI(v),"start"===A,L),d&&(p=p.map(e=>e+"-"+d),C&&(p=p.concat(p.map(eF)))),p));let j=[v,...R],_=await g.detectOverflow(t,T),N=[],z=(null==(r=h.flip)?void 0:r.overflows)||[];if(y&&N.push(_[S]),w){let e,t,i,r,n=(a=f,s=m,void 0===(c=L)&&(c=!1),e=ej(a),i=eN(t=e_(ez(a))),r="x"===t?e===(c?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[i]>s.floating[i]&&(r=eB(r)),[r,eB(r)]);N.push(_[n[0]],_[n[1]])}if(z=[...z,{placement:f,overflows:N}],!N.every(e=>e<=0)){let e=((null==(n=h.flip)?void 0:n.index)||0)+1,t=j[e];if(t&&("alignment"!==w||P===ez(t)||z.every(e=>ez(e.placement)!==P||e.overflows[0]>0)))return{data:{index:e,overflows:z},reset:{placement:t}};let i=null==(o=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!i)switch(E){case"bestFit":{let e=null==(l=z.filter(e=>{if(I){let t=ez(e.placement);return t===P||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(i=e);break}case"initialPlacement":i=v}if(f!==i)return{reset:{placement:i}}}return{}}}},tS=(e,t,i)=>{let r=new Map,n={platform:tw,...i},o={...n.platform,_c:r};return eW(e,t,{...n,platform:o})},tP={mode:"default",position:"bottom-start",state:"closed",backdrop:!1,stroke:!1,autoHeight:!0,autoClose:!0,escapeClose:!0,padding:"small",autoFlip:!0,offset:1},tk="closed",tL="measuring",tR="opened",tI="default",tj="modal",t_="fullscreen",tN="hidden",tz="pi-popover",tF="pi-state",tO={"center-top":"top","center-bottom":"bottom","left-center":"left","right-center":"right","left-top":"top-start","right-top":"top-end","left-bottom":"bottom-start","right-bottom":"bottom-end",top:"top","top-start":"top-start","top-end":"top-end",bottom:"bottom","bottom-start":"bottom-start","bottom-end":"bottom-end",left:"left","left-start":"left-start","left-end":"left-end",right:"right","right-start":"right-start","right-end":"right-end"},tM=class{static setupEventListeners(e,t,i,r){let n=[];return n.push(this.setupEscapeKeyHandler(e,t)),n.push(this.setupOutsideClickHandler(e,t,i,r)),n}static setupEscapeKeyHandler(e,t){let i=i=>{"Escape"===i.key&&e.config.escapeClose&&e.state===tR&&t(e.id)};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)}static setupOutsideClickHandler(e,t,i,r){let n=n=>{if(!e.config.autoClose||e.state!==tR||e.config.mode===t_)return;let o=n.composedPath();if(!(e.anchor&&o.includes(e.anchor))){if(o.includes(e.element))return void r(i().filter(t=>t.state===tR&&t.id!==e.id),parseInt(window.getComputedStyle(e.element).zIndex||"0",10));for(let t of i().filter(t=>t.state===tR&&t.id!==e.id))if(o.includes(t.element))return;t(e.id)}};return document.addEventListener("click",n),()=>document.removeEventListener("click",n)}},tD=class{static waitForAnimation(e,t){return new Promise(i=>{let r=!1,n=()=>{r||(r=!0,e.removeEventListener("transitionend",o),e.removeEventListener("animationend",o),i())},o=t=>{t.target===e&&n()};e.addEventListener("transitionend",o,{once:!0}),e.addEventListener("animationend",o,{once:!0}),setTimeout(n,t+50)})}static scheduleCallback(e,t=1){t<=1?requestAnimationFrame(e):requestAnimationFrame(()=>this.scheduleCallback(e,t-1))}},t$=class e{constructor(){this.instances=new Map,this.backdropElement=null}create(e,t={}){let i=this.validateAndGetElement(e);
1if(!i)return null;let r=this.instances.get(e);if(r){if(r.cleanupFloatingUI)try{r.cleanupFloatingUI(),r.cleanupFloatingUI=void 0}catch(t){console.warn(`Error during floating UI cleanup for popover ${e}:`,t)}r.cleanupListeners.forEach(t=>{try{t()}catch(t){console.warn(`Error during listener cleanup for popover ${e}:`,t)}})}t.autoFlip&&t.autoHeight&&console.warn(`[PopoverService] Popover "${e}" has both "autoFlip" and "autoHeight" enabled. Using both simultaneously is not recommended as it may cause race conditions in positioning.`);let n=this.findAnchorElement(e),o={...tP,...t},l=this.createInstance(e,i,n,o);return this.initializeInstance(l),this.instances.set(e,l),l}open(e,t={}){let i=this.create(e,t);i&&i.state!==tR&&((i.config.mode===tj||i.config.mode===t_)&&this.closeAll(),i.config.backdrop&&this.showBackdrop(),this.applyZIndex(i),i.state=tL,i.element.setAttribute(tF,tL),i.config.mode===tI?(this.positionPopover(i),tD.scheduleCallback(()=>{i.element&&i.state===tL&&(i.state=tR,i.element.setAttribute(tF,tR),this.emitEvent(i,"open"))},2)):tD.scheduleCallback(()=>{i.state=tR,i.element.setAttribute(tF,tR),this.emitEvent(i,"open")}))}close(e){let t=this.instances.get(e);t&&t.state!==tk&&(t.state=tL,t.element.setAttribute(tF,tL),tD.waitForAnimation(t.element,200).then(()=>{this.instances.has(e)&&t.state===tL&&(t.state=tk,t.element.setAttribute(tF,tk),this.updateBackdropVisibility(),this.cleanupInstanceResources(t),this.emitEvent(t,"close"))}))}toggle(e,t={}){let i=this.instances.get(e);i&&i.state===tR?this.close(e):this.open(e,t)}closeAll(){this.instances.forEach(e=>{e.state===tR&&this.close(e.id)})}getInstance(e){return this.instances.get(e)}getAllInstances(){return Array.from(this.instances.values())}destroy(e){let t=this.instances.get(e);t&&(t.state===tR&&this.close(e),this.cleanupInstanceResources(t),t.cleanupListeners.forEach(t=>{try{t()}catch(t){console.warn(`Error during cleanup for popover ${e}:`,t)}}),this.instances.delete(e))}destroyAll(){Array.from(this.instances.keys()).forEach(e=>this.destroy(e)),this.hideBackdrop()}validateAndGetElement(e){let t=document.getElementById(e);return t?t.hasAttribute(tz)?t:(console.error(`[PopoverService] Element with id "${e}" is not a valid popover. Add the "${tz}" attribute.`),null):(console.warn(`[PopoverService] Popover element with id "${e}" not found. Skipping.`),null)}createInstance(e,t,i,r){return{id:e,element:t,anchor:i,config:this.createSyncedConfig(t,r),state:tk,cleanupListeners:[]}}initializeInstance(e){this.applyConfigToElement(e),this.setupEventListeners(e)}findAnchorElement(e){let t=`[popovertarget="${e}"]`;return document.querySelector(t)}applyConfigToElement(t){let{element:i,config:r}=t;Object.entries(e.PROPERTY_MAPPING).forEach(([,e])=>{let t=`pi-${e.attr}`;if(!i.hasAttribute(t)){let n=e.getDefault(r);i.setAttribute(t,n)}}),i.hasAttribute(tF)||i.setAttribute(tF,tk)}createSyncedConfig(t,i){return new Proxy({...i},{get(i,r){let n=e.PROPERTY_MAPPING[r];if(n){let e=t.getAttribute(`pi-${n.attr}`);return null===e?r in i?i[r]:n.parse(null):n.parse(e)}return i[r]},set(i,r,n){i[r]=n;let o=e.PROPERTY_MAPPING[r];return o&&t.setAttribute(`pi-${o.attr}`,o.serialize(n)),!0}})}setupEventListeners(e){let t=tM.setupEventListeners(e,e=>this.close(e),()=>this.getAllInstances(),(e,t)=>this.closeChildPopovers(e,t));e.cleanupListeners.push(...t)}cleanupInstanceResources(e){try{e.cleanupFloatingUI&&(e.cleanupFloatingUI(),e.cleanupFloatingUI=void 0),e.element&&e.element.style&&(e.element.style.removeProperty("--pi-popover-pos"),e.element.style.removeProperty("--pi-popover-max-height"),e.element.style.removeProperty("--pi-popover-z-index-offset"))}catch(t){console.warn(`Error during resource cleanup for popover ${e.id}:`,t)}}positionPopover(e){let{element:t,anchor:i,config:r}=e;if(r.mode!==tj&&r.mode!==t_)if(i){var n,o;e.cleanupFloatingUI&&(e.cleanupFloatingUI(),e.cleanupFloatingUI=void 0);let l=tO[r.position||"bottom-start"],a=[tA(r.offset??1)];(!0===r.autoFlip&&a.push(tT({fallbackAxisSideDirection:"start"})),a.push(tC({crossAxis:!!r.autoHeight,limiter:{options:n={offset:({rects:e})=>({mainAxis:Math.min(.1*e.floating.width,20),crossAxis:Math.min(.1*e.floating.height,20)})},fn(e){let{x:t,y:i,placement:r,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=eR(n,e),u={x:t,y:i},d=ez(r),p=e_(d),f=u[p],h=u[d],m=eR(a,e),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+v.mainAxis,i=o.reference[p]+o.reference[e]-v.mainAxis;f<t?f=t:f>i&&(f=i)}if(c){var g,b;let e="y"===p?"width":"height",t=eG.has(eI(r)),i=o.reference[d]-o.floating[e]+(t&&(null==(g=l.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),n=o.reference[d]+o.reference[e]+(t?0:(null==(b=l.offset)?void 0:b[d])||0)-(t?v.crossAxis:0);h<i?h=i:h>n&&(h=n)}return{[p]:f,[d]:h}}}})),r.autoHeight)?a.push({name:"size",options:o={apply(e){i.isConnected&&t.isConnected&&t.style.setProperty("--pi-popover-max-height",`${e.availableHeight-(e.y??0)-15}px`)}},async fn(e){var t,i;let r,n,{placement:l,rects:a,platform:s,elements:c}=e,{apply:u=()=>{},...d}=eR(o,e),p=await s.detectOverflow(e,d),f=eI(l),h=ej(l),m="y"===ez(l),{width:v,height:g}=a.floating;"top"===f||"bottom"===f?(r=f,n=h===(await (null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(n=f,r="end"===h?"to
1p":"bottom");let b=g-p.top-p.bottom,y=v-p.left-p.right,w=eC(g-p[r],b),x=eC(v-p[n],y),E=!e.middlewareData.shift,A=w,C=x;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(C=y),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(A=b),E&&!h){let e=eT(p.left,0),t=eT(p.right,0),i=eT(p.top,0),r=eT(p.bottom,0);m?C=v-2*(0!==e||0!==t?e+t:eT(p.left,p.right)):A=g-2*(0!==i||0!==r?i+r:eT(p.top,p.bottom))}await u({...e,availableWidth:C,availableHeight:A});let T=await s.getDimensions(c.floating);return v!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}):t.style.removeProperty("--pi-popover-max-height");let s=tE(i,t,()=>{t.isConnected&&i.isConnected&&e.state!==tk&&tS(i,t,{placement:l,middleware:a,strategy:"fixed"}).then(({x:r,y:n})=>{t.isConnected&&i.isConnected&&e.state!==tk&&isFinite(r)&&isFinite(n)&&r>=-1e4&&n>=-1e4&&r<=1e4&&n<=1e4&&t.style.setProperty("--pi-popover-pos",`${r}px ${n}px`)}).catch(n=>{if(console.warn(`Positioning error for popover ${e.id}:`,n),(null==i?void 0:i.getBoundingClientRect)&&t.isConnected&&e.state!==tk)try{let e=i.getBoundingClientRect(),n=e.bottom+(r.offset??1),o=e.left;isFinite(n)&&isFinite(o)&&t.style.setProperty("--pi-popover-pos",`${o}px ${n}px`)}catch(t){console.warn(`Fallback positioning failed for popover ${e.id}:`,t)}})},{ancestorScroll:!1,ancestorResize:!0,elementResize:!0,layoutShift:!1,animationFrame:r.sticky});e.cleanupFloatingUI=()=>{try{s()}catch(t){console.warn(`Error during autoUpdate cleanup for popover ${e.id}:`,t)}}}else console.warn(`No anchor element found for popover ${e.id}`)}showBackdrop(){this.backdropElement||(this.backdropElement=document.createElement("div"),this.backdropElement.setAttribute("pi-popover-backdrop",""),this.backdropElement.setAttribute(tF,tN),document.body.appendChild(this.backdropElement)),this.backdropElement.setAttribute(tF,tN),tD.scheduleCallback(()=>{this.backdropElement&&this.backdropElement.setAttribute(tF,"visible")})}hideBackdrop(){this.backdropElement&&this.backdropElement.setAttribute(tF,tN)}updateBackdropVisibility(){Array.from(this.instances.values()).some(e=>e.state===tR&&(e.config.mode===tj||e.config.mode===t_)&&e.config.backdrop)?this.showBackdrop():this.hideBackdrop()}emitEvent(e,t){let i=new CustomEvent(`piPopover${t.charAt(0).toUpperCase()+t.slice(1)}`,{detail:{popoverId:e.id,instance:e},bubbles:!0,cancelable:!0});e.element.dispatchEvent(i)}applyZIndex(e){let t=this.getAllInstances().filter(e=>e.state===tR).length;e.element.style.setProperty("--pi-popover-z-index-offset",String(t))}closeChildPopovers(e,t){e.forEach(e=>{e.state===tR&&e.config.autoClose&&parseInt(window.getComputedStyle(e.element).zIndex||"0",10)>t&&this.close(e.id)})}};t$.PROPERTY_MAPPING={mode:{attr:"mode",parse:e=>e||tI,serialize:e=>String(e),getDefault:e=>e.mode||tI},position:{attr:"position",parse:e=>e||"bottom-start",serialize:e=>String(e),getDefault:e=>e.position||"bottom-start"},backdrop:{attr:"backdrop",parse:e=>"true"===e,serialize:e=>String(e),getDefault:e=>String(e.backdrop||!1)},stroke:{attr:"stroke",parse:e=>"true"===e,serialize:e=>String(e),getDefault:e=>String(e.stroke||!1)},autoHeight:{attr:"auto-height",parse:e=>"false"!==e,serialize:e=>String(e),getDefault:e=>String(e.autoHeight??!0)},autoClose:{attr:"auto-close",parse:e=>"false"!==e,serialize:e=>String(e),getDefault:e=>String(e.autoClose??!0)},escapeClose:{attr:"escape-close",parse:e=>"false"!==e,serialize:e=>String(e),getDefault:e=>String(e.escapeClose??!0)},padding:{attr:"padding",parse:e=>e||"small",serialize:e=>String(e),getDefault:e=>e.padding||"small"},autoFlip:{attr:"auto-flip",parse:e=>null===e||"true"===e,serialize:e=>String(e),getDefault:e=>String(e.autoFlip??!0)},sticky:{attr:"sticky",parse:e=>null===e||"true"===e,serialize:e=>String(e),getDefault:e=>String(e.sticky??!0)},offset:{attr:"offset",parse:e=>null!==e?Number(e):1,serialize:e=>String(e),getDefault:e=>String(e.offset??1)}};var tB=null;function tH(){return tB||(tB=new t$),tB}var tq={create:(e,t={})=>tH().create(e,t),open(e,t={}){tH().open(e,t)},close(e){tH().close(e)},toggle(e,t={}){tH().toggle(e,t)},closeAll(){tH().closeAll()},getInstance:e=>tH().getInstance(e),getAllInstances:()=>tH().getAllInstances(),destroy(e){tH().destroy(e)},destroyAll(){tH().destroyAll()},getManager:()=>tH()},tU=(0,r.forwardRef)(({id:e,state:t="closed",mode:i="default",position:o="bottom-start",backdrop:l=!1,autoClose:a=!0,escapeClose:s=!0,padding:c="small",stroke:u=!1,autoHeight:d=!0,autoFlip:p=!0,sticky:f=!0,offset:h=1,onStateChange:m,onOpen:v,onClose:g,children:b,...y},w)=>{let x=(0,r.useRef)(null),E=(0,r.useRef)(!1),A=(0,r.useRef)(t),C=(0,r.useRef)(t);C.current=t,j("popover");let T=(0,r.useCallback)(()=>({mode:i,position:o,backdrop:l,autoClose:a,escapeClose:s,padding:c,stroke:u,autoHeight:d,autoFlip:p,sticky:f,offset:h}),[i,o,l,a,s,c,u,d,p,f,h]);(0,r.useEffect)(()=>
1{if(!("u"<typeof document)&&document.getElementById(e)){if(!E.current)try{tq.create(e,T()),E.current=!0}catch(e){console.error("[PiPopover] Failed to initialize popover:",e);return}return()=>{E.current&&(tq.destroy(e),E.current=!1)}}},[e,T]),(0,r.useEffect)(()=>{"u">typeof document&&E.current&&t!==A.current&&(A.current=t,"opened"===t?(tq.open(e,T()),null==v||v()):(tq.close(e),null==g||g()))},[t,e,T,v,g]),(0,r.useEffect)(()=>{if("u"<typeof document)return;let t=x.current;if(!t)return;let i=t=>{var i;(null==(i=t.detail)?void 0:i.popoverId)===e&&"opened"!==C.current&&(null==m||m("opened"))},r=t=>{var i;(null==(i=t.detail)?void 0:i.popoverId)===e&&"closed"!==C.current&&(null==m||m("closed"))};return t.addEventListener("piPopoverOpen",i),t.addEventListener("piPopoverClose",r),()=>{t.removeEventListener("piPopoverOpen",i),t.removeEventListener("piPopoverClose",r)}},[e,m]),(0,r.useImperativeHandle)(w,()=>({open:()=>{tq.open(e,T()),null==m||m("opened")},close:()=>{tq.close(e),null==m||m("closed")},toggle:()=>{tq.toggle(e,T()),null==m||m("opened"===C.current?"closed":"opened")},get isOpen(){return"opened"===C.current},elementRef:x}),[e,T,m]);let S={"pi-popover":"","pi-state":t,"pi-mode":i,"pi-position":o,"pi-padding":c};return l&&(S["pi-backdrop"]="true"),u&&(S["pi-stroke"]="true"),S["pi-auto-height"]=String(d),S["pi-auto-close"]=String(a),S["pi-escape-close"]=String(s),S["pi-auto-flip"]=String(p),S["pi-sticky"]=String(f),S["pi-offset"]=String(h),(0,n.jsxs)(n.Fragment,{children:[_("popover"),(0,n.jsx)("dialog",{ref:x,id:e,"aria-modal":"true",...S,...y,children:b})]})});tU.Header=({children:e,...t})=>(0,n.jsx)("header",{"pi-popover-header":"",...t,children:e}),tU.Header.displayName="PiPopover.Header",tU.Content=({children:e,...t})=>(0,n.jsx)("div",{"pi-popover-content":"",...t,children:e}),tU.Content.displayName="PiPopover.Content",tU.Footer=({children:e,...t})=>(0,n.jsx)("footer",{"pi-popover-footer":"",...t,children:e}),tU.Footer.displayName="PiPopover.Footer",tU.Close=({id:e,...t})=>(0,n.jsx)("button",{"pi-popover-close":"","pi-button":"invisible icon","pi-color":"neutral","pi-size":"small",onClick:()=>tq.close(e),...t,children:(0,n.jsx)("span",{"pi-icon":"ic-s-cross"})}),tU.Close.displayName="PiPopover.Close",tU.displayName="PiPopover";var tW=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],tV="hidden",tY="visible",tG={placement:"top",color:"dark",offset:8,delay:0},tK="pi-placement",tX="pi-color",tZ="pi-state",tJ="pi-open",tQ="pi-soft-hidden";function t0(e){return e.hasAttribute("pi-pointer")}function t1(e){return e.querySelector(".pi-tooltip-close")}function t2(e){return"string"==typeof e&&tW.includes(e)?e:tG.placement}function t5(e){let[t,i]=e.split("-");return{side:t,alignment:i??"center"}}function t6(e){if(e.hasAttribute(tJ))return"false"!==e.getAttribute(tJ)}function t8(e,t){let i=t?"true":"false";e.getAttribute(tJ)!==i&&e.setAttribute(tJ,i)}var t4=class{constructor(){this.instances=new Map}show(e,t={}){let i=this.instances.get(e);if(i||(i=this.createInstance(e,t),this.instances.set(e,i)),i.isOpen=!0,this.isControlled(i)&&t8(i.element,!0),i.state===tY)return;this.clearTimers(i);let r=i.config.delay||0;r>0?i.showTimer=window.setTimeout(()=>{this.showImmediately(i)},r):this.showImmediately(i)}hide(e){let t=this.instances.get(e);t&&(this.clearTimers(t),t.isOpen=!1,this.isControlled(t)&&t8(t.element,!1),t.state===tY?this.hideImmediately(t):t.cleanupFloatingUI&&(t.cleanupFloatingUI(),t.cleanupFloatingUI=void 0))}destroy(e){var t,i;let r=this.instances.get(e);r&&(this.clearTimers(r),null==(t=r.closeButtonCleanup)||t.call(r),null==(i=r.openObserverCleanup)||i.call(r),r.cleanupListeners.forEach(e=>e()),r.cleanupFloatingUI&&r.cleanupFloatingUI(),this.instances.delete(e))}initialize(e,t={}){let i=this.instances.get(e);return i||(i=this.createInstance(e,t),this.instances.set(e,i)),this.isControlled(i)&&i.config.open&&this.show(e),i}refreshContent(e){let t=this.getInstance(e);t&&this.setupCloseButton(t)}getInstance(e){let t=this.instances.get(e);return t&&(!document.body.contains(t.element)||t.anchor&&!document.body.contains(t.anchor))?void this.destroy(e):t}getAllInstances(){return Array.from(this.instances.values())}
1destroyAll(){Array.from(this.instances.keys()).forEach(e=>this.destroy(e))}isControlled(e){return void 0!==e.config.open}createInstance(e,t){let i=document.getElementById(e);if(!i)throw Error(`Tooltip element with id "${e}" not found`);if(!i.hasAttribute("pi-tooltip"))throw Error(`Element with id "${e}" is not a valid tooltip. Add pi-tooltip attribute.`);let r=this.resolveAnchor(t.anchor)??this.findAnchor(e),n=i.getAttribute(tK),o=i.getAttribute(tX),l={};n&&(l.placement=t2(n)),o&&(l.color=o),l.open=t6(i);let a={id:e,element:i,anchor:r,config:function(...e){let t={...tG};for(let i of e)for(let[e,r]of Object.entries(i))void 0!==r&&(t[e]=r);return t.placement=t2(t.placement),t}(l,t),state:tV,isOpen:!1,cleanupListeners:[]};return this.applyConfig(a),this.setupEventListeners(a),this.setupCloseButton(a),this.isControlled(a)&&this.setupOpenAttributeObserver(a),a}applyConfig(e){let{element:t,config:i}=e,{side:r,alignment:n}=t5(t2(i.placement));t.setAttribute(tK,r),t.setAttribute(tX,i.color),t.setAttribute(tZ,tV),t.removeAttribute(tQ),t.setAttribute("role","tooltip"),t.setAttribute("aria-hidden","true"),t0(t)&&t.setAttribute("pi-pointer-align",n)}setupCloseButton(e){var t;null==(t=e.closeButtonCleanup)||t.call(e),e.closeButtonCleanup=void 0;let i=t1(e.element);if(!i)return;let r=t=>{var i,r;t.preventDefault(),t.stopPropagation(),this.hide(e.id),this.isControlled(e)&&(null==(r=(i=e.config).onClose)||r.call(i))};i.addEventListener("click",r),e.closeButtonCleanup=()=>i.removeEventListener("click",r)}setupOpenAttributeObserver(e){let t=new MutationObserver(()=>{let t=t6(e.element);void 0!==t&&(e.config.open=t,t?this.show(e.id):this.hide(e.id))});t.observe(e.element,{attributes:!0,attributeFilter:[tJ]}),e.openObserverCleanup=()=>t.disconnect()}findAnchor(e){return document.querySelector(`[aria-describedby="${e}"]`)}resolveAnchor(e){return e?"string"==typeof e?document.querySelector(e):e:null}setupEventListeners(e){if(!e.anchor)return;if(!this.isControlled(e)){let t=window.matchMedia("(pointer: coarse)").matches,i=!!t1(e.element);if(t){let t=()=>{e.state===tY?this.hide(e.id):this.show(e.id)};e.anchor.addEventListener("click",t),e.cleanupListeners.push(()=>{var i;null==(i=e.anchor)||i.removeEventListener("click",t)})}else{let t=()=>{this.clearHideTimer(e),this.show(e.id)},r=i?()=>this.scheduleHide(e):()=>this.hide(e.id);e.anchor.addEventListener("mouseenter",t),e.anchor.addEventListener("mouseleave",r),e.anchor.addEventListener("focus",t),e.anchor.addEventListener("blur",r),e.cleanupListeners.push(()=>{var i,n,o,l;null==(i=e.anchor)||i.removeEventListener("mouseenter",t),null==(n=e.anchor)||n.removeEventListener("mouseleave",r),null==(o=e.anchor)||o.removeEventListener("focus",t),null==(l=e.anchor)||l.removeEventListener("blur",r)}),i&&(e.element.addEventListener("mouseenter",t),e.element.addEventListener("mouseleave",r),e.element.addEventListener("focusin",t),e.element.addEventListener("focusout",r),e.cleanupListeners.push(()=>{e.element.removeEventListener("mouseenter",t),e.element.removeEventListener("mouseleave",r),e.element.removeEventListener("focusin",t),e.element.removeEventListener("focusout",r)}))}}let t=t=>{var i,r;"Escape"===t.key&&e.isOpen&&(this.hide(e.id),this.isControlled(e)&&(null==(r=(i=e.config).onClose)||r.call(i)),t.preventDefault())};document.addEventListener("keydown",t),e.cleanupListeners.push(()=>{document.removeEventListener("keydown",t)})}showImmediately(e){e.state=tY,e.element.setAttribute(tZ,tY),e.element.removeAttribute(tQ),e.element.setAttribute("aria-hidden","false"),this.positionTooltip(e)}hideImmediately(e){e.state=tV,e.element.setAttribute(tZ,tV),e.element.removeAttribute(tQ),e.element.setAttribute("aria-hidden","true"),e.cleanupFloatingUI&&(e.cleanupFloatingUI(),e.cleanupFloatingUI=void 0),e.reposition=void 0}positionTooltip(e){if(!e.anchor)return;let t=()=>this.runPositionCompute(e);e.reposition=t,e.cleanupFloatingUI?t():e.cleanupFloatingUI=tE(e.anchor,e.element,t)}runPositionCompute(e){var t;if(!e.anchor)return;let i=t2(e.config.placement),r=t0(e.element),n=r?[tA(e.config.offset??tG.offset),(void 0===t&&(t={}),{name:"hide",options:t,async fn(e){let{rects:i,platform:r}=e,{strategy:n="referenceHidden",...o}=eR(t,e);switch(n){case"referenceHidden":{let t=eV(await r.detectOverflow(e,{...o,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eY(t)}}}case"escaped":{let t=eV(await r.detectOverflow(e,{...o,altBoundary:!0}),i.floating);return{data:{escapedOffsets:t,escaped:eY(t)}}}default:return{}}}})]:[tA(e.config.offset??tG.offset),tT({crossAxis:!1}),tC({padding:5})];tS(e.anchor,e.element,{placement:i,middleware:n,strategy:"fixed"}).then(({x:t,y:i,placement:n,middlewareData:o})=>{var l;if(e.element.style.setProperty("--pi-tooltip-top",`${i}px`),e.element.style.setProperty("--pi-tooltip-left",`${t}px`),!r&&n){let{side:t}=t5(n);e.element.setAttribute(tK,t)}r&&this.setSoftVisibility(e,!(null==(l=null==o?void 0:o.hide)?void 0:l.referenceHidden))}).catch(e=>{console.error("Tooltip positioning error:",e)})}setSoftVisibility(e,t){e.isOpen&&!e.element.hasAttribute(tQ)!==t&&(t?(e.element.removeAttribute(tQ),e.element.setAttribute("aria-hidden","false")):(e.element.setAttribute(tQ,""),e.element.setAttribute("aria-hidden","true")))}scheduleHide(e){this.clearHideTimer(e),e.hideTimer=window.setTimeout(()=>{e.hideTimer=void 0,this.hide(e.id)},100)}clearHideTimer(e){e.hideTimer&&(clearTimeout(e.hideTimer),e.hideTimer=void 0)}clearTimers(e){e.showTimer&&(clearTimeout(e.showTimer),e.showTimer=void 0),this.clearHideTimer(e)}},t3=null;function t9(){return t3||(t3=new t4),t3}var t7={initialize:(e,t={})=>t9().initialize(e,t),show(e,t){t9().show(e,t)},hide(e){t9().hide(e)},destroy(e){t9().destroy(e)},refreshContent(e){t9().refreshContent(e)},getInstance:e=>t9().getInstance(e),getAllInstances:()=>t9().getAllInstances(),destroyAll(){t9().destroyAll()},getManager:()=>t9()},ie=(0,r.createContext)(null),it=(0,r.forwardRef)(({content:e,title:t,icon:i,closable:o=!1,onClose:l,open:a,pointer:s=!1,placement:c="top",color:u="dark",delay:d=0,offset:p=8,disabled:f=!1,children:h,...m},v)=>{let g=(0,r.useId)(),b=`pi-tooltip-${g.replace(/:/g,"")}`,y=(0,r.useRef)(!1),w=(0,r.useRef)(l);if((0,r.useEffect)(()=>{w.current=l},[l]),j("tooltip"),(i||o)&&j("icon"),o&&j("button"),(0,r.useEffect)(()=>
1{if("u"<typeof document||f)return;let e=setTimeout(()=>{if(document.getElementById(b))try{t7.initialize(b,{placement:c,color:u,delay:d,offset:p,onClose:()=>{var e;return null==(e=w.current)?void 0:e.call(w)}}),y.current=!0}catch(e){console.error("[PiTooltip] Failed to initialize tooltip:",e)}},0);return()=>{clearTimeout(e),y.current&&(t7.destroy(b),y.current=!1)}},[b,c,u,d,p,f,o,s]),f)return(0,n.jsx)(n.Fragment,{children:h});let x="string"!=typeof e||t||i||o?"html":"text",{side:E,alignment:A}=t5(c);return(0,n.jsxs)(ie.Provider,{value:{tooltipId:b},children:[_("tooltip"),(0,n.jsxs)("div",{ref:v,style:{display:"contents"},...m,children:[h,(0,n.jsx)("div",{id:b,"pi-tooltip":x,"pi-placement":E,"pi-pointer":s?"":void 0,"pi-pointer-align":s?A:void 0,"pi-color":u,"pi-open":void 0===a?void 0:String(a),"pi-state":"hidden",role:"tooltip","aria-hidden":"true",children:function(e,t,i,r=!1){if("string"==typeof e&&!t&&!i&&!r)return e;let o="string"==typeof e?(0,n.jsx)("p",{className:"pi-tooltip-description",children:e}):e;return(0,n.jsxs)(n.Fragment,{children:[i&&(0,n.jsx)("i",{"pi-icon":i}),t&&(0,n.jsx)("span",{className:"pi-tooltip-title",children:t}),o,r&&(0,n.jsx)("button",{type:"button",className:"pi-tooltip-close","pi-button":"invisible icon","pi-color":"white","aria-label":"Close tooltip",children:(0,n.jsx)("i",{"pi-icon":"ic-s-cross"})})]})}(e,t,i,o)})]})]})});it.displayName="PiTooltip";var ii=({children:e})=>{let{tooltipId:t}=function(){let e=(0,r.useContext)(ie);if(!e)throw Error("Tooltip sub-components must be used within PiTooltip");return e}();return(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{"aria-describedby":t}):e};ii.displayName="PiTooltip.Trigger";var ir=Object.assign(it,{Trigger:ii}),io={"4g":75,"3g":70,"2g":60,"slow-2g":55},il="https://static.esky.com/image",ia={hero:{sizes:"100vw",preferredSizes:[640,828,1200,1920,2560]},banner:{sizes:"100vw",preferredSizes:[640,828,1200,1920]},card:{sizes:"(min-width: 1200px) 25vw, (min-width: 768px) 33vw, (min-width: 480px) 50vw, 100vw",preferredSizes:[320,400,600,800]},thumbnail:{sizes:"(min-width: 768px) 200px, 150px",preferredSizes:[150,200,300,400]},avatar:{sizes:"(min-width: 768px) 80px, 60px",preferredSizes:[60,80,120,160]},content:{sizes:"(min-width: 768px) 50vw, 100vw",preferredSizes:[400,600,800,1200]},gallery:{sizes:"100vw",preferredSizes:[600,800,1200,1600,2048]}};function is(e,t=75){if(void 0!==e)return"auto"===e?function(e=75){if("u"<typeof navigator||!navigator.connection)return e;let t=io[navigator.connection.effectiveType];return void 0!==t?t:e}(t):"number"==typeof e&&e>=1&&e<=99?e:t}function ic(e,t={}){let i,r,n=t.quality,o=t.size,l=t.width,a=t.height;if(void 0===n&&void 0===o&&void 0===l&&void 0===a)return e;let s=(i=new URLSearchParams,void 0!==(r=is(t.quality))&&i.set("quality",r.toString()),void 0!==t.size?i.set("size",`${t.size}x`):void 0!==t.width?void 0!==t.height?i.set("size",`${t.width}x${t.height}`):i.set("size",`${t.width}x`):void 0!==t.height&&i.set("size",`x${t.height}`),i),c=s.toString();if(!c)return e;try{let t=new URL(e);return s.forEach((e,i)=>{t.searchParams.set(i,e)}),t.toString()}catch{let t=e.includes("?")?"&":"?";return`${e}${t}${c}`}}var iu=[{attr:"pi-skeleton",value:""},{prop:"styleVariant",attr:"pi-variant"},{prop:"transparent",attr:"pi-transparent"}],id=(0,r.forwardRef)(({variant:e="",styleVariant:t="text",transparent:i=!1,as:r="div",children:o,...l},a)=>{j("skeleton");let s=I({variant:e,styleVariant:t,transparent:i},iu);return(0,n.jsxs)(n.Fragment,{children:[_("skeleton"),(0,n.jsx)(r,{ref:a,...s,...l,children:o})]})});id.displayName="PiSkeleton";var ip=(0,r.createContext)({baseUrl:il}),ih=(0,r.forwardRef)(({src:e,preset:t,quality:i,widths:o,sizes:l,srcSet:a,alt:s,width:c,height:u,loading:d,priority:p=!1,fallbackUrl:f,placeholder:h,showLoadingSkeleton:m=!1,baseUrl:v,className:g,style:b,onLoad:y,onError:w},x)=>{let{baseUrl:E}=(0,r.useContext)(ip),A=v??E,[C,T]=(0,r.useState)(!1),[S,P]=(0,r.useState)(!0),k=(0,r.useRef)(null),L=(0,r.useCallback)(e=>{k.current=e,"function"==typeof x?x(e):x&&(x.current=e)},[x]),R=`${e}::${A}`,[I,j]=(0,r.useState)(R);R!==I&&(j(R),T(!1),P(!0)),(0,r.useLayoutEffect)(()=>{var e;
1(null==(e=k.current)?void 0:e.complete)&&k.current.naturalWidth>0&&P(!1)},[e,A]);let _=C&&f?f:e,N=(0,r.useMemo)(()=>(function(e,t=il){if(/^(?:data|blob):/i.test(e))return e;let i=e.match(/(?:^|\/)_fe\/img\/(.+)$/);return i?`${t}/${i[1]}`:/^(?:https?:)?\/\/[^/]/i.test(e)?e:`${t}/${e.replace(/^\/+/,"")}`})(_,A),[_,A]),z=d??(p?"eager":"lazy"),F=(0,r.useMemo)(()=>(function(e,t,i={}){var r;let n,o=ia[t],l=void 0!==i.quality?is(i.quality):is("auto");return{src:i.src||ic(e,{quality:l,width:i.width,height:i.height}),srcSet:i.srcSet||(n=(r={quality:l,sizes:i.widths||[...o.preferredSizes]}).quality,[...r.sizes].sort((e,t)=>e-t).map(t=>{let i=ic(e,{quality:n,size:t});return`${i} ${t}w`}).join(", ")),sizes:i.sizes||o.sizes,alt:i.alt||"",width:i.width,height:i.height,loading:i.loading||"eager"}})(N,t,{quality:i,widths:o,sizes:l,srcSet:a,alt:s,width:c,height:u,loading:z}),[N,t,i,o,l,a,s,c,u,z]),O=!0===h?function(e,t=20){return ic(e,{quality:20,size:t})}(N):"string"==typeof h?h:void 0,M=(0,r.useCallback)(()=>{P(!1),null==y||y()},[y]),D=(0,r.useCallback)(()=>{P(!C&&!!f),T(!0),null==w||w()},[f,C,w]),$=(0,n.jsx)("img",{ref:L,...F,loading:p?void 0:F.loading,fetchPriority:p?"high":void 0,className:g,style:O&&S?{backgroundImage:`url(${O})`,backgroundSize:"cover",...b}:b,onLoad:M,onError:D});return m?(0,n.jsxs)("span",{style:{position:"relative",display:"inline-block"},children:[S&&(0,n.jsx)(id,{style:{position:"absolute",inset:0},"aria-hidden":!0}),$]}):$});ih.displayName="PiImage",e.s(["PiBreadcrumbsCollapsed",0,q,"PiImage",0,ih,"PiImageConfigProvider",0,function({baseUrl:e,children:t}){let i=(0,r.useMemo)(()=>({baseUrl:e}),[e]);return(0,n.jsx)(ip.Provider,{value:i,children:t})},"PiInput",0,O,"PiModal",0,eE,"PiPopover",0,tU,"PiSnackbar",0,G,"PiTooltip",0,ir,"PopoverService",0,tq,"StyleCollectorProvider",0,function({children:e}){return globalThis[l]=!0,(0,n.jsx)(n.Fragment,{children:e})},"StyleLinks",0,function({extraCss:e=[],skipBase:i=!1}){let n=(0,r.useRef)(new Set),o=(0,r.useSyncExternalStore)(v,()=>(function(e=[],i=!1){let r=E(),n=Array.from(e).join("|");return r===C&&n===T&&i===t?A:(C=r,T=n,t=i,A=function(e=[],t=!1){let i=h(),r=[],n=new Set;if(!t){let e=function(){let e=globalThis[b],t=globalThis[y]??"/_pinta-style";if(e&&e.base){let i=w(e.base);return`${t}/${i}`}return""}();e&&!n.has(e)&&(r.push({href:e}),n.add(e))}for(let t of(i&&i.components.forEach(e=>{for(let t of x(e))n.has(t.href)||(r.push(t),n.add(t.href))}),e))n.has(t)||(r.push({href:t}),n.add(t));return r}(e,i))})(e,i),P);return(0,r.useEffect)(()=>{let e=(globalThis[k]||(globalThis[k]=new Set,document.querySelectorAll('link[rel="stylesheet"][data-precedence]').forEach(e=>{let t=e.getAttribute("href");t&&globalThis[k].add(t)})),globalThis[k]),t=o.filter(t=>!(t.inline||n.current.has(t.href))&&(!(e.has(t.href)||document.querySelector(`link[rel="stylesheet"][href="${CSS.escape(t.href)}"]`))||(n.current.add(t.href),!1)));0!==t.length&&t.forEach(e=>{n.current.add(e.href);let t=document.createElement("link");t.rel="stylesheet",t.href=e.href,e.crossOrigin&&(t.crossOrigin=e.crossOrigin),t.dataset.pintaStyle="dynamic",document.head.appendChild(t)})},[o]),null},"getPintaBrand",0,R,"setPintaBrand",0,L,"usePintaBrand",0,function(){let[e,t]=(0,r.useState)(null);return(0,r.useEffect)(()=>{t(R())},[]),{brand:e,setBrand:(0,r.useCallback)(e=>{L(e),t(e)},[])}}])},2993,e=>{"use strict";var t=e.i(90992),i=e.i(23659),r=e.i(59312);function n(e,t){let i={};for(let{prop:r,attr:n,value:o}of t){let t=void 0!==o?o:r?e[r]:void 0;if(null!=t){if("boolean"==typeof t){t&&(i[n]="");continue}i[n]=String(t)}}return i}var o={},l="__PINTA_CLIENT_STORE__",a="__PINTA_CLIENT_SUBSCRIBERS__",s="__PINTA_BATCH_PENDING__",c="__PINTA_BATCH_SCHEDULED__",u="__PINTA_SNAPSHOT_VERSION__";function d(){return{components:new Set}}var p=(0,t.cache)(d);function f(e){if(!e||"icon"===e)return;let t="u"<typeof window?p():(globalThis[l]||(globalThis[l]=d()),globalThis[l]);!(!t||t.components.has(e))&&(t.components.add(e),globalThis[u]=(globalThis[u]??0)+1,"u">typeof window&&(globalThis[s]||(globalThis[s]=[]),globalThis[s].push(e),globalThis[c]||(globalThis[c]=!0,queueMicrotask(()=>{globalThis[c]=!1;let e=globalThis[s];e&&e.length>0&&(globalThis[s]=[],(!globalThis[a]&&(globalThis[a]=new Set),globalThis[a]).forEac
1h(e=>e()))}))))}function h(e){if(!0!==globalThis.__PINTA_CSS_AUTOLOAD__)return null;let t=(function(e){let t,i=[],r=globalThis.__PINTA_RUNTIME_BASE_PATH__??"/_pinta-style",n=(t=globalThis.__PINTA_RUNTIME_MANIFEST__)?t[e]:void 0;if(n){let e="string"==typeof n?n:n.file;if(e){let t={href:`${r}/${e}`};"object"==typeof n&&(n.inline&&(t.inline=!0),n.preload&&(t.preload=!0)),i.push(t)}}let l=o[e]??[];return i.push(...l),i})(e).filter(e=>!0!==e.inline);return t&&0!==t.length&&t.forEach(e=>{(0,i.preinit)(e.href,{as:"style",precedence:"high",...e.crossOrigin&&{crossOrigin:e.crossOrigin}})}),null}var m=[{prop:"name",attr:"pi-icon"},{prop:"size",attr:"pi-size"}],v=(0,t.forwardRef)(({name:e,size:t,as:i="i",children:o,style:l,...a},s)=>{f("icon");let c=n({name:e,size:t},m),u={...t?{"--pi-icon-size":t}:{}};return(0,r.jsxs)(r.Fragment,{children:[h("icon"),(0,r.jsx)(i,{ref:s,style:{...u,...l},...c,...a,children:o})]})});v.displayName="PiIcon";var g=v,b=[{attr:"pi-accordion",value:!0},{prop:"stroke",attr:"pi-stroke"},{prop:"disabled",attr:"pi-disabled"},{prop:"name",attr:"pi-name"}],y=(0,t.forwardRef)(({variant:e=!1,stroke:t="full",disabled:i=!1,name:o,as:l="details",children:a,...s},c)=>{f("accordion");let u=n({variant:e,stroke:t,disabled:i,name:o},b);return(0,r.jsxs)(r.Fragment,{children:[h("accordion"),(0,r.jsx)(l,{ref:c,disabled:i||void 0,...u,...s,children:a})]})});y.displayName="PiAccordion";var w=(0,t.forwardRef)(({accordionArrow:e,arrow:t,as:i=g,children:n,...o},l)=>(0,r.jsx)(i,{ref:l,"pi-accordion-arrow":"",name:e??t,...o,children:n}));w.displayName="Arrow";var x=(0,t.forwardRef)(({accordionSubtitle:e,subtitle:t="",as:i="div",children:o,...l},a)=>{let s=n({resolved:e??t},[{prop:"resolved",attr:"pi-accordion-subtitle"}]);return(0,r.jsx)(i,{ref:a,...s,...l,children:o})});x.displayName="Subtitle",Object.assign(y,{Arrow:w,Subtitle:x});var E=[{prop:"variant",attr:"pi-badge"},{prop:"size",attr:"pi-size"},{prop:"color",attr:"pi-color"},{prop:"lowercase",attr:"pi-lowercase"}],A=(0,t.forwardRef)(({variant:e="primary",size:t="32",color:i="accent-1",lowercase:o,as:l="span",children:a,...s},c)=>{f("badge");let u=n({variant:e,size:t,color:i,lowercase:o},E);return(0,r.jsxs)(r.Fragment,{children:[h("badge"),(0,r.jsx)(l,{ref:c,...u,...s,children:a})]})});A.displayName="PiBadge";var C=[{prop:"variant",attr:"pi-button"},{prop:"size",attr:"pi-size"},{prop:"color",attr:"pi-color"},{prop:"state",attr:"pi-state"},{prop:"loading",attr:"pi-loading"}],T=(0,t.forwardRef)(({variant:e="primary",size:t="medium",color:i="accent-1",state:o,loading:l=!1,as:a="button",children:s,...c},u)=>{f("button");let d=n({variant:e,size:t,color:i,state:o,loading:l},C);return(0,r.jsxs)(r.Fragment,{children:[h("button"),(0,r.jsx)(a,{ref:u,type:"button"===a?"button":void 0,"aria-busy":l||void 0,...d,...c,children:s})]})});T.displayName="PiButton";var S=[{attr:"pi-checkbox",value:!0},{prop:"indeterminate",attr:"pi-indeterminate"},{prop:"invalid",attr:"pi-invalid"}],P=(0,t.forwardRef)(({variant:e,indeterminate:t,invalid:i=!1,as:o="input",children:l,...a},s)=>{f("checkbox");let c=n({variant:e,indeterminate:t,invalid:i},S);return(0,r.jsxs)(r.Fragment,{children:[h("checkbox"),(0,r.jsx)(o,{ref:s,...c,...a,children:l})]})});P.displayName="PiCheckbox";var k=new Set,L=[{prop:"variant",attr:"pi-chip"},{prop:"color",attr:"pi-color"},{prop:"size",attr:"pi-size"},{prop:"align",attr:"pi-align"},{prop:"state",attr:"pi-state"},{prop:"round",attr:"pi-round"}],R=(0,t.forwardRef)(({variant:e=!0,color:t="accent-1",size:i="40",align:o="start",state:l="default",round:a=!1,as:s="button",children:c,...u},d)=>{f("chip"),"string"!=typeof e||""===e||k.has(e)||(console.warn("[PiChip] Passing a string to variant is deprecated and will be removed in a future major version. Use a boolean instead, or omit the prop â pi-chip is applied regardless of the value."),k.add(e));let p=n({variant:e,color:t,size:i,align:o,state:l,round:a},L);return(0,r.jsxs)(r.Fragment,{children:[h("chip"),(0,r.jsx)(s,{ref:d,type:"button",...p,...u,children:c})]})});R.displayName="PiChip";var I=(0,t.forwardRef)(({chipIconPosition:e,iconPosition:t,as:i=g,children:n,...o},l)=>(0,r.jsx)(i,{ref:l,"pi-chip-icon-position":"",name:e??t,...o,children:n}));I.displayName="IconPosition";var j=(0,t.forwardRef)(({chipInteractiveIcon:e,interactiveIcon:t,as:i=g,children:n,...o},l)=>(0,r.jsx)(i,{ref:l,"pi-chip-interactive-icon":"",name:e??t,...o,children:n}));j.displayName="InteractiveIcon";var _=Object.assign(R,{IconPosition:I,InteractiveIcon:j}),N=[{prop:"variant",attr:"pi-corner-badge"},{prop:"type",attr:"pi-type"},{prop:"color",attr:"pi-color"},{prop:"size",attr:"pi-size"},{prop:"styleVariant",attr:"pi-variant"},{prop:"squared",attr:"pi-squared"}];(0,t.forwardRef)(({variant:e="",type:t="number",color:i="accent-1",size:o="medium",styleVariant:l="primary",squared:a,as:s="div",children:c,...u},d)=>{f("corner-badge");let p=n({variant:e,type:t,color:i,size:o,styleVariant:l,squared:a},N);return(0,r.jsxs)(r.Fragment,{children:[h("corner-badge"),(0,r.jsx)(s,{ref:d,...p,...u,children:c})]})}).displayName="PiCornerBadge";var z=[{attr:"pi-divider",value:""},{prop:"thickness",attr:"pi-thickness"}];(0,t.forwardRef)(({variant:e="",thickness:t="1px",as:i="hr",children:o,...l},a)=>{f("divider");let s=n({variant:e,thickness:t},z);return(0,r.jsxs)(r.Fragment,{children:[h("divider"),(0,r.jsx)(i,{ref:a,...s,...l,children:o})]})}).displayName="PiDivider";var F=[{prop:"variant",attr:"pi-helper"},{prop:"color",attr:"pi-color"},{prop:"controlsAlign",attr:"pi-controls-align"},{prop:"simple",attr:"pi-simple"},{prop:"colorful",attr:"pi-colorful"},{prop:"closeButton",attr:"pi-close-button"}
1,{prop:"helperContent",attr:"pi-helper-content"}],O=(0,t.forwardRef)(({variant:e="solid",color:t="neutral",controlsAlign:i="right",simple:o,colorful:l,closeButton:a=!1,helperContent:s=!1,as:c="article",children:u,...d},p)=>{f("helper");let m=n({variant:e,color:t,controlsAlign:i,simple:o,colorful:l,closeButton:a,helperContent:s},F);return(0,r.jsxs)(r.Fragment,{children:[h("helper"),(0,r.jsx)(c,{ref:p,...m,...d,children:u})]})});O.displayName="PiHelper";var M=[{attr:"pi-input-group",value:""},{prop:"size",attr:"pi-size"},{prop:"status",attr:"pi-status"},{prop:"width",attr:"pi-width"},{prop:"trimFirstSeparator",attr:"pi-trim-first-separator"},{prop:"disabled",attr:"pi-disabled"},{prop:"readonly",attr:"pi-readonly"},{prop:"required",attr:"pi-required"}],D=(0,t.forwardRef)(({variant:e="",size:t="small",status:i="neutral",width:o="auto",trimFirstSeparator:l=!1,disabled:a=!1,readonly:s=!1,required:c=!1,as:u="fieldset",children:d,...p},m)=>{f("input-group");let v=n({variant:e,size:t,status:i,width:o,trimFirstSeparator:l,disabled:a,readonly:s,required:c},M);return(0,r.jsxs)(r.Fragment,{children:[h("input-group"),(0,r.jsx)(u,{ref:m,disabled:a||void 0,...v,...p,children:d})]})});D.displayName="PiInputGroup";var $=(0,t.forwardRef)(({inputGroupWrapper:e,wrapper:t="",as:i="div",children:o,...l},a)=>{let s=n({resolved:e??t},[{prop:"resolved",attr:"pi-input-group-wrapper"}]);return(0,r.jsx)(i,{ref:a,...s,...l,children:o})});$.displayName="Wrapper",Object.assign(D,{Wrapper:$});var B=[{prop:"variant",attr:"pi-list"}],H=(0,t.forwardRef)(({variant:e="",as:t="nav",children:i,...o},l)=>{f("list");let a=n({variant:e},B);return(0,r.jsxs)(r.Fragment,{children:[h("list"),(0,r.jsx)(t,{ref:l,...a,...o,children:i})]})});H.displayName="PiList";var q=[{prop:"variant",attr:"pi-list-item"},{prop:"size",attr:"pi-size"},{prop:"styleVariant",attr:"pi-variant"},{prop:"align",attr:"pi-align"},{prop:"color",attr:"pi-color"},{prop:"stroke",attr:"pi-stroke"},{prop:"dense",attr:"pi-dense"},{prop:"divider",attr:"pi-divider"},{prop:"nonInteractive",attr:"pi-non-interactive"},{prop:"disabled",attr:"pi-disabled"}],U=(0,t.forwardRef)(({variant:e="",size:t="56",styleVariant:i="secondary",align:o="",color:l="",stroke:a=!1,dense:s=!1,divider:c=!1,nonInteractive:u=!1,disabled:d=!1,as:p="a",children:m,...v},g)=>{f("list-item");let b=n({variant:e,size:t,styleVariant:i,align:o,color:l,stroke:a,dense:s,divider:c,nonInteractive:u,disabled:d},q);return(0,r.jsxs)(r.Fragment,{children:[h("list-item"),(0,r.jsx)(p,{ref:g,disabled:d||void 0,...b,...v,children:m})]})});U.displayName="PiListItem";var W=(0,t.forwardRef)(({listItemDescription:e,description:t="",as:i="div",children:o,...l},a)=>{let s=n({resolved:e??t},[{prop:"resolved",attr:"pi-list-item-description"}]);return(0,r.jsx)(i,{ref:a,...s,...l,children:o})});W.displayName="Description";var V=(0,t.forwardRef)(({listItemTitle:e,title:t="",as:i="div",children:o,...l},a)=>{let s=n({resolved:e??t},[{prop:"resolved",attr:"pi-list-item-title"}]);return(0,r.jsx)(i,{ref:a,...s,...l,children:o})});V.displayName="Title";var Y=Object.assign(U,{Description:W,Title:V}),G=[{attr:"pi-radio",value:!0},{prop:"invalid",attr:"pi-invalid"}];(0,t.forwardRef)(({variant:e=!1,invalid:t,as:i="input",children:o,...l},a)=>{f("radio");let s=n({variant:e,invalid:t},G);return(0,r.jsxs)(r.Fragment,{children:[h("radio"),(0,r.jsx)(i,{ref:a,...s,...l,children:o})]})}).displayName="PiRadio";var K=[{prop:"value",attr:"pi-rating"},{prop:"size",attr:"pi-size"},{prop:"color",attr:"pi-color"},{prop:"variant",attr:"pi-variant"}],X=(0,t.forwardRef)(({value:e="0",size:t="medium",color:i="warning",variant:o="star",as:l="div",children:a,...s},c)=>{f("rating");let u=n({value:e,size:t,color:i,variant:o},K);return(0,r.jsxs)(r.Fragment,{children:[h("rating"),(0,r.jsx)(l,{ref:c,...u,...s,children:a})]})});X.displayName="PiRating";var Z=[{attr:"pi-scrollbar",value:""}];(0,t.forwardRef)(({variant:e="",as:t="div",children:i,...o},l)=>{f("scrollbar");let a=n({variant:e},Z);return(0,r.jsxs)(r.Fragment,{children:[h("scrollbar"),(0,r.jsx)(t,{ref:l,...a,...o,children:i})]})}).displayName="PiScrollbar";var J=[{prop:"variant",attr:"pi-segmented-control"}];(0,t.forwardRef)(({variant:e="dense",as:t="div",children:i,...o},l)=>{f("segmented-control");let a=n({variant:e},J);return(0,r.jsxs)(r.Fragment,{children:[h("segmented-control"),(0,r.jsx)(t,{ref:l,...a,...o,children:i})]})}).displayName="PiSegmentedControl";var Q=[{attr:"pi-skeleton",value:""},{prop:"styleVariant",attr:"pi-variant"},{prop:"transparent",attr:"pi-transparent"}];(0,t.forwardRef)(({variant:e="",styleVariant:t="text",transparent:i=!1,as:o="div",children:l,...a},s)=>{f("skeleton");let c=n({variant:e,styleVariant:t,transparent:i},Q);return(0,r.jsxs)(r.Fragment,{children:[h("skeleton"),(0,r.jsx)(o,{ref:s,...c,...a,children:l})]})}).displayName="PiSkeleton";var ee=new Set,et=[{prop:"variant",attr:"pi-step"},{prop:"state",attr:"pi-state"},{prop:"align",attr:"pi-align"},{prop:"size",attr:"pi-size"},{prop:"icon",attr:"pi-icon"},{prop:"disabled",attr:"pi-disabled"}],ei=(0,t.forwardRef)(({variant:e=!0,state:t="default",align:i="left",size:o="default",icon:l,disabled:a=!1,as:s="div",children:c,...u},d)=>{f("step"),"string"!=typeof e||""===e||ee.has(e)||(console.warn("[PiStep] Passing a string to variant is deprecated and will be removed in a future major version. Use a boolean instead, or omit the prop â pi-step is applied regardless of the value."),ee.add(e));let p=n({variant:e,state:t,align:i,size:o,icon:l,disabled:a},et);return(0,r.jsxs)(r.Fragment,{children:[h("step"),(0,r.jsx)(s,{ref:d,disabled:a||void 0,...p,...u,children:c})]})});ei.displayName="PiStep";var er=(0,t.forwardRef)(({stepIcon:e,icon:t,as:i=g,children:n,...o},l)=>(0,r.jsx)(i,{ref:l,"pi-step-icon":"",name:e??t,...o,children:n}));er.displayName="Icon";var en=(0,t.forwardRef)(({stepLabel:e,label:t="",as:i="div",children:o,...l},a)=>{let s=n({resolved:e??t},[{prop:"resolved",attr:"pi-step-label"}]);return(0,r.jsx)(i,{ref:a,...s,...l,children:o})});en.displayName="Label";var eo=(0,t.forwardRef)(({stepSublabel:e,sublabel:t="",as:i="div",children:o,...l},a)=>{let s=n({resolved:e??t},[{prop:"resolved",attr:"pi-step-sublabel"}]);return(0,r.jsx)(i,{ref:a,...s,...l,children:o})});eo.displayName="Sublabel",Object.assign(ei,{Icon:er,Label:en,Sublabel:eo});var el=[{prop:"variant",attr:"pi-step-divider"},{prop:"state",attr:"pi-state"}];(0,t.forwardRef)(({variant:e="",state:t,as:i="div",children:o,...l},a)=>{f("step-divider");let s=n({variant:e,state:t},el);return(0,r.jsxs)(r.Fragment,{children:[h("step-divider"),(0,r.jsx)(i,{ref:a,...s,...l,children:o})]})}).displayName="PiStepDivider";var ea=[{prop:"variant",attr:"pi-step-row"}];(0,t.forwardRef)(({variant:e="",as:t="div",children:i,...o},l)=>{f("step-row");let a=n({variant:e},ea);return(0,r.jsxs)(r.Fragment,{children:[h("step-row"),(0,r.jsx)(t,{ref:l,...a,...o,children:i})]})}).displayName="PiStepRow";var es=[{attr:"pi-stepper",value:!0},{prop:"disabled",attr:"pi-disabled"},{prop:"invalid",attr:"pi-invalid"},{prop:"type",attr:"pi-type"}];(0,t.forwardRef)(({variant:e,disabled:t=!1,invalid:i=!1,type:o="counter",as:l="div",children:a,...s},c)=>{f("stepper");
1let u=n({variant:e,disabled:t,invalid:i,type:o},es);return(0,r.jsxs)(r.Fragment,{children:[h("stepper"),(0,r.jsx)(l,{ref:c,disabled:t||void 0,...u,...s,children:a})]})}).displayName="PiStepper";var ec=[{attr:"pi-switch",value:!0},{prop:"size",attr:"pi-size"}];(0,t.forwardRef)(({variant:e=!1,size:t="medium",as:i="input",children:o,...l},a)=>{f("switch");let s=n({variant:e,size:t},ec);return(0,r.jsxs)(r.Fragment,{children:[h("switch"),(0,r.jsx)(i,{ref:a,...s,...l,children:o})]})}).displayName="PiSwitch";var eu=[{prop:"variant",attr:"pi-tab"},{prop:"color",attr:"pi-color"},{prop:"align",attr:"pi-align"},{prop:"indicator",attr:"pi-indicator"},{prop:"active",attr:"pi-active"}],ed=(0,t.forwardRef)(({variant:e="primary",color:t="accent-1",align:i="horizontal",indicator:o,active:l=!1,as:a="button",children:s,...c},u)=>{f("tab");let d=n({variant:e,color:t,align:i,indicator:o,active:l},eu);return(0,r.jsxs)(r.Fragment,{children:[h("tab"),(0,r.jsx)(a,{ref:u,type:"button"===a?"button":void 0,...d,...c,children:s})]})});ed.displayName="PiTab";var ep=(0,t.forwardRef)(({tabsRow:e="",as:t="div",children:i,...o},l)=>{let a=n({resolved:e},[{prop:"resolved",attr:"pi-tabs-row"}]);return(0,r.jsx)(t,{ref:l,...a,...o,children:i})});ep.displayName="TabsRow";var ef=Object.assign(ed,{TabsRow:ep});e.s(["PiBadge",0,A,"PiButton",0,T,"PiCheckbox",0,P,"PiChip",0,_,"PiHelper",0,O,"PiIcon",0,g,"PiList",0,H,"PiListItem",0,Y,"PiRating",0,X,"PiTab",0,ef])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.