@tmsoft/webphone 5.0.8 → 5.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/assets/sipSharedWorker-Bk0APY9t.js +3 -0
- package/dist/assets/sipSharedWorker-HqRmUaB2.js +3 -0
- package/dist/webphone.component.js +33 -33
- package/dist/webphone.es.js +423 -199
- package/dist/webphone.umd.js +18 -18
- package/package.json +1 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(`@import "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Monda:wght@400..700&display=swap&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap&family=Quicksand:wght@300..700&display=swap";@import "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Monda:wght@400..700&display=swap&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap&family=Quicksand:wght@300..700&display=swap";@layer components;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}[data-v-1feccefe],[data-v-1feccefe]:before,[data-v-1feccefe]:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}[data-v-1feccefe]::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--wp-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--wp-color-red-500:#fb2c36;--wp-color-amber-100:#fef3c6;--wp-color-amber-400:#fcbb00;--wp-color-amber-500:#f99c00;--wp-color-amber-600:#dd7400;--wp-color-amber-900:#7b3306;--wp-color-green-500:#00c758;--wp-color-emerald-100:#d0fae5;--wp-color-emerald-400:#00d294;--wp-color-emerald-600:#009767;--wp-color-emerald-900:#004e3b;--wp-color-blue-100:#dbeafe;--wp-color-blue-400:#54a2ff;--wp-color-blue-500:#3080ff;--wp-color-blue-600:#155dfc;--wp-color-blue-900:#1c398e;--wp-color-purple-100:#f3e8ff;--wp-color-purple-400:#c07eff;--wp-color-purple-600:#9810fa;--wp-color-purple-900:#59168b;--wp-color-neutral-100:#f5f5f5;--wp-color-neutral-200:#e5e5e5;--wp-color-neutral-400:#a1a1a1;--wp-color-neutral-500:#737373;--wp-color-neutral-600:#525252;--wp-color-neutral-700:#404040;--wp-color-neutral-800:#262626;--wp-color-neutral-900:#171717;--wp-color-black:#000;--wp-color-white:#fff;--wp-spacing:.25rem;--wp-breakpoint-2xl:96rem;--wp-container-sm:24rem;--wp-container-md:28rem;--wp-container-lg:32rem;--wp-text-xs:.75rem;--wp-text-xs--line-height:calc(1 / .75);--wp-text-sm:.875rem;--wp-text-sm--line-height:calc(1.25 / .875);--wp-text-base:1rem;--wp-text-base--line-height:calc(1.5 / 1);--wp-text-lg:1.125rem;--wp-text-lg--line-height:calc(1.75 / 1.125);--wp-text-3xl:1.875rem;--wp-text-3xl--line-height:calc(2.25 / 1.875);--wp-font-weight-light:300;--wp-font-weight-medium:500;--wp-font-weight-semibold:600;--wp-font-weight-bold:700;--wp-tracking-wider:.05em;--wp-tracking-widest:.1em;--wp-radius-xs:.125rem;--wp-radius-2xl:1rem;--wp-ease-in-out:cubic-bezier(.4, 0, .2, 1);--wp-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--wp-aspect-video:16 / 9;--wp-default-transition-duration:.15s;--wp-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--wp-default-font-family:"Montserrat", sans-serif;--wp-default-mono-font-family:var(--wp-font-mono)}@supports (color:color(display-p3 0 0 0)){:root,:host{--wp-color-red-500:color(display-p3 .903738 .262579 .253307);--wp-color-amber-100:color(display-p3 .989391 .954583 .796328);--wp-color-amber-400:color(display-p3 .959186 .738519 .118268);--wp-color-amber-500:color(display-p3 .93994 .620584 .0585367);--wp-color-amber-600:color(display-p3 .827144 .467166 .0336006);--wp-color-amber-900:color(display-p3 .445958 .216422 .0823321);--wp-color-green-500:color(display-p3 .308734 .774754 .374307);--wp-color-emerald-100:color(display-p3 .848335 .975974 .901691);--wp-color-emerald-400:color(display-p3 .334701 .819603 .591575);--wp-color-emerald-600:color(display-p3 .206557 .589057 .413962);--wp-color-emerald-900:color(display-p3 .117821 .302975 .234501);--wp-color-blue-100:color(display-p3 .869214 .915931 .989622);--wp-color-blue-400:color(display-p3 .397443 .62813 .992116);--wp-color-blue-500:color(display-p3 .266422 .491219 .988624);--wp-color-blue-600:color(display-p3 .174493 .358974 .950247);--wp-color-blue-900:color(display-p3 .136395 .219428 .537145);--wp-color-purple-100:color(display-p3 .945034 .910569 .992972);--wp-color-purple-400:color(display-p3 .719919 .492497 .995173);--wp-color-purple-600:color(display-p3 .546729 .130167 .94439);--wp-color-purple-900:color(display-p3 .321698 .107597 .524563);--wp-color-neutral-100:color(display-p3 .960587 .960587 .960587);--wp-color-neutral-200:color(display-p3 .898161 .898161 .898161);--wp-color-neutral-400:color(display-p3 .630163 .630163 .630163);--wp-color-neutral-500:color(display-p3 .451519 .451519 .451519);--wp-color-neutral-600:color(display-p3 .321993 .321993 .321993);--wp-color-neutral-700:color(display-p3 .250471 .250471 .250471);--wp-color-neutral-800:color(display-p3 .149382 .149382 .149382);--wp-color-neutral-900:color(display-p3 .0905274 .0905274 .0905274)}}@supports (color:lab(0% 0 0)){:root,:host{--wp-color-red-500:lab(55.4814% 75.0732 48.8528);--wp-color-amber-100:lab(95.916% -1.21653 23.111);--wp-color-amber-400:lab(80.1641% 16.6016 99.2089);--wp-color-amber-500:lab(72.7183% 31.8672 97.9407);--wp-color-amber-600:lab(60.3514% 40.5624 87.1228);--wp-color-amber-900:lab(31.2288% 30.2627 40.0378);--wp-color-green-500:lab(70.5521% -66.5147 45.8073);--wp-color-emerald-100:lab(94.9004% -17.0769 5.63836);--wp-color-emerald-400:lab(75.0771% -60.7313 19.4147);--wp-color-emerald-600:lab(55.0481% -49.9246 15.93);--wp-color-emerald-900:lab(28.8637% -26.9249 5.45986);--wp-color-blue-100:lab(92.0301% -2.24757 -11.6453);--wp-color-blue-400:lab(65.0361% -1.42065 -56.9802);--wp-color-blue-500:lab(54.1736% 13.3369 -74.6839);--wp-color-blue-600:lab(44.0605% 29.0279 -86.0352);--wp-color-blue-900:lab(26.1542% 15.7545 -51.5504);--wp-color-purple-100:lab(93.3333% 6.97437 -9.83434);--wp-color-purple-400:lab(63.6946% 47.6127 -59.2066);--wp-color-purple-600:lab(43.0295% 75.21 -86.5669);--wp-color-purple-900:lab(24.9401% 45.2703 -51.2728);--wp-color-neutral-100:lab(96.52% -.0000298023 .0000119209);--wp-color-neutral-200:lab(90.952% 0 -.0000119209);--wp-color-neutral-400:lab(66.128% -.0000298023 .0000119209);--wp-color-neutral-500:lab(48.496% 0 0);--wp-color-neutral-600:lab(34.924% 0 0);--wp-color-neutral-700:lab(27.036% 0 0);--wp-color-neutral-800:lab(15.204% 0 -.00000596046);--wp-color-neutral-900:lab(7.78201% -.0000149012 0)}}[data-v-1feccefe]:root,[data-v-1feccefe]:host{--wp-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--wp-color-red-500:#fb2c36;--wp-color-amber-100:#fef3c6;--wp-color-amber-400:#fcbb00;--wp-color-amber-500:#f99c00;--wp-color-amber-600:#dd7400;--wp-color-amber-900:#7b3306;--wp-color-green-500:#00c758;--wp-color-emerald-100:#d0fae5;--wp-color-emerald-400:#00d294;--wp-color-emerald-600:#009767;--wp-color-emerald-900:#004e3b;--wp-color-blue-100:#dbeafe;--wp-color-blue-400:#54a2ff;--wp-color-blue-500:#3080ff;--wp-color-blue-600:#155dfc;--wp-color-blue-900:#1c398e;--wp-color-purple-100:#f3e8ff;--wp-color-purple-400:#c07eff;--wp-color-purple-600:#9810fa;--wp-color-purple-900:#59168b;--wp-color-neutral-100:#f5f5f5;--wp-color-neutral-200:#e5e5e5;--wp-color-neutral-400:#a1a1a1;--wp-color-neutral-500:#737373;--wp-color-neutral-600:#525252;--wp-color-neutral-700:#404040;--wp-color-neutral-800:#262626;--wp-color-neutral-900:#171717;--wp-color-black:#000;--wp-color-white:#fff;--wp-spacing:.25rem;--wp-breakpoint-2xl:96rem;--wp-container-sm:24rem;--wp-container-md:28rem;--wp-container-lg:32rem;--wp-text-xs:.75rem;--wp-text-xs--line-height:calc(1 / .75);--wp-text-sm:.875rem;--wp-text-sm--line-height:calc(1.25 / .875);--wp-text-base:1rem;--wp-text-base--line-height:calc(1.5 / 1);--wp-text-lg:1.125rem;--wp-text-lg--line-height:calc(1.75 / 1.125);--wp-text-3xl:1.875rem;--wp-text-3xl--line-height:calc(2.25 / 1.875);--wp-font-weight-light:300;--wp-font-weight-medium:500;--wp-font-weight-semibold:600;--wp-font-weight-bold:700;--wp-tracking-wider:.05em;--wp-tracking-widest:.1em;--wp-radius-xs:.125rem;--wp-radius-2xl:1rem;--wp-ease-in-out:cubic-bezier(.4, 0, .2, 1);--wp-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--wp-aspect-video:16 / 9;--wp-default-transition-duration:.15s;--wp-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--wp-default-font-family:"Montserrat", sans-serif;--wp-default-mono-font-family:var(--wp-font-mono)}@supports (color:color(display-p3 0 0 0)){[data-v-1feccefe]:root,[data-v-1feccefe]:host{--wp-color-red-500:color(display-p3 .903738 .262579 .253307);--wp-color-amber-100:color(display-p3 .989391 .954583 .796328);--wp-color-amber-400:color(display-p3 .959186 .738519 .118268);--wp-color-amber-500:color(display-p3 .93994 .620584 .0585367);--wp-color-amber-600:color(display-p3 .827144 .467166 .0336006);--wp-color-amber-900:color(display-p3 .445958 .216422 .0823321);--wp-color-green-500:color(display-p3 .308734 .774754 .374307);--wp-color-emerald-100:color(display-p3 .848335 .975974 .901691);--wp-color-emerald-400:color(display-p3 .334701 .819603 .591575);--wp-color-emerald-600:color(display-p3 .206557 .589057 .413962);--wp-color-emerald-900:color(display-p3 .117821 .302975 .234501);--wp-color-blue-100:color(display-p3 .869214 .915931 .989622);--wp-color-blue-400:color(display-p3 .397443 .62813 .992116);--wp-color-blue-500:color(display-p3 .266422 .491219 .988624);--wp-color-blue-600:color(display-p3 .174493 .358974 .950247);--wp-color-blue-900:color(display-p3 .136395 .219428 .537145);--wp-color-purple-100:color(display-p3 .945034 .910569 .992972);--wp-color-purple-400:color(display-p3 .719919 .492497 .995173);--wp-color-purple-600:color(display-p3 .546729 .130167 .94439);--wp-color-purple-900:color(display-p3 .321698 .107597 .524563);--wp-color-neutral-100:color(display-p3 .960587 .960587 .960587);--wp-color-neutral-200:color(display-p3 .898161 .898161 .898161);--wp-color-neutral-400:color(display-p3 .630163 .630163 .630163);--wp-color-neutral-500:color(display-p3 .451519 .451519 .451519);--wp-color-neutral-600:color(display-p3 .321993 .321993 .321993);--wp-color-neutral-700:color(display-p3 .250471 .250471 .250471);--wp-color-neutral-800:color(display-p3 .149382 .149382 .149382);--wp-color-neutral-900:color(display-p3 .0905274 .0905274 .0905274)}}@supports (color:lab(0% 0 0)){[data-v-1feccefe]:root,[data-v-1feccefe]:host{--wp-color-red-500:lab(55.4814% 75.0732 48.8528);--wp-color-amber-100:lab(95.916% -1.21653 23.111);--wp-color-amber-400:lab(80.1641% 16.6016 99.2089);--wp-color-amber-500:lab(72.7183% 31.8672 97.9407);--wp-color-amber-600:lab(60.3514% 40.5624 87.1228);--wp-color-amber-900:lab(31.2288% 30.2627 40.0378);--wp-color-green-500:lab(70.5521% -66.5147 45.8073);--wp-color-emerald-100:lab(94.9004% -17.0769 5.63836);--wp-color-emerald-400:lab(75.0771% -60.7313 19.4147);--wp-color-emerald-600:lab(55.0481% -49.9246 15.93);--wp-color-emerald-900:lab(28.8637% -26.9249 5.45986);--wp-color-blue-100:lab(92.0301% -2.24757 -11.6453);--wp-color-blue-400:lab(65.0361% -1.42065 -56.9802);--wp-color-blue-500:lab(54.1736% 13.3369 -74.6839);--wp-color-blue-600:lab(44.0605% 29.0279 -86.0352);--wp-color-blue-900:lab(26.1542% 15.7545 -51.5504);--wp-color-purple-100:lab(93.3333% 6.97437 -9.83434);--wp-color-purple-400:lab(63.6946% 47.6127 -59.2066);--wp-color-purple-600:lab(43.0295% 75.21 -86.5669);--wp-color-purple-900:lab(24.9401% 45.2703 -51.2728);--wp-color-neutral-100:lab(96.52% -.0000298023 .0000119209);--wp-color-neutral-200:lab(90.952% 0 -.0000119209);--wp-color-neutral-400:lab(66.128% -.0000298023 .0000119209);--wp-color-neutral-500:lab(48.496% 0 0);--wp-color-neutral-600:lab(34.924% 0 0);--wp-color-neutral-700:lab(27.036% 0 0);--wp-color-neutral-800:lab(15.204% 0 -.00000596046);--wp-color-neutral-900:lab(7.78201% -.0000149012 0)}}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--wp-default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--wp-default-font-feature-settings,normal);font-variation-settings:var(--wp-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--wp-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--wp-default-mono-font-feature-settings,normal);font-variation-settings:var(--wp-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::-webkit-file-upload-button{margin-inline-end:4px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground)}[data-v-1feccefe],[data-v-1feccefe]:after,[data-v-1feccefe]:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-1feccefe]::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-1feccefe]::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-1feccefe]::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html[data-v-1feccefe],[data-v-1feccefe]:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--wp-default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--wp-default-font-feature-settings,normal);font-variation-settings:var(--wp-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr[data-v-1feccefe]{height:0;color:inherit;border-top-width:1px}abbr[data-v-1feccefe]:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1[data-v-1feccefe],h2[data-v-1feccefe],h3[data-v-1feccefe],h4[data-v-1feccefe],h5[data-v-1feccefe],h6[data-v-1feccefe]{font-size:inherit;font-weight:inherit}a[data-v-1feccefe]{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b[data-v-1feccefe],strong[data-v-1feccefe]{font-weight:bolder}code[data-v-1feccefe],kbd[data-v-1feccefe],samp[data-v-1feccefe],pre[data-v-1feccefe]{font-family:var(--wp-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--wp-default-mono-font-feature-settings,normal);font-variation-settings:var(--wp-default-mono-font-variation-settings,normal);font-size:1em}small[data-v-1feccefe]{font-size:80%}sub[data-v-1feccefe],sup[data-v-1feccefe]{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub[data-v-1feccefe]{bottom:-.25em}sup[data-v-1feccefe]{top:-.5em}table[data-v-1feccefe]{text-indent:0;border-color:inherit;border-collapse:collapse}[data-v-1feccefe]:-moz-focusring{outline:auto}progress[data-v-1feccefe]{vertical-align:baseline}summary[data-v-1feccefe]{display:list-item}ol[data-v-1feccefe],ul[data-v-1feccefe],menu[data-v-1feccefe]{list-style:none}img[data-v-1feccefe],svg[data-v-1feccefe],video[data-v-1feccefe],canvas[data-v-1feccefe],audio[data-v-1feccefe],iframe[data-v-1feccefe],embed[data-v-1feccefe],object[data-v-1feccefe]{vertical-align:middle;display:block}img[data-v-1feccefe],video[data-v-1feccefe]{max-width:100%;height:auto}button[data-v-1feccefe],input[data-v-1feccefe],select[data-v-1feccefe],optgroup[data-v-1feccefe],textarea[data-v-1feccefe]{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}[data-v-1feccefe]::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}[data-v-1feccefe]::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup[data-v-1feccefe]{font-weight:bolder}:where(select:is([multiple],[size])) optgroup[data-v-1feccefe]{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option[data-v-1feccefe]{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option[data-v-1feccefe]{padding-inline-start:20px}[data-v-1feccefe]::-webkit-file-upload-button{margin-inline-end:4px}[data-v-1feccefe]::file-selector-button{margin-inline-end:4px}[data-v-1feccefe]::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){[data-v-1feccefe]::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){[data-v-1feccefe]::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea[data-v-1feccefe]{resize:vertical}[data-v-1feccefe]::-webkit-search-decoration{-webkit-appearance:none}[data-v-1feccefe]::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}[data-v-1feccefe]::-webkit-datetime-edit{display:inline-flex}[data-v-1feccefe]::-webkit-datetime-edit-fields-wrapper{padding:0}[data-v-1feccefe]::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-calendar-picker-indicator{line-height:1}[data-v-1feccefe]:-moz-ui-invalid{box-shadow:none}button[data-v-1feccefe]{-webkit-appearance:button;appearance:button}input[data-v-1feccefe]:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}[data-v-1feccefe]::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}[data-v-1feccefe]::file-selector-button{-webkit-appearance:button;appearance:button}[data-v-1feccefe]::-webkit-inner-spin-button{height:auto}[data-v-1feccefe]::-webkit-outer-spin-button{height:auto}[hidden][data-v-1feccefe]:where(:not([hidden=until-found])){display:none!important}[data-v-1feccefe]{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){[data-v-1feccefe]{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body[data-v-1feccefe]{background-color:var(--background);color:var(--foreground)}}@layer utilities{.wp\\:\\@container\\/card-header{container:card-header/inline-size}.wp\\:pointer-events-none{pointer-events:none}.wp\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wp\\:absolute{position:absolute}.wp\\:fixed{position:fixed}.wp\\:relative{position:relative}.wp\\:sticky{position:sticky}.wp\\:inset-0{inset:calc(var(--wp-spacing) * 0)}.wp\\:inset-x-0{inset-inline:calc(var(--wp-spacing) * 0)}.wp\\:top-0{top:calc(var(--wp-spacing) * 0)}.wp\\:top-1\\/2{top:50%}.wp\\:top-2\\.5{top:calc(var(--wp-spacing) * 2.5)}.wp\\:top-4{top:calc(var(--wp-spacing) * 4)}.wp\\:top-\\[50\\%\\]{top:50%}.wp\\:top-full{top:100%}.wp\\:right-0{right:calc(var(--wp-spacing) * 0)}.wp\\:right-1{right:calc(var(--wp-spacing) * 1)}.wp\\:right-2{right:calc(var(--wp-spacing) * 2)}.wp\\:right-4{right:calc(var(--wp-spacing) * 4)}.wp\\:bottom-2{bottom:calc(var(--wp-spacing) * 2)}.wp\\:bottom-full{bottom:100%}.wp\\:left-0{left:calc(var(--wp-spacing) * 0)}.wp\\:left-0\\.5{left:calc(var(--wp-spacing) * .5)}.wp\\:left-2{left:calc(var(--wp-spacing) * 2)}.wp\\:left-\\[50\\%\\]{left:50%}.wp\\:z-10{z-index:10}.wp\\:z-40{z-index:40}.wp\\:z-50{z-index:50}.wp\\:order-first{order:-9999}.wp\\:col-start-2{grid-column-start:2}.wp\\:row-span-2{grid-row:span 2/span 2}.wp\\:row-start-1{grid-row-start:1}.wp\\:container{width:100%}@media (min-width:40rem){.wp\\:container{max-width:40rem}}@media (min-width:48rem){.wp\\:container{max-width:48rem}}@media (min-width:64rem){.wp\\:container{max-width:64rem}}@media (min-width:80rem){.wp\\:container{max-width:80rem}}@media (min-width:96rem){.wp\\:container{max-width:96rem}}.wp\\:-mx-1{margin-inline:calc(var(--wp-spacing) * -1)}.wp\\:mx-2{margin-inline:calc(var(--wp-spacing) * 2)}.wp\\:mx-auto{margin-inline-start:auto;margin-inline-end:auto}.wp\\:my-1{margin-block:calc(var(--wp-spacing) * 1)}.wp\\:my-2{margin-block:calc(var(--wp-spacing) * 2)}.wp\\:my-8{margin-block:calc(var(--wp-spacing) * 8)}.wp\\:mt-1{margin-top:calc(var(--wp-spacing) * 1)}.wp\\:mr-4{margin-right:calc(var(--wp-spacing) * 4)}.wp\\:mr-auto{margin-right:auto}.wp\\:mb-1{margin-bottom:calc(var(--wp-spacing) * 1)}.wp\\:mb-2{margin-bottom:calc(var(--wp-spacing) * 2)}.wp\\:mb-4{margin-bottom:calc(var(--wp-spacing) * 4)}.wp\\:mb-5{margin-bottom:calc(var(--wp-spacing) * 5)}.wp\\:ml-auto{margin-left:auto}.wp\\:block{display:block}.wp\\:flex{display:flex}.wp\\:grid{display:grid}.wp\\:hidden{display:none}.wp\\:inline-flex{display:inline-flex}.wp\\:aspect-square{aspect-ratio:1}.wp\\:aspect-video{aspect-ratio:var(--wp-aspect-video)}.wp\\:size-2{width:calc(var(--wp-spacing) * 2);height:calc(var(--wp-spacing) * 2)}.wp\\:size-2\\.5{width:calc(var(--wp-spacing) * 2.5);height:calc(var(--wp-spacing) * 2.5)}.wp\\:size-3{width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:size-3\\.5{width:calc(var(--wp-spacing) * 3.5);height:calc(var(--wp-spacing) * 3.5)}.wp\\:size-4{width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:size-5{width:calc(var(--wp-spacing) * 5);height:calc(var(--wp-spacing) * 5)}.wp\\:size-6{width:calc(var(--wp-spacing) * 6);height:calc(var(--wp-spacing) * 6)}.wp\\:size-7{width:calc(var(--wp-spacing) * 7);height:calc(var(--wp-spacing) * 7)}.wp\\:size-8{width:calc(var(--wp-spacing) * 8);height:calc(var(--wp-spacing) * 8)}.wp\\:size-9{width:calc(var(--wp-spacing) * 9);height:calc(var(--wp-spacing) * 9)}.wp\\:size-10{width:calc(var(--wp-spacing) * 10);height:calc(var(--wp-spacing) * 10)}.wp\\:size-12{width:calc(var(--wp-spacing) * 12);height:calc(var(--wp-spacing) * 12)}.wp\\:size-full{width:100%;height:100%}.wp\\:h-2\\.5{height:calc(var(--wp-spacing) * 2.5)}.wp\\:h-3{height:calc(var(--wp-spacing) * 3)}.wp\\:h-4{height:calc(var(--wp-spacing) * 4)}.wp\\:h-5{height:calc(var(--wp-spacing) * 5)}.wp\\:h-6{height:calc(var(--wp-spacing) * 6)}.wp\\:h-7{height:calc(var(--wp-spacing) * 7)}.wp\\:h-8{height:calc(var(--wp-spacing) * 8)}.wp\\:h-9{height:calc(var(--wp-spacing) * 9)}.wp\\:h-10{height:calc(var(--wp-spacing) * 10)}.wp\\:h-12{height:calc(var(--wp-spacing) * 12)}.wp\\:h-14{height:calc(var(--wp-spacing) * 14)}.wp\\:h-16{height:calc(var(--wp-spacing) * 16)}.wp\\:h-64{height:calc(var(--wp-spacing) * 64)}.wp\\:h-80{height:calc(var(--wp-spacing) * 80)}.wp\\:h-\\[15px\\]{height:15px}.wp\\:h-\\[16px\\]{height:16px}.wp\\:h-\\[60vh\\]{height:60vh}.wp\\:h-\\[var\\(--reka-select-trigger-height\\)\\]{height:var(--reka-select-trigger-height)}.wp\\:h-full{height:100%}.wp\\:h-px{height:1px}.wp\\:max-h-\\(--reka-dropdown-menu-content-available-height\\){max-height:var(--reka-dropdown-menu-content-available-height)}.wp\\:max-h-\\(--reka-select-content-available-height\\){max-height:var(--reka-select-content-available-height)}.wp\\:max-h-0{max-height:calc(var(--wp-spacing) * 0)}.wp\\:max-h-40{max-height:calc(var(--wp-spacing) * 40)}.wp\\:max-h-60{max-height:calc(var(--wp-spacing) * 60)}.wp\\:max-h-\\[300px\\]{max-height:300px}.wp\\:min-h-10{min-height:calc(var(--wp-spacing) * 10)}.wp\\:min-h-\\[calc\\(100vh-3\\.5rem\\)\\]{min-height:calc(100vh - 3.5rem)}.wp\\:min-h-screen{min-height:100vh}.wp\\:\\!w-full{width:100%!important}.wp\\:w-2\\.5{width:calc(var(--wp-spacing) * 2.5)}.wp\\:w-3{width:calc(var(--wp-spacing) * 3)}.wp\\:w-4{width:calc(var(--wp-spacing) * 4)}.wp\\:w-5{width:calc(var(--wp-spacing) * 5)}.wp\\:w-6{width:calc(var(--wp-spacing) * 6)}.wp\\:w-8{width:calc(var(--wp-spacing) * 8)}.wp\\:w-9{width:calc(var(--wp-spacing) * 9)}.wp\\:w-12{width:calc(var(--wp-spacing) * 12)}.wp\\:w-16{width:calc(var(--wp-spacing) * 16)}.wp\\:w-24{width:calc(var(--wp-spacing) * 24)}.wp\\:w-48{width:calc(var(--wp-spacing) * 48)}.wp\\:w-72{width:calc(var(--wp-spacing) * 72)}.wp\\:w-\\[15px\\]{width:15px}.wp\\:w-\\[16px\\]{width:16px}.wp\\:w-\\[min\\(92vw\\,330px\\)\\]{width:min(92vw,330px)}.wp\\:w-auto{width:auto}.wp\\:w-fit{width:-moz-fit-content;width:fit-content}.wp\\:w-full{width:100%}.wp\\:max-w-80{max-width:calc(var(--wp-spacing) * 80)}.wp\\:max-w-\\[330px\\]{max-width:330px}.wp\\:max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.wp\\:max-w-lg{max-width:var(--wp-container-lg)}.wp\\:max-w-md{max-width:var(--wp-container-md)}.wp\\:max-w-screen-2xl{max-width:var(--wp-breakpoint-2xl)}.wp\\:min-w-0{min-width:calc(var(--wp-spacing) * 0)}.wp\\:min-w-5{min-width:calc(var(--wp-spacing) * 5)}.wp\\:min-w-8{min-width:calc(var(--wp-spacing) * 8)}.wp\\:min-w-9{min-width:calc(var(--wp-spacing) * 9)}.wp\\:min-w-10{min-width:calc(var(--wp-spacing) * 10)}.wp\\:min-w-\\[8rem\\]{min-width:8rem}.wp\\:min-w-\\[var\\(--reka-select-trigger-width\\)\\]{min-width:var(--reka-select-trigger-width)}.wp\\:flex-1{flex:1}.wp\\:shrink-0{flex-shrink:0}.wp\\:grow{flex-grow:1}.wp\\:origin-\\(--reka-dropdown-menu-content-transform-origin\\){transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.wp\\:origin-\\(--reka-popover-content-transform-origin\\){transform-origin:var(--reka-popover-content-transform-origin)}.wp\\:translate-x-0{--tw-translate-x:calc(var(--wp-spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-x-5{--tw-translate-x:calc(var(--wp-spacing) * 5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-0\\.5{--tw-translate-y:calc(var(--wp-spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:rotate-45{rotate:45deg}.wp\\:animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:animate-pulse{animation:var(--wp-animate-pulse)}.wp\\:cursor-default{cursor:default}.wp\\:cursor-move{cursor:move}.wp\\:cursor-pointer{cursor:pointer}.wp\\:touch-none{touch-action:none}.wp\\:scroll-my-1{scroll-margin-block:calc(var(--wp-spacing) * 1)}.wp\\:scroll-py-1{scroll-padding-block:calc(var(--wp-spacing) * 1)}.wp\\:auto-rows-min{grid-auto-rows:min-content}.wp\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.wp\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.wp\\:grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}.wp\\:flex-col{flex-direction:column}.wp\\:flex-col-reverse{flex-direction:column-reverse}.wp\\:place-items-center{place-items:center}.wp\\:items-center{align-items:center}.wp\\:items-end{align-items:flex-end}.wp\\:items-start{align-items:flex-start}.wp\\:justify-between{justify-content:space-between}.wp\\:justify-center{justify-content:center}.wp\\:justify-start{justify-content:flex-start}.wp\\:gap-0{gap:calc(var(--wp-spacing) * 0)}.wp\\:gap-1{gap:calc(var(--wp-spacing) * 1)}.wp\\:gap-1\\.5{gap:calc(var(--wp-spacing) * 1.5)}.wp\\:gap-2{gap:calc(var(--wp-spacing) * 2)}.wp\\:gap-3{gap:calc(var(--wp-spacing) * 3)}.wp\\:gap-4{gap:calc(var(--wp-spacing) * 4)}.wp\\:gap-6{gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-\\[--spacing\\(var\\(--gap\\)\\)\\]{gap:calc(var(--wp-spacing) * var(--gap))}:where(.wp\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.wp\\:gap-x-6{column-gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-y-3{row-gap:calc(var(--wp-spacing) * 3)}.wp\\:self-start{align-self:flex-start}.wp\\:justify-self-end{justify-self:flex-end}.wp\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wp\\:overflow-auto{overflow:auto}.wp\\:overflow-hidden{overflow:hidden}.wp\\:overflow-x-hidden{overflow-x:hidden}.wp\\:overflow-y-auto{overflow-y:auto}.wp\\:rounded{border-radius:.25rem}.wp\\:rounded-2xl{border-radius:var(--wp-radius-2xl)}.wp\\:rounded-\\[2px\\]{border-radius:2px}.wp\\:rounded-\\[inherit\\]{border-radius:inherit}.wp\\:rounded-full{border-radius:3.40282e38px}.wp\\:rounded-lg{border-radius:var(--radius)}.wp\\:rounded-md{border-radius:calc(var(--radius) - 2px)}.wp\\:rounded-sm{border-radius:calc(var(--radius) - 4px)}.wp\\:rounded-xl{border-radius:calc(var(--radius) + 4px)}.wp\\:rounded-xs{border-radius:var(--wp-radius-xs)}.wp\\:border{border-style:var(--tw-border-style);border-width:1px}.wp\\:border-0{border-style:var(--tw-border-style);border-width:0}.wp\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.wp\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.wp\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.wp\\:border-blue-500{border-color:var(--wp-color-blue-500)}.wp\\:border-border{border-color:var(--border)}.wp\\:border-destructive{border-color:var(--destructive)}.wp\\:border-input{border-color:var(--input)}.wp\\:border-primary{border-color:var(--primary)}.wp\\:border-white\\/20{border-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:border-white\\/20{border-color:color-mix(in oklab, var(--wp-color-white) 20%, transparent)}}.wp\\:border-t-transparent{border-top-color:#0000}.wp\\:border-l-transparent{border-left-color:#0000}.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12{background-color:var(--color-red)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12{background-color:color-mix(in oklab, var(--color-red) 12%, transparent)}}.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12{background-color:color-mix(in oklab, var(--p-primary-color) 12%, transparent)}}.wp\\:bg-amber-100{background-color:var(--wp-color-amber-100)}.wp\\:bg-background,.wp\\:bg-background\\/95{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-background\\/95{background-color:color-mix(in oklab, var(--background) 95%, transparent)}}.wp\\:bg-black,.wp\\:bg-black\\/80{background-color:var(--wp-color-black)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-black\\/80{background-color:color-mix(in oklab, var(--wp-color-black) 80%, transparent)}}.wp\\:bg-blue-100{background-color:var(--wp-color-blue-100)}.wp\\:bg-border{background-color:var(--border)}.wp\\:bg-card{background-color:var(--card)}.wp\\:bg-destructive{background-color:var(--destructive)}.wp\\:bg-emerald-100{background-color:var(--wp-color-emerald-100)}.wp\\:bg-foreground{background-color:var(--foreground)}.wp\\:bg-muted{background-color:var(--muted)}.wp\\:bg-neutral-100{background-color:var(--wp-color-neutral-100)}.wp\\:bg-neutral-800{background-color:var(--wp-color-neutral-800)}.wp\\:bg-popover{background-color:var(--popover)}.wp\\:bg-primary,.wp\\:bg-primary\\/10{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-primary\\/10{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.wp\\:bg-purple-100{background-color:var(--wp-color-purple-100)}.wp\\:bg-secondary{background-color:var(--secondary)}.wp\\:bg-status-available{background-color:var(--status-available)}.wp\\:bg-status-hold\\/12{background-color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-status-hold\\/12{background-color:color-mix(in oklab, var(--status-hold) 12%, transparent)}}.wp\\:bg-transparent{background-color:#0000}.wp\\:bg-white,.wp\\:bg-white\\/70{background-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-white\\/70{background-color:color-mix(in oklab, var(--wp-color-white) 70%, transparent)}}.wp\\:bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 80%, transparent)}}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:from-destructive\\/60{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-destructive\\/60{--tw-gradient-from:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:from-destructive\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-\\[color\\:var\\(--p-primary-color\\)\\]\\/100{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-destructive\\/90{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:to-destructive\\/90{--tw-gradient-to:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:to-destructive\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:fill-current{fill:currentColor}.wp\\:fill-foreground{fill:var(--foreground)}.wp\\:object-contain{object-fit:contain}.wp\\:object-cover{object-fit:cover}.wp\\:p-0{padding:calc(var(--wp-spacing) * 0)}.wp\\:p-0\\.5{padding:calc(var(--wp-spacing) * .5)}.wp\\:p-1{padding:calc(var(--wp-spacing) * 1)}.wp\\:p-2{padding:calc(var(--wp-spacing) * 2)}.wp\\:p-3{padding:calc(var(--wp-spacing) * 3)}.wp\\:p-4{padding:calc(var(--wp-spacing) * 4)}.wp\\:p-6{padding:calc(var(--wp-spacing) * 6)}.wp\\:p-px{padding:1px}.wp\\:px-1{padding-inline:calc(var(--wp-spacing) * 1)}.wp\\:px-1\\.5{padding-inline:calc(var(--wp-spacing) * 1.5)}.wp\\:px-2{padding-inline:calc(var(--wp-spacing) * 2)}.wp\\:px-2\\.5{padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:px-3{padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:px-4{padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:px-6{padding-inline:calc(var(--wp-spacing) * 6)}.wp\\:px-10{padding-inline:calc(var(--wp-spacing) * 10)}.wp\\:px-14{padding-inline:calc(var(--wp-spacing) * 14)}.wp\\:py-1{padding-block:calc(var(--wp-spacing) * 1)}.wp\\:py-1\\.5{padding-block:calc(var(--wp-spacing) * 1.5)}.wp\\:py-2{padding-block:calc(var(--wp-spacing) * 2)}.wp\\:py-3{padding-block:calc(var(--wp-spacing) * 3)}.wp\\:py-4{padding-block:calc(var(--wp-spacing) * 4)}.wp\\:py-6{padding-block:calc(var(--wp-spacing) * 6)}.wp\\:py-8{padding-block:calc(var(--wp-spacing) * 8)}.wp\\:pt-0{padding-top:calc(var(--wp-spacing) * 0)}.wp\\:pr-2{padding-right:calc(var(--wp-spacing) * 2)}.wp\\:pr-4{padding-right:calc(var(--wp-spacing) * 4)}.wp\\:pr-8{padding-right:calc(var(--wp-spacing) * 8)}.wp\\:pb-0{padding-bottom:calc(var(--wp-spacing) * 0)}.wp\\:pb-4{padding-bottom:calc(var(--wp-spacing) * 4)}.wp\\:pl-2{padding-left:calc(var(--wp-spacing) * 2)}.wp\\:pl-8{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:text-center{text-align:center}.wp\\:text-left{text-align:left}.wp\\:font-mono{font-family:var(--wp-font-mono)}.wp\\:font-sans{font-family:Montserrat,sans-serif}.wp\\:text-3xl{font-size:var(--wp-text-3xl);line-height:var(--tw-leading,var(--wp-text-3xl--line-height))}.wp\\:text-base{font-size:var(--wp-text-base);line-height:var(--tw-leading,var(--wp-text-base--line-height))}.wp\\:text-lg{font-size:var(--wp-text-lg);line-height:var(--tw-leading,var(--wp-text-lg--line-height))}.wp\\:text-sm{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:text-xs{font-size:var(--wp-text-xs);line-height:var(--tw-leading,var(--wp-text-xs--line-height))}.wp\\:text-\\[10px\\]{font-size:10px}.wp\\:text-\\[11px\\]{font-size:11px}.wp\\:leading-none{--tw-leading:1;line-height:1}.wp\\:font-bold{--tw-font-weight:var(--wp-font-weight-bold);font-weight:var(--wp-font-weight-bold)}.wp\\:font-light{--tw-font-weight:var(--wp-font-weight-light);font-weight:var(--wp-font-weight-light)}.wp\\:font-medium{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:font-semibold{--tw-font-weight:var(--wp-font-weight-semibold);font-weight:var(--wp-font-weight-semibold)}.wp\\:tracking-wider{--tw-tracking:var(--wp-tracking-wider);letter-spacing:var(--wp-tracking-wider)}.wp\\:tracking-widest{--tw-tracking:var(--wp-tracking-widest);letter-spacing:var(--wp-tracking-widest)}.wp\\:text-balance{text-wrap:balance}.wp\\:whitespace-nowrap{white-space:nowrap}.wp\\:text-\\[var\\(--color-avaible\\)\\]{color:var(--color-avaible)}.wp\\:text-\\[var\\(--color-primary\\)\\]{color:var(--color-primary)}.wp\\:text-\\[var\\(--color-red\\)\\]{color:var(--color-red)}.wp\\:text-\\[var\\(--color-settings\\)\\]{color:var(--color-settings)}.wp\\:text-\\[var\\(--p-primary-color\\)\\]{color:var(--p-primary-color)}.wp\\:text-\\[var\\(--primary\\)\\]{color:var(--primary)}.wp\\:text-amber-500{color:var(--wp-color-amber-500)}.wp\\:text-amber-600{color:var(--wp-color-amber-600)}.wp\\:text-background{color:var(--background)}.wp\\:text-black{color:var(--wp-color-black)}.wp\\:text-blue-500{color:var(--wp-color-blue-500)}.wp\\:text-blue-600{color:var(--wp-color-blue-600)}.wp\\:text-card-foreground{color:var(--card-foreground)}.wp\\:text-destructive{color:var(--destructive)}.wp\\:text-emerald-600{color:var(--wp-color-emerald-600)}.wp\\:text-foreground{color:var(--foreground)}.wp\\:text-green-500{color:var(--wp-color-green-500)}.wp\\:text-muted-foreground{color:var(--muted-foreground)}.wp\\:text-neutral-400{color:var(--wp-color-neutral-400)}.wp\\:text-neutral-500{color:var(--wp-color-neutral-500)}.wp\\:text-neutral-600{color:var(--wp-color-neutral-600)}.wp\\:text-neutral-800{color:var(--wp-color-neutral-800)}.wp\\:text-neutral-900{color:var(--wp-color-neutral-900)}.wp\\:text-popover-foreground{color:var(--popover-foreground)}.wp\\:text-primary{color:var(--primary)}.wp\\:text-primary-foreground{color:var(--primary-foreground)}.wp\\:text-purple-600{color:var(--wp-color-purple-600)}.wp\\:text-red-500{color:var(--wp-color-red-500)}.wp\\:text-secondary-foreground{color:var(--secondary-foreground)}.wp\\:text-status-available{color:var(--status-available)}.wp\\:text-status-disconnected{color:var(--status-disconnected)}.wp\\:text-status-hold{color:var(--status-hold)}.wp\\:text-status-incall{color:var(--status-incall)}.wp\\:text-status-incoming{color:var(--status-incoming)}.wp\\:text-white{color:var(--wp-color-white)}.wp\\:capitalize{text-transform:capitalize}.wp\\:underline-offset-4{text-underline-offset:4px}.wp\\:opacity-0{opacity:0}.wp\\:opacity-50{opacity:.5}.wp\\:opacity-70{opacity:.7}.wp\\:opacity-100{opacity:1}.wp\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:inset-shadow-2xs{--tw-inset-shadow:inset 0 1px var(--tw-inset-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:ring-ring\\/50{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:ring-ring\\/50{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:ring-offset-background{--tw-ring-offset-color:var(--background)}.wp\\:outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:outline-hidden{outline-offset:2px;outline:2px solid #0000}}.wp\\:backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:backdrop-blur-\\[1px\\]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.wp\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.wp\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.wp\\:ease-in-out{--tw-ease:var(--wp-ease-in-out);transition-timing-function:var(--wp-ease-in-out)}.wp\\:fade-in-0{--tw-enter-opacity:0}.wp\\:outline-none{--tw-outline-style:none;outline-style:none}.wp\\:select-none{-webkit-user-select:none;user-select:none}.wp\\:select-text{-webkit-user-select:text;user-select:text}.wp\\:zoom-in-95{--tw-enter-scale:.95}.wp\\:group-data-\\[disabled\\=true\\]\\:pointer-events-none:is(:where(.wp\\:group)[data-disabled=true] *){pointer-events:none}.wp\\:group-data-\\[disabled\\=true\\]\\:opacity-50:is(:where(.wp\\:group)[data-disabled=true] *){opacity:.5}.wp\\:peer-disabled\\:cursor-not-allowed:is(:where(.wp\\:peer):disabled~*){cursor:not-allowed}.wp\\:peer-disabled\\:opacity-50:is(:where(.wp\\:peer):disabled~*){opacity:.5}.wp\\:selection\\:bg-primary ::selection,.wp\\:selection\\:bg-primary::selection{background-color:var(--primary)}.wp\\:selection\\:text-primary-foreground ::selection,.wp\\:selection\\:text-primary-foreground::selection{color:var(--primary-foreground)}.wp\\:file\\:inline-flex::-webkit-file-upload-button{display:inline-flex}.wp\\:file\\:inline-flex::file-selector-button{display:inline-flex}.wp\\:file\\:h-7::-webkit-file-upload-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:h-7::file-selector-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:border-0::-webkit-file-upload-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:bg-transparent::-webkit-file-upload-button{background-color:#0000}.wp\\:file\\:bg-transparent::file-selector-button{background-color:#0000}.wp\\:file\\:text-sm::-webkit-file-upload-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:text-sm::file-selector-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:font-medium::-webkit-file-upload-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:font-medium::file-selector-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:text-foreground::-webkit-file-upload-button{color:var(--foreground)}.wp\\:file\\:text-foreground::file-selector-button{color:var(--foreground)}.wp\\:placeholder\\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.wp\\:last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8:hover{background-color:color-mix(in oklab, var(--p-primary-color) 8%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10:hover{background-color:color-mix(in oklab, var(--p-primary-color) 10%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20:hover{background-color:color-mix(in oklab, var(--p-primary-color) 20%, transparent)}}.wp\\:hover\\:bg-accent:hover,.wp\\:hover\\:bg-accent\\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:hover\\:bg-muted:hover{background-color:var(--muted)}.wp\\:hover\\:bg-neutral-100:hover{background-color:var(--wp-color-neutral-100)}.wp\\:hover\\:bg-neutral-200:hover{background-color:var(--wp-color-neutral-200)}.wp\\:hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.wp\\:hover\\:bg-secondary:hover,.wp\\:hover\\:bg-secondary\\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.wp\\:hover\\:bg-status-available\\/90:hover{background-color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-status-available\\/90:hover{background-color:color-mix(in oklab, var(--status-available) 90%, transparent)}}.wp\\:hover\\:bg-transparent:hover{background-color:#0000}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 75%, transparent)}}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-from:color-mix(in oklab, var(--destructive) 70%, transparent)}}.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-\\[color\\:var\\(--p-primary-color\\)\\]:hover{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-to:color-mix(in oklab, var(--destructive) 95%, transparent)}}.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.wp\\:hover\\:text-destructive:hover{color:var(--destructive)}.wp\\:hover\\:text-muted-foreground:hover{color:var(--muted-foreground)}.wp\\:hover\\:text-primary:hover{color:var(--primary)}.wp\\:hover\\:text-status-available\\/80:hover{color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-available\\/80:hover{color:color-mix(in oklab, var(--status-available) 80%, transparent)}}.wp\\:hover\\:text-status-disconnected:hover,.wp\\:hover\\:text-status-disconnected\\/80:hover{color:var(--status-disconnected)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-disconnected\\/80:hover{color:color-mix(in oklab, var(--status-disconnected) 80%, transparent)}}.wp\\:hover\\:text-status-hold\\/80:hover{color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-hold\\/80:hover{color:color-mix(in oklab, var(--status-hold) 80%, transparent)}}.wp\\:hover\\:text-status-incall\\/80:hover{color:var(--status-incall)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incall\\/80:hover{color:color-mix(in oklab, var(--status-incall) 80%, transparent)}}.wp\\:hover\\:text-status-incoming\\/80:hover{color:var(--status-incoming)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incoming\\/80:hover{color:color-mix(in oklab, var(--status-incoming) 80%, transparent)}}.wp\\:hover\\:underline:hover{text-decoration-line:underline}.wp\\:hover\\:opacity-80:hover{opacity:.8}.wp\\:hover\\:opacity-100:hover{opacity:1}.wp\\:hover\\:ring-4:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.wp\\:focus\\:z-10:focus{z-index:10}.wp\\:focus\\:bg-accent:focus{background-color:var(--accent)}.wp\\:focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.wp\\:focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus\\:ring-ring:focus{--tw-ring-color:var(--ring)}.wp\\:focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:z-10:focus-visible{z-index:10}.wp\\:focus-visible\\:border-ring:focus-visible{border-color:var(--ring)}.wp\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[var\\(--p-primary-color\\)\\]:focus-visible{--tw-ring-color:var(--p-primary-color)}.wp\\:focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:focus-visible\\:ring-primary\\/50:focus-visible{--tw-ring-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-primary\\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--primary) 50%, transparent)}}.wp\\:focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus-visible\\:ring-offset-white:focus-visible{--tw-ring-offset-color:var(--wp-color-white)}.wp\\:focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.wp\\:active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.wp\\:disabled\\:pointer-events-none:disabled{pointer-events:none}.wp\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.wp\\:disabled\\:opacity-50:disabled{opacity:.5}.wp\\:has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.wp\\:has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.wp\\:data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.wp\\:data-\\[highlighted\\]\\:bg-accent[data-highlighted]{background-color:var(--accent)}.wp\\:data-\\[highlighted\\]\\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.wp\\:data-\\[inset\\]\\:pl-8[data-inset]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal]{height:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal]{height:100%}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal]{height:1px}.wp\\:data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical]{min-height:calc(var(--wp-spacing) * 44)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical]{width:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical]{width:auto}.wp\\:data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical]{width:1px}.wp\\:data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical]{flex-direction:column}.wp\\:data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.wp\\:data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.wp\\:data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.wp\\:data-\\[size\\=default\\]\\:h-9[data-size=default]{height:calc(var(--wp-spacing) * 9)}.wp\\:data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:calc(var(--wp-spacing) * 8)}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value]{display:flex}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value]{align-items:center}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value]{gap:calc(var(--wp-spacing) * 2)}.wp\\:data-\\[spacing\\=0\\]\\:rounded-none[data-spacing="0"]{border-radius:0}.wp\\:data-\\[spacing\\=0\\]\\:shadow-none[data-spacing="0"]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:data-\\[spacing\\=0\\]\\:first\\:rounded-l-md[data-spacing="0"]:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[spacing\\=0\\]\\:last\\:rounded-r-md[data-spacing="0"]:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.wp\\:data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.wp\\:data-\\[state\\=on\\]\\:bg-accent[data-state=on]{background-color:var(--accent)}.wp\\:data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.wp\\:data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.wp\\:data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.wp\\:data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.wp\\:data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive]{color:var(--destructive)}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.wp\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline]{border-color:var(--color-primary-500)}.wp\\:data-\\[variant\\=outline\\]\\:focus-visible\\:ring-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline]:focus-visible{--tw-ring-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border[data-spacing="0"][data-variant=outline]{border-style:var(--tw-border-style);border-width:1px}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-spacing="0"][data-variant=outline]{border-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=default\\]\\:data-\\[variant\\=outline\\]\\:shadow-xs[data-spacing=default][data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.wp\\:supports-backdrop-filter\\:bg-background\\/60{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:supports-backdrop-filter\\:bg-background\\/60{background-color:color-mix(in oklab, var(--background) 60%, transparent)}}}@media (min-width:40rem){.wp\\:sm\\:block{display:block}.wp\\:sm\\:inline{display:inline}.wp\\:sm\\:inline-block{display:inline-block}.wp\\:sm\\:max-w-lg{max-width:var(--wp-container-lg)}.wp\\:sm\\:max-w-md{max-width:var(--wp-container-md)}.wp\\:sm\\:max-w-sm{max-width:var(--wp-container-sm)}.wp\\:sm\\:flex-row{flex-direction:row}.wp\\:sm\\:justify-end{justify-content:flex-end}.wp\\:sm\\:gap-0{gap:calc(var(--wp-spacing) * 0)}.wp\\:sm\\:rounded-lg{border-radius:var(--radius)}.wp\\:sm\\:text-left{text-align:left}}@media (min-width:48rem){.wp\\:md\\:w-full{width:100%}.wp\\:md\\:text-sm{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}}.wp\\:dark\\:border-input:where(.dark,.dark *){border-color:var(--input)}.wp\\:dark\\:bg-amber-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-amber-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-amber-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-amber-900) 30%, transparent)}}.wp\\:dark\\:bg-blue-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-blue-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-blue-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-blue-900) 30%, transparent)}}.wp\\:dark\\:bg-destructive\\/60:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-destructive\\/60:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:dark\\:bg-emerald-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-emerald-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-emerald-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-emerald-900) 30%, transparent)}}.wp\\:dark\\:bg-input\\/30:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-input\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.wp\\:dark\\:bg-neutral-700:where(.dark,.dark *){background-color:var(--wp-color-neutral-700)}.wp\\:dark\\:bg-neutral-800:where(.dark,.dark *){background-color:var(--wp-color-neutral-800)}.wp\\:dark\\:bg-neutral-900:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:bg-neutral-900\\/70:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-neutral-900\\/70:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-neutral-900) 70%, transparent)}}.wp\\:dark\\:bg-purple-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-purple-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-purple-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-purple-900) 30%, transparent)}}.wp\\:dark\\:text-amber-400:where(.dark,.dark *){color:var(--wp-color-amber-400)}.wp\\:dark\\:text-blue-400:where(.dark,.dark *){color:var(--wp-color-blue-400)}.wp\\:dark\\:text-emerald-400:where(.dark,.dark *){color:var(--wp-color-emerald-400)}.wp\\:dark\\:text-neutral-100:where(.dark,.dark *){color:var(--wp-color-neutral-100)}.wp\\:dark\\:text-neutral-400:where(.dark,.dark *){color:var(--wp-color-neutral-400)}.wp\\:dark\\:text-neutral-500:where(.dark,.dark *){color:var(--wp-color-neutral-500)}.wp\\:dark\\:text-purple-400:where(.dark,.dark *){color:var(--wp-color-purple-400)}.wp\\:dark\\:text-white:where(.dark,.dark *){color:var(--wp-color-white)}@media (hover:hover){.wp\\:dark\\:hover\\:bg-accent\\/50:where(.dark,.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-accent\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-input\\/50:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-input\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-600:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-600)}.wp\\:dark\\:hover\\:bg-neutral-800\\/80:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-800)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-neutral-800\\/80:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--wp-color-neutral-800) 80%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-900:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:hover\\:text-neutral-100:where(.dark,.dark *):hover{color:var(--wp-color-neutral-100)}.wp\\:dark\\:hover\\:text-status-disconnected:where(.dark,.dark *):hover{color:var(--status-disconnected)}}.wp\\:dark\\:focus-visible\\:ring-destructive\\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:focus-visible\\:ring-destructive\\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:focus-visible\\:ring-offset-neutral-900:where(.dark,.dark *):focus-visible{--tw-ring-offset-color:var(--wp-color-neutral-900)}.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:\\[\\&_button\\]\\:cursor-pointer button{cursor:pointer}.wp\\:\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.wp\\:\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-3 svg:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4 svg:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'text-\\\\\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*="'text-'"]){color:var(--muted-foreground)}.wp\\:\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--wp-spacing) * 6)}.wp\\:\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--wp-spacing) * 6)}:is(.wp\\:\\*\\*\\:\\[\\[role\\=button\\]\\]\\:cursor-pointer *)[role=button]{cursor:pointer}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:flex>*):-webkit-any(span):last-child{display:flex}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:flex>*):is(span):last-child{display:flex}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center>*):-webkit-any(span):last-child{align-items:center}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center>*):is(span):last-child{align-items:center}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2>*):-webkit-any(span):last-child{gap:calc(var(--wp-spacing) * 2)}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2>*):is(span):last-child{gap:calc(var(--wp-spacing) * 2)}:-webkit-any(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive]>*):-webkit-any(svg){color:var(--destructive)!important}:is(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:\\[\\&\\:not\\(\\:first-child\\)\\]\\:border-l-0[data-spacing="0"][data-variant=outline]:not(:first-child){border-left-style:var(--tw-border-style);border-left-width:0}.wp\\:\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg{rotate:180deg}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20{background-color:color-mix(in oklab, var(--background) 20%, transparent)}}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:text-background{color:var(--background)}[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10:where(.dark,.dark *){background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10:where(.dark,.dark *){background-color:color-mix(in oklab, var(--background) 10%, transparent)}}.wp\\:\\@container\\/card-header[data-v-1feccefe]{container:card-header/inline-size}.wp\\:pointer-events-none[data-v-1feccefe]{pointer-events:none}.wp\\:sr-only[data-v-1feccefe]{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wp\\:absolute[data-v-1feccefe]{position:absolute}.wp\\:fixed[data-v-1feccefe]{position:fixed}.wp\\:relative[data-v-1feccefe]{position:relative}.wp\\:sticky[data-v-1feccefe]{position:sticky}.wp\\:inset-0[data-v-1feccefe]{inset:calc(var(--wp-spacing) * 0)}.wp\\:inset-x-0[data-v-1feccefe]{inset-inline:calc(var(--wp-spacing) * 0)}.wp\\:top-0[data-v-1feccefe]{top:calc(var(--wp-spacing) * 0)}.wp\\:top-1\\/2[data-v-1feccefe]{top:50%}.wp\\:top-2\\.5[data-v-1feccefe]{top:calc(var(--wp-spacing) * 2.5)}.wp\\:top-4[data-v-1feccefe]{top:calc(var(--wp-spacing) * 4)}.wp\\:top-\\[50\\%\\][data-v-1feccefe]{top:50%}.wp\\:top-full[data-v-1feccefe]{top:100%}.wp\\:right-0[data-v-1feccefe]{right:calc(var(--wp-spacing) * 0)}.wp\\:right-1[data-v-1feccefe]{right:calc(var(--wp-spacing) * 1)}.wp\\:right-2[data-v-1feccefe]{right:calc(var(--wp-spacing) * 2)}.wp\\:right-4[data-v-1feccefe]{right:calc(var(--wp-spacing) * 4)}.wp\\:bottom-2[data-v-1feccefe]{bottom:calc(var(--wp-spacing) * 2)}.wp\\:bottom-full[data-v-1feccefe]{bottom:100%}.wp\\:left-0[data-v-1feccefe]{left:calc(var(--wp-spacing) * 0)}.wp\\:left-0\\.5[data-v-1feccefe]{left:calc(var(--wp-spacing) * .5)}.wp\\:left-2[data-v-1feccefe]{left:calc(var(--wp-spacing) * 2)}.wp\\:left-\\[50\\%\\][data-v-1feccefe]{left:50%}.wp\\:z-10[data-v-1feccefe]{z-index:10}.wp\\:z-40[data-v-1feccefe]{z-index:40}.wp\\:z-50[data-v-1feccefe]{z-index:50}.wp\\:order-first[data-v-1feccefe]{order:-9999}.wp\\:col-start-2[data-v-1feccefe]{grid-column-start:2}.wp\\:row-span-2[data-v-1feccefe]{grid-row:span 2/span 2}.wp\\:row-start-1[data-v-1feccefe]{grid-row-start:1}.wp\\:container[data-v-1feccefe]{width:100%}@media (min-width:40rem){.wp\\:container[data-v-1feccefe]{max-width:40rem}}@media (min-width:48rem){.wp\\:container[data-v-1feccefe]{max-width:48rem}}@media (min-width:64rem){.wp\\:container[data-v-1feccefe]{max-width:64rem}}@media (min-width:80rem){.wp\\:container[data-v-1feccefe]{max-width:80rem}}@media (min-width:96rem){.wp\\:container[data-v-1feccefe]{max-width:96rem}}.wp\\:-mx-1[data-v-1feccefe]{margin-inline:calc(var(--wp-spacing) * -1)}.wp\\:mx-2[data-v-1feccefe]{margin-inline:calc(var(--wp-spacing) * 2)}.wp\\:mx-auto[data-v-1feccefe]{margin-inline-start:auto;margin-inline-end:auto}.wp\\:my-1[data-v-1feccefe]{margin-block:calc(var(--wp-spacing) * 1)}.wp\\:my-2[data-v-1feccefe]{margin-block:calc(var(--wp-spacing) * 2)}.wp\\:my-8[data-v-1feccefe]{margin-block:calc(var(--wp-spacing) * 8)}.wp\\:mt-1[data-v-1feccefe]{margin-top:calc(var(--wp-spacing) * 1)}.wp\\:mr-4[data-v-1feccefe]{margin-right:calc(var(--wp-spacing) * 4)}.wp\\:mr-auto[data-v-1feccefe]{margin-right:auto}.wp\\:mb-1[data-v-1feccefe]{margin-bottom:calc(var(--wp-spacing) * 1)}.wp\\:mb-2[data-v-1feccefe]{margin-bottom:calc(var(--wp-spacing) * 2)}.wp\\:mb-4[data-v-1feccefe]{margin-bottom:calc(var(--wp-spacing) * 4)}.wp\\:mb-5[data-v-1feccefe]{margin-bottom:calc(var(--wp-spacing) * 5)}.wp\\:ml-auto[data-v-1feccefe]{margin-left:auto}.wp\\:block[data-v-1feccefe]{display:block}.wp\\:flex[data-v-1feccefe]{display:flex}.wp\\:grid[data-v-1feccefe]{display:grid}.wp\\:hidden[data-v-1feccefe]{display:none}.wp\\:inline-flex[data-v-1feccefe]{display:inline-flex}.wp\\:aspect-square[data-v-1feccefe]{aspect-ratio:1}.wp\\:aspect-video[data-v-1feccefe]{aspect-ratio:var(--wp-aspect-video)}.wp\\:size-2[data-v-1feccefe]{width:calc(var(--wp-spacing) * 2);height:calc(var(--wp-spacing) * 2)}.wp\\:size-2\\.5[data-v-1feccefe]{width:calc(var(--wp-spacing) * 2.5);height:calc(var(--wp-spacing) * 2.5)}.wp\\:size-3[data-v-1feccefe]{width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:size-3\\.5[data-v-1feccefe]{width:calc(var(--wp-spacing) * 3.5);height:calc(var(--wp-spacing) * 3.5)}.wp\\:size-4[data-v-1feccefe]{width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:size-5[data-v-1feccefe]{width:calc(var(--wp-spacing) * 5);height:calc(var(--wp-spacing) * 5)}.wp\\:size-6[data-v-1feccefe]{width:calc(var(--wp-spacing) * 6);height:calc(var(--wp-spacing) * 6)}.wp\\:size-7[data-v-1feccefe]{width:calc(var(--wp-spacing) * 7);height:calc(var(--wp-spacing) * 7)}.wp\\:size-8[data-v-1feccefe]{width:calc(var(--wp-spacing) * 8);height:calc(var(--wp-spacing) * 8)}.wp\\:size-9[data-v-1feccefe]{width:calc(var(--wp-spacing) * 9);height:calc(var(--wp-spacing) * 9)}.wp\\:size-10[data-v-1feccefe]{width:calc(var(--wp-spacing) * 10);height:calc(var(--wp-spacing) * 10)}.wp\\:size-12[data-v-1feccefe]{width:calc(var(--wp-spacing) * 12);height:calc(var(--wp-spacing) * 12)}.wp\\:size-full[data-v-1feccefe]{width:100%;height:100%}.wp\\:h-2\\.5[data-v-1feccefe]{height:calc(var(--wp-spacing) * 2.5)}.wp\\:h-3[data-v-1feccefe]{height:calc(var(--wp-spacing) * 3)}.wp\\:h-4[data-v-1feccefe]{height:calc(var(--wp-spacing) * 4)}.wp\\:h-5[data-v-1feccefe]{height:calc(var(--wp-spacing) * 5)}.wp\\:h-6[data-v-1feccefe]{height:calc(var(--wp-spacing) * 6)}.wp\\:h-7[data-v-1feccefe]{height:calc(var(--wp-spacing) * 7)}.wp\\:h-8[data-v-1feccefe]{height:calc(var(--wp-spacing) * 8)}.wp\\:h-9[data-v-1feccefe]{height:calc(var(--wp-spacing) * 9)}.wp\\:h-10[data-v-1feccefe]{height:calc(var(--wp-spacing) * 10)}.wp\\:h-12[data-v-1feccefe]{height:calc(var(--wp-spacing) * 12)}.wp\\:h-14[data-v-1feccefe]{height:calc(var(--wp-spacing) * 14)}.wp\\:h-16[data-v-1feccefe]{height:calc(var(--wp-spacing) * 16)}.wp\\:h-64[data-v-1feccefe]{height:calc(var(--wp-spacing) * 64)}.wp\\:h-80[data-v-1feccefe]{height:calc(var(--wp-spacing) * 80)}.wp\\:h-\\[15px\\][data-v-1feccefe]{height:15px}.wp\\:h-\\[16px\\][data-v-1feccefe]{height:16px}.wp\\:h-\\[60vh\\][data-v-1feccefe]{height:60vh}.wp\\:h-\\[var\\(--reka-select-trigger-height\\)\\][data-v-1feccefe]{height:var(--reka-select-trigger-height)}.wp\\:h-full[data-v-1feccefe]{height:100%}.wp\\:h-px[data-v-1feccefe]{height:1px}.wp\\:max-h-\\(--reka-dropdown-menu-content-available-height\\)[data-v-1feccefe]{max-height:var(--reka-dropdown-menu-content-available-height)}.wp\\:max-h-\\(--reka-select-content-available-height\\)[data-v-1feccefe]{max-height:var(--reka-select-content-available-height)}.wp\\:max-h-0[data-v-1feccefe]{max-height:calc(var(--wp-spacing) * 0)}.wp\\:max-h-40[data-v-1feccefe]{max-height:calc(var(--wp-spacing) * 40)}.wp\\:max-h-60[data-v-1feccefe]{max-height:calc(var(--wp-spacing) * 60)}.wp\\:max-h-\\[300px\\][data-v-1feccefe]{max-height:300px}.wp\\:min-h-10[data-v-1feccefe]{min-height:calc(var(--wp-spacing) * 10)}.wp\\:min-h-\\[calc\\(100vh-3\\.5rem\\)\\][data-v-1feccefe]{min-height:calc(100vh - 3.5rem)}.wp\\:min-h-screen[data-v-1feccefe]{min-height:100vh}.wp\\:\\!w-full[data-v-1feccefe]{width:100%!important}.wp\\:w-2\\.5[data-v-1feccefe]{width:calc(var(--wp-spacing) * 2.5)}.wp\\:w-3[data-v-1feccefe]{width:calc(var(--wp-spacing) * 3)}.wp\\:w-4[data-v-1feccefe]{width:calc(var(--wp-spacing) * 4)}.wp\\:w-5[data-v-1feccefe]{width:calc(var(--wp-spacing) * 5)}.wp\\:w-6[data-v-1feccefe]{width:calc(var(--wp-spacing) * 6)}.wp\\:w-8[data-v-1feccefe]{width:calc(var(--wp-spacing) * 8)}.wp\\:w-9[data-v-1feccefe]{width:calc(var(--wp-spacing) * 9)}.wp\\:w-12[data-v-1feccefe]{width:calc(var(--wp-spacing) * 12)}.wp\\:w-16[data-v-1feccefe]{width:calc(var(--wp-spacing) * 16)}.wp\\:w-24[data-v-1feccefe]{width:calc(var(--wp-spacing) * 24)}.wp\\:w-48[data-v-1feccefe]{width:calc(var(--wp-spacing) * 48)}.wp\\:w-72[data-v-1feccefe]{width:calc(var(--wp-spacing) * 72)}.wp\\:w-\\[15px\\][data-v-1feccefe]{width:15px}.wp\\:w-\\[16px\\][data-v-1feccefe]{width:16px}.wp\\:w-\\[min\\(92vw\\,330px\\)\\][data-v-1feccefe]{width:min(92vw,330px)}.wp\\:w-auto[data-v-1feccefe]{width:auto}.wp\\:w-fit[data-v-1feccefe]{width:-moz-fit-content;width:fit-content}.wp\\:w-full[data-v-1feccefe]{width:100%}.wp\\:max-w-80[data-v-1feccefe]{max-width:calc(var(--wp-spacing) * 80)}.wp\\:max-w-\\[330px\\][data-v-1feccefe]{max-width:330px}.wp\\:max-w-\\[calc\\(100\\%-2rem\\)\\][data-v-1feccefe]{max-width:calc(100% - 2rem)}.wp\\:max-w-lg[data-v-1feccefe]{max-width:var(--wp-container-lg)}.wp\\:max-w-md[data-v-1feccefe]{max-width:var(--wp-container-md)}.wp\\:max-w-screen-2xl[data-v-1feccefe]{max-width:var(--wp-breakpoint-2xl)}.wp\\:min-w-0[data-v-1feccefe]{min-width:calc(var(--wp-spacing) * 0)}.wp\\:min-w-5[data-v-1feccefe]{min-width:calc(var(--wp-spacing) * 5)}.wp\\:min-w-8[data-v-1feccefe]{min-width:calc(var(--wp-spacing) * 8)}.wp\\:min-w-9[data-v-1feccefe]{min-width:calc(var(--wp-spacing) * 9)}.wp\\:min-w-10[data-v-1feccefe]{min-width:calc(var(--wp-spacing) * 10)}.wp\\:min-w-\\[8rem\\][data-v-1feccefe]{min-width:8rem}.wp\\:min-w-\\[var\\(--reka-select-trigger-width\\)\\][data-v-1feccefe]{min-width:var(--reka-select-trigger-width)}.wp\\:flex-1[data-v-1feccefe]{flex:1}.wp\\:shrink-0[data-v-1feccefe]{flex-shrink:0}.wp\\:grow[data-v-1feccefe]{flex-grow:1}.wp\\:origin-\\(--reka-dropdown-menu-content-transform-origin\\)[data-v-1feccefe]{transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.wp\\:origin-\\(--reka-popover-content-transform-origin\\)[data-v-1feccefe]{transform-origin:var(--reka-popover-content-transform-origin)}.wp\\:translate-x-0[data-v-1feccefe]{--tw-translate-x:calc(var(--wp-spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-x-5[data-v-1feccefe]{--tw-translate-x:calc(var(--wp-spacing) * 5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-x-\\[-50\\%\\][data-v-1feccefe]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:-translate-y-1\\/2[data-v-1feccefe]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-0\\.5[data-v-1feccefe]{--tw-translate-y:calc(var(--wp-spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[-50\\%\\][data-v-1feccefe]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[calc\\(-50\\%_-_2px\\)\\][data-v-1feccefe]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:rotate-45[data-v-1feccefe]{rotate:45deg}.wp\\:animate-in[data-v-1feccefe]{animation:enter-1feccefe var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:animate-pulse[data-v-1feccefe]{animation:var(--wp-animate-pulse)}.wp\\:cursor-default[data-v-1feccefe]{cursor:default}.wp\\:cursor-move[data-v-1feccefe]{cursor:move}.wp\\:cursor-pointer[data-v-1feccefe]{cursor:pointer}.wp\\:touch-none[data-v-1feccefe]{touch-action:none}.wp\\:scroll-my-1[data-v-1feccefe]{scroll-margin-block:calc(var(--wp-spacing) * 1)}.wp\\:scroll-py-1[data-v-1feccefe]{scroll-padding-block:calc(var(--wp-spacing) * 1)}.wp\\:auto-rows-min[data-v-1feccefe]{grid-auto-rows:min-content}.wp\\:grid-cols-2[data-v-1feccefe]{grid-template-columns:repeat(2,minmax(0,1fr))}.wp\\:grid-cols-3[data-v-1feccefe]{grid-template-columns:repeat(3,minmax(0,1fr))}.wp\\:grid-rows-\\[auto_auto\\][data-v-1feccefe]{grid-template-rows:auto auto}.wp\\:flex-col[data-v-1feccefe]{flex-direction:column}.wp\\:flex-col-reverse[data-v-1feccefe]{flex-direction:column-reverse}.wp\\:place-items-center[data-v-1feccefe]{place-items:center}.wp\\:items-center[data-v-1feccefe]{align-items:center}.wp\\:items-end[data-v-1feccefe]{align-items:flex-end}.wp\\:items-start[data-v-1feccefe]{align-items:flex-start}.wp\\:justify-between[data-v-1feccefe]{justify-content:space-between}.wp\\:justify-center[data-v-1feccefe]{justify-content:center}.wp\\:justify-start[data-v-1feccefe]{justify-content:flex-start}.wp\\:gap-0[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 0)}.wp\\:gap-1[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 1)}.wp\\:gap-1\\.5[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 1.5)}.wp\\:gap-2[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 2)}.wp\\:gap-3[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 3)}.wp\\:gap-4[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 4)}.wp\\:gap-6[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-\\[--spacing\\(var\\(--gap\\)\\)\\][data-v-1feccefe]{gap:calc(var(--wp-spacing) * var(--gap))}:where(.wp\\:space-y-2[data-v-1feccefe]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-4[data-v-1feccefe]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-6[data-v-1feccefe]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.wp\\:gap-x-6[data-v-1feccefe]{column-gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-y-3[data-v-1feccefe]{row-gap:calc(var(--wp-spacing) * 3)}.wp\\:self-start[data-v-1feccefe]{align-self:flex-start}.wp\\:justify-self-end[data-v-1feccefe]{justify-self:flex-end}.wp\\:truncate[data-v-1feccefe]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wp\\:overflow-auto[data-v-1feccefe]{overflow:auto}.wp\\:overflow-hidden[data-v-1feccefe]{overflow:hidden}.wp\\:overflow-x-hidden[data-v-1feccefe]{overflow-x:hidden}.wp\\:overflow-y-auto[data-v-1feccefe]{overflow-y:auto}.wp\\:rounded[data-v-1feccefe]{border-radius:.25rem}.wp\\:rounded-2xl[data-v-1feccefe]{border-radius:var(--wp-radius-2xl)}.wp\\:rounded-\\[2px\\][data-v-1feccefe]{border-radius:2px}.wp\\:rounded-\\[inherit\\][data-v-1feccefe]{border-radius:inherit}.wp\\:rounded-full[data-v-1feccefe]{border-radius:3.40282e38px}.wp\\:rounded-lg[data-v-1feccefe]{border-radius:var(--radius)}.wp\\:rounded-md[data-v-1feccefe]{border-radius:calc(var(--radius) - 2px)}.wp\\:rounded-sm[data-v-1feccefe]{border-radius:calc(var(--radius) - 4px)}.wp\\:rounded-xl[data-v-1feccefe]{border-radius:calc(var(--radius) + 4px)}.wp\\:rounded-xs[data-v-1feccefe]{border-radius:var(--wp-radius-xs)}.wp\\:border[data-v-1feccefe]{border-style:var(--tw-border-style);border-width:1px}.wp\\:border-0[data-v-1feccefe]{border-style:var(--tw-border-style);border-width:0}.wp\\:border-t[data-v-1feccefe]{border-top-style:var(--tw-border-style);border-top-width:1px}.wp\\:border-b[data-v-1feccefe]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.wp\\:border-l[data-v-1feccefe]{border-left-style:var(--tw-border-style);border-left-width:1px}.wp\\:border-blue-500[data-v-1feccefe]{border-color:var(--wp-color-blue-500)}.wp\\:border-border[data-v-1feccefe]{border-color:var(--border)}.wp\\:border-destructive[data-v-1feccefe]{border-color:var(--destructive)}.wp\\:border-input[data-v-1feccefe]{border-color:var(--input)}.wp\\:border-primary[data-v-1feccefe]{border-color:var(--primary)}.wp\\:border-white\\/20[data-v-1feccefe]{border-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:border-white\\/20[data-v-1feccefe]{border-color:color-mix(in oklab, var(--wp-color-white) 20%, transparent)}}.wp\\:border-t-transparent[data-v-1feccefe]{border-top-color:#0000}.wp\\:border-l-transparent[data-v-1feccefe]{border-left-color:#0000}.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12[data-v-1feccefe]{background-color:var(--color-red)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12[data-v-1feccefe]{background-color:color-mix(in oklab, var(--color-red) 12%, transparent)}}.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12[data-v-1feccefe]{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12[data-v-1feccefe]{background-color:color-mix(in oklab, var(--p-primary-color) 12%, transparent)}}.wp\\:bg-amber-100[data-v-1feccefe]{background-color:var(--wp-color-amber-100)}.wp\\:bg-background[data-v-1feccefe],.wp\\:bg-background\\/95[data-v-1feccefe]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-background\\/95[data-v-1feccefe]{background-color:color-mix(in oklab, var(--background) 95%, transparent)}}.wp\\:bg-black[data-v-1feccefe],.wp\\:bg-black\\/80[data-v-1feccefe]{background-color:var(--wp-color-black)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-black\\/80[data-v-1feccefe]{background-color:color-mix(in oklab, var(--wp-color-black) 80%, transparent)}}.wp\\:bg-blue-100[data-v-1feccefe]{background-color:var(--wp-color-blue-100)}.wp\\:bg-border[data-v-1feccefe]{background-color:var(--border)}.wp\\:bg-card[data-v-1feccefe]{background-color:var(--card)}.wp\\:bg-destructive[data-v-1feccefe]{background-color:var(--destructive)}.wp\\:bg-emerald-100[data-v-1feccefe]{background-color:var(--wp-color-emerald-100)}.wp\\:bg-foreground[data-v-1feccefe]{background-color:var(--foreground)}.wp\\:bg-muted[data-v-1feccefe]{background-color:var(--muted)}.wp\\:bg-neutral-100[data-v-1feccefe]{background-color:var(--wp-color-neutral-100)}.wp\\:bg-neutral-800[data-v-1feccefe]{background-color:var(--wp-color-neutral-800)}.wp\\:bg-popover[data-v-1feccefe]{background-color:var(--popover)}.wp\\:bg-primary[data-v-1feccefe],.wp\\:bg-primary\\/10[data-v-1feccefe]{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-primary\\/10[data-v-1feccefe]{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.wp\\:bg-purple-100[data-v-1feccefe]{background-color:var(--wp-color-purple-100)}.wp\\:bg-secondary[data-v-1feccefe]{background-color:var(--secondary)}.wp\\:bg-status-available[data-v-1feccefe]{background-color:var(--status-available)}.wp\\:bg-status-hold\\/12[data-v-1feccefe]{background-color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-status-hold\\/12[data-v-1feccefe]{background-color:color-mix(in oklab, var(--status-hold) 12%, transparent)}}.wp\\:bg-transparent[data-v-1feccefe]{background-color:#0000}.wp\\:bg-white[data-v-1feccefe],.wp\\:bg-white\\/70[data-v-1feccefe]{background-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-white\\/70[data-v-1feccefe]{background-color:color-mix(in oklab, var(--wp-color-white) 70%, transparent)}}.wp\\:bg-gradient-to-r[data-v-1feccefe]{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-1feccefe]{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-1feccefe]{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 80%, transparent)}}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-1feccefe]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:from-destructive\\/60[data-v-1feccefe]{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-destructive\\/60[data-v-1feccefe]{--tw-gradient-from:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:from-destructive\\/60[data-v-1feccefe]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-\\[color\\:var\\(--p-primary-color\\)\\]\\/100[data-v-1feccefe]{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-destructive\\/90[data-v-1feccefe]{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:to-destructive\\/90[data-v-1feccefe]{--tw-gradient-to:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:to-destructive\\/90[data-v-1feccefe]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:fill-current[data-v-1feccefe]{fill:currentColor}.wp\\:fill-foreground[data-v-1feccefe]{fill:var(--foreground)}.wp\\:object-contain[data-v-1feccefe]{object-fit:contain}.wp\\:object-cover[data-v-1feccefe]{object-fit:cover}.wp\\:p-0[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 0)}.wp\\:p-0\\.5[data-v-1feccefe]{padding:calc(var(--wp-spacing) * .5)}.wp\\:p-1[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 1)}.wp\\:p-2[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 2)}.wp\\:p-3[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 3)}.wp\\:p-4[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 4)}.wp\\:p-6[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 6)}.wp\\:p-px[data-v-1feccefe]{padding:1px}.wp\\:px-1[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 1)}.wp\\:px-1\\.5[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 1.5)}.wp\\:px-2[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 2)}.wp\\:px-2\\.5[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:px-3[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:px-4[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:px-6[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 6)}.wp\\:px-10[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 10)}.wp\\:px-14[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 14)}.wp\\:py-1[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 1)}.wp\\:py-1\\.5[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 1.5)}.wp\\:py-2[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 2)}.wp\\:py-3[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 3)}.wp\\:py-4[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 4)}.wp\\:py-6[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 6)}.wp\\:py-8[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 8)}.wp\\:pt-0[data-v-1feccefe]{padding-top:calc(var(--wp-spacing) * 0)}.wp\\:pr-2[data-v-1feccefe]{padding-right:calc(var(--wp-spacing) * 2)}.wp\\:pr-4[data-v-1feccefe]{padding-right:calc(var(--wp-spacing) * 4)}.wp\\:pr-8[data-v-1feccefe]{padding-right:calc(var(--wp-spacing) * 8)}.wp\\:pb-0[data-v-1feccefe]{padding-bottom:calc(var(--wp-spacing) * 0)}.wp\\:pb-4[data-v-1feccefe]{padding-bottom:calc(var(--wp-spacing) * 4)}.wp\\:pl-2[data-v-1feccefe]{padding-left:calc(var(--wp-spacing) * 2)}.wp\\:pl-8[data-v-1feccefe]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:text-center[data-v-1feccefe]{text-align:center}.wp\\:text-left[data-v-1feccefe]{text-align:left}.wp\\:font-mono[data-v-1feccefe]{font-family:var(--wp-font-mono)}.wp\\:font-sans[data-v-1feccefe]{font-family:Montserrat,sans-serif}.wp\\:text-3xl[data-v-1feccefe]{font-size:var(--wp-text-3xl);line-height:var(--tw-leading,var(--wp-text-3xl--line-height))}.wp\\:text-base[data-v-1feccefe]{font-size:var(--wp-text-base);line-height:var(--tw-leading,var(--wp-text-base--line-height))}.wp\\:text-lg[data-v-1feccefe]{font-size:var(--wp-text-lg);line-height:var(--tw-leading,var(--wp-text-lg--line-height))}.wp\\:text-sm[data-v-1feccefe]{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:text-xs[data-v-1feccefe]{font-size:var(--wp-text-xs);line-height:var(--tw-leading,var(--wp-text-xs--line-height))}.wp\\:text-\\[10px\\][data-v-1feccefe]{font-size:10px}.wp\\:text-\\[11px\\][data-v-1feccefe]{font-size:11px}.wp\\:leading-none[data-v-1feccefe]{--tw-leading:1;line-height:1}.wp\\:font-bold[data-v-1feccefe]{--tw-font-weight:var(--wp-font-weight-bold);font-weight:var(--wp-font-weight-bold)}.wp\\:font-light[data-v-1feccefe]{--tw-font-weight:var(--wp-font-weight-light);font-weight:var(--wp-font-weight-light)}.wp\\:font-medium[data-v-1feccefe]{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:font-semibold[data-v-1feccefe]{--tw-font-weight:var(--wp-font-weight-semibold);font-weight:var(--wp-font-weight-semibold)}.wp\\:tracking-wider[data-v-1feccefe]{--tw-tracking:var(--wp-tracking-wider);letter-spacing:var(--wp-tracking-wider)}.wp\\:tracking-widest[data-v-1feccefe]{--tw-tracking:var(--wp-tracking-widest);letter-spacing:var(--wp-tracking-widest)}.wp\\:text-balance[data-v-1feccefe]{text-wrap:balance}.wp\\:whitespace-nowrap[data-v-1feccefe]{white-space:nowrap}.wp\\:text-\\[var\\(--color-avaible\\)\\][data-v-1feccefe]{color:var(--color-avaible)}.wp\\:text-\\[var\\(--color-primary\\)\\][data-v-1feccefe]{color:var(--color-primary)}.wp\\:text-\\[var\\(--color-red\\)\\][data-v-1feccefe]{color:var(--color-red)}.wp\\:text-\\[var\\(--color-settings\\)\\][data-v-1feccefe]{color:var(--color-settings)}.wp\\:text-\\[var\\(--p-primary-color\\)\\][data-v-1feccefe]{color:var(--p-primary-color)}.wp\\:text-\\[var\\(--primary\\)\\][data-v-1feccefe]{color:var(--primary)}.wp\\:text-amber-500[data-v-1feccefe]{color:var(--wp-color-amber-500)}.wp\\:text-amber-600[data-v-1feccefe]{color:var(--wp-color-amber-600)}.wp\\:text-background[data-v-1feccefe]{color:var(--background)}.wp\\:text-black[data-v-1feccefe]{color:var(--wp-color-black)}.wp\\:text-blue-500[data-v-1feccefe]{color:var(--wp-color-blue-500)}.wp\\:text-blue-600[data-v-1feccefe]{color:var(--wp-color-blue-600)}.wp\\:text-card-foreground[data-v-1feccefe]{color:var(--card-foreground)}.wp\\:text-destructive[data-v-1feccefe]{color:var(--destructive)}.wp\\:text-emerald-600[data-v-1feccefe]{color:var(--wp-color-emerald-600)}.wp\\:text-foreground[data-v-1feccefe]{color:var(--foreground)}.wp\\:text-green-500[data-v-1feccefe]{color:var(--wp-color-green-500)}.wp\\:text-muted-foreground[data-v-1feccefe]{color:var(--muted-foreground)}.wp\\:text-neutral-400[data-v-1feccefe]{color:var(--wp-color-neutral-400)}.wp\\:text-neutral-500[data-v-1feccefe]{color:var(--wp-color-neutral-500)}.wp\\:text-neutral-600[data-v-1feccefe]{color:var(--wp-color-neutral-600)}.wp\\:text-neutral-800[data-v-1feccefe]{color:var(--wp-color-neutral-800)}.wp\\:text-neutral-900[data-v-1feccefe]{color:var(--wp-color-neutral-900)}.wp\\:text-popover-foreground[data-v-1feccefe]{color:var(--popover-foreground)}.wp\\:text-primary[data-v-1feccefe]{color:var(--primary)}.wp\\:text-primary-foreground[data-v-1feccefe]{color:var(--primary-foreground)}.wp\\:text-purple-600[data-v-1feccefe]{color:var(--wp-color-purple-600)}.wp\\:text-red-500[data-v-1feccefe]{color:var(--wp-color-red-500)}.wp\\:text-secondary-foreground[data-v-1feccefe]{color:var(--secondary-foreground)}.wp\\:text-status-available[data-v-1feccefe]{color:var(--status-available)}.wp\\:text-status-disconnected[data-v-1feccefe]{color:var(--status-disconnected)}.wp\\:text-status-hold[data-v-1feccefe]{color:var(--status-hold)}.wp\\:text-status-incall[data-v-1feccefe]{color:var(--status-incall)}.wp\\:text-status-incoming[data-v-1feccefe]{color:var(--status-incoming)}.wp\\:text-white[data-v-1feccefe]{color:var(--wp-color-white)}.wp\\:capitalize[data-v-1feccefe]{text-transform:capitalize}.wp\\:underline-offset-4[data-v-1feccefe]{text-underline-offset:4px}.wp\\:opacity-0[data-v-1feccefe]{opacity:0}.wp\\:opacity-50[data-v-1feccefe]{opacity:.5}.wp\\:opacity-70[data-v-1feccefe]{opacity:.7}.wp\\:opacity-100[data-v-1feccefe]{opacity:1}.wp\\:shadow-lg[data-v-1feccefe]{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-md[data-v-1feccefe]{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-sm[data-v-1feccefe]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-xs[data-v-1feccefe]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:inset-shadow-2xs[data-v-1feccefe]{--tw-inset-shadow:inset 0 1px var(--tw-inset-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:ring-ring\\/50[data-v-1feccefe]{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:ring-ring\\/50[data-v-1feccefe]{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:ring-offset-background[data-v-1feccefe]{--tw-ring-offset-color:var(--background)}.wp\\:outline-hidden[data-v-1feccefe]{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:outline-hidden[data-v-1feccefe]{outline-offset:2px;outline:2px solid #0000}}.wp\\:backdrop-blur[data-v-1feccefe]{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:backdrop-blur-\\[1px\\][data-v-1feccefe]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:transition-\\[color\\,box-shadow\\][data-v-1feccefe]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-all[data-v-1feccefe]{transition-property:all;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-colors[data-v-1feccefe]{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-opacity[data-v-1feccefe]{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-transform[data-v-1feccefe]{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:duration-150[data-v-1feccefe]{--tw-duration:.15s;transition-duration:.15s}.wp\\:duration-200[data-v-1feccefe]{--tw-duration:.2s;transition-duration:.2s}.wp\\:duration-300[data-v-1feccefe]{--tw-duration:.3s;transition-duration:.3s}.wp\\:ease-in-out[data-v-1feccefe]{--tw-ease:var(--wp-ease-in-out);transition-timing-function:var(--wp-ease-in-out)}.wp\\:fade-in-0[data-v-1feccefe]{--tw-enter-opacity:0}.wp\\:outline-none[data-v-1feccefe]{--tw-outline-style:none;outline-style:none}.wp\\:select-none[data-v-1feccefe]{-webkit-user-select:none;user-select:none}.wp\\:select-text[data-v-1feccefe]{-webkit-user-select:text;user-select:text}.wp\\:zoom-in-95[data-v-1feccefe]{--tw-enter-scale:.95}.wp\\:group-data-\\[disabled\\=true\\]\\:pointer-events-none[data-v-1feccefe]:is(:where(.wp\\:group)[data-disabled=true] *){pointer-events:none}.wp\\:group-data-\\[disabled\\=true\\]\\:opacity-50[data-v-1feccefe]:is(:where(.wp\\:group)[data-disabled=true] *){opacity:.5}.wp\\:peer-disabled\\:cursor-not-allowed[data-v-1feccefe]:is(:where(.wp\\:peer):disabled~*){cursor:not-allowed}.wp\\:peer-disabled\\:opacity-50[data-v-1feccefe]:is(:where(.wp\\:peer):disabled~*){opacity:.5}.wp\\:selection\\:bg-primary[data-v-1feccefe] ::selection,.wp\\:selection\\:bg-primary[data-v-1feccefe]::selection{background-color:var(--primary)}.wp\\:selection\\:text-primary-foreground[data-v-1feccefe] ::selection,.wp\\:selection\\:text-primary-foreground[data-v-1feccefe]::selection{color:var(--primary-foreground)}.wp\\:file\\:inline-flex[data-v-1feccefe]::-webkit-file-upload-button{display:inline-flex}.wp\\:file\\:inline-flex[data-v-1feccefe]::file-selector-button{display:inline-flex}.wp\\:file\\:h-7[data-v-1feccefe]::-webkit-file-upload-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:h-7[data-v-1feccefe]::file-selector-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:border-0[data-v-1feccefe]::-webkit-file-upload-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:border-0[data-v-1feccefe]::file-selector-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:bg-transparent[data-v-1feccefe]::-webkit-file-upload-button{background-color:#0000}.wp\\:file\\:bg-transparent[data-v-1feccefe]::file-selector-button{background-color:#0000}.wp\\:file\\:text-sm[data-v-1feccefe]::-webkit-file-upload-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:text-sm[data-v-1feccefe]::file-selector-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:font-medium[data-v-1feccefe]::-webkit-file-upload-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:font-medium[data-v-1feccefe]::file-selector-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:text-foreground[data-v-1feccefe]::-webkit-file-upload-button{color:var(--foreground)}.wp\\:file\\:text-foreground[data-v-1feccefe]::file-selector-button{color:var(--foreground)}.wp\\:placeholder\\:text-muted-foreground[data-v-1feccefe]::placeholder{color:var(--muted-foreground)}.wp\\:last\\:border-b-0[data-v-1feccefe]:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8[data-v-1feccefe]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 8%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10[data-v-1feccefe]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 10%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20[data-v-1feccefe]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 20%, transparent)}}.wp\\:hover\\:bg-accent[data-v-1feccefe]:hover,.wp\\:hover\\:bg-accent\\/50[data-v-1feccefe]:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-accent\\/50[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:hover\\:bg-destructive\\/90[data-v-1feccefe]:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-destructive\\/90[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:hover\\:bg-muted[data-v-1feccefe]:hover{background-color:var(--muted)}.wp\\:hover\\:bg-neutral-100[data-v-1feccefe]:hover{background-color:var(--wp-color-neutral-100)}.wp\\:hover\\:bg-neutral-200[data-v-1feccefe]:hover{background-color:var(--wp-color-neutral-200)}.wp\\:hover\\:bg-primary\\/90[data-v-1feccefe]:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-primary\\/90[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.wp\\:hover\\:bg-secondary[data-v-1feccefe]:hover,.wp\\:hover\\:bg-secondary\\/80[data-v-1feccefe]:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-secondary\\/80[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.wp\\:hover\\:bg-status-available\\/90[data-v-1feccefe]:hover{background-color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-status-available\\/90[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--status-available) 90%, transparent)}}.wp\\:hover\\:bg-transparent[data-v-1feccefe]:hover{background-color:#0000}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-1feccefe]:hover{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-1feccefe]:hover{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 75%, transparent)}}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-1feccefe]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:from-destructive\\/70[data-v-1feccefe]:hover{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-destructive\\/70[data-v-1feccefe]:hover{--tw-gradient-from:color-mix(in oklab, var(--destructive) 70%, transparent)}}.wp\\:hover\\:from-destructive\\/70[data-v-1feccefe]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-\\[color\\:var\\(--p-primary-color\\)\\][data-v-1feccefe]:hover{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-destructive\\/95[data-v-1feccefe]:hover{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:to-destructive\\/95[data-v-1feccefe]:hover{--tw-gradient-to:color-mix(in oklab, var(--destructive) 95%, transparent)}}.wp\\:hover\\:to-destructive\\/95[data-v-1feccefe]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:text-accent-foreground[data-v-1feccefe]:hover{color:var(--accent-foreground)}.wp\\:hover\\:text-destructive[data-v-1feccefe]:hover{color:var(--destructive)}.wp\\:hover\\:text-muted-foreground[data-v-1feccefe]:hover{color:var(--muted-foreground)}.wp\\:hover\\:text-primary[data-v-1feccefe]:hover{color:var(--primary)}.wp\\:hover\\:text-status-available\\/80[data-v-1feccefe]:hover{color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-available\\/80[data-v-1feccefe]:hover{color:color-mix(in oklab, var(--status-available) 80%, transparent)}}.wp\\:hover\\:text-status-disconnected[data-v-1feccefe]:hover,.wp\\:hover\\:text-status-disconnected\\/80[data-v-1feccefe]:hover{color:var(--status-disconnected)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-disconnected\\/80[data-v-1feccefe]:hover{color:color-mix(in oklab, var(--status-disconnected) 80%, transparent)}}.wp\\:hover\\:text-status-hold\\/80[data-v-1feccefe]:hover{color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-hold\\/80[data-v-1feccefe]:hover{color:color-mix(in oklab, var(--status-hold) 80%, transparent)}}.wp\\:hover\\:text-status-incall\\/80[data-v-1feccefe]:hover{color:var(--status-incall)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incall\\/80[data-v-1feccefe]:hover{color:color-mix(in oklab, var(--status-incall) 80%, transparent)}}.wp\\:hover\\:text-status-incoming\\/80[data-v-1feccefe]:hover{color:var(--status-incoming)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incoming\\/80[data-v-1feccefe]:hover{color:color-mix(in oklab, var(--status-incoming) 80%, transparent)}}.wp\\:hover\\:underline[data-v-1feccefe]:hover{text-decoration-line:underline}.wp\\:hover\\:opacity-80[data-v-1feccefe]:hover{opacity:.8}.wp\\:hover\\:opacity-100[data-v-1feccefe]:hover{opacity:1}.wp\\:hover\\:ring-4[data-v-1feccefe]:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.wp\\:focus\\:z-10[data-v-1feccefe]:focus{z-index:10}.wp\\:focus\\:bg-accent[data-v-1feccefe]:focus{background-color:var(--accent)}.wp\\:focus\\:text-accent-foreground[data-v-1feccefe]:focus{color:var(--accent-foreground)}.wp\\:focus\\:ring-2[data-v-1feccefe]:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus\\:ring-ring[data-v-1feccefe]:focus{--tw-ring-color:var(--ring)}.wp\\:focus\\:ring-offset-2[data-v-1feccefe]:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus\\:outline-hidden[data-v-1feccefe]:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus\\:outline-hidden[data-v-1feccefe]:focus{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:z-10[data-v-1feccefe]:focus-visible{z-index:10}.wp\\:focus-visible\\:border-ring[data-v-1feccefe]:focus-visible{border-color:var(--ring)}.wp\\:focus-visible\\:ring-2[data-v-1feccefe]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-4[data-v-1feccefe]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[3px\\][data-v-1feccefe]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[var\\(--p-primary-color\\)\\][data-v-1feccefe]:focus-visible{--tw-ring-color:var(--p-primary-color)}.wp\\:focus-visible\\:ring-destructive\\/20[data-v-1feccefe]:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-destructive\\/20[data-v-1feccefe]:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:focus-visible\\:ring-primary\\/50[data-v-1feccefe]:focus-visible{--tw-ring-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-primary\\/50[data-v-1feccefe]:focus-visible{--tw-ring-color:color-mix(in oklab, var(--primary) 50%, transparent)}}.wp\\:focus-visible\\:ring-ring\\/50[data-v-1feccefe]:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-ring\\/50[data-v-1feccefe]:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:focus-visible\\:ring-offset-2[data-v-1feccefe]:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus-visible\\:ring-offset-white[data-v-1feccefe]:focus-visible{--tw-ring-offset-color:var(--wp-color-white)}.wp\\:focus-visible\\:outline-hidden[data-v-1feccefe]:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus-visible\\:outline-hidden[data-v-1feccefe]:focus-visible{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:outline-1[data-v-1feccefe]:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.wp\\:active\\:scale-95[data-v-1feccefe]:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.wp\\:disabled\\:pointer-events-none[data-v-1feccefe]:disabled{pointer-events:none}.wp\\:disabled\\:cursor-not-allowed[data-v-1feccefe]:disabled{cursor:not-allowed}.wp\\:disabled\\:opacity-50[data-v-1feccefe]:disabled{opacity:.5}.wp\\:has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\][data-v-1feccefe]:has([data-slot=card-action]){grid-template-columns:1fr auto}.wp\\:has-\\[\\>svg\\]\\:px-2\\.5[data-v-1feccefe]:has(>svg){padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:has-\\[\\>svg\\]\\:px-3[data-v-1feccefe]:has(>svg){padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:has-\\[\\>svg\\]\\:px-4[data-v-1feccefe]:has(>svg){padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:aria-invalid\\:border-destructive[aria-invalid=true][data-v-1feccefe]{border-color:var(--destructive)}.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true][data-v-1feccefe]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true][data-v-1feccefe]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled][data-v-1feccefe]{pointer-events:none}.wp\\:data-\\[disabled\\]\\:opacity-50[data-disabled][data-v-1feccefe]{opacity:.5}.wp\\:data-\\[highlighted\\]\\:bg-accent[data-highlighted][data-v-1feccefe]{background-color:var(--accent)}.wp\\:data-\\[highlighted\\]\\:text-accent-foreground[data-highlighted][data-v-1feccefe]{color:var(--accent-foreground)}.wp\\:data-\\[inset\\]\\:pl-8[data-inset][data-v-1feccefe]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal][data-v-1feccefe]{height:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal][data-v-1feccefe]{height:100%}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal][data-v-1feccefe]{height:1px}.wp\\:data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal][data-v-1feccefe]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical][data-v-1feccefe]{height:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical][data-v-1feccefe]{min-height:calc(var(--wp-spacing) * 44)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical][data-v-1feccefe]{width:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical][data-v-1feccefe]{width:auto}.wp\\:data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical][data-v-1feccefe]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical][data-v-1feccefe]{width:1px}.wp\\:data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical][data-v-1feccefe]{flex-direction:column}.wp\\:data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder][data-v-1feccefe]{color:var(--muted-foreground)}.wp\\:data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom][data-v-1feccefe]{--tw-translate-y:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom][data-v-1feccefe]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=left\\]\\:-translate-x-1[data-side=left][data-v-1feccefe]{--tw-translate-x:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left][data-v-1feccefe]{--tw-enter-translate-x:calc(2*var(--spacing))}.wp\\:data-\\[side\\=right\\]\\:translate-x-1[data-side=right][data-v-1feccefe]{--tw-translate-x:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right][data-v-1feccefe]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=top\\]\\:-translate-y-1[data-side=top][data-v-1feccefe]{--tw-translate-y:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top][data-v-1feccefe]{--tw-enter-translate-y:calc(2*var(--spacing))}.wp\\:data-\\[size\\=default\\]\\:h-9[data-size=default][data-v-1feccefe]{height:calc(var(--wp-spacing) * 9)}.wp\\:data-\\[size\\=sm\\]\\:h-8[data-size=sm][data-v-1feccefe]{height:calc(var(--wp-spacing) * 8)}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value][data-v-1feccefe]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value][data-v-1feccefe]{display:flex}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value][data-v-1feccefe]{align-items:center}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value][data-v-1feccefe]{gap:calc(var(--wp-spacing) * 2)}.wp\\:data-\\[spacing\\=0\\]\\:rounded-none[data-spacing="0"][data-v-1feccefe]{border-radius:0}.wp\\:data-\\[spacing\\=0\\]\\:shadow-none[data-spacing="0"][data-v-1feccefe]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:data-\\[spacing\\=0\\]\\:first\\:rounded-l-md[data-spacing="0"][data-v-1feccefe]:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[spacing\\=0\\]\\:last\\:rounded-r-md[data-spacing="0"][data-v-1feccefe]:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed][data-v-1feccefe]{animation:accordion-up-1feccefe var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:animate-out[data-state=closed][data-v-1feccefe]{animation:exit-1feccefe var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed][data-v-1feccefe]{--tw-exit-opacity:0}.wp\\:data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed][data-v-1feccefe]{--tw-exit-scale:.95}.wp\\:data-\\[state\\=on\\]\\:bg-accent[data-state=on][data-v-1feccefe]{background-color:var(--accent)}.wp\\:data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on][data-v-1feccefe]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open][data-v-1feccefe]{animation:accordion-down-1feccefe var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:animate-in[data-state=open][data-v-1feccefe]{animation:enter-1feccefe var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:bg-accent[data-state=open][data-v-1feccefe]{background-color:var(--accent)}.wp\\:data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open][data-v-1feccefe]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open][data-v-1feccefe]{color:var(--muted-foreground)}.wp\\:data-\\[state\\=open\\]\\:fade-in-0[data-state=open][data-v-1feccefe]{--tw-enter-opacity:0}.wp\\:data-\\[state\\=open\\]\\:zoom-in-95[data-state=open][data-v-1feccefe]{--tw-enter-scale:.95}.wp\\:data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive][data-v-1feccefe]{color:var(--destructive)}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive][data-v-1feccefe]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive][data-v-1feccefe]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive][data-v-1feccefe]:focus{color:var(--destructive)}.wp\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline][data-v-1feccefe]{border-color:var(--color-primary-500)}.wp\\:data-\\[variant\\=outline\\]\\:focus-visible\\:ring-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline][data-v-1feccefe]:focus-visible{--tw-ring-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border[data-spacing="0"][data-variant=outline][data-v-1feccefe]{border-style:var(--tw-border-style);border-width:1px}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-spacing="0"][data-variant=outline][data-v-1feccefe]{border-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=default\\]\\:data-\\[variant\\=outline\\]\\:shadow-xs[data-spacing=default][data-variant=outline][data-v-1feccefe]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.wp\\:supports-backdrop-filter\\:bg-background\\/60[data-v-1feccefe]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:supports-backdrop-filter\\:bg-background\\/60[data-v-1feccefe]{background-color:color-mix(in oklab, var(--background) 60%, transparent)}}}@media (min-width:40rem){.wp\\:sm\\:block[data-v-1feccefe]{display:block}.wp\\:sm\\:inline[data-v-1feccefe]{display:inline}.wp\\:sm\\:inline-block[data-v-1feccefe]{display:inline-block}.wp\\:sm\\:max-w-lg[data-v-1feccefe]{max-width:var(--wp-container-lg)}.wp\\:sm\\:max-w-md[data-v-1feccefe]{max-width:var(--wp-container-md)}.wp\\:sm\\:max-w-sm[data-v-1feccefe]{max-width:var(--wp-container-sm)}.wp\\:sm\\:flex-row[data-v-1feccefe]{flex-direction:row}.wp\\:sm\\:justify-end[data-v-1feccefe]{justify-content:flex-end}.wp\\:sm\\:gap-0[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 0)}.wp\\:sm\\:rounded-lg[data-v-1feccefe]{border-radius:var(--radius)}.wp\\:sm\\:text-left[data-v-1feccefe]{text-align:left}}@media (min-width:48rem){.wp\\:md\\:w-full[data-v-1feccefe]{width:100%}.wp\\:md\\:text-sm[data-v-1feccefe]{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}}.wp\\:dark\\:border-input[data-v-1feccefe]:where(.dark,.dark *){border-color:var(--input)}.wp\\:dark\\:bg-amber-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-amber-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-amber-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-amber-900) 30%, transparent)}}.wp\\:dark\\:bg-blue-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-blue-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-blue-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-blue-900) 30%, transparent)}}.wp\\:dark\\:bg-destructive\\/60[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-destructive\\/60[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:dark\\:bg-emerald-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-emerald-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-emerald-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-emerald-900) 30%, transparent)}}.wp\\:dark\\:bg-input\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-input\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.wp\\:dark\\:bg-neutral-700[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-neutral-700)}.wp\\:dark\\:bg-neutral-800[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-neutral-800)}.wp\\:dark\\:bg-neutral-900[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:bg-neutral-900\\/70[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-neutral-900\\/70[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-neutral-900) 70%, transparent)}}.wp\\:dark\\:bg-purple-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-purple-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-purple-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-purple-900) 30%, transparent)}}.wp\\:dark\\:text-amber-400[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-amber-400)}.wp\\:dark\\:text-blue-400[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-blue-400)}.wp\\:dark\\:text-emerald-400[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-emerald-400)}.wp\\:dark\\:text-neutral-100[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-neutral-100)}.wp\\:dark\\:text-neutral-400[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-neutral-400)}.wp\\:dark\\:text-neutral-500[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-neutral-500)}.wp\\:dark\\:text-purple-400[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-purple-400)}.wp\\:dark\\:text-white[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-white)}@media (hover:hover){.wp\\:dark\\:hover\\:bg-accent\\/50[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-accent\\/50[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-input\\/50[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-input\\/50[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-600[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-600)}.wp\\:dark\\:hover\\:bg-neutral-800\\/80[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-800)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-neutral-800\\/80[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--wp-color-neutral-800) 80%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-900[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:hover\\:text-neutral-100[data-v-1feccefe]:where(.dark,.dark *):hover{color:var(--wp-color-neutral-100)}.wp\\:dark\\:hover\\:text-status-disconnected[data-v-1feccefe]:where(.dark,.dark *):hover{color:var(--status-disconnected)}}.wp\\:dark\\:focus-visible\\:ring-destructive\\/40[data-v-1feccefe]:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:focus-visible\\:ring-destructive\\/40[data-v-1feccefe]:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:focus-visible\\:ring-offset-neutral-900[data-v-1feccefe]:where(.dark,.dark *):focus-visible{--tw-ring-offset-color:var(--wp-color-neutral-900)}.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true][data-v-1feccefe]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true][data-v-1feccefe]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive][data-v-1feccefe]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive][data-v-1feccefe]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:\\[\\&_button\\]\\:cursor-pointer button[data-v-1feccefe]{cursor:pointer}.wp\\:\\[\\&_svg\\]\\:pointer-events-none svg[data-v-1feccefe]{pointer-events:none}.wp\\:\\[\\&_svg\\]\\:shrink-0 svg[data-v-1feccefe]{flex-shrink:0}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg[data-v-1feccefe]:not([class*=size-]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-3 svg[data-v-1feccefe]:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4 svg[data-v-1feccefe]:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'text-\\\\\\'\\]\\)\\]\\:text-muted-foreground svg[data-v-1feccefe]:not([class*="'text-'"]){color:var(--muted-foreground)}.wp\\:\\[\\.border-b\\]\\:pb-6.border-b[data-v-1feccefe]{padding-bottom:calc(var(--wp-spacing) * 6)}.wp\\:\\[\\.border-t\\]\\:pt-6.border-t[data-v-1feccefe]{padding-top:calc(var(--wp-spacing) * 6)}:is(.wp\\:\\*\\*\\:\\[\\[role\\=button\\]\\]\\:cursor-pointer *)[role=button][data-v-1feccefe]{cursor:pointer}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:flex[data-v-1feccefe]>*):-webkit-any(span):last-child{display:flex}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:flex[data-v-1feccefe]>*):is(span):last-child{display:flex}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center[data-v-1feccefe]>*):-webkit-any(span):last-child{align-items:center}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center[data-v-1feccefe]>*):is(span):last-child{align-items:center}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2[data-v-1feccefe]>*):-webkit-any(span):last-child{gap:calc(var(--wp-spacing) * 2)}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2[data-v-1feccefe]>*):is(span):last-child{gap:calc(var(--wp-spacing) * 2)}:-webkit-any(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive][data-v-1feccefe]>*):-webkit-any(svg){color:var(--destructive)!important}:is(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive][data-v-1feccefe]>*):is(svg){color:var(--destructive)!important}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:\\[\\&\\:not\\(\\:first-child\\)\\]\\:border-l-0[data-spacing="0"][data-variant=outline][data-v-1feccefe]:not(:first-child){border-left-style:var(--tw-border-style);border-left-width:0}.wp\\:\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg[data-v-1feccefe]{rotate:180deg}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20[data-v-1feccefe]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20[data-v-1feccefe]{background-color:color-mix(in oklab, var(--background) 20%, transparent)}}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:text-background[data-v-1feccefe]{color:var(--background)}[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--background) 10%, transparent)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:Ibrand;src:url(/fonts/Ibrand.otf)format("truetype");font-weight:100 900;font-style:normal;font-display:swap}svg [clip-path]{clip-path:none!important}:root{--radius:.625rem;--background:#fff;--foreground:#0a0a0a;--card:#fff;--card-foreground:#0a0a0a;--popover:#fff;--popover-foreground:#0a0a0a;--primary:var(--p-primary-color,#171717);--color-primary-500:#9b5ff5;--p-primary-color:var(--color-primary-500);--primary-foreground:#fafafa;--secondary:#f5f5f5;--secondary-foreground:#171717;--muted:#f5f5f5;--muted-foreground:#737373;--accent:#f5f5f5;--accent-foreground:#171717;--destructive:#e40014;--border:#e5e5e5;--input:#e5e5e5;--ring:#a1a1a1;--chart-1:#f05100;--chart-2:#009588;--chart-3:#104e64;--chart-4:#fcbb00;--chart-5:#f99c00;--sidebar:#fafafa;--sidebar-foreground:#0a0a0a;--sidebar-primary:#171717;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f5f5f5;--sidebar-accent-foreground:#171717;--sidebar-border:#e5e5e5;--sidebar-ring:#a1a1a1;--status-available:#00a544;--status-incall:#7a75b5;--status-hold:#f5c632;--status-incoming:#ac4bff;--status-disconnected:#fb2c36;--color-green:#81c200;--color-red:#ed3237;--color-blue:#7a75b5;--color-settings:#b3acd5;--color-avaible:#00c448;font-family:Montserrat,sans-serif}@supports (color:color(display-p3 0 0 0)){:root{--background:color(display-p3 1 1 1);--foreground:color(display-p3 .0393882 .0393882 .0393882);--card:color(display-p3 1 1 1);--card-foreground:color(display-p3 .0393882 .0393882 .0393882);--popover:color(display-p3 1 1 1);--popover-foreground:color(display-p3 .0393882 .0393882 .0393882);--primary:var(--p-primary-color,color(display-p3 .0905274 .0905274 .0905274));--primary-foreground:color(display-p3 .980256 .980256 .980256);--secondary:color(display-p3 .960587 .960587 .960587);--secondary-foreground:color(display-p3 .0905274 .0905274 .0905274);--muted:color(display-p3 .960587 .960587 .960587);--muted-foreground:color(display-p3 .451519 .451519 .451519);--accent:color(display-p3 .960587 .960587 .960587);--accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--destructive:color(display-p3 .830323 .140383 .133196);--border:color(display-p3 .898161 .898161 .898161);--input:color(display-p3 .898161 .898161 .898161);--ring:color(display-p3 .630163 .630163 .630163);--chart-1:color(display-p3 .887467 .341665 .0219962);--chart-2:color(display-p3 .207114 .579584 .53668);--chart-3:color(display-p3 .142586 .302008 .385094);--chart-4:color(display-p3 .959186 .738519 .118268);--chart-5:color(display-p3 .93994 .620584 .0585367);--sidebar:color(display-p3 .980256 .980256 .980256);--sidebar-foreground:color(display-p3 .0393882 .0393882 .0393882);--sidebar-primary:color(display-p3 .0905274 .0905274 .0905274);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .960587 .960587 .960587);--sidebar-accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--sidebar-border:color(display-p3 .898161 .898161 .898161);--sidebar-ring:color(display-p3 .630163 .630163 .630163);--status-available:color(display-p3 .243882 .640824 .294808);--status-incall:color(display-p3 .474968 .45946 .692102);--status-hold:color(display-p3 .930111 .782506 .322764);--status-incoming:color(display-p3 .629519 .30089 .990817);--status-disconnected:color(display-p3 .903738 .262579 .253307);--color-green:color(display-p3 .562304 .754036 .228809);--color-red:color(display-p3 .855599 .269309 .251664);--color-blue:color(display-p3 .474968 .45946 .692102);--color-settings:color(display-p3 .697185 .675441 .822883);--color-avaible:color(display-p3 .345782 .7571 .347428)}}@supports (color:lab(0% 0 0)){:root{--background:lab(100% 0 0);--foreground:lab(2.75381% 0 0);--card:lab(100% 0 0);--card-foreground:lab(2.75381% 0 0);--popover:lab(100% 0 0);--popover-foreground:lab(2.75381% 0 0);--primary:var(--p-primary-color,lab(7.78201% -.0000149012 0));--primary-foreground:lab(98.26% 0 0);--secondary:lab(96.52% -.0000298023 .0000119209);--secondary-foreground:lab(7.78201% -.0000149012 0);--muted:lab(96.52% -.0000298023 .0000119209);--muted-foreground:lab(48.496% 0 0);--accent:lab(96.52% -.0000298023 .0000119209);--accent-foreground:lab(7.78201% -.0000149012 0);--destructive:lab(48.4493% 77.4328 61.5452);--border:lab(90.952% 0 -.0000119209);--input:lab(90.952% 0 -.0000119209);--ring:lab(66.128% -.0000298023 .0000119209);--chart-1:lab(57.1026% 64.2584 89.8886);--chart-2:lab(55.0223% -41.0774 -3.90277);--chart-3:lab(30.372% -13.1853 -18.7887);--chart-4:lab(80.1641% 16.6016 99.2089);--chart-5:lab(72.7183% 31.8672 97.9407);--sidebar:lab(98.26% 0 0);--sidebar-foreground:lab(2.75381% 0 0);--sidebar-primary:lab(7.78201% -.0000149012 0);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(96.52% -.0000298023 .0000119209);--sidebar-accent-foreground:lab(7.78201% -.0000149012 0);--sidebar-border:lab(90.952% 0 -.0000119209);--sidebar-ring:lab(66.128% -.0000298023 .0000119209);--status-available:lab(59.0978% -58.6621 41.2579);--status-incall:lab(51.7014% 13.4467 -33.5273);--status-hold:lab(82.2725% 7.53289 73.9282);--status-incoming:lab(52.0183% 66.11 -78.2316);--status-disconnected:lab(55.4814% 75.0732 48.8528);--color-green:lab(71.931% -38.9071 70.3045);--color-red:lab(53.3473% 69.9469 45.351);--color-blue:lab(51.7014% 13.4467 -33.5273);--color-settings:lab(71.9851% 8.76683 -19.9302);--color-avaible:lab(69.443% -61.9097 48.3881)}}.dark{--background:#0a0a0a;--foreground:#fafafa;--card:#171717;--card-foreground:#fafafa;--popover:#171717;--popover-foreground:#fafafa;--primary:var(--p-primary-color,#e5e5e5);--primary-foreground:#171717;--secondary:#262626;--secondary-foreground:#fafafa;--muted:#262626;--muted-foreground:#a1a1a1;--accent:#262626;--accent-foreground:#fafafa;--destructive:#ff6568;--border:#ffffff1a;--input:#ffffff26;--ring:#737373;--chart-1:#1447e6;--chart-2:#00bb7f;--chart-3:#f99c00;--chart-4:#ac4bff;--chart-5:#ff2357;--sidebar:#171717;--sidebar-foreground:#fafafa;--sidebar-primary:#1447e6;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#262626;--sidebar-accent-foreground:#fafafa;--sidebar-border:#ffffff1a;--sidebar-ring:#737373;--status-available:#41cd6a;--status-incall:#54a2ff;--status-hold:#fccf2c;--status-incoming:#b971ff;--status-disconnected:#ff6568}@supports (color:color(display-p3 0 0 0)){.dark{--background:color(display-p3 .0393882 .0393882 .0393882);--foreground:color(display-p3 .980256 .980256 .980256);--card:color(display-p3 .0905274 .0905274 .0905274);--card-foreground:color(display-p3 .980256 .980256 .980256);--popover:color(display-p3 .0905274 .0905274 .0905274);--popover-foreground:color(display-p3 .980256 .980256 .980256);--primary:var(--p-primary-color,color(display-p3 .898161 .898161 .898161));--primary-foreground:color(display-p3 .0905274 .0905274 .0905274);--secondary:color(display-p3 .149382 .149382 .149382);--secondary-foreground:color(display-p3 .980256 .980256 .980256);--muted:color(display-p3 .149382 .149382 .149382);--muted-foreground:color(display-p3 .630163 .630163 .630163);--accent:color(display-p3 .149382 .149382 .149382);--accent-foreground:color(display-p3 .980256 .980256 .980256);--destructive:color(display-p3 .933534 .431676 .423491);--border:color(display-p3 1 1 1/.1);--input:color(display-p3 1 1 1/.15);--ring:color(display-p3 .451519 .451519 .451519);--chart-1:color(display-p3 .1379 .274983 .867624);--chart-2:color(display-p3 .267113 .726847 .508397);--chart-3:color(display-p3 .93994 .620584 .0585367);--chart-4:color(display-p3 .629519 .30089 .990817);--chart-5:color(display-p3 .921824 .240748 .355666);--sidebar:color(display-p3 .0905274 .0905274 .0905274);--sidebar-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-primary:color(display-p3 .1379 .274983 .867624);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .149382 .149382 .149382);--sidebar-accent-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-border:color(display-p3 1 1 1/.1);--sidebar-ring:color(display-p3 .451519 .451519 .451519);--status-available:color(display-p3 .425834 .792595 .456802);--status-incall:color(display-p3 .397443 .62813 .992116);--status-hold:color(display-p3 .958937 .816675 .321887);--status-incoming:color(display-p3 .692676 .438266 1.01683);--status-disconnected:color(display-p3 .933534 .431676 .423491)}}@supports (color:lab(0% 0 0)){.dark{--background:lab(2.75381% 0 0);--foreground:lab(98.26% 0 0);--card:lab(7.78201% -.0000149012 0);--card-foreground:lab(98.26% 0 0);--popover:lab(7.78201% -.0000149012 0);--popover-foreground:lab(98.26% 0 0);--primary:var(--p-primary-color,lab(90.952% 0 -.0000119209));--primary-foreground:lab(7.78201% -.0000149012 0);--secondary:lab(15.204% 0 -.00000596046);--secondary-foreground:lab(98.26% 0 0);--muted:lab(15.204% 0 -.00000596046);--muted-foreground:lab(66.128% -.0000298023 .0000119209);--accent:lab(15.204% 0 -.00000596046);--accent-foreground:lab(98.26% 0 0);--destructive:lab(63.7053% 60.745 31.3109);--border:lab(100% 0 0/.1);--input:lab(100% 0 0/.15);--ring:lab(48.496% 0 0);--chart-1:lab(36.9089% 35.0961 -85.6872);--chart-2:lab(66.9756% -58.27 19.5419);--chart-3:lab(72.7183% 31.8672 97.9407);--chart-4:lab(52.0183% 66.11 -78.2316);--chart-5:lab(56.101% 79.4328 31.4532);--sidebar:lab(7.78201% -.0000149012 0);--sidebar-foreground:lab(98.26% 0 0);--sidebar-primary:lab(36.9089% 35.0961 -85.6872);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(15.204% 0 -.00000596046);--sidebar-accent-foreground:lab(98.26% 0 0);--sidebar-border:lab(100% 0 0/.1);--sidebar-ring:lab(48.496% 0 0);--status-available:lab(73.3941% -54.8093 37.6928);--status-incall:lab(65.0361% -1.42065 -56.9802);--status-hold:lab(85.1352% 6.10837 78.1641);--status-incoming:lab(60.4586% 54.1298 -67.8379);--status-disconnected:lab(63.7053% 60.745 31.3109)}}.ibrand{font-family:Ibrand,sans-serif}.montserrat{font-family:Montserrat}.quicksand{font-family:Quicksand}.manrope{font-family:Manrope}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}.p-input::placeholder{color:#959595;font-size:12px}@font-face{font-family:Ibrand;src:url(/fonts/Ibrand.otf)format("truetype");font-weight:100 900;font-style:normal;font-display:swap}svg [clip-path][data-v-1feccefe]{clip-path:none!important}[data-v-1feccefe]:root{--radius:.625rem;--background:#fff;--foreground:#0a0a0a;--card:#fff;--card-foreground:#0a0a0a;--popover:#fff;--popover-foreground:#0a0a0a;--primary:var(--p-primary-color,#171717);--color-primary-500:#9b5ff5;--p-primary-color:var(--color-primary-500);--primary-foreground:#fafafa;--secondary:#f5f5f5;--secondary-foreground:#171717;--muted:#f5f5f5;--muted-foreground:#737373;--accent:#f5f5f5;--accent-foreground:#171717;--destructive:#e40014;--border:#e5e5e5;--input:#e5e5e5;--ring:#a1a1a1;--chart-1:#f05100;--chart-2:#009588;--chart-3:#104e64;--chart-4:#fcbb00;--chart-5:#f99c00;--sidebar:#fafafa;--sidebar-foreground:#0a0a0a;--sidebar-primary:#171717;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f5f5f5;--sidebar-accent-foreground:#171717;--sidebar-border:#e5e5e5;--sidebar-ring:#a1a1a1;--status-available:#00a544;--status-incall:#7a75b5;--status-hold:#f5c632;--status-incoming:#ac4bff;--status-disconnected:#fb2c36;--color-green:#81c200;--color-red:#ed3237;--color-blue:#7a75b5;--color-settings:#b3acd5;--color-avaible:#00c448;font-family:Montserrat,sans-serif}@supports (color:color(display-p3 0 0 0)){[data-v-1feccefe]:root{--background:color(display-p3 1 1 1);--foreground:color(display-p3 .0393882 .0393882 .0393882);--card:color(display-p3 1 1 1);--card-foreground:color(display-p3 .0393882 .0393882 .0393882);--popover:color(display-p3 1 1 1);--popover-foreground:color(display-p3 .0393882 .0393882 .0393882);--primary:var(--p-primary-color,color(display-p3 .0905274 .0905274 .0905274));--primary-foreground:color(display-p3 .980256 .980256 .980256);--secondary:color(display-p3 .960587 .960587 .960587);--secondary-foreground:color(display-p3 .0905274 .0905274 .0905274);--muted:color(display-p3 .960587 .960587 .960587);--muted-foreground:color(display-p3 .451519 .451519 .451519);--accent:color(display-p3 .960587 .960587 .960587);--accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--destructive:color(display-p3 .830323 .140383 .133196);--border:color(display-p3 .898161 .898161 .898161);--input:color(display-p3 .898161 .898161 .898161);--ring:color(display-p3 .630163 .630163 .630163);--chart-1:color(display-p3 .887467 .341665 .0219962);--chart-2:color(display-p3 .207114 .579584 .53668);--chart-3:color(display-p3 .142586 .302008 .385094);--chart-4:color(display-p3 .959186 .738519 .118268);--chart-5:color(display-p3 .93994 .620584 .0585367);--sidebar:color(display-p3 .980256 .980256 .980256);--sidebar-foreground:color(display-p3 .0393882 .0393882 .0393882);--sidebar-primary:color(display-p3 .0905274 .0905274 .0905274);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .960587 .960587 .960587);--sidebar-accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--sidebar-border:color(display-p3 .898161 .898161 .898161);--sidebar-ring:color(display-p3 .630163 .630163 .630163);--status-available:color(display-p3 .243882 .640824 .294808);--status-incall:color(display-p3 .474968 .45946 .692102);--status-hold:color(display-p3 .930111 .782506 .322764);--status-incoming:color(display-p3 .629519 .30089 .990817);--status-disconnected:color(display-p3 .903738 .262579 .253307);--color-green:color(display-p3 .562304 .754036 .228809);--color-red:color(display-p3 .855599 .269309 .251664);--color-blue:color(display-p3 .474968 .45946 .692102);--color-settings:color(display-p3 .697185 .675441 .822883);--color-avaible:color(display-p3 .345782 .7571 .347428)}}@supports (color:lab(0% 0 0)){[data-v-1feccefe]:root{--background:lab(100% 0 0);--foreground:lab(2.75381% 0 0);--card:lab(100% 0 0);--card-foreground:lab(2.75381% 0 0);--popover:lab(100% 0 0);--popover-foreground:lab(2.75381% 0 0);--primary:var(--p-primary-color,lab(7.78201% -.0000149012 0));--primary-foreground:lab(98.26% 0 0);--secondary:lab(96.52% -.0000298023 .0000119209);--secondary-foreground:lab(7.78201% -.0000149012 0);--muted:lab(96.52% -.0000298023 .0000119209);--muted-foreground:lab(48.496% 0 0);--accent:lab(96.52% -.0000298023 .0000119209);--accent-foreground:lab(7.78201% -.0000149012 0);--destructive:lab(48.4493% 77.4328 61.5452);--border:lab(90.952% 0 -.0000119209);--input:lab(90.952% 0 -.0000119209);--ring:lab(66.128% -.0000298023 .0000119209);--chart-1:lab(57.1026% 64.2584 89.8886);--chart-2:lab(55.0223% -41.0774 -3.90277);--chart-3:lab(30.372% -13.1853 -18.7887);--chart-4:lab(80.1641% 16.6016 99.2089);--chart-5:lab(72.7183% 31.8672 97.9407);--sidebar:lab(98.26% 0 0);--sidebar-foreground:lab(2.75381% 0 0);--sidebar-primary:lab(7.78201% -.0000149012 0);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(96.52% -.0000298023 .0000119209);--sidebar-accent-foreground:lab(7.78201% -.0000149012 0);--sidebar-border:lab(90.952% 0 -.0000119209);--sidebar-ring:lab(66.128% -.0000298023 .0000119209);--status-available:lab(59.0978% -58.6621 41.2579);--status-incall:lab(51.7014% 13.4467 -33.5273);--status-hold:lab(82.2725% 7.53289 73.9282);--status-incoming:lab(52.0183% 66.11 -78.2316);--status-disconnected:lab(55.4814% 75.0732 48.8528);--color-green:lab(71.931% -38.9071 70.3045);--color-red:lab(53.3473% 69.9469 45.351);--color-blue:lab(51.7014% 13.4467 -33.5273);--color-settings:lab(71.9851% 8.76683 -19.9302);--color-avaible:lab(69.443% -61.9097 48.3881)}}.dark[data-v-1feccefe]{--background:#0a0a0a;--foreground:#fafafa;--card:#171717;--card-foreground:#fafafa;--popover:#171717;--popover-foreground:#fafafa;--primary:var(--p-primary-color,#e5e5e5);--primary-foreground:#171717;--secondary:#262626;--secondary-foreground:#fafafa;--muted:#262626;--muted-foreground:#a1a1a1;--accent:#262626;--accent-foreground:#fafafa;--destructive:#ff6568;--border:#ffffff1a;--input:#ffffff26;--ring:#737373;--chart-1:#1447e6;--chart-2:#00bb7f;--chart-3:#f99c00;--chart-4:#ac4bff;--chart-5:#ff2357;--sidebar:#171717;--sidebar-foreground:#fafafa;--sidebar-primary:#1447e6;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#262626;--sidebar-accent-foreground:#fafafa;--sidebar-border:#ffffff1a;--sidebar-ring:#737373;--status-available:#41cd6a;--status-incall:#54a2ff;--status-hold:#fccf2c;--status-incoming:#b971ff;--status-disconnected:#ff6568}@supports (color:color(display-p3 0 0 0)){.dark[data-v-1feccefe]{--background:color(display-p3 .0393882 .0393882 .0393882);--foreground:color(display-p3 .980256 .980256 .980256);--card:color(display-p3 .0905274 .0905274 .0905274);--card-foreground:color(display-p3 .980256 .980256 .980256);--popover:color(display-p3 .0905274 .0905274 .0905274);--popover-foreground:color(display-p3 .980256 .980256 .980256);--primary:var(--p-primary-color,color(display-p3 .898161 .898161 .898161));--primary-foreground:color(display-p3 .0905274 .0905274 .0905274);--secondary:color(display-p3 .149382 .149382 .149382);--secondary-foreground:color(display-p3 .980256 .980256 .980256);--muted:color(display-p3 .149382 .149382 .149382);--muted-foreground:color(display-p3 .630163 .630163 .630163);--accent:color(display-p3 .149382 .149382 .149382);--accent-foreground:color(display-p3 .980256 .980256 .980256);--destructive:color(display-p3 .933534 .431676 .423491);--border:color(display-p3 1 1 1/.1);--input:color(display-p3 1 1 1/.15);--ring:color(display-p3 .451519 .451519 .451519);--chart-1:color(display-p3 .1379 .274983 .867624);--chart-2:color(display-p3 .267113 .726847 .508397);--chart-3:color(display-p3 .93994 .620584 .0585367);--chart-4:color(display-p3 .629519 .30089 .990817);--chart-5:color(display-p3 .921824 .240748 .355666);--sidebar:color(display-p3 .0905274 .0905274 .0905274);--sidebar-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-primary:color(display-p3 .1379 .274983 .867624);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .149382 .149382 .149382);--sidebar-accent-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-border:color(display-p3 1 1 1/.1);--sidebar-ring:color(display-p3 .451519 .451519 .451519);--status-available:color(display-p3 .425834 .792595 .456802);--status-incall:color(display-p3 .397443 .62813 .992116);--status-hold:color(display-p3 .958937 .816675 .321887);--status-incoming:color(display-p3 .692676 .438266 1.01683);--status-disconnected:color(display-p3 .933534 .431676 .423491)}}@supports (color:lab(0% 0 0)){.dark[data-v-1feccefe]{--background:lab(2.75381% 0 0);--foreground:lab(98.26% 0 0);--card:lab(7.78201% -.0000149012 0);--card-foreground:lab(98.26% 0 0);--popover:lab(7.78201% -.0000149012 0);--popover-foreground:lab(98.26% 0 0);--primary:var(--p-primary-color,lab(90.952% 0 -.0000119209));--primary-foreground:lab(7.78201% -.0000149012 0);--secondary:lab(15.204% 0 -.00000596046);--secondary-foreground:lab(98.26% 0 0);--muted:lab(15.204% 0 -.00000596046);--muted-foreground:lab(66.128% -.0000298023 .0000119209);--accent:lab(15.204% 0 -.00000596046);--accent-foreground:lab(98.26% 0 0);--destructive:lab(63.7053% 60.745 31.3109);--border:lab(100% 0 0/.1);--input:lab(100% 0 0/.15);--ring:lab(48.496% 0 0);--chart-1:lab(36.9089% 35.0961 -85.6872);--chart-2:lab(66.9756% -58.27 19.5419);--chart-3:lab(72.7183% 31.8672 97.9407);--chart-4:lab(52.0183% 66.11 -78.2316);--chart-5:lab(56.101% 79.4328 31.4532);--sidebar:lab(7.78201% -.0000149012 0);--sidebar-foreground:lab(98.26% 0 0);--sidebar-primary:lab(36.9089% 35.0961 -85.6872);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(15.204% 0 -.00000596046);--sidebar-accent-foreground:lab(98.26% 0 0);--sidebar-border:lab(100% 0 0/.1);--sidebar-ring:lab(48.496% 0 0);--status-available:lab(73.3941% -54.8093 37.6928);--status-incall:lab(65.0361% -1.42065 -56.9802);--status-hold:lab(85.1352% 6.10837 78.1641);--status-incoming:lab(60.4586% 54.1298 -67.8379);--status-disconnected:lab(63.7053% 60.745 31.3109)}}.ibrand[data-v-1feccefe]{font-family:Ibrand,sans-serif}.montserrat[data-v-1feccefe]{font-family:Montserrat}.quicksand[data-v-1feccefe]{font-family:Quicksand}.manrope[data-v-1feccefe]{font-family:Manrope}@keyframes pulse-1feccefe{50%{opacity:.5}}@keyframes enter-1feccefe{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit-1feccefe{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down-1feccefe{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up-1feccefe{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}
|
|
1
|
+
(function(){try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(`@import "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Monda:wght@400..700&display=swap&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap&family=Quicksand:wght@300..700&display=swap";@import "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Monda:wght@400..700&display=swap&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap&family=Quicksand:wght@300..700&display=swap";@layer components;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}[data-v-1feccefe],[data-v-1feccefe]:before,[data-v-1feccefe]:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}[data-v-1feccefe]::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--wp-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--wp-color-red-500:#fb2c36;--wp-color-amber-100:#fef3c6;--wp-color-amber-400:#fcbb00;--wp-color-amber-500:#f99c00;--wp-color-amber-600:#dd7400;--wp-color-amber-900:#7b3306;--wp-color-green-500:#00c758;--wp-color-emerald-100:#d0fae5;--wp-color-emerald-400:#00d294;--wp-color-emerald-600:#009767;--wp-color-emerald-900:#004e3b;--wp-color-blue-100:#dbeafe;--wp-color-blue-400:#54a2ff;--wp-color-blue-500:#3080ff;--wp-color-blue-600:#155dfc;--wp-color-blue-900:#1c398e;--wp-color-purple-100:#f3e8ff;--wp-color-purple-400:#c07eff;--wp-color-purple-600:#9810fa;--wp-color-purple-900:#59168b;--wp-color-neutral-100:#f5f5f5;--wp-color-neutral-200:#e5e5e5;--wp-color-neutral-400:#a1a1a1;--wp-color-neutral-500:#737373;--wp-color-neutral-600:#525252;--wp-color-neutral-700:#404040;--wp-color-neutral-800:#262626;--wp-color-neutral-900:#171717;--wp-color-black:#000;--wp-color-white:#fff;--wp-spacing:.25rem;--wp-breakpoint-2xl:96rem;--wp-container-sm:24rem;--wp-container-md:28rem;--wp-container-lg:32rem;--wp-text-xs:.75rem;--wp-text-xs--line-height:calc(1 / .75);--wp-text-sm:.875rem;--wp-text-sm--line-height:calc(1.25 / .875);--wp-text-base:1rem;--wp-text-base--line-height:calc(1.5 / 1);--wp-text-lg:1.125rem;--wp-text-lg--line-height:calc(1.75 / 1.125);--wp-text-3xl:1.875rem;--wp-text-3xl--line-height:calc(2.25 / 1.875);--wp-font-weight-light:300;--wp-font-weight-medium:500;--wp-font-weight-semibold:600;--wp-font-weight-bold:700;--wp-tracking-wider:.05em;--wp-tracking-widest:.1em;--wp-radius-xs:.125rem;--wp-radius-2xl:1rem;--wp-ease-in-out:cubic-bezier(.4, 0, .2, 1);--wp-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--wp-aspect-video:16 / 9;--wp-default-transition-duration:.15s;--wp-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--wp-default-font-family:"Montserrat", sans-serif;--wp-default-mono-font-family:var(--wp-font-mono)}@supports (color:color(display-p3 0 0 0)){:root,:host{--wp-color-red-500:color(display-p3 .903738 .262579 .253307);--wp-color-amber-100:color(display-p3 .989391 .954583 .796328);--wp-color-amber-400:color(display-p3 .959186 .738519 .118268);--wp-color-amber-500:color(display-p3 .93994 .620584 .0585367);--wp-color-amber-600:color(display-p3 .827144 .467166 .0336006);--wp-color-amber-900:color(display-p3 .445958 .216422 .0823321);--wp-color-green-500:color(display-p3 .308734 .774754 .374307);--wp-color-emerald-100:color(display-p3 .848335 .975974 .901691);--wp-color-emerald-400:color(display-p3 .334701 .819603 .591575);--wp-color-emerald-600:color(display-p3 .206557 .589057 .413962);--wp-color-emerald-900:color(display-p3 .117821 .302975 .234501);--wp-color-blue-100:color(display-p3 .869214 .915931 .989622);--wp-color-blue-400:color(display-p3 .397443 .62813 .992116);--wp-color-blue-500:color(display-p3 .266422 .491219 .988624);--wp-color-blue-600:color(display-p3 .174493 .358974 .950247);--wp-color-blue-900:color(display-p3 .136395 .219428 .537145);--wp-color-purple-100:color(display-p3 .945034 .910569 .992972);--wp-color-purple-400:color(display-p3 .719919 .492497 .995173);--wp-color-purple-600:color(display-p3 .546729 .130167 .94439);--wp-color-purple-900:color(display-p3 .321698 .107597 .524563);--wp-color-neutral-100:color(display-p3 .960587 .960587 .960587);--wp-color-neutral-200:color(display-p3 .898161 .898161 .898161);--wp-color-neutral-400:color(display-p3 .630163 .630163 .630163);--wp-color-neutral-500:color(display-p3 .451519 .451519 .451519);--wp-color-neutral-600:color(display-p3 .321993 .321993 .321993);--wp-color-neutral-700:color(display-p3 .250471 .250471 .250471);--wp-color-neutral-800:color(display-p3 .149382 .149382 .149382);--wp-color-neutral-900:color(display-p3 .0905274 .0905274 .0905274)}}@supports (color:lab(0% 0 0)){:root,:host{--wp-color-red-500:lab(55.4814% 75.0732 48.8528);--wp-color-amber-100:lab(95.916% -1.21653 23.111);--wp-color-amber-400:lab(80.1641% 16.6016 99.2089);--wp-color-amber-500:lab(72.7183% 31.8672 97.9407);--wp-color-amber-600:lab(60.3514% 40.5624 87.1228);--wp-color-amber-900:lab(31.2288% 30.2627 40.0378);--wp-color-green-500:lab(70.5521% -66.5147 45.8073);--wp-color-emerald-100:lab(94.9004% -17.0769 5.63836);--wp-color-emerald-400:lab(75.0771% -60.7313 19.4147);--wp-color-emerald-600:lab(55.0481% -49.9246 15.93);--wp-color-emerald-900:lab(28.8637% -26.9249 5.45986);--wp-color-blue-100:lab(92.0301% -2.24757 -11.6453);--wp-color-blue-400:lab(65.0361% -1.42065 -56.9802);--wp-color-blue-500:lab(54.1736% 13.3369 -74.6839);--wp-color-blue-600:lab(44.0605% 29.0279 -86.0352);--wp-color-blue-900:lab(26.1542% 15.7545 -51.5504);--wp-color-purple-100:lab(93.3333% 6.97437 -9.83434);--wp-color-purple-400:lab(63.6946% 47.6127 -59.2066);--wp-color-purple-600:lab(43.0295% 75.21 -86.5669);--wp-color-purple-900:lab(24.9401% 45.2703 -51.2728);--wp-color-neutral-100:lab(96.52% -.0000298023 .0000119209);--wp-color-neutral-200:lab(90.952% 0 -.0000119209);--wp-color-neutral-400:lab(66.128% -.0000298023 .0000119209);--wp-color-neutral-500:lab(48.496% 0 0);--wp-color-neutral-600:lab(34.924% 0 0);--wp-color-neutral-700:lab(27.036% 0 0);--wp-color-neutral-800:lab(15.204% 0 -.00000596046);--wp-color-neutral-900:lab(7.78201% -.0000149012 0)}}[data-v-1feccefe]:root,[data-v-1feccefe]:host{--wp-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--wp-color-red-500:#fb2c36;--wp-color-amber-100:#fef3c6;--wp-color-amber-400:#fcbb00;--wp-color-amber-500:#f99c00;--wp-color-amber-600:#dd7400;--wp-color-amber-900:#7b3306;--wp-color-green-500:#00c758;--wp-color-emerald-100:#d0fae5;--wp-color-emerald-400:#00d294;--wp-color-emerald-600:#009767;--wp-color-emerald-900:#004e3b;--wp-color-blue-100:#dbeafe;--wp-color-blue-400:#54a2ff;--wp-color-blue-500:#3080ff;--wp-color-blue-600:#155dfc;--wp-color-blue-900:#1c398e;--wp-color-purple-100:#f3e8ff;--wp-color-purple-400:#c07eff;--wp-color-purple-600:#9810fa;--wp-color-purple-900:#59168b;--wp-color-neutral-100:#f5f5f5;--wp-color-neutral-200:#e5e5e5;--wp-color-neutral-400:#a1a1a1;--wp-color-neutral-500:#737373;--wp-color-neutral-600:#525252;--wp-color-neutral-700:#404040;--wp-color-neutral-800:#262626;--wp-color-neutral-900:#171717;--wp-color-black:#000;--wp-color-white:#fff;--wp-spacing:.25rem;--wp-breakpoint-2xl:96rem;--wp-container-sm:24rem;--wp-container-md:28rem;--wp-container-lg:32rem;--wp-text-xs:.75rem;--wp-text-xs--line-height:calc(1 / .75);--wp-text-sm:.875rem;--wp-text-sm--line-height:calc(1.25 / .875);--wp-text-base:1rem;--wp-text-base--line-height:calc(1.5 / 1);--wp-text-lg:1.125rem;--wp-text-lg--line-height:calc(1.75 / 1.125);--wp-text-3xl:1.875rem;--wp-text-3xl--line-height:calc(2.25 / 1.875);--wp-font-weight-light:300;--wp-font-weight-medium:500;--wp-font-weight-semibold:600;--wp-font-weight-bold:700;--wp-tracking-wider:.05em;--wp-tracking-widest:.1em;--wp-radius-xs:.125rem;--wp-radius-2xl:1rem;--wp-ease-in-out:cubic-bezier(.4, 0, .2, 1);--wp-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--wp-aspect-video:16 / 9;--wp-default-transition-duration:.15s;--wp-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--wp-default-font-family:"Montserrat", sans-serif;--wp-default-mono-font-family:var(--wp-font-mono)}@supports (color:color(display-p3 0 0 0)){[data-v-1feccefe]:root,[data-v-1feccefe]:host{--wp-color-red-500:color(display-p3 .903738 .262579 .253307);--wp-color-amber-100:color(display-p3 .989391 .954583 .796328);--wp-color-amber-400:color(display-p3 .959186 .738519 .118268);--wp-color-amber-500:color(display-p3 .93994 .620584 .0585367);--wp-color-amber-600:color(display-p3 .827144 .467166 .0336006);--wp-color-amber-900:color(display-p3 .445958 .216422 .0823321);--wp-color-green-500:color(display-p3 .308734 .774754 .374307);--wp-color-emerald-100:color(display-p3 .848335 .975974 .901691);--wp-color-emerald-400:color(display-p3 .334701 .819603 .591575);--wp-color-emerald-600:color(display-p3 .206557 .589057 .413962);--wp-color-emerald-900:color(display-p3 .117821 .302975 .234501);--wp-color-blue-100:color(display-p3 .869214 .915931 .989622);--wp-color-blue-400:color(display-p3 .397443 .62813 .992116);--wp-color-blue-500:color(display-p3 .266422 .491219 .988624);--wp-color-blue-600:color(display-p3 .174493 .358974 .950247);--wp-color-blue-900:color(display-p3 .136395 .219428 .537145);--wp-color-purple-100:color(display-p3 .945034 .910569 .992972);--wp-color-purple-400:color(display-p3 .719919 .492497 .995173);--wp-color-purple-600:color(display-p3 .546729 .130167 .94439);--wp-color-purple-900:color(display-p3 .321698 .107597 .524563);--wp-color-neutral-100:color(display-p3 .960587 .960587 .960587);--wp-color-neutral-200:color(display-p3 .898161 .898161 .898161);--wp-color-neutral-400:color(display-p3 .630163 .630163 .630163);--wp-color-neutral-500:color(display-p3 .451519 .451519 .451519);--wp-color-neutral-600:color(display-p3 .321993 .321993 .321993);--wp-color-neutral-700:color(display-p3 .250471 .250471 .250471);--wp-color-neutral-800:color(display-p3 .149382 .149382 .149382);--wp-color-neutral-900:color(display-p3 .0905274 .0905274 .0905274)}}@supports (color:lab(0% 0 0)){[data-v-1feccefe]:root,[data-v-1feccefe]:host{--wp-color-red-500:lab(55.4814% 75.0732 48.8528);--wp-color-amber-100:lab(95.916% -1.21653 23.111);--wp-color-amber-400:lab(80.1641% 16.6016 99.2089);--wp-color-amber-500:lab(72.7183% 31.8672 97.9407);--wp-color-amber-600:lab(60.3514% 40.5624 87.1228);--wp-color-amber-900:lab(31.2288% 30.2627 40.0378);--wp-color-green-500:lab(70.5521% -66.5147 45.8073);--wp-color-emerald-100:lab(94.9004% -17.0769 5.63836);--wp-color-emerald-400:lab(75.0771% -60.7313 19.4147);--wp-color-emerald-600:lab(55.0481% -49.9246 15.93);--wp-color-emerald-900:lab(28.8637% -26.9249 5.45986);--wp-color-blue-100:lab(92.0301% -2.24757 -11.6453);--wp-color-blue-400:lab(65.0361% -1.42065 -56.9802);--wp-color-blue-500:lab(54.1736% 13.3369 -74.6839);--wp-color-blue-600:lab(44.0605% 29.0279 -86.0352);--wp-color-blue-900:lab(26.1542% 15.7545 -51.5504);--wp-color-purple-100:lab(93.3333% 6.97437 -9.83434);--wp-color-purple-400:lab(63.6946% 47.6127 -59.2066);--wp-color-purple-600:lab(43.0295% 75.21 -86.5669);--wp-color-purple-900:lab(24.9401% 45.2703 -51.2728);--wp-color-neutral-100:lab(96.52% -.0000298023 .0000119209);--wp-color-neutral-200:lab(90.952% 0 -.0000119209);--wp-color-neutral-400:lab(66.128% -.0000298023 .0000119209);--wp-color-neutral-500:lab(48.496% 0 0);--wp-color-neutral-600:lab(34.924% 0 0);--wp-color-neutral-700:lab(27.036% 0 0);--wp-color-neutral-800:lab(15.204% 0 -.00000596046);--wp-color-neutral-900:lab(7.78201% -.0000149012 0)}}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--wp-default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--wp-default-font-feature-settings,normal);font-variation-settings:var(--wp-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--wp-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--wp-default-mono-font-feature-settings,normal);font-variation-settings:var(--wp-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::-webkit-file-upload-button{margin-inline-end:4px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground)}[data-v-1feccefe],[data-v-1feccefe]:after,[data-v-1feccefe]:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-1feccefe]::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-1feccefe]::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}[data-v-1feccefe]::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html[data-v-1feccefe],[data-v-1feccefe]:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--wp-default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--wp-default-font-feature-settings,normal);font-variation-settings:var(--wp-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr[data-v-1feccefe]{height:0;color:inherit;border-top-width:1px}abbr[data-v-1feccefe]:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1[data-v-1feccefe],h2[data-v-1feccefe],h3[data-v-1feccefe],h4[data-v-1feccefe],h5[data-v-1feccefe],h6[data-v-1feccefe]{font-size:inherit;font-weight:inherit}a[data-v-1feccefe]{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b[data-v-1feccefe],strong[data-v-1feccefe]{font-weight:bolder}code[data-v-1feccefe],kbd[data-v-1feccefe],samp[data-v-1feccefe],pre[data-v-1feccefe]{font-family:var(--wp-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--wp-default-mono-font-feature-settings,normal);font-variation-settings:var(--wp-default-mono-font-variation-settings,normal);font-size:1em}small[data-v-1feccefe]{font-size:80%}sub[data-v-1feccefe],sup[data-v-1feccefe]{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub[data-v-1feccefe]{bottom:-.25em}sup[data-v-1feccefe]{top:-.5em}table[data-v-1feccefe]{text-indent:0;border-color:inherit;border-collapse:collapse}[data-v-1feccefe]:-moz-focusring{outline:auto}progress[data-v-1feccefe]{vertical-align:baseline}summary[data-v-1feccefe]{display:list-item}ol[data-v-1feccefe],ul[data-v-1feccefe],menu[data-v-1feccefe]{list-style:none}img[data-v-1feccefe],svg[data-v-1feccefe],video[data-v-1feccefe],canvas[data-v-1feccefe],audio[data-v-1feccefe],iframe[data-v-1feccefe],embed[data-v-1feccefe],object[data-v-1feccefe]{vertical-align:middle;display:block}img[data-v-1feccefe],video[data-v-1feccefe]{max-width:100%;height:auto}button[data-v-1feccefe],input[data-v-1feccefe],select[data-v-1feccefe],optgroup[data-v-1feccefe],textarea[data-v-1feccefe]{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}[data-v-1feccefe]::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}[data-v-1feccefe]::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup[data-v-1feccefe]{font-weight:bolder}:where(select:is([multiple],[size])) optgroup[data-v-1feccefe]{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option[data-v-1feccefe]{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option[data-v-1feccefe]{padding-inline-start:20px}[data-v-1feccefe]::-webkit-file-upload-button{margin-inline-end:4px}[data-v-1feccefe]::file-selector-button{margin-inline-end:4px}[data-v-1feccefe]::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){[data-v-1feccefe]::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){[data-v-1feccefe]::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea[data-v-1feccefe]{resize:vertical}[data-v-1feccefe]::-webkit-search-decoration{-webkit-appearance:none}[data-v-1feccefe]::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}[data-v-1feccefe]::-webkit-datetime-edit{display:inline-flex}[data-v-1feccefe]::-webkit-datetime-edit-fields-wrapper{padding:0}[data-v-1feccefe]::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}[data-v-1feccefe]::-webkit-calendar-picker-indicator{line-height:1}[data-v-1feccefe]:-moz-ui-invalid{box-shadow:none}button[data-v-1feccefe]{-webkit-appearance:button;appearance:button}input[data-v-1feccefe]:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}[data-v-1feccefe]::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}[data-v-1feccefe]::file-selector-button{-webkit-appearance:button;appearance:button}[data-v-1feccefe]::-webkit-inner-spin-button{height:auto}[data-v-1feccefe]::-webkit-outer-spin-button{height:auto}[hidden][data-v-1feccefe]:where(:not([hidden=until-found])){display:none!important}[data-v-1feccefe]{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){[data-v-1feccefe]{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body[data-v-1feccefe]{background-color:var(--background);color:var(--foreground)}}@layer utilities{.wp\\:\\@container\\/card-header{container:card-header/inline-size}.wp\\:pointer-events-none{pointer-events:none}.wp\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wp\\:absolute{position:absolute}.wp\\:fixed{position:fixed}.wp\\:relative{position:relative}.wp\\:sticky{position:sticky}.wp\\:inset-0{inset:calc(var(--wp-spacing) * 0)}.wp\\:inset-x-0{inset-inline:calc(var(--wp-spacing) * 0)}.wp\\:top-0{top:calc(var(--wp-spacing) * 0)}.wp\\:top-1\\/2{top:50%}.wp\\:top-2\\.5{top:calc(var(--wp-spacing) * 2.5)}.wp\\:top-4{top:calc(var(--wp-spacing) * 4)}.wp\\:top-\\[50\\%\\]{top:50%}.wp\\:top-full{top:100%}.wp\\:right-0{right:calc(var(--wp-spacing) * 0)}.wp\\:right-1{right:calc(var(--wp-spacing) * 1)}.wp\\:right-2{right:calc(var(--wp-spacing) * 2)}.wp\\:right-4{right:calc(var(--wp-spacing) * 4)}.wp\\:bottom-2{bottom:calc(var(--wp-spacing) * 2)}.wp\\:bottom-full{bottom:100%}.wp\\:left-0{left:calc(var(--wp-spacing) * 0)}.wp\\:left-0\\.5{left:calc(var(--wp-spacing) * .5)}.wp\\:left-2{left:calc(var(--wp-spacing) * 2)}.wp\\:left-\\[50\\%\\]{left:50%}.wp\\:z-10{z-index:10}.wp\\:z-40{z-index:40}.wp\\:z-50{z-index:50}.wp\\:order-first{order:-9999}.wp\\:col-start-2{grid-column-start:2}.wp\\:row-span-2{grid-row:span 2/span 2}.wp\\:row-start-1{grid-row-start:1}.wp\\:container{width:100%}@media (min-width:40rem){.wp\\:container{max-width:40rem}}@media (min-width:48rem){.wp\\:container{max-width:48rem}}@media (min-width:64rem){.wp\\:container{max-width:64rem}}@media (min-width:80rem){.wp\\:container{max-width:80rem}}@media (min-width:96rem){.wp\\:container{max-width:96rem}}.wp\\:-mx-1{margin-inline:calc(var(--wp-spacing) * -1)}.wp\\:mx-2{margin-inline:calc(var(--wp-spacing) * 2)}.wp\\:mx-auto{margin-inline-start:auto;margin-inline-end:auto}.wp\\:my-1{margin-block:calc(var(--wp-spacing) * 1)}.wp\\:my-2{margin-block:calc(var(--wp-spacing) * 2)}.wp\\:my-8{margin-block:calc(var(--wp-spacing) * 8)}.wp\\:mt-1{margin-top:calc(var(--wp-spacing) * 1)}.wp\\:mr-4{margin-right:calc(var(--wp-spacing) * 4)}.wp\\:mr-auto{margin-right:auto}.wp\\:mb-1{margin-bottom:calc(var(--wp-spacing) * 1)}.wp\\:mb-2{margin-bottom:calc(var(--wp-spacing) * 2)}.wp\\:mb-4{margin-bottom:calc(var(--wp-spacing) * 4)}.wp\\:mb-5{margin-bottom:calc(var(--wp-spacing) * 5)}.wp\\:ml-auto{margin-left:auto}.wp\\:block{display:block}.wp\\:flex{display:flex}.wp\\:grid{display:grid}.wp\\:hidden{display:none}.wp\\:inline-flex{display:inline-flex}.wp\\:aspect-square{aspect-ratio:1}.wp\\:aspect-video{aspect-ratio:var(--wp-aspect-video)}.wp\\:size-2{width:calc(var(--wp-spacing) * 2);height:calc(var(--wp-spacing) * 2)}.wp\\:size-2\\.5{width:calc(var(--wp-spacing) * 2.5);height:calc(var(--wp-spacing) * 2.5)}.wp\\:size-3{width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:size-3\\.5{width:calc(var(--wp-spacing) * 3.5);height:calc(var(--wp-spacing) * 3.5)}.wp\\:size-4{width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:size-5{width:calc(var(--wp-spacing) * 5);height:calc(var(--wp-spacing) * 5)}.wp\\:size-6{width:calc(var(--wp-spacing) * 6);height:calc(var(--wp-spacing) * 6)}.wp\\:size-7{width:calc(var(--wp-spacing) * 7);height:calc(var(--wp-spacing) * 7)}.wp\\:size-8{width:calc(var(--wp-spacing) * 8);height:calc(var(--wp-spacing) * 8)}.wp\\:size-9{width:calc(var(--wp-spacing) * 9);height:calc(var(--wp-spacing) * 9)}.wp\\:size-10{width:calc(var(--wp-spacing) * 10);height:calc(var(--wp-spacing) * 10)}.wp\\:size-12{width:calc(var(--wp-spacing) * 12);height:calc(var(--wp-spacing) * 12)}.wp\\:size-full{width:100%;height:100%}.wp\\:h-2\\.5{height:calc(var(--wp-spacing) * 2.5)}.wp\\:h-3{height:calc(var(--wp-spacing) * 3)}.wp\\:h-4{height:calc(var(--wp-spacing) * 4)}.wp\\:h-5{height:calc(var(--wp-spacing) * 5)}.wp\\:h-6{height:calc(var(--wp-spacing) * 6)}.wp\\:h-7{height:calc(var(--wp-spacing) * 7)}.wp\\:h-8{height:calc(var(--wp-spacing) * 8)}.wp\\:h-9{height:calc(var(--wp-spacing) * 9)}.wp\\:h-10{height:calc(var(--wp-spacing) * 10)}.wp\\:h-12{height:calc(var(--wp-spacing) * 12)}.wp\\:h-14{height:calc(var(--wp-spacing) * 14)}.wp\\:h-16{height:calc(var(--wp-spacing) * 16)}.wp\\:h-64{height:calc(var(--wp-spacing) * 64)}.wp\\:h-80{height:calc(var(--wp-spacing) * 80)}.wp\\:h-\\[15px\\]{height:15px}.wp\\:h-\\[16px\\]{height:16px}.wp\\:h-\\[60vh\\]{height:60vh}.wp\\:h-\\[var\\(--reka-select-trigger-height\\)\\]{height:var(--reka-select-trigger-height)}.wp\\:h-full{height:100%}.wp\\:h-px{height:1px}.wp\\:max-h-\\(--reka-dropdown-menu-content-available-height\\){max-height:var(--reka-dropdown-menu-content-available-height)}.wp\\:max-h-\\(--reka-select-content-available-height\\){max-height:var(--reka-select-content-available-height)}.wp\\:max-h-0{max-height:calc(var(--wp-spacing) * 0)}.wp\\:max-h-40{max-height:calc(var(--wp-spacing) * 40)}.wp\\:max-h-60{max-height:calc(var(--wp-spacing) * 60)}.wp\\:max-h-\\[300px\\]{max-height:300px}.wp\\:min-h-10{min-height:calc(var(--wp-spacing) * 10)}.wp\\:min-h-\\[calc\\(100vh-3\\.5rem\\)\\]{min-height:calc(100vh - 3.5rem)}.wp\\:min-h-screen{min-height:100vh}.wp\\:\\!w-full{width:100%!important}.wp\\:w-2\\.5{width:calc(var(--wp-spacing) * 2.5)}.wp\\:w-3{width:calc(var(--wp-spacing) * 3)}.wp\\:w-4{width:calc(var(--wp-spacing) * 4)}.wp\\:w-5{width:calc(var(--wp-spacing) * 5)}.wp\\:w-6{width:calc(var(--wp-spacing) * 6)}.wp\\:w-8{width:calc(var(--wp-spacing) * 8)}.wp\\:w-9{width:calc(var(--wp-spacing) * 9)}.wp\\:w-12{width:calc(var(--wp-spacing) * 12)}.wp\\:w-16{width:calc(var(--wp-spacing) * 16)}.wp\\:w-24{width:calc(var(--wp-spacing) * 24)}.wp\\:w-48{width:calc(var(--wp-spacing) * 48)}.wp\\:w-72{width:calc(var(--wp-spacing) * 72)}.wp\\:w-\\[15px\\]{width:15px}.wp\\:w-\\[16px\\]{width:16px}.wp\\:w-\\[min\\(92vw\\,330px\\)\\]{width:min(92vw,330px)}.wp\\:w-auto{width:auto}.wp\\:w-fit{width:-moz-fit-content;width:fit-content}.wp\\:w-full{width:100%}.wp\\:max-w-80{max-width:calc(var(--wp-spacing) * 80)}.wp\\:max-w-\\[330px\\]{max-width:330px}.wp\\:max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 2rem)}.wp\\:max-w-lg{max-width:var(--wp-container-lg)}.wp\\:max-w-md{max-width:var(--wp-container-md)}.wp\\:max-w-screen-2xl{max-width:var(--wp-breakpoint-2xl)}.wp\\:min-w-0{min-width:calc(var(--wp-spacing) * 0)}.wp\\:min-w-5{min-width:calc(var(--wp-spacing) * 5)}.wp\\:min-w-8{min-width:calc(var(--wp-spacing) * 8)}.wp\\:min-w-9{min-width:calc(var(--wp-spacing) * 9)}.wp\\:min-w-10{min-width:calc(var(--wp-spacing) * 10)}.wp\\:min-w-\\[8rem\\]{min-width:8rem}.wp\\:min-w-\\[var\\(--reka-select-trigger-width\\)\\]{min-width:var(--reka-select-trigger-width)}.wp\\:flex-1{flex:1}.wp\\:shrink-0{flex-shrink:0}.wp\\:grow{flex-grow:1}.wp\\:origin-\\(--reka-dropdown-menu-content-transform-origin\\){transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.wp\\:origin-\\(--reka-popover-content-transform-origin\\){transform-origin:var(--reka-popover-content-transform-origin)}.wp\\:translate-x-0{--tw-translate-x:calc(var(--wp-spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-x-5{--tw-translate-x:calc(var(--wp-spacing) * 5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-0\\.5{--tw-translate-y:calc(var(--wp-spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[calc\\(-50\\%_-_2px\\)\\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:rotate-45{rotate:45deg}.wp\\:animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:animate-pulse{animation:var(--wp-animate-pulse)}.wp\\:cursor-default{cursor:default}.wp\\:cursor-move{cursor:move}.wp\\:cursor-pointer{cursor:pointer}.wp\\:touch-none{touch-action:none}.wp\\:scroll-my-1{scroll-margin-block:calc(var(--wp-spacing) * 1)}.wp\\:scroll-py-1{scroll-padding-block:calc(var(--wp-spacing) * 1)}.wp\\:auto-rows-min{grid-auto-rows:min-content}.wp\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.wp\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.wp\\:grid-rows-\\[auto_auto\\]{grid-template-rows:auto auto}.wp\\:flex-col{flex-direction:column}.wp\\:flex-col-reverse{flex-direction:column-reverse}.wp\\:place-items-center{place-items:center}.wp\\:items-center{align-items:center}.wp\\:items-end{align-items:flex-end}.wp\\:items-start{align-items:flex-start}.wp\\:justify-between{justify-content:space-between}.wp\\:justify-center{justify-content:center}.wp\\:justify-start{justify-content:flex-start}.wp\\:gap-0{gap:calc(var(--wp-spacing) * 0)}.wp\\:gap-1{gap:calc(var(--wp-spacing) * 1)}.wp\\:gap-1\\.5{gap:calc(var(--wp-spacing) * 1.5)}.wp\\:gap-2{gap:calc(var(--wp-spacing) * 2)}.wp\\:gap-3{gap:calc(var(--wp-spacing) * 3)}.wp\\:gap-4{gap:calc(var(--wp-spacing) * 4)}.wp\\:gap-6{gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-\\[--spacing\\(var\\(--gap\\)\\)\\]{gap:calc(var(--wp-spacing) * var(--gap))}:where(.wp\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.wp\\:gap-x-6{column-gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-y-3{row-gap:calc(var(--wp-spacing) * 3)}.wp\\:self-start{align-self:flex-start}.wp\\:justify-self-end{justify-self:flex-end}.wp\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wp\\:overflow-auto{overflow:auto}.wp\\:overflow-hidden{overflow:hidden}.wp\\:overflow-x-hidden{overflow-x:hidden}.wp\\:overflow-y-auto{overflow-y:auto}.wp\\:rounded{border-radius:.25rem}.wp\\:rounded-2xl{border-radius:var(--wp-radius-2xl)}.wp\\:rounded-\\[2px\\]{border-radius:2px}.wp\\:rounded-\\[inherit\\]{border-radius:inherit}.wp\\:rounded-full{border-radius:3.40282e38px}.wp\\:rounded-lg{border-radius:var(--radius)}.wp\\:rounded-md{border-radius:calc(var(--radius) - 2px)}.wp\\:rounded-sm{border-radius:calc(var(--radius) - 4px)}.wp\\:rounded-xl{border-radius:calc(var(--radius) + 4px)}.wp\\:rounded-xs{border-radius:var(--wp-radius-xs)}.wp\\:border{border-style:var(--tw-border-style);border-width:1px}.wp\\:border-0{border-style:var(--tw-border-style);border-width:0}.wp\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.wp\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.wp\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.wp\\:border-blue-500{border-color:var(--wp-color-blue-500)}.wp\\:border-border{border-color:var(--border)}.wp\\:border-destructive{border-color:var(--destructive)}.wp\\:border-input{border-color:var(--input)}.wp\\:border-primary{border-color:var(--primary)}.wp\\:border-white\\/20{border-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:border-white\\/20{border-color:color-mix(in oklab, var(--wp-color-white) 20%, transparent)}}.wp\\:border-t-transparent{border-top-color:#0000}.wp\\:border-l-transparent{border-left-color:#0000}.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12{background-color:var(--color-red)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12{background-color:color-mix(in oklab, var(--color-red) 12%, transparent)}}.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12{background-color:color-mix(in oklab, var(--p-primary-color) 12%, transparent)}}.wp\\:bg-amber-100{background-color:var(--wp-color-amber-100)}.wp\\:bg-background,.wp\\:bg-background\\/95{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-background\\/95{background-color:color-mix(in oklab, var(--background) 95%, transparent)}}.wp\\:bg-black,.wp\\:bg-black\\/80{background-color:var(--wp-color-black)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-black\\/80{background-color:color-mix(in oklab, var(--wp-color-black) 80%, transparent)}}.wp\\:bg-blue-100{background-color:var(--wp-color-blue-100)}.wp\\:bg-border{background-color:var(--border)}.wp\\:bg-card{background-color:var(--card)}.wp\\:bg-destructive{background-color:var(--destructive)}.wp\\:bg-emerald-100{background-color:var(--wp-color-emerald-100)}.wp\\:bg-foreground{background-color:var(--foreground)}.wp\\:bg-muted{background-color:var(--muted)}.wp\\:bg-neutral-100{background-color:var(--wp-color-neutral-100)}.wp\\:bg-neutral-800{background-color:var(--wp-color-neutral-800)}.wp\\:bg-popover{background-color:var(--popover)}.wp\\:bg-primary,.wp\\:bg-primary\\/10{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-primary\\/10{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.wp\\:bg-purple-100{background-color:var(--wp-color-purple-100)}.wp\\:bg-secondary{background-color:var(--secondary)}.wp\\:bg-status-available{background-color:var(--status-available)}.wp\\:bg-status-hold\\/12{background-color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-status-hold\\/12{background-color:color-mix(in oklab, var(--status-hold) 12%, transparent)}}.wp\\:bg-transparent{background-color:#0000}.wp\\:bg-white,.wp\\:bg-white\\/70{background-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-white\\/70{background-color:color-mix(in oklab, var(--wp-color-white) 70%, transparent)}}.wp\\:bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 80%, transparent)}}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:from-destructive\\/60{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-destructive\\/60{--tw-gradient-from:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:from-destructive\\/60{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-\\[color\\:var\\(--p-primary-color\\)\\]\\/100{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-destructive\\/90{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:to-destructive\\/90{--tw-gradient-to:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:to-destructive\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:fill-current{fill:currentColor}.wp\\:fill-foreground{fill:var(--foreground)}.wp\\:object-contain{object-fit:contain}.wp\\:object-cover{object-fit:cover}.wp\\:p-0{padding:calc(var(--wp-spacing) * 0)}.wp\\:p-0\\.5{padding:calc(var(--wp-spacing) * .5)}.wp\\:p-1{padding:calc(var(--wp-spacing) * 1)}.wp\\:p-2{padding:calc(var(--wp-spacing) * 2)}.wp\\:p-3{padding:calc(var(--wp-spacing) * 3)}.wp\\:p-4{padding:calc(var(--wp-spacing) * 4)}.wp\\:p-6{padding:calc(var(--wp-spacing) * 6)}.wp\\:p-px{padding:1px}.wp\\:px-1{padding-inline:calc(var(--wp-spacing) * 1)}.wp\\:px-1\\.5{padding-inline:calc(var(--wp-spacing) * 1.5)}.wp\\:px-2{padding-inline:calc(var(--wp-spacing) * 2)}.wp\\:px-2\\.5{padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:px-3{padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:px-4{padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:px-6{padding-inline:calc(var(--wp-spacing) * 6)}.wp\\:px-10{padding-inline:calc(var(--wp-spacing) * 10)}.wp\\:px-14{padding-inline:calc(var(--wp-spacing) * 14)}.wp\\:py-1{padding-block:calc(var(--wp-spacing) * 1)}.wp\\:py-1\\.5{padding-block:calc(var(--wp-spacing) * 1.5)}.wp\\:py-2{padding-block:calc(var(--wp-spacing) * 2)}.wp\\:py-3{padding-block:calc(var(--wp-spacing) * 3)}.wp\\:py-4{padding-block:calc(var(--wp-spacing) * 4)}.wp\\:py-6{padding-block:calc(var(--wp-spacing) * 6)}.wp\\:py-8{padding-block:calc(var(--wp-spacing) * 8)}.wp\\:pt-0{padding-top:calc(var(--wp-spacing) * 0)}.wp\\:pr-2{padding-right:calc(var(--wp-spacing) * 2)}.wp\\:pr-4{padding-right:calc(var(--wp-spacing) * 4)}.wp\\:pr-8{padding-right:calc(var(--wp-spacing) * 8)}.wp\\:pb-0{padding-bottom:calc(var(--wp-spacing) * 0)}.wp\\:pb-4{padding-bottom:calc(var(--wp-spacing) * 4)}.wp\\:pl-2{padding-left:calc(var(--wp-spacing) * 2)}.wp\\:pl-8{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:text-center{text-align:center}.wp\\:text-left{text-align:left}.wp\\:font-mono{font-family:var(--wp-font-mono)}.wp\\:font-sans{font-family:Montserrat,sans-serif}.wp\\:text-3xl{font-size:var(--wp-text-3xl);line-height:var(--tw-leading,var(--wp-text-3xl--line-height))}.wp\\:text-base{font-size:var(--wp-text-base);line-height:var(--tw-leading,var(--wp-text-base--line-height))}.wp\\:text-lg{font-size:var(--wp-text-lg);line-height:var(--tw-leading,var(--wp-text-lg--line-height))}.wp\\:text-sm{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:text-xs{font-size:var(--wp-text-xs);line-height:var(--tw-leading,var(--wp-text-xs--line-height))}.wp\\:text-\\[10px\\]{font-size:10px}.wp\\:text-\\[11px\\]{font-size:11px}.wp\\:leading-none{--tw-leading:1;line-height:1}.wp\\:font-bold{--tw-font-weight:var(--wp-font-weight-bold);font-weight:var(--wp-font-weight-bold)}.wp\\:font-light{--tw-font-weight:var(--wp-font-weight-light);font-weight:var(--wp-font-weight-light)}.wp\\:font-medium{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:font-semibold{--tw-font-weight:var(--wp-font-weight-semibold);font-weight:var(--wp-font-weight-semibold)}.wp\\:tracking-wider{--tw-tracking:var(--wp-tracking-wider);letter-spacing:var(--wp-tracking-wider)}.wp\\:tracking-widest{--tw-tracking:var(--wp-tracking-widest);letter-spacing:var(--wp-tracking-widest)}.wp\\:text-balance{text-wrap:balance}.wp\\:whitespace-nowrap{white-space:nowrap}.wp\\:text-\\[var\\(--color-avaible\\)\\]{color:var(--color-avaible)}.wp\\:text-\\[var\\(--color-primary\\)\\]{color:var(--color-primary)}.wp\\:text-\\[var\\(--color-red\\)\\]{color:var(--color-red)}.wp\\:text-\\[var\\(--color-settings\\)\\]{color:var(--color-settings)}.wp\\:text-\\[var\\(--p-primary-color\\)\\]{color:var(--p-primary-color)}.wp\\:text-\\[var\\(--primary\\)\\]{color:var(--primary)}.wp\\:text-amber-500{color:var(--wp-color-amber-500)}.wp\\:text-amber-600{color:var(--wp-color-amber-600)}.wp\\:text-background{color:var(--background)}.wp\\:text-black{color:var(--wp-color-black)}.wp\\:text-blue-500{color:var(--wp-color-blue-500)}.wp\\:text-blue-600{color:var(--wp-color-blue-600)}.wp\\:text-card-foreground{color:var(--card-foreground)}.wp\\:text-destructive{color:var(--destructive)}.wp\\:text-emerald-600{color:var(--wp-color-emerald-600)}.wp\\:text-foreground{color:var(--foreground)}.wp\\:text-green-500{color:var(--wp-color-green-500)}.wp\\:text-muted-foreground{color:var(--muted-foreground)}.wp\\:text-neutral-400{color:var(--wp-color-neutral-400)}.wp\\:text-neutral-500{color:var(--wp-color-neutral-500)}.wp\\:text-neutral-600{color:var(--wp-color-neutral-600)}.wp\\:text-neutral-800{color:var(--wp-color-neutral-800)}.wp\\:text-neutral-900{color:var(--wp-color-neutral-900)}.wp\\:text-popover-foreground{color:var(--popover-foreground)}.wp\\:text-primary{color:var(--primary)}.wp\\:text-primary-foreground{color:var(--primary-foreground)}.wp\\:text-purple-600{color:var(--wp-color-purple-600)}.wp\\:text-red-500{color:var(--wp-color-red-500)}.wp\\:text-secondary-foreground{color:var(--secondary-foreground)}.wp\\:text-status-available{color:var(--status-available)}.wp\\:text-status-disconnected{color:var(--status-disconnected)}.wp\\:text-status-hold{color:var(--status-hold)}.wp\\:text-status-incall{color:var(--status-incall)}.wp\\:text-status-incoming{color:var(--status-incoming)}.wp\\:text-white{color:var(--wp-color-white)}.wp\\:capitalize{text-transform:capitalize}.wp\\:underline-offset-4{text-underline-offset:4px}.wp\\:opacity-0{opacity:0}.wp\\:opacity-50{opacity:.5}.wp\\:opacity-70{opacity:.7}.wp\\:opacity-100{opacity:1}.wp\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:inset-shadow-2xs{--tw-inset-shadow:inset 0 1px var(--tw-inset-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:ring-ring\\/50{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:ring-ring\\/50{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:ring-offset-background{--tw-ring-offset-color:var(--background)}.wp\\:outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:outline-hidden{outline-offset:2px;outline:2px solid #0000}}.wp\\:backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:backdrop-blur-\\[1px\\]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:transition-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.wp\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.wp\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.wp\\:ease-in-out{--tw-ease:var(--wp-ease-in-out);transition-timing-function:var(--wp-ease-in-out)}.wp\\:fade-in-0{--tw-enter-opacity:0}.wp\\:outline-none{--tw-outline-style:none;outline-style:none}.wp\\:select-none{-webkit-user-select:none;user-select:none}.wp\\:select-text{-webkit-user-select:text;user-select:text}.wp\\:zoom-in-95{--tw-enter-scale:.95}.wp\\:group-data-\\[disabled\\=true\\]\\:pointer-events-none:is(:where(.wp\\:group)[data-disabled=true] *){pointer-events:none}.wp\\:group-data-\\[disabled\\=true\\]\\:opacity-50:is(:where(.wp\\:group)[data-disabled=true] *){opacity:.5}.wp\\:peer-disabled\\:cursor-not-allowed:is(:where(.wp\\:peer):disabled~*){cursor:not-allowed}.wp\\:peer-disabled\\:opacity-50:is(:where(.wp\\:peer):disabled~*){opacity:.5}.wp\\:selection\\:bg-primary ::selection,.wp\\:selection\\:bg-primary::selection{background-color:var(--primary)}.wp\\:selection\\:text-primary-foreground ::selection,.wp\\:selection\\:text-primary-foreground::selection{color:var(--primary-foreground)}.wp\\:file\\:inline-flex::-webkit-file-upload-button{display:inline-flex}.wp\\:file\\:inline-flex::file-selector-button{display:inline-flex}.wp\\:file\\:h-7::-webkit-file-upload-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:h-7::file-selector-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:border-0::-webkit-file-upload-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:bg-transparent::-webkit-file-upload-button{background-color:#0000}.wp\\:file\\:bg-transparent::file-selector-button{background-color:#0000}.wp\\:file\\:text-sm::-webkit-file-upload-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:text-sm::file-selector-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:font-medium::-webkit-file-upload-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:font-medium::file-selector-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:text-foreground::-webkit-file-upload-button{color:var(--foreground)}.wp\\:file\\:text-foreground::file-selector-button{color:var(--foreground)}.wp\\:placeholder\\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.wp\\:last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8:hover{background-color:color-mix(in oklab, var(--p-primary-color) 8%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10:hover{background-color:color-mix(in oklab, var(--p-primary-color) 10%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20:hover{background-color:color-mix(in oklab, var(--p-primary-color) 20%, transparent)}}.wp\\:hover\\:bg-accent:hover,.wp\\:hover\\:bg-accent\\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:hover\\:bg-destructive\\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:hover\\:bg-muted:hover{background-color:var(--muted)}.wp\\:hover\\:bg-neutral-100:hover{background-color:var(--wp-color-neutral-100)}.wp\\:hover\\:bg-neutral-200:hover{background-color:var(--wp-color-neutral-200)}.wp\\:hover\\:bg-primary\\/10:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-primary\\/10:hover{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.wp\\:hover\\:bg-primary\\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.wp\\:hover\\:bg-secondary:hover,.wp\\:hover\\:bg-secondary\\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.wp\\:hover\\:bg-status-available\\/90:hover{background-color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-status-available\\/90:hover{background-color:color-mix(in oklab, var(--status-available) 90%, transparent)}}.wp\\:hover\\:bg-transparent:hover{background-color:#0000}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 75%, transparent)}}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-from:color-mix(in oklab, var(--destructive) 70%, transparent)}}.wp\\:hover\\:from-destructive\\/70:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-\\[color\\:var\\(--p-primary-color\\)\\]:hover{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-to:color-mix(in oklab, var(--destructive) 95%, transparent)}}.wp\\:hover\\:to-destructive\\/95:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.wp\\:hover\\:text-destructive:hover{color:var(--destructive)}.wp\\:hover\\:text-foreground:hover{color:var(--foreground)}.wp\\:hover\\:text-muted-foreground:hover{color:var(--muted-foreground)}.wp\\:hover\\:text-primary:hover{color:var(--primary)}.wp\\:hover\\:text-status-available\\/80:hover{color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-available\\/80:hover{color:color-mix(in oklab, var(--status-available) 80%, transparent)}}.wp\\:hover\\:text-status-disconnected:hover,.wp\\:hover\\:text-status-disconnected\\/80:hover{color:var(--status-disconnected)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-disconnected\\/80:hover{color:color-mix(in oklab, var(--status-disconnected) 80%, transparent)}}.wp\\:hover\\:text-status-hold\\/80:hover{color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-hold\\/80:hover{color:color-mix(in oklab, var(--status-hold) 80%, transparent)}}.wp\\:hover\\:text-status-incall\\/80:hover{color:var(--status-incall)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incall\\/80:hover{color:color-mix(in oklab, var(--status-incall) 80%, transparent)}}.wp\\:hover\\:text-status-incoming\\/80:hover{color:var(--status-incoming)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incoming\\/80:hover{color:color-mix(in oklab, var(--status-incoming) 80%, transparent)}}.wp\\:hover\\:underline:hover{text-decoration-line:underline}.wp\\:hover\\:opacity-80:hover{opacity:.8}.wp\\:hover\\:opacity-100:hover{opacity:1}.wp\\:hover\\:ring-4:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.wp\\:focus\\:z-10:focus{z-index:10}.wp\\:focus\\:bg-accent:focus{background-color:var(--accent)}.wp\\:focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.wp\\:focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus\\:ring-ring:focus{--tw-ring-color:var(--ring)}.wp\\:focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:z-10:focus-visible{z-index:10}.wp\\:focus-visible\\:border-ring:focus-visible{border-color:var(--ring)}.wp\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[var\\(--p-primary-color\\)\\]:focus-visible{--tw-ring-color:var(--p-primary-color)}.wp\\:focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-destructive\\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:focus-visible\\:ring-primary\\/50:focus-visible{--tw-ring-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-primary\\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--primary) 50%, transparent)}}.wp\\:focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-ring\\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus-visible\\:ring-offset-white:focus-visible{--tw-ring-offset-color:var(--wp-color-white)}.wp\\:focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.wp\\:active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.wp\\:disabled\\:pointer-events-none:disabled{pointer-events:none}.wp\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.wp\\:disabled\\:opacity-50:disabled{opacity:.5}.wp\\:has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.wp\\:has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:has-\\[\\>svg\\]\\:px-3:has(>svg){padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:has-\\[\\>svg\\]\\:px-4:has(>svg){padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:aria-invalid\\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.wp\\:data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.wp\\:data-\\[highlighted\\]\\:bg-accent[data-highlighted]{background-color:var(--accent)}.wp\\:data-\\[highlighted\\]\\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.wp\\:data-\\[inset\\]\\:pl-8[data-inset]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal]{height:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal]{height:100%}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal]{height:1px}.wp\\:data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical]{height:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical]{min-height:calc(var(--wp-spacing) * 44)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical]{width:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical]{width:auto}.wp\\:data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical]{width:1px}.wp\\:data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical]{flex-direction:column}.wp\\:data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.wp\\:data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.wp\\:data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.wp\\:data-\\[size\\=default\\]\\:h-9[data-size=default]{height:calc(var(--wp-spacing) * 9)}.wp\\:data-\\[size\\=sm\\]\\:h-8[data-size=sm]{height:calc(var(--wp-spacing) * 8)}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value]{display:flex}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value]{align-items:center}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value]{gap:calc(var(--wp-spacing) * 2)}.wp\\:data-\\[spacing\\=0\\]\\:rounded-none[data-spacing="0"]{border-radius:0}.wp\\:data-\\[spacing\\=0\\]\\:shadow-none[data-spacing="0"]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:data-\\[spacing\\=0\\]\\:first\\:rounded-l-md[data-spacing="0"]:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[spacing\\=0\\]\\:last\\:rounded-r-md[data-spacing="0"]:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.wp\\:data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.wp\\:data-\\[state\\=on\\]\\:bg-accent[data-state=on]{background-color:var(--accent)}.wp\\:data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.wp\\:data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.wp\\:data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.wp\\:data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.wp\\:data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive]{color:var(--destructive)}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.wp\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline]{border-color:var(--color-primary-500)}.wp\\:data-\\[variant\\=outline\\]\\:focus-visible\\:ring-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline]:focus-visible{--tw-ring-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border[data-spacing="0"][data-variant=outline]{border-style:var(--tw-border-style);border-width:1px}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-spacing="0"][data-variant=outline]{border-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=default\\]\\:data-\\[variant\\=outline\\]\\:shadow-xs[data-spacing=default][data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.wp\\:supports-backdrop-filter\\:bg-background\\/60{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:supports-backdrop-filter\\:bg-background\\/60{background-color:color-mix(in oklab, var(--background) 60%, transparent)}}}@media (min-width:40rem){.wp\\:sm\\:block{display:block}.wp\\:sm\\:inline{display:inline}.wp\\:sm\\:inline-block{display:inline-block}.wp\\:sm\\:max-w-lg{max-width:var(--wp-container-lg)}.wp\\:sm\\:max-w-md{max-width:var(--wp-container-md)}.wp\\:sm\\:max-w-sm{max-width:var(--wp-container-sm)}.wp\\:sm\\:flex-row{flex-direction:row}.wp\\:sm\\:justify-end{justify-content:flex-end}.wp\\:sm\\:gap-0{gap:calc(var(--wp-spacing) * 0)}.wp\\:sm\\:rounded-lg{border-radius:var(--radius)}.wp\\:sm\\:text-left{text-align:left}}@media (min-width:48rem){.wp\\:md\\:w-full{width:100%}.wp\\:md\\:text-sm{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}}.wp\\:dark\\:border-input:where(.dark,.dark *){border-color:var(--input)}.wp\\:dark\\:bg-amber-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-amber-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-amber-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-amber-900) 30%, transparent)}}.wp\\:dark\\:bg-blue-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-blue-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-blue-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-blue-900) 30%, transparent)}}.wp\\:dark\\:bg-destructive\\/60:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-destructive\\/60:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:dark\\:bg-emerald-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-emerald-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-emerald-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-emerald-900) 30%, transparent)}}.wp\\:dark\\:bg-input\\/30:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-input\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.wp\\:dark\\:bg-neutral-700:where(.dark,.dark *){background-color:var(--wp-color-neutral-700)}.wp\\:dark\\:bg-neutral-800:where(.dark,.dark *){background-color:var(--wp-color-neutral-800)}.wp\\:dark\\:bg-neutral-900:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:bg-neutral-900\\/70:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-neutral-900\\/70:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-neutral-900) 70%, transparent)}}.wp\\:dark\\:bg-purple-900\\/30:where(.dark,.dark *){background-color:var(--wp-color-purple-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-purple-900\\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-purple-900) 30%, transparent)}}.wp\\:dark\\:text-amber-400:where(.dark,.dark *){color:var(--wp-color-amber-400)}.wp\\:dark\\:text-blue-400:where(.dark,.dark *){color:var(--wp-color-blue-400)}.wp\\:dark\\:text-emerald-400:where(.dark,.dark *){color:var(--wp-color-emerald-400)}.wp\\:dark\\:text-neutral-100:where(.dark,.dark *){color:var(--wp-color-neutral-100)}.wp\\:dark\\:text-neutral-400:where(.dark,.dark *){color:var(--wp-color-neutral-400)}.wp\\:dark\\:text-neutral-500:where(.dark,.dark *){color:var(--wp-color-neutral-500)}.wp\\:dark\\:text-purple-400:where(.dark,.dark *){color:var(--wp-color-purple-400)}.wp\\:dark\\:text-white:where(.dark,.dark *){color:var(--wp-color-white)}@media (hover:hover){.wp\\:dark\\:hover\\:bg-accent\\/50:where(.dark,.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-accent\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-input\\/50:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-input\\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-600:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-600)}.wp\\:dark\\:hover\\:bg-neutral-800\\/80:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-800)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-neutral-800\\/80:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--wp-color-neutral-800) 80%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-900:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:hover\\:text-neutral-100:where(.dark,.dark *):hover{color:var(--wp-color-neutral-100)}.wp\\:dark\\:hover\\:text-status-disconnected:where(.dark,.dark *):hover{color:var(--status-disconnected)}}.wp\\:dark\\:focus-visible\\:ring-destructive\\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:focus-visible\\:ring-destructive\\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:focus-visible\\:ring-offset-neutral-900:where(.dark,.dark *):focus-visible{--tw-ring-offset-color:var(--wp-color-neutral-900)}.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:\\[\\&_button\\]\\:cursor-pointer button{cursor:pointer}.wp\\:\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.wp\\:\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-3 svg:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4 svg:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'text-\\\\\\'\\]\\)\\]\\:text-muted-foreground svg:not([class*="'text-'"]){color:var(--muted-foreground)}.wp\\:\\[\\.border-b\\]\\:pb-6.border-b{padding-bottom:calc(var(--wp-spacing) * 6)}.wp\\:\\[\\.border-t\\]\\:pt-6.border-t{padding-top:calc(var(--wp-spacing) * 6)}:is(.wp\\:\\*\\*\\:\\[\\[role\\=button\\]\\]\\:cursor-pointer *)[role=button]{cursor:pointer}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:flex>*):-webkit-any(span):last-child{display:flex}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:flex>*):is(span):last-child{display:flex}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center>*):-webkit-any(span):last-child{align-items:center}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center>*):is(span):last-child{align-items:center}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2>*):-webkit-any(span):last-child{gap:calc(var(--wp-spacing) * 2)}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2>*):is(span):last-child{gap:calc(var(--wp-spacing) * 2)}:-webkit-any(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive]>*):-webkit-any(svg){color:var(--destructive)!important}:is(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:\\[\\&\\:not\\(\\:first-child\\)\\]\\:border-l-0[data-spacing="0"][data-variant=outline]:not(:first-child){border-left-style:var(--tw-border-style);border-left-width:0}.wp\\:\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg{rotate:180deg}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20{background-color:color-mix(in oklab, var(--background) 20%, transparent)}}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:text-background{color:var(--background)}[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10:where(.dark,.dark *){background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10:where(.dark,.dark *){background-color:color-mix(in oklab, var(--background) 10%, transparent)}}.wp\\:\\@container\\/card-header[data-v-1feccefe]{container:card-header/inline-size}.wp\\:pointer-events-none[data-v-1feccefe]{pointer-events:none}.wp\\:sr-only[data-v-1feccefe]{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.wp\\:absolute[data-v-1feccefe]{position:absolute}.wp\\:fixed[data-v-1feccefe]{position:fixed}.wp\\:relative[data-v-1feccefe]{position:relative}.wp\\:sticky[data-v-1feccefe]{position:sticky}.wp\\:inset-0[data-v-1feccefe]{inset:calc(var(--wp-spacing) * 0)}.wp\\:inset-x-0[data-v-1feccefe]{inset-inline:calc(var(--wp-spacing) * 0)}.wp\\:top-0[data-v-1feccefe]{top:calc(var(--wp-spacing) * 0)}.wp\\:top-1\\/2[data-v-1feccefe]{top:50%}.wp\\:top-2\\.5[data-v-1feccefe]{top:calc(var(--wp-spacing) * 2.5)}.wp\\:top-4[data-v-1feccefe]{top:calc(var(--wp-spacing) * 4)}.wp\\:top-\\[50\\%\\][data-v-1feccefe]{top:50%}.wp\\:top-full[data-v-1feccefe]{top:100%}.wp\\:right-0[data-v-1feccefe]{right:calc(var(--wp-spacing) * 0)}.wp\\:right-1[data-v-1feccefe]{right:calc(var(--wp-spacing) * 1)}.wp\\:right-2[data-v-1feccefe]{right:calc(var(--wp-spacing) * 2)}.wp\\:right-4[data-v-1feccefe]{right:calc(var(--wp-spacing) * 4)}.wp\\:bottom-2[data-v-1feccefe]{bottom:calc(var(--wp-spacing) * 2)}.wp\\:bottom-full[data-v-1feccefe]{bottom:100%}.wp\\:left-0[data-v-1feccefe]{left:calc(var(--wp-spacing) * 0)}.wp\\:left-0\\.5[data-v-1feccefe]{left:calc(var(--wp-spacing) * .5)}.wp\\:left-2[data-v-1feccefe]{left:calc(var(--wp-spacing) * 2)}.wp\\:left-\\[50\\%\\][data-v-1feccefe]{left:50%}.wp\\:z-10[data-v-1feccefe]{z-index:10}.wp\\:z-40[data-v-1feccefe]{z-index:40}.wp\\:z-50[data-v-1feccefe]{z-index:50}.wp\\:order-first[data-v-1feccefe]{order:-9999}.wp\\:col-start-2[data-v-1feccefe]{grid-column-start:2}.wp\\:row-span-2[data-v-1feccefe]{grid-row:span 2/span 2}.wp\\:row-start-1[data-v-1feccefe]{grid-row-start:1}.wp\\:container[data-v-1feccefe]{width:100%}@media (min-width:40rem){.wp\\:container[data-v-1feccefe]{max-width:40rem}}@media (min-width:48rem){.wp\\:container[data-v-1feccefe]{max-width:48rem}}@media (min-width:64rem){.wp\\:container[data-v-1feccefe]{max-width:64rem}}@media (min-width:80rem){.wp\\:container[data-v-1feccefe]{max-width:80rem}}@media (min-width:96rem){.wp\\:container[data-v-1feccefe]{max-width:96rem}}.wp\\:-mx-1[data-v-1feccefe]{margin-inline:calc(var(--wp-spacing) * -1)}.wp\\:mx-2[data-v-1feccefe]{margin-inline:calc(var(--wp-spacing) * 2)}.wp\\:mx-auto[data-v-1feccefe]{margin-inline-start:auto;margin-inline-end:auto}.wp\\:my-1[data-v-1feccefe]{margin-block:calc(var(--wp-spacing) * 1)}.wp\\:my-2[data-v-1feccefe]{margin-block:calc(var(--wp-spacing) * 2)}.wp\\:my-8[data-v-1feccefe]{margin-block:calc(var(--wp-spacing) * 8)}.wp\\:mt-1[data-v-1feccefe]{margin-top:calc(var(--wp-spacing) * 1)}.wp\\:mr-4[data-v-1feccefe]{margin-right:calc(var(--wp-spacing) * 4)}.wp\\:mr-auto[data-v-1feccefe]{margin-right:auto}.wp\\:mb-1[data-v-1feccefe]{margin-bottom:calc(var(--wp-spacing) * 1)}.wp\\:mb-2[data-v-1feccefe]{margin-bottom:calc(var(--wp-spacing) * 2)}.wp\\:mb-4[data-v-1feccefe]{margin-bottom:calc(var(--wp-spacing) * 4)}.wp\\:mb-5[data-v-1feccefe]{margin-bottom:calc(var(--wp-spacing) * 5)}.wp\\:ml-auto[data-v-1feccefe]{margin-left:auto}.wp\\:block[data-v-1feccefe]{display:block}.wp\\:flex[data-v-1feccefe]{display:flex}.wp\\:grid[data-v-1feccefe]{display:grid}.wp\\:hidden[data-v-1feccefe]{display:none}.wp\\:inline-flex[data-v-1feccefe]{display:inline-flex}.wp\\:aspect-square[data-v-1feccefe]{aspect-ratio:1}.wp\\:aspect-video[data-v-1feccefe]{aspect-ratio:var(--wp-aspect-video)}.wp\\:size-2[data-v-1feccefe]{width:calc(var(--wp-spacing) * 2);height:calc(var(--wp-spacing) * 2)}.wp\\:size-2\\.5[data-v-1feccefe]{width:calc(var(--wp-spacing) * 2.5);height:calc(var(--wp-spacing) * 2.5)}.wp\\:size-3[data-v-1feccefe]{width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:size-3\\.5[data-v-1feccefe]{width:calc(var(--wp-spacing) * 3.5);height:calc(var(--wp-spacing) * 3.5)}.wp\\:size-4[data-v-1feccefe]{width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:size-5[data-v-1feccefe]{width:calc(var(--wp-spacing) * 5);height:calc(var(--wp-spacing) * 5)}.wp\\:size-6[data-v-1feccefe]{width:calc(var(--wp-spacing) * 6);height:calc(var(--wp-spacing) * 6)}.wp\\:size-7[data-v-1feccefe]{width:calc(var(--wp-spacing) * 7);height:calc(var(--wp-spacing) * 7)}.wp\\:size-8[data-v-1feccefe]{width:calc(var(--wp-spacing) * 8);height:calc(var(--wp-spacing) * 8)}.wp\\:size-9[data-v-1feccefe]{width:calc(var(--wp-spacing) * 9);height:calc(var(--wp-spacing) * 9)}.wp\\:size-10[data-v-1feccefe]{width:calc(var(--wp-spacing) * 10);height:calc(var(--wp-spacing) * 10)}.wp\\:size-12[data-v-1feccefe]{width:calc(var(--wp-spacing) * 12);height:calc(var(--wp-spacing) * 12)}.wp\\:size-full[data-v-1feccefe]{width:100%;height:100%}.wp\\:h-2\\.5[data-v-1feccefe]{height:calc(var(--wp-spacing) * 2.5)}.wp\\:h-3[data-v-1feccefe]{height:calc(var(--wp-spacing) * 3)}.wp\\:h-4[data-v-1feccefe]{height:calc(var(--wp-spacing) * 4)}.wp\\:h-5[data-v-1feccefe]{height:calc(var(--wp-spacing) * 5)}.wp\\:h-6[data-v-1feccefe]{height:calc(var(--wp-spacing) * 6)}.wp\\:h-7[data-v-1feccefe]{height:calc(var(--wp-spacing) * 7)}.wp\\:h-8[data-v-1feccefe]{height:calc(var(--wp-spacing) * 8)}.wp\\:h-9[data-v-1feccefe]{height:calc(var(--wp-spacing) * 9)}.wp\\:h-10[data-v-1feccefe]{height:calc(var(--wp-spacing) * 10)}.wp\\:h-12[data-v-1feccefe]{height:calc(var(--wp-spacing) * 12)}.wp\\:h-14[data-v-1feccefe]{height:calc(var(--wp-spacing) * 14)}.wp\\:h-16[data-v-1feccefe]{height:calc(var(--wp-spacing) * 16)}.wp\\:h-64[data-v-1feccefe]{height:calc(var(--wp-spacing) * 64)}.wp\\:h-80[data-v-1feccefe]{height:calc(var(--wp-spacing) * 80)}.wp\\:h-\\[15px\\][data-v-1feccefe]{height:15px}.wp\\:h-\\[16px\\][data-v-1feccefe]{height:16px}.wp\\:h-\\[60vh\\][data-v-1feccefe]{height:60vh}.wp\\:h-\\[var\\(--reka-select-trigger-height\\)\\][data-v-1feccefe]{height:var(--reka-select-trigger-height)}.wp\\:h-full[data-v-1feccefe]{height:100%}.wp\\:h-px[data-v-1feccefe]{height:1px}.wp\\:max-h-\\(--reka-dropdown-menu-content-available-height\\)[data-v-1feccefe]{max-height:var(--reka-dropdown-menu-content-available-height)}.wp\\:max-h-\\(--reka-select-content-available-height\\)[data-v-1feccefe]{max-height:var(--reka-select-content-available-height)}.wp\\:max-h-0[data-v-1feccefe]{max-height:calc(var(--wp-spacing) * 0)}.wp\\:max-h-40[data-v-1feccefe]{max-height:calc(var(--wp-spacing) * 40)}.wp\\:max-h-60[data-v-1feccefe]{max-height:calc(var(--wp-spacing) * 60)}.wp\\:max-h-\\[300px\\][data-v-1feccefe]{max-height:300px}.wp\\:min-h-10[data-v-1feccefe]{min-height:calc(var(--wp-spacing) * 10)}.wp\\:min-h-\\[calc\\(100vh-3\\.5rem\\)\\][data-v-1feccefe]{min-height:calc(100vh - 3.5rem)}.wp\\:min-h-screen[data-v-1feccefe]{min-height:100vh}.wp\\:\\!w-full[data-v-1feccefe]{width:100%!important}.wp\\:w-2\\.5[data-v-1feccefe]{width:calc(var(--wp-spacing) * 2.5)}.wp\\:w-3[data-v-1feccefe]{width:calc(var(--wp-spacing) * 3)}.wp\\:w-4[data-v-1feccefe]{width:calc(var(--wp-spacing) * 4)}.wp\\:w-5[data-v-1feccefe]{width:calc(var(--wp-spacing) * 5)}.wp\\:w-6[data-v-1feccefe]{width:calc(var(--wp-spacing) * 6)}.wp\\:w-8[data-v-1feccefe]{width:calc(var(--wp-spacing) * 8)}.wp\\:w-9[data-v-1feccefe]{width:calc(var(--wp-spacing) * 9)}.wp\\:w-12[data-v-1feccefe]{width:calc(var(--wp-spacing) * 12)}.wp\\:w-16[data-v-1feccefe]{width:calc(var(--wp-spacing) * 16)}.wp\\:w-24[data-v-1feccefe]{width:calc(var(--wp-spacing) * 24)}.wp\\:w-48[data-v-1feccefe]{width:calc(var(--wp-spacing) * 48)}.wp\\:w-72[data-v-1feccefe]{width:calc(var(--wp-spacing) * 72)}.wp\\:w-\\[15px\\][data-v-1feccefe]{width:15px}.wp\\:w-\\[16px\\][data-v-1feccefe]{width:16px}.wp\\:w-\\[min\\(92vw\\,330px\\)\\][data-v-1feccefe]{width:min(92vw,330px)}.wp\\:w-auto[data-v-1feccefe]{width:auto}.wp\\:w-fit[data-v-1feccefe]{width:-moz-fit-content;width:fit-content}.wp\\:w-full[data-v-1feccefe]{width:100%}.wp\\:max-w-80[data-v-1feccefe]{max-width:calc(var(--wp-spacing) * 80)}.wp\\:max-w-\\[330px\\][data-v-1feccefe]{max-width:330px}.wp\\:max-w-\\[calc\\(100\\%-2rem\\)\\][data-v-1feccefe]{max-width:calc(100% - 2rem)}.wp\\:max-w-lg[data-v-1feccefe]{max-width:var(--wp-container-lg)}.wp\\:max-w-md[data-v-1feccefe]{max-width:var(--wp-container-md)}.wp\\:max-w-screen-2xl[data-v-1feccefe]{max-width:var(--wp-breakpoint-2xl)}.wp\\:min-w-0[data-v-1feccefe]{min-width:calc(var(--wp-spacing) * 0)}.wp\\:min-w-5[data-v-1feccefe]{min-width:calc(var(--wp-spacing) * 5)}.wp\\:min-w-8[data-v-1feccefe]{min-width:calc(var(--wp-spacing) * 8)}.wp\\:min-w-9[data-v-1feccefe]{min-width:calc(var(--wp-spacing) * 9)}.wp\\:min-w-10[data-v-1feccefe]{min-width:calc(var(--wp-spacing) * 10)}.wp\\:min-w-\\[8rem\\][data-v-1feccefe]{min-width:8rem}.wp\\:min-w-\\[var\\(--reka-select-trigger-width\\)\\][data-v-1feccefe]{min-width:var(--reka-select-trigger-width)}.wp\\:flex-1[data-v-1feccefe]{flex:1}.wp\\:shrink-0[data-v-1feccefe]{flex-shrink:0}.wp\\:grow[data-v-1feccefe]{flex-grow:1}.wp\\:origin-\\(--reka-dropdown-menu-content-transform-origin\\)[data-v-1feccefe]{transform-origin:var(--reka-dropdown-menu-content-transform-origin)}.wp\\:origin-\\(--reka-popover-content-transform-origin\\)[data-v-1feccefe]{transform-origin:var(--reka-popover-content-transform-origin)}.wp\\:translate-x-0[data-v-1feccefe]{--tw-translate-x:calc(var(--wp-spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-x-5[data-v-1feccefe]{--tw-translate-x:calc(var(--wp-spacing) * 5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-x-\\[-50\\%\\][data-v-1feccefe]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:-translate-y-1\\/2[data-v-1feccefe]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-0\\.5[data-v-1feccefe]{--tw-translate-y:calc(var(--wp-spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[-50\\%\\][data-v-1feccefe]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:translate-y-\\[calc\\(-50\\%_-_2px\\)\\][data-v-1feccefe]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:rotate-45[data-v-1feccefe]{rotate:45deg}.wp\\:animate-in[data-v-1feccefe]{animation:enter-1feccefe var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:animate-pulse[data-v-1feccefe]{animation:var(--wp-animate-pulse)}.wp\\:cursor-default[data-v-1feccefe]{cursor:default}.wp\\:cursor-move[data-v-1feccefe]{cursor:move}.wp\\:cursor-pointer[data-v-1feccefe]{cursor:pointer}.wp\\:touch-none[data-v-1feccefe]{touch-action:none}.wp\\:scroll-my-1[data-v-1feccefe]{scroll-margin-block:calc(var(--wp-spacing) * 1)}.wp\\:scroll-py-1[data-v-1feccefe]{scroll-padding-block:calc(var(--wp-spacing) * 1)}.wp\\:auto-rows-min[data-v-1feccefe]{grid-auto-rows:min-content}.wp\\:grid-cols-2[data-v-1feccefe]{grid-template-columns:repeat(2,minmax(0,1fr))}.wp\\:grid-cols-3[data-v-1feccefe]{grid-template-columns:repeat(3,minmax(0,1fr))}.wp\\:grid-rows-\\[auto_auto\\][data-v-1feccefe]{grid-template-rows:auto auto}.wp\\:flex-col[data-v-1feccefe]{flex-direction:column}.wp\\:flex-col-reverse[data-v-1feccefe]{flex-direction:column-reverse}.wp\\:place-items-center[data-v-1feccefe]{place-items:center}.wp\\:items-center[data-v-1feccefe]{align-items:center}.wp\\:items-end[data-v-1feccefe]{align-items:flex-end}.wp\\:items-start[data-v-1feccefe]{align-items:flex-start}.wp\\:justify-between[data-v-1feccefe]{justify-content:space-between}.wp\\:justify-center[data-v-1feccefe]{justify-content:center}.wp\\:justify-start[data-v-1feccefe]{justify-content:flex-start}.wp\\:gap-0[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 0)}.wp\\:gap-1[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 1)}.wp\\:gap-1\\.5[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 1.5)}.wp\\:gap-2[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 2)}.wp\\:gap-3[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 3)}.wp\\:gap-4[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 4)}.wp\\:gap-6[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-\\[--spacing\\(var\\(--gap\\)\\)\\][data-v-1feccefe]{gap:calc(var(--wp-spacing) * var(--gap))}:where(.wp\\:space-y-2[data-v-1feccefe]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-4[data-v-1feccefe]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.wp\\:space-y-6[data-v-1feccefe]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--wp-spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--wp-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.wp\\:gap-x-6[data-v-1feccefe]{column-gap:calc(var(--wp-spacing) * 6)}.wp\\:gap-y-3[data-v-1feccefe]{row-gap:calc(var(--wp-spacing) * 3)}.wp\\:self-start[data-v-1feccefe]{align-self:flex-start}.wp\\:justify-self-end[data-v-1feccefe]{justify-self:flex-end}.wp\\:truncate[data-v-1feccefe]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wp\\:overflow-auto[data-v-1feccefe]{overflow:auto}.wp\\:overflow-hidden[data-v-1feccefe]{overflow:hidden}.wp\\:overflow-x-hidden[data-v-1feccefe]{overflow-x:hidden}.wp\\:overflow-y-auto[data-v-1feccefe]{overflow-y:auto}.wp\\:rounded[data-v-1feccefe]{border-radius:.25rem}.wp\\:rounded-2xl[data-v-1feccefe]{border-radius:var(--wp-radius-2xl)}.wp\\:rounded-\\[2px\\][data-v-1feccefe]{border-radius:2px}.wp\\:rounded-\\[inherit\\][data-v-1feccefe]{border-radius:inherit}.wp\\:rounded-full[data-v-1feccefe]{border-radius:3.40282e38px}.wp\\:rounded-lg[data-v-1feccefe]{border-radius:var(--radius)}.wp\\:rounded-md[data-v-1feccefe]{border-radius:calc(var(--radius) - 2px)}.wp\\:rounded-sm[data-v-1feccefe]{border-radius:calc(var(--radius) - 4px)}.wp\\:rounded-xl[data-v-1feccefe]{border-radius:calc(var(--radius) + 4px)}.wp\\:rounded-xs[data-v-1feccefe]{border-radius:var(--wp-radius-xs)}.wp\\:border[data-v-1feccefe]{border-style:var(--tw-border-style);border-width:1px}.wp\\:border-0[data-v-1feccefe]{border-style:var(--tw-border-style);border-width:0}.wp\\:border-t[data-v-1feccefe]{border-top-style:var(--tw-border-style);border-top-width:1px}.wp\\:border-b[data-v-1feccefe]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.wp\\:border-l[data-v-1feccefe]{border-left-style:var(--tw-border-style);border-left-width:1px}.wp\\:border-blue-500[data-v-1feccefe]{border-color:var(--wp-color-blue-500)}.wp\\:border-border[data-v-1feccefe]{border-color:var(--border)}.wp\\:border-destructive[data-v-1feccefe]{border-color:var(--destructive)}.wp\\:border-input[data-v-1feccefe]{border-color:var(--input)}.wp\\:border-primary[data-v-1feccefe]{border-color:var(--primary)}.wp\\:border-white\\/20[data-v-1feccefe]{border-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:border-white\\/20[data-v-1feccefe]{border-color:color-mix(in oklab, var(--wp-color-white) 20%, transparent)}}.wp\\:border-t-transparent[data-v-1feccefe]{border-top-color:#0000}.wp\\:border-l-transparent[data-v-1feccefe]{border-left-color:#0000}.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12[data-v-1feccefe]{background-color:var(--color-red)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--color-red\\)\\]\\/12[data-v-1feccefe]{background-color:color-mix(in oklab, var(--color-red) 12%, transparent)}}.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12[data-v-1feccefe]{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-\\[var\\(--p-primary-color\\)\\]\\/12[data-v-1feccefe]{background-color:color-mix(in oklab, var(--p-primary-color) 12%, transparent)}}.wp\\:bg-amber-100[data-v-1feccefe]{background-color:var(--wp-color-amber-100)}.wp\\:bg-background[data-v-1feccefe],.wp\\:bg-background\\/95[data-v-1feccefe]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-background\\/95[data-v-1feccefe]{background-color:color-mix(in oklab, var(--background) 95%, transparent)}}.wp\\:bg-black[data-v-1feccefe],.wp\\:bg-black\\/80[data-v-1feccefe]{background-color:var(--wp-color-black)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-black\\/80[data-v-1feccefe]{background-color:color-mix(in oklab, var(--wp-color-black) 80%, transparent)}}.wp\\:bg-blue-100[data-v-1feccefe]{background-color:var(--wp-color-blue-100)}.wp\\:bg-border[data-v-1feccefe]{background-color:var(--border)}.wp\\:bg-card[data-v-1feccefe]{background-color:var(--card)}.wp\\:bg-destructive[data-v-1feccefe]{background-color:var(--destructive)}.wp\\:bg-emerald-100[data-v-1feccefe]{background-color:var(--wp-color-emerald-100)}.wp\\:bg-foreground[data-v-1feccefe]{background-color:var(--foreground)}.wp\\:bg-muted[data-v-1feccefe]{background-color:var(--muted)}.wp\\:bg-neutral-100[data-v-1feccefe]{background-color:var(--wp-color-neutral-100)}.wp\\:bg-neutral-800[data-v-1feccefe]{background-color:var(--wp-color-neutral-800)}.wp\\:bg-popover[data-v-1feccefe]{background-color:var(--popover)}.wp\\:bg-primary[data-v-1feccefe],.wp\\:bg-primary\\/10[data-v-1feccefe]{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-primary\\/10[data-v-1feccefe]{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.wp\\:bg-purple-100[data-v-1feccefe]{background-color:var(--wp-color-purple-100)}.wp\\:bg-secondary[data-v-1feccefe]{background-color:var(--secondary)}.wp\\:bg-status-available[data-v-1feccefe]{background-color:var(--status-available)}.wp\\:bg-status-hold\\/12[data-v-1feccefe]{background-color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-status-hold\\/12[data-v-1feccefe]{background-color:color-mix(in oklab, var(--status-hold) 12%, transparent)}}.wp\\:bg-transparent[data-v-1feccefe]{background-color:#0000}.wp\\:bg-white[data-v-1feccefe],.wp\\:bg-white\\/70[data-v-1feccefe]{background-color:var(--wp-color-white)}@supports (color:color-mix(in lab, red, red)){.wp\\:bg-white\\/70[data-v-1feccefe]{background-color:color-mix(in oklab, var(--wp-color-white) 70%, transparent)}}.wp\\:bg-gradient-to-r[data-v-1feccefe]{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-1feccefe]{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-1feccefe]{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 80%, transparent)}}.wp\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/80[data-v-1feccefe]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:from-destructive\\/60[data-v-1feccefe]{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:from-destructive\\/60[data-v-1feccefe]{--tw-gradient-from:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:from-destructive\\/60[data-v-1feccefe]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-\\[color\\:var\\(--p-primary-color\\)\\]\\/100[data-v-1feccefe]{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:to-destructive\\/90[data-v-1feccefe]{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:to-destructive\\/90[data-v-1feccefe]{--tw-gradient-to:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:to-destructive\\/90[data-v-1feccefe]{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:fill-current[data-v-1feccefe]{fill:currentColor}.wp\\:fill-foreground[data-v-1feccefe]{fill:var(--foreground)}.wp\\:object-contain[data-v-1feccefe]{object-fit:contain}.wp\\:object-cover[data-v-1feccefe]{object-fit:cover}.wp\\:p-0[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 0)}.wp\\:p-0\\.5[data-v-1feccefe]{padding:calc(var(--wp-spacing) * .5)}.wp\\:p-1[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 1)}.wp\\:p-2[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 2)}.wp\\:p-3[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 3)}.wp\\:p-4[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 4)}.wp\\:p-6[data-v-1feccefe]{padding:calc(var(--wp-spacing) * 6)}.wp\\:p-px[data-v-1feccefe]{padding:1px}.wp\\:px-1[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 1)}.wp\\:px-1\\.5[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 1.5)}.wp\\:px-2[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 2)}.wp\\:px-2\\.5[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:px-3[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:px-4[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:px-6[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 6)}.wp\\:px-10[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 10)}.wp\\:px-14[data-v-1feccefe]{padding-inline:calc(var(--wp-spacing) * 14)}.wp\\:py-1[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 1)}.wp\\:py-1\\.5[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 1.5)}.wp\\:py-2[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 2)}.wp\\:py-3[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 3)}.wp\\:py-4[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 4)}.wp\\:py-6[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 6)}.wp\\:py-8[data-v-1feccefe]{padding-block:calc(var(--wp-spacing) * 8)}.wp\\:pt-0[data-v-1feccefe]{padding-top:calc(var(--wp-spacing) * 0)}.wp\\:pr-2[data-v-1feccefe]{padding-right:calc(var(--wp-spacing) * 2)}.wp\\:pr-4[data-v-1feccefe]{padding-right:calc(var(--wp-spacing) * 4)}.wp\\:pr-8[data-v-1feccefe]{padding-right:calc(var(--wp-spacing) * 8)}.wp\\:pb-0[data-v-1feccefe]{padding-bottom:calc(var(--wp-spacing) * 0)}.wp\\:pb-4[data-v-1feccefe]{padding-bottom:calc(var(--wp-spacing) * 4)}.wp\\:pl-2[data-v-1feccefe]{padding-left:calc(var(--wp-spacing) * 2)}.wp\\:pl-8[data-v-1feccefe]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:text-center[data-v-1feccefe]{text-align:center}.wp\\:text-left[data-v-1feccefe]{text-align:left}.wp\\:font-mono[data-v-1feccefe]{font-family:var(--wp-font-mono)}.wp\\:font-sans[data-v-1feccefe]{font-family:Montserrat,sans-serif}.wp\\:text-3xl[data-v-1feccefe]{font-size:var(--wp-text-3xl);line-height:var(--tw-leading,var(--wp-text-3xl--line-height))}.wp\\:text-base[data-v-1feccefe]{font-size:var(--wp-text-base);line-height:var(--tw-leading,var(--wp-text-base--line-height))}.wp\\:text-lg[data-v-1feccefe]{font-size:var(--wp-text-lg);line-height:var(--tw-leading,var(--wp-text-lg--line-height))}.wp\\:text-sm[data-v-1feccefe]{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:text-xs[data-v-1feccefe]{font-size:var(--wp-text-xs);line-height:var(--tw-leading,var(--wp-text-xs--line-height))}.wp\\:text-\\[10px\\][data-v-1feccefe]{font-size:10px}.wp\\:text-\\[11px\\][data-v-1feccefe]{font-size:11px}.wp\\:leading-none[data-v-1feccefe]{--tw-leading:1;line-height:1}.wp\\:font-bold[data-v-1feccefe]{--tw-font-weight:var(--wp-font-weight-bold);font-weight:var(--wp-font-weight-bold)}.wp\\:font-light[data-v-1feccefe]{--tw-font-weight:var(--wp-font-weight-light);font-weight:var(--wp-font-weight-light)}.wp\\:font-medium[data-v-1feccefe]{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:font-semibold[data-v-1feccefe]{--tw-font-weight:var(--wp-font-weight-semibold);font-weight:var(--wp-font-weight-semibold)}.wp\\:tracking-wider[data-v-1feccefe]{--tw-tracking:var(--wp-tracking-wider);letter-spacing:var(--wp-tracking-wider)}.wp\\:tracking-widest[data-v-1feccefe]{--tw-tracking:var(--wp-tracking-widest);letter-spacing:var(--wp-tracking-widest)}.wp\\:text-balance[data-v-1feccefe]{text-wrap:balance}.wp\\:whitespace-nowrap[data-v-1feccefe]{white-space:nowrap}.wp\\:text-\\[var\\(--color-avaible\\)\\][data-v-1feccefe]{color:var(--color-avaible)}.wp\\:text-\\[var\\(--color-primary\\)\\][data-v-1feccefe]{color:var(--color-primary)}.wp\\:text-\\[var\\(--color-red\\)\\][data-v-1feccefe]{color:var(--color-red)}.wp\\:text-\\[var\\(--color-settings\\)\\][data-v-1feccefe]{color:var(--color-settings)}.wp\\:text-\\[var\\(--p-primary-color\\)\\][data-v-1feccefe]{color:var(--p-primary-color)}.wp\\:text-\\[var\\(--primary\\)\\][data-v-1feccefe]{color:var(--primary)}.wp\\:text-amber-500[data-v-1feccefe]{color:var(--wp-color-amber-500)}.wp\\:text-amber-600[data-v-1feccefe]{color:var(--wp-color-amber-600)}.wp\\:text-background[data-v-1feccefe]{color:var(--background)}.wp\\:text-black[data-v-1feccefe]{color:var(--wp-color-black)}.wp\\:text-blue-500[data-v-1feccefe]{color:var(--wp-color-blue-500)}.wp\\:text-blue-600[data-v-1feccefe]{color:var(--wp-color-blue-600)}.wp\\:text-card-foreground[data-v-1feccefe]{color:var(--card-foreground)}.wp\\:text-destructive[data-v-1feccefe]{color:var(--destructive)}.wp\\:text-emerald-600[data-v-1feccefe]{color:var(--wp-color-emerald-600)}.wp\\:text-foreground[data-v-1feccefe]{color:var(--foreground)}.wp\\:text-green-500[data-v-1feccefe]{color:var(--wp-color-green-500)}.wp\\:text-muted-foreground[data-v-1feccefe]{color:var(--muted-foreground)}.wp\\:text-neutral-400[data-v-1feccefe]{color:var(--wp-color-neutral-400)}.wp\\:text-neutral-500[data-v-1feccefe]{color:var(--wp-color-neutral-500)}.wp\\:text-neutral-600[data-v-1feccefe]{color:var(--wp-color-neutral-600)}.wp\\:text-neutral-800[data-v-1feccefe]{color:var(--wp-color-neutral-800)}.wp\\:text-neutral-900[data-v-1feccefe]{color:var(--wp-color-neutral-900)}.wp\\:text-popover-foreground[data-v-1feccefe]{color:var(--popover-foreground)}.wp\\:text-primary[data-v-1feccefe]{color:var(--primary)}.wp\\:text-primary-foreground[data-v-1feccefe]{color:var(--primary-foreground)}.wp\\:text-purple-600[data-v-1feccefe]{color:var(--wp-color-purple-600)}.wp\\:text-red-500[data-v-1feccefe]{color:var(--wp-color-red-500)}.wp\\:text-secondary-foreground[data-v-1feccefe]{color:var(--secondary-foreground)}.wp\\:text-status-available[data-v-1feccefe]{color:var(--status-available)}.wp\\:text-status-disconnected[data-v-1feccefe]{color:var(--status-disconnected)}.wp\\:text-status-hold[data-v-1feccefe]{color:var(--status-hold)}.wp\\:text-status-incall[data-v-1feccefe]{color:var(--status-incall)}.wp\\:text-status-incoming[data-v-1feccefe]{color:var(--status-incoming)}.wp\\:text-white[data-v-1feccefe]{color:var(--wp-color-white)}.wp\\:capitalize[data-v-1feccefe]{text-transform:capitalize}.wp\\:underline-offset-4[data-v-1feccefe]{text-underline-offset:4px}.wp\\:opacity-0[data-v-1feccefe]{opacity:0}.wp\\:opacity-50[data-v-1feccefe]{opacity:.5}.wp\\:opacity-70[data-v-1feccefe]{opacity:.7}.wp\\:opacity-100[data-v-1feccefe]{opacity:1}.wp\\:shadow-lg[data-v-1feccefe]{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-md[data-v-1feccefe]{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-sm[data-v-1feccefe]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:shadow-xs[data-v-1feccefe]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:inset-shadow-2xs[data-v-1feccefe]{--tw-inset-shadow:inset 0 1px var(--tw-inset-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:ring-ring\\/50[data-v-1feccefe]{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:ring-ring\\/50[data-v-1feccefe]{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:ring-offset-background[data-v-1feccefe]{--tw-ring-offset-color:var(--background)}.wp\\:outline-hidden[data-v-1feccefe]{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:outline-hidden[data-v-1feccefe]{outline-offset:2px;outline:2px solid #0000}}.wp\\:backdrop-blur[data-v-1feccefe]{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:backdrop-blur-\\[1px\\][data-v-1feccefe]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.wp\\:transition-\\[color\\,box-shadow\\][data-v-1feccefe]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-all[data-v-1feccefe]{transition-property:all;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-colors[data-v-1feccefe]{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-opacity[data-v-1feccefe]{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:transition-transform[data-v-1feccefe]{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--wp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--wp-default-transition-duration))}.wp\\:duration-150[data-v-1feccefe]{--tw-duration:.15s;transition-duration:.15s}.wp\\:duration-200[data-v-1feccefe]{--tw-duration:.2s;transition-duration:.2s}.wp\\:duration-300[data-v-1feccefe]{--tw-duration:.3s;transition-duration:.3s}.wp\\:ease-in-out[data-v-1feccefe]{--tw-ease:var(--wp-ease-in-out);transition-timing-function:var(--wp-ease-in-out)}.wp\\:fade-in-0[data-v-1feccefe]{--tw-enter-opacity:0}.wp\\:outline-none[data-v-1feccefe]{--tw-outline-style:none;outline-style:none}.wp\\:select-none[data-v-1feccefe]{-webkit-user-select:none;user-select:none}.wp\\:select-text[data-v-1feccefe]{-webkit-user-select:text;user-select:text}.wp\\:zoom-in-95[data-v-1feccefe]{--tw-enter-scale:.95}.wp\\:group-data-\\[disabled\\=true\\]\\:pointer-events-none[data-v-1feccefe]:is(:where(.wp\\:group)[data-disabled=true] *){pointer-events:none}.wp\\:group-data-\\[disabled\\=true\\]\\:opacity-50[data-v-1feccefe]:is(:where(.wp\\:group)[data-disabled=true] *){opacity:.5}.wp\\:peer-disabled\\:cursor-not-allowed[data-v-1feccefe]:is(:where(.wp\\:peer):disabled~*){cursor:not-allowed}.wp\\:peer-disabled\\:opacity-50[data-v-1feccefe]:is(:where(.wp\\:peer):disabled~*){opacity:.5}.wp\\:selection\\:bg-primary[data-v-1feccefe] ::selection,.wp\\:selection\\:bg-primary[data-v-1feccefe]::selection{background-color:var(--primary)}.wp\\:selection\\:text-primary-foreground[data-v-1feccefe] ::selection,.wp\\:selection\\:text-primary-foreground[data-v-1feccefe]::selection{color:var(--primary-foreground)}.wp\\:file\\:inline-flex[data-v-1feccefe]::-webkit-file-upload-button{display:inline-flex}.wp\\:file\\:inline-flex[data-v-1feccefe]::file-selector-button{display:inline-flex}.wp\\:file\\:h-7[data-v-1feccefe]::-webkit-file-upload-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:h-7[data-v-1feccefe]::file-selector-button{height:calc(var(--wp-spacing) * 7)}.wp\\:file\\:border-0[data-v-1feccefe]::-webkit-file-upload-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:border-0[data-v-1feccefe]::file-selector-button{border-style:var(--tw-border-style);border-width:0}.wp\\:file\\:bg-transparent[data-v-1feccefe]::-webkit-file-upload-button{background-color:#0000}.wp\\:file\\:bg-transparent[data-v-1feccefe]::file-selector-button{background-color:#0000}.wp\\:file\\:text-sm[data-v-1feccefe]::-webkit-file-upload-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:text-sm[data-v-1feccefe]::file-selector-button{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}.wp\\:file\\:font-medium[data-v-1feccefe]::-webkit-file-upload-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:font-medium[data-v-1feccefe]::file-selector-button{--tw-font-weight:var(--wp-font-weight-medium);font-weight:var(--wp-font-weight-medium)}.wp\\:file\\:text-foreground[data-v-1feccefe]::-webkit-file-upload-button{color:var(--foreground)}.wp\\:file\\:text-foreground[data-v-1feccefe]::file-selector-button{color:var(--foreground)}.wp\\:placeholder\\:text-muted-foreground[data-v-1feccefe]::placeholder{color:var(--muted-foreground)}.wp\\:last\\:border-b-0[data-v-1feccefe]:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8[data-v-1feccefe]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/8[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 8%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10[data-v-1feccefe]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/10[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 10%, transparent)}}.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20[data-v-1feccefe]:hover{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-\\[var\\(--p-primary-color\\)\\]\\/20[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--p-primary-color) 20%, transparent)}}.wp\\:hover\\:bg-accent[data-v-1feccefe]:hover,.wp\\:hover\\:bg-accent\\/50[data-v-1feccefe]:hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-accent\\/50[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:hover\\:bg-destructive\\/90[data-v-1feccefe]:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-destructive\\/90[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.wp\\:hover\\:bg-muted[data-v-1feccefe]:hover{background-color:var(--muted)}.wp\\:hover\\:bg-neutral-100[data-v-1feccefe]:hover{background-color:var(--wp-color-neutral-100)}.wp\\:hover\\:bg-neutral-200[data-v-1feccefe]:hover{background-color:var(--wp-color-neutral-200)}.wp\\:hover\\:bg-primary\\/10[data-v-1feccefe]:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-primary\\/10[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.wp\\:hover\\:bg-primary\\/90[data-v-1feccefe]:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-primary\\/90[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.wp\\:hover\\:bg-secondary[data-v-1feccefe]:hover,.wp\\:hover\\:bg-secondary\\/80[data-v-1feccefe]:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-secondary\\/80[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.wp\\:hover\\:bg-status-available\\/90[data-v-1feccefe]:hover{background-color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:bg-status-available\\/90[data-v-1feccefe]:hover{background-color:color-mix(in oklab, var(--status-available) 90%, transparent)}}.wp\\:hover\\:bg-transparent[data-v-1feccefe]:hover{background-color:#0000}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-1feccefe]:hover{--tw-gradient-from:var(--p-primary-color)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-1feccefe]:hover{--tw-gradient-from:color-mix(in oklab, var(--p-primary-color) 75%, transparent)}}.wp\\:hover\\:from-\\[color\\:var\\(--p-primary-color\\)\\]\\/75[data-v-1feccefe]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:from-destructive\\/70[data-v-1feccefe]:hover{--tw-gradient-from:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:from-destructive\\/70[data-v-1feccefe]:hover{--tw-gradient-from:color-mix(in oklab, var(--destructive) 70%, transparent)}}.wp\\:hover\\:from-destructive\\/70[data-v-1feccefe]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-\\[color\\:var\\(--p-primary-color\\)\\][data-v-1feccefe]:hover{--tw-gradient-to:var(--p-primary-color);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:to-destructive\\/95[data-v-1feccefe]:hover{--tw-gradient-to:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:to-destructive\\/95[data-v-1feccefe]:hover{--tw-gradient-to:color-mix(in oklab, var(--destructive) 95%, transparent)}}.wp\\:hover\\:to-destructive\\/95[data-v-1feccefe]:hover{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.wp\\:hover\\:text-accent-foreground[data-v-1feccefe]:hover{color:var(--accent-foreground)}.wp\\:hover\\:text-destructive[data-v-1feccefe]:hover{color:var(--destructive)}.wp\\:hover\\:text-foreground[data-v-1feccefe]:hover{color:var(--foreground)}.wp\\:hover\\:text-muted-foreground[data-v-1feccefe]:hover{color:var(--muted-foreground)}.wp\\:hover\\:text-primary[data-v-1feccefe]:hover{color:var(--primary)}.wp\\:hover\\:text-status-available\\/80[data-v-1feccefe]:hover{color:var(--status-available)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-available\\/80[data-v-1feccefe]:hover{color:color-mix(in oklab, var(--status-available) 80%, transparent)}}.wp\\:hover\\:text-status-disconnected[data-v-1feccefe]:hover,.wp\\:hover\\:text-status-disconnected\\/80[data-v-1feccefe]:hover{color:var(--status-disconnected)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-disconnected\\/80[data-v-1feccefe]:hover{color:color-mix(in oklab, var(--status-disconnected) 80%, transparent)}}.wp\\:hover\\:text-status-hold\\/80[data-v-1feccefe]:hover{color:var(--status-hold)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-hold\\/80[data-v-1feccefe]:hover{color:color-mix(in oklab, var(--status-hold) 80%, transparent)}}.wp\\:hover\\:text-status-incall\\/80[data-v-1feccefe]:hover{color:var(--status-incall)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incall\\/80[data-v-1feccefe]:hover{color:color-mix(in oklab, var(--status-incall) 80%, transparent)}}.wp\\:hover\\:text-status-incoming\\/80[data-v-1feccefe]:hover{color:var(--status-incoming)}@supports (color:color-mix(in lab, red, red)){.wp\\:hover\\:text-status-incoming\\/80[data-v-1feccefe]:hover{color:color-mix(in oklab, var(--status-incoming) 80%, transparent)}}.wp\\:hover\\:underline[data-v-1feccefe]:hover{text-decoration-line:underline}.wp\\:hover\\:opacity-80[data-v-1feccefe]:hover{opacity:.8}.wp\\:hover\\:opacity-100[data-v-1feccefe]:hover{opacity:1}.wp\\:hover\\:ring-4[data-v-1feccefe]:hover{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.wp\\:focus\\:z-10[data-v-1feccefe]:focus{z-index:10}.wp\\:focus\\:bg-accent[data-v-1feccefe]:focus{background-color:var(--accent)}.wp\\:focus\\:text-accent-foreground[data-v-1feccefe]:focus{color:var(--accent-foreground)}.wp\\:focus\\:ring-2[data-v-1feccefe]:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus\\:ring-ring[data-v-1feccefe]:focus{--tw-ring-color:var(--ring)}.wp\\:focus\\:ring-offset-2[data-v-1feccefe]:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus\\:outline-hidden[data-v-1feccefe]:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus\\:outline-hidden[data-v-1feccefe]:focus{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:z-10[data-v-1feccefe]:focus-visible{z-index:10}.wp\\:focus-visible\\:border-ring[data-v-1feccefe]:focus-visible{border-color:var(--ring)}.wp\\:focus-visible\\:ring-2[data-v-1feccefe]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-4[data-v-1feccefe]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[3px\\][data-v-1feccefe]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:focus-visible\\:ring-\\[var\\(--p-primary-color\\)\\][data-v-1feccefe]:focus-visible{--tw-ring-color:var(--p-primary-color)}.wp\\:focus-visible\\:ring-destructive\\/20[data-v-1feccefe]:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-destructive\\/20[data-v-1feccefe]:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:focus-visible\\:ring-primary\\/50[data-v-1feccefe]:focus-visible{--tw-ring-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-primary\\/50[data-v-1feccefe]:focus-visible{--tw-ring-color:color-mix(in oklab, var(--primary) 50%, transparent)}}.wp\\:focus-visible\\:ring-ring\\/50[data-v-1feccefe]:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.wp\\:focus-visible\\:ring-ring\\/50[data-v-1feccefe]:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.wp\\:focus-visible\\:ring-offset-2[data-v-1feccefe]:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.wp\\:focus-visible\\:ring-offset-white[data-v-1feccefe]:focus-visible{--tw-ring-offset-color:var(--wp-color-white)}.wp\\:focus-visible\\:outline-hidden[data-v-1feccefe]:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.wp\\:focus-visible\\:outline-hidden[data-v-1feccefe]:focus-visible{outline-offset:2px;outline:2px solid #0000}}.wp\\:focus-visible\\:outline-1[data-v-1feccefe]:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.wp\\:active\\:scale-95[data-v-1feccefe]:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.wp\\:disabled\\:pointer-events-none[data-v-1feccefe]:disabled{pointer-events:none}.wp\\:disabled\\:cursor-not-allowed[data-v-1feccefe]:disabled{cursor:not-allowed}.wp\\:disabled\\:opacity-50[data-v-1feccefe]:disabled{opacity:.5}.wp\\:has-data-\\[slot\\=card-action\\]\\:grid-cols-\\[1fr_auto\\][data-v-1feccefe]:has([data-slot=card-action]){grid-template-columns:1fr auto}.wp\\:has-\\[\\>svg\\]\\:px-2\\.5[data-v-1feccefe]:has(>svg){padding-inline:calc(var(--wp-spacing) * 2.5)}.wp\\:has-\\[\\>svg\\]\\:px-3[data-v-1feccefe]:has(>svg){padding-inline:calc(var(--wp-spacing) * 3)}.wp\\:has-\\[\\>svg\\]\\:px-4[data-v-1feccefe]:has(>svg){padding-inline:calc(var(--wp-spacing) * 4)}.wp\\:aria-invalid\\:border-destructive[aria-invalid=true][data-v-1feccefe]{border-color:var(--destructive)}.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true][data-v-1feccefe]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:aria-invalid\\:ring-destructive\\/20[aria-invalid=true][data-v-1feccefe]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:data-\\[disabled\\]\\:pointer-events-none[data-disabled][data-v-1feccefe]{pointer-events:none}.wp\\:data-\\[disabled\\]\\:opacity-50[data-disabled][data-v-1feccefe]{opacity:.5}.wp\\:data-\\[highlighted\\]\\:bg-accent[data-highlighted][data-v-1feccefe]{background-color:var(--accent)}.wp\\:data-\\[highlighted\\]\\:text-accent-foreground[data-highlighted][data-v-1feccefe]{color:var(--accent-foreground)}.wp\\:data-\\[inset\\]\\:pl-8[data-inset][data-v-1feccefe]{padding-left:calc(var(--wp-spacing) * 8)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-1\\.5[data-orientation=horizontal][data-v-1feccefe]{height:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-full[data-orientation=horizontal][data-v-1feccefe]{height:100%}.wp\\:data-\\[orientation\\=horizontal\\]\\:h-px[data-orientation=horizontal][data-v-1feccefe]{height:1px}.wp\\:data-\\[orientation\\=horizontal\\]\\:w-full[data-orientation=horizontal][data-v-1feccefe]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:h-full[data-orientation=vertical][data-v-1feccefe]{height:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:min-h-44[data-orientation=vertical][data-v-1feccefe]{min-height:calc(var(--wp-spacing) * 44)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-1\\.5[data-orientation=vertical][data-v-1feccefe]{width:calc(var(--wp-spacing) * 1.5)}.wp\\:data-\\[orientation\\=vertical\\]\\:w-auto[data-orientation=vertical][data-v-1feccefe]{width:auto}.wp\\:data-\\[orientation\\=vertical\\]\\:w-full[data-orientation=vertical][data-v-1feccefe]{width:100%}.wp\\:data-\\[orientation\\=vertical\\]\\:w-px[data-orientation=vertical][data-v-1feccefe]{width:1px}.wp\\:data-\\[orientation\\=vertical\\]\\:flex-col[data-orientation=vertical][data-v-1feccefe]{flex-direction:column}.wp\\:data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder][data-v-1feccefe]{color:var(--muted-foreground)}.wp\\:data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom][data-v-1feccefe]{--tw-translate-y:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom][data-v-1feccefe]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=left\\]\\:-translate-x-1[data-side=left][data-v-1feccefe]{--tw-translate-x:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left][data-v-1feccefe]{--tw-enter-translate-x:calc(2*var(--spacing))}.wp\\:data-\\[side\\=right\\]\\:translate-x-1[data-side=right][data-v-1feccefe]{--tw-translate-x:calc(var(--wp-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right][data-v-1feccefe]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.wp\\:data-\\[side\\=top\\]\\:-translate-y-1[data-side=top][data-v-1feccefe]{--tw-translate-y:calc(var(--wp-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.wp\\:data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top][data-v-1feccefe]{--tw-enter-translate-y:calc(2*var(--spacing))}.wp\\:data-\\[size\\=default\\]\\:h-9[data-size=default][data-v-1feccefe]{height:calc(var(--wp-spacing) * 9)}.wp\\:data-\\[size\\=sm\\]\\:h-8[data-size=sm][data-v-1feccefe]{height:calc(var(--wp-spacing) * 8)}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1>*)[data-slot=select-value][data-v-1feccefe]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:flex>*)[data-slot=select-value][data-v-1feccefe]{display:flex}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:items-center>*)[data-slot=select-value][data-v-1feccefe]{align-items:center}:is(.wp\\:\\*\\:data-\\[slot\\=select-value\\]\\:gap-2>*)[data-slot=select-value][data-v-1feccefe]{gap:calc(var(--wp-spacing) * 2)}.wp\\:data-\\[spacing\\=0\\]\\:rounded-none[data-spacing="0"][data-v-1feccefe]{border-radius:0}.wp\\:data-\\[spacing\\=0\\]\\:shadow-none[data-spacing="0"][data-v-1feccefe]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.wp\\:data-\\[spacing\\=0\\]\\:first\\:rounded-l-md[data-spacing="0"][data-v-1feccefe]:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[spacing\\=0\\]\\:last\\:rounded-r-md[data-spacing="0"][data-v-1feccefe]:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.wp\\:data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed][data-v-1feccefe]{animation:accordion-up-1feccefe var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:animate-out[data-state=closed][data-v-1feccefe]{animation:exit-1feccefe var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed][data-v-1feccefe]{--tw-exit-opacity:0}.wp\\:data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed][data-v-1feccefe]{--tw-exit-scale:.95}.wp\\:data-\\[state\\=on\\]\\:bg-accent[data-state=on][data-v-1feccefe]{background-color:var(--accent)}.wp\\:data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on][data-v-1feccefe]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open][data-v-1feccefe]{animation:accordion-down-1feccefe var(--tw-animation-duration,var(--tw-duration,.2s))var(--tw-ease,ease-out)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:animate-in[data-state=open][data-v-1feccefe]{animation:enter-1feccefe var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.wp\\:data-\\[state\\=open\\]\\:bg-accent[data-state=open][data-v-1feccefe]{background-color:var(--accent)}.wp\\:data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open][data-v-1feccefe]{color:var(--accent-foreground)}.wp\\:data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open][data-v-1feccefe]{color:var(--muted-foreground)}.wp\\:data-\\[state\\=open\\]\\:fade-in-0[data-state=open][data-v-1feccefe]{--tw-enter-opacity:0}.wp\\:data-\\[state\\=open\\]\\:zoom-in-95[data-state=open][data-v-1feccefe]{--tw-enter-scale:.95}.wp\\:data-\\[variant\\=destructive\\]\\:text-destructive[data-variant=destructive][data-v-1feccefe]{color:var(--destructive)}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive][data-v-1feccefe]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/10[data-variant=destructive][data-v-1feccefe]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.wp\\:data-\\[variant\\=destructive\\]\\:focus\\:text-destructive[data-variant=destructive][data-v-1feccefe]:focus{color:var(--destructive)}.wp\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline][data-v-1feccefe]{border-color:var(--color-primary-500)}.wp\\:data-\\[variant\\=outline\\]\\:focus-visible\\:ring-\\[color\\:var\\(--color-primary-500\\)\\][data-variant=outline][data-v-1feccefe]:focus-visible{--tw-ring-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border[data-spacing="0"][data-variant=outline][data-v-1feccefe]{border-style:var(--tw-border-style);border-width:1px}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:border-\\[color\\:var\\(--color-primary-500\\)\\][data-spacing="0"][data-variant=outline][data-v-1feccefe]{border-color:var(--color-primary-500)}.wp\\:data-\\[spacing\\=default\\]\\:data-\\[variant\\=outline\\]\\:shadow-xs[data-spacing=default][data-variant=outline][data-v-1feccefe]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.wp\\:supports-backdrop-filter\\:bg-background\\/60[data-v-1feccefe]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.wp\\:supports-backdrop-filter\\:bg-background\\/60[data-v-1feccefe]{background-color:color-mix(in oklab, var(--background) 60%, transparent)}}}@media (min-width:40rem){.wp\\:sm\\:block[data-v-1feccefe]{display:block}.wp\\:sm\\:inline[data-v-1feccefe]{display:inline}.wp\\:sm\\:inline-block[data-v-1feccefe]{display:inline-block}.wp\\:sm\\:max-w-lg[data-v-1feccefe]{max-width:var(--wp-container-lg)}.wp\\:sm\\:max-w-md[data-v-1feccefe]{max-width:var(--wp-container-md)}.wp\\:sm\\:max-w-sm[data-v-1feccefe]{max-width:var(--wp-container-sm)}.wp\\:sm\\:flex-row[data-v-1feccefe]{flex-direction:row}.wp\\:sm\\:justify-end[data-v-1feccefe]{justify-content:flex-end}.wp\\:sm\\:gap-0[data-v-1feccefe]{gap:calc(var(--wp-spacing) * 0)}.wp\\:sm\\:rounded-lg[data-v-1feccefe]{border-radius:var(--radius)}.wp\\:sm\\:text-left[data-v-1feccefe]{text-align:left}}@media (min-width:48rem){.wp\\:md\\:w-full[data-v-1feccefe]{width:100%}.wp\\:md\\:text-sm[data-v-1feccefe]{font-size:var(--wp-text-sm);line-height:var(--tw-leading,var(--wp-text-sm--line-height))}}.wp\\:dark\\:border-input[data-v-1feccefe]:where(.dark,.dark *){border-color:var(--input)}.wp\\:dark\\:bg-amber-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-amber-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-amber-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-amber-900) 30%, transparent)}}.wp\\:dark\\:bg-blue-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-blue-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-blue-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-blue-900) 30%, transparent)}}.wp\\:dark\\:bg-destructive\\/60[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-destructive\\/60[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.wp\\:dark\\:bg-emerald-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-emerald-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-emerald-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-emerald-900) 30%, transparent)}}.wp\\:dark\\:bg-input\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-input\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.wp\\:dark\\:bg-neutral-700[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-neutral-700)}.wp\\:dark\\:bg-neutral-800[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-neutral-800)}.wp\\:dark\\:bg-neutral-900[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:bg-neutral-900\\/70[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-neutral-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-neutral-900\\/70[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-neutral-900) 70%, transparent)}}.wp\\:dark\\:bg-purple-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--wp-color-purple-900)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:bg-purple-900\\/30[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--wp-color-purple-900) 30%, transparent)}}.wp\\:dark\\:text-amber-400[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-amber-400)}.wp\\:dark\\:text-blue-400[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-blue-400)}.wp\\:dark\\:text-emerald-400[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-emerald-400)}.wp\\:dark\\:text-neutral-100[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-neutral-100)}.wp\\:dark\\:text-neutral-400[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-neutral-400)}.wp\\:dark\\:text-neutral-500[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-neutral-500)}.wp\\:dark\\:text-purple-400[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-purple-400)}.wp\\:dark\\:text-white[data-v-1feccefe]:where(.dark,.dark *){color:var(--wp-color-white)}@media (hover:hover){.wp\\:dark\\:hover\\:bg-accent\\/50[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-accent\\/50[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-input\\/50[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-input\\/50[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-600[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-600)}.wp\\:dark\\:hover\\:bg-neutral-800\\/80[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-800)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:hover\\:bg-neutral-800\\/80[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--wp-color-neutral-800) 80%, transparent)}}.wp\\:dark\\:hover\\:bg-neutral-900[data-v-1feccefe]:where(.dark,.dark *):hover{background-color:var(--wp-color-neutral-900)}.wp\\:dark\\:hover\\:text-neutral-100[data-v-1feccefe]:where(.dark,.dark *):hover{color:var(--wp-color-neutral-100)}.wp\\:dark\\:hover\\:text-status-disconnected[data-v-1feccefe]:where(.dark,.dark *):hover{color:var(--status-disconnected)}}.wp\\:dark\\:focus-visible\\:ring-destructive\\/40[data-v-1feccefe]:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:focus-visible\\:ring-destructive\\/40[data-v-1feccefe]:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:focus-visible\\:ring-offset-neutral-900[data-v-1feccefe]:where(.dark,.dark *):focus-visible{--tw-ring-offset-color:var(--wp-color-neutral-900)}.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true][data-v-1feccefe]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:aria-invalid\\:ring-destructive\\/40:where(.dark,.dark *)[aria-invalid=true][data-v-1feccefe]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive][data-v-1feccefe]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.wp\\:dark\\:data-\\[variant\\=destructive\\]\\:focus\\:bg-destructive\\/20:where(.dark,.dark *)[data-variant=destructive][data-v-1feccefe]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.wp\\:\\[\\&_button\\]\\:cursor-pointer button[data-v-1feccefe]{cursor:pointer}.wp\\:\\[\\&_svg\\]\\:pointer-events-none svg[data-v-1feccefe]{pointer-events:none}.wp\\:\\[\\&_svg\\]\\:shrink-0 svg[data-v-1feccefe]{flex-shrink:0}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg[data-v-1feccefe]:not([class*=size-]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-3 svg[data-v-1feccefe]:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 3);height:calc(var(--wp-spacing) * 3)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'size-\\\\\\'\\]\\)\\]\\:size-4 svg[data-v-1feccefe]:not([class*="'size-'"]){width:calc(var(--wp-spacing) * 4);height:calc(var(--wp-spacing) * 4)}.wp\\:\\[\\&_svg\\:not\\(\\[class\\*\\=\\\\\\'text-\\\\\\'\\]\\)\\]\\:text-muted-foreground svg[data-v-1feccefe]:not([class*="'text-'"]){color:var(--muted-foreground)}.wp\\:\\[\\.border-b\\]\\:pb-6.border-b[data-v-1feccefe]{padding-bottom:calc(var(--wp-spacing) * 6)}.wp\\:\\[\\.border-t\\]\\:pt-6.border-t[data-v-1feccefe]{padding-top:calc(var(--wp-spacing) * 6)}:is(.wp\\:\\*\\*\\:\\[\\[role\\=button\\]\\]\\:cursor-pointer *)[role=button][data-v-1feccefe]{cursor:pointer}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:flex[data-v-1feccefe]>*):-webkit-any(span):last-child{display:flex}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:flex[data-v-1feccefe]>*):is(span):last-child{display:flex}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center[data-v-1feccefe]>*):-webkit-any(span):last-child{align-items:center}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:items-center[data-v-1feccefe]>*):is(span):last-child{align-items:center}:-webkit-any(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2[data-v-1feccefe]>*):-webkit-any(span):last-child{gap:calc(var(--wp-spacing) * 2)}:is(.wp\\:\\*\\:\\[span\\]\\:last\\:gap-2[data-v-1feccefe]>*):is(span):last-child{gap:calc(var(--wp-spacing) * 2)}:-webkit-any(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive][data-v-1feccefe]>*):-webkit-any(svg){color:var(--destructive)!important}:is(.wp\\:data-\\[variant\\=destructive\\]\\:\\*\\:\\[svg\\]\\:\\!text-destructive[data-variant=destructive][data-v-1feccefe]>*):is(svg){color:var(--destructive)!important}.wp\\:data-\\[spacing\\=0\\]\\:data-\\[variant\\=outline\\]\\:\\[\\&\\:not\\(\\:first-child\\)\\]\\:border-l-0[data-spacing="0"][data-variant=outline][data-v-1feccefe]:not(:first-child){border-left-style:var(--tw-border-style);border-left-width:0}.wp\\:\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg[data-v-1feccefe]{rotate:180deg}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20[data-v-1feccefe]{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/20[data-v-1feccefe]{background-color:color-mix(in oklab, var(--background) 20%, transparent)}}[data-slot=tooltip-content] .wp\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:text-background[data-v-1feccefe]{color:var(--background)}[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10[data-v-1feccefe]:where(.dark,.dark *){background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){[data-slot=tooltip-content] .wp\\:dark\\:\\[\\[data-slot\\=tooltip-content\\]_\\&\\]\\:bg-background\\/10[data-v-1feccefe]:where(.dark,.dark *){background-color:color-mix(in oklab, var(--background) 10%, transparent)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:Ibrand;src:url(/fonts/Ibrand.otf)format("truetype");font-weight:100 900;font-style:normal;font-display:swap}svg [clip-path]{clip-path:none!important}:root{--radius:.625rem;--background:#fff;--foreground:#0a0a0a;--card:#fff;--card-foreground:#0a0a0a;--popover:#fff;--popover-foreground:#0a0a0a;--primary:var(--p-primary-color,#171717);--color-primary-500:#9b5ff5;--p-primary-color:var(--color-primary-500);--primary-foreground:#fafafa;--secondary:#f5f5f5;--secondary-foreground:#171717;--muted:#f5f5f5;--muted-foreground:#737373;--accent:#f5f5f5;--accent-foreground:#171717;--destructive:#e40014;--border:#e5e5e5;--input:#e5e5e5;--ring:#a1a1a1;--chart-1:#f05100;--chart-2:#009588;--chart-3:#104e64;--chart-4:#fcbb00;--chart-5:#f99c00;--sidebar:#fafafa;--sidebar-foreground:#0a0a0a;--sidebar-primary:#171717;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f5f5f5;--sidebar-accent-foreground:#171717;--sidebar-border:#e5e5e5;--sidebar-ring:#a1a1a1;--status-available:#00a544;--status-incall:#7a75b5;--status-hold:#f5c632;--status-incoming:#ac4bff;--status-disconnected:#fb2c36;--color-green:#81c200;--color-red:#ed3237;--color-blue:#7a75b5;--color-settings:#b3acd5;--color-avaible:#00c448;font-family:Montserrat,sans-serif}@supports (color:color(display-p3 0 0 0)){:root{--background:color(display-p3 1 1 1);--foreground:color(display-p3 .0393882 .0393882 .0393882);--card:color(display-p3 1 1 1);--card-foreground:color(display-p3 .0393882 .0393882 .0393882);--popover:color(display-p3 1 1 1);--popover-foreground:color(display-p3 .0393882 .0393882 .0393882);--primary:var(--p-primary-color,color(display-p3 .0905274 .0905274 .0905274));--primary-foreground:color(display-p3 .980256 .980256 .980256);--secondary:color(display-p3 .960587 .960587 .960587);--secondary-foreground:color(display-p3 .0905274 .0905274 .0905274);--muted:color(display-p3 .960587 .960587 .960587);--muted-foreground:color(display-p3 .451519 .451519 .451519);--accent:color(display-p3 .960587 .960587 .960587);--accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--destructive:color(display-p3 .830323 .140383 .133196);--border:color(display-p3 .898161 .898161 .898161);--input:color(display-p3 .898161 .898161 .898161);--ring:color(display-p3 .630163 .630163 .630163);--chart-1:color(display-p3 .887467 .341665 .0219962);--chart-2:color(display-p3 .207114 .579584 .53668);--chart-3:color(display-p3 .142586 .302008 .385094);--chart-4:color(display-p3 .959186 .738519 .118268);--chart-5:color(display-p3 .93994 .620584 .0585367);--sidebar:color(display-p3 .980256 .980256 .980256);--sidebar-foreground:color(display-p3 .0393882 .0393882 .0393882);--sidebar-primary:color(display-p3 .0905274 .0905274 .0905274);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .960587 .960587 .960587);--sidebar-accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--sidebar-border:color(display-p3 .898161 .898161 .898161);--sidebar-ring:color(display-p3 .630163 .630163 .630163);--status-available:color(display-p3 .243882 .640824 .294808);--status-incall:color(display-p3 .474968 .45946 .692102);--status-hold:color(display-p3 .930111 .782506 .322764);--status-incoming:color(display-p3 .629519 .30089 .990817);--status-disconnected:color(display-p3 .903738 .262579 .253307);--color-green:color(display-p3 .562304 .754036 .228809);--color-red:color(display-p3 .855599 .269309 .251664);--color-blue:color(display-p3 .474968 .45946 .692102);--color-settings:color(display-p3 .697185 .675441 .822883);--color-avaible:color(display-p3 .345782 .7571 .347428)}}@supports (color:lab(0% 0 0)){:root{--background:lab(100% 0 0);--foreground:lab(2.75381% 0 0);--card:lab(100% 0 0);--card-foreground:lab(2.75381% 0 0);--popover:lab(100% 0 0);--popover-foreground:lab(2.75381% 0 0);--primary:var(--p-primary-color,lab(7.78201% -.0000149012 0));--primary-foreground:lab(98.26% 0 0);--secondary:lab(96.52% -.0000298023 .0000119209);--secondary-foreground:lab(7.78201% -.0000149012 0);--muted:lab(96.52% -.0000298023 .0000119209);--muted-foreground:lab(48.496% 0 0);--accent:lab(96.52% -.0000298023 .0000119209);--accent-foreground:lab(7.78201% -.0000149012 0);--destructive:lab(48.4493% 77.4328 61.5452);--border:lab(90.952% 0 -.0000119209);--input:lab(90.952% 0 -.0000119209);--ring:lab(66.128% -.0000298023 .0000119209);--chart-1:lab(57.1026% 64.2584 89.8886);--chart-2:lab(55.0223% -41.0774 -3.90277);--chart-3:lab(30.372% -13.1853 -18.7887);--chart-4:lab(80.1641% 16.6016 99.2089);--chart-5:lab(72.7183% 31.8672 97.9407);--sidebar:lab(98.26% 0 0);--sidebar-foreground:lab(2.75381% 0 0);--sidebar-primary:lab(7.78201% -.0000149012 0);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(96.52% -.0000298023 .0000119209);--sidebar-accent-foreground:lab(7.78201% -.0000149012 0);--sidebar-border:lab(90.952% 0 -.0000119209);--sidebar-ring:lab(66.128% -.0000298023 .0000119209);--status-available:lab(59.0978% -58.6621 41.2579);--status-incall:lab(51.7014% 13.4467 -33.5273);--status-hold:lab(82.2725% 7.53289 73.9282);--status-incoming:lab(52.0183% 66.11 -78.2316);--status-disconnected:lab(55.4814% 75.0732 48.8528);--color-green:lab(71.931% -38.9071 70.3045);--color-red:lab(53.3473% 69.9469 45.351);--color-blue:lab(51.7014% 13.4467 -33.5273);--color-settings:lab(71.9851% 8.76683 -19.9302);--color-avaible:lab(69.443% -61.9097 48.3881)}}.dark{--background:#0a0a0a;--foreground:#fafafa;--card:#171717;--card-foreground:#fafafa;--popover:#171717;--popover-foreground:#fafafa;--primary:var(--p-primary-color,#e5e5e5);--primary-foreground:#171717;--secondary:#262626;--secondary-foreground:#fafafa;--muted:#262626;--muted-foreground:#a1a1a1;--accent:#262626;--accent-foreground:#fafafa;--destructive:#ff6568;--border:#ffffff1a;--input:#ffffff26;--ring:#737373;--chart-1:#1447e6;--chart-2:#00bb7f;--chart-3:#f99c00;--chart-4:#ac4bff;--chart-5:#ff2357;--sidebar:#171717;--sidebar-foreground:#fafafa;--sidebar-primary:#1447e6;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#262626;--sidebar-accent-foreground:#fafafa;--sidebar-border:#ffffff1a;--sidebar-ring:#737373;--status-available:#41cd6a;--status-incall:#54a2ff;--status-hold:#fccf2c;--status-incoming:#b971ff;--status-disconnected:#ff6568}@supports (color:color(display-p3 0 0 0)){.dark{--background:color(display-p3 .0393882 .0393882 .0393882);--foreground:color(display-p3 .980256 .980256 .980256);--card:color(display-p3 .0905274 .0905274 .0905274);--card-foreground:color(display-p3 .980256 .980256 .980256);--popover:color(display-p3 .0905274 .0905274 .0905274);--popover-foreground:color(display-p3 .980256 .980256 .980256);--primary:var(--p-primary-color,color(display-p3 .898161 .898161 .898161));--primary-foreground:color(display-p3 .0905274 .0905274 .0905274);--secondary:color(display-p3 .149382 .149382 .149382);--secondary-foreground:color(display-p3 .980256 .980256 .980256);--muted:color(display-p3 .149382 .149382 .149382);--muted-foreground:color(display-p3 .630163 .630163 .630163);--accent:color(display-p3 .149382 .149382 .149382);--accent-foreground:color(display-p3 .980256 .980256 .980256);--destructive:color(display-p3 .933534 .431676 .423491);--border:color(display-p3 1 1 1/.1);--input:color(display-p3 1 1 1/.15);--ring:color(display-p3 .451519 .451519 .451519);--chart-1:color(display-p3 .1379 .274983 .867624);--chart-2:color(display-p3 .267113 .726847 .508397);--chart-3:color(display-p3 .93994 .620584 .0585367);--chart-4:color(display-p3 .629519 .30089 .990817);--chart-5:color(display-p3 .921824 .240748 .355666);--sidebar:color(display-p3 .0905274 .0905274 .0905274);--sidebar-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-primary:color(display-p3 .1379 .274983 .867624);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .149382 .149382 .149382);--sidebar-accent-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-border:color(display-p3 1 1 1/.1);--sidebar-ring:color(display-p3 .451519 .451519 .451519);--status-available:color(display-p3 .425834 .792595 .456802);--status-incall:color(display-p3 .397443 .62813 .992116);--status-hold:color(display-p3 .958937 .816675 .321887);--status-incoming:color(display-p3 .692676 .438266 1.01683);--status-disconnected:color(display-p3 .933534 .431676 .423491)}}@supports (color:lab(0% 0 0)){.dark{--background:lab(2.75381% 0 0);--foreground:lab(98.26% 0 0);--card:lab(7.78201% -.0000149012 0);--card-foreground:lab(98.26% 0 0);--popover:lab(7.78201% -.0000149012 0);--popover-foreground:lab(98.26% 0 0);--primary:var(--p-primary-color,lab(90.952% 0 -.0000119209));--primary-foreground:lab(7.78201% -.0000149012 0);--secondary:lab(15.204% 0 -.00000596046);--secondary-foreground:lab(98.26% 0 0);--muted:lab(15.204% 0 -.00000596046);--muted-foreground:lab(66.128% -.0000298023 .0000119209);--accent:lab(15.204% 0 -.00000596046);--accent-foreground:lab(98.26% 0 0);--destructive:lab(63.7053% 60.745 31.3109);--border:lab(100% 0 0/.1);--input:lab(100% 0 0/.15);--ring:lab(48.496% 0 0);--chart-1:lab(36.9089% 35.0961 -85.6872);--chart-2:lab(66.9756% -58.27 19.5419);--chart-3:lab(72.7183% 31.8672 97.9407);--chart-4:lab(52.0183% 66.11 -78.2316);--chart-5:lab(56.101% 79.4328 31.4532);--sidebar:lab(7.78201% -.0000149012 0);--sidebar-foreground:lab(98.26% 0 0);--sidebar-primary:lab(36.9089% 35.0961 -85.6872);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(15.204% 0 -.00000596046);--sidebar-accent-foreground:lab(98.26% 0 0);--sidebar-border:lab(100% 0 0/.1);--sidebar-ring:lab(48.496% 0 0);--status-available:lab(73.3941% -54.8093 37.6928);--status-incall:lab(65.0361% -1.42065 -56.9802);--status-hold:lab(85.1352% 6.10837 78.1641);--status-incoming:lab(60.4586% 54.1298 -67.8379);--status-disconnected:lab(63.7053% 60.745 31.3109)}}.ibrand{font-family:Ibrand,sans-serif}.montserrat{font-family:Montserrat}.quicksand{font-family:Quicksand}.manrope{font-family:Manrope}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}.p-input::placeholder{color:#959595;font-size:12px}@font-face{font-family:Ibrand;src:url(/fonts/Ibrand.otf)format("truetype");font-weight:100 900;font-style:normal;font-display:swap}svg [clip-path][data-v-1feccefe]{clip-path:none!important}[data-v-1feccefe]:root{--radius:.625rem;--background:#fff;--foreground:#0a0a0a;--card:#fff;--card-foreground:#0a0a0a;--popover:#fff;--popover-foreground:#0a0a0a;--primary:var(--p-primary-color,#171717);--color-primary-500:#9b5ff5;--p-primary-color:var(--color-primary-500);--primary-foreground:#fafafa;--secondary:#f5f5f5;--secondary-foreground:#171717;--muted:#f5f5f5;--muted-foreground:#737373;--accent:#f5f5f5;--accent-foreground:#171717;--destructive:#e40014;--border:#e5e5e5;--input:#e5e5e5;--ring:#a1a1a1;--chart-1:#f05100;--chart-2:#009588;--chart-3:#104e64;--chart-4:#fcbb00;--chart-5:#f99c00;--sidebar:#fafafa;--sidebar-foreground:#0a0a0a;--sidebar-primary:#171717;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f5f5f5;--sidebar-accent-foreground:#171717;--sidebar-border:#e5e5e5;--sidebar-ring:#a1a1a1;--status-available:#00a544;--status-incall:#7a75b5;--status-hold:#f5c632;--status-incoming:#ac4bff;--status-disconnected:#fb2c36;--color-green:#81c200;--color-red:#ed3237;--color-blue:#7a75b5;--color-settings:#b3acd5;--color-avaible:#00c448;font-family:Montserrat,sans-serif}@supports (color:color(display-p3 0 0 0)){[data-v-1feccefe]:root{--background:color(display-p3 1 1 1);--foreground:color(display-p3 .0393882 .0393882 .0393882);--card:color(display-p3 1 1 1);--card-foreground:color(display-p3 .0393882 .0393882 .0393882);--popover:color(display-p3 1 1 1);--popover-foreground:color(display-p3 .0393882 .0393882 .0393882);--primary:var(--p-primary-color,color(display-p3 .0905274 .0905274 .0905274));--primary-foreground:color(display-p3 .980256 .980256 .980256);--secondary:color(display-p3 .960587 .960587 .960587);--secondary-foreground:color(display-p3 .0905274 .0905274 .0905274);--muted:color(display-p3 .960587 .960587 .960587);--muted-foreground:color(display-p3 .451519 .451519 .451519);--accent:color(display-p3 .960587 .960587 .960587);--accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--destructive:color(display-p3 .830323 .140383 .133196);--border:color(display-p3 .898161 .898161 .898161);--input:color(display-p3 .898161 .898161 .898161);--ring:color(display-p3 .630163 .630163 .630163);--chart-1:color(display-p3 .887467 .341665 .0219962);--chart-2:color(display-p3 .207114 .579584 .53668);--chart-3:color(display-p3 .142586 .302008 .385094);--chart-4:color(display-p3 .959186 .738519 .118268);--chart-5:color(display-p3 .93994 .620584 .0585367);--sidebar:color(display-p3 .980256 .980256 .980256);--sidebar-foreground:color(display-p3 .0393882 .0393882 .0393882);--sidebar-primary:color(display-p3 .0905274 .0905274 .0905274);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .960587 .960587 .960587);--sidebar-accent-foreground:color(display-p3 .0905274 .0905274 .0905274);--sidebar-border:color(display-p3 .898161 .898161 .898161);--sidebar-ring:color(display-p3 .630163 .630163 .630163);--status-available:color(display-p3 .243882 .640824 .294808);--status-incall:color(display-p3 .474968 .45946 .692102);--status-hold:color(display-p3 .930111 .782506 .322764);--status-incoming:color(display-p3 .629519 .30089 .990817);--status-disconnected:color(display-p3 .903738 .262579 .253307);--color-green:color(display-p3 .562304 .754036 .228809);--color-red:color(display-p3 .855599 .269309 .251664);--color-blue:color(display-p3 .474968 .45946 .692102);--color-settings:color(display-p3 .697185 .675441 .822883);--color-avaible:color(display-p3 .345782 .7571 .347428)}}@supports (color:lab(0% 0 0)){[data-v-1feccefe]:root{--background:lab(100% 0 0);--foreground:lab(2.75381% 0 0);--card:lab(100% 0 0);--card-foreground:lab(2.75381% 0 0);--popover:lab(100% 0 0);--popover-foreground:lab(2.75381% 0 0);--primary:var(--p-primary-color,lab(7.78201% -.0000149012 0));--primary-foreground:lab(98.26% 0 0);--secondary:lab(96.52% -.0000298023 .0000119209);--secondary-foreground:lab(7.78201% -.0000149012 0);--muted:lab(96.52% -.0000298023 .0000119209);--muted-foreground:lab(48.496% 0 0);--accent:lab(96.52% -.0000298023 .0000119209);--accent-foreground:lab(7.78201% -.0000149012 0);--destructive:lab(48.4493% 77.4328 61.5452);--border:lab(90.952% 0 -.0000119209);--input:lab(90.952% 0 -.0000119209);--ring:lab(66.128% -.0000298023 .0000119209);--chart-1:lab(57.1026% 64.2584 89.8886);--chart-2:lab(55.0223% -41.0774 -3.90277);--chart-3:lab(30.372% -13.1853 -18.7887);--chart-4:lab(80.1641% 16.6016 99.2089);--chart-5:lab(72.7183% 31.8672 97.9407);--sidebar:lab(98.26% 0 0);--sidebar-foreground:lab(2.75381% 0 0);--sidebar-primary:lab(7.78201% -.0000149012 0);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(96.52% -.0000298023 .0000119209);--sidebar-accent-foreground:lab(7.78201% -.0000149012 0);--sidebar-border:lab(90.952% 0 -.0000119209);--sidebar-ring:lab(66.128% -.0000298023 .0000119209);--status-available:lab(59.0978% -58.6621 41.2579);--status-incall:lab(51.7014% 13.4467 -33.5273);--status-hold:lab(82.2725% 7.53289 73.9282);--status-incoming:lab(52.0183% 66.11 -78.2316);--status-disconnected:lab(55.4814% 75.0732 48.8528);--color-green:lab(71.931% -38.9071 70.3045);--color-red:lab(53.3473% 69.9469 45.351);--color-blue:lab(51.7014% 13.4467 -33.5273);--color-settings:lab(71.9851% 8.76683 -19.9302);--color-avaible:lab(69.443% -61.9097 48.3881)}}.dark[data-v-1feccefe]{--background:#0a0a0a;--foreground:#fafafa;--card:#171717;--card-foreground:#fafafa;--popover:#171717;--popover-foreground:#fafafa;--primary:var(--p-primary-color,#e5e5e5);--primary-foreground:#171717;--secondary:#262626;--secondary-foreground:#fafafa;--muted:#262626;--muted-foreground:#a1a1a1;--accent:#262626;--accent-foreground:#fafafa;--destructive:#ff6568;--border:#ffffff1a;--input:#ffffff26;--ring:#737373;--chart-1:#1447e6;--chart-2:#00bb7f;--chart-3:#f99c00;--chart-4:#ac4bff;--chart-5:#ff2357;--sidebar:#171717;--sidebar-foreground:#fafafa;--sidebar-primary:#1447e6;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#262626;--sidebar-accent-foreground:#fafafa;--sidebar-border:#ffffff1a;--sidebar-ring:#737373;--status-available:#41cd6a;--status-incall:#54a2ff;--status-hold:#fccf2c;--status-incoming:#b971ff;--status-disconnected:#ff6568}@supports (color:color(display-p3 0 0 0)){.dark[data-v-1feccefe]{--background:color(display-p3 .0393882 .0393882 .0393882);--foreground:color(display-p3 .980256 .980256 .980256);--card:color(display-p3 .0905274 .0905274 .0905274);--card-foreground:color(display-p3 .980256 .980256 .980256);--popover:color(display-p3 .0905274 .0905274 .0905274);--popover-foreground:color(display-p3 .980256 .980256 .980256);--primary:var(--p-primary-color,color(display-p3 .898161 .898161 .898161));--primary-foreground:color(display-p3 .0905274 .0905274 .0905274);--secondary:color(display-p3 .149382 .149382 .149382);--secondary-foreground:color(display-p3 .980256 .980256 .980256);--muted:color(display-p3 .149382 .149382 .149382);--muted-foreground:color(display-p3 .630163 .630163 .630163);--accent:color(display-p3 .149382 .149382 .149382);--accent-foreground:color(display-p3 .980256 .980256 .980256);--destructive:color(display-p3 .933534 .431676 .423491);--border:color(display-p3 1 1 1/.1);--input:color(display-p3 1 1 1/.15);--ring:color(display-p3 .451519 .451519 .451519);--chart-1:color(display-p3 .1379 .274983 .867624);--chart-2:color(display-p3 .267113 .726847 .508397);--chart-3:color(display-p3 .93994 .620584 .0585367);--chart-4:color(display-p3 .629519 .30089 .990817);--chart-5:color(display-p3 .921824 .240748 .355666);--sidebar:color(display-p3 .0905274 .0905274 .0905274);--sidebar-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-primary:color(display-p3 .1379 .274983 .867624);--sidebar-primary-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-accent:color(display-p3 .149382 .149382 .149382);--sidebar-accent-foreground:color(display-p3 .980256 .980256 .980256);--sidebar-border:color(display-p3 1 1 1/.1);--sidebar-ring:color(display-p3 .451519 .451519 .451519);--status-available:color(display-p3 .425834 .792595 .456802);--status-incall:color(display-p3 .397443 .62813 .992116);--status-hold:color(display-p3 .958937 .816675 .321887);--status-incoming:color(display-p3 .692676 .438266 1.01683);--status-disconnected:color(display-p3 .933534 .431676 .423491)}}@supports (color:lab(0% 0 0)){.dark[data-v-1feccefe]{--background:lab(2.75381% 0 0);--foreground:lab(98.26% 0 0);--card:lab(7.78201% -.0000149012 0);--card-foreground:lab(98.26% 0 0);--popover:lab(7.78201% -.0000149012 0);--popover-foreground:lab(98.26% 0 0);--primary:var(--p-primary-color,lab(90.952% 0 -.0000119209));--primary-foreground:lab(7.78201% -.0000149012 0);--secondary:lab(15.204% 0 -.00000596046);--secondary-foreground:lab(98.26% 0 0);--muted:lab(15.204% 0 -.00000596046);--muted-foreground:lab(66.128% -.0000298023 .0000119209);--accent:lab(15.204% 0 -.00000596046);--accent-foreground:lab(98.26% 0 0);--destructive:lab(63.7053% 60.745 31.3109);--border:lab(100% 0 0/.1);--input:lab(100% 0 0/.15);--ring:lab(48.496% 0 0);--chart-1:lab(36.9089% 35.0961 -85.6872);--chart-2:lab(66.9756% -58.27 19.5419);--chart-3:lab(72.7183% 31.8672 97.9407);--chart-4:lab(52.0183% 66.11 -78.2316);--chart-5:lab(56.101% 79.4328 31.4532);--sidebar:lab(7.78201% -.0000149012 0);--sidebar-foreground:lab(98.26% 0 0);--sidebar-primary:lab(36.9089% 35.0961 -85.6872);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(15.204% 0 -.00000596046);--sidebar-accent-foreground:lab(98.26% 0 0);--sidebar-border:lab(100% 0 0/.1);--sidebar-ring:lab(48.496% 0 0);--status-available:lab(73.3941% -54.8093 37.6928);--status-incall:lab(65.0361% -1.42065 -56.9802);--status-hold:lab(85.1352% 6.10837 78.1641);--status-incoming:lab(60.4586% 54.1298 -67.8379);--status-disconnected:lab(63.7053% 60.745 31.3109)}}.ibrand[data-v-1feccefe]{font-family:Ibrand,sans-serif}.montserrat[data-v-1feccefe]{font-family:Montserrat}.quicksand[data-v-1feccefe]{font-family:Quicksand}.manrope[data-v-1feccefe]{font-family:Manrope}@keyframes pulse-1feccefe{50%{opacity:.5}}@keyframes enter-1feccefe{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit-1feccefe{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes accordion-down-1feccefe{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}}@keyframes accordion-up-1feccefe{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,var(--ngp-accordion-content-height,auto)))))}to{height:0}}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(a)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
3
|
-
(function(){var eu=Object.defineProperty,xg=(e,t)=>{let r={};for(var n in e)eu(r,n,{get:e[n],enumerable:!0});return t&&eu(r,Symbol.toStringTag,{value:"Module"}),r};function Us(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}var Ue={},hs=[],lr=()=>{},tu=()=>!1,zs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sa=e=>e.startsWith("onUpdate:"),Ze=Object.assign,Ca=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Tg=Object.prototype.hasOwnProperty,Ye=(e,t)=>Tg.call(e,t),_e=Array.isArray,gs=e=>vs(e)==="[object Map]",zn=e=>vs(e)==="[object Set]",ru=e=>vs(e)==="[object Date]",Eg=e=>vs(e)==="[object RegExp]",$e=e=>typeof e=="function",it=e=>typeof e=="string",_r=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",xa=e=>(Ge(e)||$e(e))&&$e(e.then)&&$e(e.catch),nu=Object.prototype.toString,vs=e=>nu.call(e),Ag=e=>vs(e).slice(8,-1),Bi=e=>vs(e)==="[object Object]",Li=e=>it(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kn=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fi=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},kg=/-\w/g,Ct=Fi(e=>e.replace(kg,t=>t.slice(1).toUpperCase())),Rg=/\B([A-Z])/g,Wt=Fi(e=>e.replace(Rg,"-$1").toLowerCase()),Ks=Fi(e=>e.charAt(0).toUpperCase()+e.slice(1)),ms=Fi(e=>e?`on${Ks(e)}`:""),Lt=(e,t)=>!Object.is(e,t),ws=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},su=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Vi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ji=e=>{const t=it(e)?Number(e):NaN;return isNaN(t)?e:t},iu,Ui=()=>iu||(iu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Ig=Us("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function xt(e){if(_e(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],s=it(n)?Og(n):xt(n);if(s)for(const i in s)t[i]=s[i]}return t}else if(it(e)||Ge(e))return e}var $g=/;(?![^(]*\))/g,Pg=/:([^]+)/,Dg=/\/\*[^]*?\*\//g;function Og(e){const t={};return e.replace(Dg,"").split($g).forEach(r=>{if(r){const n=r.split(Pg);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Xe(e){let t="";if(it(e))t=e;else if(_e(e))for(let r=0;r<e.length;r++){const n=Xe(e[r]);n&&(t+=n+" ")}else if(Ge(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function cr(e){if(!e)return null;let{class:t,style:r}=e;return t&&!it(t)&&(e.class=Xe(t)),r&&(e.style=xt(r)),e}var ou="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hg=Us(ou),$x=Us(ou+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function au(e){return!!e||e===""}function Mg(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Vr(e[n],t[n]);return r}function Vr(e,t){if(e===t)return!0;let r=ru(e),n=ru(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=_r(e),n=_r(t),r||n)return e===t;if(r=_e(e),n=_e(t),r||n)return r&&n?Mg(e,t):!1;if(r=Ge(e),n=Ge(t),r||n){if(!r||!n||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e){const i=e.hasOwnProperty(s),o=t.hasOwnProperty(s);if(i&&!o||!i&&o||!Vr(e[s],t[s]))return!1}}return String(e)===String(t)}function zi(e,t){return e.findIndex(r=>Vr(r,t))}var lu=e=>!!(e&&e.__v_isRef===!0),Fe=e=>it(e)?e:e==null?"":_e(e)||Ge(e)&&(e.toString===nu||!$e(e.toString))?lu(e)?Fe(e.value):JSON.stringify(e,cu,2):String(e),cu=(e,t)=>lu(t)?cu(e,t.value):gs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],i)=>(r[Ta(n,i)+" =>"]=s,r),{})}:zn(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Ta(r))}:_r(t)?Ta(t):Ge(t)&&!_e(t)&&!Bi(t)?String(t):t,Ta=(e,t="")=>{var r;return _r(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};function Ng(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:(typeof e!="number"||Number.isFinite(e),String(e))}var Ot,Ea=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ot,!e&&Ot&&(this.index=(Ot.scopes||(Ot.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=Ot;try{return Ot=this,e()}finally{Ot=t}}}on(){++this._on===1&&(this.prevScope=Ot,Ot=this)}off(){this._on>0&&--this._on===0&&(Ot=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,r;for(t=0,r=this.effects.length;t<r;t++)this.effects[t].stop();for(this.effects.length=0,t=0,r=this.cleanups.length;t<r;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}};function Aa(e){return new Ea(e)}function Ki(){return Ot}function ka(e,t=!1){Ot&&Ot.cleanups.push(e)}var ot,Ra=new WeakSet,Ws=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ot&&Ot.active&&Ot.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ra.has(this)&&(Ra.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||du(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,vu(this),fu(this);const e=ot,t=Sr;ot=this,Sr=!0;try{return this.fn()}finally{pu(this),ot=e,Sr=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Da(e);this.deps=this.depsTail=void 0,vu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ra.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Pa(this)&&this.run()}get dirty(){return Pa(this)}},uu=0,Gs,Js;function du(e,t=!1){if(e.flags|=8,t){e.next=Js,Js=e;return}e.next=Gs,Gs=e}function Ia(){uu++}function $a(){if(--uu>0)return;if(Js){let t=Js;for(Js=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Gs;){let t=Gs;for(Gs=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function fu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function pu(e){let t,r=e.depsTail,n=r;for(;n;){const s=n.prevDep;n.version===-1?(n===r&&(r=s),Da(n),qg(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=r}function Pa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(hu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function hu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ys)||(e.globalVersion=Ys,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Pa(e))))return;e.flags|=2;const t=e.dep,r=ot,n=Sr;ot=e,Sr=!0;try{fu(e);const s=e.fn(e._value);(t.version===0||Lt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ot=r,Sr=n,pu(e),e.flags&=-3}}function Da(e,t=!1){const{dep:r,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)Da(i,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function qg(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function Bg(e,t){e.effect instanceof Ws&&(e=e.effect.fn);const r=new Ws(e);t&&Ze(r,t);try{r.run()}catch(s){throw r.stop(),s}const n=r.run.bind(r);return n.effect=r,n}function Lg(e){e.effect.stop()}var Sr=!0,gu=[];function jr(){gu.push(Sr),Sr=!1}function Ur(){const e=gu.pop();Sr=e===void 0?!0:e}function vu(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=ot;ot=void 0;try{t()}finally{ot=r}}}var Ys=0,Fg=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Wi=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ot||!Sr||ot===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==ot)t=this.activeLink=new Fg(ot,this),ot.deps?(t.prevDep=ot.depsTail,ot.depsTail.nextDep=t,ot.depsTail=t):ot.deps=ot.depsTail=t,mu(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const r=t.nextDep;r.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=r),t.prevDep=ot.depsTail,t.nextDep=void 0,ot.depsTail.nextDep=t,ot.depsTail=t,ot.deps===t&&(ot.deps=r)}return t}trigger(e){this.version++,Ys++,this.notify(e)}notify(e){Ia();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{$a()}}};function mu(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)mu(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}var Gi=new WeakMap,Wn=Symbol(""),Oa=Symbol(""),Zs=Symbol("");function Ht(e,t,r){if(Sr&&ot){let n=Gi.get(e);n||Gi.set(e,n=new Map);let s=n.get(r);s||(n.set(r,s=new Wi),s.map=n,s.key=r),s.track()}}function zr(e,t,r,n,s,i){const o=Gi.get(e);if(!o){Ys++;return}const a=l=>{l&&l.trigger()};if(Ia(),t==="clear")o.forEach(a);else{const l=_e(e),u=l&&Li(r);if(l&&r==="length"){const c=Number(n);o.forEach((d,p)=>{(p==="length"||p===Zs||!_r(p)&&p>=c)&&a(d)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),u&&a(o.get(Zs)),t){case"add":l?u&&a(o.get("length")):(a(o.get(Wn)),gs(e)&&a(o.get(Oa)));break;case"delete":l||(a(o.get(Wn)),gs(e)&&a(o.get(Oa)));break;case"set":gs(e)&&a(o.get(Wn));break}}$a()}function Vg(e,t){const r=Gi.get(e);return r&&r.get(t)}function ys(e){const t=ze(e);return t===e?t:(Ht(t,"iterate",Zs),Gt(e)?t:t.map(Cr))}function Ji(e){return Ht(e=ze(e),"iterate",Zs),e}function wn(e,t){return $r(e)?bs(Jr(e)?Cr(t):t):Cr(t)}var jg={__proto__:null,[Symbol.iterator](){return Ha(this,Symbol.iterator,e=>wn(this,e))},concat(...e){return ys(this).concat(...e.map(t=>_e(t)?ys(t):t))},entries(){return Ha(this,"entries",e=>(e[1]=wn(this,e[1]),e))},every(e,t){return Kr(this,"every",e,t,void 0,arguments)},filter(e,t){return Kr(this,"filter",e,t,r=>r.map(n=>wn(this,n)),arguments)},find(e,t){return Kr(this,"find",e,t,r=>wn(this,r),arguments)},findIndex(e,t){return Kr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Kr(this,"findLast",e,t,r=>wn(this,r),arguments)},findLastIndex(e,t){return Kr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Kr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ma(this,"includes",e)},indexOf(...e){return Ma(this,"indexOf",e)},join(e){return ys(this).join(e)},lastIndexOf(...e){return Ma(this,"lastIndexOf",e)},map(e,t){return Kr(this,"map",e,t,void 0,arguments)},pop(){return Xs(this,"pop")},push(...e){return Xs(this,"push",e)},reduce(e,...t){return wu(this,"reduce",e,t)},reduceRight(e,...t){return wu(this,"reduceRight",e,t)},shift(){return Xs(this,"shift")},some(e,t){return Kr(this,"some",e,t,void 0,arguments)},splice(...e){return Xs(this,"splice",e)},toReversed(){return ys(this).toReversed()},toSorted(e){return ys(this).toSorted(e)},toSpliced(...e){return ys(this).toSpliced(...e)},unshift(...e){return Xs(this,"unshift",e)},values(){return Ha(this,"values",e=>wn(this,e))}};function Ha(e,t,r){const n=Ji(e),s=n[t]();return n!==e&&!Gt(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=r(i.value)),i}),s}var Ug=Array.prototype;function Kr(e,t,r,n,s,i){const o=Ji(e),a=o!==e&&!Gt(e),l=o[t];if(l!==Ug[t]){const d=l.apply(e,i);return a?Cr(d):d}let u=r;o!==e&&(a?u=function(d,p){return r.call(this,wn(e,d),p,e)}:r.length>2&&(u=function(d,p){return r.call(this,d,p,e)}));const c=l.call(o,u,n);return a&&s?s(c):c}function wu(e,t,r,n){const s=Ji(e);let i=r;return s!==e&&(Gt(e)?r.length>3&&(i=function(o,a,l){return r.call(this,o,a,l,e)}):i=function(o,a,l){return r.call(this,o,wn(e,a),l,e)}),s[t](i,...n)}function Ma(e,t,r){const n=ze(e);Ht(n,"iterate",Zs);const s=n[t](...r);return(s===-1||s===!1)&&Qs(r[0])?(r[0]=ze(r[0]),n[t](...r)):s}function Xs(e,t,r=[]){jr(),Ia();const n=ze(e)[t].apply(e,r);return $a(),Ur(),n}var zg=Us("__proto__,__v_isRef,__isVue"),yu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_r));function Kg(e){_r(e)||(e=String(e));const t=ze(this);return Ht(t,"has",e),t.hasOwnProperty(e)}var bu=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if(t==="__v_skip")return e.__v_skip;const n=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!n;if(t==="__v_isReadonly")return n;if(t==="__v_isShallow")return s;if(t==="__v_raw")return r===(n?s?Eu:Tu:s?xu:Cu).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const i=_e(e);if(!n){let a;if(i&&(a=jg[t]))return a;if(t==="hasOwnProperty")return Kg}const o=Reflect.get(e,t,tt(e)?e:r);if((_r(t)?yu.has(t):zg(t))||(n||Ht(e,"get",t),s))return o;if(tt(o)){const a=i&&Li(t)?o:o.value;return n&&Ge(a)?Mt(a):a}return Ge(o)?n?Mt(o):Wr(o):o}},_u=class extends bu{constructor(e=!1){super(!1,e)}set(e,t,r,n){let s=e[t];const i=_e(e)&&Li(t);if(!this._isShallow){const l=$r(s);if(!Gt(r)&&!$r(r)&&(s=ze(s),r=ze(r)),!i&&tt(s)&&!tt(r))return l||(s.value=r),!0}const o=i?Number(t)<e.length:Ye(e,t),a=Reflect.set(e,t,r,tt(e)?e:n);return e===ze(n)&&(o?Lt(r,s)&&zr(e,"set",t,r,s):zr(e,"add",t,r)),a}deleteProperty(e,t){const r=Ye(e,t),n=e[t],s=Reflect.deleteProperty(e,t);return s&&r&&zr(e,"delete",t,void 0,n),s}has(e,t){const r=Reflect.has(e,t);return(!_r(t)||!yu.has(t))&&Ht(e,"has",t),r}ownKeys(e){return Ht(e,"iterate",_e(e)?"length":Wn),Reflect.ownKeys(e)}},Su=class extends bu{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Wg=new _u,Gg=new Su,Jg=new _u(!0),Yg=new Su(!0),Na=e=>e,Yi=e=>Reflect.getPrototypeOf(e);function Zg(e,t,r){return function(...n){const s=this.__v_raw,i=ze(s),o=gs(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...n),c=r?Na:t?bs:Cr;return!t&&Ht(i,"iterate",l?Oa:Wn),Ze(Object.create(u),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:a?[c(d[0]),c(d[1])]:c(d),done:p}}})}}function Zi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Xg(e,t){const r={get(n){const s=this.__v_raw,i=ze(s),o=ze(n);e||(Lt(n,o)&&Ht(i,"get",n),Ht(i,"get",o));const{has:a}=Yi(i),l=t?Na:e?bs:Cr;if(a.call(i,n))return l(s.get(n));if(a.call(i,o))return l(s.get(o));s!==i&&s.get(n)},get size(){const n=this.__v_raw;return!e&&Ht(ze(n),"iterate",Wn),n.size},has(n){const s=this.__v_raw,i=ze(s),o=ze(n);return e||(Lt(n,o)&&Ht(i,"has",n),Ht(i,"has",o)),n===o?s.has(n):s.has(n)||s.has(o)},forEach(n,s){const i=this,o=i.__v_raw,a=ze(o),l=t?Na:e?bs:Cr;return!e&&Ht(a,"iterate",Wn),o.forEach((u,c)=>n.call(s,l(u),l(c),i))}};return Ze(r,e?{add:Zi("add"),set:Zi("set"),delete:Zi("delete"),clear:Zi("clear")}:{add(n){!t&&!Gt(n)&&!$r(n)&&(n=ze(n));const s=ze(this);return Yi(s).has.call(s,n)||(s.add(n),zr(s,"add",n,n)),this},set(n,s){!t&&!Gt(s)&&!$r(s)&&(s=ze(s));const i=ze(this),{has:o,get:a}=Yi(i);let l=o.call(i,n);l||(n=ze(n),l=o.call(i,n));const u=a.call(i,n);return i.set(n,s),l?Lt(s,u)&&zr(i,"set",n,s,u):zr(i,"add",n,s),this},delete(n){const s=ze(this),{has:i,get:o}=Yi(s);let a=i.call(s,n);a||(n=ze(n),a=i.call(s,n));const l=o?o.call(s,n):void 0,u=s.delete(n);return a&&zr(s,"delete",n,void 0,l),u},clear(){const n=ze(this),s=n.size!==0,i=void 0,o=n.clear();return s&&zr(n,"clear",void 0,void 0,i),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=Zg(n,e,t)}),r}function Xi(e,t){const r=Xg(e,t);return(n,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(Ye(r,s)&&s in n?r:n,s,i)}var Qg={get:Xi(!1,!1)},ev={get:Xi(!1,!0)},tv={get:Xi(!0,!1)},rv={get:Xi(!0,!0)},Cu=new WeakMap,xu=new WeakMap,Tu=new WeakMap,Eu=new WeakMap;function nv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function sv(e){return e.__v_skip||!Object.isExtensible(e)?0:nv(Ag(e))}function Wr(e){return $r(e)?e:Qi(e,!1,Wg,Qg,Cu)}function Au(e){return Qi(e,!1,Jg,ev,xu)}function Mt(e){return Qi(e,!0,Gg,tv,Tu)}function Gr(e){return Qi(e,!0,Yg,rv,Eu)}function Qi(e,t,r,n,s){if(!Ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=sv(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?n:r);return s.set(e,a),a}function Jr(e){return $r(e)?Jr(e.__v_raw):!!(e&&e.__v_isReactive)}function $r(e){return!!(e&&e.__v_isReadonly)}function Gt(e){return!!(e&&e.__v_isShallow)}function Qs(e){return e?!!e.__v_raw:!1}function ze(e){const t=e&&e.__v_raw;return t?ze(t):e}function qa(e){return!Ye(e,"__v_skip")&&Object.isExtensible(e)&&su(e,"__v_skip",!0),e}var Cr=e=>Ge(e)?Wr(e):e,bs=e=>Ge(e)?Mt(e):e;function tt(e){return e?e.__v_isRef===!0:!1}function V(e){return ku(e,!1)}function ft(e){return ku(e,!0)}function ku(e,t){return tt(e)?e:new iv(e,t)}var iv=class{constructor(e,t){this.dep=new Wi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:ze(e),this._value=t?e:Cr(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,r=this.__v_isShallow||Gt(e)||$r(e);e=r?e:ze(e),Lt(e,t)&&(this._rawValue=e,this._value=r?e:Cr(e),this.dep.trigger())}};function Ru(e){e.dep&&e.dep.trigger()}function f(e){return tt(e)?e.value:e}function Ae(e){return $e(e)?e():f(e)}var ov={get:(e,t,r)=>t==="__v_raw"?e:f(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return tt(s)&&!tt(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function Ba(e){return Jr(e)?e:new Proxy(e,ov)}var av=class{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new Wi,{get:r,set:n}=e(t.track.bind(t),t.trigger.bind(t));this._get=r,this._set=n}get value(){return this._value=this._get()}set value(e){this._set(e)}};function ei(e){return new av(e)}function Nt(e){const t=_e(e)?new Array(e.length):{};for(const r in e)t[r]=Iu(e,r);return t}var lv=class{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=ze(e);let n=!0,s=e;if(!_e(e)||!Li(String(t)))do n=!Qs(s)||Gt(s);while(n&&(s=s.__v_raw));this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=f(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&tt(this._raw[this._key])){const t=this._object[this._key];if(tt(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Vg(this._raw,this._key)}},cv=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function La(e,t,r){return tt(e)?e:$e(e)?new cv(e):Ge(e)&&arguments.length>1?Iu(e,t,r):V(e)}function Iu(e,t,r){return new lv(e,t,r)}var uv=class{constructor(e,t,r){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Wi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ys-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return du(this,!0),!0}get value(){const e=this.dep.track();return hu(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function dv(e,t,r=!1){let n,s;return $e(e)?n=e:(n=e.get,s=e.set),new uv(n,s,r)}var fv={GET:"get",HAS:"has",ITERATE:"iterate"},pv={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},eo={},to=new WeakMap,yn=void 0;function hv(){return yn}function $u(e,t=!1,r=yn){if(r){let n=to.get(r);n||to.set(r,n=[]),n.push(e)}}function gv(e,t,r=Ue){const{immediate:n,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=r,u=_=>s?_:Gt(_)||s===!1||s===0?Yr(_,1):Yr(_);let c,d,p,h,g=!1,w=!1;if(tt(e)?(d=()=>e.value,g=Gt(e)):Jr(e)?(d=()=>u(e),g=!0):_e(e)?(w=!0,g=e.some(_=>Jr(_)||Gt(_)),d=()=>e.map(_=>{if(tt(_))return _.value;if(Jr(_))return u(_);if($e(_))return l?l(_,2):_()})):$e(e)?t?d=l?()=>l(e,2):e:d=()=>{if(p){jr();try{p()}finally{Ur()}}const _=yn;yn=c;try{return l?l(e,3,[h]):e(h)}finally{yn=_}}:d=lr,t&&s){const _=d,E=s===!0?1/0:s;d=()=>Yr(_(),E)}const T=Ki(),v=()=>{c.stop(),T&&T.active&&Ca(T.effects,c)};if(i&&t){const _=t;t=(...E)=>{_(...E),v()}}let S=w?new Array(e.length).fill(eo):eo;const y=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const E=c.run();if(s||g||(w?E.some(($,B)=>Lt($,S[B])):Lt(E,S))){p&&p();const $=yn;yn=c;try{const B=[E,S===eo?void 0:w&&S[0]===eo?[]:S,h];S=E,l?l(t,3,B):t(...B)}finally{yn=$}}}else c.run()};return a&&a(y),c=new Ws(d),c.scheduler=o?()=>o(y,!1):y,h=_=>$u(_,!1,c),p=c.onStop=()=>{const _=to.get(c);if(_){if(l)l(_,4);else for(const E of _)E();to.delete(c)}},t?n?y(!0):S=c.run():o?o(y.bind(null,!0),!0):c.run(),v.pause=c.pause.bind(c),v.resume=c.resume.bind(c),v.stop=v,v}function Yr(e,t=1/0,r){if(t<=0||!Ge(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,tt(e))Yr(e.value,t,r);else if(_e(e))for(let n=0;n<e.length;n++)Yr(e[n],t,r);else if(zn(e)||gs(e))e.forEach(n=>{Yr(n,t,r)});else if(Bi(e)){for(const n in e)Yr(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Yr(e[n],t,r)}return e}var Pu=[];function vv(e){Pu.push(e)}function mv(){Pu.pop()}function wv(e,t){}var yv={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},bv={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function _s(e,t,r,n){try{return n?e(...n):e()}catch(s){Gn(s,t,r)}}function ur(e,t,r,n){if($e(e)){const s=_s(e,t,r,n);return s&&xa(s)&&s.catch(i=>{Gn(i,t,r)}),s}if(_e(e)){const s=[];for(let i=0;i<e.length;i++)s.push(ur(e[i],t,r,n));return s}}function Gn(e,t,r,n=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Ue;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}a=a.parent}if(i){jr(),_s(i,null,10,[e,l,u]),Ur();return}}_v(e,r,s,n,o)}function _v(e,t,r,n=!0,s=!1){if(s)throw e;console.error(e)}var Ft=[],Pr=-1,Ss=[],bn=null,Cs=0,Du=Promise.resolve(),ro=null;function At(e){const t=ro||Du;return e?t.then(this?e.bind(this):e):t}function Sv(e){let t=Pr+1,r=Ft.length;for(;t<r;){const n=t+r>>>1,s=Ft[n],i=ri(s);i<e||i===e&&s.flags&2?t=n+1:r=n}return t}function Fa(e){if(!(e.flags&1)){const t=ri(e),r=Ft[Ft.length-1];!r||!(e.flags&2)&&t>=ri(r)?Ft.push(e):Ft.splice(Sv(t),0,e),e.flags|=1,Ou()}}function Ou(){ro||(ro=Du.then(Mu))}function ti(e){_e(e)?Ss.push(...e):bn&&e.id===-1?bn.splice(Cs+1,0,e):e.flags&1||(Ss.push(e),e.flags|=1),Ou()}function Hu(e,t,r=Pr+1){for(;r<Ft.length;r++){const n=Ft[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Ft.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function no(e){if(Ss.length){const t=[...new Set(Ss)].sort((r,n)=>ri(r)-ri(n));if(Ss.length=0,bn){bn.push(...t);return}for(bn=t,Cs=0;Cs<bn.length;Cs++){const r=bn[Cs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}bn=null,Cs=0}}var ri=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Mu(e){try{for(Pr=0;Pr<Ft.length;Pr++){const t=Ft[Pr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_s(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Pr<Ft.length;Pr++){const t=Ft[Pr];t&&(t.flags&=-2)}Pr=-1,Ft.length=0,no(e),ro=null,(Ft.length||Ss.length)&&Mu(e)}}var xs,so=[];function Nu(e,t){var r,n;xs=e,xs?(xs.enabled=!0,so.forEach(({event:s,args:i})=>xs.emit(s,...i)),so=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{Nu(s,t)}),setTimeout(()=>{xs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,so=[])},3e3)):so=[]}var It=null,io=null;function ni(e){const t=It;return It=e,io=e&&e.type.__scopeId||null,t}function Cv(e){io=e}function xv(){io=null}var Tv=e=>k;function k(e,t=It,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&vi(-1);const i=ni(t);let o;try{o=e(...s)}finally{ni(i),n._d&&vi(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function oo(e,t){if(It===null)return e;const r=mi(It),n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=Ue]=t[s];i&&($e(i)&&(i={mounted:i,updated:i}),i.deep&&Yr(o),n.push({dir:i,instance:r,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Dr(e,t,r,n){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[n];l&&(jr(),ur(l,r,8,[e.el,a,e,t]),Ur())}}function Jn(e,t){if($t){let r=$t.provides;const n=$t.parent&&$t.parent.provides;n===r&&(r=$t.provides=Object.create(n)),r[e]=t}}function Vt(e,t,r=!1){const n=vt();if(n||Yn){let s=Yn?Yn._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&$e(t)?t.call(n&&n.proxy):t}}function Ev(){return!!(vt()||Yn)}var qu=Symbol.for("v-scx"),Bu=()=>{{const e=Vt(qu);return e}};function at(e,t){return si(e,null,t)}function Va(e,t){return si(e,null,{flush:"post"})}function Lu(e,t){return si(e,null,{flush:"sync"})}function De(e,t,r){return si(e,t,r)}function si(e,t,r=Ue){const{immediate:n,deep:s,flush:i,once:o}=r,a=Ze({},r),l=t&&n||!t&&i!=="post";let u;if($s){if(i==="sync"){const h=Bu();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=lr,h.resume=lr,h.pause=lr,h}}const c=$t;a.call=(h,g,w)=>ur(h,c,g,w);let d=!1;i==="post"?a.scheduler=h=>{yt(h,c&&c.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(h,g)=>{g?h():Fa(h)}),a.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const p=gv(e,t,a);return $s&&(u?u.push(p):l&&p()),p}function Av(e,t,r){const n=this.proxy,s=it(e)?e.includes(".")?Fu(n,e):()=>n[e]:e.bind(n,n);let i;$e(t)?i=t:(i=t.handler,r=t);const o=es(this),a=si(s,i.bind(n),r);return o(),a}function Fu(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s<r.length&&n;s++)n=n[r[s]];return n}}var Vu=Symbol("_vte"),ju=e=>e.__isTeleport,ii=e=>e&&(e.disabled||e.disabled===""),Uu=e=>e&&(e.defer||e.defer===""),zu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ku=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ja=(e,t)=>{const r=e&&e.to;return it(r)?t?t(r):null:r},Wu={name:"Teleport",__isTeleport:!0,process(e,t,r,n,s,i,o,a,l,u){const{mc:c,pc:d,pbc:p,o:{insert:h,querySelector:g,createText:w,createComment:T}}=u,v=ii(t.props);let{shapeFlag:S,children:y,dynamicChildren:_}=t;if(e==null){const E=t.el=w(""),$=t.anchor=w("");h(E,r,n),h($,r,n);const B=(N,q)=>{S&16&&c(y,N,q,s,i,o,a,l)},m=()=>{const N=t.target=ja(t.props,g),q=za(N,t,w,h);N&&(o!=="svg"&&zu(N)?o="svg":o!=="mathml"&&Ku(N)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(N),v||(B(N,q),lo(t,!1)))};v&&(B(r,$),lo(t,!0)),Uu(t.props)?(t.el.__isMounted=!1,yt(()=>{m(),delete t.el.__isMounted},i)):m()}else{if(Uu(t.props)&&e.el.__isMounted===!1){yt(()=>{Wu.process(e,t,r,n,s,i,o,a,l,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,$=t.target=e.target,B=t.targetAnchor=e.targetAnchor,m=ii(e.props),N=m?r:$,q=m?E:B;if(o==="svg"||zu($)?o="svg":(o==="mathml"||Ku($))&&(o="mathml"),_?(p(e.dynamicChildren,_,N,s,i,o,a),dl(e,t,!0)):l||d(e,t,N,q,s,i,o,a,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ao(t,r,E,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const C=t.target=ja(t.props,g);C&&ao(t,C,null,u,0)}else m&&ao(t,$,B,u,1);lo(t,v)}},remove(e,t,r,{um:n,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:p}=e;if(d&&(s(u),s(c)),i&&s(l),o&16){const h=i||!ii(p);for(let g=0;g<a.length;g++){const w=a[g];n(w,t,r,h,!!w.dynamicChildren)}}},move:ao,hydrate:kv};function ao(e,t,r,{o:{insert:n},m:s},i=2){i===0&&n(e.targetAnchor,t,r);const{el:o,anchor:a,shapeFlag:l,children:u,props:c}=e,d=i===2;if(d&&n(o,t,r),(!d||ii(c))&&l&16)for(let p=0;p<u.length;p++)s(u[p],t,r,2);d&&n(a,t,r)}function kv(e,t,r,n,s,i,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:u,createText:c}},d){function p(T,v){let S=v;for(;S;){if(S&&S.nodeType===8){if(S.data==="teleport start anchor")t.targetStart=S;else if(S.data==="teleport anchor"){t.targetAnchor=S,T._lpa=t.targetAnchor&&o(t.targetAnchor);break}}S=o(S)}}function h(T,v){v.anchor=d(o(T),v,a(T),r,n,s,i)}const g=t.target=ja(t.props,l),w=ii(t.props);if(g){const T=g._lpa||g.firstChild;t.shapeFlag&16&&(w?(h(e,t),p(g,T),t.targetAnchor||za(g,t,c,u,a(e)===g?e:null)):(t.anchor=o(e),p(g,T),t.targetAnchor||za(g,t,c,u),d(T&&o(T),t,g,r,n,s,i))),lo(t,w)}else w&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Ua=Wu;function lo(e,t){const r=e.ctx;if(r&&r.ut){let n,s;for(t?(n=e.el,s=e.anchor):(n=e.targetStart,s=e.targetAnchor);n&&n!==s;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function za(e,t,r,n,s=null){const i=t.targetStart=r(""),o=t.targetAnchor=r("");return i[Vu]=o,e&&(n(i,e,s),n(o,e,s)),o}var Or=Symbol("_leaveCb"),oi=Symbol("_enterCb");function Ka(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),Rs(()=>{e.isUnmounting=!0}),e}var dr=[Function,Array],Wa={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:dr,onEnter:dr,onAfterEnter:dr,onEnterCancelled:dr,onBeforeLeave:dr,onLeave:dr,onAfterLeave:dr,onLeaveCancelled:dr,onBeforeAppear:dr,onAppear:dr,onAfterAppear:dr,onAppearCancelled:dr},Gu=e=>{const t=e.subTree;return t.component?Gu(t.component):t},Rv={name:"BaseTransition",props:Wa,setup(e,{slots:t}){const r=vt(),n=Ka();return()=>{const s=t.default&&co(t.default(),!0);if(!s||!s.length)return;const i=Ju(s),o=ze(e),{mode:a}=o;if(n.isLeaving)return Ga(i);const l=Xu(i);if(!l)return Ga(i);let u=Ts(l,o,n,r,d=>u=d);l.type!==gt&&Zr(l,u);let c=r.subTree&&Xu(r.subTree);if(c&&c.type!==gt&&!xr(c,l)&&Gu(r).type!==gt){let d=Ts(c,o,n,r);if(Zr(c,d),a==="out-in"&&l.type!==gt)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete d.afterLeave,c=void 0},Ga(i);a==="in-out"&&l.type!==gt?d.delayLeave=(p,h,g)=>{const w=Zu(n,c);w[String(c.key)]=c,p[Or]=()=>{h(),p[Or]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function Ju(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==gt){t=r;break}}return t}var Yu=Rv;function Zu(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Ts(e,t,r,n,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:g,onLeaveCancelled:w,onBeforeAppear:T,onAppear:v,onAfterAppear:S,onAppearCancelled:y}=t,_=String(e.key),E=Zu(r,e),$=(N,q)=>{N&&ur(N,n,9,q)},B=(N,q)=>{const C=q[1];$(N,q),_e(N)?N.every(b=>b.length<=1)&&C():N.length<=1&&C()},m={mode:o,persisted:a,beforeEnter(N){let q=l;if(!r.isMounted)if(i)q=T||l;else return;N[Or]&&N[Or](!0);const C=E[_];C&&xr(e,C)&&C.el[Or]&&C.el[Or](),$(q,[N])},enter(N){if(E[_]===e)return;let q=u,C=c,b=d;if(!r.isMounted)if(i)q=v||u,C=S||c,b=y||d;else return;let x=!1;N[oi]=R=>{x||(x=!0,R?$(b,[N]):$(C,[N]),m.delayedLeave&&m.delayedLeave(),N[oi]=void 0)};const O=N[oi].bind(null,!1);q?B(q,[N,O]):O()},leave(N,q){const C=String(e.key);if(N[oi]&&N[oi](!0),r.isUnmounting)return q();$(p,[N]);let b=!1;N[Or]=O=>{b||(b=!0,q(),O?$(w,[N]):$(g,[N]),N[Or]=void 0,E[C]===e&&delete E[C])};const x=N[Or].bind(null,!1);E[C]=e,h?B(h,[N,x]):x()},clone(N){const q=Ts(N,t,r,n,s);return s&&s(q),q}};return m}function Ga(e){if(ai(e))return e=Tr(e),e.children=null,e}function Xu(e){if(!ai(e))return ju(e.type)&&e.children?Ju(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&$e(r.default))return r.default()}}function Zr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Zr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function co(e,t=!1,r){let n=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=r==null?o.key:String(r)+String(o.key!=null?o.key:i);o.type===Ke?(o.patchFlag&128&&s++,n=n.concat(co(o.children,t,a))):(t||o.type!==gt)&&n.push(a!=null?Tr(o,{key:a}):o)}if(s>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function X(e,t){return $e(e)?Ze({name:e.name},t,{setup:e}):e}function Qu(){const e=vt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ja(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Iv(e){const t=vt(),r=ft(null);if(t){const n=t.refs===Ue?t.refs={}:t.refs;Object.defineProperty(n,e,{enumerable:!0,get:()=>r.value,set:s=>r.value=s})}return r}function ed(e,t){let r;return!!((r=Object.getOwnPropertyDescriptor(e,t))&&!r.configurable)}var uo=new WeakMap;function Es(e,t,r,n,s=!1){if(_e(e)){e.forEach((w,T)=>Es(w,t&&(_e(t)?t[T]:t),r,n,s));return}if(Xr(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Es(e,t,r,n.component.subTree);return}const i=n.shapeFlag&4?mi(n.component):n.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Ue?a.refs={}:a.refs,d=a.setupState,p=ze(d),h=d===Ue?tu:w=>ed(c,w)?!1:Ye(p,w),g=(w,T)=>!(T&&ed(c,T));if(u!=null&&u!==l){if(td(t),it(u))c[u]=null,h(u)&&(d[u]=null);else if(tt(u)){const w=t;g(u,w.k)&&(u.value=null),w.k&&(c[w.k]=null)}}if($e(l))_s(l,a,12,[o,c]);else{const w=it(l),T=tt(l);if(w||T){const v=()=>{if(e.f){const S=w?h(l)?d[l]:c[l]:g(l)||!e.k?l.value:c[e.k];if(s)_e(S)&&Ca(S,i);else if(_e(S))S.includes(i)||S.push(i);else if(w)c[l]=[i],h(l)&&(d[l]=c[l]);else{const y=[i];g(l,e.k)&&(l.value=y),e.k&&(c[e.k]=y)}}else w?(c[l]=o,h(l)&&(d[l]=o)):T&&(g(l,e.k)&&(l.value=o),e.k&&(c[e.k]=o))};if(o){const S=()=>{v(),uo.delete(e)};S.id=-1,uo.set(e,S),yt(S,r)}else td(e),v()}}}function td(e){const t=uo.get(e);t&&(t.flags|=8,uo.delete(e))}var rd=!1,As=()=>{rd||(console.error("Hydration completed but contains mismatches."),rd=!0)},$v=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Pv=e=>e.namespaceURI.includes("MathML"),fo=e=>{if(e.nodeType===1){if($v(e))return"svg";if(Pv(e))return"mathml"}},ks=e=>e.nodeType===8;function Dv(e){const{mt:t,p:r,o:{patchProp:n,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:u}}=e,c=(y,_)=>{if(!_.hasChildNodes()){r(null,y,_),no(),_._vnode=y;return}d(_.firstChild,y,null,null,null),no(),_._vnode=y},d=(y,_,E,$,B,m=!1)=>{m=m||!!_.dynamicChildren;const N=ks(y)&&y.data==="[",q=()=>w(y,_,E,$,B,N),{type:C,ref:b,shapeFlag:x,patchFlag:O}=_;let R=y.nodeType;_.el=y,O===-2&&(m=!1,_.dynamicChildren=null);let M=null;switch(C){case _n:R!==3?_.children===""?(l(_.el=s(""),o(y),y),M=y):M=q():(y.data!==_.children&&(As(),y.data=_.children),M=i(y));break;case gt:S(y)?(M=i(y),v(_.el=y.content.firstChild,y,E)):R!==8||N?M=q():M=i(y);break;case Xn:if(N&&(y=i(y),R=y.nodeType),R===1||R===3){M=y;const z=!_.children.length;for(let G=0;G<_.staticCount;G++)z&&(_.children+=M.nodeType===1?M.outerHTML:M.data),G===_.staticCount-1&&(_.anchor=M),M=i(M);return N?i(M):M}else q();break;case Ke:N?M=g(y,_,E,$,B,m):M=q();break;default:if(x&1)(R!==1||_.type.toLowerCase()!==y.tagName.toLowerCase())&&!S(y)?M=q():M=p(y,_,E,$,B,m);else if(x&6){_.slotScopeIds=B;const z=o(y);if(N?M=T(y):ks(y)&&y.data==="teleport start"?M=T(y,y.data,"teleport end"):M=i(y),t(_,z,null,E,$,fo(z),m),Xr(_)&&!_.type.__asyncResolved){let G;N?(G=D(Ke),G.anchor=M?M.previousSibling:z.lastChild):G=y.nodeType===3?qe(""):D("div"),G.el=y,_.component.subTree=G}}else x&64?R!==8?M=q():M=_.type.hydrate(y,_,E,$,B,m,e,h):x&128&&(M=_.type.hydrate(y,_,E,$,fo(o(y)),B,m,e,d))}return b!=null&&Es(b,null,$,_),M},p=(y,_,E,$,B,m)=>{m=m||!!_.dynamicChildren;const{type:N,props:q,patchFlag:C,shapeFlag:b,dirs:x,transition:O}=_,R=N==="input"||N==="option";if(R||C!==-1){x&&Dr(_,null,E,"created");let M=!1;if(S(y)){M=qd(null,O)&&E&&E.vnode.props&&E.vnode.props.appear;const G=y.content.firstChild;if(M){const oe=G.getAttribute("class");oe&&(G.$cls=oe),O.beforeEnter(G)}v(G,y,E),_.el=y=G}if(b&16&&!(q&&(q.innerHTML||q.textContent))){let G=h(y.firstChild,_,y,E,$,B,m);for(;G;){po(y,1)||As();const oe=G;G=G.nextSibling,a(oe)}}else if(b&8){let G=_.children;G[0]===`
|
|
4
|
-
`&&(
|
|
5
|
-
`)&&(po(y,0)||As(),y.textContent=_.children)}if(q){if(R||!m||C&48){const G=y.tagName.includes("-");for(const oe in q)(R&&(oe.endsWith("value")||oe==="indeterminate")||zs(oe)&&!Kn(oe)||oe[0]==="."||G&&!Kn(oe))&&n(y,oe,null,q[oe],void 0,E)}else if(q.onClick)n(y,"onClick",null,q.onClick,void 0,E);else if(C&4&&Jr(q.style))for(const G in q.style)q.style[G]}let z;(z=q&&q.onVnodeBeforeMount)&&Yt(z,E,_),x&&Dr(_,null,E,"beforeMount"),((z=q&&q.onVnodeMounted)||x||M)&&jd(()=>{z&&Yt(z,E,_),M&&O.enter(y),x&&Dr(_,null,E,"mounted")},$)}return y.nextSibling},h=(y,_,E,$,B,m,N)=>{N=N||!!_.dynamicChildren;const q=_.children,C=q.length;for(let b=0;b<C;b++){const x=N?q[b]:q[b]=Jt(q[b]),O=x.type===_n;y?(O&&!N&&b+1<C&&Jt(q[b+1]).type===_n&&(l(s(y.data.slice(x.children.length)),E,i(y)),y.data=x.children),y=d(y,x,$,B,m,N)):O&&!x.children?l(x.el=s(""),E):(po(E,1)||As(),r(null,x,E,null,$,B,fo(E),m))}return y},g=(y,_,E,$,B,m)=>{const{slotScopeIds:N}=_;N&&(B=B?B.concat(N):N);const q=o(y),C=h(i(y),_,q,E,$,B,m);return C&&ks(C)&&C.data==="]"?i(_.anchor=C):(As(),l(_.anchor=u("]"),q,C),C)},w=(y,_,E,$,B,m)=>{if(po(y.parentElement,1)||As(),_.el=null,m){const C=T(y);for(;;){const b=i(y);if(b&&b!==C)a(b);else break}}const N=i(y),q=o(y);return a(y),r(null,_,q,N,E,$,fo(q),B),E&&(E.vnode.el=_.el,bo(E,_.el)),N},T=(y,_="[",E="]")=>{let $=0;for(;y;)if(y=i(y),y&&ks(y)&&(y.data===_&&$++,y.data===E)){if($===0)return i(y);$--}return y},v=(y,_,E)=>{const $=_.parentNode;$&&$.replaceChild(y,_);let B=E;for(;B;)B.vnode.el===_&&(B.vnode.el=B.subTree.el=y),B=B.parent},S=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[c,d]}var nd="data-allow-mismatch",Ov={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function po(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(nd);)e=e.parentElement;const r=e&&e.getAttribute(nd);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:n.includes(Ov[t])}}var Hv=Ui().requestIdleCallback||(e=>setTimeout(e,1)),Mv=Ui().cancelIdleCallback||(e=>clearTimeout(e)),Nv=(e=1e4)=>t=>{const r=Hv(t,{timeout:e});return()=>Mv(r)};function qv(e){const{top:t,left:r,bottom:n,right:s}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(t>0&&t<i||n>0&&n<i)&&(r>0&&r<o||s>0&&s<o)}var Bv=e=>(t,r)=>{const n=new IntersectionObserver(s=>{for(const i of s)if(i.isIntersecting){n.disconnect(),t();break}},e);return r(s=>{if(s instanceof Element){if(qv(s))return t(),n.disconnect(),!1;n.observe(s)}}),()=>n.disconnect()},Lv=e=>t=>{if(e){const r=matchMedia(e);if(r.matches)t();else return r.addEventListener("change",t,{once:!0}),()=>r.removeEventListener("change",t)}},Fv=(e=[])=>(t,r)=>{it(e)&&(e=[e]);let n=!1;const s=o=>{n||(n=!0,i(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{r(o=>{for(const a of e)o.removeEventListener(a,s)})};return r(o=>{for(const a of e)o.addEventListener(a,s,{once:!0})}),i};function Vv(e,t){if(ks(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(ks(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}var Xr=e=>!!e.type.__asyncLoader;function jv(e){$e(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=e;let u=null,c,d=0;const p=()=>(d++,u=null,h()),h=()=>{let g;return u||(g=u=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),l)return new Promise((T,v)=>{l(w,()=>T(p()),()=>v(w),d+1)});throw w}).then(w=>g!==u&&u?u:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),c=w,w)))};return X({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(g,w,T){let v=!1;(w.bu||(w.bu=[])).push(()=>v=!0);const S=()=>{v||T()},y=i?()=>{const _=i(S,E=>Vv(g,E));_&&(w.bum||(w.bum=[])).push(_)}:S;c?y():h().then(()=>!w.isUnmounted&&y())},get __asyncResolved(){return c},setup(){const g=$t;if(Ja(g),c)return()=>ho(c,g);const w=y=>{u=null,Gn(y,g,13,!n)};if(a&&g.suspense||$s)return h().then(y=>()=>ho(y,g)).catch(y=>(w(y),()=>n?D(n,{error:y}):null));const T=V(!1),v=V(),S=V(!!s);return s&&setTimeout(()=>{S.value=!1},s),o!=null&&setTimeout(()=>{if(!T.value&&!v.value){const y=new Error(`Async component timed out after ${o}ms.`);w(y),v.value=y}},o),h().then(()=>{T.value=!0,g.parent&&ai(g.parent.vnode)&&g.parent.update()}).catch(y=>{w(y),v.value=y}),()=>{if(T.value&&c)return ho(c,g);if(v.value&&n)return D(n,{error:v.value});if(r&&!S.value)return ho(r,g)}}})}function ho(e,t){const{ref:r,props:n,children:s,ce:i}=t.vnode,o=D(e,n,s);return o.ref=r,o.ce=i,delete t.vnode.ce,o}var ai=e=>e.type.__isKeepAlive,Uv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=vt(),n=r.ctx;if(!n.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const s=new Map,i=new Set;let o=null;const a=r.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=n,p=d("div");n.activate=(S,y,_,E,$)=>{const B=S.component;u(S,y,_,0,a),l(B.vnode,S,y,_,B,a,E,S.slotScopeIds,$),yt(()=>{B.isDeactivated=!1,B.a&&ws(B.a);const m=S.props&&S.props.onVnodeMounted;m&&Yt(m,B.parent,S)},a)},n.deactivate=S=>{const y=S.component;_o(y.m),_o(y.a),u(S,p,null,1,a),yt(()=>{y.da&&ws(y.da);const _=S.props&&S.props.onVnodeUnmounted;_&&Yt(_,y.parent,S),y.isDeactivated=!0},a)};function h(S){Ya(S),c(S,r,a,!0)}function g(S){s.forEach((y,_)=>{const E=wl(Xr(y)?y.type.__asyncResolved||{}:y.type);E&&!S(E)&&w(_)})}function w(S){const y=s.get(S);y&&(!o||!xr(y,o))?h(y):o&&Ya(o),s.delete(S),i.delete(S)}De(()=>[e.include,e.exclude],([S,y])=>{S&&g(_=>li(S,_)),y&&g(_=>!li(y,_))},{flush:"post",deep:!0});let T=null;const v=()=>{T!=null&&(So(r.subTree.type)?yt(()=>{s.set(T,go(r.subTree))},r.subTree.suspense):s.set(T,go(r.subTree)))};return Qe(v),ci(v),Rs(()=>{s.forEach(S=>{const{subTree:y,suspense:_}=r,E=go(y);if(S.type===E.type&&S.key===E.key){Ya(E);const $=E.component.da;$&&yt($,_);return}h(S)})}),()=>{if(T=null,!t.default)return o=null;const S=t.default(),y=S[0];if(S.length>1)return o=null,S;if(!en(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let _=go(y);if(_.type===gt)return o=null,_;const E=_.type,$=wl(Xr(_)?_.type.__asyncResolved||{}:E),{include:B,exclude:m,max:N}=e;if(B&&(!$||!li(B,$))||m&&$&&li(m,$))return _.shapeFlag&=-257,o=_,y;const q=_.key==null?E:_.key,C=s.get(q);return _.el&&(_=Tr(_),y.shapeFlag&128&&(y.ssContent=_)),T=q,C?(_.el=C.el,_.component=C.component,_.transition&&Zr(_,_.transition),_.shapeFlag|=512,i.delete(q),i.add(q)):(i.add(q),N&&i.size>parseInt(N,10)&&w(i.values().next().value)),_.shapeFlag|=256,o=_,So(y.type)?y:_}}};function li(e,t){return _e(e)?e.some(r=>li(r,t)):it(e)?e.split(",").includes(t):Eg(e)?(e.lastIndex=0,e.test(t)):!1}function sd(e,t){od(e,"a",t)}function id(e,t){od(e,"da",t)}function od(e,t,r=$t){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(vo(t,n,r),r){let s=r.parent;for(;s&&s.parent;)ai(s.parent.vnode)&&zv(n,t,r,s),s=s.parent}}function zv(e,t,r,n){const s=vo(t,e,n,!0);jt(()=>{Ca(n[t],s)},r)}function Ya(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function go(e){return e.shapeFlag&128?e.ssContent:e}function vo(e,t,r=$t,n=!1){if(r){const s=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{jr();const a=es(r),l=ur(t,r,e,o);return a(),Ur(),l});return n?s.unshift(i):s.push(i),i}}var Qr=e=>(t,r=$t)=>{(!$s||e==="sp")&&vo(e,(...n)=>t(...n),r)},ad=Qr("bm"),Qe=Qr("m"),Za=Qr("bu"),ci=Qr("u"),Rs=Qr("bum"),jt=Qr("um"),ld=Qr("sp"),cd=Qr("rtg"),ud=Qr("rtc");function dd(e,t=$t){vo("ec",e,t)}var Xa="components",Kv="directives";function Wv(e,t){return Qa(Xa,e,!0,t)||e}var fd=Symbol.for("v-ndc");function ui(e){return it(e)?Qa(Xa,e,!1)||e:e||fd}function Gv(e){return Qa(Kv,e)}function Qa(e,t,r=!0,n=!1){const s=It||$t;if(s){const i=s.type;if(e===Xa){const a=wl(i,!1);if(a&&(a===t||a===Ct(t)||a===Ks(Ct(t))))return i}const o=pd(s[e]||i[e],t)||pd(s.appContext[e],t);return!o&&n?i:o}}function pd(e,t){return e&&(e[t]||e[Ct(t)]||e[Ks(Ct(t))])}function fr(e,t,r,n){let s;const i=r&&r[n],o=_e(e);if(o||it(e)){const a=o&&Jr(e);let l=!1,u=!1;a&&(l=!Gt(e),u=$r(e),e=Ji(e)),s=new Array(e.length);for(let c=0,d=e.length;c<d;c++)s[c]=t(l?u?bs(Cr(e[c])):Cr(e[c]):e[c],c,void 0,i&&i[c])}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i&&i[a])}else if(Ge(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i&&i[l])}}else s=[];return r&&(r[n]=s),s}function Jv(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(_e(n))for(let s=0;s<n.length;s++)e[n[s].name]=n[s].fn;else n&&(e[n.name]=n.key?(...s)=>{const i=n.fn(...s);return i&&(i.key=n.key),i}:n.fn)}return e}function te(e,t,r={},n,s){if(It.ce||It.parent&&Xr(It.parent)&&It.parent.ce){const u=Object.keys(r).length>0;return t!=="default"&&(r.name=t),I(),K(Ke,null,[D("slot",r,n&&n())],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),I();const o=i&&el(i(r)),a=r.key||o&&o.key,l=K(Ke,{key:(a&&!_r(a)?a:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function el(e){return e.some(t=>en(t)?!(t.type===gt||t.type===Ke&&!el(t.children)):!0)?e:null}function hd(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:ms(n)]=e[n];return r}var tl=e=>e?Gd(e)?mi(e):tl(e.parent):null,di=Ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>tl(e.parent),$root:e=>tl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>il(e),$forceUpdate:e=>e.f||(e.f=()=>{Fa(e.update)}),$nextTick:e=>e.n||(e.n=At.bind(e.proxy)),$watch:e=>Av.bind(e)}),rl=(e,t)=>e!==Ue&&!e.__isScriptSetup&&Ye(e,t),nl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return i[t]}else{if(rl(n,t))return o[t]=1,n[t];if(s!==Ue&&Ye(s,t))return o[t]=2,s[t];if(Ye(i,t))return o[t]=3,i[t];if(r!==Ue&&Ye(r,t))return o[t]=4,r[t];sl&&(o[t]=0)}}const u=di[t];let c,d;if(u)return t==="$attrs"&&Ht(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(r!==Ue&&Ye(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,Ye(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:i}=e;return rl(s,t)?(s[t]=r,!0):n!==Ue&&Ye(n,t)?(n[t]=r,!0):Ye(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:s,props:i,type:o}},a){let l;return!!(r[a]||e!==Ue&&a[0]!=="$"&&Ye(e,a)||rl(t,a)||Ye(i,a)||Ye(n,a)||Ye(di,a)||Ye(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ye(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},Yv=Ze({},nl,{get(e,t){if(t!==Symbol.unscopables)return nl.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Ig(t)}});function Zv(){return null}function Xv(){return null}function Qv(e){}function em(e){}function tm(){return null}function rm(){}function nm(e,t){return null}function sm(){return gd("useSlots").slots}function im(){return gd("useAttrs").attrs}function gd(e){const t=vt();return t.setupContext||(t.setupContext=Zd(t))}function fi(e){return _e(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function vd(e,t){const r=fi(e);for(const n in t){if(n.startsWith("__skip"))continue;let s=r[n];s?_e(s)||$e(s)?s=r[n]={type:s,default:t[n]}:s.default=t[n]:s===null&&(s=r[n]={default:t[n]}),s&&t[`__skip_${n}`]&&(s.skipFactory=!0)}return r}function om(e,t){return!e||!t?e||t:_e(e)&&_e(t)?e.concat(t):Ze({},fi(e),fi(t))}function am(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function lm(e){const t=vt();let r=e();To();const n=()=>{vt()!==t&&t.scope.off(),To()};return xa(r)&&(r=r.catch(s=>{throw es(t),Promise.resolve().then(()=>Promise.resolve().then(n)),s})),[r,()=>{es(t),Promise.resolve().then(n)}]}var sl=!0;function cm(e){const t=il(e),r=e.proxy,n=e.ctx;sl=!1,t.beforeCreate&&md(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:p,beforeUpdate:h,updated:g,activated:w,deactivated:T,beforeDestroy:v,beforeUnmount:S,destroyed:y,unmounted:_,render:E,renderTracked:$,renderTriggered:B,errorCaptured:m,serverPrefetch:N,expose:q,inheritAttrs:C,components:b,directives:x,filters:O}=t;if(u&&um(u,n,null),o)for(const z in o){const G=o[z];$e(G)&&(n[z]=G.bind(r))}if(s){const z=s.call(r,r);Ge(z)&&(e.data=Wr(z))}if(sl=!0,i)for(const z in i){const G=i[z],oe=j({get:$e(G)?G.bind(r,r):$e(G.get)?G.get.bind(r,r):lr,set:!$e(G)&&$e(G.set)?G.set.bind(r):lr});Object.defineProperty(n,z,{enumerable:!0,configurable:!0,get:()=>oe.value,set:Y=>oe.value=Y})}if(a)for(const z in a)wd(a[z],n,r,z);if(l){const z=$e(l)?l.call(r):l;Reflect.ownKeys(z).forEach(G=>{Jn(G,z[G])})}c&&md(c,e,"c");function M(z,G){_e(G)?G.forEach(oe=>z(oe.bind(r))):G&&z(G.bind(r))}if(M(ad,d),M(Qe,p),M(Za,h),M(ci,g),M(sd,w),M(id,T),M(dd,m),M(ud,$),M(cd,B),M(Rs,S),M(jt,_),M(ld,N),_e(q))if(q.length){const z=e.exposed||(e.exposed={});q.forEach(G=>{Object.defineProperty(z,G,{get:()=>r[G],set:oe=>r[G]=oe,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===lr&&(e.render=E),C!=null&&(e.inheritAttrs=C),b&&(e.components=b),x&&(e.directives=x),N&&Ja(e)}function um(e,t,r=lr){_e(e)&&(e=ol(e));for(const n in e){const s=e[n];let i;Ge(s)?"default"in s?i=Vt(s.from||n,s.default,!0):i=Vt(s.from||n):i=Vt(s),tt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function md(e,t,r){ur(_e(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function wd(e,t,r,n){let s=n.includes(".")?Fu(r,n):()=>r[n];if(it(e)){const i=t[e];$e(i)&&De(s,i)}else if($e(e))De(s,e.bind(r));else if(Ge(e))if(_e(e))e.forEach(i=>wd(i,t,r,n));else{const i=$e(e.handler)?e.handler.bind(r):t[e.handler];$e(i)&&De(s,i,e)}}function il(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!r&&!n?l=t:(l={},s.length&&s.forEach(u=>mo(l,u,o,!0)),mo(l,t,o)),Ge(t)&&i.set(t,l),l}function mo(e,t,r,n=!1){const{mixins:s,extends:i}=t;i&&mo(e,i,r,!0),s&&s.forEach(o=>mo(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const a=dm[o]||r&&r[o];e[o]=a?a(e[o],t[o]):t[o]}return e}var dm={data:yd,props:bd,emits:bd,methods:pi,computed:pi,beforeCreate:Ut,created:Ut,beforeMount:Ut,mounted:Ut,beforeUpdate:Ut,updated:Ut,beforeDestroy:Ut,beforeUnmount:Ut,destroyed:Ut,unmounted:Ut,activated:Ut,deactivated:Ut,errorCaptured:Ut,serverPrefetch:Ut,components:pi,directives:pi,watch:pm,provide:yd,inject:fm};function yd(e,t){return t?e?function(){return Ze($e(e)?e.call(this,this):e,$e(t)?t.call(this,this):t)}:t:e}function fm(e,t){return pi(ol(e),ol(t))}function ol(e){if(_e(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Ut(e,t){return e?[...new Set([].concat(e,t))]:t}function pi(e,t){return e?Ze(Object.create(null),e,t):t}function bd(e,t){return e?_e(e)&&_e(t)?[...new Set([...e,...t])]:Ze(Object.create(null),fi(e),fi(t??{})):t}function pm(e,t){if(!e)return t;if(!t)return e;const r=Ze(Object.create(null),e);for(const n in t)r[n]=Ut(e[n],t[n]);return r}function _d(){return{app:null,config:{isNativeTag:tu,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var hm=0;function gm(e,t){return function(n,s=null){$e(n)||(n=Ze({},n)),s!=null&&!Ge(s)&&(s=null);const i=_d(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:hm++,_component:n,_props:s,_container:null,_context:i,_instance:null,version:Qd,get config(){return i.config},set config(c){},use(c,...d){return o.has(c)||(c&&$e(c.install)?(o.add(c),c.install(u,...d)):$e(c)&&(o.add(c),c(u,...d))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,d){return d?(i.components[c]=d,u):i.components[c]},directive(c,d){return d?(i.directives[c]=d,u):i.directives[c]},mount(c,d,p){if(!l){const h=u._ceVNode||D(n,s);return h.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),d&&t?t(h,c):e(h,c,p),l=!0,u._container=c,c.__vue_app__=u,mi(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(ur(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return i.provides[c]=d,u},runWithContext(c){const d=Yn;Yn=u;try{return c()}finally{Yn=d}}};return u}}var Yn=null;function vm(e,t,r=Ue){const n=vt(),s=Ct(t),i=Wt(t),o=Sd(e,s),a=ei((l,u)=>{let c,d=Ue,p;return Lu(()=>{const h=e[s];Lt(c,h)&&(c=h,u())}),{get(){return l(),r.get?r.get(c):c},set(h){const g=r.set?r.set(h):h;if(!Lt(g,c)&&!(d!==Ue&&Lt(h,d)))return;const w=n.vnode.props;w&&(t in w||s in w||i in w)&&(`onUpdate:${t}`in w||`onUpdate:${s}`in w||`onUpdate:${i}`in w)||(c=h,u()),n.emit(`update:${t}`,g),Lt(h,g)&&Lt(h,d)&&!Lt(g,p)&&u(),d=h,p=g}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||Ue:a,done:!1}:{done:!0}}}},a}var Sd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ct(t)}Modifiers`]||e[`${Wt(t)}Modifiers`];function mm(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Ue;let s=r;const i=t.startsWith("update:"),o=i&&Sd(n,t.slice(7));o&&(o.trim&&(s=r.map(c=>it(c)?c.trim():c)),o.number&&(s=r.map(Vi)));let a,l=n[a=ms(t)]||n[a=ms(Ct(t))];!l&&i&&(l=n[a=ms(Wt(t))]),l&&ur(l,e,6,s);const u=n[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ur(u,e,6,s)}}var wm=new WeakMap;function Cd(e,t,r=!1){const n=r?wm:t.emitsCache,s=n.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!$e(e)){const l=u=>{const c=Cd(u,t,!0);c&&(a=!0,Ze(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Ge(e)&&n.set(e,null),null):(_e(i)?i.forEach(l=>o[l]=null):Ze(o,i),Ge(e)&&n.set(e,o),o)}function wo(e,t){return!e||!zs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ye(e,t[0].toLowerCase()+t.slice(1))||Ye(e,Wt(t))||Ye(e,t))}function yo(e){const{type:t,vnode:r,proxy:n,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:d,data:p,setupState:h,ctx:g,inheritAttrs:w}=e,T=ni(e);let v,S;try{if(r.shapeFlag&4){const _=s||n,E=_;v=Jt(u.call(E,_,c,d,h,p,g)),S=a}else{const _=t;v=Jt(_.length>1?_(d,{attrs:a,slots:o,emit:l}):_(d,null)),S=t.props?a:bm(a)}}catch(_){gi.length=0,Gn(_,e,1),v=D(gt)}let y=v;if(S&&w!==!1){const _=Object.keys(S),{shapeFlag:E}=y;_.length&&E&7&&(i&&_.some(Sa)&&(S=_m(S,i)),y=Tr(y,S,!1,!0))}return r.dirs&&(y=Tr(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&Zr(y,r.transition),v=y,ni(T),v}function ym(e,t=!0){let r;for(let n=0;n<e.length;n++){const s=e[n];if(en(s)){if(s.type!==gt||s.children==="v-if"){if(r)return;r=s}}else return}return r}var bm=e=>{let t;for(const r in e)(r==="class"||r==="style"||zs(r))&&((t||(t={}))[r]=e[r]);return t},_m=(e,t)=>{const r={};for(const n in e)(!Sa(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Sm(e,t,r){const{props:n,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?xd(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const p=c[d];if(Td(o,n,p)&&!wo(u,p))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?xd(n,o,u):!0:!!o;return!1}function xd(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const i=n[s];if(Td(t,e,i)&&!wo(r,i))return!0}return!1}function Td(e,t,r){const n=e[r],s=t[r];return r==="style"&&Ge(n)&&Ge(s)?!Vr(n,s):n!==s}function bo({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}var Ed={},Ad=()=>Object.create(Ed),kd=e=>Object.getPrototypeOf(e)===Ed;function Cm(e,t,r,n=!1){const s={},i=Ad();e.propsDefaults=Object.create(null),Rd(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);r?e.props=n?s:Au(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function xm(e,t,r,n){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ze(s),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let p=c[d];if(wo(e.emitsOptions,p))continue;const h=t[p];if(l)if(Ye(i,p))h!==i[p]&&(i[p]=h,u=!0);else{const g=Ct(p);s[g]=al(l,a,g,h,e,!1)}else h!==i[p]&&(i[p]=h,u=!0)}}}else{Rd(e,t,s,i)&&(u=!0);let c;for(const d in a)(!t||!Ye(t,d)&&((c=Wt(d))===d||!Ye(t,c)))&&(l?r&&(r[d]!==void 0||r[c]!==void 0)&&(s[d]=al(l,a,d,void 0,e,!0)):delete s[d]);if(i!==a)for(const d in i)(!t||!Ye(t,d))&&(delete i[d],u=!0)}u&&zr(e.attrs,"set","")}function Rd(e,t,r,n){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Kn(l))continue;const u=t[l];let c;s&&Ye(s,c=Ct(l))?!i||!i.includes(c)?r[c]=u:(a||(a={}))[c]=u:wo(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(i){const l=ze(r),u=a||Ue;for(let c=0;c<i.length;c++){const d=i[c];r[d]=al(s,l,d,u[d],e,!Ye(u,d))}}return o}function al(e,t,r,n,s,i){const o=e[r];if(o!=null){const a=Ye(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&$e(l)){const{propsDefaults:u}=s;if(r in u)n=u[r];else{const c=es(s);n=u[r]=l.call(null,t),c()}}else n=l;s.ce&&s.ce._setProp(r,n)}o[0]&&(i&&!a?n=!1:o[1]&&(n===""||n===Wt(r))&&(n=!0))}return n}var Tm=new WeakMap;function Id(e,t,r=!1){const n=r?Tm:t.propsCache,s=n.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!$e(e)){const c=d=>{l=!0;const[p,h]=Id(d,t,!0);Ze(o,p),h&&a.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Ge(e)&&n.set(e,hs),hs;if(_e(i))for(let c=0;c<i.length;c++){const d=Ct(i[c]);$d(d)&&(o[d]=Ue)}else if(i)for(const c in i){const d=Ct(c);if($d(d)){const p=i[c],h=o[d]=_e(p)||$e(p)?{type:p}:Ze({},p),g=h.type;let w=!1,T=!0;if(_e(g))for(let v=0;v<g.length;++v){const S=g[v],y=$e(S)&&S.name;if(y==="Boolean"){w=!0;break}else y==="String"&&(T=!1)}else w=$e(g)&&g.name==="Boolean";h[0]=w,h[1]=T,(w||Ye(h,"default"))&&a.push(d)}}const u=[o,a];return Ge(e)&&n.set(e,u),u}function $d(e){return e[0]!=="$"&&!Kn(e)}var ll=e=>e==="_"||e==="_ctx"||e==="$stable",cl=e=>_e(e)?e.map(Jt):[Jt(e)],Em=(e,t,r)=>{if(t._n)return t;const n=k((...s)=>cl(t(...s)),r);return n._c=!1,n},Pd=(e,t,r)=>{const n=e._ctx;for(const s in e){if(ll(s))continue;const i=e[s];if($e(i))t[s]=Em(s,i,n);else if(i!=null){const o=cl(i);t[s]=()=>o}}},Dd=(e,t)=>{const r=cl(t);e.slots.default=()=>r},Od=(e,t,r)=>{for(const n in t)(r||!ll(n))&&(e[n]=t[n])},Am=(e,t,r)=>{const n=e.slots=Ad();if(e.vnode.shapeFlag&32){const s=t._;s?(Od(n,t,r),r&&su(n,"_",s,!0)):Pd(t,n)}else t&&Dd(e,t)},km=(e,t,r)=>{const{vnode:n,slots:s}=e;let i=!0,o=Ue;if(n.shapeFlag&32){const a=t._;a?r&&a===1?i=!1:Od(s,t,r):(i=!t.$stable,Pd(t,s)),o=t}else t&&(Dd(e,t),o={default:1});if(i)for(const a in s)!ll(a)&&o[a]==null&&delete s[a]};function Px(){}var yt=jd;function Hd(e){return Nd(e)}function Md(e){return Nd(e,Dv)}function Nd(e,t){const r=Ui();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:p,setScopeId:h=lr,insertStaticContent:g}=e,w=(A,P,J,ie=null,re=null,ee=null,pe=void 0,fe=null,le=!!P.dynamicChildren)=>{if(A===P)return;A&&!xr(A,P)&&(ie=nt(A),de(A,re,ee,!0),A=null),P.patchFlag===-2&&(le=!1,P.dynamicChildren=null);const{type:ne,ref:Ee,shapeFlag:he}=P;switch(ne){case _n:T(A,P,J,ie);break;case gt:v(A,P,J,ie);break;case Xn:A==null&&S(P,J,ie,pe);break;case Ke:b(A,P,J,ie,re,ee,pe,fe,le);break;default:he&1?E(A,P,J,ie,re,ee,pe,fe,le):he&6?x(A,P,J,ie,re,ee,pe,fe,le):(he&64||he&128)&&ne.process(A,P,J,ie,re,ee,pe,fe,le,st)}Ee!=null&&re?Es(Ee,A&&A.ref,ee,P||A,!P):Ee==null&&A&&A.ref!=null&&Es(A.ref,null,ee,A,!0)},T=(A,P,J,ie)=>{if(A==null)n(P.el=a(P.children),J,ie);else{const re=P.el=A.el;P.children!==A.children&&u(re,P.children)}},v=(A,P,J,ie)=>{A==null?n(P.el=l(P.children||""),J,ie):P.el=A.el},S=(A,P,J,ie)=>{[A.el,A.anchor]=g(A.children,P,J,ie,A.el,A.anchor)},y=({el:A,anchor:P},J,ie)=>{let re;for(;A&&A!==P;)re=p(A),n(A,J,ie),A=re;n(P,J,ie)},_=({el:A,anchor:P})=>{let J;for(;A&&A!==P;)J=p(A),s(A),A=J;s(P)},E=(A,P,J,ie,re,ee,pe,fe,le)=>{if(P.type==="svg"?pe="svg":P.type==="math"&&(pe="mathml"),A==null)$(P,J,ie,re,ee,pe,fe,le);else{const ne=A.el&&A.el._isVueCE?A.el:null;try{ne&&ne._beginPatch(),N(A,P,re,ee,pe,fe,le)}finally{ne&&ne._endPatch()}}},$=(A,P,J,ie,re,ee,pe,fe)=>{let le,ne;const{props:Ee,shapeFlag:he,transition:Te,dirs:Oe}=A;if(le=A.el=o(A.type,ee,Ee&&Ee.is,Ee),he&8?c(le,A.children):he&16&&m(A.children,le,null,ie,re,ul(A,ee),pe,fe),Oe&&Dr(A,null,ie,"created"),B(le,A,A.scopeId,pe,ie),Ee){for(const Z in Ee)Z!=="value"&&!Kn(Z)&&i(le,Z,null,Ee[Z],ee,ie);"value"in Ee&&i(le,"value",null,Ee.value,ee),(ne=Ee.onVnodeBeforeMount)&&Yt(ne,ie,A)}Oe&&Dr(A,null,ie,"beforeMount");const Ve=qd(re,Te);Ve&&Te.beforeEnter(le),n(le,P,J),((ne=Ee&&Ee.onVnodeMounted)||Ve||Oe)&&yt(()=>{ne&&Yt(ne,ie,A),Ve&&Te.enter(le),Oe&&Dr(A,null,ie,"mounted")},re)},B=(A,P,J,ie,re)=>{if(J&&h(A,J),ie)for(let ee=0;ee<ie.length;ee++)h(A,ie[ee]);if(re){let ee=re.subTree;if(P===ee||So(ee.type)&&(ee.ssContent===P||ee.ssFallback===P)){const pe=re.vnode;B(A,pe,pe.scopeId,pe.slotScopeIds,re.parent)}}},m=(A,P,J,ie,re,ee,pe,fe,le=0)=>{for(let ne=le;ne<A.length;ne++)w(null,A[ne]=fe?tn(A[ne]):Jt(A[ne]),P,J,ie,re,ee,pe,fe)},N=(A,P,J,ie,re,ee,pe)=>{const fe=P.el=A.el;let{patchFlag:le,dynamicChildren:ne,dirs:Ee}=P;le|=A.patchFlag&16;const he=A.props||Ue,Te=P.props||Ue;let Oe;if(J&&Zn(J,!1),(Oe=Te.onVnodeBeforeUpdate)&&Yt(Oe,J,P,A),Ee&&Dr(P,A,J,"beforeUpdate"),J&&Zn(J,!0),(he.innerHTML&&Te.innerHTML==null||he.textContent&&Te.textContent==null)&&c(fe,""),ne?q(A.dynamicChildren,ne,fe,J,ie,ul(P,re),ee):pe||G(A,P,fe,null,J,ie,ul(P,re),ee,!1),le>0){if(le&16)C(fe,he,Te,J,re);else if(le&2&&he.class!==Te.class&&i(fe,"class",null,Te.class,re),le&4&&i(fe,"style",he.style,Te.style,re),le&8){const Ve=P.dynamicProps;for(let Z=0;Z<Ve.length;Z++){const ce=Ve[Z],ge=he[ce],ut=Te[ce];(ut!==ge||ce==="value")&&i(fe,ce,ge,ut,re,J)}}le&1&&A.children!==P.children&&c(fe,P.children)}else!pe&&ne==null&&C(fe,he,Te,J,re);((Oe=Te.onVnodeUpdated)||Ee)&&yt(()=>{Oe&&Yt(Oe,J,P,A),Ee&&Dr(P,A,J,"updated")},ie)},q=(A,P,J,ie,re,ee,pe)=>{for(let fe=0;fe<P.length;fe++){const le=A[fe],ne=P[fe];w(le,ne,le.el&&(le.type===Ke||!xr(le,ne)||le.shapeFlag&198)?d(le.el):J,null,ie,re,ee,pe,!0)}},C=(A,P,J,ie,re)=>{if(P!==J){if(P!==Ue)for(const ee in P)!Kn(ee)&&!(ee in J)&&i(A,ee,P[ee],null,re,ie);for(const ee in J){if(Kn(ee))continue;const pe=J[ee],fe=P[ee];pe!==fe&&ee!=="value"&&i(A,ee,fe,pe,re,ie)}"value"in J&&i(A,"value",P.value,J.value,re)}},b=(A,P,J,ie,re,ee,pe,fe,le)=>{const ne=P.el=A?A.el:a(""),Ee=P.anchor=A?A.anchor:a("");let{patchFlag:he,dynamicChildren:Te,slotScopeIds:Oe}=P;Oe&&(fe=fe?fe.concat(Oe):Oe),A==null?(n(ne,J,ie),n(Ee,J,ie),m(P.children||[],J,Ee,re,ee,pe,fe,le)):he>0&&he&64&&Te&&A.dynamicChildren&&A.dynamicChildren.length===Te.length?(q(A.dynamicChildren,Te,J,re,ee,pe,fe),(P.key!=null||re&&P===re.subTree)&&dl(A,P,!0)):G(A,P,J,Ee,re,ee,pe,fe,le)},x=(A,P,J,ie,re,ee,pe,fe,le)=>{P.slotScopeIds=fe,A==null?P.shapeFlag&512?re.ctx.activate(P,J,ie,pe,le):O(P,J,ie,re,ee,pe,le):R(A,P,le)},O=(A,P,J,ie,re,ee,pe)=>{const fe=A.component=Wd(A,ie,re);if(ai(A)&&(fe.ctx.renderer=st),Jd(fe,!1,pe),fe.asyncDep){if(re&&re.registerDep(fe,M,pe),!A.el){const le=fe.subTree=D(gt);v(null,le,P,J),A.placeholder=le.el}}else M(fe,A,P,J,re,ee,pe)},R=(A,P,J)=>{const ie=P.component=A.component;if(Sm(A,P,J))if(ie.asyncDep&&!ie.asyncResolved){z(ie,P,J);return}else ie.next=P,ie.update();else P.el=A.el,ie.vnode=P},M=(A,P,J,ie,re,ee,pe)=>{const fe=()=>{if(A.isMounted){let{next:he,bu:Te,u:Oe,parent:Ve,vnode:Z}=A;{const St=Bd(A);if(St){he&&(he.el=Z.el,z(A,he,pe)),St.asyncDep.then(()=>{yt(()=>{A.isUnmounted||ne()},re)});return}}let ce=he,ge;Zn(A,!1),he?(he.el=Z.el,z(A,he,pe)):he=Z,Te&&ws(Te),(ge=he.props&&he.props.onVnodeBeforeUpdate)&&Yt(ge,Ve,he,Z),Zn(A,!0);const ut=yo(A),ar=A.subTree;A.subTree=ut,w(ar,ut,d(ar.el),nt(ar),A,re,ee),he.el=ut.el,ce===null&&bo(A,ut.el),Oe&&yt(Oe,re),(ge=he.props&&he.props.onVnodeUpdated)&&yt(()=>Yt(ge,Ve,he,Z),re)}else{let he;const{el:Te,props:Oe}=P,{bm:Ve,m:Z,parent:ce,root:ge,type:ut}=A,ar=Xr(P);if(Zn(A,!1),Ve&&ws(Ve),!ar&&(he=Oe&&Oe.onVnodeBeforeMount)&&Yt(he,ce,P),Zn(A,!0),Te&&mt){const St=()=>{A.subTree=yo(A),mt(Te,A.subTree,A,re,null)};ar&&ut.__asyncHydrate?ut.__asyncHydrate(Te,A,St):St()}else{ge.ce&&ge.ce._hasShadowRoot()&&ge.ce._injectChildStyle(ut);const St=A.subTree=yo(A);w(null,St,J,ie,A,re,ee),P.el=St.el}if(Z&&yt(Z,re),!ar&&(he=Oe&&Oe.onVnodeMounted)){const St=P;yt(()=>Yt(he,ce,St),re)}(P.shapeFlag&256||ce&&Xr(ce.vnode)&&ce.vnode.shapeFlag&256)&&A.a&&yt(A.a,re),A.isMounted=!0,P=J=ie=null}};A.scope.on();const le=A.effect=new Ws(fe);A.scope.off();const ne=A.update=le.run.bind(le),Ee=A.job=le.runIfDirty.bind(le);Ee.i=A,Ee.id=A.uid,le.scheduler=()=>Fa(Ee),Zn(A,!0),ne()},z=(A,P,J)=>{P.component=A;const ie=A.vnode.props;A.vnode=P,A.next=null,xm(A,P.props,ie,J),km(A,P.children,J),jr(),Hu(A),Ur()},G=(A,P,J,ie,re,ee,pe,fe,le=!1)=>{const ne=A&&A.children,Ee=A?A.shapeFlag:0,he=P.children,{patchFlag:Te,shapeFlag:Oe}=P;if(Te>0){if(Te&128){Y(ne,he,J,ie,re,ee,pe,fe,le);return}else if(Te&256){oe(ne,he,J,ie,re,ee,pe,fe,le);return}}Oe&8?(Ee&16&&Pe(ne,re,ee),he!==ne&&c(J,he)):Ee&16?Oe&16?Y(ne,he,J,ie,re,ee,pe,fe,le):Pe(ne,re,ee,!0):(Ee&8&&c(J,""),Oe&16&&m(he,J,ie,re,ee,pe,fe,le))},oe=(A,P,J,ie,re,ee,pe,fe,le)=>{A=A||hs,P=P||hs;const ne=A.length,Ee=P.length,he=Math.min(ne,Ee);let Te;for(Te=0;Te<he;Te++){const Oe=P[Te]=le?tn(P[Te]):Jt(P[Te]);w(A[Te],Oe,J,null,re,ee,pe,fe,le)}ne>Ee?Pe(A,re,ee,!0,!1,he):m(P,J,ie,re,ee,pe,fe,le,he)},Y=(A,P,J,ie,re,ee,pe,fe,le)=>{let ne=0;const Ee=P.length;let he=A.length-1,Te=Ee-1;for(;ne<=he&&ne<=Te;){const Oe=A[ne],Ve=P[ne]=le?tn(P[ne]):Jt(P[ne]);if(xr(Oe,Ve))w(Oe,Ve,J,null,re,ee,pe,fe,le);else break;ne++}for(;ne<=he&&ne<=Te;){const Oe=A[he],Ve=P[Te]=le?tn(P[Te]):Jt(P[Te]);if(xr(Oe,Ve))w(Oe,Ve,J,null,re,ee,pe,fe,le);else break;he--,Te--}if(ne>he){if(ne<=Te){const Oe=Te+1,Ve=Oe<Ee?P[Oe].el:ie;for(;ne<=Te;)w(null,P[ne]=le?tn(P[ne]):Jt(P[ne]),J,Ve,re,ee,pe,fe,le),ne++}}else if(ne>Te)for(;ne<=he;)de(A[ne],re,ee,!0),ne++;else{const Oe=ne,Ve=ne,Z=new Map;for(ne=Ve;ne<=Te;ne++){const F=P[ne]=le?tn(P[ne]):Jt(P[ne]);F.key!=null&&Z.set(F.key,ne)}let ce,ge=0;const ut=Te-Ve+1;let ar=!1,St=0;const vn=new Array(ut);for(ne=0;ne<ut;ne++)vn[ne]=0;for(ne=Oe;ne<=he;ne++){const F=A[ne];if(ge>=ut){de(F,re,ee,!0);continue}let L;if(F.key!=null)L=Z.get(F.key);else for(ce=Ve;ce<=Te;ce++)if(vn[ce-Ve]===0&&xr(F,P[ce])){L=ce;break}L===void 0?de(F,re,ee,!0):(vn[L-Ve]=ne+1,L>=St?St=L:ar=!0,w(F,P[L],J,null,re,ee,pe,fe,le),ge++)}const H=ar?Rm(vn):hs;for(ce=H.length-1,ne=ut-1;ne>=0;ne--){const F=Ve+ne,L=P[F],ue=P[F+1],se=F+1<Ee?ue.el||Ld(ue):ie;vn[ne]===0?w(null,L,J,se,re,ee,pe,fe,le):ar&&(ce<0||ne!==H[ce]?ae(L,J,se,2):ce--)}}},ae=(A,P,J,ie,re=null)=>{const{el:ee,type:pe,transition:fe,children:le,shapeFlag:ne}=A;if(ne&6){ae(A.component.subTree,P,J,ie);return}if(ne&128){A.suspense.move(P,J,ie);return}if(ne&64){pe.move(A,P,J,st);return}if(pe===Ke){n(ee,P,J);for(let Ee=0;Ee<le.length;Ee++)ae(le[Ee],P,J,ie);n(A.anchor,P,J);return}if(pe===Xn){y(A,P,J);return}if(ie!==2&&ne&1&&fe)if(ie===0)fe.beforeEnter(ee),n(ee,P,J),yt(()=>fe.enter(ee),re);else{const{leave:Ee,delayLeave:he,afterLeave:Te}=fe,Oe=()=>{A.ctx.isUnmounted?s(ee):n(ee,P,J)},Ve=()=>{ee._isLeaving&&ee[Or](!0),Ee(ee,()=>{Oe(),Te&&Te()})};he?he(ee,Oe,Ve):Ve()}else n(ee,P,J)},de=(A,P,J,ie=!1,re=!1)=>{const{type:ee,props:pe,ref:fe,children:le,dynamicChildren:ne,shapeFlag:Ee,patchFlag:he,dirs:Te,cacheIndex:Oe}=A;if(he===-2&&(re=!1),fe!=null&&(jr(),Es(fe,null,J,A,!0),Ur()),Oe!=null&&(P.renderCache[Oe]=void 0),Ee&256){P.ctx.deactivate(A);return}const Ve=Ee&1&&Te,Z=!Xr(A);let ce;if(Z&&(ce=pe&&pe.onVnodeBeforeUnmount)&&Yt(ce,P,A),Ee&6)Ie(A.component,J,ie);else{if(Ee&128){A.suspense.unmount(J,ie);return}Ve&&Dr(A,null,P,"beforeUnmount"),Ee&64?A.type.remove(A,P,J,st,ie):ne&&!ne.hasOnce&&(ee!==Ke||he>0&&he&64)?Pe(ne,P,J,!1,!0):(ee===Ke&&he&384||!re&&Ee&16)&&Pe(le,P,J),ie&&Re(A)}(Z&&(ce=pe&&pe.onVnodeUnmounted)||Ve)&&yt(()=>{ce&&Yt(ce,P,A),Ve&&Dr(A,null,P,"unmounted")},J)},Re=A=>{const{type:P,el:J,anchor:ie,transition:re}=A;if(P===Ke){je(J,ie);return}if(P===Xn){_(A);return}const ee=()=>{s(J),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(A.shapeFlag&1&&re&&!re.persisted){const{leave:pe,delayLeave:fe}=re,le=()=>pe(J,ee);fe?fe(A.el,ee,le):le()}else ee()},je=(A,P)=>{let J;for(;A!==P;)J=p(A),s(A),A=J;s(P)},Ie=(A,P,J)=>{const{bum:ie,scope:re,job:ee,subTree:pe,um:fe,m:le,a:ne}=A;_o(le),_o(ne),ie&&ws(ie),re.stop(),ee&&(ee.flags|=8,de(pe,A,P,J)),fe&&yt(fe,P),yt(()=>{A.isUnmounted=!0},P)},Pe=(A,P,J,ie=!1,re=!1,ee=0)=>{for(let pe=ee;pe<A.length;pe++)de(A[pe],P,J,ie,re)},nt=A=>{if(A.shapeFlag&6)return nt(A.component.subTree);if(A.shapeFlag&128)return A.suspense.next();const P=p(A.anchor||A.el),J=P&&P[Vu];return J?p(J):P};let _t=!1;const Be=(A,P,J)=>{let ie;A==null?P._vnode&&(de(P._vnode,null,null,!0),ie=P._vnode.component):w(P._vnode||null,A,P,null,null,null,J),P._vnode=A,_t||(_t=!0,Hu(ie),no(),_t=!1)},st={p:w,um:de,m:ae,r:Re,mt:O,mc:m,pc:G,pbc:q,n:nt,o:e};let ht,mt;return t&&([ht,mt]=t(st)),{render:Be,hydrate:ht,createApp:gm(Be,ht)}}function ul({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Zn({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function qd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function dl(e,t,r=!1){const n=e.children,s=t.children;if(_e(n)&&_e(s))for(let i=0;i<n.length;i++){const o=n[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=tn(s[i]),a.el=o.el),!r&&a.patchFlag!==-2&&dl(o,a)),a.type===_n&&(a.patchFlag===-1&&(a=s[i]=tn(a)),a.el=o.el),a.type===gt&&!a.el&&(a.el=o.el)}}function Rm(e){const t=e.slice(),r=[0];let n,s,i,o,a;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(s=r[r.length-1],e[s]<u){t[n]=s,r.push(n);continue}for(i=0,o=r.length-1;i<o;)a=i+o>>1,e[r[a]]<u?i=a+1:o=a;u<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,o=r[i-1];i-- >0;)r[i]=o,o=t[o];return r}function Bd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bd(t)}function _o(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ld(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ld(t.subTree):null}var So=e=>e.__isSuspense,fl=0,Im={name:"Suspense",__isSuspense:!0,process(e,t,r,n,s,i,o,a,l,u){if(e==null)$m(t,r,n,s,i,o,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Pm(e,t,r,n,s,o,a,l,u)}},hydrate:Dm,normalize:Om};function hi(e,t){const r=e.props&&e.props[t];$e(r)&&r()}function $m(e,t,r,n,s,i,o,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),p=e.suspense=Fd(e,s,n,t,d,r,i,o,a,l);u(null,p.pendingBranch=e.ssContent,d,null,n,p,i,o),p.deps>0?(hi(e,"onPending"),hi(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,i,o),Is(p,e.ssFallback)):p.resolve(!1,!0)}function Pm(e,t,r,n,s,i,o,a,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:g,pendingBranch:w,isInFallback:T,isHydrating:v}=d;if(w)d.pendingBranch=p,xr(w,p)?(l(w,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():T&&(v||(l(g,h,r,n,s,null,i,o,a),Is(d,h)))):(d.pendingId=fl++,v?(d.isHydrating=!1,d.activeBranch=w):u(w,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),T?(l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():(l(g,h,r,n,s,null,i,o,a),Is(d,h))):g&&xr(g,p)?(l(g,p,r,n,s,d,i,o,a),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0&&d.resolve()));else if(g&&xr(g,p))l(g,p,r,n,s,d,i,o,a),Is(d,p);else if(hi(t,"onPending"),d.pendingBranch=p,p.shapeFlag&512?d.pendingId=p.component.suspenseId:d.pendingId=fl++,l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0)d.resolve();else{const{timeout:S,pendingId:y}=d;S>0?setTimeout(()=>{d.pendingId===y&&d.fallback(h)},S):S===0&&d.fallback(h)}}function Fd(e,t,r,n,s,i,o,a,l,u,c=!1){const{p:d,m:p,um:h,n:g,o:{parentNode:w,remove:T}}=u;let v;const S=Hm(e);S&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const y=e.props?ji(e.props.timeout):void 0,_=i,E={vnode:e,parent:t,parentComponent:r,namespace:o,container:n,hiddenContainer:s,deps:0,pendingId:fl++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve($=!1,B=!1){const{vnode:m,activeBranch:N,pendingBranch:q,pendingId:C,effects:b,parentComponent:x,container:O,isInFallback:R}=E;let M=!1;E.isHydrating?E.isHydrating=!1:$||(M=N&&q.transition&&q.transition.mode==="out-in",M&&(N.transition.afterLeave=()=>{C===E.pendingId&&(p(q,O,i===_?g(N):i,0),ti(b),R&&m.ssFallback&&(m.ssFallback.el=null))}),N&&(w(N.el)===O&&(i=g(N)),h(N,x,E,!0),!M&&R&&m.ssFallback&&yt(()=>m.ssFallback.el=null,E)),M||p(q,O,i,0)),Is(E,q),E.pendingBranch=null,E.isInFallback=!1;let z=E.parent,G=!1;for(;z;){if(z.pendingBranch){z.effects.push(...b),G=!0;break}z=z.parent}!G&&!M&&ti(b),E.effects=[],S&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!B&&t.resolve()),hi(m,"onResolve")},fallback($){if(!E.pendingBranch)return;const{vnode:B,activeBranch:m,parentComponent:N,container:q,namespace:C}=E;hi(B,"onFallback");const b=g(m),x=()=>{E.isInFallback&&(d(null,$,q,b,N,null,C,a,l),Is(E,$))},O=$.transition&&$.transition.mode==="out-in";O&&(m.transition.afterLeave=x),E.isInFallback=!0,h(m,N,null,!0),O||x()},move($,B,m){E.activeBranch&&p(E.activeBranch,$,B,m),E.container=$},next(){return E.activeBranch&&g(E.activeBranch)},registerDep($,B,m){const N=!!E.pendingBranch;N&&E.deps++;const q=$.vnode.el;$.asyncDep.catch(C=>{Gn(C,$,0)}).then(C=>{if($.isUnmounted||E.isUnmounted||E.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:b}=$;vl($,C,!1),q&&(b.el=q);const x=!q&&$.subTree.el;B($,b,w(q||$.subTree.el),q?null:g($.subTree),E,o,m),x&&(b.placeholder=null,T(x)),bo($,b.el),N&&--E.deps===0&&E.resolve()})},unmount($,B){E.isUnmounted=!0,E.activeBranch&&h(E.activeBranch,r,$,B),E.pendingBranch&&h(E.pendingBranch,r,$,B)}};return E}function Dm(e,t,r,n,s,i,o,a,l){const u=t.suspense=Fd(t,n,r,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),c=l(e,u.pendingBranch=t.ssContent,r,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function Om(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=Vd(n?r.default:r),e.ssFallback=n?Vd(r.fallback):D(gt)}function Vd(e){let t;if($e(e)){const r=Qn&&e._c;r&&(e._d=!1,I()),e=e(),r&&(e._d=!0,t=qt,Ud())}return _e(e)&&(e=ym(e)),e=Jt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function jd(e,t){t&&t.pendingBranch?_e(e)?t.effects.push(...e):t.effects.push(e):ti(e)}function Is(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,n&&n.subTree===r&&(n.vnode.el=s,bo(n,s))}function Hm(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var Ke=Symbol.for("v-fgt"),_n=Symbol.for("v-txt"),gt=Symbol.for("v-cmt"),Xn=Symbol.for("v-stc"),gi=[],qt=null;function I(e=!1){gi.push(qt=e?null:[])}function Ud(){gi.pop(),qt=gi[gi.length-1]||null}var Qn=1;function vi(e,t=!1){Qn+=e,e<0&&qt&&t&&(qt.hasOnce=!0)}function zd(e){return e.dynamicChildren=Qn>0?qt||hs:null,Ud(),Qn>0&&qt&&qt.push(e),e}function Se(e,t,r,n,s,i){return zd(Q(e,t,r,n,s,i,!0))}function K(e,t,r,n,s){return zd(D(e,t,r,n,s,!0))}function en(e){return e?e.__v_isVNode===!0:!1}function xr(e,t){return e.type===t.type&&e.key===t.key}function Mm(e){}var Kd=({key:e})=>e??null,Co=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?it(e)||tt(e)||$e(e)?{i:It,r:e,k:t,f:!!r}:e:null);function Q(e,t=null,r=null,n=0,s=null,i=e===Ke?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kd(t),ref:t&&Co(t),scopeId:io,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:It};return a?(hl(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=it(r)?8:16),Qn>0&&!o&&qt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&qt.push(l),l}var D=Nm;function Nm(e,t=null,r=null,n=0,s=null,i=!1){if((!e||e===fd)&&(e=gt),en(e)){const a=Tr(e,t,!0);return r&&hl(a,r),Qn>0&&!i&&qt&&(a.shapeFlag&6?qt[qt.indexOf(e)]=a:qt.push(a)),a.patchFlag=-2,a}if(Um(e)&&(e=e.__vccOpts),t){t=Qt(t);let{class:a,style:l}=t;a&&!it(a)&&(t.class=Xe(a)),Ge(l)&&(Qs(l)&&!_e(l)&&(l=Ze({},l)),t.style=xt(l))}const o=it(e)?1:So(e)?128:ju(e)?64:Ge(e)?4:$e(e)?2:0;return Q(e,t,r,n,s,o,i,!0)}function Qt(e){return e?Qs(e)||kd(e)?Ze({},e):e:null}function Tr(e,t,r=!1,n=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?me(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Kd(u),ref:t&&t.ref?r&&i?_e(i)?i.concat(Co(t)):[i,Co(t)]:Co(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tr(e.ssContent),ssFallback:e.ssFallback&&Tr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Zr(c,l.clone(c)),c}function qe(e=" ",t=0){return D(_n,null,e,t)}function pl(e,t){const r=D(Xn,null,e);return r.staticCount=t,r}function Ne(e="",t=!1){return t?(I(),K(gt,null,e)):D(gt,null,e)}function Jt(e){return e==null||typeof e=="boolean"?D(gt):_e(e)?D(Ke,null,e.slice()):en(e)?tn(e):D(_n,null,String(e))}function tn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tr(e)}function hl(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(_e(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),hl(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!kd(t)?t._ctx=It:s===3&&It&&(It.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else $e(t)?(t={default:t,_ctx:It},r=32):(t=String(t),n&64?(r=16,t=[qe(t)]):r=8);e.children=t,e.shapeFlag|=r}function me(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=Xe([t.class,n.class]));else if(s==="style")t.style=xt([t.style,n.style]);else if(zs(s)){const i=t[s],o=n[s];o&&i!==o&&!(_e(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=n[s])}return t}function Yt(e,t,r,n=null){ur(e,t,7,[r,n])}var qm=_d(),Bm=0;function Wd(e,t,r){const n=e.type,s=(t?t.appContext:e.appContext)||qm,i={uid:Bm++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ea(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Id(n,s),emitsOptions:Cd(n,s),emit:null,emitted:null,propsDefaults:Ue,inheritAttrs:n.inheritAttrs,ctx:Ue,data:Ue,props:Ue,attrs:Ue,slots:Ue,refs:Ue,setupState:Ue,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=mm.bind(null,i),e.ce&&e.ce(i),i}var $t=null,vt=()=>$t||It,xo,gl;{const e=Ui(),t=(r,n)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(n),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};xo=t("__VUE_INSTANCE_SETTERS__",r=>$t=r),gl=t("__VUE_SSR_SETTERS__",r=>$s=r)}var es=e=>{const t=$t;return xo(e),e.scope.on(),()=>{e.scope.off(),xo(t)}},To=()=>{$t&&$t.scope.off(),xo(null)};function Gd(e){return e.vnode.shapeFlag&4}var $s=!1;function Jd(e,t=!1,r=!1){t&&gl(t);const{props:n,children:s}=e.vnode,i=Gd(e);Cm(e,n,i,t),Am(e,s,r||t);const o=i?Lm(e,t):void 0;return t&&gl(!1),o}function Lm(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nl);const{setup:n}=r;if(n){jr();const s=e.setupContext=n.length>1?Zd(e):null,i=es(e),o=_s(n,e,0,[e.props,s]),a=xa(o);if(Ur(),i(),(a||e.sp)&&!Xr(e)&&Ja(e),a){if(o.then(To,To),t)return o.then(l=>{vl(e,l,t)}).catch(l=>{Gn(l,e,0)});e.asyncDep=o}else vl(e,o,t)}else Yd(e,t)}function vl(e,t,r){$e(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ge(t)&&(e.setupState=Ba(t)),Yd(e,r)}var Eo,ml;function Fm(e){Eo=e,ml=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Yv))}}var Vm=()=>!Eo;function Yd(e,t,r){const n=e.type;if(!e.render){if(!t&&Eo&&!n.render){const s=n.template||il(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,u=Ze(Ze({isCustomElement:i,delimiters:a},o),l);n.render=Eo(s,u)}}e.render=n.render||lr,ml&&ml(e)}{const s=es(e);jr();try{cm(e)}finally{Ur(),s()}}}var jm={get(e,t){return Ht(e,"get",""),e[t]}};function Zd(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,jm),slots:e.slots,emit:e.emit,expose:t}}function mi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ba(qa(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in di)return di[r](e)},has(t,r){return r in t||r in di}})):e.proxy}function wl(e,t=!0){return $e(e)?e.displayName||e.name:e.name||t&&e.__name}function Um(e){return $e(e)&&"__vccOpts"in e}var j=(e,t)=>dv(e,t,$s);function pr(e,t,r){try{vi(-1);const n=arguments.length;return n===2?Ge(t)&&!_e(t)?en(t)?D(e,null,[t]):D(e,t):D(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&en(r)&&(r=[r]),D(e,t,r))}finally{vi(1)}}function zm(){return;function e(t,r,n){const s=t[n];if(_e(s)&&s.includes(r)||Ge(s)&&r in s||t.extends&&e(t.extends,r,n)||t.mixins&&t.mixins.some(i=>e(i,r,n)))return!0}}function Km(e,t,r,n){const s=r[n];if(s&&Xd(s,e))return s;const i=t();return i.memo=e.slice(),i.cacheIndex=n,r[n]=i}function Xd(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(Lt(r[n],t[n]))return!1;return Qn>0&&qt&&qt.push(e),!0}var Qd="3.5.29",Wm=lr,Gm=bv,Jm=xs,Ym=Nu,Zm={createComponentInstance:Wd,setupComponent:Jd,renderComponentRoot:yo,setCurrentRenderingInstance:ni,isVNode:en,normalizeVNode:Jt,getComponentPublicInstance:mi,ensureValidVNode:el,pushWarningContext:vv,popWarningContext:mv},Dx=null,Ox=null,Hx=null;var yl=void 0,ef=typeof window<"u"&&window.trustedTypes;if(ef)try{yl=ef.createPolicy("vue",{createHTML:e=>e})}catch{}var tf=yl?e=>yl.createHTML(e):e=>e,Xm="http://www.w3.org/2000/svg",Qm="http://www.w3.org/1998/Math/MathML",rn=typeof document<"u"?document:null,rf=rn&&rn.createElement("template"),nf={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const s=t==="svg"?rn.createElementNS(Xm,e):t==="mathml"?rn.createElementNS(Qm,e):r?rn.createElement(e,{is:r}):rn.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>rn.createTextNode(e),createComment:e=>rn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,i){const o=r?r.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===i||!(s=s.nextSibling)););else{rf.innerHTML=tf(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=rf.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Sn="transition",wi="animation",Ps=Symbol("_vtc"),sf={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},of=Ze({},Wa,sf),e0=e=>(e.displayName="Transition",e.props=of,e),t0=e0((e,{slots:t})=>pr(Yu,lf(e),t)),ts=(e,t=[])=>{_e(e)?e.forEach(r=>r(...t)):e&&e(...t)},af=e=>e?_e(e)?e.some(t=>t.length>1):e.length>1:!1;function lf(e){const t={};for(const b in e)b in sf||(t[b]=e[b]);if(e.css===!1)return t;const{name:r="v",type:n,duration:s,enterFromClass:i=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:p=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,g=r0(s),w=g&&g[0],T=g&&g[1],{onBeforeEnter:v,onEnter:S,onEnterCancelled:y,onLeave:_,onLeaveCancelled:E,onBeforeAppear:$=v,onAppear:B=S,onAppearCancelled:m=y}=t,N=(b,x,O,R)=>{b._enterCancelled=R,Cn(b,x?c:a),Cn(b,x?u:o),O&&O()},q=(b,x)=>{b._isLeaving=!1,Cn(b,d),Cn(b,h),Cn(b,p),x&&x()},C=b=>(x,O)=>{const R=b?B:S,M=()=>N(x,b,O);ts(R,[x,M]),cf(()=>{Cn(x,b?l:i),Hr(x,b?c:a),af(R)||uf(x,n,w,M)})};return Ze(t,{onBeforeEnter(b){ts(v,[b]),Hr(b,i),Hr(b,o)},onBeforeAppear(b){ts($,[b]),Hr(b,l),Hr(b,u)},onEnter:C(!1),onAppear:C(!0),onLeave(b,x){b._isLeaving=!0;const O=()=>q(b,x);Hr(b,d),b._enterCancelled?(Hr(b,p),_l(b)):(_l(b),Hr(b,p)),cf(()=>{b._isLeaving&&(Cn(b,d),Hr(b,h),af(_)||uf(b,n,T,O))}),ts(_,[b,O])},onEnterCancelled(b){N(b,!1,void 0,!0),ts(y,[b])},onAppearCancelled(b){N(b,!0,void 0,!0),ts(m,[b])},onLeaveCancelled(b){q(b),ts(E,[b])}})}function r0(e){if(e==null)return null;if(Ge(e))return[bl(e.enter),bl(e.leave)];{const t=bl(e);return[t,t]}}function bl(e){return ji(e)}function Hr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Ps]||(e[Ps]=new Set)).add(t)}function Cn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Ps];r&&(r.delete(t),r.size||(e[Ps]=void 0))}function cf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var n0=0;function uf(e,t,r,n){const s=e._endId=++n0,i=()=>{s===e._endId&&n()};if(r!=null)return setTimeout(i,r);const{type:o,timeout:a,propCount:l}=df(e,t);if(!o)return n();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,p),i()},p=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,p)}function df(e,t){const r=window.getComputedStyle(e),n=g=>(r[g]||"").split(", "),s=n(`${Sn}Delay`),i=n(`${Sn}Duration`),o=ff(s,i),a=n(`${wi}Delay`),l=n(`${wi}Duration`),u=ff(a,l);let c=null,d=0,p=0;t===Sn?o>0&&(c=Sn,d=o,p=i.length):t===wi?u>0&&(c=wi,d=u,p=l.length):(d=Math.max(o,u),c=d>0?o>u?Sn:wi:null,p=c?c===Sn?i.length:l.length:0);const h=c===Sn&&/\b(?:transform|all)(?:,|$)/.test(n(`${Sn}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:h}}function ff(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>pf(r)+pf(e[n])))}function pf(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function _l(e){return(e?e.ownerDocument:document).body.offsetHeight}function s0(e,t,r){const n=e[Ps];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}var Ao=Symbol("_vod"),hf=Symbol("_vsh"),ko={name:"show",beforeMount(e,{value:t},{transition:r}){e[Ao]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):yi(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),yi(e,!0),n.enter(e)):n.leave(e,()=>{yi(e,!1)}):yi(e,t))},beforeUnmount(e,{value:t}){yi(e,t)}};function yi(e,t){e.style.display=t?e[Ao]:"none",e[hf]=!t}function i0(){ko.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}var gf=Symbol("");function o0(e){const t=vt();if(!t)return;const r=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Ro(i,s))},n=()=>{const s=e(t.proxy);t.ce?Ro(t.ce,s):Sl(t.subTree,s),r(s)};Za(()=>{ti(n)}),Qe(()=>{De(n,lr,{flush:"post"});const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),jt(()=>s.disconnect())})}function Sl(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Sl(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ro(e.el,t);else if(e.type===Ke)e.children.forEach(r=>Sl(r,t));else if(e.type===Xn){let{el:r,anchor:n}=e;for(;r&&(Ro(r,t),r!==n);)r=r.nextSibling}}function Ro(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const s in t){const i=Ng(t[s]);r.setProperty(`--${s}`,i),n+=`--${s}: ${i};`}r[gf]=n}}var a0=/(?:^|;)\s*display\s*:/;function l0(e,t,r){const n=e.style,s=it(r);let i=!1;if(r&&!s){if(t)if(it(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();r[a]==null&&Io(n,a,"")}else for(const o in t)r[o]==null&&Io(n,o,"");for(const o in r)o==="display"&&(i=!0),Io(n,o,r[o])}else if(s){if(t!==r){const o=n[gf];o&&(r+=";"+o),n.cssText=r,i=a0.test(r)}}else t&&e.removeAttribute("style");Ao in e&&(e[Ao]=i?n.display:"",e[hf]&&(n.display="none"))}var vf=/\s*!important$/;function Io(e,t,r){if(_e(r))r.forEach(n=>Io(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=c0(e,t);vf.test(r)?e.setProperty(Wt(n),r.replace(vf,""),"important"):e[n]=r}}var mf=["Webkit","Moz","ms"],Cl={};function c0(e,t){const r=Cl[t];if(r)return r;let n=Ct(t);if(n!=="filter"&&n in e)return Cl[t]=n;n=Ks(n);for(let s=0;s<mf.length;s++){const i=mf[s]+n;if(i in e)return Cl[t]=i}return t}var wf="http://www.w3.org/1999/xlink";function yf(e,t,r,n,s,i=Hg(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(wf,t.slice(6,t.length)):e.setAttributeNS(wf,t,r):r==null||i&&!au(r)?e.removeAttribute(t):e.setAttribute(t,i?"":_r(r)?String(r):r)}function bf(e,t,r,n,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?tf(r):r);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(a!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const a=typeof e[t];a==="boolean"?r=au(r):r==null&&a==="string"?(r="",o=!0):a==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(s||t)}function nn(e,t,r,n){e.addEventListener(t,r,n)}function u0(e,t,r,n){e.removeEventListener(t,r,n)}var _f=Symbol("_vei");function d0(e,t,r,n,s=null){const i=e[_f]||(e[_f]={}),o=i[t];if(n&&o)o.value=n;else{const[a,l]=f0(t);n?nn(e,a,i[t]=g0(n,s),l):o&&(u0(e,a,o,l),i[t]=void 0)}}var Sf=/(?:Once|Passive|Capture)$/;function f0(e){let t;if(Sf.test(e)){t={};let r;for(;r=e.match(Sf);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Wt(e.slice(2)),t]}var xl=0,p0=Promise.resolve(),h0=()=>xl||(p0.then(()=>xl=0),xl=Date.now());function g0(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;ur(v0(n,r.value),t,5,[n])};return r.value=e,r.attached=h0(),r}function v0(e,t){if(_e(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}var Cf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xf=(e,t,r,n,s,i)=>{const o=s==="svg";t==="class"?s0(e,n,o):t==="style"?l0(e,r,n):zs(t)?Sa(t)||d0(e,t,r,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):m0(e,t,n,o))?(bf(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yf(e,t,n,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!it(n))?bf(e,Ct(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),yf(e,t,n,o))};function m0(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Cf(t)&&$e(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Cf(t)&&it(r)?!1:t in e}var Tf={};function Tl(e,t,r){let n=X(e,t);Bi(n)&&(n=Ze({},n,t));class s extends Ef{constructor(o){super(n,o,r)}}return s.def=n,s}var w0=((e,t)=>Tl(e,t,zf)),y0=typeof HTMLElement<"u"?HTMLElement:class{},Ef=class wg extends y0{constructor(t,r={},n=Rl){super(),this._def=t,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==Rl?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Ze({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof wg){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,At(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const r of t)this._setAttr(r.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=n;let a;if(i&&!_e(i))for(const l in i){const u=i[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=ji(this._props[l])),(a||(a=Object.create(null)))[Ct(l)]=!0)}this._numberProps=a,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)Ye(this,n)||Object.defineProperty(this,n,{get:()=>f(r[n])})}_resolveProps(t){const{props:r}=t,n=_e(r)?r:Object.keys(r||{});for(const s of Object.keys(this))s[0]!=="_"&&n.includes(s)&&this._setProp(s,this[s]);for(const s of n.map(Ct))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(i){this._setProp(s,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let n=r?this.getAttribute(t):Tf;const s=Ct(t);r&&this._numberProps&&this._numberProps[s]&&(n=ji(n)),this._setProp(s,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,s=!1){if(r!==this._props[t]&&(this._dirty=!0,r===Tf?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),s&&this._instance&&this._update(),n)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),r===!0?this.setAttribute(Wt(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Wt(t),r+""):r||this.removeAttribute(Wt(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Uf(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=D(this._def,Ze(t,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const s=(i,o)=>{this.dispatchEvent(new CustomEvent(i,Bi(o[0])?Ze({detail:o},o[0]):{detail:o}))};n.emit=(i,...o)=>{s(i,o),Wt(i)!==i&&s(Wt(i),o)},this._setParent()}),r}_applyStyles(t,r){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const n=this._nonce;for(let s=t.length-1;s>=0;s--){const i=document.createElement("style");n&&i.setAttribute("nonce",n),i.textContent=t[s],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=this._getSlots(),r=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const s=t[n],i=s.getAttribute("name")||"default",o=this._slots[i],a=s.parentNode;if(o)for(const l of o){if(r&&l.nodeType===1){const u=r+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let d;for(;d=c.nextNode();)d.setAttribute(u,"")}a.insertBefore(l,s)}else for(;s.firstChild;)a.insertBefore(s.firstChild,s);a.removeChild(s)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const r=new Set;for(const n of t){const s=n.querySelectorAll("slot");for(let i=0;i<s.length;i++)r.add(s[i])}return Array.from(r)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}};function Af(e){const t=vt(),r=t&&t.ce;return r||null}function b0(){const e=Af();return e&&e.shadowRoot}function _0(e="$style"){{const t=vt();if(!t)return Ue;const r=t.type.__cssModules;if(!r)return Ue;const n=r[e];return n||Ue}}var kf=new WeakMap,Rf=new WeakMap,$o=Symbol("_moveCb"),If=Symbol("_enterCb"),S0=e=>(delete e.props.mode,e),C0=S0({name:"TransitionGroup",props:Ze({},of,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=vt(),n=Ka();let s,i;return ci(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!A0(s[0].el,r.vnode.el,o)){s=[];return}s.forEach(x0),s.forEach(T0);const a=s.filter(E0);_l(r.vnode.el),a.forEach(l=>{const u=l.el,c=u.style;Hr(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[$o]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[$o]=null,Cn(u,o))};u.addEventListener("transitionend",d)}),s=[]}),()=>{const o=ze(e),a=lf(o);let l=o.tag||Ke;if(s=[],i)for(let u=0;u<i.length;u++){const c=i[u];c.el&&c.el instanceof Element&&(s.push(c),Zr(c,Ts(c,a,n,r)),kf.set(c,$f(c.el)))}i=t.default?co(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Zr(c,Ts(c,a,n,r))}return D(l,null,i)}}});function x0(e){const t=e.el;t[$o]&&t[$o](),t[If]&&t[If]()}function T0(e){Rf.set(e,$f(e.el))}function E0(e){const t=kf.get(e),r=Rf.get(e),n=t.left-r.left,s=t.top-r.top;if(n||s){const i=e.el,o=i.style,a=i.getBoundingClientRect();let l=1,u=1;return i.offsetWidth&&(l=a.width/i.offsetWidth),i.offsetHeight&&(u=a.height/i.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(l-1)<.01&&(l=1),Math.abs(u-1)<.01&&(u=1),o.transform=o.webkitTransform=`translate(${n/l}px,${s/u}px)`,o.transitionDuration="0s",e}}function $f(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function A0(e,t,r){const n=e.cloneNode(),s=e[Ps];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:o}=df(n);return i.removeChild(n),o}var xn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return _e(t)?r=>ws(t,r):t};function k0(e){e.target.composing=!0}function Pf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var hr=Symbol("_assign");function Df(e,t,r){return t&&(e=e.trim()),r&&(e=Vi(e)),e}var bi={created(e,{modifiers:{lazy:t,trim:r,number:n}},s){e[hr]=xn(s);const i=n||s.props&&s.props.type==="number";nn(e,t?"change":"input",o=>{o.target.composing||e[hr](Df(e.value,r,i))}),(r||i)&&nn(e,"change",()=>{e.value=Df(e.value,r,i)}),t||(nn(e,"compositionstart",k0),nn(e,"compositionend",Pf),nn(e,"change",Pf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:s,number:i}},o){if(e[hr]=xn(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Vi(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||s&&e.value.trim()===l)||(e.value=l))}},El={deep:!0,created(e,t,r){e[hr]=xn(r),nn(e,"change",()=>{const n=e._modelValue,s=Ds(e),i=e.checked,o=e[hr];if(_e(n)){const a=zi(n,s),l=a!==-1;if(i&&!l)o(n.concat(s));else if(!i&&l){const u=[...n];u.splice(a,1),o(u)}}else if(zn(n)){const a=new Set(n);i?a.add(s):a.delete(s),o(a)}else o(Nf(e,i))})},mounted:Of,beforeUpdate(e,t,r){e[hr]=xn(r),Of(e,t,r)}};function Of(e,{value:t,oldValue:r},n){e._modelValue=t;let s;if(_e(t))s=zi(t,n.props.value)>-1;else if(zn(t))s=t.has(n.props.value);else{if(t===r)return;s=Vr(t,Nf(e,!0))}e.checked!==s&&(e.checked=s)}var Al={created(e,{value:t},r){e.checked=Vr(t,r.props.value),e[hr]=xn(r),nn(e,"change",()=>{e[hr](Ds(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[hr]=xn(n),t!==r&&(e.checked=Vr(t,n.props.value))}},Hf={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const s=zn(t);nn(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?Vi(Ds(o)):Ds(o));e[hr](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,At(()=>{e._assigning=!1})}),e[hr]=xn(n)},mounted(e,{value:t}){Mf(e,t)},beforeUpdate(e,t,r){e[hr]=xn(r)},updated(e,{value:t}){e._assigning||Mf(e,t)}};function Mf(e,t){const r=e.multiple,n=_e(t);if(!(r&&!n&&!zn(t))){for(let s=0,i=e.options.length;s<i;s++){const o=e.options[s],a=Ds(o);if(r)if(n){const l=typeof a;l==="string"||l==="number"?o.selected=t.some(u=>String(u)===String(a)):o.selected=zi(t,a)>-1}else o.selected=t.has(a);else if(Vr(Ds(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ds(e){return"_value"in e?e._value:e.value}function Nf(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}var qf={created(e,t,r){Po(e,t,r,null,"created")},mounted(e,t,r){Po(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){Po(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){Po(e,t,r,n,"updated")}};function Bf(e,t){switch(e){case"SELECT":return Hf;case"TEXTAREA":return bi;default:switch(t){case"checkbox":return El;case"radio":return Al;default:return bi}}}function Po(e,t,r,n,s){const i=Bf(e.tagName,r.props&&r.props.type)[s];i&&i(e,t,r,n)}function R0(){bi.getSSRProps=({value:e})=>({value:e}),Al.getSSRProps=({value:e},t)=>{if(t.props&&Vr(t.props.value,e))return{checked:!0}},El.getSSRProps=({value:e},t)=>{if(_e(e)){if(t.props&&zi(e,t.props.value)>-1)return{checked:!0}}else if(zn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},qf.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=Bf(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}var I0=["ctrl","shift","alt","meta"],$0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>I0.some(r=>e[`${r}Key`]&&!t.includes(r))},gr=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=((s,...i)=>{for(let o=0;o<t.length;o++){const a=$0[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},P0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},kl=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=(s=>{if(!("key"in s))return;const i=Wt(s.key);if(t.some(o=>o===i||P0[o]===i))return e(s)}))},Lf=Ze({patchProp:xf},nf),_i,Ff=!1;function Vf(){return _i||(_i=Hd(Lf))}function jf(){return _i=Ff?_i:Md(Lf),Ff=!0,_i}var Uf=((...e)=>{Vf().render(...e)}),D0=((...e)=>{jf().hydrate(...e)}),Rl=((...e)=>{const t=Vf().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=Wf(n);if(!s)return;const i=t._component;!$e(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=r(s,!1,Kf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t}),zf=((...e)=>{const t=jf().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=Wf(n);if(s)return r(s,!0,Kf(s))},t});function Kf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Wf(e){return it(e)?document.querySelector(e):e}var Gf=!1,O0=()=>{Gf||(Gf=!0,R0(),i0())},H0=xg({BaseTransition:()=>Yu,BaseTransitionPropsValidators:()=>Wa,Comment:()=>gt,DeprecationTypes:()=>null,EffectScope:()=>Ea,ErrorCodes:()=>yv,ErrorTypeStrings:()=>Gm,Fragment:()=>Ke,KeepAlive:()=>Uv,ReactiveEffect:()=>Ws,Static:()=>Xn,Suspense:()=>Im,Teleport:()=>Ua,Text:()=>_n,TrackOpTypes:()=>fv,Transition:()=>t0,TransitionGroup:()=>C0,TriggerOpTypes:()=>pv,VueElement:()=>Ef,assertNumber:()=>wv,callWithAsyncErrorHandling:()=>ur,callWithErrorHandling:()=>_s,camelize:()=>Ct,capitalize:()=>Ks,cloneVNode:()=>Tr,compatUtils:()=>null,compile:()=>M0,computed:()=>j,createApp:()=>Rl,createBlock:()=>K,createCommentVNode:()=>Ne,createElementBlock:()=>Se,createElementVNode:()=>Q,createHydrationRenderer:()=>Md,createPropsRestProxy:()=>am,createRenderer:()=>Hd,createSSRApp:()=>zf,createSlots:()=>Jv,createStaticVNode:()=>pl,createTextVNode:()=>qe,createVNode:()=>D,customRef:()=>ei,defineAsyncComponent:()=>jv,defineComponent:()=>X,defineCustomElement:()=>Tl,defineEmits:()=>Xv,defineExpose:()=>Qv,defineModel:()=>rm,defineOptions:()=>em,defineProps:()=>Zv,defineSSRCustomElement:()=>w0,defineSlots:()=>tm,devtools:()=>Jm,effect:()=>Bg,effectScope:()=>Aa,getCurrentInstance:()=>vt,getCurrentScope:()=>Ki,getCurrentWatcher:()=>hv,getTransitionRawChildren:()=>co,guardReactiveProps:()=>Qt,h:()=>pr,handleError:()=>Gn,hasInjectionContext:()=>Ev,hydrate:()=>D0,hydrateOnIdle:()=>Nv,hydrateOnInteraction:()=>Fv,hydrateOnMediaQuery:()=>Lv,hydrateOnVisible:()=>Bv,initCustomFormatter:()=>zm,initDirectivesForSSR:()=>O0,inject:()=>Vt,isMemoSame:()=>Xd,isProxy:()=>Qs,isReactive:()=>Jr,isReadonly:()=>$r,isRef:()=>tt,isRuntimeOnly:()=>Vm,isShallow:()=>Gt,isVNode:()=>en,markRaw:()=>qa,mergeDefaults:()=>vd,mergeModels:()=>om,mergeProps:()=>me,nextTick:()=>At,nodeOps:()=>nf,normalizeClass:()=>Xe,normalizeProps:()=>cr,normalizeStyle:()=>xt,onActivated:()=>sd,onBeforeMount:()=>ad,onBeforeUnmount:()=>Rs,onBeforeUpdate:()=>Za,onDeactivated:()=>id,onErrorCaptured:()=>dd,onMounted:()=>Qe,onRenderTracked:()=>ud,onRenderTriggered:()=>cd,onScopeDispose:()=>ka,onServerPrefetch:()=>ld,onUnmounted:()=>jt,onUpdated:()=>ci,onWatcherCleanup:()=>$u,openBlock:()=>I,patchProp:()=>xf,popScopeId:()=>xv,provide:()=>Jn,proxyRefs:()=>Ba,pushScopeId:()=>Cv,queuePostFlushCb:()=>ti,reactive:()=>Wr,readonly:()=>Mt,ref:()=>V,registerRuntimeCompiler:()=>Fm,render:()=>Uf,renderList:()=>fr,renderSlot:()=>te,resolveComponent:()=>Wv,resolveDirective:()=>Gv,resolveDynamicComponent:()=>ui,resolveFilter:()=>null,resolveTransitionHooks:()=>Ts,setBlockTracking:()=>vi,setDevtoolsHook:()=>Ym,setTransitionHooks:()=>Zr,shallowReactive:()=>Au,shallowReadonly:()=>Gr,shallowRef:()=>ft,ssrContextKey:()=>qu,ssrUtils:()=>Zm,stop:()=>Lg,toDisplayString:()=>Fe,toHandlerKey:()=>ms,toHandlers:()=>hd,toRaw:()=>ze,toRef:()=>La,toRefs:()=>Nt,toValue:()=>Ae,transformVNodeArgs:()=>Mm,triggerRef:()=>Ru,unref:()=>f,useAttrs:()=>im,useCssModule:()=>_0,useCssVars:()=>o0,useHost:()=>Af,useId:()=>Qu,useModel:()=>vm,useSSRContext:()=>Bu,useShadowRoot:()=>b0,useSlots:()=>sm,useTemplateRef:()=>Iv,useTransitionState:()=>Ka,vModelCheckbox:()=>El,vModelDynamic:()=>qf,vModelRadio:()=>Al,vModelSelect:()=>Hf,vModelText:()=>bi,vShow:()=>ko,version:()=>Qd,warn:()=>Wm,watch:()=>De,watchEffect:()=>at,watchPostEffect:()=>Va,watchSyncEffect:()=>Lu,withAsyncContext:()=>lm,withCtx:()=>k,withDefaults:()=>nm,withDirectives:()=>oo,withKeys:()=>kl,withMemo:()=>Km,withModifiers:()=>gr,withScopeId:()=>Tv},1),M0=()=>{},N0=2;const Er={CALL_HISTORY:"call_history",CONTACTS:"contacts",CONNECTIONS:"connections"},q0=(e="webphone_db")=>{const t=V(null),r=V(!1);return{initDB:()=>new Promise((l,u)=>{if(t.value){l();return}const c=indexedDB.open(e,N0);c.onerror=d=>{console.error("IndexedDB error:",d),u(d)},c.onsuccess=d=>{t.value=d.target.result,r.value=!0,l()},c.onupgradeneeded=d=>{const p=d.target.result;p.objectStoreNames.contains(Er.CALL_HISTORY)||p.createObjectStore(Er.CALL_HISTORY,{keyPath:"id"}),p.objectStoreNames.contains(Er.CONTACTS)||p.createObjectStore(Er.CONTACTS,{keyPath:"number"}),p.objectStoreNames.contains(Er.CONNECTIONS)||p.createObjectStore(Er.CONNECTIONS,{keyPath:"id"})}}),getAll:l=>new Promise((u,c)=>{if(!t.value)return c("DB not initialized");const d=t.value.transaction([l],"readonly").objectStore(l).getAll();d.onsuccess=()=>u(d.result),d.onerror=()=>c(d.error)}),add:(l,u)=>new Promise((c,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).add(u);p.onsuccess=()=>c(),p.onerror=()=>d(p.error)}),put:(l,u)=>new Promise((c,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).put(u);p.onsuccess=()=>c(),p.onerror=()=>d(p.error)}),remove:(l,u)=>new Promise((c,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).delete(u);p.onsuccess=()=>c(),p.onerror=()=>d(p.error)}),isReady:r}},B0=e=>{const t=V(e?.initialConnected??!1),r=V(0),n=V(null),s=V([]),i=V([]),{initDB:o,getAll:a,add:l}=q0(e?.server&&e?.extension?`webphone_${e.server}_${e.extension}`.replace(/[^a-z0-9_]/gi,"_"):"webphone_db");o().then(async()=>{try{s.value=(await a(Er.CALL_HISTORY)).sort((Y,ae)=>ae.startTime-Y.startTime),i.value=await a(Er.CONTACTS)}catch(Y){console.error("Error loading data from IndexedDB:",Y)}});const u=V([{id:0,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1},{id:1,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1},{id:2,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1}]),c=V(e?.initialKeypadVisible??!0),d=V(""),p=V(!1),h=j(()=>u.value.find(Y=>Y.id===r.value)||u.value[0]),g=j(()=>h.value?.status||"idle"),w=j(()=>h.value?.remoteNumber||""),T=j(()=>h.value?.isMuted||!1),v=j(()=>h.value?.isHeld||!1),S=j({get:()=>h.value?.keypadValue||"",set:Y=>{h.value&&(h.value.keypadValue=Y)}}),y=Y=>{t.value=Y},_=Y=>{u.value.some(ae=>ae.id===Y)&&(r.value=Y)},E=(Y,ae)=>{const de=u.value.find(Re=>Re.id===Y);de&&Object.assign(de,ae)};return{isConnected:t,activeChannelId:r,channels:u,activeChannel:h,callStatus:g,remoteNumber:w,isMuted:T,isHeld:v,keypadValue:S,isKeypadVisible:c,lastDialedNumber:d,videoModeEnabled:p,transferInProgress:n,setConnected:y,setActiveChannelId:_,updateChannelState:E,setCallStatus:Y=>{E(r.value,{status:Y})},setIncomingCall:Y=>{E(r.value,{remoteNumber:Y})},resetCall:()=>{E(r.value,{status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1})},addCallLog:async Y=>{const ae={id:crypto.randomUUID(),...Y};s.value.unshift(ae);try{await l(Er.CALL_HISTORY,ae)}catch(de){console.error("Error saving call log:",de)}},callHistory:s,contacts:i,addContact:async Y=>{try{await l(Er.CONTACTS,Y),i.value=await a(Er.CONTACTS)}catch(ae){console.error("Error saving contact:",ae)}},setMuted:Y=>{E(r.value,{isMuted:Y})},setHeld:Y=>{E(r.value,{isHeld:Y})},appendKeypad:Y=>{S.value+=Y},clearKeypad:()=>{S.value=""},backspaceKeypad:()=>{S.value=S.value.slice(0,-1)},toggleKeypad:()=>{c.value=!c.value},setLastDialedNumber:Y=>{d.value=Y},setTransferInProgress:Y=>{n.value=Y},toggleVideoMode:()=>{p.value=!p.value}}},L0="0.21.1";var rs=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}},Il=class extends rs{constructor(e){super(e||"Unsupported content type.")}},$l=class extends rs{constructor(e){super(e||"Request pending.")}},F0=class extends rs{constructor(e){super(e||"Unspecified session description handler error.")}},Pl=class extends rs{constructor(){super("The session has terminated.")}},Si=class extends rs{constructor(e){super(e||"An error occurred during state transition.")}},V0=class{constructor(e){this.incomingAckRequest=e}get request(){return this.incomingAckRequest.message}},j0=class{constructor(e){this.incomingByeRequest=e}get request(){return this.incomingByeRequest.message}accept(e){return this.incomingByeRequest.accept(e),Promise.resolve()}reject(e){return this.incomingByeRequest.reject(e),Promise.resolve()}},U0=class{constructor(e){this.incomingCancelRequest=e}get request(){return this.incomingCancelRequest}},Ci=class{constructor(){this.listeners=new Array}addListener(e,t){const r=n=>{this.removeListener(r),e(n)};t?.once===!0?this.listeners.push(r):this.listeners.push(e)}emit(e){this.listeners.slice().forEach(t=>t(e))}removeAllListeners(){this.listeners=[]}removeListener(e){this.listeners=this.listeners.filter(t=>t!==e)}on(e){return this.addListener(e)}off(e){return this.removeListener(e)}once(e){return this.addListener(e,{once:!0})}},z0=class{constructor(e){this.incomingInfoRequest=e}get request(){return this.incomingInfoRequest.message}accept(e){return this.incomingInfoRequest.accept(e),Promise.resolve()}reject(e){return this.incomingInfoRequest.reject(e),Promise.resolve()}},Jf=class{constructor(e){this.parameters={};for(const t in e)e.hasOwnProperty(t)&&this.setParam(t,e[t])}setParam(e,t){e&&(this.parameters[e.toLowerCase()]=typeof t>"u"||t===null?null:t.toString())}getParam(e){if(e)return this.parameters[e.toLowerCase()]}hasParam(e){return!!(e&&this.parameters[e.toLowerCase()]!==void 0)}deleteParam(e){if(e=e.toLowerCase(),this.hasParam(e)){const t=this.parameters[e];return delete this.parameters[e],t}}clearParams(){this.parameters={}}},vr=class yg extends Jf{constructor(t,r,n){super(n),this.uri=t,this._displayName=r}get friendlyName(){return this.displayName||this.uri.aor}get displayName(){return this._displayName}set displayName(t){this._displayName=t}clone(){return new yg(this.uri.clone(),this._displayName,JSON.parse(JSON.stringify(this.parameters)))}toString(){let t=this.displayName||this.displayName==="0"?'"'+this.displayName+'" ':"";t+="<"+this.uri.toString()+">";for(const r in this.parameters)this.parameters.hasOwnProperty(r)&&(t+=";"+r,this.parameters[r]!==null&&(t+="="+this.parameters[r]));return t}},Tn=class bg extends Jf{constructor(t="sip",r,n,s,i,o){if(super(i||{}),this.headers={},!n)throw new TypeError('missing or invalid "host" parameter');for(const a in o)o.hasOwnProperty(a)&&this.setHeader(a,o[a]);this.raw={scheme:t,user:r,host:n,port:s},this.normal={scheme:t.toLowerCase(),user:r,host:n.toLowerCase(),port:s}}get scheme(){return this.normal.scheme}set scheme(t){this.raw.scheme=t,this.normal.scheme=t.toLowerCase()}get user(){return this.normal.user}set user(t){this.normal.user=this.raw.user=t}get host(){return this.normal.host}set host(t){this.raw.host=t,this.normal.host=t.toLowerCase()}get aor(){return this.normal.user+"@"+this.normal.host}get port(){return this.normal.port}set port(t){this.normal.port=this.raw.port=t}setHeader(t,r){this.headers[this.headerize(t)]=r instanceof Array?r:[r]}getHeader(t){if(t)return this.headers[this.headerize(t)]}hasHeader(t){return!!t&&!!this.headers.hasOwnProperty(this.headerize(t))}deleteHeader(t){if(t=this.headerize(t),this.headers.hasOwnProperty(t)){const r=this.headers[t];return delete this.headers[t],r}}clearHeaders(){this.headers={}}clone(){return new bg(this._raw.scheme,this._raw.user||"",this._raw.host,this._raw.port,JSON.parse(JSON.stringify(this.parameters)),JSON.parse(JSON.stringify(this.headers)))}toRaw(){return this._toString(this._raw)}toString(){return this._toString(this._normal)}get _normal(){return this.normal}get _raw(){return this.raw}_toString(t){let r=t.scheme+":";t.scheme.toLowerCase().match("^sips?$")||(r+="//"),t.user&&(r+=this.escapeUser(t.user)+"@"),r+=t.host,(t.port||t.port===0)&&(r+=":"+t.port);for(const s in this.parameters)this.parameters.hasOwnProperty(s)&&(r+=";"+s,this.parameters[s]!==null&&(r+="="+this.parameters[s]));const n=[];for(const s in this.headers)if(this.headers.hasOwnProperty(s))for(const i in this.headers[s])this.headers[s].hasOwnProperty(i)&&n.push(s+"="+this.headers[s][i]);return n.length>0&&(r+="?"+n.join("&")),r}escapeUser(t){let r;try{r=decodeURIComponent(t)}catch(n){throw n}return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}headerize(t){const r={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},n=t.toLowerCase().replace(/_/g,"-").split("-"),s=n.length;let i="";for(let o=0;o<s;o++)o!==0&&(i+="-"),i+=n[o].charAt(0).toUpperCase()+n[o].substring(1);return r[i]&&(i=r[i]),i}};function Yf(e,t){if(e.scheme!==t.scheme||e.user!==t.user||e.host!==t.host||e.port!==t.port)return!1;function r(i,o){const a=Object.keys(i.parameters),l=Object.keys(o.parameters);return!(!a.filter(u=>l.includes(u)).every(u=>i.parameters[u]===o.parameters[u])||!["user","ttl","method","transport"].every(u=>i.hasParam(u)&&o.hasParam(u)||!i.hasParam(u)&&!o.hasParam(u))||!["maddr"].every(u=>i.hasParam(u)&&o.hasParam(u)||!i.hasParam(u)&&!o.hasParam(u)))}if(!r(e,t))return!1;const n=Object.keys(e.headers),s=Object.keys(t.headers);if(n.length!==0||s.length!==0){if(n.length!==s.length)return!1;const i=n.filter(o=>s.includes(o));if(i.length!==s.length||!i.every(o=>e.headers[o].length&&t.headers[o].length&&e.headers[o][0]===t.headers[o][0]))return!1}return!0}function Dl(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,r+=r.repeat(t),e+r.slice(0,t))}var Zf=class ya extends Error{constructor(t,r,n,s){super(),this.message=t,this.expected=r,this.found=n,this.location=s,this.name="SyntaxError",typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(this,ya.prototype):this.__proto__=ya.prototype,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ya)}static buildMessage(t,r){function n(u){return u.charCodeAt(0).toString(16).toUpperCase()}function s(u){return u.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,c=>"\\x0"+n(c)).replace(/[\x10-\x1F\x7F-\x9F]/g,c=>"\\x"+n(c))}function i(u){return u.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,c=>"\\x0"+n(c)).replace(/[\x10-\x1F\x7F-\x9F]/g,c=>"\\x"+n(c))}function o(u){switch(u.type){case"literal":return'"'+s(u.text)+'"';case"class":const c=u.parts.map(d=>Array.isArray(d)?i(d[0])+"-"+i(d[1]):i(d));return"["+(u.inverted?"^":"")+c+"]";case"any":return"any character";case"end":return"end of input";case"other":return u.description}}function a(u){const c=u.map(o);let d,p;if(c.sort(),c.length>0){for(d=1,p=1;d<c.length;d++)c[d-1]!==c[d]&&(c[p]=c[d],p++);c.length=p}switch(c.length){case 1:return c[0];case 2:return c[0]+" or "+c[1];default:return c.slice(0,-1).join(", ")+", or "+c[c.length-1]}}function l(u){return u?'"'+s(u)+'"':"end of input"}return"Expected "+a(t)+" but "+l(r)+" found."}format(t){let r="Error: "+this.message;if(this.location){let n=null,s;for(s=0;s<t.length;s++)if(t[s].source===this.location.source){n=t[s].text.split(/\r\n|\n|\r/g);break}let i=this.location.start,o=this.location.source+":"+i.line+":"+i.column;if(n){let a=this.location.end,l=Dl("",i.line.toString().length," "),u=n[i.line-1],c=i.line===a.line?a.column:u.length+1;r+=`
|
|
3
|
+
(function(){var nu=Object.defineProperty,Eg=(e,t)=>{let r={};for(var n in e)nu(r,n,{get:e[n],enumerable:!0});return t&&nu(r,Symbol.toStringTag,{value:"Module"}),r};function Js(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}var Ue={},gs=[],ur=()=>{},su=()=>!1,Ys=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ta=e=>e.startsWith("onUpdate:"),Ze=Object.assign,Ea=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Ag=Object.prototype.hasOwnProperty,Ye=(e,t)=>Ag.call(e,t),_e=Array.isArray,vs=e=>ms(e)==="[object Map]",Kn=e=>ms(e)==="[object Set]",iu=e=>ms(e)==="[object Date]",kg=e=>ms(e)==="[object RegExp]",De=e=>typeof e=="function",it=e=>typeof e=="string",Sr=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",Aa=e=>(Ge(e)||De(e))&&De(e.then)&&De(e.catch),ou=Object.prototype.toString,ms=e=>ou.call(e),Rg=e=>ms(e).slice(8,-1),zi=e=>ms(e)==="[object Object]",Ki=e=>it(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wn=Js(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wi=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},Ig=/-\w/g,Ct=Wi(e=>e.replace(Ig,t=>t.slice(1).toUpperCase())),$g=/\B([A-Z])/g,Wt=Wi(e=>e.replace($g,"-$1").toLowerCase()),Zs=Wi(e=>e.charAt(0).toUpperCase()+e.slice(1)),ws=Wi(e=>e?`on${Zs(e)}`:""),Lt=(e,t)=>!Object.is(e,t),ys=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},au=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Gi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ji=e=>{const t=it(e)?Number(e):NaN;return isNaN(t)?e:t},lu,Yi=()=>lu||(lu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Pg=Js("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function xt(e){if(_e(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],s=it(n)?Mg(n):xt(n);if(s)for(const i in s)t[i]=s[i]}return t}else if(it(e)||Ge(e))return e}var Dg=/;(?![^(]*\))/g,Og=/:([^]+)/,Hg=/\/\*[^]*?\*\//g;function Mg(e){const t={};return e.replace(Hg,"").split(Dg).forEach(r=>{if(r){const n=r.split(Og);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Xe(e){let t="";if(it(e))t=e;else if(_e(e))for(let r=0;r<e.length;r++){const n=Xe(e[r]);n&&(t+=n+" ")}else if(Ge(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function dr(e){if(!e)return null;let{class:t,style:r}=e;return t&&!it(t)&&(e.class=Xe(t)),r&&(e.style=xt(r)),e}var cu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ng=Js(cu),Vx=Js(cu+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function uu(e){return!!e||e===""}function qg(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Ur(e[n],t[n]);return r}function Ur(e,t){if(e===t)return!0;let r=iu(e),n=iu(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=Sr(e),n=Sr(t),r||n)return e===t;if(r=_e(e),n=_e(t),r||n)return r&&n?qg(e,t):!1;if(r=Ge(e),n=Ge(t),r||n){if(!r||!n||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e){const i=e.hasOwnProperty(s),o=t.hasOwnProperty(s);if(i&&!o||!i&&o||!Ur(e[s],t[s]))return!1}}return String(e)===String(t)}function Zi(e,t){return e.findIndex(r=>Ur(r,t))}var du=e=>!!(e&&e.__v_isRef===!0),Le=e=>it(e)?e:e==null?"":_e(e)||Ge(e)&&(e.toString===ou||!De(e.toString))?du(e)?Le(e.value):JSON.stringify(e,fu,2):String(e),fu=(e,t)=>du(t)?fu(e,t.value):vs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],i)=>(r[ka(n,i)+" =>"]=s,r),{})}:Kn(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>ka(r))}:Sr(t)?ka(t):Ge(t)&&!_e(t)&&!zi(t)?String(t):t,ka=(e,t="")=>{var r;return Sr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};function Bg(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:(typeof e!="number"||Number.isFinite(e),String(e))}var Ot,Ra=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ot,!e&&Ot&&(this.index=(Ot.scopes||(Ot.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=Ot;try{return Ot=this,e()}finally{Ot=t}}}on(){++this._on===1&&(this.prevScope=Ot,Ot=this)}off(){this._on>0&&--this._on===0&&(Ot=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,r;for(t=0,r=this.effects.length;t<r;t++)this.effects[t].stop();for(this.effects.length=0,t=0,r=this.cleanups.length;t<r;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}};function Ia(e){return new Ra(e)}function Xi(){return Ot}function $a(e,t=!1){Ot&&Ot.cleanups.push(e)}var ot,Pa=new WeakSet,Xs=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ot&&Ot.active&&Ot.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pa.has(this)&&(Pa.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||hu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,yu(this),gu(this);const e=ot,t=Cr;ot=this,Cr=!0;try{return this.fn()}finally{vu(this),ot=e,Cr=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ma(e);this.deps=this.depsTail=void 0,yu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pa.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ha(this)&&this.run()}get dirty(){return Ha(this)}},pu=0,Qs,ei;function hu(e,t=!1){if(e.flags|=8,t){e.next=ei,ei=e;return}e.next=Qs,Qs=e}function Da(){pu++}function Oa(){if(--pu>0)return;if(ei){let t=ei;for(ei=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Qs;){let t=Qs;for(Qs=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function gu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vu(e){let t,r=e.depsTail,n=r;for(;n;){const s=n.prevDep;n.version===-1?(n===r&&(r=s),Ma(n),Lg(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=r}function Ha(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(mu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function mu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ti)||(e.globalVersion=ti,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ha(e))))return;e.flags|=2;const t=e.dep,r=ot,n=Cr;ot=e,Cr=!0;try{gu(e);const s=e.fn(e._value);(t.version===0||Lt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ot=r,Cr=n,vu(e),e.flags&=-3}}function Ma(e,t=!1){const{dep:r,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)Ma(i,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function Lg(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function Fg(e,t){e.effect instanceof Xs&&(e=e.effect.fn);const r=new Xs(e);t&&Ze(r,t);try{r.run()}catch(s){throw r.stop(),s}const n=r.run.bind(r);return n.effect=r,n}function Vg(e){e.effect.stop()}var Cr=!0,wu=[];function zr(){wu.push(Cr),Cr=!1}function Kr(){const e=wu.pop();Cr=e===void 0?!0:e}function yu(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=ot;ot=void 0;try{t()}finally{ot=r}}}var ti=0,jg=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Qi=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ot||!Cr||ot===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==ot)t=this.activeLink=new jg(ot,this),ot.deps?(t.prevDep=ot.depsTail,ot.depsTail.nextDep=t,ot.depsTail=t):ot.deps=ot.depsTail=t,bu(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const r=t.nextDep;r.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=r),t.prevDep=ot.depsTail,t.nextDep=void 0,ot.depsTail.nextDep=t,ot.depsTail=t,ot.deps===t&&(ot.deps=r)}return t}trigger(e){this.version++,ti++,this.notify(e)}notify(e){Da();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{Oa()}}};function bu(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)bu(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}var eo=new WeakMap,Gn=Symbol(""),Na=Symbol(""),ri=Symbol("");function Ht(e,t,r){if(Cr&&ot){let n=eo.get(e);n||eo.set(e,n=new Map);let s=n.get(r);s||(n.set(r,s=new Qi),s.map=n,s.key=r),s.track()}}function Wr(e,t,r,n,s,i){const o=eo.get(e);if(!o){ti++;return}const a=l=>{l&&l.trigger()};if(Da(),t==="clear")o.forEach(a);else{const l=_e(e),u=l&&Ki(r);if(l&&r==="length"){const c=Number(n);o.forEach((d,p)=>{(p==="length"||p===ri||!Sr(p)&&p>=c)&&a(d)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),u&&a(o.get(ri)),t){case"add":l?u&&a(o.get("length")):(a(o.get(Gn)),vs(e)&&a(o.get(Na)));break;case"delete":l||(a(o.get(Gn)),vs(e)&&a(o.get(Na)));break;case"set":vs(e)&&a(o.get(Gn));break}}Oa()}function Ug(e,t){const r=eo.get(e);return r&&r.get(t)}function bs(e){const t=ze(e);return t===e?t:(Ht(t,"iterate",ri),Gt(e)?t:t.map(xr))}function to(e){return Ht(e=ze(e),"iterate",ri),e}function bn(e,t){return Pr(e)?_s(Zr(e)?xr(t):t):xr(t)}var zg={__proto__:null,[Symbol.iterator](){return qa(this,Symbol.iterator,e=>bn(this,e))},concat(...e){return bs(this).concat(...e.map(t=>_e(t)?bs(t):t))},entries(){return qa(this,"entries",e=>(e[1]=bn(this,e[1]),e))},every(e,t){return Gr(this,"every",e,t,void 0,arguments)},filter(e,t){return Gr(this,"filter",e,t,r=>r.map(n=>bn(this,n)),arguments)},find(e,t){return Gr(this,"find",e,t,r=>bn(this,r),arguments)},findIndex(e,t){return Gr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Gr(this,"findLast",e,t,r=>bn(this,r),arguments)},findLastIndex(e,t){return Gr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Gr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ba(this,"includes",e)},indexOf(...e){return Ba(this,"indexOf",e)},join(e){return bs(this).join(e)},lastIndexOf(...e){return Ba(this,"lastIndexOf",e)},map(e,t){return Gr(this,"map",e,t,void 0,arguments)},pop(){return ni(this,"pop")},push(...e){return ni(this,"push",e)},reduce(e,...t){return _u(this,"reduce",e,t)},reduceRight(e,...t){return _u(this,"reduceRight",e,t)},shift(){return ni(this,"shift")},some(e,t){return Gr(this,"some",e,t,void 0,arguments)},splice(...e){return ni(this,"splice",e)},toReversed(){return bs(this).toReversed()},toSorted(e){return bs(this).toSorted(e)},toSpliced(...e){return bs(this).toSpliced(...e)},unshift(...e){return ni(this,"unshift",e)},values(){return qa(this,"values",e=>bn(this,e))}};function qa(e,t,r){const n=to(e),s=n[t]();return n!==e&&!Gt(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=r(i.value)),i}),s}var Kg=Array.prototype;function Gr(e,t,r,n,s,i){const o=to(e),a=o!==e&&!Gt(e),l=o[t];if(l!==Kg[t]){const d=l.apply(e,i);return a?xr(d):d}let u=r;o!==e&&(a?u=function(d,p){return r.call(this,bn(e,d),p,e)}:r.length>2&&(u=function(d,p){return r.call(this,d,p,e)}));const c=l.call(o,u,n);return a&&s?s(c):c}function _u(e,t,r,n){const s=to(e);let i=r;return s!==e&&(Gt(e)?r.length>3&&(i=function(o,a,l){return r.call(this,o,a,l,e)}):i=function(o,a,l){return r.call(this,o,bn(e,a),l,e)}),s[t](i,...n)}function Ba(e,t,r){const n=ze(e);Ht(n,"iterate",ri);const s=n[t](...r);return(s===-1||s===!1)&&si(r[0])?(r[0]=ze(r[0]),n[t](...r)):s}function ni(e,t,r=[]){zr(),Da();const n=ze(e)[t].apply(e,r);return Oa(),Kr(),n}var Wg=Js("__proto__,__v_isRef,__isVue"),Su=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Sr));function Gg(e){Sr(e)||(e=String(e));const t=ze(this);return Ht(t,"has",e),t.hasOwnProperty(e)}var Cu=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if(t==="__v_skip")return e.__v_skip;const n=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!n;if(t==="__v_isReadonly")return n;if(t==="__v_isShallow")return s;if(t==="__v_raw")return r===(n?s?Ru:ku:s?Au:Eu).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const i=_e(e);if(!n){let a;if(i&&(a=zg[t]))return a;if(t==="hasOwnProperty")return Gg}const o=Reflect.get(e,t,tt(e)?e:r);if((Sr(t)?Su.has(t):Wg(t))||(n||Ht(e,"get",t),s))return o;if(tt(o)){const a=i&&Ki(t)?o:o.value;return n&&Ge(a)?Mt(a):a}return Ge(o)?n?Mt(o):Jr(o):o}},xu=class extends Cu{constructor(e=!1){super(!1,e)}set(e,t,r,n){let s=e[t];const i=_e(e)&&Ki(t);if(!this._isShallow){const l=Pr(s);if(!Gt(r)&&!Pr(r)&&(s=ze(s),r=ze(r)),!i&&tt(s)&&!tt(r))return l||(s.value=r),!0}const o=i?Number(t)<e.length:Ye(e,t),a=Reflect.set(e,t,r,tt(e)?e:n);return e===ze(n)&&(o?Lt(r,s)&&Wr(e,"set",t,r,s):Wr(e,"add",t,r)),a}deleteProperty(e,t){const r=Ye(e,t),n=e[t],s=Reflect.deleteProperty(e,t);return s&&r&&Wr(e,"delete",t,void 0,n),s}has(e,t){const r=Reflect.has(e,t);return(!Sr(t)||!Su.has(t))&&Ht(e,"has",t),r}ownKeys(e){return Ht(e,"iterate",_e(e)?"length":Gn),Reflect.ownKeys(e)}},Tu=class extends Cu{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Jg=new xu,Yg=new Tu,Zg=new xu(!0),Xg=new Tu(!0),La=e=>e,ro=e=>Reflect.getPrototypeOf(e);function Qg(e,t,r){return function(...n){const s=this.__v_raw,i=ze(s),o=vs(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...n),c=r?La:t?_s:xr;return!t&&Ht(i,"iterate",l?Na:Gn),Ze(Object.create(u),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:a?[c(d[0]),c(d[1])]:c(d),done:p}}})}}function no(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ev(e,t){const r={get(n){const s=this.__v_raw,i=ze(s),o=ze(n);e||(Lt(n,o)&&Ht(i,"get",n),Ht(i,"get",o));const{has:a}=ro(i),l=t?La:e?_s:xr;if(a.call(i,n))return l(s.get(n));if(a.call(i,o))return l(s.get(o));s!==i&&s.get(n)},get size(){const n=this.__v_raw;return!e&&Ht(ze(n),"iterate",Gn),n.size},has(n){const s=this.__v_raw,i=ze(s),o=ze(n);return e||(Lt(n,o)&&Ht(i,"has",n),Ht(i,"has",o)),n===o?s.has(n):s.has(n)||s.has(o)},forEach(n,s){const i=this,o=i.__v_raw,a=ze(o),l=t?La:e?_s:xr;return!e&&Ht(a,"iterate",Gn),o.forEach((u,c)=>n.call(s,l(u),l(c),i))}};return Ze(r,e?{add:no("add"),set:no("set"),delete:no("delete"),clear:no("clear")}:{add(n){!t&&!Gt(n)&&!Pr(n)&&(n=ze(n));const s=ze(this);return ro(s).has.call(s,n)||(s.add(n),Wr(s,"add",n,n)),this},set(n,s){!t&&!Gt(s)&&!Pr(s)&&(s=ze(s));const i=ze(this),{has:o,get:a}=ro(i);let l=o.call(i,n);l||(n=ze(n),l=o.call(i,n));const u=a.call(i,n);return i.set(n,s),l?Lt(s,u)&&Wr(i,"set",n,s,u):Wr(i,"add",n,s),this},delete(n){const s=ze(this),{has:i,get:o}=ro(s);let a=i.call(s,n);a||(n=ze(n),a=i.call(s,n));const l=o?o.call(s,n):void 0,u=s.delete(n);return a&&Wr(s,"delete",n,void 0,l),u},clear(){const n=ze(this),s=n.size!==0,i=void 0,o=n.clear();return s&&Wr(n,"clear",void 0,void 0,i),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=Qg(n,e,t)}),r}function so(e,t){const r=ev(e,t);return(n,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(Ye(r,s)&&s in n?r:n,s,i)}var tv={get:so(!1,!1)},rv={get:so(!1,!0)},nv={get:so(!0,!1)},sv={get:so(!0,!0)},Eu=new WeakMap,Au=new WeakMap,ku=new WeakMap,Ru=new WeakMap;function iv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ov(e){return e.__v_skip||!Object.isExtensible(e)?0:iv(Rg(e))}function Jr(e){return Pr(e)?e:io(e,!1,Jg,tv,Eu)}function Iu(e){return io(e,!1,Zg,rv,Au)}function Mt(e){return io(e,!0,Yg,nv,ku)}function Yr(e){return io(e,!0,Xg,sv,Ru)}function io(e,t,r,n,s){if(!Ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=ov(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?n:r);return s.set(e,a),a}function Zr(e){return Pr(e)?Zr(e.__v_raw):!!(e&&e.__v_isReactive)}function Pr(e){return!!(e&&e.__v_isReadonly)}function Gt(e){return!!(e&&e.__v_isShallow)}function si(e){return e?!!e.__v_raw:!1}function ze(e){const t=e&&e.__v_raw;return t?ze(t):e}function Fa(e){return!Ye(e,"__v_skip")&&Object.isExtensible(e)&&au(e,"__v_skip",!0),e}var xr=e=>Ge(e)?Jr(e):e,_s=e=>Ge(e)?Mt(e):e;function tt(e){return e?e.__v_isRef===!0:!1}function V(e){return $u(e,!1)}function ft(e){return $u(e,!0)}function $u(e,t){return tt(e)?e:new av(e,t)}var av=class{constructor(e,t){this.dep=new Qi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:ze(e),this._value=t?e:xr(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,r=this.__v_isShallow||Gt(e)||Pr(e);e=r?e:ze(e),Lt(e,t)&&(this._rawValue=e,this._value=r?e:xr(e),this.dep.trigger())}};function Pu(e){e.dep&&e.dep.trigger()}function f(e){return tt(e)?e.value:e}function ke(e){return De(e)?e():f(e)}var lv={get:(e,t,r)=>t==="__v_raw"?e:f(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return tt(s)&&!tt(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function Va(e){return Zr(e)?e:new Proxy(e,lv)}var cv=class{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new Qi,{get:r,set:n}=e(t.track.bind(t),t.trigger.bind(t));this._get=r,this._set=n}get value(){return this._value=this._get()}set value(e){this._set(e)}};function ii(e){return new cv(e)}function Nt(e){const t=_e(e)?new Array(e.length):{};for(const r in e)t[r]=Du(e,r);return t}var uv=class{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=ze(e);let n=!0,s=e;if(!_e(e)||!Ki(String(t)))do n=!si(s)||Gt(s);while(n&&(s=s.__v_raw));this._shallow=n}get value(){let e=this._object[this._key];return this._shallow&&(e=f(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&tt(this._raw[this._key])){const t=this._object[this._key];if(tt(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return Ug(this._raw,this._key)}},dv=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function ja(e,t,r){return tt(e)?e:De(e)?new dv(e):Ge(e)&&arguments.length>1?Du(e,t,r):V(e)}function Du(e,t,r){return new uv(e,t,r)}var fv=class{constructor(e,t,r){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Qi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ti-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return hu(this,!0),!0}get value(){const e=this.dep.track();return mu(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function pv(e,t,r=!1){let n,s;return De(e)?n=e:(n=e.get,s=e.set),new fv(n,s,r)}var hv={GET:"get",HAS:"has",ITERATE:"iterate"},gv={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},oo={},ao=new WeakMap,_n=void 0;function vv(){return _n}function Ou(e,t=!1,r=_n){if(r){let n=ao.get(r);n||ao.set(r,n=[]),n.push(e)}}function mv(e,t,r=Ue){const{immediate:n,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=r,u=_=>s?_:Gt(_)||s===!1||s===0?Xr(_,1):Xr(_);let c,d,p,h,m=!1,y=!1;if(tt(e)?(d=()=>e.value,m=Gt(e)):Zr(e)?(d=()=>u(e),m=!0):_e(e)?(y=!0,m=e.some(_=>Zr(_)||Gt(_)),d=()=>e.map(_=>{if(tt(_))return _.value;if(Zr(_))return u(_);if(De(_))return l?l(_,2):_()})):De(e)?t?d=l?()=>l(e,2):e:d=()=>{if(p){zr();try{p()}finally{Kr()}}const _=_n;_n=c;try{return l?l(e,3,[h]):e(h)}finally{_n=_}}:d=ur,t&&s){const _=d,E=s===!0?1/0:s;d=()=>Xr(_(),E)}const T=Xi(),g=()=>{c.stop(),T&&T.active&&Ea(T.effects,c)};if(i&&t){const _=t;t=(...E)=>{_(...E),g()}}let b=y?new Array(e.length).fill(oo):oo;const w=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const E=c.run();if(s||m||(y?E.some((P,B)=>Lt(P,b[B])):Lt(E,b))){p&&p();const P=_n;_n=c;try{const B=[E,b===oo?void 0:y&&b[0]===oo?[]:b,h];b=E,l?l(t,3,B):t(...B)}finally{_n=P}}}else c.run()};return a&&a(w),c=new Xs(d),c.scheduler=o?()=>o(w,!1):w,h=_=>Ou(_,!1,c),p=c.onStop=()=>{const _=ao.get(c);if(_){if(l)l(_,4);else for(const E of _)E();ao.delete(c)}},t?n?w(!0):b=c.run():o?o(w.bind(null,!0),!0):c.run(),g.pause=c.pause.bind(c),g.resume=c.resume.bind(c),g.stop=g,g}function Xr(e,t=1/0,r){if(t<=0||!Ge(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,tt(e))Xr(e.value,t,r);else if(_e(e))for(let n=0;n<e.length;n++)Xr(e[n],t,r);else if(Kn(e)||vs(e))e.forEach(n=>{Xr(n,t,r)});else if(zi(e)){for(const n in e)Xr(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Xr(e[n],t,r)}return e}var Hu=[];function wv(e){Hu.push(e)}function yv(){Hu.pop()}function bv(e,t){}var _v={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},Sv={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Ss(e,t,r,n){try{return n?e(...n):e()}catch(s){Jn(s,t,r)}}function fr(e,t,r,n){if(De(e)){const s=Ss(e,t,r,n);return s&&Aa(s)&&s.catch(i=>{Jn(i,t,r)}),s}if(_e(e)){const s=[];for(let i=0;i<e.length;i++)s.push(fr(e[i],t,r,n));return s}}function Jn(e,t,r,n=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Ue;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}a=a.parent}if(i){zr(),Ss(i,null,10,[e,l,u]),Kr();return}}Cv(e,r,s,n,o)}function Cv(e,t,r,n=!0,s=!1){if(s)throw e;console.error(e)}var Ft=[],Dr=-1,Cs=[],Sn=null,xs=0,Mu=Promise.resolve(),lo=null;function At(e){const t=lo||Mu;return e?t.then(this?e.bind(this):e):t}function xv(e){let t=Dr+1,r=Ft.length;for(;t<r;){const n=t+r>>>1,s=Ft[n],i=ai(s);i<e||i===e&&s.flags&2?t=n+1:r=n}return t}function Ua(e){if(!(e.flags&1)){const t=ai(e),r=Ft[Ft.length-1];!r||!(e.flags&2)&&t>=ai(r)?Ft.push(e):Ft.splice(xv(t),0,e),e.flags|=1,Nu()}}function Nu(){lo||(lo=Mu.then(Bu))}function oi(e){_e(e)?Cs.push(...e):Sn&&e.id===-1?Sn.splice(xs+1,0,e):e.flags&1||(Cs.push(e),e.flags|=1),Nu()}function qu(e,t,r=Dr+1){for(;r<Ft.length;r++){const n=Ft[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Ft.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function co(e){if(Cs.length){const t=[...new Set(Cs)].sort((r,n)=>ai(r)-ai(n));if(Cs.length=0,Sn){Sn.push(...t);return}for(Sn=t,xs=0;xs<Sn.length;xs++){const r=Sn[xs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Sn=null,xs=0}}var ai=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Bu(e){try{for(Dr=0;Dr<Ft.length;Dr++){const t=Ft[Dr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ss(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Dr<Ft.length;Dr++){const t=Ft[Dr];t&&(t.flags&=-2)}Dr=-1,Ft.length=0,co(e),lo=null,(Ft.length||Cs.length)&&Bu(e)}}var Ts,uo=[];function Lu(e,t){var r,n;Ts=e,Ts?(Ts.enabled=!0,uo.forEach(({event:s,args:i})=>Ts.emit(s,...i)),uo=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{Lu(s,t)}),setTimeout(()=>{Ts||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,uo=[])},3e3)):uo=[]}var It=null,fo=null;function li(e){const t=It;return It=e,fo=e&&e.type.__scopeId||null,t}function Tv(e){fo=e}function Ev(){fo=null}var Av=e=>k;function k(e,t=It,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&_i(-1);const i=li(t);let o;try{o=e(...s)}finally{li(i),n._d&&_i(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function po(e,t){if(It===null)return e;const r=Si(It),n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=Ue]=t[s];i&&(De(i)&&(i={mounted:i,updated:i}),i.deep&&Xr(o),n.push({dir:i,instance:r,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Or(e,t,r,n){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[n];l&&(zr(),fr(l,r,8,[e.el,a,e,t]),Kr())}}function Yn(e,t){if($t){let r=$t.provides;const n=$t.parent&&$t.parent.provides;n===r&&(r=$t.provides=Object.create(n)),r[e]=t}}function Vt(e,t,r=!1){const n=vt();if(n||Zn){let s=Zn?Zn._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&De(t)?t.call(n&&n.proxy):t}}function kv(){return!!(vt()||Zn)}var Fu=Symbol.for("v-scx"),Vu=()=>{{const e=Vt(Fu);return e}};function lt(e,t){return ci(e,null,t)}function za(e,t){return ci(e,null,{flush:"post"})}function ju(e,t){return ci(e,null,{flush:"sync"})}function He(e,t,r){return ci(e,t,r)}function ci(e,t,r=Ue){const{immediate:n,deep:s,flush:i,once:o}=r,a=Ze({},r),l=t&&n||!t&&i!=="post";let u;if(Ps){if(i==="sync"){const h=Vu();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=ur,h.resume=ur,h.pause=ur,h}}const c=$t;a.call=(h,m,y)=>fr(h,c,m,y);let d=!1;i==="post"?a.scheduler=h=>{bt(h,c&&c.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(h,m)=>{m?h():Ua(h)}),a.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const p=mv(e,t,a);return Ps&&(u?u.push(p):l&&p()),p}function Rv(e,t,r){const n=this.proxy,s=it(e)?e.includes(".")?Uu(n,e):()=>n[e]:e.bind(n,n);let i;De(t)?i=t:(i=t.handler,r=t);const o=ts(this),a=ci(s,i.bind(n),r);return o(),a}function Uu(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s<r.length&&n;s++)n=n[r[s]];return n}}var zu=Symbol("_vte"),Ku=e=>e.__isTeleport,ui=e=>e&&(e.disabled||e.disabled===""),Wu=e=>e&&(e.defer||e.defer===""),Gu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ju=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ka=(e,t)=>{const r=e&&e.to;return it(r)?t?t(r):null:r},Yu={name:"Teleport",__isTeleport:!0,process(e,t,r,n,s,i,o,a,l,u){const{mc:c,pc:d,pbc:p,o:{insert:h,querySelector:m,createText:y,createComment:T}}=u,g=ui(t.props);let{shapeFlag:b,children:w,dynamicChildren:_}=t;if(e==null){const E=t.el=y(""),P=t.anchor=y("");h(E,r,n),h(P,r,n);const B=(N,q)=>{b&16&&c(w,N,q,s,i,o,a,l)},v=()=>{const N=t.target=Ka(t.props,m),q=Ga(N,t,y,h);N&&(o!=="svg"&&Gu(N)?o="svg":o!=="mathml"&&Ju(N)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(N),g||(B(N,q),go(t,!1)))};g&&(B(r,P),go(t,!0)),Wu(t.props)?(t.el.__isMounted=!1,bt(()=>{v(),delete t.el.__isMounted},i)):v()}else{if(Wu(t.props)&&e.el.__isMounted===!1){bt(()=>{Yu.process(e,t,r,n,s,i,o,a,l,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,P=t.target=e.target,B=t.targetAnchor=e.targetAnchor,v=ui(e.props),N=v?r:P,q=v?E:B;if(o==="svg"||Gu(P)?o="svg":(o==="mathml"||Ju(P))&&(o="mathml"),_?(p(e.dynamicChildren,_,N,s,i,o,a),hl(e,t,!0)):l||d(e,t,N,q,s,i,o,a,!1),g)v?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ho(t,r,E,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const C=t.target=Ka(t.props,m);C&&ho(t,C,null,u,0)}else v&&ho(t,P,B,u,1);go(t,g)}},remove(e,t,r,{um:n,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:p}=e;if(d&&(s(u),s(c)),i&&s(l),o&16){const h=i||!ui(p);for(let m=0;m<a.length;m++){const y=a[m];n(y,t,r,h,!!y.dynamicChildren)}}},move:ho,hydrate:Iv};function ho(e,t,r,{o:{insert:n},m:s},i=2){i===0&&n(e.targetAnchor,t,r);const{el:o,anchor:a,shapeFlag:l,children:u,props:c}=e,d=i===2;if(d&&n(o,t,r),(!d||ui(c))&&l&16)for(let p=0;p<u.length;p++)s(u[p],t,r,2);d&&n(a,t,r)}function Iv(e,t,r,n,s,i,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:u,createText:c}},d){function p(T,g){let b=g;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")t.targetStart=b;else if(b.data==="teleport anchor"){t.targetAnchor=b,T._lpa=t.targetAnchor&&o(t.targetAnchor);break}}b=o(b)}}function h(T,g){g.anchor=d(o(T),g,a(T),r,n,s,i)}const m=t.target=Ka(t.props,l),y=ui(t.props);if(m){const T=m._lpa||m.firstChild;t.shapeFlag&16&&(y?(h(e,t),p(m,T),t.targetAnchor||Ga(m,t,c,u,a(e)===m?e:null)):(t.anchor=o(e),p(m,T),t.targetAnchor||Ga(m,t,c,u),d(T&&o(T),t,m,r,n,s,i))),go(t,y)}else y&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Wa=Yu;function go(e,t){const r=e.ctx;if(r&&r.ut){let n,s;for(t?(n=e.el,s=e.anchor):(n=e.targetStart,s=e.targetAnchor);n&&n!==s;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function Ga(e,t,r,n,s=null){const i=t.targetStart=r(""),o=t.targetAnchor=r("");return i[zu]=o,e&&(n(i,e,s),n(o,e,s)),o}var Hr=Symbol("_leaveCb"),di=Symbol("_enterCb");function Ja(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),Is(()=>{e.isUnmounting=!0}),e}var pr=[Function,Array],Ya={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pr,onEnter:pr,onAfterEnter:pr,onEnterCancelled:pr,onBeforeLeave:pr,onLeave:pr,onAfterLeave:pr,onLeaveCancelled:pr,onBeforeAppear:pr,onAppear:pr,onAfterAppear:pr,onAppearCancelled:pr},Zu=e=>{const t=e.subTree;return t.component?Zu(t.component):t},$v={name:"BaseTransition",props:Ya,setup(e,{slots:t}){const r=vt(),n=Ja();return()=>{const s=t.default&&vo(t.default(),!0);if(!s||!s.length)return;const i=Xu(s),o=ze(e),{mode:a}=o;if(n.isLeaving)return Za(i);const l=td(i);if(!l)return Za(i);let u=Es(l,o,n,r,d=>u=d);l.type!==gt&&Qr(l,u);let c=r.subTree&&td(r.subTree);if(c&&c.type!==gt&&!Tr(c,l)&&Zu(r).type!==gt){let d=Es(c,o,n,r);if(Qr(c,d),a==="out-in"&&l.type!==gt)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete d.afterLeave,c=void 0},Za(i);a==="in-out"&&l.type!==gt?d.delayLeave=(p,h,m)=>{const y=ed(n,c);y[String(c.key)]=c,p[Hr]=()=>{h(),p[Hr]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{m(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function Xu(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==gt){t=r;break}}return t}var Qu=$v;function ed(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Es(e,t,r,n,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:y,onBeforeAppear:T,onAppear:g,onAfterAppear:b,onAppearCancelled:w}=t,_=String(e.key),E=ed(r,e),P=(N,q)=>{N&&fr(N,n,9,q)},B=(N,q)=>{const C=q[1];P(N,q),_e(N)?N.every(S=>S.length<=1)&&C():N.length<=1&&C()},v={mode:o,persisted:a,beforeEnter(N){let q=l;if(!r.isMounted)if(i)q=T||l;else return;N[Hr]&&N[Hr](!0);const C=E[_];C&&Tr(e,C)&&C.el[Hr]&&C.el[Hr](),P(q,[N])},enter(N){if(E[_]===e)return;let q=u,C=c,S=d;if(!r.isMounted)if(i)q=g||u,C=b||c,S=w||d;else return;let x=!1;N[di]=R=>{x||(x=!0,R?P(S,[N]):P(C,[N]),v.delayedLeave&&v.delayedLeave(),N[di]=void 0)};const O=N[di].bind(null,!1);q?B(q,[N,O]):O()},leave(N,q){const C=String(e.key);if(N[di]&&N[di](!0),r.isUnmounting)return q();P(p,[N]);let S=!1;N[Hr]=O=>{S||(S=!0,q(),O?P(y,[N]):P(m,[N]),N[Hr]=void 0,E[C]===e&&delete E[C])};const x=N[Hr].bind(null,!1);E[C]=e,h?B(h,[N,x]):x()},clone(N){const q=Es(N,t,r,n,s);return s&&s(q),q}};return v}function Za(e){if(fi(e))return e=Er(e),e.children=null,e}function td(e){if(!fi(e))return Ku(e.type)&&e.children?Xu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&De(r.default))return r.default()}}function Qr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vo(e,t=!1,r){let n=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=r==null?o.key:String(r)+String(o.key!=null?o.key:i);o.type===Ke?(o.patchFlag&128&&s++,n=n.concat(vo(o.children,t,a))):(t||o.type!==gt)&&n.push(a!=null?Er(o,{key:a}):o)}if(s>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function X(e,t){return De(e)?Ze({name:e.name},t,{setup:e}):e}function rd(){const e=vt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Xa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Pv(e){const t=vt(),r=ft(null);if(t){const n=t.refs===Ue?t.refs={}:t.refs;Object.defineProperty(n,e,{enumerable:!0,get:()=>r.value,set:s=>r.value=s})}return r}function nd(e,t){let r;return!!((r=Object.getOwnPropertyDescriptor(e,t))&&!r.configurable)}var mo=new WeakMap;function As(e,t,r,n,s=!1){if(_e(e)){e.forEach((y,T)=>As(y,t&&(_e(t)?t[T]:t),r,n,s));return}if(en(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&As(e,t,r,n.component.subTree);return}const i=n.shapeFlag&4?Si(n.component):n.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Ue?a.refs={}:a.refs,d=a.setupState,p=ze(d),h=d===Ue?su:y=>nd(c,y)?!1:Ye(p,y),m=(y,T)=>!(T&&nd(c,T));if(u!=null&&u!==l){if(sd(t),it(u))c[u]=null,h(u)&&(d[u]=null);else if(tt(u)){const y=t;m(u,y.k)&&(u.value=null),y.k&&(c[y.k]=null)}}if(De(l))Ss(l,a,12,[o,c]);else{const y=it(l),T=tt(l);if(y||T){const g=()=>{if(e.f){const b=y?h(l)?d[l]:c[l]:m(l)||!e.k?l.value:c[e.k];if(s)_e(b)&&Ea(b,i);else if(_e(b))b.includes(i)||b.push(i);else if(y)c[l]=[i],h(l)&&(d[l]=c[l]);else{const w=[i];m(l,e.k)&&(l.value=w),e.k&&(c[e.k]=w)}}else y?(c[l]=o,h(l)&&(d[l]=o)):T&&(m(l,e.k)&&(l.value=o),e.k&&(c[e.k]=o))};if(o){const b=()=>{g(),mo.delete(e)};b.id=-1,mo.set(e,b),bt(b,r)}else sd(e),g()}}}function sd(e){const t=mo.get(e);t&&(t.flags|=8,mo.delete(e))}var id=!1,ks=()=>{id||(console.error("Hydration completed but contains mismatches."),id=!0)},Dv=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Ov=e=>e.namespaceURI.includes("MathML"),wo=e=>{if(e.nodeType===1){if(Dv(e))return"svg";if(Ov(e))return"mathml"}},Rs=e=>e.nodeType===8;function Hv(e){const{mt:t,p:r,o:{patchProp:n,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:u}}=e,c=(w,_)=>{if(!_.hasChildNodes()){r(null,w,_),co(),_._vnode=w;return}d(_.firstChild,w,null,null,null),co(),_._vnode=w},d=(w,_,E,P,B,v=!1)=>{v=v||!!_.dynamicChildren;const N=Rs(w)&&w.data==="[",q=()=>y(w,_,E,P,B,N),{type:C,ref:S,shapeFlag:x,patchFlag:O}=_;let R=w.nodeType;_.el=w,O===-2&&(v=!1,_.dynamicChildren=null);let M=null;switch(C){case Cn:R!==3?_.children===""?(l(_.el=s(""),o(w),w),M=w):M=q():(w.data!==_.children&&(ks(),w.data=_.children),M=i(w));break;case gt:b(w)?(M=i(w),g(_.el=w.content.firstChild,w,E)):R!==8||N?M=q():M=i(w);break;case Qn:if(N&&(w=i(w),R=w.nodeType),R===1||R===3){M=w;const z=!_.children.length;for(let G=0;G<_.staticCount;G++)z&&(_.children+=M.nodeType===1?M.outerHTML:M.data),G===_.staticCount-1&&(_.anchor=M),M=i(M);return N?i(M):M}else q();break;case Ke:N?M=m(w,_,E,P,B,v):M=q();break;default:if(x&1)(R!==1||_.type.toLowerCase()!==w.tagName.toLowerCase())&&!b(w)?M=q():M=p(w,_,E,P,B,v);else if(x&6){_.slotScopeIds=B;const z=o(w);if(N?M=T(w):Rs(w)&&w.data==="teleport start"?M=T(w,w.data,"teleport end"):M=i(w),t(_,z,null,E,P,wo(z),v),en(_)&&!_.type.__asyncResolved){let G;N?(G=$(Ke),G.anchor=M?M.previousSibling:z.lastChild):G=w.nodeType===3?Ne(""):$("div"),G.el=w,_.component.subTree=G}}else x&64?R!==8?M=q():M=_.type.hydrate(w,_,E,P,B,v,e,h):x&128&&(M=_.type.hydrate(w,_,E,P,wo(o(w)),B,v,e,d))}return S!=null&&As(S,null,P,_),M},p=(w,_,E,P,B,v)=>{v=v||!!_.dynamicChildren;const{type:N,props:q,patchFlag:C,shapeFlag:S,dirs:x,transition:O}=_,R=N==="input"||N==="option";if(R||C!==-1){x&&Or(_,null,E,"created");let M=!1;if(b(w)){M=Fd(null,O)&&E&&E.vnode.props&&E.vnode.props.appear;const G=w.content.firstChild;if(M){const ae=G.getAttribute("class");ae&&(G.$cls=ae),O.beforeEnter(G)}g(G,w,E),_.el=w=G}if(S&16&&!(q&&(q.innerHTML||q.textContent))){let G=h(w.firstChild,_,w,E,P,B,v);for(;G;){yo(w,1)||ks();const ae=G;G=G.nextSibling,a(ae)}}else if(S&8){let G=_.children;G[0]===`
|
|
4
|
+
`&&(w.tagName==="PRE"||w.tagName==="TEXTAREA")&&(G=G.slice(1));const{textContent:ae}=w;ae!==G&&ae!==G.replace(/\r\n|\r/g,`
|
|
5
|
+
`)&&(yo(w,0)||ks(),w.textContent=_.children)}if(q){if(R||!v||C&48){const G=w.tagName.includes("-");for(const ae in q)(R&&(ae.endsWith("value")||ae==="indeterminate")||Ys(ae)&&!Wn(ae)||ae[0]==="."||G&&!Wn(ae))&&n(w,ae,null,q[ae],void 0,E)}else if(q.onClick)n(w,"onClick",null,q.onClick,void 0,E);else if(C&4&&Zr(q.style))for(const G in q.style)q.style[G]}let z;(z=q&&q.onVnodeBeforeMount)&&Yt(z,E,_),x&&Or(_,null,E,"beforeMount"),((z=q&&q.onVnodeMounted)||x||M)&&Kd(()=>{z&&Yt(z,E,_),M&&O.enter(w),x&&Or(_,null,E,"mounted")},P)}return w.nextSibling},h=(w,_,E,P,B,v,N)=>{N=N||!!_.dynamicChildren;const q=_.children,C=q.length;for(let S=0;S<C;S++){const x=N?q[S]:q[S]=Jt(q[S]),O=x.type===Cn;w?(O&&!N&&S+1<C&&Jt(q[S+1]).type===Cn&&(l(s(w.data.slice(x.children.length)),E,i(w)),w.data=x.children),w=d(w,x,P,B,v,N)):O&&!x.children?l(x.el=s(""),E):(yo(E,1)||ks(),r(null,x,E,null,P,B,wo(E),v))}return w},m=(w,_,E,P,B,v)=>{const{slotScopeIds:N}=_;N&&(B=B?B.concat(N):N);const q=o(w),C=h(i(w),_,q,E,P,B,v);return C&&Rs(C)&&C.data==="]"?i(_.anchor=C):(ks(),l(_.anchor=u("]"),q,C),C)},y=(w,_,E,P,B,v)=>{if(yo(w.parentElement,1)||ks(),_.el=null,v){const C=T(w);for(;;){const S=i(w);if(S&&S!==C)a(S);else break}}const N=i(w),q=o(w);return a(w),r(null,_,q,N,E,P,wo(q),B),E&&(E.vnode.el=_.el,Eo(E,_.el)),N},T=(w,_="[",E="]")=>{let P=0;for(;w;)if(w=i(w),w&&Rs(w)&&(w.data===_&&P++,w.data===E)){if(P===0)return i(w);P--}return w},g=(w,_,E)=>{const P=_.parentNode;P&&P.replaceChild(w,_);let B=E;for(;B;)B.vnode.el===_&&(B.vnode.el=B.subTree.el=w),B=B.parent},b=w=>w.nodeType===1&&w.tagName==="TEMPLATE";return[c,d]}var od="data-allow-mismatch",Mv={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function yo(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(od);)e=e.parentElement;const r=e&&e.getAttribute(od);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:n.includes(Mv[t])}}var Nv=Yi().requestIdleCallback||(e=>setTimeout(e,1)),qv=Yi().cancelIdleCallback||(e=>clearTimeout(e)),Bv=(e=1e4)=>t=>{const r=Nv(t,{timeout:e});return()=>qv(r)};function Lv(e){const{top:t,left:r,bottom:n,right:s}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(t>0&&t<i||n>0&&n<i)&&(r>0&&r<o||s>0&&s<o)}var Fv=e=>(t,r)=>{const n=new IntersectionObserver(s=>{for(const i of s)if(i.isIntersecting){n.disconnect(),t();break}},e);return r(s=>{if(s instanceof Element){if(Lv(s))return t(),n.disconnect(),!1;n.observe(s)}}),()=>n.disconnect()},Vv=e=>t=>{if(e){const r=matchMedia(e);if(r.matches)t();else return r.addEventListener("change",t,{once:!0}),()=>r.removeEventListener("change",t)}},jv=(e=[])=>(t,r)=>{it(e)&&(e=[e]);let n=!1;const s=o=>{n||(n=!0,i(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{r(o=>{for(const a of e)o.removeEventListener(a,s)})};return r(o=>{for(const a of e)o.addEventListener(a,s,{once:!0})}),i};function Uv(e,t){if(Rs(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Rs(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}var en=e=>!!e.type.__asyncLoader;function zv(e){De(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=e;let u=null,c,d=0;const p=()=>(d++,u=null,h()),h=()=>{let m;return u||(m=u=t().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),l)return new Promise((T,g)=>{l(y,()=>T(p()),()=>g(y),d+1)});throw y}).then(y=>m!==u&&u?u:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),c=y,y)))};return X({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(m,y,T){let g=!1;(y.bu||(y.bu=[])).push(()=>g=!0);const b=()=>{g||T()},w=i?()=>{const _=i(b,E=>Uv(m,E));_&&(y.bum||(y.bum=[])).push(_)}:b;c?w():h().then(()=>!y.isUnmounted&&w())},get __asyncResolved(){return c},setup(){const m=$t;if(Xa(m),c)return()=>bo(c,m);const y=w=>{u=null,Jn(w,m,13,!n)};if(a&&m.suspense||Ps)return h().then(w=>()=>bo(w,m)).catch(w=>(y(w),()=>n?$(n,{error:w}):null));const T=V(!1),g=V(),b=V(!!s);return s&&setTimeout(()=>{b.value=!1},s),o!=null&&setTimeout(()=>{if(!T.value&&!g.value){const w=new Error(`Async component timed out after ${o}ms.`);y(w),g.value=w}},o),h().then(()=>{T.value=!0,m.parent&&fi(m.parent.vnode)&&m.parent.update()}).catch(w=>{y(w),g.value=w}),()=>{if(T.value&&c)return bo(c,m);if(g.value&&n)return $(n,{error:g.value});if(r&&!b.value)return bo(r,m)}}})}function bo(e,t){const{ref:r,props:n,children:s,ce:i}=t.vnode,o=$(e,n,s);return o.ref=r,o.ce=i,delete t.vnode.ce,o}var fi=e=>e.type.__isKeepAlive,Kv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=vt(),n=r.ctx;if(!n.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const s=new Map,i=new Set;let o=null;const a=r.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=n,p=d("div");n.activate=(b,w,_,E,P)=>{const B=b.component;u(b,w,_,0,a),l(B.vnode,b,w,_,B,a,E,b.slotScopeIds,P),bt(()=>{B.isDeactivated=!1,B.a&&ys(B.a);const v=b.props&&b.props.onVnodeMounted;v&&Yt(v,B.parent,b)},a)},n.deactivate=b=>{const w=b.component;Ao(w.m),Ao(w.a),u(b,p,null,1,a),bt(()=>{w.da&&ys(w.da);const _=b.props&&b.props.onVnodeUnmounted;_&&Yt(_,w.parent,b),w.isDeactivated=!0},a)};function h(b){Qa(b),c(b,r,a,!0)}function m(b){s.forEach((w,_)=>{const E=_l(en(w)?w.type.__asyncResolved||{}:w.type);E&&!b(E)&&y(_)})}function y(b){const w=s.get(b);w&&(!o||!Tr(w,o))?h(w):o&&Qa(o),s.delete(b),i.delete(b)}He(()=>[e.include,e.exclude],([b,w])=>{b&&m(_=>pi(b,_)),w&&m(_=>!pi(w,_))},{flush:"post",deep:!0});let T=null;const g=()=>{T!=null&&(ko(r.subTree.type)?bt(()=>{s.set(T,_o(r.subTree))},r.subTree.suspense):s.set(T,_o(r.subTree)))};return Qe(g),hi(g),Is(()=>{s.forEach(b=>{const{subTree:w,suspense:_}=r,E=_o(w);if(b.type===E.type&&b.key===E.key){Qa(E);const P=E.component.da;P&&bt(P,_);return}h(b)})}),()=>{if(T=null,!t.default)return o=null;const b=t.default(),w=b[0];if(b.length>1)return o=null,b;if(!rn(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return o=null,w;let _=_o(w);if(_.type===gt)return o=null,_;const E=_.type,P=_l(en(_)?_.type.__asyncResolved||{}:E),{include:B,exclude:v,max:N}=e;if(B&&(!P||!pi(B,P))||v&&P&&pi(v,P))return _.shapeFlag&=-257,o=_,w;const q=_.key==null?E:_.key,C=s.get(q);return _.el&&(_=Er(_),w.shapeFlag&128&&(w.ssContent=_)),T=q,C?(_.el=C.el,_.component=C.component,_.transition&&Qr(_,_.transition),_.shapeFlag|=512,i.delete(q),i.add(q)):(i.add(q),N&&i.size>parseInt(N,10)&&y(i.values().next().value)),_.shapeFlag|=256,o=_,ko(w.type)?w:_}}};function pi(e,t){return _e(e)?e.some(r=>pi(r,t)):it(e)?e.split(",").includes(t):kg(e)?(e.lastIndex=0,e.test(t)):!1}function ad(e,t){cd(e,"a",t)}function ld(e,t){cd(e,"da",t)}function cd(e,t,r=$t){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(So(t,n,r),r){let s=r.parent;for(;s&&s.parent;)fi(s.parent.vnode)&&Wv(n,t,r,s),s=s.parent}}function Wv(e,t,r,n){const s=So(t,e,n,!0);jt(()=>{Ea(n[t],s)},r)}function Qa(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function _o(e){return e.shapeFlag&128?e.ssContent:e}function So(e,t,r=$t,n=!1){if(r){const s=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{zr();const a=ts(r),l=fr(t,r,e,o);return a(),Kr(),l});return n?s.unshift(i):s.push(i),i}}var tn=e=>(t,r=$t)=>{(!Ps||e==="sp")&&So(e,(...n)=>t(...n),r)},ud=tn("bm"),Qe=tn("m"),el=tn("bu"),hi=tn("u"),Is=tn("bum"),jt=tn("um"),dd=tn("sp"),fd=tn("rtg"),pd=tn("rtc");function hd(e,t=$t){So("ec",e,t)}var tl="components",Gv="directives";function Jv(e,t){return rl(tl,e,!0,t)||e}var gd=Symbol.for("v-ndc");function gi(e){return it(e)?rl(tl,e,!1)||e:e||gd}function Yv(e){return rl(Gv,e)}function rl(e,t,r=!0,n=!1){const s=It||$t;if(s){const i=s.type;if(e===tl){const a=_l(i,!1);if(a&&(a===t||a===Ct(t)||a===Zs(Ct(t))))return i}const o=vd(s[e]||i[e],t)||vd(s.appContext[e],t);return!o&&n?i:o}}function vd(e,t){return e&&(e[t]||e[Ct(t)]||e[Zs(Ct(t))])}function hr(e,t,r,n){let s;const i=r&&r[n],o=_e(e);if(o||it(e)){const a=o&&Zr(e);let l=!1,u=!1;a&&(l=!Gt(e),u=Pr(e),e=to(e)),s=new Array(e.length);for(let c=0,d=e.length;c<d;c++)s[c]=t(l?u?_s(xr(e[c])):xr(e[c]):e[c],c,void 0,i&&i[c])}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i&&i[a])}else if(Ge(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i&&i[l])}}else s=[];return r&&(r[n]=s),s}function Zv(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(_e(n))for(let s=0;s<n.length;s++)e[n[s].name]=n[s].fn;else n&&(e[n.name]=n.key?(...s)=>{const i=n.fn(...s);return i&&(i.key=n.key),i}:n.fn)}return e}function te(e,t,r={},n,s){if(It.ce||It.parent&&en(It.parent)&&It.parent.ce){const u=Object.keys(r).length>0;return t!=="default"&&(r.name=t),I(),K(Ke,null,[$("slot",r,n&&n())],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),I();const o=i&&nl(i(r)),a=r.key||o&&o.key,l=K(Ke,{key:(a&&!Sr(a)?a:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function nl(e){return e.some(t=>rn(t)?!(t.type===gt||t.type===Ke&&!nl(t.children)):!0)?e:null}function md(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:ws(n)]=e[n];return r}var sl=e=>e?Zd(e)?Si(e):sl(e.parent):null,vi=Ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>sl(e.parent),$root:e=>sl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ll(e),$forceUpdate:e=>e.f||(e.f=()=>{Ua(e.update)}),$nextTick:e=>e.n||(e.n=At.bind(e.proxy)),$watch:e=>Rv.bind(e)}),il=(e,t)=>e!==Ue&&!e.__isScriptSetup&&Ye(e,t),ol={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return i[t]}else{if(il(n,t))return o[t]=1,n[t];if(s!==Ue&&Ye(s,t))return o[t]=2,s[t];if(Ye(i,t))return o[t]=3,i[t];if(r!==Ue&&Ye(r,t))return o[t]=4,r[t];al&&(o[t]=0)}}const u=vi[t];let c,d;if(u)return t==="$attrs"&&Ht(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(r!==Ue&&Ye(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,Ye(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:i}=e;return il(s,t)?(s[t]=r,!0):n!==Ue&&Ye(n,t)?(n[t]=r,!0):Ye(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:s,props:i,type:o}},a){let l;return!!(r[a]||e!==Ue&&a[0]!=="$"&&Ye(e,a)||il(t,a)||Ye(i,a)||Ye(n,a)||Ye(vi,a)||Ye(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ye(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},Xv=Ze({},ol,{get(e,t){if(t!==Symbol.unscopables)return ol.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Pg(t)}});function Qv(){return null}function em(){return null}function tm(e){}function rm(e){}function nm(){return null}function sm(){}function im(e,t){return null}function om(){return wd("useSlots").slots}function am(){return wd("useAttrs").attrs}function wd(e){const t=vt();return t.setupContext||(t.setupContext=ef(t))}function mi(e){return _e(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function yd(e,t){const r=mi(e);for(const n in t){if(n.startsWith("__skip"))continue;let s=r[n];s?_e(s)||De(s)?s=r[n]={type:s,default:t[n]}:s.default=t[n]:s===null&&(s=r[n]={default:t[n]}),s&&t[`__skip_${n}`]&&(s.skipFactory=!0)}return r}function lm(e,t){return!e||!t?e||t:_e(e)&&_e(t)?e.concat(t):Ze({},mi(e),mi(t))}function cm(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function um(e){const t=vt();let r=e();$o();const n=()=>{vt()!==t&&t.scope.off(),$o()};return Aa(r)&&(r=r.catch(s=>{throw ts(t),Promise.resolve().then(()=>Promise.resolve().then(n)),s})),[r,()=>{ts(t),Promise.resolve().then(n)}]}var al=!0;function dm(e){const t=ll(e),r=e.proxy,n=e.ctx;al=!1,t.beforeCreate&&bd(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:p,beforeUpdate:h,updated:m,activated:y,deactivated:T,beforeDestroy:g,beforeUnmount:b,destroyed:w,unmounted:_,render:E,renderTracked:P,renderTriggered:B,errorCaptured:v,serverPrefetch:N,expose:q,inheritAttrs:C,components:S,directives:x,filters:O}=t;if(u&&fm(u,n,null),o)for(const z in o){const G=o[z];De(G)&&(n[z]=G.bind(r))}if(s){const z=s.call(r,r);Ge(z)&&(e.data=Jr(z))}if(al=!0,i)for(const z in i){const G=i[z],ae=j({get:De(G)?G.bind(r,r):De(G.get)?G.get.bind(r,r):ur,set:!De(G)&&De(G.set)?G.set.bind(r):ur});Object.defineProperty(n,z,{enumerable:!0,configurable:!0,get:()=>ae.value,set:Y=>ae.value=Y})}if(a)for(const z in a)_d(a[z],n,r,z);if(l){const z=De(l)?l.call(r):l;Reflect.ownKeys(z).forEach(G=>{Yn(G,z[G])})}c&&bd(c,e,"c");function M(z,G){_e(G)?G.forEach(ae=>z(ae.bind(r))):G&&z(G.bind(r))}if(M(ud,d),M(Qe,p),M(el,h),M(hi,m),M(ad,y),M(ld,T),M(hd,v),M(pd,P),M(fd,B),M(Is,b),M(jt,_),M(dd,N),_e(q))if(q.length){const z=e.exposed||(e.exposed={});q.forEach(G=>{Object.defineProperty(z,G,{get:()=>r[G],set:ae=>r[G]=ae,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===ur&&(e.render=E),C!=null&&(e.inheritAttrs=C),S&&(e.components=S),x&&(e.directives=x),N&&Xa(e)}function fm(e,t,r=ur){_e(e)&&(e=cl(e));for(const n in e){const s=e[n];let i;Ge(s)?"default"in s?i=Vt(s.from||n,s.default,!0):i=Vt(s.from||n):i=Vt(s),tt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function bd(e,t,r){fr(_e(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function _d(e,t,r,n){let s=n.includes(".")?Uu(r,n):()=>r[n];if(it(e)){const i=t[e];De(i)&&He(s,i)}else if(De(e))He(s,e.bind(r));else if(Ge(e))if(_e(e))e.forEach(i=>_d(i,t,r,n));else{const i=De(e.handler)?e.handler.bind(r):t[e.handler];De(i)&&He(s,i,e)}}function ll(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!r&&!n?l=t:(l={},s.length&&s.forEach(u=>Co(l,u,o,!0)),Co(l,t,o)),Ge(t)&&i.set(t,l),l}function Co(e,t,r,n=!1){const{mixins:s,extends:i}=t;i&&Co(e,i,r,!0),s&&s.forEach(o=>Co(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const a=pm[o]||r&&r[o];e[o]=a?a(e[o],t[o]):t[o]}return e}var pm={data:Sd,props:Cd,emits:Cd,methods:wi,computed:wi,beforeCreate:Ut,created:Ut,beforeMount:Ut,mounted:Ut,beforeUpdate:Ut,updated:Ut,beforeDestroy:Ut,beforeUnmount:Ut,destroyed:Ut,unmounted:Ut,activated:Ut,deactivated:Ut,errorCaptured:Ut,serverPrefetch:Ut,components:wi,directives:wi,watch:gm,provide:Sd,inject:hm};function Sd(e,t){return t?e?function(){return Ze(De(e)?e.call(this,this):e,De(t)?t.call(this,this):t)}:t:e}function hm(e,t){return wi(cl(e),cl(t))}function cl(e){if(_e(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Ut(e,t){return e?[...new Set([].concat(e,t))]:t}function wi(e,t){return e?Ze(Object.create(null),e,t):t}function Cd(e,t){return e?_e(e)&&_e(t)?[...new Set([...e,...t])]:Ze(Object.create(null),mi(e),mi(t??{})):t}function gm(e,t){if(!e)return t;if(!t)return e;const r=Ze(Object.create(null),e);for(const n in t)r[n]=Ut(e[n],t[n]);return r}function xd(){return{app:null,config:{isNativeTag:su,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var vm=0;function mm(e,t){return function(n,s=null){De(n)||(n=Ze({},n)),s!=null&&!Ge(s)&&(s=null);const i=xd(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:vm++,_component:n,_props:s,_container:null,_context:i,_instance:null,version:rf,get config(){return i.config},set config(c){},use(c,...d){return o.has(c)||(c&&De(c.install)?(o.add(c),c.install(u,...d)):De(c)&&(o.add(c),c(u,...d))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,d){return d?(i.components[c]=d,u):i.components[c]},directive(c,d){return d?(i.directives[c]=d,u):i.directives[c]},mount(c,d,p){if(!l){const h=u._ceVNode||$(n,s);return h.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),d&&t?t(h,c):e(h,c,p),l=!0,u._container=c,c.__vue_app__=u,Si(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(fr(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return i.provides[c]=d,u},runWithContext(c){const d=Zn;Zn=u;try{return c()}finally{Zn=d}}};return u}}var Zn=null;function wm(e,t,r=Ue){const n=vt(),s=Ct(t),i=Wt(t),o=Td(e,s),a=ii((l,u)=>{let c,d=Ue,p;return ju(()=>{const h=e[s];Lt(c,h)&&(c=h,u())}),{get(){return l(),r.get?r.get(c):c},set(h){const m=r.set?r.set(h):h;if(!Lt(m,c)&&!(d!==Ue&&Lt(h,d)))return;const y=n.vnode.props;y&&(t in y||s in y||i in y)&&(`onUpdate:${t}`in y||`onUpdate:${s}`in y||`onUpdate:${i}`in y)||(c=h,u()),n.emit(`update:${t}`,m),Lt(h,m)&&Lt(h,d)&&!Lt(m,p)&&u(),d=h,p=m}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||Ue:a,done:!1}:{done:!0}}}},a}var Td=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ct(t)}Modifiers`]||e[`${Wt(t)}Modifiers`];function ym(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Ue;let s=r;const i=t.startsWith("update:"),o=i&&Td(n,t.slice(7));o&&(o.trim&&(s=r.map(c=>it(c)?c.trim():c)),o.number&&(s=r.map(Gi)));let a,l=n[a=ws(t)]||n[a=ws(Ct(t))];!l&&i&&(l=n[a=ws(Wt(t))]),l&&fr(l,e,6,s);const u=n[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,fr(u,e,6,s)}}var bm=new WeakMap;function Ed(e,t,r=!1){const n=r?bm:t.emitsCache,s=n.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!De(e)){const l=u=>{const c=Ed(u,t,!0);c&&(a=!0,Ze(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Ge(e)&&n.set(e,null),null):(_e(i)?i.forEach(l=>o[l]=null):Ze(o,i),Ge(e)&&n.set(e,o),o)}function xo(e,t){return!e||!Ys(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ye(e,t[0].toLowerCase()+t.slice(1))||Ye(e,Wt(t))||Ye(e,t))}function To(e){const{type:t,vnode:r,proxy:n,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:d,data:p,setupState:h,ctx:m,inheritAttrs:y}=e,T=li(e);let g,b;try{if(r.shapeFlag&4){const _=s||n,E=_;g=Jt(u.call(E,_,c,d,h,p,m)),b=a}else{const _=t;g=Jt(_.length>1?_(d,{attrs:a,slots:o,emit:l}):_(d,null)),b=t.props?a:Sm(a)}}catch(_){bi.length=0,Jn(_,e,1),g=$(gt)}let w=g;if(b&&y!==!1){const _=Object.keys(b),{shapeFlag:E}=w;_.length&&E&7&&(i&&_.some(Ta)&&(b=Cm(b,i)),w=Er(w,b,!1,!0))}return r.dirs&&(w=Er(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&Qr(w,r.transition),g=w,li(T),g}function _m(e,t=!0){let r;for(let n=0;n<e.length;n++){const s=e[n];if(rn(s)){if(s.type!==gt||s.children==="v-if"){if(r)return;r=s}}else return}return r}var Sm=e=>{let t;for(const r in e)(r==="class"||r==="style"||Ys(r))&&((t||(t={}))[r]=e[r]);return t},Cm=(e,t)=>{const r={};for(const n in e)(!Ta(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function xm(e,t,r){const{props:n,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Ad(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const p=c[d];if(kd(o,n,p)&&!xo(u,p))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Ad(n,o,u):!0:!!o;return!1}function Ad(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const i=n[s];if(kd(t,e,i)&&!xo(r,i))return!0}return!1}function kd(e,t,r){const n=e[r],s=t[r];return r==="style"&&Ge(n)&&Ge(s)?!Ur(n,s):n!==s}function Eo({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}var Rd={},Id=()=>Object.create(Rd),$d=e=>Object.getPrototypeOf(e)===Rd;function Tm(e,t,r,n=!1){const s={},i=Id();e.propsDefaults=Object.create(null),Pd(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);r?e.props=n?s:Iu(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Em(e,t,r,n){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ze(s),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let p=c[d];if(xo(e.emitsOptions,p))continue;const h=t[p];if(l)if(Ye(i,p))h!==i[p]&&(i[p]=h,u=!0);else{const m=Ct(p);s[m]=ul(l,a,m,h,e,!1)}else h!==i[p]&&(i[p]=h,u=!0)}}}else{Pd(e,t,s,i)&&(u=!0);let c;for(const d in a)(!t||!Ye(t,d)&&((c=Wt(d))===d||!Ye(t,c)))&&(l?r&&(r[d]!==void 0||r[c]!==void 0)&&(s[d]=ul(l,a,d,void 0,e,!0)):delete s[d]);if(i!==a)for(const d in i)(!t||!Ye(t,d))&&(delete i[d],u=!0)}u&&Wr(e.attrs,"set","")}function Pd(e,t,r,n){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Wn(l))continue;const u=t[l];let c;s&&Ye(s,c=Ct(l))?!i||!i.includes(c)?r[c]=u:(a||(a={}))[c]=u:xo(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(i){const l=ze(r),u=a||Ue;for(let c=0;c<i.length;c++){const d=i[c];r[d]=ul(s,l,d,u[d],e,!Ye(u,d))}}return o}function ul(e,t,r,n,s,i){const o=e[r];if(o!=null){const a=Ye(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&De(l)){const{propsDefaults:u}=s;if(r in u)n=u[r];else{const c=ts(s);n=u[r]=l.call(null,t),c()}}else n=l;s.ce&&s.ce._setProp(r,n)}o[0]&&(i&&!a?n=!1:o[1]&&(n===""||n===Wt(r))&&(n=!0))}return n}var Am=new WeakMap;function Dd(e,t,r=!1){const n=r?Am:t.propsCache,s=n.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!De(e)){const c=d=>{l=!0;const[p,h]=Dd(d,t,!0);Ze(o,p),h&&a.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Ge(e)&&n.set(e,gs),gs;if(_e(i))for(let c=0;c<i.length;c++){const d=Ct(i[c]);Od(d)&&(o[d]=Ue)}else if(i)for(const c in i){const d=Ct(c);if(Od(d)){const p=i[c],h=o[d]=_e(p)||De(p)?{type:p}:Ze({},p),m=h.type;let y=!1,T=!0;if(_e(m))for(let g=0;g<m.length;++g){const b=m[g],w=De(b)&&b.name;if(w==="Boolean"){y=!0;break}else w==="String"&&(T=!1)}else y=De(m)&&m.name==="Boolean";h[0]=y,h[1]=T,(y||Ye(h,"default"))&&a.push(d)}}const u=[o,a];return Ge(e)&&n.set(e,u),u}function Od(e){return e[0]!=="$"&&!Wn(e)}var dl=e=>e==="_"||e==="_ctx"||e==="$stable",fl=e=>_e(e)?e.map(Jt):[Jt(e)],km=(e,t,r)=>{if(t._n)return t;const n=k((...s)=>fl(t(...s)),r);return n._c=!1,n},Hd=(e,t,r)=>{const n=e._ctx;for(const s in e){if(dl(s))continue;const i=e[s];if(De(i))t[s]=km(s,i,n);else if(i!=null){const o=fl(i);t[s]=()=>o}}},Md=(e,t)=>{const r=fl(t);e.slots.default=()=>r},Nd=(e,t,r)=>{for(const n in t)(r||!dl(n))&&(e[n]=t[n])},Rm=(e,t,r)=>{const n=e.slots=Id();if(e.vnode.shapeFlag&32){const s=t._;s?(Nd(n,t,r),r&&au(n,"_",s,!0)):Hd(t,n)}else t&&Md(e,t)},Im=(e,t,r)=>{const{vnode:n,slots:s}=e;let i=!0,o=Ue;if(n.shapeFlag&32){const a=t._;a?r&&a===1?i=!1:Nd(s,t,r):(i=!t.$stable,Hd(t,s)),o=t}else t&&(Md(e,t),o={default:1});if(i)for(const a in s)!dl(a)&&o[a]==null&&delete s[a]};function jx(){}var bt=Kd;function qd(e){return Ld(e)}function Bd(e){return Ld(e,Hv)}function Ld(e,t){const r=Yi();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:p,setScopeId:h=ur,insertStaticContent:m}=e,y=(A,D,J,oe=null,re=null,ee=null,pe=void 0,fe=null,ce=!!D.dynamicChildren)=>{if(A===D)return;A&&!Tr(A,D)&&(oe=nt(A),de(A,re,ee,!0),A=null),D.patchFlag===-2&&(ce=!1,D.dynamicChildren=null);const{type:se,ref:Ae,shapeFlag:he}=D;switch(se){case Cn:T(A,D,J,oe);break;case gt:g(A,D,J,oe);break;case Qn:A==null&&b(D,J,oe,pe);break;case Ke:S(A,D,J,oe,re,ee,pe,fe,ce);break;default:he&1?E(A,D,J,oe,re,ee,pe,fe,ce):he&6?x(A,D,J,oe,re,ee,pe,fe,ce):(he&64||he&128)&&se.process(A,D,J,oe,re,ee,pe,fe,ce,st)}Ae!=null&&re?As(Ae,A&&A.ref,ee,D||A,!D):Ae==null&&A&&A.ref!=null&&As(A.ref,null,ee,A,!0)},T=(A,D,J,oe)=>{if(A==null)n(D.el=a(D.children),J,oe);else{const re=D.el=A.el;D.children!==A.children&&u(re,D.children)}},g=(A,D,J,oe)=>{A==null?n(D.el=l(D.children||""),J,oe):D.el=A.el},b=(A,D,J,oe)=>{[A.el,A.anchor]=m(A.children,D,J,oe,A.el,A.anchor)},w=({el:A,anchor:D},J,oe)=>{let re;for(;A&&A!==D;)re=p(A),n(A,J,oe),A=re;n(D,J,oe)},_=({el:A,anchor:D})=>{let J;for(;A&&A!==D;)J=p(A),s(A),A=J;s(D)},E=(A,D,J,oe,re,ee,pe,fe,ce)=>{if(D.type==="svg"?pe="svg":D.type==="math"&&(pe="mathml"),A==null)P(D,J,oe,re,ee,pe,fe,ce);else{const se=A.el&&A.el._isVueCE?A.el:null;try{se&&se._beginPatch(),N(A,D,re,ee,pe,fe,ce)}finally{se&&se._endPatch()}}},P=(A,D,J,oe,re,ee,pe,fe)=>{let ce,se;const{props:Ae,shapeFlag:he,transition:Te,dirs:Me}=A;if(ce=A.el=o(A.type,ee,Ae&&Ae.is,Ae),he&8?c(ce,A.children):he&16&&v(A.children,ce,null,oe,re,pl(A,ee),pe,fe),Me&&Or(A,null,oe,"created"),B(ce,A,A.scopeId,pe,oe),Ae){for(const Z in Ae)Z!=="value"&&!Wn(Z)&&i(ce,Z,null,Ae[Z],ee,oe);"value"in Ae&&i(ce,"value",null,Ae.value,ee),(se=Ae.onVnodeBeforeMount)&&Yt(se,oe,A)}Me&&Or(A,null,oe,"beforeMount");const Ve=Fd(re,Te);Ve&&Te.beforeEnter(ce),n(ce,D,J),((se=Ae&&Ae.onVnodeMounted)||Ve||Me)&&bt(()=>{se&&Yt(se,oe,A),Ve&&Te.enter(ce),Me&&Or(A,null,oe,"mounted")},re)},B=(A,D,J,oe,re)=>{if(J&&h(A,J),oe)for(let ee=0;ee<oe.length;ee++)h(A,oe[ee]);if(re){let ee=re.subTree;if(D===ee||ko(ee.type)&&(ee.ssContent===D||ee.ssFallback===D)){const pe=re.vnode;B(A,pe,pe.scopeId,pe.slotScopeIds,re.parent)}}},v=(A,D,J,oe,re,ee,pe,fe,ce=0)=>{for(let se=ce;se<A.length;se++)y(null,A[se]=fe?nn(A[se]):Jt(A[se]),D,J,oe,re,ee,pe,fe)},N=(A,D,J,oe,re,ee,pe)=>{const fe=D.el=A.el;let{patchFlag:ce,dynamicChildren:se,dirs:Ae}=D;ce|=A.patchFlag&16;const he=A.props||Ue,Te=D.props||Ue;let Me;if(J&&Xn(J,!1),(Me=Te.onVnodeBeforeUpdate)&&Yt(Me,J,D,A),Ae&&Or(D,A,J,"beforeUpdate"),J&&Xn(J,!0),(he.innerHTML&&Te.innerHTML==null||he.textContent&&Te.textContent==null)&&c(fe,""),se?q(A.dynamicChildren,se,fe,J,oe,pl(D,re),ee):pe||G(A,D,fe,null,J,oe,pl(D,re),ee,!1),ce>0){if(ce&16)C(fe,he,Te,J,re);else if(ce&2&&he.class!==Te.class&&i(fe,"class",null,Te.class,re),ce&4&&i(fe,"style",he.style,Te.style,re),ce&8){const Ve=D.dynamicProps;for(let Z=0;Z<Ve.length;Z++){const ue=Ve[Z],ge=he[ue],dt=Te[ue];(dt!==ge||ue==="value")&&i(fe,ue,ge,dt,re,J)}}ce&1&&A.children!==D.children&&c(fe,D.children)}else!pe&&se==null&&C(fe,he,Te,J,re);((Me=Te.onVnodeUpdated)||Ae)&&bt(()=>{Me&&Yt(Me,J,D,A),Ae&&Or(D,A,J,"updated")},oe)},q=(A,D,J,oe,re,ee,pe)=>{for(let fe=0;fe<D.length;fe++){const ce=A[fe],se=D[fe];y(ce,se,ce.el&&(ce.type===Ke||!Tr(ce,se)||ce.shapeFlag&198)?d(ce.el):J,null,oe,re,ee,pe,!0)}},C=(A,D,J,oe,re)=>{if(D!==J){if(D!==Ue)for(const ee in D)!Wn(ee)&&!(ee in J)&&i(A,ee,D[ee],null,re,oe);for(const ee in J){if(Wn(ee))continue;const pe=J[ee],fe=D[ee];pe!==fe&&ee!=="value"&&i(A,ee,fe,pe,re,oe)}"value"in J&&i(A,"value",D.value,J.value,re)}},S=(A,D,J,oe,re,ee,pe,fe,ce)=>{const se=D.el=A?A.el:a(""),Ae=D.anchor=A?A.anchor:a("");let{patchFlag:he,dynamicChildren:Te,slotScopeIds:Me}=D;Me&&(fe=fe?fe.concat(Me):Me),A==null?(n(se,J,oe),n(Ae,J,oe),v(D.children||[],J,Ae,re,ee,pe,fe,ce)):he>0&&he&64&&Te&&A.dynamicChildren&&A.dynamicChildren.length===Te.length?(q(A.dynamicChildren,Te,J,re,ee,pe,fe),(D.key!=null||re&&D===re.subTree)&&hl(A,D,!0)):G(A,D,J,Ae,re,ee,pe,fe,ce)},x=(A,D,J,oe,re,ee,pe,fe,ce)=>{D.slotScopeIds=fe,A==null?D.shapeFlag&512?re.ctx.activate(D,J,oe,pe,ce):O(D,J,oe,re,ee,pe,ce):R(A,D,ce)},O=(A,D,J,oe,re,ee,pe)=>{const fe=A.component=Yd(A,oe,re);if(fi(A)&&(fe.ctx.renderer=st),Xd(fe,!1,pe),fe.asyncDep){if(re&&re.registerDep(fe,M,pe),!A.el){const ce=fe.subTree=$(gt);g(null,ce,D,J),A.placeholder=ce.el}}else M(fe,A,D,J,re,ee,pe)},R=(A,D,J)=>{const oe=D.component=A.component;if(xm(A,D,J))if(oe.asyncDep&&!oe.asyncResolved){z(oe,D,J);return}else oe.next=D,oe.update();else D.el=A.el,oe.vnode=D},M=(A,D,J,oe,re,ee,pe)=>{const fe=()=>{if(A.isMounted){let{next:he,bu:Te,u:Me,parent:Ve,vnode:Z}=A;{const St=Vd(A);if(St){he&&(he.el=Z.el,z(A,he,pe)),St.asyncDep.then(()=>{bt(()=>{A.isUnmounted||se()},re)});return}}let ue=he,ge;Xn(A,!1),he?(he.el=Z.el,z(A,he,pe)):he=Z,Te&&ys(Te),(ge=he.props&&he.props.onVnodeBeforeUpdate)&&Yt(ge,Ve,he,Z),Xn(A,!0);const dt=To(A),cr=A.subTree;A.subTree=dt,y(cr,dt,d(cr.el),nt(cr),A,re,ee),he.el=dt.el,ue===null&&Eo(A,dt.el),Me&&bt(Me,re),(ge=he.props&&he.props.onVnodeUpdated)&&bt(()=>Yt(ge,Ve,he,Z),re)}else{let he;const{el:Te,props:Me}=D,{bm:Ve,m:Z,parent:ue,root:ge,type:dt}=A,cr=en(D);if(Xn(A,!1),Ve&&ys(Ve),!cr&&(he=Me&&Me.onVnodeBeforeMount)&&Yt(he,ue,D),Xn(A,!0),Te&&wt){const St=()=>{A.subTree=To(A),wt(Te,A.subTree,A,re,null)};cr&&dt.__asyncHydrate?dt.__asyncHydrate(Te,A,St):St()}else{ge.ce&&ge.ce._hasShadowRoot()&&ge.ce._injectChildStyle(dt);const St=A.subTree=To(A);y(null,St,J,oe,A,re,ee),D.el=St.el}if(Z&&bt(Z,re),!cr&&(he=Me&&Me.onVnodeMounted)){const St=D;bt(()=>Yt(he,ue,St),re)}(D.shapeFlag&256||ue&&en(ue.vnode)&&ue.vnode.shapeFlag&256)&&A.a&&bt(A.a,re),A.isMounted=!0,D=J=oe=null}};A.scope.on();const ce=A.effect=new Xs(fe);A.scope.off();const se=A.update=ce.run.bind(ce),Ae=A.job=ce.runIfDirty.bind(ce);Ae.i=A,Ae.id=A.uid,ce.scheduler=()=>Ua(Ae),Xn(A,!0),se()},z=(A,D,J)=>{D.component=A;const oe=A.vnode.props;A.vnode=D,A.next=null,Em(A,D.props,oe,J),Im(A,D.children,J),zr(),qu(A),Kr()},G=(A,D,J,oe,re,ee,pe,fe,ce=!1)=>{const se=A&&A.children,Ae=A?A.shapeFlag:0,he=D.children,{patchFlag:Te,shapeFlag:Me}=D;if(Te>0){if(Te&128){Y(se,he,J,oe,re,ee,pe,fe,ce);return}else if(Te&256){ae(se,he,J,oe,re,ee,pe,fe,ce);return}}Me&8?(Ae&16&&Oe(se,re,ee),he!==se&&c(J,he)):Ae&16?Me&16?Y(se,he,J,oe,re,ee,pe,fe,ce):Oe(se,re,ee,!0):(Ae&8&&c(J,""),Me&16&&v(he,J,oe,re,ee,pe,fe,ce))},ae=(A,D,J,oe,re,ee,pe,fe,ce)=>{A=A||gs,D=D||gs;const se=A.length,Ae=D.length,he=Math.min(se,Ae);let Te;for(Te=0;Te<he;Te++){const Me=D[Te]=ce?nn(D[Te]):Jt(D[Te]);y(A[Te],Me,J,null,re,ee,pe,fe,ce)}se>Ae?Oe(A,re,ee,!0,!1,he):v(D,J,oe,re,ee,pe,fe,ce,he)},Y=(A,D,J,oe,re,ee,pe,fe,ce)=>{let se=0;const Ae=D.length;let he=A.length-1,Te=Ae-1;for(;se<=he&&se<=Te;){const Me=A[se],Ve=D[se]=ce?nn(D[se]):Jt(D[se]);if(Tr(Me,Ve))y(Me,Ve,J,null,re,ee,pe,fe,ce);else break;se++}for(;se<=he&&se<=Te;){const Me=A[he],Ve=D[Te]=ce?nn(D[Te]):Jt(D[Te]);if(Tr(Me,Ve))y(Me,Ve,J,null,re,ee,pe,fe,ce);else break;he--,Te--}if(se>he){if(se<=Te){const Me=Te+1,Ve=Me<Ae?D[Me].el:oe;for(;se<=Te;)y(null,D[se]=ce?nn(D[se]):Jt(D[se]),J,Ve,re,ee,pe,fe,ce),se++}}else if(se>Te)for(;se<=he;)de(A[se],re,ee,!0),se++;else{const Me=se,Ve=se,Z=new Map;for(se=Ve;se<=Te;se++){const F=D[se]=ce?nn(D[se]):Jt(D[se]);F.key!=null&&Z.set(F.key,se)}let ue,ge=0;const dt=Te-Ve+1;let cr=!1,St=0;const wn=new Array(dt);for(se=0;se<dt;se++)wn[se]=0;for(se=Me;se<=he;se++){const F=A[se];if(ge>=dt){de(F,re,ee,!0);continue}let L;if(F.key!=null)L=Z.get(F.key);else for(ue=Ve;ue<=Te;ue++)if(wn[ue-Ve]===0&&Tr(F,D[ue])){L=ue;break}L===void 0?de(F,re,ee,!0):(wn[L-Ve]=se+1,L>=St?St=L:cr=!0,y(F,D[L],J,null,re,ee,pe,fe,ce),ge++)}const H=cr?$m(wn):gs;for(ue=H.length-1,se=dt-1;se>=0;se--){const F=Ve+se,L=D[F],ie=D[F+1],ne=F+1<Ae?ie.el||jd(ie):oe;wn[se]===0?y(null,L,J,ne,re,ee,pe,fe,ce):cr&&(ue<0||se!==H[ue]?le(L,J,ne,2):ue--)}}},le=(A,D,J,oe,re=null)=>{const{el:ee,type:pe,transition:fe,children:ce,shapeFlag:se}=A;if(se&6){le(A.component.subTree,D,J,oe);return}if(se&128){A.suspense.move(D,J,oe);return}if(se&64){pe.move(A,D,J,st);return}if(pe===Ke){n(ee,D,J);for(let Ae=0;Ae<ce.length;Ae++)le(ce[Ae],D,J,oe);n(A.anchor,D,J);return}if(pe===Qn){w(A,D,J);return}if(oe!==2&&se&1&&fe)if(oe===0)fe.beforeEnter(ee),n(ee,D,J),bt(()=>fe.enter(ee),re);else{const{leave:Ae,delayLeave:he,afterLeave:Te}=fe,Me=()=>{A.ctx.isUnmounted?s(ee):n(ee,D,J)},Ve=()=>{ee._isLeaving&&ee[Hr](!0),Ae(ee,()=>{Me(),Te&&Te()})};he?he(ee,Me,Ve):Ve()}else n(ee,D,J)},de=(A,D,J,oe=!1,re=!1)=>{const{type:ee,props:pe,ref:fe,children:ce,dynamicChildren:se,shapeFlag:Ae,patchFlag:he,dirs:Te,cacheIndex:Me}=A;if(he===-2&&(re=!1),fe!=null&&(zr(),As(fe,null,J,A,!0),Kr()),Me!=null&&(D.renderCache[Me]=void 0),Ae&256){D.ctx.deactivate(A);return}const Ve=Ae&1&&Te,Z=!en(A);let ue;if(Z&&(ue=pe&&pe.onVnodeBeforeUnmount)&&Yt(ue,D,A),Ae&6)$e(A.component,J,oe);else{if(Ae&128){A.suspense.unmount(J,oe);return}Ve&&Or(A,null,D,"beforeUnmount"),Ae&64?A.type.remove(A,D,J,st,oe):se&&!se.hasOnce&&(ee!==Ke||he>0&&he&64)?Oe(se,D,J,!1,!0):(ee===Ke&&he&384||!re&&Ae&16)&&Oe(ce,D,J),oe&&Ie(A)}(Z&&(ue=pe&&pe.onVnodeUnmounted)||Ve)&&bt(()=>{ue&&Yt(ue,D,A),Ve&&Or(A,null,D,"unmounted")},J)},Ie=A=>{const{type:D,el:J,anchor:oe,transition:re}=A;if(D===Ke){je(J,oe);return}if(D===Qn){_(A);return}const ee=()=>{s(J),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(A.shapeFlag&1&&re&&!re.persisted){const{leave:pe,delayLeave:fe}=re,ce=()=>pe(J,ee);fe?fe(A.el,ee,ce):ce()}else ee()},je=(A,D)=>{let J;for(;A!==D;)J=p(A),s(A),A=J;s(D)},$e=(A,D,J)=>{const{bum:oe,scope:re,job:ee,subTree:pe,um:fe,m:ce,a:se}=A;Ao(ce),Ao(se),oe&&ys(oe),re.stop(),ee&&(ee.flags|=8,de(pe,A,D,J)),fe&&bt(fe,D),bt(()=>{A.isUnmounted=!0},D)},Oe=(A,D,J,oe=!1,re=!1,ee=0)=>{for(let pe=ee;pe<A.length;pe++)de(A[pe],D,J,oe,re)},nt=A=>{if(A.shapeFlag&6)return nt(A.component.subTree);if(A.shapeFlag&128)return A.suspense.next();const D=p(A.anchor||A.el),J=D&&D[zu];return J?p(J):D};let _t=!1;const Be=(A,D,J)=>{let oe;A==null?D._vnode&&(de(D._vnode,null,null,!0),oe=D._vnode.component):y(D._vnode||null,A,D,null,null,null,J),D._vnode=A,_t||(_t=!0,qu(oe),co(),_t=!1)},st={p:y,um:de,m:le,r:Ie,mt:O,mc:v,pc:G,pbc:q,n:nt,o:e};let ht,wt;return t&&([ht,wt]=t(st)),{render:Be,hydrate:ht,createApp:mm(Be,ht)}}function pl({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Xn({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function hl(e,t,r=!1){const n=e.children,s=t.children;if(_e(n)&&_e(s))for(let i=0;i<n.length;i++){const o=n[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=nn(s[i]),a.el=o.el),!r&&a.patchFlag!==-2&&hl(o,a)),a.type===Cn&&(a.patchFlag===-1&&(a=s[i]=nn(a)),a.el=o.el),a.type===gt&&!a.el&&(a.el=o.el)}}function $m(e){const t=e.slice(),r=[0];let n,s,i,o,a;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(s=r[r.length-1],e[s]<u){t[n]=s,r.push(n);continue}for(i=0,o=r.length-1;i<o;)a=i+o>>1,e[r[a]]<u?i=a+1:o=a;u<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,o=r[i-1];i-- >0;)r[i]=o,o=t[o];return r}function Vd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vd(t)}function Ao(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function jd(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?jd(t.subTree):null}var ko=e=>e.__isSuspense,gl=0,Pm={name:"Suspense",__isSuspense:!0,process(e,t,r,n,s,i,o,a,l,u){if(e==null)Dm(t,r,n,s,i,o,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Om(e,t,r,n,s,o,a,l,u)}},hydrate:Hm,normalize:Mm};function yi(e,t){const r=e.props&&e.props[t];De(r)&&r()}function Dm(e,t,r,n,s,i,o,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),p=e.suspense=Ud(e,s,n,t,d,r,i,o,a,l);u(null,p.pendingBranch=e.ssContent,d,null,n,p,i,o),p.deps>0?(yi(e,"onPending"),yi(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,i,o),$s(p,e.ssFallback)):p.resolve(!1,!0)}function Om(e,t,r,n,s,i,o,a,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:m,pendingBranch:y,isInFallback:T,isHydrating:g}=d;if(y)d.pendingBranch=p,Tr(y,p)?(l(y,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():T&&(g||(l(m,h,r,n,s,null,i,o,a),$s(d,h)))):(d.pendingId=gl++,g?(d.isHydrating=!1,d.activeBranch=y):u(y,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),T?(l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():(l(m,h,r,n,s,null,i,o,a),$s(d,h))):m&&Tr(m,p)?(l(m,p,r,n,s,d,i,o,a),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0&&d.resolve()));else if(m&&Tr(m,p))l(m,p,r,n,s,d,i,o,a),$s(d,p);else if(yi(t,"onPending"),d.pendingBranch=p,p.shapeFlag&512?d.pendingId=p.component.suspenseId:d.pendingId=gl++,l(null,p,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0)d.resolve();else{const{timeout:b,pendingId:w}=d;b>0?setTimeout(()=>{d.pendingId===w&&d.fallback(h)},b):b===0&&d.fallback(h)}}function Ud(e,t,r,n,s,i,o,a,l,u,c=!1){const{p:d,m:p,um:h,n:m,o:{parentNode:y,remove:T}}=u;let g;const b=Nm(e);b&&t&&t.pendingBranch&&(g=t.pendingId,t.deps++);const w=e.props?Ji(e.props.timeout):void 0,_=i,E={vnode:e,parent:t,parentComponent:r,namespace:o,container:n,hiddenContainer:s,deps:0,pendingId:gl++,timeout:typeof w=="number"?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(P=!1,B=!1){const{vnode:v,activeBranch:N,pendingBranch:q,pendingId:C,effects:S,parentComponent:x,container:O,isInFallback:R}=E;let M=!1;E.isHydrating?E.isHydrating=!1:P||(M=N&&q.transition&&q.transition.mode==="out-in",M&&(N.transition.afterLeave=()=>{C===E.pendingId&&(p(q,O,i===_?m(N):i,0),oi(S),R&&v.ssFallback&&(v.ssFallback.el=null))}),N&&(y(N.el)===O&&(i=m(N)),h(N,x,E,!0),!M&&R&&v.ssFallback&&bt(()=>v.ssFallback.el=null,E)),M||p(q,O,i,0)),$s(E,q),E.pendingBranch=null,E.isInFallback=!1;let z=E.parent,G=!1;for(;z;){if(z.pendingBranch){z.effects.push(...S),G=!0;break}z=z.parent}!G&&!M&&oi(S),E.effects=[],b&&t&&t.pendingBranch&&g===t.pendingId&&(t.deps--,t.deps===0&&!B&&t.resolve()),yi(v,"onResolve")},fallback(P){if(!E.pendingBranch)return;const{vnode:B,activeBranch:v,parentComponent:N,container:q,namespace:C}=E;yi(B,"onFallback");const S=m(v),x=()=>{E.isInFallback&&(d(null,P,q,S,N,null,C,a,l),$s(E,P))},O=P.transition&&P.transition.mode==="out-in";O&&(v.transition.afterLeave=x),E.isInFallback=!0,h(v,N,null,!0),O||x()},move(P,B,v){E.activeBranch&&p(E.activeBranch,P,B,v),E.container=P},next(){return E.activeBranch&&m(E.activeBranch)},registerDep(P,B,v){const N=!!E.pendingBranch;N&&E.deps++;const q=P.vnode.el;P.asyncDep.catch(C=>{Jn(C,P,0)}).then(C=>{if(P.isUnmounted||E.isUnmounted||E.pendingId!==P.suspenseId)return;P.asyncResolved=!0;const{vnode:S}=P;yl(P,C,!1),q&&(S.el=q);const x=!q&&P.subTree.el;B(P,S,y(q||P.subTree.el),q?null:m(P.subTree),E,o,v),x&&(S.placeholder=null,T(x)),Eo(P,S.el),N&&--E.deps===0&&E.resolve()})},unmount(P,B){E.isUnmounted=!0,E.activeBranch&&h(E.activeBranch,r,P,B),E.pendingBranch&&h(E.pendingBranch,r,P,B)}};return E}function Hm(e,t,r,n,s,i,o,a,l){const u=t.suspense=Ud(t,n,r,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),c=l(e,u.pendingBranch=t.ssContent,r,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function Mm(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=zd(n?r.default:r),e.ssFallback=n?zd(r.fallback):$(gt)}function zd(e){let t;if(De(e)){const r=es&&e._c;r&&(e._d=!1,I()),e=e(),r&&(e._d=!0,t=qt,Wd())}return _e(e)&&(e=_m(e)),e=Jt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Kd(e,t){t&&t.pendingBranch?_e(e)?t.effects.push(...e):t.effects.push(e):oi(e)}function $s(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,n&&n.subTree===r&&(n.vnode.el=s,Eo(n,s))}function Nm(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var Ke=Symbol.for("v-fgt"),Cn=Symbol.for("v-txt"),gt=Symbol.for("v-cmt"),Qn=Symbol.for("v-stc"),bi=[],qt=null;function I(e=!1){bi.push(qt=e?null:[])}function Wd(){bi.pop(),qt=bi[bi.length-1]||null}var es=1;function _i(e,t=!1){es+=e,e<0&&qt&&t&&(qt.hasOnce=!0)}function Gd(e){return e.dynamicChildren=es>0?qt||gs:null,Wd(),es>0&&qt&&qt.push(e),e}function Se(e,t,r,n,s,i){return Gd(Q(e,t,r,n,s,i,!0))}function K(e,t,r,n,s){return Gd($(e,t,r,n,s,!0))}function rn(e){return e?e.__v_isVNode===!0:!1}function Tr(e,t){return e.type===t.type&&e.key===t.key}function qm(e){}var Jd=({key:e})=>e??null,Ro=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?it(e)||tt(e)||De(e)?{i:It,r:e,k:t,f:!!r}:e:null);function Q(e,t=null,r=null,n=0,s=null,i=e===Ke?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jd(t),ref:t&&Ro(t),scopeId:fo,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:It};return a?(ml(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=it(r)?8:16),es>0&&!o&&qt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&qt.push(l),l}var $=Bm;function Bm(e,t=null,r=null,n=0,s=null,i=!1){if((!e||e===gd)&&(e=gt),rn(e)){const a=Er(e,t,!0);return r&&ml(a,r),es>0&&!i&&qt&&(a.shapeFlag&6?qt[qt.indexOf(e)]=a:qt.push(a)),a.patchFlag=-2,a}if(Km(e)&&(e=e.__vccOpts),t){t=tr(t);let{class:a,style:l}=t;a&&!it(a)&&(t.class=Xe(a)),Ge(l)&&(si(l)&&!_e(l)&&(l=Ze({},l)),t.style=xt(l))}const o=it(e)?1:ko(e)?128:Ku(e)?64:Ge(e)?4:De(e)?2:0;return Q(e,t,r,n,s,o,i,!0)}function tr(e){return e?si(e)||$d(e)?Ze({},e):e:null}function Er(e,t,r=!1,n=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?ye(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Jd(u),ref:t&&t.ref?r&&i?_e(i)?i.concat(Ro(t)):[i,Ro(t)]:Ro(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Er(e.ssContent),ssFallback:e.ssFallback&&Er(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Qr(c,l.clone(c)),c}function Ne(e=" ",t=0){return $(Cn,null,e,t)}function vl(e,t){const r=$(Qn,null,e);return r.staticCount=t,r}function qe(e="",t=!1){return t?(I(),K(gt,null,e)):$(gt,null,e)}function Jt(e){return e==null||typeof e=="boolean"?$(gt):_e(e)?$(Ke,null,e.slice()):rn(e)?nn(e):$(Cn,null,String(e))}function nn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Er(e)}function ml(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(_e(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),ml(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!$d(t)?t._ctx=It:s===3&&It&&(It.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else De(t)?(t={default:t,_ctx:It},r=32):(t=String(t),n&64?(r=16,t=[Ne(t)]):r=8);e.children=t,e.shapeFlag|=r}function ye(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=Xe([t.class,n.class]));else if(s==="style")t.style=xt([t.style,n.style]);else if(Ys(s)){const i=t[s],o=n[s];o&&i!==o&&!(_e(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=n[s])}return t}function Yt(e,t,r,n=null){fr(e,t,7,[r,n])}var Lm=xd(),Fm=0;function Yd(e,t,r){const n=e.type,s=(t?t.appContext:e.appContext)||Lm,i={uid:Fm++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ra(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Dd(n,s),emitsOptions:Ed(n,s),emit:null,emitted:null,propsDefaults:Ue,inheritAttrs:n.inheritAttrs,ctx:Ue,data:Ue,props:Ue,attrs:Ue,slots:Ue,refs:Ue,setupState:Ue,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ym.bind(null,i),e.ce&&e.ce(i),i}var $t=null,vt=()=>$t||It,Io,wl;{const e=Yi(),t=(r,n)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(n),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Io=t("__VUE_INSTANCE_SETTERS__",r=>$t=r),wl=t("__VUE_SSR_SETTERS__",r=>Ps=r)}var ts=e=>{const t=$t;return Io(e),e.scope.on(),()=>{e.scope.off(),Io(t)}},$o=()=>{$t&&$t.scope.off(),Io(null)};function Zd(e){return e.vnode.shapeFlag&4}var Ps=!1;function Xd(e,t=!1,r=!1){t&&wl(t);const{props:n,children:s}=e.vnode,i=Zd(e);Tm(e,n,i,t),Rm(e,s,r||t);const o=i?Vm(e,t):void 0;return t&&wl(!1),o}function Vm(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ol);const{setup:n}=r;if(n){zr();const s=e.setupContext=n.length>1?ef(e):null,i=ts(e),o=Ss(n,e,0,[e.props,s]),a=Aa(o);if(Kr(),i(),(a||e.sp)&&!en(e)&&Xa(e),a){if(o.then($o,$o),t)return o.then(l=>{yl(e,l,t)}).catch(l=>{Jn(l,e,0)});e.asyncDep=o}else yl(e,o,t)}else Qd(e,t)}function yl(e,t,r){De(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ge(t)&&(e.setupState=Va(t)),Qd(e,r)}var Po,bl;function jm(e){Po=e,bl=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Xv))}}var Um=()=>!Po;function Qd(e,t,r){const n=e.type;if(!e.render){if(!t&&Po&&!n.render){const s=n.template||ll(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,u=Ze(Ze({isCustomElement:i,delimiters:a},o),l);n.render=Po(s,u)}}e.render=n.render||ur,bl&&bl(e)}{const s=ts(e);zr();try{dm(e)}finally{Kr(),s()}}}var zm={get(e,t){return Ht(e,"get",""),e[t]}};function ef(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,zm),slots:e.slots,emit:e.emit,expose:t}}function Si(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Va(Fa(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in vi)return vi[r](e)},has(t,r){return r in t||r in vi}})):e.proxy}function _l(e,t=!0){return De(e)?e.displayName||e.name:e.name||t&&e.__name}function Km(e){return De(e)&&"__vccOpts"in e}var j=(e,t)=>pv(e,t,Ps);function gr(e,t,r){try{_i(-1);const n=arguments.length;return n===2?Ge(t)&&!_e(t)?rn(t)?$(e,null,[t]):$(e,t):$(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&rn(r)&&(r=[r]),$(e,t,r))}finally{_i(1)}}function Wm(){return;function e(t,r,n){const s=t[n];if(_e(s)&&s.includes(r)||Ge(s)&&r in s||t.extends&&e(t.extends,r,n)||t.mixins&&t.mixins.some(i=>e(i,r,n)))return!0}}function Gm(e,t,r,n){const s=r[n];if(s&&tf(s,e))return s;const i=t();return i.memo=e.slice(),i.cacheIndex=n,r[n]=i}function tf(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(Lt(r[n],t[n]))return!1;return es>0&&qt&&qt.push(e),!0}var rf="3.5.29",Jm=ur,Ym=Sv,Zm=Ts,Xm=Lu,Qm={createComponentInstance:Yd,setupComponent:Xd,renderComponentRoot:To,setCurrentRenderingInstance:li,isVNode:rn,normalizeVNode:Jt,getComponentPublicInstance:Si,ensureValidVNode:nl,pushWarningContext:wv,popWarningContext:yv},Ux=null,zx=null,Kx=null;var Sl=void 0,nf=typeof window<"u"&&window.trustedTypes;if(nf)try{Sl=nf.createPolicy("vue",{createHTML:e=>e})}catch{}var sf=Sl?e=>Sl.createHTML(e):e=>e,e0="http://www.w3.org/2000/svg",t0="http://www.w3.org/1998/Math/MathML",sn=typeof document<"u"?document:null,of=sn&&sn.createElement("template"),af={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const s=t==="svg"?sn.createElementNS(e0,e):t==="mathml"?sn.createElementNS(t0,e):r?sn.createElement(e,{is:r}):sn.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>sn.createTextNode(e),createComment:e=>sn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,i){const o=r?r.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===i||!(s=s.nextSibling)););else{of.innerHTML=sf(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=of.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},xn="transition",Ci="animation",Ds=Symbol("_vtc"),lf={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},cf=Ze({},Ya,lf),r0=e=>(e.displayName="Transition",e.props=cf,e),n0=r0((e,{slots:t})=>gr(Qu,df(e),t)),rs=(e,t=[])=>{_e(e)?e.forEach(r=>r(...t)):e&&e(...t)},uf=e=>e?_e(e)?e.some(t=>t.length>1):e.length>1:!1;function df(e){const t={};for(const S in e)S in lf||(t[S]=e[S]);if(e.css===!1)return t;const{name:r="v",type:n,duration:s,enterFromClass:i=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:p=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,m=s0(s),y=m&&m[0],T=m&&m[1],{onBeforeEnter:g,onEnter:b,onEnterCancelled:w,onLeave:_,onLeaveCancelled:E,onBeforeAppear:P=g,onAppear:B=b,onAppearCancelled:v=w}=t,N=(S,x,O,R)=>{S._enterCancelled=R,Tn(S,x?c:a),Tn(S,x?u:o),O&&O()},q=(S,x)=>{S._isLeaving=!1,Tn(S,d),Tn(S,h),Tn(S,p),x&&x()},C=S=>(x,O)=>{const R=S?B:b,M=()=>N(x,S,O);rs(R,[x,M]),ff(()=>{Tn(x,S?l:i),Mr(x,S?c:a),uf(R)||pf(x,n,y,M)})};return Ze(t,{onBeforeEnter(S){rs(g,[S]),Mr(S,i),Mr(S,o)},onBeforeAppear(S){rs(P,[S]),Mr(S,l),Mr(S,u)},onEnter:C(!1),onAppear:C(!0),onLeave(S,x){S._isLeaving=!0;const O=()=>q(S,x);Mr(S,d),S._enterCancelled?(Mr(S,p),xl(S)):(xl(S),Mr(S,p)),ff(()=>{S._isLeaving&&(Tn(S,d),Mr(S,h),uf(_)||pf(S,n,T,O))}),rs(_,[S,O])},onEnterCancelled(S){N(S,!1,void 0,!0),rs(w,[S])},onAppearCancelled(S){N(S,!0,void 0,!0),rs(v,[S])},onLeaveCancelled(S){q(S),rs(E,[S])}})}function s0(e){if(e==null)return null;if(Ge(e))return[Cl(e.enter),Cl(e.leave)];{const t=Cl(e);return[t,t]}}function Cl(e){return Ji(e)}function Mr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Ds]||(e[Ds]=new Set)).add(t)}function Tn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Ds];r&&(r.delete(t),r.size||(e[Ds]=void 0))}function ff(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var i0=0;function pf(e,t,r,n){const s=e._endId=++i0,i=()=>{s===e._endId&&n()};if(r!=null)return setTimeout(i,r);const{type:o,timeout:a,propCount:l}=hf(e,t);if(!o)return n();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,p),i()},p=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,p)}function hf(e,t){const r=window.getComputedStyle(e),n=m=>(r[m]||"").split(", "),s=n(`${xn}Delay`),i=n(`${xn}Duration`),o=gf(s,i),a=n(`${Ci}Delay`),l=n(`${Ci}Duration`),u=gf(a,l);let c=null,d=0,p=0;t===xn?o>0&&(c=xn,d=o,p=i.length):t===Ci?u>0&&(c=Ci,d=u,p=l.length):(d=Math.max(o,u),c=d>0?o>u?xn:Ci:null,p=c?c===xn?i.length:l.length:0);const h=c===xn&&/\b(?:transform|all)(?:,|$)/.test(n(`${xn}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:h}}function gf(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>vf(r)+vf(e[n])))}function vf(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function xl(e){return(e?e.ownerDocument:document).body.offsetHeight}function o0(e,t,r){const n=e[Ds];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}var Do=Symbol("_vod"),mf=Symbol("_vsh"),Oo={name:"show",beforeMount(e,{value:t},{transition:r}){e[Do]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):xi(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),xi(e,!0),n.enter(e)):n.leave(e,()=>{xi(e,!1)}):xi(e,t))},beforeUnmount(e,{value:t}){xi(e,t)}};function xi(e,t){e.style.display=t?e[Do]:"none",e[mf]=!t}function a0(){Oo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}var wf=Symbol("");function l0(e){const t=vt();if(!t)return;const r=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Ho(i,s))},n=()=>{const s=e(t.proxy);t.ce?Ho(t.ce,s):Tl(t.subTree,s),r(s)};el(()=>{oi(n)}),Qe(()=>{He(n,ur,{flush:"post"});const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),jt(()=>s.disconnect())})}function Tl(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Tl(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ho(e.el,t);else if(e.type===Ke)e.children.forEach(r=>Tl(r,t));else if(e.type===Qn){let{el:r,anchor:n}=e;for(;r&&(Ho(r,t),r!==n);)r=r.nextSibling}}function Ho(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const s in t){const i=Bg(t[s]);r.setProperty(`--${s}`,i),n+=`--${s}: ${i};`}r[wf]=n}}var c0=/(?:^|;)\s*display\s*:/;function u0(e,t,r){const n=e.style,s=it(r);let i=!1;if(r&&!s){if(t)if(it(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();r[a]==null&&Mo(n,a,"")}else for(const o in t)r[o]==null&&Mo(n,o,"");for(const o in r)o==="display"&&(i=!0),Mo(n,o,r[o])}else if(s){if(t!==r){const o=n[wf];o&&(r+=";"+o),n.cssText=r,i=c0.test(r)}}else t&&e.removeAttribute("style");Do in e&&(e[Do]=i?n.display:"",e[mf]&&(n.display="none"))}var yf=/\s*!important$/;function Mo(e,t,r){if(_e(r))r.forEach(n=>Mo(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=d0(e,t);yf.test(r)?e.setProperty(Wt(n),r.replace(yf,""),"important"):e[n]=r}}var bf=["Webkit","Moz","ms"],El={};function d0(e,t){const r=El[t];if(r)return r;let n=Ct(t);if(n!=="filter"&&n in e)return El[t]=n;n=Zs(n);for(let s=0;s<bf.length;s++){const i=bf[s]+n;if(i in e)return El[t]=i}return t}var _f="http://www.w3.org/1999/xlink";function Sf(e,t,r,n,s,i=Ng(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(_f,t.slice(6,t.length)):e.setAttributeNS(_f,t,r):r==null||i&&!uu(r)?e.removeAttribute(t):e.setAttribute(t,i?"":Sr(r)?String(r):r)}function Cf(e,t,r,n,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?sf(r):r);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(a!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const a=typeof e[t];a==="boolean"?r=uu(r):r==null&&a==="string"?(r="",o=!0):a==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(s||t)}function on(e,t,r,n){e.addEventListener(t,r,n)}function f0(e,t,r,n){e.removeEventListener(t,r,n)}var xf=Symbol("_vei");function p0(e,t,r,n,s=null){const i=e[xf]||(e[xf]={}),o=i[t];if(n&&o)o.value=n;else{const[a,l]=h0(t);n?on(e,a,i[t]=m0(n,s),l):o&&(f0(e,a,o,l),i[t]=void 0)}}var Tf=/(?:Once|Passive|Capture)$/;function h0(e){let t;if(Tf.test(e)){t={};let r;for(;r=e.match(Tf);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Wt(e.slice(2)),t]}var Al=0,g0=Promise.resolve(),v0=()=>Al||(g0.then(()=>Al=0),Al=Date.now());function m0(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;fr(w0(n,r.value),t,5,[n])};return r.value=e,r.attached=v0(),r}function w0(e,t){if(_e(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}var Ef=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Af=(e,t,r,n,s,i)=>{const o=s==="svg";t==="class"?o0(e,n,o):t==="style"?u0(e,r,n):Ys(t)?Ta(t)||p0(e,t,r,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):y0(e,t,n,o))?(Cf(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Sf(e,t,n,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!it(n))?Cf(e,Ct(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Sf(e,t,n,o))};function y0(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ef(t)&&De(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Ef(t)&&it(r)?!1:t in e}var kf={};function kl(e,t,r){let n=X(e,t);zi(n)&&(n=Ze({},n,t));class s extends Rf{constructor(o){super(n,o,r)}}return s.def=n,s}var b0=((e,t)=>kl(e,t,Gf)),_0=typeof HTMLElement<"u"?HTMLElement:class{},Rf=class bg extends _0{constructor(t,r={},n=Pl){super(),this._def=t,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==Pl?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Ze({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof bg){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,At(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const r of t)this._setAttr(r.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=n;let a;if(i&&!_e(i))for(const l in i){const u=i[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Ji(this._props[l])),(a||(a=Object.create(null)))[Ct(l)]=!0)}this._numberProps=a,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)Ye(this,n)||Object.defineProperty(this,n,{get:()=>f(r[n])})}_resolveProps(t){const{props:r}=t,n=_e(r)?r:Object.keys(r||{});for(const s of Object.keys(this))s[0]!=="_"&&n.includes(s)&&this._setProp(s,this[s]);for(const s of n.map(Ct))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(i){this._setProp(s,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let n=r?this.getAttribute(t):kf;const s=Ct(t);r&&this._numberProps&&this._numberProps[s]&&(n=Ji(n)),this._setProp(s,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,s=!1){if(r!==this._props[t]&&(this._dirty=!0,r===kf?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),s&&this._instance&&this._update(),n)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),r===!0?this.setAttribute(Wt(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Wt(t),r+""):r||this.removeAttribute(Wt(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Wf(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=$(this._def,Ze(t,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const s=(i,o)=>{this.dispatchEvent(new CustomEvent(i,zi(o[0])?Ze({detail:o},o[0]):{detail:o}))};n.emit=(i,...o)=>{s(i,o),Wt(i)!==i&&s(Wt(i),o)},this._setParent()}),r}_applyStyles(t,r){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const n=this._nonce;for(let s=t.length-1;s>=0;s--){const i=document.createElement("style");n&&i.setAttribute("nonce",n),i.textContent=t[s],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=this._getSlots(),r=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const s=t[n],i=s.getAttribute("name")||"default",o=this._slots[i],a=s.parentNode;if(o)for(const l of o){if(r&&l.nodeType===1){const u=r+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let d;for(;d=c.nextNode();)d.setAttribute(u,"")}a.insertBefore(l,s)}else for(;s.firstChild;)a.insertBefore(s.firstChild,s);a.removeChild(s)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const r=new Set;for(const n of t){const s=n.querySelectorAll("slot");for(let i=0;i<s.length;i++)r.add(s[i])}return Array.from(r)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}};function If(e){const t=vt(),r=t&&t.ce;return r||null}function S0(){const e=If();return e&&e.shadowRoot}function C0(e="$style"){{const t=vt();if(!t)return Ue;const r=t.type.__cssModules;if(!r)return Ue;const n=r[e];return n||Ue}}var $f=new WeakMap,Pf=new WeakMap,No=Symbol("_moveCb"),Df=Symbol("_enterCb"),x0=e=>(delete e.props.mode,e),T0=x0({name:"TransitionGroup",props:Ze({},cf,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=vt(),n=Ja();let s,i;return hi(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!R0(s[0].el,r.vnode.el,o)){s=[];return}s.forEach(E0),s.forEach(A0);const a=s.filter(k0);xl(r.vnode.el),a.forEach(l=>{const u=l.el,c=u.style;Mr(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[No]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[No]=null,Tn(u,o))};u.addEventListener("transitionend",d)}),s=[]}),()=>{const o=ze(e),a=df(o);let l=o.tag||Ke;if(s=[],i)for(let u=0;u<i.length;u++){const c=i[u];c.el&&c.el instanceof Element&&(s.push(c),Qr(c,Es(c,a,n,r)),$f.set(c,Of(c.el)))}i=t.default?vo(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Qr(c,Es(c,a,n,r))}return $(l,null,i)}}});function E0(e){const t=e.el;t[No]&&t[No](),t[Df]&&t[Df]()}function A0(e){Pf.set(e,Of(e.el))}function k0(e){const t=$f.get(e),r=Pf.get(e),n=t.left-r.left,s=t.top-r.top;if(n||s){const i=e.el,o=i.style,a=i.getBoundingClientRect();let l=1,u=1;return i.offsetWidth&&(l=a.width/i.offsetWidth),i.offsetHeight&&(u=a.height/i.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(l-1)<.01&&(l=1),Math.abs(u-1)<.01&&(u=1),o.transform=o.webkitTransform=`translate(${n/l}px,${s/u}px)`,o.transitionDuration="0s",e}}function Of(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function R0(e,t,r){const n=e.cloneNode(),s=e[Ds];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:o}=hf(n);return i.removeChild(n),o}var En=e=>{const t=e.props["onUpdate:modelValue"]||!1;return _e(t)?r=>ys(t,r):t};function I0(e){e.target.composing=!0}function Hf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var vr=Symbol("_assign");function Mf(e,t,r){return t&&(e=e.trim()),r&&(e=Gi(e)),e}var Ti={created(e,{modifiers:{lazy:t,trim:r,number:n}},s){e[vr]=En(s);const i=n||s.props&&s.props.type==="number";on(e,t?"change":"input",o=>{o.target.composing||e[vr](Mf(e.value,r,i))}),(r||i)&&on(e,"change",()=>{e.value=Mf(e.value,r,i)}),t||(on(e,"compositionstart",I0),on(e,"compositionend",Hf),on(e,"change",Hf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:s,number:i}},o){if(e[vr]=En(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Gi(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||s&&e.value.trim()===l)||(e.value=l))}},Rl={deep:!0,created(e,t,r){e[vr]=En(r),on(e,"change",()=>{const n=e._modelValue,s=Os(e),i=e.checked,o=e[vr];if(_e(n)){const a=Zi(n,s),l=a!==-1;if(i&&!l)o(n.concat(s));else if(!i&&l){const u=[...n];u.splice(a,1),o(u)}}else if(Kn(n)){const a=new Set(n);i?a.add(s):a.delete(s),o(a)}else o(Lf(e,i))})},mounted:Nf,beforeUpdate(e,t,r){e[vr]=En(r),Nf(e,t,r)}};function Nf(e,{value:t,oldValue:r},n){e._modelValue=t;let s;if(_e(t))s=Zi(t,n.props.value)>-1;else if(Kn(t))s=t.has(n.props.value);else{if(t===r)return;s=Ur(t,Lf(e,!0))}e.checked!==s&&(e.checked=s)}var Il={created(e,{value:t},r){e.checked=Ur(t,r.props.value),e[vr]=En(r),on(e,"change",()=>{e[vr](Os(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[vr]=En(n),t!==r&&(e.checked=Ur(t,n.props.value))}},qf={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const s=Kn(t);on(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?Gi(Os(o)):Os(o));e[vr](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,At(()=>{e._assigning=!1})}),e[vr]=En(n)},mounted(e,{value:t}){Bf(e,t)},beforeUpdate(e,t,r){e[vr]=En(r)},updated(e,{value:t}){e._assigning||Bf(e,t)}};function Bf(e,t){const r=e.multiple,n=_e(t);if(!(r&&!n&&!Kn(t))){for(let s=0,i=e.options.length;s<i;s++){const o=e.options[s],a=Os(o);if(r)if(n){const l=typeof a;l==="string"||l==="number"?o.selected=t.some(u=>String(u)===String(a)):o.selected=Zi(t,a)>-1}else o.selected=t.has(a);else if(Ur(Os(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Os(e){return"_value"in e?e._value:e.value}function Lf(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}var Ff={created(e,t,r){qo(e,t,r,null,"created")},mounted(e,t,r){qo(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){qo(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){qo(e,t,r,n,"updated")}};function Vf(e,t){switch(e){case"SELECT":return qf;case"TEXTAREA":return Ti;default:switch(t){case"checkbox":return Rl;case"radio":return Il;default:return Ti}}}function qo(e,t,r,n,s){const i=Vf(e.tagName,r.props&&r.props.type)[s];i&&i(e,t,r,n)}function $0(){Ti.getSSRProps=({value:e})=>({value:e}),Il.getSSRProps=({value:e},t)=>{if(t.props&&Ur(t.props.value,e))return{checked:!0}},Rl.getSSRProps=({value:e},t)=>{if(_e(e)){if(t.props&&Zi(e,t.props.value)>-1)return{checked:!0}}else if(Kn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ff.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=Vf(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}var P0=["ctrl","shift","alt","meta"],D0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>P0.some(r=>e[`${r}Key`]&&!t.includes(r))},Zt=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=((s,...i)=>{for(let o=0;o<t.length;o++){const a=D0[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},O0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$l=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=(s=>{if(!("key"in s))return;const i=Wt(s.key);if(t.some(o=>o===i||O0[o]===i))return e(s)}))},jf=Ze({patchProp:Af},af),Ei,Uf=!1;function zf(){return Ei||(Ei=qd(jf))}function Kf(){return Ei=Uf?Ei:Bd(jf),Uf=!0,Ei}var Wf=((...e)=>{zf().render(...e)}),H0=((...e)=>{Kf().hydrate(...e)}),Pl=((...e)=>{const t=zf().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=Yf(n);if(!s)return;const i=t._component;!De(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=r(s,!1,Jf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t}),Gf=((...e)=>{const t=Kf().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=Yf(n);if(s)return r(s,!0,Jf(s))},t});function Jf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yf(e){return it(e)?document.querySelector(e):e}var Zf=!1,M0=()=>{Zf||(Zf=!0,$0(),a0())},N0=Eg({BaseTransition:()=>Qu,BaseTransitionPropsValidators:()=>Ya,Comment:()=>gt,DeprecationTypes:()=>null,EffectScope:()=>Ra,ErrorCodes:()=>_v,ErrorTypeStrings:()=>Ym,Fragment:()=>Ke,KeepAlive:()=>Kv,ReactiveEffect:()=>Xs,Static:()=>Qn,Suspense:()=>Pm,Teleport:()=>Wa,Text:()=>Cn,TrackOpTypes:()=>hv,Transition:()=>n0,TransitionGroup:()=>T0,TriggerOpTypes:()=>gv,VueElement:()=>Rf,assertNumber:()=>bv,callWithAsyncErrorHandling:()=>fr,callWithErrorHandling:()=>Ss,camelize:()=>Ct,capitalize:()=>Zs,cloneVNode:()=>Er,compatUtils:()=>null,compile:()=>q0,computed:()=>j,createApp:()=>Pl,createBlock:()=>K,createCommentVNode:()=>qe,createElementBlock:()=>Se,createElementVNode:()=>Q,createHydrationRenderer:()=>Bd,createPropsRestProxy:()=>cm,createRenderer:()=>qd,createSSRApp:()=>Gf,createSlots:()=>Zv,createStaticVNode:()=>vl,createTextVNode:()=>Ne,createVNode:()=>$,customRef:()=>ii,defineAsyncComponent:()=>zv,defineComponent:()=>X,defineCustomElement:()=>kl,defineEmits:()=>em,defineExpose:()=>tm,defineModel:()=>sm,defineOptions:()=>rm,defineProps:()=>Qv,defineSSRCustomElement:()=>b0,defineSlots:()=>nm,devtools:()=>Zm,effect:()=>Fg,effectScope:()=>Ia,getCurrentInstance:()=>vt,getCurrentScope:()=>Xi,getCurrentWatcher:()=>vv,getTransitionRawChildren:()=>vo,guardReactiveProps:()=>tr,h:()=>gr,handleError:()=>Jn,hasInjectionContext:()=>kv,hydrate:()=>H0,hydrateOnIdle:()=>Bv,hydrateOnInteraction:()=>jv,hydrateOnMediaQuery:()=>Vv,hydrateOnVisible:()=>Fv,initCustomFormatter:()=>Wm,initDirectivesForSSR:()=>M0,inject:()=>Vt,isMemoSame:()=>tf,isProxy:()=>si,isReactive:()=>Zr,isReadonly:()=>Pr,isRef:()=>tt,isRuntimeOnly:()=>Um,isShallow:()=>Gt,isVNode:()=>rn,markRaw:()=>Fa,mergeDefaults:()=>yd,mergeModels:()=>lm,mergeProps:()=>ye,nextTick:()=>At,nodeOps:()=>af,normalizeClass:()=>Xe,normalizeProps:()=>dr,normalizeStyle:()=>xt,onActivated:()=>ad,onBeforeMount:()=>ud,onBeforeUnmount:()=>Is,onBeforeUpdate:()=>el,onDeactivated:()=>ld,onErrorCaptured:()=>hd,onMounted:()=>Qe,onRenderTracked:()=>pd,onRenderTriggered:()=>fd,onScopeDispose:()=>$a,onServerPrefetch:()=>dd,onUnmounted:()=>jt,onUpdated:()=>hi,onWatcherCleanup:()=>Ou,openBlock:()=>I,patchProp:()=>Af,popScopeId:()=>Ev,provide:()=>Yn,proxyRefs:()=>Va,pushScopeId:()=>Tv,queuePostFlushCb:()=>oi,reactive:()=>Jr,readonly:()=>Mt,ref:()=>V,registerRuntimeCompiler:()=>jm,render:()=>Wf,renderList:()=>hr,renderSlot:()=>te,resolveComponent:()=>Jv,resolveDirective:()=>Yv,resolveDynamicComponent:()=>gi,resolveFilter:()=>null,resolveTransitionHooks:()=>Es,setBlockTracking:()=>_i,setDevtoolsHook:()=>Xm,setTransitionHooks:()=>Qr,shallowReactive:()=>Iu,shallowReadonly:()=>Yr,shallowRef:()=>ft,ssrContextKey:()=>Fu,ssrUtils:()=>Qm,stop:()=>Vg,toDisplayString:()=>Le,toHandlerKey:()=>ws,toHandlers:()=>md,toRaw:()=>ze,toRef:()=>ja,toRefs:()=>Nt,toValue:()=>ke,transformVNodeArgs:()=>qm,triggerRef:()=>Pu,unref:()=>f,useAttrs:()=>am,useCssModule:()=>C0,useCssVars:()=>l0,useHost:()=>If,useId:()=>rd,useModel:()=>wm,useSSRContext:()=>Vu,useShadowRoot:()=>S0,useSlots:()=>om,useTemplateRef:()=>Pv,useTransitionState:()=>Ja,vModelCheckbox:()=>Rl,vModelDynamic:()=>Ff,vModelRadio:()=>Il,vModelSelect:()=>qf,vModelText:()=>Ti,vShow:()=>Oo,version:()=>rf,warn:()=>Jm,watch:()=>He,watchEffect:()=>lt,watchPostEffect:()=>za,watchSyncEffect:()=>ju,withAsyncContext:()=>um,withCtx:()=>k,withDefaults:()=>im,withDirectives:()=>po,withKeys:()=>$l,withMemo:()=>Gm,withModifiers:()=>Zt,withScopeId:()=>Av},1),q0=()=>{},B0=2;const Ar={CALL_HISTORY:"call_history",CONTACTS:"contacts",CONNECTIONS:"connections"},L0=(e="webphone_db")=>{const t=V(null),r=V(!1);return{initDB:()=>new Promise((l,u)=>{if(t.value){l();return}const c=indexedDB.open(e,B0);c.onerror=d=>{console.error("IndexedDB error:",d),u(d)},c.onsuccess=d=>{t.value=d.target.result,r.value=!0,l()},c.onupgradeneeded=d=>{const p=d.target.result;p.objectStoreNames.contains(Ar.CALL_HISTORY)||p.createObjectStore(Ar.CALL_HISTORY,{keyPath:"id"}),p.objectStoreNames.contains(Ar.CONTACTS)||p.createObjectStore(Ar.CONTACTS,{keyPath:"number"}),p.objectStoreNames.contains(Ar.CONNECTIONS)||p.createObjectStore(Ar.CONNECTIONS,{keyPath:"id"})}}),getAll:l=>new Promise((u,c)=>{if(!t.value)return c("DB not initialized");const d=t.value.transaction([l],"readonly").objectStore(l).getAll();d.onsuccess=()=>u(d.result),d.onerror=()=>c(d.error)}),add:(l,u)=>new Promise((c,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).add(u);p.onsuccess=()=>c(),p.onerror=()=>d(p.error)}),put:(l,u)=>new Promise((c,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).put(u);p.onsuccess=()=>c(),p.onerror=()=>d(p.error)}),remove:(l,u)=>new Promise((c,d)=>{if(!t.value)return d("DB not initialized");const p=t.value.transaction([l],"readwrite").objectStore(l).delete(u);p.onsuccess=()=>c(),p.onerror=()=>d(p.error)}),isReady:r}},F0=e=>{const t=V(e?.initialConnected??!1),r=V(0),n=V(null),s=V([]),i=V([]),{initDB:o,getAll:a,add:l}=L0(e?.server&&e?.extension?`webphone_${e.server}_${e.extension}`.replace(/[^a-z0-9_]/gi,"_"):"webphone_db");o().then(async()=>{try{s.value=(await a(Ar.CALL_HISTORY)).sort((Y,le)=>le.startTime-Y.startTime),i.value=await a(Ar.CONTACTS)}catch(Y){console.error("Error loading data from IndexedDB:",Y)}});const u=V([{id:0,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1},{id:1,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1},{id:2,status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1}]),c=V(e?.initialKeypadVisible??!0),d=V(""),p=V(!1),h=j(()=>u.value.find(Y=>Y.id===r.value)||u.value[0]),m=j(()=>h.value?.status||"idle"),y=j(()=>h.value?.remoteNumber||""),T=j(()=>h.value?.isMuted||!1),g=j(()=>h.value?.isHeld||!1),b=j({get:()=>h.value?.keypadValue||"",set:Y=>{h.value&&(h.value.keypadValue=Y)}}),w=Y=>{t.value=Y},_=Y=>{u.value.some(le=>le.id===Y)&&(r.value=Y)},E=(Y,le)=>{const de=u.value.find(Ie=>Ie.id===Y);de&&Object.assign(de,le)};return{isConnected:t,activeChannelId:r,channels:u,activeChannel:h,callStatus:m,remoteNumber:y,isMuted:T,isHeld:g,keypadValue:b,isKeypadVisible:c,lastDialedNumber:d,videoModeEnabled:p,transferInProgress:n,setConnected:w,setActiveChannelId:_,updateChannelState:E,setCallStatus:Y=>{E(r.value,{status:Y})},setIncomingCall:Y=>{E(r.value,{remoteNumber:Y})},resetCall:()=>{E(r.value,{status:"idle",remoteNumber:"",isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1})},addCallLog:async Y=>{const le={id:crypto.randomUUID(),...Y};s.value.unshift(le);try{await l(Ar.CALL_HISTORY,le)}catch(de){console.error("Error saving call log:",de)}},callHistory:s,contacts:i,addContact:async Y=>{try{await l(Ar.CONTACTS,Y),i.value=await a(Ar.CONTACTS)}catch(le){console.error("Error saving contact:",le)}},setMuted:Y=>{E(r.value,{isMuted:Y})},setHeld:Y=>{E(r.value,{isHeld:Y})},appendKeypad:Y=>{b.value+=Y},clearKeypad:()=>{b.value=""},backspaceKeypad:()=>{b.value=b.value.slice(0,-1)},toggleKeypad:()=>{c.value=!c.value},setLastDialedNumber:Y=>{d.value=Y},setTransferInProgress:Y=>{n.value=Y},toggleVideoMode:()=>{p.value=!p.value}}},V0="0.21.1";var ns=class extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}},Dl=class extends ns{constructor(e){super(e||"Unsupported content type.")}},Ol=class extends ns{constructor(e){super(e||"Request pending.")}},j0=class extends ns{constructor(e){super(e||"Unspecified session description handler error.")}},Hl=class extends ns{constructor(){super("The session has terminated.")}},Ai=class extends ns{constructor(e){super(e||"An error occurred during state transition.")}},U0=class{constructor(e){this.incomingAckRequest=e}get request(){return this.incomingAckRequest.message}},z0=class{constructor(e){this.incomingByeRequest=e}get request(){return this.incomingByeRequest.message}accept(e){return this.incomingByeRequest.accept(e),Promise.resolve()}reject(e){return this.incomingByeRequest.reject(e),Promise.resolve()}},K0=class{constructor(e){this.incomingCancelRequest=e}get request(){return this.incomingCancelRequest}},Hs=class{constructor(){this.listeners=new Array}addListener(e,t){const r=n=>{this.removeListener(r),e(n)};t?.once===!0?this.listeners.push(r):this.listeners.push(e)}emit(e){this.listeners.slice().forEach(t=>t(e))}removeAllListeners(){this.listeners=[]}removeListener(e){this.listeners=this.listeners.filter(t=>t!==e)}on(e){return this.addListener(e)}off(e){return this.removeListener(e)}once(e){return this.addListener(e,{once:!0})}},W0=class{constructor(e){this.incomingInfoRequest=e}get request(){return this.incomingInfoRequest.message}accept(e){return this.incomingInfoRequest.accept(e),Promise.resolve()}reject(e){return this.incomingInfoRequest.reject(e),Promise.resolve()}},Xf=class{constructor(e){this.parameters={};for(const t in e)e.hasOwnProperty(t)&&this.setParam(t,e[t])}setParam(e,t){e&&(this.parameters[e.toLowerCase()]=typeof t>"u"||t===null?null:t.toString())}getParam(e){if(e)return this.parameters[e.toLowerCase()]}hasParam(e){return!!(e&&this.parameters[e.toLowerCase()]!==void 0)}deleteParam(e){if(e=e.toLowerCase(),this.hasParam(e)){const t=this.parameters[e];return delete this.parameters[e],t}}clearParams(){this.parameters={}}},mr=class _g extends Xf{constructor(t,r,n){super(n),this.uri=t,this._displayName=r}get friendlyName(){return this.displayName||this.uri.aor}get displayName(){return this._displayName}set displayName(t){this._displayName=t}clone(){return new _g(this.uri.clone(),this._displayName,JSON.parse(JSON.stringify(this.parameters)))}toString(){let t=this.displayName||this.displayName==="0"?'"'+this.displayName+'" ':"";t+="<"+this.uri.toString()+">";for(const r in this.parameters)this.parameters.hasOwnProperty(r)&&(t+=";"+r,this.parameters[r]!==null&&(t+="="+this.parameters[r]));return t}},An=class Sg extends Xf{constructor(t="sip",r,n,s,i,o){if(super(i||{}),this.headers={},!n)throw new TypeError('missing or invalid "host" parameter');for(const a in o)o.hasOwnProperty(a)&&this.setHeader(a,o[a]);this.raw={scheme:t,user:r,host:n,port:s},this.normal={scheme:t.toLowerCase(),user:r,host:n.toLowerCase(),port:s}}get scheme(){return this.normal.scheme}set scheme(t){this.raw.scheme=t,this.normal.scheme=t.toLowerCase()}get user(){return this.normal.user}set user(t){this.normal.user=this.raw.user=t}get host(){return this.normal.host}set host(t){this.raw.host=t,this.normal.host=t.toLowerCase()}get aor(){return this.normal.user+"@"+this.normal.host}get port(){return this.normal.port}set port(t){this.normal.port=this.raw.port=t}setHeader(t,r){this.headers[this.headerize(t)]=r instanceof Array?r:[r]}getHeader(t){if(t)return this.headers[this.headerize(t)]}hasHeader(t){return!!t&&!!this.headers.hasOwnProperty(this.headerize(t))}deleteHeader(t){if(t=this.headerize(t),this.headers.hasOwnProperty(t)){const r=this.headers[t];return delete this.headers[t],r}}clearHeaders(){this.headers={}}clone(){return new Sg(this._raw.scheme,this._raw.user||"",this._raw.host,this._raw.port,JSON.parse(JSON.stringify(this.parameters)),JSON.parse(JSON.stringify(this.headers)))}toRaw(){return this._toString(this._raw)}toString(){return this._toString(this._normal)}get _normal(){return this.normal}get _raw(){return this.raw}_toString(t){let r=t.scheme+":";t.scheme.toLowerCase().match("^sips?$")||(r+="//"),t.user&&(r+=this.escapeUser(t.user)+"@"),r+=t.host,(t.port||t.port===0)&&(r+=":"+t.port);for(const s in this.parameters)this.parameters.hasOwnProperty(s)&&(r+=";"+s,this.parameters[s]!==null&&(r+="="+this.parameters[s]));const n=[];for(const s in this.headers)if(this.headers.hasOwnProperty(s))for(const i in this.headers[s])this.headers[s].hasOwnProperty(i)&&n.push(s+"="+this.headers[s][i]);return n.length>0&&(r+="?"+n.join("&")),r}escapeUser(t){let r;try{r=decodeURIComponent(t)}catch(n){throw n}return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}headerize(t){const r={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},n=t.toLowerCase().replace(/_/g,"-").split("-"),s=n.length;let i="";for(let o=0;o<s;o++)o!==0&&(i+="-"),i+=n[o].charAt(0).toUpperCase()+n[o].substring(1);return r[i]&&(i=r[i]),i}};function Qf(e,t){if(e.scheme!==t.scheme||e.user!==t.user||e.host!==t.host||e.port!==t.port)return!1;function r(i,o){const a=Object.keys(i.parameters),l=Object.keys(o.parameters);return!(!a.filter(u=>l.includes(u)).every(u=>i.parameters[u]===o.parameters[u])||!["user","ttl","method","transport"].every(u=>i.hasParam(u)&&o.hasParam(u)||!i.hasParam(u)&&!o.hasParam(u))||!["maddr"].every(u=>i.hasParam(u)&&o.hasParam(u)||!i.hasParam(u)&&!o.hasParam(u)))}if(!r(e,t))return!1;const n=Object.keys(e.headers),s=Object.keys(t.headers);if(n.length!==0||s.length!==0){if(n.length!==s.length)return!1;const i=n.filter(o=>s.includes(o));if(i.length!==s.length||!i.every(o=>e.headers[o].length&&t.headers[o].length&&e.headers[o][0]===t.headers[o][0]))return!1}return!0}function Ml(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,r+=r.repeat(t),e+r.slice(0,t))}var ep=class Sa extends Error{constructor(t,r,n,s){super(),this.message=t,this.expected=r,this.found=n,this.location=s,this.name="SyntaxError",typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(this,Sa.prototype):this.__proto__=Sa.prototype,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Sa)}static buildMessage(t,r){function n(u){return u.charCodeAt(0).toString(16).toUpperCase()}function s(u){return u.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,c=>"\\x0"+n(c)).replace(/[\x10-\x1F\x7F-\x9F]/g,c=>"\\x"+n(c))}function i(u){return u.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,c=>"\\x0"+n(c)).replace(/[\x10-\x1F\x7F-\x9F]/g,c=>"\\x"+n(c))}function o(u){switch(u.type){case"literal":return'"'+s(u.text)+'"';case"class":const c=u.parts.map(d=>Array.isArray(d)?i(d[0])+"-"+i(d[1]):i(d));return"["+(u.inverted?"^":"")+c+"]";case"any":return"any character";case"end":return"end of input";case"other":return u.description}}function a(u){const c=u.map(o);let d,p;if(c.sort(),c.length>0){for(d=1,p=1;d<c.length;d++)c[d-1]!==c[d]&&(c[p]=c[d],p++);c.length=p}switch(c.length){case 1:return c[0];case 2:return c[0]+" or "+c[1];default:return c.slice(0,-1).join(", ")+", or "+c[c.length-1]}}function l(u){return u?'"'+s(u)+'"':"end of input"}return"Expected "+a(t)+" but "+l(r)+" found."}format(t){let r="Error: "+this.message;if(this.location){let n=null,s;for(s=0;s<t.length;s++)if(t[s].source===this.location.source){n=t[s].text.split(/\r\n|\n|\r/g);break}let i=this.location.start,o=this.location.source+":"+i.line+":"+i.column;if(n){let a=this.location.end,l=Ml("",i.line.toString().length," "),u=n[i.line-1],c=i.line===a.line?a.column:u.length+1;r+=`
|
|
6
6
|
--> `+o+`
|
|
7
7
|
`+l+` |
|
|
8
8
|
`+i.line+" | "+u+`
|
|
9
|
-
`+l+" | "+
|
|
10
|
-
at `+o}return r}};function
|
|
11
|
-
`,
|
|
12
|
-
`,!1),/^[0-9]/,S([["0","9"]],!1,!1),/^[a-zA-Z]/,S([["a","z"],["A","Z"]],!1,!1),/^[0-9a-fA-F]/,S([["0","9"],["a","f"],["A","F"]],!1,!1),/^[\0-\xFF]/,S([["\0","ÿ"]],!1,!1),/^["]/,S(['"'],!1,!1)," ",v(" ",!1)," ",v(" ",!1),/^[a-zA-Z0-9]/,S([["a","z"],["A","Z"],["0","9"]],!1,!1),";",v(";",!1),"/",v("/",!1),"?",v("?",!1),":",v(":",!1),"@",v("@",!1),"&",v("&",!1),"=",v("=",!1),"+",v("+",!1),"$",v("$",!1),",",v(",",!1),"-",v("-",!1),"_",v("_",!1),".",v(".",!1),"!",v("!",!1),"~",v("~",!1),"*",v("*",!1),"'",v("'",!1),"(",v("(",!1),")",v(")",!1),"%",v("%",!1),function(){return" "},function(){return":"},/^[!-~]/,S([["!","~"]],!1,!1),/^[\x80-\uFFFF]/,S([["",""]],!1,!1),/^[\x80-\xBF]/,S([["","¿"]],!1,!1),/^[a-f]/,S([["a","f"]],!1,!1),"`",v("`",!1),"<",v("<",!1),">",v(">",!1),"\\",v("\\",!1),"[",v("[",!1),"]",v("]",!1),"{",v("{",!1),"}",v("}",!1),function(){return"*"},function(){return"/"},function(){return"="},function(){return"("},function(){return")"},function(){return">"},function(){return"<"},function(){return","},function(){return";"},function(){return":"},function(){return'"'},/^[!-']/,S([["!","'"]],!1,!1),/^[*-[]/,S([["*","["]],!1,!1),/^[\]-~]/,S([["]","~"]],!1,!1),function(C){return C},/^[#-[]/,S([["#","["]],!1,!1),/^[\0-\t]/,S([["\0"," "]],!1,!1),/^[\v-\f]/,S([["\v","\f"]],!1,!1),/^[\x0E-\x7F]/,S([["",""]],!1,!1),function(){t=t||{data:{}},t.data.uri=new Tn(t.data.scheme,t.data.user,t.data.host,t.data.port),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port},function(){t=t||{data:{}},t.data.uri=new Tn(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params,t.startRule==="SIP_URI"&&(t.data=t.data.uri)},"sips",v("sips",!0),"sip",v("sip",!0),function(C){t=t||{data:{}},t.data.scheme=C},function(){t=t||{data:{}},t.data.user=decodeURIComponent(w().slice(0,-1))},function(){t=t||{data:{}},t.data.password=w()},function(){return t=t||{data:{}},t.data.host=w(),t.data.host},function(){return t=t||{data:{}},t.data.host_type="domain",w()},/^[a-zA-Z0-9_\-]/,S([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),/^[a-zA-Z0-9\-]/,S([["a","z"],["A","Z"],["0","9"],"-"],!1,!1),function(){return t=t||{data:{}},t.data.host_type="IPv6",w()},"::",v("::",!1),function(){return t=t||{data:{}},t.data.host_type="IPv6",w()},function(){return t=t||{data:{}},t.data.host_type="IPv4",w()},"25",v("25",!1),/^[0-5]/,S([["0","5"]],!1,!1),"2",v("2",!1),/^[0-4]/,S([["0","4"]],!1,!1),"1",v("1",!1),/^[1-9]/,S([["1","9"]],!1,!1),function(C){return t=t||{data:{}},C=parseInt(C.join("")),t.data.port=C,C},"transport=",v("transport=",!0),"udp",v("udp",!0),"tcp",v("tcp",!0),"sctp",v("sctp",!0),"tls",v("tls",!0),function(C){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.transport=C.toLowerCase()},"user=",v("user=",!0),"phone",v("phone",!0),"ip",v("ip",!0),function(C){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.user=C.toLowerCase()},"method=",v("method=",!0),function(C){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.method=C},"ttl=",v("ttl=",!0),function(C){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.ttl=C},"maddr=",v("maddr=",!0),function(C){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.maddr=C},"lr",v("lr",!0),function(){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.lr=void 0},function(C,b){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),b===null?b=void 0:b=b[1],t.data.uri_params[C.toLowerCase()]=b},function(C,b){C=C.join("").toLowerCase(),b=b.join(""),t=t||{data:{}},t.data.uri_headers||(t.data.uri_headers={}),t.data.uri_headers[C]?t.data.uri_headers[C].push(b):t.data.uri_headers[C]=[b]},function(){t=t||{data:{}},t.startRule==="Refer_To"&&(t.data.uri=new Tn(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params)},"//",v("//",!1),function(){t=t||{data:{}},t.data.scheme=w()},v("SIP",!0),function(){t=t||{data:{}},t.data.sip_version=w()},"INVITE",v("INVITE",!1),"ACK",v("ACK",!1),"VXACH",v("VXACH",!1),"OPTIONS",v("OPTIONS",!1),"BYE",v("BYE",!1),"CANCEL",v("CANCEL",!1),"REGISTER",v("REGISTER",!1),"SUBSCRIBE",v("SUBSCRIBE",!1),"NOTIFY",v("NOTIFY",!1),"REFER",v("REFER",!1),"PUBLISH",v("PUBLISH",!1),function(){return t=t||{data:{}},t.data.method=w(),t.data.method},function(C){t=t||{data:{}},t.data.status_code=parseInt(C.join(""))},function(){t=t||{data:{}},t.data.reason_phrase=w()},function(){t=t||{data:{}},t.data=w()},function(){var C,b;for(t=t||{data:{}},b=t.data.multi_header.length,C=0;C<b;C++)if(t.data.multi_header[C].parsed===null){t.data=null;break}t.data!==null?t.data=t.data.multi_header:t.data=-1},function(){var C;t=t||{data:{}},t.data.multi_header||(t.data.multi_header=[]);try{C=new vr(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch{C=null}t.data.multi_header.push({position:l,offset:T().start.offset,parsed:C})},function(C){C=w().trim(),C[0]==='"'&&(C=C.substring(1,C.length-1)),t=t||{data:{}},t.data.displayName=C},"q",v("q",!0),function(C){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.q=C},"expires",v("expires",!0),function(C){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.expires=C},function(C){return parseInt(C.join(""))},"0",v("0",!1),function(){return parseFloat(w())},function(C,b){t=t||{data:{}},t.data.params||(t.data.params={}),b===null?b=void 0:b=b[1],t.data.params[C.toLowerCase()]=b},"render",v("render",!0),"session",v("session",!0),"icon",v("icon",!0),"alert",v("alert",!0),function(){t=t||{data:{}},t.startRule==="Content_Disposition"&&(t.data.type=w().toLowerCase())},"handling",v("handling",!0),"optional",v("optional",!0),"required",v("required",!0),function(C){t=t||{data:{}},t.data=parseInt(C.join(""))},function(){t=t||{data:{}},t.data=w()},"text",v("text",!0),"image",v("image",!0),"audio",v("audio",!0),"video",v("video",!0),"application",v("application",!0),"message",v("message",!0),"multipart",v("multipart",!0),"x-",v("x-",!0),function(C){t=t||{data:{}},t.data.value=parseInt(C.join(""))},function(C){t=t||{data:{}},t.data=C},function(C){t=t||{data:{}},t.data.event=C.toLowerCase()},function(){t=t||{data:{}};var C=t.data.tag;t.data=new vr(t.data.uri,t.data.displayName,t.data.params),C&&t.data.setParam("tag",C)},"tag",v("tag",!0),function(C){t=t||{data:{}},t.data.tag=C},function(C){t=t||{data:{}},t.data=parseInt(C.join(""))},function(C){t=t||{data:{}},t.data=C},function(){t=t||{data:{}},t.data=new vr(t.data.uri,t.data.displayName,t.data.params)},"digest",v("Digest",!0),"realm",v("realm",!0),function(C){t=t||{data:{}},t.data.realm=C},"domain",v("domain",!0),"nonce",v("nonce",!0),function(C){t=t||{data:{}},t.data.nonce=C},"opaque",v("opaque",!0),function(C){t=t||{data:{}},t.data.opaque=C},"stale",v("stale",!0),"true",v("true",!0),function(){t=t||{data:{}},t.data.stale=!0},"false",v("false",!0),function(){t=t||{data:{}},t.data.stale=!1},"algorithm",v("algorithm",!0),"md5",v("MD5",!0),"md5-sess",v("MD5-sess",!0),function(C){t=t||{data:{}},t.data.algorithm=C.toUpperCase()},"qop",v("qop",!0),"auth-int",v("auth-int",!0),"auth",v("auth",!0),function(C){t=t||{data:{}},t.data.qop||(t.data.qop=[]),t.data.qop.push(C.toLowerCase())},function(C){t=t||{data:{}},t.data.value=parseInt(C.join(""))},function(){var C,b;for(t=t||{data:{}},b=t.data.multi_header.length,C=0;C<b;C++)if(t.data.multi_header[C].parsed===null){t.data=null;break}t.data!==null?t.data=t.data.multi_header:t.data=-1},function(){var C;t=t||{data:{}},t.data.multi_header||(t.data.multi_header=[]);try{C=new vr(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch{C=null}t.data.multi_header.push({position:l,offset:T().start.offset,parsed:C})},function(){t=t||{data:{}},t.data=new vr(t.data.uri,t.data.displayName,t.data.params)},function(){t=t||{data:{}},t.data.replaces_from_tag&&t.data.replaces_to_tag||(t.data=-1)},function(){t=t||{data:{}},t.data={call_id:t.data}},"from-tag",v("from-tag",!0),function(C){t=t||{data:{}},t.data.replaces_from_tag=C},"to-tag",v("to-tag",!0),function(C){t=t||{data:{}},t.data.replaces_to_tag=C},"early-only",v("early-only",!0),function(){t=t||{data:{}},t.data.early_only=!0},function(C,b){return b},function(C,b){return q(C,b)},function(C){t=t||{data:{}},t.startRule==="Require"&&(t.data=C||[])},function(C){t=t||{data:{}},t.data.value=parseInt(C.join(""))},"active",v("active",!0),"pending",v("pending",!0),"terminated",v("terminated",!0),function(){t=t||{data:{}},t.data.state=w()},"reason",v("reason",!0),function(C){t=t||{data:{}},typeof C<"u"&&(t.data.reason=C)},function(C){t=t||{data:{}},typeof C<"u"&&(t.data.expires=C)},"retry_after",v("retry_after",!0),function(C){t=t||{data:{}},typeof C<"u"&&(t.data.retry_after=C)},"deactivated",v("deactivated",!0),"probation",v("probation",!0),"rejected",v("rejected",!0),"timeout",v("timeout",!0),"giveup",v("giveup",!0),"noresource",v("noresource",!0),"invariant",v("invariant",!0),function(C){t=t||{data:{}},t.startRule==="Supported"&&(t.data=C||[])},function(){t=t||{data:{}};var C=t.data.tag;t.data=new vr(t.data.uri,t.data.displayName,t.data.params),C&&t.data.setParam("tag",C)},"ttl",v("ttl",!0),function(C){t=t||{data:{}},t.data.ttl=C},"maddr",v("maddr",!0),function(C){t=t||{data:{}},t.data.maddr=C},"received",v("received",!0),function(C){t=t||{data:{}},t.data.received=C},"branch",v("branch",!0),function(C){t=t||{data:{}},t.data.branch=C},"rport",v("rport",!0),function(C){t=t||{data:{}},typeof C<"u"&&(t.data.rport=C.join(""))},function(C){t=t||{data:{}},t.data.protocol=C},v("UDP",!0),v("TCP",!0),v("TLS",!0),v("SCTP",!0),function(C){t=t||{data:{}},t.data.transport=C},function(){t=t||{data:{}},t.data.host=w()},function(C){t=t||{data:{}},t.data.port=parseInt(C.join(""))},function(C){return parseInt(C.join(""))},function(C){t=t||{data:{}},t.startRule==="Session_Expires"&&(t.data.deltaSeconds=C)},"refresher",v("refresher",!1),"uas",v("uas",!1),"uac",v("uac",!1),function(C){t=t||{data:{}},t.startRule==="Session_Expires"&&(t.data.refresher=C)},function(C){t=t||{data:{}},t.startRule==="Min_SE"&&(t.data=C)},"stuns",v("stuns",!0),"stun",v("stun",!0),function(C){t=t||{data:{}},t.data.scheme=C},function(C){t=t||{data:{}},t.data.host=C},"?transport=",v("?transport=",!1),"turns",v("turns",!0),"turn",v("turn",!0),function(C){t=t||{data:{}},t.data.transport=C},function(){t=t||{data:{}},t.data=w()},"Referred-By",v("Referred-By",!1),"b",v("b",!1),"cid",v("cid",!1)],a=[m('2 ""6 7!'),m('4"""5!7#'),m('4$""5!7%'),m(`4&""5!7'`),m(";'.# &;("),m('4(""5!7)'),m('4*""5!7+'),m('2,""6,7-'),m('2.""6.7/'),m('40""5!71'),m('22""6273. &24""6475.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),m(";).# &;,"),m('2F""6F7G.} &2H""6H7I.q &2J""6J7K.e &2L""6L7M.Y &2N""6N7O.M &2P""6P7Q.A &2R""6R7S.5 &2T""6T7U.) &2V""6V7W'),m(`%%2X""6X7Y/5#;#/,$;#/#$+#)(#'#("'#&'#/"!&,)`),m(`%%$;$0#*;$&/,#; /#$+")("'#&'#." &"/=#$;$/�#*;$&&&#/'$8":Z" )("'#&'#`),m(';.." &"'),m(`%$;'.# &;(0)*;'.# &;(&/?#28""6879/0$;//'$8#:[# )(#'#("'#&'#`),m(`%%$;2/�#*;2&&&#/g#$%$;.0#*;.&/,#;2/#$+")("'#&'#0=*%$;.0#*;.&/,#;2/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),m('4\\""5!7].# &;3'),m('4^""5!7_'),m('4`""5!7a'),m(';!.) &4b""5!7c'),m('%$;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),m('%$;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),m(`2T""6T7U.ã &2V""6V7W.× &2f""6f7g.Ë &2h""6h7i.¿ &2:""6:7;.³ &2D""6D7E.§ &22""6273. &28""6879. &2j""6j7k. &;&.} &24""6475.q &2l""6l7m.e &2n""6n7o.Y &26""6677.M &2>""6>7?.A &2p""6p7q.5 &2r""6r7s.) &;'.# &;(`),m('%$;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s/Ĵ#0ı*;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s&&&#/"!&,)'),m(`%;//?#2P""6P7Q/0$;//'$8#:t# )(#'#("'#&'#`),m(`%;//?#24""6475/0$;//'$8#:u# )(#'#("'#&'#`),m(`%;//?#2>""6>7?/0$;//'$8#:v# )(#'#("'#&'#`),m(`%;//?#2T""6T7U/0$;//'$8#:w# )(#'#("'#&'#`),m(`%;//?#2V""6V7W/0$;//'$8#:x# )(#'#("'#&'#`),m(`%2h""6h7i/0#;//'$8":y" )("'#&'#`),m(`%;//6#2f""6f7g/'$8":z" )("'#&'#`),m(`%;//?#2D""6D7E/0$;//'$8#:{# )(#'#("'#&'#`),m(`%;//?#22""6273/0$;//'$8#:|# )(#'#("'#&'#`),m(`%;//?#28""6879/0$;//'$8#:}# )(#'#("'#&'#`),m(`%;//0#;&/'$8":~" )("'#&'#`),m(`%;&/0#;//'$8":~" )("'#&'#`),m(`%;=/T#$;G.) &;K.# &;F0/*;G.) &;K.# &;F&/,$;>/#$+#)(#'#("'#&'#`),m('4""5!7.A &4""5!7.5 &4""5!7.) &;3.# &;.'),m(`%%;//Q#;&/H$$;J.# &;K0)*;J.# &;K&/,$;&/#$+$)($'#(#'#("'#&'#/"!&,)`),m(`%;//]#;&/T$%$;J.# &;K0)*;J.# &;K&/"!&,)/1$;&/($8$:
$!!)($'#(#'#("'#&'#`),m(';..G &2L""6L7M.; &4""5!7./ &4""5!7.# &;3'),m(`%2j""6j7k/J#4""5!7.5 &4""5!7.) &4""5!7/#$+")("'#&'#`),m(`%;N/M#28""6879/>$;O." &"/0$;S/'$8$:$ )($'#(#'#("'#&'#`),m(`%;N/d#28""6879/U$;O." &"/G$;S/>$;_/5$;l." &"/'$8&:& )(&'#(%'#($'#(#'#("'#&'#`),m(`%3""5$7.) &3""5#7/' 8!:!! )`),m(`%;P/]#%28""6879/,#;R/#$+")("'#&'#." &"/6$2:""6:7;/'$8#:# )(#'#("'#&'#`),m("$;+.) &;-.# &;Q/2#0/*;+.) &;-.# &;Q&&&#"),m('2<""6<7=.q &2>""6>7?.e &2@""6@7A.Y &2B""6B7C.M &2D""6D7E.A &22""6273.5 &26""6677.) &24""6475'),m('%$;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E0e*;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E&/& 8!:! )'),m(`%;T/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),m("%;U.) &;\\.# &;X/& 8!:! )"),m(`%$%;V/2#2J""6J7K/#$+")("'#&'#0<*%;V/2#2J""6J7K/#$+")("'#&'#&/D#;W/;$2J""6J7K." &"/'$8#:# )(#'#("'#&'#`),m('$4""5!7/,#0)*4""5!7&&&#'),m(`%4$""5!7%/?#$4""5!70)*4""5!7&/#$+")("'#&'#`),m(`%2l""6l7m/?#;Y/6$2n""6n7o/'$8#:# )(#'#("'#&'#`),m(`%%;Z/³#28""6879/¤$;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+-)(-'#(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ސ &%2""67/¤#;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+,)(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.۹ &%2""67/#;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ٺ &%2""67/t#;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.ؓ &%2""67/\\#;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+&)(&'#(%'#($'#(#'#("'#&'#.ׄ &%2""67/D#;Z/;$28""6879/,$;[/#$+$)($'#(#'#("'#&'#.֍ &%2""67/,#;[/#$+")("'#&'#.ծ &%2""67/,#;Z/#$+")("'#&'#.Տ &%;Z/#2""67/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$++)(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ӈ &%;Z/ª#%28""6879/,#;Z/#$+")("'#&'#." &"/$2""67/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.а &%;Z/¹#%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/k$2""67/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+))()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ί &%;Z/È#%28""6879/,#;Z/#$+")("'#&'#." &"/¡$%28""6879/,#;Z/#$+")("'#&'#." &"/z$%28""6879/,#;Z/#$+")("'#&'#." &"/S$2""67/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.˕ &%;Z/×#%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;[/#$+')(''#(&'#(%'#($'#(#'#("'#&'#.ȑ &%;Z/þ#%28""6879/,#;Z/#$+")("'#&'#." &"/×$%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;Z/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ħ &%;Z/Ĝ#%28""6879/,#;Z/#$+")("'#&'#." &"/õ$%28""6879/,#;Z/#$+")("'#&'#." &"/Î$%28""6879/,#;Z/#$+")("'#&'#." &"/§$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/Y$%28""6879/,#;Z/#$+")("'#&'#." &"/2$2""67/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#/& 8!: ! )`),m(`%;#/M#;#." &"/?$;#." &"/1$;#." &"/#$+$)($'#(#'#("'#&'#`),m(`%;Z/;#28""6879/,$;Z/#$+#)(#'#("'#&'#.# &;\\`),m(`%;]/o#2J""6J7K/\`$;]/W$2J""6J7K/H$;]/?$2J""6J7K/0$;]/'$8':¡' )(''#(&'#(%'#($'#(#'#("'#&'#`),m(`%2¢""6¢7£/2#4¤""5!7¥/#$+")("'#&'#. &%2¦""6¦7§/;#4¨""5!7©/,$;!/#$+#)(#'#("'#&'#.j &%2ª""6ª7«/5#;!/,$;!/#$+#)(#'#("'#&'#.B &%4¬""5!7/,#;!/#$+")("'#&'#.# &;!`),m(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:®!! )`),m(`$%22""6273/,#;\`/#$+")("'#&'#0<*%22""6273/,#;\`/#$+")("'#&'#&`),m(";a.A &;b.; &;c.5 &;d./ &;e.) &;f.# &;g"),m(`%3¯""5*7°/a#3±""5#7².G &3³""5#7´.; &3µ""5$7¶./ &3·""5#7¸.# &;6/($8":¹"! )("'#&'#`),m(`%3º""5%7»/I#3¼""5%7½./ &3¾""5"7¿.# &;6/($8":À"! )("'#&'#`),m(`%3Á""5'7Â/1#;/($8":Ã"! )("'#&'#`),m(`%3Ä""5$7Å/1#;ð/($8":Æ"! )("'#&'#`),m(`%3Ç""5&7È/1#;T/($8":É"! )("'#&'#`),m(`%3Ê""5"7Ë/N#%2>""6>7?/,#;6/#$+")("'#&'#." &"/'$8":Ì" )("'#&'#`),m(`%;h/P#%2>""6>7?/,#;i/#$+")("'#&'#." &"/)$8":Í""! )("'#&'#`),m('%$;j/�#*;j&&&#/"!&,)'),m('%$;j/�#*;j&&&#/"!&,)'),m(";k.) &;+.# &;-"),m('2l""6l7m.e &2n""6n7o.Y &24""6475.M &28""6879.A &2<""6<7=.5 &2@""6@7A.) &2B""6B7C'),m(`%26""6677/n#;m/e$$%2<""6<7=/,#;m/#$+")("'#&'#0<*%2<""6<7=/,#;m/#$+")("'#&'#&/#$+#)(#'#("'#&'#`),m(`%;n/A#2>""6>7?/2$;o/)$8#:Î#"" )(#'#("'#&'#`),m("$;p.) &;+.# &;-/2#0/*;p.) &;+.# &;-&&&#"),m("$;p.) &;+.# &;-0/*;p.) &;+.# &;-&"),m('2l""6l7m.e &2n""6n7o.Y &24""6475.M &26""6677.A &28""6879.5 &2@""6@7A.) &2B""6B7C'),m(";.# &;r"),m(`%;/G#;'/>$;s/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),m(";M.# &;t"),m(`%;/E#28""6879/6$;u.# &;x/'$8#:Ï# )(#'#("'#&'#`),m(`%;v.# &;w/J#%26""6677/,#;/#$+")("'#&'#." &"/#$+")("'#&'#`),m(`%2Ð""6Ð7Ñ/:#;/1$;w." &"/#$+#)(#'#("'#&'#`),m(`%24""6475/,#;{/#$+")("'#&'#`),m(`%;z/3#$;y0#*;y&/#$+")("'#&'#`),m(";*.) &;+.# &;-"),m(';+. &;-. &22""6273.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),m(`%;|/e#$%24""6475/,#;|/#$+")("'#&'#0<*%24""6475/,#;|/#$+")("'#&'#&/#$+")("'#&'#`),m(`%$;~0#*;~&/e#$%22""6273/,#;}/#$+")("'#&'#0<*%22""6273/,#;}/#$+")("'#&'#&/#$+")("'#&'#`),m("$;~0#*;~&"),m(';+.w &;-.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),m(`%%;"/#$;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K0M*;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K&/#$+")("'#&'#/& 8!:Ò! )`),m(";.# &;"),m(`%%;O/2#2:""6:7;/#$+")("'#&'#." &"/,#;S/#$+")("'#&'#." &"`),m('$;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A/#0*;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A&&&#'),m("$;y0#*;y&"),m(`%3""5#7Ó/q#24""6475/b$$;!/�#*;!&&&#/L$2J""6J7K/=$$;!/�#*;!&&&#/'$8%:Ô% )(%'#($'#(#'#("'#&'#`),m('2Õ""6Õ7Ö'),m('2×""6×7Ø'),m('2Ù""6Ù7Ú'),m('2Û""6Û7Ü'),m('2Ý""6Ý7Þ'),m('2ß""6ß7à'),m('2á""6á7â'),m('2ã""6ã7ä'),m('2å""6å7æ'),m('2ç""6ç7è'),m('2é""6é7ê'),m("%;
.Y &;.S &;.M &;.G &;.A &;.; &;.5 &;./ &;.) &;.# &;6/& 8!:ë! )"),m(`%;/G#;'/>$;/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),m("%;/' 8!:ì!! )"),m(`%;!/5#;!/,$;!/#$+#)(#'#("'#&'#`),m("%$;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(0G*;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(&/& 8!:í! )"),m(`%;¶/Y#$%;A/,#;¶/#$+")("'#&'#06*%;A/,#;¶/#$+")("'#&'#&/#$+")("'#&'#`),m(`%;9/N#%2:""6:7;/,#;9/#$+")("'#&'#." &"/'$8":î" )("'#&'#`),m(`%;:.c &%;/Y#$%;A/,#;/#$+")("'#&'#06*%;A/,#;/#$+")("'#&'#&/#$+")("'#&'#/& 8!:ï! )`),m(`%;L.# &;/]#$%;B/,#;/#$+")("'#&'#06*%;B/,#;/#$+")("'#&'#&/'$8":ð" )("'#&'#`),m(`%;." &"/>#;@/5$;M/,$;?/#$+$)($'#(#'#("'#&'#`),m(`%%;6/Y#$%;./,#;6/#$+")("'#&'#06*%;./,#;6/#$+")("'#&'#&/#$+")("'#&'#.# &;H/' 8!:ñ!! )`),m(";.) &;.# &; "),m(`%3ò""5!7ó/:#;</1$;/($8#:ô#! )(#'#("'#&'#`),m(`%3õ""5'7ö/:#;</1$;/($8#:÷#! )(#'#("'#&'#`),m("%$;!/�#*;!&&&#/' 8!:ø!! )"),m(`%2ù""6ù7ú/o#%2J""6J7K/M#;!." &"/?$;!." &"/1$;!." &"/#$+$)($'#(#'#("'#&'#." &"/'$8":û" )("'#&'#`),m(`%;6/J#%;</,#;¡/#$+")("'#&'#." &"/)$8":ü""! )("'#&'#`),m(";6.) &;T.# &;H"),m(`%;£/Y#$%;B/,#;¤/#$+")("'#&'#06*%;B/,#;¤/#$+")("'#&'#&/#$+")("'#&'#`),m(`%3ý""5&7þ.G &3ÿ""5'7Ā.; &3ā""5$7Ă./ &3ă""5%7Ą.# &;6/& 8!:ą! )`),m(";¥.# &; "),m(`%3Ć""5(7ć/M#;</D$3Ĉ""5(7ĉ./ &3Ċ""5(7ċ.# &;6/#$+#)(#'#("'#&'#`),m(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),m("%$;!/�#*;!&&&#/' 8!:Č!! )"),m("%;©/& 8!:č! )"),m(`%;ª/k#;;/b$;¯/Y$$%;B/,#;°/#$+")("'#&'#06*%;B/,#;°/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),m(";«.# &;¬"),m('3Ď""5$7ď.S &3Đ""5%7đ.G &3Ē""5%7ē.; &3Ĕ""5%7ĕ./ &3Ė""5+7ė.# &;'),m(`3Ę""5'7ę./ &3Ě""5)7ě.# &;`),m(";6.# &;®"),m(`%3Ĝ""5"7ĝ/,#;6/#$+")("'#&'#`),m(";.# &;6"),m(`%;6/5#;</,$;±/#$+#)(#'#("'#&'#`),m(";6.# &;H"),m(`%;³/5#;./,$;/#$+#)(#'#("'#&'#`),m("%$;!/�#*;!&&&#/' 8!:Ğ!! )"),m("%;/' 8!:ğ!! )"),m(`%;¶/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ġ"!!)("'#&'#`),m(`%%;7/e#$%2J""6J7K/,#;7/#$+")("'#&'#0<*%2J""6J7K/,#;7/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),m(`%;L.# &;/]#$%;B/,#;¸/#$+")("'#&'#06*%;B/,#;¸/#$+")("'#&'#&/'$8":ġ" )("'#&'#`),m(";¹.# &; "),m(`%3Ģ""5#7ģ/:#;</1$;6/($8#:Ĥ#! )(#'#("'#&'#`),m("%$;!/�#*;!&&&#/' 8!:ĥ!! )"),m("%;/' 8!:Ħ!! )"),m(`%$;0#*;&/x#;@/o$;M/f$;?/]$$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8%:ħ% )(%'#($'#(#'#("'#&'#`),m(";¾"),m(`%3Ĩ""5&7ĩ/k#;./b$;Á/Y$$%;A/,#;Á/#$+")("'#&'#06*%;A/,#;Á/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#.# &;¿`),m(`%;6/k#;./b$;À/Y$$%;A/,#;À/#$+")("'#&'#06*%;A/,#;À/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),m(`%;6/;#;</2$;6.# &;H/#$+#)(#'#("'#&'#`),m(";Â.G &;Ä.A &;Æ.; &;È.5 &;É./ &;Ê.) &;Ë.# &;À"),m(`%3Ī""5%7ī/5#;</,$;Ã/#$+#)(#'#("'#&'#`),m("%;I/' 8!:Ĭ!! )"),m(`%3ĭ""5&7Į/#;</$;D/
$;Å/|$$%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#0C*%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#&/,$;E/#$+&)(&'#(%'#($'#(#'#("'#&'#`),m(";t.# &;w"),m(`%3į""5%7İ/5#;</,$;Ç/#$+#)(#'#("'#&'#`),m("%;I/' 8!:ı!! )"),m(`%3IJ""5&7ij/:#;</1$;I/($8#:Ĵ#! )(#'#("'#&'#`),m(`%3ĵ""5%7Ķ/]#;</T$%3ķ""5$7ĸ/& 8!:Ĺ! ).4 &%3ĺ""5%7Ļ/& 8!:ļ! )/#$+#)(#'#("'#&'#`),m(`%3Ľ""5)7ľ/R#;</I$3Ŀ""5#7ŀ./ &3Ł""5(7ł.# &;6/($8#:Ń#! )(#'#("'#&'#`),m(`%3ń""5#7Ņ/#;</$;D/$%;Ì/e#$%2D""6D7E/,#;Ì/#$+")("'#&'#0<*%2D""6D7E/,#;Ì/#$+")("'#&'#&/#$+")("'#&'#/,$;E/#$+%)(%'#($'#(#'#("'#&'#`),m(`%3ņ""5(7Ň./ &3ň""5$7ʼn.# &;6/' 8!:Ŋ!! )`),m(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),m(`%;Ï/G#;./>$;Ï/5$;./,$;/#$+%)(%'#($'#(#'#("'#&'#`),m("%$;!/�#*;!&&&#/' 8!:ŋ!! )"),m(`%;Ñ/]#$%;A/,#;Ñ/#$+")("'#&'#06*%;A/,#;Ñ/#$+")("'#&'#&/'$8":Ō" )("'#&'#`),m(`%;/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":ō" )("'#&'#`),m(`%;L.O &;.I &%;@." &"/:#;t/1$;?." &"/#$+#)(#'#("'#&'#/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":Ŏ" )("'#&'#`),m(`%;Ô/]#$%;B/,#;Õ/#$+")("'#&'#06*%;B/,#;Õ/#$+")("'#&'#&/'$8":ŏ" )("'#&'#`),m("%;/& 8!:Ő! )"),m(`%3ő""5(7Œ/:#;</1$;6/($8#:œ#! )(#'#("'#&'#.g &%3Ŕ""5&7ŕ/:#;</1$;6/($8#:Ŗ#! )(#'#("'#&'#.: &%3ŗ""5*7Ř/& 8!:ř! ).# &; `),m(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:Ŝ!! )`),m(`%;Ø/Y#$%;A/,#;Ø/#$+")("'#&'#06*%;A/,#;Ø/#$+")("'#&'#&/#$+")("'#&'#`),m(`%;/Y#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/#$+")("'#&'#`),m("%$;!/�#*;!&&&#/' 8!:ŝ!! )"),m(`%;Û/Y#$%;B/,#;Ü/#$+")("'#&'#06*%;B/,#;Ü/#$+")("'#&'#&/#$+")("'#&'#`),m(`%3Ş""5&7ş.; &3Š""5'7š./ &3Ţ""5*7ţ.# &;6/& 8!:Ť! )`),m(`%3ť""5&7Ŧ/:#;</1$;Ý/($8#:ŧ#! )(#'#("'#&'#.} &%3õ""5'7ö/:#;</1$;/($8#:Ũ#! )(#'#("'#&'#.P &%3ũ""5+7Ū/:#;</1$;/($8#:ū#! )(#'#("'#&'#.# &; `),m(`3Ŭ""5+7ŭ.k &3Ů""5)7ů._ &3Ű""5(7ű.S &3Ų""5'7ų.G &3Ŵ""5&7ŵ.; &3Ŷ""5*7ŷ./ &3Ÿ""5)7Ź.# &;6`),m(';1." &"'),m(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:ź!! )`),m(`%;L.# &;/]#$%;B/,#;á/#$+")("'#&'#06*%;B/,#;á/#$+")("'#&'#&/'$8":Ż" )("'#&'#`),m(";¹.# &; "),m(`%;ã/Y#$%;A/,#;ã/#$+")("'#&'#06*%;A/,#;ã/#$+")("'#&'#&/#$+")("'#&'#`),m(`%;ê/k#;./b$;í/Y$$%;B/,#;ä/#$+")("'#&'#06*%;B/,#;ä/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),m(";å.; &;æ.5 &;ç./ &;è.) &;é.# &; "),m(`%3ż""5#7Ž/:#;</1$;ð/($8#:ž#! )(#'#("'#&'#`),m(`%3ſ""5%7ƀ/:#;</1$;T/($8#:Ɓ#! )(#'#("'#&'#`),m(`%3Ƃ""5(7ƃ/F#;</=$;\\.) &;Y.# &;X/($8#:Ƅ#! )(#'#("'#&'#`),m(`%3ƅ""5&7Ɔ/:#;</1$;6/($8#:Ƈ#! )(#'#("'#&'#`),m(`%3ƈ""5%7Ɖ/A#;</8$$;!0#*;!&/($8#:Ɗ#! )(#'#("'#&'#`),m(`%;ë/G#;;/>$;6/5$;;/,$;ì/#$+%)(%'#($'#(#'#("'#&'#`),m(`%3""5#7Ó.# &;6/' 8!:Ƌ!! )`),m(`%3±""5#7ƌ.G &3³""5#7ƍ.; &3·""5#7Ǝ./ &3µ""5$7Ə.# &;6/' 8!:Ɛ!! )`),m(`%;î/D#%;C/,#;ï/#$+")("'#&'#." &"/#$+")("'#&'#`),m("%;U.) &;\\.# &;X/& 8!:Ƒ! )"),m(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:ƒ!! )`),m(`%%;!/?#;!." &"/1$;!." &"/#$+#)(#'#("'#&'#/' 8!:Ɠ!! )`),m(";¾"),m(`%;/^#$%;B/,#;ó/#$+")("'#&'#06*%;B/,#;ó/#$+")("'#&'#&/($8":Ɣ"!!)("'#&'#`),m(";ô.# &; "),m(`%2ƕ""6ƕ7Ɩ/L#;</C$2Ɨ""6Ɨ7Ƙ.) &2ƙ""6ƙ7ƚ/($8#:ƛ#! )(#'#("'#&'#`),m(`%;/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ɯ"!!)("'#&'#`),m(`%;6/5#;0/,$;÷/#$+#)(#'#("'#&'#`),m("$;2.) &;4.# &;.0/*;2.) &;4.# &;.&"),m("$;%0#*;%&"),m(`%;ú/;#28""6879/,$;û/#$+#)(#'#("'#&'#`),m(`%3Ɲ""5%7ƞ.) &3Ɵ""5$7Ơ/' 8!:ơ!! )`),m(`%;ü/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),m("%;\\.) &;X.# &;/' 8!:Ƣ!! )"),m(';".S &;!.M &2F""6F7G.A &2J""6J7K.5 &2H""6H7I.) &2N""6N7O'),m('2L""6L7M. &2B""6B7C. &2<""6<7=.} &2R""6R7S.q &2T""6T7U.e &2V""6V7W.Y &2P""6P7Q.M &2@""6@7A.A &2D""6D7E.5 &22""6273.) &2>""6>7?'),m(`%;Ā/b#28""6879/S$;û/J$%2ƣ""6ƣ7Ƥ/,#;ì/#$+")("'#&'#." &"/#$+$)($'#(#'#("'#&'#`),m(`%3ƥ""5%7Ʀ.) &3Ƨ""5$7ƨ/' 8!:ơ!! )`),m(`%3±""5#7².6 &3³""5#7´.* &$;+0#*;+&/' 8!:Ʃ!! )`),m(`%;Ą/#2F""6F7G/x$;ă/o$2F""6F7G/\`$;ă/W$2F""6F7G/H$;ă/?$2F""6F7G/0$;ą/'$8):ƪ) )()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#`),m(`%;#/>#;#/5$;#/,$;#/#$+$)($'#(#'#("'#&'#`),m(`%;ă/,#;ă/#$+")("'#&'#`),m(`%;ă/5#;ă/,$;ă/#$+#)(#'#("'#&'#`),m(`%;q/T#$;m0#*;m&/D$%; /,#;ø/#$+")("'#&'#." &"/#$+#)(#'#("'#&'#`),m(`%2ƫ""6ƫ7Ƭ.) &2ƭ""6ƭ7Ʈ/w#;0/n$;Ĉ/e$$%;B/2#;ĉ.# &; /#$+")("'#&'#0<*%;B/2#;ĉ.# &; /#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),m(";.# &;L"),m(`%2Ư""6Ư7ư/5#;</,$;Ċ/#$+#)(#'#("'#&'#`),m(`%;D/S#;,/J$2:""6:7;/;$;,.# &;T/,$;E/#$+%)(%'#($'#(#'#("'#&'#`)];let l=0,u=0;const c=[{line:1,column:1}];let d=0,p=[],h=0,g;if(t.startRule!==void 0){if(!(t.startRule in s))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');i=s[t.startRule]}function w(){return e.substring(u,l)}function T(){return E(u,l)}function v(C,b){return{type:"literal",text:C,ignoreCase:b}}function S(C,b,x){return{type:"class",parts:C,inverted:b,ignoreCase:x}}function y(){return{type:"end"}}function _(C){let b=c[C],x;if(b)return b;for(x=C-1;!c[x];)x--;for(b=c[x],b={line:b.line,column:b.column};x<C;)e.charCodeAt(x)===10?(b.line++,b.column=1):b.column++,x++;return c[C]=b,b}function E(C,b){const x=_(C),O=_(b);return{source:n,start:{offset:C,line:x.line,column:x.column},end:{offset:b,line:O.line,column:O.column}}}function $(C){l<d||(l>d&&(d=l,p=[]),p.push(C))}function B(C,b,x){return new Zf(Zf.buildMessage(C,b),C,b,x)}function m(C){return C.split("").map(b=>b.charCodeAt(0)-32)}function N(C){const b=a[C];let x=0;const O=[];let R=b.length;const M=[],z=[];let G;for(;;){for(;x<R;)switch(b[x]){case 0:z.push(o[b[x+1]]),x+=2;break;case 1:z.push(void 0),x++;break;case 2:z.push(null),x++;break;case 3:z.push(r),x++;break;case 4:z.push([]),x++;break;case 5:z.push(l),x++;break;case 6:z.pop(),x++;break;case 7:l=z.pop(),x++;break;case 8:z.length-=b[x+1],x+=2;break;case 9:z.splice(-2,1),x++;break;case 10:z[z.length-2].push(z.pop()),x++;break;case 11:z.push(z.splice(z.length-b[x+1],b[x+1])),x+=2;break;case 12:z.push(e.substring(z.pop(),l)),x++;break;case 13:M.push(R),O.push(x+3+b[x+1]+b[x+2]),z[z.length-1]?(R=x+3+b[x+1],x+=3):(R=x+3+b[x+1]+b[x+2],x+=3+b[x+1]);break;case 14:M.push(R),O.push(x+3+b[x+1]+b[x+2]),z[z.length-1]===r?(R=x+3+b[x+1],x+=3):(R=x+3+b[x+1]+b[x+2],x+=3+b[x+1]);break;case 15:M.push(R),O.push(x+3+b[x+1]+b[x+2]),z[z.length-1]!==r?(R=x+3+b[x+1],x+=3):(R=x+3+b[x+1]+b[x+2],x+=3+b[x+1]);break;case 16:z[z.length-1]!==r?(M.push(R),O.push(x),R=x+2+b[x+1],x+=2):x+=2+b[x+1];break;case 17:M.push(R),O.push(x+3+b[x+1]+b[x+2]),e.length>l?(R=x+3+b[x+1],x+=3):(R=x+3+b[x+1]+b[x+2],x+=3+b[x+1]);break;case 18:M.push(R),O.push(x+4+b[x+2]+b[x+3]),e.substr(l,o[b[x+1]].length)===o[b[x+1]]?(R=x+4+b[x+2],x+=4):(R=x+4+b[x+2]+b[x+3],x+=4+b[x+2]);break;case 19:M.push(R),O.push(x+4+b[x+2]+b[x+3]),e.substr(l,o[b[x+1]].length).toLowerCase()===o[b[x+1]]?(R=x+4+b[x+2],x+=4):(R=x+4+b[x+2]+b[x+3],x+=4+b[x+2]);break;case 20:M.push(R),O.push(x+4+b[x+2]+b[x+3]),o[b[x+1]].test(e.charAt(l))?(R=x+4+b[x+2],x+=4):(R=x+4+b[x+2]+b[x+3],x+=4+b[x+2]);break;case 21:z.push(e.substr(l,b[x+1])),l+=b[x+1],x+=2;break;case 22:z.push(o[b[x+1]]),l+=o[b[x+1]].length,x+=2;break;case 23:z.push(r),h===0&&$(o[b[x+1]]),x+=2;break;case 24:u=z[z.length-1-b[x+1]],x+=2;break;case 25:u=l,x++;break;case 26:G=b.slice(x+4,x+4+b[x+3]).map(function(oe){return z[z.length-1-oe]}),z.splice(z.length-b[x+2],b[x+2],o[b[x+1]].apply(null,G)),x+=4+b[x+3];break;case 27:z.push(N(b[x+1])),x+=2;break;case 28:h++,x++;break;case 29:h--,x++;break;default:throw new Error("Invalid opcode: "+b[x]+".")}if(M.length>0)R=M.pop(),x=O.pop();else break}return z[0]}t.data={};function q(C,b){return[C].concat(b)}if(g=N(i),g!==r&&l===e.length)return g;throw g!==r&&l<e.length&&$(y()),B(p,d<e.length?e.charAt(d):null,d<e.length?E(d,d+1):E(d,d))}const W0=K0;var Tt;(function(e){function t(s,i){const o={startRule:i};try{W0(s,o)}catch{o.data=-1}return o.data}e.parse=t;function r(s){const i=e.parse(s,"Name_Addr_Header");return i!==-1?i:void 0}e.nameAddrHeaderParse=r;function n(s){const i=e.parse(s,"SIP_URI");return i!==-1?i:void 0}e.URIParse=n})(Tt=Tt||(Tt={}));var G0={100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"};function ns(e,t=32){let r="";for(let n=0;n<e;n++){const s=Math.floor(Math.random()*t);r+=s.toString(t)}return r}function Do(e){return G0[e]||""}function Oo(){return ns(10)}function Mr(e){const t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},r=e.toLowerCase().replace(/_/g,"-").split("-"),n=r.length;let s="";for(let i=0;i<n;i++)i!==0&&(s+="-"),s+=r[i].charAt(0).toUpperCase()+r[i].substring(1);return t[s]&&(s=t[s]),s}function xi(e){return encodeURIComponent(e).replace(/%[A-F\d]{2}/g,"U").length}var Xf=class{constructor(){this.headers={}}addHeader(e,t){const r={raw:t};e=Mr(e),this.headers[e]?this.headers[e].push(r):this.headers[e]=[r]}getHeader(e){const t=this.headers[Mr(e)];if(t){if(t[0])return t[0].raw}else return}getHeaders(e){const t=this.headers[Mr(e)],r=[];if(!t)return[];for(const n of t)r.push(n.raw);return r}hasHeader(e){return!!this.headers[Mr(e)]}parseHeader(e,t=0){if(e=Mr(e),this.headers[e]){if(t>=this.headers[e].length)return}else return;const r=this.headers[e][t],n=r.raw;if(r.parsed)return r.parsed;const s=Tt.parse(n,e.replace(/-/g,"_"));if(s===-1){this.headers[e].splice(t,1);return}else return r.parsed=s,s}s(e,t=0){return this.parseHeader(e,t)}setHeader(e,t){this.headers[Mr(e)]=[{raw:t}]}toString(){return this.data}},Os=class extends Xf{constructor(){super()}},En=class extends Xf{constructor(){super()}},Ol=class ba{constructor(t,r,n,s,i,o,a){this.headers={},this.extraHeaders=[],this.options=ba.getDefaultOptions(),i&&(this.options=Object.assign(Object.assign({},this.options),i),this.options.optionTags&&this.options.optionTags.length&&(this.options.optionTags=this.options.optionTags.slice()),this.options.routeSet&&this.options.routeSet.length&&(this.options.routeSet=this.options.routeSet.slice())),o&&o.length&&(this.extraHeaders=o.slice()),a&&(this.body={body:a.content,contentType:a.contentType}),this.method=t,this.ruri=r.clone(),this.fromURI=n.clone(),this.fromTag=this.options.fromTag?this.options.fromTag:Oo(),this.from=ba.makeNameAddrHeader(this.fromURI,this.options.fromDisplayName,this.fromTag),this.toURI=s.clone(),this.toTag=this.options.toTag,this.to=ba.makeNameAddrHeader(this.toURI,this.options.toDisplayName,this.toTag),this.callId=this.options.callId?this.options.callId:this.options.callIdPrefix+ns(15),this.cseq=this.options.cseq,this.setHeader("route",this.options.routeSet),this.setHeader("via",""),this.setHeader("to",this.to.toString()),this.setHeader("from",this.from.toString()),this.setHeader("cseq",this.cseq+" "+this.method),this.setHeader("call-id",this.callId),this.setHeader("max-forwards","70")}static getDefaultOptions(){return{callId:"",callIdPrefix:"",cseq:1,toDisplayName:"",toTag:"",fromDisplayName:"",fromTag:"",forceRport:!1,hackViaTcp:!1,optionTags:["outbound"],routeSet:[],userAgentString:"sip.js",viaHost:""}}static makeNameAddrHeader(t,r,n){const s={};return n&&(s.tag=n),new vr(t,r,s)}getHeader(t){const r=this.headers[Mr(t)];if(r){if(r[0])return r[0]}else{const n=new RegExp("^\\s*"+t+"\\s*:","i");for(const s of this.extraHeaders)if(n.test(s))return s.substring(s.indexOf(":")+1).trim()}}getHeaders(t){const r=[],n=this.headers[Mr(t)];if(n)for(const s of n)r.push(s);else{const s=new RegExp("^\\s*"+t+"\\s*:","i");for(const i of this.extraHeaders)s.test(i)&&r.push(i.substring(i.indexOf(":")+1).trim())}return r}hasHeader(t){if(this.headers[Mr(t)])return!0;{const r=new RegExp("^\\s*"+t+"\\s*:","i");for(const n of this.extraHeaders)if(r.test(n))return!0}return!1}setHeader(t,r){this.headers[Mr(t)]=r instanceof Array?r:[r]}setViaHeader(t,r){this.options.hackViaTcp&&(r="TCP");let n="SIP/2.0/"+r;n+=" "+this.options.viaHost+";branch="+t,this.options.forceRport&&(n+=";rport"),this.setHeader("via",n),this.branch=t}toString(){let t="";t+=this.method+" "+this.ruri.toRaw()+` SIP/2.0\r
|
|
9
|
+
`+l+" | "+Ml("",i.column-1," ")+Ml("",c-i.column,"^")}else r+=`
|
|
10
|
+
at `+o}return r}};function G0(e,t){t=t!==void 0?t:{};const r={},n=t.grammarSource,s={Contact:119,Name_Addr_Header:156,Record_Route:176,Request_Response:81,SIP_URI:45,Subscription_State:186,Supported:191,Require:182,Via:194,absoluteURI:84,Call_ID:118,Content_Disposition:130,Content_Length:135,Content_Type:136,CSeq:146,displayName:122,Event:149,From:151,host:52,Max_Forwards:154,Min_SE:213,Proxy_Authenticate:157,quoted_string:40,Refer_To:178,Replaces:179,Session_Expires:210,stun_URI:217,To:192,turn_URI:223,uuid:226,WWW_Authenticate:209,challenge:158,sipfrag:230,Referred_By:231};let i=119;const o=[`\r
|
|
11
|
+
`,g(`\r
|
|
12
|
+
`,!1),/^[0-9]/,b([["0","9"]],!1,!1),/^[a-zA-Z]/,b([["a","z"],["A","Z"]],!1,!1),/^[0-9a-fA-F]/,b([["0","9"],["a","f"],["A","F"]],!1,!1),/^[\0-\xFF]/,b([["\0","ÿ"]],!1,!1),/^["]/,b(['"'],!1,!1)," ",g(" ",!1)," ",g(" ",!1),/^[a-zA-Z0-9]/,b([["a","z"],["A","Z"],["0","9"]],!1,!1),";",g(";",!1),"/",g("/",!1),"?",g("?",!1),":",g(":",!1),"@",g("@",!1),"&",g("&",!1),"=",g("=",!1),"+",g("+",!1),"$",g("$",!1),",",g(",",!1),"-",g("-",!1),"_",g("_",!1),".",g(".",!1),"!",g("!",!1),"~",g("~",!1),"*",g("*",!1),"'",g("'",!1),"(",g("(",!1),")",g(")",!1),"%",g("%",!1),function(){return" "},function(){return":"},/^[!-~]/,b([["!","~"]],!1,!1),/^[\x80-\uFFFF]/,b([["",""]],!1,!1),/^[\x80-\xBF]/,b([["","¿"]],!1,!1),/^[a-f]/,b([["a","f"]],!1,!1),"`",g("`",!1),"<",g("<",!1),">",g(">",!1),"\\",g("\\",!1),"[",g("[",!1),"]",g("]",!1),"{",g("{",!1),"}",g("}",!1),function(){return"*"},function(){return"/"},function(){return"="},function(){return"("},function(){return")"},function(){return">"},function(){return"<"},function(){return","},function(){return";"},function(){return":"},function(){return'"'},/^[!-']/,b([["!","'"]],!1,!1),/^[*-[]/,b([["*","["]],!1,!1),/^[\]-~]/,b([["]","~"]],!1,!1),function(C){return C},/^[#-[]/,b([["#","["]],!1,!1),/^[\0-\t]/,b([["\0"," "]],!1,!1),/^[\v-\f]/,b([["\v","\f"]],!1,!1),/^[\x0E-\x7F]/,b([["",""]],!1,!1),function(){t=t||{data:{}},t.data.uri=new An(t.data.scheme,t.data.user,t.data.host,t.data.port),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port},function(){t=t||{data:{}},t.data.uri=new An(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params,t.startRule==="SIP_URI"&&(t.data=t.data.uri)},"sips",g("sips",!0),"sip",g("sip",!0),function(C){t=t||{data:{}},t.data.scheme=C},function(){t=t||{data:{}},t.data.user=decodeURIComponent(y().slice(0,-1))},function(){t=t||{data:{}},t.data.password=y()},function(){return t=t||{data:{}},t.data.host=y(),t.data.host},function(){return t=t||{data:{}},t.data.host_type="domain",y()},/^[a-zA-Z0-9_\-]/,b([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),/^[a-zA-Z0-9\-]/,b([["a","z"],["A","Z"],["0","9"],"-"],!1,!1),function(){return t=t||{data:{}},t.data.host_type="IPv6",y()},"::",g("::",!1),function(){return t=t||{data:{}},t.data.host_type="IPv6",y()},function(){return t=t||{data:{}},t.data.host_type="IPv4",y()},"25",g("25",!1),/^[0-5]/,b([["0","5"]],!1,!1),"2",g("2",!1),/^[0-4]/,b([["0","4"]],!1,!1),"1",g("1",!1),/^[1-9]/,b([["1","9"]],!1,!1),function(C){return t=t||{data:{}},C=parseInt(C.join("")),t.data.port=C,C},"transport=",g("transport=",!0),"udp",g("udp",!0),"tcp",g("tcp",!0),"sctp",g("sctp",!0),"tls",g("tls",!0),function(C){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.transport=C.toLowerCase()},"user=",g("user=",!0),"phone",g("phone",!0),"ip",g("ip",!0),function(C){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.user=C.toLowerCase()},"method=",g("method=",!0),function(C){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.method=C},"ttl=",g("ttl=",!0),function(C){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.ttl=C},"maddr=",g("maddr=",!0),function(C){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.maddr=C},"lr",g("lr",!0),function(){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),t.data.uri_params.lr=void 0},function(C,S){t=t||{data:{}},t.data.uri_params||(t.data.uri_params={}),S===null?S=void 0:S=S[1],t.data.uri_params[C.toLowerCase()]=S},function(C,S){C=C.join("").toLowerCase(),S=S.join(""),t=t||{data:{}},t.data.uri_headers||(t.data.uri_headers={}),t.data.uri_headers[C]?t.data.uri_headers[C].push(S):t.data.uri_headers[C]=[S]},function(){t=t||{data:{}},t.startRule==="Refer_To"&&(t.data.uri=new An(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params)},"//",g("//",!1),function(){t=t||{data:{}},t.data.scheme=y()},g("SIP",!0),function(){t=t||{data:{}},t.data.sip_version=y()},"INVITE",g("INVITE",!1),"ACK",g("ACK",!1),"VXACH",g("VXACH",!1),"OPTIONS",g("OPTIONS",!1),"BYE",g("BYE",!1),"CANCEL",g("CANCEL",!1),"REGISTER",g("REGISTER",!1),"SUBSCRIBE",g("SUBSCRIBE",!1),"NOTIFY",g("NOTIFY",!1),"REFER",g("REFER",!1),"PUBLISH",g("PUBLISH",!1),function(){return t=t||{data:{}},t.data.method=y(),t.data.method},function(C){t=t||{data:{}},t.data.status_code=parseInt(C.join(""))},function(){t=t||{data:{}},t.data.reason_phrase=y()},function(){t=t||{data:{}},t.data=y()},function(){var C,S;for(t=t||{data:{}},S=t.data.multi_header.length,C=0;C<S;C++)if(t.data.multi_header[C].parsed===null){t.data=null;break}t.data!==null?t.data=t.data.multi_header:t.data=-1},function(){var C;t=t||{data:{}},t.data.multi_header||(t.data.multi_header=[]);try{C=new mr(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch{C=null}t.data.multi_header.push({position:l,offset:T().start.offset,parsed:C})},function(C){C=y().trim(),C[0]==='"'&&(C=C.substring(1,C.length-1)),t=t||{data:{}},t.data.displayName=C},"q",g("q",!0),function(C){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.q=C},"expires",g("expires",!0),function(C){t=t||{data:{}},t.data.params||(t.data.params={}),t.data.params.expires=C},function(C){return parseInt(C.join(""))},"0",g("0",!1),function(){return parseFloat(y())},function(C,S){t=t||{data:{}},t.data.params||(t.data.params={}),S===null?S=void 0:S=S[1],t.data.params[C.toLowerCase()]=S},"render",g("render",!0),"session",g("session",!0),"icon",g("icon",!0),"alert",g("alert",!0),function(){t=t||{data:{}},t.startRule==="Content_Disposition"&&(t.data.type=y().toLowerCase())},"handling",g("handling",!0),"optional",g("optional",!0),"required",g("required",!0),function(C){t=t||{data:{}},t.data=parseInt(C.join(""))},function(){t=t||{data:{}},t.data=y()},"text",g("text",!0),"image",g("image",!0),"audio",g("audio",!0),"video",g("video",!0),"application",g("application",!0),"message",g("message",!0),"multipart",g("multipart",!0),"x-",g("x-",!0),function(C){t=t||{data:{}},t.data.value=parseInt(C.join(""))},function(C){t=t||{data:{}},t.data=C},function(C){t=t||{data:{}},t.data.event=C.toLowerCase()},function(){t=t||{data:{}};var C=t.data.tag;t.data=new mr(t.data.uri,t.data.displayName,t.data.params),C&&t.data.setParam("tag",C)},"tag",g("tag",!0),function(C){t=t||{data:{}},t.data.tag=C},function(C){t=t||{data:{}},t.data=parseInt(C.join(""))},function(C){t=t||{data:{}},t.data=C},function(){t=t||{data:{}},t.data=new mr(t.data.uri,t.data.displayName,t.data.params)},"digest",g("Digest",!0),"realm",g("realm",!0),function(C){t=t||{data:{}},t.data.realm=C},"domain",g("domain",!0),"nonce",g("nonce",!0),function(C){t=t||{data:{}},t.data.nonce=C},"opaque",g("opaque",!0),function(C){t=t||{data:{}},t.data.opaque=C},"stale",g("stale",!0),"true",g("true",!0),function(){t=t||{data:{}},t.data.stale=!0},"false",g("false",!0),function(){t=t||{data:{}},t.data.stale=!1},"algorithm",g("algorithm",!0),"md5",g("MD5",!0),"md5-sess",g("MD5-sess",!0),function(C){t=t||{data:{}},t.data.algorithm=C.toUpperCase()},"qop",g("qop",!0),"auth-int",g("auth-int",!0),"auth",g("auth",!0),function(C){t=t||{data:{}},t.data.qop||(t.data.qop=[]),t.data.qop.push(C.toLowerCase())},function(C){t=t||{data:{}},t.data.value=parseInt(C.join(""))},function(){var C,S;for(t=t||{data:{}},S=t.data.multi_header.length,C=0;C<S;C++)if(t.data.multi_header[C].parsed===null){t.data=null;break}t.data!==null?t.data=t.data.multi_header:t.data=-1},function(){var C;t=t||{data:{}},t.data.multi_header||(t.data.multi_header=[]);try{C=new mr(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch{C=null}t.data.multi_header.push({position:l,offset:T().start.offset,parsed:C})},function(){t=t||{data:{}},t.data=new mr(t.data.uri,t.data.displayName,t.data.params)},function(){t=t||{data:{}},t.data.replaces_from_tag&&t.data.replaces_to_tag||(t.data=-1)},function(){t=t||{data:{}},t.data={call_id:t.data}},"from-tag",g("from-tag",!0),function(C){t=t||{data:{}},t.data.replaces_from_tag=C},"to-tag",g("to-tag",!0),function(C){t=t||{data:{}},t.data.replaces_to_tag=C},"early-only",g("early-only",!0),function(){t=t||{data:{}},t.data.early_only=!0},function(C,S){return S},function(C,S){return q(C,S)},function(C){t=t||{data:{}},t.startRule==="Require"&&(t.data=C||[])},function(C){t=t||{data:{}},t.data.value=parseInt(C.join(""))},"active",g("active",!0),"pending",g("pending",!0),"terminated",g("terminated",!0),function(){t=t||{data:{}},t.data.state=y()},"reason",g("reason",!0),function(C){t=t||{data:{}},typeof C<"u"&&(t.data.reason=C)},function(C){t=t||{data:{}},typeof C<"u"&&(t.data.expires=C)},"retry_after",g("retry_after",!0),function(C){t=t||{data:{}},typeof C<"u"&&(t.data.retry_after=C)},"deactivated",g("deactivated",!0),"probation",g("probation",!0),"rejected",g("rejected",!0),"timeout",g("timeout",!0),"giveup",g("giveup",!0),"noresource",g("noresource",!0),"invariant",g("invariant",!0),function(C){t=t||{data:{}},t.startRule==="Supported"&&(t.data=C||[])},function(){t=t||{data:{}};var C=t.data.tag;t.data=new mr(t.data.uri,t.data.displayName,t.data.params),C&&t.data.setParam("tag",C)},"ttl",g("ttl",!0),function(C){t=t||{data:{}},t.data.ttl=C},"maddr",g("maddr",!0),function(C){t=t||{data:{}},t.data.maddr=C},"received",g("received",!0),function(C){t=t||{data:{}},t.data.received=C},"branch",g("branch",!0),function(C){t=t||{data:{}},t.data.branch=C},"rport",g("rport",!0),function(C){t=t||{data:{}},typeof C<"u"&&(t.data.rport=C.join(""))},function(C){t=t||{data:{}},t.data.protocol=C},g("UDP",!0),g("TCP",!0),g("TLS",!0),g("SCTP",!0),function(C){t=t||{data:{}},t.data.transport=C},function(){t=t||{data:{}},t.data.host=y()},function(C){t=t||{data:{}},t.data.port=parseInt(C.join(""))},function(C){return parseInt(C.join(""))},function(C){t=t||{data:{}},t.startRule==="Session_Expires"&&(t.data.deltaSeconds=C)},"refresher",g("refresher",!1),"uas",g("uas",!1),"uac",g("uac",!1),function(C){t=t||{data:{}},t.startRule==="Session_Expires"&&(t.data.refresher=C)},function(C){t=t||{data:{}},t.startRule==="Min_SE"&&(t.data=C)},"stuns",g("stuns",!0),"stun",g("stun",!0),function(C){t=t||{data:{}},t.data.scheme=C},function(C){t=t||{data:{}},t.data.host=C},"?transport=",g("?transport=",!1),"turns",g("turns",!0),"turn",g("turn",!0),function(C){t=t||{data:{}},t.data.transport=C},function(){t=t||{data:{}},t.data=y()},"Referred-By",g("Referred-By",!1),"b",g("b",!1),"cid",g("cid",!1)],a=[v('2 ""6 7!'),v('4"""5!7#'),v('4$""5!7%'),v(`4&""5!7'`),v(";'.# &;("),v('4(""5!7)'),v('4*""5!7+'),v('2,""6,7-'),v('2.""6.7/'),v('40""5!71'),v('22""6273. &24""6475.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),v(";).# &;,"),v('2F""6F7G.} &2H""6H7I.q &2J""6J7K.e &2L""6L7M.Y &2N""6N7O.M &2P""6P7Q.A &2R""6R7S.5 &2T""6T7U.) &2V""6V7W'),v(`%%2X""6X7Y/5#;#/,$;#/#$+#)(#'#("'#&'#/"!&,)`),v(`%%$;$0#*;$&/,#; /#$+")("'#&'#." &"/=#$;$/�#*;$&&&#/'$8":Z" )("'#&'#`),v(';.." &"'),v(`%$;'.# &;(0)*;'.# &;(&/?#28""6879/0$;//'$8#:[# )(#'#("'#&'#`),v(`%%$;2/�#*;2&&&#/g#$%$;.0#*;.&/,#;2/#$+")("'#&'#0=*%$;.0#*;.&/,#;2/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),v('4\\""5!7].# &;3'),v('4^""5!7_'),v('4`""5!7a'),v(';!.) &4b""5!7c'),v('%$;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),v('%$;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),v(`2T""6T7U.ã &2V""6V7W.× &2f""6f7g.Ë &2h""6h7i.¿ &2:""6:7;.³ &2D""6D7E.§ &22""6273. &28""6879. &2j""6j7k. &;&.} &24""6475.q &2l""6l7m.e &2n""6n7o.Y &26""6677.M &2>""6>7?.A &2p""6p7q.5 &2r""6r7s.) &;'.# &;(`),v('%$;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s/Ĵ#0ı*;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s&&&#/"!&,)'),v(`%;//?#2P""6P7Q/0$;//'$8#:t# )(#'#("'#&'#`),v(`%;//?#24""6475/0$;//'$8#:u# )(#'#("'#&'#`),v(`%;//?#2>""6>7?/0$;//'$8#:v# )(#'#("'#&'#`),v(`%;//?#2T""6T7U/0$;//'$8#:w# )(#'#("'#&'#`),v(`%;//?#2V""6V7W/0$;//'$8#:x# )(#'#("'#&'#`),v(`%2h""6h7i/0#;//'$8":y" )("'#&'#`),v(`%;//6#2f""6f7g/'$8":z" )("'#&'#`),v(`%;//?#2D""6D7E/0$;//'$8#:{# )(#'#("'#&'#`),v(`%;//?#22""6273/0$;//'$8#:|# )(#'#("'#&'#`),v(`%;//?#28""6879/0$;//'$8#:}# )(#'#("'#&'#`),v(`%;//0#;&/'$8":~" )("'#&'#`),v(`%;&/0#;//'$8":~" )("'#&'#`),v(`%;=/T#$;G.) &;K.# &;F0/*;G.) &;K.# &;F&/,$;>/#$+#)(#'#("'#&'#`),v('4""5!7.A &4""5!7.5 &4""5!7.) &;3.# &;.'),v(`%%;//Q#;&/H$$;J.# &;K0)*;J.# &;K&/,$;&/#$+$)($'#(#'#("'#&'#/"!&,)`),v(`%;//]#;&/T$%$;J.# &;K0)*;J.# &;K&/"!&,)/1$;&/($8$:
$!!)($'#(#'#("'#&'#`),v(';..G &2L""6L7M.; &4""5!7./ &4""5!7.# &;3'),v(`%2j""6j7k/J#4""5!7.5 &4""5!7.) &4""5!7/#$+")("'#&'#`),v(`%;N/M#28""6879/>$;O." &"/0$;S/'$8$:$ )($'#(#'#("'#&'#`),v(`%;N/d#28""6879/U$;O." &"/G$;S/>$;_/5$;l." &"/'$8&:& )(&'#(%'#($'#(#'#("'#&'#`),v(`%3""5$7.) &3""5#7/' 8!:!! )`),v(`%;P/]#%28""6879/,#;R/#$+")("'#&'#." &"/6$2:""6:7;/'$8#:# )(#'#("'#&'#`),v("$;+.) &;-.# &;Q/2#0/*;+.) &;-.# &;Q&&&#"),v('2<""6<7=.q &2>""6>7?.e &2@""6@7A.Y &2B""6B7C.M &2D""6D7E.A &22""6273.5 &26""6677.) &24""6475'),v('%$;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E0e*;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E&/& 8!:! )'),v(`%;T/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),v("%;U.) &;\\.# &;X/& 8!:! )"),v(`%$%;V/2#2J""6J7K/#$+")("'#&'#0<*%;V/2#2J""6J7K/#$+")("'#&'#&/D#;W/;$2J""6J7K." &"/'$8#:# )(#'#("'#&'#`),v('$4""5!7/,#0)*4""5!7&&&#'),v(`%4$""5!7%/?#$4""5!70)*4""5!7&/#$+")("'#&'#`),v(`%2l""6l7m/?#;Y/6$2n""6n7o/'$8#:# )(#'#("'#&'#`),v(`%%;Z/³#28""6879/¤$;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+-)(-'#(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ސ &%2""67/¤#;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+,)(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.۹ &%2""67/#;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ٺ &%2""67/t#;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.ؓ &%2""67/\\#;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+&)(&'#(%'#($'#(#'#("'#&'#.ׄ &%2""67/D#;Z/;$28""6879/,$;[/#$+$)($'#(#'#("'#&'#.֍ &%2""67/,#;[/#$+")("'#&'#.ծ &%2""67/,#;Z/#$+")("'#&'#.Տ &%;Z/#2""67/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$++)(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ӈ &%;Z/ª#%28""6879/,#;Z/#$+")("'#&'#." &"/$2""67/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.а &%;Z/¹#%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/k$2""67/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+))()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ί &%;Z/È#%28""6879/,#;Z/#$+")("'#&'#." &"/¡$%28""6879/,#;Z/#$+")("'#&'#." &"/z$%28""6879/,#;Z/#$+")("'#&'#." &"/S$2""67/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.˕ &%;Z/×#%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;[/#$+')(''#(&'#(%'#($'#(#'#("'#&'#.ȑ &%;Z/þ#%28""6879/,#;Z/#$+")("'#&'#." &"/×$%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;Z/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ħ &%;Z/Ĝ#%28""6879/,#;Z/#$+")("'#&'#." &"/õ$%28""6879/,#;Z/#$+")("'#&'#." &"/Î$%28""6879/,#;Z/#$+")("'#&'#." &"/§$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/Y$%28""6879/,#;Z/#$+")("'#&'#." &"/2$2""67/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#/& 8!: ! )`),v(`%;#/M#;#." &"/?$;#." &"/1$;#." &"/#$+$)($'#(#'#("'#&'#`),v(`%;Z/;#28""6879/,$;Z/#$+#)(#'#("'#&'#.# &;\\`),v(`%;]/o#2J""6J7K/\`$;]/W$2J""6J7K/H$;]/?$2J""6J7K/0$;]/'$8':¡' )(''#(&'#(%'#($'#(#'#("'#&'#`),v(`%2¢""6¢7£/2#4¤""5!7¥/#$+")("'#&'#. &%2¦""6¦7§/;#4¨""5!7©/,$;!/#$+#)(#'#("'#&'#.j &%2ª""6ª7«/5#;!/,$;!/#$+#)(#'#("'#&'#.B &%4¬""5!7/,#;!/#$+")("'#&'#.# &;!`),v(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:®!! )`),v(`$%22""6273/,#;\`/#$+")("'#&'#0<*%22""6273/,#;\`/#$+")("'#&'#&`),v(";a.A &;b.; &;c.5 &;d./ &;e.) &;f.# &;g"),v(`%3¯""5*7°/a#3±""5#7².G &3³""5#7´.; &3µ""5$7¶./ &3·""5#7¸.# &;6/($8":¹"! )("'#&'#`),v(`%3º""5%7»/I#3¼""5%7½./ &3¾""5"7¿.# &;6/($8":À"! )("'#&'#`),v(`%3Á""5'7Â/1#;/($8":Ã"! )("'#&'#`),v(`%3Ä""5$7Å/1#;ð/($8":Æ"! )("'#&'#`),v(`%3Ç""5&7È/1#;T/($8":É"! )("'#&'#`),v(`%3Ê""5"7Ë/N#%2>""6>7?/,#;6/#$+")("'#&'#." &"/'$8":Ì" )("'#&'#`),v(`%;h/P#%2>""6>7?/,#;i/#$+")("'#&'#." &"/)$8":Í""! )("'#&'#`),v('%$;j/�#*;j&&&#/"!&,)'),v('%$;j/�#*;j&&&#/"!&,)'),v(";k.) &;+.# &;-"),v('2l""6l7m.e &2n""6n7o.Y &24""6475.M &28""6879.A &2<""6<7=.5 &2@""6@7A.) &2B""6B7C'),v(`%26""6677/n#;m/e$$%2<""6<7=/,#;m/#$+")("'#&'#0<*%2<""6<7=/,#;m/#$+")("'#&'#&/#$+#)(#'#("'#&'#`),v(`%;n/A#2>""6>7?/2$;o/)$8#:Î#"" )(#'#("'#&'#`),v("$;p.) &;+.# &;-/2#0/*;p.) &;+.# &;-&&&#"),v("$;p.) &;+.# &;-0/*;p.) &;+.# &;-&"),v('2l""6l7m.e &2n""6n7o.Y &24""6475.M &26""6677.A &28""6879.5 &2@""6@7A.) &2B""6B7C'),v(";.# &;r"),v(`%;/G#;'/>$;s/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),v(";M.# &;t"),v(`%;/E#28""6879/6$;u.# &;x/'$8#:Ï# )(#'#("'#&'#`),v(`%;v.# &;w/J#%26""6677/,#;/#$+")("'#&'#." &"/#$+")("'#&'#`),v(`%2Ð""6Ð7Ñ/:#;/1$;w." &"/#$+#)(#'#("'#&'#`),v(`%24""6475/,#;{/#$+")("'#&'#`),v(`%;z/3#$;y0#*;y&/#$+")("'#&'#`),v(";*.) &;+.# &;-"),v(';+. &;-. &22""6273.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),v(`%;|/e#$%24""6475/,#;|/#$+")("'#&'#0<*%24""6475/,#;|/#$+")("'#&'#&/#$+")("'#&'#`),v(`%$;~0#*;~&/e#$%22""6273/,#;}/#$+")("'#&'#0<*%22""6273/,#;}/#$+")("'#&'#&/#$+")("'#&'#`),v("$;~0#*;~&"),v(';+.w &;-.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),v(`%%;"/#$;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K0M*;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K&/#$+")("'#&'#/& 8!:Ò! )`),v(";.# &;"),v(`%%;O/2#2:""6:7;/#$+")("'#&'#." &"/,#;S/#$+")("'#&'#." &"`),v('$;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A/#0*;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A&&&#'),v("$;y0#*;y&"),v(`%3""5#7Ó/q#24""6475/b$$;!/�#*;!&&&#/L$2J""6J7K/=$$;!/�#*;!&&&#/'$8%:Ô% )(%'#($'#(#'#("'#&'#`),v('2Õ""6Õ7Ö'),v('2×""6×7Ø'),v('2Ù""6Ù7Ú'),v('2Û""6Û7Ü'),v('2Ý""6Ý7Þ'),v('2ß""6ß7à'),v('2á""6á7â'),v('2ã""6ã7ä'),v('2å""6å7æ'),v('2ç""6ç7è'),v('2é""6é7ê'),v("%;
.Y &;.S &;.M &;.G &;.A &;.; &;.5 &;./ &;.) &;.# &;6/& 8!:ë! )"),v(`%;/G#;'/>$;/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),v("%;/' 8!:ì!! )"),v(`%;!/5#;!/,$;!/#$+#)(#'#("'#&'#`),v("%$;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(0G*;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(&/& 8!:í! )"),v(`%;¶/Y#$%;A/,#;¶/#$+")("'#&'#06*%;A/,#;¶/#$+")("'#&'#&/#$+")("'#&'#`),v(`%;9/N#%2:""6:7;/,#;9/#$+")("'#&'#." &"/'$8":î" )("'#&'#`),v(`%;:.c &%;/Y#$%;A/,#;/#$+")("'#&'#06*%;A/,#;/#$+")("'#&'#&/#$+")("'#&'#/& 8!:ï! )`),v(`%;L.# &;/]#$%;B/,#;/#$+")("'#&'#06*%;B/,#;/#$+")("'#&'#&/'$8":ð" )("'#&'#`),v(`%;." &"/>#;@/5$;M/,$;?/#$+$)($'#(#'#("'#&'#`),v(`%%;6/Y#$%;./,#;6/#$+")("'#&'#06*%;./,#;6/#$+")("'#&'#&/#$+")("'#&'#.# &;H/' 8!:ñ!! )`),v(";.) &;.# &; "),v(`%3ò""5!7ó/:#;</1$;/($8#:ô#! )(#'#("'#&'#`),v(`%3õ""5'7ö/:#;</1$;/($8#:÷#! )(#'#("'#&'#`),v("%$;!/�#*;!&&&#/' 8!:ø!! )"),v(`%2ù""6ù7ú/o#%2J""6J7K/M#;!." &"/?$;!." &"/1$;!." &"/#$+$)($'#(#'#("'#&'#." &"/'$8":û" )("'#&'#`),v(`%;6/J#%;</,#;¡/#$+")("'#&'#." &"/)$8":ü""! )("'#&'#`),v(";6.) &;T.# &;H"),v(`%;£/Y#$%;B/,#;¤/#$+")("'#&'#06*%;B/,#;¤/#$+")("'#&'#&/#$+")("'#&'#`),v(`%3ý""5&7þ.G &3ÿ""5'7Ā.; &3ā""5$7Ă./ &3ă""5%7Ą.# &;6/& 8!:ą! )`),v(";¥.# &; "),v(`%3Ć""5(7ć/M#;</D$3Ĉ""5(7ĉ./ &3Ċ""5(7ċ.# &;6/#$+#)(#'#("'#&'#`),v(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),v("%$;!/�#*;!&&&#/' 8!:Č!! )"),v("%;©/& 8!:č! )"),v(`%;ª/k#;;/b$;¯/Y$$%;B/,#;°/#$+")("'#&'#06*%;B/,#;°/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),v(";«.# &;¬"),v('3Ď""5$7ď.S &3Đ""5%7đ.G &3Ē""5%7ē.; &3Ĕ""5%7ĕ./ &3Ė""5+7ė.# &;'),v(`3Ę""5'7ę./ &3Ě""5)7ě.# &;`),v(";6.# &;®"),v(`%3Ĝ""5"7ĝ/,#;6/#$+")("'#&'#`),v(";.# &;6"),v(`%;6/5#;</,$;±/#$+#)(#'#("'#&'#`),v(";6.# &;H"),v(`%;³/5#;./,$;/#$+#)(#'#("'#&'#`),v("%$;!/�#*;!&&&#/' 8!:Ğ!! )"),v("%;/' 8!:ğ!! )"),v(`%;¶/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ġ"!!)("'#&'#`),v(`%%;7/e#$%2J""6J7K/,#;7/#$+")("'#&'#0<*%2J""6J7K/,#;7/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),v(`%;L.# &;/]#$%;B/,#;¸/#$+")("'#&'#06*%;B/,#;¸/#$+")("'#&'#&/'$8":ġ" )("'#&'#`),v(";¹.# &; "),v(`%3Ģ""5#7ģ/:#;</1$;6/($8#:Ĥ#! )(#'#("'#&'#`),v("%$;!/�#*;!&&&#/' 8!:ĥ!! )"),v("%;/' 8!:Ħ!! )"),v(`%$;0#*;&/x#;@/o$;M/f$;?/]$$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8%:ħ% )(%'#($'#(#'#("'#&'#`),v(";¾"),v(`%3Ĩ""5&7ĩ/k#;./b$;Á/Y$$%;A/,#;Á/#$+")("'#&'#06*%;A/,#;Á/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#.# &;¿`),v(`%;6/k#;./b$;À/Y$$%;A/,#;À/#$+")("'#&'#06*%;A/,#;À/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),v(`%;6/;#;</2$;6.# &;H/#$+#)(#'#("'#&'#`),v(";Â.G &;Ä.A &;Æ.; &;È.5 &;É./ &;Ê.) &;Ë.# &;À"),v(`%3Ī""5%7ī/5#;</,$;Ã/#$+#)(#'#("'#&'#`),v("%;I/' 8!:Ĭ!! )"),v(`%3ĭ""5&7Į/#;</$;D/
$;Å/|$$%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#0C*%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#&/,$;E/#$+&)(&'#(%'#($'#(#'#("'#&'#`),v(";t.# &;w"),v(`%3į""5%7İ/5#;</,$;Ç/#$+#)(#'#("'#&'#`),v("%;I/' 8!:ı!! )"),v(`%3IJ""5&7ij/:#;</1$;I/($8#:Ĵ#! )(#'#("'#&'#`),v(`%3ĵ""5%7Ķ/]#;</T$%3ķ""5$7ĸ/& 8!:Ĺ! ).4 &%3ĺ""5%7Ļ/& 8!:ļ! )/#$+#)(#'#("'#&'#`),v(`%3Ľ""5)7ľ/R#;</I$3Ŀ""5#7ŀ./ &3Ł""5(7ł.# &;6/($8#:Ń#! )(#'#("'#&'#`),v(`%3ń""5#7Ņ/#;</$;D/$%;Ì/e#$%2D""6D7E/,#;Ì/#$+")("'#&'#0<*%2D""6D7E/,#;Ì/#$+")("'#&'#&/#$+")("'#&'#/,$;E/#$+%)(%'#($'#(#'#("'#&'#`),v(`%3ņ""5(7Ň./ &3ň""5$7ʼn.# &;6/' 8!:Ŋ!! )`),v(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),v(`%;Ï/G#;./>$;Ï/5$;./,$;/#$+%)(%'#($'#(#'#("'#&'#`),v("%$;!/�#*;!&&&#/' 8!:ŋ!! )"),v(`%;Ñ/]#$%;A/,#;Ñ/#$+")("'#&'#06*%;A/,#;Ñ/#$+")("'#&'#&/'$8":Ō" )("'#&'#`),v(`%;/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":ō" )("'#&'#`),v(`%;L.O &;.I &%;@." &"/:#;t/1$;?." &"/#$+#)(#'#("'#&'#/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":Ŏ" )("'#&'#`),v(`%;Ô/]#$%;B/,#;Õ/#$+")("'#&'#06*%;B/,#;Õ/#$+")("'#&'#&/'$8":ŏ" )("'#&'#`),v("%;/& 8!:Ő! )"),v(`%3ő""5(7Œ/:#;</1$;6/($8#:œ#! )(#'#("'#&'#.g &%3Ŕ""5&7ŕ/:#;</1$;6/($8#:Ŗ#! )(#'#("'#&'#.: &%3ŗ""5*7Ř/& 8!:ř! ).# &; `),v(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:Ŝ!! )`),v(`%;Ø/Y#$%;A/,#;Ø/#$+")("'#&'#06*%;A/,#;Ø/#$+")("'#&'#&/#$+")("'#&'#`),v(`%;/Y#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/#$+")("'#&'#`),v("%$;!/�#*;!&&&#/' 8!:ŝ!! )"),v(`%;Û/Y#$%;B/,#;Ü/#$+")("'#&'#06*%;B/,#;Ü/#$+")("'#&'#&/#$+")("'#&'#`),v(`%3Ş""5&7ş.; &3Š""5'7š./ &3Ţ""5*7ţ.# &;6/& 8!:Ť! )`),v(`%3ť""5&7Ŧ/:#;</1$;Ý/($8#:ŧ#! )(#'#("'#&'#.} &%3õ""5'7ö/:#;</1$;/($8#:Ũ#! )(#'#("'#&'#.P &%3ũ""5+7Ū/:#;</1$;/($8#:ū#! )(#'#("'#&'#.# &; `),v(`3Ŭ""5+7ŭ.k &3Ů""5)7ů._ &3Ű""5(7ű.S &3Ų""5'7ų.G &3Ŵ""5&7ŵ.; &3Ŷ""5*7ŷ./ &3Ÿ""5)7Ź.# &;6`),v(';1." &"'),v(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:ź!! )`),v(`%;L.# &;/]#$%;B/,#;á/#$+")("'#&'#06*%;B/,#;á/#$+")("'#&'#&/'$8":Ż" )("'#&'#`),v(";¹.# &; "),v(`%;ã/Y#$%;A/,#;ã/#$+")("'#&'#06*%;A/,#;ã/#$+")("'#&'#&/#$+")("'#&'#`),v(`%;ê/k#;./b$;í/Y$$%;B/,#;ä/#$+")("'#&'#06*%;B/,#;ä/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),v(";å.; &;æ.5 &;ç./ &;è.) &;é.# &; "),v(`%3ż""5#7Ž/:#;</1$;ð/($8#:ž#! )(#'#("'#&'#`),v(`%3ſ""5%7ƀ/:#;</1$;T/($8#:Ɓ#! )(#'#("'#&'#`),v(`%3Ƃ""5(7ƃ/F#;</=$;\\.) &;Y.# &;X/($8#:Ƅ#! )(#'#("'#&'#`),v(`%3ƅ""5&7Ɔ/:#;</1$;6/($8#:Ƈ#! )(#'#("'#&'#`),v(`%3ƈ""5%7Ɖ/A#;</8$$;!0#*;!&/($8#:Ɗ#! )(#'#("'#&'#`),v(`%;ë/G#;;/>$;6/5$;;/,$;ì/#$+%)(%'#($'#(#'#("'#&'#`),v(`%3""5#7Ó.# &;6/' 8!:Ƌ!! )`),v(`%3±""5#7ƌ.G &3³""5#7ƍ.; &3·""5#7Ǝ./ &3µ""5$7Ə.# &;6/' 8!:Ɛ!! )`),v(`%;î/D#%;C/,#;ï/#$+")("'#&'#." &"/#$+")("'#&'#`),v("%;U.) &;\\.# &;X/& 8!:Ƒ! )"),v(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:ƒ!! )`),v(`%%;!/?#;!." &"/1$;!." &"/#$+#)(#'#("'#&'#/' 8!:Ɠ!! )`),v(";¾"),v(`%;/^#$%;B/,#;ó/#$+")("'#&'#06*%;B/,#;ó/#$+")("'#&'#&/($8":Ɣ"!!)("'#&'#`),v(";ô.# &; "),v(`%2ƕ""6ƕ7Ɩ/L#;</C$2Ɨ""6Ɨ7Ƙ.) &2ƙ""6ƙ7ƚ/($8#:ƛ#! )(#'#("'#&'#`),v(`%;/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ɯ"!!)("'#&'#`),v(`%;6/5#;0/,$;÷/#$+#)(#'#("'#&'#`),v("$;2.) &;4.# &;.0/*;2.) &;4.# &;.&"),v("$;%0#*;%&"),v(`%;ú/;#28""6879/,$;û/#$+#)(#'#("'#&'#`),v(`%3Ɲ""5%7ƞ.) &3Ɵ""5$7Ơ/' 8!:ơ!! )`),v(`%;ü/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),v("%;\\.) &;X.# &;/' 8!:Ƣ!! )"),v(';".S &;!.M &2F""6F7G.A &2J""6J7K.5 &2H""6H7I.) &2N""6N7O'),v('2L""6L7M. &2B""6B7C. &2<""6<7=.} &2R""6R7S.q &2T""6T7U.e &2V""6V7W.Y &2P""6P7Q.M &2@""6@7A.A &2D""6D7E.5 &22""6273.) &2>""6>7?'),v(`%;Ā/b#28""6879/S$;û/J$%2ƣ""6ƣ7Ƥ/,#;ì/#$+")("'#&'#." &"/#$+$)($'#(#'#("'#&'#`),v(`%3ƥ""5%7Ʀ.) &3Ƨ""5$7ƨ/' 8!:ơ!! )`),v(`%3±""5#7².6 &3³""5#7´.* &$;+0#*;+&/' 8!:Ʃ!! )`),v(`%;Ą/#2F""6F7G/x$;ă/o$2F""6F7G/\`$;ă/W$2F""6F7G/H$;ă/?$2F""6F7G/0$;ą/'$8):ƪ) )()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#`),v(`%;#/>#;#/5$;#/,$;#/#$+$)($'#(#'#("'#&'#`),v(`%;ă/,#;ă/#$+")("'#&'#`),v(`%;ă/5#;ă/,$;ă/#$+#)(#'#("'#&'#`),v(`%;q/T#$;m0#*;m&/D$%; /,#;ø/#$+")("'#&'#." &"/#$+#)(#'#("'#&'#`),v(`%2ƫ""6ƫ7Ƭ.) &2ƭ""6ƭ7Ʈ/w#;0/n$;Ĉ/e$$%;B/2#;ĉ.# &; /#$+")("'#&'#0<*%;B/2#;ĉ.# &; /#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),v(";.# &;L"),v(`%2Ư""6Ư7ư/5#;</,$;Ċ/#$+#)(#'#("'#&'#`),v(`%;D/S#;,/J$2:""6:7;/;$;,.# &;T/,$;E/#$+%)(%'#($'#(#'#("'#&'#`)];let l=0,u=0;const c=[{line:1,column:1}];let d=0,p=[],h=0,m;if(t.startRule!==void 0){if(!(t.startRule in s))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');i=s[t.startRule]}function y(){return e.substring(u,l)}function T(){return E(u,l)}function g(C,S){return{type:"literal",text:C,ignoreCase:S}}function b(C,S,x){return{type:"class",parts:C,inverted:S,ignoreCase:x}}function w(){return{type:"end"}}function _(C){let S=c[C],x;if(S)return S;for(x=C-1;!c[x];)x--;for(S=c[x],S={line:S.line,column:S.column};x<C;)e.charCodeAt(x)===10?(S.line++,S.column=1):S.column++,x++;return c[C]=S,S}function E(C,S){const x=_(C),O=_(S);return{source:n,start:{offset:C,line:x.line,column:x.column},end:{offset:S,line:O.line,column:O.column}}}function P(C){l<d||(l>d&&(d=l,p=[]),p.push(C))}function B(C,S,x){return new ep(ep.buildMessage(C,S),C,S,x)}function v(C){return C.split("").map(S=>S.charCodeAt(0)-32)}function N(C){const S=a[C];let x=0;const O=[];let R=S.length;const M=[],z=[];let G;for(;;){for(;x<R;)switch(S[x]){case 0:z.push(o[S[x+1]]),x+=2;break;case 1:z.push(void 0),x++;break;case 2:z.push(null),x++;break;case 3:z.push(r),x++;break;case 4:z.push([]),x++;break;case 5:z.push(l),x++;break;case 6:z.pop(),x++;break;case 7:l=z.pop(),x++;break;case 8:z.length-=S[x+1],x+=2;break;case 9:z.splice(-2,1),x++;break;case 10:z[z.length-2].push(z.pop()),x++;break;case 11:z.push(z.splice(z.length-S[x+1],S[x+1])),x+=2;break;case 12:z.push(e.substring(z.pop(),l)),x++;break;case 13:M.push(R),O.push(x+3+S[x+1]+S[x+2]),z[z.length-1]?(R=x+3+S[x+1],x+=3):(R=x+3+S[x+1]+S[x+2],x+=3+S[x+1]);break;case 14:M.push(R),O.push(x+3+S[x+1]+S[x+2]),z[z.length-1]===r?(R=x+3+S[x+1],x+=3):(R=x+3+S[x+1]+S[x+2],x+=3+S[x+1]);break;case 15:M.push(R),O.push(x+3+S[x+1]+S[x+2]),z[z.length-1]!==r?(R=x+3+S[x+1],x+=3):(R=x+3+S[x+1]+S[x+2],x+=3+S[x+1]);break;case 16:z[z.length-1]!==r?(M.push(R),O.push(x),R=x+2+S[x+1],x+=2):x+=2+S[x+1];break;case 17:M.push(R),O.push(x+3+S[x+1]+S[x+2]),e.length>l?(R=x+3+S[x+1],x+=3):(R=x+3+S[x+1]+S[x+2],x+=3+S[x+1]);break;case 18:M.push(R),O.push(x+4+S[x+2]+S[x+3]),e.substr(l,o[S[x+1]].length)===o[S[x+1]]?(R=x+4+S[x+2],x+=4):(R=x+4+S[x+2]+S[x+3],x+=4+S[x+2]);break;case 19:M.push(R),O.push(x+4+S[x+2]+S[x+3]),e.substr(l,o[S[x+1]].length).toLowerCase()===o[S[x+1]]?(R=x+4+S[x+2],x+=4):(R=x+4+S[x+2]+S[x+3],x+=4+S[x+2]);break;case 20:M.push(R),O.push(x+4+S[x+2]+S[x+3]),o[S[x+1]].test(e.charAt(l))?(R=x+4+S[x+2],x+=4):(R=x+4+S[x+2]+S[x+3],x+=4+S[x+2]);break;case 21:z.push(e.substr(l,S[x+1])),l+=S[x+1],x+=2;break;case 22:z.push(o[S[x+1]]),l+=o[S[x+1]].length,x+=2;break;case 23:z.push(r),h===0&&P(o[S[x+1]]),x+=2;break;case 24:u=z[z.length-1-S[x+1]],x+=2;break;case 25:u=l,x++;break;case 26:G=S.slice(x+4,x+4+S[x+3]).map(function(ae){return z[z.length-1-ae]}),z.splice(z.length-S[x+2],S[x+2],o[S[x+1]].apply(null,G)),x+=4+S[x+3];break;case 27:z.push(N(S[x+1])),x+=2;break;case 28:h++,x++;break;case 29:h--,x++;break;default:throw new Error("Invalid opcode: "+S[x]+".")}if(M.length>0)R=M.pop(),x=O.pop();else break}return z[0]}t.data={};function q(C,S){return[C].concat(S)}if(m=N(i),m!==r&&l===e.length)return m;throw m!==r&&l<e.length&&P(w()),B(p,d<e.length?e.charAt(d):null,d<e.length?E(d,d+1):E(d,d))}const J0=G0;var Tt;(function(e){function t(s,i){const o={startRule:i};try{J0(s,o)}catch{o.data=-1}return o.data}e.parse=t;function r(s){const i=e.parse(s,"Name_Addr_Header");return i!==-1?i:void 0}e.nameAddrHeaderParse=r;function n(s){const i=e.parse(s,"SIP_URI");return i!==-1?i:void 0}e.URIParse=n})(Tt=Tt||(Tt={}));var Y0={100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"};function ss(e,t=32){let r="";for(let n=0;n<e;n++){const s=Math.floor(Math.random()*t);r+=s.toString(t)}return r}function Bo(e){return Y0[e]||""}function Lo(){return ss(10)}function Nr(e){const t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},r=e.toLowerCase().replace(/_/g,"-").split("-"),n=r.length;let s="";for(let i=0;i<n;i++)i!==0&&(s+="-"),s+=r[i].charAt(0).toUpperCase()+r[i].substring(1);return t[s]&&(s=t[s]),s}function ki(e){return encodeURIComponent(e).replace(/%[A-F\d]{2}/g,"U").length}var tp=class{constructor(){this.headers={}}addHeader(e,t){const r={raw:t};e=Nr(e),this.headers[e]?this.headers[e].push(r):this.headers[e]=[r]}getHeader(e){const t=this.headers[Nr(e)];if(t){if(t[0])return t[0].raw}else return}getHeaders(e){const t=this.headers[Nr(e)],r=[];if(!t)return[];for(const n of t)r.push(n.raw);return r}hasHeader(e){return!!this.headers[Nr(e)]}parseHeader(e,t=0){if(e=Nr(e),this.headers[e]){if(t>=this.headers[e].length)return}else return;const r=this.headers[e][t],n=r.raw;if(r.parsed)return r.parsed;const s=Tt.parse(n,e.replace(/-/g,"_"));if(s===-1){this.headers[e].splice(t,1);return}else return r.parsed=s,s}s(e,t=0){return this.parseHeader(e,t)}setHeader(e,t){this.headers[Nr(e)]=[{raw:t}]}toString(){return this.data}},Ms=class extends tp{constructor(){super()}},kn=class extends tp{constructor(){super()}},Nl=class Ca{constructor(t,r,n,s,i,o,a){this.headers={},this.extraHeaders=[],this.options=Ca.getDefaultOptions(),i&&(this.options=Object.assign(Object.assign({},this.options),i),this.options.optionTags&&this.options.optionTags.length&&(this.options.optionTags=this.options.optionTags.slice()),this.options.routeSet&&this.options.routeSet.length&&(this.options.routeSet=this.options.routeSet.slice())),o&&o.length&&(this.extraHeaders=o.slice()),a&&(this.body={body:a.content,contentType:a.contentType}),this.method=t,this.ruri=r.clone(),this.fromURI=n.clone(),this.fromTag=this.options.fromTag?this.options.fromTag:Lo(),this.from=Ca.makeNameAddrHeader(this.fromURI,this.options.fromDisplayName,this.fromTag),this.toURI=s.clone(),this.toTag=this.options.toTag,this.to=Ca.makeNameAddrHeader(this.toURI,this.options.toDisplayName,this.toTag),this.callId=this.options.callId?this.options.callId:this.options.callIdPrefix+ss(15),this.cseq=this.options.cseq,this.setHeader("route",this.options.routeSet),this.setHeader("via",""),this.setHeader("to",this.to.toString()),this.setHeader("from",this.from.toString()),this.setHeader("cseq",this.cseq+" "+this.method),this.setHeader("call-id",this.callId),this.setHeader("max-forwards","70")}static getDefaultOptions(){return{callId:"",callIdPrefix:"",cseq:1,toDisplayName:"",toTag:"",fromDisplayName:"",fromTag:"",forceRport:!1,hackViaTcp:!1,optionTags:["outbound"],routeSet:[],userAgentString:"sip.js",viaHost:""}}static makeNameAddrHeader(t,r,n){const s={};return n&&(s.tag=n),new mr(t,r,s)}getHeader(t){const r=this.headers[Nr(t)];if(r){if(r[0])return r[0]}else{const n=new RegExp("^\\s*"+t+"\\s*:","i");for(const s of this.extraHeaders)if(n.test(s))return s.substring(s.indexOf(":")+1).trim()}}getHeaders(t){const r=[],n=this.headers[Nr(t)];if(n)for(const s of n)r.push(s);else{const s=new RegExp("^\\s*"+t+"\\s*:","i");for(const i of this.extraHeaders)s.test(i)&&r.push(i.substring(i.indexOf(":")+1).trim())}return r}hasHeader(t){if(this.headers[Nr(t)])return!0;{const r=new RegExp("^\\s*"+t+"\\s*:","i");for(const n of this.extraHeaders)if(r.test(n))return!0}return!1}setHeader(t,r){this.headers[Nr(t)]=r instanceof Array?r:[r]}setViaHeader(t,r){this.options.hackViaTcp&&(r="TCP");let n="SIP/2.0/"+r;n+=" "+this.options.viaHost+";branch="+t,this.options.forceRport&&(n+=";rport"),this.setHeader("via",n),this.branch=t}toString(){let t="";t+=this.method+" "+this.ruri.toRaw()+` SIP/2.0\r
|
|
13
13
|
`;for(const r in this.headers)if(this.headers[r])for(const n of this.headers[r])t+=r+": "+n+`\r
|
|
14
14
|
`;for(const r of this.extraHeaders)t+=r.trim()+`\r
|
|
15
15
|
`;return t+="Supported: "+this.options.optionTags.join(", ")+`\r
|
|
16
16
|
`,t+="User-Agent: "+this.options.userAgentString+`\r
|
|
17
|
-
`,this.body?typeof this.body=="string"?(t+="Content-Length: "+
|
|
17
|
+
`,this.body?typeof this.body=="string"?(t+="Content-Length: "+ki(this.body)+`\r
|
|
18
18
|
\r
|
|
19
19
|
`,t+=this.body):this.body.body&&this.body.contentType?(t+="Content-Type: "+this.body.contentType+`\r
|
|
20
|
-
`,t+="Content-Length: "+
|
|
20
|
+
`,t+="Content-Length: "+ki(this.body.body)+`\r
|
|
21
21
|
\r
|
|
22
22
|
`,t+=this.body.body):t+=`Content-Length: 0\r
|
|
23
23
|
\r
|
|
24
24
|
`:t+=`Content-Length: 0\r
|
|
25
25
|
\r
|
|
26
|
-
`,t}};function Qf(e){return e==="application/sdp"?"session":"render"}function Ho(e){const t=typeof e=="string"?e:e.body,r=typeof e=="string"?"application/sdp":e.contentType;return{contentDisposition:Qf(r),contentType:r,content:t}}function ep(e){return e&&typeof e.content=="string"&&typeof e.contentType=="string"&&e.contentDisposition===void 0?!0:typeof e.contentDisposition=="string"}function Ti(e){let t,r,n;if(e instanceof Os&&e.body){const s=e.parseHeader("Content-Disposition");t=s?s.type:void 0,r=e.parseHeader("Content-Type"),n=e.body}if(e instanceof En&&e.body){const s=e.parseHeader("Content-Disposition");t=s?s.type:void 0,r=e.parseHeader("Content-Type"),n=e.body}if(e instanceof Ol&&e.body)if(t=e.getHeader("Content-Disposition"),r=e.getHeader("Content-Type"),typeof e.body=="string"){if(!r)throw new Error("Header content type header does not equal body content type.");n=e.body}else{if(r&&r!==e.body.contentType)throw new Error("Header content type header does not equal body content type.");r=e.body.contentType,n=e.body.body}if(ep(e)&&(t=e.contentDisposition,r=e.contentType,n=e.content),!!n){if(r&&!t&&(t=Qf(r)),!t)throw new Error("Content disposition undefined.");if(!r)throw new Error("Content type undefined.");return{contentDisposition:t,contentType:r,content:n}}}var mr;(function(e){e.Initial="Initial",e.Early="Early",e.AckWait="AckWait",e.Confirmed="Confirmed",e.Terminated="Terminated"})(mr=mr||(mr={}));var ve;(function(e){e.Initial="Initial",e.HaveLocalOffer="HaveLocalOffer",e.HaveRemoteOffer="HaveRemoteOffer",e.Stable="Stable",e.Closed="Closed"})(ve=ve||(ve={}));var sn=500,J0=4e3,Hl=5e3;const kt={T1:sn,T2:J0,T4:Hl,TIMER_B:64*sn,TIMER_D:0*sn,TIMER_F:64*sn,TIMER_H:64*sn,TIMER_I:0*Hl,TIMER_J:0*sn,TIMER_K:0*Hl,TIMER_L:64*sn,TIMER_M:64*sn,TIMER_N:64*sn,PROVISIONAL_RESPONSE_INTERVAL:6e4};var An=class extends rs{constructor(e){super(e||"Transaction state error.")}},ye;(function(e){e.ACK="ACK",e.BYE="BYE",e.CANCEL="CANCEL",e.INFO="INFO",e.INVITE="INVITE",e.MESSAGE="MESSAGE",e.NOTIFY="NOTIFY",e.OPTIONS="OPTIONS",e.REGISTER="REGISTER",e.UPDATE="UPDATE",e.SUBSCRIBE="SUBSCRIBE",e.PUBLISH="PUBLISH",e.REFER="REFER",e.PRACK="PRACK"})(ye=ye||(ye={}));const kn=[ye.ACK,ye.BYE,ye.CANCEL,ye.INFO,ye.INVITE,ye.MESSAGE,ye.NOTIFY,ye.OPTIONS,ye.PRACK,ye.REFER,ye.REGISTER,ye.SUBSCRIBE];var tp=class{constructor(e){this.incomingMessageRequest=e}get request(){return this.incomingMessageRequest.message}accept(e){return this.incomingMessageRequest.accept(e),Promise.resolve()}reject(e){return this.incomingMessageRequest.reject(e),Promise.resolve()}},Ml=class{constructor(e){this.incomingNotifyRequest=e}get request(){return this.incomingNotifyRequest.message}accept(e){return this.incomingNotifyRequest.accept(e),Promise.resolve()}reject(e){return this.incomingNotifyRequest.reject(e),Promise.resolve()}},Y0=class{constructor(e,t){this.incomingReferRequest=e,this.session=t}get referTo(){const e=this.incomingReferRequest.message.parseHeader("refer-to");if(!(e instanceof vr))throw new Error("Failed to parse Refer-To header.");return e}get referredBy(){return this.incomingReferRequest.message.getHeader("referred-by")}get replaces(){const e=this.referTo.uri.getHeader("replaces");return e instanceof Array?e[0]:e}get request(){return this.incomingReferRequest.message}accept(e={statusCode:202}){return this.incomingReferRequest.accept(e),Promise.resolve()}reject(e){return this.incomingReferRequest.reject(e),Promise.resolve()}makeInviter(e){if(this.inviter)return this.inviter;const t=this.referTo.uri.clone();t.clearHeaders(),e=e||{};const r=(e.extraHeaders||[]).slice(),n=this.replaces;n&&r.push("Replaces: "+decodeURIComponent(n));const s=this.referredBy;return s&&r.push("Referred-By: "+s),e.extraHeaders=r,this.inviter=this.session.userAgent._makeInviter(t,e),this.inviter._referred=this.session,this.session._referral=this.inviter,this.inviter}},W;(function(e){e.Initial="Initial",e.Establishing="Establishing",e.Established="Established",e.Terminating="Terminating",e.Terminated="Terminated"})(W=W||(W={}));var Nl=class _g{constructor(t,r={}){this.pendingReinvite=!1,this.pendingReinviteAck=!1,this._state=W.Initial,this.delegate=r.delegate,this._stateEventEmitter=new Ci,this._userAgent=t}dispose(){switch(this.logger.log(`Session ${this.id} in state ${this._state} is being disposed`),delete this.userAgent._sessions[this.id],this._sessionDescriptionHandler&&this._sessionDescriptionHandler.close(),this.state){case W.Initial:break;case W.Establishing:break;case W.Established:return new Promise(t=>{this._bye({onAccept:()=>t(),onRedirect:()=>t(),onReject:()=>t()})});case W.Terminating:break;case W.Terminated:break;default:throw new Error("Unknown state.")}return Promise.resolve()}get assertedIdentity(){return this._assertedIdentity}get dialog(){return this._dialog}get id(){return this._id}get replacee(){return this._replacee}get sessionDescriptionHandler(){return this._sessionDescriptionHandler}get sessionDescriptionHandlerFactory(){return this.userAgent.configuration.sessionDescriptionHandlerFactory}get sessionDescriptionHandlerModifiers(){return this._sessionDescriptionHandlerModifiers||[]}set sessionDescriptionHandlerModifiers(t){this._sessionDescriptionHandlerModifiers=t.slice()}get sessionDescriptionHandlerOptions(){return this._sessionDescriptionHandlerOptions||{}}set sessionDescriptionHandlerOptions(t){this._sessionDescriptionHandlerOptions=Object.assign({},t)}get sessionDescriptionHandlerModifiersReInvite(){return this._sessionDescriptionHandlerModifiersReInvite||[]}set sessionDescriptionHandlerModifiersReInvite(t){this._sessionDescriptionHandlerModifiersReInvite=t.slice()}get sessionDescriptionHandlerOptionsReInvite(){return this._sessionDescriptionHandlerOptionsReInvite||{}}set sessionDescriptionHandlerOptionsReInvite(t){this._sessionDescriptionHandlerOptionsReInvite=Object.assign({},t)}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get userAgent(){return this._userAgent}bye(t={}){let r="Session.bye() may only be called if established session.";switch(this.state){case W.Initial:typeof this.cancel=="function"?(r+=" However Inviter.invite() has not yet been called.",r+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(r+=" However Invitation.accept() has not yet been called.",r+=" Perhaps you should have called Invitation.reject()?");break;case W.Establishing:typeof this.cancel=="function"?(r+=" However a dialog does not yet exist.",r+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(r+=" However Invitation.accept() has not yet been called (or not yet resolved).",r+=" Perhaps you should have called Invitation.reject()?");break;case W.Established:{const n=t.requestDelegate,s=this.copyRequestOptions(t.requestOptions);return this._bye(n,s)}case W.Terminating:r+=" However this session is already terminating.",typeof this.cancel=="function"?r+=" Perhaps you have already called Inviter.cancel()?":typeof this.reject=="function"&&(r+=" Perhaps you have already called Session.bye()?");break;case W.Terminated:r+=" However this session is already terminated.";break;default:throw new Error("Unknown state")}return this.logger.error(r),Promise.reject(new Error(`Invalid session state ${this.state}`))}info(t={}){if(this.state!==W.Established)return this.logger.error("Session.info() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const r=t.requestDelegate,n=this.copyRequestOptions(t.requestOptions);return this._info(r,n)}invite(t={}){if(this.logger.log("Session.invite"),this.state!==W.Established)return Promise.reject(new Error(`Invalid session state ${this.state}`));if(this.pendingReinvite)return Promise.reject(new $l("Reinvite in progress. Please wait until complete, then try again."));this.pendingReinvite=!0,t.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiersReInvite=t.sessionDescriptionHandlerModifiers),t.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptionsReInvite=t.sessionDescriptionHandlerOptions);const r={onAccept:i=>{const o=Ti(i.message);if(!o){this.logger.error("Received 2xx response to re-INVITE without a session description"),this.ackAndBye(i,400,"Missing session description"),this.stateTransition(W.Terminated),this.pendingReinvite=!1;return}if(t.withoutSdp){const a={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setOfferAndGetAnswer(o,a).then(l=>{i.ack({body:l})}).catch(l=>{this.logger.error("Failed to handle offer in 2xx response to re-INVITE"),this.logger.error(l.message),this.state===W.Terminated?i.ack():(this.ackAndBye(i,488,"Bad Media Description"),this.stateTransition(W.Terminated))}).then(()=>{this.pendingReinvite=!1,t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(i)})}else{const a={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setAnswer(o,a).then(()=>{i.ack()}).catch(l=>{this.logger.error("Failed to handle answer in 2xx response to re-INVITE"),this.logger.error(l.message),this.state!==W.Terminated?(this.ackAndBye(i,488,"Bad Media Description"),this.stateTransition(W.Terminated)):i.ack()}).then(()=>{this.pendingReinvite=!1,t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(i)})}},onProgress:i=>{},onRedirect:i=>{},onReject:i=>{this.logger.warn("Received a non-2xx response to re-INVITE"),this.pendingReinvite=!1,t.withoutSdp?t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(i):this.rollbackOffer().catch(o=>{if(this.logger.error("Failed to rollback offer on non-2xx response to re-INVITE"),this.logger.error(o.message),this.state!==W.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const a=[];a.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:a}),this.stateTransition(W.Terminated)}}).then(()=>{t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(i)})},onTrying:i=>{}},n=t.requestOptions||{};if(n.extraHeaders=(n.extraHeaders||[]).slice(),n.extraHeaders.push("Allow: "+kn.toString()),n.extraHeaders.push("Contact: "+this._contact),t.withoutSdp){if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return Promise.resolve(this.dialog.invite(r,n))}const s={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};return this.getOffer(s).then(i=>{if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return n.body=i,this.dialog.invite(r,n)}).catch(i=>{throw this.logger.error(i.message),this.logger.error("Failed to send re-INVITE"),this.pendingReinvite=!1,i})}message(t={}){if(this.state!==W.Established)return this.logger.error("Session.message() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const r=t.requestDelegate,n=this.copyRequestOptions(t.requestOptions);return this._message(r,n)}refer(t,r={}){if(this.state!==W.Established)return this.logger.error("Session.refer() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));if(t instanceof _g&&!t.dialog)return this.logger.error("Session.refer() may only be called with session which is established. You are perhaps attempting to attended transfer to a target for which there is not dialog yet established. Perhaps you are attempting a 'semi-attended' tansfer? Regardless, this is not supported. The recommended approached is to check to see if the target Session is in the Established state before calling refer(); if the state is not Established you may proceed by falling back using a URI as the target (blind transfer)."),Promise.reject(new Error(`Invalid session state ${this.state}`));const n=r.requestDelegate,s=this.copyRequestOptions(r.requestOptions);return s.extraHeaders=s.extraHeaders?s.extraHeaders.concat(this.referExtraHeaders(this.referToString(t))):this.referExtraHeaders(this.referToString(t)),this._refer(r.onNotify,n,s)}_bye(t,r){if(!this.dialog)return Promise.reject(new Error("Session dialog undefined."));const n=this.dialog;switch(n.sessionState){case mr.Initial:throw new Error(`Invalid dialog state ${n.sessionState}`);case mr.Early:throw new Error(`Invalid dialog state ${n.sessionState}`);case mr.AckWait:return this.stateTransition(W.Terminating),new Promise(s=>{n.delegate={onAck:()=>{const i=n.bye(t,r);return this.stateTransition(W.Terminated),s(i),Promise.resolve()},onAckTimeout:()=>{const i=n.bye(t,r);this.stateTransition(W.Terminated),s(i)}}});case mr.Confirmed:{const s=n.bye(t,r);return this.stateTransition(W.Terminated),Promise.resolve(s)}case mr.Terminated:throw new Error(`Invalid dialog state ${n.sessionState}`);default:throw new Error("Unrecognized state.")}}_info(t,r){return this.dialog?Promise.resolve(this.dialog.info(t,r)):Promise.reject(new Error("Session dialog undefined."))}_message(t,r){return this.dialog?Promise.resolve(this.dialog.message(t,r)):Promise.reject(new Error("Session dialog undefined."))}_refer(t,r,n){return this.dialog?(this.onNotify=t,Promise.resolve(this.dialog.refer(r,n))):Promise.reject(new Error("Session dialog undefined."))}ackAndBye(t,r,n){t.ack();const s=[];r&&s.push("Reason: "+this.getReasonHeaderValue(r,n)),t.session.bye(void 0,{extraHeaders:s})}onAckRequest(t){if(this.logger.log("Session.onAckRequest"),this.state!==W.Established&&this.state!==W.Terminating)return this.logger.error(`ACK received while in state ${this.state}, dropping request`),Promise.resolve();const r=this.dialog;if(!r)throw new Error("Dialog undefined.");const n={sessionDescriptionHandlerOptions:this.pendingReinviteAck?this.sessionDescriptionHandlerOptionsReInvite:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.pendingReinviteAck?this._sessionDescriptionHandlerModifiersReInvite:this._sessionDescriptionHandlerModifiers};if(this.delegate&&this.delegate.onAck){const s=new V0(t);this.delegate.onAck(s)}switch(this.pendingReinviteAck=!1,r.signalingState){case ve.Initial:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(W.Terminated),Promise.resolve()}case ve.Stable:{const s=Ti(t.message);return s?s.contentDisposition==="render"?(this._renderbody=s.content,this._rendertype=s.contentType,Promise.resolve()):s.contentDisposition!=="session"?Promise.resolve():this.setAnswer(s,n).catch(i=>{this.logger.error(i.message);const o=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];r.bye(void 0,{extraHeaders:o}),this.stateTransition(W.Terminated)}):Promise.resolve()}case ve.HaveLocalOffer:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(W.Terminated),Promise.resolve()}case ve.HaveRemoteOffer:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(W.Terminated),Promise.resolve()}case ve.Closed:throw new Error(`Invalid signaling state ${r.signalingState}.`);default:throw new Error(`Invalid signaling state ${r.signalingState}.`)}}onByeRequest(t){if(this.logger.log("Session.onByeRequest"),this.state!==W.Established){this.logger.error(`BYE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onBye){const r=new j0(t);this.delegate.onBye(r)}else t.accept();this.stateTransition(W.Terminated)}onInfoRequest(t){if(this.logger.log("Session.onInfoRequest"),this.state!==W.Established){this.logger.error(`INFO received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onInfo){const r=new z0(t);this.delegate.onInfo(r)}else t.accept()}onInviteRequest(t){if(this.logger.log("Session.onInviteRequest"),this.state!==W.Established){this.logger.error(`INVITE received while in state ${this.state}, dropping request`);return}this.pendingReinviteAck=!0;const r=["Contact: "+this._contact];if(t.message.hasHeader("P-Asserted-Identity")){const s=t.message.getHeader("P-Asserted-Identity");if(!s)throw new Error("Header undefined.");this._assertedIdentity=Tt.nameAddrHeaderParse(s)}const n={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.generateResponseOfferAnswerInDialog(n).then(s=>{const i=t.accept({statusCode:200,extraHeaders:r,body:s});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,200)}).catch(s=>{if(this.logger.error(s.message),this.logger.error("Failed to handle to re-INVITE request"),!this.dialog)throw new Error("Dialog undefined.");if(this.logger.error(this.dialog.signalingState),this.dialog.signalingState===ve.Stable){const i=t.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,488);return}this.rollbackOffer().then(()=>{const i=t.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,488)}).catch(i=>{this.logger.error(i.message),this.logger.error("Failed to rollback offer on re-INVITE request");const o=t.reject({statusCode:488});if(this.state!==W.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const a=[];a.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:a}),this.stateTransition(W.Terminated)}this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,o.message,488)})})}onMessageRequest(t){if(this.logger.log("Session.onMessageRequest"),this.state!==W.Established){this.logger.error(`MESSAGE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onMessage){const r=new tp(t);this.delegate.onMessage(r)}else t.accept()}onNotifyRequest(t){if(this.logger.log("Session.onNotifyRequest"),this.state!==W.Established){this.logger.error(`NOTIFY received while in state ${this.state}, dropping request`);return}if(this.onNotify){const r=new Ml(t);this.onNotify(r);return}if(this.delegate&&this.delegate.onNotify){const r=new Ml(t);this.delegate.onNotify(r)}else t.accept()}onPrackRequest(t){if(this.logger.log("Session.onPrackRequest"),this.state!==W.Established){this.logger.error(`PRACK received while in state ${this.state}, dropping request`);return}throw new Error("Unimplemented.")}onReferRequest(t){if(this.logger.log("Session.onReferRequest"),this.state!==W.Established){this.logger.error(`REFER received while in state ${this.state}, dropping request`);return}if(!t.message.hasHeader("refer-to")){this.logger.warn("Invalid REFER packet. A refer-to header is required. Rejecting."),t.reject();return}const r=new Y0(t,this);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(r):(this.logger.log("No delegate available to handle REFER, automatically accepting and following."),r.accept().then(()=>r.makeInviter(this._referralInviterOptions).invite()).catch(n=>{this.logger.error(n.message)}))}generateResponseOfferAnswer(t,r){if(this.dialog)return this.generateResponseOfferAnswerInDialog(r);const n=Ti(t.message);return!n||n.contentDisposition!=="session"?this.getOffer(r):this.setOfferAndGetAnswer(n,r)}generateResponseOfferAnswerInDialog(t){if(!this.dialog)throw new Error("Dialog undefined.");switch(this.dialog.signalingState){case ve.Initial:return this.getOffer(t);case ve.HaveLocalOffer:return Promise.resolve(void 0);case ve.HaveRemoteOffer:if(!this.dialog.offer)throw new Error(`Session offer undefined in signaling state ${this.dialog.signalingState}.`);return this.setOfferAndGetAnswer(this.dialog.offer,t);case ve.Stable:return this.state!==W.Established?Promise.resolve(void 0):this.getOffer(t);case ve.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}getOffer(t){const r=this.setupSessionDescriptionHandler(),n=t.sessionDescriptionHandlerOptions,s=t.sessionDescriptionHandlerModifiers;try{return r.getDescription(n,s).then(i=>Ho(i)).catch(i=>{this.logger.error("Session.getOffer: SDH getDescription rejected...");const o=i instanceof Error?i:new Error("Session.getOffer unknown error.");throw this.logger.error(o.message),o})}catch(i){this.logger.error("Session.getOffer: SDH getDescription threw...");const o=i instanceof Error?i:new Error(i);return this.logger.error(o.message),Promise.reject(o)}}rollbackOffer(){const t=this.setupSessionDescriptionHandler();if(t.rollbackDescription===void 0)return Promise.resolve();try{return t.rollbackDescription().catch(r=>{this.logger.error("Session.rollbackOffer: SDH rollbackDescription rejected...");const n=r instanceof Error?r:new Error("Session.rollbackOffer unknown error.");throw this.logger.error(n.message),n})}catch(r){this.logger.error("Session.rollbackOffer: SDH rollbackDescription threw...");const n=r instanceof Error?r:new Error(r);return this.logger.error(n.message),Promise.reject(n)}}setAnswer(t,r){const n=this.setupSessionDescriptionHandler(),s=r.sessionDescriptionHandlerOptions,i=r.sessionDescriptionHandlerModifiers;try{if(!n.hasDescription(t.contentType))return Promise.reject(new Il)}catch(o){this.logger.error("Session.setAnswer: SDH hasDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}try{return n.setDescription(t.content,s,i).catch(o=>{this.logger.error("Session.setAnswer: SDH setDescription rejected...");const a=o instanceof Error?o:new Error("Session.setAnswer unknown error.");throw this.logger.error(a.message),a})}catch(o){this.logger.error("Session.setAnswer: SDH setDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}}setOfferAndGetAnswer(t,r){const n=this.setupSessionDescriptionHandler(),s=r.sessionDescriptionHandlerOptions,i=r.sessionDescriptionHandlerModifiers;try{if(!n.hasDescription(t.contentType))return Promise.reject(new Il)}catch(o){this.logger.error("Session.setOfferAndGetAnswer: SDH hasDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}try{return n.setDescription(t.content,s,i).then(()=>n.getDescription(s,i)).then(o=>Ho(o)).catch(o=>{this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription rejected...");const a=o instanceof Error?o:new Error("Session.setOfferAndGetAnswer unknown error.");throw this.logger.error(a.message),a})}catch(o){this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}}setSessionDescriptionHandler(t){if(this._sessionDescriptionHandler)throw new Error("Session description handler defined.");this._sessionDescriptionHandler=t}setupSessionDescriptionHandler(){var t;return this._sessionDescriptionHandler?this._sessionDescriptionHandler:(this._sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions),!((t=this.delegate)===null||t===void 0)&&t.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(this._sessionDescriptionHandler,!1),this._sessionDescriptionHandler)}stateTransition(t){const r=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case W.Initial:t!==W.Establishing&&t!==W.Established&&t!==W.Terminating&&t!==W.Terminated&&r();break;case W.Establishing:t!==W.Established&&t!==W.Terminating&&t!==W.Terminated&&r();break;case W.Established:t!==W.Terminating&&t!==W.Terminated&&r();break;case W.Terminating:t!==W.Terminated&&r();break;case W.Terminated:r();break;default:throw new Error("Unrecognized state.")}this._state=t,this.logger.log(`Session ${this.id} transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),t===W.Terminated&&this.dispose()}copyRequestOptions(t={}){return{extraHeaders:t.extraHeaders?t.extraHeaders.slice():void 0,body:t.body?{contentDisposition:t.body.contentDisposition||"render",contentType:t.body.contentType||"text/plain",content:t.body.content||""}:void 0}}getReasonHeaderValue(t,r){const n=t;let s=Do(t);return!s&&r&&(s=r),"SIP;cause="+n+';text="'+s+'"'}referExtraHeaders(t){const r=[];return r.push("Referred-By: <"+this.userAgent.configuration.uri+">"),r.push("Contact: "+this._contact),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),r.push("Refer-To: "+t),r}referToString(t){let r;if(t instanceof Tn)r=t.toString();else{if(!t.dialog)throw new Error("Dialog undefined.");const n=t.remoteIdentity.friendlyName,s=t.dialog.remoteTarget.toString(),i=t.dialog.callId,o=t.dialog.remoteTag,a=t.dialog.localTag;r=`"${n}" <${s}?Replaces=${encodeURIComponent(`${i};to-tag=${o};from-tag=${a}`)}>`}return r}},Ar;(function(e){e.Required="Required",e.Supported="Supported",e.Unsupported="Unsupported"})(Ar=Ar||(Ar={}));const Z0={"100rel":!0,199:!0,answermode:!0,"early-session":!0,eventlist:!0,explicitsub:!0,"from-change":!0,"geolocation-http":!0,"geolocation-sip":!0,gin:!0,gruu:!0,histinfo:!0,ice:!0,join:!0,"multiple-refer":!0,norefersub:!0,nosub:!0,outbound:!0,path:!0,policy:!0,precondition:!0,pref:!0,privacy:!0,"recipient-list-invite":!0,"recipient-list-message":!0,"recipient-list-subscribe":!0,replaces:!0,"resource-priority":!0,"sdp-anat":!0,"sec-agree":!0,tdialog:!0,timer:!0,uui:!0};var Hs=class extends Nl{constructor(e,t){super(e),this.incomingInviteRequest=t,this.disposed=!1,this.expiresTimer=void 0,this.isCanceled=!1,this.rel100="none",this.rseq=Math.floor(Math.random()*1e4),this.userNoAnswerTimer=void 0,this.waitingForPrack=!1,this.logger=e.getLogger("sip.Invitation");const r=this.incomingInviteRequest.message,n=r.getHeader("require");n&&n.toLowerCase().includes("100rel")&&(this.rel100="required");const s=r.getHeader("supported");if(s&&s.toLowerCase().includes("100rel")&&(this.rel100="supported"),r.toTag=t.toTag,typeof r.toTag!="string")throw new TypeError("toTag should have been a string.");if(this.userNoAnswerTimer=setTimeout(()=>{t.reject({statusCode:480}),this.stateTransition(W.Terminated)},this.userAgent.configuration.noAnswerTimeout?this.userAgent.configuration.noAnswerTimeout*1e3:6e4),r.hasHeader("expires")){const a=Number(r.getHeader("expires")||0)*1e3;this.expiresTimer=setTimeout(()=>{this.state===W.Initial&&(t.reject({statusCode:487}),this.stateTransition(W.Terminated))},a)}const i=this.request.getHeader("P-Asserted-Identity");i&&(this._assertedIdentity=Tt.nameAddrHeaderParse(i)),this._contact=this.userAgent.contact.toString();const o=r.parseHeader("Content-Disposition");o&&o.type==="render"&&(this._renderbody=r.body,this._rendertype=r.getHeader("Content-Type")),this._id=r.callId+r.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.expiresTimer&&(clearTimeout(this.expiresTimer),this.expiresTimer=void 0),this.userNoAnswerTimer&&(clearTimeout(this.userNoAnswerTimer),this.userNoAnswerTimer=void 0),this.prackNeverArrived(),this.state){case W.Initial:return this.reject().then(()=>super.dispose());case W.Establishing:return this.reject().then(()=>super.dispose());case W.Established:return super.dispose();case W.Terminating:return super.dispose();case W.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get autoSendAnInitialProvisionalResponse(){return this.rel100!=="required"&&this.userAgent.configuration.sendInitialProvisionalResponse}get body(){return this.incomingInviteRequest.message.body}get localIdentity(){return this.request.to}get remoteIdentity(){return this.request.from}get request(){return this.incomingInviteRequest.message}accept(e={}){if(this.logger.log("Invitation.accept"),this.state!==W.Initial){const t=new Error(`Invalid session state ${this.state}`);return this.logger.error(t.message),Promise.reject(t)}return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.stateTransition(W.Establishing),this.sendAccept(e).then(({message:t,session:r})=>{r.delegate={onAck:n=>this.onAckRequest(n),onAckTimeout:()=>this.onAckTimeout(),onBye:n=>this.onByeRequest(n),onInfo:n=>this.onInfoRequest(n),onInvite:n=>this.onInviteRequest(n),onMessage:n=>this.onMessageRequest(n),onNotify:n=>this.onNotifyRequest(n),onPrack:n=>this.onPrackRequest(n),onRefer:n=>this.onReferRequest(n)},this._dialog=r,this.stateTransition(W.Established),this._replacee&&this._replacee._bye()}).catch(t=>this.handleResponseError(t))}progress(e={}){if(this.logger.log("Invitation.progress"),this.state!==W.Initial){const r=new Error(`Invalid session state ${this.state}`);return this.logger.error(r.message),Promise.reject(r)}const t=e.statusCode||180;if(t<100||t>199)throw new TypeError("Invalid statusCode: "+t);return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.waitingForPrack?(this.logger.warn("Unexpected call for progress while waiting for prack, ignoring"),Promise.resolve()):e.statusCode===100?this.sendProgressTrying().then(()=>{}).catch(r=>this.handleResponseError(r)):this.rel100!=="required"&&!(this.rel100==="supported"&&e.rel100)&&!(this.rel100==="supported"&&this.userAgent.configuration.sipExtension100rel===Ar.Required)?this.sendProgress(e).then(()=>{}).catch(r=>this.handleResponseError(r)):this.sendProgressReliableWaitForPrack(e).then(()=>{}).catch(r=>this.handleResponseError(r))}reject(e={}){if(this.logger.log("Invitation.reject"),this.state!==W.Initial&&this.state!==W.Establishing){const i=new Error(`Invalid session state ${this.state}`);return this.logger.error(i.message),Promise.reject(i)}const t=e.statusCode||480,r=e.reasonPhrase?e.reasonPhrase:Do(t),n=e.extraHeaders||[];if(t<300||t>699)throw new TypeError("Invalid statusCode: "+t);const s=e.body?Ho(e.body):void 0;return t<400?this.incomingInviteRequest.redirect([],{statusCode:t,reasonPhrase:r,extraHeaders:n,body:s}):this.incomingInviteRequest.reject({statusCode:t,reasonPhrase:r,extraHeaders:n,body:s}),this.stateTransition(W.Terminated),Promise.resolve()}_onCancel(e){if(this.logger.log("Invitation._onCancel"),this.state!==W.Initial&&this.state!==W.Establishing){this.logger.error(`CANCEL received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onCancel){const t=new U0(e);this.delegate.onCancel(t)}this.isCanceled=!0,this.incomingInviteRequest.reject({statusCode:487}),this.stateTransition(W.Terminated)}handlePrackOfferAnswer(e){if(!this.dialog)throw new Error("Dialog undefined.");const t=Ti(e.message);if(!t||t.contentDisposition!=="session")return Promise.resolve(void 0);const r={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers};switch(this.dialog.signalingState){case ve.Initial:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case ve.Stable:return this.setAnswer(t,r).then(()=>{});case ve.HaveLocalOffer:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case ve.HaveRemoteOffer:return this.setOfferAndGetAnswer(t,r);case ve.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}handleResponseError(e){let t=480;if(e instanceof Error?this.logger.error(e.message):this.logger.error(e),e instanceof Il?(this.logger.error("A session description handler occurred while sending response (content type unsupported"),t=415):e instanceof F0?this.logger.error("A session description handler occurred while sending response"):e instanceof Pl?this.logger.error("Session ended before response could be formulated and sent (while waiting for PRACK)"):e instanceof An&&this.logger.error("Session changed state before response could be formulated and sent"),this.state===W.Initial||this.state===W.Establishing)try{this.incomingInviteRequest.reject({statusCode:t}),this.stateTransition(W.Terminated)}catch(r){throw this.logger.error("An error occurred attempting to reject the request while handling another error"),r}if(this.isCanceled){this.logger.warn("An error occurred while attempting to formulate and send a response to an incoming INVITE. However a CANCEL was received and processed while doing so which can (and often does) result in errors occurring as the session terminates in the meantime. Said error is being ignored.");return}throw e}onAckTimeout(){if(this.logger.log("Invitation.onAckTimeout"),!this.dialog)throw new Error("Dialog undefined.");this.logger.log("No ACK received for an extended period of time, terminating session"),this.dialog.bye(),this.stateTransition(W.Terminated)}sendAccept(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.extraHeaders||[];return this.waitingForPrack?this.waitForArrivalOfPrack().then(()=>clearTimeout(this.userNoAnswerTimer)).then(()=>this.generateResponseOfferAnswer(this.incomingInviteRequest,t)).then(n=>this.incomingInviteRequest.accept({statusCode:200,body:n,extraHeaders:r})):(clearTimeout(this.userNoAnswerTimer),this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(n=>this.incomingInviteRequest.accept({statusCode:200,body:n,extraHeaders:r})))}sendProgress(e={}){const t=e.statusCode||180,r=e.reasonPhrase,n=(e.extraHeaders||[]).slice(),s=e.body?Ho(e.body):void 0;if(t===183&&!s)return this.sendProgressWithSDP(e);try{const i=this.incomingInviteRequest.progress({statusCode:t,reasonPhrase:r,extraHeaders:n,body:s});return this._dialog=i.session,Promise.resolve(i)}catch(i){return Promise.reject(i)}}sendProgressWithSDP(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.statusCode||183,n=e.reasonPhrase,s=(e.extraHeaders||[]).slice();return this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(i=>this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i})).then(i=>(this._dialog=i.session,i))}sendProgressReliable(e={}){return e.extraHeaders=(e.extraHeaders||[]).slice(),e.extraHeaders.push("Require: 100rel"),e.extraHeaders.push("RSeq: "+Math.floor(Math.random()*1e4)),this.sendProgressWithSDP(e)}sendProgressReliableWaitForPrack(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.statusCode||183,n=e.reasonPhrase,s=(e.extraHeaders||[]).slice();s.push("Require: 100rel"),s.push("RSeq: "+this.rseq++);let i;return new Promise((o,a)=>{this.waitingForPrack=!0,this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(l=>(i=l,this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i}))).then(l=>{this._dialog=l.session;let u,c;l.session.delegate={onPrack:T=>{u=T,clearTimeout(p),clearTimeout(w),this.waitingForPrack&&(this.waitingForPrack=!1,this.handlePrackOfferAnswer(u).then(v=>{try{c=u.accept({statusCode:200,body:v}),this.prackArrived(),o({prackRequest:u,prackResponse:c,progressResponse:l})}catch(S){a(S)}}).catch(v=>a(v)))}};const p=setTimeout(()=>{this.waitingForPrack&&(this.waitingForPrack=!1,this.logger.warn("No PRACK received, rejecting INVITE."),clearTimeout(w),this.reject({statusCode:504}).then(()=>a(new Pl)).catch(T=>a(T)))},kt.T1*64),h=()=>{try{this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i})}catch(T){this.waitingForPrack=!1,a(T);return}w=setTimeout(h,g*=2)};let g=kt.T1,w=setTimeout(h,g)}).catch(l=>{this.waitingForPrack=!1,a(l)})})}sendProgressTrying(){try{const e=this.incomingInviteRequest.trying();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}waitForArrivalOfPrack(){if(this.waitingForPrackPromise)throw new Error("Already waiting for PRACK");return this.waitingForPrackPromise=new Promise((e,t)=>{this.waitingForPrackResolve=e,this.waitingForPrackReject=t}),this.waitingForPrackPromise}prackArrived(){this.waitingForPrackResolve&&this.waitingForPrackResolve(),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}prackNeverArrived(){this.waitingForPrackReject&&this.waitingForPrackReject(new Pl),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}},Mo=class extends Nl{constructor(e,t,r={}){super(e,r),this.disposed=!1,this.earlyMedia=!1,this.earlyMediaSessionDescriptionHandlers=new Map,this.isCanceled=!1,this.inviteWithoutSdp=!1,this.logger=e.getLogger("sip.Inviter"),this.earlyMedia=r.earlyMedia!==void 0?r.earlyMedia:this.earlyMedia,this.fromTag=Oo(),this.inviteWithoutSdp=r.inviteWithoutSdp!==void 0?r.inviteWithoutSdp:this.inviteWithoutSdp;const n=Object.assign({},r);n.params=Object.assign({},r.params);const s=r.anonymous||!1,i=e.contact.toString({anonymous:s,outbound:s?!e.contact.tempGruu:!e.contact.pubGruu});s&&e.configuration.uri&&(n.params.fromDisplayName="Anonymous",n.params.fromUri="sip:anonymous@anonymous.invalid");let o=e.userAgentCore.configuration.aor;if(n.params.fromUri&&(o=typeof n.params.fromUri=="string"?Tt.URIParse(n.params.fromUri):n.params.fromUri),!o)throw new TypeError("Invalid from URI: "+n.params.fromUri);let a=t;if(n.params.toUri&&(a=typeof n.params.toUri=="string"?Tt.URIParse(n.params.toUri):n.params.toUri),!a)throw new TypeError("Invalid to URI: "+n.params.toUri);const l=Object.assign({},n.params);l.fromTag=this.fromTag;const u=(n.extraHeaders||[]).slice();s&&e.configuration.uri&&(u.push("P-Preferred-Identity: "+e.configuration.uri.toString()),u.push("Privacy: id")),u.push("Contact: "+i),u.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),e.configuration.sipExtension100rel===Ar.Required&&u.push("Require: 100rel"),e.configuration.sipExtensionReplaces===Ar.Required&&u.push("Require: replaces"),n.extraHeaders=u,this.outgoingRequestMessage=e.userAgentCore.makeOutgoingRequestMessage(ye.INVITE,t,o,a,l,u,void 0),this._contact=i,this._referralInviterOptions=n,this._renderbody=r.renderbody,this._rendertype=r.rendertype,r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions),r.sessionDescriptionHandlerModifiersReInvite&&(this.sessionDescriptionHandlerModifiersReInvite=r.sessionDescriptionHandlerModifiersReInvite),r.sessionDescriptionHandlerOptionsReInvite&&(this.sessionDescriptionHandlerOptionsReInvite=r.sessionDescriptionHandlerOptionsReInvite),this._id=this.outgoingRequestMessage.callId+this.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.disposeEarlyMedia(),this.state){case W.Initial:return this.cancel().then(()=>super.dispose());case W.Establishing:return this.cancel().then(()=>super.dispose());case W.Established:return super.dispose();case W.Terminating:return super.dispose();case W.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get body(){return this.outgoingRequestMessage.body}get localIdentity(){return this.outgoingRequestMessage.from}get remoteIdentity(){return this.outgoingRequestMessage.to}get request(){return this.outgoingRequestMessage}cancel(e={}){if(this.logger.log("Inviter.cancel"),this.state!==W.Initial&&this.state!==W.Establishing){const r=new Error(`Invalid session state ${this.state}`);return this.logger.error(r.message),Promise.reject(r)}this.isCanceled=!0,this.stateTransition(W.Terminating);function t(r,n){if(r&&r<200||r>699)throw new TypeError("Invalid statusCode: "+r);if(r){const s=r,i=Do(r)||n;return"SIP;cause="+s+';text="'+i+'"'}}if(this.outgoingInviteRequest){let r;e.statusCode&&e.reasonPhrase&&(r=t(e.statusCode,e.reasonPhrase)),this.outgoingInviteRequest.cancel(r,e)}else this.logger.warn("Canceled session before INVITE was sent"),this.stateTransition(W.Terminated);return Promise.resolve()}invite(e={}){if(this.logger.log("Inviter.invite"),this.state!==W.Initial)return super.invite(e);if(e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),e.withoutSdp||this.inviteWithoutSdp)return this._renderbody&&this._rendertype&&(this.outgoingRequestMessage.body={contentType:this._rendertype,body:this._renderbody}),this.stateTransition(W.Establishing),Promise.resolve(this.sendInvite(e));const t={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.getOffer(t).then(r=>(this.outgoingRequestMessage.body={body:r.content,contentType:r.contentType},this.stateTransition(W.Establishing),this.sendInvite(e))).catch(r=>{throw this.logger.log(r.message),this.state!==W.Terminated&&this.stateTransition(W.Terminated),r})}sendInvite(e={}){return this.outgoingInviteRequest=this.userAgent.userAgentCore.invite(this.outgoingRequestMessage,{onAccept:t=>{if(this.dialog){this.logger.log("Additional confirmed dialog, sending ACK and BYE"),this.ackAndBye(t);return}if(this.isCanceled){this.logger.log("Canceled session accepted, sending ACK and BYE"),this.ackAndBye(t),this.stateTransition(W.Terminated);return}this.notifyReferer(t),this.onAccept(t).then(()=>{this.disposeEarlyMedia()}).catch(()=>{this.disposeEarlyMedia()}).then(()=>{e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(t)})},onProgress:t=>{this.isCanceled||(this.notifyReferer(t),this.onProgress(t).catch(()=>{this.disposeEarlyMedia()}).then(()=>{e.requestDelegate&&e.requestDelegate.onProgress&&e.requestDelegate.onProgress(t)}))},onRedirect:t=>{this.notifyReferer(t),this.onRedirect(t),e.requestDelegate&&e.requestDelegate.onRedirect&&e.requestDelegate.onRedirect(t)},onReject:t=>{this.notifyReferer(t),this.onReject(t),e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(t)},onTrying:t=>{this.notifyReferer(t),this.onTrying(t),e.requestDelegate&&e.requestDelegate.onTrying&&e.requestDelegate.onTrying(t)}}),this.outgoingInviteRequest}disposeEarlyMedia(){this.earlyMediaSessionDescriptionHandlers.forEach(e=>{e.close()}),this.earlyMediaSessionDescriptionHandlers.clear()}notifyReferer(e){if(!this._referred)return;if(!(this._referred instanceof Nl))throw new Error("Referred session not instance of session");if(!this._referred.dialog)return;if(!e.message.statusCode)throw new Error("Status code undefined.");if(!e.message.reasonPhrase)throw new Error("Reason phrase undefined.");const t=`SIP/2.0 ${e.message.statusCode} ${e.message.reasonPhrase}`.trim(),r=this._referred.dialog.notify(void 0,{extraHeaders:["Event: refer","Subscription-State: terminated"],body:{contentDisposition:"render",contentType:"message/sipfrag",content:t}});r.delegate={onReject:()=>{this._referred=void 0}}}onAccept(e){if(this.logger.log("Inviter.onAccept"),this.state!==W.Establishing)return this.logger.error(`Accept received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));const t=e.message,r=e.session;switch(t.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=Tt.nameAddrHeaderParse(t.getHeader("P-Asserted-Identity"))),r.delegate={onAck:n=>this.onAckRequest(n),onBye:n=>this.onByeRequest(n),onInfo:n=>this.onInfoRequest(n),onInvite:n=>this.onInviteRequest(n),onMessage:n=>this.onMessageRequest(n),onNotify:n=>this.onNotifyRequest(n),onPrack:n=>this.onPrackRequest(n),onRefer:n=>this.onReferRequest(n)},this._dialog=r,r.signalingState){case ve.Initial:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(e,400,"Missing session description"),this.stateTransition(W.Terminated),Promise.reject(new Error("Bad Media Description"));case ve.HaveLocalOffer:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(e,400,"Missing session description"),this.stateTransition(W.Terminated),Promise.reject(new Error("Bad Media Description"));case ve.HaveRemoteOffer:{if(!this._dialog.offer)throw new Error(`Session offer undefined in signaling state ${this._dialog.signalingState}.`);const n={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setOfferAndGetAnswer(this._dialog.offer,n).then(s=>{e.ack({body:s}),this.stateTransition(W.Established)}).catch(s=>{throw this.ackAndBye(e,488,"Invalid session description"),this.stateTransition(W.Terminated),s})}case ve.Stable:{if(this.earlyMediaSessionDescriptionHandlers.size>0){const i=this.earlyMediaSessionDescriptionHandlers.get(r.id);if(!i)throw new Error("Session description handler undefined.");return this.setSessionDescriptionHandler(i),this.earlyMediaSessionDescriptionHandlers.delete(r.id),e.ack(),this.stateTransition(W.Established),Promise.resolve()}if(this.earlyMediaDialog){if(this.earlyMediaDialog!==r){this.earlyMedia&&this.logger.error("You have set the 'earlyMedia' option to 'true' which requires that your INVITE requests do not fork and yet this INVITE request did in fact fork. Consequentially and not surprisingly the end point which accepted the INVITE (confirmed dialog) does not match the end point with which early media has been setup (early dialog) and thus this session is unable to proceed. In accordance with the SIP specifications, the SIP servers your end point is connected to determine if an INVITE forks and the forking behavior of those servers cannot be controlled by this library. If you wish to use early media with this library you must configure those servers accordingly. Alternatively you may set the 'earlyMedia' to 'false' which will allow this library to function with any INVITE requests which do fork.");const i=new Error("Early media dialog does not equal confirmed dialog, terminating session");return this.logger.error(i.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(W.Terminated),Promise.reject(i)}return e.ack(),this.stateTransition(W.Established),Promise.resolve()}const n=r.answer;if(!n)throw new Error("Answer is undefined.");const s={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(n,s).then(()=>{let i;this._renderbody&&this._rendertype&&(i={body:{contentDisposition:"render",contentType:this._rendertype,content:this._renderbody}}),e.ack(i),this.stateTransition(W.Established)}).catch(i=>{throw this.logger.error(i.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(W.Terminated),i})}case ve.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onProgress(e){var t;if(this.logger.log("Inviter.onProgress"),this.state!==W.Establishing)return this.logger.error(`Progress received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));if(!this.outgoingInviteRequest)throw new Error("Outgoing INVITE request undefined.");const r=e.message,n=e.session;r.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=Tt.nameAddrHeaderParse(r.getHeader("P-Asserted-Identity")));const s=r.getHeader("require"),i=r.getHeader("rseq"),o=!!(s&&s.includes("100rel")&&i&&Number(i)),a=[];switch(o&&a.push("RAck: "+r.getHeader("rseq")+" "+r.getHeader("cseq")),n.signalingState){case ve.Initial:return o&&(this.logger.warn("First reliable provisional response received MUST contain an offer when INVITE does not contain an offer."),e.prack({extraHeaders:a})),Promise.resolve();case ve.HaveLocalOffer:return o&&e.prack({extraHeaders:a}),Promise.resolve();case ve.HaveRemoteOffer:if(!o)return this.logger.warn("Non-reliable provisional response MUST NOT contain an initial offer, discarding response."),Promise.resolve();{const l=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions||{});return!((t=this.delegate)===null||t===void 0)&&t.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(l,!0),this.earlyMediaSessionDescriptionHandlers.set(n.id,l),l.setDescription(r.body,this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers).then(()=>l.getDescription(this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers)).then(u=>{const c={contentDisposition:"session",contentType:u.contentType,content:u.body};e.prack({extraHeaders:a,body:c})}).catch(u=>{throw this.stateTransition(W.Terminated),u})}case ve.Stable:if(o&&e.prack({extraHeaders:a}),this.earlyMedia&&!this.earlyMediaDialog){this.earlyMediaDialog=n;const l=n.answer;if(!l)throw new Error("Answer is undefined.");const u={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(l,u).catch(c=>{throw this.stateTransition(W.Terminated),c})}return Promise.resolve();case ve.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onRedirect(e){if(this.logger.log("Inviter.onRedirect"),this.state!==W.Establishing&&this.state!==W.Terminating){this.logger.error(`Redirect received while in state ${this.state}, dropping response`);return}this.stateTransition(W.Terminated)}onReject(e){if(this.logger.log("Inviter.onReject"),this.state!==W.Establishing&&this.state!==W.Terminating){this.logger.error(`Reject received while in state ${this.state}, dropping response`);return}this.stateTransition(W.Terminated)}onTrying(e){if(this.logger.log("Inviter.onTrying"),this.state!==W.Establishing){this.logger.error(`Trying received while in state ${this.state}, dropping response`);return}}},rt;(function(e){e.Initial="Initial",e.Registered="Registered",e.Unregistered="Unregistered",e.Terminated="Terminated"})(rt=rt||(rt={}));var ql=class ps{constructor(t,r={}){this.disposed=!1,this._contacts=[],this._retryAfter=void 0,this._state=rt.Initial,this._waiting=!1,this._stateEventEmitter=new Ci,this._waitingEventEmitter=new Ci,this.userAgent=t;const n=t.configuration.uri.clone();if(n.user=void 0,this.options=Object.assign(Object.assign(Object.assign({},ps.defaultOptions()),{registrar:n}),ps.stripUndefinedProperties(r)),this.options.extraContactHeaderParams=(this.options.extraContactHeaderParams||[]).slice(),this.options.extraHeaders=(this.options.extraHeaders||[]).slice(),!this.options.registrar)throw new Error("Registrar undefined.");if(this.options.registrar=this.options.registrar.clone(),this.options.regId&&!this.options.instanceId?this.options.instanceId=this.userAgent.instanceId:!this.options.regId&&this.options.instanceId&&(this.options.regId=1),this.options.instanceId&&Tt.parse(this.options.instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");if(this.options.regId&&this.options.regId<0)throw new Error("Invalid regId.");const s=this.options.registrar,i=this.options.params&&this.options.params.fromUri||t.userAgentCore.configuration.aor,o=this.options.params&&this.options.params.toUri||t.configuration.uri,a=this.options.params||{},l=(r.extraHeaders||[]).slice();if(this.request=t.userAgentCore.makeOutgoingRequestMessage(ye.REGISTER,s,i,o,a,l,void 0),this.expires=this.options.expires||ps.defaultExpires,this.expires<0)throw new Error("Invalid expires.");if(this.refreshFrequency=this.options.refreshFrequency||ps.defaultRefreshFrequency,this.refreshFrequency<50||this.refreshFrequency>99)throw new Error("Invalid refresh frequency. The value represents a percentage of the expiration time and should be between 50 and 99.");this.logger=t.getLogger("sip.Registerer"),this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(u=>{const c=this.options[u];u==="registrar"?this.logger.log("· "+u+": "+c):this.logger.log("· "+u+": "+JSON.stringify(c))})),this.id=this.request.callId+this.request.from.parameters.tag,this.userAgent._registerers[this.id]=this}static defaultOptions(){return{expires:ps.defaultExpires,extraContactHeaderParams:[],extraHeaders:[],logConfiguration:!0,instanceId:"",params:{},regId:0,registrar:new Tn("sip","anonymous","anonymous.invalid"),refreshFrequency:ps.defaultRefreshFrequency}}static stripUndefinedProperties(t){return Object.keys(t).reduce((r,n)=>(t[n]!==void 0&&(r[n]=t[n]),r),{})}get contacts(){return this._contacts.slice()}get retryAfter(){return this._retryAfter}get state(){return this._state}get stateChange(){return this._stateEventEmitter}dispose(){return this.disposed?Promise.resolve():(this.disposed=!0,this.logger.log(`Registerer ${this.id} in state ${this.state} is being disposed`),delete this.userAgent._registerers[this.id],new Promise(t=>{const r=()=>{if(!this.waiting&&this._state===rt.Registered){this.stateChange.addListener(()=>{this.terminated(),t()},{once:!0}),this.unregister();return}this.terminated(),t()};this.waiting?this.waitingChange.addListener(()=>{r()},{once:!0}):r()}))}register(t={}){if(this.state===rt.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const s=new $l("REGISTER request already in progress, waiting for final response");return Promise.reject(s)}t.requestOptions&&(this.options=Object.assign(Object.assign({},this.options),t.requestOptions));const r=(this.options.extraHeaders||[]).slice();r.push("Contact: "+this.generateContactHeader(this.expires)),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.request.extraHeaders=r,this.waitingToggle(!0);const n=this.userAgent.userAgentCore.register(this.request,{onAccept:s=>{let i;s.message.hasHeader("expires")&&(i=Number(s.message.getHeader("expires"))),this._contacts=s.message.getHeaders("contact");let o=this._contacts.length;if(!o){this.logger.error("No Contact header in response to REGISTER, dropping response."),this.unregistered();return}let a;for(;o--;){if(a=s.message.parseHeader("contact",o),!a)throw new Error("Contact undefined");if(this.userAgent.contact.pubGruu&&Yf(a.uri,this.userAgent.contact.pubGruu)){i=Number(a.getParam("expires"));break}if(this.userAgent.configuration.contactName===""){if(a.uri.user===this.userAgent.contact.uri.user){i=Number(a.getParam("expires"));break}}else if(Yf(a.uri,this.userAgent.contact.uri)){i=Number(a.getParam("expires"));break}a=void 0}if(a===void 0){this.logger.error("No Contact header pointing to us, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(i===void 0){this.logger.error("Contact pointing to us is missing expires parameter, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(a.hasParam("temp-gruu")){const l=a.getParam("temp-gruu");l&&(this.userAgent.contact.tempGruu=Tt.URIParse(l.replace(/"/g,"")))}if(a.hasParam("pub-gruu")){const l=a.getParam("pub-gruu");l&&(this.userAgent.contact.pubGruu=Tt.URIParse(l.replace(/"/g,"")))}this.registered(i),t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(s),this.waitingToggle(!1)},onProgress:s=>{t.requestDelegate&&t.requestDelegate.onProgress&&t.requestDelegate.onProgress(s)},onRedirect:s=>{this.logger.error("Redirect received. Not supported."),this.unregistered(),t.requestDelegate&&t.requestDelegate.onRedirect&&t.requestDelegate.onRedirect(s),this.waitingToggle(!1)},onReject:s=>{if(s.message.statusCode===423){if(!s.message.hasHeader("min-expires")){this.logger.error("423 response received for REGISTER without Min-Expires, dropping response"),this.unregistered(),this.waitingToggle(!1);return}this.expires=Number(s.message.getHeader("min-expires")),this.waitingToggle(!1),this.register();return}this.logger.warn(`Failed to register, status code ${s.message.statusCode}`);let i=NaN;if(s.message.statusCode===500||s.message.statusCode===503){const o=s.message.getHeader("retry-after");o&&(i=Number.parseInt(o,void 0))}this._retryAfter=isNaN(i)?void 0:i,this.unregistered(),t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(s),this._retryAfter=void 0,this.waitingToggle(!1)},onTrying:s=>{t.requestDelegate&&t.requestDelegate.onTrying&&t.requestDelegate.onTrying(s)}});return Promise.resolve(n)}unregister(t={}){if(this.state===rt.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed&&this.state!==rt.Registered)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const s=new $l("REGISTER request already in progress, waiting for final response");return Promise.reject(s)}this._state!==rt.Registered&&!t.all&&this.logger.warn("Not currently registered, but sending an unregister anyway.");const r=(t.requestOptions&&t.requestOptions.extraHeaders||[]).slice();this.request.extraHeaders=r,t.all?(r.push("Contact: *"),r.push("Expires: 0")):r.push("Contact: "+this.generateContactHeader(0)),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.waitingToggle(!0);const n=this.userAgent.userAgentCore.register(this.request,{onAccept:s=>{this._contacts=s.message.getHeaders("contact"),this.unregistered(),t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(s),this.waitingToggle(!1)},onProgress:s=>{t.requestDelegate&&t.requestDelegate.onProgress&&t.requestDelegate.onProgress(s)},onRedirect:s=>{this.logger.error("Unregister redirected. Not currently supported."),this.unregistered(),t.requestDelegate&&t.requestDelegate.onRedirect&&t.requestDelegate.onRedirect(s),this.waitingToggle(!1)},onReject:s=>{this.logger.error(`Unregister rejected with status code ${s.message.statusCode}`),this.unregistered(),t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(s),this.waitingToggle(!1)},onTrying:s=>{t.requestDelegate&&t.requestDelegate.onTrying&&t.requestDelegate.onTrying(s)}});return Promise.resolve(n)}clearTimers(){this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.registrationExpiredTimer!==void 0&&(clearTimeout(this.registrationExpiredTimer),this.registrationExpiredTimer=void 0)}generateContactHeader(t){let r=this.userAgent.contact.toString({register:!0});return this.options.regId&&this.options.instanceId&&(r+=";reg-id="+this.options.regId,r+=';+sip.instance="<urn:uuid:'+this.options.instanceId+'>"'),this.options.extraContactHeaderParams&&this.options.extraContactHeaderParams.forEach(n=>{r+=";"+n}),r+=";expires="+t,r}registered(t){this.clearTimers(),this.registrationTimer=setTimeout(()=>{this.registrationTimer=void 0,this.register()},this.refreshFrequency/100*t*1e3),this.registrationExpiredTimer=setTimeout(()=>{this.logger.warn("Registration expired"),this.unregistered()},t*1e3),this._state!==rt.Registered&&this.stateTransition(rt.Registered)}unregistered(){this.clearTimers(),this._state!==rt.Unregistered&&this.stateTransition(rt.Unregistered)}terminated(){this.clearTimers(),this._state!==rt.Terminated&&this.stateTransition(rt.Terminated)}stateTransition(t){const r=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case rt.Initial:t!==rt.Registered&&t!==rt.Unregistered&&t!==rt.Terminated&&r();break;case rt.Registered:t!==rt.Unregistered&&t!==rt.Terminated&&r();break;case rt.Unregistered:t!==rt.Registered&&t!==rt.Terminated&&r();break;case rt.Terminated:r();break;default:throw new Error("Unrecognized state.")}this._state=t,this.logger.log(`Registration transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),t===rt.Terminated&&this.dispose()}get waiting(){return this._waiting}get waitingChange(){return this._waitingEventEmitter}waitingToggle(t){if(this._waiting===t)throw new Error(`Invalid waiting transition from ${this._waiting} to ${t}`);this._waiting=t,this.logger.log(`Waiting toggled to ${this._waiting}`),this._waitingEventEmitter.emit(this._waiting)}waitingWarning(){let t="An attempt was made to send a REGISTER request while a prior one was still in progress.";t+=" RFC 3261 requires UAs MUST NOT send a new registration until they have received a final response",t+=" from the registrar for the previous one or the previous REGISTER request has timed out.",t+=" Note that if the transport disconnects, you still must wait for the prior request to time out before",t+=" sending a new REGISTER request or alternatively dispose of the current Registerer and create a new Registerer.",this.logger.warn(t)}stateError(){let t=`An attempt was made to send a REGISTER request when the Registerer ${this.state===rt.Terminated?"is in 'Terminated' state":"has been disposed"}.`;t+=" The Registerer transitions to 'Terminated' when Registerer.dispose() is called.",t+=" Perhaps you called UserAgent.stop() which dipsoses of all Registerers?",this.logger.error(t)}};ql.defaultExpires=600,ql.defaultRefreshFrequency=99;var Je;(function(e){e.Initial="Initial",e.NotifyWait="NotifyWait",e.Pending="Pending",e.Active="Active",e.Terminated="Terminated"})(Je=Je||(Je={}));var Me;(function(e){e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Disconnected="Disconnected"})(Me=Me||(Me={}));var Pt;(function(e){e.Started="Started",e.Stopped="Stopped"})(Pt=Pt||(Pt={}));var Rn=class br{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(t,r=!1){return this.onePassHasher.start().appendStr(t).end(r)}static hashAsciiStr(t,r=!1){return this.onePassHasher.start().appendAsciiStr(t).end(r)}static _hex(t){const r=br.hexChars,n=br.hexOut;let s,i,o,a;for(a=0;a<4;a+=1)for(i=a*8,s=t[a],o=0;o<8;o+=2)n[i+1+o]=r.charAt(s&15),s>>>=4,n[i+0+o]=r.charAt(s&15),s>>>=4;return n.join("")}static _md5cycle(t,r){let n=t[0],s=t[1],i=t[2],o=t[3];n+=(s&i|~s&o)+r[0]-680876936|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[1]-389564586|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[2]+606105819|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[3]-1044525330|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[4]-176418897|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[5]+1200080426|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[6]-1473231341|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[7]-45705983|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[8]+1770035416|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[9]-1958414417|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[10]-42063|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[11]-1990404162|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[12]+1804603682|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[13]-40341101|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[14]-1502002290|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[15]+1236535329|0,s=(s<<22|s>>>10)+i|0,n+=(s&o|i&~o)+r[1]-165796510|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[6]-1069501632|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[11]+643717713|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[0]-373897302|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[5]-701558691|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[10]+38016083|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[15]-660478335|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[4]-405537848|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[9]+568446438|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[14]-1019803690|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[3]-187363961|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[8]+1163531501|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[13]-1444681467|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[2]-51403784|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[7]+1735328473|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[12]-1926607734|0,s=(s<<20|s>>>12)+i|0,n+=(s^i^o)+r[5]-378558|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[8]-2022574463|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[11]+1839030562|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[14]-35309556|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[1]-1530992060|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[4]+1272893353|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[7]-155497632|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[10]-1094730640|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[13]+681279174|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[0]-358537222|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[3]-722521979|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[6]+76029189|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[9]-640364487|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[12]-421815835|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[15]+530742520|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[2]-995338651|0,s=(s<<23|s>>>9)+i|0,n+=(i^(s|~o))+r[0]-198630844|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[5]-57434055|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[12]+1700485571|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[10]-1051523|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[1]-2054922799|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[8]+1873313359|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[13]+1309151649|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[4]-145523070|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[2]+718787259|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[9]-343485551|0,s=(s<<21|s>>>11)+i|0,t[0]=n+t[0]|0,t[1]=s+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(br.stateIdentity),this}appendStr(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o;for(o=0;o<t.length;o+=1){if(i=t.charCodeAt(o),i<128)r[s++]=i;else if(i<2048)r[s++]=(i>>>6)+192,r[s++]=i&63|128;else if(i<55296||i>56319)r[s++]=(i>>>12)+224,r[s++]=i>>>6&63|128,r[s++]=i&63|128;else{if(i=(i-55296)*1024+(t.charCodeAt(++o)-56320)+65536,i>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");r[s++]=(i>>>18)+240,r[s++]=i>>>12&63|128,r[s++]=i>>>6&63|128,r[s++]=i&63|128}s>=64&&(this._dataLength+=64,br._md5cycle(this._state,n),s-=64,n[0]=n[16])}return this._bufferLength=s,this}appendAsciiStr(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o=0;for(;;){for(i=Math.min(t.length-o,64-s);i--;)r[s++]=t.charCodeAt(o++);if(s<64)break;this._dataLength+=64,br._md5cycle(this._state,n),s=0}return this._bufferLength=s,this}appendByteArray(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o=0;for(;;){for(i=Math.min(t.length-o,64-s);i--;)r[s++]=t[o++];if(s<64)break;this._dataLength+=64,br._md5cycle(this._state,n),s=0}return this._bufferLength=s,this}getState(){const t=this,r=t._state;return{buffer:String.fromCharCode.apply(null,t._buffer8),buflen:t._bufferLength,length:t._dataLength,state:[r[0],r[1],r[2],r[3]]}}setState(t){const r=t.buffer,n=t.state,s=this._state;let i;for(this._dataLength=t.length,this._bufferLength=t.buflen,s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],i=0;i<r.length;i+=1)this._buffer8[i]=r.charCodeAt(i)}end(t=!1){const r=this._bufferLength,n=this._buffer8,s=this._buffer32,i=(r>>2)+1;let o;if(this._dataLength+=r,n[r]=128,n[r+1]=n[r+2]=n[r+3]=0,s.set(br.buffer32Identity.subarray(i),i),r>55&&(br._md5cycle(this._state,s),s.set(br.buffer32Identity)),o=this._dataLength*8,o<=4294967295)s[14]=o;else{const a=o.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;const l=parseInt(a[2],16),u=parseInt(a[1],16)||0;s[14]=l,s[15]=u}return br._md5cycle(this._state,s),t?this._state:br._hex(this._state)}};Rn.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),Rn.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Rn.hexChars="0123456789abcdef",Rn.hexOut=[],Rn.onePassHasher=new Rn,Rn.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592"&&console.error("Md5 self test failed.");function In(e){return Rn.hashStr(e)}var X0=class{constructor(e,t,r,n){this.logger=e.getLogger("sipjs.digestauthentication"),this.username=r,this.password=n,this.ha1=t,this.nc=0,this.ncHex="00000000"}authenticate(e,t,r){if(this.algorithm=t.algorithm,this.realm=t.realm,this.nonce=t.nonce,this.opaque=t.opaque,this.stale=t.stale,this.algorithm){if(this.algorithm!=="MD5")return this.logger.warn("challenge with Digest algorithm different than 'MD5', authentication aborted"),!1}else this.algorithm="MD5";if(!this.realm)return this.logger.warn("challenge without Digest realm, authentication aborted"),!1;if(!this.nonce)return this.logger.warn("challenge without Digest nonce, authentication aborted"),!1;if(t.qop)if(t.qop.indexOf("auth")>-1)this.qop="auth";else if(t.qop.indexOf("auth-int")>-1)this.qop="auth-int";else return this.logger.warn("challenge without Digest qop different than 'auth' or 'auth-int', authentication aborted"),!1;else this.qop=void 0;return this.method=e.method,this.uri=e.ruri,this.cnonce=ns(12),this.nc+=1,this.updateNcHex(),this.nc===4294967296&&(this.nc=1,this.ncHex="00000001"),this.calculateResponse(r),!0}toString(){const e=[];if(!this.response)throw new Error("response field does not exist, cannot generate Authorization header");return e.push("algorithm="+this.algorithm),e.push('username="'+this.username+'"'),e.push('realm="'+this.realm+'"'),e.push('nonce="'+this.nonce+'"'),e.push('uri="'+this.uri+'"'),e.push('response="'+this.response+'"'),this.opaque&&e.push('opaque="'+this.opaque+'"'),this.qop&&(e.push("qop="+this.qop),e.push('cnonce="'+this.cnonce+'"'),e.push("nc="+this.ncHex)),"Digest "+e.join(", ")}updateNcHex(){const e=Number(this.nc).toString(16);this.ncHex="00000000".substr(0,8-e.length)+e}calculateResponse(e){let t,r;t=this.ha1,(t===""||t===void 0)&&(t=In(this.username+":"+this.realm+":"+this.password)),this.qop==="auth"?(r=In(this.method+":"+this.uri),this.response=In(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth:"+r)):this.qop==="auth-int"?(r=In(this.method+":"+this.uri+":"+In(e||"")),this.response=In(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth-int:"+r)):this.qop===void 0&&(r=In(this.method+":"+this.uri),this.response=In(t+":"+this.nonce+":"+r))}},Rt;(function(e){e[e.error=0]="error",e[e.warn=1]="warn",e[e.log=2]="log",e[e.debug=3]="debug"})(Rt=Rt||(Rt={}));var rp=class{constructor(e,t,r){this.logger=e,this.category=t,this.label=r}error(e){this.genericLog(Rt.error,e)}warn(e){this.genericLog(Rt.warn,e)}log(e){this.genericLog(Rt.log,e)}debug(e){this.genericLog(Rt.debug,e)}genericLog(e,t){this.logger.genericLog(e,this.category,this.label,t)}get level(){return this.logger.level}set level(e){this.logger.level=e}},Q0=class{constructor(){this.builtinEnabled=!0,this._level=Rt.log,this.loggers={},this.logger=this.getLogger("sip:loggerfactory")}get level(){return this._level}set level(e){e>=0&&e<=3?this._level=e:e>3?this._level=3:Rt.hasOwnProperty(e)?this._level=e:this.logger.error("invalid 'level' parameter value: "+JSON.stringify(e))}get connector(){return this._connector}set connector(e){e?typeof e=="function"?this._connector=e:this.logger.error("invalid 'connector' parameter value: "+JSON.stringify(e)):this._connector=void 0}getLogger(e,t){if(t&&this.level===3)return new rp(this,e,t);if(this.loggers[e])return this.loggers[e];{const r=new rp(this,e);return this.loggers[e]=r,r}}genericLog(e,t,r,n){this.level>=e&&this.builtinEnabled&&this.print(e,t,r,n),this.connector&&this.connector(Rt[e],t,r,n)}print(e,t,r,n){if(typeof n=="string"){const s=[new Date,t];r&&s.push(r),n=s.concat(n).join(" | ")}switch(e){case Rt.error:console.error(n);break;case Rt.warn:console.warn(n);break;case Rt.log:console.log(n);break;case Rt.debug:console.debug(n);break;default:break}}},No;(function(e){function t(s,i){let o=i,a=0,l=0;if(s.substring(o,o+2).match(/(^\r\n)/))return-2;for(;a===0;){if(l=s.indexOf(`\r
|
|
27
|
-
`,o),l===-1)return l;!s.substring(l+2,l+4).match(/(^\r\n)/)&&s.charAt(l+2).match(/(^\s+)/)?o=l+2:a=l}return a}e.getHeader=t;function r(s,i,o,a){const l=i.indexOf(":",o),u=i.substring(o,l).trim(),c=i.substring(l+1,a).trim();let d;switch(u.toLowerCase()){case"via":case"v":s.addHeader("via",c),s.getHeaders("via").length===1?(d=s.parseHeader("Via"),d&&(s.via=d,s.viaBranch=d.branch)):d=0;break;case"from":case"f":s.setHeader("from",c),d=s.parseHeader("from"),d&&(s.from=d,s.fromTag=d.getParam("tag"));break;case"to":case"t":s.setHeader("to",c),d=s.parseHeader("to"),d&&(s.to=d,s.toTag=d.getParam("tag"));break;case"record-route":if(d=Tt.parse(c,"Record_Route"),d===-1){d=void 0;break}if(!(d instanceof Array)){d=void 0;break}d.forEach(p=>{s.addHeader("record-route",c.substring(p.position,p.offset)),s.headers["Record-Route"][s.getHeaders("record-route").length-1].parsed=p.parsed});break;case"call-id":case"i":s.setHeader("call-id",c),d=s.parseHeader("call-id"),d&&(s.callId=c);break;case"contact":case"m":if(d=Tt.parse(c,"Contact"),d===-1){d=void 0;break}if(!(d instanceof Array)){d=void 0;break}d.forEach(p=>{s.addHeader("contact",c.substring(p.position,p.offset)),s.headers.Contact[s.getHeaders("contact").length-1].parsed=p.parsed});break;case"content-length":case"l":s.setHeader("content-length",c),d=s.parseHeader("content-length");break;case"content-type":case"c":s.setHeader("content-type",c),d=s.parseHeader("content-type");break;case"cseq":s.setHeader("cseq",c),d=s.parseHeader("cseq"),d&&(s.cseq=d.value),s instanceof
|
|
28
|
-
`);if(a===-1){i.warn("no CRLF found, not a SIP message, discarded");return}const l=s.substring(0,a),u=Tt.parse(l,"Request_Response");let c;if(u===-1){i.warn('error parsing first line of SIP message: "'+l+'"');return}else u.status_code?(c=new
|
|
26
|
+
`,t}};function rp(e){return e==="application/sdp"?"session":"render"}function Fo(e){const t=typeof e=="string"?e:e.body,r=typeof e=="string"?"application/sdp":e.contentType;return{contentDisposition:rp(r),contentType:r,content:t}}function np(e){return e&&typeof e.content=="string"&&typeof e.contentType=="string"&&e.contentDisposition===void 0?!0:typeof e.contentDisposition=="string"}function Ri(e){let t,r,n;if(e instanceof Ms&&e.body){const s=e.parseHeader("Content-Disposition");t=s?s.type:void 0,r=e.parseHeader("Content-Type"),n=e.body}if(e instanceof kn&&e.body){const s=e.parseHeader("Content-Disposition");t=s?s.type:void 0,r=e.parseHeader("Content-Type"),n=e.body}if(e instanceof Nl&&e.body)if(t=e.getHeader("Content-Disposition"),r=e.getHeader("Content-Type"),typeof e.body=="string"){if(!r)throw new Error("Header content type header does not equal body content type.");n=e.body}else{if(r&&r!==e.body.contentType)throw new Error("Header content type header does not equal body content type.");r=e.body.contentType,n=e.body.body}if(np(e)&&(t=e.contentDisposition,r=e.contentType,n=e.content),!!n){if(r&&!t&&(t=rp(r)),!t)throw new Error("Content disposition undefined.");if(!r)throw new Error("Content type undefined.");return{contentDisposition:t,contentType:r,content:n}}}var wr;(function(e){e.Initial="Initial",e.Early="Early",e.AckWait="AckWait",e.Confirmed="Confirmed",e.Terminated="Terminated"})(wr=wr||(wr={}));var me;(function(e){e.Initial="Initial",e.HaveLocalOffer="HaveLocalOffer",e.HaveRemoteOffer="HaveRemoteOffer",e.Stable="Stable",e.Closed="Closed"})(me=me||(me={}));var an=500,Z0=4e3,ql=5e3;const kt={T1:an,T2:Z0,T4:ql,TIMER_B:64*an,TIMER_D:0*an,TIMER_F:64*an,TIMER_H:64*an,TIMER_I:0*ql,TIMER_J:0*an,TIMER_K:0*ql,TIMER_L:64*an,TIMER_M:64*an,TIMER_N:64*an,PROVISIONAL_RESPONSE_INTERVAL:6e4};var Rn=class extends ns{constructor(e){super(e||"Transaction state error.")}},be;(function(e){e.ACK="ACK",e.BYE="BYE",e.CANCEL="CANCEL",e.INFO="INFO",e.INVITE="INVITE",e.MESSAGE="MESSAGE",e.NOTIFY="NOTIFY",e.OPTIONS="OPTIONS",e.REGISTER="REGISTER",e.UPDATE="UPDATE",e.SUBSCRIBE="SUBSCRIBE",e.PUBLISH="PUBLISH",e.REFER="REFER",e.PRACK="PRACK"})(be=be||(be={}));const In=[be.ACK,be.BYE,be.CANCEL,be.INFO,be.INVITE,be.MESSAGE,be.NOTIFY,be.OPTIONS,be.PRACK,be.REFER,be.REGISTER,be.SUBSCRIBE];var sp=class{constructor(e){this.incomingMessageRequest=e}get request(){return this.incomingMessageRequest.message}accept(e){return this.incomingMessageRequest.accept(e),Promise.resolve()}reject(e){return this.incomingMessageRequest.reject(e),Promise.resolve()}},Bl=class{constructor(e){this.incomingNotifyRequest=e}get request(){return this.incomingNotifyRequest.message}accept(e){return this.incomingNotifyRequest.accept(e),Promise.resolve()}reject(e){return this.incomingNotifyRequest.reject(e),Promise.resolve()}},X0=class{constructor(e,t){this.incomingReferRequest=e,this.session=t}get referTo(){const e=this.incomingReferRequest.message.parseHeader("refer-to");if(!(e instanceof mr))throw new Error("Failed to parse Refer-To header.");return e}get referredBy(){return this.incomingReferRequest.message.getHeader("referred-by")}get replaces(){const e=this.referTo.uri.getHeader("replaces");return e instanceof Array?e[0]:e}get request(){return this.incomingReferRequest.message}accept(e={statusCode:202}){return this.incomingReferRequest.accept(e),Promise.resolve()}reject(e){return this.incomingReferRequest.reject(e),Promise.resolve()}makeInviter(e){if(this.inviter)return this.inviter;const t=this.referTo.uri.clone();t.clearHeaders(),e=e||{};const r=(e.extraHeaders||[]).slice(),n=this.replaces;n&&r.push("Replaces: "+decodeURIComponent(n));const s=this.referredBy;return s&&r.push("Referred-By: "+s),e.extraHeaders=r,this.inviter=this.session.userAgent._makeInviter(t,e),this.inviter._referred=this.session,this.session._referral=this.inviter,this.inviter}},W;(function(e){e.Initial="Initial",e.Establishing="Establishing",e.Established="Established",e.Terminating="Terminating",e.Terminated="Terminated"})(W=W||(W={}));var Ll=class Cg{constructor(t,r={}){this.pendingReinvite=!1,this.pendingReinviteAck=!1,this._state=W.Initial,this.delegate=r.delegate,this._stateEventEmitter=new Hs,this._userAgent=t}dispose(){switch(this.logger.log(`Session ${this.id} in state ${this._state} is being disposed`),delete this.userAgent._sessions[this.id],this._sessionDescriptionHandler&&this._sessionDescriptionHandler.close(),this.state){case W.Initial:break;case W.Establishing:break;case W.Established:return new Promise(t=>{this._bye({onAccept:()=>t(),onRedirect:()=>t(),onReject:()=>t()})});case W.Terminating:break;case W.Terminated:break;default:throw new Error("Unknown state.")}return Promise.resolve()}get assertedIdentity(){return this._assertedIdentity}get dialog(){return this._dialog}get id(){return this._id}get replacee(){return this._replacee}get sessionDescriptionHandler(){return this._sessionDescriptionHandler}get sessionDescriptionHandlerFactory(){return this.userAgent.configuration.sessionDescriptionHandlerFactory}get sessionDescriptionHandlerModifiers(){return this._sessionDescriptionHandlerModifiers||[]}set sessionDescriptionHandlerModifiers(t){this._sessionDescriptionHandlerModifiers=t.slice()}get sessionDescriptionHandlerOptions(){return this._sessionDescriptionHandlerOptions||{}}set sessionDescriptionHandlerOptions(t){this._sessionDescriptionHandlerOptions=Object.assign({},t)}get sessionDescriptionHandlerModifiersReInvite(){return this._sessionDescriptionHandlerModifiersReInvite||[]}set sessionDescriptionHandlerModifiersReInvite(t){this._sessionDescriptionHandlerModifiersReInvite=t.slice()}get sessionDescriptionHandlerOptionsReInvite(){return this._sessionDescriptionHandlerOptionsReInvite||{}}set sessionDescriptionHandlerOptionsReInvite(t){this._sessionDescriptionHandlerOptionsReInvite=Object.assign({},t)}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get userAgent(){return this._userAgent}bye(t={}){let r="Session.bye() may only be called if established session.";switch(this.state){case W.Initial:typeof this.cancel=="function"?(r+=" However Inviter.invite() has not yet been called.",r+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(r+=" However Invitation.accept() has not yet been called.",r+=" Perhaps you should have called Invitation.reject()?");break;case W.Establishing:typeof this.cancel=="function"?(r+=" However a dialog does not yet exist.",r+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(r+=" However Invitation.accept() has not yet been called (or not yet resolved).",r+=" Perhaps you should have called Invitation.reject()?");break;case W.Established:{const n=t.requestDelegate,s=this.copyRequestOptions(t.requestOptions);return this._bye(n,s)}case W.Terminating:r+=" However this session is already terminating.",typeof this.cancel=="function"?r+=" Perhaps you have already called Inviter.cancel()?":typeof this.reject=="function"&&(r+=" Perhaps you have already called Session.bye()?");break;case W.Terminated:r+=" However this session is already terminated.";break;default:throw new Error("Unknown state")}return this.logger.error(r),Promise.reject(new Error(`Invalid session state ${this.state}`))}info(t={}){if(this.state!==W.Established)return this.logger.error("Session.info() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const r=t.requestDelegate,n=this.copyRequestOptions(t.requestOptions);return this._info(r,n)}invite(t={}){if(this.logger.log("Session.invite"),this.state!==W.Established)return Promise.reject(new Error(`Invalid session state ${this.state}`));if(this.pendingReinvite)return Promise.reject(new Ol("Reinvite in progress. Please wait until complete, then try again."));this.pendingReinvite=!0,t.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiersReInvite=t.sessionDescriptionHandlerModifiers),t.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptionsReInvite=t.sessionDescriptionHandlerOptions);const r={onAccept:i=>{const o=Ri(i.message);if(!o){this.logger.error("Received 2xx response to re-INVITE without a session description"),this.ackAndBye(i,400,"Missing session description"),this.stateTransition(W.Terminated),this.pendingReinvite=!1;return}if(t.withoutSdp){const a={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setOfferAndGetAnswer(o,a).then(l=>{i.ack({body:l})}).catch(l=>{this.logger.error("Failed to handle offer in 2xx response to re-INVITE"),this.logger.error(l.message),this.state===W.Terminated?i.ack():(this.ackAndBye(i,488,"Bad Media Description"),this.stateTransition(W.Terminated))}).then(()=>{this.pendingReinvite=!1,t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(i)})}else{const a={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setAnswer(o,a).then(()=>{i.ack()}).catch(l=>{this.logger.error("Failed to handle answer in 2xx response to re-INVITE"),this.logger.error(l.message),this.state!==W.Terminated?(this.ackAndBye(i,488,"Bad Media Description"),this.stateTransition(W.Terminated)):i.ack()}).then(()=>{this.pendingReinvite=!1,t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(i)})}},onProgress:i=>{},onRedirect:i=>{},onReject:i=>{this.logger.warn("Received a non-2xx response to re-INVITE"),this.pendingReinvite=!1,t.withoutSdp?t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(i):this.rollbackOffer().catch(o=>{if(this.logger.error("Failed to rollback offer on non-2xx response to re-INVITE"),this.logger.error(o.message),this.state!==W.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const a=[];a.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:a}),this.stateTransition(W.Terminated)}}).then(()=>{t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(i)})},onTrying:i=>{}},n=t.requestOptions||{};if(n.extraHeaders=(n.extraHeaders||[]).slice(),n.extraHeaders.push("Allow: "+In.toString()),n.extraHeaders.push("Contact: "+this._contact),t.withoutSdp){if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return Promise.resolve(this.dialog.invite(r,n))}const s={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};return this.getOffer(s).then(i=>{if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return n.body=i,this.dialog.invite(r,n)}).catch(i=>{throw this.logger.error(i.message),this.logger.error("Failed to send re-INVITE"),this.pendingReinvite=!1,i})}message(t={}){if(this.state!==W.Established)return this.logger.error("Session.message() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const r=t.requestDelegate,n=this.copyRequestOptions(t.requestOptions);return this._message(r,n)}refer(t,r={}){if(this.state!==W.Established)return this.logger.error("Session.refer() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));if(t instanceof Cg&&!t.dialog)return this.logger.error("Session.refer() may only be called with session which is established. You are perhaps attempting to attended transfer to a target for which there is not dialog yet established. Perhaps you are attempting a 'semi-attended' tansfer? Regardless, this is not supported. The recommended approached is to check to see if the target Session is in the Established state before calling refer(); if the state is not Established you may proceed by falling back using a URI as the target (blind transfer)."),Promise.reject(new Error(`Invalid session state ${this.state}`));const n=r.requestDelegate,s=this.copyRequestOptions(r.requestOptions);return s.extraHeaders=s.extraHeaders?s.extraHeaders.concat(this.referExtraHeaders(this.referToString(t))):this.referExtraHeaders(this.referToString(t)),this._refer(r.onNotify,n,s)}_bye(t,r){if(!this.dialog)return Promise.reject(new Error("Session dialog undefined."));const n=this.dialog;switch(n.sessionState){case wr.Initial:throw new Error(`Invalid dialog state ${n.sessionState}`);case wr.Early:throw new Error(`Invalid dialog state ${n.sessionState}`);case wr.AckWait:return this.stateTransition(W.Terminating),new Promise(s=>{n.delegate={onAck:()=>{const i=n.bye(t,r);return this.stateTransition(W.Terminated),s(i),Promise.resolve()},onAckTimeout:()=>{const i=n.bye(t,r);this.stateTransition(W.Terminated),s(i)}}});case wr.Confirmed:{const s=n.bye(t,r);return this.stateTransition(W.Terminated),Promise.resolve(s)}case wr.Terminated:throw new Error(`Invalid dialog state ${n.sessionState}`);default:throw new Error("Unrecognized state.")}}_info(t,r){return this.dialog?Promise.resolve(this.dialog.info(t,r)):Promise.reject(new Error("Session dialog undefined."))}_message(t,r){return this.dialog?Promise.resolve(this.dialog.message(t,r)):Promise.reject(new Error("Session dialog undefined."))}_refer(t,r,n){return this.dialog?(this.onNotify=t,Promise.resolve(this.dialog.refer(r,n))):Promise.reject(new Error("Session dialog undefined."))}ackAndBye(t,r,n){t.ack();const s=[];r&&s.push("Reason: "+this.getReasonHeaderValue(r,n)),t.session.bye(void 0,{extraHeaders:s})}onAckRequest(t){if(this.logger.log("Session.onAckRequest"),this.state!==W.Established&&this.state!==W.Terminating)return this.logger.error(`ACK received while in state ${this.state}, dropping request`),Promise.resolve();const r=this.dialog;if(!r)throw new Error("Dialog undefined.");const n={sessionDescriptionHandlerOptions:this.pendingReinviteAck?this.sessionDescriptionHandlerOptionsReInvite:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.pendingReinviteAck?this._sessionDescriptionHandlerModifiersReInvite:this._sessionDescriptionHandlerModifiers};if(this.delegate&&this.delegate.onAck){const s=new U0(t);this.delegate.onAck(s)}switch(this.pendingReinviteAck=!1,r.signalingState){case me.Initial:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(W.Terminated),Promise.resolve()}case me.Stable:{const s=Ri(t.message);return s?s.contentDisposition==="render"?(this._renderbody=s.content,this._rendertype=s.contentType,Promise.resolve()):s.contentDisposition!=="session"?Promise.resolve():this.setAnswer(s,n).catch(i=>{this.logger.error(i.message);const o=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];r.bye(void 0,{extraHeaders:o}),this.stateTransition(W.Terminated)}):Promise.resolve()}case me.HaveLocalOffer:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(W.Terminated),Promise.resolve()}case me.HaveRemoteOffer:{this.logger.error(`Invalid signaling state ${r.signalingState}.`);const s=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return r.bye(void 0,{extraHeaders:s}),this.stateTransition(W.Terminated),Promise.resolve()}case me.Closed:throw new Error(`Invalid signaling state ${r.signalingState}.`);default:throw new Error(`Invalid signaling state ${r.signalingState}.`)}}onByeRequest(t){if(this.logger.log("Session.onByeRequest"),this.state!==W.Established){this.logger.error(`BYE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onBye){const r=new z0(t);this.delegate.onBye(r)}else t.accept();this.stateTransition(W.Terminated)}onInfoRequest(t){if(this.logger.log("Session.onInfoRequest"),this.state!==W.Established){this.logger.error(`INFO received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onInfo){const r=new W0(t);this.delegate.onInfo(r)}else t.accept()}onInviteRequest(t){if(this.logger.log("Session.onInviteRequest"),this.state!==W.Established){this.logger.error(`INVITE received while in state ${this.state}, dropping request`);return}this.pendingReinviteAck=!0;const r=["Contact: "+this._contact];if(t.message.hasHeader("P-Asserted-Identity")){const s=t.message.getHeader("P-Asserted-Identity");if(!s)throw new Error("Header undefined.");this._assertedIdentity=Tt.nameAddrHeaderParse(s)}const n={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.generateResponseOfferAnswerInDialog(n).then(s=>{const i=t.accept({statusCode:200,extraHeaders:r,body:s});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,200)}).catch(s=>{if(this.logger.error(s.message),this.logger.error("Failed to handle to re-INVITE request"),!this.dialog)throw new Error("Dialog undefined.");if(this.logger.error(this.dialog.signalingState),this.dialog.signalingState===me.Stable){const i=t.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,488);return}this.rollbackOffer().then(()=>{const i=t.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,i.message,488)}).catch(i=>{this.logger.error(i.message),this.logger.error("Failed to rollback offer on re-INVITE request");const o=t.reject({statusCode:488});if(this.state!==W.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const a=[];a.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:a}),this.stateTransition(W.Terminated)}this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(t.message,o.message,488)})})}onMessageRequest(t){if(this.logger.log("Session.onMessageRequest"),this.state!==W.Established){this.logger.error(`MESSAGE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onMessage){const r=new sp(t);this.delegate.onMessage(r)}else t.accept()}onNotifyRequest(t){if(this.logger.log("Session.onNotifyRequest"),this.state!==W.Established){this.logger.error(`NOTIFY received while in state ${this.state}, dropping request`);return}if(this.onNotify){const r=new Bl(t);this.onNotify(r);return}if(this.delegate&&this.delegate.onNotify){const r=new Bl(t);this.delegate.onNotify(r)}else t.accept()}onPrackRequest(t){if(this.logger.log("Session.onPrackRequest"),this.state!==W.Established){this.logger.error(`PRACK received while in state ${this.state}, dropping request`);return}throw new Error("Unimplemented.")}onReferRequest(t){if(this.logger.log("Session.onReferRequest"),this.state!==W.Established){this.logger.error(`REFER received while in state ${this.state}, dropping request`);return}if(!t.message.hasHeader("refer-to")){this.logger.warn("Invalid REFER packet. A refer-to header is required. Rejecting."),t.reject();return}const r=new X0(t,this);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(r):(this.logger.log("No delegate available to handle REFER, automatically accepting and following."),r.accept().then(()=>r.makeInviter(this._referralInviterOptions).invite()).catch(n=>{this.logger.error(n.message)}))}generateResponseOfferAnswer(t,r){if(this.dialog)return this.generateResponseOfferAnswerInDialog(r);const n=Ri(t.message);return!n||n.contentDisposition!=="session"?this.getOffer(r):this.setOfferAndGetAnswer(n,r)}generateResponseOfferAnswerInDialog(t){if(!this.dialog)throw new Error("Dialog undefined.");switch(this.dialog.signalingState){case me.Initial:return this.getOffer(t);case me.HaveLocalOffer:return Promise.resolve(void 0);case me.HaveRemoteOffer:if(!this.dialog.offer)throw new Error(`Session offer undefined in signaling state ${this.dialog.signalingState}.`);return this.setOfferAndGetAnswer(this.dialog.offer,t);case me.Stable:return this.state!==W.Established?Promise.resolve(void 0):this.getOffer(t);case me.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}getOffer(t){const r=this.setupSessionDescriptionHandler(),n=t.sessionDescriptionHandlerOptions,s=t.sessionDescriptionHandlerModifiers;try{return r.getDescription(n,s).then(i=>Fo(i)).catch(i=>{this.logger.error("Session.getOffer: SDH getDescription rejected...");const o=i instanceof Error?i:new Error("Session.getOffer unknown error.");throw this.logger.error(o.message),o})}catch(i){this.logger.error("Session.getOffer: SDH getDescription threw...");const o=i instanceof Error?i:new Error(i);return this.logger.error(o.message),Promise.reject(o)}}rollbackOffer(){const t=this.setupSessionDescriptionHandler();if(t.rollbackDescription===void 0)return Promise.resolve();try{return t.rollbackDescription().catch(r=>{this.logger.error("Session.rollbackOffer: SDH rollbackDescription rejected...");const n=r instanceof Error?r:new Error("Session.rollbackOffer unknown error.");throw this.logger.error(n.message),n})}catch(r){this.logger.error("Session.rollbackOffer: SDH rollbackDescription threw...");const n=r instanceof Error?r:new Error(r);return this.logger.error(n.message),Promise.reject(n)}}setAnswer(t,r){const n=this.setupSessionDescriptionHandler(),s=r.sessionDescriptionHandlerOptions,i=r.sessionDescriptionHandlerModifiers;try{if(!n.hasDescription(t.contentType))return Promise.reject(new Dl)}catch(o){this.logger.error("Session.setAnswer: SDH hasDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}try{return n.setDescription(t.content,s,i).catch(o=>{this.logger.error("Session.setAnswer: SDH setDescription rejected...");const a=o instanceof Error?o:new Error("Session.setAnswer unknown error.");throw this.logger.error(a.message),a})}catch(o){this.logger.error("Session.setAnswer: SDH setDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}}setOfferAndGetAnswer(t,r){const n=this.setupSessionDescriptionHandler(),s=r.sessionDescriptionHandlerOptions,i=r.sessionDescriptionHandlerModifiers;try{if(!n.hasDescription(t.contentType))return Promise.reject(new Dl)}catch(o){this.logger.error("Session.setOfferAndGetAnswer: SDH hasDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}try{return n.setDescription(t.content,s,i).then(()=>n.getDescription(s,i)).then(o=>Fo(o)).catch(o=>{this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription rejected...");const a=o instanceof Error?o:new Error("Session.setOfferAndGetAnswer unknown error.");throw this.logger.error(a.message),a})}catch(o){this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription threw...");const a=o instanceof Error?o:new Error(o);return this.logger.error(a.message),Promise.reject(a)}}setSessionDescriptionHandler(t){if(this._sessionDescriptionHandler)throw new Error("Session description handler defined.");this._sessionDescriptionHandler=t}setupSessionDescriptionHandler(){var t;return this._sessionDescriptionHandler?this._sessionDescriptionHandler:(this._sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions),!((t=this.delegate)===null||t===void 0)&&t.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(this._sessionDescriptionHandler,!1),this._sessionDescriptionHandler)}stateTransition(t){const r=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case W.Initial:t!==W.Establishing&&t!==W.Established&&t!==W.Terminating&&t!==W.Terminated&&r();break;case W.Establishing:t!==W.Established&&t!==W.Terminating&&t!==W.Terminated&&r();break;case W.Established:t!==W.Terminating&&t!==W.Terminated&&r();break;case W.Terminating:t!==W.Terminated&&r();break;case W.Terminated:r();break;default:throw new Error("Unrecognized state.")}this._state=t,this.logger.log(`Session ${this.id} transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),t===W.Terminated&&this.dispose()}copyRequestOptions(t={}){return{extraHeaders:t.extraHeaders?t.extraHeaders.slice():void 0,body:t.body?{contentDisposition:t.body.contentDisposition||"render",contentType:t.body.contentType||"text/plain",content:t.body.content||""}:void 0}}getReasonHeaderValue(t,r){const n=t;let s=Bo(t);return!s&&r&&(s=r),"SIP;cause="+n+';text="'+s+'"'}referExtraHeaders(t){const r=[];return r.push("Referred-By: <"+this.userAgent.configuration.uri+">"),r.push("Contact: "+this._contact),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),r.push("Refer-To: "+t),r}referToString(t){let r;if(t instanceof An)r=t.toString();else{if(!t.dialog)throw new Error("Dialog undefined.");const n=t.remoteIdentity.friendlyName,s=t.dialog.remoteTarget.toString(),i=t.dialog.callId,o=t.dialog.remoteTag,a=t.dialog.localTag;r=`"${n}" <${s}?Replaces=${encodeURIComponent(`${i};to-tag=${o};from-tag=${a}`)}>`}return r}},kr;(function(e){e.Required="Required",e.Supported="Supported",e.Unsupported="Unsupported"})(kr=kr||(kr={}));const Q0={"100rel":!0,199:!0,answermode:!0,"early-session":!0,eventlist:!0,explicitsub:!0,"from-change":!0,"geolocation-http":!0,"geolocation-sip":!0,gin:!0,gruu:!0,histinfo:!0,ice:!0,join:!0,"multiple-refer":!0,norefersub:!0,nosub:!0,outbound:!0,path:!0,policy:!0,precondition:!0,pref:!0,privacy:!0,"recipient-list-invite":!0,"recipient-list-message":!0,"recipient-list-subscribe":!0,replaces:!0,"resource-priority":!0,"sdp-anat":!0,"sec-agree":!0,tdialog:!0,timer:!0,uui:!0};var Ns=class extends Ll{constructor(e,t){super(e),this.incomingInviteRequest=t,this.disposed=!1,this.expiresTimer=void 0,this.isCanceled=!1,this.rel100="none",this.rseq=Math.floor(Math.random()*1e4),this.userNoAnswerTimer=void 0,this.waitingForPrack=!1,this.logger=e.getLogger("sip.Invitation");const r=this.incomingInviteRequest.message,n=r.getHeader("require");n&&n.toLowerCase().includes("100rel")&&(this.rel100="required");const s=r.getHeader("supported");if(s&&s.toLowerCase().includes("100rel")&&(this.rel100="supported"),r.toTag=t.toTag,typeof r.toTag!="string")throw new TypeError("toTag should have been a string.");if(this.userNoAnswerTimer=setTimeout(()=>{t.reject({statusCode:480}),this.stateTransition(W.Terminated)},this.userAgent.configuration.noAnswerTimeout?this.userAgent.configuration.noAnswerTimeout*1e3:6e4),r.hasHeader("expires")){const a=Number(r.getHeader("expires")||0)*1e3;this.expiresTimer=setTimeout(()=>{this.state===W.Initial&&(t.reject({statusCode:487}),this.stateTransition(W.Terminated))},a)}const i=this.request.getHeader("P-Asserted-Identity");i&&(this._assertedIdentity=Tt.nameAddrHeaderParse(i)),this._contact=this.userAgent.contact.toString();const o=r.parseHeader("Content-Disposition");o&&o.type==="render"&&(this._renderbody=r.body,this._rendertype=r.getHeader("Content-Type")),this._id=r.callId+r.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.expiresTimer&&(clearTimeout(this.expiresTimer),this.expiresTimer=void 0),this.userNoAnswerTimer&&(clearTimeout(this.userNoAnswerTimer),this.userNoAnswerTimer=void 0),this.prackNeverArrived(),this.state){case W.Initial:return this.reject().then(()=>super.dispose());case W.Establishing:return this.reject().then(()=>super.dispose());case W.Established:return super.dispose();case W.Terminating:return super.dispose();case W.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get autoSendAnInitialProvisionalResponse(){return this.rel100!=="required"&&this.userAgent.configuration.sendInitialProvisionalResponse}get body(){return this.incomingInviteRequest.message.body}get localIdentity(){return this.request.to}get remoteIdentity(){return this.request.from}get request(){return this.incomingInviteRequest.message}accept(e={}){if(this.logger.log("Invitation.accept"),this.state!==W.Initial){const t=new Error(`Invalid session state ${this.state}`);return this.logger.error(t.message),Promise.reject(t)}return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.stateTransition(W.Establishing),this.sendAccept(e).then(({message:t,session:r})=>{r.delegate={onAck:n=>this.onAckRequest(n),onAckTimeout:()=>this.onAckTimeout(),onBye:n=>this.onByeRequest(n),onInfo:n=>this.onInfoRequest(n),onInvite:n=>this.onInviteRequest(n),onMessage:n=>this.onMessageRequest(n),onNotify:n=>this.onNotifyRequest(n),onPrack:n=>this.onPrackRequest(n),onRefer:n=>this.onReferRequest(n)},this._dialog=r,this.stateTransition(W.Established),this._replacee&&this._replacee._bye()}).catch(t=>this.handleResponseError(t))}progress(e={}){if(this.logger.log("Invitation.progress"),this.state!==W.Initial){const r=new Error(`Invalid session state ${this.state}`);return this.logger.error(r.message),Promise.reject(r)}const t=e.statusCode||180;if(t<100||t>199)throw new TypeError("Invalid statusCode: "+t);return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.waitingForPrack?(this.logger.warn("Unexpected call for progress while waiting for prack, ignoring"),Promise.resolve()):e.statusCode===100?this.sendProgressTrying().then(()=>{}).catch(r=>this.handleResponseError(r)):this.rel100!=="required"&&!(this.rel100==="supported"&&e.rel100)&&!(this.rel100==="supported"&&this.userAgent.configuration.sipExtension100rel===kr.Required)?this.sendProgress(e).then(()=>{}).catch(r=>this.handleResponseError(r)):this.sendProgressReliableWaitForPrack(e).then(()=>{}).catch(r=>this.handleResponseError(r))}reject(e={}){if(this.logger.log("Invitation.reject"),this.state!==W.Initial&&this.state!==W.Establishing){const i=new Error(`Invalid session state ${this.state}`);return this.logger.error(i.message),Promise.reject(i)}const t=e.statusCode||480,r=e.reasonPhrase?e.reasonPhrase:Bo(t),n=e.extraHeaders||[];if(t<300||t>699)throw new TypeError("Invalid statusCode: "+t);const s=e.body?Fo(e.body):void 0;return t<400?this.incomingInviteRequest.redirect([],{statusCode:t,reasonPhrase:r,extraHeaders:n,body:s}):this.incomingInviteRequest.reject({statusCode:t,reasonPhrase:r,extraHeaders:n,body:s}),this.stateTransition(W.Terminated),Promise.resolve()}_onCancel(e){if(this.logger.log("Invitation._onCancel"),this.state!==W.Initial&&this.state!==W.Establishing){this.logger.error(`CANCEL received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onCancel){const t=new K0(e);this.delegate.onCancel(t)}this.isCanceled=!0,this.incomingInviteRequest.reject({statusCode:487}),this.stateTransition(W.Terminated)}handlePrackOfferAnswer(e){if(!this.dialog)throw new Error("Dialog undefined.");const t=Ri(e.message);if(!t||t.contentDisposition!=="session")return Promise.resolve(void 0);const r={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers};switch(this.dialog.signalingState){case me.Initial:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case me.Stable:return this.setAnswer(t,r).then(()=>{});case me.HaveLocalOffer:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case me.HaveRemoteOffer:return this.setOfferAndGetAnswer(t,r);case me.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}handleResponseError(e){let t=480;if(e instanceof Error?this.logger.error(e.message):this.logger.error(e),e instanceof Dl?(this.logger.error("A session description handler occurred while sending response (content type unsupported"),t=415):e instanceof j0?this.logger.error("A session description handler occurred while sending response"):e instanceof Hl?this.logger.error("Session ended before response could be formulated and sent (while waiting for PRACK)"):e instanceof Rn&&this.logger.error("Session changed state before response could be formulated and sent"),this.state===W.Initial||this.state===W.Establishing)try{this.incomingInviteRequest.reject({statusCode:t}),this.stateTransition(W.Terminated)}catch(r){throw this.logger.error("An error occurred attempting to reject the request while handling another error"),r}if(this.isCanceled){this.logger.warn("An error occurred while attempting to formulate and send a response to an incoming INVITE. However a CANCEL was received and processed while doing so which can (and often does) result in errors occurring as the session terminates in the meantime. Said error is being ignored.");return}throw e}onAckTimeout(){if(this.logger.log("Invitation.onAckTimeout"),!this.dialog)throw new Error("Dialog undefined.");this.logger.log("No ACK received for an extended period of time, terminating session"),this.dialog.bye(),this.stateTransition(W.Terminated)}sendAccept(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.extraHeaders||[];return this.waitingForPrack?this.waitForArrivalOfPrack().then(()=>clearTimeout(this.userNoAnswerTimer)).then(()=>this.generateResponseOfferAnswer(this.incomingInviteRequest,t)).then(n=>this.incomingInviteRequest.accept({statusCode:200,body:n,extraHeaders:r})):(clearTimeout(this.userNoAnswerTimer),this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(n=>this.incomingInviteRequest.accept({statusCode:200,body:n,extraHeaders:r})))}sendProgress(e={}){const t=e.statusCode||180,r=e.reasonPhrase,n=(e.extraHeaders||[]).slice(),s=e.body?Fo(e.body):void 0;if(t===183&&!s)return this.sendProgressWithSDP(e);try{const i=this.incomingInviteRequest.progress({statusCode:t,reasonPhrase:r,extraHeaders:n,body:s});return this._dialog=i.session,Promise.resolve(i)}catch(i){return Promise.reject(i)}}sendProgressWithSDP(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.statusCode||183,n=e.reasonPhrase,s=(e.extraHeaders||[]).slice();return this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(i=>this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i})).then(i=>(this._dialog=i.session,i))}sendProgressReliable(e={}){return e.extraHeaders=(e.extraHeaders||[]).slice(),e.extraHeaders.push("Require: 100rel"),e.extraHeaders.push("RSeq: "+Math.floor(Math.random()*1e4)),this.sendProgressWithSDP(e)}sendProgressReliableWaitForPrack(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},r=e.statusCode||183,n=e.reasonPhrase,s=(e.extraHeaders||[]).slice();s.push("Require: 100rel"),s.push("RSeq: "+this.rseq++);let i;return new Promise((o,a)=>{this.waitingForPrack=!0,this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(l=>(i=l,this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i}))).then(l=>{this._dialog=l.session;let u,c;l.session.delegate={onPrack:T=>{u=T,clearTimeout(p),clearTimeout(y),this.waitingForPrack&&(this.waitingForPrack=!1,this.handlePrackOfferAnswer(u).then(g=>{try{c=u.accept({statusCode:200,body:g}),this.prackArrived(),o({prackRequest:u,prackResponse:c,progressResponse:l})}catch(b){a(b)}}).catch(g=>a(g)))}};const p=setTimeout(()=>{this.waitingForPrack&&(this.waitingForPrack=!1,this.logger.warn("No PRACK received, rejecting INVITE."),clearTimeout(y),this.reject({statusCode:504}).then(()=>a(new Hl)).catch(T=>a(T)))},kt.T1*64),h=()=>{try{this.incomingInviteRequest.progress({statusCode:r,reasonPhrase:n,extraHeaders:s,body:i})}catch(T){this.waitingForPrack=!1,a(T);return}y=setTimeout(h,m*=2)};let m=kt.T1,y=setTimeout(h,m)}).catch(l=>{this.waitingForPrack=!1,a(l)})})}sendProgressTrying(){try{const e=this.incomingInviteRequest.trying();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}waitForArrivalOfPrack(){if(this.waitingForPrackPromise)throw new Error("Already waiting for PRACK");return this.waitingForPrackPromise=new Promise((e,t)=>{this.waitingForPrackResolve=e,this.waitingForPrackReject=t}),this.waitingForPrackPromise}prackArrived(){this.waitingForPrackResolve&&this.waitingForPrackResolve(),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}prackNeverArrived(){this.waitingForPrackReject&&this.waitingForPrackReject(new Hl),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}},Vo=class extends Ll{constructor(e,t,r={}){super(e,r),this.disposed=!1,this.earlyMedia=!1,this.earlyMediaSessionDescriptionHandlers=new Map,this.isCanceled=!1,this.inviteWithoutSdp=!1,this.logger=e.getLogger("sip.Inviter"),this.earlyMedia=r.earlyMedia!==void 0?r.earlyMedia:this.earlyMedia,this.fromTag=Lo(),this.inviteWithoutSdp=r.inviteWithoutSdp!==void 0?r.inviteWithoutSdp:this.inviteWithoutSdp;const n=Object.assign({},r);n.params=Object.assign({},r.params);const s=r.anonymous||!1,i=e.contact.toString({anonymous:s,outbound:s?!e.contact.tempGruu:!e.contact.pubGruu});s&&e.configuration.uri&&(n.params.fromDisplayName="Anonymous",n.params.fromUri="sip:anonymous@anonymous.invalid");let o=e.userAgentCore.configuration.aor;if(n.params.fromUri&&(o=typeof n.params.fromUri=="string"?Tt.URIParse(n.params.fromUri):n.params.fromUri),!o)throw new TypeError("Invalid from URI: "+n.params.fromUri);let a=t;if(n.params.toUri&&(a=typeof n.params.toUri=="string"?Tt.URIParse(n.params.toUri):n.params.toUri),!a)throw new TypeError("Invalid to URI: "+n.params.toUri);const l=Object.assign({},n.params);l.fromTag=this.fromTag;const u=(n.extraHeaders||[]).slice();s&&e.configuration.uri&&(u.push("P-Preferred-Identity: "+e.configuration.uri.toString()),u.push("Privacy: id")),u.push("Contact: "+i),u.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),e.configuration.sipExtension100rel===kr.Required&&u.push("Require: 100rel"),e.configuration.sipExtensionReplaces===kr.Required&&u.push("Require: replaces"),n.extraHeaders=u,this.outgoingRequestMessage=e.userAgentCore.makeOutgoingRequestMessage(be.INVITE,t,o,a,l,u,void 0),this._contact=i,this._referralInviterOptions=n,this._renderbody=r.renderbody,this._rendertype=r.rendertype,r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions),r.sessionDescriptionHandlerModifiersReInvite&&(this.sessionDescriptionHandlerModifiersReInvite=r.sessionDescriptionHandlerModifiersReInvite),r.sessionDescriptionHandlerOptionsReInvite&&(this.sessionDescriptionHandlerOptionsReInvite=r.sessionDescriptionHandlerOptionsReInvite),this._id=this.outgoingRequestMessage.callId+this.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.disposeEarlyMedia(),this.state){case W.Initial:return this.cancel().then(()=>super.dispose());case W.Establishing:return this.cancel().then(()=>super.dispose());case W.Established:return super.dispose();case W.Terminating:return super.dispose();case W.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get body(){return this.outgoingRequestMessage.body}get localIdentity(){return this.outgoingRequestMessage.from}get remoteIdentity(){return this.outgoingRequestMessage.to}get request(){return this.outgoingRequestMessage}cancel(e={}){if(this.logger.log("Inviter.cancel"),this.state!==W.Initial&&this.state!==W.Establishing){const r=new Error(`Invalid session state ${this.state}`);return this.logger.error(r.message),Promise.reject(r)}this.isCanceled=!0,this.stateTransition(W.Terminating);function t(r,n){if(r&&r<200||r>699)throw new TypeError("Invalid statusCode: "+r);if(r){const s=r,i=Bo(r)||n;return"SIP;cause="+s+';text="'+i+'"'}}if(this.outgoingInviteRequest){let r;e.statusCode&&e.reasonPhrase&&(r=t(e.statusCode,e.reasonPhrase)),this.outgoingInviteRequest.cancel(r,e)}else this.logger.warn("Canceled session before INVITE was sent"),this.stateTransition(W.Terminated);return Promise.resolve()}invite(e={}){if(this.logger.log("Inviter.invite"),this.state!==W.Initial)return super.invite(e);if(e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),e.withoutSdp||this.inviteWithoutSdp)return this._renderbody&&this._rendertype&&(this.outgoingRequestMessage.body={contentType:this._rendertype,body:this._renderbody}),this.stateTransition(W.Establishing),Promise.resolve(this.sendInvite(e));const t={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.getOffer(t).then(r=>(this.outgoingRequestMessage.body={body:r.content,contentType:r.contentType},this.stateTransition(W.Establishing),this.sendInvite(e))).catch(r=>{throw this.logger.log(r.message),this.state!==W.Terminated&&this.stateTransition(W.Terminated),r})}sendInvite(e={}){return this.outgoingInviteRequest=this.userAgent.userAgentCore.invite(this.outgoingRequestMessage,{onAccept:t=>{if(this.dialog){this.logger.log("Additional confirmed dialog, sending ACK and BYE"),this.ackAndBye(t);return}if(this.isCanceled){this.logger.log("Canceled session accepted, sending ACK and BYE"),this.ackAndBye(t),this.stateTransition(W.Terminated);return}this.notifyReferer(t),this.onAccept(t).then(()=>{this.disposeEarlyMedia()}).catch(()=>{this.disposeEarlyMedia()}).then(()=>{e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(t)})},onProgress:t=>{this.isCanceled||(this.notifyReferer(t),this.onProgress(t).catch(()=>{this.disposeEarlyMedia()}).then(()=>{e.requestDelegate&&e.requestDelegate.onProgress&&e.requestDelegate.onProgress(t)}))},onRedirect:t=>{this.notifyReferer(t),this.onRedirect(t),e.requestDelegate&&e.requestDelegate.onRedirect&&e.requestDelegate.onRedirect(t)},onReject:t=>{this.notifyReferer(t),this.onReject(t),e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(t)},onTrying:t=>{this.notifyReferer(t),this.onTrying(t),e.requestDelegate&&e.requestDelegate.onTrying&&e.requestDelegate.onTrying(t)}}),this.outgoingInviteRequest}disposeEarlyMedia(){this.earlyMediaSessionDescriptionHandlers.forEach(e=>{e.close()}),this.earlyMediaSessionDescriptionHandlers.clear()}notifyReferer(e){if(!this._referred)return;if(!(this._referred instanceof Ll))throw new Error("Referred session not instance of session");if(!this._referred.dialog)return;if(!e.message.statusCode)throw new Error("Status code undefined.");if(!e.message.reasonPhrase)throw new Error("Reason phrase undefined.");const t=`SIP/2.0 ${e.message.statusCode} ${e.message.reasonPhrase}`.trim(),r=this._referred.dialog.notify(void 0,{extraHeaders:["Event: refer","Subscription-State: terminated"],body:{contentDisposition:"render",contentType:"message/sipfrag",content:t}});r.delegate={onReject:()=>{this._referred=void 0}}}onAccept(e){if(this.logger.log("Inviter.onAccept"),this.state!==W.Establishing)return this.logger.error(`Accept received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));const t=e.message,r=e.session;switch(t.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=Tt.nameAddrHeaderParse(t.getHeader("P-Asserted-Identity"))),r.delegate={onAck:n=>this.onAckRequest(n),onBye:n=>this.onByeRequest(n),onInfo:n=>this.onInfoRequest(n),onInvite:n=>this.onInviteRequest(n),onMessage:n=>this.onMessageRequest(n),onNotify:n=>this.onNotifyRequest(n),onPrack:n=>this.onPrackRequest(n),onRefer:n=>this.onReferRequest(n)},this._dialog=r,r.signalingState){case me.Initial:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(e,400,"Missing session description"),this.stateTransition(W.Terminated),Promise.reject(new Error("Bad Media Description"));case me.HaveLocalOffer:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(e,400,"Missing session description"),this.stateTransition(W.Terminated),Promise.reject(new Error("Bad Media Description"));case me.HaveRemoteOffer:{if(!this._dialog.offer)throw new Error(`Session offer undefined in signaling state ${this._dialog.signalingState}.`);const n={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setOfferAndGetAnswer(this._dialog.offer,n).then(s=>{e.ack({body:s}),this.stateTransition(W.Established)}).catch(s=>{throw this.ackAndBye(e,488,"Invalid session description"),this.stateTransition(W.Terminated),s})}case me.Stable:{if(this.earlyMediaSessionDescriptionHandlers.size>0){const i=this.earlyMediaSessionDescriptionHandlers.get(r.id);if(!i)throw new Error("Session description handler undefined.");return this.setSessionDescriptionHandler(i),this.earlyMediaSessionDescriptionHandlers.delete(r.id),e.ack(),this.stateTransition(W.Established),Promise.resolve()}if(this.earlyMediaDialog){if(this.earlyMediaDialog!==r){this.earlyMedia&&this.logger.error("You have set the 'earlyMedia' option to 'true' which requires that your INVITE requests do not fork and yet this INVITE request did in fact fork. Consequentially and not surprisingly the end point which accepted the INVITE (confirmed dialog) does not match the end point with which early media has been setup (early dialog) and thus this session is unable to proceed. In accordance with the SIP specifications, the SIP servers your end point is connected to determine if an INVITE forks and the forking behavior of those servers cannot be controlled by this library. If you wish to use early media with this library you must configure those servers accordingly. Alternatively you may set the 'earlyMedia' to 'false' which will allow this library to function with any INVITE requests which do fork.");const i=new Error("Early media dialog does not equal confirmed dialog, terminating session");return this.logger.error(i.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(W.Terminated),Promise.reject(i)}return e.ack(),this.stateTransition(W.Established),Promise.resolve()}const n=r.answer;if(!n)throw new Error("Answer is undefined.");const s={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(n,s).then(()=>{let i;this._renderbody&&this._rendertype&&(i={body:{contentDisposition:"render",contentType:this._rendertype,content:this._renderbody}}),e.ack(i),this.stateTransition(W.Established)}).catch(i=>{throw this.logger.error(i.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(W.Terminated),i})}case me.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onProgress(e){var t;if(this.logger.log("Inviter.onProgress"),this.state!==W.Establishing)return this.logger.error(`Progress received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));if(!this.outgoingInviteRequest)throw new Error("Outgoing INVITE request undefined.");const r=e.message,n=e.session;r.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=Tt.nameAddrHeaderParse(r.getHeader("P-Asserted-Identity")));const s=r.getHeader("require"),i=r.getHeader("rseq"),o=!!(s&&s.includes("100rel")&&i&&Number(i)),a=[];switch(o&&a.push("RAck: "+r.getHeader("rseq")+" "+r.getHeader("cseq")),n.signalingState){case me.Initial:return o&&(this.logger.warn("First reliable provisional response received MUST contain an offer when INVITE does not contain an offer."),e.prack({extraHeaders:a})),Promise.resolve();case me.HaveLocalOffer:return o&&e.prack({extraHeaders:a}),Promise.resolve();case me.HaveRemoteOffer:if(!o)return this.logger.warn("Non-reliable provisional response MUST NOT contain an initial offer, discarding response."),Promise.resolve();{const l=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions||{});return!((t=this.delegate)===null||t===void 0)&&t.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(l,!0),this.earlyMediaSessionDescriptionHandlers.set(n.id,l),l.setDescription(r.body,this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers).then(()=>l.getDescription(this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers)).then(u=>{const c={contentDisposition:"session",contentType:u.contentType,content:u.body};e.prack({extraHeaders:a,body:c})}).catch(u=>{throw this.stateTransition(W.Terminated),u})}case me.Stable:if(o&&e.prack({extraHeaders:a}),this.earlyMedia&&!this.earlyMediaDialog){this.earlyMediaDialog=n;const l=n.answer;if(!l)throw new Error("Answer is undefined.");const u={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(l,u).catch(c=>{throw this.stateTransition(W.Terminated),c})}return Promise.resolve();case me.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onRedirect(e){if(this.logger.log("Inviter.onRedirect"),this.state!==W.Establishing&&this.state!==W.Terminating){this.logger.error(`Redirect received while in state ${this.state}, dropping response`);return}this.stateTransition(W.Terminated)}onReject(e){if(this.logger.log("Inviter.onReject"),this.state!==W.Establishing&&this.state!==W.Terminating){this.logger.error(`Reject received while in state ${this.state}, dropping response`);return}this.stateTransition(W.Terminated)}onTrying(e){if(this.logger.log("Inviter.onTrying"),this.state!==W.Establishing){this.logger.error(`Trying received while in state ${this.state}, dropping response`);return}}},rt;(function(e){e.Initial="Initial",e.Registered="Registered",e.Unregistered="Unregistered",e.Terminated="Terminated"})(rt=rt||(rt={}));var jo=class hs{constructor(t,r={}){this.disposed=!1,this._contacts=[],this._retryAfter=void 0,this._state=rt.Initial,this._waiting=!1,this._stateEventEmitter=new Hs,this._waitingEventEmitter=new Hs,this.userAgent=t;const n=t.configuration.uri.clone();if(n.user=void 0,this.options=Object.assign(Object.assign(Object.assign({},hs.defaultOptions()),{registrar:n}),hs.stripUndefinedProperties(r)),this.options.extraContactHeaderParams=(this.options.extraContactHeaderParams||[]).slice(),this.options.extraHeaders=(this.options.extraHeaders||[]).slice(),!this.options.registrar)throw new Error("Registrar undefined.");if(this.options.registrar=this.options.registrar.clone(),this.options.regId&&!this.options.instanceId?this.options.instanceId=this.userAgent.instanceId:!this.options.regId&&this.options.instanceId&&(this.options.regId=1),this.options.instanceId&&Tt.parse(this.options.instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");if(this.options.regId&&this.options.regId<0)throw new Error("Invalid regId.");const s=this.options.registrar,i=this.options.params&&this.options.params.fromUri||t.userAgentCore.configuration.aor,o=this.options.params&&this.options.params.toUri||t.configuration.uri,a=this.options.params||{},l=(r.extraHeaders||[]).slice();if(this.request=t.userAgentCore.makeOutgoingRequestMessage(be.REGISTER,s,i,o,a,l,void 0),this.expires=this.options.expires||hs.defaultExpires,this.expires<0)throw new Error("Invalid expires.");if(this.refreshFrequency=this.options.refreshFrequency||hs.defaultRefreshFrequency,this.refreshFrequency<50||this.refreshFrequency>99)throw new Error("Invalid refresh frequency. The value represents a percentage of the expiration time and should be between 50 and 99.");this.logger=t.getLogger("sip.Registerer"),this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(u=>{const c=this.options[u];u==="registrar"?this.logger.log("· "+u+": "+c):this.logger.log("· "+u+": "+JSON.stringify(c))})),this.id=this.request.callId+this.request.from.parameters.tag,this.userAgent._registerers[this.id]=this}static defaultOptions(){return{expires:hs.defaultExpires,extraContactHeaderParams:[],extraHeaders:[],logConfiguration:!0,instanceId:"",params:{},regId:0,registrar:new An("sip","anonymous","anonymous.invalid"),refreshFrequency:hs.defaultRefreshFrequency}}static stripUndefinedProperties(t){return Object.keys(t).reduce((r,n)=>(t[n]!==void 0&&(r[n]=t[n]),r),{})}get contacts(){return this._contacts.slice()}get retryAfter(){return this._retryAfter}get state(){return this._state}get stateChange(){return this._stateEventEmitter}dispose(){return this.disposed?Promise.resolve():(this.disposed=!0,this.logger.log(`Registerer ${this.id} in state ${this.state} is being disposed`),delete this.userAgent._registerers[this.id],new Promise(t=>{const r=()=>{if(!this.waiting&&this._state===rt.Registered){this.stateChange.addListener(()=>{this.terminated(),t()},{once:!0}),this.unregister();return}this.terminated(),t()};this.waiting?this.waitingChange.addListener(()=>{r()},{once:!0}):r()}))}register(t={}){if(this.state===rt.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const s=new Ol("REGISTER request already in progress, waiting for final response");return Promise.reject(s)}t.requestOptions&&(this.options=Object.assign(Object.assign({},this.options),t.requestOptions));const r=(this.options.extraHeaders||[]).slice();r.push("Contact: "+this.generateContactHeader(this.expires)),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.request.extraHeaders=r,this.waitingToggle(!0);const n=this.userAgent.userAgentCore.register(this.request,{onAccept:s=>{let i;s.message.hasHeader("expires")&&(i=Number(s.message.getHeader("expires"))),this._contacts=s.message.getHeaders("contact");let o=this._contacts.length;if(!o){this.logger.error("No Contact header in response to REGISTER, dropping response."),this.unregistered();return}let a;for(;o--;){if(a=s.message.parseHeader("contact",o),!a)throw new Error("Contact undefined");if(this.userAgent.contact.pubGruu&&Qf(a.uri,this.userAgent.contact.pubGruu)){i=Number(a.getParam("expires"));break}if(this.userAgent.configuration.contactName===""){if(a.uri.user===this.userAgent.contact.uri.user){i=Number(a.getParam("expires"));break}}else if(Qf(a.uri,this.userAgent.contact.uri)){i=Number(a.getParam("expires"));break}a=void 0}if(a===void 0){this.logger.error("No Contact header pointing to us, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(i===void 0){this.logger.error("Contact pointing to us is missing expires parameter, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(a.hasParam("temp-gruu")){const l=a.getParam("temp-gruu");l&&(this.userAgent.contact.tempGruu=Tt.URIParse(l.replace(/"/g,"")))}if(a.hasParam("pub-gruu")){const l=a.getParam("pub-gruu");l&&(this.userAgent.contact.pubGruu=Tt.URIParse(l.replace(/"/g,"")))}this.registered(i),t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(s),this.waitingToggle(!1)},onProgress:s=>{t.requestDelegate&&t.requestDelegate.onProgress&&t.requestDelegate.onProgress(s)},onRedirect:s=>{this.logger.error("Redirect received. Not supported."),this.unregistered(),t.requestDelegate&&t.requestDelegate.onRedirect&&t.requestDelegate.onRedirect(s),this.waitingToggle(!1)},onReject:s=>{if(s.message.statusCode===423){if(!s.message.hasHeader("min-expires")){this.logger.error("423 response received for REGISTER without Min-Expires, dropping response"),this.unregistered(),this.waitingToggle(!1);return}this.expires=Number(s.message.getHeader("min-expires")),this.waitingToggle(!1),this.register();return}this.logger.warn(`Failed to register, status code ${s.message.statusCode}`);let i=NaN;if(s.message.statusCode===500||s.message.statusCode===503){const o=s.message.getHeader("retry-after");o&&(i=Number.parseInt(o,void 0))}this._retryAfter=isNaN(i)?void 0:i,this.unregistered(),t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(s),this._retryAfter=void 0,this.waitingToggle(!1)},onTrying:s=>{t.requestDelegate&&t.requestDelegate.onTrying&&t.requestDelegate.onTrying(s)}});return Promise.resolve(n)}unregister(t={}){if(this.state===rt.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed&&this.state!==rt.Registered)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const s=new Ol("REGISTER request already in progress, waiting for final response");return Promise.reject(s)}this._state!==rt.Registered&&!t.all&&this.logger.warn("Not currently registered, but sending an unregister anyway.");const r=(t.requestOptions&&t.requestOptions.extraHeaders||[]).slice();this.request.extraHeaders=r,t.all?(r.push("Contact: *"),r.push("Expires: 0")):r.push("Contact: "+this.generateContactHeader(0)),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.waitingToggle(!0);const n=this.userAgent.userAgentCore.register(this.request,{onAccept:s=>{this._contacts=s.message.getHeaders("contact"),this.unregistered(),t.requestDelegate&&t.requestDelegate.onAccept&&t.requestDelegate.onAccept(s),this.waitingToggle(!1)},onProgress:s=>{t.requestDelegate&&t.requestDelegate.onProgress&&t.requestDelegate.onProgress(s)},onRedirect:s=>{this.logger.error("Unregister redirected. Not currently supported."),this.unregistered(),t.requestDelegate&&t.requestDelegate.onRedirect&&t.requestDelegate.onRedirect(s),this.waitingToggle(!1)},onReject:s=>{this.logger.error(`Unregister rejected with status code ${s.message.statusCode}`),this.unregistered(),t.requestDelegate&&t.requestDelegate.onReject&&t.requestDelegate.onReject(s),this.waitingToggle(!1)},onTrying:s=>{t.requestDelegate&&t.requestDelegate.onTrying&&t.requestDelegate.onTrying(s)}});return Promise.resolve(n)}clearTimers(){this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.registrationExpiredTimer!==void 0&&(clearTimeout(this.registrationExpiredTimer),this.registrationExpiredTimer=void 0)}generateContactHeader(t){let r=this.userAgent.contact.toString({register:!0});return this.options.regId&&this.options.instanceId&&(r+=";reg-id="+this.options.regId,r+=';+sip.instance="<urn:uuid:'+this.options.instanceId+'>"'),this.options.extraContactHeaderParams&&this.options.extraContactHeaderParams.forEach(n=>{r+=";"+n}),r+=";expires="+t,r}registered(t){this.clearTimers(),this.registrationTimer=setTimeout(()=>{this.registrationTimer=void 0,this.register()},this.refreshFrequency/100*t*1e3),this.registrationExpiredTimer=setTimeout(()=>{this.logger.warn("Registration expired"),this.unregistered()},t*1e3),this._state!==rt.Registered&&this.stateTransition(rt.Registered)}unregistered(){this.clearTimers(),this._state!==rt.Unregistered&&this.stateTransition(rt.Unregistered)}terminated(){this.clearTimers(),this._state!==rt.Terminated&&this.stateTransition(rt.Terminated)}stateTransition(t){const r=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case rt.Initial:t!==rt.Registered&&t!==rt.Unregistered&&t!==rt.Terminated&&r();break;case rt.Registered:t!==rt.Unregistered&&t!==rt.Terminated&&r();break;case rt.Unregistered:t!==rt.Registered&&t!==rt.Terminated&&r();break;case rt.Terminated:r();break;default:throw new Error("Unrecognized state.")}this._state=t,this.logger.log(`Registration transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),t===rt.Terminated&&this.dispose()}get waiting(){return this._waiting}get waitingChange(){return this._waitingEventEmitter}waitingToggle(t){if(this._waiting===t)throw new Error(`Invalid waiting transition from ${this._waiting} to ${t}`);this._waiting=t,this.logger.log(`Waiting toggled to ${this._waiting}`),this._waitingEventEmitter.emit(this._waiting)}waitingWarning(){let t="An attempt was made to send a REGISTER request while a prior one was still in progress.";t+=" RFC 3261 requires UAs MUST NOT send a new registration until they have received a final response",t+=" from the registrar for the previous one or the previous REGISTER request has timed out.",t+=" Note that if the transport disconnects, you still must wait for the prior request to time out before",t+=" sending a new REGISTER request or alternatively dispose of the current Registerer and create a new Registerer.",this.logger.warn(t)}stateError(){let t=`An attempt was made to send a REGISTER request when the Registerer ${this.state===rt.Terminated?"is in 'Terminated' state":"has been disposed"}.`;t+=" The Registerer transitions to 'Terminated' when Registerer.dispose() is called.",t+=" Perhaps you called UserAgent.stop() which dipsoses of all Registerers?",this.logger.error(t)}};jo.defaultExpires=600,jo.defaultRefreshFrequency=99;var Je;(function(e){e.Initial="Initial",e.NotifyWait="NotifyWait",e.Pending="Pending",e.Active="Active",e.Terminated="Terminated"})(Je=Je||(Je={}));var Ee;(function(e){e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Disconnected="Disconnected"})(Ee=Ee||(Ee={}));var Pt;(function(e){e.Started="Started",e.Stopped="Stopped"})(Pt=Pt||(Pt={}));var $n=class _r{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(t,r=!1){return this.onePassHasher.start().appendStr(t).end(r)}static hashAsciiStr(t,r=!1){return this.onePassHasher.start().appendAsciiStr(t).end(r)}static _hex(t){const r=_r.hexChars,n=_r.hexOut;let s,i,o,a;for(a=0;a<4;a+=1)for(i=a*8,s=t[a],o=0;o<8;o+=2)n[i+1+o]=r.charAt(s&15),s>>>=4,n[i+0+o]=r.charAt(s&15),s>>>=4;return n.join("")}static _md5cycle(t,r){let n=t[0],s=t[1],i=t[2],o=t[3];n+=(s&i|~s&o)+r[0]-680876936|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[1]-389564586|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[2]+606105819|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[3]-1044525330|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[4]-176418897|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[5]+1200080426|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[6]-1473231341|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[7]-45705983|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[8]+1770035416|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[9]-1958414417|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[10]-42063|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[11]-1990404162|0,s=(s<<22|s>>>10)+i|0,n+=(s&i|~s&o)+r[12]+1804603682|0,n=(n<<7|n>>>25)+s|0,o+=(n&s|~n&i)+r[13]-40341101|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&s)+r[14]-1502002290|0,i=(i<<17|i>>>15)+o|0,s+=(i&o|~i&n)+r[15]+1236535329|0,s=(s<<22|s>>>10)+i|0,n+=(s&o|i&~o)+r[1]-165796510|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[6]-1069501632|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[11]+643717713|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[0]-373897302|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[5]-701558691|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[10]+38016083|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[15]-660478335|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[4]-405537848|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[9]+568446438|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[14]-1019803690|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[3]-187363961|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[8]+1163531501|0,s=(s<<20|s>>>12)+i|0,n+=(s&o|i&~o)+r[13]-1444681467|0,n=(n<<5|n>>>27)+s|0,o+=(n&i|s&~i)+r[2]-51403784|0,o=(o<<9|o>>>23)+n|0,i+=(o&s|n&~s)+r[7]+1735328473|0,i=(i<<14|i>>>18)+o|0,s+=(i&n|o&~n)+r[12]-1926607734|0,s=(s<<20|s>>>12)+i|0,n+=(s^i^o)+r[5]-378558|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[8]-2022574463|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[11]+1839030562|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[14]-35309556|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[1]-1530992060|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[4]+1272893353|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[7]-155497632|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[10]-1094730640|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[13]+681279174|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[0]-358537222|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[3]-722521979|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[6]+76029189|0,s=(s<<23|s>>>9)+i|0,n+=(s^i^o)+r[9]-640364487|0,n=(n<<4|n>>>28)+s|0,o+=(n^s^i)+r[12]-421815835|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^s)+r[15]+530742520|0,i=(i<<16|i>>>16)+o|0,s+=(i^o^n)+r[2]-995338651|0,s=(s<<23|s>>>9)+i|0,n+=(i^(s|~o))+r[0]-198630844|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[5]-57434055|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[12]+1700485571|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[10]-1051523|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[1]-2054922799|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[8]+1873313359|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[13]+1309151649|0,s=(s<<21|s>>>11)+i|0,n+=(i^(s|~o))+r[4]-145523070|0,n=(n<<6|n>>>26)+s|0,o+=(s^(n|~i))+r[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~s))+r[2]+718787259|0,i=(i<<15|i>>>17)+o|0,s+=(o^(i|~n))+r[9]-343485551|0,s=(s<<21|s>>>11)+i|0,t[0]=n+t[0]|0,t[1]=s+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(_r.stateIdentity),this}appendStr(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o;for(o=0;o<t.length;o+=1){if(i=t.charCodeAt(o),i<128)r[s++]=i;else if(i<2048)r[s++]=(i>>>6)+192,r[s++]=i&63|128;else if(i<55296||i>56319)r[s++]=(i>>>12)+224,r[s++]=i>>>6&63|128,r[s++]=i&63|128;else{if(i=(i-55296)*1024+(t.charCodeAt(++o)-56320)+65536,i>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");r[s++]=(i>>>18)+240,r[s++]=i>>>12&63|128,r[s++]=i>>>6&63|128,r[s++]=i&63|128}s>=64&&(this._dataLength+=64,_r._md5cycle(this._state,n),s-=64,n[0]=n[16])}return this._bufferLength=s,this}appendAsciiStr(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o=0;for(;;){for(i=Math.min(t.length-o,64-s);i--;)r[s++]=t.charCodeAt(o++);if(s<64)break;this._dataLength+=64,_r._md5cycle(this._state,n),s=0}return this._bufferLength=s,this}appendByteArray(t){const r=this._buffer8,n=this._buffer32;let s=this._bufferLength,i,o=0;for(;;){for(i=Math.min(t.length-o,64-s);i--;)r[s++]=t[o++];if(s<64)break;this._dataLength+=64,_r._md5cycle(this._state,n),s=0}return this._bufferLength=s,this}getState(){const t=this,r=t._state;return{buffer:String.fromCharCode.apply(null,t._buffer8),buflen:t._bufferLength,length:t._dataLength,state:[r[0],r[1],r[2],r[3]]}}setState(t){const r=t.buffer,n=t.state,s=this._state;let i;for(this._dataLength=t.length,this._bufferLength=t.buflen,s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],i=0;i<r.length;i+=1)this._buffer8[i]=r.charCodeAt(i)}end(t=!1){const r=this._bufferLength,n=this._buffer8,s=this._buffer32,i=(r>>2)+1;let o;if(this._dataLength+=r,n[r]=128,n[r+1]=n[r+2]=n[r+3]=0,s.set(_r.buffer32Identity.subarray(i),i),r>55&&(_r._md5cycle(this._state,s),s.set(_r.buffer32Identity)),o=this._dataLength*8,o<=4294967295)s[14]=o;else{const a=o.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;const l=parseInt(a[2],16),u=parseInt(a[1],16)||0;s[14]=l,s[15]=u}return _r._md5cycle(this._state,s),t?this._state:_r._hex(this._state)}};$n.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),$n.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),$n.hexChars="0123456789abcdef",$n.hexOut=[],$n.onePassHasher=new $n,$n.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592"&&console.error("Md5 self test failed.");function Pn(e){return $n.hashStr(e)}var ew=class{constructor(e,t,r,n){this.logger=e.getLogger("sipjs.digestauthentication"),this.username=r,this.password=n,this.ha1=t,this.nc=0,this.ncHex="00000000"}authenticate(e,t,r){if(this.algorithm=t.algorithm,this.realm=t.realm,this.nonce=t.nonce,this.opaque=t.opaque,this.stale=t.stale,this.algorithm){if(this.algorithm!=="MD5")return this.logger.warn("challenge with Digest algorithm different than 'MD5', authentication aborted"),!1}else this.algorithm="MD5";if(!this.realm)return this.logger.warn("challenge without Digest realm, authentication aborted"),!1;if(!this.nonce)return this.logger.warn("challenge without Digest nonce, authentication aborted"),!1;if(t.qop)if(t.qop.indexOf("auth")>-1)this.qop="auth";else if(t.qop.indexOf("auth-int")>-1)this.qop="auth-int";else return this.logger.warn("challenge without Digest qop different than 'auth' or 'auth-int', authentication aborted"),!1;else this.qop=void 0;return this.method=e.method,this.uri=e.ruri,this.cnonce=ss(12),this.nc+=1,this.updateNcHex(),this.nc===4294967296&&(this.nc=1,this.ncHex="00000001"),this.calculateResponse(r),!0}toString(){const e=[];if(!this.response)throw new Error("response field does not exist, cannot generate Authorization header");return e.push("algorithm="+this.algorithm),e.push('username="'+this.username+'"'),e.push('realm="'+this.realm+'"'),e.push('nonce="'+this.nonce+'"'),e.push('uri="'+this.uri+'"'),e.push('response="'+this.response+'"'),this.opaque&&e.push('opaque="'+this.opaque+'"'),this.qop&&(e.push("qop="+this.qop),e.push('cnonce="'+this.cnonce+'"'),e.push("nc="+this.ncHex)),"Digest "+e.join(", ")}updateNcHex(){const e=Number(this.nc).toString(16);this.ncHex="00000000".substr(0,8-e.length)+e}calculateResponse(e){let t,r;t=this.ha1,(t===""||t===void 0)&&(t=Pn(this.username+":"+this.realm+":"+this.password)),this.qop==="auth"?(r=Pn(this.method+":"+this.uri),this.response=Pn(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth:"+r)):this.qop==="auth-int"?(r=Pn(this.method+":"+this.uri+":"+Pn(e||"")),this.response=Pn(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth-int:"+r)):this.qop===void 0&&(r=Pn(this.method+":"+this.uri),this.response=Pn(t+":"+this.nonce+":"+r))}},Rt;(function(e){e[e.error=0]="error",e[e.warn=1]="warn",e[e.log=2]="log",e[e.debug=3]="debug"})(Rt=Rt||(Rt={}));var ip=class{constructor(e,t,r){this.logger=e,this.category=t,this.label=r}error(e){this.genericLog(Rt.error,e)}warn(e){this.genericLog(Rt.warn,e)}log(e){this.genericLog(Rt.log,e)}debug(e){this.genericLog(Rt.debug,e)}genericLog(e,t){this.logger.genericLog(e,this.category,this.label,t)}get level(){return this.logger.level}set level(e){this.logger.level=e}},tw=class{constructor(){this.builtinEnabled=!0,this._level=Rt.log,this.loggers={},this.logger=this.getLogger("sip:loggerfactory")}get level(){return this._level}set level(e){e>=0&&e<=3?this._level=e:e>3?this._level=3:Rt.hasOwnProperty(e)?this._level=e:this.logger.error("invalid 'level' parameter value: "+JSON.stringify(e))}get connector(){return this._connector}set connector(e){e?typeof e=="function"?this._connector=e:this.logger.error("invalid 'connector' parameter value: "+JSON.stringify(e)):this._connector=void 0}getLogger(e,t){if(t&&this.level===3)return new ip(this,e,t);if(this.loggers[e])return this.loggers[e];{const r=new ip(this,e);return this.loggers[e]=r,r}}genericLog(e,t,r,n){this.level>=e&&this.builtinEnabled&&this.print(e,t,r,n),this.connector&&this.connector(Rt[e],t,r,n)}print(e,t,r,n){if(typeof n=="string"){const s=[new Date,t];r&&s.push(r),n=s.concat(n).join(" | ")}switch(e){case Rt.error:console.error(n);break;case Rt.warn:console.warn(n);break;case Rt.log:console.log(n);break;case Rt.debug:console.debug(n);break;default:break}}},Uo;(function(e){function t(s,i){let o=i,a=0,l=0;if(s.substring(o,o+2).match(/(^\r\n)/))return-2;for(;a===0;){if(l=s.indexOf(`\r
|
|
27
|
+
`,o),l===-1)return l;!s.substring(l+2,l+4).match(/(^\r\n)/)&&s.charAt(l+2).match(/(^\s+)/)?o=l+2:a=l}return a}e.getHeader=t;function r(s,i,o,a){const l=i.indexOf(":",o),u=i.substring(o,l).trim(),c=i.substring(l+1,a).trim();let d;switch(u.toLowerCase()){case"via":case"v":s.addHeader("via",c),s.getHeaders("via").length===1?(d=s.parseHeader("Via"),d&&(s.via=d,s.viaBranch=d.branch)):d=0;break;case"from":case"f":s.setHeader("from",c),d=s.parseHeader("from"),d&&(s.from=d,s.fromTag=d.getParam("tag"));break;case"to":case"t":s.setHeader("to",c),d=s.parseHeader("to"),d&&(s.to=d,s.toTag=d.getParam("tag"));break;case"record-route":if(d=Tt.parse(c,"Record_Route"),d===-1){d=void 0;break}if(!(d instanceof Array)){d=void 0;break}d.forEach(p=>{s.addHeader("record-route",c.substring(p.position,p.offset)),s.headers["Record-Route"][s.getHeaders("record-route").length-1].parsed=p.parsed});break;case"call-id":case"i":s.setHeader("call-id",c),d=s.parseHeader("call-id"),d&&(s.callId=c);break;case"contact":case"m":if(d=Tt.parse(c,"Contact"),d===-1){d=void 0;break}if(!(d instanceof Array)){d=void 0;break}d.forEach(p=>{s.addHeader("contact",c.substring(p.position,p.offset)),s.headers.Contact[s.getHeaders("contact").length-1].parsed=p.parsed});break;case"content-length":case"l":s.setHeader("content-length",c),d=s.parseHeader("content-length");break;case"content-type":case"c":s.setHeader("content-type",c),d=s.parseHeader("content-type");break;case"cseq":s.setHeader("cseq",c),d=s.parseHeader("cseq"),d&&(s.cseq=d.value),s instanceof kn&&(s.method=d.method);break;case"max-forwards":s.setHeader("max-forwards",c),d=s.parseHeader("max-forwards");break;case"www-authenticate":s.setHeader("www-authenticate",c),d=s.parseHeader("www-authenticate");break;case"proxy-authenticate":s.setHeader("proxy-authenticate",c),d=s.parseHeader("proxy-authenticate");break;case"refer-to":case"r":s.setHeader("refer-to",c),d=s.parseHeader("refer-to"),d&&(s.referTo=d);break;default:s.addHeader(u.toLowerCase(),c),d=0}return d===void 0?{error:"error parsing header '"+u+"'"}:!0}e.parseHeader=r;function n(s,i){let o=0,a=s.indexOf(`\r
|
|
28
|
+
`);if(a===-1){i.warn("no CRLF found, not a SIP message, discarded");return}const l=s.substring(0,a),u=Tt.parse(l,"Request_Response");let c;if(u===-1){i.warn('error parsing first line of SIP message: "'+l+'"');return}else u.status_code?(c=new kn,c.statusCode=u.status_code,c.reasonPhrase=u.reason_phrase):(c=new Ms,c.method=u.method,c.ruri=u.uri);c.data=s,o=a+2;let d;for(;;){if(a=t(s,o),a===-2){d=o+2;break}else if(a===-1){i.error("malformed message");return}const p=r(c,s,o,a);if(p&&p!==!0){i.error(p.error);return}o=a+2}return c.hasHeader("content-length")?c.body=s.substr(d,Number(c.getHeader("content-length"))):c.body=s.substring(d),c}e.parseMessage=n})(Uo=Uo||(Uo={}));function op(e,t){if(t.statusCode<100||t.statusCode>699)throw new TypeError("Invalid statusCode: "+t.statusCode);const n=t.reasonPhrase?t.reasonPhrase:Bo(t.statusCode);let s="SIP/2.0 "+t.statusCode+" "+n+`\r
|
|
29
29
|
`;t.statusCode>=100&&t.statusCode<200,t.statusCode;const i="From: "+e.getHeader("From")+`\r
|
|
30
30
|
`,o="Call-ID: "+e.callId+`\r
|
|
31
31
|
`,a="CSeq: "+e.cseq+" "+e.method+`\r
|
|
32
|
-
`,l=e.getHeaders("via").reduce((h,
|
|
33
|
-
`,"");let u="To: "+e.getHeader("to");if(t.statusCode>100&&!e.parseHeader("to").hasParam("tag")){let h=t.toTag;h||(h=
|
|
32
|
+
`,l=e.getHeaders("via").reduce((h,m)=>h+"Via: "+m+`\r
|
|
33
|
+
`,"");let u="To: "+e.getHeader("to");if(t.statusCode>100&&!e.parseHeader("to").hasParam("tag")){let h=t.toTag;h||(h=Lo()),u+=";tag="+h}u+=`\r
|
|
34
34
|
`;let c="";t.supported&&(c="Supported: "+t.supported.join(", ")+`\r
|
|
35
35
|
`);let d="";t.userAgent&&(d="User-Agent: "+t.userAgent+`\r
|
|
36
|
-
`);let p="";return t.extraHeaders&&(p=t.extraHeaders.reduce((h,
|
|
36
|
+
`);let p="";return t.extraHeaders&&(p=t.extraHeaders.reduce((h,m)=>h+m.trim()+`\r
|
|
37
37
|
`,"")),s+=l,s+=i,s+=u,s+=a,s+=o,s+=c,s+=d,s+=p,t.body?(s+="Content-Type: "+t.body.contentType+`\r
|
|
38
|
-
`,s+="Content-Length: "+
|
|
38
|
+
`,s+="Content-Length: "+ki(t.body.content)+`\r
|
|
39
39
|
\r
|
|
40
40
|
`,s+=t.body.content):s+=`Content-Length: 0\r
|
|
41
41
|
\r
|
|
42
|
-
`,{message:s}}var Bl=class extends rs{constructor(e){super(e||"Unspecified transport error.")}},sp=class{constructor(e,t,r,n,s){this._transport=e,this._user=t,this._id=r,this._state=n,this.listeners=new Array,this.logger=t.loggerFactory.getLogger(s,r),this.logger.debug(`Constructing ${this.typeToString()} with id ${this.id}.`)}dispose(){this.logger.debug(`Destroyed ${this.typeToString()} with id ${this.id}.`)}get id(){return this._id}get kind(){throw new Error("Invalid kind.")}get state(){return this._state}get transport(){return this._transport}addStateChangeListener(e,t){const r=()=>{this.removeStateChangeListener(r),e()};t?.once===!0?this.listeners.push(r):this.listeners.push(e)}notifyStateChangeListeners(){this.listeners.slice().forEach(e=>e())}removeStateChangeListener(e){this.listeners=this.listeners.filter(t=>t!==e)}logTransportError(e,t){this.logger.error(e.message),this.logger.error(`Transport error occurred in ${this.typeToString()} with id ${this.id}.`),this.logger.error(t)}send(e){return this.transport.send(e).catch(t=>{if(t instanceof Bl)throw this.onTransportError(t),t;let r;throw t&&typeof t.message=="string"?r=new Bl(t.message):r=new Bl,this.onTransportError(r),r})}setState(e){this.logger.debug(`State change to "${e}" on ${this.typeToString()} with id ${this.id}.`),this._state=e,this._user.onStateChange&&this._user.onStateChange(e),this.notifyStateChangeListeners()}typeToString(){return"UnknownType"}},ip=class extends sp{constructor(e,t,r,n,s){super(t,r,e.viaBranch,n,s),this._request=e,this.user=r}get request(){return this._request}},U;(function(e){e.Accepted="Accepted",e.Calling="Calling",e.Completed="Completed",e.Confirmed="Confirmed",e.Proceeding="Proceeding",e.Terminated="Terminated",e.Trying="Trying"})(U=U||(U={}));var Zt=class extends ip{constructor(e,t,r){super(e,t,r,U.Proceeding,"sip.transaction.ist")}dispose(){this.stopProgressExtensionTimer(),this.H&&(clearTimeout(this.H),this.H=void 0),this.I&&(clearTimeout(this.I),this.I=void 0),this.L&&(clearTimeout(this.L),this.L=void 0),super.dispose()}get kind(){return"ist"}receiveRequest(e){switch(this.state){case U.Proceeding:if(e.method===ye.INVITE){this.lastProvisionalResponse&&this.send(this.lastProvisionalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of provisional response.")});return}break;case U.Accepted:if(e.method===ye.INVITE)return;break;case U.Completed:if(e.method===ye.INVITE){if(!this.lastFinalResponse)throw new Error("Last final response undefined.");this.send(this.lastFinalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of final response.")});return}if(e.method===ye.ACK){this.stateTransition(U.Confirmed);return}break;case U.Confirmed:if(e.method===ye.INVITE||e.method===ye.ACK)return;break;case U.Terminated:if(e.method===ye.INVITE||e.method===ye.ACK)return;break;default:throw new Error(`Invalid state ${this.state}`)}const t=`INVITE server transaction received unexpected ${e.method} request while in state ${this.state}.`;this.logger.warn(t)}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);switch(this.state){case U.Proceeding:if(e>=100&&e<=199){this.lastProvisionalResponse=t,e>100&&this.startProgressExtensionTimer(),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 1xx response.")});return}if(e>=200&&e<=299){this.lastFinalResponse=t,this.stateTransition(U.Accepted),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 2xx response.")});return}if(e>=300&&e<=699){this.lastFinalResponse=t,this.stateTransition(U.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send non-2xx final response.")});return}break;case U.Accepted:if(e>=200&&e<=299){this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 2xx response.")});return}break;case U.Completed:break;case U.Confirmed:break;case U.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(r),new Error(r)}retransmitAcceptedResponse(){this.state===U.Accepted&&this.lastFinalResponse&&this.send(this.lastFinalResponse).catch(e=>{this.logTransportError(e,"Failed to send 2xx response.")})}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e)}typeToString(){return"INVITE server transaction"}stateTransition(e){const t=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case U.Proceeding:t();break;case U.Accepted:case U.Completed:this.state!==U.Proceeding&&t();break;case U.Confirmed:this.state!==U.Completed&&t();break;case U.Terminated:this.state!==U.Accepted&&this.state!==U.Completed&&this.state!==U.Confirmed&&t();break;default:t()}this.stopProgressExtensionTimer(),e===U.Accepted&&(this.L=setTimeout(()=>this.timerL(),kt.TIMER_L)),e===U.Completed&&(this.H=setTimeout(()=>this.timerH(),kt.TIMER_H)),e===U.Confirmed&&(this.I=setTimeout(()=>this.timerI(),kt.TIMER_I)),e===U.Terminated&&this.dispose(),this.setState(e)}startProgressExtensionTimer(){this.progressExtensionTimer===void 0&&(this.progressExtensionTimer=setInterval(()=>{if(this.logger.debug(`Progress extension timer expired for INVITE server transaction ${this.id}.`),!this.lastProvisionalResponse)throw new Error("Last provisional response undefined.");this.send(this.lastProvisionalResponse).catch(e=>{this.logTransportError(e,"Failed to send retransmission of provisional response.")})},kt.PROVISIONAL_RESPONSE_INTERVAL))}stopProgressExtensionTimer(){this.progressExtensionTimer!==void 0&&(clearInterval(this.progressExtensionTimer),this.progressExtensionTimer=void 0)}timerG(){}timerH(){this.logger.debug(`Timer H expired for INVITE server transaction ${this.id}.`),this.state===U.Completed&&(this.logger.warn("ACK to negative final response was never received, terminating transaction."),this.stateTransition(U.Terminated))}timerI(){this.logger.debug(`Timer I expired for INVITE server transaction ${this.id}.`),this.stateTransition(U.Terminated)}timerL(){this.logger.debug(`Timer L expired for INVITE server transaction ${this.id}.`),this.state===U.Accepted&&this.stateTransition(U.Terminated)}},op=class Sg extends sp{constructor(t,r,n,s,i){super(r,n,Sg.makeId(t),s,i),this._request=t,this.user=n,t.setViaHeader(this.id,r.protocol)}static makeId(t){if(t.method==="CANCEL"){if(!t.branch)throw new Error("Outgoing CANCEL request without a branch.");return t.branch}else return"z9hG4bK"+Math.floor(Math.random()*1e7)}get request(){return this._request}onRequestTimeout(){this.user.onRequestTimeout&&this.user.onRequestTimeout()}},er=class extends op{constructor(e,t,r){super(e,t,r,U.Trying,"sip.transaction.nict"),this.F=setTimeout(()=>this.timerF(),kt.TIMER_F),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send initial outgoing request.")})}dispose(){this.F&&(clearTimeout(this.F),this.F=void 0),this.K&&(clearTimeout(this.K),this.K=void 0),super.dispose()}get kind(){return"nict"}receiveResponse(e){const t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case U.Trying:if(t>=100&&t<=199){this.stateTransition(U.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=699){if(this.stateTransition(U.Completed),t===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case U.Proceeding:if(t>=100&&t<=199&&this.user.receiveResponse)return this.user.receiveResponse(e);if(t>=200&&t<=699){if(this.stateTransition(U.Completed),t===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case U.Completed:return;case U.Terminated:return;default:throw new Error(`Invalid state ${this.state}`)}const r=`Non-INVITE client transaction received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(U.Terminated,!0)}typeToString(){return"non-INVITE client transaction"}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case U.Trying:r();break;case U.Proceeding:this.state!==U.Trying&&r();break;case U.Completed:this.state!==U.Trying&&this.state!==U.Proceeding&&r();break;case U.Terminated:this.state!==U.Trying&&this.state!==U.Proceeding&&this.state!==U.Completed&&(t||r());break;default:r()}e===U.Completed&&(this.F&&(clearTimeout(this.F),this.F=void 0),this.K=setTimeout(()=>this.timerK(),kt.TIMER_K)),e===U.Terminated&&this.dispose(),this.setState(e)}timerF(){this.logger.debug(`Timer F expired for non-INVITE client transaction ${this.id}.`),(this.state===U.Trying||this.state===U.Proceeding)&&(this.onRequestTimeout(),this.stateTransition(U.Terminated))}timerK(){this.state===U.Completed&&this.stateTransition(U.Terminated)}},Ms=class{constructor(e,t){this.core=e,this.dialogState=t,this.core.dialogs.set(this.id,this)}static initialDialogStateForUserAgentClient(e,t){const n=t.getHeaders("record-route").reverse(),s=t.parseHeader("contact");if(!s)throw new Error("Contact undefined.");if(!(s instanceof vr))throw new Error("Contact not instance of NameAddrHeader.");const i=s.uri,o=e.cseq,a=void 0,l=e.callId,u=e.fromTag,c=t.toTag;if(!l)throw new Error("Call id undefined.");if(!u)throw new Error("From tag undefined.");if(!c)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");const d=e.from.uri,p=e.to.uri;if(!t.statusCode)throw new Error("Incoming response status code undefined.");const h=t.statusCode<200;return{id:l+u+c,early:h,callId:l,localTag:u,remoteTag:c,localSequenceNumber:o,remoteSequenceNumber:a,localURI:d,remoteURI:p,remoteTarget:i,routeSet:n,secure:!1}}static initialDialogStateForUserAgentServer(e,t,r=!1){const s=e.getHeaders("record-route"),i=e.parseHeader("contact");if(!i)throw new Error("Contact undefined.");if(!(i instanceof vr))throw new Error("Contact not instance of NameAddrHeader.");const o=i.uri,a=e.cseq,l=void 0,u=e.callId,c=t,d=e.fromTag,p=e.from.uri,h=e.to.uri;return{id:u+c+d,early:r,callId:u,localTag:c,remoteTag:d,localSequenceNumber:l,remoteSequenceNumber:a,localURI:h,remoteURI:p,remoteTarget:o,routeSet:s,secure:!1}}dispose(){this.core.dialogs.delete(this.id)}get id(){return this.dialogState.id}get early(){return this.dialogState.early}get callId(){return this.dialogState.callId}get localTag(){return this.dialogState.localTag}get remoteTag(){return this.dialogState.remoteTag}get localSequenceNumber(){return this.dialogState.localSequenceNumber}get remoteSequenceNumber(){return this.dialogState.remoteSequenceNumber}get localURI(){return this.dialogState.localURI}get remoteURI(){return this.dialogState.remoteURI}get remoteTarget(){return this.dialogState.remoteTarget}get routeSet(){return this.dialogState.routeSet}get secure(){return this.dialogState.secure}get userAgentCore(){return this.core}confirm(){this.dialogState.early=!1}receiveRequest(e){if(e.method!==ye.ACK){if(this.remoteSequenceNumber){if(e.cseq<=this.remoteSequenceNumber)throw new Error("Out of sequence in dialog request. Did you forget to call sequenceGuard()?");this.dialogState.remoteSequenceNumber=e.cseq}this.remoteSequenceNumber||(this.dialogState.remoteSequenceNumber=e.cseq)}}recomputeRouteSet(e){this.dialogState.routeSet=e.getHeaders("record-route").reverse()}createOutgoingRequestMessage(e,t){const r=this.remoteURI,n=this.remoteTag,s=this.localURI,i=this.localTag,o=this.callId;let a;t&&t.cseq?a=t.cseq:this.dialogState.localSequenceNumber?a=this.dialogState.localSequenceNumber+=1:a=this.dialogState.localSequenceNumber=1;const l=this.remoteTarget,u=this.routeSet,c=t&&t.extraHeaders,d=t&&t.body;return this.userAgentCore.makeOutgoingRequestMessage(e,l,s,r,{callId:o,cseq:a,fromTag:i,toTag:n,routeSet:u},c,d)}incrementLocalSequenceNumber(){if(!this.dialogState.localSequenceNumber)throw new Error("Local sequence number undefined.");this.dialogState.localSequenceNumber+=1}sequenceGuard(e){return e.method===ye.ACK?!0:this.remoteSequenceNumber&&e.cseq<=this.remoteSequenceNumber?(this.core.replyStateless(e,{statusCode:500}),!1):!0}},$n=class extends op{constructor(e,t,r){super(e,t,r,U.Calling,"sip.transaction.ict"),this.ackRetransmissionCache=new Map,this.B=setTimeout(()=>this.timerB(),kt.TIMER_B),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send initial outgoing request.")})}dispose(){this.B&&(clearTimeout(this.B),this.B=void 0),this.D&&(clearTimeout(this.D),this.D=void 0),this.M&&(clearTimeout(this.M),this.M=void 0),super.dispose()}get kind(){return"ict"}ackResponse(e){const t=e.toTag;if(!t)throw new Error("To tag undefined.");const r="z9hG4bK"+Math.floor(Math.random()*1e7);e.setViaHeader(r,this.transport.protocol),this.ackRetransmissionCache.set(t,e),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send ACK to 2xx response.")})}receiveResponse(e){const t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case U.Calling:if(t>=100&&t<=199){this.stateTransition(U.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=299){this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(U.Accepted),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=300&&t<=699){this.stateTransition(U.Completed),this.ack(e),this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case U.Proceeding:if(t>=100&&t<=199){this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=299){this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(U.Accepted),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=300&&t<=699){this.stateTransition(U.Completed),this.ack(e),this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case U.Accepted:if(t>=200&&t<=299){if(!this.ackRetransmissionCache.has(e.toTag)){this.ackRetransmissionCache.set(e.toTag,void 0),this.user.receiveResponse&&this.user.receiveResponse(e);return}const n=this.ackRetransmissionCache.get(e.toTag);if(n){this.send(n.toString()).catch(s=>{this.logTransportError(s,"Failed to send retransmission of ACK to 2xx response.")});return}return}break;case U.Completed:if(t>=300&&t<=699){this.ack(e);return}break;case U.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`Received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(U.Terminated,!0)}typeToString(){return"INVITE client transaction"}ack(e){const t=this.request.ruri,r=this.request.callId,n=this.request.cseq,s=this.request.getHeader("from"),i=e.getHeader("to"),o=this.request.getHeader("via"),a=this.request.getHeader("route");if(!s)throw new Error("From undefined.");if(!i)throw new Error("To undefined.");if(!o)throw new Error("Via undefined.");let l=`ACK ${t} SIP/2.0\r
|
|
42
|
+
`,{message:s}}var Fl=class extends ns{constructor(e){super(e||"Unspecified transport error.")}},ap=class{constructor(e,t,r,n,s){this._transport=e,this._user=t,this._id=r,this._state=n,this.listeners=new Array,this.logger=t.loggerFactory.getLogger(s,r),this.logger.debug(`Constructing ${this.typeToString()} with id ${this.id}.`)}dispose(){this.logger.debug(`Destroyed ${this.typeToString()} with id ${this.id}.`)}get id(){return this._id}get kind(){throw new Error("Invalid kind.")}get state(){return this._state}get transport(){return this._transport}addStateChangeListener(e,t){const r=()=>{this.removeStateChangeListener(r),e()};t?.once===!0?this.listeners.push(r):this.listeners.push(e)}notifyStateChangeListeners(){this.listeners.slice().forEach(e=>e())}removeStateChangeListener(e){this.listeners=this.listeners.filter(t=>t!==e)}logTransportError(e,t){this.logger.error(e.message),this.logger.error(`Transport error occurred in ${this.typeToString()} with id ${this.id}.`),this.logger.error(t)}send(e){return this.transport.send(e).catch(t=>{if(t instanceof Fl)throw this.onTransportError(t),t;let r;throw t&&typeof t.message=="string"?r=new Fl(t.message):r=new Fl,this.onTransportError(r),r})}setState(e){this.logger.debug(`State change to "${e}" on ${this.typeToString()} with id ${this.id}.`),this._state=e,this._user.onStateChange&&this._user.onStateChange(e),this.notifyStateChangeListeners()}typeToString(){return"UnknownType"}},lp=class extends ap{constructor(e,t,r,n,s){super(t,r,e.viaBranch,n,s),this._request=e,this.user=r}get request(){return this._request}},U;(function(e){e.Accepted="Accepted",e.Calling="Calling",e.Completed="Completed",e.Confirmed="Confirmed",e.Proceeding="Proceeding",e.Terminated="Terminated",e.Trying="Trying"})(U=U||(U={}));var Xt=class extends lp{constructor(e,t,r){super(e,t,r,U.Proceeding,"sip.transaction.ist")}dispose(){this.stopProgressExtensionTimer(),this.H&&(clearTimeout(this.H),this.H=void 0),this.I&&(clearTimeout(this.I),this.I=void 0),this.L&&(clearTimeout(this.L),this.L=void 0),super.dispose()}get kind(){return"ist"}receiveRequest(e){switch(this.state){case U.Proceeding:if(e.method===be.INVITE){this.lastProvisionalResponse&&this.send(this.lastProvisionalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of provisional response.")});return}break;case U.Accepted:if(e.method===be.INVITE)return;break;case U.Completed:if(e.method===be.INVITE){if(!this.lastFinalResponse)throw new Error("Last final response undefined.");this.send(this.lastFinalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of final response.")});return}if(e.method===be.ACK){this.stateTransition(U.Confirmed);return}break;case U.Confirmed:if(e.method===be.INVITE||e.method===be.ACK)return;break;case U.Terminated:if(e.method===be.INVITE||e.method===be.ACK)return;break;default:throw new Error(`Invalid state ${this.state}`)}const t=`INVITE server transaction received unexpected ${e.method} request while in state ${this.state}.`;this.logger.warn(t)}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);switch(this.state){case U.Proceeding:if(e>=100&&e<=199){this.lastProvisionalResponse=t,e>100&&this.startProgressExtensionTimer(),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 1xx response.")});return}if(e>=200&&e<=299){this.lastFinalResponse=t,this.stateTransition(U.Accepted),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 2xx response.")});return}if(e>=300&&e<=699){this.lastFinalResponse=t,this.stateTransition(U.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send non-2xx final response.")});return}break;case U.Accepted:if(e>=200&&e<=299){this.send(t).catch(n=>{this.logTransportError(n,"Failed to send 2xx response.")});return}break;case U.Completed:break;case U.Confirmed:break;case U.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(r),new Error(r)}retransmitAcceptedResponse(){this.state===U.Accepted&&this.lastFinalResponse&&this.send(this.lastFinalResponse).catch(e=>{this.logTransportError(e,"Failed to send 2xx response.")})}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e)}typeToString(){return"INVITE server transaction"}stateTransition(e){const t=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case U.Proceeding:t();break;case U.Accepted:case U.Completed:this.state!==U.Proceeding&&t();break;case U.Confirmed:this.state!==U.Completed&&t();break;case U.Terminated:this.state!==U.Accepted&&this.state!==U.Completed&&this.state!==U.Confirmed&&t();break;default:t()}this.stopProgressExtensionTimer(),e===U.Accepted&&(this.L=setTimeout(()=>this.timerL(),kt.TIMER_L)),e===U.Completed&&(this.H=setTimeout(()=>this.timerH(),kt.TIMER_H)),e===U.Confirmed&&(this.I=setTimeout(()=>this.timerI(),kt.TIMER_I)),e===U.Terminated&&this.dispose(),this.setState(e)}startProgressExtensionTimer(){this.progressExtensionTimer===void 0&&(this.progressExtensionTimer=setInterval(()=>{if(this.logger.debug(`Progress extension timer expired for INVITE server transaction ${this.id}.`),!this.lastProvisionalResponse)throw new Error("Last provisional response undefined.");this.send(this.lastProvisionalResponse).catch(e=>{this.logTransportError(e,"Failed to send retransmission of provisional response.")})},kt.PROVISIONAL_RESPONSE_INTERVAL))}stopProgressExtensionTimer(){this.progressExtensionTimer!==void 0&&(clearInterval(this.progressExtensionTimer),this.progressExtensionTimer=void 0)}timerG(){}timerH(){this.logger.debug(`Timer H expired for INVITE server transaction ${this.id}.`),this.state===U.Completed&&(this.logger.warn("ACK to negative final response was never received, terminating transaction."),this.stateTransition(U.Terminated))}timerI(){this.logger.debug(`Timer I expired for INVITE server transaction ${this.id}.`),this.stateTransition(U.Terminated)}timerL(){this.logger.debug(`Timer L expired for INVITE server transaction ${this.id}.`),this.state===U.Accepted&&this.stateTransition(U.Terminated)}},cp=class xg extends ap{constructor(t,r,n,s,i){super(r,n,xg.makeId(t),s,i),this._request=t,this.user=n,t.setViaHeader(this.id,r.protocol)}static makeId(t){if(t.method==="CANCEL"){if(!t.branch)throw new Error("Outgoing CANCEL request without a branch.");return t.branch}else return"z9hG4bK"+Math.floor(Math.random()*1e7)}get request(){return this._request}onRequestTimeout(){this.user.onRequestTimeout&&this.user.onRequestTimeout()}},rr=class extends cp{constructor(e,t,r){super(e,t,r,U.Trying,"sip.transaction.nict"),this.F=setTimeout(()=>this.timerF(),kt.TIMER_F),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send initial outgoing request.")})}dispose(){this.F&&(clearTimeout(this.F),this.F=void 0),this.K&&(clearTimeout(this.K),this.K=void 0),super.dispose()}get kind(){return"nict"}receiveResponse(e){const t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case U.Trying:if(t>=100&&t<=199){this.stateTransition(U.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=699){if(this.stateTransition(U.Completed),t===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case U.Proceeding:if(t>=100&&t<=199&&this.user.receiveResponse)return this.user.receiveResponse(e);if(t>=200&&t<=699){if(this.stateTransition(U.Completed),t===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case U.Completed:return;case U.Terminated:return;default:throw new Error(`Invalid state ${this.state}`)}const r=`Non-INVITE client transaction received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(U.Terminated,!0)}typeToString(){return"non-INVITE client transaction"}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case U.Trying:r();break;case U.Proceeding:this.state!==U.Trying&&r();break;case U.Completed:this.state!==U.Trying&&this.state!==U.Proceeding&&r();break;case U.Terminated:this.state!==U.Trying&&this.state!==U.Proceeding&&this.state!==U.Completed&&(t||r());break;default:r()}e===U.Completed&&(this.F&&(clearTimeout(this.F),this.F=void 0),this.K=setTimeout(()=>this.timerK(),kt.TIMER_K)),e===U.Terminated&&this.dispose(),this.setState(e)}timerF(){this.logger.debug(`Timer F expired for non-INVITE client transaction ${this.id}.`),(this.state===U.Trying||this.state===U.Proceeding)&&(this.onRequestTimeout(),this.stateTransition(U.Terminated))}timerK(){this.state===U.Completed&&this.stateTransition(U.Terminated)}},qs=class{constructor(e,t){this.core=e,this.dialogState=t,this.core.dialogs.set(this.id,this)}static initialDialogStateForUserAgentClient(e,t){const n=t.getHeaders("record-route").reverse(),s=t.parseHeader("contact");if(!s)throw new Error("Contact undefined.");if(!(s instanceof mr))throw new Error("Contact not instance of NameAddrHeader.");const i=s.uri,o=e.cseq,a=void 0,l=e.callId,u=e.fromTag,c=t.toTag;if(!l)throw new Error("Call id undefined.");if(!u)throw new Error("From tag undefined.");if(!c)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");const d=e.from.uri,p=e.to.uri;if(!t.statusCode)throw new Error("Incoming response status code undefined.");const h=t.statusCode<200;return{id:l+u+c,early:h,callId:l,localTag:u,remoteTag:c,localSequenceNumber:o,remoteSequenceNumber:a,localURI:d,remoteURI:p,remoteTarget:i,routeSet:n,secure:!1}}static initialDialogStateForUserAgentServer(e,t,r=!1){const s=e.getHeaders("record-route"),i=e.parseHeader("contact");if(!i)throw new Error("Contact undefined.");if(!(i instanceof mr))throw new Error("Contact not instance of NameAddrHeader.");const o=i.uri,a=e.cseq,l=void 0,u=e.callId,c=t,d=e.fromTag,p=e.from.uri,h=e.to.uri;return{id:u+c+d,early:r,callId:u,localTag:c,remoteTag:d,localSequenceNumber:l,remoteSequenceNumber:a,localURI:h,remoteURI:p,remoteTarget:o,routeSet:s,secure:!1}}dispose(){this.core.dialogs.delete(this.id)}get id(){return this.dialogState.id}get early(){return this.dialogState.early}get callId(){return this.dialogState.callId}get localTag(){return this.dialogState.localTag}get remoteTag(){return this.dialogState.remoteTag}get localSequenceNumber(){return this.dialogState.localSequenceNumber}get remoteSequenceNumber(){return this.dialogState.remoteSequenceNumber}get localURI(){return this.dialogState.localURI}get remoteURI(){return this.dialogState.remoteURI}get remoteTarget(){return this.dialogState.remoteTarget}get routeSet(){return this.dialogState.routeSet}get secure(){return this.dialogState.secure}get userAgentCore(){return this.core}confirm(){this.dialogState.early=!1}receiveRequest(e){if(e.method!==be.ACK){if(this.remoteSequenceNumber){if(e.cseq<=this.remoteSequenceNumber)throw new Error("Out of sequence in dialog request. Did you forget to call sequenceGuard()?");this.dialogState.remoteSequenceNumber=e.cseq}this.remoteSequenceNumber||(this.dialogState.remoteSequenceNumber=e.cseq)}}recomputeRouteSet(e){this.dialogState.routeSet=e.getHeaders("record-route").reverse()}createOutgoingRequestMessage(e,t){const r=this.remoteURI,n=this.remoteTag,s=this.localURI,i=this.localTag,o=this.callId;let a;t&&t.cseq?a=t.cseq:this.dialogState.localSequenceNumber?a=this.dialogState.localSequenceNumber+=1:a=this.dialogState.localSequenceNumber=1;const l=this.remoteTarget,u=this.routeSet,c=t&&t.extraHeaders,d=t&&t.body;return this.userAgentCore.makeOutgoingRequestMessage(e,l,s,r,{callId:o,cseq:a,fromTag:i,toTag:n,routeSet:u},c,d)}incrementLocalSequenceNumber(){if(!this.dialogState.localSequenceNumber)throw new Error("Local sequence number undefined.");this.dialogState.localSequenceNumber+=1}sequenceGuard(e){return e.method===be.ACK?!0:this.remoteSequenceNumber&&e.cseq<=this.remoteSequenceNumber?(this.core.replyStateless(e,{statusCode:500}),!1):!0}},Dn=class extends cp{constructor(e,t,r){super(e,t,r,U.Calling,"sip.transaction.ict"),this.ackRetransmissionCache=new Map,this.B=setTimeout(()=>this.timerB(),kt.TIMER_B),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send initial outgoing request.")})}dispose(){this.B&&(clearTimeout(this.B),this.B=void 0),this.D&&(clearTimeout(this.D),this.D=void 0),this.M&&(clearTimeout(this.M),this.M=void 0),super.dispose()}get kind(){return"ict"}ackResponse(e){const t=e.toTag;if(!t)throw new Error("To tag undefined.");const r="z9hG4bK"+Math.floor(Math.random()*1e7);e.setViaHeader(r,this.transport.protocol),this.ackRetransmissionCache.set(t,e),this.send(e.toString()).catch(n=>{this.logTransportError(n,"Failed to send ACK to 2xx response.")})}receiveResponse(e){const t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case U.Calling:if(t>=100&&t<=199){this.stateTransition(U.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=299){this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(U.Accepted),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=300&&t<=699){this.stateTransition(U.Completed),this.ack(e),this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case U.Proceeding:if(t>=100&&t<=199){this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=200&&t<=299){this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(U.Accepted),this.user.receiveResponse&&this.user.receiveResponse(e);return}if(t>=300&&t<=699){this.stateTransition(U.Completed),this.ack(e),this.user.receiveResponse&&this.user.receiveResponse(e);return}break;case U.Accepted:if(t>=200&&t<=299){if(!this.ackRetransmissionCache.has(e.toTag)){this.ackRetransmissionCache.set(e.toTag,void 0),this.user.receiveResponse&&this.user.receiveResponse(e);return}const n=this.ackRetransmissionCache.get(e.toTag);if(n){this.send(n.toString()).catch(s=>{this.logTransportError(s,"Failed to send retransmission of ACK to 2xx response.")});return}return}break;case U.Completed:if(t>=300&&t<=699){this.ack(e);return}break;case U.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`Received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(U.Terminated,!0)}typeToString(){return"INVITE client transaction"}ack(e){const t=this.request.ruri,r=this.request.callId,n=this.request.cseq,s=this.request.getHeader("from"),i=e.getHeader("to"),o=this.request.getHeader("via"),a=this.request.getHeader("route");if(!s)throw new Error("From undefined.");if(!i)throw new Error("To undefined.");if(!o)throw new Error("Via undefined.");let l=`ACK ${t} SIP/2.0\r
|
|
43
43
|
`;a&&(l+=`Route: ${a}\r
|
|
44
44
|
`),l+=`Via: ${o}\r
|
|
45
45
|
`,l+=`To: ${i}\r
|
|
@@ -49,31 +49,31 @@
|
|
|
49
49
|
`,l+=`Max-Forwards: 70\r
|
|
50
50
|
`,l+=`Content-Length: 0\r
|
|
51
51
|
\r
|
|
52
|
-
`,this.send(l).catch(u=>{this.logTransportError(u,"Failed to send ACK to non-2xx response.")})}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case U.Calling:r();break;case U.Proceeding:this.state!==U.Calling&&r();break;case U.Accepted:case U.Completed:this.state!==U.Calling&&this.state!==U.Proceeding&&r();break;case U.Terminated:this.state!==U.Calling&&this.state!==U.Accepted&&this.state!==U.Completed&&(t||r());break;default:r()}this.B&&(clearTimeout(this.B),this.B=void 0),U.Proceeding,e===U.Completed&&(this.D=setTimeout(()=>this.timerD(),kt.TIMER_D)),e===U.Accepted&&(this.M=setTimeout(()=>this.timerM(),kt.TIMER_M)),e===U.Terminated&&this.dispose(),this.setState(e)}timerA(){}timerB(){this.logger.debug(`Timer B expired for INVITE client transaction ${this.id}.`),this.state===U.Calling&&(this.onRequestTimeout(),this.stateTransition(U.Terminated))}timerD(){this.logger.debug(`Timer D expired for INVITE client transaction ${this.id}.`),this.state===U.Completed&&this.stateTransition(U.Terminated)}timerM(){this.logger.debug(`Timer M expired for INVITE client transaction ${this.id}.`),this.state===U.Accepted&&this.stateTransition(U.Terminated)}},tr=class Qc{constructor(t,r,n,s){this.transactionConstructor=t,this.core=r,this.message=n,this.delegate=s,this.challenged=!1,this.stale=!1,this.logger=this.loggerFactory.getLogger("sip.user-agent-client"),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}cancel(t,r={}){if(!this.transaction)throw new Error("Transaction undefined.");if(!this.message.to)throw new Error("To undefined.");if(!this.message.from)throw new Error("From undefined.");const n=this.core.makeOutgoingRequestMessage(ye.CANCEL,this.message.ruri,this.message.from.uri,this.message.to.uri,{toTag:this.message.toTag,fromTag:this.message.fromTag,callId:this.message.callId,cseq:this.message.cseq},r.extraHeaders);return n.branch=this.message.branch,this.message.headers.Route&&(n.headers.Route=this.message.headers.Route),t&&n.setHeader("Reason",t),this.transaction.state===U.Proceeding?new Qc(er,this.core,n):this.transaction.addStateChangeListener(()=>{this.transaction&&this.transaction.state===U.Proceeding&&new Qc(er,this.core,n)},{once:!0}),n}authenticationGuard(t,r){const n=t.statusCode;if(!n)throw new Error("Response status code undefined.");if(n!==401&&n!==407)return!0;let s,i;if(n===401?(s=t.parseHeader("www-authenticate"),i="authorization"):(s=t.parseHeader("proxy-authenticate"),i="proxy-authorization"),!s)return this.logger.warn(n+" with wrong or missing challenge, cannot authenticate"),!0;if(this.challenged&&(this.stale||s.stale!==!0))return this.logger.warn(n+" apparently in authentication loop, cannot authenticate"),!0;if(!this.credentials&&(this.credentials=this.core.configuration.authenticationFactory(),!this.credentials))return this.logger.warn("Unable to obtain credentials, cannot authenticate"),!0;if(!this.credentials.authenticate(this.message,s))return!0;this.challenged=!0,s.stale&&(this.stale=!0);let o=this.message.cseq+=1;return r&&r.localSequenceNumber&&(r.incrementLocalSequenceNumber(),o=this.message.cseq=r.localSequenceNumber),this.message.setHeader("cseq",o+" "+this.message.method),this.message.setHeader(i,this.credentials.toString()),this.init(),!1}onRequestTimeout(){this.logger.warn("User agent client request timed out. Generating internal 408 Request Timeout.");const t=new En;t.statusCode=408,t.reasonPhrase="Request Timeout",this.receiveResponse(t)}onTransportError(t){this.logger.error(t.message),this.logger.error("User agent client request transport error. Generating internal 503 Service Unavailable.");const r=new En;r.statusCode=503,r.reasonPhrase="Service Unavailable",this.receiveResponse(r)}receiveResponse(t){if(!this.authenticationGuard(t))return;const r=t.statusCode?t.statusCode.toString():"";if(!r)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(r):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:t});break;case/^1[0-9]{2}$/.test(r):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:t});break;case/^2[0-9]{2}$/.test(r):this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:t});break;case/^3[0-9]{2}$/.test(r):this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:t});break;case/^[4-6][0-9]{2}$/.test(r):this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:t});break;default:throw new Error(`Invalid status code ${r}`)}}init(){const t={loggerFactory:this.loggerFactory,onRequestTimeout:()=>this.onRequestTimeout(),onStateChange:s=>{s===U.Terminated&&(this.core.userAgentClients.delete(n),r===this._transaction&&this.dispose())},onTransportError:s=>this.onTransportError(s),receiveResponse:s=>this.receiveResponse(s)},r=new this.transactionConstructor(this.message,this.core.transport,t);this._transaction=r;const n=r.id+r.request.method;this.core.userAgentClients.set(n,this)}},ew=class extends tr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ye.BYE,r);super(er,e.userAgentCore,n,t),e.dispose()}},rr=class extends ip{constructor(e,t,r){super(e,t,r,U.Trying,"sip.transaction.nist")}dispose(){this.J&&(clearTimeout(this.J),this.J=void 0),super.dispose()}get kind(){return"nist"}receiveRequest(e){switch(this.state){case U.Trying:break;case U.Proceeding:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(t=>{this.logTransportError(t,"Failed to send retransmission of provisional response.")});break;case U.Completed:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(t=>{this.logTransportError(t,"Failed to send retransmission of final response.")});break;case U.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);if(e>100&&e<=199)throw new Error("Provisional response other than 100 not allowed.");switch(this.state){case U.Trying:if(this.lastResponse=t,e>=100&&e<200){this.stateTransition(U.Proceeding),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send provisional response.")});return}if(e>=200&&e<=699){this.stateTransition(U.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send final response.")});return}break;case U.Proceeding:if(this.lastResponse=t,e>=200&&e<=699){this.stateTransition(U.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send final response.")});return}break;case U.Completed:return;case U.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`Non-INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(r),new Error(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(U.Terminated,!0)}typeToString(){return"non-INVITE server transaction"}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case U.Trying:r();break;case U.Proceeding:this.state!==U.Trying&&r();break;case U.Completed:this.state!==U.Trying&&this.state!==U.Proceeding&&r();break;case U.Terminated:this.state!==U.Proceeding&&this.state!==U.Completed&&(t||r());break;default:r()}e===U.Completed&&(this.J=setTimeout(()=>this.timerJ(),kt.TIMER_J)),e===U.Terminated&&this.dispose(),this.setState(e)}timerJ(){this.logger.debug(`Timer J expired for NON-INVITE server transaction ${this.id}.`),this.state===U.Completed&&this.stateTransition(U.Terminated)}},Nr=class{constructor(e,t,r,n){this.transactionConstructor=e,this.core=t,this.message=r,this.delegate=n,this.logger=this.loggerFactory.getLogger("sip.user-agent-server"),this.toTag=r.toTag?r.toTag:Oo(),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}accept(e={statusCode:200}){if(!this.acceptable)throw new An(`${this.message.method} not acceptable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<200||t>299)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}progress(e={statusCode:180}){if(!this.progressable)throw new An(`${this.message.method} not progressable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<101||t>199)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}redirect(e,t={statusCode:302}){if(!this.redirectable)throw new An(`${this.message.method} not redirectable in state ${this.transaction.state}.`);const r=t.statusCode;if(r<300||r>399)throw new TypeError(`Invalid statusCode: ${r}`);const n=new Array;return e.forEach(s=>n.push(`Contact: ${s.toString()}`)),t.extraHeaders=(t.extraHeaders||[]).concat(n),this.reply(t)}reject(e={statusCode:480}){if(!this.rejectable)throw new An(`${this.message.method} not rejectable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<400||t>699)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}trying(e){if(!this.tryingable)throw new An(`${this.message.method} not tryingable in state ${this.transaction.state}.`);return this.reply({statusCode:100})}receiveCancel(e){this.delegate&&this.delegate.onCancel&&this.delegate.onCancel(e)}get acceptable(){if(this.transaction instanceof Zt)return this.transaction.state===U.Proceeding||this.transaction.state===U.Accepted;if(this.transaction instanceof rr)return this.transaction.state===U.Trying||this.transaction.state===U.Proceeding;throw new Error("Unknown transaction type.")}get progressable(){if(this.transaction instanceof Zt)return this.transaction.state===U.Proceeding;if(this.transaction instanceof rr)return!1;throw new Error("Unknown transaction type.")}get redirectable(){if(this.transaction instanceof Zt)return this.transaction.state===U.Proceeding;if(this.transaction instanceof rr)return this.transaction.state===U.Trying||this.transaction.state===U.Proceeding;throw new Error("Unknown transaction type.")}get rejectable(){if(this.transaction instanceof Zt)return this.transaction.state===U.Proceeding;if(this.transaction instanceof rr)return this.transaction.state===U.Trying||this.transaction.state===U.Proceeding;throw new Error("Unknown transaction type.")}get tryingable(){if(this.transaction instanceof Zt)return this.transaction.state===U.Proceeding;if(this.transaction instanceof rr)return this.transaction.state===U.Trying;throw new Error("Unknown transaction type.")}reply(e){!e.toTag&&e.statusCode!==100&&(e.toTag=this.toTag),e.userAgent=e.userAgent||this.core.configuration.userAgentHeaderFieldValue,e.supported=e.supported||this.core.configuration.supportedOptionTagsResponse;const t=np(this.message,e);return this.transaction.receiveResponse(e.statusCode,t.message),t}init(){const e={loggerFactory:this.loggerFactory,onStateChange:n=>{n===U.Terminated&&(this.core.userAgentServers.delete(r),this.dispose())},onTransportError:n=>{this.logger.error(n.message),this.delegate&&this.delegate.onTransportError?this.delegate.onTransportError(n):this.logger.error("User agent server response transport error.")}},t=new this.transactionConstructor(this.message,this.core.transport,e);this._transaction=t;const r=t.id;this.core.userAgentServers.set(t.id,this)}},tw=class extends Nr{constructor(e,t,r){super(rr,e.userAgentCore,t,r)}},rw=class extends tr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ye.INFO,r);super(er,e.userAgentCore,n,t)}},nw=class extends Nr{constructor(e,t,r){super(rr,e.userAgentCore,t,r)}},ap=class extends tr{constructor(e,t,r){super(er,e,t,r)}},lp=class extends Nr{constructor(e,t,r){super(rr,e,t,r)}},sw=class extends tr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ye.NOTIFY,r);super(er,e.userAgentCore,n,t)}};function iw(e){return e.userAgentCore!==void 0}var qo=class extends Nr{constructor(e,t,r){const n=iw(e)?e.userAgentCore:e;super(rr,n,t,r)}},ow=class extends tr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ye.PRACK,r);super(er,e.userAgentCore,n,t),e.signalingStateTransition(n)}},aw=class extends Nr{constructor(e,t,r){super(rr,e.userAgentCore,t,r),e.signalingStateTransition(t),this.dialog=e}accept(e={statusCode:200}){return e.body&&this.dialog.signalingStateTransition(e.body),super.accept(e)}},lw=class extends tr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ye.INVITE,r);super($n,e.userAgentCore,n,t),this.delegate=t,e.signalingStateTransition(n),e.reinviteUserAgentClient=this,this.dialog=e}receiveResponse(e){if(!this.authenticationGuard(e,this.dialog))return;const t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});break;case/^1[0-9]{2}$/.test(t):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:this.dialog,prack:r=>{throw new Error("Unimplemented.")}});break;case/^2[0-9]{2}$/.test(t):this.dialog.signalingStateTransition(e),this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:e,session:this.dialog,ack:r=>this.dialog.ack(r)});break;case/^3[0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});break;case/^[4-6][0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});break;default:throw new Error(`Invalid status code ${t}`)}}},cw=class extends Nr{constructor(e,t,r){super(Zt,e.userAgentCore,t,r),e.reinviteUserAgentServer=this,this.dialog=e}accept(e={statusCode:200}){e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(this.dialog.routeSet.map(s=>`Record-Route: ${s}`));const t=super.accept(e),r=this.dialog,n=Object.assign(Object.assign({},t),{session:r});return e.body&&this.dialog.signalingStateTransition(e.body),this.dialog.reConfirm(),n}progress(e={statusCode:180}){const t=super.progress(e),r=this.dialog,n=Object.assign(Object.assign({},t),{session:r});return e.body&&this.dialog.signalingStateTransition(e.body),n}redirect(e,t={statusCode:302}){throw this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,new Error("Unimplemented.")}reject(e={statusCode:488}){return this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,super.reject(e)}},uw=class extends tr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ye.REFER,r);super(er,e.userAgentCore,n,t)}};function dw(e){return e.userAgentCore!==void 0}var cp=class extends Nr{constructor(e,t,r){const n=dw(e)?e.userAgentCore:e;super(rr,n,t,r)}},Bo=class extends Ms{constructor(e,t,r,n){super(t,r),this.initialTransaction=e,this._signalingState=ve.Initial,this.ackWait=!1,this.ackProcessing=!1,this.delegate=n,e instanceof Zt&&(this.ackWait=!0),this.early||this.start2xxRetransmissionTimer(),this.signalingStateTransition(e.request),this.logger=t.loggerFactory.getLogger("sip.invite-dialog"),this.logger.log(`INVITE dialog ${this.id} constructed`)}dispose(){super.dispose(),this._signalingState=ve.Closed,this._offer=void 0,this._answer=void 0,this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.logger.log(`INVITE dialog ${this.id} destroyed`)}get sessionState(){return this.early?mr.Early:this.ackWait?mr.AckWait:this._signalingState===ve.Closed?mr.Terminated:mr.Confirmed}get signalingState(){return this._signalingState}get offer(){return this._offer}get answer(){return this._answer}confirm(){this.early&&this.start2xxRetransmissionTimer(),super.confirm()}reConfirm(){this.reinviteUserAgentServer&&this.startReInvite2xxRetransmissionTimer()}ack(e={}){this.logger.log(`INVITE dialog ${this.id} sending ACK request`);let t;if(this.reinviteUserAgentClient){if(!(this.reinviteUserAgentClient.transaction instanceof $n))throw new Error("Transaction not instance of InviteClientTransaction.");t=this.reinviteUserAgentClient.transaction,this.reinviteUserAgentClient=void 0}else{if(!(this.initialTransaction instanceof $n))throw new Error("Initial transaction not instance of InviteClientTransaction.");t=this.initialTransaction}const r=this.createOutgoingRequestMessage(ye.ACK,{cseq:t.request.cseq,extraHeaders:e.extraHeaders,body:e.body});return t.ackResponse(r),this.signalingStateTransition(r),{message:r}}bye(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending BYE request`),this.initialTransaction instanceof Zt){if(this.early)throw new Error("UAS MUST NOT send a BYE on early dialogs.");if(this.ackWait&&this.initialTransaction.state!==U.Terminated)throw new Error("UAS MUST NOT send a BYE on a confirmed dialog until it has received an ACK for its 2xx response or until the server transaction times out.")}return new ew(this,e,t)}info(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending INFO request`),this.early)throw new Error("Dialog not confirmed.");return new rw(this,e,t)}invite(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending INVITE request`),this.early)throw new Error("Dialog not confirmed.");if(this.reinviteUserAgentClient)throw new Error("There is an ongoing re-INVITE client transaction.");if(this.reinviteUserAgentServer)throw new Error("There is an ongoing re-INVITE server transaction.");return new lw(this,e,t)}message(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending MESSAGE request`),this.early)throw new Error("Dialog not confirmed.");const r=this.createOutgoingRequestMessage(ye.MESSAGE,t);return new ap(this.core,r,e)}notify(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending NOTIFY request`),this.early)throw new Error("Dialog not confirmed.");return new sw(this,e,t)}prack(e,t){return this.logger.log(`INVITE dialog ${this.id} sending PRACK request`),new ow(this,e,t)}refer(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending REFER request`),this.early)throw new Error("Dialog not confirmed.");return new uw(this,e,t)}receiveRequest(e){if(this.logger.log(`INVITE dialog ${this.id} received ${e.method} request`),e.method===ye.ACK){if(this.ackWait){if(this.initialTransaction instanceof $n){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}if(this.initialTransaction.request.cseq!==e.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}this.ackWait=!1}else{if(!this.reinviteUserAgentServer){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}if(this.reinviteUserAgentServer.transaction.request.cseq!==e.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}this.reinviteUserAgentServer=void 0}if(this.signalingStateTransition(e),this.delegate&&this.delegate.onAck){const t=this.delegate.onAck({message:e});t instanceof Promise&&(this.ackProcessing=!0,t.then(()=>this.ackProcessing=!1).catch(()=>this.ackProcessing=!1))}return}if(!this.sequenceGuard(e)){this.logger.log(`INVITE dialog ${this.id} rejected out of order ${e.method} request.`);return}if(super.receiveRequest(e),e.method===ye.INVITE){const t=()=>{const n=this.ackWait?"waiting for initial ACK":"processing initial ACK";this.logger.warn(`INVITE dialog ${this.id} received re-INVITE while ${n}`);let s="RFC 5407 suggests the following to avoid this race condition... ";s+=" Note: Implementation issues are outside the scope of this document,",s+=" but the following tip is provided for avoiding race conditions of",s+=" this type. The caller can delay sending re-INVITE F6 for some period",s+=" of time (2 seconds, perhaps), after which the caller can reasonably",s+=" assume that its ACK has been received. Implementors can decouple the",s+=" actions of the user (e.g., pressing the hold button) from the actions",s+=" of the protocol (the sending of re-INVITE F6), so that the UA can",s+=" behave like this. In this case, it is the implementor's choice as to",s+=" how long to wait. In most cases, such an implementation may be",s+=" useful to prevent the type of race condition shown in this section.",s+=" This document expresses no preference about whether or not they",s+=" should wait for an ACK to be delivered. After considering the impact",s+=" on user experience, implementors should decide whether or not to wait",s+=" for a while, because the user experience depends on the",s+=" implementation and has no direct bearing on protocol behavior.",this.logger.warn(s)},r=[`Retry-After: ${Math.floor(Math.random()*10)+1}`];if(this.ackProcessing){this.core.replyStateless(e,{statusCode:500,extraHeaders:r}),t();return}if(this.ackWait&&this.signalingState!==ve.Stable){this.core.replyStateless(e,{statusCode:500,extraHeaders:r}),t();return}if(this.reinviteUserAgentServer){this.core.replyStateless(e,{statusCode:500,extraHeaders:r});return}if(this.reinviteUserAgentClient){this.core.replyStateless(e,{statusCode:491});return}}if(e.method===ye.INVITE){const t=e.parseHeader("contact");if(!t)throw new Error("Contact undefined.");if(!(t instanceof vr))throw new Error("Contact not instance of NameAddrHeader.");this.dialogState.remoteTarget=t.uri}switch(e.method){case ye.BYE:{const t=new tw(this,e);this.delegate&&this.delegate.onBye?this.delegate.onBye(t):t.accept(),this.dispose()}break;case ye.INFO:{const t=new nw(this,e);this.delegate&&this.delegate.onInfo?this.delegate.onInfo(t):t.reject({statusCode:469,extraHeaders:["Recv-Info:"]})}break;case ye.INVITE:{const t=new cw(this,e);this.signalingStateTransition(e),this.delegate&&this.delegate.onInvite?this.delegate.onInvite(t):t.reject({statusCode:488})}break;case ye.MESSAGE:{const t=new lp(this.core,e);this.delegate&&this.delegate.onMessage?this.delegate.onMessage(t):t.accept()}break;case ye.NOTIFY:{const t=new qo(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(t):t.accept()}break;case ye.PRACK:{const t=new aw(this,e);this.delegate&&this.delegate.onPrack?this.delegate.onPrack(t):t.accept()}break;case ye.REFER:{const t=new cp(this,e);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(t):t.reject()}break;default:this.logger.log(`INVITE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501});break}}reliableSequenceGuard(e){const t=e.statusCode;if(!t)throw new Error("Status code undefined");if(t>100&&t<200){const r=e.getHeader("require"),n=e.getHeader("rseq"),s=r&&r.includes("100rel")&&n?Number(n):void 0;if(s){if(this.rseq&&this.rseq+1!==s)return!1;this.rseq=this.rseq?this.rseq+1:s}}return!0}signalingStateRollback(){(this._signalingState===ve.HaveLocalOffer||this.signalingState===ve.HaveRemoteOffer)&&this._rollbackOffer&&this._rollbackAnswer&&(this._signalingState=ve.Stable,this._offer=this._rollbackOffer,this._answer=this._rollbackAnswer)}signalingStateTransition(e){const t=Ti(e);if(!(!t||t.contentDisposition!=="session")){if(this._signalingState===ve.Stable&&(this._rollbackOffer=this._offer,this._rollbackAnswer=this._answer),e instanceof Os)switch(this._signalingState){case ve.Initial:case ve.Stable:this._signalingState=ve.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case ve.HaveLocalOffer:this._signalingState=ve.Stable,this._answer=t;break;case ve.HaveRemoteOffer:break;case ve.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof En)switch(this._signalingState){case ve.Initial:case ve.Stable:this._signalingState=ve.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case ve.HaveLocalOffer:this._signalingState=ve.Stable,this._answer=t;break;case ve.HaveRemoteOffer:break;case ve.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof Ol)switch(this._signalingState){case ve.Initial:case ve.Stable:this._signalingState=ve.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case ve.HaveLocalOffer:break;case ve.HaveRemoteOffer:this._signalingState=ve.Stable,this._answer=t;break;case ve.Closed:break;default:throw new Error("Unexpected signaling state.")}if(ep(e))switch(this._signalingState){case ve.Initial:case ve.Stable:this._signalingState=ve.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case ve.HaveLocalOffer:break;case ve.HaveRemoteOffer:this._signalingState=ve.Stable,this._answer=t;break;case ve.Closed:break;default:throw new Error("Unexpected signaling state.")}}}start2xxRetransmissionTimer(){if(this.initialTransaction instanceof Zt){const e=this.initialTransaction;let t=kt.T1;const r=()=>{if(!this.ackWait){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(t*2,kt.T2),this.invite2xxTimer=setTimeout(r,t)};this.invite2xxTimer=setTimeout(r,t);const n=()=>{e.state===U.Terminated&&(e.removeStateChangeListener(n),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.ackWait&&(this.delegate&&this.delegate.onAckTimeout?this.delegate.onAckTimeout():this.bye()))};e.addStateChangeListener(n)}}startReInvite2xxRetransmissionTimer(){if(this.reinviteUserAgentServer&&this.reinviteUserAgentServer.transaction instanceof Zt){const e=this.reinviteUserAgentServer.transaction;let t=kt.T1;const r=()=>{if(!this.reinviteUserAgentServer){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(t*2,kt.T2),this.invite2xxTimer=setTimeout(r,t)};this.invite2xxTimer=setTimeout(r,t);const n=()=>{e.state===U.Terminated&&(e.removeStateChangeListener(n),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.reinviteUserAgentServer)};e.addStateChangeListener(n)}}},fw=class extends tr{constructor(e,t,r){super($n,e,t,r),this.confirmedDialogAcks=new Map,this.confirmedDialogs=new Map,this.earlyDialogs=new Map,this.delegate=r}dispose(){this.earlyDialogs.forEach(e=>e.dispose()),this.earlyDialogs.clear(),super.dispose()}onTransportError(e){if(this.transaction.state===U.Calling)return super.onTransportError(e);this.logger.error(e.message),this.logger.error("User agent client request transport error while sending ACK.")}receiveResponse(e){if(!this.authenticationGuard(e))return;const t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});return;case/^1[0-9]{2}$/.test(t):{if(!e.toTag){this.logger.warn("Non-100 1xx INVITE response received without a to tag, dropping.");return}if(!e.parseHeader("contact")){this.logger.error("Non-100 1xx INVITE response received without a Contact header field, dropping.");return}const r=Ms.initialDialogStateForUserAgentClient(this.message,e);let n=this.earlyDialogs.get(r.id);if(!n){const i=this.transaction;if(!(i instanceof $n))throw new Error("Transaction not instance of InviteClientTransaction.");n=new Bo(i,this.core,r),this.earlyDialogs.set(n.id,n)}if(!n.reliableSequenceGuard(e)){this.logger.warn("1xx INVITE reliable response received out of order or is a retransmission, dropping.");return}(n.signalingState===ve.Initial||n.signalingState===ve.HaveLocalOffer)&&n.signalingStateTransition(e);const s=n;this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:s,prack:i=>s.prack(void 0,i)})}return;case/^2[0-9]{2}$/.test(t):{if(!e.toTag){this.logger.error("2xx INVITE response received without a to tag, dropping.");return}if(!e.parseHeader("contact")){this.logger.error("2xx INVITE response received without a Contact header field, dropping.");return}const r=Ms.initialDialogStateForUserAgentClient(this.message,e);let n=this.confirmedDialogs.get(r.id);if(n){const i=this.confirmedDialogAcks.get(r.id);if(i){const o=this.transaction;if(!(o instanceof $n))throw new Error("Client transaction not instance of InviteClientTransaction.");o.ackResponse(i.message)}return}if(n=this.earlyDialogs.get(r.id),n)n.confirm(),n.recomputeRouteSet(e),this.earlyDialogs.delete(n.id),this.confirmedDialogs.set(n.id,n);else{const i=this.transaction;if(!(i instanceof $n))throw new Error("Transaction not instance of InviteClientTransaction.");n=new Bo(i,this.core,r),this.confirmedDialogs.set(n.id,n)}(n.signalingState===ve.Initial||n.signalingState===ve.HaveLocalOffer)&&n.signalingStateTransition(e);const s=n;if(this.delegate&&this.delegate.onAccept)this.delegate.onAccept({message:e,session:s,ack:i=>{const o=s.ack(i);return this.confirmedDialogAcks.set(s.id,o),o}});else{const i=s.ack();this.confirmedDialogAcks.set(s.id,i)}}return;case/^3[0-9]{2}$/.test(t):this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});return;case/^[4-6][0-9]{2}$/.test(t):this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});return;default:throw new Error(`Invalid status code ${t}`)}throw new Error(`Executing what should be an unreachable code path receiving ${t} response.`)}},Ll=class extends Nr{constructor(e,t,r){super(Zt,e,t,r),this.core=e}dispose(){this.earlyDialog&&this.earlyDialog.dispose(),super.dispose()}accept(e={statusCode:200}){if(!this.acceptable)throw new An(`${this.message.method} not acceptable in state ${this.transaction.state}.`);if(!this.confirmedDialog)if(this.earlyDialog)this.earlyDialog.confirm(),this.confirmedDialog=this.earlyDialog,this.earlyDialog=void 0;else{const a=this.transaction;if(!(a instanceof Zt))throw new Error("Transaction not instance of InviteClientTransaction.");const l=Ms.initialDialogStateForUserAgentServer(this.message,this.toTag);this.confirmedDialog=new Bo(a,this.core,l)}const t=this.message.getHeaders("record-route").map(a=>`Record-Route: ${a}`),r=`Contact: ${this.core.configuration.contact.toString()}`,n="Allow: "+kn.toString();if(!e.body){if(this.confirmedDialog.signalingState===ve.Stable)e.body=this.confirmedDialog.answer;else if(this.confirmedDialog.signalingState===ve.Initial||this.confirmedDialog.signalingState===ve.HaveRemoteOffer)throw new Error("Response must have a body.")}e.statusCode=e.statusCode||200,e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(n),e.extraHeaders.push(r);const s=super.accept(e),i=this.confirmedDialog,o=Object.assign(Object.assign({},s),{session:i});return e.body&&this.confirmedDialog.signalingState!==ve.Stable&&this.confirmedDialog.signalingStateTransition(e.body),o}progress(e={statusCode:180}){if(!this.progressable)throw new An(`${this.message.method} not progressable in state ${this.transaction.state}.`);if(!this.earlyDialog){const o=this.transaction;if(!(o instanceof Zt))throw new Error("Transaction not instance of InviteClientTransaction.");const a=Ms.initialDialogStateForUserAgentServer(this.message,this.toTag,!0);this.earlyDialog=new Bo(o,this.core,a)}const t=this.message.getHeaders("record-route").map(o=>`Record-Route: ${o}`),r=`Contact: ${this.core.configuration.contact}`;e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(r);const n=super.progress(e),s=this.earlyDialog,i=Object.assign(Object.assign({},n),{session:s});return e.body&&this.earlyDialog.signalingState!==ve.Stable&&this.earlyDialog.signalingStateTransition(e.body),i}redirect(e,t={statusCode:302}){return super.redirect(e,t)}reject(e={statusCode:486}){return super.reject(e)}},pw=class extends tr{constructor(e,t,r){super(er,e,t,r)}},hw=class extends tr{constructor(e,t,r){super(er,e,t,r)}},gw=class extends Nr{constructor(e,t,r){super(rr,e,t,r),this.core=e}},vw=class extends tr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(ye.SUBSCRIBE,r);super(er,e.userAgentCore,n,t),this.dialog=e}waitNotifyStop(){}receiveResponse(e){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){const t=e.getHeader("Expires");if(!t)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const r=Number(t);this.dialog.subscriptionExpires>r&&(this.dialog.subscriptionExpires=r)}}e.statusCode&&e.statusCode>=400&&e.statusCode<700&&[404,405,410,416,480,481,482,483,484,485,489,501,604].includes(e.statusCode)&&this.dialog.terminate(),super.receiveResponse(e)}},up=class extends Ms{constructor(e,t,r,n,s,i){super(n,s),this.delegate=i,this._autoRefresh=!1,this._subscriptionEvent=e,this._subscriptionExpires=t,this._subscriptionExpiresInitial=t,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this._subscriptionState=r,this.logger=n.loggerFactory.getLogger("sip.subscribe-dialog"),this.logger.log(`SUBSCRIBE dialog ${this.id} constructed`)}static initialDialogStateForSubscription(e,t){const n=t.getHeaders("record-route"),s=t.parseHeader("contact");if(!s)throw new Error("Contact undefined.");if(!(s instanceof vr))throw new Error("Contact not instance of NameAddrHeader.");const i=s.uri,o=e.cseq,a=void 0,l=e.callId,u=e.fromTag,c=t.fromTag;if(!l)throw new Error("Call id undefined.");if(!u)throw new Error("From tag undefined.");if(!c)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");const d=e.from.uri,p=e.to.uri;return{id:l+u+c,early:!1,callId:l,localTag:u,remoteTag:c,localSequenceNumber:o,remoteSequenceNumber:a,localURI:d,remoteURI:p,remoteTarget:i,routeSet:n,secure:!1}}dispose(){super.dispose(),this.N&&(clearTimeout(this.N),this.N=void 0),this.refreshTimerClear(),this.logger.log(`SUBSCRIBE dialog ${this.id} destroyed`)}get autoRefresh(){return this._autoRefresh}set autoRefresh(e){this._autoRefresh=!0,this.refreshTimerSet()}get subscriptionEvent(){return this._subscriptionEvent}get subscriptionExpires(){const e=Math.floor(Date.now()/1e3)-this._subscriptionExpiresLastSet,t=this._subscriptionExpires-e;return Math.max(t,0)}set subscriptionExpires(e){if(e<0)throw new Error("Expires must be greater than or equal to zero.");if(this._subscriptionExpires=e,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this.autoRefresh){const t=this.subscriptionRefresh;(t===void 0||t>=e)&&this.refreshTimerSet()}}get subscriptionExpiresInitial(){return this._subscriptionExpiresInitial}get subscriptionRefresh(){if(this._subscriptionRefresh===void 0||this._subscriptionRefreshLastSet===void 0)return;const e=Math.floor(Date.now()/1e3)-this._subscriptionRefreshLastSet,t=this._subscriptionRefresh-e;return Math.max(t,0)}get subscriptionState(){return this._subscriptionState}receiveRequest(e){if(this.logger.log(`SUBSCRIBE dialog ${this.id} received ${e.method} request`),!this.sequenceGuard(e)){this.logger.log(`SUBSCRIBE dialog ${this.id} rejected out of order ${e.method} request.`);return}super.receiveRequest(e),e.method===ye.NOTIFY?this.onNotify(e):(this.logger.log(`SUBSCRIBE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501}))}refresh(){const e="Allow: "+kn.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: "+this.subscriptionExpiresInitial),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}subscribe(e,t={}){var r;if(this.subscriptionState!==Je.Pending&&this.subscriptionState!==Je.Active)throw new Error(`Invalid state ${this.subscriptionState}. May only re-subscribe while in state "pending" or "active".`);this.logger.log(`SUBSCRIBE dialog ${this.id} sending SUBSCRIBE request`);const n=new vw(this,e,t);return this.N&&(clearTimeout(this.N),this.N=void 0),!((r=t.extraHeaders)===null||r===void 0)&&r.includes("Expires: 0")||(this.N=setTimeout(()=>this.timerN(),kt.TIMER_N)),n}terminate(){this.stateTransition(Je.Terminated),this.onTerminated()}unsubscribe(){const e="Allow: "+kn.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: 0"),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}onNotify(e){const t=e.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent){this.core.replyStateless(e,{statusCode:489});return}this.N&&(clearTimeout(this.N),this.N=void 0);const r=e.parseHeader("Subscription-State");if(!r||!r.state){this.core.replyStateless(e,{statusCode:489});return}const n=r.state,s=r.expires?Math.max(r.expires,0):void 0;switch(n){case"pending":this.stateTransition(Je.Pending,s);break;case"active":this.stateTransition(Je.Active,s);break;case"terminated":this.stateTransition(Je.Terminated,s);break;default:this.logger.warn("Unrecognized subscription state.");break}const i=new qo(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(i):i.accept()}onRefresh(e){this.delegate&&this.delegate.onRefresh&&this.delegate.onRefresh(e)}onTerminated(){this.delegate&&this.delegate.onTerminated&&this.delegate.onTerminated()}refreshTimerClear(){this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0)}refreshTimerSet(){if(this.refreshTimerClear(),this.autoRefresh&&this.subscriptionExpires>0){const e=this.subscriptionExpires*900;this._subscriptionRefresh=Math.floor(e/1e3),this._subscriptionRefreshLastSet=Math.floor(Date.now()/1e3),this.refreshTimer=setTimeout(()=>{this.refreshTimer=void 0,this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this.onRefresh(this.refresh())},e)}}stateTransition(e,t){const r=()=>{this.logger.warn(`Invalid subscription state transition from ${this.subscriptionState} to ${e}`)};switch(e){case Je.Initial:r();return;case Je.NotifyWait:r();return;case Je.Pending:if(this.subscriptionState!==Je.NotifyWait&&this.subscriptionState!==Je.Pending){r();return}break;case Je.Active:if(this.subscriptionState!==Je.NotifyWait&&this.subscriptionState!==Je.Pending&&this.subscriptionState!==Je.Active){r();return}break;case Je.Terminated:if(this.subscriptionState!==Je.NotifyWait&&this.subscriptionState!==Je.Pending&&this.subscriptionState!==Je.Active){r();return}break;default:r();return}e===Je.Pending&&t&&(this.subscriptionExpires=t),e===Je.Active&&t&&(this.subscriptionExpires=t),e===Je.Terminated&&this.dispose(),this._subscriptionState=e}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE dialog. Timed out waiting for NOTIFY."),this.subscriptionState!==Je.Terminated&&(this.stateTransition(Je.Terminated),this.onTerminated())}},mw=class extends tr{constructor(e,t,r){const n=t.getHeader("Event");if(!n)throw new Error("Event undefined");const s=t.getHeader("Expires");if(!s)throw new Error("Expires undefined");super(er,e,t,r),this.delegate=r,this.subscriberId=t.callId+t.fromTag+n,this.subscriptionExpiresRequested=this.subscriptionExpires=Number(s),this.subscriptionEvent=n,this.subscriptionState=Je.NotifyWait,this.waitNotifyStart()}dispose(){super.dispose()}onNotify(e){const t=e.message.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent){this.logger.warn("Failed to parse event."),e.reject({statusCode:489});return}const r=e.message.parseHeader("Subscription-State");if(!r||!r.state){this.logger.warn("Failed to parse subscription state."),e.reject({statusCode:489});return}const n=r.state;switch(n){case"pending":break;case"active":break;case"terminated":break;default:this.logger.warn(`Invalid subscription state ${n}`),e.reject({statusCode:489});return}if(n!=="terminated"&&!e.message.parseHeader("contact")){this.logger.warn("Failed to parse contact."),e.reject({statusCode:489});return}if(this.dialog)throw new Error("Dialog already created. This implementation only supports install of single subscriptions.");switch(this.waitNotifyStop(),this.subscriptionExpires=r.expires?Math.min(this.subscriptionExpires,Math.max(r.expires,0)):this.subscriptionExpires,n){case"pending":this.subscriptionState=Je.Pending;break;case"active":this.subscriptionState=Je.Active;break;case"terminated":this.subscriptionState=Je.Terminated;break;default:throw new Error(`Unrecognized state ${n}.`)}if(this.subscriptionState!==Je.Terminated){const s=up.initialDialogStateForSubscription(this.message,e.message);this.dialog=new up(this.subscriptionEvent,this.subscriptionExpires,this.subscriptionState,this.core,s)}if(this.delegate&&this.delegate.onNotify){const s=e,i=this.dialog;this.delegate.onNotify({request:s,subscription:i})}else e.accept()}waitNotifyStart(){this.N||(this.core.subscribers.set(this.subscriberId,this),this.N=setTimeout(()=>this.timerN(),kt.TIMER_N))}waitNotifyStop(){this.N&&(this.core.subscribers.delete(this.subscriberId),clearTimeout(this.N),this.N=void 0)}receiveResponse(e){if(this.authenticationGuard(e)){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){const t=e.getHeader("Expires");if(!t)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const r=Number(t);r>this.subscriptionExpiresRequested&&this.logger.warn("Expires header in a 200-class response to SUBSCRIBE with a higher value than the one in the request"),r<this.subscriptionExpires&&(this.subscriptionExpires=r)}this.dialog&&this.dialog.subscriptionExpires>this.subscriptionExpires&&(this.dialog.subscriptionExpires=this.subscriptionExpires)}e.statusCode&&e.statusCode>=300&&e.statusCode<700&&this.waitNotifyStop(),super.receiveResponse(e)}}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE user agent client. Timed out waiting for NOTIFY."),this.waitNotifyStop(),this.delegate&&this.delegate.onNotifyTimeout&&this.delegate.onNotifyTimeout()}},ww=class extends Nr{constructor(e,t,r){super(rr,e,t,r),this.core=e}},dp=["application/sdp","application/dtmf-relay"],yw=class{constructor(e,t={}){this.userAgentClients=new Map,this.userAgentServers=new Map,this.configuration=e,this.delegate=t,this.dialogs=new Map,this.subscribers=new Map,this.logger=e.loggerFactory.getLogger("sip.user-agent-core")}dispose(){this.reset()}reset(){this.dialogs.forEach(e=>e.dispose()),this.dialogs.clear(),this.subscribers.forEach(e=>e.dispose()),this.subscribers.clear(),this.userAgentClients.forEach(e=>e.dispose()),this.userAgentClients.clear(),this.userAgentServers.forEach(e=>e.dispose()),this.userAgentServers.clear()}get loggerFactory(){return this.configuration.loggerFactory}get transport(){const e=this.configuration.transportAccessor();if(!e)throw new Error("Transport undefined.");return e}invite(e,t){return new fw(this,e,t)}message(e,t){return new ap(this,e,t)}publish(e,t){return new pw(this,e,t)}register(e,t){return new hw(this,e,t)}subscribe(e,t){return new mw(this,e,t)}request(e,t){return new tr(er,this,e,t)}makeOutgoingRequestMessage(e,t,r,n,s,i,o){const a=this.configuration.sipjsId,l=this.configuration.displayName,u=this.configuration.viaForceRport,c=this.configuration.hackViaTcp,d=this.configuration.supportedOptionTags.slice();e===ye.REGISTER&&d.push("path","gruu"),e===ye.INVITE&&(this.configuration.contact.pubGruu||this.configuration.contact.tempGruu)&&d.push("gruu");const p={callIdPrefix:a,forceRport:u,fromDisplayName:l,hackViaTcp:c,optionTags:d,routeSet:this.configuration.routeSet,userAgentString:this.configuration.userAgentHeaderFieldValue,viaHost:this.configuration.viaHost};return new Ol(e,t,r,n,Object.assign(Object.assign({},p),s),i,o)}receiveIncomingRequestFromTransport(e){this.receiveRequestFromTransport(e)}receiveIncomingResponseFromTransport(e){this.receiveResponseFromTransport(e)}replyStateless(e,t){const r=this.configuration.userAgentHeaderFieldValue,n=this.configuration.supportedOptionTagsResponse;t=Object.assign(Object.assign({},t),{userAgent:r,supported:n});const s=np(e,t);return this.transport.send(s.message).catch(i=>{i instanceof Error&&this.logger.error(i.message),this.logger.error(`Transport error occurred sending stateless reply to ${e.method} request.`)}),s}receiveRequestFromTransport(e){const t=e.viaBranch,r=this.userAgentServers.get(t);if(e.method===ye.ACK&&r&&r.transaction.state===U.Accepted&&r instanceof Ll){this.logger.warn(`Discarding out of dialog ACK after 2xx response sent on transaction ${t}.`);return}if(e.method===ye.CANCEL){r?(this.replyStateless(e,{statusCode:200}),r.transaction instanceof Zt&&r.transaction.state===U.Proceeding&&r instanceof Ll&&r.receiveCancel(e)):this.replyStateless(e,{statusCode:481});return}if(r){r.transaction.receiveRequest(e);return}this.receiveRequest(e)}receiveRequest(e){if(!kn.includes(e.method)){const n="Allow: "+kn.toString();this.replyStateless(e,{statusCode:405,extraHeaders:[n]});return}if(!e.ruri)throw new Error("Request-URI undefined.");if(e.ruri.scheme!=="sip"){this.replyStateless(e,{statusCode:416});return}const t=e.ruri,r=n=>!!n&&n.user===t.user;if(!r(this.configuration.aor)&&!(r(this.configuration.contact.uri)||r(this.configuration.contact.pubGruu)||r(this.configuration.contact.tempGruu))){this.logger.warn("Request-URI does not point to us."),e.method!==ye.ACK&&this.replyStateless(e,{statusCode:404});return}if(e.method===ye.INVITE&&!e.hasHeader("Contact")){this.replyStateless(e,{statusCode:400,reasonPhrase:"Missing Contact Header"});return}if(!e.toTag){const n=e.viaBranch;if(!this.userAgentServers.has(n)&&Array.from(this.userAgentServers.values()).some(s=>s.transaction.request.fromTag===e.fromTag&&s.transaction.request.callId===e.callId&&s.transaction.request.cseq===e.cseq)){this.replyStateless(e,{statusCode:482});return}}e.toTag?this.receiveInsideDialogRequest(e):this.receiveOutsideDialogRequest(e)}receiveInsideDialogRequest(e){if(e.method===ye.NOTIFY){const n=e.parseHeader("Event");if(!n||!n.event){this.replyStateless(e,{statusCode:489});return}const s=e.callId+e.toTag+n.event,i=this.subscribers.get(s);if(i){const o=new qo(this,e);i.onNotify(o);return}}const t=e.callId+e.toTag+e.fromTag,r=this.dialogs.get(t);if(r){if(e.method===ye.OPTIONS){const n="Allow: "+kn.toString(),s="Accept: "+dp.toString();this.replyStateless(e,{statusCode:200,extraHeaders:[n,s]});return}r.receiveRequest(e);return}e.method!==ye.ACK&&this.replyStateless(e,{statusCode:481})}receiveOutsideDialogRequest(e){switch(e.method){case ye.ACK:break;case ye.BYE:this.replyStateless(e,{statusCode:481});break;case ye.CANCEL:throw new Error(`Unexpected out of dialog request method ${e.method}.`);case ye.INFO:this.replyStateless(e,{statusCode:405});break;case ye.INVITE:{const t=new Ll(this,e);this.delegate.onInvite?this.delegate.onInvite(t):t.reject()}break;case ye.MESSAGE:{const t=new lp(this,e);this.delegate.onMessage?this.delegate.onMessage(t):t.accept()}break;case ye.NOTIFY:{const t=new qo(this,e);this.delegate.onNotify?this.delegate.onNotify(t):t.reject({statusCode:405})}break;case ye.OPTIONS:{const t="Allow: "+kn.toString(),r="Accept: "+dp.toString();this.replyStateless(e,{statusCode:200,extraHeaders:[t,r]})}break;case ye.REFER:{const t=new cp(this,e);this.delegate.onRefer?this.delegate.onRefer(t):t.reject({statusCode:405})}break;case ye.REGISTER:{const t=new gw(this,e);this.delegate.onRegister?this.delegate.onRegister(t):t.reject({statusCode:405})}break;case ye.SUBSCRIBE:{const t=new ww(this,e);this.delegate.onSubscribe?this.delegate.onSubscribe(t):t.reject({statusCode:480})}break;default:throw new Error(`Unexpected out of dialog request method ${e.method}.`)}}receiveResponseFromTransport(e){if(e.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response, dropping");return}const t=e.viaBranch+e.method,r=this.userAgentClients.get(t);r?r.transaction.receiveResponse(e):this.logger.warn(`Discarding unmatched ${e.statusCode} response to ${e.method} ${t}.`)}};function bw(){return e=>!e.audio&&!e.video?Promise.resolve(new MediaStream):navigator.mediaDevices===void 0?Promise.reject(new Error("Media devices not available in insecure contexts.")):navigator.mediaDevices.getUserMedia.call(navigator.mediaDevices,e)}function _w(){return{bundlePolicy:"balanced",certificates:void 0,iceCandidatePoolSize:0,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require"}}var Sw=class Un{constructor(t,r,n){t.debug("SessionDescriptionHandler.constructor"),this.logger=t,this.mediaStreamFactory=r,this.sessionDescriptionHandlerConfiguration=n,this._localMediaStream=new MediaStream,this._remoteMediaStream=new MediaStream,this._peerConnection=new RTCPeerConnection(n?.peerConnectionConfiguration),this.initPeerConnectionEventHandlers()}get localMediaStream(){return this._localMediaStream}get remoteMediaStream(){return this._remoteMediaStream}get dataChannel(){return this._dataChannel}get peerConnection(){return this._peerConnection}get peerConnectionDelegate(){return this._peerConnectionDelegate}set peerConnectionDelegate(t){this._peerConnectionDelegate=t}static dispatchAddTrackEvent(t,r){t.dispatchEvent(new MediaStreamTrackEvent("addtrack",{track:r}))}static dispatchRemoveTrackEvent(t,r){t.dispatchEvent(new MediaStreamTrackEvent("removetrack",{track:r}))}close(){this.logger.debug("SessionDescriptionHandler.close"),this._peerConnection!==void 0&&(this._peerConnection.getReceivers().forEach(t=>{t.track&&t.track.stop()}),this._peerConnection.getSenders().forEach(t=>{t.track&&t.track.stop()}),this._dataChannel&&this._dataChannel.close(),this._peerConnection.close(),this._peerConnection=void 0)}enableReceiverTracks(t){const r=this.peerConnection;if(!r)throw new Error("Peer connection closed.");r.getReceivers().forEach(n=>{n.track&&(n.track.enabled=t)})}enableSenderTracks(t){const r=this.peerConnection;if(!r)throw new Error("Peer connection closed.");r.getSenders().forEach(n=>{n.track&&(n.track.enabled=t)})}getDescription(t,r){var n,s;if(this.logger.debug("SessionDescriptionHandler.getDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=t?.onDataChannel;const i=(n=t?.offerOptions)===null||n===void 0?void 0:n.iceRestart,o=t?.iceGatheringTimeout===void 0?(s=this.sessionDescriptionHandlerConfiguration)===null||s===void 0?void 0:s.iceGatheringTimeout:t?.iceGatheringTimeout;return this.getLocalMediaStream(t).then(()=>this.updateDirection(t)).then(()=>this.createDataChannel(t)).then(()=>this.createLocalOfferOrAnswer(t)).then(a=>this.applyModifiers(a,r)).then(a=>this.setLocalSessionDescription(a)).then(()=>this.waitForIceGatheringComplete(i,o)).then(()=>this.getLocalSessionDescription()).then(a=>({body:a.sdp,contentType:"application/sdp"})).catch(a=>{throw this.logger.error("SessionDescriptionHandler.getDescription failed - "+a),a})}hasDescription(t){return this.logger.debug("SessionDescriptionHandler.hasDescription"),t==="application/sdp"}iceGatheringComplete(){this.logger.debug("SessionDescriptionHandler.iceGatheringComplete"),this.iceGatheringCompleteTimeoutId!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - clearing timeout"),clearTimeout(this.iceGatheringCompleteTimeoutId),this.iceGatheringCompleteTimeoutId=void 0),this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - resolving promise"),this.iceGatheringCompleteResolve&&this.iceGatheringCompleteResolve(),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0)}sendDtmf(t,r){if(this.logger.debug("SessionDescriptionHandler.sendDtmf"),this._peerConnection===void 0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - peer connection closed"),!1;const n=this._peerConnection.getSenders();if(n.length===0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no senders"),!1;const s=n[0].dtmf;if(!s)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no DTMF sender"),!1;const i=r?.duration,o=r?.interToneGap;try{s.insertDTMF(t,i,o)}catch(a){return this.logger.error(a.toString()),!1}return this.logger.log("SessionDescriptionHandler.sendDtmf sent via RTP: "+t.toString()),!0}setDescription(t,r,n){if(this.logger.debug("SessionDescriptionHandler.setDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=r?.onDataChannel;const s=this._peerConnection.signalingState==="have-local-offer"?"answer":"offer";return this.getLocalMediaStream(r).then(()=>this.applyModifiers({sdp:t,type:s},n)).then(i=>this.setRemoteSessionDescription(i)).catch(i=>{throw this.logger.error("SessionDescriptionHandler.setDescription failed - "+i),i})}applyModifiers(t,r){return this.logger.debug("SessionDescriptionHandler.applyModifiers"),!r||r.length===0?Promise.resolve(t):r.reduce((n,s)=>n.then(s),Promise.resolve(t)).then(n=>{if(this.logger.debug("SessionDescriptionHandler.applyModifiers - modified sdp"),!n.sdp||!n.type)throw new Error("Invalid SDP.");return{sdp:n.sdp,type:n.type}})}createDataChannel(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));if(t?.dataChannel!==!0||this._dataChannel)return Promise.resolve();switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.createDataChannel - creating data channel");try{return this._dataChannel=this._peerConnection.createDataChannel(t?.dataChannelLabel||"",t?.dataChannelOptions),this.onDataChannel&&this.onDataChannel(this._dataChannel),Promise.resolve()}catch(r){return Promise.reject(r)}case"have-remote-offer":return Promise.resolve();default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}createLocalOfferOrAnswer(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP offer"),this._peerConnection.createOffer(t?.offerOptions);case"have-remote-offer":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP answer"),this._peerConnection.createAnswer(t?.answerOptions);default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}getLocalMediaStream(t){if(this.logger.debug("SessionDescriptionHandler.getLocalMediaStream"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));let r=Object.assign({},t?.constraints);if(this.localMediaStreamConstraints){if(r.audio=r.audio||this.localMediaStreamConstraints.audio,r.video=r.video||this.localMediaStreamConstraints.video,JSON.stringify(this.localMediaStreamConstraints.audio)===JSON.stringify(r.audio)&&JSON.stringify(this.localMediaStreamConstraints.video)===JSON.stringify(r.video))return Promise.resolve()}else r.audio===void 0&&r.video===void 0&&(r={audio:!0});return this.localMediaStreamConstraints=r,this.mediaStreamFactory(r,this,t).then(n=>this.setLocalMediaStream(n))}setLocalMediaStream(t){if(this.logger.debug("SessionDescriptionHandler.setLocalMediaStream"),!this._peerConnection)throw new Error("Peer connection undefined.");const r=this._peerConnection,n=this._localMediaStream,s=[],i=l=>{const u=l.kind;if(u!=="audio"&&u!=="video")throw new Error(`Unknown new track kind ${u}.`);const c=r.getSenders().find(d=>d.track&&d.track.kind===u);c?s.push(new Promise(d=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - replacing sender ${u} track`),d()}).then(()=>c.replaceTrack(l).then(()=>{const d=n.getTracks().find(p=>p.kind===u);d&&(d.stop(),n.removeTrack(d),Un.dispatchRemoveTrackEvent(n,d)),n.addTrack(l),Un.dispatchAddTrackEvent(n,l)}).catch(d=>{throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to replace sender ${u} track`),d}))):s.push(new Promise(d=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - adding sender ${u} track`),d()}).then(()=>{try{r.addTrack(l,n)}catch(d){throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to add sender ${u} track`),d}n.addTrack(l),Un.dispatchAddTrackEvent(n,l)}))},o=t.getAudioTracks();o.length&&i(o[0]);const a=t.getVideoTracks();return a.length&&i(a[0]),s.reduce((l,u)=>l.then(()=>u),Promise.resolve())}getLocalSessionDescription(){if(this.logger.debug("SessionDescriptionHandler.getLocalSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const t=this._peerConnection.localDescription;return t?Promise.resolve(t):Promise.reject(new Error("Failed to get local session description"))}setLocalSessionDescription(t){return this.logger.debug("SessionDescriptionHandler.setLocalSessionDescription"),this._peerConnection===void 0?Promise.reject(new Error("Peer connection closed.")):this._peerConnection.setLocalDescription(t)}setRemoteSessionDescription(t){if(this.logger.debug("SessionDescriptionHandler.setRemoteSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const r=t.sdp;let n;switch(this._peerConnection.signalingState){case"stable":n="offer";break;case"have-local-offer":n="answer";break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return r?this._peerConnection.setRemoteDescription({sdp:r,type:n}):(this.logger.error("SessionDescriptionHandler.setRemoteSessionDescription failed - cannot set null sdp"),Promise.reject(new Error("SDP is undefined")))}setRemoteTrack(t){this.logger.debug("SessionDescriptionHandler.setRemoteTrack");const r=this._remoteMediaStream;r.getTrackById(t.id)?this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - have remote ${t.kind} track`):t.kind==="audio"?(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${t.kind} track`),r.getAudioTracks().forEach(n=>{n.stop(),r.removeTrack(n),Un.dispatchRemoveTrackEvent(r,n)}),r.addTrack(t),Un.dispatchAddTrackEvent(r,t)):t.kind==="video"&&(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${t.kind} track`),r.getVideoTracks().forEach(n=>{n.stop(),r.removeTrack(n),Un.dispatchRemoveTrackEvent(r,n)}),r.addTrack(t),Un.dispatchAddTrackEvent(r,t))}updateDirection(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.updateDirection - setting offer direction");{const r=n=>{switch(n){case"inactive":return t?.hold?"inactive":"recvonly";case"recvonly":return t?.hold?"inactive":"recvonly";case"sendonly":return t?.hold?"sendonly":"sendrecv";case"sendrecv":return t?.hold?"sendonly":"sendrecv";case"stopped":return"stopped";default:throw new Error("Should never happen")}};this._peerConnection.getTransceivers().forEach(n=>{if(n.direction){const s=r(n.direction);n.direction!==s&&(n.direction=s)}})}break;case"have-remote-offer":this.logger.debug("SessionDescriptionHandler.updateDirection - setting answer direction");{const r=(()=>{const s=this._peerConnection.remoteDescription;if(!s)throw new Error("Failed to read remote offer");const i=/a=sendrecv\r\n|a=sendonly\r\n|a=recvonly\r\n|a=inactive\r\n/.exec(s.sdp);if(i)switch(i[0]){case`a=inactive\r
|
|
52
|
+
`,this.send(l).catch(u=>{this.logTransportError(u,"Failed to send ACK to non-2xx response.")})}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case U.Calling:r();break;case U.Proceeding:this.state!==U.Calling&&r();break;case U.Accepted:case U.Completed:this.state!==U.Calling&&this.state!==U.Proceeding&&r();break;case U.Terminated:this.state!==U.Calling&&this.state!==U.Accepted&&this.state!==U.Completed&&(t||r());break;default:r()}this.B&&(clearTimeout(this.B),this.B=void 0),U.Proceeding,e===U.Completed&&(this.D=setTimeout(()=>this.timerD(),kt.TIMER_D)),e===U.Accepted&&(this.M=setTimeout(()=>this.timerM(),kt.TIMER_M)),e===U.Terminated&&this.dispose(),this.setState(e)}timerA(){}timerB(){this.logger.debug(`Timer B expired for INVITE client transaction ${this.id}.`),this.state===U.Calling&&(this.onRequestTimeout(),this.stateTransition(U.Terminated))}timerD(){this.logger.debug(`Timer D expired for INVITE client transaction ${this.id}.`),this.state===U.Completed&&this.stateTransition(U.Terminated)}timerM(){this.logger.debug(`Timer M expired for INVITE client transaction ${this.id}.`),this.state===U.Accepted&&this.stateTransition(U.Terminated)}},nr=class ru{constructor(t,r,n,s){this.transactionConstructor=t,this.core=r,this.message=n,this.delegate=s,this.challenged=!1,this.stale=!1,this.logger=this.loggerFactory.getLogger("sip.user-agent-client"),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}cancel(t,r={}){if(!this.transaction)throw new Error("Transaction undefined.");if(!this.message.to)throw new Error("To undefined.");if(!this.message.from)throw new Error("From undefined.");const n=this.core.makeOutgoingRequestMessage(be.CANCEL,this.message.ruri,this.message.from.uri,this.message.to.uri,{toTag:this.message.toTag,fromTag:this.message.fromTag,callId:this.message.callId,cseq:this.message.cseq},r.extraHeaders);return n.branch=this.message.branch,this.message.headers.Route&&(n.headers.Route=this.message.headers.Route),t&&n.setHeader("Reason",t),this.transaction.state===U.Proceeding?new ru(rr,this.core,n):this.transaction.addStateChangeListener(()=>{this.transaction&&this.transaction.state===U.Proceeding&&new ru(rr,this.core,n)},{once:!0}),n}authenticationGuard(t,r){const n=t.statusCode;if(!n)throw new Error("Response status code undefined.");if(n!==401&&n!==407)return!0;let s,i;if(n===401?(s=t.parseHeader("www-authenticate"),i="authorization"):(s=t.parseHeader("proxy-authenticate"),i="proxy-authorization"),!s)return this.logger.warn(n+" with wrong or missing challenge, cannot authenticate"),!0;if(this.challenged&&(this.stale||s.stale!==!0))return this.logger.warn(n+" apparently in authentication loop, cannot authenticate"),!0;if(!this.credentials&&(this.credentials=this.core.configuration.authenticationFactory(),!this.credentials))return this.logger.warn("Unable to obtain credentials, cannot authenticate"),!0;if(!this.credentials.authenticate(this.message,s))return!0;this.challenged=!0,s.stale&&(this.stale=!0);let o=this.message.cseq+=1;return r&&r.localSequenceNumber&&(r.incrementLocalSequenceNumber(),o=this.message.cseq=r.localSequenceNumber),this.message.setHeader("cseq",o+" "+this.message.method),this.message.setHeader(i,this.credentials.toString()),this.init(),!1}onRequestTimeout(){this.logger.warn("User agent client request timed out. Generating internal 408 Request Timeout.");const t=new kn;t.statusCode=408,t.reasonPhrase="Request Timeout",this.receiveResponse(t)}onTransportError(t){this.logger.error(t.message),this.logger.error("User agent client request transport error. Generating internal 503 Service Unavailable.");const r=new kn;r.statusCode=503,r.reasonPhrase="Service Unavailable",this.receiveResponse(r)}receiveResponse(t){if(!this.authenticationGuard(t))return;const r=t.statusCode?t.statusCode.toString():"";if(!r)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(r):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:t});break;case/^1[0-9]{2}$/.test(r):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:t});break;case/^2[0-9]{2}$/.test(r):this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:t});break;case/^3[0-9]{2}$/.test(r):this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:t});break;case/^[4-6][0-9]{2}$/.test(r):this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:t});break;default:throw new Error(`Invalid status code ${r}`)}}init(){const t={loggerFactory:this.loggerFactory,onRequestTimeout:()=>this.onRequestTimeout(),onStateChange:s=>{s===U.Terminated&&(this.core.userAgentClients.delete(n),r===this._transaction&&this.dispose())},onTransportError:s=>this.onTransportError(s),receiveResponse:s=>this.receiveResponse(s)},r=new this.transactionConstructor(this.message,this.core.transport,t);this._transaction=r;const n=r.id+r.request.method;this.core.userAgentClients.set(n,this)}},rw=class extends nr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(be.BYE,r);super(rr,e.userAgentCore,n,t),e.dispose()}},sr=class extends lp{constructor(e,t,r){super(e,t,r,U.Trying,"sip.transaction.nist")}dispose(){this.J&&(clearTimeout(this.J),this.J=void 0),super.dispose()}get kind(){return"nist"}receiveRequest(e){switch(this.state){case U.Trying:break;case U.Proceeding:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(t=>{this.logTransportError(t,"Failed to send retransmission of provisional response.")});break;case U.Completed:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(t=>{this.logTransportError(t,"Failed to send retransmission of final response.")});break;case U.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);if(e>100&&e<=199)throw new Error("Provisional response other than 100 not allowed.");switch(this.state){case U.Trying:if(this.lastResponse=t,e>=100&&e<200){this.stateTransition(U.Proceeding),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send provisional response.")});return}if(e>=200&&e<=699){this.stateTransition(U.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send final response.")});return}break;case U.Proceeding:if(this.lastResponse=t,e>=200&&e<=699){this.stateTransition(U.Completed),this.send(t).catch(n=>{this.logTransportError(n,"Failed to send final response.")});return}break;case U.Completed:return;case U.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const r=`Non-INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(r),new Error(r)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(U.Terminated,!0)}typeToString(){return"non-INVITE server transaction"}stateTransition(e,t=!1){const r=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case U.Trying:r();break;case U.Proceeding:this.state!==U.Trying&&r();break;case U.Completed:this.state!==U.Trying&&this.state!==U.Proceeding&&r();break;case U.Terminated:this.state!==U.Proceeding&&this.state!==U.Completed&&(t||r());break;default:r()}e===U.Completed&&(this.J=setTimeout(()=>this.timerJ(),kt.TIMER_J)),e===U.Terminated&&this.dispose(),this.setState(e)}timerJ(){this.logger.debug(`Timer J expired for NON-INVITE server transaction ${this.id}.`),this.state===U.Completed&&this.stateTransition(U.Terminated)}},qr=class{constructor(e,t,r,n){this.transactionConstructor=e,this.core=t,this.message=r,this.delegate=n,this.logger=this.loggerFactory.getLogger("sip.user-agent-server"),this.toTag=r.toTag?r.toTag:Lo(),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}accept(e={statusCode:200}){if(!this.acceptable)throw new Rn(`${this.message.method} not acceptable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<200||t>299)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}progress(e={statusCode:180}){if(!this.progressable)throw new Rn(`${this.message.method} not progressable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<101||t>199)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}redirect(e,t={statusCode:302}){if(!this.redirectable)throw new Rn(`${this.message.method} not redirectable in state ${this.transaction.state}.`);const r=t.statusCode;if(r<300||r>399)throw new TypeError(`Invalid statusCode: ${r}`);const n=new Array;return e.forEach(s=>n.push(`Contact: ${s.toString()}`)),t.extraHeaders=(t.extraHeaders||[]).concat(n),this.reply(t)}reject(e={statusCode:480}){if(!this.rejectable)throw new Rn(`${this.message.method} not rejectable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<400||t>699)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}trying(e){if(!this.tryingable)throw new Rn(`${this.message.method} not tryingable in state ${this.transaction.state}.`);return this.reply({statusCode:100})}receiveCancel(e){this.delegate&&this.delegate.onCancel&&this.delegate.onCancel(e)}get acceptable(){if(this.transaction instanceof Xt)return this.transaction.state===U.Proceeding||this.transaction.state===U.Accepted;if(this.transaction instanceof sr)return this.transaction.state===U.Trying||this.transaction.state===U.Proceeding;throw new Error("Unknown transaction type.")}get progressable(){if(this.transaction instanceof Xt)return this.transaction.state===U.Proceeding;if(this.transaction instanceof sr)return!1;throw new Error("Unknown transaction type.")}get redirectable(){if(this.transaction instanceof Xt)return this.transaction.state===U.Proceeding;if(this.transaction instanceof sr)return this.transaction.state===U.Trying||this.transaction.state===U.Proceeding;throw new Error("Unknown transaction type.")}get rejectable(){if(this.transaction instanceof Xt)return this.transaction.state===U.Proceeding;if(this.transaction instanceof sr)return this.transaction.state===U.Trying||this.transaction.state===U.Proceeding;throw new Error("Unknown transaction type.")}get tryingable(){if(this.transaction instanceof Xt)return this.transaction.state===U.Proceeding;if(this.transaction instanceof sr)return this.transaction.state===U.Trying;throw new Error("Unknown transaction type.")}reply(e){!e.toTag&&e.statusCode!==100&&(e.toTag=this.toTag),e.userAgent=e.userAgent||this.core.configuration.userAgentHeaderFieldValue,e.supported=e.supported||this.core.configuration.supportedOptionTagsResponse;const t=op(this.message,e);return this.transaction.receiveResponse(e.statusCode,t.message),t}init(){const e={loggerFactory:this.loggerFactory,onStateChange:n=>{n===U.Terminated&&(this.core.userAgentServers.delete(r),this.dispose())},onTransportError:n=>{this.logger.error(n.message),this.delegate&&this.delegate.onTransportError?this.delegate.onTransportError(n):this.logger.error("User agent server response transport error.")}},t=new this.transactionConstructor(this.message,this.core.transport,e);this._transaction=t;const r=t.id;this.core.userAgentServers.set(t.id,this)}},nw=class extends qr{constructor(e,t,r){super(sr,e.userAgentCore,t,r)}},sw=class extends nr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(be.INFO,r);super(rr,e.userAgentCore,n,t)}},iw=class extends qr{constructor(e,t,r){super(sr,e.userAgentCore,t,r)}},up=class extends nr{constructor(e,t,r){super(rr,e,t,r)}},dp=class extends qr{constructor(e,t,r){super(sr,e,t,r)}},ow=class extends nr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(be.NOTIFY,r);super(rr,e.userAgentCore,n,t)}};function aw(e){return e.userAgentCore!==void 0}var zo=class extends qr{constructor(e,t,r){const n=aw(e)?e.userAgentCore:e;super(sr,n,t,r)}},lw=class extends nr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(be.PRACK,r);super(rr,e.userAgentCore,n,t),e.signalingStateTransition(n)}},cw=class extends qr{constructor(e,t,r){super(sr,e.userAgentCore,t,r),e.signalingStateTransition(t),this.dialog=e}accept(e={statusCode:200}){return e.body&&this.dialog.signalingStateTransition(e.body),super.accept(e)}},uw=class extends nr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(be.INVITE,r);super(Dn,e.userAgentCore,n,t),this.delegate=t,e.signalingStateTransition(n),e.reinviteUserAgentClient=this,this.dialog=e}receiveResponse(e){if(!this.authenticationGuard(e,this.dialog))return;const t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});break;case/^1[0-9]{2}$/.test(t):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:this.dialog,prack:r=>{throw new Error("Unimplemented.")}});break;case/^2[0-9]{2}$/.test(t):this.dialog.signalingStateTransition(e),this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:e,session:this.dialog,ack:r=>this.dialog.ack(r)});break;case/^3[0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});break;case/^[4-6][0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});break;default:throw new Error(`Invalid status code ${t}`)}}},dw=class extends qr{constructor(e,t,r){super(Xt,e.userAgentCore,t,r),e.reinviteUserAgentServer=this,this.dialog=e}accept(e={statusCode:200}){e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(this.dialog.routeSet.map(s=>`Record-Route: ${s}`));const t=super.accept(e),r=this.dialog,n=Object.assign(Object.assign({},t),{session:r});return e.body&&this.dialog.signalingStateTransition(e.body),this.dialog.reConfirm(),n}progress(e={statusCode:180}){const t=super.progress(e),r=this.dialog,n=Object.assign(Object.assign({},t),{session:r});return e.body&&this.dialog.signalingStateTransition(e.body),n}redirect(e,t={statusCode:302}){throw this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,new Error("Unimplemented.")}reject(e={statusCode:488}){return this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,super.reject(e)}},fw=class extends nr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(be.REFER,r);super(rr,e.userAgentCore,n,t)}};function pw(e){return e.userAgentCore!==void 0}var fp=class extends qr{constructor(e,t,r){const n=pw(e)?e.userAgentCore:e;super(sr,n,t,r)}},Ko=class extends qs{constructor(e,t,r,n){super(t,r),this.initialTransaction=e,this._signalingState=me.Initial,this.ackWait=!1,this.ackProcessing=!1,this.delegate=n,e instanceof Xt&&(this.ackWait=!0),this.early||this.start2xxRetransmissionTimer(),this.signalingStateTransition(e.request),this.logger=t.loggerFactory.getLogger("sip.invite-dialog"),this.logger.log(`INVITE dialog ${this.id} constructed`)}dispose(){super.dispose(),this._signalingState=me.Closed,this._offer=void 0,this._answer=void 0,this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.logger.log(`INVITE dialog ${this.id} destroyed`)}get sessionState(){return this.early?wr.Early:this.ackWait?wr.AckWait:this._signalingState===me.Closed?wr.Terminated:wr.Confirmed}get signalingState(){return this._signalingState}get offer(){return this._offer}get answer(){return this._answer}confirm(){this.early&&this.start2xxRetransmissionTimer(),super.confirm()}reConfirm(){this.reinviteUserAgentServer&&this.startReInvite2xxRetransmissionTimer()}ack(e={}){this.logger.log(`INVITE dialog ${this.id} sending ACK request`);let t;if(this.reinviteUserAgentClient){if(!(this.reinviteUserAgentClient.transaction instanceof Dn))throw new Error("Transaction not instance of InviteClientTransaction.");t=this.reinviteUserAgentClient.transaction,this.reinviteUserAgentClient=void 0}else{if(!(this.initialTransaction instanceof Dn))throw new Error("Initial transaction not instance of InviteClientTransaction.");t=this.initialTransaction}const r=this.createOutgoingRequestMessage(be.ACK,{cseq:t.request.cseq,extraHeaders:e.extraHeaders,body:e.body});return t.ackResponse(r),this.signalingStateTransition(r),{message:r}}bye(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending BYE request`),this.initialTransaction instanceof Xt){if(this.early)throw new Error("UAS MUST NOT send a BYE on early dialogs.");if(this.ackWait&&this.initialTransaction.state!==U.Terminated)throw new Error("UAS MUST NOT send a BYE on a confirmed dialog until it has received an ACK for its 2xx response or until the server transaction times out.")}return new rw(this,e,t)}info(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending INFO request`),this.early)throw new Error("Dialog not confirmed.");return new sw(this,e,t)}invite(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending INVITE request`),this.early)throw new Error("Dialog not confirmed.");if(this.reinviteUserAgentClient)throw new Error("There is an ongoing re-INVITE client transaction.");if(this.reinviteUserAgentServer)throw new Error("There is an ongoing re-INVITE server transaction.");return new uw(this,e,t)}message(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending MESSAGE request`),this.early)throw new Error("Dialog not confirmed.");const r=this.createOutgoingRequestMessage(be.MESSAGE,t);return new up(this.core,r,e)}notify(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending NOTIFY request`),this.early)throw new Error("Dialog not confirmed.");return new ow(this,e,t)}prack(e,t){return this.logger.log(`INVITE dialog ${this.id} sending PRACK request`),new lw(this,e,t)}refer(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending REFER request`),this.early)throw new Error("Dialog not confirmed.");return new fw(this,e,t)}receiveRequest(e){if(this.logger.log(`INVITE dialog ${this.id} received ${e.method} request`),e.method===be.ACK){if(this.ackWait){if(this.initialTransaction instanceof Dn){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}if(this.initialTransaction.request.cseq!==e.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}this.ackWait=!1}else{if(!this.reinviteUserAgentServer){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}if(this.reinviteUserAgentServer.transaction.request.cseq!==e.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);return}this.reinviteUserAgentServer=void 0}if(this.signalingStateTransition(e),this.delegate&&this.delegate.onAck){const t=this.delegate.onAck({message:e});t instanceof Promise&&(this.ackProcessing=!0,t.then(()=>this.ackProcessing=!1).catch(()=>this.ackProcessing=!1))}return}if(!this.sequenceGuard(e)){this.logger.log(`INVITE dialog ${this.id} rejected out of order ${e.method} request.`);return}if(super.receiveRequest(e),e.method===be.INVITE){const t=()=>{const n=this.ackWait?"waiting for initial ACK":"processing initial ACK";this.logger.warn(`INVITE dialog ${this.id} received re-INVITE while ${n}`);let s="RFC 5407 suggests the following to avoid this race condition... ";s+=" Note: Implementation issues are outside the scope of this document,",s+=" but the following tip is provided for avoiding race conditions of",s+=" this type. The caller can delay sending re-INVITE F6 for some period",s+=" of time (2 seconds, perhaps), after which the caller can reasonably",s+=" assume that its ACK has been received. Implementors can decouple the",s+=" actions of the user (e.g., pressing the hold button) from the actions",s+=" of the protocol (the sending of re-INVITE F6), so that the UA can",s+=" behave like this. In this case, it is the implementor's choice as to",s+=" how long to wait. In most cases, such an implementation may be",s+=" useful to prevent the type of race condition shown in this section.",s+=" This document expresses no preference about whether or not they",s+=" should wait for an ACK to be delivered. After considering the impact",s+=" on user experience, implementors should decide whether or not to wait",s+=" for a while, because the user experience depends on the",s+=" implementation and has no direct bearing on protocol behavior.",this.logger.warn(s)},r=[`Retry-After: ${Math.floor(Math.random()*10)+1}`];if(this.ackProcessing){this.core.replyStateless(e,{statusCode:500,extraHeaders:r}),t();return}if(this.ackWait&&this.signalingState!==me.Stable){this.core.replyStateless(e,{statusCode:500,extraHeaders:r}),t();return}if(this.reinviteUserAgentServer){this.core.replyStateless(e,{statusCode:500,extraHeaders:r});return}if(this.reinviteUserAgentClient){this.core.replyStateless(e,{statusCode:491});return}}if(e.method===be.INVITE){const t=e.parseHeader("contact");if(!t)throw new Error("Contact undefined.");if(!(t instanceof mr))throw new Error("Contact not instance of NameAddrHeader.");this.dialogState.remoteTarget=t.uri}switch(e.method){case be.BYE:{const t=new nw(this,e);this.delegate&&this.delegate.onBye?this.delegate.onBye(t):t.accept(),this.dispose()}break;case be.INFO:{const t=new iw(this,e);this.delegate&&this.delegate.onInfo?this.delegate.onInfo(t):t.reject({statusCode:469,extraHeaders:["Recv-Info:"]})}break;case be.INVITE:{const t=new dw(this,e);this.signalingStateTransition(e),this.delegate&&this.delegate.onInvite?this.delegate.onInvite(t):t.reject({statusCode:488})}break;case be.MESSAGE:{const t=new dp(this.core,e);this.delegate&&this.delegate.onMessage?this.delegate.onMessage(t):t.accept()}break;case be.NOTIFY:{const t=new zo(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(t):t.accept()}break;case be.PRACK:{const t=new cw(this,e);this.delegate&&this.delegate.onPrack?this.delegate.onPrack(t):t.accept()}break;case be.REFER:{const t=new fp(this,e);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(t):t.reject()}break;default:this.logger.log(`INVITE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501});break}}reliableSequenceGuard(e){const t=e.statusCode;if(!t)throw new Error("Status code undefined");if(t>100&&t<200){const r=e.getHeader("require"),n=e.getHeader("rseq"),s=r&&r.includes("100rel")&&n?Number(n):void 0;if(s){if(this.rseq&&this.rseq+1!==s)return!1;this.rseq=this.rseq?this.rseq+1:s}}return!0}signalingStateRollback(){(this._signalingState===me.HaveLocalOffer||this.signalingState===me.HaveRemoteOffer)&&this._rollbackOffer&&this._rollbackAnswer&&(this._signalingState=me.Stable,this._offer=this._rollbackOffer,this._answer=this._rollbackAnswer)}signalingStateTransition(e){const t=Ri(e);if(!(!t||t.contentDisposition!=="session")){if(this._signalingState===me.Stable&&(this._rollbackOffer=this._offer,this._rollbackAnswer=this._answer),e instanceof Ms)switch(this._signalingState){case me.Initial:case me.Stable:this._signalingState=me.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case me.HaveLocalOffer:this._signalingState=me.Stable,this._answer=t;break;case me.HaveRemoteOffer:break;case me.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof kn)switch(this._signalingState){case me.Initial:case me.Stable:this._signalingState=me.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case me.HaveLocalOffer:this._signalingState=me.Stable,this._answer=t;break;case me.HaveRemoteOffer:break;case me.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof Nl)switch(this._signalingState){case me.Initial:case me.Stable:this._signalingState=me.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case me.HaveLocalOffer:break;case me.HaveRemoteOffer:this._signalingState=me.Stable,this._answer=t;break;case me.Closed:break;default:throw new Error("Unexpected signaling state.")}if(np(e))switch(this._signalingState){case me.Initial:case me.Stable:this._signalingState=me.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case me.HaveLocalOffer:break;case me.HaveRemoteOffer:this._signalingState=me.Stable,this._answer=t;break;case me.Closed:break;default:throw new Error("Unexpected signaling state.")}}}start2xxRetransmissionTimer(){if(this.initialTransaction instanceof Xt){const e=this.initialTransaction;let t=kt.T1;const r=()=>{if(!this.ackWait){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(t*2,kt.T2),this.invite2xxTimer=setTimeout(r,t)};this.invite2xxTimer=setTimeout(r,t);const n=()=>{e.state===U.Terminated&&(e.removeStateChangeListener(n),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.ackWait&&(this.delegate&&this.delegate.onAckTimeout?this.delegate.onAckTimeout():this.bye()))};e.addStateChangeListener(n)}}startReInvite2xxRetransmissionTimer(){if(this.reinviteUserAgentServer&&this.reinviteUserAgentServer.transaction instanceof Xt){const e=this.reinviteUserAgentServer.transaction;let t=kt.T1;const r=()=>{if(!this.reinviteUserAgentServer){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(t*2,kt.T2),this.invite2xxTimer=setTimeout(r,t)};this.invite2xxTimer=setTimeout(r,t);const n=()=>{e.state===U.Terminated&&(e.removeStateChangeListener(n),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.reinviteUserAgentServer)};e.addStateChangeListener(n)}}},hw=class extends nr{constructor(e,t,r){super(Dn,e,t,r),this.confirmedDialogAcks=new Map,this.confirmedDialogs=new Map,this.earlyDialogs=new Map,this.delegate=r}dispose(){this.earlyDialogs.forEach(e=>e.dispose()),this.earlyDialogs.clear(),super.dispose()}onTransportError(e){if(this.transaction.state===U.Calling)return super.onTransportError(e);this.logger.error(e.message),this.logger.error("User agent client request transport error while sending ACK.")}receiveResponse(e){if(!this.authenticationGuard(e))return;const t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});return;case/^1[0-9]{2}$/.test(t):{if(!e.toTag){this.logger.warn("Non-100 1xx INVITE response received without a to tag, dropping.");return}if(!e.parseHeader("contact")){this.logger.error("Non-100 1xx INVITE response received without a Contact header field, dropping.");return}const r=qs.initialDialogStateForUserAgentClient(this.message,e);let n=this.earlyDialogs.get(r.id);if(!n){const i=this.transaction;if(!(i instanceof Dn))throw new Error("Transaction not instance of InviteClientTransaction.");n=new Ko(i,this.core,r),this.earlyDialogs.set(n.id,n)}if(!n.reliableSequenceGuard(e)){this.logger.warn("1xx INVITE reliable response received out of order or is a retransmission, dropping.");return}(n.signalingState===me.Initial||n.signalingState===me.HaveLocalOffer)&&n.signalingStateTransition(e);const s=n;this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:s,prack:i=>s.prack(void 0,i)})}return;case/^2[0-9]{2}$/.test(t):{if(!e.toTag){this.logger.error("2xx INVITE response received without a to tag, dropping.");return}if(!e.parseHeader("contact")){this.logger.error("2xx INVITE response received without a Contact header field, dropping.");return}const r=qs.initialDialogStateForUserAgentClient(this.message,e);let n=this.confirmedDialogs.get(r.id);if(n){const i=this.confirmedDialogAcks.get(r.id);if(i){const o=this.transaction;if(!(o instanceof Dn))throw new Error("Client transaction not instance of InviteClientTransaction.");o.ackResponse(i.message)}return}if(n=this.earlyDialogs.get(r.id),n)n.confirm(),n.recomputeRouteSet(e),this.earlyDialogs.delete(n.id),this.confirmedDialogs.set(n.id,n);else{const i=this.transaction;if(!(i instanceof Dn))throw new Error("Transaction not instance of InviteClientTransaction.");n=new Ko(i,this.core,r),this.confirmedDialogs.set(n.id,n)}(n.signalingState===me.Initial||n.signalingState===me.HaveLocalOffer)&&n.signalingStateTransition(e);const s=n;if(this.delegate&&this.delegate.onAccept)this.delegate.onAccept({message:e,session:s,ack:i=>{const o=s.ack(i);return this.confirmedDialogAcks.set(s.id,o),o}});else{const i=s.ack();this.confirmedDialogAcks.set(s.id,i)}}return;case/^3[0-9]{2}$/.test(t):this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});return;case/^[4-6][0-9]{2}$/.test(t):this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});return;default:throw new Error(`Invalid status code ${t}`)}throw new Error(`Executing what should be an unreachable code path receiving ${t} response.`)}},Vl=class extends qr{constructor(e,t,r){super(Xt,e,t,r),this.core=e}dispose(){this.earlyDialog&&this.earlyDialog.dispose(),super.dispose()}accept(e={statusCode:200}){if(!this.acceptable)throw new Rn(`${this.message.method} not acceptable in state ${this.transaction.state}.`);if(!this.confirmedDialog)if(this.earlyDialog)this.earlyDialog.confirm(),this.confirmedDialog=this.earlyDialog,this.earlyDialog=void 0;else{const a=this.transaction;if(!(a instanceof Xt))throw new Error("Transaction not instance of InviteClientTransaction.");const l=qs.initialDialogStateForUserAgentServer(this.message,this.toTag);this.confirmedDialog=new Ko(a,this.core,l)}const t=this.message.getHeaders("record-route").map(a=>`Record-Route: ${a}`),r=`Contact: ${this.core.configuration.contact.toString()}`,n="Allow: "+In.toString();if(!e.body){if(this.confirmedDialog.signalingState===me.Stable)e.body=this.confirmedDialog.answer;else if(this.confirmedDialog.signalingState===me.Initial||this.confirmedDialog.signalingState===me.HaveRemoteOffer)throw new Error("Response must have a body.")}e.statusCode=e.statusCode||200,e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(n),e.extraHeaders.push(r);const s=super.accept(e),i=this.confirmedDialog,o=Object.assign(Object.assign({},s),{session:i});return e.body&&this.confirmedDialog.signalingState!==me.Stable&&this.confirmedDialog.signalingStateTransition(e.body),o}progress(e={statusCode:180}){if(!this.progressable)throw new Rn(`${this.message.method} not progressable in state ${this.transaction.state}.`);if(!this.earlyDialog){const o=this.transaction;if(!(o instanceof Xt))throw new Error("Transaction not instance of InviteClientTransaction.");const a=qs.initialDialogStateForUserAgentServer(this.message,this.toTag,!0);this.earlyDialog=new Ko(o,this.core,a)}const t=this.message.getHeaders("record-route").map(o=>`Record-Route: ${o}`),r=`Contact: ${this.core.configuration.contact}`;e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(r);const n=super.progress(e),s=this.earlyDialog,i=Object.assign(Object.assign({},n),{session:s});return e.body&&this.earlyDialog.signalingState!==me.Stable&&this.earlyDialog.signalingStateTransition(e.body),i}redirect(e,t={statusCode:302}){return super.redirect(e,t)}reject(e={statusCode:486}){return super.reject(e)}},gw=class extends nr{constructor(e,t,r){super(rr,e,t,r)}},vw=class extends nr{constructor(e,t,r){super(rr,e,t,r)}},mw=class extends qr{constructor(e,t,r){super(sr,e,t,r),this.core=e}},ww=class extends nr{constructor(e,t,r){const n=e.createOutgoingRequestMessage(be.SUBSCRIBE,r);super(rr,e.userAgentCore,n,t),this.dialog=e}waitNotifyStop(){}receiveResponse(e){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){const t=e.getHeader("Expires");if(!t)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const r=Number(t);this.dialog.subscriptionExpires>r&&(this.dialog.subscriptionExpires=r)}}e.statusCode&&e.statusCode>=400&&e.statusCode<700&&[404,405,410,416,480,481,482,483,484,485,489,501,604].includes(e.statusCode)&&this.dialog.terminate(),super.receiveResponse(e)}},pp=class extends qs{constructor(e,t,r,n,s,i){super(n,s),this.delegate=i,this._autoRefresh=!1,this._subscriptionEvent=e,this._subscriptionExpires=t,this._subscriptionExpiresInitial=t,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this._subscriptionState=r,this.logger=n.loggerFactory.getLogger("sip.subscribe-dialog"),this.logger.log(`SUBSCRIBE dialog ${this.id} constructed`)}static initialDialogStateForSubscription(e,t){const n=t.getHeaders("record-route"),s=t.parseHeader("contact");if(!s)throw new Error("Contact undefined.");if(!(s instanceof mr))throw new Error("Contact not instance of NameAddrHeader.");const i=s.uri,o=e.cseq,a=void 0,l=e.callId,u=e.fromTag,c=t.fromTag;if(!l)throw new Error("Call id undefined.");if(!u)throw new Error("From tag undefined.");if(!c)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");const d=e.from.uri,p=e.to.uri;return{id:l+u+c,early:!1,callId:l,localTag:u,remoteTag:c,localSequenceNumber:o,remoteSequenceNumber:a,localURI:d,remoteURI:p,remoteTarget:i,routeSet:n,secure:!1}}dispose(){super.dispose(),this.N&&(clearTimeout(this.N),this.N=void 0),this.refreshTimerClear(),this.logger.log(`SUBSCRIBE dialog ${this.id} destroyed`)}get autoRefresh(){return this._autoRefresh}set autoRefresh(e){this._autoRefresh=!0,this.refreshTimerSet()}get subscriptionEvent(){return this._subscriptionEvent}get subscriptionExpires(){const e=Math.floor(Date.now()/1e3)-this._subscriptionExpiresLastSet,t=this._subscriptionExpires-e;return Math.max(t,0)}set subscriptionExpires(e){if(e<0)throw new Error("Expires must be greater than or equal to zero.");if(this._subscriptionExpires=e,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this.autoRefresh){const t=this.subscriptionRefresh;(t===void 0||t>=e)&&this.refreshTimerSet()}}get subscriptionExpiresInitial(){return this._subscriptionExpiresInitial}get subscriptionRefresh(){if(this._subscriptionRefresh===void 0||this._subscriptionRefreshLastSet===void 0)return;const e=Math.floor(Date.now()/1e3)-this._subscriptionRefreshLastSet,t=this._subscriptionRefresh-e;return Math.max(t,0)}get subscriptionState(){return this._subscriptionState}receiveRequest(e){if(this.logger.log(`SUBSCRIBE dialog ${this.id} received ${e.method} request`),!this.sequenceGuard(e)){this.logger.log(`SUBSCRIBE dialog ${this.id} rejected out of order ${e.method} request.`);return}super.receiveRequest(e),e.method===be.NOTIFY?this.onNotify(e):(this.logger.log(`SUBSCRIBE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501}))}refresh(){const e="Allow: "+In.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: "+this.subscriptionExpiresInitial),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}subscribe(e,t={}){var r;if(this.subscriptionState!==Je.Pending&&this.subscriptionState!==Je.Active)throw new Error(`Invalid state ${this.subscriptionState}. May only re-subscribe while in state "pending" or "active".`);this.logger.log(`SUBSCRIBE dialog ${this.id} sending SUBSCRIBE request`);const n=new ww(this,e,t);return this.N&&(clearTimeout(this.N),this.N=void 0),!((r=t.extraHeaders)===null||r===void 0)&&r.includes("Expires: 0")||(this.N=setTimeout(()=>this.timerN(),kt.TIMER_N)),n}terminate(){this.stateTransition(Je.Terminated),this.onTerminated()}unsubscribe(){const e="Allow: "+In.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: 0"),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}onNotify(e){const t=e.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent){this.core.replyStateless(e,{statusCode:489});return}this.N&&(clearTimeout(this.N),this.N=void 0);const r=e.parseHeader("Subscription-State");if(!r||!r.state){this.core.replyStateless(e,{statusCode:489});return}const n=r.state,s=r.expires?Math.max(r.expires,0):void 0;switch(n){case"pending":this.stateTransition(Je.Pending,s);break;case"active":this.stateTransition(Je.Active,s);break;case"terminated":this.stateTransition(Je.Terminated,s);break;default:this.logger.warn("Unrecognized subscription state.");break}const i=new zo(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(i):i.accept()}onRefresh(e){this.delegate&&this.delegate.onRefresh&&this.delegate.onRefresh(e)}onTerminated(){this.delegate&&this.delegate.onTerminated&&this.delegate.onTerminated()}refreshTimerClear(){this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0)}refreshTimerSet(){if(this.refreshTimerClear(),this.autoRefresh&&this.subscriptionExpires>0){const e=this.subscriptionExpires*900;this._subscriptionRefresh=Math.floor(e/1e3),this._subscriptionRefreshLastSet=Math.floor(Date.now()/1e3),this.refreshTimer=setTimeout(()=>{this.refreshTimer=void 0,this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this.onRefresh(this.refresh())},e)}}stateTransition(e,t){const r=()=>{this.logger.warn(`Invalid subscription state transition from ${this.subscriptionState} to ${e}`)};switch(e){case Je.Initial:r();return;case Je.NotifyWait:r();return;case Je.Pending:if(this.subscriptionState!==Je.NotifyWait&&this.subscriptionState!==Je.Pending){r();return}break;case Je.Active:if(this.subscriptionState!==Je.NotifyWait&&this.subscriptionState!==Je.Pending&&this.subscriptionState!==Je.Active){r();return}break;case Je.Terminated:if(this.subscriptionState!==Je.NotifyWait&&this.subscriptionState!==Je.Pending&&this.subscriptionState!==Je.Active){r();return}break;default:r();return}e===Je.Pending&&t&&(this.subscriptionExpires=t),e===Je.Active&&t&&(this.subscriptionExpires=t),e===Je.Terminated&&this.dispose(),this._subscriptionState=e}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE dialog. Timed out waiting for NOTIFY."),this.subscriptionState!==Je.Terminated&&(this.stateTransition(Je.Terminated),this.onTerminated())}},yw=class extends nr{constructor(e,t,r){const n=t.getHeader("Event");if(!n)throw new Error("Event undefined");const s=t.getHeader("Expires");if(!s)throw new Error("Expires undefined");super(rr,e,t,r),this.delegate=r,this.subscriberId=t.callId+t.fromTag+n,this.subscriptionExpiresRequested=this.subscriptionExpires=Number(s),this.subscriptionEvent=n,this.subscriptionState=Je.NotifyWait,this.waitNotifyStart()}dispose(){super.dispose()}onNotify(e){const t=e.message.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent){this.logger.warn("Failed to parse event."),e.reject({statusCode:489});return}const r=e.message.parseHeader("Subscription-State");if(!r||!r.state){this.logger.warn("Failed to parse subscription state."),e.reject({statusCode:489});return}const n=r.state;switch(n){case"pending":break;case"active":break;case"terminated":break;default:this.logger.warn(`Invalid subscription state ${n}`),e.reject({statusCode:489});return}if(n!=="terminated"&&!e.message.parseHeader("contact")){this.logger.warn("Failed to parse contact."),e.reject({statusCode:489});return}if(this.dialog)throw new Error("Dialog already created. This implementation only supports install of single subscriptions.");switch(this.waitNotifyStop(),this.subscriptionExpires=r.expires?Math.min(this.subscriptionExpires,Math.max(r.expires,0)):this.subscriptionExpires,n){case"pending":this.subscriptionState=Je.Pending;break;case"active":this.subscriptionState=Je.Active;break;case"terminated":this.subscriptionState=Je.Terminated;break;default:throw new Error(`Unrecognized state ${n}.`)}if(this.subscriptionState!==Je.Terminated){const s=pp.initialDialogStateForSubscription(this.message,e.message);this.dialog=new pp(this.subscriptionEvent,this.subscriptionExpires,this.subscriptionState,this.core,s)}if(this.delegate&&this.delegate.onNotify){const s=e,i=this.dialog;this.delegate.onNotify({request:s,subscription:i})}else e.accept()}waitNotifyStart(){this.N||(this.core.subscribers.set(this.subscriberId,this),this.N=setTimeout(()=>this.timerN(),kt.TIMER_N))}waitNotifyStop(){this.N&&(this.core.subscribers.delete(this.subscriberId),clearTimeout(this.N),this.N=void 0)}receiveResponse(e){if(this.authenticationGuard(e)){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){const t=e.getHeader("Expires");if(!t)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const r=Number(t);r>this.subscriptionExpiresRequested&&this.logger.warn("Expires header in a 200-class response to SUBSCRIBE with a higher value than the one in the request"),r<this.subscriptionExpires&&(this.subscriptionExpires=r)}this.dialog&&this.dialog.subscriptionExpires>this.subscriptionExpires&&(this.dialog.subscriptionExpires=this.subscriptionExpires)}e.statusCode&&e.statusCode>=300&&e.statusCode<700&&this.waitNotifyStop(),super.receiveResponse(e)}}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE user agent client. Timed out waiting for NOTIFY."),this.waitNotifyStop(),this.delegate&&this.delegate.onNotifyTimeout&&this.delegate.onNotifyTimeout()}},bw=class extends qr{constructor(e,t,r){super(sr,e,t,r),this.core=e}},hp=["application/sdp","application/dtmf-relay"],_w=class{constructor(e,t={}){this.userAgentClients=new Map,this.userAgentServers=new Map,this.configuration=e,this.delegate=t,this.dialogs=new Map,this.subscribers=new Map,this.logger=e.loggerFactory.getLogger("sip.user-agent-core")}dispose(){this.reset()}reset(){this.dialogs.forEach(e=>e.dispose()),this.dialogs.clear(),this.subscribers.forEach(e=>e.dispose()),this.subscribers.clear(),this.userAgentClients.forEach(e=>e.dispose()),this.userAgentClients.clear(),this.userAgentServers.forEach(e=>e.dispose()),this.userAgentServers.clear()}get loggerFactory(){return this.configuration.loggerFactory}get transport(){const e=this.configuration.transportAccessor();if(!e)throw new Error("Transport undefined.");return e}invite(e,t){return new hw(this,e,t)}message(e,t){return new up(this,e,t)}publish(e,t){return new gw(this,e,t)}register(e,t){return new vw(this,e,t)}subscribe(e,t){return new yw(this,e,t)}request(e,t){return new nr(rr,this,e,t)}makeOutgoingRequestMessage(e,t,r,n,s,i,o){const a=this.configuration.sipjsId,l=this.configuration.displayName,u=this.configuration.viaForceRport,c=this.configuration.hackViaTcp,d=this.configuration.supportedOptionTags.slice();e===be.REGISTER&&d.push("path","gruu"),e===be.INVITE&&(this.configuration.contact.pubGruu||this.configuration.contact.tempGruu)&&d.push("gruu");const p={callIdPrefix:a,forceRport:u,fromDisplayName:l,hackViaTcp:c,optionTags:d,routeSet:this.configuration.routeSet,userAgentString:this.configuration.userAgentHeaderFieldValue,viaHost:this.configuration.viaHost};return new Nl(e,t,r,n,Object.assign(Object.assign({},p),s),i,o)}receiveIncomingRequestFromTransport(e){this.receiveRequestFromTransport(e)}receiveIncomingResponseFromTransport(e){this.receiveResponseFromTransport(e)}replyStateless(e,t){const r=this.configuration.userAgentHeaderFieldValue,n=this.configuration.supportedOptionTagsResponse;t=Object.assign(Object.assign({},t),{userAgent:r,supported:n});const s=op(e,t);return this.transport.send(s.message).catch(i=>{i instanceof Error&&this.logger.error(i.message),this.logger.error(`Transport error occurred sending stateless reply to ${e.method} request.`)}),s}receiveRequestFromTransport(e){const t=e.viaBranch,r=this.userAgentServers.get(t);if(e.method===be.ACK&&r&&r.transaction.state===U.Accepted&&r instanceof Vl){this.logger.warn(`Discarding out of dialog ACK after 2xx response sent on transaction ${t}.`);return}if(e.method===be.CANCEL){r?(this.replyStateless(e,{statusCode:200}),r.transaction instanceof Xt&&r.transaction.state===U.Proceeding&&r instanceof Vl&&r.receiveCancel(e)):this.replyStateless(e,{statusCode:481});return}if(r){r.transaction.receiveRequest(e);return}this.receiveRequest(e)}receiveRequest(e){if(!In.includes(e.method)){const n="Allow: "+In.toString();this.replyStateless(e,{statusCode:405,extraHeaders:[n]});return}if(!e.ruri)throw new Error("Request-URI undefined.");if(e.ruri.scheme!=="sip"){this.replyStateless(e,{statusCode:416});return}const t=e.ruri,r=n=>!!n&&n.user===t.user;if(!r(this.configuration.aor)&&!(r(this.configuration.contact.uri)||r(this.configuration.contact.pubGruu)||r(this.configuration.contact.tempGruu))){this.logger.warn("Request-URI does not point to us."),e.method!==be.ACK&&this.replyStateless(e,{statusCode:404});return}if(e.method===be.INVITE&&!e.hasHeader("Contact")){this.replyStateless(e,{statusCode:400,reasonPhrase:"Missing Contact Header"});return}if(!e.toTag){const n=e.viaBranch;if(!this.userAgentServers.has(n)&&Array.from(this.userAgentServers.values()).some(s=>s.transaction.request.fromTag===e.fromTag&&s.transaction.request.callId===e.callId&&s.transaction.request.cseq===e.cseq)){this.replyStateless(e,{statusCode:482});return}}e.toTag?this.receiveInsideDialogRequest(e):this.receiveOutsideDialogRequest(e)}receiveInsideDialogRequest(e){if(e.method===be.NOTIFY){const n=e.parseHeader("Event");if(!n||!n.event){this.replyStateless(e,{statusCode:489});return}const s=e.callId+e.toTag+n.event,i=this.subscribers.get(s);if(i){const o=new zo(this,e);i.onNotify(o);return}}const t=e.callId+e.toTag+e.fromTag,r=this.dialogs.get(t);if(r){if(e.method===be.OPTIONS){const n="Allow: "+In.toString(),s="Accept: "+hp.toString();this.replyStateless(e,{statusCode:200,extraHeaders:[n,s]});return}r.receiveRequest(e);return}e.method!==be.ACK&&this.replyStateless(e,{statusCode:481})}receiveOutsideDialogRequest(e){switch(e.method){case be.ACK:break;case be.BYE:this.replyStateless(e,{statusCode:481});break;case be.CANCEL:throw new Error(`Unexpected out of dialog request method ${e.method}.`);case be.INFO:this.replyStateless(e,{statusCode:405});break;case be.INVITE:{const t=new Vl(this,e);this.delegate.onInvite?this.delegate.onInvite(t):t.reject()}break;case be.MESSAGE:{const t=new dp(this,e);this.delegate.onMessage?this.delegate.onMessage(t):t.accept()}break;case be.NOTIFY:{const t=new zo(this,e);this.delegate.onNotify?this.delegate.onNotify(t):t.reject({statusCode:405})}break;case be.OPTIONS:{const t="Allow: "+In.toString(),r="Accept: "+hp.toString();this.replyStateless(e,{statusCode:200,extraHeaders:[t,r]})}break;case be.REFER:{const t=new fp(this,e);this.delegate.onRefer?this.delegate.onRefer(t):t.reject({statusCode:405})}break;case be.REGISTER:{const t=new mw(this,e);this.delegate.onRegister?this.delegate.onRegister(t):t.reject({statusCode:405})}break;case be.SUBSCRIBE:{const t=new bw(this,e);this.delegate.onSubscribe?this.delegate.onSubscribe(t):t.reject({statusCode:480})}break;default:throw new Error(`Unexpected out of dialog request method ${e.method}.`)}}receiveResponseFromTransport(e){if(e.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response, dropping");return}const t=e.viaBranch+e.method,r=this.userAgentClients.get(t);r?r.transaction.receiveResponse(e):this.logger.warn(`Discarding unmatched ${e.statusCode} response to ${e.method} ${t}.`)}};function Sw(){return e=>!e.audio&&!e.video?Promise.resolve(new MediaStream):navigator.mediaDevices===void 0?Promise.reject(new Error("Media devices not available in insecure contexts.")):navigator.mediaDevices.getUserMedia.call(navigator.mediaDevices,e)}function Cw(){return{bundlePolicy:"balanced",certificates:void 0,iceCandidatePoolSize:0,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require"}}var xw=class zn{constructor(t,r,n){t.debug("SessionDescriptionHandler.constructor"),this.logger=t,this.mediaStreamFactory=r,this.sessionDescriptionHandlerConfiguration=n,this._localMediaStream=new MediaStream,this._remoteMediaStream=new MediaStream,this._peerConnection=new RTCPeerConnection(n?.peerConnectionConfiguration),this.initPeerConnectionEventHandlers()}get localMediaStream(){return this._localMediaStream}get remoteMediaStream(){return this._remoteMediaStream}get dataChannel(){return this._dataChannel}get peerConnection(){return this._peerConnection}get peerConnectionDelegate(){return this._peerConnectionDelegate}set peerConnectionDelegate(t){this._peerConnectionDelegate=t}static dispatchAddTrackEvent(t,r){t.dispatchEvent(new MediaStreamTrackEvent("addtrack",{track:r}))}static dispatchRemoveTrackEvent(t,r){t.dispatchEvent(new MediaStreamTrackEvent("removetrack",{track:r}))}close(){this.logger.debug("SessionDescriptionHandler.close"),this._peerConnection!==void 0&&(this._peerConnection.getReceivers().forEach(t=>{t.track&&t.track.stop()}),this._peerConnection.getSenders().forEach(t=>{t.track&&t.track.stop()}),this._dataChannel&&this._dataChannel.close(),this._peerConnection.close(),this._peerConnection=void 0)}enableReceiverTracks(t){const r=this.peerConnection;if(!r)throw new Error("Peer connection closed.");r.getReceivers().forEach(n=>{n.track&&(n.track.enabled=t)})}enableSenderTracks(t){const r=this.peerConnection;if(!r)throw new Error("Peer connection closed.");r.getSenders().forEach(n=>{n.track&&(n.track.enabled=t)})}getDescription(t,r){var n,s;if(this.logger.debug("SessionDescriptionHandler.getDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=t?.onDataChannel;const i=(n=t?.offerOptions)===null||n===void 0?void 0:n.iceRestart,o=t?.iceGatheringTimeout===void 0?(s=this.sessionDescriptionHandlerConfiguration)===null||s===void 0?void 0:s.iceGatheringTimeout:t?.iceGatheringTimeout;return this.getLocalMediaStream(t).then(()=>this.updateDirection(t)).then(()=>this.createDataChannel(t)).then(()=>this.createLocalOfferOrAnswer(t)).then(a=>this.applyModifiers(a,r)).then(a=>this.setLocalSessionDescription(a)).then(()=>this.waitForIceGatheringComplete(i,o)).then(()=>this.getLocalSessionDescription()).then(a=>({body:a.sdp,contentType:"application/sdp"})).catch(a=>{throw this.logger.error("SessionDescriptionHandler.getDescription failed - "+a),a})}hasDescription(t){return this.logger.debug("SessionDescriptionHandler.hasDescription"),t==="application/sdp"}iceGatheringComplete(){this.logger.debug("SessionDescriptionHandler.iceGatheringComplete"),this.iceGatheringCompleteTimeoutId!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - clearing timeout"),clearTimeout(this.iceGatheringCompleteTimeoutId),this.iceGatheringCompleteTimeoutId=void 0),this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - resolving promise"),this.iceGatheringCompleteResolve&&this.iceGatheringCompleteResolve(),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0)}sendDtmf(t,r){if(this.logger.debug("SessionDescriptionHandler.sendDtmf"),this._peerConnection===void 0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - peer connection closed"),!1;const n=this._peerConnection.getSenders();if(n.length===0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no senders"),!1;const s=n[0].dtmf;if(!s)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no DTMF sender"),!1;const i=r?.duration,o=r?.interToneGap;try{s.insertDTMF(t,i,o)}catch(a){return this.logger.error(a.toString()),!1}return this.logger.log("SessionDescriptionHandler.sendDtmf sent via RTP: "+t.toString()),!0}setDescription(t,r,n){if(this.logger.debug("SessionDescriptionHandler.setDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=r?.onDataChannel;const s=this._peerConnection.signalingState==="have-local-offer"?"answer":"offer";return this.getLocalMediaStream(r).then(()=>this.applyModifiers({sdp:t,type:s},n)).then(i=>this.setRemoteSessionDescription(i)).catch(i=>{throw this.logger.error("SessionDescriptionHandler.setDescription failed - "+i),i})}applyModifiers(t,r){return this.logger.debug("SessionDescriptionHandler.applyModifiers"),!r||r.length===0?Promise.resolve(t):r.reduce((n,s)=>n.then(s),Promise.resolve(t)).then(n=>{if(this.logger.debug("SessionDescriptionHandler.applyModifiers - modified sdp"),!n.sdp||!n.type)throw new Error("Invalid SDP.");return{sdp:n.sdp,type:n.type}})}createDataChannel(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));if(t?.dataChannel!==!0||this._dataChannel)return Promise.resolve();switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.createDataChannel - creating data channel");try{return this._dataChannel=this._peerConnection.createDataChannel(t?.dataChannelLabel||"",t?.dataChannelOptions),this.onDataChannel&&this.onDataChannel(this._dataChannel),Promise.resolve()}catch(r){return Promise.reject(r)}case"have-remote-offer":return Promise.resolve();default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}createLocalOfferOrAnswer(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP offer"),this._peerConnection.createOffer(t?.offerOptions);case"have-remote-offer":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP answer"),this._peerConnection.createAnswer(t?.answerOptions);default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}getLocalMediaStream(t){if(this.logger.debug("SessionDescriptionHandler.getLocalMediaStream"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));let r=Object.assign({},t?.constraints);if(this.localMediaStreamConstraints){if(r.audio=r.audio||this.localMediaStreamConstraints.audio,r.video=r.video||this.localMediaStreamConstraints.video,JSON.stringify(this.localMediaStreamConstraints.audio)===JSON.stringify(r.audio)&&JSON.stringify(this.localMediaStreamConstraints.video)===JSON.stringify(r.video))return Promise.resolve()}else r.audio===void 0&&r.video===void 0&&(r={audio:!0});return this.localMediaStreamConstraints=r,this.mediaStreamFactory(r,this,t).then(n=>this.setLocalMediaStream(n))}setLocalMediaStream(t){if(this.logger.debug("SessionDescriptionHandler.setLocalMediaStream"),!this._peerConnection)throw new Error("Peer connection undefined.");const r=this._peerConnection,n=this._localMediaStream,s=[],i=l=>{const u=l.kind;if(u!=="audio"&&u!=="video")throw new Error(`Unknown new track kind ${u}.`);const c=r.getSenders().find(d=>d.track&&d.track.kind===u);c?s.push(new Promise(d=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - replacing sender ${u} track`),d()}).then(()=>c.replaceTrack(l).then(()=>{const d=n.getTracks().find(p=>p.kind===u);d&&(d.stop(),n.removeTrack(d),zn.dispatchRemoveTrackEvent(n,d)),n.addTrack(l),zn.dispatchAddTrackEvent(n,l)}).catch(d=>{throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to replace sender ${u} track`),d}))):s.push(new Promise(d=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - adding sender ${u} track`),d()}).then(()=>{try{r.addTrack(l,n)}catch(d){throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to add sender ${u} track`),d}n.addTrack(l),zn.dispatchAddTrackEvent(n,l)}))},o=t.getAudioTracks();o.length&&i(o[0]);const a=t.getVideoTracks();return a.length&&i(a[0]),s.reduce((l,u)=>l.then(()=>u),Promise.resolve())}getLocalSessionDescription(){if(this.logger.debug("SessionDescriptionHandler.getLocalSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const t=this._peerConnection.localDescription;return t?Promise.resolve(t):Promise.reject(new Error("Failed to get local session description"))}setLocalSessionDescription(t){return this.logger.debug("SessionDescriptionHandler.setLocalSessionDescription"),this._peerConnection===void 0?Promise.reject(new Error("Peer connection closed.")):this._peerConnection.setLocalDescription(t)}setRemoteSessionDescription(t){if(this.logger.debug("SessionDescriptionHandler.setRemoteSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const r=t.sdp;let n;switch(this._peerConnection.signalingState){case"stable":n="offer";break;case"have-local-offer":n="answer";break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return r?this._peerConnection.setRemoteDescription({sdp:r,type:n}):(this.logger.error("SessionDescriptionHandler.setRemoteSessionDescription failed - cannot set null sdp"),Promise.reject(new Error("SDP is undefined")))}setRemoteTrack(t){this.logger.debug("SessionDescriptionHandler.setRemoteTrack");const r=this._remoteMediaStream;r.getTrackById(t.id)?this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - have remote ${t.kind} track`):t.kind==="audio"?(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${t.kind} track`),r.getAudioTracks().forEach(n=>{n.stop(),r.removeTrack(n),zn.dispatchRemoveTrackEvent(r,n)}),r.addTrack(t),zn.dispatchAddTrackEvent(r,t)):t.kind==="video"&&(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${t.kind} track`),r.getVideoTracks().forEach(n=>{n.stop(),r.removeTrack(n),zn.dispatchRemoveTrackEvent(r,n)}),r.addTrack(t),zn.dispatchAddTrackEvent(r,t))}updateDirection(t){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.updateDirection - setting offer direction");{const r=n=>{switch(n){case"inactive":return t?.hold?"inactive":"recvonly";case"recvonly":return t?.hold?"inactive":"recvonly";case"sendonly":return t?.hold?"sendonly":"sendrecv";case"sendrecv":return t?.hold?"sendonly":"sendrecv";case"stopped":return"stopped";default:throw new Error("Should never happen")}};this._peerConnection.getTransceivers().forEach(n=>{if(n.direction){const s=r(n.direction);n.direction!==s&&(n.direction=s)}})}break;case"have-remote-offer":this.logger.debug("SessionDescriptionHandler.updateDirection - setting answer direction");{const r=(()=>{const s=this._peerConnection.remoteDescription;if(!s)throw new Error("Failed to read remote offer");const i=/a=sendrecv\r\n|a=sendonly\r\n|a=recvonly\r\n|a=inactive\r\n/.exec(s.sdp);if(i)switch(i[0]){case`a=inactive\r
|
|
53
53
|
`:return"inactive";case`a=recvonly\r
|
|
54
54
|
`:return"recvonly";case`a=sendonly\r
|
|
55
55
|
`:return"sendonly";case`a=sendrecv\r
|
|
56
|
-
`:return"sendrecv";default:throw new Error("Should never happen")}return"sendrecv"})(),n=(()=>{switch(r){case"inactive":return"inactive";case"recvonly":return"sendonly";case"sendonly":return t?.hold?"inactive":"recvonly";case"sendrecv":return t?.hold?"sendonly":"sendrecv";default:throw new Error("Should never happen")}})();this._peerConnection.getTransceivers().forEach(s=>{s.direction&&s.direction!=="stopped"&&s.direction!==n&&(s.direction=n)})}break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return Promise.resolve()}waitForIceGatheringComplete(t=!1,r=0){return this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete"),this._peerConnection===void 0?Promise.reject("Peer connection closed."):!t&&this._peerConnection.iceGatheringState==="complete"?(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - already complete"),Promise.resolve()):(this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - rejecting prior waiting promise"),this.iceGatheringCompleteReject&&this.iceGatheringCompleteReject(new Error("Promise superseded.")),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0),this.iceGatheringCompletePromise=new Promise((n,s)=>{this.iceGatheringCompleteResolve=n,this.iceGatheringCompleteReject=s,r>0&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout in "+r),this.iceGatheringCompleteTimeoutId=setTimeout(()=>{this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout"),this.iceGatheringComplete()},r))}),this.iceGatheringCompletePromise)}initPeerConnectionEventHandlers(){if(this.logger.debug("SessionDescriptionHandler.initPeerConnectionEventHandlers"),!this._peerConnection)throw new Error("Peer connection undefined.");const t=this._peerConnection;t.onconnectionstatechange=r=>{var n;const s=t.connectionState;this.logger.debug(`SessionDescriptionHandler.onconnectionstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onconnectionstatechange&&this._peerConnectionDelegate.onconnectionstatechange(r)},t.ondatachannel=r=>{var n;this.logger.debug("SessionDescriptionHandler.ondatachannel"),this._dataChannel=r.channel,this.onDataChannel&&this.onDataChannel(this._dataChannel),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.ondatachannel&&this._peerConnectionDelegate.ondatachannel(r)},t.onicecandidate=r=>{var n;this.logger.debug("SessionDescriptionHandler.onicecandidate"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicecandidate&&this._peerConnectionDelegate.onicecandidate(r)},t.onicecandidateerror=r=>{var n;this.logger.debug("SessionDescriptionHandler.onicecandidateerror"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicecandidateerror&&this._peerConnectionDelegate.onicecandidateerror(r)},t.oniceconnectionstatechange=r=>{var n;const s=t.iceConnectionState;this.logger.debug(`SessionDescriptionHandler.oniceconnectionstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.oniceconnectionstatechange&&this._peerConnectionDelegate.oniceconnectionstatechange(r)},t.onicegatheringstatechange=r=>{var n;const s=t.iceGatheringState;this.logger.debug(`SessionDescriptionHandler.onicegatheringstatechange ${s}`),s==="complete"&&this.iceGatheringComplete(),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicegatheringstatechange&&this._peerConnectionDelegate.onicegatheringstatechange(r)},t.onnegotiationneeded=r=>{var n;this.logger.debug("SessionDescriptionHandler.onnegotiationneeded"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onnegotiationneeded&&this._peerConnectionDelegate.onnegotiationneeded(r)},t.onsignalingstatechange=r=>{var n;const s=t.signalingState;this.logger.debug(`SessionDescriptionHandler.onsignalingstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onsignalingstatechange&&this._peerConnectionDelegate.onsignalingstatechange(r)},t.ontrack=r=>{var n;const s=r.track.kind,i=r.track.enabled?"enabled":"disabled";this.logger.debug(`SessionDescriptionHandler.ontrack ${s} ${i}`),this.setRemoteTrack(r.track),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.ontrack&&this._peerConnectionDelegate.ontrack(r)}}};function
|
|
56
|
+
`:return"sendrecv";default:throw new Error("Should never happen")}return"sendrecv"})(),n=(()=>{switch(r){case"inactive":return"inactive";case"recvonly":return"sendonly";case"sendonly":return t?.hold?"inactive":"recvonly";case"sendrecv":return t?.hold?"sendonly":"sendrecv";default:throw new Error("Should never happen")}})();this._peerConnection.getTransceivers().forEach(s=>{s.direction&&s.direction!=="stopped"&&s.direction!==n&&(s.direction=n)})}break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return Promise.resolve()}waitForIceGatheringComplete(t=!1,r=0){return this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete"),this._peerConnection===void 0?Promise.reject("Peer connection closed."):!t&&this._peerConnection.iceGatheringState==="complete"?(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - already complete"),Promise.resolve()):(this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - rejecting prior waiting promise"),this.iceGatheringCompleteReject&&this.iceGatheringCompleteReject(new Error("Promise superseded.")),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0),this.iceGatheringCompletePromise=new Promise((n,s)=>{this.iceGatheringCompleteResolve=n,this.iceGatheringCompleteReject=s,r>0&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout in "+r),this.iceGatheringCompleteTimeoutId=setTimeout(()=>{this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout"),this.iceGatheringComplete()},r))}),this.iceGatheringCompletePromise)}initPeerConnectionEventHandlers(){if(this.logger.debug("SessionDescriptionHandler.initPeerConnectionEventHandlers"),!this._peerConnection)throw new Error("Peer connection undefined.");const t=this._peerConnection;t.onconnectionstatechange=r=>{var n;const s=t.connectionState;this.logger.debug(`SessionDescriptionHandler.onconnectionstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onconnectionstatechange&&this._peerConnectionDelegate.onconnectionstatechange(r)},t.ondatachannel=r=>{var n;this.logger.debug("SessionDescriptionHandler.ondatachannel"),this._dataChannel=r.channel,this.onDataChannel&&this.onDataChannel(this._dataChannel),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.ondatachannel&&this._peerConnectionDelegate.ondatachannel(r)},t.onicecandidate=r=>{var n;this.logger.debug("SessionDescriptionHandler.onicecandidate"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicecandidate&&this._peerConnectionDelegate.onicecandidate(r)},t.onicecandidateerror=r=>{var n;this.logger.debug("SessionDescriptionHandler.onicecandidateerror"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicecandidateerror&&this._peerConnectionDelegate.onicecandidateerror(r)},t.oniceconnectionstatechange=r=>{var n;const s=t.iceConnectionState;this.logger.debug(`SessionDescriptionHandler.oniceconnectionstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.oniceconnectionstatechange&&this._peerConnectionDelegate.oniceconnectionstatechange(r)},t.onicegatheringstatechange=r=>{var n;const s=t.iceGatheringState;this.logger.debug(`SessionDescriptionHandler.onicegatheringstatechange ${s}`),s==="complete"&&this.iceGatheringComplete(),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onicegatheringstatechange&&this._peerConnectionDelegate.onicegatheringstatechange(r)},t.onnegotiationneeded=r=>{var n;this.logger.debug("SessionDescriptionHandler.onnegotiationneeded"),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onnegotiationneeded&&this._peerConnectionDelegate.onnegotiationneeded(r)},t.onsignalingstatechange=r=>{var n;const s=t.signalingState;this.logger.debug(`SessionDescriptionHandler.onsignalingstatechange ${s}`),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.onsignalingstatechange&&this._peerConnectionDelegate.onsignalingstatechange(r)},t.ontrack=r=>{var n;const s=r.track.kind,i=r.track.enabled?"enabled":"disabled";this.logger.debug(`SessionDescriptionHandler.ontrack ${s} ${i}`),this.setRemoteTrack(r.track),!((n=this._peerConnectionDelegate)===null||n===void 0)&&n.ontrack&&this._peerConnectionDelegate.ontrack(r)}}};function Tw(e){return(t,r)=>{e===void 0&&(e=Sw());const n={iceGatheringTimeout:r?.iceGatheringTimeout!==void 0?r?.iceGatheringTimeout:5e3,peerConnectionConfiguration:Object.assign(Object.assign({},Cw()),r?.peerConnectionConfiguration)};return new xw(t.userAgent.getLogger("sip.SessionDescriptionHandler"),e,n)}}var gp=class Tg{constructor(t,r){if(this._state=Ee.Disconnected,this.transitioningState=!1,this._stateEventEmitter=new Hs,this.logger=t,r){const i=r,o=i?.wsServers,a=i?.maxReconnectionAttempts;o!==void 0&&this.logger.warn('The transport option "wsServers" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),a!==void 0&&this.logger.warn('The transport option "maxReconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),o&&!r.server&&(typeof o=="string"&&(r.server=o),o instanceof Array&&(r.server=o[0]))}this.configuration=Object.assign(Object.assign({},Tg.defaultOptions),r);const n=this.configuration.server,s=Tt.parse(n,"absoluteURI");if(s===-1)throw this.logger.error(`Invalid WebSocket Server URL "${n}"`),new Error("Invalid WebSocket Server URL");if(!["wss","ws","udp"].includes(s.scheme))throw this.logger.error(`Invalid scheme in WebSocket Server URL "${n}"`),new Error("Invalid scheme in WebSocket Server URL");this._protocol=s.scheme.toUpperCase()}dispose(){return this.disconnect()}get protocol(){return this._protocol}get server(){return this.configuration.server}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get ws(){return this._ws}connect(){return this._connect()}disconnect(){return this._disconnect()}isConnected(){return this.state===Ee.Connected}send(t){return this._send(t)}_connect(){switch(this.logger.log(`Connecting ${this.server}`),this.state){case Ee.Connecting:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(Ee.Connecting));if(!this.connectPromise)throw new Error("Connect promise must be defined.");return this.connectPromise;case Ee.Connected:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(Ee.Connecting));if(this.connectPromise)throw new Error("Connect promise must not be defined.");return Promise.resolve();case Ee.Disconnecting:if(this.connectPromise)throw new Error("Connect promise must not be defined.");try{this.transitionState(Ee.Connecting)}catch(r){if(r instanceof Ai)return Promise.reject(r);throw r}break;case Ee.Disconnected:if(this.connectPromise)throw new Error("Connect promise must not be defined.");try{this.transitionState(Ee.Connecting)}catch(r){if(r instanceof Ai)return Promise.reject(r);throw r}break;default:throw new Error("Unknown state")}let t;try{t=new WebSocket(this.server,"sip"),t.binaryType="arraybuffer",t.addEventListener("close",r=>this.onWebSocketClose(r,t)),t.addEventListener("error",r=>this.onWebSocketError(r,t)),t.addEventListener("open",r=>this.onWebSocketOpen(r,t)),t.addEventListener("message",r=>this.onWebSocketMessage(r,t)),this._ws=t}catch(r){return this._ws=void 0,this.logger.error("WebSocket construction failed."),this.logger.error(r.toString()),new Promise((n,s)=>{this.connectResolve=n,this.connectReject=s,this.transitionState(Ee.Disconnected,r)})}return this.connectPromise=new Promise((r,n)=>{this.connectResolve=r,this.connectReject=n,this.connectTimeout=setTimeout(()=>{this.logger.warn("Connect timed out. Exceeded time set in configuration.connectionTimeout: "+this.configuration.connectionTimeout+"s."),t.close(1e3)},this.configuration.connectionTimeout*1e3)}),this.connectPromise}_disconnect(){switch(this.logger.log(`Disconnecting ${this.server}`),this.state){case Ee.Connecting:if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");try{this.transitionState(Ee.Disconnecting)}catch(r){if(r instanceof Ai)return Promise.reject(r);throw r}break;case Ee.Connected:if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");try{this.transitionState(Ee.Disconnecting)}catch(r){if(r instanceof Ai)return Promise.reject(r);throw r}break;case Ee.Disconnecting:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(Ee.Disconnecting));if(!this.disconnectPromise)throw new Error("Disconnect promise must be defined.");return this.disconnectPromise;case Ee.Disconnected:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(Ee.Disconnecting));if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");return Promise.resolve();default:throw new Error("Unknown state")}if(!this._ws)throw new Error("WebSocket must be defined.");const t=this._ws;return this.disconnectPromise=new Promise((r,n)=>{this.disconnectResolve=r,this.disconnectReject=n;try{t.close(1e3)}catch(s){throw this.logger.error("WebSocket close failed."),this.logger.error(s.toString()),s}}),this.disconnectPromise}_send(t){if(this.configuration.traceSip===!0&&this.logger.log(`Sending WebSocket message:
|
|
57
57
|
|
|
58
58
|
`+t+`
|
|
59
|
-
`),this._state!==
|
|
59
|
+
`),this._state!==Ee.Connected)return Promise.reject(new Error("Not connected."));if(!this._ws)throw new Error("WebSocket undefined.");try{this._ws.send(t)}catch(r){return r instanceof Error?Promise.reject(r):Promise.reject(new Error("WebSocket send failed."))}return Promise.resolve()}onWebSocketClose(t,r){if(r!==this._ws)return;const n=`WebSocket closed ${this.server} (code: ${t.code})`,s=this.disconnectPromise?void 0:new Error(n);s&&this.logger.warn("WebSocket closed unexpectedly"),this.logger.log(n),this._ws=void 0,this.transitionState(Ee.Disconnected,s)}onWebSocketError(t,r){r===this._ws&&this.logger.error("WebSocket error occurred.")}onWebSocketMessage(t,r){if(r!==this._ws)return;const n=t.data;let s;if(/^(\r\n)+$/.test(n)){this.clearKeepAliveTimeout(),this.configuration.traceSip===!0&&this.logger.log("Received WebSocket message with CRLF Keep Alive response");return}if(!n){this.logger.warn("Received empty message, discarding...");return}if(typeof n!="string"){try{s=new TextDecoder().decode(new Uint8Array(n))}catch(i){this.logger.error(i.toString()),this.logger.error("Received WebSocket binary message failed to be converted into string, message discarded");return}this.configuration.traceSip===!0&&this.logger.log(`Received WebSocket binary message:
|
|
60
60
|
|
|
61
61
|
`+s+`
|
|
62
62
|
`)}else s=n,this.configuration.traceSip===!0&&this.logger.log(`Received WebSocket text message:
|
|
63
63
|
|
|
64
64
|
`+s+`
|
|
65
|
-
`);if(this.state!==
|
|
65
|
+
`);if(this.state!==Ee.Connected){this.logger.warn("Received message while not connected, discarding...");return}if(this.onMessage)try{this.onMessage(s)}catch(i){throw this.logger.error(i.toString()),this.logger.error("Exception thrown by onMessage callback"),i}}onWebSocketOpen(t,r){r===this._ws&&this._state===Ee.Connecting&&(this.logger.log(`WebSocket opened ${this.server}`),this.transitionState(Ee.Connected))}transitionLoopDetectedError(t){let r="A state transition loop has been detected.";return r+=` An attempt to transition from ${this._state} to ${t} before the prior transition completed.`,r+=" Perhaps you are synchronously calling connect() or disconnect() from a callback or state change handler?",this.logger.error(r),new Ai("Loop detected.")}transitionState(t,r){const n=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};if(this.transitioningState)throw this.transitionLoopDetectedError(t);switch(this.transitioningState=!0,this._state){case Ee.Connecting:t!==Ee.Connected&&t!==Ee.Disconnecting&&t!==Ee.Disconnected&&n();break;case Ee.Connected:t!==Ee.Disconnecting&&t!==Ee.Disconnected&&n();break;case Ee.Disconnecting:t!==Ee.Connecting&&t!==Ee.Disconnected&&n();break;case Ee.Disconnected:t!==Ee.Connecting&&n();break;default:throw new Error("Unknown state.")}const s=this._state;this._state=t;const i=this.connectResolve,o=this.connectReject;s===Ee.Connecting&&(this.connectPromise=void 0,this.connectResolve=void 0,this.connectReject=void 0);const a=this.disconnectResolve,l=this.disconnectReject;if(s===Ee.Disconnecting&&(this.disconnectPromise=void 0,this.disconnectResolve=void 0,this.disconnectReject=void 0),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0),this.logger.log(`Transitioned from ${s} to ${this._state}`),this._stateEventEmitter.emit(this._state),t===Ee.Connected&&(this.startSendingKeepAlives(),this.onConnect))try{this.onConnect()}catch(u){throw this.logger.error(u.toString()),this.logger.error("Exception thrown by onConnect callback"),u}if(s===Ee.Connected&&(this.stopSendingKeepAlives(),this.onDisconnect))try{r?this.onDisconnect(r):this.onDisconnect()}catch(u){throw this.logger.error(u.toString()),this.logger.error("Exception thrown by onDisconnect callback"),u}if(s===Ee.Connecting){if(!i)throw new Error("Connect resolve undefined.");if(!o)throw new Error("Connect reject undefined.");t===Ee.Connected?i():o(r||new Error("Connect aborted."))}if(s===Ee.Disconnecting){if(!a)throw new Error("Disconnect resolve undefined.");if(!l)throw new Error("Disconnect reject undefined.");t===Ee.Disconnected?a():l(r||new Error("Disconnect aborted."))}this.transitioningState=!1}clearKeepAliveTimeout(){this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveDebounceTimeout=void 0}sendKeepAlive(){return this.keepAliveDebounceTimeout?Promise.resolve():(this.keepAliveDebounceTimeout=setTimeout(()=>{this.clearKeepAliveTimeout()},this.configuration.keepAliveDebounce*1e3),this.send(`\r
|
|
66
66
|
\r
|
|
67
|
-
`))}startSendingKeepAlives(){const t=r=>{const n=r*.8;return 1e3*(Math.random()*(r-n)+n)};this.configuration.keepAliveInterval&&!this.keepAliveInterval&&(this.keepAliveInterval=setInterval(()=>{this.sendKeepAlive(),this.startSendingKeepAlives()},t(this.configuration.keepAliveInterval)))}stopSendingKeepAlives(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveInterval=void 0,this.keepAliveDebounceTimeout=void 0}};fp.defaultOptions={server:"",connectionTimeout:5,keepAliveInterval:0,keepAliveDebounce:10,traceSip:!0};var Pn=class _a{constructor(t={}){if(this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this._state=Pt.Stopped,this._stateEventEmitter=new Ci,this.delegate=t.delegate,this.options=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_a.defaultOptions()),{sipjsId:ns(5)}),{uri:new Tn("sip","anonymous."+ns(6),"anonymous.invalid")}),{viaHost:ns(12)+".invalid"}),_a.stripUndefinedProperties(t)),this.options.hackIpInContact)if(typeof this.options.hackIpInContact=="boolean"&&this.options.hackIpInContact){const n=Math.floor(Math.random()*254+1);this.options.viaHost="192.0.2."+n}else this.options.hackIpInContact&&(this.options.viaHost=this.options.hackIpInContact);switch(this.loggerFactory=new Q0,this.logger=this.loggerFactory.getLogger("sip.UserAgent"),this.loggerFactory.builtinEnabled=this.options.logBuiltinEnabled,this.loggerFactory.connector=this.options.logConnector,this.options.logLevel){case"error":this.loggerFactory.level=Rt.error;break;case"warn":this.loggerFactory.level=Rt.warn;break;case"log":this.loggerFactory.level=Rt.log;break;case"debug":this.loggerFactory.level=Rt.debug;break;default:break}if(this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(r=>{const n=this.options[r];switch(r){case"uri":case"sessionDescriptionHandlerFactory":this.logger.log("· "+r+": "+n);break;case"authorizationPassword":this.logger.log("· "+r+": NOT SHOWN");break;case"transportConstructor":this.logger.log("· "+r+": "+n.name);break;default:this.logger.log("· "+r+": "+JSON.stringify(n))}})),this.options.transportOptions){const r=this.options.transportOptions,n=r.maxReconnectionAttempts,s=r.reconnectionTimeout;n!==void 0&&this.logger.warn('The transport option "maxReconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),s!==void 0&&this.logger.warn('The transport option "reconnectionTimeout" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),t.reconnectionDelay===void 0&&s!==void 0&&(this.options.reconnectionDelay=s),t.reconnectionAttempts===void 0&&n!==void 0&&(this.options.reconnectionAttempts=n)}if(t.reconnectionDelay!==void 0&&this.logger.warn('The user agent option "reconnectionDelay" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),t.reconnectionAttempts!==void 0&&this.logger.warn('The user agent option "reconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),this._transport=new this.options.transportConstructor(this.getLogger("sip.Transport"),this.options.transportOptions),this.initTransportCallbacks(),this._contact=this.initContact(),this._instanceId=this.options.instanceId?this.options.instanceId:_a.newUUID(),Tt.parse(this._instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");this._userAgentCore=this.initCore()}static makeURI(t){return Tt.URIParse(t)}static defaultOptions(){return{allowLegacyNotifications:!1,authorizationHa1:"",authorizationPassword:"",authorizationUsername:"",delegate:{},contactName:"",contactParams:{transport:"ws"},displayName:"",forceRport:!1,gracefulShutdown:!0,hackAllowUnregisteredOptionTags:!1,hackIpInContact:!1,hackViaTcp:!1,instanceId:"",instanceIdAlwaysAdded:!1,logBuiltinEnabled:!0,logConfiguration:!0,logConnector:()=>{},logLevel:"log",noAnswerTimeout:60,preloadedRouteSet:[],reconnectionAttempts:0,reconnectionDelay:4,sendInitialProvisionalResponse:!0,sessionDescriptionHandlerFactory:Cw(),sessionDescriptionHandlerFactoryOptions:{},sipExtension100rel:Ar.Unsupported,sipExtensionReplaces:Ar.Unsupported,sipExtensionExtraSupported:[],sipjsId:"",transportConstructor:fp,transportOptions:{},uri:new Tn("sip","anonymous","anonymous.invalid"),userAgentString:"SIP.js/"+L0,viaHost:""}}static newUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=Math.floor(Math.random()*16);return(t==="x"?r:r%4+8).toString(16)})}static stripUndefinedProperties(t){return Object.keys(t).reduce((r,n)=>(t[n]!==void 0&&(r[n]=t[n]),r),{})}get configuration(){return this.options}get contact(){return this._contact}get instanceId(){return this._instanceId}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get transport(){return this._transport}get userAgentCore(){return this._userAgentCore}getLogger(t,r){return this.loggerFactory.getLogger(t,r)}getLoggerFactory(){return this.loggerFactory}isConnected(){return this.transport.isConnected()}reconnect(){return this.state===Pt.Stopped?Promise.reject(new Error("User agent stopped.")):Promise.resolve().then(()=>this.transport.connect())}start(){return this.state===Pt.Started?(this.logger.warn("User agent already started"),Promise.resolve()):(this.logger.log(`Starting ${this.configuration.uri}`),this.transitionState(Pt.Started),this.transport.connect())}async stop(){if(this.state===Pt.Stopped)return this.logger.warn("User agent already stopped"),Promise.resolve();if(this.logger.log(`Stopping ${this.configuration.uri}`),!this.options.gracefulShutdown)return this.logger.log("Dispose of transport"),this.transport.dispose().catch(a=>{throw this.logger.error(a.message),a}),this.logger.log("Dispose of core"),this.userAgentCore.dispose(),this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this.transitionState(Pt.Stopped),Promise.resolve();const t=Object.assign({},this._publishers),r=Object.assign({},this._registerers),n=Object.assign({},this._sessions),s=Object.assign({},this._subscriptions),i=this.transport,o=this.userAgentCore;this.logger.log("Dispose of registerers");for(const a in r)r[a]&&await r[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._registerers[a],l});this.logger.log("Dispose of sessions");for(const a in n)n[a]&&await n[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._sessions[a],l});this.logger.log("Dispose of subscriptions");for(const a in s)s[a]&&await s[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._subscriptions[a],l});this.logger.log("Dispose of publishers");for(const a in t)t[a]&&await t[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._publishers[a],l});this.logger.log("Dispose of transport"),await i.dispose().catch(a=>{throw this.logger.error(a.message),a}),this.logger.log("Dispose of core"),o.dispose(),this.transitionState(Pt.Stopped)}_makeInviter(t,r){return new Mo(this,t,r)}attemptReconnection(t=1){const r=this.options.reconnectionAttempts,n=this.options.reconnectionDelay;if(t>r){this.logger.log("Maximum reconnection attempts reached");return}this.logger.log(`Reconnection attempt ${t} of ${r} - trying`),setTimeout(()=>{this.reconnect().then(()=>{this.logger.log(`Reconnection attempt ${t} of ${r} - succeeded`)}).catch(s=>{this.logger.error(s.message),this.logger.log(`Reconnection attempt ${t} of ${r} - failed`),this.attemptReconnection(++t)})},t===1?0:n*1e3)}initContact(){const t=this.options.contactName!==""?this.options.contactName:ns(8),r=this.options.contactParams;return{pubGruu:void 0,tempGruu:void 0,uri:new Tn("sip",t,this.options.viaHost,void 0,r),toString:(n={})=>{const s=n.anonymous||!1,i=n.outbound||!1,o=n.register||!1;let a="<";return s?a+=this.contact.tempGruu||`sip:anonymous@anonymous.invalid;transport=${r.transport?r.transport:"ws"}`:o?a+=this.contact.uri:a+=this.contact.pubGruu||this.contact.uri,i&&(a+=";ob"),a+=">",this.options.instanceIdAlwaysAdded&&(a+=';+sip.instance="<urn:uuid:'+this._instanceId+'>"'),a}}}initCore(){let t=[];t.push("outbound"),this.options.sipExtension100rel===Ar.Supported&&t.push("100rel"),this.options.sipExtensionReplaces===Ar.Supported&&t.push("replaces"),this.options.sipExtensionExtraSupported&&t.push(...this.options.sipExtensionExtraSupported),this.options.hackAllowUnregisteredOptionTags||(t=t.filter(n=>Z0[n])),t=Array.from(new Set(t));const r=t.slice();return(this.contact.pubGruu||this.contact.tempGruu)&&r.push("gruu"),new yw({aor:this.options.uri,contact:this.contact,displayName:this.options.displayName,loggerFactory:this.loggerFactory,hackViaTcp:this.options.hackViaTcp,routeSet:this.options.preloadedRouteSet,supportedOptionTags:t,supportedOptionTagsResponse:r,sipjsId:this.options.sipjsId,userAgentHeaderFieldValue:this.options.userAgentString,viaForceRport:this.options.forceRport,viaHost:this.options.viaHost,authenticationFactory:()=>{const n=this.options.authorizationUsername?this.options.authorizationUsername:this.options.uri.user,s=this.options.authorizationPassword?this.options.authorizationPassword:void 0,i=this.options.authorizationHa1?this.options.authorizationHa1:void 0;return new X0(this.getLoggerFactory(),i,n,s)},transportAccessor:()=>this.transport},{onInvite:n=>{var s;const i=new Hs(this,n);if(n.delegate={onCancel:o=>{i._onCancel(o)},onTransportError:o=>{this.logger.error("A transport error has occurred while handling an incoming INVITE request.")}},n.trying(),this.options.sipExtensionReplaces!==Ar.Unsupported){const o=n.message.parseHeader("replaces");if(o){const a=o.call_id;if(typeof a!="string")throw new Error("Type of call id is not string");const l=o.replaces_to_tag;if(typeof l!="string")throw new Error("Type of to tag is not string");const u=o.replaces_from_tag;if(typeof u!="string")throw new Error("type of from tag is not string");const c=a+l+u,d=this.userAgentCore.dialogs.get(c);if(!d){i.reject({statusCode:481});return}if(!d.early&&o.early_only===!0){i.reject({statusCode:486});return}const p=this._sessions[a+u]||this._sessions[a+l]||void 0;if(!p)throw new Error("Session does not exist.");i._replacee=p}}if(!((s=this.delegate)===null||s===void 0)&&s.onInvite){if(i.autoSendAnInitialProvisionalResponse){i.progress().then(()=>{var o;if(((o=this.delegate)===null||o===void 0?void 0:o.onInvite)===void 0)throw new Error("onInvite undefined.");this.delegate.onInvite(i)});return}this.delegate.onInvite(i);return}i.reject({statusCode:486})},onMessage:n=>{if(this.delegate&&this.delegate.onMessage){const s=new tp(n);this.delegate.onMessage(s)}else n.accept()},onNotify:n=>{if(this.delegate&&this.delegate.onNotify){const s=new Ml(n);this.delegate.onNotify(s)}else this.options.allowLegacyNotifications?n.accept():n.reject({statusCode:481})},onRefer:n=>{this.logger.warn("Received an out of dialog REFER request"),this.delegate&&this.delegate.onReferRequest?this.delegate.onReferRequest(n):n.reject({statusCode:405})},onRegister:n=>{this.logger.warn("Received an out of dialog REGISTER request"),this.delegate&&this.delegate.onRegisterRequest?this.delegate.onRegisterRequest(n):n.reject({statusCode:405})},onSubscribe:n=>{this.logger.warn("Received an out of dialog SUBSCRIBE request"),this.delegate&&this.delegate.onSubscribeRequest?this.delegate.onSubscribeRequest(n):n.reject({statusCode:405})}})}initTransportCallbacks(){this.transport.onConnect=()=>this.onTransportConnect(),this.transport.onDisconnect=t=>this.onTransportDisconnect(t),this.transport.onMessage=t=>this.onTransportMessage(t)}onTransportConnect(){this.state!==Pt.Stopped&&this.delegate&&this.delegate.onConnect&&this.delegate.onConnect()}onTransportDisconnect(t){this.state!==Pt.Stopped&&(this.delegate&&this.delegate.onDisconnect&&this.delegate.onDisconnect(t),t&&this.options.reconnectionAttempts>0&&this.attemptReconnection())}onTransportMessage(t){const r=No.parseMessage(t,this.getLogger("sip.Parser"));if(!r){this.logger.warn("Failed to parse incoming message. Dropping.");return}if(this.state===Pt.Stopped&&r instanceof Os){this.logger.warn(`Received ${r.method} request while stopped. Dropping.`);return}const n=()=>{for(const s of["from","to","call_id","cseq","via"])if(!r.hasHeader(s))return this.logger.warn(`Missing mandatory header field : ${s}.`),!1;return!0};if(r instanceof Os){if(!n()){this.logger.warn("Request missing mandatory header field. Dropping.");return}if(!r.toTag&&r.callId.substr(0,5)===this.options.sipjsId){this.userAgentCore.replyStateless(r,{statusCode:482});return}const s=xi(r.body),i=r.getHeader("content-length");if(i&&s<Number(i)){this.userAgentCore.replyStateless(r,{statusCode:400});return}}if(r instanceof En){if(!n()){this.logger.warn("Response missing mandatory header field. Dropping.");return}if(r.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response. Dropping.");return}if(r.via.host!==this.options.viaHost||r.via.port!==void 0){this.logger.warn("Via sent-by in the response does not match UA Via host value. Dropping.");return}const s=xi(r.body),i=r.getHeader("content-length");if(i&&s<Number(i)){this.logger.warn("Message body length is lower than the value in Content-Length header field. Dropping.");return}}if(r instanceof Os){this.userAgentCore.receiveIncomingRequestFromTransport(r);return}if(r instanceof En){this.userAgentCore.receiveIncomingResponseFromTransport(r);return}throw new Error("Invalid message type.")}transitionState(t,r){const n=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case Pt.Started:t!==Pt.Stopped&&n();break;case Pt.Stopped:t!==Pt.Started&&n();break;default:throw new Error("Unknown state.")}this.logger.log(`Transitioned from ${this._state} to ${t}`),this._state=t,this._stateEventEmitter.emit(this._state)}},lt=new window.AudioContext,xw={1:[697,1209],2:[697,1336],3:[697,1477],A:[697,1633],4:[770,1209],5:[770,1336],6:[770,1477],B:[770,1633],7:[852,1209],8:[852,1336],9:[852,1477],C:[852,1633],"*":[941,1209],0:[941,1336],"#":[941,1477],D:[941,1633]},Lo=V(null),Fo=V(null),Ei=V(null),Ai=V(.5),Vo=V(1),Fl=V("original"),jo=V(!1),ki={original:{frequencies:[523.25,659.25,783.99],type:"sine",originalMelody:!0,gain:.7,duration:.5,repeatDelay:400},aurora:{frequencies:[523.25,659.25,783.99,1046.5],type:"sine",originalMelody:!0,gain:.85,duration:.55,repeatDelay:400},resonancia:{frequencies:[392,523.25,659.25,783.99],type:"triangle",originalMelody:!0,gain:1,duration:.6,repeatDelay:400}};const pp=()=>{const e={classic:"original","original-loud":"aurora","original-intense":"resonancia"},t=d=>{Ai.value=Math.max(0,Math.min(1,d/100))},r=d=>{Vo.value=Math.max(0,Math.min(1,d/100))},n=()=>{jo.value&&(l(),a())},s=d=>{const p=e[d]??d;Fl.value=ki[p]?p:"original",n()},i=(d,p=150)=>{lt.state==="suspended"&<.resume();const h=xw[d.toUpperCase()];if(!h)return;const g=lt.createOscillator(),w=lt.createOscillator(),T=lt.createGain();g.frequency.value=h[0],w.frequency.value=h[1],g.type="sine",w.type="sine",T.gain.value=.1*Ai.value,g.connect(T),w.connect(T),T.connect(lt.destination),g.start(),w.start(),setTimeout(()=>{g.stop(),w.stop(),g.disconnect(),w.disconnect(),T.disconnect()},p)},o=async(d=500)=>{if(lt.state==="suspended")try{await lt.resume()}catch{}const p=lt.createOscillator(),h=lt.createGain(),g=lt.currentTime;p.type="sine",p.frequency.value=600;const w=.02,T=.1,v=.75*Ai.value;h.gain.setValueAtTime(0,g),h.gain.linearRampToValueAtTime(v,g+w),h.gain.setValueAtTime(v,g+d/1e3-T),h.gain.linearRampToValueAtTime(0,g+d/1e3),p.connect(h),h.connect(lt.destination),p.start(g),p.stop(g+d/1e3),await new Promise(S=>window.setTimeout(S,d))},a=()=>{if(jo.value)return;jo.value=!0,lt.state==="suspended"&<.resume();const d=()=>{const h=lt.currentTime,g=ki[Fl.value]||ki.original,w=lt.createGain(),T=g.duration,v=(g.originalMelody?[g.frequencies[0]]:g.frequencies).map(S=>{const y=lt.createOscillator();return y.type=g.type,y.frequency.setValueAtTime(S,h),g.originalMelody&&g.frequencies.slice(1).forEach((_,E)=>{y.frequency.setValueAtTime(_,h+(E+1)*.1)}),y.connect(w),y});g.originalMelody?(w.gain.setValueAtTime(g.gain*Vo.value,h),w.gain.exponentialRampToValueAtTime(.001,h+T)):(w.gain.setValueAtTime(0,h),w.gain.linearRampToValueAtTime(.7*Vo.value,h+.02),w.gain.setValueAtTime(.7*Vo.value,h+1.05),w.gain.linearRampToValueAtTime(0,h+T)),w.connect(lt.destination),v.forEach(S=>{S.start(h),S.stop(h+T)})},p=()=>{const h=ki[Fl.value]||ki.original;Fo.value=window.setTimeout(d,h.repeatDelay)};d(),p(),Lo.value=window.setInterval(()=>{d(),p()},3e3)},l=()=>{Lo.value&&(clearInterval(Lo.value),Lo.value=null),Fo.value&&(clearTimeout(Fo.value),Fo.value=null),jo.value=!1};return{playDtmf:i,playAutoAnswerBeep:o,startRingtone:a,stopRingtone:l,startRingback:()=>{if(Ei.value)return;lt.state==="suspended"&<.resume();const d=()=>{const p=lt.currentTime,h=lt.createOscillator(),g=lt.createGain();h.type="sine",h.frequency.value=425,g.gain.setValueAtTime(.1*Ai.value,p),g.gain.linearRampToValueAtTime(.1*Ai.value,p+1),g.gain.linearRampToValueAtTime(0,p+1.1),h.connect(g),g.connect(lt.destination),h.start(p),h.stop(p+1.1)};d(),Ei.value=window.setInterval(()=>{d()},4e3)},stopRingback:()=>{Ei.value&&(clearInterval(Ei.value),Ei.value=null)},setNotificationVolume:t,setRingtoneVolume:r,setRingtoneTone:s}};function hp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=hp(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gp(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=hp(e))&&(n&&(n+=" "),n+=t);return n}var Tw=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},Ew=(e,t)=>({classGroupId:e,validator:t}),vp=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Uo="-",mp=[],Aw="arbitrary..",kw=e=>{const t=Iw(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Rw(o);const a=o.split(Uo);return wp(a,a[0]===""&&a.length>1?1:0,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=n[o],u=r[o];return l?u?Tw(u,l):l:u||mp}return r[o]||mp}}},wp=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],s=r.nextPart.get(n);if(s){const l=wp(e,t+1,s);if(l)return l}const i=r.validators;if(i===null)return;const o=t===0?e.join(Uo):e.slice(t).join(Uo),a=i.length;for(let l=0;l<a;l++){const u=i[l];if(u.validator(o))return u.classGroupId}},Rw=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Aw+n:void 0})(),Iw=e=>{const{theme:t,classGroups:r}=e;return $w(r,t)},$w=(e,t)=>{const r=vp();for(const n in e){const s=e[n];Vl(s,r,n,t)}return r},Vl=(e,t,r,n)=>{const s=e.length;for(let i=0;i<s;i++){const o=e[i];Pw(o,t,r,n)}},Pw=(e,t,r,n)=>{if(typeof e=="string"){Dw(e,t,r);return}if(typeof e=="function"){Ow(e,t,r,n);return}Hw(e,t,r,n)},Dw=(e,t,r)=>{const n=e===""?t:yp(t,e);n.classGroupId=r},Ow=(e,t,r,n)=>{if(Mw(e)){Vl(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Ew(r,e))},Hw=(e,t,r,n)=>{const s=Object.entries(e),i=s.length;for(let o=0;o<i;o++){const[a,l]=s[o];Vl(l,yp(t,a),r,n)}},yp=(e,t)=>{let r=e;const n=t.split(Uo),s=n.length;for(let i=0;i<s;i++){const o=n[i];let a=r.nextPart.get(o);a||(a=vp(),r.nextPart.set(o,a)),r=a}return r},Mw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Nw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const s=(i,o)=>{r[i]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let o=r[i];if(o!==void 0)return o;if((o=n[i])!==void 0)return s(i,o),o},set(i,o){i in r?r[i]=o:s(i,o)}}},jl="!",bp=":",qw=[],_p=(e,t,r,n,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:s}),Bw=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=s=>{const i=[];let o=0,a=0,l=0,u;const c=s.length;for(let w=0;w<c;w++){const T=s[w];if(o===0&&a===0){if(T===bp){i.push(s.slice(l,w)),l=w+1;continue}if(T==="/"){u=w;continue}}T==="["?o++:T==="]"?o--:T==="("?a++:T===")"&&a--}const d=i.length===0?s:s.slice(l);let p=d,h=!1;d.endsWith(jl)?(p=d.slice(0,-1),h=!0):d.startsWith(jl)&&(p=d.slice(1),h=!0);const g=u&&u>l?u-l:void 0;return _p(i,h,p,g)};if(t){const s=t+bp,i=n;n=o=>o.startsWith(s)?i(o.slice(s.length)):_p(qw,!1,o,void 0,!0)}if(r){const s=n;n=i=>r({className:i,parseClassName:s})}return n},Lw=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let s=[];for(let i=0;i<r.length;i++){const o=r[i],a=o[0]==="[",l=t.has(o);a||l?(s.length>0&&(s.sort(),n.push(...s),s=[]),n.push(o)):s.push(o)}return s.length>0&&(s.sort(),n.push(...s)),n}},Fw=e=>({cache:Nw(e.cacheSize),parseClassName:Bw(e),sortModifiers:Lw(e),...kw(e)}),Vw=/\s+/,jw=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s,sortModifiers:i}=t,o=[],a=e.trim().split(Vw);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:d,modifiers:p,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:w}=r(c);if(d){l=c+(l.length>0?" "+l:l);continue}let T=!!w,v=n(T?g.substring(0,w):g);if(!v){if(!T){l=c+(l.length>0?" "+l:l);continue}if(v=n(g),!v){l=c+(l.length>0?" "+l:l);continue}T=!1}const S=p.length===0?"":p.length===1?p[0]:i(p).join(":"),y=h?S+jl:S,_=y+v;if(o.indexOf(_)>-1)continue;o.push(_);const E=s(v,T);for(let $=0;$<E.length;++$){const B=E[$];o.push(y+B)}l=c+(l.length>0?" "+l:l)}return l},Uw=(...e)=>{let t=0,r,n,s="";for(;t<e.length;)(r=e[t++])&&(n=Sp(r))&&(s&&(s+=" "),s+=n);return s},Sp=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Sp(e[n]))&&(r&&(r+=" "),r+=t);return r},zw=(e,...t)=>{let r,n,s,i;const o=l=>(r=Fw(t.reduce((u,c)=>c(u),e())),n=r.cache.get,s=r.cache.set,i=a,a(l)),a=l=>{const u=n(l);if(u)return u;const c=jw(l,r);return s(l,c),c};return i=o,(...l)=>i(Uw(...l))},Kw=[],Et=e=>{const t=r=>r[e]||Kw;return t.isThemeGetter=!0,t},Cp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ww=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Gw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dn=e=>Ww.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),On=e=>!!e&&Number.isInteger(Number(e)),Ul=e=>e.endsWith("%")&&Le(e.slice(0,-1)),on=e=>Gw.test(e),Tp=()=>!0,Qw=e=>Jw.test(e)&&!Yw.test(e),zl=()=>!1,ey=e=>Zw.test(e),ty=e=>Xw.test(e),ry=e=>!Ce(e)&&!xe(e),ny=e=>Hn(e,$p,zl),Ce=e=>Cp.test(e),ss=e=>Hn(e,Pp,Qw),Ep=e=>Hn(e,dy,Le),sy=e=>Hn(e,Op,Tp),iy=e=>Hn(e,Dp,zl),Ap=e=>Hn(e,Rp,zl),oy=e=>Hn(e,Ip,ty),zo=e=>Hn(e,Hp,ey),xe=e=>xp.test(e),Ri=e=>is(e,Pp),ay=e=>is(e,Dp),kp=e=>is(e,Rp),ly=e=>is(e,$p),cy=e=>is(e,Ip),Ko=e=>is(e,Hp,!0),uy=e=>is(e,Op,!0),Hn=(e,t,r)=>{const n=Cp.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},is=(e,t,r=!1)=>{const n=xp.exec(e);return n?n[1]?t(n[1]):r:!1},Rp=e=>e==="position"||e==="percentage",Ip=e=>e==="image"||e==="url",$p=e=>e==="length"||e==="size"||e==="bg-size",Pp=e=>e==="length",dy=e=>e==="number",Dp=e=>e==="family-name",Op=e=>e==="number"||e==="weight",Hp=e=>e==="shadow",fy=()=>{const e=Et("color"),t=Et("font"),r=Et("text"),n=Et("font-weight"),s=Et("tracking"),i=Et("leading"),o=Et("breakpoint"),a=Et("container"),l=Et("spacing"),u=Et("radius"),c=Et("shadow"),d=Et("inset-shadow"),p=Et("text-shadow"),h=Et("drop-shadow"),g=Et("blur"),w=Et("perspective"),T=Et("aspect"),v=Et("ease"),S=Et("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[..._(),xe,Ce],$=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],m=()=>[xe,Ce,l],N=()=>[Dn,"full","auto",...m()],q=()=>[On,"none","subgrid",xe,Ce],C=()=>["auto",{span:["full",On,xe,Ce]},On,xe,Ce],b=()=>[On,"auto",xe,Ce],x=()=>["auto","min","max","fr",xe,Ce],O=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...m()],z=()=>[Dn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],G=()=>[Dn,"screen","full","dvw","lvw","svw","min","max","fit",...m()],oe=()=>[Dn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],Y=()=>[e,xe,Ce],ae=()=>[..._(),kp,Ap,{position:[xe,Ce]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Re=()=>["auto","cover","contain",ly,ny,{size:[xe,Ce]}],je=()=>[Ul,Ri,ss],Ie=()=>["","none","full",u,xe,Ce],Pe=()=>["",Le,Ri,ss],nt=()=>["solid","dashed","dotted","double"],_t=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Be=()=>[Le,Ul,kp,Ap],st=()=>["","none",g,xe,Ce],ht=()=>["none",Le,xe,Ce],mt=()=>["none",Le,xe,Ce],A=()=>[Le,xe,Ce],P=()=>[Dn,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[on],breakpoint:[on],color:[Tp],container:[on],"drop-shadow":[on],ease:["in","out","in-out"],font:[ry],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[on],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[on],shadow:[on],spacing:["px",Le],text:[on],"text-shadow":[on],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dn,Ce,xe,T]}],container:["container"],columns:[{columns:[Le,Ce,xe,a]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[On,"auto",xe,Ce]}],basis:[{basis:[Dn,"full","auto",a,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,Dn,"auto","initial","none",Ce]}],grow:[{grow:["",Le,xe,Ce]}],shrink:[{shrink:["",Le,xe,Ce]}],order:[{order:[On,"first","last","none",xe,Ce]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":b()}],"col-end":[{"col-end":b()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":b()}],"row-end":[{"row-end":b()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":x()}],"auto-rows":[{"auto-rows":x()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...O(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...O()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],"inline-size":[{inline:["auto",...G()]}],"min-inline-size":[{"min-inline":["auto",...G()]}],"max-inline-size":[{"max-inline":["none",...G()]}],"block-size":[{block:["auto",...oe()]}],"min-block-size":[{"min-block":["auto",...oe()]}],"max-block-size":[{"max-block":["none",...oe()]}],w:[{w:[a,"screen",...z()]}],"min-w":[{"min-w":[a,"screen","none",...z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",r,Ri,ss]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,uy,sy]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ul,Ce]}],"font-family":[{font:[ay,iy,t]}],"font-features":[{"font-features":[Ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,xe,Ce]}],"line-clamp":[{"line-clamp":[Le,"none",xe,Ep]}],leading:[{leading:[i,...m()]}],"list-image":[{"list-image":["none",xe,Ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,Ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...nt(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",xe,ss]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Le,"auto",xe,Ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:Re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},On,xe,Ce],radial:["",xe,Ce],conic:[On,xe,Ce]},cy,oy]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:je()}],"gradient-via-pos":[{via:je()}],"gradient-to-pos":[{to:je()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:Ie()}],"rounded-s":[{"rounded-s":Ie()}],"rounded-e":[{"rounded-e":Ie()}],"rounded-t":[{"rounded-t":Ie()}],"rounded-r":[{"rounded-r":Ie()}],"rounded-b":[{"rounded-b":Ie()}],"rounded-l":[{"rounded-l":Ie()}],"rounded-ss":[{"rounded-ss":Ie()}],"rounded-se":[{"rounded-se":Ie()}],"rounded-ee":[{"rounded-ee":Ie()}],"rounded-es":[{"rounded-es":Ie()}],"rounded-tl":[{"rounded-tl":Ie()}],"rounded-tr":[{"rounded-tr":Ie()}],"rounded-br":[{"rounded-br":Ie()}],"rounded-bl":[{"rounded-bl":Ie()}],"border-w":[{border:Pe()}],"border-w-x":[{"border-x":Pe()}],"border-w-y":[{"border-y":Pe()}],"border-w-s":[{"border-s":Pe()}],"border-w-e":[{"border-e":Pe()}],"border-w-bs":[{"border-bs":Pe()}],"border-w-be":[{"border-be":Pe()}],"border-w-t":[{"border-t":Pe()}],"border-w-r":[{"border-r":Pe()}],"border-w-b":[{"border-b":Pe()}],"border-w-l":[{"border-l":Pe()}],"divide-x":[{"divide-x":Pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...nt(),"hidden","none"]}],"divide-style":[{divide:[...nt(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-bs":[{"border-bs":Y()}],"border-color-be":[{"border-be":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...nt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,xe,Ce]}],"outline-w":[{outline:["",Le,Ri,ss]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",c,Ko,zo]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",d,Ko,zo]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:Pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Le,ss]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":Pe()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",p,Ko,zo]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Le,xe,Ce]}],"mix-blend":[{"mix-blend":[..._t(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_t()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":Be()}],"mask-image-linear-to-pos":[{"mask-linear-to":Be()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":Be()}],"mask-image-t-to-pos":[{"mask-t-to":Be()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":Be()}],"mask-image-r-to-pos":[{"mask-r-to":Be()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":Be()}],"mask-image-b-to-pos":[{"mask-b-to":Be()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":Be()}],"mask-image-l-to-pos":[{"mask-l-to":Be()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":Be()}],"mask-image-x-to-pos":[{"mask-x-to":Be()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":Be()}],"mask-image-y-to-pos":[{"mask-y-to":Be()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[xe,Ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":Be()}],"mask-image-radial-to-pos":[{"mask-radial-to":Be()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":Be()}],"mask-image-conic-to-pos":[{"mask-conic-to":Be()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:Re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,Ce]}],filter:[{filter:["","none",xe,Ce]}],blur:[{blur:st()}],brightness:[{brightness:[Le,xe,Ce]}],contrast:[{contrast:[Le,xe,Ce]}],"drop-shadow":[{"drop-shadow":["","none",h,Ko,zo]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Le,xe,Ce]}],"hue-rotate":[{"hue-rotate":[Le,xe,Ce]}],invert:[{invert:["",Le,xe,Ce]}],saturate:[{saturate:[Le,xe,Ce]}],sepia:[{sepia:["",Le,xe,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,Ce]}],"backdrop-blur":[{"backdrop-blur":st()}],"backdrop-brightness":[{"backdrop-brightness":[Le,xe,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[Le,xe,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,xe,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,xe,Ce]}],"backdrop-invert":[{"backdrop-invert":["",Le,xe,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[Le,xe,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[Le,xe,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,xe,Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,Ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",xe,Ce]}],ease:[{ease:["linear","initial",v,xe,Ce]}],delay:[{delay:[Le,xe,Ce]}],animate:[{animate:["none",S,xe,Ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,xe,Ce]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ht()}],"rotate-x":[{"rotate-x":ht()}],"rotate-y":[{"rotate-y":ht()}],"rotate-z":[{"rotate-z":ht()}],scale:[{scale:mt()}],"scale-x":[{"scale-x":mt()}],"scale-y":[{"scale-y":mt()}],"scale-z":[{"scale-z":mt()}],"scale-3d":["scale-3d"],skew:[{skew:A()}],"skew-x":[{"skew-x":A()}],"skew-y":[{"skew-y":A()}],transform:[{transform:[xe,Ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:P()}],"translate-x":[{"translate-x":P()}],"translate-y":[{"translate-y":P()}],"translate-z":[{"translate-z":P()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,Ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,Ce]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Le,Ri,ss,Ep]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},py=zw(fy);const ct=(...e)=>py(gp(e)),an=e=>e.length<=3?e:`${e.slice(0,3)}${"*".repeat(e.length-3)}`,hy=(e,t)=>{if(e){const r=Kl(e);if(r&&Mp(r))return r;if(e.trim())return e.trim()}if(t){const r=Kl(t);if(r&&Mp(r))return r;const n=gy(t);if(n)return n;if(t.trim()&&!t.includes("@"))return t.trim()}return"Unknown"};var Kl=e=>e.replace(/[^\d+*#]/g,""),Mp=e=>/^\+?[\d*#]{2,}$/.test(e),gy=e=>{let t=e.match(/^([+]?[\d*#]{2,})\s*[-:]/);return t&&t[1]||(t=e.match(/\(([+]?[\d*#]{2,})\)/),t&&t[1])||(t=e.match(/(?:ext\.?|extension)\s*([+]?[\d*#]{2,})/i),t&&t[1])?t[1]:(t=e.match(/([+]?\d{1,3}[-.\s]?\(?\d{1,4}\)?[-.\s]?\d{1,4}[-.\s]?\d{1,9})/),t&&t[1]?Kl(t[1]):null)};const Np="webphone-auto-answer",Wl=()=>{try{return localStorage.getItem(Np)==="true"}catch{return!1}};var vy="X-Nebula-Queue",my="X-Nebula-Queue-Id";const Mx=30,wy=(e,t={})=>{const r=ft(null),n=ft(null),s=ft(new Map),i=new Audio;i.autoplay=!0;const o=ft(void 0),a=ft(null),l=ft(null),u=new Map,c=new Map,d=new Set,p=new Map,h=5e3;let g=!1,w=null,T=null,v=null,S=null,y=null;const _=j(()=>r.value?.configuration.uri?.user||""),{startRingtone:E,stopRingtone:$,startRingback:B,stopRingback:m,playAutoAnswerBeep:N,setNotificationVolume:q,setRingtoneVolume:C,setRingtoneTone:b}=pp(),x=H=>H instanceof Mo||H instanceof Hs?H.request?.callId||H.dialog?.callId||H.id||crypto.randomUUID():H.dialog?.callId||H.id||crypto.randomUUID(),O=H=>{if(!(H instanceof Hs))return;const F=H.request;if(!F)return;const L=F.getHeader(vy)?.trim(),ue=F.getHeader(my)?.trim();if(!(!L&&!ue))return{...ue?{id:ue}:{},...L?{name:L}:{}}},R=(H,F,L,ue)=>{const se=O(H),we={channelId:F,sipCallId:x(H),direction:L,remoteNumber:ue,...se?{queue:se}:{}};return u.set(F,we),t.onCallContext?.(we),we},M=(H,F)=>{const L=u.get(H);L&&t.onCallState?.({...L,state:F,timestamp:Date.now()})},z=(H,F)=>{if(s.value.get(F)!==H||H.state!==W.Established)return;const L=u.get(F),ue=H.sessionDescriptionHandler,se=ue?.localMediaStream??l.value,we=ue?.remoteMediaStream??a.value,be=se?.getAudioTracks()??[],He=we?.getAudioTracks()??[];if(!L||!se||!we||be.length===0||He.length===0)return;const dt=[L.sipCallId,...be.map(et=>`local:${et.id}`),...He.map(et=>`remote:${et.id}`)].join("|");c.get(F)!==dt&&(c.set(F,dt),t.onMediaReady?.({...L,localStream:se,remoteStream:we}))},G=H=>{u.delete(H),c.delete(H),d.delete(H)},oe=(H,F)=>{if(s.value.get(H)!==F)return;const L=p.get(F);L&&clearTimeout(L),p.delete(F);const ue=e.channels.value.find(He=>He.id===H),se=u.get(H),we=d.has(H)||ue?.status==="connected";G(H),s.value.delete(H),e.updateChannelState(H,{status:"idle",remoteNumber:"",remoteDisplayName:void 0,isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1});const be=e.transferInProgress.value;if(be&&(be.originalChannelId===H||be.consultationChannelId===H)&&e.setTransferInProgress(null),e.activeChannelId.value===H&&vn(),de(),se){try{e.addCallLog({number:se.remoteNumber,direction:se.direction,status:we?"answered":se.direction==="incoming"?"missed":"cancelled",startTime:we?ue?.startTime??Date.now():Date.now(),duration:we?Math.floor((Date.now()-(ue?.startTime??Date.now()))/1e3):0})}catch(He){console.warn("[SipJs] Call ended, but saving its history failed:",He)}try{t.onCallState?.({...se,state:we?"ended":"failed",timestamp:Date.now()})}catch(He){console.warn("[SipJs] Call ended, but the state callback failed:",He)}}},Y=(H,F)=>{p.has(F)||p.set(F,setTimeout(()=>{console.warn("[SipJs] Hangup did not terminate; releasing local call state"),ae(F),oe(H,F)},h))},ae=H=>{if(H.state!==W.Terminated)try{H.dispose().catch(F=>{console.warn("[SipJs] Session disposal failed:",F)})}catch(F){console.warn("[SipJs] Session disposal failed:",F)}},de=()=>{e.channels.value.some(H=>H.status==="incoming")&&!Wl()?E():$(),e.activeChannel.value?.status==="calling"?B():m()},Re=async(H,F,L)=>{await N(),Wl()&&s.value.get(H)===F&&F.state===W.Initial&&await fe(L)},je=H=>{i.volume=H/100},Ie=async H=>{typeof i.setSinkId=="function"&&await i.setSinkId(H)},Pe=async H=>{if(!H)return;const F=[...s.value.entries()].flatMap(([se,we])=>{const be=we.sessionDescriptionHandler,He=be?.peerConnection?.getSenders().find(dt=>dt.track?.kind==="audio");return He?[{channelId:se,session:we,sdh:be,sender:He}]:[]});if(F.length===0){o.value=H;return}const L=[],ue=[];try{for(const{sender:we}of F){const be=await navigator.mediaDevices.getUserMedia(mt(!1,H));L.push(be);const[He]=be.getAudioTracks(),dt=we.track;if(!He||!dt)throw new Error("Could not acquire an audio track for the selected microphone");He.enabled=dt.enabled,await we.replaceTrack(He),ue.push({sender:we,previousTrack:dt})}o.value=H,F.forEach(({channelId:we,session:be,sdh:He,sender:dt},et)=>{const wt=L[et]?.getAudioTracks()[0];if(!wt)return;const jn=e.channels.value.find(mn=>mn.id===we),qi=!(jn?.isHeld||jn?.isMuted);dt.track.enabled=qi;const yr=He.localMediaStream;yr&&(yr.getAudioTracks().forEach(mn=>{mn!==wt&&yr.removeTrack(mn)}),yr.getTracks().includes(wt)||yr.addTrack(wt)),e.activeChannelId.value===we&&(yr?l.value=yr:l.value&&(l.value.getAudioTracks().forEach(mn=>{mn!==wt&&l.value?.removeTrack(mn)}),l.value.getTracks().includes(wt)||l.value.addTrack(wt)));try{z(be,we)}catch(mn){console.error("[SipJs] Media-ready callback failed after microphone switch:",mn)}});const se=new Set([...s.value.values()].flatMap(we=>we.sessionDescriptionHandler?.peerConnection?.getSenders().map(be=>be.track).filter(be=>be?.kind==="audio")??[]));ue.forEach(({previousTrack:we})=>{se.has(we)||we.stop()}),L.forEach((we,be)=>{we.getTracks().forEach(He=>{He!==F[be]?.sender.track&&He.stop()})})}catch(se){await Promise.allSettled(ue.map(({sender:we,previousTrack:be})=>we.replaceTrack(be))),L.forEach(we=>we.getTracks().forEach(be=>be.stop())),console.warn("[SipJs] Failed to switch microphone:",se)}},nt=(H,F)=>{let L=!1;const ue=H.sessionDescriptionHandler;return ue?.peerConnection&&ue.peerConnection.getSenders().forEach(se=>{se.track&&se.track.kind==="audio"&&(se.track.enabled=F,L=!0)}),L},_t=H=>{let F=!1;return l.value&&l.value.getAudioTracks().forEach(L=>{L.enabled=H,F=!0}),F},Be=(H,F)=>{const L=!(F?.isHeld||F?.isMuted),ue=nt(H,L),se=_t(L);!ue&&!se&&console.warn("[SipJs] No audio tracks found to apply channel audio state")},st=H=>{for(const[F,L]of s.value.entries())if(L===H)return e.channels.value.find(ue=>ue.id===F)||null;return e.activeChannel.value||null},ht=async H=>{const F=H.sessionDescriptionHandler?.peerConnection;if(!F)return;const L=st(H),ue=!(L?.isHeld||L?.isMuted),se=F.getSenders().find(we=>we.track?.kind==="audio");if(se?.track){se.track.enabled=ue,L&&z(H,L.id);return}try{const we=await navigator.mediaDevices.getUserMedia(mt(!1));if(![...s.value.values()].includes(H)){we.getTracks().forEach(et=>et.stop());return}const[be]=we.getAudioTracks();if(!be)return;be.enabled=ue;const He=new MediaStream([be]);l.value=He;const dt=F.getSenders().find(et=>et.track===null);dt?await dt.replaceTrack(be):F.addTrack(be,He),Be(H,L),L&&z(H,L.id)}catch(we){console.warn("[SipJs] Failed to recover outbound audio track:",we)}},mt=(H=!1,F=o.value)=>{const L={echoCancellation:{ideal:!0},noiseSuppression:{ideal:!1},autoGainControl:{ideal:!1},channelCount:1};return F&&(L.deviceId={exact:F}),{audio:L,video:H}},A=async()=>{const H=n.value;H&&await H.register({requestDelegate:{onAccept:()=>{e.setConnected(!0)},onReject:()=>{e.setConnected(!1)}}})},P=async H=>{if(!r.value){try{(await navigator.mediaDevices.getUserMedia({audio:!0})).getTracks().forEach(F=>F.stop())}catch(F){console.error("Microphone permission denied",F);return}try{const F=Pn.makeURI(H.uri);if(!F)throw new Error("Invalid URI");g=H.earlyMedia??!1,r.value=new Pn({uri:F,logLevel:"error",transportOptions:{server:H.transportOptions.server,keepAliveInterval:H.transportOptions.keepAliveInterval??30},authorizationUsername:H.authorizationUsername,authorizationPassword:H.authorizationPassword,reconnectionDelay:5,reconnectionAttempts:3,delegate:{onConnect:()=>{},onDisconnect:()=>e.setConnected(!1),onInvite:L=>ee(L)}}),await r.value.start(),n.value=new ql(r.value),await A(),J()}catch{}}},J=()=>{v=new AbortController;const{signal:H}=v;let F=Date.now();const L=5e3,ue=(wt=1e3)=>{S&&clearTimeout(S),S=setTimeout(async()=>{S=null,await ie()},wt)},se=()=>{if(document.visibilityState==="visible"){const wt=Date.now()-F;wt>L?(console.log(`[SipJs] Device was suspended for ${Math.round(wt/1e3)}s, reconnecting...`),ue(1500)):ue(500)}F=Date.now()},we=()=>{console.log("[SipJs] Network online, reconnecting..."),ue(1e3)},be=()=>{console.log("[SipJs] Network offline"),e.setConnected(!1),S&&(clearTimeout(S),S=null)},He=()=>{y=setInterval(()=>{const wt=Date.now(),jn=wt-F;jn>3e4&&(console.log(`[SipJs] Heartbeat drift detected (${Math.round(jn/1e3)}s), device may have woken from sleep`),ue(1500)),F=wt},1e3)},dt=()=>{console.log("[SipJs] Page frozen"),y&&(clearInterval(y),y=null)},et=()=>{console.log("[SipJs] Page resumed"),F=Date.now(),He(),ue(1e3)};document.addEventListener("visibilitychange",se,{signal:H}),window.addEventListener("online",we,{signal:H}),window.addEventListener("offline",be,{signal:H}),document.addEventListener("freeze",dt,{signal:H}),document.addEventListener("resume",et,{signal:H}),He()},ie=async()=>{if(r.value){if(!navigator.onLine){console.log("[SipJs] Skipping reconnect, device is offline");return}if(s.value.size>0){console.log("[SipJs] Skipping reconnect, active calls in progress");return}try{if(r.value.isConnected()||(console.log("[SipJs] Reconnecting..."),await r.value.reconnect()),n.value&&r.value.isConnected())try{await A()}catch{}}catch(H){console.error("[SipJs] Reconnection failed:",H)}}},re=async()=>{v?.abort(),v=null,S&&(clearTimeout(S),S=null),y&&(clearInterval(y),y=null);for(const[L,ue]of s.value.entries()){let se;try{await Promise.race([le(L,ue),new Promise(we=>{se=setTimeout(we,1500)})])}finally{se&&clearTimeout(se)}}vn();const H=n.value,F=r.value;if(n.value=null,r.value=null,H)try{await H.unregister()}catch(L){console.warn("[SipJs] Unregister failed:",L)}if(F)try{await F.stop()}catch(L){console.warn("[SipJs] UserAgent stop failed:",L)}},ee=H=>{console.log("[SipJs] 📞 Llamada entrante recibida"),console.log("[SipJs] Remote Identity URI:",H.remoteIdentity.uri.toString()),console.log("[SipJs] Remote Identity URI user:",H.remoteIdentity.uri.user),console.log("[SipJs] Remote Identity displayName:",H.remoteIdentity.displayName);const F=e.channels.value.find(we=>we.status==="idle"&&!s.value.has(we.id));if(!F){console.warn("[SipJs] ⚠️ No hay canales disponibles, rechazando llamada"),H.reject();return}const L=F.id;s.value.set(L,H);const ue=H.body?H.body.includes("m=video"):!1,se=hy(H.remoteIdentity.uri.user,H.remoteIdentity.displayName);console.log("[SipJs] 📋 Caller number extraído:",se),console.log("[SipJs] 🎥 Video:",ue?"Sí":"No"),e.updateChannelState(L,{status:"incoming",remoteNumber:se,remoteDisplayName:H.remoteIdentity.displayName||void 0,hasVideo:ue}),R(H,L,"incoming",se),M(L,"ringing"),de(),e.setActiveChannelId(L),Wl()&&Re(L,H,ue),H.stateChange.addListener(we=>{switch(we){case W.Terminated:oe(L,H);break;case W.Established:if(s.value.get(L)!==H)break;d.add(L),e.updateChannelState(L,{status:"connected",startTime:Date.now()}),M(L,"connected"),e.activeChannelId.value===L&&(St(H),ht(H).then(()=>z(H,L))),de();break}})},pe=async(H,F=!1)=>{if(!r.value)return;const L=e.activeChannelId.value;if(s.value.has(L))return;let ue=Pn.makeURI(H);if(!ue&&r.value.configuration.uri){const be=r.value.configuration.uri.host;ue=Pn.makeURI(`sip:${H}@${be}`)}if(!ue)return;const se=new Mo(r.value,ue,{earlyMedia:g});s.value.set(L,se),R(se,L,"outgoing",H),M(L,"dialing"),e.updateChannelState(L,{status:"calling",remoteNumber:H,hasVideo:F}),e.setLastDialedNumber(H),de(),se.stateChange.addListener(be=>{switch(be){case W.Established:if(s.value.get(L)!==se)break;d.add(L),e.channels.value.find(He=>He.id===L)?.status!=="connected"&&(e.updateChannelState(L,{status:"connected",startTime:Date.now()}),M(L,"connected"),St(se),ht(se).then(()=>z(se,L)),de());break;case W.Terminated:oe(L,se);break}});const we={sessionDescriptionHandlerOptions:{constraints:mt(F)},requestDelegate:{onProgress:be=>{s.value.get(L)===se&&(be.message.statusCode===180||be.message.statusCode===183)&&(be.message.body&&(e.updateChannelState(L,{hasEarlyMedia:!0}),St(se)),de())},onAccept:be=>{s.value.get(L)===se&&e.channels.value.find(He=>He.id===L)?.status!=="connected"&&(d.add(L),e.updateChannelState(L,{status:"connected",startTime:Date.now()}),M(L,"connected"),St(se),ht(se).then(()=>z(se,L)),de())}}};try{await se.invite(we)}catch(be){throw oe(L,se),be}},fe=async(H=!1)=>{const F=e.activeChannelId.value,L=s.value.get(F);if(L instanceof Hs&&L.state===W.Initial){$(),e.updateChannelState(F,{status:"connected",startTime:Date.now()}),de();for(const[se,we]of s.value.entries())if(se!==e.activeChannelId.value&&we.state===W.Established&&!e.channels.value.find(be=>be.id===se)?.isHeld)try{await he(we,!0),e.updateChannelState(se,{isHeld:!0})}catch(be){console.error(`[SipJs] Failed to hold channel ${se}:`,be)}const ue={sessionDescriptionHandlerOptions:{constraints:mt(H),iceGatheringTimeout:1e3}};try{await L.accept(ue),de()}catch(se){const we=s.value.get(F);throw we instanceof Hs&&we.state===W.Initial&&(e.updateChannelState(F,{status:"incoming",startTime:void 0}),de()),se}}},le=async(H,F)=>{Y(H,F);try{switch(F.state){case W.Initial:case W.Establishing:F instanceof Mo?await F.cancel():F instanceof Hs&&await F.reject();break;case W.Established:await F.bye();break}}catch(L){console.warn("[SipJs] Hangup signaling failed:",L)}finally{ae(F),oe(H,F)}},ne=async()=>{const H=e.activeChannelId.value,F=s.value.get(H);F&&await le(H,F)},Ee=()=>{const H=s.value.get(e.activeChannelId.value);if(!H)return;const F=!e.isMuted.value;e.setMuted(F),Be(H,e.channels.value.find(L=>L.id===e.activeChannelId.value))},he=async(H,F)=>{const L={sessionDescriptionHandlerOptions:{hold:F}};await H.invite(L)},Te=async()=>{const H=s.value.get(e.activeChannelId.value);if(H?.state!==W.Established)return;const F=!e.isHeld.value;try{await he(H,F),e.setHeld(F),Be(H,e.channels.value.find(L=>L.id===e.activeChannelId.value))}catch{}},Oe=async H=>{const F=e.activeChannelId.value;if(F===H)return;const L=s.value.get(F),ue=s.value.get(H),se=e.channels.value.find(be=>be.id===F),we=e.channels.value.find(be=>be.id===H);if(L&&L.state===W.Established&&!se?.isHeld)try{await he(L,!0),e.updateChannelState(F,{isHeld:!0}),Be(L,e.channels.value.find(be=>be.id===F))}catch{}if(e.setActiveChannelId(H),de(),ue&&ue.state===W.Established){if(we?.isHeld)try{await he(ue,!1),e.updateChannelState(H,{isHeld:!1})}catch{}Be(ue,e.channels.value.find(be=>be.id===H)),St(ue)}else vn()},Ve=H=>{if(!/^[0-9*#]$/.test(H))return;const F=s.value.get(e.activeChannelId.value);if(F?.state!==W.Established)return;const L=F.sessionDescriptionHandler?.peerConnection?.getSenders().find(se=>se.track?.kind==="audio")?.dtmf;if(L?.canInsertDTMF){L.insertDTMF(H,160,70);return}const ue={requestOptions:{body:{content:`Signal=${H}\r
|
|
68
|
-
Duration=160`,contentType:"application/dtmf-relay",contentDisposition:"signal"}}};F.info(ue)},Z=(H,F)=>{const L=e.channels.value.find(ue=>ue.id===H);!L||L.status!=="connected"||(St(F),Be(F,L),ht(F),i.play().catch(()=>{}))},ce=async H=>{console.log("[SipJs] 🔄 transferCall iniciado"),console.log("[SipJs] Target:",H);const F=e.activeChannelId.value,L=s.value.get(F);if(!L)throw console.error("[SipJs] ❌ No hay sesión activa en el canal",F),new Error("No active session to transfer");if(console.log("[SipJs] Sesión encontrada - Estado:",L.state),console.log("[SipJs] Dialog ID:",L.dialog?.id),console.log("[SipJs] Call ID:",L.dialog?.callId),L.state!==W.Established)throw console.error("[SipJs] ❌ Sesión no establecida. Estado actual:",L.state),new Error(`Cannot transfer call. Call is not established (state: ${L.state})`);let ue=Pn.makeURI(H);if(!ue&&r.value?.configuration.uri){const se=r.value.configuration.uri.host;console.log("[SipJs] Construyendo URI con dominio:",se),ue=Pn.makeURI(`sip:${H}@${se}`)}if(!ue)throw console.error("[SipJs] ❌ URI de destino inválida:",H),new Error(`Invalid transfer target: ${H}`);console.log("[SipJs] 📤 URI de transferencia:",ue.toString()),console.log("[SipJs] URI scheme:",ue.scheme),console.log("[SipJs] URI user:",ue.user),console.log("[SipJs] URI host:",ue.host);try{console.log("[SipJs] 🚀 Enviando REFER..."),await L.refer(ue,{requestDelegate:{onAccept:se=>{console.log("[SipJs] ✅ Transfer REFER aceptado por el servidor (202 Accepted)"),console.log("[SipJs] Response:",se.message)},onReject:se=>{const we=se.message.statusCode;console.error("[SipJs] ❌ Transfer REFER rechazado:",we),console.error("[SipJs] Response completo:",se.message),Z(F,L)}},onNotify:se=>{console.log("[SipJs] 📬 NOTIFY recibido para transferencia"),console.log("[SipJs] NOTIFY request:",se.request),se.accept();const we=se.request.body;if(console.log("[SipJs] NOTIFY body:",we),we){const be=we.match(/SIP\/2\.0\s+(\d{3})(.*)/);if(be&&be[1]){const He=parseInt(be[1],10),dt=be[2]?.trim()||"";if(console.log("[SipJs] 📊 Status code:",He),console.log("[SipJs] 📊 Status text:",dt),He>=200&&He<300)console.log("[SipJs] ✅ Transferencia exitosa! Terminando sesión..."),setTimeout(()=>{L.bye().catch(et=>{console.warn("[SipJs] Error hanging up after successful transfer:",et)})},500);else if(He>=400){console.error("[SipJs] ❌ Transfer falló con status:",He,dt),console.log("[SipJs] 🔄 Manteniendo la sesión activa para el usuario");const et={404:"Número no encontrado",486:"Número ocupado",487:"Transferencia cancelada",503:"Servicio no disponible - el destino puede estar fuera de línea"}[He]||`Error en transferencia (código ${He})`;console.warn("[SipJs] 💬",et),Z(F,L)}else He>=100&&He<200&&console.log("[SipJs] 📞 Transferencia en progreso:",He,dt)}else console.warn("[SipJs] ⚠️ No se pudo extraer el código de estado del NOTIFY body")}else console.warn("[SipJs] ⚠️ NOTIFY sin body")}}),console.log("[SipJs] ✅ REFER enviado exitosamente (promesa resuelta)")}catch(se){throw console.error("[SipJs] ❌ Error en transferCall:",se),console.error("[SipJs] Error type:",se?.constructor?.name),console.error("[SipJs] Error message:",se instanceof Error?se.message:String(se)),console.error("[SipJs] Error stack:",se instanceof Error?se.stack:"N/A"),se}},ge=async H=>{console.log("[SipJs] 🔄 startAttendedTransfer iniciado"),console.log("[SipJs] Target:",H);const F=e.activeChannelId.value,L=s.value.get(F);if(console.log("[SipJs] Canal original:",F),console.log("[SipJs] Sesión original:",L?.state),!L||L.state!==W.Established)throw console.error("[SipJs] ❌ No hay llamada establecida para transferir"),new Error("No established call to transfer");const ue=e.channels.value.find(se=>se.status==="idle");if(console.log("[SipJs] Canal de consulta encontrado:",ue?.id),!ue)throw console.error("[SipJs] ❌ No hay canales disponibles para llamada de consulta"),new Error("No available channel for consultation call");try{console.log("[SipJs] 🔇 Poniendo llamada original en hold..."),await he(L,!0),e.updateChannelState(F,{isHeld:!0}),console.log("[SipJs] ✅ Llamada original en hold")}catch(se){throw console.error("[SipJs] ❌ Failed to hold original call:",se),new Error("Failed to put call on hold")}console.log("[SipJs] 🔄 Cambiando al canal de consulta:",ue.id),e.setActiveChannelId(ue.id);try{console.log("[SipJs] 📞 Iniciando llamada de consulta a:",H),await pe(H,!1),console.log("[SipJs] ✅ Llamada de consulta iniciada"),e.setTransferInProgress({originalChannelId:F,consultationChannelId:ue.id,targetNumber:H}),console.log("[SipJs] 📋 Transferencia en progreso registrada")}catch(se){throw console.error("[SipJs] ❌ Failed to start consultation call:",se),console.log("[SipJs] 🔄 Volviendo al canal original y quitando hold..."),e.setActiveChannelId(F),await he(L,!1).catch(()=>{}),e.updateChannelState(F,{isHeld:!1}),new Error("Failed to initiate consultation call")}},ut=async()=>{console.log("[SipJs] 🔄 completeAttendedTransfer iniciado");const H=e.transferInProgress.value;if(!H)throw console.error("[SipJs] ❌ No hay transferencia en progreso"),new Error("No transfer in progress");console.log("[SipJs] Estado de transferencia:",H);const F=s.value.get(H.originalChannelId),L=s.value.get(H.consultationChannelId);if(console.log("[SipJs] Sesión original:",F?.state),console.log("[SipJs] Sesión de consulta:",L?.state),!F||!L)throw console.error("[SipJs] ❌ Falta una o ambas sesiones"),new Error("Missing session for transfer");if(L.state!==W.Established)throw console.error("[SipJs] ❌ Llamada de consulta no está establecida. Estado:",L.state),new Error("Consultation call not established");const ue=L.dialog;if(!ue)throw new Error("No dialog available for consultation session");const se=ue.callId,we=ue.remoteTag,be=ue.localTag;let He=Pn.makeURI(H.targetNumber);if(!He&&r.value?.configuration.uri){const et=r.value.configuration.uri.host;He=Pn.makeURI(`sip:${H.targetNumber}@${et}`)}if(!He)throw new Error("Invalid transfer target URI");const dt=`${encodeURIComponent(se)}%3Bto-tag%3D${encodeURIComponent(we)}%3Bfrom-tag%3D${encodeURIComponent(be)}`;He.setHeader("Replaces",dt);try{await F.refer(He,{onNotify:et=>{et.accept();const wt=et.request.body,jn=typeof wt=="string"?wt:wt&&typeof wt=="object"&&"content"in wt?wt.content:void 0;if(jn){const qi=jn.match(/SIP\/2\.0\s+(\d+)/);if(qi&&qi[1]){const yr=parseInt(qi[1]);yr>=200&&yr<300?setTimeout(()=>{le(H.originalChannelId,F),le(H.consultationChannelId,L),e.setTransferInProgress(null)},500):yr>=400&&(console.error("[SipJs] Attended transfer failed with status:",yr),e.setTransferInProgress(null))}}},requestDelegate:{onAccept:()=>{},onReject:et=>{console.error("[SipJs] Attended transfer REFER rejected:",et.message.statusCode),e.setTransferInProgress(null)}}})}catch(et){throw console.error("[SipJs] Attended transfer failed:",et),et}},ar=async()=>{const H=e.transferInProgress.value;if(!H)throw new Error("No transfer in progress");console.log("[SipJs] Canceling attended transfer...");const F=s.value.get(H.originalChannelId),L=s.value.get(H.consultationChannelId);if(L)try{await le(H.consultationChannelId,L),console.log("[SipJs] Consultation call ended")}catch(ue){console.warn("[SipJs] Error ending consultation:",ue)}if(F)try{e.setActiveChannelId(H.originalChannelId),await he(F,!1),e.updateChannelState(H.originalChannelId,{isHeld:!1}),console.log("[SipJs] Returned to original call")}catch(ue){console.warn("[SipJs] Error resuming original call:",ue)}e.setTransferInProgress(null)},St=H=>{const F=H.sessionDescriptionHandler;if(!F){console.error("[SipJs] setupRemoteMedia: no sessionDescriptionHandler");return}const L=F.remoteMediaStream;if(!L){console.error("[SipJs] setupRemoteMedia: no remoteMediaStream on SDH");return}if(a.value===L)return;i.pause(),i.srcObject=null,w?.abort(),w=new AbortController,a.value=L,l.value=F.localMediaStream??null;const ue=st(H);Be(H,ue),ue&&z(H,ue.id);const se=be=>{T?.abort(),T=new AbortController;const{signal:He}=T,dt=()=>{i.play().catch(et=>{et.name!=="AbortError"&&console.error("[SipJs] play() failed:",et.name,et.message)})};be.addEventListener("unmute",()=>{dt()},{signal:He}),dt()};L.addEventListener("addtrack",be=>{be.track.kind==="audio"&&(i.srcObject=null,i.srcObject=L,se(be.track),ue&&z(H,ue.id))},{signal:w.signal});const[we]=L.getTracks();we&&(i.srcObject=L,se(we),ue&&z(H,ue.id))},vn=()=>{T?.abort(),T=null,w?.abort(),w=null,i.pause(),i.srcObject=null,a.value=null,l.value=null};return{initUserAgent:P,stop:re,makeCall:pe,answerCall:fe,hangupCall:ne,toggleMute:Ee,toggleHold:Te,sendDTMF:Ve,transferCall:ce,startAttendedTransfer:ge,completeAttendedTransfer:ut,cancelAttendedTransfer:ar,switchChannel:Oe,extension:_,setVolume:je,setNotificationVolume:q,setRingtoneVolume:C,setRingtoneTone:b,setOutputDevice:Ie,setInputDevice:Pe,remoteStream:a,localStream:l}};var qp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e;const Bp=gp,Lp=(e,t)=>r=>{var n;if(t?.variants==null)return Bp(e,r?.class,r?.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(l=>{const u=r?.[l],c=i?.[l];if(u===null)return null;const d=qp(u)||qp(c);return s[l][d]}),a=r&&Object.entries(r).reduce((l,u)=>{let[c,d]=u;return d===void 0||(l[c]=d),l},{});return Bp(e,o,t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,u)=>{let{class:c,className:d,...p}=u;return Object.entries(p).every(h=>{let[g,w]=h;return Array.isArray(w)?w.includes({...i,...a}[g]):{...i,...a}[g]===w})?[...l,c,d]:l},[]),r?.class,r?.className)};function yy(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function by(e,t,r){yy(e,t),t.set(e,r)}function _y(e,t,r){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function Wo(e,t){return e.get(_y(e,t))}function Fp(e){return typeof e=="string"?`'${e}'`:new Sy().serialize(e)}var Sy=(function(){var e=new WeakMap;class t{constructor(){by(this,e,new Map)}compare(n,s){const i=typeof n,o=typeof s;return i==="string"&&o==="string"?n.localeCompare(s):i==="number"&&o==="number"?n-s:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(s,!0))}serialize(n,s){if(n===null)return"null";switch(typeof n){case"string":return s?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const s=Object.prototype.toString.call(n);if(s!=="[object Object]")return this.serializeBuiltInType(s.length<10?`unknown:${s}`:s.slice(8,-1),n);const i=n.constructor,o=i===Object||i===void 0?"":i.name;if(o!==""&&globalThis[o]===i)return this.serializeBuiltInType(o,n);if(typeof n.toJSON=="function"){const a=n.toJSON();return o+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(o,Object.entries(n))}serializeBuiltInType(n,s){const i=this["$"+n];if(i)return i.call(this,s);if(typeof s?.entries=="function")return this.serializeObjectEntries(n,s.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,s){const i=Array.from(s).sort((a,l)=>this.compare(a[0],l[0]));let o=`${n}{`;for(let a=0;a<i.length;a++){const[l,u]=i[a];o+=`${this.serialize(l,!0)}:${this.serialize(u)}`,a<i.length-1&&(o+=",")}return o+"}"}$object(n){let s=Wo(e,this).get(n);return s===void 0&&(Wo(e,this).set(n,`#${Wo(e,this).size}`),s=this.serializeObject(n),Wo(e,this).set(n,s)),s}$function(n){const s=Function.prototype.toString.call(n);return s.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${s.replace(/\s*\n\s*/g,"")}`}$Array(n){let s="[";for(let i=0;i<n.length;i++)s+=this.serialize(n[i]),i<n.length-1&&(s+=",");return s+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((s,i)=>this.compare(s,i)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const r of["Error","RegExp","URL"])t.prototype["$"+r]=function(n){return`${r}(${n})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])t.prototype["$"+r]=function(n){return`${r}[${n.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])t.prototype["$"+r]=function(n){return`${r}[${n.join("n,")}${n.length>0?"n":""}]`};return t})();function Cy(e,t){return e===t||Fp(e)===Fp(t)}function Ii(e,t=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY){return Math.min(r,Math.max(t,e))}function Dt(e,t){const r=typeof e=="string"&&!t?`${e}Context`:t,n=Symbol(r);return[o=>{const a=Vt(n,o);if(a||a===null)return a;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>(Jn(n,o),o)]}function nr(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Gl(e,t,r){const n=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),n.dispatchEvent(s)}function Jl(e){return e==null}function Yl(e){return e?e.flatMap(t=>t.type===Ke?Yl(t.children):[t]):[]}var[Go,qx]=Dt("ConfigProvider");function xy(e,t){var r;const n=ft();return at(()=>{n.value=e()},{...t,flush:(r=t?.flush)!==null&&r!==void 0?r:"sync"}),Mt(n)}function Mn(e,t){return Ki()?(ka(e,t),!0):!1}function Ty(){const e=new Set,t=i=>{e.delete(i)};return{on:i=>{e.add(i);const o=()=>t(i);return Mn(o),{off:o}},off:t,trigger:(...i)=>Promise.all(Array.from(e).map(o=>o(...i))),clear:()=>{e.clear()}}}function Ey(e){let t=!1,r;const n=Aa(!0);return((...s)=>(t||(r=n.run(()=>e(...s)),t=!0),r))}var Bt=typeof window<"u"&&typeof document<"u",Bx=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,Ay=e=>typeof e<"u",ky=Object.prototype.toString,Ry=e=>ky.call(e)==="[object Object]",ln=()=>{},Zl=Iy();function Iy(){var e,t,r;return Bt&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((r=window)===null||r===void 0?void 0:r.navigator.userAgent))}function $y(...e){if(e.length!==1)return La(...e);const t=e[0];return typeof t=="function"?Mt(ei(()=>({get:t,set:ln}))):V(t)}function Vp(e,t){function r(...n){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(s).catch(i)})}return r}var jp=e=>e();function Py(e,t={}){let r,n,s=ln;const i=l=>{clearTimeout(l),s(),s=ln};let o;return l=>{const u=Ae(e),c=Ae(t.maxWait);return r&&i(r),u<=0||c!==void 0&&c<=0?(n&&(i(n),n=void 0),Promise.resolve(l())):new Promise((d,p)=>{s=t.rejectOnCancel?p:d,o=l,c&&!n&&(n=setTimeout(()=>{r&&i(r),n=void 0,d(o())},c)),r=setTimeout(()=>{n&&i(n),n=void 0,d(l())},u)})}}function Dy(e=jp,t={}){const{initialState:r="active"}=t,n=$y(r==="active");function s(){n.value=!1}function i(){n.value=!0}return{isActive:Mt(n),pause:s,resume:i,eventFilter:(...a)=>{n.value&&e(...a)}}}function Xl(e){return Array.isArray(e)?e:[e]}function Up(e){const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))}var Oy=/\B([A-Z])/g,Lx=Up(e=>e.replace(Oy,"-$1").toLowerCase()),Hy=/-(\w)/g,Fx=Up(e=>e.replace(Hy,(t,r)=>r?r.toUpperCase():""));function zp(e){return e||vt()}function My(e){if(!Bt)return e;let t=0,r,n;const s=()=>{t-=1,n&&t<=0&&(n.stop(),r=void 0,n=void 0)};return((...i)=>(t+=1,n||(n=Aa(!0),r=n.run(()=>e(...i))),Mn(s),r))}function Ny(e){return Wr(tt(e)?new Proxy({},{get(t,r,n){return f(Reflect.get(e.value,r,n))},set(t,r,n){return tt(e.value[r])&&!tt(n)?e.value[r].value=n:e.value[r]=n,!0},deleteProperty(t,r){return Reflect.deleteProperty(e.value,r)},has(t,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function qy(e){return Ny(j(e))}function zt(e,...t){const r=t.flat(),n=r[0];return qy(()=>Object.fromEntries(typeof n=="function"?Object.entries(Nt(e)).filter(([s,i])=>!n(Ae(i),s)):Object.entries(Nt(e)).filter(s=>!r.includes(s[0]))))}function Kp(e,t=1e4){return ei((r,n)=>{let s=Ae(e),i;const o=()=>setTimeout(()=>{s=Ae(e),n()},Ae(t));return Mn(()=>{clearTimeout(i)}),{get(){return r(),s},set(a){s=a,n(),clearTimeout(i),i=o()}}})}function Ql(e,t=200,r={}){return Vp(Py(t,r),e)}function By(e,t,r={}){const{eventFilter:n=jp,...s}=r;return De(e,Vp(n,t),s)}function Ly(e,t,r={}){const{eventFilter:n,initialState:s="active",...i}=r,{eventFilter:o,pause:a,resume:l,isActive:u}=Dy(n,{initialState:s});return{stop:By(e,t,{...i,eventFilter:o}),pause:a,resume:l,isActive:u}}function Fy(e,t={}){if(!tt(e))return Nt(e);const r=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)r[n]=ei(()=>({get(){return e.value[n]},set(s){var i;if(!((i=Ae(t.replaceRef))!==null&&i!==void 0)||i)if(Array.isArray(e.value)){const o=[...e.value];o[n]=s,e.value=o}else{const o={...e.value,[n]:s};Object.setPrototypeOf(o,Object.getPrototypeOf(e.value)),e.value=o}else e.value[n]=s}}));return r}function Vy(e,t){zp(t)&&Rs(e,t)}function jy(e,t=!0,r){zp(r)?Qe(e,r):t?e():At(e)}function Uy(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:s=!1}=r;let i=null;const o=ft(!1);function a(){i&&(clearInterval(i),i=null)}function l(){o.value=!1,a()}function u(){const c=Ae(t);c<=0||(o.value=!0,s&&e(),a(),o.value&&(i=setInterval(e,c)))}return n&&Bt&&u(),(tt(t)||typeof t=="function")&&Mn(De(t,()=>{o.value&&Bt&&u()})),Mn(l),{isActive:Gr(o),pause:l,resume:u}}function Wp(e,t,r={}){const{immediate:n=!0,immediateCallback:s=!1}=r,i=ft(!1);let o;function a(){o&&(clearTimeout(o),o=void 0)}function l(){i.value=!1,a()}function u(...c){s&&e(),a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=void 0,e(...c)},Ae(t))}return n&&(i.value=!0,Bt&&u()),Mn(l),{isPending:Gr(i),start:u,stop:l}}function zy(e,t,r){return De(e,t,{...r,immediate:!0})}function Ky(e,t,r){return De(e,t,{...r,once:!0})}var kr=Bt?window:void 0,Vx=Bt?window.document:void 0,jx=Bt?window.navigator:void 0,Ux=Bt?window.location:void 0;function Xt(e){var t;const r=Ae(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function Kt(...e){const t=(n,s,i,o)=>(n.addEventListener(s,i,o),()=>n.removeEventListener(s,i,o)),r=j(()=>{const n=Xl(Ae(e[0])).filter(s=>s!=null);return n.every(s=>typeof s!="string")?n:void 0});return zy(()=>{var n,s;return[(n=(s=r.value)===null||s===void 0?void 0:s.map(i=>Xt(i)))!==null&&n!==void 0?n:[kr].filter(i=>i!=null),Xl(Ae(r.value?e[1]:e[0])),Xl(f(r.value?e[2]:e[1])),Ae(r.value?e[3]:e[2])]},([n,s,i,o],a,l)=>{if(!n?.length||!s?.length||!i?.length)return;const u=Ry(o)?{...o}:o,c=n.flatMap(d=>s.flatMap(p=>i.map(h=>t(d,p,h,u))));l(()=>{c.forEach(d=>d())})},{flush:"post"})}var Gp=!1;function Wy(e,t,r={}){const{window:n=kr,ignore:s=[],capture:i=!0,detectIframe:o=!1,controls:a=!1}=r;if(!n)return a?{stop:ln,cancel:ln,trigger:ln}:ln;if(Zl&&!Gp){Gp=!0;const T={passive:!0};Array.from(n.document.body.children).forEach(v=>v.addEventListener("click",ln,T)),n.document.documentElement.addEventListener("click",ln,T)}let l=!0;const u=T=>Ae(s).some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(S=>S===T.target||T.composedPath().includes(S));{const S=Xt(v);return S&&(T.target===S||T.composedPath().includes(S))}});function c(T){const v=Ae(T);return v&&v.$.subTree.shapeFlag===16}function d(T,v){const S=Ae(T),y=S.$.subTree&&S.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(_=>_.el===v.target||v.composedPath().includes(_.el))}const p=T=>{const v=Xt(e);if(T.target!=null&&!(!(v instanceof Element)&&c(e)&&d(e,T))&&!(!v||v===T.target||T.composedPath().includes(v))){if("detail"in T&&T.detail===0&&(l=!u(T)),!l){l=!0;return}t(T)}};let h=!1;const g=[Kt(n,"click",T=>{h||(h=!0,setTimeout(()=>{h=!1},0),p(T))},{passive:!0,capture:i}),Kt(n,"pointerdown",T=>{const v=Xt(e);l=!u(T)&&!!(v&&!T.composedPath().includes(v))},{passive:!0}),o&&Kt(n,"blur",T=>{setTimeout(()=>{var v;const S=Xt(e);((v=n.document.activeElement)===null||v===void 0?void 0:v.tagName)==="IFRAME"&&!S?.contains(n.document.activeElement)&&t(T)},0)},{passive:!0})].filter(Boolean),w=()=>g.forEach(T=>T());return a?{stop:w,cancel:()=>{l=!1},trigger:T=>{l=!0,p(T),l=!1}}:w}function ec(){const e=ft(!1),t=vt();return t&&Qe(()=>{e.value=!0},t),e}function Jp(e){const t=ec();return j(()=>(t.value,!!e()))}function Gy(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Jy(...e){let t,r,n={};e.length===3?(t=e[0],r=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],n=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=kr,eventName:i="keydown",passive:o=!1,dedupe:a=!1}=n,l=Gy(t);return Kt(s,i,c=>{c.repeat&&Ae(a)||l(c)&&r(c)},o)}function Yy(e){return JSON.parse(JSON.stringify(e))}var Jo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yo="__vueuse_ssr_handlers__",Zy=Xy();function Xy(){return Yo in Jo||(Jo[Yo]=Jo[Yo]||{}),Jo[Yo]}function Qy(e,t){return Zy[e]||t}function eb(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var tb={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Yp="vueuse-storage";function os(e,t,r,n={}){var s;const{flush:i="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=kr,eventFilter:p,onError:h=O=>{console.error(O)},initOnMounted:g}=n,w=(c?ft:V)(typeof t=="function"?t():t),T=j(()=>Ae(e));if(!r)try{r=Qy("getDefaultStorage",()=>kr?.localStorage)()}catch(O){h(O)}if(!r)return w;const v=Ae(t),S=eb(v),y=(s=n.serializer)!==null&&s!==void 0?s:tb[S],{pause:_,resume:E}=Ly(w,O=>q(O),{flush:i,deep:o,eventFilter:p});De(T,()=>b(),{flush:i});let $=!1;const B=O=>{g&&!$||b(O)},m=O=>{g&&!$||x(O)};d&&a&&(r instanceof Storage?Kt(d,"storage",B,{passive:!0}):Kt(d,Yp,m)),g?jy(()=>{$=!0,b()}):b();function N(O,R){if(d){const M={key:T.value,oldValue:O,newValue:R,storageArea:r};d.dispatchEvent(r instanceof Storage?new StorageEvent("storage",M):new CustomEvent(Yp,{detail:M}))}}function q(O){try{const R=r.getItem(T.value);if(O==null)N(R,null),r.removeItem(T.value);else{const M=y.write(O);R!==M&&(r.setItem(T.value,M),N(R,M))}}catch(R){h(R)}}function C(O){const R=O?O.newValue:r.getItem(T.value);if(R==null)return l&&v!=null&&r.setItem(T.value,y.write(v)),v;if(!O&&u){const M=y.read(R);return typeof u=="function"?u(M,v):S==="object"&&!Array.isArray(M)?{...v,...M}:M}else return typeof R!="string"?R:y.read(R)}function b(O){if(!(O&&O.storageArea!==r)){if(O&&O.key==null){w.value=v;return}if(!(O&&O.key!==T.value)){_();try{const R=y.write(w.value);(O===void 0||O?.newValue!==R)&&(w.value=C(O))}catch(R){h(R)}finally{O?At(E):E()}}}}function x(O){b(O.detail)}return w}var Zo={speed:2,margin:30,direction:"both"};function rb(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function nb(e,t={}){var r,n,s,i;const{pointerTypes:o,preventDefault:a,stopPropagation:l,exact:u,onMove:c,onEnd:d,onStart:p,initialValue:h,axis:g="both",draggingElement:w=kr,containerElement:T,handle:v=e,buttons:S=[0],restrictInView:y,autoScroll:_=!1}=t,E=V((r=Ae(h))!==null&&r!==void 0?r:{x:0,y:0}),$=V(),B=ae=>o?o.includes(ae.pointerType):!0,m=ae=>{Ae(a)&&ae.preventDefault(),Ae(l)&&ae.stopPropagation()},N=Ae(_),q=typeof N=="object"?{speed:(n=Ae(N.speed))!==null&&n!==void 0?n:Zo.speed,margin:(s=Ae(N.margin))!==null&&s!==void 0?s:Zo.margin,direction:(i=N.direction)!==null&&i!==void 0?i:Zo.direction}:Zo,C=ae=>typeof ae=="number"?[ae,ae]:[ae.x,ae.y],b=(ae,de,Re)=>{const{clientWidth:je,clientHeight:Ie,scrollLeft:Pe,scrollTop:nt,scrollWidth:_t,scrollHeight:Be}=ae,[st,ht]=C(q.margin),[mt,A]=C(q.speed);let P=0,J=0;(q.direction==="x"||q.direction==="both")&&(Re.x<st&&Pe>0?P=-mt:Re.x+de.width>je-st&&Pe<_t-je&&(P=mt)),(q.direction==="y"||q.direction==="both")&&(Re.y<ht&&nt>0?J=-A:Re.y+de.height>Ie-ht&&nt<Be-Ie&&(J=A)),(P||J)&&ae.scrollBy({left:P,top:J,behavior:"auto"})};let x=null;const O=()=>{const ae=Ae(T);ae&&!x&&(x=setInterval(()=>{const de=Ae(e).getBoundingClientRect(),{x:Re,y:je}=E.value,Ie={x:Re-ae.scrollLeft,y:je-ae.scrollTop};Ie.x>=0&&Ie.y>=0&&(b(ae,de,Ie),Ie.x+=ae.scrollLeft,Ie.y+=ae.scrollTop,E.value=Ie)},1e3/60))},R=()=>{x&&(clearInterval(x),x=null)},M=(ae,de,Re,je)=>{const[Ie,Pe]=typeof Re=="number"?[Re,Re]:[Re.x,Re.y],{clientWidth:nt,clientHeight:_t}=de;return ae.x<Ie||ae.x+je.width>nt-Ie||ae.y<Pe||ae.y+je.height>_t-Pe},z=()=>{if(Ae(t.disabled)||!$.value)return;const ae=Ae(T);if(!ae)return;const de=Ae(e).getBoundingClientRect(),{x:Re,y:je}=E.value;M({x:Re-ae.scrollLeft,y:je-ae.scrollTop},ae,q.margin,de)?O():R()};Ae(_)&&De(E,z);const G=ae=>{var de;if(!Ae(S).includes(ae.button)||Ae(t.disabled)||!B(ae)||Ae(u)&&ae.target!==Ae(e))return;const Re=Ae(T),je=Re==null||(de=Re.getBoundingClientRect)===null||de===void 0?void 0:de.call(Re),Ie=Ae(e).getBoundingClientRect(),Pe={x:ae.clientX-(Re?Ie.left-je.left+(_?0:Re.scrollLeft):Ie.left),y:ae.clientY-(Re?Ie.top-je.top+(_?0:Re.scrollTop):Ie.top)};p?.(Pe,ae)!==!1&&($.value=Pe,m(ae))},oe=ae=>{if(Ae(t.disabled)||!B(ae)||!$.value)return;const de=Ae(T);de instanceof HTMLElement&&rb(de);const Re=Ae(e).getBoundingClientRect();let{x:je,y:Ie}=E.value;if((g==="x"||g==="both")&&(je=ae.clientX-$.value.x,de&&(je=Math.min(Math.max(0,je),de.scrollWidth-Re.width))),(g==="y"||g==="both")&&(Ie=ae.clientY-$.value.y,de&&(Ie=Math.min(Math.max(0,Ie),de.scrollHeight-Re.height))),Ae(_)&&de&&(x===null&&b(de,Re,{x:je,y:Ie}),je+=de.scrollLeft,Ie+=de.scrollTop),de&&(y||_)){if(g!=="y"){const Pe=je-de.scrollLeft;Pe<0?je=de.scrollLeft:Pe>de.clientWidth-Re.width&&(je=de.clientWidth-Re.width+de.scrollLeft)}if(g!=="x"){const Pe=Ie-de.scrollTop;Pe<0?Ie=de.scrollTop:Pe>de.clientHeight-Re.height&&(Ie=de.clientHeight-Re.height+de.scrollTop)}}E.value={x:je,y:Ie},c?.(E.value,ae),m(ae)},Y=ae=>{Ae(t.disabled)||!B(ae)||$.value&&($.value=void 0,_&&R(),d?.(E.value,ae),m(ae))};if(Bt){const ae=()=>{var de;return{capture:(de=t.capture)!==null&&de!==void 0?de:!0,passive:!Ae(a)}};Kt(v,"pointerdown",G,ae),Kt(w,"pointermove",oe,ae),Kt(w,"pointerup",Y,ae)}return{...Fy(E),position:E,isDragging:j(()=>!!$.value),style:j(()=>`
|
|
67
|
+
`))}startSendingKeepAlives(){const t=r=>{const n=r*.8;return 1e3*(Math.random()*(r-n)+n)};this.configuration.keepAliveInterval&&!this.keepAliveInterval&&(this.keepAliveInterval=setInterval(()=>{this.sendKeepAlive(),this.startSendingKeepAlives()},t(this.configuration.keepAliveInterval)))}stopSendingKeepAlives(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveInterval=void 0,this.keepAliveDebounceTimeout=void 0}};gp.defaultOptions={server:"",connectionTimeout:5,keepAliveInterval:0,keepAliveDebounce:10,traceSip:!0};var Br=class xa{constructor(t={}){if(this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this._state=Pt.Stopped,this._stateEventEmitter=new Hs,this.delegate=t.delegate,this.options=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xa.defaultOptions()),{sipjsId:ss(5)}),{uri:new An("sip","anonymous."+ss(6),"anonymous.invalid")}),{viaHost:ss(12)+".invalid"}),xa.stripUndefinedProperties(t)),this.options.hackIpInContact)if(typeof this.options.hackIpInContact=="boolean"&&this.options.hackIpInContact){const n=Math.floor(Math.random()*254+1);this.options.viaHost="192.0.2."+n}else this.options.hackIpInContact&&(this.options.viaHost=this.options.hackIpInContact);switch(this.loggerFactory=new tw,this.logger=this.loggerFactory.getLogger("sip.UserAgent"),this.loggerFactory.builtinEnabled=this.options.logBuiltinEnabled,this.loggerFactory.connector=this.options.logConnector,this.options.logLevel){case"error":this.loggerFactory.level=Rt.error;break;case"warn":this.loggerFactory.level=Rt.warn;break;case"log":this.loggerFactory.level=Rt.log;break;case"debug":this.loggerFactory.level=Rt.debug;break;default:break}if(this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(r=>{const n=this.options[r];switch(r){case"uri":case"sessionDescriptionHandlerFactory":this.logger.log("· "+r+": "+n);break;case"authorizationPassword":this.logger.log("· "+r+": NOT SHOWN");break;case"transportConstructor":this.logger.log("· "+r+": "+n.name);break;default:this.logger.log("· "+r+": "+JSON.stringify(n))}})),this.options.transportOptions){const r=this.options.transportOptions,n=r.maxReconnectionAttempts,s=r.reconnectionTimeout;n!==void 0&&this.logger.warn('The transport option "maxReconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),s!==void 0&&this.logger.warn('The transport option "reconnectionTimeout" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),t.reconnectionDelay===void 0&&s!==void 0&&(this.options.reconnectionDelay=s),t.reconnectionAttempts===void 0&&n!==void 0&&(this.options.reconnectionAttempts=n)}if(t.reconnectionDelay!==void 0&&this.logger.warn('The user agent option "reconnectionDelay" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),t.reconnectionAttempts!==void 0&&this.logger.warn('The user agent option "reconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),this._transport=new this.options.transportConstructor(this.getLogger("sip.Transport"),this.options.transportOptions),this.initTransportCallbacks(),this._contact=this.initContact(),this._instanceId=this.options.instanceId?this.options.instanceId:xa.newUUID(),Tt.parse(this._instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");this._userAgentCore=this.initCore()}static makeURI(t){return Tt.URIParse(t)}static defaultOptions(){return{allowLegacyNotifications:!1,authorizationHa1:"",authorizationPassword:"",authorizationUsername:"",delegate:{},contactName:"",contactParams:{transport:"ws"},displayName:"",forceRport:!1,gracefulShutdown:!0,hackAllowUnregisteredOptionTags:!1,hackIpInContact:!1,hackViaTcp:!1,instanceId:"",instanceIdAlwaysAdded:!1,logBuiltinEnabled:!0,logConfiguration:!0,logConnector:()=>{},logLevel:"log",noAnswerTimeout:60,preloadedRouteSet:[],reconnectionAttempts:0,reconnectionDelay:4,sendInitialProvisionalResponse:!0,sessionDescriptionHandlerFactory:Tw(),sessionDescriptionHandlerFactoryOptions:{},sipExtension100rel:kr.Unsupported,sipExtensionReplaces:kr.Unsupported,sipExtensionExtraSupported:[],sipjsId:"",transportConstructor:gp,transportOptions:{},uri:new An("sip","anonymous","anonymous.invalid"),userAgentString:"SIP.js/"+V0,viaHost:""}}static newUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=Math.floor(Math.random()*16);return(t==="x"?r:r%4+8).toString(16)})}static stripUndefinedProperties(t){return Object.keys(t).reduce((r,n)=>(t[n]!==void 0&&(r[n]=t[n]),r),{})}get configuration(){return this.options}get contact(){return this._contact}get instanceId(){return this._instanceId}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get transport(){return this._transport}get userAgentCore(){return this._userAgentCore}getLogger(t,r){return this.loggerFactory.getLogger(t,r)}getLoggerFactory(){return this.loggerFactory}isConnected(){return this.transport.isConnected()}reconnect(){return this.state===Pt.Stopped?Promise.reject(new Error("User agent stopped.")):Promise.resolve().then(()=>this.transport.connect())}start(){return this.state===Pt.Started?(this.logger.warn("User agent already started"),Promise.resolve()):(this.logger.log(`Starting ${this.configuration.uri}`),this.transitionState(Pt.Started),this.transport.connect())}async stop(){if(this.state===Pt.Stopped)return this.logger.warn("User agent already stopped"),Promise.resolve();if(this.logger.log(`Stopping ${this.configuration.uri}`),!this.options.gracefulShutdown)return this.logger.log("Dispose of transport"),this.transport.dispose().catch(a=>{throw this.logger.error(a.message),a}),this.logger.log("Dispose of core"),this.userAgentCore.dispose(),this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this.transitionState(Pt.Stopped),Promise.resolve();const t=Object.assign({},this._publishers),r=Object.assign({},this._registerers),n=Object.assign({},this._sessions),s=Object.assign({},this._subscriptions),i=this.transport,o=this.userAgentCore;this.logger.log("Dispose of registerers");for(const a in r)r[a]&&await r[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._registerers[a],l});this.logger.log("Dispose of sessions");for(const a in n)n[a]&&await n[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._sessions[a],l});this.logger.log("Dispose of subscriptions");for(const a in s)s[a]&&await s[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._subscriptions[a],l});this.logger.log("Dispose of publishers");for(const a in t)t[a]&&await t[a].dispose().catch(l=>{throw this.logger.error(l.message),delete this._publishers[a],l});this.logger.log("Dispose of transport"),await i.dispose().catch(a=>{throw this.logger.error(a.message),a}),this.logger.log("Dispose of core"),o.dispose(),this.transitionState(Pt.Stopped)}_makeInviter(t,r){return new Vo(this,t,r)}attemptReconnection(t=1){const r=this.options.reconnectionAttempts,n=this.options.reconnectionDelay;if(t>r){this.logger.log("Maximum reconnection attempts reached");return}this.logger.log(`Reconnection attempt ${t} of ${r} - trying`),setTimeout(()=>{this.reconnect().then(()=>{this.logger.log(`Reconnection attempt ${t} of ${r} - succeeded`)}).catch(s=>{this.logger.error(s.message),this.logger.log(`Reconnection attempt ${t} of ${r} - failed`),this.attemptReconnection(++t)})},t===1?0:n*1e3)}initContact(){const t=this.options.contactName!==""?this.options.contactName:ss(8),r=this.options.contactParams;return{pubGruu:void 0,tempGruu:void 0,uri:new An("sip",t,this.options.viaHost,void 0,r),toString:(n={})=>{const s=n.anonymous||!1,i=n.outbound||!1,o=n.register||!1;let a="<";return s?a+=this.contact.tempGruu||`sip:anonymous@anonymous.invalid;transport=${r.transport?r.transport:"ws"}`:o?a+=this.contact.uri:a+=this.contact.pubGruu||this.contact.uri,i&&(a+=";ob"),a+=">",this.options.instanceIdAlwaysAdded&&(a+=';+sip.instance="<urn:uuid:'+this._instanceId+'>"'),a}}}initCore(){let t=[];t.push("outbound"),this.options.sipExtension100rel===kr.Supported&&t.push("100rel"),this.options.sipExtensionReplaces===kr.Supported&&t.push("replaces"),this.options.sipExtensionExtraSupported&&t.push(...this.options.sipExtensionExtraSupported),this.options.hackAllowUnregisteredOptionTags||(t=t.filter(n=>Q0[n])),t=Array.from(new Set(t));const r=t.slice();return(this.contact.pubGruu||this.contact.tempGruu)&&r.push("gruu"),new _w({aor:this.options.uri,contact:this.contact,displayName:this.options.displayName,loggerFactory:this.loggerFactory,hackViaTcp:this.options.hackViaTcp,routeSet:this.options.preloadedRouteSet,supportedOptionTags:t,supportedOptionTagsResponse:r,sipjsId:this.options.sipjsId,userAgentHeaderFieldValue:this.options.userAgentString,viaForceRport:this.options.forceRport,viaHost:this.options.viaHost,authenticationFactory:()=>{const n=this.options.authorizationUsername?this.options.authorizationUsername:this.options.uri.user,s=this.options.authorizationPassword?this.options.authorizationPassword:void 0,i=this.options.authorizationHa1?this.options.authorizationHa1:void 0;return new ew(this.getLoggerFactory(),i,n,s)},transportAccessor:()=>this.transport},{onInvite:n=>{var s;const i=new Ns(this,n);if(n.delegate={onCancel:o=>{i._onCancel(o)},onTransportError:o=>{this.logger.error("A transport error has occurred while handling an incoming INVITE request.")}},n.trying(),this.options.sipExtensionReplaces!==kr.Unsupported){const o=n.message.parseHeader("replaces");if(o){const a=o.call_id;if(typeof a!="string")throw new Error("Type of call id is not string");const l=o.replaces_to_tag;if(typeof l!="string")throw new Error("Type of to tag is not string");const u=o.replaces_from_tag;if(typeof u!="string")throw new Error("type of from tag is not string");const c=a+l+u,d=this.userAgentCore.dialogs.get(c);if(!d){i.reject({statusCode:481});return}if(!d.early&&o.early_only===!0){i.reject({statusCode:486});return}const p=this._sessions[a+u]||this._sessions[a+l]||void 0;if(!p)throw new Error("Session does not exist.");i._replacee=p}}if(!((s=this.delegate)===null||s===void 0)&&s.onInvite){if(i.autoSendAnInitialProvisionalResponse){i.progress().then(()=>{var o;if(((o=this.delegate)===null||o===void 0?void 0:o.onInvite)===void 0)throw new Error("onInvite undefined.");this.delegate.onInvite(i)});return}this.delegate.onInvite(i);return}i.reject({statusCode:486})},onMessage:n=>{if(this.delegate&&this.delegate.onMessage){const s=new sp(n);this.delegate.onMessage(s)}else n.accept()},onNotify:n=>{if(this.delegate&&this.delegate.onNotify){const s=new Bl(n);this.delegate.onNotify(s)}else this.options.allowLegacyNotifications?n.accept():n.reject({statusCode:481})},onRefer:n=>{this.logger.warn("Received an out of dialog REFER request"),this.delegate&&this.delegate.onReferRequest?this.delegate.onReferRequest(n):n.reject({statusCode:405})},onRegister:n=>{this.logger.warn("Received an out of dialog REGISTER request"),this.delegate&&this.delegate.onRegisterRequest?this.delegate.onRegisterRequest(n):n.reject({statusCode:405})},onSubscribe:n=>{this.logger.warn("Received an out of dialog SUBSCRIBE request"),this.delegate&&this.delegate.onSubscribeRequest?this.delegate.onSubscribeRequest(n):n.reject({statusCode:405})}})}initTransportCallbacks(){this.transport.onConnect=()=>this.onTransportConnect(),this.transport.onDisconnect=t=>this.onTransportDisconnect(t),this.transport.onMessage=t=>this.onTransportMessage(t)}onTransportConnect(){this.state!==Pt.Stopped&&this.delegate&&this.delegate.onConnect&&this.delegate.onConnect()}onTransportDisconnect(t){this.state!==Pt.Stopped&&(this.delegate&&this.delegate.onDisconnect&&this.delegate.onDisconnect(t),t&&this.options.reconnectionAttempts>0&&this.attemptReconnection())}onTransportMessage(t){const r=Uo.parseMessage(t,this.getLogger("sip.Parser"));if(!r){this.logger.warn("Failed to parse incoming message. Dropping.");return}if(this.state===Pt.Stopped&&r instanceof Ms){this.logger.warn(`Received ${r.method} request while stopped. Dropping.`);return}const n=()=>{for(const s of["from","to","call_id","cseq","via"])if(!r.hasHeader(s))return this.logger.warn(`Missing mandatory header field : ${s}.`),!1;return!0};if(r instanceof Ms){if(!n()){this.logger.warn("Request missing mandatory header field. Dropping.");return}if(!r.toTag&&r.callId.substr(0,5)===this.options.sipjsId){this.userAgentCore.replyStateless(r,{statusCode:482});return}const s=ki(r.body),i=r.getHeader("content-length");if(i&&s<Number(i)){this.userAgentCore.replyStateless(r,{statusCode:400});return}}if(r instanceof kn){if(!n()){this.logger.warn("Response missing mandatory header field. Dropping.");return}if(r.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response. Dropping.");return}if(r.via.host!==this.options.viaHost||r.via.port!==void 0){this.logger.warn("Via sent-by in the response does not match UA Via host value. Dropping.");return}const s=ki(r.body),i=r.getHeader("content-length");if(i&&s<Number(i)){this.logger.warn("Message body length is lower than the value in Content-Length header field. Dropping.");return}}if(r instanceof Ms){this.userAgentCore.receiveIncomingRequestFromTransport(r);return}if(r instanceof kn){this.userAgentCore.receiveIncomingResponseFromTransport(r);return}throw new Error("Invalid message type.")}transitionState(t,r){const n=()=>{throw new Error(`Invalid state transition from ${this._state} to ${t}`)};switch(this._state){case Pt.Started:t!==Pt.Stopped&&n();break;case Pt.Stopped:t!==Pt.Started&&n();break;default:throw new Error("Unknown state.")}this.logger.log(`Transitioned from ${this._state} to ${t}`),this._state=t,this._stateEventEmitter.emit(this._state)}},ct=new window.AudioContext,Ew={1:[697,1209],2:[697,1336],3:[697,1477],A:[697,1633],4:[770,1209],5:[770,1336],6:[770,1477],B:[770,1633],7:[852,1209],8:[852,1336],9:[852,1477],C:[852,1633],"*":[941,1209],0:[941,1336],"#":[941,1477],D:[941,1633]},Wo=V(null),Go=V(null),Ii=V(null),$i=V(.5),Jo=V(1),jl=V("original"),Yo=V(!1),Pi={original:{frequencies:[523.25,659.25,783.99],type:"sine",originalMelody:!0,gain:.7,duration:.5,repeatDelay:400},aurora:{frequencies:[523.25,659.25,783.99,1046.5],type:"sine",originalMelody:!0,gain:.85,duration:.55,repeatDelay:400},resonancia:{frequencies:[392,523.25,659.25,783.99],type:"triangle",originalMelody:!0,gain:1,duration:.6,repeatDelay:400}};const vp=()=>{const e={classic:"original","original-loud":"aurora","original-intense":"resonancia"},t=d=>{$i.value=Math.max(0,Math.min(1,d/100))},r=d=>{Jo.value=Math.max(0,Math.min(1,d/100))},n=()=>{Yo.value&&(l(),a())},s=d=>{const p=e[d]??d;jl.value=Pi[p]?p:"original",n()},i=(d,p=150)=>{ct.state==="suspended"&&ct.resume();const h=Ew[d.toUpperCase()];if(!h)return;const m=ct.createOscillator(),y=ct.createOscillator(),T=ct.createGain();m.frequency.value=h[0],y.frequency.value=h[1],m.type="sine",y.type="sine",T.gain.value=.1*$i.value,m.connect(T),y.connect(T),T.connect(ct.destination),m.start(),y.start(),setTimeout(()=>{m.stop(),y.stop(),m.disconnect(),y.disconnect(),T.disconnect()},p)},o=async(d=500)=>{if(ct.state==="suspended")try{await ct.resume()}catch{}const p=ct.createOscillator(),h=ct.createGain(),m=ct.currentTime;p.type="sine",p.frequency.value=600;const y=.02,T=.1,g=.75*$i.value;h.gain.setValueAtTime(0,m),h.gain.linearRampToValueAtTime(g,m+y),h.gain.setValueAtTime(g,m+d/1e3-T),h.gain.linearRampToValueAtTime(0,m+d/1e3),p.connect(h),h.connect(ct.destination),p.start(m),p.stop(m+d/1e3),await new Promise(b=>window.setTimeout(b,d))},a=()=>{if(Yo.value)return;Yo.value=!0,ct.state==="suspended"&&ct.resume();const d=()=>{const h=ct.currentTime,m=Pi[jl.value]||Pi.original,y=ct.createGain(),T=m.duration,g=(m.originalMelody?[m.frequencies[0]]:m.frequencies).map(b=>{const w=ct.createOscillator();return w.type=m.type,w.frequency.setValueAtTime(b,h),m.originalMelody&&m.frequencies.slice(1).forEach((_,E)=>{w.frequency.setValueAtTime(_,h+(E+1)*.1)}),w.connect(y),w});m.originalMelody?(y.gain.setValueAtTime(m.gain*Jo.value,h),y.gain.exponentialRampToValueAtTime(.001,h+T)):(y.gain.setValueAtTime(0,h),y.gain.linearRampToValueAtTime(.7*Jo.value,h+.02),y.gain.setValueAtTime(.7*Jo.value,h+1.05),y.gain.linearRampToValueAtTime(0,h+T)),y.connect(ct.destination),g.forEach(b=>{b.start(h),b.stop(h+T)})},p=()=>{const h=Pi[jl.value]||Pi.original;Go.value=window.setTimeout(d,h.repeatDelay)};d(),p(),Wo.value=window.setInterval(()=>{d(),p()},3e3)},l=()=>{Wo.value&&(clearInterval(Wo.value),Wo.value=null),Go.value&&(clearTimeout(Go.value),Go.value=null),Yo.value=!1};return{playDtmf:i,playAutoAnswerBeep:o,startRingtone:a,stopRingtone:l,startRingback:()=>{if(Ii.value)return;ct.state==="suspended"&&ct.resume();const d=()=>{const p=ct.currentTime,h=ct.createOscillator(),m=ct.createGain();h.type="sine",h.frequency.value=425,m.gain.setValueAtTime(.1*$i.value,p),m.gain.linearRampToValueAtTime(.1*$i.value,p+1),m.gain.linearRampToValueAtTime(0,p+1.1),h.connect(m),m.connect(ct.destination),h.start(p),h.stop(p+1.1)};d(),Ii.value=window.setInterval(()=>{d()},4e3)},stopRingback:()=>{Ii.value&&(clearInterval(Ii.value),Ii.value=null)},setNotificationVolume:t,setRingtoneVolume:r,setRingtoneTone:s}};function mp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=mp(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wp(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=mp(e))&&(n&&(n+=" "),n+=t);return n}var Aw=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},kw=(e,t)=>({classGroupId:e,validator:t}),yp=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Zo="-",bp=[],Rw="arbitrary..",Iw=e=>{const t=Pw(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return $w(o);const a=o.split(Zo);return _p(a,a[0]===""&&a.length>1?1:0,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=n[o],u=r[o];return l?u?Aw(u,l):l:u||bp}return r[o]||bp}}},_p=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],s=r.nextPart.get(n);if(s){const l=_p(e,t+1,s);if(l)return l}const i=r.validators;if(i===null)return;const o=t===0?e.join(Zo):e.slice(t).join(Zo),a=i.length;for(let l=0;l<a;l++){const u=i[l];if(u.validator(o))return u.classGroupId}},$w=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Rw+n:void 0})(),Pw=e=>{const{theme:t,classGroups:r}=e;return Dw(r,t)},Dw=(e,t)=>{const r=yp();for(const n in e){const s=e[n];Ul(s,r,n,t)}return r},Ul=(e,t,r,n)=>{const s=e.length;for(let i=0;i<s;i++){const o=e[i];Ow(o,t,r,n)}},Ow=(e,t,r,n)=>{if(typeof e=="string"){Hw(e,t,r);return}if(typeof e=="function"){Mw(e,t,r,n);return}Nw(e,t,r,n)},Hw=(e,t,r)=>{const n=e===""?t:Sp(t,e);n.classGroupId=r},Mw=(e,t,r,n)=>{if(qw(e)){Ul(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(kw(r,e))},Nw=(e,t,r,n)=>{const s=Object.entries(e),i=s.length;for(let o=0;o<i;o++){const[a,l]=s[o];Ul(l,Sp(t,a),r,n)}},Sp=(e,t)=>{let r=e;const n=t.split(Zo),s=n.length;for(let i=0;i<s;i++){const o=n[i];let a=r.nextPart.get(o);a||(a=yp(),r.nextPart.set(o,a)),r=a}return r},qw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Bw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const s=(i,o)=>{r[i]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let o=r[i];if(o!==void 0)return o;if((o=n[i])!==void 0)return s(i,o),o},set(i,o){i in r?r[i]=o:s(i,o)}}},zl="!",Cp=":",Lw=[],xp=(e,t,r,n,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:s}),Fw=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=s=>{const i=[];let o=0,a=0,l=0,u;const c=s.length;for(let y=0;y<c;y++){const T=s[y];if(o===0&&a===0){if(T===Cp){i.push(s.slice(l,y)),l=y+1;continue}if(T==="/"){u=y;continue}}T==="["?o++:T==="]"?o--:T==="("?a++:T===")"&&a--}const d=i.length===0?s:s.slice(l);let p=d,h=!1;d.endsWith(zl)?(p=d.slice(0,-1),h=!0):d.startsWith(zl)&&(p=d.slice(1),h=!0);const m=u&&u>l?u-l:void 0;return xp(i,h,p,m)};if(t){const s=t+Cp,i=n;n=o=>o.startsWith(s)?i(o.slice(s.length)):xp(Lw,!1,o,void 0,!0)}if(r){const s=n;n=i=>r({className:i,parseClassName:s})}return n},Vw=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let s=[];for(let i=0;i<r.length;i++){const o=r[i],a=o[0]==="[",l=t.has(o);a||l?(s.length>0&&(s.sort(),n.push(...s),s=[]),n.push(o)):s.push(o)}return s.length>0&&(s.sort(),n.push(...s)),n}},jw=e=>({cache:Bw(e.cacheSize),parseClassName:Fw(e),sortModifiers:Vw(e),...Iw(e)}),Uw=/\s+/,zw=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s,sortModifiers:i}=t,o=[],a=e.trim().split(Uw);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:d,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:y}=r(c);if(d){l=c+(l.length>0?" "+l:l);continue}let T=!!y,g=n(T?m.substring(0,y):m);if(!g){if(!T){l=c+(l.length>0?" "+l:l);continue}if(g=n(m),!g){l=c+(l.length>0?" "+l:l);continue}T=!1}const b=p.length===0?"":p.length===1?p[0]:i(p).join(":"),w=h?b+zl:b,_=w+g;if(o.indexOf(_)>-1)continue;o.push(_);const E=s(g,T);for(let P=0;P<E.length;++P){const B=E[P];o.push(w+B)}l=c+(l.length>0?" "+l:l)}return l},Kw=(...e)=>{let t=0,r,n,s="";for(;t<e.length;)(r=e[t++])&&(n=Tp(r))&&(s&&(s+=" "),s+=n);return s},Tp=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Tp(e[n]))&&(r&&(r+=" "),r+=t);return r},Ww=(e,...t)=>{let r,n,s,i;const o=l=>(r=jw(t.reduce((u,c)=>c(u),e())),n=r.cache.get,s=r.cache.set,i=a,a(l)),a=l=>{const u=n(l);if(u)return u;const c=zw(l,r);return s(l,c),c};return i=o,(...l)=>i(Kw(...l))},Gw=[],Et=e=>{const t=r=>r[e]||Gw;return t.isThemeGetter=!0,t},Ep=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ap=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Jw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Yw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ey=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,On=e=>Jw.test(e),Fe=e=>!!e&&!Number.isNaN(Number(e)),Hn=e=>!!e&&Number.isInteger(Number(e)),Kl=e=>e.endsWith("%")&&Fe(e.slice(0,-1)),ln=e=>Yw.test(e),kp=()=>!0,ty=e=>Zw.test(e)&&!Xw.test(e),Wl=()=>!1,ry=e=>Qw.test(e),ny=e=>ey.test(e),sy=e=>!Ce(e)&&!xe(e),iy=e=>Mn(e,Op,Wl),Ce=e=>Ep.test(e),is=e=>Mn(e,Hp,ty),Rp=e=>Mn(e,py,Fe),oy=e=>Mn(e,Np,kp),ay=e=>Mn(e,Mp,Wl),Ip=e=>Mn(e,Pp,Wl),ly=e=>Mn(e,Dp,ny),Xo=e=>Mn(e,qp,ry),xe=e=>Ap.test(e),Di=e=>os(e,Hp),cy=e=>os(e,Mp),$p=e=>os(e,Pp),uy=e=>os(e,Op),dy=e=>os(e,Dp),Qo=e=>os(e,qp,!0),fy=e=>os(e,Np,!0),Mn=(e,t,r)=>{const n=Ep.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},os=(e,t,r=!1)=>{const n=Ap.exec(e);return n?n[1]?t(n[1]):r:!1},Pp=e=>e==="position"||e==="percentage",Dp=e=>e==="image"||e==="url",Op=e=>e==="length"||e==="size"||e==="bg-size",Hp=e=>e==="length",py=e=>e==="number",Mp=e=>e==="family-name",Np=e=>e==="number"||e==="weight",qp=e=>e==="shadow",hy=()=>{const e=Et("color"),t=Et("font"),r=Et("text"),n=Et("font-weight"),s=Et("tracking"),i=Et("leading"),o=Et("breakpoint"),a=Et("container"),l=Et("spacing"),u=Et("radius"),c=Et("shadow"),d=Et("inset-shadow"),p=Et("text-shadow"),h=Et("drop-shadow"),m=Et("blur"),y=Et("perspective"),T=Et("aspect"),g=Et("ease"),b=Et("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[..._(),xe,Ce],P=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],v=()=>[xe,Ce,l],N=()=>[On,"full","auto",...v()],q=()=>[Hn,"none","subgrid",xe,Ce],C=()=>["auto",{span:["full",Hn,xe,Ce]},Hn,xe,Ce],S=()=>[Hn,"auto",xe,Ce],x=()=>["auto","min","max","fr",xe,Ce],O=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...v()],z=()=>[On,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],G=()=>[On,"screen","full","dvw","lvw","svw","min","max","fit",...v()],ae=()=>[On,"screen","full","lh","dvh","lvh","svh","min","max","fit",...v()],Y=()=>[e,xe,Ce],le=()=>[..._(),$p,Ip,{position:[xe,Ce]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ie=()=>["auto","cover","contain",uy,iy,{size:[xe,Ce]}],je=()=>[Kl,Di,is],$e=()=>["","none","full",u,xe,Ce],Oe=()=>["",Fe,Di,is],nt=()=>["solid","dashed","dotted","double"],_t=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Be=()=>[Fe,Kl,$p,Ip],st=()=>["","none",m,xe,Ce],ht=()=>["none",Fe,xe,Ce],wt=()=>["none",Fe,xe,Ce],A=()=>[Fe,xe,Ce],D=()=>[On,"full",...v()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ln],breakpoint:[ln],color:[kp],container:[ln],"drop-shadow":[ln],ease:["in","out","in-out"],font:[sy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ln],shadow:[ln],spacing:["px",Fe],text:[ln],"text-shadow":[ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",On,Ce,xe,T]}],container:["container"],columns:[{columns:[Fe,Ce,xe,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Hn,"auto",xe,Ce]}],basis:[{basis:[On,"full","auto",a,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fe,On,"auto","initial","none",Ce]}],grow:[{grow:["",Fe,xe,Ce]}],shrink:[{shrink:["",Fe,xe,Ce]}],order:[{order:[Hn,"first","last","none",xe,Ce]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":x()}],"auto-rows":[{"auto-rows":x()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:[...O(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...O()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pbs:[{pbs:v()}],pbe:[{pbe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],"inline-size":[{inline:["auto",...G()]}],"min-inline-size":[{"min-inline":["auto",...G()]}],"max-inline-size":[{"max-inline":["none",...G()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[a,"screen",...z()]}],"min-w":[{"min-w":[a,"screen","none",...z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",r,Di,is]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,fy,oy]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kl,Ce]}],"font-family":[{font:[cy,ay,t]}],"font-features":[{"font-features":[Ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,xe,Ce]}],"line-clamp":[{"line-clamp":[Fe,"none",xe,Rp]}],leading:[{leading:[i,...v()]}],"list-image":[{"list-image":["none",xe,Ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,Ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...nt(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fe,"from-font","auto",xe,is]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Fe,"auto",xe,Ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:Ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Hn,xe,Ce],radial:["",xe,Ce],conic:[Hn,xe,Ce]},dy,ly]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:je()}],"gradient-via-pos":[{via:je()}],"gradient-to-pos":[{to:je()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:$e()}],"rounded-s":[{"rounded-s":$e()}],"rounded-e":[{"rounded-e":$e()}],"rounded-t":[{"rounded-t":$e()}],"rounded-r":[{"rounded-r":$e()}],"rounded-b":[{"rounded-b":$e()}],"rounded-l":[{"rounded-l":$e()}],"rounded-ss":[{"rounded-ss":$e()}],"rounded-se":[{"rounded-se":$e()}],"rounded-ee":[{"rounded-ee":$e()}],"rounded-es":[{"rounded-es":$e()}],"rounded-tl":[{"rounded-tl":$e()}],"rounded-tr":[{"rounded-tr":$e()}],"rounded-br":[{"rounded-br":$e()}],"rounded-bl":[{"rounded-bl":$e()}],"border-w":[{border:Oe()}],"border-w-x":[{"border-x":Oe()}],"border-w-y":[{"border-y":Oe()}],"border-w-s":[{"border-s":Oe()}],"border-w-e":[{"border-e":Oe()}],"border-w-bs":[{"border-bs":Oe()}],"border-w-be":[{"border-be":Oe()}],"border-w-t":[{"border-t":Oe()}],"border-w-r":[{"border-r":Oe()}],"border-w-b":[{"border-b":Oe()}],"border-w-l":[{"border-l":Oe()}],"divide-x":[{"divide-x":Oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...nt(),"hidden","none"]}],"divide-style":[{divide:[...nt(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-bs":[{"border-bs":Y()}],"border-color-be":[{"border-be":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...nt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fe,xe,Ce]}],"outline-w":[{outline:["",Fe,Di,is]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",c,Qo,Xo]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",d,Qo,Xo]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:Oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Fe,is]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":Oe()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",p,Qo,Xo]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Fe,xe,Ce]}],"mix-blend":[{"mix-blend":[..._t(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_t()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Be()}],"mask-image-linear-to-pos":[{"mask-linear-to":Be()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":Be()}],"mask-image-t-to-pos":[{"mask-t-to":Be()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":Be()}],"mask-image-r-to-pos":[{"mask-r-to":Be()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":Be()}],"mask-image-b-to-pos":[{"mask-b-to":Be()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":Be()}],"mask-image-l-to-pos":[{"mask-l-to":Be()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":Be()}],"mask-image-x-to-pos":[{"mask-x-to":Be()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":Be()}],"mask-image-y-to-pos":[{"mask-y-to":Be()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[xe,Ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":Be()}],"mask-image-radial-to-pos":[{"mask-radial-to":Be()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[Fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Be()}],"mask-image-conic-to-pos":[{"mask-conic-to":Be()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:Ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,Ce]}],filter:[{filter:["","none",xe,Ce]}],blur:[{blur:st()}],brightness:[{brightness:[Fe,xe,Ce]}],contrast:[{contrast:[Fe,xe,Ce]}],"drop-shadow":[{"drop-shadow":["","none",h,Qo,Xo]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Fe,xe,Ce]}],"hue-rotate":[{"hue-rotate":[Fe,xe,Ce]}],invert:[{invert:["",Fe,xe,Ce]}],saturate:[{saturate:[Fe,xe,Ce]}],sepia:[{sepia:["",Fe,xe,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,Ce]}],"backdrop-blur":[{"backdrop-blur":st()}],"backdrop-brightness":[{"backdrop-brightness":[Fe,xe,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[Fe,xe,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fe,xe,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fe,xe,Ce]}],"backdrop-invert":[{"backdrop-invert":["",Fe,xe,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[Fe,xe,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[Fe,xe,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Fe,xe,Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,Ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fe,"initial",xe,Ce]}],ease:[{ease:["linear","initial",g,xe,Ce]}],delay:[{delay:[Fe,xe,Ce]}],animate:[{animate:["none",b,xe,Ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,xe,Ce]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ht()}],"rotate-x":[{"rotate-x":ht()}],"rotate-y":[{"rotate-y":ht()}],"rotate-z":[{"rotate-z":ht()}],scale:[{scale:wt()}],"scale-x":[{"scale-x":wt()}],"scale-y":[{"scale-y":wt()}],"scale-z":[{"scale-z":wt()}],"scale-3d":["scale-3d"],skew:[{skew:A()}],"skew-x":[{"skew-x":A()}],"skew-y":[{"skew-y":A()}],transform:[{transform:[xe,Ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:D()}],"translate-x":[{"translate-x":D()}],"translate-y":[{"translate-y":D()}],"translate-z":[{"translate-z":D()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,Ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mbs":[{"scroll-mbs":v()}],"scroll-mbe":[{"scroll-mbe":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pbs":[{"scroll-pbs":v()}],"scroll-pbe":[{"scroll-pbe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,Ce]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Fe,Di,is,Rp]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gy=Ww(hy);const ut=(...e)=>gy(wp(e)),cn=e=>e.length<=3?e:`${e.slice(0,3)}${"*".repeat(e.length-3)}`,vy=(e,t)=>{if(e){const r=Gl(e);if(r&&Bp(r))return r;if(e.trim())return e.trim()}if(t){const r=Gl(t);if(r&&Bp(r))return r;const n=my(t);if(n)return n;if(t.trim()&&!t.includes("@"))return t.trim()}return"Unknown"};var Gl=e=>e.replace(/[^\d+*#]/g,""),Bp=e=>/^\+?[\d*#]{2,}$/.test(e),my=e=>{let t=e.match(/^([+]?[\d*#]{2,})\s*[-:]/);return t&&t[1]||(t=e.match(/\(([+]?[\d*#]{2,})\)/),t&&t[1])||(t=e.match(/(?:ext\.?|extension)\s*([+]?[\d*#]{2,})/i),t&&t[1])?t[1]:(t=e.match(/([+]?\d{1,3}[-.\s]?\(?\d{1,4}\)?[-.\s]?\d{1,4}[-.\s]?\d{1,9})/),t&&t[1]?Gl(t[1]):null)};const Lp="webphone-auto-answer",Jl=()=>{try{return localStorage.getItem(Lp)==="true"}catch{return!1}};var wy="/assets/sipSharedWorker-Bk0APY9t.js";function Oi(e){"@babel/helpers - typeof";return Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oi(e)}function yy(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function by(e){var t=yy(e,"string");return Oi(t)=="symbol"?t:t+""}function Qt(e,t,r){return(t=by(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _y=class{constructor(e,t){Qt(this,"serverUrl",void 0),Qt(this,"keepAliveInterval",void 0),Qt(this,"clientId",void 0),Qt(this,"connectionId",void 0),Qt(this,"stateEventEmitter",new Hs),Qt(this,"port",void 0),Qt(this,"currentState",Ee.Disconnected),Qt(this,"connectPromise",void 0),Qt(this,"connectResolve",void 0),Qt(this,"connectReject",void 0),Qt(this,"connectTimeout",void 0),Qt(this,"onConnect",void 0),Qt(this,"onDisconnect",void 0),Qt(this,"onMessage",void 0),this.serverUrl=t.server,this.keepAliveInterval=t.keepAliveInterval??30,this.clientId=t.clientId,this.connectionId=t.connectionId;const r=new SharedWorker(wy,{name:`webphone-sip-${this.connectionId}`});this.port=r.port,r.addEventListener("error",n=>{this.handle({type:"error",error:n.message||"SharedWorker failed to load"})}),this.port.addEventListener("message",n=>this.handle(n.data)),this.port.start()}get protocol(){return new URL(this.serverUrl).protocol.replace(":","").toUpperCase()}get server(){return this.serverUrl}get state(){return this.currentState}get stateChange(){return this.stateEventEmitter}isConnected(){return this.currentState===Ee.Connected}connect(){return this.isConnected()?Promise.resolve():this.connectPromise?this.connectPromise:(this.transition(Ee.Connecting),this.connectPromise=new Promise((e,t)=>{this.connectResolve=e,this.connectReject=t}),this.connectTimeout=setTimeout(()=>{if(this.currentState!==Ee.Connecting)return;const e=new Error(`SharedWorker did not connect to ${this.serverUrl}`);this.transition(Ee.Disconnected),this.connectReject?.(e),this.clearPromise()},1e4),this.post({type:"connect",clientId:this.clientId,connectionId:this.connectionId,server:this.serverUrl,keepAliveInterval:this.keepAliveInterval}),this.connectPromise)}async disconnect(){this.currentState!==Ee.Disconnected&&(this.transition(Ee.Disconnecting),this.connectReject?.(new Error("SharedWorker WebSocket disconnected")),this.clearPromise(),this.post({type:"disconnect",clientId:this.clientId,connectionId:this.connectionId}),this.transition(Ee.Disconnected))}async dispose(){await this.disconnect(),this.port.close()}send(e){return this.isConnected()?(this.post({type:"send",clientId:this.clientId,connectionId:this.connectionId,data:e}),Promise.resolve()):Promise.reject(new Error("SharedWorker WebSocket is not connected"))}post(e){this.port.postMessage(e)}handle(e){switch(e.type){case"connected":this.transition(Ee.Connected),this.connectResolve?.(),this.clearPromise(),this.onConnect?.();break;case"message":this.isConnected()&&this.onMessage?.(e.data);break;case"error":if(this.currentState===Ee.Connecting){const t=new Error(e.error);this.transition(Ee.Disconnected),this.connectReject?.(t),this.clearPromise()}break;case"disconnected":{const t=this.isConnected(),r=e.error?new Error(e.error):void 0;this.transition(Ee.Disconnected),this.connectReject&&(this.connectReject(r??new Error("SharedWorker WebSocket disconnected")),this.clearPromise()),t&&this.onDisconnect?.(r);break}}}clearPromise(){this.connectTimeout&&clearTimeout(this.connectTimeout),this.connectTimeout=void 0,this.connectPromise=void 0,this.connectResolve=void 0,this.connectReject=void 0}transition(e){this.currentState!==e&&(this.currentState=e,this.stateEventEmitter.emit(e))}},Sy="X-Nebula-Queue",Cy="X-Nebula-Queue-Id";const Wx=30,xy=(e,t={})=>{const r=ft(null),n=ft(null),s=ft(new Map),i=new Audio;i.autoplay=!0;const o=ft(void 0),a=ft(null),l=ft(null),u=new Map,c=new Map,d=new Set,p=new Map,h=5e3;let m=!1,y=null,T=null,g=null,b=null,w=null;const _=j(()=>r.value?.configuration.uri?.user||""),{startRingtone:E,stopRingtone:P,startRingback:B,stopRingback:v,playAutoAnswerBeep:N,setNotificationVolume:q,setRingtoneVolume:C,setRingtoneTone:S}=vp(),x=H=>H instanceof Vo||H instanceof Ns?H.request?.callId||H.dialog?.callId||H.id||crypto.randomUUID():H.dialog?.callId||H.id||crypto.randomUUID(),O=H=>{if(!(H instanceof Ns))return;const F=H.request;if(!F)return;const L=F.getHeader(Sy)?.trim(),ie=F.getHeader(Cy)?.trim();if(!(!L&&!ie))return{...ie?{id:ie}:{},...L?{name:L}:{}}},R=(H,F,L,ie)=>{const ne=O(H),we={channelId:F,sipCallId:x(H),direction:L,remoteNumber:ie,...ne?{queue:ne}:{}};return u.set(F,we),t.onCallContext?.(we),we},M=(H,F)=>{const L=u.get(H);L&&t.onCallState?.({...L,state:F,timestamp:Date.now()})},z=(H,F)=>{if(s.value.get(F)!==H||H.state!==W.Established)return;const L=u.get(F),ie=H.sessionDescriptionHandler,ne=ie?.localMediaStream??l.value,we=ie?.remoteMediaStream??a.value,ve=ne?.getAudioTracks()??[],Pe=we?.getAudioTracks()??[];if(!L||!ne||!we||ve.length===0||Pe.length===0)return;const at=[L.sipCallId,...ve.map(et=>`local:${et.id}`),...Pe.map(et=>`remote:${et.id}`)].join("|");c.get(F)!==at&&(c.set(F,at),t.onMediaReady?.({...L,localStream:ne,remoteStream:we}))},G=H=>{u.delete(H),c.delete(H),d.delete(H)},ae=(H,F)=>{if(s.value.get(H)!==F)return;const L=p.get(F);L&&clearTimeout(L),p.delete(F);const ie=e.channels.value.find(Pe=>Pe.id===H),ne=u.get(H),we=d.has(H)||ie?.status==="connected";G(H),s.value.delete(H),e.updateChannelState(H,{status:"idle",remoteNumber:"",remoteDisplayName:void 0,isMuted:!1,isHeld:!1,startTime:void 0,keypadValue:"",hasVideo:!1,hasEarlyMedia:!1});const ve=e.transferInProgress.value;if(ve&&(ve.originalChannelId===H||ve.consultationChannelId===H)&&e.setTransferInProgress(null),e.activeChannelId.value===H&&wn(),de(),ne){try{e.addCallLog({number:ne.remoteNumber,direction:ne.direction,status:we?"answered":ne.direction==="incoming"?"missed":"cancelled",startTime:we?ie?.startTime??Date.now():Date.now(),duration:we?Math.floor((Date.now()-(ie?.startTime??Date.now()))/1e3):0})}catch(Pe){console.warn("[SipJs] Call ended, but saving its history failed:",Pe)}try{t.onCallState?.({...ne,state:we?"ended":"failed",timestamp:Date.now()})}catch(Pe){console.warn("[SipJs] Call ended, but the state callback failed:",Pe)}}},Y=(H,F)=>{p.has(F)||p.set(F,setTimeout(()=>{console.warn("[SipJs] Hangup did not terminate; releasing local call state"),le(F),ae(H,F)},h))},le=H=>{if(H.state!==W.Terminated)try{H.dispose().catch(F=>{console.warn("[SipJs] Session disposal failed:",F)})}catch(F){console.warn("[SipJs] Session disposal failed:",F)}},de=()=>{e.channels.value.some(H=>H.status==="incoming")&&!Jl()?E():P(),e.activeChannel.value?.status==="calling"?B():v()},Ie=async(H,F,L)=>{await N(),Jl()&&s.value.get(H)===F&&F.state===W.Initial&&await fe(L)},je=H=>{i.volume=H/100},$e=async H=>{typeof i.setSinkId=="function"&&await i.setSinkId(H)},Oe=async H=>{if(!H)return;const F=[...s.value.entries()].flatMap(([ne,we])=>{const ve=we.sessionDescriptionHandler,Pe=ve?.peerConnection?.getSenders().find(at=>at.track?.kind==="audio");return Pe?[{channelId:ne,session:we,sdh:ve,sender:Pe}]:[]});if(F.length===0){o.value=H;return}const L=[],ie=[];try{for(const{sender:we}of F){const ve=await navigator.mediaDevices.getUserMedia(wt(!1,H));L.push(ve);const[Pe]=ve.getAudioTracks(),at=we.track;if(!Pe||!at)throw new Error("Could not acquire an audio track for the selected microphone");Pe.enabled=at.enabled,await we.replaceTrack(Pe),ie.push({sender:we,previousTrack:at})}o.value=H,F.forEach(({channelId:we,session:ve,sdh:Pe,sender:at},et)=>{const yt=L[et]?.getAudioTracks()[0];if(!yt)return;const Un=e.channels.value.find(yn=>yn.id===we),Ui=!(Un?.isHeld||Un?.isMuted);at.track.enabled=Ui;const br=Pe.localMediaStream;br&&(br.getAudioTracks().forEach(yn=>{yn!==yt&&br.removeTrack(yn)}),br.getTracks().includes(yt)||br.addTrack(yt)),e.activeChannelId.value===we&&(br?l.value=br:l.value&&(l.value.getAudioTracks().forEach(yn=>{yn!==yt&&l.value?.removeTrack(yn)}),l.value.getTracks().includes(yt)||l.value.addTrack(yt)));try{z(ve,we)}catch(yn){console.error("[SipJs] Media-ready callback failed after microphone switch:",yn)}});const ne=new Set([...s.value.values()].flatMap(we=>we.sessionDescriptionHandler?.peerConnection?.getSenders().map(ve=>ve.track).filter(ve=>ve?.kind==="audio")??[]));ie.forEach(({previousTrack:we})=>{ne.has(we)||we.stop()}),L.forEach((we,ve)=>{we.getTracks().forEach(Pe=>{Pe!==F[ve]?.sender.track&&Pe.stop()})})}catch(ne){await Promise.allSettled(ie.map(({sender:we,previousTrack:ve})=>we.replaceTrack(ve))),L.forEach(we=>we.getTracks().forEach(ve=>ve.stop())),console.warn("[SipJs] Failed to switch microphone:",ne)}},nt=(H,F)=>{let L=!1;const ie=H.sessionDescriptionHandler;return ie?.peerConnection&&ie.peerConnection.getSenders().forEach(ne=>{ne.track&&ne.track.kind==="audio"&&(ne.track.enabled=F,L=!0)}),L},_t=H=>{let F=!1;return l.value&&l.value.getAudioTracks().forEach(L=>{L.enabled=H,F=!0}),F},Be=(H,F)=>{const L=!(F?.isHeld||F?.isMuted),ie=nt(H,L),ne=_t(L);!ie&&!ne&&console.warn("[SipJs] No audio tracks found to apply channel audio state")},st=H=>{for(const[F,L]of s.value.entries())if(L===H)return e.channels.value.find(ie=>ie.id===F)||null;return e.activeChannel.value||null},ht=async H=>{const F=H.sessionDescriptionHandler?.peerConnection;if(!F)return;const L=st(H),ie=!(L?.isHeld||L?.isMuted),ne=F.getSenders().find(we=>we.track?.kind==="audio");if(ne?.track){ne.track.enabled=ie,L&&z(H,L.id);return}try{const we=await navigator.mediaDevices.getUserMedia(wt(!1));if(![...s.value.values()].includes(H)){we.getTracks().forEach(et=>et.stop());return}const[ve]=we.getAudioTracks();if(!ve)return;ve.enabled=ie;const Pe=new MediaStream([ve]);l.value=Pe;const at=F.getSenders().find(et=>et.track===null);at?await at.replaceTrack(ve):F.addTrack(ve,Pe),Be(H,L),L&&z(H,L.id)}catch(we){console.warn("[SipJs] Failed to recover outbound audio track:",we)}},wt=(H=!1,F=o.value)=>{const L={echoCancellation:{ideal:!0},noiseSuppression:{ideal:!1},autoGainControl:{ideal:!1},channelCount:1};return F&&(L.deviceId={exact:F}),{audio:L,video:H}},A=async()=>{const H=n.value;H&&await H.register({requestDelegate:{onAccept:()=>{e.setConnected(!0)},onReject:()=>{e.setConnected(!1)}}})},D=async H=>{if(!r.value){try{(await navigator.mediaDevices.getUserMedia({audio:!0})).getTracks().forEach(F=>F.stop())}catch(F){console.error("Microphone permission denied",F);return}try{const F=Br.makeURI(H.uri);if(!F)throw new Error("Invalid URI");m=H.earlyMedia??!1;const L={server:H.transportOptions.server,keepAliveInterval:H.transportOptions.keepAliveInterval??30},ie={uri:F,logLevel:"error",transportOptions:L,authorizationUsername:H.authorizationUsername,authorizationPassword:H.authorizationPassword,reconnectionDelay:5,reconnectionAttempts:3,delegate:{onConnect:()=>{},onDisconnect:()=>e.setConnected(!1),onInvite:ve=>ee(ve)}},ne=typeof SharedWorker<"u";let we=ne;ne&&(ie.transportConstructor=_y,ie.transportOptions={...L,clientId:crypto.randomUUID(),connectionId:`${H.transportOptions.server}|${H.uri}|${crypto.randomUUID()}`});try{r.value=new Br(ie)}catch(ve){if(!ne)throw ve;we=!1,console.warn("[SipJs] SharedWorker unavailable, using native WebSocket transport",ve),delete ie.transportConstructor,ie.transportOptions=L,r.value=new Br(ie)}try{await r.value.start(),n.value=new jo(r.value),await A()}catch(ve){if(!we)throw ve;console.warn("[SipJs] SharedWorker connection failed, retrying with native WebSocket",ve);const Pe=r.value;r.value=null,n.value=null;try{await Pe?.stop()}catch(at){console.warn("[SipJs] Failed to clean up SharedWorker transport",at)}delete ie.transportConstructor,ie.transportOptions=L,r.value=new Br(ie),await r.value.start(),n.value=new jo(r.value),await A()}J()}catch(F){console.error("[SipJs] Failed to initialize WSS/SIP connection",F);const L=r.value;if(r.value=null,n.value=null,L!==null)try{await L.stop()}catch(ie){console.warn("[SipJs] Failed to clean up after connection error",ie)}}}},J=()=>{g=new AbortController;const{signal:H}=g;let F=Date.now();const L=5e3,ie=(yt=1e3)=>{b&&clearTimeout(b),b=setTimeout(async()=>{b=null,await oe()},yt)},ne=()=>{if(document.visibilityState==="visible"){const yt=Date.now()-F;yt>L?(console.log(`[SipJs] Device was suspended for ${Math.round(yt/1e3)}s, reconnecting...`),ie(1500)):ie(500)}F=Date.now()},we=()=>{console.log("[SipJs] Network online, reconnecting..."),ie(1e3)},ve=()=>{console.log("[SipJs] Network offline"),e.setConnected(!1),b&&(clearTimeout(b),b=null)},Pe=()=>{w=setInterval(()=>{const yt=Date.now(),Un=yt-F;Un>3e4&&(console.log(`[SipJs] Heartbeat drift detected (${Math.round(Un/1e3)}s), device may have woken from sleep`),ie(1500)),F=yt},1e3)},at=()=>{console.log("[SipJs] Page frozen"),w&&(clearInterval(w),w=null)},et=()=>{console.log("[SipJs] Page resumed"),F=Date.now(),Pe(),ie(1e3)};document.addEventListener("visibilitychange",ne,{signal:H}),window.addEventListener("online",we,{signal:H}),window.addEventListener("offline",ve,{signal:H}),document.addEventListener("freeze",at,{signal:H}),document.addEventListener("resume",et,{signal:H}),Pe()},oe=async()=>{if(r.value){if(!navigator.onLine){console.log("[SipJs] Skipping reconnect, device is offline");return}if(s.value.size>0){console.log("[SipJs] Skipping reconnect, active calls in progress");return}try{if(r.value.isConnected()||(console.log("[SipJs] Reconnecting..."),await r.value.reconnect()),n.value&&r.value.isConnected())try{await A()}catch{}}catch(H){console.error("[SipJs] Reconnection failed:",H)}}},re=async()=>{g?.abort(),g=null,b&&(clearTimeout(b),b=null),w&&(clearInterval(w),w=null);for(const[L,ie]of s.value.entries()){let ne;try{await Promise.race([ce(L,ie),new Promise(we=>{ne=setTimeout(we,1500)})])}finally{ne&&clearTimeout(ne)}}wn();const H=n.value,F=r.value;if(n.value=null,r.value=null,H)try{await H.unregister()}catch(L){console.warn("[SipJs] Unregister failed:",L)}if(F)try{await F.stop()}catch(L){console.warn("[SipJs] UserAgent stop failed:",L)}},ee=H=>{console.log("[SipJs] 📞 Llamada entrante recibida"),console.log("[SipJs] Remote Identity URI:",H.remoteIdentity.uri.toString()),console.log("[SipJs] Remote Identity URI user:",H.remoteIdentity.uri.user),console.log("[SipJs] Remote Identity displayName:",H.remoteIdentity.displayName);const F=e.channels.value.find(we=>we.status==="idle"&&!s.value.has(we.id));if(!F){console.warn("[SipJs] ⚠️ No hay canales disponibles, rechazando llamada"),H.reject();return}const L=F.id;s.value.set(L,H);const ie=H.body?H.body.includes("m=video"):!1,ne=vy(H.remoteIdentity.uri.user,H.remoteIdentity.displayName);console.log("[SipJs] 📋 Caller number extraído:",ne),console.log("[SipJs] 🎥 Video:",ie?"Sí":"No"),e.updateChannelState(L,{status:"incoming",remoteNumber:ne,remoteDisplayName:H.remoteIdentity.displayName||void 0,hasVideo:ie}),R(H,L,"incoming",ne),M(L,"ringing"),de(),e.setActiveChannelId(L),Jl()&&Ie(L,H,ie),H.stateChange.addListener(we=>{switch(we){case W.Terminated:ae(L,H);break;case W.Established:if(s.value.get(L)!==H)break;d.add(L),e.updateChannelState(L,{status:"connected",startTime:Date.now()}),M(L,"connected"),e.activeChannelId.value===L&&(St(H),ht(H).then(()=>z(H,L))),de();break}})},pe=async(H,F=!1)=>{if(!r.value)return;const L=e.activeChannelId.value;if(s.value.has(L))return;let ie=Br.makeURI(H);if(!ie&&r.value.configuration.uri){const ve=r.value.configuration.uri.host;ie=Br.makeURI(`sip:${H}@${ve}`)}if(!ie)return;const ne=new Vo(r.value,ie,{earlyMedia:m});s.value.set(L,ne),R(ne,L,"outgoing",H),M(L,"dialing"),e.updateChannelState(L,{status:"calling",remoteNumber:H,hasVideo:F}),e.setLastDialedNumber(H),de(),ne.stateChange.addListener(ve=>{switch(ve){case W.Established:if(s.value.get(L)!==ne)break;d.add(L),e.channels.value.find(Pe=>Pe.id===L)?.status!=="connected"&&(e.updateChannelState(L,{status:"connected",startTime:Date.now()}),M(L,"connected"),St(ne),ht(ne).then(()=>z(ne,L)),de());break;case W.Terminated:ae(L,ne);break}});const we={sessionDescriptionHandlerOptions:{constraints:wt(F)},requestDelegate:{onProgress:ve=>{s.value.get(L)===ne&&(ve.message.statusCode===180||ve.message.statusCode===183)&&(ve.message.body&&(e.updateChannelState(L,{hasEarlyMedia:!0}),St(ne)),de())},onAccept:ve=>{s.value.get(L)===ne&&e.channels.value.find(Pe=>Pe.id===L)?.status!=="connected"&&(d.add(L),e.updateChannelState(L,{status:"connected",startTime:Date.now()}),M(L,"connected"),St(ne),ht(ne).then(()=>z(ne,L)),de())}}};try{await ne.invite(we)}catch(ve){throw ae(L,ne),ve}},fe=async(H=!1)=>{const F=e.activeChannelId.value,L=s.value.get(F);if(L instanceof Ns&&L.state===W.Initial){P(),e.updateChannelState(F,{status:"connected",startTime:Date.now()}),de();for(const[ne,we]of s.value.entries())if(ne!==e.activeChannelId.value&&we.state===W.Established&&!e.channels.value.find(ve=>ve.id===ne)?.isHeld)try{await he(we,!0),e.updateChannelState(ne,{isHeld:!0})}catch(ve){console.error(`[SipJs] Failed to hold channel ${ne}:`,ve)}const ie={sessionDescriptionHandlerOptions:{constraints:wt(H),iceGatheringTimeout:1e3}};try{await L.accept(ie),de()}catch(ne){const we=s.value.get(F);throw we instanceof Ns&&we.state===W.Initial&&(e.updateChannelState(F,{status:"incoming",startTime:void 0}),de()),ne}}},ce=async(H,F)=>{Y(H,F);try{switch(F.state){case W.Initial:case W.Establishing:F instanceof Vo?await F.cancel():F instanceof Ns&&await F.reject();break;case W.Established:await F.bye();break}}catch(L){console.warn("[SipJs] Hangup signaling failed:",L)}finally{le(F),ae(H,F)}},se=async()=>{const H=e.activeChannelId.value,F=s.value.get(H);F&&await ce(H,F)},Ae=()=>{const H=s.value.get(e.activeChannelId.value);if(!H)return;const F=!e.isMuted.value;e.setMuted(F),Be(H,e.channels.value.find(L=>L.id===e.activeChannelId.value))},he=async(H,F)=>{const L={sessionDescriptionHandlerOptions:{hold:F}};await H.invite(L)},Te=async()=>{const H=s.value.get(e.activeChannelId.value);if(H?.state!==W.Established)return;const F=!e.isHeld.value;try{await he(H,F),e.setHeld(F),Be(H,e.channels.value.find(L=>L.id===e.activeChannelId.value))}catch{}},Me=async H=>{const F=e.activeChannelId.value;if(F===H)return;const L=s.value.get(F),ie=s.value.get(H),ne=e.channels.value.find(ve=>ve.id===F),we=e.channels.value.find(ve=>ve.id===H);if(L&&L.state===W.Established&&!ne?.isHeld)try{await he(L,!0),e.updateChannelState(F,{isHeld:!0}),Be(L,e.channels.value.find(ve=>ve.id===F))}catch{}if(e.setActiveChannelId(H),de(),ie&&ie.state===W.Established){if(we?.isHeld)try{await he(ie,!1),e.updateChannelState(H,{isHeld:!1})}catch{}Be(ie,e.channels.value.find(ve=>ve.id===H)),St(ie)}else wn()},Ve=H=>{if(!/^[0-9*#]$/.test(H))return;const F=s.value.get(e.activeChannelId.value);if(F?.state!==W.Established)return;const L=F.sessionDescriptionHandler?.peerConnection?.getSenders().find(ne=>ne.track?.kind==="audio")?.dtmf;if(L?.canInsertDTMF){L.insertDTMF(H,160,70);return}const ie={requestOptions:{body:{content:`Signal=${H}\r
|
|
68
|
+
Duration=160`,contentType:"application/dtmf-relay",contentDisposition:"signal"}}};F.info(ie)},Z=(H,F)=>{const L=e.channels.value.find(ie=>ie.id===H);!L||L.status!=="connected"||(St(F),Be(F,L),ht(F),i.play().catch(()=>{}))},ue=async H=>{console.log("[SipJs] 🔄 transferCall iniciado"),console.log("[SipJs] Target:",H);const F=e.activeChannelId.value,L=s.value.get(F);if(!L)throw console.error("[SipJs] ❌ No hay sesión activa en el canal",F),new Error("No active session to transfer");if(console.log("[SipJs] Sesión encontrada - Estado:",L.state),console.log("[SipJs] Dialog ID:",L.dialog?.id),console.log("[SipJs] Call ID:",L.dialog?.callId),L.state!==W.Established)throw console.error("[SipJs] ❌ Sesión no establecida. Estado actual:",L.state),new Error(`Cannot transfer call. Call is not established (state: ${L.state})`);let ie=Br.makeURI(H);if(!ie&&r.value?.configuration.uri){const ne=r.value.configuration.uri.host;console.log("[SipJs] Construyendo URI con dominio:",ne),ie=Br.makeURI(`sip:${H}@${ne}`)}if(!ie)throw console.error("[SipJs] ❌ URI de destino inválida:",H),new Error(`Invalid transfer target: ${H}`);console.log("[SipJs] 📤 URI de transferencia:",ie.toString()),console.log("[SipJs] URI scheme:",ie.scheme),console.log("[SipJs] URI user:",ie.user),console.log("[SipJs] URI host:",ie.host);try{console.log("[SipJs] 🚀 Enviando REFER..."),await L.refer(ie,{requestDelegate:{onAccept:ne=>{console.log("[SipJs] ✅ Transfer REFER aceptado por el servidor (202 Accepted)"),console.log("[SipJs] Response:",ne.message)},onReject:ne=>{const we=ne.message.statusCode;console.error("[SipJs] ❌ Transfer REFER rechazado:",we),console.error("[SipJs] Response completo:",ne.message),Z(F,L)}},onNotify:ne=>{console.log("[SipJs] 📬 NOTIFY recibido para transferencia"),console.log("[SipJs] NOTIFY request:",ne.request),ne.accept();const we=ne.request.body;if(console.log("[SipJs] NOTIFY body:",we),we){const ve=we.match(/SIP\/2\.0\s+(\d{3})(.*)/);if(ve&&ve[1]){const Pe=parseInt(ve[1],10),at=ve[2]?.trim()||"";if(console.log("[SipJs] 📊 Status code:",Pe),console.log("[SipJs] 📊 Status text:",at),Pe>=200&&Pe<300)console.log("[SipJs] ✅ Transferencia exitosa! Terminando sesión..."),setTimeout(()=>{L.bye().catch(et=>{console.warn("[SipJs] Error hanging up after successful transfer:",et)})},500);else if(Pe>=400){console.error("[SipJs] ❌ Transfer falló con status:",Pe,at),console.log("[SipJs] 🔄 Manteniendo la sesión activa para el usuario");const et={404:"Número no encontrado",486:"Número ocupado",487:"Transferencia cancelada",503:"Servicio no disponible - el destino puede estar fuera de línea"}[Pe]||`Error en transferencia (código ${Pe})`;console.warn("[SipJs] 💬",et),Z(F,L)}else Pe>=100&&Pe<200&&console.log("[SipJs] 📞 Transferencia en progreso:",Pe,at)}else console.warn("[SipJs] ⚠️ No se pudo extraer el código de estado del NOTIFY body")}else console.warn("[SipJs] ⚠️ NOTIFY sin body")}}),console.log("[SipJs] ✅ REFER enviado exitosamente (promesa resuelta)")}catch(ne){throw console.error("[SipJs] ❌ Error en transferCall:",ne),console.error("[SipJs] Error type:",ne?.constructor?.name),console.error("[SipJs] Error message:",ne instanceof Error?ne.message:String(ne)),console.error("[SipJs] Error stack:",ne instanceof Error?ne.stack:"N/A"),ne}},ge=async H=>{console.log("[SipJs] 🔄 startAttendedTransfer iniciado"),console.log("[SipJs] Target:",H);const F=e.activeChannelId.value,L=s.value.get(F);if(console.log("[SipJs] Canal original:",F),console.log("[SipJs] Sesión original:",L?.state),!L||L.state!==W.Established)throw console.error("[SipJs] ❌ No hay llamada establecida para transferir"),new Error("No established call to transfer");const ie=e.channels.value.find(ne=>ne.status==="idle");if(console.log("[SipJs] Canal de consulta encontrado:",ie?.id),!ie)throw console.error("[SipJs] ❌ No hay canales disponibles para llamada de consulta"),new Error("No available channel for consultation call");try{console.log("[SipJs] 🔇 Poniendo llamada original en hold..."),await he(L,!0),e.updateChannelState(F,{isHeld:!0}),console.log("[SipJs] ✅ Llamada original en hold")}catch(ne){throw console.error("[SipJs] ❌ Failed to hold original call:",ne),new Error("Failed to put call on hold")}console.log("[SipJs] 🔄 Cambiando al canal de consulta:",ie.id),e.setActiveChannelId(ie.id);try{console.log("[SipJs] 📞 Iniciando llamada de consulta a:",H),await pe(H,!1),console.log("[SipJs] ✅ Llamada de consulta iniciada"),e.setTransferInProgress({originalChannelId:F,consultationChannelId:ie.id,targetNumber:H}),console.log("[SipJs] 📋 Transferencia en progreso registrada")}catch(ne){throw console.error("[SipJs] ❌ Failed to start consultation call:",ne),console.log("[SipJs] 🔄 Volviendo al canal original y quitando hold..."),e.setActiveChannelId(F),await he(L,!1).catch(()=>{}),e.updateChannelState(F,{isHeld:!1}),new Error("Failed to initiate consultation call")}},dt=async()=>{console.log("[SipJs] 🔄 completeAttendedTransfer iniciado");const H=e.transferInProgress.value;if(!H)throw console.error("[SipJs] ❌ No hay transferencia en progreso"),new Error("No transfer in progress");console.log("[SipJs] Estado de transferencia:",H);const F=s.value.get(H.originalChannelId),L=s.value.get(H.consultationChannelId);if(console.log("[SipJs] Sesión original:",F?.state),console.log("[SipJs] Sesión de consulta:",L?.state),!F||!L)throw console.error("[SipJs] ❌ Falta una o ambas sesiones"),new Error("Missing session for transfer");if(L.state!==W.Established)throw console.error("[SipJs] ❌ Llamada de consulta no está establecida. Estado:",L.state),new Error("Consultation call not established");const ie=L.dialog;if(!ie)throw new Error("No dialog available for consultation session");const ne=ie.callId,we=ie.remoteTag,ve=ie.localTag;let Pe=Br.makeURI(H.targetNumber);if(!Pe&&r.value?.configuration.uri){const et=r.value.configuration.uri.host;Pe=Br.makeURI(`sip:${H.targetNumber}@${et}`)}if(!Pe)throw new Error("Invalid transfer target URI");const at=`${encodeURIComponent(ne)}%3Bto-tag%3D${encodeURIComponent(we)}%3Bfrom-tag%3D${encodeURIComponent(ve)}`;Pe.setHeader("Replaces",at);try{await F.refer(Pe,{onNotify:et=>{et.accept();const yt=et.request.body,Un=typeof yt=="string"?yt:yt&&typeof yt=="object"&&"content"in yt?yt.content:void 0;if(Un){const Ui=Un.match(/SIP\/2\.0\s+(\d+)/);if(Ui&&Ui[1]){const br=parseInt(Ui[1]);br>=200&&br<300?setTimeout(()=>{ce(H.originalChannelId,F),ce(H.consultationChannelId,L),e.setTransferInProgress(null)},500):br>=400&&(console.error("[SipJs] Attended transfer failed with status:",br),e.setTransferInProgress(null))}}},requestDelegate:{onAccept:()=>{},onReject:et=>{console.error("[SipJs] Attended transfer REFER rejected:",et.message.statusCode),e.setTransferInProgress(null)}}})}catch(et){throw console.error("[SipJs] Attended transfer failed:",et),et}},cr=async()=>{const H=e.transferInProgress.value;if(!H)throw new Error("No transfer in progress");console.log("[SipJs] Canceling attended transfer...");const F=s.value.get(H.originalChannelId),L=s.value.get(H.consultationChannelId);if(L)try{await ce(H.consultationChannelId,L),console.log("[SipJs] Consultation call ended")}catch(ie){console.warn("[SipJs] Error ending consultation:",ie)}if(F)try{e.setActiveChannelId(H.originalChannelId),await he(F,!1),e.updateChannelState(H.originalChannelId,{isHeld:!1}),console.log("[SipJs] Returned to original call")}catch(ie){console.warn("[SipJs] Error resuming original call:",ie)}e.setTransferInProgress(null)},St=H=>{const F=H.sessionDescriptionHandler;if(!F){console.error("[SipJs] setupRemoteMedia: no sessionDescriptionHandler");return}const L=F.remoteMediaStream;if(!L){console.error("[SipJs] setupRemoteMedia: no remoteMediaStream on SDH");return}if(a.value===L)return;i.pause(),i.srcObject=null,y?.abort(),y=new AbortController,a.value=L,l.value=F.localMediaStream??null;const ie=st(H);Be(H,ie),ie&&z(H,ie.id);const ne=ve=>{T?.abort(),T=new AbortController;const{signal:Pe}=T,at=()=>{i.play().catch(et=>{et.name!=="AbortError"&&console.error("[SipJs] play() failed:",et.name,et.message)})};ve.addEventListener("unmute",()=>{at()},{signal:Pe}),at()};L.addEventListener("addtrack",ve=>{ve.track.kind==="audio"&&(i.srcObject=null,i.srcObject=L,ne(ve.track),ie&&z(H,ie.id))},{signal:y.signal});const[we]=L.getTracks();we&&(i.srcObject=L,ne(we),ie&&z(H,ie.id))},wn=()=>{T?.abort(),T=null,y?.abort(),y=null,i.pause(),i.srcObject=null,a.value=null,l.value=null};return{initUserAgent:D,stop:re,makeCall:pe,answerCall:fe,hangupCall:se,toggleMute:Ae,toggleHold:Te,sendDTMF:Ve,transferCall:ue,startAttendedTransfer:ge,completeAttendedTransfer:dt,cancelAttendedTransfer:cr,switchChannel:Me,extension:_,setVolume:je,setNotificationVolume:q,setRingtoneVolume:C,setRingtoneTone:S,setOutputDevice:$e,setInputDevice:Oe,remoteStream:a,localStream:l}};var Fp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e;const Vp=wp,jp=(e,t)=>r=>{var n;if(t?.variants==null)return Vp(e,r?.class,r?.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(l=>{const u=r?.[l],c=i?.[l];if(u===null)return null;const d=Fp(u)||Fp(c);return s[l][d]}),a=r&&Object.entries(r).reduce((l,u)=>{let[c,d]=u;return d===void 0||(l[c]=d),l},{});return Vp(e,o,t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,u)=>{let{class:c,className:d,...p}=u;return Object.entries(p).every(h=>{let[m,y]=h;return Array.isArray(y)?y.includes({...i,...a}[m]):{...i,...a}[m]===y})?[...l,c,d]:l},[]),r?.class,r?.className)};function Ty(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ey(e,t,r){Ty(e,t),t.set(e,r)}function Ay(e,t,r){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function ea(e,t){return e.get(Ay(e,t))}function Up(e){return typeof e=="string"?`'${e}'`:new ky().serialize(e)}var ky=(function(){var e=new WeakMap;class t{constructor(){Ey(this,e,new Map)}compare(n,s){const i=typeof n,o=typeof s;return i==="string"&&o==="string"?n.localeCompare(s):i==="number"&&o==="number"?n-s:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(s,!0))}serialize(n,s){if(n===null)return"null";switch(typeof n){case"string":return s?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const s=Object.prototype.toString.call(n);if(s!=="[object Object]")return this.serializeBuiltInType(s.length<10?`unknown:${s}`:s.slice(8,-1),n);const i=n.constructor,o=i===Object||i===void 0?"":i.name;if(o!==""&&globalThis[o]===i)return this.serializeBuiltInType(o,n);if(typeof n.toJSON=="function"){const a=n.toJSON();return o+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(o,Object.entries(n))}serializeBuiltInType(n,s){const i=this["$"+n];if(i)return i.call(this,s);if(typeof s?.entries=="function")return this.serializeObjectEntries(n,s.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,s){const i=Array.from(s).sort((a,l)=>this.compare(a[0],l[0]));let o=`${n}{`;for(let a=0;a<i.length;a++){const[l,u]=i[a];o+=`${this.serialize(l,!0)}:${this.serialize(u)}`,a<i.length-1&&(o+=",")}return o+"}"}$object(n){let s=ea(e,this).get(n);return s===void 0&&(ea(e,this).set(n,`#${ea(e,this).size}`),s=this.serializeObject(n),ea(e,this).set(n,s)),s}$function(n){const s=Function.prototype.toString.call(n);return s.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${s.replace(/\s*\n\s*/g,"")}`}$Array(n){let s="[";for(let i=0;i<n.length;i++)s+=this.serialize(n[i]),i<n.length-1&&(s+=",");return s+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((s,i)=>this.compare(s,i)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const r of["Error","RegExp","URL"])t.prototype["$"+r]=function(n){return`${r}(${n})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])t.prototype["$"+r]=function(n){return`${r}[${n.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])t.prototype["$"+r]=function(n){return`${r}[${n.join("n,")}${n.length>0?"n":""}]`};return t})();function Ry(e,t){return e===t||Up(e)===Up(t)}function Hi(e,t=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY){return Math.min(r,Math.max(t,e))}function Dt(e,t){const r=typeof e=="string"&&!t?`${e}Context`:t,n=Symbol(r);return[o=>{const a=Vt(n,o);if(a||a===null)return a;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>(Yn(n,o),o)]}function ir(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Yl(e,t,r){const n=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),n.dispatchEvent(s)}function Zl(e){return e==null}function Xl(e){return e?e.flatMap(t=>t.type===Ke?Xl(t.children):[t]):[]}var[ta,Jx]=Dt("ConfigProvider");function Iy(e,t){var r;const n=ft();return lt(()=>{n.value=e()},{...t,flush:(r=t?.flush)!==null&&r!==void 0?r:"sync"}),Mt(n)}function Nn(e,t){return Xi()?($a(e,t),!0):!1}function $y(){const e=new Set,t=i=>{e.delete(i)};return{on:i=>{e.add(i);const o=()=>t(i);return Nn(o),{off:o}},off:t,trigger:(...i)=>Promise.all(Array.from(e).map(o=>o(...i))),clear:()=>{e.clear()}}}function Py(e){let t=!1,r;const n=Ia(!0);return((...s)=>(t||(r=n.run(()=>e(...s)),t=!0),r))}var Bt=typeof window<"u"&&typeof document<"u",Yx=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,Dy=e=>typeof e<"u",Oy=Object.prototype.toString,Hy=e=>Oy.call(e)==="[object Object]",un=()=>{},Ql=My();function My(){var e,t,r;return Bt&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((r=window)===null||r===void 0?void 0:r.navigator.userAgent))}function Ny(...e){if(e.length!==1)return ja(...e);const t=e[0];return typeof t=="function"?Mt(ii(()=>({get:t,set:un}))):V(t)}function zp(e,t){function r(...n){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(s).catch(i)})}return r}var Kp=e=>e();function qy(e,t={}){let r,n,s=un;const i=l=>{clearTimeout(l),s(),s=un};let o;return l=>{const u=ke(e),c=ke(t.maxWait);return r&&i(r),u<=0||c!==void 0&&c<=0?(n&&(i(n),n=void 0),Promise.resolve(l())):new Promise((d,p)=>{s=t.rejectOnCancel?p:d,o=l,c&&!n&&(n=setTimeout(()=>{r&&i(r),n=void 0,d(o())},c)),r=setTimeout(()=>{n&&i(n),n=void 0,d(l())},u)})}}function By(e=Kp,t={}){const{initialState:r="active"}=t,n=Ny(r==="active");function s(){n.value=!1}function i(){n.value=!0}return{isActive:Mt(n),pause:s,resume:i,eventFilter:(...a)=>{n.value&&e(...a)}}}function ec(e){return Array.isArray(e)?e:[e]}function Wp(e){const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))}var Ly=/\B([A-Z])/g,Zx=Wp(e=>e.replace(Ly,"-$1").toLowerCase()),Fy=/-(\w)/g,Xx=Wp(e=>e.replace(Fy,(t,r)=>r?r.toUpperCase():""));function Gp(e){return e||vt()}function Vy(e){if(!Bt)return e;let t=0,r,n;const s=()=>{t-=1,n&&t<=0&&(n.stop(),r=void 0,n=void 0)};return((...i)=>(t+=1,n||(n=Ia(!0),r=n.run(()=>e(...i))),Nn(s),r))}function jy(e){return Jr(tt(e)?new Proxy({},{get(t,r,n){return f(Reflect.get(e.value,r,n))},set(t,r,n){return tt(e.value[r])&&!tt(n)?e.value[r].value=n:e.value[r]=n,!0},deleteProperty(t,r){return Reflect.deleteProperty(e.value,r)},has(t,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function Uy(e){return jy(j(e))}function zt(e,...t){const r=t.flat(),n=r[0];return Uy(()=>Object.fromEntries(typeof n=="function"?Object.entries(Nt(e)).filter(([s,i])=>!n(ke(i),s)):Object.entries(Nt(e)).filter(s=>!r.includes(s[0]))))}function Jp(e,t=1e4){return ii((r,n)=>{let s=ke(e),i;const o=()=>setTimeout(()=>{s=ke(e),n()},ke(t));return Nn(()=>{clearTimeout(i)}),{get(){return r(),s},set(a){s=a,n(),clearTimeout(i),i=o()}}})}function tc(e,t=200,r={}){return zp(qy(t,r),e)}function zy(e,t,r={}){const{eventFilter:n=Kp,...s}=r;return He(e,zp(n,t),s)}function Ky(e,t,r={}){const{eventFilter:n,initialState:s="active",...i}=r,{eventFilter:o,pause:a,resume:l,isActive:u}=By(n,{initialState:s});return{stop:zy(e,t,{...i,eventFilter:o}),pause:a,resume:l,isActive:u}}function Wy(e,t={}){if(!tt(e))return Nt(e);const r=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)r[n]=ii(()=>({get(){return e.value[n]},set(s){var i;if(!((i=ke(t.replaceRef))!==null&&i!==void 0)||i)if(Array.isArray(e.value)){const o=[...e.value];o[n]=s,e.value=o}else{const o={...e.value,[n]:s};Object.setPrototypeOf(o,Object.getPrototypeOf(e.value)),e.value=o}else e.value[n]=s}}));return r}function Gy(e,t){Gp(t)&&Is(e,t)}function Jy(e,t=!0,r){Gp(r)?Qe(e,r):t?e():At(e)}function Yy(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:s=!1}=r;let i=null;const o=ft(!1);function a(){i&&(clearInterval(i),i=null)}function l(){o.value=!1,a()}function u(){const c=ke(t);c<=0||(o.value=!0,s&&e(),a(),o.value&&(i=setInterval(e,c)))}return n&&Bt&&u(),(tt(t)||typeof t=="function")&&Nn(He(t,()=>{o.value&&Bt&&u()})),Nn(l),{isActive:Yr(o),pause:l,resume:u}}function Yp(e,t,r={}){const{immediate:n=!0,immediateCallback:s=!1}=r,i=ft(!1);let o;function a(){o&&(clearTimeout(o),o=void 0)}function l(){i.value=!1,a()}function u(...c){s&&e(),a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=void 0,e(...c)},ke(t))}return n&&(i.value=!0,Bt&&u()),Nn(l),{isPending:Yr(i),start:u,stop:l}}function Zy(e,t,r){return He(e,t,{...r,immediate:!0})}function Xy(e,t,r){return He(e,t,{...r,once:!0})}var Rr=Bt?window:void 0,Qx=Bt?window.document:void 0,eT=Bt?window.navigator:void 0,tT=Bt?window.location:void 0;function er(e){var t;const r=ke(e);return(t=r?.$el)!==null&&t!==void 0?t:r}function Kt(...e){const t=(n,s,i,o)=>(n.addEventListener(s,i,o),()=>n.removeEventListener(s,i,o)),r=j(()=>{const n=ec(ke(e[0])).filter(s=>s!=null);return n.every(s=>typeof s!="string")?n:void 0});return Zy(()=>{var n,s;return[(n=(s=r.value)===null||s===void 0?void 0:s.map(i=>er(i)))!==null&&n!==void 0?n:[Rr].filter(i=>i!=null),ec(ke(r.value?e[1]:e[0])),ec(f(r.value?e[2]:e[1])),ke(r.value?e[3]:e[2])]},([n,s,i,o],a,l)=>{if(!n?.length||!s?.length||!i?.length)return;const u=Hy(o)?{...o}:o,c=n.flatMap(d=>s.flatMap(p=>i.map(h=>t(d,p,h,u))));l(()=>{c.forEach(d=>d())})},{flush:"post"})}var Zp=!1;function Qy(e,t,r={}){const{window:n=Rr,ignore:s=[],capture:i=!0,detectIframe:o=!1,controls:a=!1}=r;if(!n)return a?{stop:un,cancel:un,trigger:un}:un;if(Ql&&!Zp){Zp=!0;const T={passive:!0};Array.from(n.document.body.children).forEach(g=>g.addEventListener("click",un,T)),n.document.documentElement.addEventListener("click",un,T)}let l=!0;const u=T=>ke(s).some(g=>{if(typeof g=="string")return Array.from(n.document.querySelectorAll(g)).some(b=>b===T.target||T.composedPath().includes(b));{const b=er(g);return b&&(T.target===b||T.composedPath().includes(b))}});function c(T){const g=ke(T);return g&&g.$.subTree.shapeFlag===16}function d(T,g){const b=ke(T),w=b.$.subTree&&b.$.subTree.children;return w==null||!Array.isArray(w)?!1:w.some(_=>_.el===g.target||g.composedPath().includes(_.el))}const p=T=>{const g=er(e);if(T.target!=null&&!(!(g instanceof Element)&&c(e)&&d(e,T))&&!(!g||g===T.target||T.composedPath().includes(g))){if("detail"in T&&T.detail===0&&(l=!u(T)),!l){l=!0;return}t(T)}};let h=!1;const m=[Kt(n,"click",T=>{h||(h=!0,setTimeout(()=>{h=!1},0),p(T))},{passive:!0,capture:i}),Kt(n,"pointerdown",T=>{const g=er(e);l=!u(T)&&!!(g&&!T.composedPath().includes(g))},{passive:!0}),o&&Kt(n,"blur",T=>{setTimeout(()=>{var g;const b=er(e);((g=n.document.activeElement)===null||g===void 0?void 0:g.tagName)==="IFRAME"&&!b?.contains(n.document.activeElement)&&t(T)},0)},{passive:!0})].filter(Boolean),y=()=>m.forEach(T=>T());return a?{stop:y,cancel:()=>{l=!1},trigger:T=>{l=!0,p(T),l=!1}}:y}function rc(){const e=ft(!1),t=vt();return t&&Qe(()=>{e.value=!0},t),e}function Xp(e){const t=rc();return j(()=>(t.value,!!e()))}function eb(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function tb(...e){let t,r,n={};e.length===3?(t=e[0],r=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],n=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Rr,eventName:i="keydown",passive:o=!1,dedupe:a=!1}=n,l=eb(t);return Kt(s,i,c=>{c.repeat&&ke(a)||l(c)&&r(c)},o)}function rb(e){return JSON.parse(JSON.stringify(e))}var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},na="__vueuse_ssr_handlers__",nb=sb();function sb(){return na in ra||(ra[na]=ra[na]||{}),ra[na]}function ib(e,t){return nb[e]||t}function ob(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var ab={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Qp="vueuse-storage";function as(e,t,r,n={}){var s;const{flush:i="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:d=Rr,eventFilter:p,onError:h=O=>{console.error(O)},initOnMounted:m}=n,y=(c?ft:V)(typeof t=="function"?t():t),T=j(()=>ke(e));if(!r)try{r=ib("getDefaultStorage",()=>Rr?.localStorage)()}catch(O){h(O)}if(!r)return y;const g=ke(t),b=ob(g),w=(s=n.serializer)!==null&&s!==void 0?s:ab[b],{pause:_,resume:E}=Ky(y,O=>q(O),{flush:i,deep:o,eventFilter:p});He(T,()=>S(),{flush:i});let P=!1;const B=O=>{m&&!P||S(O)},v=O=>{m&&!P||x(O)};d&&a&&(r instanceof Storage?Kt(d,"storage",B,{passive:!0}):Kt(d,Qp,v)),m?Jy(()=>{P=!0,S()}):S();function N(O,R){if(d){const M={key:T.value,oldValue:O,newValue:R,storageArea:r};d.dispatchEvent(r instanceof Storage?new StorageEvent("storage",M):new CustomEvent(Qp,{detail:M}))}}function q(O){try{const R=r.getItem(T.value);if(O==null)N(R,null),r.removeItem(T.value);else{const M=w.write(O);R!==M&&(r.setItem(T.value,M),N(R,M))}}catch(R){h(R)}}function C(O){const R=O?O.newValue:r.getItem(T.value);if(R==null)return l&&g!=null&&r.setItem(T.value,w.write(g)),g;if(!O&&u){const M=w.read(R);return typeof u=="function"?u(M,g):b==="object"&&!Array.isArray(M)?{...g,...M}:M}else return typeof R!="string"?R:w.read(R)}function S(O){if(!(O&&O.storageArea!==r)){if(O&&O.key==null){y.value=g;return}if(!(O&&O.key!==T.value)){_();try{const R=w.write(y.value);(O===void 0||O?.newValue!==R)&&(y.value=C(O))}catch(R){h(R)}finally{O?At(E):E()}}}}function x(O){S(O.detail)}return y}var sa={speed:2,margin:30,direction:"both"};function lb(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function cb(e,t={}){var r,n,s,i;const{pointerTypes:o,preventDefault:a,stopPropagation:l,exact:u,onMove:c,onEnd:d,onStart:p,initialValue:h,axis:m="both",draggingElement:y=Rr,containerElement:T,handle:g=e,buttons:b=[0],restrictInView:w,autoScroll:_=!1}=t,E=V((r=ke(h))!==null&&r!==void 0?r:{x:0,y:0}),P=V(),B=le=>o?o.includes(le.pointerType):!0,v=le=>{ke(a)&&le.preventDefault(),ke(l)&&le.stopPropagation()},N=ke(_),q=typeof N=="object"?{speed:(n=ke(N.speed))!==null&&n!==void 0?n:sa.speed,margin:(s=ke(N.margin))!==null&&s!==void 0?s:sa.margin,direction:(i=N.direction)!==null&&i!==void 0?i:sa.direction}:sa,C=le=>typeof le=="number"?[le,le]:[le.x,le.y],S=(le,de,Ie)=>{const{clientWidth:je,clientHeight:$e,scrollLeft:Oe,scrollTop:nt,scrollWidth:_t,scrollHeight:Be}=le,[st,ht]=C(q.margin),[wt,A]=C(q.speed);let D=0,J=0;(q.direction==="x"||q.direction==="both")&&(Ie.x<st&&Oe>0?D=-wt:Ie.x+de.width>je-st&&Oe<_t-je&&(D=wt)),(q.direction==="y"||q.direction==="both")&&(Ie.y<ht&&nt>0?J=-A:Ie.y+de.height>$e-ht&&nt<Be-$e&&(J=A)),(D||J)&&le.scrollBy({left:D,top:J,behavior:"auto"})};let x=null;const O=()=>{const le=ke(T);le&&!x&&(x=setInterval(()=>{const de=ke(e).getBoundingClientRect(),{x:Ie,y:je}=E.value,$e={x:Ie-le.scrollLeft,y:je-le.scrollTop};$e.x>=0&&$e.y>=0&&(S(le,de,$e),$e.x+=le.scrollLeft,$e.y+=le.scrollTop,E.value=$e)},1e3/60))},R=()=>{x&&(clearInterval(x),x=null)},M=(le,de,Ie,je)=>{const[$e,Oe]=typeof Ie=="number"?[Ie,Ie]:[Ie.x,Ie.y],{clientWidth:nt,clientHeight:_t}=de;return le.x<$e||le.x+je.width>nt-$e||le.y<Oe||le.y+je.height>_t-Oe},z=()=>{if(ke(t.disabled)||!P.value)return;const le=ke(T);if(!le)return;const de=ke(e).getBoundingClientRect(),{x:Ie,y:je}=E.value;M({x:Ie-le.scrollLeft,y:je-le.scrollTop},le,q.margin,de)?O():R()};ke(_)&&He(E,z);const G=le=>{var de;if(!ke(b).includes(le.button)||ke(t.disabled)||!B(le)||ke(u)&&le.target!==ke(e))return;const Ie=ke(T),je=Ie==null||(de=Ie.getBoundingClientRect)===null||de===void 0?void 0:de.call(Ie),$e=ke(e).getBoundingClientRect(),Oe={x:le.clientX-(Ie?$e.left-je.left+(_?0:Ie.scrollLeft):$e.left),y:le.clientY-(Ie?$e.top-je.top+(_?0:Ie.scrollTop):$e.top)};p?.(Oe,le)!==!1&&(P.value=Oe,v(le))},ae=le=>{if(ke(t.disabled)||!B(le)||!P.value)return;const de=ke(T);de instanceof HTMLElement&&lb(de);const Ie=ke(e).getBoundingClientRect();let{x:je,y:$e}=E.value;if((m==="x"||m==="both")&&(je=le.clientX-P.value.x,de&&(je=Math.min(Math.max(0,je),de.scrollWidth-Ie.width))),(m==="y"||m==="both")&&($e=le.clientY-P.value.y,de&&($e=Math.min(Math.max(0,$e),de.scrollHeight-Ie.height))),ke(_)&&de&&(x===null&&S(de,Ie,{x:je,y:$e}),je+=de.scrollLeft,$e+=de.scrollTop),de&&(w||_)){if(m!=="y"){const Oe=je-de.scrollLeft;Oe<0?je=de.scrollLeft:Oe>de.clientWidth-Ie.width&&(je=de.clientWidth-Ie.width+de.scrollLeft)}if(m!=="x"){const Oe=$e-de.scrollTop;Oe<0?$e=de.scrollTop:Oe>de.clientHeight-Ie.height&&($e=de.clientHeight-Ie.height+de.scrollTop)}}E.value={x:je,y:$e},c?.(E.value,le),v(le)},Y=le=>{ke(t.disabled)||!B(le)||P.value&&(P.value=void 0,_&&R(),d?.(E.value,le),v(le))};if(Bt){const le=()=>{var de;return{capture:(de=t.capture)!==null&&de!==void 0?de:!0,passive:!ke(a)}};Kt(g,"pointerdown",G,le),Kt(y,"pointermove",ae,le),Kt(y,"pointerup",Y,le)}return{...Wy(E),position:E,isDragging:j(()=>!!P.value),style:j(()=>`
|
|
69
69
|
left: ${E.value.x}px;
|
|
70
70
|
top: ${E.value.y}px;
|
|
71
71
|
${_?"text-wrap: nowrap;":""}
|
|
72
|
-
`)}}function as(e,t,r={}){const{window:n=kr,...s}=r;let i;const o=Jp(()=>n&&"ResizeObserver"in n),a=()=>{i&&(i.disconnect(),i=void 0)},l=De(j(()=>{const c=Ae(e);return Array.isArray(c)?c.map(d=>Xt(d)):[Xt(c)]}),c=>{if(a(),o.value&&n){i=new ResizeObserver(t);for(const d of c)d&&i.observe(d,s)}},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return Mn(u),{isSupported:o,stop:u}}function sb(e={}){const{window:t=kr}=e,r=t?.navigator,n=Jp(()=>r&&"connection"in r),s=ft(!0),i=ft(!1),o=ft(void 0),a=ft(void 0),l=ft(void 0),u=ft(void 0),c=ft(void 0),d=ft(void 0),p=ft("unknown"),h=n.value&&r.connection;function g(){r&&(s.value=r.onLine,o.value=s.value?void 0:Date.now(),a.value=s.value?Date.now():void 0,h&&(l.value=h.downlink,u.value=h.downlinkMax,d.value=h.effectiveType,c.value=h.rtt,i.value=h.saveData,p.value=h.type))}const w={passive:!0};return t&&(Kt(t,"offline",()=>{s.value=!1,o.value=Date.now()},w),Kt(t,"online",()=>{s.value=!0,a.value=Date.now()},w)),h&&Kt(h,"change",g,w),g(),{isSupported:n,isOnline:Mt(s),saveData:Mt(i),offlineAt:Mt(o),onlineAt:Mt(a),downlink:Mt(l),downlinkMax:Mt(u),effectiveType:Mt(d),rtt:Mt(c),type:Mt(p)}}var zx=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}];function ls(e,t,r,n={}){var s,i;const{clone:o=!1,passive:a=!1,eventName:l,deep:u=!1,defaultValue:c,shouldEmit:d}=n,p=vt(),h=r||p?.emit||(p==null||(s=p.$emit)===null||s===void 0?void 0:s.bind(p))||(p==null||(i=p.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(p?.proxy));let g=l;t||(t="modelValue"),g=g||`update:${t.toString()}`;const w=S=>o?typeof o=="function"?o(S):Yy(S):S,T=()=>Ay(e[t])?w(e[t]):c,v=S=>{d?d(S)&&h(g,S):h(g,S)};if(a){const S=V(T());let y=!1;return De(()=>e[t],_=>{y||(y=!0,S.value=w(_),At(()=>y=!1))}),De(S,_=>{!y&&(_!==e[t]||u)&&v(_)},{deep:u}),S}else return j({get(){return T()},set(S){v(S)}})}function tc(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function rc(e,t,r=".",n){if(!tc(t))return rc(e,{},r,n);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(n&&n(s,i,o,r)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:tc(o)&&tc(s[i])?s[i]=rc(o,s[i],(r?`${r}.`:"")+i.toString(),n):s[i]=o))}return s}function nc(e){return(...t)=>t.reduce((r,n)=>rc(r,n,"",e),{})}var Zp=nc(),Kx=nc((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0}),Wx=nc((e,t,r)=>{if(Array.isArray(e[t])&&typeof r=="function")return e[t]=r(e[t]),!0}),ib=My(()=>{const e=V(new Map),t=V(),r=j(()=>{for(const o of e.value.values())if(o)return!0;return!1}),n=Go({scrollBody:V(!0)});let s=null;const i=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Zl&&s?.(),t.value=void 0};return De(r,(o,a)=>{if(!Bt)return;if(!o){a&&i();return}t.value===void 0&&(t.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,u={padding:l,margin:0},c=n.scrollBody?.value?typeof n.scrollBody.value=="object"?Zp({padding:n.scrollBody.value.padding===!0?l:n.scrollBody.value.padding,margin:n.scrollBody.value.margin===!0?l:n.scrollBody.value.margin},u):u:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof c.padding=="number"?`${c.padding}px`:String(c.padding),document.body.style.marginRight=typeof c.margin=="number"?`${c.margin}px`:String(c.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),Zl&&(s=Kt(document,"touchmove",d=>ob(d),{passive:!1})),At(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function Xp(e){const t=Math.random().toString(36).substring(2,7),r=ib();r.value.set(t,e??!1);const n=j({get:()=>r.value.get(t)??!1,set:s=>r.value.set(t,s)});return Vy(()=>{r.value.delete(t)}),n}function Qp(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const r=e.parentNode;return!(r instanceof Element)||r.tagName==="BODY"?!1:Qp(r)}}function ob(e){const t=e||window.event,r=t.target;return r instanceof Element&&Qp(r)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function sc(e){const t=Go({dir:V("ltr")});return j(()=>e?.value||t.dir?.value||"ltr")}function Xo(e){const t=vt(),r=t?.type.emits,n={};return r?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),r?.forEach(s=>{n[ms(Ct(s))]=(...i)=>e(s,...i)}),n}var ic=0;function ab(){at(e=>{if(!Bt)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??eh()),document.body.insertAdjacentElement("beforeend",t[1]??eh()),ic++,e(()=>{ic===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(r=>r.remove()),ic--})})}function eh(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function oc(e){return j(()=>Ae(e)?!!Xt(e)?.closest("form"):!0)}function ke(){const e=vt(),t=V(),r=j(()=>n());ci(()=>{r.value!==n()&&Ru(t)});function n(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Xt(t)}const s=Object.assign({},e.exposed),i={};for(const a in e.props)Object.defineProperty(i,a,{enumerable:!0,configurable:!0,get:()=>e.props[a]});if(Object.keys(s).length>0)for(const a in s)Object.defineProperty(i,a,{enumerable:!0,configurable:!0,get:()=>s[a]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function o(a){if(t.value=a,!!a&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>a instanceof Element?a:a.$el}),!(a instanceof Element)&&!Object.prototype.hasOwnProperty.call(a,"$el"))){const l=a.$.exposed,u=Object.assign({},i);for(const c in l)Object.defineProperty(u,c,{enumerable:!0,configurable:!0,get:()=>l[c]});e.exposed=u}}return{forwardRef:o,currentRef:t,currentElement:r}}function cn(e){const t=vt(),r=Object.keys(t?.type.props??{}).reduce((s,i)=>{const o=(t?.type.props[i]).default;return o!==void 0&&(s[i]=o),s},{}),n=La(e);return j(()=>{const s={},i=t?.vnode.props??{};return Object.keys(i).forEach(o=>{s[Ct(o)]=i[o]}),Object.keys({...r,...s}).reduce((o,a)=>(n.value[a]!==void 0&&(o[a]=n.value[a]),o),{})})}function qr(e,t){const r=cn(e),n=t?Xo(t):{};return j(()=>({...r.value,...n}))}function lb(e,t){const r=Kp(!1,300);Mn(()=>{r.value=!1});const n=V(null),s=Ty();function i(){n.value=null,r.value=!1}function o(a,l){const u=a.currentTarget,c={x:a.clientX,y:a.clientY},d=ub(c,cb(c,u.getBoundingClientRect()),1),p=db(l.getBoundingClientRect());n.value=pb([...d,...p]),r.value=!0}return at(a=>{if(e.value&&t.value){const l=c=>o(c,t.value),u=c=>o(c,e.value);e.value.addEventListener("pointerleave",l),t.value.addEventListener("pointerleave",u),a(()=>{e.value?.removeEventListener("pointerleave",l),t.value?.removeEventListener("pointerleave",u)})}}),at(a=>{if(n.value){const l=u=>{if(!n.value||!(u.target instanceof Element))return;const c=u.target,d={x:u.clientX,y:u.clientY},p=e.value?.contains(c)||t.value?.contains(c),h=!fb(d,n.value),g=!!c.closest("[data-grace-area-trigger]");p?i():(h||g)&&(i(),s.trigger())};e.value?.ownerDocument.addEventListener("pointermove",l),a(()=>e.value?.ownerDocument.removeEventListener("pointermove",l))}}),{isPointerInTransit:r,onPointerExit:s.on}}function cb(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function ub(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function db(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function fb(e,t){const{x:r,y:n}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i].x,l=t[i].y,u=t[o].x,c=t[o].y;l>n!=c>n&&r<(u-a)*(n-l)/(c-l)+a&&(s=!s)}return s}function pb(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),hb(t)}function hb(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var gb=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Ns=new WeakMap,Qo=new WeakMap,ea={},ac=0,th=function(e){return e&&(e.host||th(e.parentNode))},vb=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=th(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},mb=function(e,t,r,n){var s=vb(t,Array.isArray(e)?e:[e]);ea[r]||(ea[r]=new WeakMap);var i=ea[r],o=[],a=new Set,l=new Set(s),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};s.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(a.has(p))c(p);else try{var h=p.getAttribute(n),g=h!==null&&h!=="false",w=(Ns.get(p)||0)+1,T=(i.get(p)||0)+1;Ns.set(p,w),i.set(p,T),o.push(p),w===1&&g&&Qo.set(p,!0),T===1&&p.setAttribute(r,"true"),g||p.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return c(t),a.clear(),ac++,function(){o.forEach(function(d){var p=Ns.get(d)-1,h=i.get(d)-1;Ns.set(d,p),i.set(d,h),p||(Qo.has(d)||d.removeAttribute(n),Qo.delete(d)),h||d.removeAttribute(r)}),ac--,ac||(Ns=new WeakMap,Ns=new WeakMap,Qo=new WeakMap,ea={})}},wb=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=t||gb(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live], script"))),mb(n,s,r,"aria-hidden")):function(){return null}};function rh(e){let t;De(()=>Xt(e),r=>{r?t=wb(r):t&&t()}),jt(()=>{t&&t()})}var yb=0;function qs(e,t="reka"){if(e)return e;let r;return"useId"in H0?r=Qu?.():r=Go({useId:void 0}).useId?.()??`${++yb}`,t?`${t}-${r}`:r}function nh(e){const t=V(),r=j(()=>t.value?.width??0),n=j(()=>t.value?.height??0);return Qe(()=>{const s=Xt(e);if(s){t.value={width:s.offsetWidth,height:s.offsetHeight};const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,u;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;l=d.inlineSize,u=d.blockSize}else l=s.offsetWidth,u=s.offsetHeight;t.value={width:l,height:u}});return i.observe(s,{box:"border-box"}),()=>i.unobserve(s)}else t.value=void 0}),{width:r,height:n}}function lc(e,t){const r=V(e);function n(i){return t[r.value][i]??r.value}return{state:r,dispatch:i=>{r.value=n(i)}}}function sh(e){const t=Kp("",1e3);return{search:t,handleTypeaheadSearch:(s,i)=>{if(t.value=t.value+s,e)e(s);else{const o=nr(),a=i.map(d=>({...d,textValue:d.value?.textValue??d.ref.textContent?.trim()??""})),l=a.find(d=>d.ref===o),u=_b(a.map(d=>d.textValue),t.value,l?.textValue),c=a.find(d=>d.textValue===u);return c&&c.ref.focus(),c?.ref}},resetTypeahead:()=>{t.value=""}}}function bb(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function _b(e,t,r){const n=t.length>1&&Array.from(t).every(a=>a===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let i=bb(e,Math.max(s,0));n.length===1&&(i=i.filter(a=>a!==r));const o=i.find(a=>a.toLowerCase().startsWith(n.toLowerCase()));return o!==r?o:void 0}function Sb(e,t){const r=V({}),n=V("none"),s=V(e),i=e.value?"mounted":"unmounted";let o;const a=t.value?.ownerDocument.defaultView??kr,{state:l,dispatch:u}=lc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),c=w=>{if(Bt){const T=new CustomEvent(w,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(T)}};De(e,async(w,T)=>{const v=T!==w;if(await At(),v){const S=n.value,y=ta(t.value);w?(u("MOUNT"),c("enter"),y==="none"&&c("after-enter")):y==="none"||y==="undefined"||r.value?.display==="none"?(u("UNMOUNT"),c("leave"),c("after-leave")):T&&S!==y?(u("ANIMATION_OUT"),c("leave")):(u("UNMOUNT"),c("after-leave"))}},{immediate:!0});const d=w=>{const T=ta(t.value),v=T.includes(CSS.escape(w.animationName)),S=l.value==="mounted"?"enter":"leave";if(w.target===t.value&&v&&(c(`after-${S}`),u("ANIMATION_END"),!s.value)){const y=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",o=a?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=y)})}w.target===t.value&&T==="none"&&u("ANIMATION_END")},p=w=>{w.target===t.value&&(n.value=ta(t.value))},h=De(t,(w,T)=>{w?(r.value=getComputedStyle(w),w.addEventListener("animationstart",p),w.addEventListener("animationcancel",d),w.addEventListener("animationend",d)):(u("ANIMATION_END"),o!==void 0&&a?.clearTimeout(o),T?.removeEventListener("animationstart",p),T?.removeEventListener("animationcancel",d),T?.removeEventListener("animationend",d))},{immediate:!0}),g=De(l,()=>{const w=ta(t.value);n.value=l.value==="mounted"?w:"none"});return jt(()=>{h(),g()}),{isPresent:j(()=>["mounted","unmountSuspended"].includes(l.value))}}function ta(e){return e&&getComputedStyle(e).animationName||"none"}var Nn=X({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:r}){const{present:n,forceMount:s}=Nt(e),i=V(),{isPresent:o}=Sb(n,i);r({present:o});let a=t.default({present:o.value});a=Yl(a||[]);const l=vt();if(a&&a?.length>1){const u=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(c=>` - ${c}`).join(`
|
|
72
|
+
`)}}function ls(e,t,r={}){const{window:n=Rr,...s}=r;let i;const o=Xp(()=>n&&"ResizeObserver"in n),a=()=>{i&&(i.disconnect(),i=void 0)},l=He(j(()=>{const c=ke(e);return Array.isArray(c)?c.map(d=>er(d)):[er(c)]}),c=>{if(a(),o.value&&n){i=new ResizeObserver(t);for(const d of c)d&&i.observe(d,s)}},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return Nn(u),{isSupported:o,stop:u}}function ub(e={}){const{window:t=Rr}=e,r=t?.navigator,n=Xp(()=>r&&"connection"in r),s=ft(!0),i=ft(!1),o=ft(void 0),a=ft(void 0),l=ft(void 0),u=ft(void 0),c=ft(void 0),d=ft(void 0),p=ft("unknown"),h=n.value&&r.connection;function m(){r&&(s.value=r.onLine,o.value=s.value?void 0:Date.now(),a.value=s.value?Date.now():void 0,h&&(l.value=h.downlink,u.value=h.downlinkMax,d.value=h.effectiveType,c.value=h.rtt,i.value=h.saveData,p.value=h.type))}const y={passive:!0};return t&&(Kt(t,"offline",()=>{s.value=!1,o.value=Date.now()},y),Kt(t,"online",()=>{s.value=!0,a.value=Date.now()},y)),h&&Kt(h,"change",m,y),m(),{isSupported:n,isOnline:Mt(s),saveData:Mt(i),offlineAt:Mt(o),onlineAt:Mt(a),downlink:Mt(l),downlinkMax:Mt(u),effectiveType:Mt(d),rtt:Mt(c),type:Mt(p)}}var rT=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}];function cs(e,t,r,n={}){var s,i;const{clone:o=!1,passive:a=!1,eventName:l,deep:u=!1,defaultValue:c,shouldEmit:d}=n,p=vt(),h=r||p?.emit||(p==null||(s=p.$emit)===null||s===void 0?void 0:s.bind(p))||(p==null||(i=p.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(p?.proxy));let m=l;t||(t="modelValue"),m=m||`update:${t.toString()}`;const y=b=>o?typeof o=="function"?o(b):rb(b):b,T=()=>Dy(e[t])?y(e[t]):c,g=b=>{d?d(b)&&h(m,b):h(m,b)};if(a){const b=V(T());let w=!1;return He(()=>e[t],_=>{w||(w=!0,b.value=y(_),At(()=>w=!1))}),He(b,_=>{!w&&(_!==e[t]||u)&&g(_)},{deep:u}),b}else return j({get(){return T()},set(b){g(b)}})}function nc(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function sc(e,t,r=".",n){if(!nc(t))return sc(e,{},r,n);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(n&&n(s,i,o,r)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:nc(o)&&nc(s[i])?s[i]=sc(o,s[i],(r?`${r}.`:"")+i.toString(),n):s[i]=o))}return s}function ic(e){return(...t)=>t.reduce((r,n)=>sc(r,n,"",e),{})}var eh=ic(),nT=ic((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0}),sT=ic((e,t,r)=>{if(Array.isArray(e[t])&&typeof r=="function")return e[t]=r(e[t]),!0}),db=Vy(()=>{const e=V(new Map),t=V(),r=j(()=>{for(const o of e.value.values())if(o)return!0;return!1}),n=ta({scrollBody:V(!0)});let s=null;const i=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Ql&&s?.(),t.value=void 0};return He(r,(o,a)=>{if(!Bt)return;if(!o){a&&i();return}t.value===void 0&&(t.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,u={padding:l,margin:0},c=n.scrollBody?.value?typeof n.scrollBody.value=="object"?eh({padding:n.scrollBody.value.padding===!0?l:n.scrollBody.value.padding,margin:n.scrollBody.value.margin===!0?l:n.scrollBody.value.margin},u):u:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof c.padding=="number"?`${c.padding}px`:String(c.padding),document.body.style.marginRight=typeof c.margin=="number"?`${c.margin}px`:String(c.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),Ql&&(s=Kt(document,"touchmove",d=>fb(d),{passive:!1})),At(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function th(e){const t=Math.random().toString(36).substring(2,7),r=db();r.value.set(t,e??!1);const n=j({get:()=>r.value.get(t)??!1,set:s=>r.value.set(t,s)});return Gy(()=>{r.value.delete(t)}),n}function rh(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const r=e.parentNode;return!(r instanceof Element)||r.tagName==="BODY"?!1:rh(r)}}function fb(e){const t=e||window.event,r=t.target;return r instanceof Element&&rh(r)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function oc(e){const t=ta({dir:V("ltr")});return j(()=>e?.value||t.dir?.value||"ltr")}function ia(e){const t=vt(),r=t?.type.emits,n={};return r?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),r?.forEach(s=>{n[ws(Ct(s))]=(...i)=>e(s,...i)}),n}var ac=0;function pb(){lt(e=>{if(!Bt)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??nh()),document.body.insertAdjacentElement("beforeend",t[1]??nh()),ac++,e(()=>{ac===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(r=>r.remove()),ac--})})}function nh(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function lc(e){return j(()=>ke(e)?!!er(e)?.closest("form"):!0)}function Re(){const e=vt(),t=V(),r=j(()=>n());hi(()=>{r.value!==n()&&Pu(t)});function n(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:er(t)}const s=Object.assign({},e.exposed),i={};for(const a in e.props)Object.defineProperty(i,a,{enumerable:!0,configurable:!0,get:()=>e.props[a]});if(Object.keys(s).length>0)for(const a in s)Object.defineProperty(i,a,{enumerable:!0,configurable:!0,get:()=>s[a]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function o(a){if(t.value=a,!!a&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>a instanceof Element?a:a.$el}),!(a instanceof Element)&&!Object.prototype.hasOwnProperty.call(a,"$el"))){const l=a.$.exposed,u=Object.assign({},i);for(const c in l)Object.defineProperty(u,c,{enumerable:!0,configurable:!0,get:()=>l[c]});e.exposed=u}}return{forwardRef:o,currentRef:t,currentElement:r}}function dn(e){const t=vt(),r=Object.keys(t?.type.props??{}).reduce((s,i)=>{const o=(t?.type.props[i]).default;return o!==void 0&&(s[i]=o),s},{}),n=ja(e);return j(()=>{const s={},i=t?.vnode.props??{};return Object.keys(i).forEach(o=>{s[Ct(o)]=i[o]}),Object.keys({...r,...s}).reduce((o,a)=>(n.value[a]!==void 0&&(o[a]=n.value[a]),o),{})})}function Lr(e,t){const r=dn(e),n=t?ia(t):{};return j(()=>({...r.value,...n}))}function hb(e,t){const r=Jp(!1,300);Nn(()=>{r.value=!1});const n=V(null),s=$y();function i(){n.value=null,r.value=!1}function o(a,l){const u=a.currentTarget,c={x:a.clientX,y:a.clientY},d=vb(c,gb(c,u.getBoundingClientRect()),1),p=mb(l.getBoundingClientRect());n.value=yb([...d,...p]),r.value=!0}return lt(a=>{if(e.value&&t.value){const l=c=>o(c,t.value),u=c=>o(c,e.value);e.value.addEventListener("pointerleave",l),t.value.addEventListener("pointerleave",u),a(()=>{e.value?.removeEventListener("pointerleave",l),t.value?.removeEventListener("pointerleave",u)})}}),lt(a=>{if(n.value){const l=u=>{if(!n.value||!(u.target instanceof Element))return;const c=u.target,d={x:u.clientX,y:u.clientY},p=e.value?.contains(c)||t.value?.contains(c),h=!wb(d,n.value),m=!!c.closest("[data-grace-area-trigger]");p?i():(h||m)&&(i(),s.trigger())};e.value?.ownerDocument.addEventListener("pointermove",l),a(()=>e.value?.ownerDocument.removeEventListener("pointermove",l))}}),{isPointerInTransit:r,onPointerExit:s.on}}function gb(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function vb(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function mb(e){const{top:t,right:r,bottom:n,left:s}=e;return[{x:s,y:t},{x:r,y:t},{x:r,y:n},{x:s,y:n}]}function wb(e,t){const{x:r,y:n}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const a=t[i].x,l=t[i].y,u=t[o].x,c=t[o].y;l>n!=c>n&&r<(u-a)*(n-l)/(c-l)+a&&(s=!s)}return s}function yb(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),bb(t)}function bb(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const s=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var _b=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Bs=new WeakMap,oa=new WeakMap,aa={},cc=0,sh=function(e){return e&&(e.host||sh(e.parentNode))},Sb=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=sh(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Cb=function(e,t,r,n){var s=Sb(t,Array.isArray(e)?e:[e]);aa[r]||(aa[r]=new WeakMap);var i=aa[r],o=[],a=new Set,l=new Set(s),u=function(d){!d||a.has(d)||(a.add(d),u(d.parentNode))};s.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(a.has(p))c(p);else try{var h=p.getAttribute(n),m=h!==null&&h!=="false",y=(Bs.get(p)||0)+1,T=(i.get(p)||0)+1;Bs.set(p,y),i.set(p,T),o.push(p),y===1&&m&&oa.set(p,!0),T===1&&p.setAttribute(r,"true"),m||p.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",p,g)}})};return c(t),a.clear(),cc++,function(){o.forEach(function(d){var p=Bs.get(d)-1,h=i.get(d)-1;Bs.set(d,p),i.set(d,h),p||(oa.has(d)||d.removeAttribute(n),oa.delete(d)),h||d.removeAttribute(r)}),cc--,cc||(Bs=new WeakMap,Bs=new WeakMap,oa=new WeakMap,aa={})}},xb=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),s=t||_b(e);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live], script"))),Cb(n,s,r,"aria-hidden")):function(){return null}};function ih(e){let t;He(()=>er(e),r=>{r?t=xb(r):t&&t()}),jt(()=>{t&&t()})}var Tb=0;function Ls(e,t="reka"){if(e)return e;let r;return"useId"in N0?r=rd?.():r=ta({useId:void 0}).useId?.()??`${++Tb}`,t?`${t}-${r}`:r}function oh(e){const t=V(),r=j(()=>t.value?.width??0),n=j(()=>t.value?.height??0);return Qe(()=>{const s=er(e);if(s){t.value={width:s.offsetWidth,height:s.offsetHeight};const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,u;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;l=d.inlineSize,u=d.blockSize}else l=s.offsetWidth,u=s.offsetHeight;t.value={width:l,height:u}});return i.observe(s,{box:"border-box"}),()=>i.unobserve(s)}else t.value=void 0}),{width:r,height:n}}function uc(e,t){const r=V(e);function n(i){return t[r.value][i]??r.value}return{state:r,dispatch:i=>{r.value=n(i)}}}function ah(e){const t=Jp("",1e3);return{search:t,handleTypeaheadSearch:(s,i)=>{if(t.value=t.value+s,e)e(s);else{const o=ir(),a=i.map(d=>({...d,textValue:d.value?.textValue??d.ref.textContent?.trim()??""})),l=a.find(d=>d.ref===o),u=Ab(a.map(d=>d.textValue),t.value,l?.textValue),c=a.find(d=>d.textValue===u);return c&&c.ref.focus(),c?.ref}},resetTypeahead:()=>{t.value=""}}}function Eb(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Ab(e,t,r){const n=t.length>1&&Array.from(t).every(a=>a===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let i=Eb(e,Math.max(s,0));n.length===1&&(i=i.filter(a=>a!==r));const o=i.find(a=>a.toLowerCase().startsWith(n.toLowerCase()));return o!==r?o:void 0}function kb(e,t){const r=V({}),n=V("none"),s=V(e),i=e.value?"mounted":"unmounted";let o;const a=t.value?.ownerDocument.defaultView??Rr,{state:l,dispatch:u}=uc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),c=y=>{if(Bt){const T=new CustomEvent(y,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(T)}};He(e,async(y,T)=>{const g=T!==y;if(await At(),g){const b=n.value,w=la(t.value);y?(u("MOUNT"),c("enter"),w==="none"&&c("after-enter")):w==="none"||w==="undefined"||r.value?.display==="none"?(u("UNMOUNT"),c("leave"),c("after-leave")):T&&b!==w?(u("ANIMATION_OUT"),c("leave")):(u("UNMOUNT"),c("after-leave"))}},{immediate:!0});const d=y=>{const T=la(t.value),g=T.includes(CSS.escape(y.animationName)),b=l.value==="mounted"?"enter":"leave";if(y.target===t.value&&g&&(c(`after-${b}`),u("ANIMATION_END"),!s.value)){const w=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",o=a?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=w)})}y.target===t.value&&T==="none"&&u("ANIMATION_END")},p=y=>{y.target===t.value&&(n.value=la(t.value))},h=He(t,(y,T)=>{y?(r.value=getComputedStyle(y),y.addEventListener("animationstart",p),y.addEventListener("animationcancel",d),y.addEventListener("animationend",d)):(u("ANIMATION_END"),o!==void 0&&a?.clearTimeout(o),T?.removeEventListener("animationstart",p),T?.removeEventListener("animationcancel",d),T?.removeEventListener("animationend",d))},{immediate:!0}),m=He(l,()=>{const y=la(t.value);n.value=l.value==="mounted"?y:"none"});return jt(()=>{h(),m()}),{isPresent:j(()=>["mounted","unmountSuspended"].includes(l.value))}}function la(e){return e&&getComputedStyle(e).animationName||"none"}var qn=X({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:r}){const{present:n,forceMount:s}=Nt(e),i=V(),{isPresent:o}=kb(n,i);r({present:o});let a=t.default({present:o.value});a=Xl(a||[]);const l=vt();if(a&&a?.length>1){const u=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(c=>` - ${c}`).join(`
|
|
73
73
|
`)].join(`
|
|
74
|
-
`))}return()=>s.value||n.value||o.value?pr(t.default({present:o.value})[0],{ref:u=>{const c=Xt(u);return typeof c?.hasAttribute>"u"||(c?.hasAttribute("data-reka-popper-content-wrapper")?i.value=c.firstElementChild:i.value=c),c}}):null}}),cc=X({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:r}){return()=>{if(!r.default)return null;const n=Yl(r.default()),s=n.findIndex(l=>l.type!==gt);if(s===-1)return n;const i=n[s];delete i.props?.ref;const o=i.props?me(t,i.props):t,a=Tr({...i,props:{}},o);return n.length===1?a:(n[s]=a,n)}}}),Cb=["area","img","input"],We=X({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:r}){const n=e.asChild?"template":e.as;return typeof n=="string"&&Cb.includes(n)?()=>pr(n,t):n!=="template"?()=>pr(e.as,t,{default:r.default}):()=>pr(cc,t,{default:r.default})}});function uc(){const e=V();return{primitiveElement:e,currentElement:j(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Xt(e))}}var[qn,xb]=Dt("DialogRoot"),Tb=X({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const r=e,n=ls(r,"open",t,{defaultValue:r.defaultOpen,passive:r.open===void 0}),s=V(),i=V(),{modal:o}=Nt(r);return xb({open:n,modal:o,openModal:()=>{n.value=!0},onOpenChange:a=>{n.value=a},onOpenToggle:()=>{n.value=!n.value},contentId:"",titleId:"",descriptionId:"",triggerElement:s,contentElement:i}),(a,l)=>te(a.$slots,"default",{open:f(n),close:()=>n.value=!1})}}),Eb=X({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;ke();const r=qn();return(n,s)=>(I(),K(f(We),me(t,{type:n.as==="button"?"button":void 0,onClick:s[0]||(s[0]=i=>f(r).onOpenChange(!1))}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["type"]))}}),Ab="dismissableLayer.pointerDownOutside",kb="dismissableLayer.focusOutside";function ih(e,t){const r=t.closest("[data-dismissable-layer]"),n=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(r&&(n===r||s.indexOf(n)<s.indexOf(r)))}function Rb(e,t,r=!0){const n=t?.value?.ownerDocument??globalThis?.document,s=V(!1),i=V(()=>{});return at(o=>{if(!Bt||!Ae(r))return;const a=async u=>{const c=u.target;if(!(!t?.value||!c)){if(ih(t.value,c)){s.value=!1;return}if(u.target&&!s.value){let h=function(){Gl(Ab,e,p)};var d=h;const p={originalEvent:u};u.pointerType==="touch"?(n.removeEventListener("click",i.value),i.value=h,n.addEventListener("click",i.value,{once:!0})):h()}else n.removeEventListener("click",i.value);s.value=!1}},l=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);o(()=>{window.clearTimeout(l),n.removeEventListener("pointerdown",a),n.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>{Ae(r)&&(s.value=!0)}}}function Ib(e,t,r=!0){const n=t?.value?.ownerDocument??globalThis?.document,s=V(!1);return at(i=>{if(!Bt||!Ae(r))return;const o=async a=>{if(!t?.value)return;await At(),await At();const l=a.target;!t.value||!l||ih(t.value,l)||a.target&&!s.value&&Gl(kb,e,{originalEvent:a})};n.addEventListener("focusin",o),i(()=>n.removeEventListener("focusin",o))}),{onFocusCapture:()=>{Ae(r)&&(s.value=!0)},onBlurCapture:()=>{Ae(r)&&(s.value=!1)}}}var wr=Wr({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set}),dc=X({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const r=e,n=t,{forwardRef:s,currentElement:i}=ke(),o=j(()=>i.value?.ownerDocument??globalThis.document),a=j(()=>wr.layersRoot),l=j(()=>i.value?Array.from(a.value).indexOf(i.value):-1),u=j(()=>wr.layersWithOutsidePointerEventsDisabled.size>0),c=j(()=>{const h=Array.from(a.value),[g]=[...wr.layersWithOutsidePointerEventsDisabled].slice(-1),w=h.indexOf(g);return l.value>=w}),d=Rb(async h=>{const g=[...wr.branches].some(w=>w?.contains(h.target));!c.value||g||(n("pointerDownOutside",h),n("interactOutside",h),await At(),h.defaultPrevented||n("dismiss"))},i),p=Ib(h=>{[...wr.branches].some(g=>g?.contains(h.target))||(n("focusOutside",h),n("interactOutside",h),h.defaultPrevented||n("dismiss"))},i);return Jy("Escape",h=>{l.value===a.value.size-1&&(n("escapeKeyDown",h),h.defaultPrevented||n("dismiss"))}),at(h=>{i.value&&(r.disableOutsidePointerEvents&&(wr.layersWithOutsidePointerEventsDisabled.size===0&&(wr.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),wr.layersWithOutsidePointerEventsDisabled.add(i.value)),a.value.add(i.value),h(()=>{r.disableOutsidePointerEvents&&wr.layersWithOutsidePointerEventsDisabled.size===1&&!Jl(wr.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=wr.originalBodyPointerEvents)}))}),at(h=>{h(()=>{i.value&&(a.value.delete(i.value),wr.layersWithOutsidePointerEventsDisabled.delete(i.value))})}),(h,g)=>(I(),K(f(We),{ref:f(s),"as-child":h.asChild,as:h.as,"data-dismissable-layer":"",style:xt({pointerEvents:u.value?c.value?"auto":"none":void 0}),onFocusCapture:f(p).onFocusCapture,onBlurCapture:f(p).onBlurCapture,onPointerdownCapture:f(d).onPointerDownCapture},{default:k(()=>[te(h.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),$b=Ey(()=>V([]));function Pb(){const e=$b();return{add(t){const r=e.value[0];t!==r&&r?.pause(),e.value=oh(e.value,t),e.value.unshift(t)},remove(t){e.value=oh(e.value,t),e.value[0]?.resume()}}}function oh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}var fc="focusScope.autoFocusOnMount",pc="focusScope.autoFocusOnUnmount",ah={bubbles:!1,cancelable:!0};function Db(e,{select:t=!1}={}){const r=nr();for(const n of e)if(Bn(n,{select:t}),nr()!==r)return!0}function Ob(e){const t=lh(e);return[ch(t,e),ch(t.reverse(),e)]}function lh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ch(e,t){for(const r of e)if(!Hb(r,{upTo:t}))return r}function Hb(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Mb(e){return e instanceof HTMLInputElement&&"select"in e}function Bn(e,{select:t=!1}={}){if(e&&e.focus){const r=nr();e.focus({preventScroll:!0}),e!==r&&Mb(e)&&t&&e.select()}}var uh=X({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const r=e,n=t,{currentRef:s,currentElement:i}=ke(),o=V(null),a=Pb(),l=Wr({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});at(c=>{if(!Bt)return;const d=i.value;if(!r.trapped)return;function p(T){if(l.paused||!d)return;const v=T.target;d.contains(v)?o.value=v:Bn(o.value,{select:!0})}function h(T){if(l.paused||!d)return;const v=T.relatedTarget;v!==null&&(d.contains(v)||Bn(o.value,{select:!0}))}function g(T){d.contains(o.value)||Bn(d)}document.addEventListener("focusin",p),document.addEventListener("focusout",h);const w=new MutationObserver(g);d&&w.observe(d,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",h),w.disconnect()})}),at(async c=>{const d=i.value;if(await At(),!d)return;a.add(l);const p=nr();if(!d.contains(p)){const h=new CustomEvent(fc,ah);d.addEventListener(fc,g=>n("mountAutoFocus",g)),d.dispatchEvent(h),h.defaultPrevented||(Db(lh(d),{select:!0}),nr()===p&&Bn(d))}c(()=>{d.removeEventListener(fc,w=>n("mountAutoFocus",w));const h=new CustomEvent(pc,ah),g=w=>{n("unmountAutoFocus",w)};d.addEventListener(pc,g),d.dispatchEvent(h),setTimeout(()=>{h.defaultPrevented||Bn(p??document.body,{select:!0}),d.removeEventListener(pc,g),a.remove(l)},0)})});function u(c){if(!r.loop&&!r.trapped||l.paused)return;const d=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,p=nr();if(d&&p){const h=c.currentTarget,[g,w]=Ob(h);g&&w?!c.shiftKey&&p===w?(c.preventDefault(),r.loop&&Bn(g,{select:!0})):c.shiftKey&&p===g&&(c.preventDefault(),r.loop&&Bn(w,{select:!0})):p===h&&c.preventDefault()}}return(c,d)=>(I(),K(f(We),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:u},{default:k(()=>[te(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),dh=["Enter"," "],Nb=["ArrowDown","PageUp","Home"],qb=["ArrowUp","PageDown","End"],Gx=[...Nb,...qb],Jx={ltr:[...dh,"ArrowRight"],rtl:[...dh,"ArrowLeft"]};function Bb(e){return e?"open":"closed"}function fh(e){const t=nr();for(const r of e)if(r===t||(r.focus(),nr()!==t))return}var ph=X({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=qn(),{forwardRef:i,currentElement:o}=ke();return s.titleId||(s.titleId=qs(void 0,"reka-dialog-title")),s.descriptionId||(s.descriptionId=qs(void 0,"reka-dialog-description")),Qe(()=>{s.contentElement=o,nr()!==document.body&&(s.triggerElement.value=nr())}),(a,l)=>(I(),K(f(uh),{"as-child":"",loop:"",trapped:r.trapFocus,onMountAutoFocus:l[5]||(l[5]=u=>n("openAutoFocus",u)),onUnmountAutoFocus:l[6]||(l[6]=u=>n("closeAutoFocus",u))},{default:k(()=>[D(f(dc),me({id:f(s).contentId,ref:f(i),as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":f(s).descriptionId,"aria-labelledby":f(s).titleId,"data-state":f(Bb)(f(s).open.value)},a.$attrs,{onDismiss:l[0]||(l[0]=u=>f(s).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=u=>n("escapeKeyDown",u)),onFocusOutside:l[2]||(l[2]=u=>n("focusOutside",u)),onInteractOutside:l[3]||(l[3]=u=>n("interactOutside",u)),onPointerDownOutside:l[4]||(l[4]=u=>n("pointerDownOutside",u))}),{default:k(()=>[te(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Lb=X({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=qn(),i=Xo(n),{forwardRef:o,currentElement:a}=ke();return rh(a),(l,u)=>(I(),K(ph,me({...r,...f(i)},{ref:f(o),"trap-focus":f(s).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:u[0]||(u[0]=c=>{c.defaultPrevented||(c.preventDefault(),f(s).triggerElement.value?.focus())}),onPointerDownOutside:u[1]||(u[1]=c=>{const d=c.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0;(d.button===2||p)&&c.preventDefault()}),onFocusOutside:u[2]||(u[2]=c=>{c.preventDefault()})}),{default:k(()=>[te(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),Fb=X({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=Xo(t);ke();const s=qn(),i=V(!1),o=V(!1);return(a,l)=>(I(),K(ph,me({...r,...f(n)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:l[0]||(l[0]=u=>{u.defaultPrevented||(i.value||f(s).triggerElement.value?.focus(),u.preventDefault()),i.value=!1,o.value=!1}),onInteractOutside:l[1]||(l[1]=u=>{u.defaultPrevented||(i.value=!0,u.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const c=u.target;f(s).triggerElement.value?.contains(c)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.value&&u.preventDefault()})}),{default:k(()=>[te(a.$slots,"default")]),_:3},16))}}),Vb=X({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=qn(),i=Xo(n),{forwardRef:o}=ke();return(a,l)=>(I(),K(f(Nn),{present:a.forceMount||f(s).open.value},{default:k(()=>[f(s).modal.value?(I(),K(Lb,me({key:0,ref:f(o)},{...r,...f(i),...a.$attrs}),{default:k(()=>[te(a.$slots,"default")]),_:3},16)):(I(),K(Fb,me({key:1,ref:f(o)},{...r,...f(i),...a.$attrs}),{default:k(()=>[te(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),jb=X({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=qn();return Xp(!0),ke(),(r,n)=>(I(),K(f(We),{as:r.as,"as-child":r.asChild,"data-state":f(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:k(()=>[te(r.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Ub=X({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=qn(),{forwardRef:r}=ke();return(n,s)=>f(t)?.modal.value?(I(),K(f(Nn),{key:0,present:n.forceMount||f(t).open.value},{default:k(()=>[D(jb,me(n.$attrs,{ref:f(r),as:n.as,"as-child":n.asChild}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):Ne("v-if",!0)}}),hc=X({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=ec();return(r,n)=>f(t)||r.forceMount?(I(),K(Ua,{key:0,to:r.to,disabled:r.disabled,defer:r.defer},[te(r.$slots,"default")],8,["to","disabled","defer"])):Ne("v-if",!0)}}),zb=X({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>(I(),K(f(hc),cr(Qt(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),Kb=X({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,r=qn();return ke(),(n,s)=>(I(),K(f(We),me(t,{id:f(r).titleId}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["id"]))}}),hh="data-reka-collection-item";function un(e={}){const{key:t="",isProvider:r=!1}=e,n=`${t}CollectionProvider`;let s;r?(s={collectionRef:V(),itemMap:V(new Map)},Jn(n,s)):s=Vt(n);const i=(l=!1)=>{const u=s.collectionRef.value;if(!u)return[];const c=Array.from(u.querySelectorAll(`[${hh}]`)),d=Array.from(s.itemMap.value.values()).sort((p,h)=>c.indexOf(p.ref)-c.indexOf(h.ref));return l?d:d.filter(p=>p.ref.dataset.disabled!=="")},o=X({name:"CollectionSlot",inheritAttrs:!1,setup(l,{slots:u,attrs:c}){const{primitiveElement:d,currentElement:p}=uc();return De(p,()=>{s.collectionRef.value=p.value}),()=>pr(cc,{ref:d,...c},u)}}),a=X({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(l,{slots:u,attrs:c}){const{primitiveElement:d,currentElement:p}=uc();return at(h=>{if(p.value){const g=qa(p.value);s.itemMap.value.set(g,{ref:p.value,value:l.value}),h(()=>s.itemMap.value.delete(g))}}),()=>pr(cc,{...c,[hh]:"",ref:d},u)}});return{getItems:i,reactiveItems:j(()=>Array.from(s.itemMap.value.values())),itemMapSize:j(()=>s.itemMap.value.size),CollectionSlot:o,CollectionItem:a}}var gc=X({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,r)=>(I(),K(f(We),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:k(()=>[te(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),gh=X({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:r,currentElement:n}=uc();return De(j(()=>t.checked??t.value),(s,i)=>{if(!n.value)return;const o=n.value,a=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(l&&s!==i){const u=new Event("input",{bubbles:!0}),c=new Event("change",{bubbles:!0});l.call(o,s),o.dispatchEvent(u),o.dispatchEvent(c)}}),(s,i)=>(I(),K(gc,me({ref_key:"primitiveElement",ref:r},{...t,...s.$attrs},{as:"input"}),null,16))}}),vh=X({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,r=j(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),n=j(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((s,i)=>typeof s=="object"?Object.entries(s).map(([o,a])=>({name:`${t.name}[${i}][${o}]`,value:a})):{name:`${t.name}[${i}]`,value:s}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([s,i])=>({name:`${t.name}[${s}]`,value:i})):[]);return(s,i)=>(I(),Se(Ke,null,[Ne(" We render single input if it's required "),r.value?(I(),K(gh,me({key:s.name},{...t,...s.$attrs},{name:s.name,value:s.value}),null,16,["name","value"])):(I(!0),Se(Ke,{key:1},fr(n.value,o=>(I(),K(gh,me({key:o.name},{ref_for:!0},{...t,...s.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))],2112))}}),[mh,Wb]=Dt("PopperRoot"),wh=X({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=V();return Wb({anchor:t,onAnchorChange:r=>t.value=r}),(r,n)=>te(r.$slots,"default")}}),yh=X({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:r,currentElement:n}=ke(),s=mh();return Va(()=>{s.onAnchorChange(t.reference??n.value)}),(i,o)=>(I(),K(f(We),{ref:f(r),as:i.as,"as-child":i.asChild},{default:k(()=>[te(i.$slots,"default")]),_:3},8,["as","as-child"]))}}),Gb={key:0,d:"M0 0L6 6L12 0"},Jb={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"},Yb=X({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return ke(),(r,n)=>(I(),K(f(We),me(t,{width:r.width,height:r.height,viewBox:r.asChild?void 0:"0 0 12 6",preserveAspectRatio:r.asChild?void 0:"none"}),{default:k(()=>[te(r.$slots,"default",{},()=>[r.rounded?(I(),Se("path",Jb)):(I(),Se("path",Gb))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}});function Zb(e){return e!==null}function Xb(e){return{name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:s}=t,i=s.arrow?.centerOffset!==0,o=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[l,u]=vc(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(s.arrow?.x??0)+o/2,p=(s.arrow?.y??0)+a/2;let h="",g="";return l==="bottom"?(h=i?c:`${d}px`,g=`${-a}px`):l==="top"?(h=i?c:`${d}px`,g=`${n.floating.height+a}px`):l==="right"?(h=`${-a}px`,g=i?c:`${p}px`):l==="left"&&(h=`${n.floating.width+a}px`,g=i?c:`${p}px`),{data:{x:h,y:g}}}}}function vc(e){const[t,r="center"]=e.split("-");return[t,r]}var Qb=["top","right","bottom","left"],Ln=Math.min,sr=Math.max,ra=Math.round,na=Math.floor,Br=e=>({x:e,y:e}),e1={left:"right",right:"left",bottom:"top",top:"bottom"};function mc(e,t,r){return sr(e,Ln(t,r))}function dn(e,t){return typeof e=="function"?e(t):e}function fn(e){return e.split("-")[0]}function Bs(e){return e.split("-")[1]}function wc(e){return e==="x"?"y":"x"}function yc(e){return e==="y"?"height":"width"}function Lr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function bc(e){return wc(Lr(e))}function t1(e,t,r){r===void 0&&(r=!1);const n=Bs(e),s=bc(e),i=yc(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=sa(o)),[o,sa(o)]}function r1(e){const t=sa(e);return[_c(e),t,_c(t)]}function _c(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var bh=["left","right"],_h=["right","left"],n1=["top","bottom"],s1=["bottom","top"];function i1(e,t,r){switch(e){case"top":case"bottom":return r?t?_h:bh:t?bh:_h;case"left":case"right":return t?n1:s1;default:return[]}}function o1(e,t,r,n){const s=Bs(e);let i=i1(fn(e),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(_c)))),i}function sa(e){const t=fn(e);return e1[t]+e.slice(t.length)}function a1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sh(e){return typeof e!="number"?a1(e):{top:e,right:e,bottom:e,left:e}}function ia(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function Ch(e,t,r){let{reference:n,floating:s}=e;const i=Lr(t),o=bc(t),a=yc(o),l=fn(t),u=i==="y",c=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2;let h;switch(l){case"top":h={x:c,y:n.y-s.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-s.width,y:d};break;default:h={x:n.x,y:n.y}}switch(Bs(t)){case"start":h[o]-=p*(r&&u?-1:1);break;case"end":h[o]+=p*(r&&u?-1:1);break}return h}async function l1(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=dn(t,e),g=Sh(h),w=a[p?d==="floating"?"reference":"floating":d],T=ia(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(w)))==null||r?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),y=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},_=ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:S,strategy:l}):v);return{top:(T.top-_.top+g.top)/y.y,bottom:(_.bottom-T.bottom+g.bottom)/y.y,left:(T.left-_.left+g.left)/y.x,right:(_.right-T.right+g.right)/y.x}}var c1=50,u1=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:l1},l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:d}=Ch(u,n,l),p=n,h=0;const g={};for(let w=0;w<i.length;w++){const T=i[w];if(!T)continue;const{name:v,fn:S}=T,{x:y,y:_,data:E,reset:$}=await S({x:c,y:d,initialPlacement:n,placement:p,strategy:s,middlewareData:g,rects:u,platform:a,elements:{reference:e,floating:t}});c=y??c,d=_??d,g[v]={...g[v],...E},$&&h<c1&&(h++,typeof $=="object"&&($.placement&&(p=$.placement),$.rects&&(u=$.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):$.rects),{x:c,y:d}=Ch(u,p,l)),w=-1)}return{x:c,y:d,placement:p,strategy:s,middlewareData:g}},d1=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=dn(e,t)||{};if(u==null)return{};const d=Sh(c),p={x:r,y:n},h=bc(s),g=yc(h),w=await o.getDimensions(u),T=h==="y",v=T?"top":"left",S=T?"bottom":"right",y=T?"clientHeight":"clientWidth",_=i.reference[g]+i.reference[h]-p[h]-i.floating[g],E=p[h]-i.reference[h],$=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let B=$?$[y]:0;(!B||!await(o.isElement==null?void 0:o.isElement($)))&&(B=a.floating[y]||i.floating[g]);const m=_/2-E/2,N=B/2-w[g]/2-1,q=Ln(d[v],N),C=Ln(d[S],N),b=q,x=B-w[g]-C,O=B/2-w[g]/2+m,R=mc(b,O,x),M=!l.arrow&&Bs(s)!=null&&O!==R&&i.reference[g]/2-(O<b?q:C)-w[g]/2<0,z=M?O<b?O-b:O-x:0;return{[h]:p[h]+z,data:{[h]:R,centerOffset:O-R-z,...M&&{alignmentOffset:z}},reset:M}}}),f1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...T}=dn(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=fn(s),S=Lr(a),y=fn(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=p||(y||!w?[sa(a)]:r1(a)),$=g!=="none";!p&&$&&E.push(...o1(a,w,g,_));const B=[a,...E],m=await l.detectOverflow(t,T),N=[];let q=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&N.push(m[v]),d){const O=t1(s,o,_);N.push(m[O[0]],m[O[1]])}if(q=[...q,{placement:s,overflows:N}],!N.every(O=>O<=0)){var C,b;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,R=B[O];if(R&&(!(d==="alignment"&&S!==Lr(R))||q.every(z=>Lr(z.placement)===S?z.overflows[0]>0:!0)))return{data:{index:O,overflows:q},reset:{placement:R}};let M=(b=q.filter(z=>z.overflows[0]<=0).sort((z,G)=>z.overflows[1]-G.overflows[1])[0])==null?void 0:b.placement;if(!M)switch(h){case"bestFit":{var x;const z=(x=q.filter(G=>{if($){const oe=Lr(G.placement);return oe===S||oe==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(oe=>oe>0).reduce((oe,Y)=>oe+Y,0)]).sort((G,oe)=>G[1]-oe[1])[0])==null?void 0:x[0];z&&(M=z);break}case"initialPlacement":M=a;break}if(s!==M)return{reset:{placement:M}}}return{}}}};function xh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Th(e){return Qb.some(t=>e[t]>=0)}var p1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:s="referenceHidden",...i}=dn(e,t);switch(s){case"referenceHidden":{const o=xh(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Th(o)}}}case"escaped":{const o=xh(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:o,escaped:Th(o)}}}default:return{}}}}},Eh=new Set(["left","top"]);async function h1(e,t){const{placement:r,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=fn(r),a=Bs(r),l=Lr(r)==="y",u=Eh.has(o)?-1:1,c=i&&l?-1:1,d=dn(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*c,y:p*u}:{x:p*u,y:h*c}}var g1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await h1(t,e);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},v1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:S,y}=v;return{x:S,y}}},...u}=dn(e,t),c={x:r,y:n},d=await i.detectOverflow(t,u),p=Lr(fn(s)),h=wc(p);let g=c[h],w=c[p];if(o){const v=h==="y"?"top":"left",S=h==="y"?"bottom":"right",y=g+d[v],_=g-d[S];g=mc(y,g,_)}if(a){const v=p==="y"?"top":"left",S=p==="y"?"bottom":"right",y=w+d[v],_=w-d[S];w=mc(y,w,_)}const T=l.fn({...t,[h]:g,[p]:w});return{...T,data:{x:T.x-r,y:T.y-n,enabled:{[h]:o,[p]:a}}}}}},m1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=dn(e,t),c={x:r,y:n},d=Lr(s),p=wc(d);let h=c[p],g=c[d];const w=dn(a,t),T=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(l){const y=p==="y"?"height":"width",_=i.reference[p]-i.floating[y]+T.mainAxis,E=i.reference[p]+i.reference[y]-T.mainAxis;h<_?h=_:h>E&&(h=E)}if(u){var v,S;const y=p==="y"?"width":"height",_=Eh.has(fn(s)),E=i.reference[d]-i.floating[y]+(_&&((v=o.offset)==null?void 0:v[d])||0)+(_?0:T.crossAxis),$=i.reference[d]+i.reference[y]+(_?0:((S=o.offset)==null?void 0:S[d])||0)-(_?T.crossAxis:0);g<E?g=E:g>$&&(g=$)}return{[p]:h,[d]:g}}}},w1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...u}=dn(e,t),c=await o.detectOverflow(t,u),d=fn(s),p=Bs(s),h=Lr(s)==="y",{width:g,height:w}=i.floating;let T,v;d==="top"||d==="bottom"?(T=d,v=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,T=p==="end"?"top":"bottom");const S=w-c.top-c.bottom,y=g-c.left-c.right,_=Ln(w-c[T],S),E=Ln(g-c[v],y),$=!t.middlewareData.shift;let B=_,m=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(m=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(B=S),$&&!p){const q=sr(c.left,0),C=sr(c.right,0),b=sr(c.top,0),x=sr(c.bottom,0);h?m=g-2*(q!==0||C!==0?q+C:sr(c.left,c.right)):B=w-2*(b!==0||x!==0?b+x:sr(c.top,c.bottom))}await l({...t,availableWidth:m,availableHeight:B});const N=await o.getDimensions(a.floating);return g!==N.width||w!==N.height?{reset:{rects:!0}}:{}}}};function oa(){return typeof window<"u"}function cs(e){return Sc(e)?(e.nodeName||"").toLowerCase():"#document"}function ir(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fr(e){var t;return(t=(Sc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Sc(e){return oa()?e instanceof Node||e instanceof ir(e).Node:!1}function Rr(e){return oa()?e instanceof Element||e instanceof ir(e).Element:!1}function pn(e){return oa()?e instanceof HTMLElement||e instanceof ir(e).HTMLElement:!1}function Ah(e){return!oa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ir(e).ShadowRoot}function $i(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=Ir(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&s!=="inline"&&s!=="contents"}function y1(e){return/^(table|td|th)$/.test(cs(e))}function aa(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var b1=/transform|translate|scale|rotate|perspective|filter/,_1=/paint|layout|strict|content/,us=e=>!!e&&e!=="none",Cc;function xc(e){const t=Rr(e)?Ir(e):e;return us(t.transform)||us(t.translate)||us(t.scale)||us(t.rotate)||us(t.perspective)||!Tc()&&(us(t.backdropFilter)||us(t.filter))||b1.test(t.willChange||"")||_1.test(t.contain||"")}function S1(e){let t=Fn(e);for(;pn(t)&&!Ls(t);){if(xc(t))return t;if(aa(t))return null;t=Fn(t)}return null}function Tc(){return Cc==null&&(Cc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cc}function Ls(e){return/^(html|body|#document)$/.test(cs(e))}function Ir(e){return ir(e).getComputedStyle(e)}function la(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fn(e){if(cs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ah(e)&&e.host||Fr(e);return Ah(t)?t.host:t}function kh(e){const t=Fn(e);return Ls(t)?e.ownerDocument?e.ownerDocument.body:e.body:pn(t)&&$i(t)?t:kh(t)}function Pi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=kh(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=ir(s);if(i){const a=Ec(o);return t.concat(o,o.visualViewport||[],$i(s)?s:[],a&&r?Pi(a):[])}else return t.concat(s,Pi(s,[],r))}function Ec(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rh(e){const t=Ir(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=pn(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=ra(r)!==i||ra(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function Ac(e){return Rr(e)?e:e.contextElement}function Fs(e){const t=Ac(e);if(!pn(t))return Br(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:i}=Rh(t);let o=(i?ra(r.width):r.width)/n,a=(i?ra(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var C1=Br(0);function Ih(e){const t=ir(e);return!Tc()||!t.visualViewport?C1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function x1(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ir(e)?!1:t}function ds(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=Ac(e);let o=Br(1);t&&(n?Rr(n)&&(o=Fs(n)):o=Fs(e));const a=x1(i,r,n)?Ih(i):Br(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,d=s.height/o.y;if(i){const p=ir(i),h=n&&Rr(n)?ir(n):n;let g=p,w=Ec(g);for(;w&&n&&h!==g;){const T=Fs(w),v=w.getBoundingClientRect(),S=Ir(w),y=v.left+(w.clientLeft+parseFloat(S.paddingLeft))*T.x,_=v.top+(w.clientTop+parseFloat(S.paddingTop))*T.y;l*=T.x,u*=T.y,c*=T.x,d*=T.y,l+=y,u+=_,g=ir(w),w=Ec(g)}}return ia({width:c,height:d,x:l,y:u})}function ca(e,t){const r=la(e).scrollLeft;return t?t.left+r:ds(Fr(e)).left+r}function $h(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ca(e,r),y:r.top+t.scrollTop}}function T1(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const i=s==="fixed",o=Fr(n),a=t?aa(t.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},u=Br(1);const c=Br(0),d=pn(n);if((d||!d&&!i)&&((cs(n)!=="body"||$i(o))&&(l=la(n)),d)){const h=ds(n);u=Fs(n),c.x=h.x+n.clientLeft,c.y=h.y+n.clientTop}const p=o&&!d&&!i?$h(o,l):Br(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+p.x,y:r.y*u.y-l.scrollTop*u.y+c.y+p.y}}function E1(e){return Array.from(e.getClientRects())}function A1(e){const t=Fr(e),r=la(e),n=e.ownerDocument.body,s=sr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=sr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+ca(e);const a=-r.scrollTop;return Ir(n).direction==="rtl"&&(o+=sr(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}var Ph=25;function k1(e,t){const r=ir(e),n=Fr(e),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=Tc();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}const u=ca(n);if(u<=0){const c=n.ownerDocument,d=c.body,p=getComputedStyle(d),h=c.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(n.clientWidth-d.clientWidth-h);g<=Ph&&(i-=g)}else u<=Ph&&(i+=u);return{width:i,height:o,x:a,y:l}}function R1(e,t){const r=ds(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=pn(e)?Fs(e):Br(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:s*i.x,y:n*i.y}}function Dh(e,t,r){let n;if(t==="viewport")n=k1(e,r);else if(t==="document")n=A1(Fr(e));else if(Rr(t))n=R1(t,r);else{const s=Ih(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return ia(n)}function Oh(e,t){const r=Fn(e);return r===t||!Rr(r)||Ls(r)?!1:Ir(r).position==="fixed"||Oh(r,t)}function I1(e,t){const r=t.get(e);if(r)return r;let n=Pi(e,[],!1).filter(a=>Rr(a)&&cs(a)!=="body"),s=null;const i=Ir(e).position==="fixed";let o=i?Fn(e):e;for(;Rr(o)&&!Ls(o);){const a=Ir(o),l=xc(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&s&&(s.position==="absolute"||s.position==="fixed")||$i(o)&&!l&&Oh(e,o))?n=n.filter(u=>u!==o):s=a,o=Fn(o)}return t.set(e,n),n}function $1(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?aa(t)?[]:I1(t,this._c):[].concat(r),n],o=Dh(t,i[0],s);let a=o.top,l=o.right,u=o.bottom,c=o.left;for(let d=1;d<i.length;d++){const p=Dh(t,i[d],s);a=sr(p.top,a),l=Ln(p.right,l),u=Ln(p.bottom,u),c=sr(p.left,c)}return{width:l-c,height:u-a,x:c,y:a}}function P1(e){const{width:t,height:r}=Rh(e);return{width:t,height:r}}function D1(e,t,r){const n=pn(t),s=Fr(t),i=r==="fixed",o=ds(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Br(0);function u(){l.x=ca(s)}if(n||!n&&!i)if((cs(t)!=="body"||$i(s))&&(a=la(t)),n){const d=ds(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else s&&u();i&&!n&&s&&u();const c=s&&!n&&!i?$h(s,a):Br(0);return{x:o.left+a.scrollLeft-l.x-c.x,y:o.top+a.scrollTop-l.y-c.y,width:o.width,height:o.height}}function kc(e){return Ir(e).position==="static"}function Hh(e,t){if(!pn(e)||Ir(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Fr(e)===r&&(r=r.ownerDocument.body),r}function Mh(e,t){const r=ir(e);if(aa(e))return r;if(!pn(e)){let s=Fn(e);for(;s&&!Ls(s);){if(Rr(s)&&!kc(s))return s;s=Fn(s)}return r}let n=Hh(e,t);for(;n&&y1(n)&&kc(n);)n=Hh(n,t);return n&&Ls(n)&&kc(n)&&!xc(n)?r:n||S1(e)||r}var O1=async function(e){const t=this.getOffsetParent||Mh,r=this.getDimensions,n=await r(e.floating);return{reference:D1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function H1(e){return Ir(e).direction==="rtl"}var M1={convertOffsetParentRelativeRectToViewportRelativeRect:T1,getDocumentElement:Fr,getClippingRect:$1,getOffsetParent:Mh,getElementRects:O1,getClientRects:E1,getDimensions:P1,getScale:Fs,isElement:Rr,isRTL:H1};function Nh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function N1(e,t){let r=null,n;const s=Fr(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:h}=u;if(a||t(),!p||!h)return;const g=na(d),w=na(s.clientWidth-(c+p)),T=na(s.clientHeight-(d+h)),v=na(c),S={rootMargin:-g+"px "+-w+"px "+-T+"px "+-v+"px",threshold:sr(0,Ln(1,l))||1};let y=!0;function _(E){const $=E[0].intersectionRatio;if($!==l){if(!y)return o();$?o(!1,$):n=setTimeout(()=>{o(!1,1e-7)},1e3)}$===1&&!Nh(u,e.getBoundingClientRect())&&o(),y=!1}try{r=new IntersectionObserver(_,{...S,root:s.ownerDocument})}catch{r=new IntersectionObserver(_,S)}r.observe(e)}return o(!0),i}function q1(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Ac(e),c=s||i?[...u?Pi(u):[],...t?Pi(t):[]]:[];c.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const d=u&&a?N1(u,r):null;let p=-1,h=null;o&&(h=new ResizeObserver(v=>{let[S]=v;S&&S.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),r()}),u&&!l&&h.observe(u),t&&h.observe(t));let g,w=l?ds(e):null;l&&T();function T(){const v=ds(e);w&&!Nh(w,v)&&r(),w=v,g=requestAnimationFrame(T)}return r(),()=>{var v;c.forEach(S=>{s&&S.removeEventListener("scroll",r),i&&S.removeEventListener("resize",r)}),d?.(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(g)}}var B1=g1,L1=v1,qh=f1,F1=w1,V1=p1,j1=d1,U1=m1,z1=(e,t,r)=>{const n=new Map,s={platform:M1,...r},i={...s.platform,_c:n};return u1(e,t,{...s,platform:i})};function K1(e){return e!=null&&typeof e=="object"&&"$el"in e}function Rc(e){if(K1(e)){const t=e.$el;return Sc(t)&&cs(t)==="#comment"?null:t}return e}function Vs(e){return typeof e=="function"?e():f(e)}function W1(e){return{name:"arrow",options:e,fn(t){const r=Rc(Vs(e.element));return r==null?{}:j1({element:r,padding:e.padding}).fn(t)}}}function Bh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lh(e,t){const r=Bh(e);return Math.round(t*r)/r}function G1(e,t,r){r===void 0&&(r={});const n=r.whileElementsMounted,s=j(()=>{var B;return(B=Vs(r.open))!=null?B:!0}),i=j(()=>Vs(r.middleware)),o=j(()=>{var B;return(B=Vs(r.placement))!=null?B:"bottom"}),a=j(()=>{var B;return(B=Vs(r.strategy))!=null?B:"absolute"}),l=j(()=>{var B;return(B=Vs(r.transform))!=null?B:!0}),u=j(()=>Rc(e.value)),c=j(()=>Rc(t.value)),d=V(0),p=V(0),h=V(a.value),g=V(o.value),w=ft({}),T=V(!1),v=j(()=>{const B={position:h.value,left:"0",top:"0"};if(!c.value)return B;const m=Lh(c.value,d.value),N=Lh(c.value,p.value);return l.value?{...B,transform:"translate("+m+"px, "+N+"px)",...Bh(c.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:m+"px",top:N+"px"}});let S;function y(){if(u.value==null||c.value==null)return;const B=s.value;z1(u.value,c.value,{middleware:i.value,placement:o.value,strategy:a.value}).then(m=>{d.value=m.x,p.value=m.y,h.value=m.strategy,g.value=m.placement,w.value=m.middlewareData,T.value=B!==!1})}function _(){typeof S=="function"&&(S(),S=void 0)}function E(){if(_(),n===void 0){y();return}if(u.value!=null&&c.value!=null){S=n(u.value,c.value,y);return}}function $(){s.value||(T.value=!1)}return De([i,o,a,s],y,{flush:"sync"}),De([u,c],E,{flush:"sync"}),De(s,$,{flush:"sync"}),Ki()&&ka(_),{x:Gr(d),y:Gr(p),strategy:Gr(h),placement:Gr(g),middlewareData:Gr(w),isPositioned:Gr(T),floatingStyles:v,update:y}}var J1={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[Y1,Z1]=Dt("PopperContent"),Fh=X({inheritAttrs:!1,__name:"PopperContent",props:vd({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...J1}),emits:["placed"],setup(e,{emit:t}){const r=e,n=t,s=mh(),{forwardRef:i,currentElement:o}=ke(),a=V(),l=V(),{width:u,height:c}=nh(l),d=j(()=>r.side+(r.align!=="center"?`-${r.align}`:"")),p=j(()=>typeof r.collisionPadding=="number"?r.collisionPadding:{top:0,right:0,bottom:0,left:0,...r.collisionPadding}),h=j(()=>Array.isArray(r.collisionBoundary)?r.collisionBoundary:[r.collisionBoundary]),g=j(()=>({padding:p.value,boundary:h.value.filter(Zb),altBoundary:h.value.length>0})),w=j(()=>({mainAxis:r.sideFlip,crossAxis:r.alignFlip})),T=xy(()=>[B1({mainAxis:r.sideOffset+c.value,alignmentAxis:r.alignOffset}),r.prioritizePosition&&r.avoidCollisions&&qh({...g.value,...w.value}),r.avoidCollisions&&L1({mainAxis:!0,crossAxis:!!r.prioritizePosition,limiter:r.sticky==="partial"?U1():void 0,...g.value}),!r.prioritizePosition&&r.avoidCollisions&&qh({...g.value,...w.value}),F1({...g.value,apply:({elements:q,rects:C,availableWidth:b,availableHeight:x})=>{const{width:O,height:R}=C.reference,M=q.floating.style;M.setProperty("--reka-popper-available-width",`${b}px`),M.setProperty("--reka-popper-available-height",`${x}px`),M.setProperty("--reka-popper-anchor-width",`${O}px`),M.setProperty("--reka-popper-anchor-height",`${R}px`)}}),l.value&&W1({element:l.value,padding:r.arrowPadding}),Xb({arrowWidth:u.value,arrowHeight:c.value}),r.hideWhenDetached&&V1({strategy:"referenceHidden",...g.value})]),{floatingStyles:v,placement:S,isPositioned:y,middlewareData:_,update:E}=G1(j(()=>r.reference??s.anchor.value),a,{strategy:r.positionStrategy,placement:d,whileElementsMounted:(...q)=>q1(...q,{layoutShift:!r.disableUpdateOnLayoutShift,animationFrame:r.updatePositionStrategy==="always"}),middleware:T}),$=j(()=>vc(S.value)[0]),B=j(()=>vc(S.value)[1]);Va(()=>{y.value&&n("placed")});const m=j(()=>{const q=_.value.arrow?.centerOffset!==0;return r.hideShiftedArrow&&q}),N=V("");return at(()=>{o.value&&(N.value=window.getComputedStyle(o.value).zIndex)}),Z1({placedSide:$,onArrowChange:q=>l.value=q,arrowX:j(()=>_.value.arrow?.x??0),arrowY:j(()=>_.value.arrow?.y??0),shouldHideArrow:m}),(q,C)=>(I(),Se("div",{ref_key:"floatingRef",ref:a,"data-reka-popper-content-wrapper":"",style:xt({...f(v),transform:f(y)?f(v).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:N.value,"--reka-popper-transform-origin":[f(_).transformOrigin?.x,f(_).transformOrigin?.y].join(" "),...f(_).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[D(f(We),me({ref:f(i)},q.$attrs,{"as-child":r.asChild,as:q.as,"data-side":$.value,"data-align":B.value,style:{animation:f(y)?void 0:"none"}}),{default:k(()=>[te(q.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),X1={top:"bottom",right:"left",bottom:"top",left:"right"},Q1=X({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=ke(),r=Y1(),n=j(()=>X1[r.placedSide.value]);return(s,i)=>(I(),Se("span",{ref:o=>{f(r).onArrowChange(o)},style:xt({position:"absolute",left:f(r).arrowX?.value?`${f(r).arrowX?.value}px`:void 0,top:f(r).arrowY?.value?`${f(r).arrowY?.value}px`:void 0,[n.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f(r).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f(r).placedSide.value],visibility:f(r).shouldHideArrow.value?"hidden":void 0})},[D(Yb,me(s.$attrs,{ref:f(t),style:{display:"block"},as:s.as,"as-child":s.asChild,rounded:s.rounded,width:s.width,height:s.height}),{default:k(()=>[te(s.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}});function Vh(e){const t=Go({nonce:V()});return j(()=>e?.value||t.nonce?.value)}function e2(e=[],t,r){const n=[...e];return n[r]=t,n.sort((s,i)=>s-i)}function jh(e,t,r){return Ii(100/(r-t)*(e-t),0,100)}function t2(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function r2(e,t){if(e.length===1)return 0;const r=e.map(s=>Math.abs(s-t)),n=Math.min(...r);return r.indexOf(n)}function n2(e,t,r){const n=e/2;return(n-Ic([0,50],[0,n])(t)*r)*r}function s2(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function i2(e,t){if(t>0){const r=s2(e);return Math.min(...r)>=t}return!0}function Ic(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function o2(e){return(String(e).split(".")[1]||"").length}function a2(e,t){const r=10**t;return Math.round(e*r)/r}var Uh=["PageUp","PageDown"],zh=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Kh={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageUp","ArrowUp","ArrowLeft"]},[Wh,Gh]=Dt(["SliderVertical","SliderHorizontal"]),l2=X({__name:"SliderHorizontal",props:{dir:{type:String,required:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,{max:s,min:i,dir:o,inverted:a}=Nt(r),{forwardRef:l,currentElement:u}=ke(),c=js(),d=V(),p=V(),h=j(()=>o?.value!=="rtl"&&!a.value||o?.value!=="ltr"&&a.value);function g(w,T){const v=p.value||u.value.getBoundingClientRect(),S=[...c.thumbElements.value][c.valueIndexToChangeRef.value],y=c.thumbAlignment.value==="contain"?S.clientWidth:0;!d.value&&!T&&c.thumbAlignment.value==="contain"&&(d.value=w.clientX-S.getBoundingClientRect().left);const _=Ic([0,v.width-y],h.value?[i.value,s.value]:[s.value,i.value]);return p.value=v,_(T?w.clientX-v.left-y/2:w.clientX-v.left-(d.value??0))}return Gh({startEdge:j(()=>h.value?"left":"right"),endEdge:j(()=>h.value?"right":"left"),direction:j(()=>h.value?1:-1),size:"width"}),(w,T)=>(I(),K(Jh,{ref:f(l),dir:f(o),"data-orientation":"horizontal",style:xt({"--reka-slider-thumb-transform":!h.value&&f(c).thumbAlignment.value==="overflow"?"translateX(50%)":"translateX(-50%)"}),onSlideStart:T[0]||(T[0]=v=>{n("slideStart",g(v,!0))}),onSlideMove:T[1]||(T[1]=v=>{n("slideMove",g(v))}),onSlideEnd:T[2]||(T[2]=()=>{p.value=void 0,d.value=void 0,n("slideEnd")}),onStepKeyDown:T[3]||(T[3]=v=>{const S=h.value?"from-left":"from-right";n("stepKeyDown",v,f(Kh)[S].includes(v.key)?-1:1)}),onEndKeyDown:T[4]||(T[4]=v=>n("endKeyDown",v)),onHomeKeyDown:T[5]||(T[5]=v=>n("homeKeyDown",v))},{default:k(()=>[te(w.$slots,"default")]),_:3},8,["dir","style"]))}}),c2=X({__name:"SliderVertical",props:{min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,{max:s,min:i,inverted:o}=Nt(r),a=js(),{forwardRef:l,currentElement:u}=ke(),c=V(),d=V(),p=j(()=>!o.value);function h(g,w){const T=d.value||u.value.getBoundingClientRect(),v=[...a.thumbElements.value][a.valueIndexToChangeRef.value],S=a.thumbAlignment.value==="contain"?v.clientHeight:0;!c.value&&!w&&a.thumbAlignment.value==="contain"&&(c.value=g.clientY-v.getBoundingClientRect().top);const y=Ic([0,T.height-S],p.value?[s.value,i.value]:[i.value,s.value]),_=w?g.clientY-T.top-S/2:g.clientY-T.top-(c.value??0);return d.value=T,y(_)}return Gh({startEdge:j(()=>p.value?"bottom":"top"),endEdge:j(()=>p.value?"top":"bottom"),direction:j(()=>p.value?1:-1),size:"height"}),(g,w)=>(I(),K(Jh,{ref:f(l),"data-orientation":"vertical",style:xt({"--reka-slider-thumb-transform":!p.value&&f(a).thumbAlignment.value==="overflow"?"translateY(-50%)":"translateY(50%)"}),onSlideStart:w[0]||(w[0]=T=>{n("slideStart",h(T,!0))}),onSlideMove:w[1]||(w[1]=T=>{n("slideMove",h(T))}),onSlideEnd:w[2]||(w[2]=()=>{d.value=void 0,c.value=void 0,n("slideEnd")}),onStepKeyDown:w[3]||(w[3]=T=>{const v=p.value?"from-bottom":"from-top";n("stepKeyDown",T,f(Kh)[v].includes(T.key)?-1:1)}),onEndKeyDown:w[4]||(w[4]=T=>n("endKeyDown",T)),onHomeKeyDown:w[5]||(w[5]=T=>n("homeKeyDown",T))},{default:k(()=>[te(g.$slots,"default")]),_:3},8,["style"]))}}),[js,u2]=Dt("SliderRoot"),d2=X({inheritAttrs:!1,__name:"SliderRoot",props:{defaultValue:{type:Array,required:!1,default:()=>[0]},modelValue:{type:[Array,null],required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},inverted:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},minStepsBetweenThumbs:{type:Number,required:!1,default:0},thumbAlignment:{type:String,required:!1,default:"contain"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const r=e,n=t,{min:s,max:i,step:o,minStepsBetweenThumbs:a,orientation:l,disabled:u,thumbAlignment:c,dir:d}=Nt(r),p=sc(d),{forwardRef:h,currentElement:g}=ke(),w=oc(g),{CollectionSlot:T}=un({isProvider:!0}),v=ls(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0}),S=j(()=>Array.isArray(v.value)?[...v.value]:[]),y=V(0),_=V(S.value);function E(q){m(q,r2(S.value,q))}function $(q){m(q,y.value)}function B(){const q=_.value[y.value];S.value[y.value]!==q&&n("valueCommit",ze(S.value))}function m(q,C,{commit:b}={commit:!1}){const x=o2(o.value),O=Ii(a2(Math.round((q-s.value)/o.value)*o.value+s.value,x),s.value,i.value),R=e2(S.value,O,C);if(i2(R,a.value*o.value)){y.value=R.indexOf(O);const M=String(R)!==String(v.value);M&&b&&n("valueCommit",R),M&&(N.value[y.value]?.focus(),v.value=R)}}const N=V([]);return u2({modelValue:v,currentModelValue:S,valueIndexToChangeRef:y,thumbElements:N,orientation:l,min:s,max:i,disabled:u,thumbAlignment:c}),(q,C)=>(I(),K(f(T),null,{default:k(()=>[(I(),K(ui(f(l)==="horizontal"?l2:c2),me(q.$attrs,{ref:f(h),"as-child":q.asChild,as:q.as,min:f(s),max:f(i),dir:f(p),inverted:q.inverted,"aria-disabled":f(u),"data-disabled":f(u)?"":void 0,onPointerdown:C[0]||(C[0]=()=>{f(u)||(_.value=S.value)}),onSlideStart:C[1]||(C[1]=b=>!f(u)&&E(b)),onSlideMove:C[2]||(C[2]=b=>!f(u)&&$(b)),onSlideEnd:C[3]||(C[3]=b=>!f(u)&&B()),onHomeKeyDown:C[4]||(C[4]=b=>!f(u)&&m(f(s),0,{commit:!0})),onEndKeyDown:C[5]||(C[5]=b=>!f(u)&&m(f(i),S.value.length-1,{commit:!0})),onStepKeyDown:C[6]||(C[6]=(b,x)=>{if(!f(u)){const O=f(Uh).includes(b.key)||b.shiftKey&&f(zh).includes(b.key)?10:1,R=y.value,M=S.value[R];m(M+f(o)*O*x,R,{commit:!0})}})}),{default:k(()=>[te(q.$slots,"default",{modelValue:f(v)}),f(w)&&q.name?(I(),K(f(vh),{key:0,type:"number",value:f(v),name:q.name,required:q.required,disabled:f(u),step:f(o)},null,8,["value","name","required","disabled","step"])):Ne("v-if",!0)]),_:3},16,["as-child","as","min","max","dir","inverted","aria-disabled","data-disabled"]))]),_:3}))}}),Jh=X({__name:"SliderImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},emits:["slideStart","slideMove","slideEnd","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,s=js();return(i,o)=>(I(),K(f(We),me({"data-slider-impl":""},r,{onKeydown:o[0]||(o[0]=a=>{a.key==="Home"?(n("homeKeyDown",a),a.preventDefault()):a.key==="End"?(n("endKeyDown",a),a.preventDefault()):f(Uh).concat(f(zh)).includes(a.key)&&(n("stepKeyDown",a),a.preventDefault())}),onPointerdown:o[1]||(o[1]=a=>{const l=a.target;l.setPointerCapture(a.pointerId),a.preventDefault(),f(s).thumbElements.value.includes(l)?l.focus():n("slideStart",a)}),onPointermove:o[2]||(o[2]=a=>{a.target.hasPointerCapture(a.pointerId)&&n("slideMove",a)}),onPointerup:o[3]||(o[3]=a=>{const l=a.target;l.hasPointerCapture(a.pointerId)&&(l.releasePointerCapture(a.pointerId),n("slideEnd",a))})}),{default:k(()=>[te(i.$slots,"default")]),_:3},16))}}),f2=X({__name:"SliderRange",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=js(),r=Wh();ke();const n=j(()=>t.currentModelValue.value.map(o=>jh(o,t.min.value,t.max.value))),s=j(()=>t.currentModelValue.value.length>1?Math.min(...n.value):0),i=j(()=>100-Math.max(...n.value,0));return(o,a)=>(I(),K(f(We),{"data-disabled":f(t).disabled.value?"":void 0,"data-orientation":f(t).orientation.value,"as-child":o.asChild,as:o.as,style:xt({[f(r).startEdge.value]:`${s.value}%`,[f(r).endEdge.value]:`${i.value}%`})},{default:k(()=>[te(o.$slots,"default")]),_:3},8,["data-disabled","data-orientation","as-child","as","style"]))}}),p2=X({inheritAttrs:!1,__name:"SliderThumbImpl",props:{index:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=js(),n=Wh(),{forwardRef:s,currentElement:i}=ke(),{CollectionItem:o}=un(),a=j(()=>r.modelValue?.value?.[t.index]),l=j(()=>a.value===void 0?0:jh(a.value,r.min.value??0,r.max.value??100)),u=j(()=>t2(t.index,r.modelValue?.value?.length??0)),c=nh(i),d=j(()=>c[n.size].value),p=j(()=>r.thumbAlignment.value==="overflow"||!d.value?0:n2(d.value,l.value,n.direction.value)),h=ec();return Qe(()=>{r.thumbElements.value.push(i.value)}),jt(()=>{const g=r.thumbElements.value.findIndex(w=>w===i.value)??-1;r.thumbElements.value.splice(g,1)}),(g,w)=>(I(),K(f(o),null,{default:k(()=>[D(f(We),me(g.$attrs,{ref:f(s),role:"slider",tabindex:f(r).disabled.value?void 0:0,"aria-label":g.$attrs["aria-label"]||u.value,"data-disabled":f(r).disabled.value?"":void 0,"data-orientation":f(r).orientation.value,"aria-valuenow":a.value,"aria-valuemin":f(r).min.value,"aria-valuemax":f(r).max.value,"aria-orientation":f(r).orientation.value,"as-child":g.asChild,as:g.as,style:{transform:"var(--reka-slider-thumb-transform)",position:"absolute",[f(n).startEdge.value]:`calc(${l.value}% + ${p.value}px)`,display:!f(h)&&a.value===void 0?"none":void 0},onFocus:w[0]||(w[0]=()=>{f(r).valueIndexToChangeRef.value=g.index})}),{default:k(()=>[te(g.$slots,"default")]),_:3},16,["tabindex","aria-label","data-disabled","data-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","as-child","as","style"])]),_:3}))}}),h2=X({__name:"SliderThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{getItems:r}=un(),{forwardRef:n,currentElement:s}=ke(),i=j(()=>s.value?r(!0).findIndex(o=>o.ref===s.value):-1);return(o,a)=>(I(),K(p2,me({ref:f(n)},t,{index:i.value}),{default:k(()=>[te(o.$slots,"default")]),_:3},16,["index"]))}}),g2=X({__name:"SliderTrack",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=js();return ke(),(r,n)=>(I(),K(f(We),{"as-child":r.asChild,as:r.as,"data-disabled":f(t).disabled.value?"":void 0,"data-orientation":f(t).orientation.value},{default:k(()=>[te(r.$slots,"default")]),_:3},8,["as-child","as","data-disabled","data-orientation"]))}}),v2=X({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(e){const t=e;return ke(),(r,n)=>(I(),K(f(We),me(t,{onMousedown:n[0]||(n[0]=s=>{!s.defaultPrevented&&s.detail>1&&s.preventDefault()})}),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),[or,m2]=Dt("ScrollAreaRoot"),w2=X({__name:"ScrollAreaRoot",props:{type:{type:String,required:!1,default:"hover"},dir:{type:String,required:!1},scrollHideDelay:{type:Number,required:!1,default:600},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const r=e,n=V(0),s=V(0),i=V(),o=V(),a=V(),l=V(),u=V(!1),c=V(!1),{type:d,dir:p,scrollHideDelay:h}=Nt(r),g=sc(p);function w(){i.value?.scrollTo({top:0})}function T(){i.value?.scrollTo({top:0,left:0})}t({viewport:i,scrollTop:w,scrollTopLeft:T});const{forwardRef:v,currentElement:S}=ke();return m2({type:d,dir:g,scrollHideDelay:h,scrollArea:S,viewport:i,onViewportChange:y=>{i.value=y||void 0},content:o,onContentChange:y=>{o.value=y},scrollbarX:a,scrollbarXEnabled:u,scrollbarY:l,scrollbarYEnabled:c,onScrollbarXChange:y=>{a.value=y||void 0},onScrollbarYChange:y=>{l.value=y||void 0},onScrollbarXEnabledChange:y=>{u.value=y},onScrollbarYEnabledChange:y=>{c.value=y},onCornerWidthChange:y=>{n.value=y},onCornerHeightChange:y=>{s.value=y}}),(y,_)=>(I(),K(f(We),{ref:f(v),"as-child":r.asChild,as:y.as,dir:f(g),style:xt({position:"relative","--reka-scroll-area-corner-width":`${n.value}px`,"--reka-scroll-area-corner-height":`${s.value}px`})},{default:k(()=>[te(y.$slots,"default")]),_:3},8,["as-child","as","dir","style"]))}}),y2=X({__name:"ScrollAreaCornerImpl",setup(e){const t=or(),r=V(0),n=V(0),s=j(()=>!!r.value&&!!n.value);function i(){const a=t.scrollbarX.value?.offsetHeight||0;t.onCornerHeightChange(a),n.value=a}function o(){const a=t.scrollbarY.value?.offsetWidth||0;t.onCornerWidthChange(a),r.value=a}return as(t.scrollbarX.value,i),as(t.scrollbarY.value,o),De(()=>t.scrollbarX.value,i),De(()=>t.scrollbarY.value,o),(a,l)=>s.value?(I(),K(f(We),me({key:0,style:{width:`${r.value}px`,height:`${n.value}px`,position:"absolute",right:f(t).dir.value==="ltr"?0:void 0,left:f(t).dir.value==="rtl"?0:void 0,bottom:0}},a.$parent?.$props),{default:k(()=>[te(a.$slots,"default")]),_:3},16,["style"])):Ne("v-if",!0)}}),b2=X({__name:"ScrollAreaCorner",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:r}=ke(),n=or(),s=j(()=>!!n.scrollbarX.value&&!!n.scrollbarY.value),i=j(()=>n.type.value!=="scroll"&&s.value);return(o,a)=>i.value?(I(),K(y2,me({key:0},t,{ref:f(r)}),{default:k(()=>[te(o.$slots,"default")]),_:3},16)):Ne("v-if",!0)}});function Yh(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function ua(e){const t=Zh(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Zh(e,t){const r=e/t;return Number.isNaN(r)?0:r}function _2(e,t=()=>{}){let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function s(){const i={left:e.scrollLeft,top:e.scrollTop},o=r.left!==i.left,a=r.top!==i.top;(o||a)&&t(),r=i,n=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(n)}function Xh(e,t,r="ltr"){const n=ua(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,o=t.content-t.viewport,a=i-n,l=r==="ltr"?[0,o]:[o*-1,0],u=Ii(e,l[0],l[1]);return Yh([0,o],[0,a])(u)}function da(e){return e?Number.parseInt(e,10):0}function S2(e,t,r,n="ltr"){const s=ua(r),i=s/2,o=t||i,a=s-o,l=r.scrollbar.paddingStart+o,u=r.scrollbar.size-r.scrollbar.paddingEnd-a,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return Yh([l,u],d)(e)}function Qh(e,t){return e>0&&e<t}var C2=X({__name:"ScrollAreaScrollbarX",setup(e){const t=or(),r=fa(),{forwardRef:n,currentElement:s}=ke();Qe(()=>{s.value&&t.onScrollbarXChange(s.value)});const i=j(()=>r.sizes.value);return(o,a)=>(I(),K(eg,{ref:f(n),"is-horizontal":!0,"data-orientation":"horizontal",style:xt({bottom:0,left:f(t).dir.value==="rtl"?"var(--reka-scroll-area-corner-width)":0,right:f(t).dir.value==="ltr"?"var(--reka-scroll-area-corner-width)":0,"--reka-scroll-area-thumb-width":i.value?`${f(ua)(i.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>f(r).onDragScroll(l.x))},{default:k(()=>[te(o.$slots,"default")]),_:3},8,["style"]))}}),x2=X({__name:"ScrollAreaScrollbarY",setup(e){const t=or(),r=fa(),{forwardRef:n,currentElement:s}=ke();Qe(()=>{s.value&&t.onScrollbarYChange(s.value)});const i=j(()=>r.sizes.value);return(o,a)=>(I(),K(eg,{ref:f(n),"is-horizontal":!1,"data-orientation":"vertical",style:xt({top:0,right:f(t).dir.value==="ltr"?0:void 0,left:f(t).dir.value==="rtl"?0:void 0,bottom:"var(--reka-scroll-area-corner-height)","--reka-scroll-area-thumb-height":i.value?`${f(ua)(i.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>f(r).onDragScroll(l.y))},{default:k(()=>[te(o.$slots,"default")]),_:3},8,["style"]))}}),$c=X({__name:"ScrollAreaScrollbarAuto",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=or(),r=Di(),{forwardRef:n}=ke(),s=V(!1),i=Ql(()=>{if(t.viewport.value){const o=t.viewport.value.offsetWidth<t.viewport.value.scrollWidth,a=t.viewport.value.offsetHeight<t.viewport.value.scrollHeight;s.value=r.isHorizontal.value?o:a}},10);return Qe(()=>i()),as(t.viewport,i),as(t.content,i),(o,a)=>(I(),K(f(Nn),{present:o.forceMount||s.value},{default:k(()=>[D(Pc,me(o.$attrs,{ref:f(n),"data-state":s.value?"visible":"hidden"}),{default:k(()=>[te(o.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),T2=X({inheritAttrs:!1,__name:"ScrollAreaScrollbarGlimpse",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=or(),r=Di(),{forwardRef:n}=ke(),{state:s,dispatch:i}=lc("hidden",{hidden:{POINTER_ENTER:"glimpse",SCROLL:"scrolling"},glimpse:{HIDE:"hidden",POINTER_LEAVE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"glimpse"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),o=j(()=>s.value!=="hidden");function a(){i("POINTER_ENTER")}function l(){i("POINTER_LEAVE")}const u=Ql(()=>i("SCROLL_END"),100);return at(c=>{if(s.value==="glimpse"){const d=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);c(()=>{window.clearTimeout(d)})}}),at(c=>{if(s.value==="idle"){const d=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);c(()=>{window.clearTimeout(d)})}}),at(c=>{const d=t.viewport.value,p=r.isHorizontal.value?"scrollLeft":"scrollTop";if(d){let h=d[p];const g=()=>{const w=d[p];h!==w&&(i("SCROLL"),u()),h=w};d.addEventListener("scroll",g),c(()=>{d.removeEventListener("scroll",g)})}}),Qe(()=>{const c=t.scrollArea.value;c&&(c.addEventListener("pointerenter",a),c.addEventListener("pointerleave",l))}),jt(()=>{const c=t.scrollArea.value;c&&(c.removeEventListener("pointerenter",a),c.removeEventListener("pointerleave",l))}),(c,d)=>(I(),K(f(Nn),{present:c.forceMount||o.value},{default:k(()=>[D($c,me(c.$attrs,{ref:f(n),"data-state":o.value?"visible":"hidden"}),{default:k(()=>[te(c.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),E2=X({inheritAttrs:!1,__name:"ScrollAreaScrollbarHover",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=or(),{forwardRef:r}=ke();let n;const s=V(!1);function i(){window.clearTimeout(n),s.value=!0}function o(){n=window.setTimeout(()=>{s.value=!1},t.scrollHideDelay.value)}return Qe(()=>{const a=t.scrollArea.value;a&&(a.addEventListener("pointerenter",i),a.addEventListener("pointerleave",o))}),jt(()=>{const a=t.scrollArea.value;a&&(window.clearTimeout(n),a.removeEventListener("pointerenter",i),a.removeEventListener("pointerleave",o))}),(a,l)=>(I(),K(f(Nn),{present:a.forceMount||s.value},{default:k(()=>[D($c,me(a.$attrs,{ref:f(r),"data-state":s.value?"visible":"hidden"}),{default:k(()=>[te(a.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),A2=X({__name:"ScrollAreaScrollbarScroll",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=or(),r=Di(),{forwardRef:n}=ke(),{state:s,dispatch:i}=lc("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),o=j(()=>s.value!=="hidden");at(l=>{if(s.value==="idle"){const u=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);l(()=>{window.clearTimeout(u)})}});const a=Ql(()=>i("SCROLL_END"),100);return at(l=>{const u=t.viewport.value,c=r.isHorizontal.value?"scrollLeft":"scrollTop";if(u){let d=u[c];const p=()=>{const h=u[c];d!==h&&(i("SCROLL"),a()),d=h};u.addEventListener("scroll",p),l(()=>{u.removeEventListener("scroll",p)})}}),(l,u)=>(I(),K(f(Nn),{present:l.forceMount||o.value},{default:k(()=>[D(Pc,me(l.$attrs,{ref:f(n),"data-state":o.value?"visible":"hidden"}),{default:k(()=>[te(l.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),[Di,k2]=Dt("ScrollAreaScrollbar"),R2=X({inheritAttrs:!1,__name:"ScrollAreaScrollbar",props:{orientation:{type:String,required:!1,default:"vertical"},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,{forwardRef:r}=ke(),n=or(),s=j(()=>t.orientation==="horizontal");De(s,()=>{s.value?n.onScrollbarXEnabledChange(!0):n.onScrollbarYEnabledChange(!0)},{immediate:!0}),jt(()=>{n.onScrollbarXEnabledChange(!1),n.onScrollbarYEnabledChange(!1)});const{orientation:i,forceMount:o,asChild:a,as:l}=Nt(t);return k2({orientation:i,forceMount:o,isHorizontal:s,as:l,asChild:a}),(u,c)=>f(n).type.value==="hover"?(I(),K(E2,me({key:0},u.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[te(u.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="scroll"?(I(),K(A2,me({key:1},u.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[te(u.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="glimpse"?(I(),K(T2,me({key:2},u.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[te(u.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="auto"?(I(),K($c,me({key:3},u.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[te(u.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="always"?(I(),K(Pc,me({key:4},u.$attrs,{ref:f(r),"data-state":"visible"}),{default:k(()=>[te(u.$slots,"default")]),_:3},16)):Ne("v-if",!0)}}),[fa,I2]=Dt("ScrollAreaScrollbarVisible"),Pc=X({__name:"ScrollAreaScrollbarVisible",setup(e){const t=or(),r=Di(),{forwardRef:n}=ke(),s=V({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),i=j(()=>{const v=Zh(s.value.viewport,s.value.content);return v>0&&v<1}),o=V(),a=V(0);function l(v,S){if(h.value){const y=t.viewport.value.scrollLeft+v.deltaY;t.viewport.value.scrollLeft=y,Qh(y,S)&&v.preventDefault()}else{const y=t.viewport.value.scrollTop+v.deltaY;t.viewport.value.scrollTop=y,Qh(y,S)&&v.preventDefault()}}function u(v,S){h.value?a.value=S.x:a.value=S.y}function c(v){a.value=0}function d(v){s.value=v}function p(v,S){return S2(v,a.value,s.value,S)}const h=j(()=>r.isHorizontal.value);function g(v){h.value?t.viewport.value.scrollLeft=p(v,t.dir.value):t.viewport.value.scrollTop=p(v)}function w(){if(h.value){if(t.viewport.value&&o.value){const v=t.viewport.value.scrollLeft,S=Xh(v,s.value,t.dir.value);o.value.style.transform=`translate3d(${S}px, 0, 0)`}}else if(t.viewport.value&&o.value){const v=t.viewport.value.scrollTop,S=Xh(v,s.value);o.value.style.transform=`translate3d(0, ${S}px, 0)`}}function T(v){o.value=v}return I2({sizes:s,hasThumb:i,handleWheelScroll:l,handleThumbDown:u,handleThumbUp:c,handleSizeChange:d,onThumbPositionChange:w,onThumbChange:T,onDragScroll:g}),(v,S)=>h.value?(I(),K(C2,me({key:0},v.$attrs,{ref:f(n)}),{default:k(()=>[te(v.$slots,"default")]),_:3},16)):(I(),K(x2,me({key:1},v.$attrs,{ref:f(n)}),{default:k(()=>[te(v.$slots,"default")]),_:3},16))}}),eg=X({__name:"ScrollAreaScrollbarImpl",props:{isHorizontal:{type:Boolean,required:!0}},emits:["onDragScroll","onWheelScroll","onThumbPointerDown"],setup(e,{emit:t}){const r=e,n=t,s=or(),i=fa(),o=Di(),{forwardRef:a,currentElement:l}=ke(),u=V(""),c=V();function d(v){c.value&&n("onDragScroll",{x:v.clientX-c.value?.left,y:v.clientY-c.value?.top})}function p(v){v.button===0&&(v.target.setPointerCapture(v.pointerId),c.value=l.value.getBoundingClientRect(),u.value=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",s.viewport&&(s.viewport.value.style.scrollBehavior="auto"),d(v))}function h(v){d(v)}function g(v){const S=v.target;S.hasPointerCapture(v.pointerId)&&S.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=u.value,s.viewport&&(s.viewport.value.style.scrollBehavior=""),c.value=void 0}function w(v){const S=v.target,y=l.value?.contains(S),_=i.sizes.value.content-i.sizes.value.viewport;y&&i.handleWheelScroll(v,_)}Qe(()=>{document.addEventListener("wheel",w,{passive:!1})}),jt(()=>{document.removeEventListener("wheel",w)});function T(){l.value&&(r.isHorizontal?i.handleSizeChange({content:s.viewport.value?.scrollWidth??0,viewport:s.viewport.value?.offsetWidth??0,scrollbar:{size:l.value.clientWidth??0,paddingStart:da(getComputedStyle(l.value).paddingLeft),paddingEnd:da(getComputedStyle(l.value).paddingRight)}}):i.handleSizeChange({content:s.viewport.value?.scrollHeight??0,viewport:s.viewport.value?.offsetHeight??0,scrollbar:{size:l.value?.clientHeight??0,paddingStart:da(getComputedStyle(l.value).paddingTop),paddingEnd:da(getComputedStyle(l.value).paddingBottom)}}),i.onThumbPositionChange())}return as(l,T),as(s.content,T),(v,S)=>(I(),K(f(We),{ref:f(a),style:{position:"absolute"},"data-scrollbarimpl":"",as:f(o).as.value,"as-child":f(o).asChild.value,onPointerdown:p,onPointermove:h,onPointerup:g},{default:k(()=>[te(v.$slots,"default")]),_:3},8,["as","as-child"]))}}),$2=X({__name:"ScrollAreaThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=or(),n=fa();function s(d){const p=d.target.getBoundingClientRect(),h=d.clientX-p.left,g=d.clientY-p.top;n.handleThumbDown(d,{x:h,y:g})}function i(d){n.handleThumbUp(d)}const{forwardRef:o,currentElement:a}=ke(),l=V(),u=j(()=>r.viewport.value);function c(){l.value||(l.value=_2(u.value,n.onThumbPositionChange),n.onThumbPositionChange())}return Ky(j(()=>n.sizes.value),()=>{n.onThumbChange(a.value),u.value&&(n.onThumbPositionChange(),u.value.addEventListener("scroll",c))}),jt(()=>{u.value.removeEventListener("scroll",c),r.viewport.value?.removeEventListener("scroll",c)}),(d,p)=>(I(),K(f(We),{ref:f(o),"data-state":f(n).hasThumb?"visible":"hidden",style:{width:"var(--reka-scroll-area-thumb-width)",height:"var(--reka-scroll-area-thumb-height)"},"as-child":t.asChild,as:d.as,onPointerdown:s,onPointerup:i},{default:k(()=>[te(d.$slots,"default")]),_:3},8,["data-state","as-child","as"]))}}),P2=X({inheritAttrs:!1,__name:"ScrollAreaViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const r=e,{nonce:n}=Nt(r),s=Vh(n),i=or(),o=V();Qe(()=>{i.onViewportChange(o.value),i.onContentChange(l.value)}),t({viewportElement:o});const{forwardRef:a,currentElement:l}=ke();return(u,c)=>(I(),Se(Ke,null,[Q("div",me({ref_key:"viewportElement",ref:o,"data-reka-scroll-area-viewport":"",style:{overflowX:f(i).scrollbarXEnabled.value?"scroll":"hidden",overflowY:f(i).scrollbarYEnabled.value?"scroll":"hidden"}},u.$attrs,{tabindex:0}),[D(f(We),{ref:f(a),style:xt({minWidth:f(i).scrollbarXEnabled.value?"fit-content":void 0}),"as-child":r.asChild,as:u.as},{default:k(()=>[te(u.$slots,"default")]),_:3},8,["style","as-child","as"])],16),D(f(We),{as:"style",nonce:f(s)},{default:k(()=>c[0]||(c[0]=[qe(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-scroll-area-viewport] { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; } [data-reka-scroll-area-viewport]::-webkit-scrollbar { display:none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),D2=[" ","Enter","ArrowUp","ArrowDown"],O2=[" ","Enter"],Yx=10;function Oi(e,t,r){return e===void 0?!1:Array.isArray(e)?e.some(n=>Dc(n,t,r)):Dc(e,t,r)}function Dc(e,t,r){return e===void 0||t===void 0?!1:typeof e=="string"?e===t:typeof r=="function"?r(e,t):typeof r=="string"?e?.[r]===t?.[r]:Cy(e,t)}function H2(e){return e==null||e===""||Array.isArray(e)&&e.length===0}var M2={key:0,value:""},[Vn,tg]=Dt("SelectRoot"),N2=X({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=e,n=t,{required:s,disabled:i,multiple:o,dir:a}=Nt(r),l=ls(r,"modelValue",n,{defaultValue:r.defaultValue??(o.value?[]:void 0),passive:r.modelValue===void 0,deep:!0}),u=ls(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),c=V(),d=V(),p=V({x:0,y:0}),h=j(()=>o.value&&Array.isArray(l.value)?l.value?.length===0:Jl(l.value));un({isProvider:!0});const g=sc(a),w=oc(c),T=V(new Set),v=j(()=>Array.from(T.value).map(_=>_.value).join(";"));function S(_){if(o.value){const E=Array.isArray(l.value)?[...l.value]:[],$=E.findIndex(B=>Dc(B,_,r.by));$===-1?E.push(_):E.splice($,1),l.value=[...E]}else l.value=_}function y(_){return Array.from(T.value).find(E=>Oi(_,E.value,r.by))}return tg({triggerElement:c,onTriggerChange:_=>{c.value=_},valueElement:d,onValueElementChange:_=>{d.value=_},contentId:"",modelValue:l,onValueChange:S,by:r.by,open:u,multiple:o,required:s,onOpenChange:_=>{u.value=_},dir:g,triggerPointerDownPosRef:p,disabled:i,isEmptyModelValue:h,optionsSet:T,onOptionAdd:_=>{const E=y(_.value);E&&T.value.delete(E),T.value.add(_)},onOptionRemove:_=>{const E=y(_.value);E&&T.value.delete(E)}}),(_,E)=>(I(),K(f(wh),null,{default:k(()=>[te(_.$slots,"default",{modelValue:f(l),open:f(u)}),f(w)?(I(),K(q2,{key:v.value,"aria-hidden":"true",tabindex:"-1",multiple:f(o),required:f(s),name:_.name,autocomplete:_.autocomplete,disabled:f(i),value:f(l)},{default:k(()=>[f(Jl)(f(l))?(I(),Se("option",M2)):Ne("v-if",!0),(I(!0),Se(Ke,null,fr(Array.from(T.value),$=>(I(),Se("option",me({key:$.value??""},{ref_for:!0},$),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):Ne("v-if",!0)]),_:3}))}}),q2=X({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){const t=e,r=V(),n=Vn();De(()=>t.value,(i,o)=>{const a=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==o&&l&&r.value){const u=new Event("change",{bubbles:!0});l.call(r.value,i),r.value.dispatchEvent(u)}});function s(i){n.onValueChange(i.target.value)}return(i,o)=>(I(),K(f(gc),{"as-child":""},{default:k(()=>[Q("select",me({ref_key:"selectElement",ref:r},t,{onInput:s}),[te(i.$slots,"default")],16)]),_:3}))}}),B2=X({__name:"SelectPopperPosition",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:10},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=cn(e);return(r,n)=>(I(),K(f(Fh),me(f(t),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),L2={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[fs,rg]=Dt("SelectContent"),F2=X({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Vn();ab(),Xp(r.bodyLock);const{CollectionSlot:i,getItems:o}=un(),a=V();rh(a);const{search:l,handleTypeaheadSearch:u}=sh(),c=V(),d=V(),p=V(),h=V(!1),g=V(!1),w=V(!1);function T(){d.value&&a.value&&fh([d.value,a.value])}De(h,()=>{T()});const{onOpenChange:v,triggerPointerDownPosRef:S}=s;at(E=>{if(!a.value)return;let $={x:0,y:0};const B=N=>{$={x:Math.abs(Math.round(N.pageX)-(S.value?.x??0)),y:Math.abs(Math.round(N.pageY)-(S.value?.y??0))}},m=N=>{N.pointerType!=="touch"&&($.x<=10&&$.y<=10?N.preventDefault():a.value?.contains(N.target)||v(!1),document.removeEventListener("pointermove",B),S.value=null)};S.value!==null&&(document.addEventListener("pointermove",B),document.addEventListener("pointerup",m,{capture:!0,once:!0})),E(()=>{document.removeEventListener("pointermove",B),document.removeEventListener("pointerup",m,{capture:!0})})});function y(E){const $=E.ctrlKey||E.altKey||E.metaKey;if(E.key==="Tab"&&E.preventDefault(),!$&&E.key.length===1&&u(E.key,o()),["ArrowUp","ArrowDown","Home","End"].includes(E.key)){let B=[...o().map(m=>m.ref)];if(["ArrowUp","End"].includes(E.key)&&(B=B.slice().reverse()),["ArrowUp","ArrowDown"].includes(E.key)){const m=E.target,N=B.indexOf(m);B=B.slice(N+1)}setTimeout(()=>fh(B)),E.preventDefault()}}const _=cn(j(()=>r.position==="popper"?r:{}).value);return rg({content:a,viewport:c,onViewportChange:E=>{c.value=E},itemRefCallback:(E,$,B)=>{const m=!g.value&&!B,N=Oi(s.modelValue.value,$,s.by);if(s.multiple.value){if(w.value)return;(N||m)&&(d.value=E,N&&(w.value=!0))}else(N||m)&&(d.value=E);m&&(g.value=!0)},selectedItem:d,selectedItemText:p,onItemLeave:()=>{a.value?.focus()},itemTextRefCallback:(E,$,B)=>{const m=!g.value&&!B;(Oi(s.modelValue.value,$,s.by)||m)&&(p.value=E)},focusSelectedItem:T,position:r.position,isPositioned:h,searchRef:l}),(E,$)=>(I(),K(f(i),null,{default:k(()=>[D(f(uh),{"as-child":"",onMountAutoFocus:$[6]||($[6]=gr(()=>{},["prevent"])),onUnmountAutoFocus:$[7]||($[7]=B=>{n("closeAutoFocus",B),!B.defaultPrevented&&(f(s).triggerElement.value?.focus({preventScroll:!0}),B.preventDefault())})},{default:k(()=>[D(f(dc),{"as-child":"","disable-outside-pointer-events":E.disableOutsidePointerEvents,onFocusOutside:$[2]||($[2]=gr(()=>{},["prevent"])),onDismiss:$[3]||($[3]=B=>f(s).onOpenChange(!1)),onEscapeKeyDown:$[4]||($[4]=B=>n("escapeKeyDown",B)),onPointerDownOutside:$[5]||($[5]=B=>n("pointerDownOutside",B))},{default:k(()=>[(I(),K(ui(E.position==="popper"?B2:j2),me({...E.$attrs,...f(_)},{id:f(s).contentId,ref:B=>{const m=f(Xt)(B);m?.hasAttribute("data-reka-popper-content-wrapper")?a.value=m.firstElementChild:a.value=m},role:"listbox","data-state":f(s).open.value?"open":"closed",dir:f(s).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:$[0]||($[0]=gr(()=>{},["prevent"])),onPlaced:$[1]||($[1]=B=>h.value=!0),onKeydown:y}),{default:k(()=>[te(E.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),[Oc,V2]=Dt("SelectItemAlignedPosition"),j2=X({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(e,{emit:t}){const r=e,n=t,{getItems:s}=un(),i=Vn(),o=fs(),a=V(!1),l=V(!0),u=V(),{forwardRef:c,currentElement:d}=ke(),{viewport:p,selectedItem:h,selectedItemText:g,focusSelectedItem:w}=o;function T(){if(i.triggerElement.value&&i.valueElement.value&&u.value&&d.value&&p?.value&&h?.value&&g?.value){const y=i.triggerElement.value.getBoundingClientRect(),_=d.value.getBoundingClientRect(),E=i.valueElement.value.getBoundingClientRect(),$=g.value.getBoundingClientRect();if(i.dir.value!=="rtl"){const Pe=$.left-_.left,nt=E.left-Pe,_t=y.left-nt,Be=y.width+_t,st=Math.max(Be,_.width),ht=window.innerWidth-10,mt=Ii(nt,10,Math.max(10,ht-st));u.value.style.minWidth=`${Be}px`,u.value.style.left=`${mt}px`}else{const Pe=_.right-$.right,nt=window.innerWidth-E.right-Pe,_t=window.innerWidth-y.right-nt,Be=y.width+_t,st=Math.max(Be,_.width),ht=window.innerWidth-10,mt=Ii(nt,10,Math.max(10,ht-st));u.value.style.minWidth=`${Be}px`,u.value.style.right=`${mt}px`}const B=s().map(Pe=>Pe.ref),m=window.innerHeight-20,N=p.value.scrollHeight,q=window.getComputedStyle(d.value),C=Number.parseInt(q.borderTopWidth,10),b=Number.parseInt(q.paddingTop,10),x=Number.parseInt(q.borderBottomWidth,10),O=Number.parseInt(q.paddingBottom,10),R=C+b+N+O+x,M=Math.min(h.value.offsetHeight*5,R),z=window.getComputedStyle(p.value),G=Number.parseInt(z.paddingTop,10),oe=Number.parseInt(z.paddingBottom,10),Y=y.top+y.height/2-10,ae=m-Y,de=h.value.offsetHeight/2,Re=h.value.offsetTop+de,je=C+b+Re,Ie=R-je;if(je<=Y){const Pe=h.value===B[B.length-1];u.value.style.bottom="0px";const nt=d.value.clientHeight-p.value.offsetTop-p.value.offsetHeight,_t=je+Math.max(ae,de+(Pe?oe:0)+nt+x);u.value.style.height=`${_t}px`}else{const Pe=h.value===B[0];u.value.style.top="0px";const nt=Math.max(Y,C+p.value.offsetTop+(Pe?G:0)+de)+Ie;u.value.style.height=`${nt}px`,p.value.scrollTop=je-Y+p.value.offsetTop}u.value.style.margin="10px 0",u.value.style.minHeight=`${M}px`,u.value.style.maxHeight=`${m}px`,n("placed"),requestAnimationFrame(()=>a.value=!0)}}const v=V("");Qe(async()=>{await At(),T(),d.value&&(v.value=window.getComputedStyle(d.value).zIndex)});function S(y){y&&l.value===!0&&(T(),w?.(),l.value=!1)}return as(i.triggerElement,()=>{T()}),V2({contentWrapper:u,shouldExpandOnScrollRef:a,onScrollButtonChange:S}),(y,_)=>(I(),Se("div",{ref_key:"contentWrapperElement",ref:u,style:xt({display:"flex",flexDirection:"column",position:"fixed",zIndex:v.value})},[D(f(We),me({ref:f(c),style:{boxSizing:"border-box",maxHeight:"100%"}},{...y.$attrs,...r}),{default:k(()=>[te(y.$slots,"default")]),_:3},16)],4))}}),U2=X({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return tg(e.context),rg(L2),(t,r)=>te(t.$slots,"default")}}),z2={key:1},K2=X({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=qr(r,t),s=Vn(),i=V();Qe(()=>{i.value=new DocumentFragment});const o=V(),a=j(()=>r.forceMount||s.open.value),l=V(a.value);return De(a,()=>{setTimeout(()=>l.value=a.value)}),(u,c)=>a.value||l.value||o.value?.present?(I(),K(f(Nn),{key:0,ref_key:"presenceRef",ref:o,present:a.value},{default:k(()=>[D(F2,cr(Qt({...f(n),...u.$attrs})),{default:k(()=>[te(u.$slots,"default")]),_:3},16)]),_:3},8,["present"])):i.value?(I(),Se("div",z2,[(I(),K(Ua,{to:i.value},[D(U2,{context:f(s)},{default:k(()=>[te(u.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):Ne("v-if",!0)}}),[Zx,W2]=Dt("SelectGroup"),G2=X({__name:"SelectGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=qs(void 0,"reka-select-group");return W2({id:r}),(n,s)=>(I(),K(f(We),me({role:"group"},t,{"aria-labelledby":f(r)}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),J2=X({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,r)=>(I(),K(f(We),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:k(()=>[te(t.$slots,"default",{},()=>[r[0]||(r[0]=qe("▼"))])]),_:3},8,["as","as-child"]))}}),[ng,Y2]=Dt("SelectItem"),Z2=X({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=t,{disabled:s}=Nt(r),i=Vn(),o=fs(),{forwardRef:a,currentElement:l}=ke(),{CollectionItem:u}=un(),c=j(()=>Oi(i.modelValue?.value,r.value,i.by)),d=V(!1),p=V(r.textValue??""),h=qs(void 0,"reka-select-item-text"),g="select.select";async function w(_){_.defaultPrevented||Gl(g,T,{originalEvent:_,value:r.value})}async function T(_){await At(),n("select",_),!_.defaultPrevented&&(s.value||(i.onValueChange(r.value),i.multiple.value||i.onOpenChange(!1)))}async function v(_){await At(),!_.defaultPrevented&&(s.value?o.onItemLeave?.():_.currentTarget?.focus({preventScroll:!0}))}async function S(_){await At(),!_.defaultPrevented&&_.currentTarget===nr()&&o.onItemLeave?.()}async function y(_){await At(),!_.defaultPrevented&&(o.searchRef?.value!==""&&_.key===" "||(O2.includes(_.key)&&w(_),_.key===" "&&_.preventDefault()))}if(r.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Qe(()=>{l.value&&o.itemRefCallback(l.value,r.value,r.disabled)}),Y2({value:r.value,disabled:s,textId:h,isSelected:c,onItemTextChange:_=>{p.value=((p.value||_?.textContent)??"").trim()}}),(_,E)=>(I(),K(f(u),{value:{textValue:p.value}},{default:k(()=>[D(f(We),{ref:f(a),role:"option","aria-labelledby":f(h),"data-highlighted":d.value?"":void 0,"aria-selected":c.value,"data-state":c.value?"checked":"unchecked","aria-disabled":f(s)||void 0,"data-disabled":f(s)?"":void 0,tabindex:f(s)?void 0:-1,as:_.as,"as-child":_.asChild,onFocus:E[0]||(E[0]=$=>d.value=!0),onBlur:E[1]||(E[1]=$=>d.value=!1),onPointerup:w,onPointerdown:E[2]||(E[2]=$=>{$.currentTarget.focus({preventScroll:!0})}),onTouchend:E[3]||(E[3]=gr(()=>{},["prevent","stop"])),onPointermove:v,onPointerleave:S,onKeydown:y},{default:k(()=>[te(_.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),X2=X({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,r=ng();return(n,s)=>f(r).isSelected.value?(I(),K(f(We),me({key:0,"aria-hidden":"true"},t),{default:k(()=>[te(n.$slots,"default")]),_:3},16)):Ne("v-if",!0)}}),Q2=X({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,r=Vn(),n=fs(),s=ng(),{forwardRef:i,currentElement:o}=ke(),a=j(()=>({value:s.value,disabled:s.disabled.value,textContent:o.value?.textContent??s.value?.toString()??""}));return Qe(()=>{o.value&&(s.onItemTextChange(o.value),n.itemTextRefCallback(o.value,s.value,s.disabled.value),r.onOptionAdd(a.value))}),jt(()=>{r.onOptionRemove(a.value)}),(l,u)=>(I(),K(f(We),me({id:f(s).textId,ref:f(i)},{...t,...l.$attrs}),{default:k(()=>[te(l.$slots,"default")]),_:3},16,["id"]))}}),e_=X({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>(I(),K(f(hc),cr(Qt(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),sg=X({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(e,{emit:t}){const r=t,{getItems:n}=un(),s=fs(),i=V(null);function o(){i.value!==null&&(window.clearInterval(i.value),i.value=null)}at(()=>{n().map(u=>u.ref).find(u=>u===nr())?.scrollIntoView({block:"nearest"})});function a(){i.value===null&&(i.value=window.setInterval(()=>{r("autoScroll")},50))}function l(){s.onItemLeave?.(),i.value===null&&(i.value=window.setInterval(()=>{r("autoScroll")},50))}return Rs(()=>o()),(u,c)=>(I(),K(f(We),me({"aria-hidden":"true",style:{flexShrink:0}},u.$parent?.$props,{onPointerdown:a,onPointermove:l,onPointerleave:c[0]||(c[0]=()=>{o()})}),{default:k(()=>[te(u.$slots,"default")]),_:3},16))}}),t_=X({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=fs(),r=t.position==="item-aligned"?Oc():void 0,{forwardRef:n,currentElement:s}=ke(),i=V(!1);return at(o=>{if(t.viewport?.value&&t.isPositioned?.value){let u=function(){const c=l.scrollHeight-l.clientHeight;i.value=Math.ceil(l.scrollTop)<c};var a=u;const l=t.viewport.value;u(),l.addEventListener("scroll",u),o(()=>l.removeEventListener("scroll",u))}}),De(s,()=>{s.value&&r?.onScrollButtonChange(s.value)}),(o,a)=>i.value?(I(),K(sg,{key:0,ref:f(n),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:u}=f(t);l?.value&&u?.value&&(l.value.scrollTop=l.value.scrollTop+u.value.offsetHeight)})},{default:k(()=>[te(o.$slots,"default")]),_:3},512)):Ne("v-if",!0)}}),r_=X({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=fs(),r=t.position==="item-aligned"?Oc():void 0,{forwardRef:n,currentElement:s}=ke(),i=V(!1);return at(o=>{if(t.viewport?.value&&t.isPositioned?.value){let u=function(){i.value=l.scrollTop>0};var a=u;const l=t.viewport.value;u(),l.addEventListener("scroll",u),o(()=>l.removeEventListener("scroll",u))}}),De(s,()=>{s.value&&r?.onScrollButtonChange(s.value)}),(o,a)=>i.value?(I(),K(sg,{key:0,ref:f(n),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:u}=f(t);l?.value&&u?.value&&(l.value.scrollTop=l.value.scrollTop-u.value.offsetHeight)})},{default:k(()=>[te(o.$slots,"default")]),_:3},512)):Ne("v-if",!0)}}),n_=X({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,r=Vn(),{forwardRef:n,currentElement:s}=ke(),i=j(()=>r.disabled?.value||t.disabled);r.contentId||(r.contentId=qs(void 0,"reka-select-content")),Qe(()=>{r.onTriggerChange(s.value)});const{getItems:o}=un(),{search:a,handleTypeaheadSearch:l,resetTypeahead:u}=sh();function c(){i.value||(r.onOpenChange(!0),u())}function d(p){c(),r.triggerPointerDownPosRef.value={x:Math.round(p.pageX),y:Math.round(p.pageY)}}return(p,h)=>(I(),K(f(yh),{"as-child":"",reference:p.reference},{default:k(()=>[D(f(We),{ref:f(n),role:"combobox",type:p.as==="button"?"button":void 0,"aria-controls":f(r).contentId,"aria-expanded":f(r).open.value||!1,"aria-required":f(r).required?.value,"aria-autocomplete":"none",disabled:i.value,dir:f(r)?.dir.value,"data-state":f(r)?.open.value?"open":"closed","data-disabled":i.value?"":void 0,"data-placeholder":f(H2)(f(r).modelValue?.value)?"":void 0,"as-child":p.asChild,as:p.as,onClick:h[0]||(h[0]=g=>{g?.currentTarget?.focus()}),onPointerdown:h[1]||(h[1]=g=>{if(g.pointerType==="touch")return g.preventDefault();const w=g.target;w.hasPointerCapture(g.pointerId)&&w.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(d(g),g.preventDefault())}),onPointerup:h[2]||(h[2]=gr(g=>{g.pointerType==="touch"&&d(g)},["prevent"])),onKeydown:h[3]||(h[3]=g=>{const w=f(a)!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&w&&g.key===" "||(f(l)(g.key,f(o)()),f(D2).includes(g.key)&&(c(),g.preventDefault()))})},{default:k(()=>[te(p.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]),_:3},8,["reference"]))}}),s_=X({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{forwardRef:r,currentElement:n}=ke(),s=Vn();Qe(()=>{s.valueElement=n});const i=j(()=>{let a=[];const l=Array.from(s.optionsSet.value),u=c=>l.find(d=>Oi(c,d.value,s.by));return Array.isArray(s.modelValue.value)?a=s.modelValue.value.map(c=>u(c)?.textContent??""):a=[u(s.modelValue.value)?.textContent??""],a.filter(Boolean)}),o=j(()=>i.value.length?i.value.join(", "):t.placeholder);return(a,l)=>(I(),K(f(We),{ref:f(r),as:a.as,"as-child":a.asChild,style:{pointerEvents:"none"},"data-placeholder":i.value.length?void 0:t.placeholder},{default:k(()=>[te(a.$slots,"default",{selectedLabel:i.value,modelValue:f(s).modelValue.value},()=>[qe(Fe(o.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),i_=X({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{nonce:r}=Nt(t),n=Vh(r),s=fs(),i=s.position==="item-aligned"?Oc():void 0,{forwardRef:o,currentElement:a}=ke();Qe(()=>{s?.onViewportChange(a.value)});const l=V(0);function u(c){const d=c.currentTarget,{shouldExpandOnScrollRef:p,contentWrapper:h}=i??{};if(p?.value&&h?.value){const g=Math.abs(l.value-d.scrollTop);if(g>0){const w=window.innerHeight-20,T=Number.parseFloat(h.value.style.minHeight),v=Number.parseFloat(h.value.style.height),S=Math.max(T,v);if(S<w){const y=S+g,_=Math.min(w,y),E=y-_;h.value.style.height=`${_}px`,h.value.style.bottom==="0px"&&(d.scrollTop=E>0?E:0,h.value.style.justifyContent="flex-end")}}}l.value=d.scrollTop}return(c,d)=>(I(),Se(Ke,null,[D(f(We),me({ref:f(o),"data-reka-select-viewport":"",role:"presentation"},{...c.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:u}),{default:k(()=>[te(c.$slots,"default")]),_:3},16),D(f(We),{as:"style",nonce:f(n)},{default:k(()=>d[0]||(d[0]=[qe(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),o_=X({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=["horizontal","vertical"];function n(a){return r.includes(a)}const s=j(()=>n(t.orientation)?t.orientation:"horizontal"),i=j(()=>s.value==="vertical"?t.orientation:void 0),o=j(()=>t.decorative?{role:"none"}:{"aria-orientation":i.value,role:"separator"});return(a,l)=>(I(),K(f(We),me({as:a.as,"as-child":a.asChild,"data-orientation":s.value},o.value),{default:k(()=>[te(a.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),a_=X({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(r,n)=>(I(),K(o_,cr(Qt(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),[l_,Xx]=Dt("ToggleGroupRoot"),c_=X({__name:"Toggle",props:{defaultValue:{type:Boolean,required:!1},modelValue:{type:[Boolean,null],required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,{forwardRef:s,currentElement:i}=ke(),o=l_(null),a=ls(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0});function l(){a.value=!a.value}const u=j(()=>a.value?"on":"off"),c=oc(i);return(d,p)=>(I(),K(f(We),{ref:f(s),type:d.as==="button"?"button":void 0,"as-child":r.asChild,as:d.as,"aria-pressed":f(a),"data-state":u.value,"data-disabled":d.disabled?"":void 0,disabled:d.disabled,onClick:l},{default:k(()=>[te(d.$slots,"default",{modelValue:f(a),disabled:d.disabled,pressed:f(a),state:u.value}),f(c)&&d.name&&!f(o)?(I(),K(vh,{key:0,type:"checkbox",name:d.name,value:f(a),required:d.required},null,8,["name","value","required"])):Ne("v-if",!0)]),_:3},8,["type","as-child","as","aria-pressed","data-state","data-disabled","disabled"]))}}),u_=X({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return ke(),(r,n)=>(I(),K(f(Q1),cr(Qt(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),[pa,d_]=Dt("TooltipProvider"),f_=X({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){const{delayDuration:t,skipDelayDuration:r,disableHoverableContent:n,disableClosingTrigger:s,ignoreNonKeyboardFocus:i,disabled:o,content:a}=Nt(e);ke();const l=V(!0),u=V(!1),{start:c,stop:d}=Wp(()=>{l.value=!0},r,{immediate:!1});return d_({isOpenDelayed:l,delayDuration:t,onOpen(){d(),l.value=!1},onClose(){c()},isPointerInTransitRef:u,disableHoverableContent:n,disableClosingTrigger:s,disabled:o,ignoreNonKeyboardFocus:i,content:a}),(p,h)=>te(p.$slots,"default")}}),ig="tooltip.open",[ha,p_]=Dt("TooltipRoot"),h_=X({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const r=e,n=t;ke();const s=pa(),i=j(()=>r.disableHoverableContent??s.disableHoverableContent.value),o=j(()=>r.disableClosingTrigger??s.disableClosingTrigger.value),a=j(()=>r.disabled??s.disabled.value),l=j(()=>r.delayDuration??s.delayDuration.value),u=j(()=>r.ignoreNonKeyboardFocus??s.ignoreNonKeyboardFocus.value),c=ls(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0});De(c,y=>{s.onClose&&(y?(s.onOpen(),document.dispatchEvent(new CustomEvent(ig))):s.onClose())});const d=V(!1),p=V(),h=j(()=>c.value?d.value?"delayed-open":"instant-open":"closed"),{start:g,stop:w}=Wp(()=>{d.value=!0,c.value=!0},l,{immediate:!1});function T(){w(),d.value=!1,c.value=!0}function v(){w(),c.value=!1}function S(){g()}return p_({contentId:"",open:c,stateAttribute:h,trigger:p,onTriggerChange(y){p.value=y},onTriggerEnter(){s.isOpenDelayed.value?S():T()},onTriggerLeave(){i.value?v():w()},onOpen:T,onClose:v,disableHoverableContent:i,disableClosingTrigger:o,disabled:a,ignoreNonKeyboardFocus:u}),(y,_)=>(I(),K(f(wh),null,{default:k(()=>[te(y.$slots,"default",{open:f(c)})]),_:3}))}}),og=X({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=ha(),i=pa(),{forwardRef:o,currentElement:a}=ke(),l=j(()=>r.ariaLabel||a.value?.textContent),u=j(()=>{const{ariaLabel:c,...d}=r;return Zp(d,i.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return Qe(()=>{Kt(window,"scroll",c=>{c.target?.contains(s.trigger.value)&&s.onClose()}),Kt(window,ig,s.onClose)}),(c,d)=>(I(),K(f(dc),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=p=>n("escapeKeyDown",p)),onPointerDownOutside:d[1]||(d[1]=p=>{f(s).disableClosingTrigger.value&&f(s).trigger.value?.contains(p.target)&&p.preventDefault(),n("pointerDownOutside",p)}),onFocusOutside:d[2]||(d[2]=gr(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=p=>f(s).onClose())},{default:k(()=>[D(f(Fh),me({ref:f(o),"data-state":f(s).stateAttribute.value},{...c.$attrs,...u.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:k(()=>[te(c.$slots,"default"),D(f(gc),{id:f(s).contentId,role:"tooltip"},{default:k(()=>[qe(Fe(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),g_=X({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){const t=cn(e),{forwardRef:r,currentElement:n}=ke(),{trigger:s,onClose:i}=ha(),o=pa(),{isPointerInTransit:a,onPointerExit:l}=lb(s,n);return o.isPointerInTransitRef=a,l(()=>{i()}),(u,c)=>(I(),K(og,me({ref:f(r)},f(t)),{default:k(()=>[te(u.$slots,"default")]),_:3},16))}}),v_=X({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=ha(),i=qr(r,n),{forwardRef:o}=ke();return(a,l)=>(I(),K(f(Nn),{present:a.forceMount||f(s).open.value},{default:k(()=>[(I(),K(ui(f(s).disableHoverableContent.value?og:g_),me({ref:f(o)},f(i)),{default:k(()=>[te(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),m_=X({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>(I(),K(f(hc),cr(Qt(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),w_=X({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,r=ha(),n=pa();r.contentId||(r.contentId=qs(void 0,"reka-tooltip-content"));const{forwardRef:s,currentElement:i}=ke(),o=V(!1),a=V(!1),l=j(()=>r.disabled.value?{}:{click:w,focus:h,pointermove:d,pointerleave:p,pointerdown:c,blur:g});Qe(()=>{r.onTriggerChange(i.value)});function u(){setTimeout(()=>{o.value=!1},1)}function c(){r.open&&!r.disableClosingTrigger.value&&r.onClose(),o.value=!0,document.addEventListener("pointerup",u,{once:!0})}function d(T){T.pointerType!=="touch"&&!a.value&&!n.isPointerInTransitRef.value&&(r.onTriggerEnter(),a.value=!0)}function p(){r.onTriggerLeave(),a.value=!1}function h(T){o.value||r.ignoreNonKeyboardFocus.value&&!T.target.matches?.(":focus-visible")||r.onOpen()}function g(){r.onClose()}function w(){r.disableClosingTrigger.value||r.onClose()}return(T,v)=>(I(),K(f(yh),{"as-child":"",reference:T.reference},{default:k(()=>[D(f(We),me({ref:f(s),"aria-describedby":f(r).open.value?f(r).contentId:void 0,"data-state":f(r).stateAttribute.value,as:T.as,"as-child":t.asChild,"data-grace-area-trigger":""},hd(l.value)),{default:k(()=>[te(T.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),y_=X({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},type:{default:"button"},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(r,n)=>(I(),K(f(We),{"data-slot":"button",as:e.as,"as-child":e.asChild,type:e.as==="button"?e.type:void 0,class:Xe(f(ct)(f(b_)({variant:e.variant,size:e.size}),t.class))},{default:k(()=>[te(r.$slots,"default")]),_:3},8,["as","as-child","type","class"]))}}),pt=y_;const b_=Lp("wp:inline-flex wp:items-center wp:justify-center wp:gap-2 wp:whitespace-nowrap wp:rounded-md wp:text-sm wp:font-medium wp:transition-all wp:disabled:pointer-events-none wp:disabled:opacity-50 wp:[&_svg]:pointer-events-none wp:[&_svg:not([class*='size-'])]:size-4 wp:shrink-0 wp:[&_svg]:shrink-0 wp:outline-none wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px] wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive",{variants:{variant:{default:"wp:bg-primary wp:text-primary-foreground wp:hover:bg-primary/90",destructive:"wp:bg-destructive wp:text-white wp:hover:bg-destructive/90 wp:focus-visible:ring-destructive/20 wp:dark:focus-visible:ring-destructive/40 wp:dark:bg-destructive/60",outline:"wp:border wp:bg-background wp:shadow-xs wp:hover:bg-accent wp:hover:text-accent-foreground wp:dark:bg-input/30 wp:dark:border-input wp:dark:hover:bg-input/50",secondary:"wp:bg-secondary wp:text-secondary-foreground wp:hover:bg-secondary/80",ghost:"wp:hover:bg-accent wp:hover:text-accent-foreground wp:dark:hover:bg-accent/50",link:"wp:text-primary wp:underline-offset-4 wp:hover:underline"},size:{default:"wp:h-9 wp:px-4 wp:py-2 wp:has-[>svg]:px-3",sm:"wp:h-8 wp:rounded-md wp:gap-1.5 wp:px-3 wp:has-[>svg]:px-2.5",lg:"wp:h-10 wp:rounded-md wp:px-6 wp:has-[>svg]:px-4",icon:"wp:size-9","icon-sm":"wp:size-8","icon-lg":"wp:size-10"}},defaultVariants:{variant:"default",size:"default"}});var __={class:"webphone-keypad wp:grid wp:grid-cols-3 wp:gap-y-3 wp:gap-x-6 wp:px-4 wp:py-2 wp:mx-auto wp:place-items-center"},S_=X({__name:"KeyPad",setup(e){const t=Vt("webphone"),{sendDTMF:r}=Vt("sip"),{playDtmf:n}=pp(),s=["1","2","3","4","5","6","7","8","9","*","0","#"],i=o=>{n(o),t.callStatus==="connected"&&r(o),t.appendKeypad(o)};return(o,a)=>(I(),Se("div",__,[(I(),Se(Ke,null,fr(s,l=>D(f(pt),{key:l,type:"button",onClick:u=>i(l),variant:"ghost",size:"icon",class:"webphone-keypad__key wp:flex wp:items-center wp:justify-center wp:h-10 wp:w-full wp:rounded-xs wp:text-lg wp:bg-neutral-100 wp:dark:bg-neutral-700 wp:hover:bg-neutral-200 wp:dark:hover:bg-neutral-600 wp:hover:text-primary wp:dark:hover:text-neutral-100 wp:text-primary wp:dark:text-white wp:transition-all wp:duration-150 wp:active:scale-95 wp:font-light montserrat","data-key":l},{default:k(()=>[qe(Fe(l),1)]),_:2},1032,["onClick","data-key"])),64))]))}}),Hc=S_;var ag=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),C_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),x_=e=>{const t=C_(e);return t.charAt(0).toUpperCase()+t.slice(1)},T_=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),lg=e=>e==="";var Hi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var E_=({name:e,iconNode:t,absoluteStrokeWidth:r,"absolute-stroke-width":n,strokeWidth:s,"stroke-width":i,size:o=Hi.width,color:a=Hi.stroke,...l},{slots:u})=>pr("svg",{...Hi,...l,width:o,height:o,stroke:a,"stroke-width":lg(r)||lg(n)||r===!0||n===!0?Number(s||i||Hi["stroke-width"])*24/Number(o):s||i||Hi["stroke-width"],class:T_("lucide",l.class,...e?[`lucide-${ag(x_(e))}-icon`,`lucide-${ag(e)}`]:["lucide-icon"])},[...t.map(c=>pr(...c)),...u.default?[u.default()]:[]]);var bt=(e,t)=>(r,{slots:n,attrs:s})=>pr(E_,{...s,...r,iconNode:t,name:e},n);var cg=bt("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);var ug=bt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var dg=bt("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var A_=bt("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var Mc=bt("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);var k_=bt("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);var R_=bt("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);var I_=bt("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var $_=bt("phone-incoming",[["path",{d:"M16 2v6h6",key:"1mfrl5"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var P_=bt("phone-missed",[["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var D_=bt("phone-outgoing",[["path",{d:"m16 8 6-6",key:"oawc05"}],["path",{d:"M22 8V2h-6",key:"oqy2zc"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var fg=bt("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var O_=bt("picture-in-picture-2",[["path",{d:"M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4",key:"daa4of"}],["rect",{width:"10",height:"7",x:"12",y:"13",rx:"2",key:"1nb8gs"}]]);var H_=bt("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);var M_=bt("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var N_=bt("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var q_=bt("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);var pg=bt("voicemail",[["circle",{cx:"6",cy:"12",r:"4",key:"1ehtga"}],["circle",{cx:"18",cy:"12",r:"4",key:"4vafl8"}],["line",{x1:"6",x2:"18",y1:"16",y2:"16",key:"pmt8us"}]]);var hg=bt("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);var Nc=bt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),B_=X({__name:"Input",props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=ls(r,"modelValue",t,{passive:!0,defaultValue:r.defaultValue});return(s,i)=>oo((I(),Se("input",{"onUpdate:modelValue":i[0]||(i[0]=o=>tt(n)?n.value=o:null),"data-slot":"input",class:Xe(f(ct)("wp:file:text-foreground wp:placeholder:text-muted-foreground wp:selection:bg-primary wp:selection:text-primary-foreground wp:dark:bg-input/30 wp:border-blue-500 wp:h-9 wp:w-full wp:min-w-0 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-1 wp:text-base wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:file:inline-flex wp:file:h-7 wp:file:border-0 wp:file:bg-transparent wp:file:text-sm wp:file:font-medium wp:disabled:pointer-events-none wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:md:text-sm","wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px]","wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive",r.class))},null,2)),[[bi,f(n)]])}}),Mi=B_,L_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"};function F_(e,t){return I(),Se("svg",L_,[...t[0]||(t[0]=[pl('<g clip-path="url(#a)"><path fill="currentColor" d="m1.913 7.003.035.49c0 .605.49 1.095 1.095 1.095.015 0 1.08-.14 1.08-.14a1.1 1.1 0 0 0 1.07-1.07l.075-.655c1.192-.463 2.33-.465 3.47-.005l.072.657c.01.585.485 1.06 1.07 1.07 0 0 1.065.14 1.08.14.605 0 1.095-.49 1.095-1.07l.038-.537c0-.575-.23-1.12-.65-1.54-1.91-1.91-6.973-1.908-8.88 0-.418.417-.65.965-.648 1.562zM10.94 5.94c.285.285.443.653.44 1.015l-.037.538a.39.39 0 0 1-.368.387s-1.057-.137-1.072-.137a.4.4 0 0 1-.388-.388c0-.015-.1-.92-.1-.92a.35.35 0 0 0-.207-.282c-1.43-.64-2.913-.643-4.408-.003a.36.36 0 0 0-.212.288s-.103.907-.103.917a.386.386 0 0 1-.387.388c-.015 0-1.073.137-1.073.137a.395.395 0 0 1-.37-.41l-.035-.49c0-.385.155-.755.44-1.04 1.74-1.74 6.383-1.497 7.88 0"></path></g><circle cx="7" cy="7" r="6.6" stroke="currentColor" stroke-width=".8"></circle><defs><clipPath id="a"><path fill="#fff" d="M7 13 1 7l6-6 6 6z"></path></clipPath></defs>',3)])])}var qc={render:F_},V_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 9 9"};function j_(e,t){return I(),Se("svg",V_,[...t[0]||(t[0]=[Q("g",{"clip-path":"url(#a)"},[Q("path",{fill:"currentColor",d:"M0 8.625V6a3.38 3.38 0 0 1 3.375-3.375h1.811V2.03a.75.75 0 0 1 1.28-.53l2.206 2.205a1.125 1.125 0 0 1 0 1.59L6.466 7.5a.75.75 0 0 1-1.28-.53v-.595H3a2.25 2.25 0 0 0-2.25 2.25.375.375 0 0 1-.75 0M5.936 3a.375.375 0 0 1-.375.375H3.375A2.63 2.63 0 0 0 .75 6v.643A3 3 0 0 1 3 5.625h2.561A.375.375 0 0 1 5.936 6v.97l2.205-2.205a.375.375 0 0 0 0-.53L5.936 2.03z"})],-1),Q("defs",null,[Q("clipPath",{id:"a"},[Q("path",{fill:"#fff",d:"M0 0h9v9H0z"})])],-1)])])}var U_={render:j_},z_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function K_(e,t){return I(),Se("svg",z_,[...t[0]||(t[0]=[pl('<g clip-path="url(#a)"><path fill="currentColor" d="m13.499 13.495.321-.371a1.095 1.095 0 0 0 0-1.549c-.01-.01-.862-.665-.862-.665a1.1 1.1 0 0 0-1.514 0l-.516.41c-1.17-.516-1.976-1.318-2.457-2.45l.414-.516a1.09 1.09 0 0 0 0-1.513s-.654-.852-.665-.863c-.428-.427-1.12-.427-1.53-.017l-.407.353c-.407.407-.63.955-.63 1.549 0 2.701 3.582 6.279 6.28 6.279.59 0 1.141-.223 1.562-.647zM6.364 7.863c0-.403.148-.774.406-1.029l.407-.354a.39.39 0 0 1 .534-.014s.65.845.661.856a.4.4 0 0 1 0 .548c-.01.01-.58.721-.58.721a.35.35 0 0 0-.053.347c.559 1.463 1.605 2.513 3.115 3.118a.36.36 0 0 0 .354-.053l.72-.576a.386.386 0 0 1 .549 0c.01.01.855.66.855.66a.395.395 0 0 1-.028.552l-.322.372a1.47 1.47 0 0 1-1.046.424c-2.46 0-5.572-3.454-5.572-5.572"></path></g><circle cx="9.899" cy="9.899" r="6.6" stroke="currentColor" stroke-width=".8" transform="rotate(-135 9.9 9.9)"></circle><defs><clipPath id="a"><path fill="#fff" d="M14.143 5.657v8.485H5.658V5.657z"></path></clipPath></defs>',3)])])}var W_={render:K_},G_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"2.8 2.8 14.2 14.2"};function J_(e,t){return I(),Se("svg",G_,[...t[0]||(t[0]=[Q("circle",{cx:"9.899",cy:"9.899",r:"6.6",stroke:"currentColor","stroke-width":".8",transform:"rotate(-135 9.9 9.9)"},null,-1),Q("path",{fill:"currentColor",d:"M13.634 8.18a.66.66 0 0 0-.729.094l-.585.591a1.663 1.663 0 0 0-1.653-1.531h-3C6.747 7.334 6 8.08 6 9v2a1.67 1.67 0 0 0 1.667 1.667h3c.876 0 1.589-.683 1.654-1.543l.585.585.036.03a.66.66 0 0 0 .692.063.66.66 0 0 0 .366-.591V8.77a.66.66 0 0 0-.366-.592M10.667 12h-3c-.552 0-1-.449-1-1V9c0-.551.448-1 1-1h3c.551 0 1 .449 1 1v2c0 .551-.449 1-1 1m1.666-1.806v-.396l1-1.01.009 2.413z"},null,-1)])])}var Y_={render:J_},Z_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function X_(e,t){return I(),Se("svg",Z_,[...t[0]||(t[0]=[Q("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.076-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.144.223c.192.26.44.468.726.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.75 1.75 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.93 1.93 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.143.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.03-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.797-.008l.07.043c.244.163.445.384.589.645a1.93 1.93 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.74 1.74 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zm-2.03-1.943c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222a1.97 1.97 0 0 0 1.569.803c.292 0 .58-.067.844-.196.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1)])])}var Bc={render:X_},Q_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function eS(e,t){return I(),Se("svg",Q_,[...t[0]||(t[0]=[Q("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.74 1.74 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.92 1.92 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.142.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.75 1.75 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.384.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.029-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.964.027.056.047.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.708 14.6c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222c.19.26.44.468.725.607a1.92 1.92 0 0 0 1.688 0c.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1),Q("path",{stroke:"currentColor","stroke-linecap":"round",d:"M2 16.293 16.293 2"},null,-1)])])}var Lc={render:eS},tS={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12"};function rS(e,t){return I(),Se("svg",tS,[...t[0]||(t[0]=[Q("path",{fill:"currentColor",d:"M9.75 1H4.5c-.678 0-1.314.302-1.743.828L.513 4.578a2.26 2.26 0 0 0 0 2.844l2.243 2.75A2.24 2.24 0 0 0 4.5 11h5.25C10.99 11 12 9.99 12 8.75v-5.5C12 2.01 10.99 1 9.75 1m1.75 7.75c0 .965-.785 1.75-1.75 1.75H4.5a1.74 1.74 0 0 1-1.356-.644L.901 7.106a1.755 1.755 0 0 1 0-2.212l2.243-2.75A1.74 1.74 0 0 1 4.5 1.499h5.25c.965 0 1.75.785 1.75 1.75zM8.927 4.427 7.354 6l1.573 1.573a.25.25 0 0 1-.354.353L7 6.355 5.427 7.926a.25.25 0 0 1-.354 0 .25.25 0 0 1 0-.353L6.646 6 5.073 4.427a.25.25 0 0 1 .354-.353L7 5.646l1.573-1.572a.25.25 0 0 1 .353.353z"},null,-1)])])}var Fc={render:rS},nS=["data-call-status"],sS={key:0,class:"webphone-actions__idle wp:!w-full wp:flex wp:flex-col wp:items-center wp:space-y-2 wp:mb-4"},iS={key:2,class:"webphone-actions__connected wp:w-full wp:flex wp:flex-col wp:items-center wp:gap-3"},oS={class:"webphone-actions__row wp:flex wp:items-center wp:gap-6"},aS={class:"webphone-actions__dialer wp:w-full wp:max-w-80 wp:relative"},lS=["data-visible"],cS={key:3,class:"webphone-actions__calling wp:w-full wp:flex wp:flex-col wp:items-center wp:gap-3"},uS={class:"webphone-actions__dialer wp:w-full wp:max-w-80 wp:relative"},dS=["data-visible"],fS={key:4,class:"webphone-actions__transfer-state wp:absolute wp:inset-x-0 wp:bottom-full wp:mb-2 wp:flex wp:justify-center wp:gap-2"},pS=X({__name:"CallActions",props:{destination:{},isVideo:{type:Boolean},onAnswer:{type:Function},onHangup:{type:Function},onReject:{type:Function}},emits:["transfer","completeTransfer","cancelTransfer"],setup(e,{emit:t}){const r=Vt("webphone"),{makeCall:n,hangupCall:s,answerCall:i,toggleMute:o,toggleHold:a,sendDTMF:l}=Vt("sip"),u=/^[0-9*#]+$/,c=C=>{if(u.test(C)){for(const b of C)l(b);for(const b of C)r.appendKeypad(b)}},d=C=>{C.ctrlKey||C.metaKey||C.altKey||C.key.length!==1||(C.preventDefault(),C.stopPropagation(),c(C.key))},p=C=>{C.data&&(C.preventDefault(),C.stopPropagation(),c(C.data))},h=C=>{C.preventDefault(),C.stopPropagation(),c(C.clipboardData?.getData("text").replace(/\s/g,"")||"")};De(()=>r.callStatus,(C,b)=>{C==="connected"&&b!=="connected"&&r.clearKeypad()});const g=e,w=t,T=j(()=>!!r.transferInProgress),v=j(()=>g.destination||r.keypadValue||r.lastDialedNumber||""),S=j(()=>!!g.destination||/^[+]?[0-9*#]+$/.test(r.keypadValue)),y=j(()=>S.value||!!r.lastDialedNumber),_=j(()=>!g.isVideo||!S.value?!1:v.value?/^[0-9*#]{1,5}$/.test(v.value):!0),E=async C=>{try{g.destination?await n(g.destination,C):r.keypadValue?await n(r.keypadValue,C):r.lastDialedNumber&&(r.keypadValue=r.lastDialedNumber)}catch(b){if(console.error("Error initiating call:",b),C){let x="No se pudo acceder a la cámara.";const O=b instanceof Error?b.name:String(b);O==="NotReadableError"?x="La cámara parece estar en uso por otra aplicación (ej: Zoom, Meet) o no se puede acceder al hardware.":O==="NotAllowedError"||O==="PermissionDeniedError"?x="Permiso de cámara denegado. Por favor, permita el acceso a la cámara.":O==="NotFoundError"?x="No se detectó ninguna cámara en el sistema.":x+=" "+(b instanceof Error?b.message:String(b)),confirm(`${x}
|
|
74
|
+
`))}return()=>s.value||n.value||o.value?gr(t.default({present:o.value})[0],{ref:u=>{const c=er(u);return typeof c?.hasAttribute>"u"||(c?.hasAttribute("data-reka-popper-content-wrapper")?i.value=c.firstElementChild:i.value=c),c}}):null}}),dc=X({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:r}){return()=>{if(!r.default)return null;const n=Xl(r.default()),s=n.findIndex(l=>l.type!==gt);if(s===-1)return n;const i=n[s];delete i.props?.ref;const o=i.props?ye(t,i.props):t,a=Er({...i,props:{}},o);return n.length===1?a:(n[s]=a,n)}}}),Rb=["area","img","input"],We=X({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:r}){const n=e.asChild?"template":e.as;return typeof n=="string"&&Rb.includes(n)?()=>gr(n,t):n!=="template"?()=>gr(e.as,t,{default:r.default}):()=>gr(dc,t,{default:r.default})}});function fc(){const e=V();return{primitiveElement:e,currentElement:j(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:er(e))}}var[Bn,Ib]=Dt("DialogRoot"),$b=X({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const r=e,n=cs(r,"open",t,{defaultValue:r.defaultOpen,passive:r.open===void 0}),s=V(),i=V(),{modal:o}=Nt(r);return Ib({open:n,modal:o,openModal:()=>{n.value=!0},onOpenChange:a=>{n.value=a},onOpenToggle:()=>{n.value=!n.value},contentId:"",titleId:"",descriptionId:"",triggerElement:s,contentElement:i}),(a,l)=>te(a.$slots,"default",{open:f(n),close:()=>n.value=!1})}}),Pb=X({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Re();const r=Bn();return(n,s)=>(I(),K(f(We),ye(t,{type:n.as==="button"?"button":void 0,onClick:s[0]||(s[0]=i=>f(r).onOpenChange(!1))}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["type"]))}}),Db="dismissableLayer.pointerDownOutside",Ob="dismissableLayer.focusOutside";function lh(e,t){const r=t.closest("[data-dismissable-layer]"),n=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(r&&(n===r||s.indexOf(n)<s.indexOf(r)))}function Hb(e,t,r=!0){const n=t?.value?.ownerDocument??globalThis?.document,s=V(!1),i=V(()=>{});return lt(o=>{if(!Bt||!ke(r))return;const a=async u=>{const c=u.target;if(!(!t?.value||!c)){if(lh(t.value,c)){s.value=!1;return}if(u.target&&!s.value){let h=function(){Yl(Db,e,p)};var d=h;const p={originalEvent:u};u.pointerType==="touch"?(n.removeEventListener("click",i.value),i.value=h,n.addEventListener("click",i.value,{once:!0})):h()}else n.removeEventListener("click",i.value);s.value=!1}},l=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);o(()=>{window.clearTimeout(l),n.removeEventListener("pointerdown",a),n.removeEventListener("click",i.value)})}),{onPointerDownCapture:()=>{ke(r)&&(s.value=!0)}}}function Mb(e,t,r=!0){const n=t?.value?.ownerDocument??globalThis?.document,s=V(!1);return lt(i=>{if(!Bt||!ke(r))return;const o=async a=>{if(!t?.value)return;await At(),await At();const l=a.target;!t.value||!l||lh(t.value,l)||a.target&&!s.value&&Yl(Ob,e,{originalEvent:a})};n.addEventListener("focusin",o),i(()=>n.removeEventListener("focusin",o))}),{onFocusCapture:()=>{ke(r)&&(s.value=!0)},onBlurCapture:()=>{ke(r)&&(s.value=!1)}}}var yr=Jr({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set}),pc=X({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const r=e,n=t,{forwardRef:s,currentElement:i}=Re(),o=j(()=>i.value?.ownerDocument??globalThis.document),a=j(()=>yr.layersRoot),l=j(()=>i.value?Array.from(a.value).indexOf(i.value):-1),u=j(()=>yr.layersWithOutsidePointerEventsDisabled.size>0),c=j(()=>{const h=Array.from(a.value),[m]=[...yr.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(m);return l.value>=y}),d=Hb(async h=>{const m=[...yr.branches].some(y=>y?.contains(h.target));!c.value||m||(n("pointerDownOutside",h),n("interactOutside",h),await At(),h.defaultPrevented||n("dismiss"))},i),p=Mb(h=>{[...yr.branches].some(m=>m?.contains(h.target))||(n("focusOutside",h),n("interactOutside",h),h.defaultPrevented||n("dismiss"))},i);return tb("Escape",h=>{l.value===a.value.size-1&&(n("escapeKeyDown",h),h.defaultPrevented||n("dismiss"))}),lt(h=>{i.value&&(r.disableOutsidePointerEvents&&(yr.layersWithOutsidePointerEventsDisabled.size===0&&(yr.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),yr.layersWithOutsidePointerEventsDisabled.add(i.value)),a.value.add(i.value),h(()=>{r.disableOutsidePointerEvents&&yr.layersWithOutsidePointerEventsDisabled.size===1&&!Zl(yr.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=yr.originalBodyPointerEvents)}))}),lt(h=>{h(()=>{i.value&&(a.value.delete(i.value),yr.layersWithOutsidePointerEventsDisabled.delete(i.value))})}),(h,m)=>(I(),K(f(We),{ref:f(s),"as-child":h.asChild,as:h.as,"data-dismissable-layer":"",style:xt({pointerEvents:u.value?c.value?"auto":"none":void 0}),onFocusCapture:f(p).onFocusCapture,onBlurCapture:f(p).onBlurCapture,onPointerdownCapture:f(d).onPointerDownCapture},{default:k(()=>[te(h.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Nb=Py(()=>V([]));function qb(){const e=Nb();return{add(t){const r=e.value[0];t!==r&&r?.pause(),e.value=ch(e.value,t),e.value.unshift(t)},remove(t){e.value=ch(e.value,t),e.value[0]?.resume()}}}function ch(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}var hc="focusScope.autoFocusOnMount",gc="focusScope.autoFocusOnUnmount",uh={bubbles:!1,cancelable:!0};function Bb(e,{select:t=!1}={}){const r=ir();for(const n of e)if(Ln(n,{select:t}),ir()!==r)return!0}function Lb(e){const t=dh(e);return[fh(t,e),fh(t.reverse(),e)]}function dh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function fh(e,t){for(const r of e)if(!Fb(r,{upTo:t}))return r}function Fb(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Vb(e){return e instanceof HTMLInputElement&&"select"in e}function Ln(e,{select:t=!1}={}){if(e&&e.focus){const r=ir();e.focus({preventScroll:!0}),e!==r&&Vb(e)&&t&&e.select()}}var ph=X({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const r=e,n=t,{currentRef:s,currentElement:i}=Re(),o=V(null),a=qb(),l=Jr({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});lt(c=>{if(!Bt)return;const d=i.value;if(!r.trapped)return;function p(T){if(l.paused||!d)return;const g=T.target;d.contains(g)?o.value=g:Ln(o.value,{select:!0})}function h(T){if(l.paused||!d)return;const g=T.relatedTarget;g!==null&&(d.contains(g)||Ln(o.value,{select:!0}))}function m(T){d.contains(o.value)||Ln(d)}document.addEventListener("focusin",p),document.addEventListener("focusout",h);const y=new MutationObserver(m);d&&y.observe(d,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",h),y.disconnect()})}),lt(async c=>{const d=i.value;if(await At(),!d)return;a.add(l);const p=ir();if(!d.contains(p)){const h=new CustomEvent(hc,uh);d.addEventListener(hc,m=>n("mountAutoFocus",m)),d.dispatchEvent(h),h.defaultPrevented||(Bb(dh(d),{select:!0}),ir()===p&&Ln(d))}c(()=>{d.removeEventListener(hc,y=>n("mountAutoFocus",y));const h=new CustomEvent(gc,uh),m=y=>{n("unmountAutoFocus",y)};d.addEventListener(gc,m),d.dispatchEvent(h),setTimeout(()=>{h.defaultPrevented||Ln(p??document.body,{select:!0}),d.removeEventListener(gc,m),a.remove(l)},0)})});function u(c){if(!r.loop&&!r.trapped||l.paused)return;const d=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,p=ir();if(d&&p){const h=c.currentTarget,[m,y]=Lb(h);m&&y?!c.shiftKey&&p===y?(c.preventDefault(),r.loop&&Ln(m,{select:!0})):c.shiftKey&&p===m&&(c.preventDefault(),r.loop&&Ln(y,{select:!0})):p===h&&c.preventDefault()}}return(c,d)=>(I(),K(f(We),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:u},{default:k(()=>[te(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),hh=["Enter"," "],jb=["ArrowDown","PageUp","Home"],Ub=["ArrowUp","PageDown","End"],iT=[...jb,...Ub],oT={ltr:[...hh,"ArrowRight"],rtl:[...hh,"ArrowLeft"]};function zb(e){return e?"open":"closed"}function gh(e){const t=ir();for(const r of e)if(r===t||(r.focus(),ir()!==t))return}var vh=X({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=Bn(),{forwardRef:i,currentElement:o}=Re();return s.titleId||(s.titleId=Ls(void 0,"reka-dialog-title")),s.descriptionId||(s.descriptionId=Ls(void 0,"reka-dialog-description")),Qe(()=>{s.contentElement=o,ir()!==document.body&&(s.triggerElement.value=ir())}),(a,l)=>(I(),K(f(ph),{"as-child":"",loop:"",trapped:r.trapFocus,onMountAutoFocus:l[5]||(l[5]=u=>n("openAutoFocus",u)),onUnmountAutoFocus:l[6]||(l[6]=u=>n("closeAutoFocus",u))},{default:k(()=>[$(f(pc),ye({id:f(s).contentId,ref:f(i),as:a.as,"as-child":a.asChild,"disable-outside-pointer-events":a.disableOutsidePointerEvents,role:"dialog","aria-describedby":f(s).descriptionId,"aria-labelledby":f(s).titleId,"data-state":f(zb)(f(s).open.value)},a.$attrs,{onDismiss:l[0]||(l[0]=u=>f(s).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=u=>n("escapeKeyDown",u)),onFocusOutside:l[2]||(l[2]=u=>n("focusOutside",u)),onInteractOutside:l[3]||(l[3]=u=>n("interactOutside",u)),onPointerDownOutside:l[4]||(l[4]=u=>n("pointerDownOutside",u))}),{default:k(()=>[te(a.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Kb=X({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=Bn(),i=ia(n),{forwardRef:o,currentElement:a}=Re();return ih(a),(l,u)=>(I(),K(vh,ye({...r,...f(i)},{ref:f(o),"trap-focus":f(s).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:u[0]||(u[0]=c=>{c.defaultPrevented||(c.preventDefault(),f(s).triggerElement.value?.focus())}),onPointerDownOutside:u[1]||(u[1]=c=>{const d=c.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0;(d.button===2||p)&&c.preventDefault()}),onFocusOutside:u[2]||(u[2]=c=>{c.preventDefault()})}),{default:k(()=>[te(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),Wb=X({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=ia(t);Re();const s=Bn(),i=V(!1),o=V(!1);return(a,l)=>(I(),K(vh,ye({...r,...f(n)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:l[0]||(l[0]=u=>{u.defaultPrevented||(i.value||f(s).triggerElement.value?.focus(),u.preventDefault()),i.value=!1,o.value=!1}),onInteractOutside:l[1]||(l[1]=u=>{u.defaultPrevented||(i.value=!0,u.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const c=u.target;f(s).triggerElement.value?.contains(c)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.value&&u.preventDefault()})}),{default:k(()=>[te(a.$slots,"default")]),_:3},16))}}),Gb=X({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=Bn(),i=ia(n),{forwardRef:o}=Re();return(a,l)=>(I(),K(f(qn),{present:a.forceMount||f(s).open.value},{default:k(()=>[f(s).modal.value?(I(),K(Kb,ye({key:0,ref:f(o)},{...r,...f(i),...a.$attrs}),{default:k(()=>[te(a.$slots,"default")]),_:3},16)):(I(),K(Wb,ye({key:1,ref:f(o)},{...r,...f(i),...a.$attrs}),{default:k(()=>[te(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Jb=X({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Bn();return th(!0),Re(),(r,n)=>(I(),K(f(We),{as:r.as,"as-child":r.asChild,"data-state":f(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:k(()=>[te(r.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Yb=X({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Bn(),{forwardRef:r}=Re();return(n,s)=>f(t)?.modal.value?(I(),K(f(qn),{key:0,present:n.forceMount||f(t).open.value},{default:k(()=>[$(Jb,ye(n.$attrs,{ref:f(r),as:n.as,"as-child":n.asChild}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):qe("v-if",!0)}}),vc=X({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=rc();return(r,n)=>f(t)||r.forceMount?(I(),K(Wa,{key:0,to:r.to,disabled:r.disabled,defer:r.defer},[te(r.$slots,"default")],8,["to","disabled","defer"])):qe("v-if",!0)}}),Zb=X({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>(I(),K(f(vc),dr(tr(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),Xb=X({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,r=Bn();return Re(),(n,s)=>(I(),K(f(We),ye(t,{id:f(r).titleId}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["id"]))}}),mh="data-reka-collection-item";function fn(e={}){const{key:t="",isProvider:r=!1}=e,n=`${t}CollectionProvider`;let s;r?(s={collectionRef:V(),itemMap:V(new Map)},Yn(n,s)):s=Vt(n);const i=(l=!1)=>{const u=s.collectionRef.value;if(!u)return[];const c=Array.from(u.querySelectorAll(`[${mh}]`)),d=Array.from(s.itemMap.value.values()).sort((p,h)=>c.indexOf(p.ref)-c.indexOf(h.ref));return l?d:d.filter(p=>p.ref.dataset.disabled!=="")},o=X({name:"CollectionSlot",inheritAttrs:!1,setup(l,{slots:u,attrs:c}){const{primitiveElement:d,currentElement:p}=fc();return He(p,()=>{s.collectionRef.value=p.value}),()=>gr(dc,{ref:d,...c},u)}}),a=X({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(l,{slots:u,attrs:c}){const{primitiveElement:d,currentElement:p}=fc();return lt(h=>{if(p.value){const m=Fa(p.value);s.itemMap.value.set(m,{ref:p.value,value:l.value}),h(()=>s.itemMap.value.delete(m))}}),()=>gr(dc,{...c,[mh]:"",ref:d},u)}});return{getItems:i,reactiveItems:j(()=>Array.from(s.itemMap.value.values())),itemMapSize:j(()=>s.itemMap.value.size),CollectionSlot:o,CollectionItem:a}}var mc=X({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,r)=>(I(),K(f(We),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:k(()=>[te(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),wh=X({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:r,currentElement:n}=fc();return He(j(()=>t.checked??t.value),(s,i)=>{if(!n.value)return;const o=n.value,a=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(l&&s!==i){const u=new Event("input",{bubbles:!0}),c=new Event("change",{bubbles:!0});l.call(o,s),o.dispatchEvent(u),o.dispatchEvent(c)}}),(s,i)=>(I(),K(mc,ye({ref_key:"primitiveElement",ref:r},{...t,...s.$attrs},{as:"input"}),null,16))}}),yh=X({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,r=j(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),n=j(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((s,i)=>typeof s=="object"?Object.entries(s).map(([o,a])=>({name:`${t.name}[${i}][${o}]`,value:a})):{name:`${t.name}[${i}]`,value:s}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([s,i])=>({name:`${t.name}[${s}]`,value:i})):[]);return(s,i)=>(I(),Se(Ke,null,[qe(" We render single input if it's required "),r.value?(I(),K(wh,ye({key:s.name},{...t,...s.$attrs},{name:s.name,value:s.value}),null,16,["name","value"])):(I(!0),Se(Ke,{key:1},hr(n.value,o=>(I(),K(wh,ye({key:o.name},{ref_for:!0},{...t,...s.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))],2112))}}),[bh,Qb]=Dt("PopperRoot"),_h=X({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=V();return Qb({anchor:t,onAnchorChange:r=>t.value=r}),(r,n)=>te(r.$slots,"default")}}),Sh=X({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:r,currentElement:n}=Re(),s=bh();return za(()=>{s.onAnchorChange(t.reference??n.value)}),(i,o)=>(I(),K(f(We),{ref:f(r),as:i.as,"as-child":i.asChild},{default:k(()=>[te(i.$slots,"default")]),_:3},8,["as","as-child"]))}}),e1={key:0,d:"M0 0L6 6L12 0"},t1={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"},r1=X({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return Re(),(r,n)=>(I(),K(f(We),ye(t,{width:r.width,height:r.height,viewBox:r.asChild?void 0:"0 0 12 6",preserveAspectRatio:r.asChild?void 0:"none"}),{default:k(()=>[te(r.$slots,"default",{},()=>[r.rounded?(I(),Se("path",t1)):(I(),Se("path",e1))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}});function n1(e){return e!==null}function s1(e){return{name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:s}=t,i=s.arrow?.centerOffset!==0,o=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[l,u]=wc(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(s.arrow?.x??0)+o/2,p=(s.arrow?.y??0)+a/2;let h="",m="";return l==="bottom"?(h=i?c:`${d}px`,m=`${-a}px`):l==="top"?(h=i?c:`${d}px`,m=`${n.floating.height+a}px`):l==="right"?(h=`${-a}px`,m=i?c:`${p}px`):l==="left"&&(h=`${n.floating.width+a}px`,m=i?c:`${p}px`),{data:{x:h,y:m}}}}}function wc(e){const[t,r="center"]=e.split("-");return[t,r]}var i1=["top","right","bottom","left"],Fn=Math.min,or=Math.max,ca=Math.round,ua=Math.floor,Fr=e=>({x:e,y:e}),o1={left:"right",right:"left",bottom:"top",top:"bottom"};function yc(e,t,r){return or(e,Fn(t,r))}function pn(e,t){return typeof e=="function"?e(t):e}function hn(e){return e.split("-")[0]}function Fs(e){return e.split("-")[1]}function bc(e){return e==="x"?"y":"x"}function _c(e){return e==="y"?"height":"width"}function Vr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Sc(e){return bc(Vr(e))}function a1(e,t,r){r===void 0&&(r=!1);const n=Fs(e),s=Sc(e),i=_c(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=da(o)),[o,da(o)]}function l1(e){const t=da(e);return[Cc(e),t,Cc(t)]}function Cc(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Ch=["left","right"],xh=["right","left"],c1=["top","bottom"],u1=["bottom","top"];function d1(e,t,r){switch(e){case"top":case"bottom":return r?t?xh:Ch:t?Ch:xh;case"left":case"right":return t?c1:u1;default:return[]}}function f1(e,t,r,n){const s=Fs(e);let i=d1(hn(e),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Cc)))),i}function da(e){const t=hn(e);return o1[t]+e.slice(t.length)}function p1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Th(e){return typeof e!="number"?p1(e):{top:e,right:e,bottom:e,left:e}}function fa(e){const{x:t,y:r,width:n,height:s}=e;return{width:n,height:s,top:r,left:t,right:t+n,bottom:r+s,x:t,y:r}}function Eh(e,t,r){let{reference:n,floating:s}=e;const i=Vr(t),o=Sc(t),a=_c(o),l=hn(t),u=i==="y",c=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2,p=n[a]/2-s[a]/2;let h;switch(l){case"top":h={x:c,y:n.y-s.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-s.width,y:d};break;default:h={x:n.x,y:n.y}}switch(Fs(t)){case"start":h[o]-=p*(r&&u?-1:1);break;case"end":h[o]+=p*(r&&u?-1:1);break}return h}async function h1(e,t){var r;t===void 0&&(t={});const{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=pn(t,e),m=Th(h),y=a[p?d==="floating"?"reference":"floating":d],T=fa(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),g=d==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},_=fa(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:b,strategy:l}):g);return{top:(T.top-_.top+m.top)/w.y,bottom:(_.bottom-T.bottom+m.bottom)/w.y,left:(T.left-_.left+m.left)/w.x,right:(_.right-T.right+m.right)/w.x}}var g1=50,v1=async(e,t,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:h1},l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:d}=Eh(u,n,l),p=n,h=0;const m={};for(let y=0;y<i.length;y++){const T=i[y];if(!T)continue;const{name:g,fn:b}=T,{x:w,y:_,data:E,reset:P}=await b({x:c,y:d,initialPlacement:n,placement:p,strategy:s,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});c=w??c,d=_??d,m[g]={...m[g],...E},P&&h<g1&&(h++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(u=P.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):P.rects),{x:c,y:d}=Eh(u,p,l)),y=-1)}return{x:c,y:d,placement:p,strategy:s,middlewareData:m}},m1=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=pn(e,t)||{};if(u==null)return{};const d=Th(c),p={x:r,y:n},h=Sc(s),m=_c(h),y=await o.getDimensions(u),T=h==="y",g=T?"top":"left",b=T?"bottom":"right",w=T?"clientHeight":"clientWidth",_=i.reference[m]+i.reference[h]-p[h]-i.floating[m],E=p[h]-i.reference[h],P=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let B=P?P[w]:0;(!B||!await(o.isElement==null?void 0:o.isElement(P)))&&(B=a.floating[w]||i.floating[m]);const v=_/2-E/2,N=B/2-y[m]/2-1,q=Fn(d[g],N),C=Fn(d[b],N),S=q,x=B-y[m]-C,O=B/2-y[m]/2+v,R=yc(S,O,x),M=!l.arrow&&Fs(s)!=null&&O!==R&&i.reference[m]/2-(O<S?q:C)-y[m]/2<0,z=M?O<S?O-S:O-x:0;return{[h]:p[h]+z,data:{[h]:R,centerOffset:O-R-z,...M&&{alignmentOffset:z}},reset:M}}}),w1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...T}=pn(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const g=hn(s),b=Vr(a),w=hn(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=p||(w||!y?[da(a)]:l1(a)),P=m!=="none";!p&&P&&E.push(...f1(a,y,m,_));const B=[a,...E],v=await l.detectOverflow(t,T),N=[];let q=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&N.push(v[g]),d){const O=a1(s,o,_);N.push(v[O[0]],v[O[1]])}if(q=[...q,{placement:s,overflows:N}],!N.every(O=>O<=0)){var C,S;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,R=B[O];if(R&&(!(d==="alignment"&&b!==Vr(R))||q.every(z=>Vr(z.placement)===b?z.overflows[0]>0:!0)))return{data:{index:O,overflows:q},reset:{placement:R}};let M=(S=q.filter(z=>z.overflows[0]<=0).sort((z,G)=>z.overflows[1]-G.overflows[1])[0])==null?void 0:S.placement;if(!M)switch(h){case"bestFit":{var x;const z=(x=q.filter(G=>{if(P){const ae=Vr(G.placement);return ae===b||ae==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(ae=>ae>0).reduce((ae,Y)=>ae+Y,0)]).sort((G,ae)=>G[1]-ae[1])[0])==null?void 0:x[0];z&&(M=z);break}case"initialPlacement":M=a;break}if(s!==M)return{reset:{placement:M}}}return{}}}};function Ah(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kh(e){return i1.some(t=>e[t]>=0)}var y1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:s="referenceHidden",...i}=pn(e,t);switch(s){case"referenceHidden":{const o=Ah(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:kh(o)}}}case"escaped":{const o=Ah(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:o,escaped:kh(o)}}}default:return{}}}}},Rh=new Set(["left","top"]);async function b1(e,t){const{placement:r,platform:n,elements:s}=e,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=hn(r),a=Fs(r),l=Vr(r)==="y",u=Rh.has(o)?-1:1,c=i&&l?-1:1,d=pn(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*c,y:p*u}:{x:p*u,y:h*c}}var _1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await b1(t,e);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},S1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:g=>{let{x:b,y:w}=g;return{x:b,y:w}}},...u}=pn(e,t),c={x:r,y:n},d=await i.detectOverflow(t,u),p=Vr(hn(s)),h=bc(p);let m=c[h],y=c[p];if(o){const g=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=m+d[g],_=m-d[b];m=yc(w,m,_)}if(a){const g=p==="y"?"top":"left",b=p==="y"?"bottom":"right",w=y+d[g],_=y-d[b];y=yc(w,y,_)}const T=l.fn({...t,[h]:m,[p]:y});return{...T,data:{x:T.x-r,y:T.y-n,enabled:{[h]:o,[p]:a}}}}}},C1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=pn(e,t),c={x:r,y:n},d=Vr(s),p=bc(d);let h=c[p],m=c[d];const y=pn(a,t),T=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const w=p==="y"?"height":"width",_=i.reference[p]-i.floating[w]+T.mainAxis,E=i.reference[p]+i.reference[w]-T.mainAxis;h<_?h=_:h>E&&(h=E)}if(u){var g,b;const w=p==="y"?"width":"height",_=Rh.has(hn(s)),E=i.reference[d]-i.floating[w]+(_&&((g=o.offset)==null?void 0:g[d])||0)+(_?0:T.crossAxis),P=i.reference[d]+i.reference[w]+(_?0:((b=o.offset)==null?void 0:b[d])||0)-(_?T.crossAxis:0);m<E?m=E:m>P&&(m=P)}return{[p]:h,[d]:m}}}},x1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...u}=pn(e,t),c=await o.detectOverflow(t,u),d=hn(s),p=Fs(s),h=Vr(s)==="y",{width:m,height:y}=i.floating;let T,g;d==="top"||d==="bottom"?(T=d,g=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(g=d,T=p==="end"?"top":"bottom");const b=y-c.top-c.bottom,w=m-c.left-c.right,_=Fn(y-c[T],b),E=Fn(m-c[g],w),P=!t.middlewareData.shift;let B=_,v=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(v=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(B=b),P&&!p){const q=or(c.left,0),C=or(c.right,0),S=or(c.top,0),x=or(c.bottom,0);h?v=m-2*(q!==0||C!==0?q+C:or(c.left,c.right)):B=y-2*(S!==0||x!==0?S+x:or(c.top,c.bottom))}await l({...t,availableWidth:v,availableHeight:B});const N=await o.getDimensions(a.floating);return m!==N.width||y!==N.height?{reset:{rects:!0}}:{}}}};function pa(){return typeof window<"u"}function us(e){return xc(e)?(e.nodeName||"").toLowerCase():"#document"}function ar(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jr(e){var t;return(t=(xc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xc(e){return pa()?e instanceof Node||e instanceof ar(e).Node:!1}function Ir(e){return pa()?e instanceof Element||e instanceof ar(e).Element:!1}function gn(e){return pa()?e instanceof HTMLElement||e instanceof ar(e).HTMLElement:!1}function Ih(e){return!pa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ar(e).ShadowRoot}function Mi(e){const{overflow:t,overflowX:r,overflowY:n,display:s}=$r(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&s!=="inline"&&s!=="contents"}function T1(e){return/^(table|td|th)$/.test(us(e))}function ha(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var E1=/transform|translate|scale|rotate|perspective|filter/,A1=/paint|layout|strict|content/,ds=e=>!!e&&e!=="none",Tc;function Ec(e){const t=Ir(e)?$r(e):e;return ds(t.transform)||ds(t.translate)||ds(t.scale)||ds(t.rotate)||ds(t.perspective)||!Ac()&&(ds(t.backdropFilter)||ds(t.filter))||E1.test(t.willChange||"")||A1.test(t.contain||"")}function k1(e){let t=Vn(e);for(;gn(t)&&!Vs(t);){if(Ec(t))return t;if(ha(t))return null;t=Vn(t)}return null}function Ac(){return Tc==null&&(Tc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Tc}function Vs(e){return/^(html|body|#document)$/.test(us(e))}function $r(e){return ar(e).getComputedStyle(e)}function ga(e){return Ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vn(e){if(us(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ih(e)&&e.host||jr(e);return Ih(t)?t.host:t}function $h(e){const t=Vn(e);return Vs(t)?e.ownerDocument?e.ownerDocument.body:e.body:gn(t)&&Mi(t)?t:$h(t)}function Ni(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=$h(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),o=ar(s);if(i){const a=kc(o);return t.concat(o,o.visualViewport||[],Mi(s)?s:[],a&&r?Ni(a):[])}else return t.concat(s,Ni(s,[],r))}function kc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ph(e){const t=$r(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const s=gn(e),i=s?e.offsetWidth:r,o=s?e.offsetHeight:n,a=ca(r)!==i||ca(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function Rc(e){return Ir(e)?e:e.contextElement}function js(e){const t=Rc(e);if(!gn(t))return Fr(1);const r=t.getBoundingClientRect(),{width:n,height:s,$:i}=Ph(t);let o=(i?ca(r.width):r.width)/n,a=(i?ca(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var R1=Fr(0);function Dh(e){const t=ar(e);return!Ac()||!t.visualViewport?R1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function I1(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ar(e)?!1:t}function fs(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=Rc(e);let o=Fr(1);t&&(n?Ir(n)&&(o=js(n)):o=js(e));const a=I1(i,r,n)?Dh(i):Fr(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,d=s.height/o.y;if(i){const p=ar(i),h=n&&Ir(n)?ar(n):n;let m=p,y=kc(m);for(;y&&n&&h!==m;){const T=js(y),g=y.getBoundingClientRect(),b=$r(y),w=g.left+(y.clientLeft+parseFloat(b.paddingLeft))*T.x,_=g.top+(y.clientTop+parseFloat(b.paddingTop))*T.y;l*=T.x,u*=T.y,c*=T.x,d*=T.y,l+=w,u+=_,m=ar(y),y=kc(m)}}return fa({width:c,height:d,x:l,y:u})}function va(e,t){const r=ga(e).scrollLeft;return t?t.left+r:fs(jr(e)).left+r}function Oh(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-va(e,r),y:r.top+t.scrollTop}}function $1(e){let{elements:t,rect:r,offsetParent:n,strategy:s}=e;const i=s==="fixed",o=jr(n),a=t?ha(t.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},u=Fr(1);const c=Fr(0),d=gn(n);if((d||!d&&!i)&&((us(n)!=="body"||Mi(o))&&(l=ga(n)),d)){const h=fs(n);u=js(n),c.x=h.x+n.clientLeft,c.y=h.y+n.clientTop}const p=o&&!d&&!i?Oh(o,l):Fr(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+p.x,y:r.y*u.y-l.scrollTop*u.y+c.y+p.y}}function P1(e){return Array.from(e.getClientRects())}function D1(e){const t=jr(e),r=ga(e),n=e.ownerDocument.body,s=or(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=or(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+va(e);const a=-r.scrollTop;return $r(n).direction==="rtl"&&(o+=or(t.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}var Hh=25;function O1(e,t){const r=ar(e),n=jr(e),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=Ac();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}const u=va(n);if(u<=0){const c=n.ownerDocument,d=c.body,p=getComputedStyle(d),h=c.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-h);m<=Hh&&(i-=m)}else u<=Hh&&(i+=u);return{width:i,height:o,x:a,y:l}}function H1(e,t){const r=fs(e,!0,t==="fixed"),n=r.top+e.clientTop,s=r.left+e.clientLeft,i=gn(e)?js(e):Fr(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:s*i.x,y:n*i.y}}function Mh(e,t,r){let n;if(t==="viewport")n=O1(e,r);else if(t==="document")n=D1(jr(e));else if(Ir(t))n=H1(t,r);else{const s=Dh(e);n={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return fa(n)}function Nh(e,t){const r=Vn(e);return r===t||!Ir(r)||Vs(r)?!1:$r(r).position==="fixed"||Nh(r,t)}function M1(e,t){const r=t.get(e);if(r)return r;let n=Ni(e,[],!1).filter(a=>Ir(a)&&us(a)!=="body"),s=null;const i=$r(e).position==="fixed";let o=i?Vn(e):e;for(;Ir(o)&&!Vs(o);){const a=$r(o),l=Ec(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&s&&(s.position==="absolute"||s.position==="fixed")||Mi(o)&&!l&&Nh(e,o))?n=n.filter(u=>u!==o):s=a,o=Vn(o)}return t.set(e,n),n}function N1(e){let{element:t,boundary:r,rootBoundary:n,strategy:s}=e;const i=[...r==="clippingAncestors"?ha(t)?[]:M1(t,this._c):[].concat(r),n],o=Mh(t,i[0],s);let a=o.top,l=o.right,u=o.bottom,c=o.left;for(let d=1;d<i.length;d++){const p=Mh(t,i[d],s);a=or(p.top,a),l=Fn(p.right,l),u=Fn(p.bottom,u),c=or(p.left,c)}return{width:l-c,height:u-a,x:c,y:a}}function q1(e){const{width:t,height:r}=Ph(e);return{width:t,height:r}}function B1(e,t,r){const n=gn(t),s=jr(t),i=r==="fixed",o=fs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Fr(0);function u(){l.x=va(s)}if(n||!n&&!i)if((us(t)!=="body"||Mi(s))&&(a=ga(t)),n){const d=fs(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else s&&u();i&&!n&&s&&u();const c=s&&!n&&!i?Oh(s,a):Fr(0);return{x:o.left+a.scrollLeft-l.x-c.x,y:o.top+a.scrollTop-l.y-c.y,width:o.width,height:o.height}}function Ic(e){return $r(e).position==="static"}function qh(e,t){if(!gn(e)||$r(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return jr(e)===r&&(r=r.ownerDocument.body),r}function Bh(e,t){const r=ar(e);if(ha(e))return r;if(!gn(e)){let s=Vn(e);for(;s&&!Vs(s);){if(Ir(s)&&!Ic(s))return s;s=Vn(s)}return r}let n=qh(e,t);for(;n&&T1(n)&&Ic(n);)n=qh(n,t);return n&&Vs(n)&&Ic(n)&&!Ec(n)?r:n||k1(e)||r}var L1=async function(e){const t=this.getOffsetParent||Bh,r=this.getDimensions,n=await r(e.floating);return{reference:B1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function F1(e){return $r(e).direction==="rtl"}var V1={convertOffsetParentRelativeRectToViewportRelativeRect:$1,getDocumentElement:jr,getClippingRect:N1,getOffsetParent:Bh,getElementRects:L1,getClientRects:P1,getDimensions:q1,getScale:js,isElement:Ir,isRTL:F1};function Lh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function j1(e,t){let r=null,n;const s=jr(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:h}=u;if(a||t(),!p||!h)return;const m=ua(d),y=ua(s.clientWidth-(c+p)),T=ua(s.clientHeight-(d+h)),g=ua(c),b={rootMargin:-m+"px "+-y+"px "+-T+"px "+-g+"px",threshold:or(0,Fn(1,l))||1};let w=!0;function _(E){const P=E[0].intersectionRatio;if(P!==l){if(!w)return o();P?o(!1,P):n=setTimeout(()=>{o(!1,1e-7)},1e3)}P===1&&!Lh(u,e.getBoundingClientRect())&&o(),w=!1}try{r=new IntersectionObserver(_,{...b,root:s.ownerDocument})}catch{r=new IntersectionObserver(_,b)}r.observe(e)}return o(!0),i}function U1(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Rc(e),c=s||i?[...u?Ni(u):[],...t?Ni(t):[]]:[];c.forEach(g=>{s&&g.addEventListener("scroll",r,{passive:!0}),i&&g.addEventListener("resize",r)});const d=u&&a?j1(u,r):null;let p=-1,h=null;o&&(h=new ResizeObserver(g=>{let[b]=g;b&&b.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),u&&!l&&h.observe(u),t&&h.observe(t));let m,y=l?fs(e):null;l&&T();function T(){const g=fs(e);y&&!Lh(y,g)&&r(),y=g,m=requestAnimationFrame(T)}return r(),()=>{var g;c.forEach(b=>{s&&b.removeEventListener("scroll",r),i&&b.removeEventListener("resize",r)}),d?.(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(m)}}var z1=_1,K1=S1,Fh=w1,W1=x1,G1=y1,J1=m1,Y1=C1,Z1=(e,t,r)=>{const n=new Map,s={platform:V1,...r},i={...s.platform,_c:n};return v1(e,t,{...s,platform:i})};function X1(e){return e!=null&&typeof e=="object"&&"$el"in e}function $c(e){if(X1(e)){const t=e.$el;return xc(t)&&us(t)==="#comment"?null:t}return e}function Us(e){return typeof e=="function"?e():f(e)}function Q1(e){return{name:"arrow",options:e,fn(t){const r=$c(Us(e.element));return r==null?{}:J1({element:r,padding:e.padding}).fn(t)}}}function Vh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jh(e,t){const r=Vh(e);return Math.round(t*r)/r}function e2(e,t,r){r===void 0&&(r={});const n=r.whileElementsMounted,s=j(()=>{var B;return(B=Us(r.open))!=null?B:!0}),i=j(()=>Us(r.middleware)),o=j(()=>{var B;return(B=Us(r.placement))!=null?B:"bottom"}),a=j(()=>{var B;return(B=Us(r.strategy))!=null?B:"absolute"}),l=j(()=>{var B;return(B=Us(r.transform))!=null?B:!0}),u=j(()=>$c(e.value)),c=j(()=>$c(t.value)),d=V(0),p=V(0),h=V(a.value),m=V(o.value),y=ft({}),T=V(!1),g=j(()=>{const B={position:h.value,left:"0",top:"0"};if(!c.value)return B;const v=jh(c.value,d.value),N=jh(c.value,p.value);return l.value?{...B,transform:"translate("+v+"px, "+N+"px)",...Vh(c.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:v+"px",top:N+"px"}});let b;function w(){if(u.value==null||c.value==null)return;const B=s.value;Z1(u.value,c.value,{middleware:i.value,placement:o.value,strategy:a.value}).then(v=>{d.value=v.x,p.value=v.y,h.value=v.strategy,m.value=v.placement,y.value=v.middlewareData,T.value=B!==!1})}function _(){typeof b=="function"&&(b(),b=void 0)}function E(){if(_(),n===void 0){w();return}if(u.value!=null&&c.value!=null){b=n(u.value,c.value,w);return}}function P(){s.value||(T.value=!1)}return He([i,o,a,s],w,{flush:"sync"}),He([u,c],E,{flush:"sync"}),He(s,P,{flush:"sync"}),Xi()&&$a(_),{x:Yr(d),y:Yr(p),strategy:Yr(h),placement:Yr(m),middlewareData:Yr(y),isPositioned:Yr(T),floatingStyles:g,update:w}}var t2={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[r2,n2]=Dt("PopperContent"),Uh=X({inheritAttrs:!1,__name:"PopperContent",props:yd({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...t2}),emits:["placed"],setup(e,{emit:t}){const r=e,n=t,s=bh(),{forwardRef:i,currentElement:o}=Re(),a=V(),l=V(),{width:u,height:c}=oh(l),d=j(()=>r.side+(r.align!=="center"?`-${r.align}`:"")),p=j(()=>typeof r.collisionPadding=="number"?r.collisionPadding:{top:0,right:0,bottom:0,left:0,...r.collisionPadding}),h=j(()=>Array.isArray(r.collisionBoundary)?r.collisionBoundary:[r.collisionBoundary]),m=j(()=>({padding:p.value,boundary:h.value.filter(n1),altBoundary:h.value.length>0})),y=j(()=>({mainAxis:r.sideFlip,crossAxis:r.alignFlip})),T=Iy(()=>[z1({mainAxis:r.sideOffset+c.value,alignmentAxis:r.alignOffset}),r.prioritizePosition&&r.avoidCollisions&&Fh({...m.value,...y.value}),r.avoidCollisions&&K1({mainAxis:!0,crossAxis:!!r.prioritizePosition,limiter:r.sticky==="partial"?Y1():void 0,...m.value}),!r.prioritizePosition&&r.avoidCollisions&&Fh({...m.value,...y.value}),W1({...m.value,apply:({elements:q,rects:C,availableWidth:S,availableHeight:x})=>{const{width:O,height:R}=C.reference,M=q.floating.style;M.setProperty("--reka-popper-available-width",`${S}px`),M.setProperty("--reka-popper-available-height",`${x}px`),M.setProperty("--reka-popper-anchor-width",`${O}px`),M.setProperty("--reka-popper-anchor-height",`${R}px`)}}),l.value&&Q1({element:l.value,padding:r.arrowPadding}),s1({arrowWidth:u.value,arrowHeight:c.value}),r.hideWhenDetached&&G1({strategy:"referenceHidden",...m.value})]),{floatingStyles:g,placement:b,isPositioned:w,middlewareData:_,update:E}=e2(j(()=>r.reference??s.anchor.value),a,{strategy:r.positionStrategy,placement:d,whileElementsMounted:(...q)=>U1(...q,{layoutShift:!r.disableUpdateOnLayoutShift,animationFrame:r.updatePositionStrategy==="always"}),middleware:T}),P=j(()=>wc(b.value)[0]),B=j(()=>wc(b.value)[1]);za(()=>{w.value&&n("placed")});const v=j(()=>{const q=_.value.arrow?.centerOffset!==0;return r.hideShiftedArrow&&q}),N=V("");return lt(()=>{o.value&&(N.value=window.getComputedStyle(o.value).zIndex)}),n2({placedSide:P,onArrowChange:q=>l.value=q,arrowX:j(()=>_.value.arrow?.x??0),arrowY:j(()=>_.value.arrow?.y??0),shouldHideArrow:v}),(q,C)=>(I(),Se("div",{ref_key:"floatingRef",ref:a,"data-reka-popper-content-wrapper":"",style:xt({...f(g),transform:f(w)?f(g).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:N.value,"--reka-popper-transform-origin":[f(_).transformOrigin?.x,f(_).transformOrigin?.y].join(" "),...f(_).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[$(f(We),ye({ref:f(i)},q.$attrs,{"as-child":r.asChild,as:q.as,"data-side":P.value,"data-align":B.value,style:{animation:f(w)?void 0:"none"}}),{default:k(()=>[te(q.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),s2={top:"bottom",right:"left",bottom:"top",left:"right"},i2=X({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=Re(),r=r2(),n=j(()=>s2[r.placedSide.value]);return(s,i)=>(I(),Se("span",{ref:o=>{f(r).onArrowChange(o)},style:xt({position:"absolute",left:f(r).arrowX?.value?`${f(r).arrowX?.value}px`:void 0,top:f(r).arrowY?.value?`${f(r).arrowY?.value}px`:void 0,[n.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f(r).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f(r).placedSide.value],visibility:f(r).shouldHideArrow.value?"hidden":void 0})},[$(r1,ye(s.$attrs,{ref:f(t),style:{display:"block"},as:s.as,"as-child":s.asChild,rounded:s.rounded,width:s.width,height:s.height}),{default:k(()=>[te(s.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}});function zh(e){const t=ta({nonce:V()});return j(()=>e?.value||t.nonce?.value)}function o2(e=[],t,r){const n=[...e];return n[r]=t,n.sort((s,i)=>s-i)}function Kh(e,t,r){return Hi(100/(r-t)*(e-t),0,100)}function a2(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function l2(e,t){if(e.length===1)return 0;const r=e.map(s=>Math.abs(s-t)),n=Math.min(...r);return r.indexOf(n)}function c2(e,t,r){const n=e/2;return(n-Pc([0,50],[0,n])(t)*r)*r}function u2(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function d2(e,t){if(t>0){const r=u2(e);return Math.min(...r)>=t}return!0}function Pc(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function f2(e){return(String(e).split(".")[1]||"").length}function p2(e,t){const r=10**t;return Math.round(e*r)/r}var Wh=["PageUp","PageDown"],Gh=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Jh={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageUp","ArrowUp","ArrowLeft"]},[Yh,Zh]=Dt(["SliderVertical","SliderHorizontal"]),h2=X({__name:"SliderHorizontal",props:{dir:{type:String,required:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,{max:s,min:i,dir:o,inverted:a}=Nt(r),{forwardRef:l,currentElement:u}=Re(),c=zs(),d=V(),p=V(),h=j(()=>o?.value!=="rtl"&&!a.value||o?.value!=="ltr"&&a.value);function m(y,T){const g=p.value||u.value.getBoundingClientRect(),b=[...c.thumbElements.value][c.valueIndexToChangeRef.value],w=c.thumbAlignment.value==="contain"?b.clientWidth:0;!d.value&&!T&&c.thumbAlignment.value==="contain"&&(d.value=y.clientX-b.getBoundingClientRect().left);const _=Pc([0,g.width-w],h.value?[i.value,s.value]:[s.value,i.value]);return p.value=g,_(T?y.clientX-g.left-w/2:y.clientX-g.left-(d.value??0))}return Zh({startEdge:j(()=>h.value?"left":"right"),endEdge:j(()=>h.value?"right":"left"),direction:j(()=>h.value?1:-1),size:"width"}),(y,T)=>(I(),K(Xh,{ref:f(l),dir:f(o),"data-orientation":"horizontal",style:xt({"--reka-slider-thumb-transform":!h.value&&f(c).thumbAlignment.value==="overflow"?"translateX(50%)":"translateX(-50%)"}),onSlideStart:T[0]||(T[0]=g=>{n("slideStart",m(g,!0))}),onSlideMove:T[1]||(T[1]=g=>{n("slideMove",m(g))}),onSlideEnd:T[2]||(T[2]=()=>{p.value=void 0,d.value=void 0,n("slideEnd")}),onStepKeyDown:T[3]||(T[3]=g=>{const b=h.value?"from-left":"from-right";n("stepKeyDown",g,f(Jh)[b].includes(g.key)?-1:1)}),onEndKeyDown:T[4]||(T[4]=g=>n("endKeyDown",g)),onHomeKeyDown:T[5]||(T[5]=g=>n("homeKeyDown",g))},{default:k(()=>[te(y.$slots,"default")]),_:3},8,["dir","style"]))}}),g2=X({__name:"SliderVertical",props:{min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,{max:s,min:i,inverted:o}=Nt(r),a=zs(),{forwardRef:l,currentElement:u}=Re(),c=V(),d=V(),p=j(()=>!o.value);function h(m,y){const T=d.value||u.value.getBoundingClientRect(),g=[...a.thumbElements.value][a.valueIndexToChangeRef.value],b=a.thumbAlignment.value==="contain"?g.clientHeight:0;!c.value&&!y&&a.thumbAlignment.value==="contain"&&(c.value=m.clientY-g.getBoundingClientRect().top);const w=Pc([0,T.height-b],p.value?[s.value,i.value]:[i.value,s.value]),_=y?m.clientY-T.top-b/2:m.clientY-T.top-(c.value??0);return d.value=T,w(_)}return Zh({startEdge:j(()=>p.value?"bottom":"top"),endEdge:j(()=>p.value?"top":"bottom"),direction:j(()=>p.value?1:-1),size:"height"}),(m,y)=>(I(),K(Xh,{ref:f(l),"data-orientation":"vertical",style:xt({"--reka-slider-thumb-transform":!p.value&&f(a).thumbAlignment.value==="overflow"?"translateY(-50%)":"translateY(50%)"}),onSlideStart:y[0]||(y[0]=T=>{n("slideStart",h(T,!0))}),onSlideMove:y[1]||(y[1]=T=>{n("slideMove",h(T))}),onSlideEnd:y[2]||(y[2]=()=>{d.value=void 0,c.value=void 0,n("slideEnd")}),onStepKeyDown:y[3]||(y[3]=T=>{const g=p.value?"from-bottom":"from-top";n("stepKeyDown",T,f(Jh)[g].includes(T.key)?-1:1)}),onEndKeyDown:y[4]||(y[4]=T=>n("endKeyDown",T)),onHomeKeyDown:y[5]||(y[5]=T=>n("homeKeyDown",T))},{default:k(()=>[te(m.$slots,"default")]),_:3},8,["style"]))}}),[zs,v2]=Dt("SliderRoot"),m2=X({inheritAttrs:!1,__name:"SliderRoot",props:{defaultValue:{type:Array,required:!1,default:()=>[0]},modelValue:{type:[Array,null],required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},inverted:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},minStepsBetweenThumbs:{type:Number,required:!1,default:0},thumbAlignment:{type:String,required:!1,default:"contain"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const r=e,n=t,{min:s,max:i,step:o,minStepsBetweenThumbs:a,orientation:l,disabled:u,thumbAlignment:c,dir:d}=Nt(r),p=oc(d),{forwardRef:h,currentElement:m}=Re(),y=lc(m),{CollectionSlot:T}=fn({isProvider:!0}),g=cs(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0}),b=j(()=>Array.isArray(g.value)?[...g.value]:[]),w=V(0),_=V(b.value);function E(q){v(q,l2(b.value,q))}function P(q){v(q,w.value)}function B(){const q=_.value[w.value];b.value[w.value]!==q&&n("valueCommit",ze(b.value))}function v(q,C,{commit:S}={commit:!1}){const x=f2(o.value),O=Hi(p2(Math.round((q-s.value)/o.value)*o.value+s.value,x),s.value,i.value),R=o2(b.value,O,C);if(d2(R,a.value*o.value)){w.value=R.indexOf(O);const M=String(R)!==String(g.value);M&&S&&n("valueCommit",R),M&&(N.value[w.value]?.focus(),g.value=R)}}const N=V([]);return v2({modelValue:g,currentModelValue:b,valueIndexToChangeRef:w,thumbElements:N,orientation:l,min:s,max:i,disabled:u,thumbAlignment:c}),(q,C)=>(I(),K(f(T),null,{default:k(()=>[(I(),K(gi(f(l)==="horizontal"?h2:g2),ye(q.$attrs,{ref:f(h),"as-child":q.asChild,as:q.as,min:f(s),max:f(i),dir:f(p),inverted:q.inverted,"aria-disabled":f(u),"data-disabled":f(u)?"":void 0,onPointerdown:C[0]||(C[0]=()=>{f(u)||(_.value=b.value)}),onSlideStart:C[1]||(C[1]=S=>!f(u)&&E(S)),onSlideMove:C[2]||(C[2]=S=>!f(u)&&P(S)),onSlideEnd:C[3]||(C[3]=S=>!f(u)&&B()),onHomeKeyDown:C[4]||(C[4]=S=>!f(u)&&v(f(s),0,{commit:!0})),onEndKeyDown:C[5]||(C[5]=S=>!f(u)&&v(f(i),b.value.length-1,{commit:!0})),onStepKeyDown:C[6]||(C[6]=(S,x)=>{if(!f(u)){const O=f(Wh).includes(S.key)||S.shiftKey&&f(Gh).includes(S.key)?10:1,R=w.value,M=b.value[R];v(M+f(o)*O*x,R,{commit:!0})}})}),{default:k(()=>[te(q.$slots,"default",{modelValue:f(g)}),f(y)&&q.name?(I(),K(f(yh),{key:0,type:"number",value:f(g),name:q.name,required:q.required,disabled:f(u),step:f(o)},null,8,["value","name","required","disabled","step"])):qe("v-if",!0)]),_:3},16,["as-child","as","min","max","dir","inverted","aria-disabled","data-disabled"]))]),_:3}))}}),Xh=X({__name:"SliderImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},emits:["slideStart","slideMove","slideEnd","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const r=e,n=t,s=zs();return(i,o)=>(I(),K(f(We),ye({"data-slider-impl":""},r,{onKeydown:o[0]||(o[0]=a=>{a.key==="Home"?(n("homeKeyDown",a),a.preventDefault()):a.key==="End"?(n("endKeyDown",a),a.preventDefault()):f(Wh).concat(f(Gh)).includes(a.key)&&(n("stepKeyDown",a),a.preventDefault())}),onPointerdown:o[1]||(o[1]=a=>{const l=a.target;l.setPointerCapture(a.pointerId),a.preventDefault(),f(s).thumbElements.value.includes(l)?l.focus():n("slideStart",a)}),onPointermove:o[2]||(o[2]=a=>{a.target.hasPointerCapture(a.pointerId)&&n("slideMove",a)}),onPointerup:o[3]||(o[3]=a=>{const l=a.target;l.hasPointerCapture(a.pointerId)&&(l.releasePointerCapture(a.pointerId),n("slideEnd",a))})}),{default:k(()=>[te(i.$slots,"default")]),_:3},16))}}),w2=X({__name:"SliderRange",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=zs(),r=Yh();Re();const n=j(()=>t.currentModelValue.value.map(o=>Kh(o,t.min.value,t.max.value))),s=j(()=>t.currentModelValue.value.length>1?Math.min(...n.value):0),i=j(()=>100-Math.max(...n.value,0));return(o,a)=>(I(),K(f(We),{"data-disabled":f(t).disabled.value?"":void 0,"data-orientation":f(t).orientation.value,"as-child":o.asChild,as:o.as,style:xt({[f(r).startEdge.value]:`${s.value}%`,[f(r).endEdge.value]:`${i.value}%`})},{default:k(()=>[te(o.$slots,"default")]),_:3},8,["data-disabled","data-orientation","as-child","as","style"]))}}),y2=X({inheritAttrs:!1,__name:"SliderThumbImpl",props:{index:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=zs(),n=Yh(),{forwardRef:s,currentElement:i}=Re(),{CollectionItem:o}=fn(),a=j(()=>r.modelValue?.value?.[t.index]),l=j(()=>a.value===void 0?0:Kh(a.value,r.min.value??0,r.max.value??100)),u=j(()=>a2(t.index,r.modelValue?.value?.length??0)),c=oh(i),d=j(()=>c[n.size].value),p=j(()=>r.thumbAlignment.value==="overflow"||!d.value?0:c2(d.value,l.value,n.direction.value)),h=rc();return Qe(()=>{r.thumbElements.value.push(i.value)}),jt(()=>{const m=r.thumbElements.value.findIndex(y=>y===i.value)??-1;r.thumbElements.value.splice(m,1)}),(m,y)=>(I(),K(f(o),null,{default:k(()=>[$(f(We),ye(m.$attrs,{ref:f(s),role:"slider",tabindex:f(r).disabled.value?void 0:0,"aria-label":m.$attrs["aria-label"]||u.value,"data-disabled":f(r).disabled.value?"":void 0,"data-orientation":f(r).orientation.value,"aria-valuenow":a.value,"aria-valuemin":f(r).min.value,"aria-valuemax":f(r).max.value,"aria-orientation":f(r).orientation.value,"as-child":m.asChild,as:m.as,style:{transform:"var(--reka-slider-thumb-transform)",position:"absolute",[f(n).startEdge.value]:`calc(${l.value}% + ${p.value}px)`,display:!f(h)&&a.value===void 0?"none":void 0},onFocus:y[0]||(y[0]=()=>{f(r).valueIndexToChangeRef.value=m.index})}),{default:k(()=>[te(m.$slots,"default")]),_:3},16,["tabindex","aria-label","data-disabled","data-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","as-child","as","style"])]),_:3}))}}),b2=X({__name:"SliderThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{getItems:r}=fn(),{forwardRef:n,currentElement:s}=Re(),i=j(()=>s.value?r(!0).findIndex(o=>o.ref===s.value):-1);return(o,a)=>(I(),K(y2,ye({ref:f(n)},t,{index:i.value}),{default:k(()=>[te(o.$slots,"default")]),_:3},16,["index"]))}}),_2=X({__name:"SliderTrack",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=zs();return Re(),(r,n)=>(I(),K(f(We),{"as-child":r.asChild,as:r.as,"data-disabled":f(t).disabled.value?"":void 0,"data-orientation":f(t).orientation.value},{default:k(()=>[te(r.$slots,"default")]),_:3},8,["as-child","as","data-disabled","data-orientation"]))}}),S2=X({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(e){const t=e;return Re(),(r,n)=>(I(),K(f(We),ye(t,{onMousedown:n[0]||(n[0]=s=>{!s.defaultPrevented&&s.detail>1&&s.preventDefault()})}),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),[lr,C2]=Dt("ScrollAreaRoot"),x2=X({__name:"ScrollAreaRoot",props:{type:{type:String,required:!1,default:"hover"},dir:{type:String,required:!1},scrollHideDelay:{type:Number,required:!1,default:600},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const r=e,n=V(0),s=V(0),i=V(),o=V(),a=V(),l=V(),u=V(!1),c=V(!1),{type:d,dir:p,scrollHideDelay:h}=Nt(r),m=oc(p);function y(){i.value?.scrollTo({top:0})}function T(){i.value?.scrollTo({top:0,left:0})}t({viewport:i,scrollTop:y,scrollTopLeft:T});const{forwardRef:g,currentElement:b}=Re();return C2({type:d,dir:m,scrollHideDelay:h,scrollArea:b,viewport:i,onViewportChange:w=>{i.value=w||void 0},content:o,onContentChange:w=>{o.value=w},scrollbarX:a,scrollbarXEnabled:u,scrollbarY:l,scrollbarYEnabled:c,onScrollbarXChange:w=>{a.value=w||void 0},onScrollbarYChange:w=>{l.value=w||void 0},onScrollbarXEnabledChange:w=>{u.value=w},onScrollbarYEnabledChange:w=>{c.value=w},onCornerWidthChange:w=>{n.value=w},onCornerHeightChange:w=>{s.value=w}}),(w,_)=>(I(),K(f(We),{ref:f(g),"as-child":r.asChild,as:w.as,dir:f(m),style:xt({position:"relative","--reka-scroll-area-corner-width":`${n.value}px`,"--reka-scroll-area-corner-height":`${s.value}px`})},{default:k(()=>[te(w.$slots,"default")]),_:3},8,["as-child","as","dir","style"]))}}),T2=X({__name:"ScrollAreaCornerImpl",setup(e){const t=lr(),r=V(0),n=V(0),s=j(()=>!!r.value&&!!n.value);function i(){const a=t.scrollbarX.value?.offsetHeight||0;t.onCornerHeightChange(a),n.value=a}function o(){const a=t.scrollbarY.value?.offsetWidth||0;t.onCornerWidthChange(a),r.value=a}return ls(t.scrollbarX.value,i),ls(t.scrollbarY.value,o),He(()=>t.scrollbarX.value,i),He(()=>t.scrollbarY.value,o),(a,l)=>s.value?(I(),K(f(We),ye({key:0,style:{width:`${r.value}px`,height:`${n.value}px`,position:"absolute",right:f(t).dir.value==="ltr"?0:void 0,left:f(t).dir.value==="rtl"?0:void 0,bottom:0}},a.$parent?.$props),{default:k(()=>[te(a.$slots,"default")]),_:3},16,["style"])):qe("v-if",!0)}}),E2=X({__name:"ScrollAreaCorner",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:r}=Re(),n=lr(),s=j(()=>!!n.scrollbarX.value&&!!n.scrollbarY.value),i=j(()=>n.type.value!=="scroll"&&s.value);return(o,a)=>i.value?(I(),K(T2,ye({key:0},t,{ref:f(r)}),{default:k(()=>[te(o.$slots,"default")]),_:3},16)):qe("v-if",!0)}});function Qh(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function ma(e){const t=eg(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function eg(e,t){const r=e/t;return Number.isNaN(r)?0:r}function A2(e,t=()=>{}){let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function s(){const i={left:e.scrollLeft,top:e.scrollTop},o=r.left!==i.left,a=r.top!==i.top;(o||a)&&t(),r=i,n=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(n)}function tg(e,t,r="ltr"){const n=ma(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-s,o=t.content-t.viewport,a=i-n,l=r==="ltr"?[0,o]:[o*-1,0],u=Hi(e,l[0],l[1]);return Qh([0,o],[0,a])(u)}function wa(e){return e?Number.parseInt(e,10):0}function k2(e,t,r,n="ltr"){const s=ma(r),i=s/2,o=t||i,a=s-o,l=r.scrollbar.paddingStart+o,u=r.scrollbar.size-r.scrollbar.paddingEnd-a,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return Qh([l,u],d)(e)}function rg(e,t){return e>0&&e<t}var R2=X({__name:"ScrollAreaScrollbarX",setup(e){const t=lr(),r=ya(),{forwardRef:n,currentElement:s}=Re();Qe(()=>{s.value&&t.onScrollbarXChange(s.value)});const i=j(()=>r.sizes.value);return(o,a)=>(I(),K(ng,{ref:f(n),"is-horizontal":!0,"data-orientation":"horizontal",style:xt({bottom:0,left:f(t).dir.value==="rtl"?"var(--reka-scroll-area-corner-width)":0,right:f(t).dir.value==="ltr"?"var(--reka-scroll-area-corner-width)":0,"--reka-scroll-area-thumb-width":i.value?`${f(ma)(i.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>f(r).onDragScroll(l.x))},{default:k(()=>[te(o.$slots,"default")]),_:3},8,["style"]))}}),I2=X({__name:"ScrollAreaScrollbarY",setup(e){const t=lr(),r=ya(),{forwardRef:n,currentElement:s}=Re();Qe(()=>{s.value&&t.onScrollbarYChange(s.value)});const i=j(()=>r.sizes.value);return(o,a)=>(I(),K(ng,{ref:f(n),"is-horizontal":!1,"data-orientation":"vertical",style:xt({top:0,right:f(t).dir.value==="ltr"?0:void 0,left:f(t).dir.value==="rtl"?0:void 0,bottom:"var(--reka-scroll-area-corner-height)","--reka-scroll-area-thumb-height":i.value?`${f(ma)(i.value)}px`:void 0}),onOnDragScroll:a[0]||(a[0]=l=>f(r).onDragScroll(l.y))},{default:k(()=>[te(o.$slots,"default")]),_:3},8,["style"]))}}),Dc=X({__name:"ScrollAreaScrollbarAuto",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=lr(),r=qi(),{forwardRef:n}=Re(),s=V(!1),i=tc(()=>{if(t.viewport.value){const o=t.viewport.value.offsetWidth<t.viewport.value.scrollWidth,a=t.viewport.value.offsetHeight<t.viewport.value.scrollHeight;s.value=r.isHorizontal.value?o:a}},10);return Qe(()=>i()),ls(t.viewport,i),ls(t.content,i),(o,a)=>(I(),K(f(qn),{present:o.forceMount||s.value},{default:k(()=>[$(Oc,ye(o.$attrs,{ref:f(n),"data-state":s.value?"visible":"hidden"}),{default:k(()=>[te(o.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),$2=X({inheritAttrs:!1,__name:"ScrollAreaScrollbarGlimpse",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=lr(),r=qi(),{forwardRef:n}=Re(),{state:s,dispatch:i}=uc("hidden",{hidden:{POINTER_ENTER:"glimpse",SCROLL:"scrolling"},glimpse:{HIDE:"hidden",POINTER_LEAVE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"glimpse"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),o=j(()=>s.value!=="hidden");function a(){i("POINTER_ENTER")}function l(){i("POINTER_LEAVE")}const u=tc(()=>i("SCROLL_END"),100);return lt(c=>{if(s.value==="glimpse"){const d=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);c(()=>{window.clearTimeout(d)})}}),lt(c=>{if(s.value==="idle"){const d=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);c(()=>{window.clearTimeout(d)})}}),lt(c=>{const d=t.viewport.value,p=r.isHorizontal.value?"scrollLeft":"scrollTop";if(d){let h=d[p];const m=()=>{const y=d[p];h!==y&&(i("SCROLL"),u()),h=y};d.addEventListener("scroll",m),c(()=>{d.removeEventListener("scroll",m)})}}),Qe(()=>{const c=t.scrollArea.value;c&&(c.addEventListener("pointerenter",a),c.addEventListener("pointerleave",l))}),jt(()=>{const c=t.scrollArea.value;c&&(c.removeEventListener("pointerenter",a),c.removeEventListener("pointerleave",l))}),(c,d)=>(I(),K(f(qn),{present:c.forceMount||o.value},{default:k(()=>[$(Dc,ye(c.$attrs,{ref:f(n),"data-state":o.value?"visible":"hidden"}),{default:k(()=>[te(c.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),P2=X({inheritAttrs:!1,__name:"ScrollAreaScrollbarHover",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=lr(),{forwardRef:r}=Re();let n;const s=V(!1);function i(){window.clearTimeout(n),s.value=!0}function o(){n=window.setTimeout(()=>{s.value=!1},t.scrollHideDelay.value)}return Qe(()=>{const a=t.scrollArea.value;a&&(a.addEventListener("pointerenter",i),a.addEventListener("pointerleave",o))}),jt(()=>{const a=t.scrollArea.value;a&&(window.clearTimeout(n),a.removeEventListener("pointerenter",i),a.removeEventListener("pointerleave",o))}),(a,l)=>(I(),K(f(qn),{present:a.forceMount||s.value},{default:k(()=>[$(Dc,ye(a.$attrs,{ref:f(r),"data-state":s.value?"visible":"hidden"}),{default:k(()=>[te(a.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),D2=X({__name:"ScrollAreaScrollbarScroll",props:{forceMount:{type:Boolean,required:!1}},setup(e){const t=lr(),r=qi(),{forwardRef:n}=Re(),{state:s,dispatch:i}=uc("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}),o=j(()=>s.value!=="hidden");lt(l=>{if(s.value==="idle"){const u=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay.value);l(()=>{window.clearTimeout(u)})}});const a=tc(()=>i("SCROLL_END"),100);return lt(l=>{const u=t.viewport.value,c=r.isHorizontal.value?"scrollLeft":"scrollTop";if(u){let d=u[c];const p=()=>{const h=u[c];d!==h&&(i("SCROLL"),a()),d=h};u.addEventListener("scroll",p),l(()=>{u.removeEventListener("scroll",p)})}}),(l,u)=>(I(),K(f(qn),{present:l.forceMount||o.value},{default:k(()=>[$(Oc,ye(l.$attrs,{ref:f(n),"data-state":o.value?"visible":"hidden"}),{default:k(()=>[te(l.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),[qi,O2]=Dt("ScrollAreaScrollbar"),H2=X({inheritAttrs:!1,__name:"ScrollAreaScrollbar",props:{orientation:{type:String,required:!1,default:"vertical"},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,{forwardRef:r}=Re(),n=lr(),s=j(()=>t.orientation==="horizontal");He(s,()=>{s.value?n.onScrollbarXEnabledChange(!0):n.onScrollbarYEnabledChange(!0)},{immediate:!0}),jt(()=>{n.onScrollbarXEnabledChange(!1),n.onScrollbarYEnabledChange(!1)});const{orientation:i,forceMount:o,asChild:a,as:l}=Nt(t);return O2({orientation:i,forceMount:o,isHorizontal:s,as:l,asChild:a}),(u,c)=>f(n).type.value==="hover"?(I(),K(P2,ye({key:0},u.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[te(u.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="scroll"?(I(),K(D2,ye({key:1},u.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[te(u.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="glimpse"?(I(),K($2,ye({key:2},u.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[te(u.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="auto"?(I(),K(Dc,ye({key:3},u.$attrs,{ref:f(r),"force-mount":f(o)}),{default:k(()=>[te(u.$slots,"default")]),_:3},16,["force-mount"])):f(n).type.value==="always"?(I(),K(Oc,ye({key:4},u.$attrs,{ref:f(r),"data-state":"visible"}),{default:k(()=>[te(u.$slots,"default")]),_:3},16)):qe("v-if",!0)}}),[ya,M2]=Dt("ScrollAreaScrollbarVisible"),Oc=X({__name:"ScrollAreaScrollbarVisible",setup(e){const t=lr(),r=qi(),{forwardRef:n}=Re(),s=V({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),i=j(()=>{const g=eg(s.value.viewport,s.value.content);return g>0&&g<1}),o=V(),a=V(0);function l(g,b){if(h.value){const w=t.viewport.value.scrollLeft+g.deltaY;t.viewport.value.scrollLeft=w,rg(w,b)&&g.preventDefault()}else{const w=t.viewport.value.scrollTop+g.deltaY;t.viewport.value.scrollTop=w,rg(w,b)&&g.preventDefault()}}function u(g,b){h.value?a.value=b.x:a.value=b.y}function c(g){a.value=0}function d(g){s.value=g}function p(g,b){return k2(g,a.value,s.value,b)}const h=j(()=>r.isHorizontal.value);function m(g){h.value?t.viewport.value.scrollLeft=p(g,t.dir.value):t.viewport.value.scrollTop=p(g)}function y(){if(h.value){if(t.viewport.value&&o.value){const g=t.viewport.value.scrollLeft,b=tg(g,s.value,t.dir.value);o.value.style.transform=`translate3d(${b}px, 0, 0)`}}else if(t.viewport.value&&o.value){const g=t.viewport.value.scrollTop,b=tg(g,s.value);o.value.style.transform=`translate3d(0, ${b}px, 0)`}}function T(g){o.value=g}return M2({sizes:s,hasThumb:i,handleWheelScroll:l,handleThumbDown:u,handleThumbUp:c,handleSizeChange:d,onThumbPositionChange:y,onThumbChange:T,onDragScroll:m}),(g,b)=>h.value?(I(),K(R2,ye({key:0},g.$attrs,{ref:f(n)}),{default:k(()=>[te(g.$slots,"default")]),_:3},16)):(I(),K(I2,ye({key:1},g.$attrs,{ref:f(n)}),{default:k(()=>[te(g.$slots,"default")]),_:3},16))}}),ng=X({__name:"ScrollAreaScrollbarImpl",props:{isHorizontal:{type:Boolean,required:!0}},emits:["onDragScroll","onWheelScroll","onThumbPointerDown"],setup(e,{emit:t}){const r=e,n=t,s=lr(),i=ya(),o=qi(),{forwardRef:a,currentElement:l}=Re(),u=V(""),c=V();function d(g){c.value&&n("onDragScroll",{x:g.clientX-c.value?.left,y:g.clientY-c.value?.top})}function p(g){g.button===0&&(g.target.setPointerCapture(g.pointerId),c.value=l.value.getBoundingClientRect(),u.value=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",s.viewport&&(s.viewport.value.style.scrollBehavior="auto"),d(g))}function h(g){d(g)}function m(g){const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),document.body.style.webkitUserSelect=u.value,s.viewport&&(s.viewport.value.style.scrollBehavior=""),c.value=void 0}function y(g){const b=g.target,w=l.value?.contains(b),_=i.sizes.value.content-i.sizes.value.viewport;w&&i.handleWheelScroll(g,_)}Qe(()=>{document.addEventListener("wheel",y,{passive:!1})}),jt(()=>{document.removeEventListener("wheel",y)});function T(){l.value&&(r.isHorizontal?i.handleSizeChange({content:s.viewport.value?.scrollWidth??0,viewport:s.viewport.value?.offsetWidth??0,scrollbar:{size:l.value.clientWidth??0,paddingStart:wa(getComputedStyle(l.value).paddingLeft),paddingEnd:wa(getComputedStyle(l.value).paddingRight)}}):i.handleSizeChange({content:s.viewport.value?.scrollHeight??0,viewport:s.viewport.value?.offsetHeight??0,scrollbar:{size:l.value?.clientHeight??0,paddingStart:wa(getComputedStyle(l.value).paddingTop),paddingEnd:wa(getComputedStyle(l.value).paddingBottom)}}),i.onThumbPositionChange())}return ls(l,T),ls(s.content,T),(g,b)=>(I(),K(f(We),{ref:f(a),style:{position:"absolute"},"data-scrollbarimpl":"",as:f(o).as.value,"as-child":f(o).asChild.value,onPointerdown:p,onPointermove:h,onPointerup:m},{default:k(()=>[te(g.$slots,"default")]),_:3},8,["as","as-child"]))}}),N2=X({__name:"ScrollAreaThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=lr(),n=ya();function s(d){const p=d.target.getBoundingClientRect(),h=d.clientX-p.left,m=d.clientY-p.top;n.handleThumbDown(d,{x:h,y:m})}function i(d){n.handleThumbUp(d)}const{forwardRef:o,currentElement:a}=Re(),l=V(),u=j(()=>r.viewport.value);function c(){l.value||(l.value=A2(u.value,n.onThumbPositionChange),n.onThumbPositionChange())}return Xy(j(()=>n.sizes.value),()=>{n.onThumbChange(a.value),u.value&&(n.onThumbPositionChange(),u.value.addEventListener("scroll",c))}),jt(()=>{u.value.removeEventListener("scroll",c),r.viewport.value?.removeEventListener("scroll",c)}),(d,p)=>(I(),K(f(We),{ref:f(o),"data-state":f(n).hasThumb?"visible":"hidden",style:{width:"var(--reka-scroll-area-thumb-width)",height:"var(--reka-scroll-area-thumb-height)"},"as-child":t.asChild,as:d.as,onPointerdown:s,onPointerup:i},{default:k(()=>[te(d.$slots,"default")]),_:3},8,["data-state","as-child","as"]))}}),q2=X({inheritAttrs:!1,__name:"ScrollAreaViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const r=e,{nonce:n}=Nt(r),s=zh(n),i=lr(),o=V();Qe(()=>{i.onViewportChange(o.value),i.onContentChange(l.value)}),t({viewportElement:o});const{forwardRef:a,currentElement:l}=Re();return(u,c)=>(I(),Se(Ke,null,[Q("div",ye({ref_key:"viewportElement",ref:o,"data-reka-scroll-area-viewport":"",style:{overflowX:f(i).scrollbarXEnabled.value?"scroll":"hidden",overflowY:f(i).scrollbarYEnabled.value?"scroll":"hidden"}},u.$attrs,{tabindex:0}),[$(f(We),{ref:f(a),style:xt({minWidth:f(i).scrollbarXEnabled.value?"fit-content":void 0}),"as-child":r.asChild,as:u.as},{default:k(()=>[te(u.$slots,"default")]),_:3},8,["style","as-child","as"])],16),$(f(We),{as:"style",nonce:f(s)},{default:k(()=>c[0]||(c[0]=[Ne(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-scroll-area-viewport] { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; } [data-reka-scroll-area-viewport]::-webkit-scrollbar { display:none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),B2=[" ","Enter","ArrowUp","ArrowDown"],L2=[" ","Enter"],aT=10;function Bi(e,t,r){return e===void 0?!1:Array.isArray(e)?e.some(n=>Hc(n,t,r)):Hc(e,t,r)}function Hc(e,t,r){return e===void 0||t===void 0?!1:typeof e=="string"?e===t:typeof r=="function"?r(e,t):typeof r=="string"?e?.[r]===t?.[r]:Ry(e,t)}function F2(e){return e==null||e===""||Array.isArray(e)&&e.length===0}var V2={key:0,value:""},[jn,sg]=Dt("SelectRoot"),j2=X({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=e,n=t,{required:s,disabled:i,multiple:o,dir:a}=Nt(r),l=cs(r,"modelValue",n,{defaultValue:r.defaultValue??(o.value?[]:void 0),passive:r.modelValue===void 0,deep:!0}),u=cs(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),c=V(),d=V(),p=V({x:0,y:0}),h=j(()=>o.value&&Array.isArray(l.value)?l.value?.length===0:Zl(l.value));fn({isProvider:!0});const m=oc(a),y=lc(c),T=V(new Set),g=j(()=>Array.from(T.value).map(_=>_.value).join(";"));function b(_){if(o.value){const E=Array.isArray(l.value)?[...l.value]:[],P=E.findIndex(B=>Hc(B,_,r.by));P===-1?E.push(_):E.splice(P,1),l.value=[...E]}else l.value=_}function w(_){return Array.from(T.value).find(E=>Bi(_,E.value,r.by))}return sg({triggerElement:c,onTriggerChange:_=>{c.value=_},valueElement:d,onValueElementChange:_=>{d.value=_},contentId:"",modelValue:l,onValueChange:b,by:r.by,open:u,multiple:o,required:s,onOpenChange:_=>{u.value=_},dir:m,triggerPointerDownPosRef:p,disabled:i,isEmptyModelValue:h,optionsSet:T,onOptionAdd:_=>{const E=w(_.value);E&&T.value.delete(E),T.value.add(_)},onOptionRemove:_=>{const E=w(_.value);E&&T.value.delete(E)}}),(_,E)=>(I(),K(f(_h),null,{default:k(()=>[te(_.$slots,"default",{modelValue:f(l),open:f(u)}),f(y)?(I(),K(U2,{key:g.value,"aria-hidden":"true",tabindex:"-1",multiple:f(o),required:f(s),name:_.name,autocomplete:_.autocomplete,disabled:f(i),value:f(l)},{default:k(()=>[f(Zl)(f(l))?(I(),Se("option",V2)):qe("v-if",!0),(I(!0),Se(Ke,null,hr(Array.from(T.value),P=>(I(),Se("option",ye({key:P.value??""},{ref_for:!0},P),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):qe("v-if",!0)]),_:3}))}}),U2=X({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){const t=e,r=V(),n=jn();He(()=>t.value,(i,o)=>{const a=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==o&&l&&r.value){const u=new Event("change",{bubbles:!0});l.call(r.value,i),r.value.dispatchEvent(u)}});function s(i){n.onValueChange(i.target.value)}return(i,o)=>(I(),K(f(mc),{"as-child":""},{default:k(()=>[Q("select",ye({ref_key:"selectElement",ref:r},t,{onInput:s}),[te(i.$slots,"default")],16)]),_:3}))}}),z2=X({__name:"SelectPopperPosition",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:10},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=dn(e);return(r,n)=>(I(),K(f(Uh),ye(f(t),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),K2={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[ps,ig]=Dt("SelectContent"),W2=X({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=jn();pb(),th(r.bodyLock);const{CollectionSlot:i,getItems:o}=fn(),a=V();ih(a);const{search:l,handleTypeaheadSearch:u}=ah(),c=V(),d=V(),p=V(),h=V(!1),m=V(!1),y=V(!1);function T(){d.value&&a.value&&gh([d.value,a.value])}He(h,()=>{T()});const{onOpenChange:g,triggerPointerDownPosRef:b}=s;lt(E=>{if(!a.value)return;let P={x:0,y:0};const B=N=>{P={x:Math.abs(Math.round(N.pageX)-(b.value?.x??0)),y:Math.abs(Math.round(N.pageY)-(b.value?.y??0))}},v=N=>{N.pointerType!=="touch"&&(P.x<=10&&P.y<=10?N.preventDefault():a.value?.contains(N.target)||g(!1),document.removeEventListener("pointermove",B),b.value=null)};b.value!==null&&(document.addEventListener("pointermove",B),document.addEventListener("pointerup",v,{capture:!0,once:!0})),E(()=>{document.removeEventListener("pointermove",B),document.removeEventListener("pointerup",v,{capture:!0})})});function w(E){const P=E.ctrlKey||E.altKey||E.metaKey;if(E.key==="Tab"&&E.preventDefault(),!P&&E.key.length===1&&u(E.key,o()),["ArrowUp","ArrowDown","Home","End"].includes(E.key)){let B=[...o().map(v=>v.ref)];if(["ArrowUp","End"].includes(E.key)&&(B=B.slice().reverse()),["ArrowUp","ArrowDown"].includes(E.key)){const v=E.target,N=B.indexOf(v);B=B.slice(N+1)}setTimeout(()=>gh(B)),E.preventDefault()}}const _=dn(j(()=>r.position==="popper"?r:{}).value);return ig({content:a,viewport:c,onViewportChange:E=>{c.value=E},itemRefCallback:(E,P,B)=>{const v=!m.value&&!B,N=Bi(s.modelValue.value,P,s.by);if(s.multiple.value){if(y.value)return;(N||v)&&(d.value=E,N&&(y.value=!0))}else(N||v)&&(d.value=E);v&&(m.value=!0)},selectedItem:d,selectedItemText:p,onItemLeave:()=>{a.value?.focus()},itemTextRefCallback:(E,P,B)=>{const v=!m.value&&!B;(Bi(s.modelValue.value,P,s.by)||v)&&(p.value=E)},focusSelectedItem:T,position:r.position,isPositioned:h,searchRef:l}),(E,P)=>(I(),K(f(i),null,{default:k(()=>[$(f(ph),{"as-child":"",onMountAutoFocus:P[6]||(P[6]=Zt(()=>{},["prevent"])),onUnmountAutoFocus:P[7]||(P[7]=B=>{n("closeAutoFocus",B),!B.defaultPrevented&&(f(s).triggerElement.value?.focus({preventScroll:!0}),B.preventDefault())})},{default:k(()=>[$(f(pc),{"as-child":"","disable-outside-pointer-events":E.disableOutsidePointerEvents,onFocusOutside:P[2]||(P[2]=Zt(()=>{},["prevent"])),onDismiss:P[3]||(P[3]=B=>f(s).onOpenChange(!1)),onEscapeKeyDown:P[4]||(P[4]=B=>n("escapeKeyDown",B)),onPointerDownOutside:P[5]||(P[5]=B=>n("pointerDownOutside",B))},{default:k(()=>[(I(),K(gi(E.position==="popper"?z2:J2),ye({...E.$attrs,...f(_)},{id:f(s).contentId,ref:B=>{const v=f(er)(B);v?.hasAttribute("data-reka-popper-content-wrapper")?a.value=v.firstElementChild:a.value=v},role:"listbox","data-state":f(s).open.value?"open":"closed",dir:f(s).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:P[0]||(P[0]=Zt(()=>{},["prevent"])),onPlaced:P[1]||(P[1]=B=>h.value=!0),onKeydown:w}),{default:k(()=>[te(E.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),[Mc,G2]=Dt("SelectItemAlignedPosition"),J2=X({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(e,{emit:t}){const r=e,n=t,{getItems:s}=fn(),i=jn(),o=ps(),a=V(!1),l=V(!0),u=V(),{forwardRef:c,currentElement:d}=Re(),{viewport:p,selectedItem:h,selectedItemText:m,focusSelectedItem:y}=o;function T(){if(i.triggerElement.value&&i.valueElement.value&&u.value&&d.value&&p?.value&&h?.value&&m?.value){const w=i.triggerElement.value.getBoundingClientRect(),_=d.value.getBoundingClientRect(),E=i.valueElement.value.getBoundingClientRect(),P=m.value.getBoundingClientRect();if(i.dir.value!=="rtl"){const Oe=P.left-_.left,nt=E.left-Oe,_t=w.left-nt,Be=w.width+_t,st=Math.max(Be,_.width),ht=window.innerWidth-10,wt=Hi(nt,10,Math.max(10,ht-st));u.value.style.minWidth=`${Be}px`,u.value.style.left=`${wt}px`}else{const Oe=_.right-P.right,nt=window.innerWidth-E.right-Oe,_t=window.innerWidth-w.right-nt,Be=w.width+_t,st=Math.max(Be,_.width),ht=window.innerWidth-10,wt=Hi(nt,10,Math.max(10,ht-st));u.value.style.minWidth=`${Be}px`,u.value.style.right=`${wt}px`}const B=s().map(Oe=>Oe.ref),v=window.innerHeight-20,N=p.value.scrollHeight,q=window.getComputedStyle(d.value),C=Number.parseInt(q.borderTopWidth,10),S=Number.parseInt(q.paddingTop,10),x=Number.parseInt(q.borderBottomWidth,10),O=Number.parseInt(q.paddingBottom,10),R=C+S+N+O+x,M=Math.min(h.value.offsetHeight*5,R),z=window.getComputedStyle(p.value),G=Number.parseInt(z.paddingTop,10),ae=Number.parseInt(z.paddingBottom,10),Y=w.top+w.height/2-10,le=v-Y,de=h.value.offsetHeight/2,Ie=h.value.offsetTop+de,je=C+S+Ie,$e=R-je;if(je<=Y){const Oe=h.value===B[B.length-1];u.value.style.bottom="0px";const nt=d.value.clientHeight-p.value.offsetTop-p.value.offsetHeight,_t=je+Math.max(le,de+(Oe?ae:0)+nt+x);u.value.style.height=`${_t}px`}else{const Oe=h.value===B[0];u.value.style.top="0px";const nt=Math.max(Y,C+p.value.offsetTop+(Oe?G:0)+de)+$e;u.value.style.height=`${nt}px`,p.value.scrollTop=je-Y+p.value.offsetTop}u.value.style.margin="10px 0",u.value.style.minHeight=`${M}px`,u.value.style.maxHeight=`${v}px`,n("placed"),requestAnimationFrame(()=>a.value=!0)}}const g=V("");Qe(async()=>{await At(),T(),d.value&&(g.value=window.getComputedStyle(d.value).zIndex)});function b(w){w&&l.value===!0&&(T(),y?.(),l.value=!1)}return ls(i.triggerElement,()=>{T()}),G2({contentWrapper:u,shouldExpandOnScrollRef:a,onScrollButtonChange:b}),(w,_)=>(I(),Se("div",{ref_key:"contentWrapperElement",ref:u,style:xt({display:"flex",flexDirection:"column",position:"fixed",zIndex:g.value})},[$(f(We),ye({ref:f(c),style:{boxSizing:"border-box",maxHeight:"100%"}},{...w.$attrs,...r}),{default:k(()=>[te(w.$slots,"default")]),_:3},16)],4))}}),Y2=X({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return sg(e.context),ig(K2),(t,r)=>te(t.$slots,"default")}}),Z2={key:1},X2=X({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=Lr(r,t),s=jn(),i=V();Qe(()=>{i.value=new DocumentFragment});const o=V(),a=j(()=>r.forceMount||s.open.value),l=V(a.value);return He(a,()=>{setTimeout(()=>l.value=a.value)}),(u,c)=>a.value||l.value||o.value?.present?(I(),K(f(qn),{key:0,ref_key:"presenceRef",ref:o,present:a.value},{default:k(()=>[$(W2,dr(tr({...f(n),...u.$attrs})),{default:k(()=>[te(u.$slots,"default")]),_:3},16)]),_:3},8,["present"])):i.value?(I(),Se("div",Z2,[(I(),K(Wa,{to:i.value},[$(Y2,{context:f(s)},{default:k(()=>[te(u.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):qe("v-if",!0)}}),[lT,Q2]=Dt("SelectGroup"),e_=X({__name:"SelectGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=Ls(void 0,"reka-select-group");return Q2({id:r}),(n,s)=>(I(),K(f(We),ye({role:"group"},t,{"aria-labelledby":f(r)}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),t_=X({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,r)=>(I(),K(f(We),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:k(()=>[te(t.$slots,"default",{},()=>[r[0]||(r[0]=Ne("▼"))])]),_:3},8,["as","as-child"]))}}),[og,r_]=Dt("SelectItem"),n_=X({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=t,{disabled:s}=Nt(r),i=jn(),o=ps(),{forwardRef:a,currentElement:l}=Re(),{CollectionItem:u}=fn(),c=j(()=>Bi(i.modelValue?.value,r.value,i.by)),d=V(!1),p=V(r.textValue??""),h=Ls(void 0,"reka-select-item-text"),m="select.select";async function y(_){_.defaultPrevented||Yl(m,T,{originalEvent:_,value:r.value})}async function T(_){await At(),n("select",_),!_.defaultPrevented&&(s.value||(i.onValueChange(r.value),i.multiple.value||i.onOpenChange(!1)))}async function g(_){await At(),!_.defaultPrevented&&(s.value?o.onItemLeave?.():_.currentTarget?.focus({preventScroll:!0}))}async function b(_){await At(),!_.defaultPrevented&&_.currentTarget===ir()&&o.onItemLeave?.()}async function w(_){await At(),!_.defaultPrevented&&(o.searchRef?.value!==""&&_.key===" "||(L2.includes(_.key)&&y(_),_.key===" "&&_.preventDefault()))}if(r.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Qe(()=>{l.value&&o.itemRefCallback(l.value,r.value,r.disabled)}),r_({value:r.value,disabled:s,textId:h,isSelected:c,onItemTextChange:_=>{p.value=((p.value||_?.textContent)??"").trim()}}),(_,E)=>(I(),K(f(u),{value:{textValue:p.value}},{default:k(()=>[$(f(We),{ref:f(a),role:"option","aria-labelledby":f(h),"data-highlighted":d.value?"":void 0,"aria-selected":c.value,"data-state":c.value?"checked":"unchecked","aria-disabled":f(s)||void 0,"data-disabled":f(s)?"":void 0,tabindex:f(s)?void 0:-1,as:_.as,"as-child":_.asChild,onFocus:E[0]||(E[0]=P=>d.value=!0),onBlur:E[1]||(E[1]=P=>d.value=!1),onPointerup:y,onPointerdown:E[2]||(E[2]=P=>{P.currentTarget.focus({preventScroll:!0})}),onTouchend:E[3]||(E[3]=Zt(()=>{},["prevent","stop"])),onPointermove:g,onPointerleave:b,onKeydown:w},{default:k(()=>[te(_.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),s_=X({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,r=og();return(n,s)=>f(r).isSelected.value?(I(),K(f(We),ye({key:0,"aria-hidden":"true"},t),{default:k(()=>[te(n.$slots,"default")]),_:3},16)):qe("v-if",!0)}}),i_=X({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,r=jn(),n=ps(),s=og(),{forwardRef:i,currentElement:o}=Re(),a=j(()=>({value:s.value,disabled:s.disabled.value,textContent:o.value?.textContent??s.value?.toString()??""}));return Qe(()=>{o.value&&(s.onItemTextChange(o.value),n.itemTextRefCallback(o.value,s.value,s.disabled.value),r.onOptionAdd(a.value))}),jt(()=>{r.onOptionRemove(a.value)}),(l,u)=>(I(),K(f(We),ye({id:f(s).textId,ref:f(i)},{...t,...l.$attrs}),{default:k(()=>[te(l.$slots,"default")]),_:3},16,["id"]))}}),o_=X({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>(I(),K(f(vc),dr(tr(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),ag=X({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(e,{emit:t}){const r=t,{getItems:n}=fn(),s=ps(),i=V(null);function o(){i.value!==null&&(window.clearInterval(i.value),i.value=null)}lt(()=>{n().map(u=>u.ref).find(u=>u===ir())?.scrollIntoView({block:"nearest"})});function a(){i.value===null&&(i.value=window.setInterval(()=>{r("autoScroll")},50))}function l(){s.onItemLeave?.(),i.value===null&&(i.value=window.setInterval(()=>{r("autoScroll")},50))}return Is(()=>o()),(u,c)=>(I(),K(f(We),ye({"aria-hidden":"true",style:{flexShrink:0}},u.$parent?.$props,{onPointerdown:a,onPointermove:l,onPointerleave:c[0]||(c[0]=()=>{o()})}),{default:k(()=>[te(u.$slots,"default")]),_:3},16))}}),a_=X({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=ps(),r=t.position==="item-aligned"?Mc():void 0,{forwardRef:n,currentElement:s}=Re(),i=V(!1);return lt(o=>{if(t.viewport?.value&&t.isPositioned?.value){let u=function(){const c=l.scrollHeight-l.clientHeight;i.value=Math.ceil(l.scrollTop)<c};var a=u;const l=t.viewport.value;u(),l.addEventListener("scroll",u),o(()=>l.removeEventListener("scroll",u))}}),He(s,()=>{s.value&&r?.onScrollButtonChange(s.value)}),(o,a)=>i.value?(I(),K(ag,{key:0,ref:f(n),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:u}=f(t);l?.value&&u?.value&&(l.value.scrollTop=l.value.scrollTop+u.value.offsetHeight)})},{default:k(()=>[te(o.$slots,"default")]),_:3},512)):qe("v-if",!0)}}),l_=X({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=ps(),r=t.position==="item-aligned"?Mc():void 0,{forwardRef:n,currentElement:s}=Re(),i=V(!1);return lt(o=>{if(t.viewport?.value&&t.isPositioned?.value){let u=function(){i.value=l.scrollTop>0};var a=u;const l=t.viewport.value;u(),l.addEventListener("scroll",u),o(()=>l.removeEventListener("scroll",u))}}),He(s,()=>{s.value&&r?.onScrollButtonChange(s.value)}),(o,a)=>i.value?(I(),K(ag,{key:0,ref:f(n),onAutoScroll:a[0]||(a[0]=()=>{const{viewport:l,selectedItem:u}=f(t);l?.value&&u?.value&&(l.value.scrollTop=l.value.scrollTop-u.value.offsetHeight)})},{default:k(()=>[te(o.$slots,"default")]),_:3},512)):qe("v-if",!0)}}),c_=X({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,r=jn(),{forwardRef:n,currentElement:s}=Re(),i=j(()=>r.disabled?.value||t.disabled);r.contentId||(r.contentId=Ls(void 0,"reka-select-content")),Qe(()=>{r.onTriggerChange(s.value)});const{getItems:o}=fn(),{search:a,handleTypeaheadSearch:l,resetTypeahead:u}=ah();function c(){i.value||(r.onOpenChange(!0),u())}function d(p){c(),r.triggerPointerDownPosRef.value={x:Math.round(p.pageX),y:Math.round(p.pageY)}}return(p,h)=>(I(),K(f(Sh),{"as-child":"",reference:p.reference},{default:k(()=>[$(f(We),{ref:f(n),role:"combobox",type:p.as==="button"?"button":void 0,"aria-controls":f(r).contentId,"aria-expanded":f(r).open.value||!1,"aria-required":f(r).required?.value,"aria-autocomplete":"none",disabled:i.value,dir:f(r)?.dir.value,"data-state":f(r)?.open.value?"open":"closed","data-disabled":i.value?"":void 0,"data-placeholder":f(F2)(f(r).modelValue?.value)?"":void 0,"as-child":p.asChild,as:p.as,onClick:h[0]||(h[0]=m=>{m?.currentTarget?.focus()}),onPointerdown:h[1]||(h[1]=m=>{if(m.pointerType==="touch")return m.preventDefault();const y=m.target;y.hasPointerCapture(m.pointerId)&&y.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(d(m),m.preventDefault())}),onPointerup:h[2]||(h[2]=Zt(m=>{m.pointerType==="touch"&&d(m)},["prevent"])),onKeydown:h[3]||(h[3]=m=>{const y=f(a)!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&y&&m.key===" "||(f(l)(m.key,f(o)()),f(B2).includes(m.key)&&(c(),m.preventDefault()))})},{default:k(()=>[te(p.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]),_:3},8,["reference"]))}}),u_=X({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{forwardRef:r,currentElement:n}=Re(),s=jn();Qe(()=>{s.valueElement=n});const i=j(()=>{let a=[];const l=Array.from(s.optionsSet.value),u=c=>l.find(d=>Bi(c,d.value,s.by));return Array.isArray(s.modelValue.value)?a=s.modelValue.value.map(c=>u(c)?.textContent??""):a=[u(s.modelValue.value)?.textContent??""],a.filter(Boolean)}),o=j(()=>i.value.length?i.value.join(", "):t.placeholder);return(a,l)=>(I(),K(f(We),{ref:f(r),as:a.as,"as-child":a.asChild,style:{pointerEvents:"none"},"data-placeholder":i.value.length?void 0:t.placeholder},{default:k(()=>[te(a.$slots,"default",{selectedLabel:i.value,modelValue:f(s).modelValue.value},()=>[Ne(Le(o.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),d_=X({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{nonce:r}=Nt(t),n=zh(r),s=ps(),i=s.position==="item-aligned"?Mc():void 0,{forwardRef:o,currentElement:a}=Re();Qe(()=>{s?.onViewportChange(a.value)});const l=V(0);function u(c){const d=c.currentTarget,{shouldExpandOnScrollRef:p,contentWrapper:h}=i??{};if(p?.value&&h?.value){const m=Math.abs(l.value-d.scrollTop);if(m>0){const y=window.innerHeight-20,T=Number.parseFloat(h.value.style.minHeight),g=Number.parseFloat(h.value.style.height),b=Math.max(T,g);if(b<y){const w=b+m,_=Math.min(y,w),E=w-_;h.value.style.height=`${_}px`,h.value.style.bottom==="0px"&&(d.scrollTop=E>0?E:0,h.value.style.justifyContent="flex-end")}}}l.value=d.scrollTop}return(c,d)=>(I(),Se(Ke,null,[$(f(We),ye({ref:f(o),"data-reka-select-viewport":"",role:"presentation"},{...c.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:u}),{default:k(()=>[te(c.$slots,"default")]),_:3},16),$(f(We),{as:"style",nonce:f(n)},{default:k(()=>d[0]||(d[0]=[Ne(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),f_=X({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,r=["horizontal","vertical"];function n(a){return r.includes(a)}const s=j(()=>n(t.orientation)?t.orientation:"horizontal"),i=j(()=>s.value==="vertical"?t.orientation:void 0),o=j(()=>t.decorative?{role:"none"}:{"aria-orientation":i.value,role:"separator"});return(a,l)=>(I(),K(f(We),ye({as:a.as,"as-child":a.asChild,"data-orientation":s.value},o.value),{default:k(()=>[te(a.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),p_=X({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(r,n)=>(I(),K(f_,dr(tr(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),[h_,cT]=Dt("ToggleGroupRoot"),g_=X({__name:"Toggle",props:{defaultValue:{type:Boolean,required:!1},modelValue:{type:[Boolean,null],required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,{forwardRef:s,currentElement:i}=Re(),o=h_(null),a=cs(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0});function l(){a.value=!a.value}const u=j(()=>a.value?"on":"off"),c=lc(i);return(d,p)=>(I(),K(f(We),{ref:f(s),type:d.as==="button"?"button":void 0,"as-child":r.asChild,as:d.as,"aria-pressed":f(a),"data-state":u.value,"data-disabled":d.disabled?"":void 0,disabled:d.disabled,onClick:l},{default:k(()=>[te(d.$slots,"default",{modelValue:f(a),disabled:d.disabled,pressed:f(a),state:u.value}),f(c)&&d.name&&!f(o)?(I(),K(yh,{key:0,type:"checkbox",name:d.name,value:f(a),required:d.required},null,8,["name","value","required"])):qe("v-if",!0)]),_:3},8,["type","as-child","as","aria-pressed","data-state","data-disabled","disabled"]))}}),v_=X({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return Re(),(r,n)=>(I(),K(f(i2),dr(tr(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),[ba,m_]=Dt("TooltipProvider"),w_=X({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){const{delayDuration:t,skipDelayDuration:r,disableHoverableContent:n,disableClosingTrigger:s,ignoreNonKeyboardFocus:i,disabled:o,content:a}=Nt(e);Re();const l=V(!0),u=V(!1),{start:c,stop:d}=Yp(()=>{l.value=!0},r,{immediate:!1});return m_({isOpenDelayed:l,delayDuration:t,onOpen(){d(),l.value=!1},onClose(){c()},isPointerInTransitRef:u,disableHoverableContent:n,disableClosingTrigger:s,disabled:o,ignoreNonKeyboardFocus:i,content:a}),(p,h)=>te(p.$slots,"default")}}),lg="tooltip.open",[_a,y_]=Dt("TooltipRoot"),b_=X({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const r=e,n=t;Re();const s=ba(),i=j(()=>r.disableHoverableContent??s.disableHoverableContent.value),o=j(()=>r.disableClosingTrigger??s.disableClosingTrigger.value),a=j(()=>r.disabled??s.disabled.value),l=j(()=>r.delayDuration??s.delayDuration.value),u=j(()=>r.ignoreNonKeyboardFocus??s.ignoreNonKeyboardFocus.value),c=cs(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0});He(c,w=>{s.onClose&&(w?(s.onOpen(),document.dispatchEvent(new CustomEvent(lg))):s.onClose())});const d=V(!1),p=V(),h=j(()=>c.value?d.value?"delayed-open":"instant-open":"closed"),{start:m,stop:y}=Yp(()=>{d.value=!0,c.value=!0},l,{immediate:!1});function T(){y(),d.value=!1,c.value=!0}function g(){y(),c.value=!1}function b(){m()}return y_({contentId:"",open:c,stateAttribute:h,trigger:p,onTriggerChange(w){p.value=w},onTriggerEnter(){s.isOpenDelayed.value?b():T()},onTriggerLeave(){i.value?g():y()},onOpen:T,onClose:g,disableHoverableContent:i,disableClosingTrigger:o,disabled:a,ignoreNonKeyboardFocus:u}),(w,_)=>(I(),K(f(_h),null,{default:k(()=>[te(w.$slots,"default",{open:f(c)})]),_:3}))}}),cg=X({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=_a(),i=ba(),{forwardRef:o,currentElement:a}=Re(),l=j(()=>r.ariaLabel||a.value?.textContent),u=j(()=>{const{ariaLabel:c,...d}=r;return eh(d,i.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return Qe(()=>{Kt(window,"scroll",c=>{c.target?.contains(s.trigger.value)&&s.onClose()}),Kt(window,lg,s.onClose)}),(c,d)=>(I(),K(f(pc),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:d[0]||(d[0]=p=>n("escapeKeyDown",p)),onPointerDownOutside:d[1]||(d[1]=p=>{f(s).disableClosingTrigger.value&&f(s).trigger.value?.contains(p.target)&&p.preventDefault(),n("pointerDownOutside",p)}),onFocusOutside:d[2]||(d[2]=Zt(()=>{},["prevent"])),onDismiss:d[3]||(d[3]=p=>f(s).onClose())},{default:k(()=>[$(f(Uh),ye({ref:f(o),"data-state":f(s).stateAttribute.value},{...c.$attrs,...u.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:k(()=>[te(c.$slots,"default"),$(f(mc),{id:f(s).contentId,role:"tooltip"},{default:k(()=>[Ne(Le(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),__=X({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){const t=dn(e),{forwardRef:r,currentElement:n}=Re(),{trigger:s,onClose:i}=_a(),o=ba(),{isPointerInTransit:a,onPointerExit:l}=hb(s,n);return o.isPointerInTransitRef=a,l(()=>{i()}),(u,c)=>(I(),K(cg,ye({ref:f(r)},f(t)),{default:k(()=>[te(u.$slots,"default")]),_:3},16))}}),S_=X({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=_a(),i=Lr(r,n),{forwardRef:o}=Re();return(a,l)=>(I(),K(f(qn),{present:a.forceMount||f(s).open.value},{default:k(()=>[(I(),K(gi(f(s).disableHoverableContent.value?cg:__),ye({ref:f(o)},f(i)),{default:k(()=>[te(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),C_=X({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(r,n)=>(I(),K(f(vc),dr(tr(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),x_=X({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,r=_a(),n=ba();r.contentId||(r.contentId=Ls(void 0,"reka-tooltip-content"));const{forwardRef:s,currentElement:i}=Re(),o=V(!1),a=V(!1),l=j(()=>r.disabled.value?{}:{click:y,focus:h,pointermove:d,pointerleave:p,pointerdown:c,blur:m});Qe(()=>{r.onTriggerChange(i.value)});function u(){setTimeout(()=>{o.value=!1},1)}function c(){r.open&&!r.disableClosingTrigger.value&&r.onClose(),o.value=!0,document.addEventListener("pointerup",u,{once:!0})}function d(T){T.pointerType!=="touch"&&!a.value&&!n.isPointerInTransitRef.value&&(r.onTriggerEnter(),a.value=!0)}function p(){r.onTriggerLeave(),a.value=!1}function h(T){o.value||r.ignoreNonKeyboardFocus.value&&!T.target.matches?.(":focus-visible")||r.onOpen()}function m(){r.onClose()}function y(){r.disableClosingTrigger.value||r.onClose()}return(T,g)=>(I(),K(f(Sh),{"as-child":"",reference:T.reference},{default:k(()=>[$(f(We),ye({ref:f(s),"aria-describedby":f(r).open.value?f(r).contentId:void 0,"data-state":f(r).stateAttribute.value,as:T.as,"as-child":t.asChild,"data-grace-area-trigger":""},md(l.value)),{default:k(()=>[te(T.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),T_=X({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},type:{default:"button"},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(r,n)=>(I(),K(f(We),{"data-slot":"button",as:e.as,"as-child":e.asChild,type:e.as==="button"?e.type:void 0,class:Xe(f(ut)(f(E_)({variant:e.variant,size:e.size}),t.class))},{default:k(()=>[te(r.$slots,"default")]),_:3},8,["as","as-child","type","class"]))}}),pt=T_;const E_=jp("wp:inline-flex wp:items-center wp:justify-center wp:gap-2 wp:whitespace-nowrap wp:rounded-md wp:text-sm wp:font-medium wp:transition-all wp:disabled:pointer-events-none wp:disabled:opacity-50 wp:[&_svg]:pointer-events-none wp:[&_svg:not([class*='size-'])]:size-4 wp:shrink-0 wp:[&_svg]:shrink-0 wp:outline-none wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px] wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive",{variants:{variant:{default:"wp:bg-primary wp:text-primary-foreground wp:hover:bg-primary/90",destructive:"wp:bg-destructive wp:text-white wp:hover:bg-destructive/90 wp:focus-visible:ring-destructive/20 wp:dark:focus-visible:ring-destructive/40 wp:dark:bg-destructive/60",outline:"wp:border wp:bg-background wp:shadow-xs wp:hover:bg-accent wp:hover:text-accent-foreground wp:dark:bg-input/30 wp:dark:border-input wp:dark:hover:bg-input/50",secondary:"wp:bg-secondary wp:text-secondary-foreground wp:hover:bg-secondary/80",ghost:"wp:hover:bg-accent wp:hover:text-accent-foreground wp:dark:hover:bg-accent/50",link:"wp:text-primary wp:underline-offset-4 wp:hover:underline"},size:{default:"wp:h-9 wp:px-4 wp:py-2 wp:has-[>svg]:px-3",sm:"wp:h-8 wp:rounded-md wp:gap-1.5 wp:px-3 wp:has-[>svg]:px-2.5",lg:"wp:h-10 wp:rounded-md wp:px-6 wp:has-[>svg]:px-4",icon:"wp:size-9","icon-sm":"wp:size-8","icon-lg":"wp:size-10"}},defaultVariants:{variant:"default",size:"default"}});var A_={class:"webphone-keypad wp:grid wp:grid-cols-3 wp:gap-y-3 wp:gap-x-6 wp:px-4 wp:py-2 wp:mx-auto wp:place-items-center"},k_=X({__name:"KeyPad",setup(e){const t=Vt("webphone"),{sendDTMF:r}=Vt("sip"),{playDtmf:n}=vp(),s=["1","2","3","4","5","6","7","8","9","*","0","#"],i=o=>{n(o),t.callStatus==="connected"&&r(o),t.appendKeypad(o)};return(o,a)=>(I(),Se("div",A_,[(I(),Se(Ke,null,hr(s,l=>$(f(pt),{key:l,type:"button",onClick:u=>i(l),variant:"ghost",size:"icon",class:"webphone-keypad__key wp:flex wp:items-center wp:justify-center wp:h-10 wp:w-full wp:rounded-xs wp:text-lg wp:bg-neutral-100 wp:dark:bg-neutral-700 wp:hover:bg-neutral-200 wp:dark:hover:bg-neutral-600 wp:hover:text-primary wp:dark:hover:text-neutral-100 wp:text-primary wp:dark:text-white wp:transition-all wp:duration-150 wp:active:scale-95 wp:font-light montserrat","data-key":l},{default:k(()=>[Ne(Le(l),1)]),_:2},1032,["onClick","data-key"])),64))]))}}),Nc=k_;var ug=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),I_=e=>{const t=R_(e);return t.charAt(0).toUpperCase()+t.slice(1)},$_=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),dg=e=>e==="";var Li={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var P_=({name:e,iconNode:t,absoluteStrokeWidth:r,"absolute-stroke-width":n,strokeWidth:s,"stroke-width":i,size:o=Li.width,color:a=Li.stroke,...l},{slots:u})=>gr("svg",{...Li,...l,width:o,height:o,stroke:a,"stroke-width":dg(r)||dg(n)||r===!0||n===!0?Number(s||i||Li["stroke-width"])*24/Number(o):s||i||Li["stroke-width"],class:$_("lucide",l.class,...e?[`lucide-${ug(I_(e))}-icon`,`lucide-${ug(e)}`]:["lucide-icon"])},[...t.map(c=>gr(...c)),...u.default?[u.default()]:[]]);var mt=(e,t)=>(r,{slots:n,attrs:s})=>gr(P_,{...s,...r,iconNode:t,name:e},n);var fg=mt("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);var qc=mt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var pg=mt("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var D_=mt("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var Bc=mt("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);var O_=mt("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var H_=mt("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);var M_=mt("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);var N_=mt("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var q_=mt("phone-call",[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var B_=mt("phone-incoming",[["path",{d:"M16 2v6h6",key:"1mfrl5"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var L_=mt("phone-missed",[["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var F_=mt("phone-outgoing",[["path",{d:"m16 8 6-6",key:"oawc05"}],["path",{d:"M22 8V2h-6",key:"oqy2zc"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var hg=mt("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var V_=mt("picture-in-picture-2",[["path",{d:"M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4",key:"daa4of"}],["rect",{width:"10",height:"7",x:"12",y:"13",rx:"2",key:"1nb8gs"}]]);var j_=mt("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);var U_=mt("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var z_=mt("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var K_=mt("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);var gg=mt("voicemail",[["circle",{cx:"6",cy:"12",r:"4",key:"1ehtga"}],["circle",{cx:"18",cy:"12",r:"4",key:"4vafl8"}],["line",{x1:"6",x2:"18",y1:"16",y2:"16",key:"pmt8us"}]]);var vg=mt("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);var Lc=mt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),W_=X({__name:"Input",props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=cs(r,"modelValue",t,{passive:!0,defaultValue:r.defaultValue});return(s,i)=>po((I(),Se("input",{"onUpdate:modelValue":i[0]||(i[0]=o=>tt(n)?n.value=o:null),"data-slot":"input",class:Xe(f(ut)("wp:file:text-foreground wp:placeholder:text-muted-foreground wp:selection:bg-primary wp:selection:text-primary-foreground wp:dark:bg-input/30 wp:border-blue-500 wp:h-9 wp:w-full wp:min-w-0 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-1 wp:text-base wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:file:inline-flex wp:file:h-7 wp:file:border-0 wp:file:bg-transparent wp:file:text-sm wp:file:font-medium wp:disabled:pointer-events-none wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:md:text-sm","wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px]","wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive",r.class))},null,2)),[[Ti,f(n)]])}}),Fi=W_,G_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"};function J_(e,t){return I(),Se("svg",G_,[...t[0]||(t[0]=[vl('<g clip-path="url(#a)"><path fill="currentColor" d="m1.913 7.003.035.49c0 .605.49 1.095 1.095 1.095.015 0 1.08-.14 1.08-.14a1.1 1.1 0 0 0 1.07-1.07l.075-.655c1.192-.463 2.33-.465 3.47-.005l.072.657c.01.585.485 1.06 1.07 1.07 0 0 1.065.14 1.08.14.605 0 1.095-.49 1.095-1.07l.038-.537c0-.575-.23-1.12-.65-1.54-1.91-1.91-6.973-1.908-8.88 0-.418.417-.65.965-.648 1.562zM10.94 5.94c.285.285.443.653.44 1.015l-.037.538a.39.39 0 0 1-.368.387s-1.057-.137-1.072-.137a.4.4 0 0 1-.388-.388c0-.015-.1-.92-.1-.92a.35.35 0 0 0-.207-.282c-1.43-.64-2.913-.643-4.408-.003a.36.36 0 0 0-.212.288s-.103.907-.103.917a.386.386 0 0 1-.387.388c-.015 0-1.073.137-1.073.137a.395.395 0 0 1-.37-.41l-.035-.49c0-.385.155-.755.44-1.04 1.74-1.74 6.383-1.497 7.88 0"></path></g><circle cx="7" cy="7" r="6.6" stroke="currentColor" stroke-width=".8"></circle><defs><clipPath id="a"><path fill="#fff" d="M7 13 1 7l6-6 6 6z"></path></clipPath></defs>',3)])])}var Fc={render:J_},Y_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 9 9"};function Z_(e,t){return I(),Se("svg",Y_,[...t[0]||(t[0]=[Q("g",{"clip-path":"url(#a)"},[Q("path",{fill:"currentColor",d:"M0 8.625V6a3.38 3.38 0 0 1 3.375-3.375h1.811V2.03a.75.75 0 0 1 1.28-.53l2.206 2.205a1.125 1.125 0 0 1 0 1.59L6.466 7.5a.75.75 0 0 1-1.28-.53v-.595H3a2.25 2.25 0 0 0-2.25 2.25.375.375 0 0 1-.75 0M5.936 3a.375.375 0 0 1-.375.375H3.375A2.63 2.63 0 0 0 .75 6v.643A3 3 0 0 1 3 5.625h2.561A.375.375 0 0 1 5.936 6v.97l2.205-2.205a.375.375 0 0 0 0-.53L5.936 2.03z"})],-1),Q("defs",null,[Q("clipPath",{id:"a"},[Q("path",{fill:"#fff",d:"M0 0h9v9H0z"})])],-1)])])}var X_={render:Z_},Q_={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function eS(e,t){return I(),Se("svg",Q_,[...t[0]||(t[0]=[vl('<g clip-path="url(#a)"><path fill="currentColor" d="m13.499 13.495.321-.371a1.095 1.095 0 0 0 0-1.549c-.01-.01-.862-.665-.862-.665a1.1 1.1 0 0 0-1.514 0l-.516.41c-1.17-.516-1.976-1.318-2.457-2.45l.414-.516a1.09 1.09 0 0 0 0-1.513s-.654-.852-.665-.863c-.428-.427-1.12-.427-1.53-.017l-.407.353c-.407.407-.63.955-.63 1.549 0 2.701 3.582 6.279 6.28 6.279.59 0 1.141-.223 1.562-.647zM6.364 7.863c0-.403.148-.774.406-1.029l.407-.354a.39.39 0 0 1 .534-.014s.65.845.661.856a.4.4 0 0 1 0 .548c-.01.01-.58.721-.58.721a.35.35 0 0 0-.053.347c.559 1.463 1.605 2.513 3.115 3.118a.36.36 0 0 0 .354-.053l.72-.576a.386.386 0 0 1 .549 0c.01.01.855.66.855.66a.395.395 0 0 1-.028.552l-.322.372a1.47 1.47 0 0 1-1.046.424c-2.46 0-5.572-3.454-5.572-5.572"></path></g><circle cx="9.899" cy="9.899" r="6.6" stroke="currentColor" stroke-width=".8" transform="rotate(-135 9.9 9.9)"></circle><defs><clipPath id="a"><path fill="#fff" d="M14.143 5.657v8.485H5.658V5.657z"></path></clipPath></defs>',3)])])}var tS={render:eS},rS={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"2.8 2.8 14.2 14.2"};function nS(e,t){return I(),Se("svg",rS,[...t[0]||(t[0]=[Q("circle",{cx:"9.899",cy:"9.899",r:"6.6",stroke:"currentColor","stroke-width":".8",transform:"rotate(-135 9.9 9.9)"},null,-1),Q("path",{fill:"currentColor",d:"M13.634 8.18a.66.66 0 0 0-.729.094l-.585.591a1.663 1.663 0 0 0-1.653-1.531h-3C6.747 7.334 6 8.08 6 9v2a1.67 1.67 0 0 0 1.667 1.667h3c.876 0 1.589-.683 1.654-1.543l.585.585.036.03a.66.66 0 0 0 .692.063.66.66 0 0 0 .366-.591V8.77a.66.66 0 0 0-.366-.592M10.667 12h-3c-.552 0-1-.449-1-1V9c0-.551.448-1 1-1h3c.551 0 1 .449 1 1v2c0 .551-.449 1-1 1m1.666-1.806v-.396l1-1.01.009 2.413z"},null,-1)])])}var sS={render:nS},iS={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function oS(e,t){return I(),Se("svg",iS,[...t[0]||(t[0]=[Q("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.076-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.144.223c.192.26.44.468.726.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.75 1.75 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.93 1.93 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.143.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.03-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.292 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.797-.008l.07.043c.244.163.445.384.589.645a1.93 1.93 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.445 1.944a1.7 1.7 0 0 1-.944-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.74 1.74 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zm-2.03-1.943c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222a1.97 1.97 0 0 0 1.569.803c.292 0 .58-.067.844-.196.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1)])])}var Vc={render:oS},aS={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19 19"};function lS(e,t){return I(),Se("svg",aS,[...t[0]||(t[0]=[Q("path",{fill:"currentColor","fill-rule":"evenodd",stroke:"currentColor","stroke-width":".5",d:"M3.91 5.867a1.7 1.7 0 0 1-.946-.248 1.9 1.9 0 0 1-.606-.594l-.117-.223a1.93 1.93 0 0 1 .07-1.722q.077-.143.18-.264a1.8 1.8 0 0 1 .33-.322q.063-.048.13-.086c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.244.162.446.383.59.645a1.92 1.92 0 0 1 .003 1.847 2 2 0 0 1-.183.27c-.02.026-.029.038-.05.062q-.134.147-.293.264a1.7 1.7 0 0 1-.983.336zM1.88 3.923c-.017.333.048.665.188.965.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.209.63-.525.8-.905a2.14 2.14 0 0 0-.276-2.205L5.2 2.494c-.03-.023-.037-.036-.064-.057a1.94 1.94 0 0 0-1.212-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.942-.248 1.9 1.9 0 0 1-.606-.595L7.657 4.8a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.264a1.8 1.8 0 0 1 .33-.321q.062-.048.13-.086a1.75 1.75 0 0 1 1.798-.008l.076.043c.243.163.445.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.264 1.73 1.73 0 0 1-.984.336zM7.296 3.923c-.017.333.048.665.188.965.027.055.047.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078.35-.208.63-.524.802-.905a2.14 2.14 0 0 0-.278-2.205l-.173-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.944-.248 1.9 1.9 0 0 1-.602-.594l-.117-.223a1.93 1.93 0 0 1 .072-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .326-.323q.062-.048.13-.086c.05-.03.093-.052.144-.079a1.74 1.74 0 0 1 1.654.07l.07.044c.242.163.444.384.587.645a1.92 1.92 0 0 1 0 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.71 3.923c-.017.333.048.665.188.965.027.055.048.104.076.156l.144.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.27-2.206l-.175-.191c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.213-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.187.79zm-8.8 7.281a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.595l-.121-.224a1.93 1.93 0 0 1 .071-1.722q.077-.142.18-.263a1.8 1.8 0 0 1 .464-.407 1.74 1.74 0 0 1 1.798-.008l.07.043c.242.163.444.384.587.645a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27c-.02.026-.029.039-.05.063a2 2 0 0 1-.29.263 1.7 1.7 0 0 1-.984.337zM1.88 9.261c-.017.333.048.664.188.964.027.056.048.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.348-.209.626-.525.795-.904a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.442 1.943a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.142.18-.264a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.75 1.75 0 0 1 1.653.07l.07.043c.243.163.444.385.588.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.33-.983.337zM7.293 9.261c-.017.333.048.664.188.964.027.056.047.105.075.156l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.049.15-.078.352-.207.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.195c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.791zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.596l-.117-.222a1.93 1.93 0 0 1 .071-1.723q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.051.145-.078a1.74 1.74 0 0 1 1.653.07l.07.043c.243.163.444.384.588.646a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.063a2 2 0 0 1-.29.263c-.288.212-.63.329-.983.337zm-2.029-1.943c-.017.332.048.664.188.964.027.055.048.104.075.156l.145.223c.19.26.44.468.725.606a1.92 1.92 0 0 0 1.688 0c.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.196c-.418.2-.754.55-.947.985a2 2 0 0 0-.188.79zM3.91 16.543a1.7 1.7 0 0 1-.942-.246 1.9 1.9 0 0 1-.606-.596l-.121-.223a1.93 1.93 0 0 1 .071-1.723q.077-.141.18-.263a1.8 1.8 0 0 1 .464-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.242.163.444.385.587.646a1.92 1.92 0 0 1-.001 1.847 2 2 0 0 1-.183.27l-.05.063a2 2 0 0 1-.29.26 1.7 1.7 0 0 1-.984.337zm-2.03-1.944c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.191c-.03-.023-.037-.037-.064-.058a1.94 1.94 0 0 0-1.207-.483 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.442 1.944a1.7 1.7 0 0 1-.941-.246 1.9 1.9 0 0 1-.606-.596l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407 1.75 1.75 0 0 1 1.798-.008l.07.043c.243.163.444.384.588.645a1.92 1.92 0 0 1-.001 1.848 2 2 0 0 1-.184.27c-.02.026-.028.038-.05.062a2 2 0 0 1-.29.264c-.288.212-.63.329-.983.337zm-2.029-1.944c-.017.333.048.665.188.964.027.056.047.105.075.157l.145.223a1.97 1.97 0 0 0 1.569.802c.291 0 .58-.067.844-.196.053-.028.1-.05.15-.078.352-.208.633-.524.805-.905a2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.031-.024-.037-.037-.064-.059a1.94 1.94 0 0 0-1.214-.482 1.8 1.8 0 0 0-.908.196c-.419.2-.755.55-.948.985a2 2 0 0 0-.188.79zm7.444 1.944a1.7 1.7 0 0 1-.943-.246 1.9 1.9 0 0 1-.606-.595l-.117-.223a1.93 1.93 0 0 1 .071-1.722q.075-.141.18-.263a1.8 1.8 0 0 1 .463-.407c.05-.03.093-.052.145-.079a1.75 1.75 0 0 1 1.653.07l.07.044c.243.163.444.384.588.645a1.93 1.93 0 0 1-.001 1.847 2 2 0 0 1-.184.27c-.02.026-.028.039-.05.063a2 2 0 0 1-.29.264 1.7 1.7 0 0 1-.983.336zM12.708 14.6c-.017.333.048.665.188.964.027.056.048.105.075.157l.145.222c.19.26.44.468.725.607a1.92 1.92 0 0 0 1.688 0c.053-.029.1-.05.15-.079a2 2 0 0 0 .795-.904 2.14 2.14 0 0 0-.276-2.205l-.175-.19c-.03-.024-.037-.037-.064-.058a1.94 1.94 0 0 0-1.211-.482 1.8 1.8 0 0 0-.909.195c-.418.2-.754.55-.947.986a2 2 0 0 0-.188.79z","clip-rule":"evenodd"},null,-1),Q("path",{stroke:"currentColor","stroke-linecap":"round",d:"M2 16.293 16.293 2"},null,-1)])])}var jc={render:lS},cS={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12"};function uS(e,t){return I(),Se("svg",cS,[...t[0]||(t[0]=[Q("path",{fill:"currentColor",d:"M9.75 1H4.5c-.678 0-1.314.302-1.743.828L.513 4.578a2.26 2.26 0 0 0 0 2.844l2.243 2.75A2.24 2.24 0 0 0 4.5 11h5.25C10.99 11 12 9.99 12 8.75v-5.5C12 2.01 10.99 1 9.75 1m1.75 7.75c0 .965-.785 1.75-1.75 1.75H4.5a1.74 1.74 0 0 1-1.356-.644L.901 7.106a1.755 1.755 0 0 1 0-2.212l2.243-2.75A1.74 1.74 0 0 1 4.5 1.499h5.25c.965 0 1.75.785 1.75 1.75zM8.927 4.427 7.354 6l1.573 1.573a.25.25 0 0 1-.354.353L7 6.355 5.427 7.926a.25.25 0 0 1-.354 0 .25.25 0 0 1 0-.353L6.646 6 5.073 4.427a.25.25 0 0 1 .354-.353L7 5.646l1.573-1.572a.25.25 0 0 1 .353.353z"},null,-1)])])}var Uc={render:uS},dS=["data-call-status"],fS={key:0,class:"webphone-actions__idle wp:!w-full wp:flex wp:flex-col wp:items-center wp:space-y-2 wp:mb-4"},pS={key:2,class:"webphone-actions__connected wp:w-full wp:flex wp:flex-col wp:items-center wp:gap-3"},hS={class:"webphone-actions__row wp:flex wp:items-center wp:gap-6"},gS={class:"webphone-actions__dialer wp:w-full wp:max-w-80 wp:relative"},vS=["data-visible"],mS={key:3,class:"webphone-actions__calling wp:w-full wp:flex wp:flex-col wp:items-center wp:gap-3"},wS={class:"webphone-actions__dialer wp:w-full wp:max-w-80 wp:relative"},yS=["data-visible"],bS={key:4,class:"webphone-actions__transfer-state wp:absolute wp:inset-x-0 wp:bottom-full wp:mb-2 wp:flex wp:justify-center wp:gap-2"},_S=X({__name:"CallActions",props:{destination:{},isVideo:{type:Boolean},onAnswer:{type:Function},onHangup:{type:Function},onReject:{type:Function}},emits:["transfer","completeTransfer","cancelTransfer"],setup(e,{emit:t}){const r=Vt("webphone"),{makeCall:n,hangupCall:s,answerCall:i,toggleMute:o,toggleHold:a,sendDTMF:l}=Vt("sip"),u=/^[0-9*#]+$/,c=C=>{if(u.test(C)){for(const S of C)l(S);for(const S of C)r.appendKeypad(S)}},d=C=>{C.ctrlKey||C.metaKey||C.altKey||C.key.length!==1||(C.preventDefault(),C.stopPropagation(),c(C.key))},p=C=>{C.data&&(C.preventDefault(),C.stopPropagation(),c(C.data))},h=C=>{C.preventDefault(),C.stopPropagation(),c(C.clipboardData?.getData("text").replace(/\s/g,"")||"")};He(()=>r.callStatus,(C,S)=>{C==="connected"&&S!=="connected"&&r.clearKeypad()});const m=e,y=t,T=j(()=>!!r.transferInProgress),g=j(()=>m.destination||r.keypadValue||r.lastDialedNumber||""),b=j(()=>!!m.destination||/^[+]?[0-9*#]+$/.test(r.keypadValue)),w=j(()=>b.value||!!r.lastDialedNumber),_=j(()=>!m.isVideo||!b.value?!1:g.value?/^[0-9*#]{1,5}$/.test(g.value):!0),E=async C=>{try{m.destination?await n(m.destination,C):r.keypadValue?await n(r.keypadValue,C):r.lastDialedNumber&&(r.keypadValue=r.lastDialedNumber)}catch(S){if(console.error("Error initiating call:",S),C){let x="No se pudo acceder a la cámara.";const O=S instanceof Error?S.name:String(S);O==="NotReadableError"?x="La cámara parece estar en uso por otra aplicación (ej: Zoom, Meet) o no se puede acceder al hardware.":O==="NotAllowedError"||O==="PermissionDeniedError"?x="Permiso de cámara denegado. Por favor, permita el acceso a la cámara.":O==="NotFoundError"?x="No se detectó ninguna cámara en el sistema.":x+=" "+(S instanceof Error?S.message:String(S)),confirm(`${x}
|
|
75
75
|
|
|
76
|
-
¿Desea realizar la llamada solo con AUDIO?`)&&E(!1)}else alert("Error al iniciar la llamada: "+(b instanceof Error?b.message:String(b)))}},$=(C=!1)=>{if(g.onAnswer){g.onAnswer(C);return}i(C)},B=async()=>{await s(),await g.onHangup?.()},m=()=>{if(g.onReject){g.onReject();return}s()},N=j(()=>{const C={};return r.channels.forEach(b=>{const x=b.status==="connected"||b.status==="calling"||b.status==="incoming";C[b.id]=x?"wp:text-[var(--color-red)]":"wp:text-[var(--color-avaible)]"}),C}),q=j(()=>N.value[r.activeChannelId]??"wp:text-[var(--p-primary-color)]");return(C,b)=>(I(),Se("div",{class:"webphone-actions wp:flex wp:justify-center wp:items-center wp:gap-2 wp:px-4 wp:relative wp:mb-4","data-call-status":f(r).callStatus},[f(r).callStatus==="idle"?(I(),Se("div",sS,[y.value?(I(),K(f(pt),{key:0,variant:"default",size:"icon",onClick:b[0]||(b[0]=x=>E(!1)),"aria-label":"Audio Call",class:"webphone-actions__button webphone-actions__button--call wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-[color:var(--p-primary-color)]/80 wp:to-[color:var(--p-primary-color)]/100 wp:hover:from-[color:var(--p-primary-color)]/75 wp:hover:to-[color:var(--p-primary-color)]"},{default:k(()=>[D(f(W_),{class:"webphone-actions__button-icon wp:size-7 wp:text-white"}),b[12]||(b[12]=Q("span",{class:"webphone-actions__button-label wp:w-full wp:text-white wp:text-xs"},"Llamar",-1))]),_:1})):Ne("",!0),_.value?(I(),K(f(pt),{key:1,variant:"outline",size:"icon",onClick:b[1]||(b[1]=x=>E(!0)),"aria-label":"Video Call",class:"webphone-actions__button webphone-actions__button--video wp:w-full wp:px-4 wp:bg-transparent wp:border wp:border-primary wp:hover:bg-[var(--p-primary-color)]/8"},{default:k(()=>[D(f(Y_),{class:Xe(["webphone-actions__button-icon wp:size-6 wp:text-primary wp:dark:text-white",q.value])},null,8,["class"]),b[13]||(b[13]=Q("span",{class:"webphone-actions__button-label wp:w-full wp:text-primary wp:text-xs wp:dark:text-white"}," Video llamada a extensiones ",-1))]),_:1})):Ne("",!0)])):Ne("",!0),f(r).callStatus==="incoming"?(I(),Se(Ke,{key:1},[f(r).activeChannel?.hasVideo?(I(),K(f(pt),{key:0,variant:"default",size:"icon",onClick:b[2]||(b[2]=x=>$(!0)),class:"webphone-actions__button webphone-actions__button--answer-video wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:bg-transparent wp:hover:bg-[var(--p-primary-color)]/10","aria-label":"Answer Video"},{default:k(()=>[D(f(q_),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-[var(--p-primary-color)]"})]),_:1})):Ne("",!0),D(f(pt),{variant:"default",size:"icon",onClick:b[3]||(b[3]=x=>$(!1)),class:"webphone-actions__button webphone-actions__button--answer wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-status-available wp:hover:bg-status-available/90","aria-label":"Answer"},{default:k(()=>[D(f(fg),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-white"})]),_:1}),D(f(pt),{variant:"destructive",size:"icon",onClick:m,"aria-label":"Reject",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--reject wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:k(()=>[D(f(qc),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-white"})]),_:1})],64)):Ne("",!0),f(r).callStatus==="connected"?(I(),Se("div",iS,[Q("div",oS,[D(f(pt),{variant:f(r).isMuted?"destructive":"secondary",size:"icon",onClick:f(o),"aria-label":"Mute",class:"webphone-actions__button webphone-actions__button--mute wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:k(()=>[f(r).isMuted?(I(),K(f(k_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-disconnected"})):(I(),K(f(R_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),D(f(pt),{variant:(f(r).isHeld,"secondary"),size:"icon",onClick:f(a),"aria-label":"Hold",class:"webphone-actions__button webphone-actions__button--hold wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:k(()=>[f(r).isHeld?(I(),K(f(H_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-hold"})):(I(),K(f(I_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),T.value?Ne("",!0):(I(),K(f(pt),{key:0,variant:"secondary",size:"icon",onClick:b[4]||(b[4]=x=>w("transfer")),"aria-label":"Transfer",class:"webphone-actions__button webphone-actions__button--transfer wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:k(()=>[D(f(U_),{class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"})]),_:1}))]),Q("div",aS,[D(f(pt),{variant:"ghost",size:"icon",onClick:b[5]||(b[5]=x=>f(r).toggleKeypad()),"aria-label":f(r).isKeypadVisible?"Ocultar teclado":"Mostrar teclado",class:"webphone-actions__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"},{default:k(()=>[f(r).isKeypadVisible?(I(),K(f(Lc),{key:0,class:"webphone-actions__keypad-toggle-icon wp:size-6"})):(I(),K(f(Bc),{key:1,class:"webphone-actions__keypad-toggle-icon wp:size-6"}))]),_:1},8,["aria-label"]),D(f(Mi),{"model-value":f(r).keypadValue,type:"text",inputmode:"tel",pattern:"[0-9*#]*",placeholder:"Marcar opción (0-9, * o #)...","aria-label":"Tonos de marcación",onKeydown:d,onBeforeinput:p,onPaste:h,class:"p-input webphone-actions__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["model-value"]),Q("div",{class:"webphone-actions__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:b[6]||(b[6]=gr(x=>f(r).backspaceKeypad(),["stop"]))},[D(f(Fc),{class:"webphone-actions__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),Q("div",{class:Xe(["webphone-actions__keypad wp:w-full wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",f(r).isKeypadVisible?"wp:max-h-[300px] wp:opacity-100":"wp:max-h-0 wp:opacity-0"]),"data-visible":f(r).isKeypadVisible?"true":"false"},[D(Hc)],10,lS),D(f(pt),{size:"icon",onClick:B,"aria-label":"Hangup",class:"webphone-actions__button webphone-actions__button--hangup wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:k(()=>[D(f(qc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),b[14]||(b[14]=Q("span",{class:"webphone-actions__button-label wp:w-full wp:text-white wp:text-xs"},"Colgar",-1))]),_:1})])):Ne("",!0),f(r).callStatus==="calling"?(I(),Se("div",cS,[Q("div",uS,[D(f(pt),{variant:"ghost",size:"icon",onClick:b[7]||(b[7]=x=>f(r).toggleKeypad()),"aria-label":f(r).isKeypadVisible?"Ocultar teclado":"Mostrar teclado",class:"webphone-actions__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"},{default:k(()=>[f(r).isKeypadVisible?(I(),K(f(Lc),{key:0,class:"webphone-actions__keypad-toggle-icon wp:size-6"})):(I(),K(f(Bc),{key:1,class:"webphone-actions__keypad-toggle-icon wp:size-6"}))]),_:1},8,["aria-label"]),D(f(Mi),{modelValue:f(r).keypadValue,"onUpdate:modelValue":b[8]||(b[8]=x=>f(r).keypadValue=x),placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-actions__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),Q("div",{class:"webphone-actions__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:b[9]||(b[9]=gr(x=>f(r).backspaceKeypad(),["stop"]))},[D(f(Fc),{class:"webphone-actions__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),Q("div",{class:Xe(["webphone-actions__keypad wp:w-full wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",f(r).isKeypadVisible?"wp:max-h-[300px] wp:opacity-100":"wp:max-h-0 wp:opacity-0"]),"data-visible":f(r).isKeypadVisible?"true":"false"},[D(Hc)],10,dS),D(f(pt),{variant:"destructive",size:"lg",onClick:B,"aria-label":"Cancel",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--cancel wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:k(()=>[D(f(qc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),b[15]||(b[15]=Q("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Colgar",-1))]),_:1})])):Ne("",!0),T.value&&f(r).callStatus==="connected"?(I(),Se("div",fS,[D(f(pt),{variant:"default",size:"sm",onClick:b[10]||(b[10]=x=>w("completeTransfer")),class:"webphone-actions__button webphone-actions__button--complete-transfer wp:gap-2 wp:bg-status-available wp:hover:bg-status-available/90 wp:text-white"},{default:k(()=>[D(f(ug),{class:"wp:w-4 wp:h-4"}),b[16]||(b[16]=qe(" Completar Transferencia ",-1))]),_:1}),D(f(pt),{variant:"destructive",size:"sm",onClick:b[11]||(b[11]=x=>w("cancelTransfer")),class:"webphone-actions__button webphone-actions__button--cancel-transfer wp:gap-2"},{default:k(()=>[D(f(Nc),{class:"wp:w-4 wp:h-4"}),b[17]||(b[17]=qe(" Cancelar ",-1))]),_:1})])):Ne("",!0)],8,nS))}}),hS=pS,gS=X({__name:"Kbd",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>(I(),Se("kbd",{class:Xe(f(ct)("wp:bg-muted wp:text-muted-foreground wp:pointer-events-none wp:inline-flex wp:h-5 wp:w-fit wp:min-w-5 wp:items-center wp:justify-center wp:gap-1 wp:rounded-sm wp:px-1 wp:font-sans wp:text-xs wp:font-medium wp:select-none","wp:[&_svg:not([class*='size-'])]:size-3","wp:[[data-slot=tooltip-content]_&]:bg-background/20 wp:[[data-slot=tooltip-content]_&]:text-background wp:dark:[[data-slot=tooltip-content]_&]:bg-background/10",t.class))},[te(r.$slots,"default")],2))}}),hn=gS,vS={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 23"};function mS(e,t){return I(),Se("svg",vS,[...t[0]||(t[0]=[Q("path",{stroke:"currentColor","stroke-miterlimit":"22.926","stroke-width":"1.2",d:"m12.317 2.51 15.123-.027c2.609 1.773 1.65 19.836 0 18.746l-15.124.026zM1.593 2.484h1.45V21.29h-1.45c-1.79-2.697-1.79-17.855 0-18.806ZM6.244.25h3.078a1.573 1.573 0 0 1 1.574 1.566v18.902a1.58 1.58 0 0 1-1.574 1.574H6.244a1.58 1.58 0 0 1-1.574-1.576v-18.9A1.573 1.573 0 0 1 6.244.25Z","clip-rule":"evenodd"},null,-1)])])}var Vc={render:mS},wS=X({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=qr(e,t);return(n,s)=>(I(),K(f(h_),me({"data-slot":"tooltip"},f(r)),{default:k(i=>[te(n.$slots,"default",cr(Qt(i)))]),_:3},16))}}),ga=wS,yS=X({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=qr(zt(r,"class"),n);return(i,o)=>(I(),K(f(m_),null,{default:k(()=>[D(f(v_),me({"data-slot":"tooltip-content"},{...f(s),...i.$attrs},{class:f(ct)("wp:bg-foreground wp:text-background wp:animate-in wp:fade-in-0 wp:zoom-in-95 wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=closed]:zoom-out-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:z-50 wp:w-fit wp:rounded-md wp:px-3 wp:py-1.5 wp:text-xs wp:text-balance",r.class)}),{default:k(()=>[te(i.$slots,"default"),D(f(u_),{class:"wp:bg-foreground wp:fill-foreground wp:z-50 wp:size-2.5 wp:translate-y-[calc(-50%_-_2px)] wp:rotate-45 wp:rounded-[2px]"})]),_:3},16,["class"])]),_:3}))}}),va=yS,bS=X({__name:"TooltipProvider",props:{delayDuration:{default:0},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},content:{}},setup(e){const t=e;return(r,n)=>(I(),K(f(f_),cr(Qt(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),ma=bS,_S=X({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>(I(),K(f(w_),me({"data-slot":"tooltip-trigger"},t),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),wa=_S,SS=["data-call-status"],CS={class:"webphone-display__connected-status-label wp:flex wp:gap-2 wp:items-center"},xS={class:"webphone-display__duration wp:ibrad wp:font-medium wp:text-sm"},TS={class:"webphone-display__user-row wp:flex wp:items-center wp:gap-2 wp:text-sm font-semibold"},ES={key:2,class:"webphone-display__dialer wp:w-full wp:flex wp:items-center wp:justify-center wp:min-h-10"},AS={class:"webphone-display__dialer-field wp:relative"},kS={class:"webphone-display__suggestions wp:absolute wp:bottom-full wp:left-0 wp:w-full wp:z-50 wp:bg-popover wp:text-popover-foreground wp:shadow-md wp:rounded-md wp:border wp:mb-1 wp:max-h-40 wp:overflow-y-auto"},RS=["onPointerdown"],IS={class:"webphone-display__contact-content wp:flex wp:flex-col wp:min-w-0"},$S={class:"webphone-display__contact-name wp:truncate"},PS={class:"webphone-display__contact-number wp:text-xs wp:text-muted-foreground wp:truncate"},DS={key:3,class:"webphone-display__connected-summary wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2 wp:w-full"},OS={class:"webphone-display__caller wp:flex wp:flex-col wp:items-center wp:gap-1"},HS={class:"webphone-display__caller-name wp:text-sm wp:font-semibold wp:text-neutral-800 wp:dark:text-white"},MS={key:0,class:"webphone-display__caller-number wp:text-[10px] wp:text-muted-foreground"},NS={key:4,class:"webphone-display__non-idle wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2"},qS={class:"webphone-display__non-idle-row wp:flex wp:items-center wp:gap-4"},BS={class:"webphone-display__non-idle-caller wp:flex wp:flex-col wp:items-center"},LS={class:"webphone-display__non-idle-name wp:text-sm wp:font-medium wp:text-neutral-800 wp:dark:text-white"},FS={key:0,class:"webphone-display__non-idle-number wp:text-sm wp:text-muted-foreground"},VS=X({__name:"CallDisplay",props:{allowInput:{type:Boolean,default:!0},isWebCall:{type:Boolean,default:!1},isOnline:{type:Boolean,default:!0},user:{},contacts:{default:()=>[]},channelId:{default:void 0},maskNumber:{type:Boolean,default:!1}},setup(e){const t=Vt("webphone"),r=Vt("sip"),n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd+":"Ctrl+",s=e,i=j(()=>s.channelId!==void 0?t.channels.find(x=>x.id===s.channelId):t.activeChannel),o=j(()=>{if(!t.isConnected)return"wp:text-status-disconnected";const x=i.value;return x&&x.status!=="idle"?x.isHeld||x.status==="held"?"wp:text-status-hold":x.status==="incoming"?"wp:text-status-incoming":"wp:text-primary":"wp:text-primary"}),a=V(!1),l=V(null),u=V(null),c=x=>x.replace(/[^0-9*#]/g,""),d=x=>{x.ctrlKey||x.metaKey||x.altKey||x.key.length!==1||/[0-9*#]/.test(x.key)||x.preventDefault()},p=x=>{x.data&&c(x.data)!==x.data&&x.preventDefault()};Wy(l,()=>{a.value=!1});const h=j({get:()=>i.value?.keypadValue||"",set:x=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:c(x)})}}),g=j(()=>/^[0-9*#]+$/.test(h.value)),w=j(()=>{if(!h.value)return s.contacts.slice(0,10);const x=h.value.toLowerCase(),O=[];for(const R of s.contacts)if((R.name.toLowerCase().includes(x)||R.number.includes(x))&&(O.push(R),O.length>=10))break;return O}),T=x=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:c(x.number)}),a.value=!1},v=()=>{!h.value||!g.value||(a.value=!1,r.makeCall(h.value))};De(h,()=>{a.value=!0});const S=()=>{h.value&&g.value&&v()},y=()=>{a.value=!1},_=()=>{a.value=!0},E=()=>{setTimeout(()=>{a.value=!1},150)},$=V(Date.now());Uy(()=>{$.value=Date.now()},1e3);const B=j(()=>{const x=i.value?.startTime,O=i.value?.status||"idle";if(!x||O!=="connected")return"00:00:00";const R=Math.floor(($.value-x)/1e3);return R<0?"00:00:00":`${Math.floor(R/3600).toString().padStart(2,"0")}:${Math.floor(R%3600/60).toString().padStart(2,"0")}:${(R%60).toString().padStart(2,"0")}`}),m=j(()=>{if(!s.isOnline)return"Sin internet";if(!t.isConnected)return"Sin conexión";const x=i.value,O=x?.status||"idle";if(O==="idle")return"Disponible";if(O==="calling")return"Llamando...";if(x?.isHeld){const R=x.remoteNumber||x.keypadValue||"Unknown";return`En espera - ${s.maskNumber?an(R):R}`}return O==="connected"?"Conectado":O.charAt(0).toUpperCase()+O.slice(1)}),N=x=>{if(!x)return"";const O=x.trim(),R=O.startsWith("+"),M=O.replace(/[^\d]/g,"");return R?`+${M}`:M},q=x=>/\d/.test(x)&&/^[+\d\s().*#-]+$/.test(x.trim()),C=j(()=>{const x=i.value,O=x?.remoteNumber||x?.keypadValue,R=x?.remoteDisplayName;if(!O)return"Unknown";const M=N(O),z=s.contacts?.find(G=>N(G.number)===M);return z?s.maskNumber&&q(z.name)?an(z.name):z.name:R&&R!==O?s.maskNumber&&q(R)?N(R)===M?an(O):an(R):R:s.maskNumber?an(O):O}),b=j(()=>{const x=i.value,O=x?.remoteNumber||x?.keypadValue||"";return s.maskNumber?an(O):O});return(x,O)=>(I(),Se("div",{class:"webphone-display wp:flex wp:flex-col wp:items-center wp:px-4 wp:space-y-6","data-call-status":i.value?.status||"idle"},[(i.value?.status||"idle")==="connected"?(I(),Se("div",{key:0,class:Xe([o.value,"webphone-display__connected-status wp:w-full wp:flex wp:items-center wp:justify-between wp:gap-2 wp:text-3xl wp:font-light wp:mb-5"])},[Q("div",CS,[D(f(Vc),{class:"webphone-display__connected-status-icon wp:w-4 wp:h-4"}),O[3]||(O[3]=Q("span",{class:"webphone-display__connected-status-text wp:text-sm wp:montserrat wp:font-medium"},"En llamada",-1))]),Q("span",xS,Fe(B.value),1)],2)):Ne("",!0),s.user?(I(),Se("span",{key:1,class:Xe([o.value,"webphone-display__user wp:font-bold wp:text-lg wp:flex wp:items-center wp:gap-1 wp:transition-colors wp:duration-300"])},[Q("div",TS,[D(f(Vc),{class:"webphone-display__user-icon wp:size-6 wp:shrink-0 montserrat"}),qe(" "+Fe(s.user),1)]),Q("div",{class:Xe(["webphone-display__status-text wp:font-semibold wp:tracking-wider wp:text-sm wp:text-[var(--color-primary)] montserrat",o.value])},Fe(m.value),3)],2)):Ne("",!0),(i.value?.status||"idle")==="idle"&&s.allowInput?(I(),Se("div",ES,[Q("div",{class:"webphone-display__dialer-container wp:relative wp:w-full wp:max-w-80",ref_key:"containerRef",ref:l},[Q("div",AS,[D(f(ma),null,{default:k(()=>[D(f(ga),null,{default:k(()=>[D(f(wa),{"as-child":""},{default:k(()=>[D(f(pt),{onClick:O[0]||(O[0]=R=>f(t).toggleKeypad()),variant:"ghost",size:"icon",class:Xe(f(ct)("webphone-display__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"))},{default:k(()=>[f(t).isKeypadVisible?(I(),K(f(Lc),{key:0,class:"webphone-display__keypad-toggle-icon wp:size-5"})):(I(),K(f(Bc),{key:1,class:"webphone-display__keypad-toggle-icon wp:size-5"}))]),_:1},8,["class"])]),_:1}),D(f(va),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[Q("span",null,Fe(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),D(f(hn),null,{default:k(()=>[qe(Fe(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1}),D(f(Mi),{ref_key:"inputRef",ref:u,modelValue:h.value,"onUpdate:modelValue":O[1]||(O[1]=R=>h.value=R),type:"text",inputmode:"tel",pattern:"[0-9*#]*",onFocus:_,onBlur:E,onKeydown:[d,kl(S,["enter"]),kl(y,["escape"])],onBeforeinput:p,placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-display__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),Q("div",{class:"webphone-display__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:O[2]||(O[2]=gr(R=>f(t).backspaceKeypad(),["stop"]))},[D(f(Fc),{class:"webphone-display__backspace-icon wp:w-[15px] wp:h-[15px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-100 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),oo(Q("div",kS,[g.value?(I(),Se("div",{key:0,class:"webphone-display__suggestion webphone-display__suggestion--raw wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onPointerdown:gr(v,["prevent"])},[D(f(fg),{class:"webphone-display__suggestion-icon wp:w-4 wp:h-4 wp:shrink-0"}),Q("span",null,"Marcar "+Fe(h.value),1)],32)):Ne("",!0),(I(!0),Se(Ke,null,fr(w.value,R=>(I(),Se("div",{key:R.number,class:"webphone-display__suggestion webphone-display__suggestion--contact wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onPointerdown:gr(M=>T(R),["prevent"])},[Q("div",{class:Xe(f(ct)("webphone-display__contact-badge wp:flex wp:items-center wp:justify-center wp:w-6 wp:h-6 wp:rounded-full wp:shrink-0",R.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":R.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":R.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":R.type==="tool"?"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400":"wp:bg-neutral-100 wp:text-neutral-600 wp:dark:bg-neutral-800 wp:dark:text-neutral-400"))},[R.type==="extension"?(I(),K(f(cg),{key:0,class:"wp:w-3 wp:h-3"})):R.type==="contact"?(I(),K(f(Mc),{key:1,class:"wp:w-3 wp:h-3"})):R.type==="voicemail"?(I(),K(f(pg),{key:2,class:"wp:w-3 wp:h-3"})):R.type==="tool"?(I(),K(f(hg),{key:3,class:"wp:w-3 wp:h-3"})):(I(),K(f(Mc),{key:4,class:"wp:w-3 wp:h-3"}))],2),Q("div",IS,[Q("span",$S,Fe(R.name),1),Q("span",PS,Fe(R.number),1)])],40,RS))),128))],512),[[ko,a.value&&h.value&&(w.value.length>0||g.value)]])],512)])):(i.value?.status||"idle")==="connected"?(I(),Se("div",DS,[Q("div",OS,[Q("div",HS," En llamada con "+Fe(C.value),1),C.value!==b.value?(I(),Se("div",MS,Fe(b.value),1)):Ne("",!0)])])):(i.value?.status||"idle")!=="idle"?(I(),Se("div",NS,[Q("div",qS,[Q("div",BS,[Q("div",LS,Fe(C.value),1),C.value!==b.value?(I(),Se("div",FS,Fe(b.value),1)):Ne("",!0)]),D(f(ma),null,{default:k(()=>[D(f(ga),null,{default:k(()=>[D(f(wa),{"as-child":""}),D(f(va),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[Q("span",null,Fe(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),D(f(hn),null,{default:k(()=>[qe(Fe(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1})])])):Ne("",!0)],8,SS))}}),jS=VS,US=X({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=qr(e,t);return(n,s)=>(I(),K(f(Tb),me({"data-slot":"dialog"},f(r)),{default:k(i=>[te(n.$slots,"default",cr(Qt(i)))]),_:3},16))}}),jc=US,zS=X({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=zt(t,"class");return(n,s)=>(I(),K(f(Ub),me({"data-slot":"dialog-overlay"},f(r),{class:f(ct)("wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:fixed wp:inset-0 wp:z-50 wp:bg-black/80",t.class)}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["class"]))}}),KS=zS,WS=X({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},showCloseButton:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=qr(zt(r,"class"),n);return(i,o)=>(I(),K(f(zb),null,{default:k(()=>[D(KS),D(f(Vb),me({"data-slot":"dialog-content"},{...i.$attrs,...f(s)},{class:f(ct)("wp:bg-background wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:fixed wp:top-[50%] wp:left-[50%] wp:z-50 wp:grid wp:w-full wp:max-w-[calc(100%-2rem)] wp:translate-x-[-50%] wp:translate-y-[-50%] wp:gap-4 wp:rounded-lg wp:border wp:p-6 wp:shadow-lg wp:duration-200 wp:sm:max-w-lg",r.class)}),{default:k(()=>[te(i.$slots,"default"),e.showCloseButton?(I(),K(f(Eb),{key:0,"data-slot":"dialog-close",class:"wp:ring-offset-background wp:focus:ring-ring wp:data-[state=open]:bg-accent wp:data-[state=open]:text-muted-foreground wp:absolute wp:top-4 wp:right-4 wp:rounded-xs wp:opacity-70 wp:transition-opacity wp:hover:opacity-100 wp:focus:ring-2 wp:focus:ring-offset-2 wp:focus:outline-hidden wp:disabled:pointer-events-none wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4"},{default:k(()=>[D(f(Nc)),o[0]||(o[0]=Q("span",{class:"wp:sr-only"},"Close",-1))]),_:1})):Ne("",!0)]),_:3},16,["class"])]),_:3}))}}),Uc=WS,GS=X({__name:"DialogFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>(I(),Se("div",{"data-slot":"dialog-footer",class:Xe(f(ct)("wp:flex wp:flex-col-reverse wp:gap-2 wp:sm:flex-row wp:sm:justify-end",t.class))},[te(r.$slots,"default")],2))}}),gg=GS,JS=X({__name:"DialogHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>(I(),Se("div",{"data-slot":"dialog-header",class:Xe(f(ct)("wp:flex wp:flex-col wp:gap-2 wp:text-center wp:sm:text-left",t.class))},[te(r.$slots,"default")],2))}}),zc=JS,YS=X({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=cn(zt(t,"class"));return(n,s)=>(I(),K(f(Kb),me({"data-slot":"dialog-title"},f(r),{class:f(ct)("wp:text-lg wp:leading-none wp:font-semibold",t.class)}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["class"]))}}),Kc=YS,ZS=X({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=qr(e,t);return(n,s)=>(I(),K(f(N2),me({"data-slot":"select"},f(r)),{default:k(i=>[te(n.$slots,"default",cr(Qt(i)))]),_:3},16))}}),Wc=ZS,XS=X({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=qr(zt(r,"class"),n);return(i,o)=>(I(),K(f(e_),null,{default:k(()=>[D(f(K2),me({"data-slot":"select-content"},{...i.$attrs,...f(s)},{class:f(ct)("wp:bg-popover wp:text-popover-foreground wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:relative wp:z-50 wp:max-h-(--reka-select-content-available-height) wp:min-w-[8rem] wp:overflow-x-hidden wp:overflow-y-auto wp:rounded-md wp:border wp:shadow-md",e.position==="popper"&&"wp:data-[side=bottom]:translate-y-1 wp:data-[side=left]:-translate-x-1 wp:data-[side=right]:translate-x-1 wp:data-[side=top]:-translate-y-1",r.class)}),{default:k(()=>[D(f(iC)),D(f(i_),{class:Xe(f(ct)("wp:p-1",e.position==="popper"&&"wp:h-[var(--reka-select-trigger-height)] wp:w-full wp:min-w-[var(--reka-select-trigger-width)] wp:scroll-my-1"))},{default:k(()=>[te(i.$slots,"default")]),_:3},8,["class"]),D(f(nC))]),_:3},16,["class"])]),_:3}))}}),Gc=XS,QS=X({__name:"SelectGroup",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>(I(),K(f(G2),me({"data-slot":"select-group"},t),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),Jc=QS,eC={class:"wp:absolute wp:right-2 wp:flex wp:size-3.5 wp:items-center wp:justify-center"},tC=X({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=cn(zt(t,"class"));return(n,s)=>(I(),K(f(Z2),me({"data-slot":"select-item"},f(r),{class:f(ct)("wp:focus:bg-accent wp:focus:text-accent-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:relative wp:flex wp:w-full wp:cursor-default wp:items-center wp:gap-2 wp:rounded-sm wp:py-1.5 wp:pr-8 wp:pl-2 wp:text-sm wp:outline-hidden wp:select-none wp:data-[disabled]:pointer-events-none wp:data-[disabled]:opacity-50 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4 wp:*:[span]:last:flex wp:*:[span]:last:items-center wp:*:[span]:last:gap-2",t.class)}),{default:k(()=>[Q("span",eC,[D(f(X2),null,{default:k(()=>[te(n.$slots,"indicator-icon",{},()=>[D(f(ug),{class:"wp:size-4"})])]),_:3})]),D(f(Q2),null,{default:k(()=>[te(n.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),Ni=tC,rC=X({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=cn(zt(t,"class"));return(n,s)=>(I(),K(f(t_),me({"data-slot":"select-scroll-down-button"},f(r),{class:f(ct)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:k(()=>[te(n.$slots,"default",{},()=>[D(f(dg),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),nC=rC,sC=X({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=cn(zt(t,"class"));return(n,s)=>(I(),K(f(r_),me({"data-slot":"select-scroll-up-button"},f(r),{class:f(ct)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:k(()=>[te(n.$slots,"default",{},()=>[D(f(A_),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),iC=sC,oC=X({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},size:{default:"default"}},setup(e){const t=e,r=cn(zt(t,"class","size"));return(n,s)=>(I(),K(f(n_),me({"data-slot":"select-trigger","data-size":e.size},f(r),{class:f(ct)("wp:border-input wp:data-[placeholder]:text-muted-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive wp:dark:bg-input/30 wp:dark:hover:bg-input/50 wp:flex wp:w-fit wp:items-center wp:justify-between wp:gap-2 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-2 wp:text-sm wp:whitespace-nowrap wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:data-[size=default]:h-9 wp:data-[size=sm]:h-8 wp:*:data-[slot=select-value]:line-clamp-1 wp:*:data-[slot=select-value]:flex wp:*:data-[slot=select-value]:items-center wp:*:data-[slot=select-value]:gap-2 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4",t.class)}),{default:k(()=>[te(n.$slots,"default"),D(f(J2),{"as-child":""},{default:k(()=>[D(f(dg),{class:"wp:size-4 wp:opacity-50"})]),_:1})]),_:3},16,["data-size","class"]))}}),Yc=oC,aC=X({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>(I(),K(f(s_),me({"data-slot":"select-value"},t),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),Zc=aC,lC=X({__name:"Slider",props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},orientation:{},dir:{},inverted:{type:Boolean},min:{},max:{},step:{},minStepsBetweenThumbs:{},thumbAlignment:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const r=e,n=t,s=qr(zt(r,"class"),n);return(i,o)=>(I(),K(f(d2),me({"data-slot":"slider",class:f(ct)("wp:relative wp:flex wp:w-full wp:touch-none wp:items-center wp:select-none wp:data-[disabled]:opacity-50 wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:min-h-44 wp:data-[orientation=vertical]:w-auto wp:data-[orientation=vertical]:flex-col",r.class)},f(s)),{default:k(({modelValue:a})=>[D(f(g2),{"data-slot":"slider-track",class:"wp:bg-muted wp:relative wp:grow wp:overflow-hidden wp:rounded-full wp:data-[orientation=horizontal]:h-1.5 wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-1.5"},{default:k(()=>[D(f(f2),{"data-slot":"slider-range",class:"wp:bg-primary wp:absolute wp:data-[orientation=horizontal]:h-full wp:data-[orientation=vertical]:w-full"})]),_:1}),(I(!0),Se(Ke,null,fr(a,(l,u)=>(I(),K(f(h2),{key:u,"data-slot":"slider-thumb",class:"wp:bg-white wp:border-primary wp:ring-ring/50 wp:block wp:size-4 wp:shrink-0 wp:rounded-full wp:border wp:shadow-sm wp:transition-[color,box-shadow] wp:hover:ring-4 wp:focus-visible:ring-4 wp:focus-visible:outline-hidden wp:disabled:pointer-events-none wp:disabled:opacity-50"}))),128))]),_:1},16,["class"]))}}),Xc=lC,cC=X({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=zt(t,"class");return(n,s)=>(I(),K(f(v2),me({"data-slot":"label"},f(r),{class:f(ct)("wp:flex wp:items-center wp:gap-2 wp:text-sm wp:leading-none wp:font-medium wp:select-none wp:group-data-[disabled=true]:pointer-events-none wp:group-data-[disabled=true]:opacity-50 wp:peer-disabled:cursor-not-allowed wp:peer-disabled:opacity-50",t.class)}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["class"]))}}),gn=cC,uC=X({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=zt(t,"class");return(n,s)=>(I(),K(f(a_),me({"data-slot":"separator"},f(r),{class:f(ct)("wp:bg-border wp:shrink-0 wp:data-[orientation=horizontal]:h-px wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-px",t.class)}),null,16,["class"]))}}),vg=uC,dC=X({__name:"Toggle",props:{defaultValue:{type:Boolean},modelValue:{type:[Boolean,null]},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]},variant:{default:"default"},size:{default:"default"}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,s=qr(zt(r,"class","size","variant"),n);return(i,o)=>(I(),K(f(c_),me({"data-slot":"toggle"},f(s),{class:f(ct)(f(pC)({variant:e.variant,size:e.size}),r.class)}),{default:k(a=>[te(i.$slots,"default",cr(Qt(a)))]),_:3},16,["class"]))}}),fC=dC;const pC=Lp("wp:inline-flex wp:items-center wp:justify-center wp:gap-2 wp:rounded-md wp:text-sm wp:font-medium wp:hover:bg-muted wp:hover:text-muted-foreground wp:disabled:pointer-events-none wp:disabled:opacity-50 wp:data-[state=on]:bg-accent wp:data-[state=on]:text-accent-foreground wp:[&_svg]:pointer-events-none wp:[&_svg:not([class*='size-'])]:size-4 wp:[&_svg]:shrink-0 wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px] wp:outline-none wp:transition-[color,box-shadow] wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive wp:whitespace-nowrap",{variants:{variant:{default:"wp:bg-transparent",outline:"wp:border wp:border-input wp:bg-transparent wp:shadow-xs wp:hover:bg-accent wp:hover:text-accent-foreground"},size:{default:"wp:h-9 wp:px-2 wp:min-w-9",sm:"wp:h-8 wp:px-1.5 wp:min-w-8",lg:"wp:h-10 wp:px-2.5 wp:min-w-10"}},defaultVariants:{variant:"default",size:"default"}});var hC={class:"wp:flex wp:flex-col wp:gap-6 wp:py-4"},gC={class:"wp:flex wp:flex-col wp:gap-2"},vC={class:"wp:flex wp:flex-col wp:gap-2"},mC={class:"wp:flex wp:flex-col wp:gap-4"},wC={class:"wp:flex wp:justify-between"},yC={class:"wp:text-sm wp:text-muted-foreground"},bC={class:"wp:flex wp:flex-col wp:gap-4"},_C={class:"wp:flex wp:justify-between"},SC={class:"wp:text-sm wp:text-muted-foreground"},CC={class:"wp:flex wp:flex-col wp:gap-2"},xC={class:"wp:flex wp:justify-between"},TC={class:"wp:text-sm wp:text-muted-foreground"},EC={class:"wp:flex wp:flex-col wp:gap-2"},AC={class:"wp:flex wp:items-center wp:justify-between wp:gap-4"},kC={class:"wp:flex wp:flex-col wp:gap-1"},RC={class:"wp:flex wp:flex-col wp:gap-3"},IC={class:"wp:grid wp:grid-cols-2 wp:gap-2 wp:text-sm"},$C={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},PC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},DC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},OC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},HC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},MC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},NC=X({__name:"AudioSettingsDialog",props:{visible:{type:Boolean}},emits:["update:visible"],setup(e,{emit:t}){const r=t,n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",s=Vt("sip"),{setVolume:i,setOutputDevice:o,setInputDevice:a,setNotificationVolume:l}=s,u=s.setRingtoneVolume??(()=>{}),c=s.setRingtoneTone??(()=>{}),d=V([]),p=V([]),h=os("webphone-input-device",""),g=os("webphone-output-device",""),w=os("webphone-volume",100),T=os("webphone-notification-volume",100),v=os("webphone-ringtone-volume",100),S=os("webphone-ringtone-tone","original"),y=os(Np,!1),_={classic:"original","original-loud":"aurora","original-intense":"resonancia"},E=async()=>{try{await navigator.mediaDevices.getUserMedia({audio:!0});const O=await navigator.mediaDevices.enumerateDevices();d.value=O.filter(z=>z.kind==="audioinput").map((z,G)=>({deviceId:z.deviceId,label:z.label||`Microphone ${G+1}`})),p.value=O.filter(z=>z.kind==="audiooutput").map((z,G)=>({deviceId:z.deviceId,label:z.label||`Speaker ${G+1}`}));const R=d.value.some(z=>z.deviceId===h.value);(!h.value||!R)&&d.value.length>0&&(h.value=d.value[0]?.deviceId??"");const M=p.value.some(z=>z.deviceId===g.value);(!g.value||!M)&&p.value.length>0&&(g.value=p.value[0]?.deviceId??""),h.value&&a(h.value),g.value&&o(g.value)}catch(O){console.error("Error loading devices",O)}},$=O=>{const R=String(O);h.value=R,a(R)},B=O=>{const R=String(O);g.value=R,o(R)},m=(O,R=35)=>O.length<=R?O:O.substring(0,R)+"...",N=j({get:()=>[w.value],set:O=>{w.value=O[0],i(w.value)}}),q=j({get:()=>[T.value],set:O=>{T.value=O[0],l(T.value)}}),C=j({get:()=>[v.value],set:O=>{v.value=O[0]??100,u(v.value)}}),b=O=>{S.value=String(O),c(S.value)},x=O=>{y.value=O};return Qe(()=>{E(),i(w.value),l(T.value),u(v.value),localStorage.removeItem("webphone-custom-ringtone");const O=_[S.value]??S.value;S.value=["original","aurora","resonancia"].includes(O)?O:"original",c(S.value)}),(O,R)=>e.visible?(I(),K(f(jc),{key:0,open:e.visible,"onUpdate:open":R[6]||(R[6]=M=>r("update:visible",M))},{default:k(()=>[D(f(Uc),{class:"wp:sm:max-w-sm"},{default:k(()=>[D(f(zc),null,{default:k(()=>[D(f(Kc),null,{default:k(()=>[...R[7]||(R[7]=[qe("Audio Settings",-1)])]),_:1})]),_:1}),Q("div",hC,[Q("div",gC,[D(f(gn),null,{default:k(()=>[...R[8]||(R[8]=[qe("Microphone",-1)])]),_:1}),D(f(Wc),{modelValue:f(h),"onUpdate:modelValue":[R[0]||(R[0]=M=>tt(h)?h.value=M:null),$]},{default:k(()=>[D(f(Yc),{class:"wp:w-full"},{default:k(()=>[D(f(Zc),{placeholder:"Select Microphone"})]),_:1}),D(f(Gc),null,{default:k(()=>[D(f(Jc),null,{default:k(()=>[(I(!0),Se(Ke,null,fr(d.value,M=>(I(),K(f(Ni),{key:M.deviceId,value:M.deviceId,title:M.label},{default:k(()=>[qe(Fe(m(M.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),Q("div",vC,[D(f(gn),null,{default:k(()=>[...R[9]||(R[9]=[qe("Speaker",-1)])]),_:1}),D(f(Wc),{modelValue:f(g),"onUpdate:modelValue":[R[1]||(R[1]=M=>tt(g)?g.value=M:null),B]},{default:k(()=>[D(f(Yc),{class:"wp:w-full"},{default:k(()=>[D(f(Zc),{placeholder:"Select Speaker"})]),_:1}),D(f(Gc),null,{default:k(()=>[D(f(Jc),null,{default:k(()=>[(I(!0),Se(Ke,null,fr(p.value,M=>(I(),K(f(Ni),{key:M.deviceId,value:M.deviceId,title:M.label},{default:k(()=>[qe(Fe(m(M.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),Q("div",mC,[Q("div",wC,[D(f(gn),null,{default:k(()=>[...R[10]||(R[10]=[qe("Media Volume",-1)])]),_:1}),Q("span",yC,Fe(f(w))+"%",1)]),D(f(Xc),{modelValue:N.value,"onUpdate:modelValue":R[2]||(R[2]=M=>N.value=M),max:100,step:1},null,8,["modelValue"])]),Q("div",bC,[Q("div",_C,[D(f(gn),null,{default:k(()=>[...R[11]||(R[11]=[qe("Notification Volume",-1)])]),_:1}),Q("span",SC,Fe(f(T))+"%",1)]),D(f(Xc),{modelValue:q.value,"onUpdate:modelValue":R[3]||(R[3]=M=>q.value=M),max:100,step:1},null,8,["modelValue"])]),Q("div",CC,[Q("div",xC,[D(f(gn),null,{default:k(()=>[...R[12]||(R[12]=[qe("Volumen del tono",-1)])]),_:1}),Q("span",TC,Fe(f(v))+"%",1)]),D(f(Xc),{modelValue:C.value,"onUpdate:modelValue":R[4]||(R[4]=M=>C.value=M),max:100,step:1},null,8,["modelValue"])]),Q("div",EC,[D(f(gn),null,{default:k(()=>[...R[13]||(R[13]=[qe("Tono de llamada",-1)])]),_:1}),D(f(Wc),{"model-value":f(S),"onUpdate:modelValue":b},{default:k(()=>[D(f(Yc),{class:"wp:w-full"},{default:k(()=>[D(f(Zc),{placeholder:"Seleccionar tono"})]),_:1}),D(f(Gc),null,{default:k(()=>[D(f(Jc),null,{default:k(()=>[D(f(Ni),{value:"original"},{default:k(()=>[...R[14]||(R[14]=[qe("Original",-1)])]),_:1}),D(f(Ni),{value:"aurora"},{default:k(()=>[...R[15]||(R[15]=[qe("Aurora",-1)])]),_:1}),D(f(Ni),{value:"resonancia"},{default:k(()=>[...R[16]||(R[16]=[qe("Resonancia",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model-value"])]),D(f(vg)),Q("div",AC,[Q("div",kC,[D(f(gn),{for:"auto-answer-toggle"},{default:k(()=>[...R[17]||(R[17]=[qe("Respuesta automática",-1)])]),_:1}),R[18]||(R[18]=Q("span",{class:"wp:text-sm wp:text-muted-foreground"}," Pitido y respuesta automática para llamadas entrantes ",-1))]),D(f(fC),{id:"auto-answer-toggle","model-value":f(y),role:"switch","aria-checked":f(y),"aria-label":f(y)?"Desactivar respuesta automática":"Activar respuesta automática",class:Xe(["wp:flex wp:h-7 wp:w-12 wp:shrink-0 wp:cursor-pointer wp:items-center wp:justify-start wp:rounded-full wp:border-0 wp:p-0.5 wp:transition-colors wp:focus-visible:ring-2 wp:focus-visible:ring-primary/50"]),style:xt({backgroundColor:f(y)?"var(--color-primary-500)":"var(--muted)"}),"onUpdate:modelValue":x},{default:k(()=>[Q("span",{class:Xe(["wp:pointer-events-none wp:block wp:h-6 wp:w-6 wp:shrink-0 wp:rounded-full wp:bg-white wp:shadow-sm wp:transition-transform",f(y)?"wp:translate-x-5":"wp:translate-x-0"])},null,2)]),_:1},8,["model-value","aria-checked","aria-label","style"])]),D(f(vg)),Q("div",RC,[D(f(gn),{class:"wp:text-base"},{default:k(()=>[...R[19]||(R[19]=[qe("Atajos de teclado",-1)])]),_:1}),Q("div",IC,[Q("div",$C,[R[20]||(R[20]=Q("span",{class:"wp:text-muted-foreground"},"Historial",-1)),D(f(hn),null,{default:k(()=>[qe(Fe(f(n))+"H",1)]),_:1})]),Q("div",PC,[R[21]||(R[21]=Q("span",{class:"wp:text-muted-foreground"},"Configuración",-1)),D(f(hn),null,{default:k(()=>[qe(Fe(f(n))+",",1)]),_:1})]),Q("div",DC,[R[22]||(R[22]=Q("span",{class:"wp:text-muted-foreground"},"Teclado",-1)),D(f(hn),null,{default:k(()=>[qe(Fe(f(n))+"K",1)]),_:1})]),Q("div",OC,[R[23]||(R[23]=Q("span",{class:"wp:text-muted-foreground"},"Línea 1",-1)),D(f(hn),null,{default:k(()=>[qe(Fe(f(n))+"1",1)]),_:1})]),Q("div",HC,[R[24]||(R[24]=Q("span",{class:"wp:text-muted-foreground"},"Línea 2",-1)),D(f(hn),null,{default:k(()=>[qe(Fe(f(n))+"2",1)]),_:1})]),Q("div",MC,[R[25]||(R[25]=Q("span",{class:"wp:text-muted-foreground"},"Línea 3",-1)),D(f(hn),null,{default:k(()=>[qe(Fe(f(n))+"3",1)]),_:1})])])])]),D(f(gg),null,{default:k(()=>[D(f(pt),{variant:"secondary",onClick:R[5]||(R[5]=M=>r("update:visible",!1))},{default:k(()=>[...R[26]||(R[26]=[qe("Close",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):Ne("",!0)}}),qC=NC,BC=X({__name:"ScrollBar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=zt(t,"class");return(n,s)=>(I(),K(f(R2),me({"data-slot":"scroll-area-scrollbar"},f(r),{class:f(ct)("wp:flex wp:touch-none wp:p-px wp:transition-colors wp:select-none",e.orientation==="vertical"&&"wp:h-full wp:w-2.5 wp:border-l wp:border-l-transparent",e.orientation==="horizontal"&&"wp:h-2.5 wp:flex-col wp:border-t wp:border-t-transparent",t.class)}),{default:k(()=>[D(f($2),{"data-slot":"scroll-area-thumb",class:"wp:bg-border wp:relative wp:flex-1 wp:rounded-full"})]),_:1},16,["class"]))}}),LC=BC,FC=X({__name:"ScrollArea",props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=zt(t,"class");return(n,s)=>(I(),K(f(w2),me({"data-slot":"scroll-area"},f(r),{class:f(ct)("wp:relative",t.class)}),{default:k(()=>[D(f(P2),{"data-slot":"scroll-area-viewport",class:"wp:focus-visible:ring-ring/50 wp:size-full wp:rounded-[inherit] wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:focus-visible:outline-1"},{default:k(()=>[te(n.$slots,"default")]),_:3}),D(LC),D(f(b2))]),_:3},16,["class"]))}}),mg=FC,VC={class:"wp:relative wp:my-2"},jC={class:"wp:flex wp:flex-col wp:gap-2"},UC=["onClick"],zC={class:"wp:flex wp:items-center wp:gap-3"},KC={class:"wp:flex wp:flex-col"},WC={class:"wp:text-sm wp:font-medium"},GC={class:"wp:text-[10px] wp:text-muted-foreground"},JC={class:"wp:flex wp:flex-col wp:items-end"},YC={key:0,class:"wp:text-xs wp:font-mono wp:text-muted-foreground"},ZC={class:"wp:text-[10px] wp:text-muted-foreground wp:capitalize"},XC={key:0,class:"wp:text-center wp:text-muted-foreground wp:py-8"},QC={key:1,class:"wp:text-center wp:text-muted-foreground wp:py-8"},ex=X({__name:"CallHistoryDialog",props:{visible:{type:Boolean},maskNumber:{type:Boolean},contacts:{}},emits:["update:visible","call"],setup(e,{emit:t}){const r=e,n=t,s=Vt("webphone"),i=V(""),o=h=>{if(!r.contacts)return h;const g=r.contacts.find(w=>w.number===h);return g?g.name:h},a=h=>{const g=o(h);return r.maskNumber&&g===h?an(h):g},l=j(()=>{if(!i.value)return s.callHistory;const h=i.value.toLowerCase();return s.callHistory.filter(g=>{const w=o(g.number).toLowerCase(),T=g.number.toLowerCase();return w.includes(h)||T.includes(h)})}),u=h=>h===0?"":`${Math.floor(h/60)}:${(h%60).toString().padStart(2,"0")}`,c=h=>h.direction==="incoming"?h.status==="missed"?P_:$_:D_,d=h=>h.status==="missed"?"wp:text-red-500":h.direction==="incoming"?"wp:text-green-500":"wp:text-blue-500",p=h=>{n("update:visible",!1),n("call",h)};return(h,g)=>e.visible?(I(),K(f(jc),{key:0,open:e.visible,"onUpdate:open":g[1]||(g[1]=w=>n("update:visible",w))},{default:k(()=>[D(f(Uc),{class:"wp:sm:max-w-sm"},{default:k(()=>[D(f(zc),null,{default:k(()=>[D(f(Kc),null,{default:k(()=>[...g[2]||(g[2]=[qe("Call History",-1)])]),_:1})]),_:1}),Q("div",VC,[D(f(M_),{class:"wp:absolute wp:left-2 wp:top-2.5 wp:h-4 wp:w-4 wp:text-muted-foreground"}),D(f(Mi),{modelValue:i.value,"onUpdate:modelValue":g[0]||(g[0]=w=>i.value=w),placeholder:"Search history...",class:"wp:pl-8"},null,8,["modelValue"])]),D(f(mg),{class:"wp:h-[60vh] wp:pr-4"},{default:k(()=>[Q("div",jC,[(I(!0),Se(Ke,null,fr(l.value,w=>(I(),Se("div",{key:w.id,class:"wp:flex wp:items-center wp:justify-between wp:p-2 wp:rounded-lg wp:hover:bg-accent wp:cursor-pointer wp:transition-colors",onClick:T=>p(w.number)},[Q("div",zC,[(I(),K(ui(c(w)),{class:Xe([d(w),"wp:w-4 wp:h-4"])},null,8,["class"])),Q("div",KC,[Q("span",WC,Fe(a(w.number)),1),Q("span",GC,Fe(new Date(w.startTime).toLocaleString()),1)])]),Q("div",JC,[w.duration>0?(I(),Se("span",YC,Fe(u(w.duration)),1)):Ne("",!0),Q("span",ZC,Fe(w.status),1)])],8,UC))),128)),f(s).callHistory.length===0?(I(),Se("div",XC," No call history ")):l.value.length===0?(I(),Se("div",QC," No results found ")):Ne("",!0)])]),_:1})]),_:1})]),_:1},8,["open"])):Ne("",!0)}}),tx=ex,rx={class:"wp:grid wp:gap-4 wp:py-4"},nx={class:"wp:grid wp:gap-2 wp:relative"},sx={class:"wp:relative"},ix={key:0,class:"wp:absolute wp:top-full wp:left-0 wp:right-0 wp:mt-1 wp:bg-popover wp:border wp:rounded-md wp:shadow-lg wp:z-50 wp:max-h-60 wp:overflow-auto"},ox={class:"wp:p-1"},ax=["onClick"],lx={class:"wp:flex wp:flex-col wp:min-w-0 wp:flex-1"},cx={class:"wp:font-medium wp:text-sm wp:truncate"},ux={class:"wp:text-xs wp:text-muted-foreground"},dx=X({__name:"TransferDialog",props:{visible:{type:Boolean},contacts:{default:()=>[]}},emits:["update:visible","transfer"],setup(e,{emit:t}){const r=e,n=t,s=V(""),i=V(!1),o=V(null);De(()=>r.visible,p=>{p&&(s.value="",i.value=!1)}),De(s,p=>{i.value=p.length>0&&a.value.length>0});const a=j(()=>{if(!s.value)return r.contacts;const p=s.value.toLowerCase();return r.contacts.filter(h=>h.name.toLowerCase().includes(p)||h.number.includes(p))}),l=p=>{s.value=p.number,i.value=!1},u=()=>{s.value="",i.value=!1,o.value?.focus()},c=p=>{const h=s.value.trim();h&&(n("transfer",h,p),n("update:visible",!1),s.value="",i.value=!1)},d=p=>{p.key==="Enter"&&s.value.trim()?(p.preventDefault(),c("blind")):p.key==="Escape"&&(i.value=!1)};return(p,h)=>e.visible?(I(),K(f(jc),{key:0,open:e.visible,"onUpdate:open":h[5]||(h[5]=g=>n("update:visible",g))},{default:k(()=>[D(f(Uc),{class:"wp:sm:max-w-md"},{default:k(()=>[D(f(zc),null,{default:k(()=>[D(f(Kc),null,{default:k(()=>[...h[6]||(h[6]=[qe("Transferir Llamada",-1)])]),_:1})]),_:1}),Q("div",rx,[Q("div",nx,[D(f(gn),{for:"transfer-input"},{default:k(()=>[...h[7]||(h[7]=[qe("Número o Contacto",-1)])]),_:1}),Q("div",sx,[D(f(Mi),{id:"transfer-input",ref_key:"inputRef",ref:o,modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=g=>s.value=g),type:"text",placeholder:"Escribe un número o busca un contacto...",class:"wp:pr-8",onKeydown:d,onFocus:h[1]||(h[1]=g=>i.value=s.value.length>0&&a.value.length>0),autocomplete:"off"},null,8,["modelValue"]),s.value?(I(),K(f(pt),{key:0,variant:"ghost",size:"icon",class:"wp:absolute wp:right-0 wp:top-0 wp:h-full wp:w-8 wp:hover:bg-transparent",onClick:u},{default:k(()=>[D(f(Nc),{class:"wp:h-4 wp:w-4"})]),_:1})):Ne("",!0)]),i.value&&a.value.length>0?(I(),Se("div",ix,[D(f(mg),{class:"wp:max-h-60"},{default:k(()=>[Q("div",ox,[(I(!0),Se(Ke,null,fr(a.value,g=>(I(),Se("div",{key:g.number,class:"wp:flex wp:items-center wp:gap-2 wp:p-2 wp:rounded-sm wp:cursor-pointer wp:hover:bg-accent wp:transition-colors",onClick:w=>l(g)},[g.type?(I(),Se("div",{key:0,class:Xe(f(ct)("wp:flex wp:items-center wp:justify-center wp:w-8 wp:h-8 wp:rounded-full wp:shrink-0",g.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":g.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":g.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400"))},[g.type==="extension"?(I(),K(f(cg),{key:0,class:"wp:w-4 wp:h-4"})):g.type==="contact"?(I(),K(f(Mc),{key:1,class:"wp:w-4 wp:h-4"})):g.type==="voicemail"?(I(),K(f(pg),{key:2,class:"wp:w-4 wp:h-4"})):(I(),K(f(hg),{key:3,class:"wp:w-4 wp:h-4"}))],2)):Ne("",!0),Q("div",lx,[Q("span",cx,Fe(g.name),1),Q("span",ux,Fe(g.number),1)])],8,ax))),128))])]),_:1})])):Ne("",!0),h[8]||(h[8]=Q("p",{class:"wp:text-xs wp:text-muted-foreground"}," Presiona Enter para transferir directamente ",-1))])]),D(f(gg),{class:"wp:flex-col wp:gap-2 sm:wp:flex-row"},{default:k(()=>[D(f(pt),{variant:"secondary",onClick:h[2]||(h[2]=g=>n("update:visible",!1)),class:"wp:w-full sm:wp:w-auto"},{default:k(()=>[...h[9]||(h[9]=[qe(" Cancelar ",-1)])]),_:1}),D(f(pt),{onClick:h[3]||(h[3]=g=>c("blind")),disabled:!s.value.trim(),variant:"outline",class:"wp:w-full sm:wp:flex-1"},{default:k(()=>[...h[10]||(h[10]=[qe(" Transferencia Ciega ",-1)])]),_:1},8,["disabled"]),D(f(pt),{onClick:h[4]||(h[4]=g=>c("attended")),disabled:!s.value.trim(),class:"wp:w-full sm:wp:flex-1"},{default:k(()=>[...h[11]||(h[11]=[qe(" Con Consulta ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"])):Ne("",!0)}}),fx=dx,px=X({__name:"DocumentPip",props:{remoteStream:{},localStream:{},hasVideo:{type:Boolean},remoteNumber:{},isConnected:{type:Boolean},callStatus:{},isMuted:{type:Boolean},isHeld:{type:Boolean},destination:{},isVideo:{type:Boolean},active:{type:Boolean},autoOpenOnBlur:{type:Boolean}},emits:["transfer","update:active","hangup","answer","toggleMute","toggleHold"],setup(e,{expose:t,emit:r}){const n=e,s=r,i=V(!1),o=V(!1),a=V(!1),l=V(null),u=V(0),c=V(null);let d=null,p=null;Qe(()=>{i.value="documentPictureInPicture"in window,document.addEventListener("visibilitychange",w),window.addEventListener("blur",T)}),jt(()=>{document.removeEventListener("visibilitychange",w),window.removeEventListener("blur",T),p&&(clearTimeout(p),p=null),S(),M()});const h=()=>{const G=n.callStatus!=="idle",oe=document.hidden||!document.hasFocus();return n.autoOpenOnBlur!==!1&&G&&i.value&&oe&&!o.value&&!a.value},g=()=>{h()&&(p&&clearTimeout(p),p=setTimeout(()=>{h()&&R()},120))},w=()=>{g()},T=()=>{g()},v=()=>{c.value||(u.value=0,c.value=setInterval(()=>{u.value++},1e3))},S=()=>{c.value&&(clearInterval(c.value),c.value=null)},y=G=>{const oe=Math.floor(G/60),Y=G%60;return`${oe.toString().padStart(2,"0")}:${Y.toString().padStart(2,"0")}`};De(()=>n.callStatus,(G,oe)=>{G==="connected"&&oe!=="connected"?v():G==="idle"&&oe!=="idle"&&(S(),o.value&&M())},{immediate:!0}),De(()=>n.isConnected,G=>{!G&&o.value&&(S(),M())}),De(()=>[n.callStatus,n.isMuted,n.isHeld],()=>{l.value&&(C(l.value.document),N(l.value.document))});const _=j(()=>i.value&&n.isConnected),E={phone:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>',phoneOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" transform="rotate(135 12 12)"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',mic:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',micOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="2" x2="22" y1="2" y2="22"/><path d="M18.89 13.23A7.12 7.12 0 0 0 19 12v-2"/><path d="M5 10v2a7 7 0 0 0 12 5"/><path d="M15 9.34V5a3 3 0 0 0-5.68-1.33"/><path d="M9 9v3a3 3 0 0 0 5.12 2.12"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',pause:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="14" y="4" width="4" height="16" rx="1"/><rect x="6" y="4" width="4" height="16" rx="1"/></svg>',play:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3"/></svg>',transfer:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 3 4 4-4 4"/><path d="M20 7H4"/><path d="m8 21-4-4 4-4"/><path d="M4 17h16"/></svg>',video:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>',user:'<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'},$=G=>{const oe=G.createElement("style");oe.textContent=`
|
|
76
|
+
¿Desea realizar la llamada solo con AUDIO?`)&&E(!1)}else alert("Error al iniciar la llamada: "+(S instanceof Error?S.message:String(S)))}},P=(C=!1)=>{if(m.onAnswer){m.onAnswer(C);return}i(C)},B=async()=>{await s(),await m.onHangup?.()},v=()=>{if(m.onReject){m.onReject();return}s()},N=j(()=>{const C={};return r.channels.forEach(S=>{const x=S.status==="connected"||S.status==="calling"||S.status==="incoming";C[S.id]=x?"wp:text-[var(--color-red)]":"wp:text-[var(--color-avaible)]"}),C}),q=j(()=>N.value[r.activeChannelId]??"wp:text-[var(--p-primary-color)]");return(C,S)=>(I(),Se("div",{class:"webphone-actions wp:flex wp:justify-center wp:items-center wp:gap-2 wp:px-4 wp:relative wp:mb-4","data-call-status":f(r).callStatus},[f(r).callStatus==="idle"?(I(),Se("div",fS,[w.value?(I(),K(f(pt),{key:0,variant:"default",size:"icon",onClick:S[0]||(S[0]=x=>E(!1)),"aria-label":"Audio Call",class:"webphone-actions__button webphone-actions__button--call wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-[color:var(--p-primary-color)]/80 wp:to-[color:var(--p-primary-color)]/100 wp:hover:from-[color:var(--p-primary-color)]/75 wp:hover:to-[color:var(--p-primary-color)]"},{default:k(()=>[$(f(tS),{class:"webphone-actions__button-icon wp:size-7 wp:text-white"}),S[12]||(S[12]=Q("span",{class:"webphone-actions__button-label wp:w-full wp:text-white wp:text-xs"},"Llamar",-1))]),_:1})):qe("",!0),_.value?(I(),K(f(pt),{key:1,variant:"outline",size:"icon",onClick:S[1]||(S[1]=x=>E(!0)),"aria-label":"Video Call",class:"webphone-actions__button webphone-actions__button--video wp:w-full wp:px-4 wp:bg-transparent wp:border wp:border-primary wp:hover:bg-[var(--p-primary-color)]/8"},{default:k(()=>[$(f(sS),{class:Xe(["webphone-actions__button-icon wp:size-6 wp:text-primary wp:dark:text-white",q.value])},null,8,["class"]),S[13]||(S[13]=Q("span",{class:"webphone-actions__button-label wp:w-full wp:text-primary wp:text-xs wp:dark:text-white"}," Video llamada a extensiones ",-1))]),_:1})):qe("",!0)])):qe("",!0),f(r).callStatus==="incoming"?(I(),Se(Ke,{key:1},[f(r).activeChannel?.hasVideo?(I(),K(f(pt),{key:0,variant:"default",size:"icon",onClick:S[2]||(S[2]=x=>P(!0)),class:"webphone-actions__button webphone-actions__button--answer-video wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:bg-transparent wp:hover:bg-[var(--p-primary-color)]/10","aria-label":"Answer Video"},{default:k(()=>[$(f(K_),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-[var(--p-primary-color)]"})]),_:1})):qe("",!0),$(f(pt),{variant:"default",size:"icon",onClick:S[3]||(S[3]=x=>P(!1)),class:"webphone-actions__button webphone-actions__button--answer wp:animate-pulse wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-status-available wp:hover:bg-status-available/90","aria-label":"Answer"},{default:k(()=>[$(f(hg),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-white"})]),_:1}),$(f(pt),{variant:"destructive",size:"icon",onClick:v,"aria-label":"Reject",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--reject wp:w-12 wp:h-12 wp:rounded-full wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:k(()=>[$(f(Fc),{class:"webphone-actions__button-icon wp:w-5 wp:h-5 wp:text-white"})]),_:1})],64)):qe("",!0),f(r).callStatus==="connected"?(I(),Se("div",pS,[Q("div",hS,[$(f(pt),{variant:f(r).isMuted?"destructive":"secondary",size:"icon",onClick:f(o),"aria-label":"Mute",class:"webphone-actions__button webphone-actions__button--mute wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:k(()=>[f(r).isMuted?(I(),K(f(H_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-disconnected"})):(I(),K(f(M_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),$(f(pt),{variant:(f(r).isHeld,"secondary"),size:"icon",onClick:f(a),"aria-label":"Hold",class:"webphone-actions__button webphone-actions__button--hold wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:k(()=>[f(r).isHeld?(I(),K(f(j_),{key:0,class:"webphone-actions__button-icon wp:size-5 wp:text-status-hold"})):(I(),K(f(N_),{key:1,class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"}))]),_:1},8,["variant","onClick"]),T.value?qe("",!0):(I(),K(f(pt),{key:0,variant:"secondary",size:"icon",onClick:S[4]||(S[4]=x=>y("transfer")),"aria-label":"Transfer",class:"webphone-actions__button webphone-actions__button--transfer wp:w-12 wp:h-12 wp:rounded-full wp:bg-primary/10 wp:hover:bg-[var(--p-primary-color)]/20"},{default:k(()=>[$(f(X_),{class:"webphone-actions__button-icon wp:size-5 wp:text-[var(--p-primary-color)]"})]),_:1}))]),Q("div",gS,[$(f(pt),{variant:"ghost",size:"icon",onClick:S[5]||(S[5]=x=>f(r).toggleKeypad()),"aria-label":f(r).isKeypadVisible?"Ocultar teclado":"Mostrar teclado",class:"webphone-actions__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"},{default:k(()=>[f(r).isKeypadVisible?(I(),K(f(jc),{key:0,class:"webphone-actions__keypad-toggle-icon wp:size-6"})):(I(),K(f(Vc),{key:1,class:"webphone-actions__keypad-toggle-icon wp:size-6"}))]),_:1},8,["aria-label"]),$(f(Fi),{"model-value":f(r).keypadValue,type:"text",inputmode:"tel",pattern:"[0-9*#]*",placeholder:"Marcar opción (0-9, * o #)...","aria-label":"Tonos de marcación",onKeydown:d,onBeforeinput:p,onPaste:h,class:"p-input webphone-actions__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["model-value"]),Q("div",{class:"webphone-actions__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:S[6]||(S[6]=Zt(x=>f(r).backspaceKeypad(),["stop"]))},[$(f(Uc),{class:"webphone-actions__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),Q("div",{class:Xe(["webphone-actions__keypad wp:w-full wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",f(r).isKeypadVisible?"wp:max-h-[300px] wp:opacity-100":"wp:max-h-0 wp:opacity-0"]),"data-visible":f(r).isKeypadVisible?"true":"false"},[$(Nc)],10,vS),$(f(pt),{size:"icon",onClick:B,"aria-label":"Hangup",class:"webphone-actions__button webphone-actions__button--hangup wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:k(()=>[$(f(Fc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),S[14]||(S[14]=Q("span",{class:"webphone-actions__button-label wp:w-full wp:text-white wp:text-xs"},"Colgar",-1))]),_:1})])):qe("",!0),f(r).callStatus==="calling"?(I(),Se("div",mS,[Q("div",wS,[$(f(pt),{variant:"ghost",size:"icon",onClick:S[7]||(S[7]=x=>f(r).toggleKeypad()),"aria-label":f(r).isKeypadVisible?"Ocultar teclado":"Mostrar teclado",class:"webphone-actions__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"},{default:k(()=>[f(r).isKeypadVisible?(I(),K(f(jc),{key:0,class:"webphone-actions__keypad-toggle-icon wp:size-6"})):(I(),K(f(Vc),{key:1,class:"webphone-actions__keypad-toggle-icon wp:size-6"}))]),_:1},8,["aria-label"]),$(f(Fi),{modelValue:f(r).keypadValue,"onUpdate:modelValue":S[8]||(S[8]=x=>f(r).keypadValue=x),placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-actions__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),Q("div",{class:"webphone-actions__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:S[9]||(S[9]=Zt(x=>f(r).backspaceKeypad(),["stop"]))},[$(f(Uc),{class:"webphone-actions__backspace-icon wp:w-[16px] wp:h-[16px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-500 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),Q("div",{class:Xe(["webphone-actions__keypad wp:w-full wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",f(r).isKeypadVisible?"wp:max-h-[300px] wp:opacity-100":"wp:max-h-0 wp:opacity-0"]),"data-visible":f(r).isKeypadVisible?"true":"false"},[$(Nc)],10,yS),$(f(pt),{variant:"destructive",size:"lg",onClick:B,"aria-label":"Cancel",class:"webphone-actions__button webphone-actions__button--hangup webphone-actions__button--cancel wp:w-full wp:px-4 wp:border-0 wp:bg-gradient-to-r wp:from-destructive/60 wp:to-destructive/90 wp:hover:from-destructive/70 wp:hover:to-destructive/95"},{default:k(()=>[$(f(Fc),{class:"webphone-actions__button-icon wp:size-6 wp:text-white"}),S[15]||(S[15]=Q("span",{class:"webphone-actions__button-label wp:w-full wp:text-white"},"Colgar",-1))]),_:1})])):qe("",!0),T.value&&f(r).callStatus==="connected"?(I(),Se("div",bS,[$(f(pt),{variant:"default",size:"sm",onClick:S[10]||(S[10]=x=>y("completeTransfer")),class:"webphone-actions__button webphone-actions__button--complete-transfer wp:gap-2 wp:bg-status-available wp:hover:bg-status-available/90 wp:text-white"},{default:k(()=>[$(f(qc),{class:"wp:w-4 wp:h-4"}),S[16]||(S[16]=Ne(" Completar Transferencia ",-1))]),_:1}),$(f(pt),{variant:"destructive",size:"sm",onClick:S[11]||(S[11]=x=>y("cancelTransfer")),class:"webphone-actions__button webphone-actions__button--cancel-transfer wp:gap-2"},{default:k(()=>[$(f(Lc),{class:"wp:w-4 wp:h-4"}),S[17]||(S[17]=Ne(" Cancelar ",-1))]),_:1})])):qe("",!0)],8,dS))}}),SS=_S,CS=X({__name:"Kbd",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>(I(),Se("kbd",{class:Xe(f(ut)("wp:bg-muted wp:text-muted-foreground wp:pointer-events-none wp:inline-flex wp:h-5 wp:w-fit wp:min-w-5 wp:items-center wp:justify-center wp:gap-1 wp:rounded-sm wp:px-1 wp:font-sans wp:text-xs wp:font-medium wp:select-none","wp:[&_svg:not([class*='size-'])]:size-3","wp:[[data-slot=tooltip-content]_&]:bg-background/20 wp:[[data-slot=tooltip-content]_&]:text-background wp:dark:[[data-slot=tooltip-content]_&]:bg-background/10",t.class))},[te(r.$slots,"default")],2))}}),vn=CS,xS={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 23"};function TS(e,t){return I(),Se("svg",xS,[...t[0]||(t[0]=[Q("path",{stroke:"currentColor","stroke-miterlimit":"22.926","stroke-width":"1.2",d:"m12.317 2.51 15.123-.027c2.609 1.773 1.65 19.836 0 18.746l-15.124.026zM1.593 2.484h1.45V21.29h-1.45c-1.79-2.697-1.79-17.855 0-18.806ZM6.244.25h3.078a1.573 1.573 0 0 1 1.574 1.566v18.902a1.58 1.58 0 0 1-1.574 1.574H6.244a1.58 1.58 0 0 1-1.574-1.576v-18.9A1.573 1.573 0 0 1 6.244.25Z","clip-rule":"evenodd"},null,-1)])])}var zc={render:TS},ES=X({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Lr(e,t);return(n,s)=>(I(),K(f(b_),ye({"data-slot":"tooltip"},f(r)),{default:k(i=>[te(n.$slots,"default",dr(tr(i)))]),_:3},16))}}),Ks=ES,AS=X({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Lr(zt(r,"class"),n);return(i,o)=>(I(),K(f(C_),null,{default:k(()=>[$(f(S_),ye({"data-slot":"tooltip-content"},{...f(s),...i.$attrs},{class:f(ut)("wp:bg-foreground wp:text-background wp:animate-in wp:fade-in-0 wp:zoom-in-95 wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=closed]:zoom-out-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:z-50 wp:w-fit wp:rounded-md wp:px-3 wp:py-1.5 wp:text-xs wp:text-balance",r.class)}),{default:k(()=>[te(i.$slots,"default"),$(f(v_),{class:"wp:bg-foreground wp:fill-foreground wp:z-50 wp:size-2.5 wp:translate-y-[calc(-50%_-_2px)] wp:rotate-45 wp:rounded-[2px]"})]),_:3},16,["class"])]),_:3}))}}),Ws=AS,kS=X({__name:"TooltipProvider",props:{delayDuration:{default:0},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean},content:{}},setup(e){const t=e;return(r,n)=>(I(),K(f(w_),dr(tr(t)),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),Vi=kS,RS=X({__name:"TooltipTrigger",props:{reference:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>(I(),K(f(x_),ye({"data-slot":"tooltip-trigger"},t),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),Gs=RS,IS=["data-call-status"],$S={class:"webphone-display__connected-status-label wp:flex wp:gap-2 wp:items-center"},PS={class:"webphone-display__duration wp:ibrad wp:font-medium wp:text-sm"},DS={class:"webphone-display__user-row wp:flex wp:items-center wp:gap-2 wp:text-sm font-semibold"},OS={key:2,class:"webphone-display__dialer wp:w-full wp:flex wp:items-center wp:justify-center wp:min-h-10"},HS={class:"webphone-display__dialer-field wp:relative"},MS={class:"webphone-display__suggestions wp:absolute wp:bottom-full wp:left-0 wp:w-full wp:z-50 wp:bg-popover wp:text-popover-foreground wp:shadow-md wp:rounded-md wp:border wp:mb-1 wp:max-h-40 wp:overflow-y-auto"},NS=["onPointerdown"],qS={class:"webphone-display__contact-content wp:flex wp:flex-col wp:min-w-0"},BS={class:"webphone-display__contact-name wp:truncate"},LS={class:"webphone-display__contact-number wp:text-xs wp:text-muted-foreground wp:truncate"},FS={key:3,class:"webphone-display__connected-summary wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2 wp:w-full"},VS={class:"webphone-display__caller wp:flex wp:flex-col wp:items-center wp:gap-1"},jS={class:"webphone-display__caller-name wp:text-sm wp:font-semibold wp:text-neutral-800 wp:dark:text-white"},US={key:0,class:"webphone-display__caller-number wp:text-[10px] wp:text-muted-foreground"},zS={key:4,class:"webphone-display__non-idle wp:flex wp:flex-col wp:items-center wp:justify-center wp:gap-2"},KS={class:"webphone-display__non-idle-row wp:flex wp:items-center wp:gap-4"},WS={class:"webphone-display__non-idle-caller wp:flex wp:flex-col wp:items-center"},GS={class:"webphone-display__non-idle-name wp:text-sm wp:font-medium wp:text-neutral-800 wp:dark:text-white"},JS={key:0,class:"webphone-display__non-idle-number wp:text-sm wp:text-muted-foreground"},YS=X({__name:"CallDisplay",props:{allowInput:{type:Boolean,default:!0},isWebCall:{type:Boolean,default:!1},isOnline:{type:Boolean,default:!0},user:{},contacts:{default:()=>[]},channelId:{default:void 0},maskNumber:{type:Boolean,default:!1}},setup(e){const t=Vt("webphone"),r=Vt("sip"),n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd+":"Ctrl+",s=e,i=j(()=>s.channelId!==void 0?t.channels.find(x=>x.id===s.channelId):t.activeChannel),o=j(()=>{if(!t.isConnected)return"wp:text-status-disconnected";const x=i.value;return x&&x.status!=="idle"?x.isHeld||x.status==="held"?"wp:text-status-hold":x.status==="incoming"?"wp:text-status-incoming":"wp:text-primary":"wp:text-primary"}),a=V(!1),l=V(null),u=V(null),c=x=>x.replace(/[^0-9*#]/g,""),d=x=>{x.ctrlKey||x.metaKey||x.altKey||x.key.length!==1||/[0-9*#]/.test(x.key)||x.preventDefault()},p=x=>{x.data&&c(x.data)!==x.data&&x.preventDefault()};Qy(l,()=>{a.value=!1});const h=j({get:()=>i.value?.keypadValue||"",set:x=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:c(x)})}}),m=j(()=>/^[0-9*#]+$/.test(h.value)),y=j(()=>{if(!h.value)return s.contacts.slice(0,10);const x=h.value.toLowerCase(),O=[];for(const R of s.contacts)if((R.name.toLowerCase().includes(x)||R.number.includes(x))&&(O.push(R),O.length>=10))break;return O}),T=x=>{i.value&&t.updateChannelState(i.value.id,{keypadValue:c(x.number)}),a.value=!1},g=()=>{!h.value||!m.value||(a.value=!1,r.makeCall(h.value))};He(h,()=>{a.value=!0});const b=()=>{h.value&&m.value&&g()},w=()=>{a.value=!1},_=()=>{a.value=!0},E=()=>{setTimeout(()=>{a.value=!1},150)},P=V(Date.now());Yy(()=>{P.value=Date.now()},1e3);const B=j(()=>{const x=i.value?.startTime,O=i.value?.status||"idle";if(!x||O!=="connected")return"00:00:00";const R=Math.floor((P.value-x)/1e3);return R<0?"00:00:00":`${Math.floor(R/3600).toString().padStart(2,"0")}:${Math.floor(R%3600/60).toString().padStart(2,"0")}:${(R%60).toString().padStart(2,"0")}`}),v=j(()=>{if(!s.isOnline)return"Sin internet";if(!t.isConnected)return"Sin conexión";const x=i.value,O=x?.status||"idle";if(O==="idle")return"Disponible";if(O==="calling")return"Llamando...";if(x?.isHeld){const R=x.remoteNumber||x.keypadValue||"Unknown";return`En espera - ${s.maskNumber?cn(R):R}`}return O==="connected"?"Conectado":O.charAt(0).toUpperCase()+O.slice(1)}),N=x=>{if(!x)return"";const O=x.trim(),R=O.startsWith("+"),M=O.replace(/[^\d]/g,"");return R?`+${M}`:M},q=x=>/\d/.test(x)&&/^[+\d\s().*#-]+$/.test(x.trim()),C=j(()=>{const x=i.value,O=x?.remoteNumber||x?.keypadValue,R=x?.remoteDisplayName;if(!O)return"Unknown";const M=N(O),z=s.contacts?.find(G=>N(G.number)===M);return z?s.maskNumber&&q(z.name)?cn(z.name):z.name:R&&R!==O?s.maskNumber&&q(R)?N(R)===M?cn(O):cn(R):R:s.maskNumber?cn(O):O}),S=j(()=>{const x=i.value,O=x?.remoteNumber||x?.keypadValue||"";return s.maskNumber?cn(O):O});return(x,O)=>(I(),Se("div",{class:"webphone-display wp:flex wp:flex-col wp:items-center wp:px-4 wp:space-y-6","data-call-status":i.value?.status||"idle"},[(i.value?.status||"idle")==="connected"?(I(),Se("div",{key:0,class:Xe([o.value,"webphone-display__connected-status wp:w-full wp:flex wp:items-center wp:justify-between wp:gap-2 wp:text-3xl wp:font-light wp:mb-5"])},[Q("div",$S,[$(f(zc),{class:"webphone-display__connected-status-icon wp:w-4 wp:h-4"}),O[3]||(O[3]=Q("span",{class:"webphone-display__connected-status-text wp:text-sm wp:montserrat wp:font-medium"},"En llamada",-1))]),Q("span",PS,Le(B.value),1)],2)):qe("",!0),s.user?(I(),Se("span",{key:1,class:Xe([o.value,"webphone-display__user wp:font-bold wp:text-lg wp:flex wp:items-center wp:gap-1 wp:transition-colors wp:duration-300"])},[Q("div",DS,[$(f(zc),{class:"webphone-display__user-icon wp:size-6 wp:shrink-0 montserrat"}),Ne(" "+Le(s.user),1)]),Q("div",{class:Xe(["webphone-display__status-text wp:font-semibold wp:tracking-wider wp:text-sm wp:text-[var(--color-primary)] montserrat",o.value])},Le(v.value),3)],2)):qe("",!0),(i.value?.status||"idle")==="idle"&&s.allowInput?(I(),Se("div",OS,[Q("div",{class:"webphone-display__dialer-container wp:relative wp:w-full wp:max-w-80",ref_key:"containerRef",ref:l},[Q("div",HS,[$(f(Vi),null,{default:k(()=>[$(f(Ks),null,{default:k(()=>[$(f(Gs),{"as-child":""},{default:k(()=>[$(f(pt),{onClick:O[0]||(O[0]=R=>f(t).toggleKeypad()),variant:"ghost",size:"icon",class:Xe(f(ut)("webphone-display__keypad-toggle wp:absolute wp:left-0.5 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:h-9 wp:w-9 wp:rounded-full wp:text-[var(--p-primary-color)] wp:hover:opacity-80"))},{default:k(()=>[f(t).isKeypadVisible?(I(),K(f(jc),{key:0,class:"webphone-display__keypad-toggle-icon wp:size-5"})):(I(),K(f(Vc),{key:1,class:"webphone-display__keypad-toggle-icon wp:size-5"}))]),_:1},8,["class"])]),_:1}),$(f(Ws),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[Q("span",null,Le(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),$(f(vn),null,{default:k(()=>[Ne(Le(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1}),$(f(Fi),{ref_key:"inputRef",ref:u,modelValue:h.value,"onUpdate:modelValue":O[1]||(O[1]=R=>h.value=R),type:"text",inputmode:"tel",pattern:"[0-9*#]*",onFocus:_,onBlur:E,onKeydown:[d,$l(b,["enter"]),$l(w,["escape"])],onBeforeinput:p,placeholder:"Ingresa el numero a llamar...",class:"p-input webphone-display__input wp:h-10 wp:text-center wp:select-text wp:px-14 wp:text-base hover:wp:border-[var(--p-primary-color)] wp:dark:hover:bg-neutral-900 focus-visible:wp:border-[var(--p-primary-color)] focus-visible:wp:ring-2 montserrat"},null,8,["modelValue"]),Q("div",{class:"webphone-display__backspace wp:absolute wp:right-1 wp:top-1/2 wp:-translate-y-1/2 wp:z-10 wp:flex wp:h-8 wp:w-8 wp:cursor-pointer wp:items-center wp:justify-center wp:hover:bg-accent wp:rounded-full",onClick:O[2]||(O[2]=Zt(R=>f(t).backspaceKeypad(),["stop"]))},[$(f(Uc),{class:"webphone-display__backspace-icon wp:w-[15px] wp:h-[15px] wp:text-black wp:hover:text-status-disconnected wp:dark:text-neutral-100 wp:dark:hover:text-status-disconnected wp:transition-colors"})])]),po(Q("div",MS,[m.value?(I(),Se("div",{key:0,class:"webphone-display__suggestion webphone-display__suggestion--raw wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onPointerdown:Zt(g,["prevent"])},[$(f(hg),{class:"webphone-display__suggestion-icon wp:w-4 wp:h-4 wp:shrink-0"}),Q("span",null,"Marcar "+Le(h.value),1)],32)):qe("",!0),(I(!0),Se(Ke,null,hr(y.value,R=>(I(),Se("div",{key:R.number,class:"webphone-display__suggestion webphone-display__suggestion--contact wp:cursor-pointer wp:hover:bg-accent wp:flex wp:items-center wp:gap-2 wp:p-2 wp:px-3 wp:text-sm",onPointerdown:Zt(M=>T(R),["prevent"])},[Q("div",{class:Xe(f(ut)("webphone-display__contact-badge wp:flex wp:items-center wp:justify-center wp:w-6 wp:h-6 wp:rounded-full wp:shrink-0",R.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":R.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":R.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":R.type==="tool"?"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400":"wp:bg-neutral-100 wp:text-neutral-600 wp:dark:bg-neutral-800 wp:dark:text-neutral-400"))},[R.type==="extension"?(I(),K(f(fg),{key:0,class:"wp:w-3 wp:h-3"})):R.type==="contact"?(I(),K(f(Bc),{key:1,class:"wp:w-3 wp:h-3"})):R.type==="voicemail"?(I(),K(f(gg),{key:2,class:"wp:w-3 wp:h-3"})):R.type==="tool"?(I(),K(f(vg),{key:3,class:"wp:w-3 wp:h-3"})):(I(),K(f(Bc),{key:4,class:"wp:w-3 wp:h-3"}))],2),Q("div",qS,[Q("span",BS,Le(R.name),1),Q("span",LS,Le(R.number),1)])],40,NS))),128))],512),[[Oo,a.value&&h.value&&(y.value.length>0||m.value)]])],512)])):(i.value?.status||"idle")==="connected"?(I(),Se("div",FS,[Q("div",VS,[Q("div",jS," En llamada con "+Le(C.value),1),C.value!==S.value?(I(),Se("div",US,Le(S.value),1)):qe("",!0)])])):(i.value?.status||"idle")!=="idle"?(I(),Se("div",zS,[Q("div",KS,[Q("div",WS,[Q("div",GS,Le(C.value),1),C.value!==S.value?(I(),Se("div",JS,Le(S.value),1)):qe("",!0)]),$(f(Vi),null,{default:k(()=>[$(f(Ks),null,{default:k(()=>[$(f(Gs),{"as-child":""}),$(f(Ws),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[Q("span",null,Le(f(t).isKeypadVisible?"Ocultar":"Mostrar")+" teclado",1),$(f(vn),null,{default:k(()=>[Ne(Le(f(n))+"K",1)]),_:1})]),_:1})]),_:1})]),_:1})])])):qe("",!0)],8,IS))}}),ZS=YS,XS=X({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=Lr(e,t);return(n,s)=>(I(),K(f($b),ye({"data-slot":"dialog"},f(r)),{default:k(i=>[te(n.$slots,"default",dr(tr(i)))]),_:3},16))}}),Kc=XS,QS=X({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=zt(t,"class");return(n,s)=>(I(),K(f(Yb),ye({"data-slot":"dialog-overlay"},f(r),{class:f(ut)("wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:fixed wp:inset-0 wp:z-50 wp:bg-black/80",t.class)}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["class"]))}}),eC=QS,tC=X({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},showCloseButton:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=e,n=t,s=Lr(zt(r,"class"),n);return(i,o)=>(I(),K(f(Zb),null,{default:k(()=>[$(eC),$(f(Gb),ye({"data-slot":"dialog-content"},{...i.$attrs,...f(s)},{class:f(ut)("wp:bg-background wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:fixed wp:top-[50%] wp:left-[50%] wp:z-50 wp:grid wp:w-full wp:max-w-[calc(100%-2rem)] wp:translate-x-[-50%] wp:translate-y-[-50%] wp:gap-4 wp:rounded-lg wp:border wp:p-6 wp:shadow-lg wp:duration-200 wp:sm:max-w-lg",r.class)}),{default:k(()=>[te(i.$slots,"default"),e.showCloseButton?(I(),K(f(Pb),{key:0,"data-slot":"dialog-close",class:"wp:ring-offset-background wp:focus:ring-ring wp:data-[state=open]:bg-accent wp:data-[state=open]:text-muted-foreground wp:absolute wp:top-4 wp:right-4 wp:rounded-xs wp:opacity-70 wp:transition-opacity wp:hover:opacity-100 wp:focus:ring-2 wp:focus:ring-offset-2 wp:focus:outline-hidden wp:disabled:pointer-events-none wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4"},{default:k(()=>[$(f(Lc)),o[0]||(o[0]=Q("span",{class:"wp:sr-only"},"Close",-1))]),_:1})):qe("",!0)]),_:3},16,["class"])]),_:3}))}}),Wc=tC,rC=X({__name:"DialogFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>(I(),Se("div",{"data-slot":"dialog-footer",class:Xe(f(ut)("wp:flex wp:flex-col-reverse wp:gap-2 wp:sm:flex-row wp:sm:justify-end",t.class))},[te(r.$slots,"default")],2))}}),mg=rC,nC=X({__name:"DialogHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(r,n)=>(I(),Se("div",{"data-slot":"dialog-header",class:Xe(f(ut)("wp:flex wp:flex-col wp:gap-2 wp:text-center wp:sm:text-left",t.class))},[te(r.$slots,"default")],2))}}),Gc=nC,sC=X({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=dn(zt(t,"class"));return(n,s)=>(I(),K(f(Xb),ye({"data-slot":"dialog-title"},f(r),{class:f(ut)("wp:text-lg wp:leading-none wp:font-semibold",t.class)}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["class"]))}}),Jc=sC,iC=X({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const r=Lr(e,t);return(n,s)=>(I(),K(f(j2),ye({"data-slot":"select"},f(r)),{default:k(i=>[te(n.$slots,"default",dr(tr(i)))]),_:3},16))}}),Yc=iC,oC=X({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const r=e,n=t,s=Lr(zt(r,"class"),n);return(i,o)=>(I(),K(f(o_),null,{default:k(()=>[$(f(X2),ye({"data-slot":"select-content"},{...i.$attrs,...f(s)},{class:f(ut)("wp:bg-popover wp:text-popover-foreground wp:data-[state=open]:animate-in wp:data-[state=closed]:animate-out wp:data-[state=closed]:fade-out-0 wp:data-[state=open]:fade-in-0 wp:data-[state=closed]:zoom-out-95 wp:data-[state=open]:zoom-in-95 wp:data-[side=bottom]:slide-in-from-top-2 wp:data-[side=left]:slide-in-from-right-2 wp:data-[side=right]:slide-in-from-left-2 wp:data-[side=top]:slide-in-from-bottom-2 wp:relative wp:z-50 wp:max-h-(--reka-select-content-available-height) wp:min-w-[8rem] wp:overflow-x-hidden wp:overflow-y-auto wp:rounded-md wp:border wp:shadow-md",e.position==="popper"&&"wp:data-[side=bottom]:translate-y-1 wp:data-[side=left]:-translate-x-1 wp:data-[side=right]:translate-x-1 wp:data-[side=top]:-translate-y-1",r.class)}),{default:k(()=>[$(f(pC)),$(f(d_),{class:Xe(f(ut)("wp:p-1",e.position==="popper"&&"wp:h-[var(--reka-select-trigger-height)] wp:w-full wp:min-w-[var(--reka-select-trigger-width)] wp:scroll-my-1"))},{default:k(()=>[te(i.$slots,"default")]),_:3},8,["class"]),$(f(dC))]),_:3},16,["class"])]),_:3}))}}),Zc=oC,aC=X({__name:"SelectGroup",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>(I(),K(f(e_),ye({"data-slot":"select-group"},t),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),Xc=aC,lC={class:"wp:absolute wp:right-2 wp:flex wp:size-3.5 wp:items-center wp:justify-center"},cC=X({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=dn(zt(t,"class"));return(n,s)=>(I(),K(f(n_),ye({"data-slot":"select-item"},f(r),{class:f(ut)("wp:focus:bg-accent wp:focus:text-accent-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:relative wp:flex wp:w-full wp:cursor-default wp:items-center wp:gap-2 wp:rounded-sm wp:py-1.5 wp:pr-8 wp:pl-2 wp:text-sm wp:outline-hidden wp:select-none wp:data-[disabled]:pointer-events-none wp:data-[disabled]:opacity-50 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4 wp:*:[span]:last:flex wp:*:[span]:last:items-center wp:*:[span]:last:gap-2",t.class)}),{default:k(()=>[Q("span",lC,[$(f(s_),null,{default:k(()=>[te(n.$slots,"indicator-icon",{},()=>[$(f(qc),{class:"wp:size-4"})])]),_:3})]),$(f(i_),null,{default:k(()=>[te(n.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),ji=cC,uC=X({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=dn(zt(t,"class"));return(n,s)=>(I(),K(f(a_),ye({"data-slot":"select-scroll-down-button"},f(r),{class:f(ut)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:k(()=>[te(n.$slots,"default",{},()=>[$(f(pg),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),dC=uC,fC=X({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=dn(zt(t,"class"));return(n,s)=>(I(),K(f(l_),ye({"data-slot":"select-scroll-up-button"},f(r),{class:f(ut)("wp:flex wp:cursor-default wp:items-center wp:justify-center wp:py-1",t.class)}),{default:k(()=>[te(n.$slots,"default",{},()=>[$(f(D_),{class:"wp:size-4"})])]),_:3},16,["class"]))}}),pC=fC,hC=X({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},size:{default:"default"}},setup(e){const t=e,r=dn(zt(t,"class","size"));return(n,s)=>(I(),K(f(c_),ye({"data-slot":"select-trigger","data-size":e.size},f(r),{class:f(ut)("wp:border-input wp:data-[placeholder]:text-muted-foreground wp:[&_svg:not([class*='text-'])]:text-muted-foreground wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive wp:dark:bg-input/30 wp:dark:hover:bg-input/50 wp:flex wp:w-fit wp:items-center wp:justify-between wp:gap-2 wp:rounded-md wp:border wp:bg-transparent wp:px-3 wp:py-2 wp:text-sm wp:whitespace-nowrap wp:shadow-xs wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:disabled:cursor-not-allowed wp:disabled:opacity-50 wp:data-[size=default]:h-9 wp:data-[size=sm]:h-8 wp:*:data-[slot=select-value]:line-clamp-1 wp:*:data-[slot=select-value]:flex wp:*:data-[slot=select-value]:items-center wp:*:data-[slot=select-value]:gap-2 wp:[&_svg]:pointer-events-none wp:[&_svg]:shrink-0 wp:[&_svg:not([class*='size-'])]:size-4",t.class)}),{default:k(()=>[te(n.$slots,"default"),$(f(t_),{"as-child":""},{default:k(()=>[$(f(pg),{class:"wp:size-4 wp:opacity-50"})]),_:1})]),_:3},16,["data-size","class"]))}}),Qc=hC,gC=X({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,n)=>(I(),K(f(u_),ye({"data-slot":"select-value"},t),{default:k(()=>[te(r.$slots,"default")]),_:3},16))}}),eu=gC,vC=X({__name:"Slider",props:{defaultValue:{},modelValue:{},disabled:{type:Boolean},orientation:{},dir:{},inverted:{type:Boolean},min:{},max:{},step:{},minStepsBetweenThumbs:{},thumbAlignment:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const r=e,n=t,s=Lr(zt(r,"class"),n);return(i,o)=>(I(),K(f(m2),ye({"data-slot":"slider",class:f(ut)("wp:relative wp:flex wp:w-full wp:touch-none wp:items-center wp:select-none wp:data-[disabled]:opacity-50 wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:min-h-44 wp:data-[orientation=vertical]:w-auto wp:data-[orientation=vertical]:flex-col",r.class)},f(s)),{default:k(({modelValue:a})=>[$(f(_2),{"data-slot":"slider-track",class:"wp:bg-muted wp:relative wp:grow wp:overflow-hidden wp:rounded-full wp:data-[orientation=horizontal]:h-1.5 wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-1.5"},{default:k(()=>[$(f(w2),{"data-slot":"slider-range",class:"wp:bg-primary wp:absolute wp:data-[orientation=horizontal]:h-full wp:data-[orientation=vertical]:w-full"})]),_:1}),(I(!0),Se(Ke,null,hr(a,(l,u)=>(I(),K(f(b2),{key:u,"data-slot":"slider-thumb",class:"wp:bg-white wp:border-primary wp:ring-ring/50 wp:block wp:size-4 wp:shrink-0 wp:rounded-full wp:border wp:shadow-sm wp:transition-[color,box-shadow] wp:hover:ring-4 wp:focus-visible:ring-4 wp:focus-visible:outline-hidden wp:disabled:pointer-events-none wp:disabled:opacity-50"}))),128))]),_:1},16,["class"]))}}),tu=vC,mC=X({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=zt(t,"class");return(n,s)=>(I(),K(f(S2),ye({"data-slot":"label"},f(r),{class:f(ut)("wp:flex wp:items-center wp:gap-2 wp:text-sm wp:leading-none wp:font-medium wp:select-none wp:group-data-[disabled=true]:pointer-events-none wp:group-data-[disabled=true]:opacity-50 wp:peer-disabled:cursor-not-allowed wp:peer-disabled:opacity-50",t.class)}),{default:k(()=>[te(n.$slots,"default")]),_:3},16,["class"]))}}),mn=mC,wC=X({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=zt(t,"class");return(n,s)=>(I(),K(f(p_),ye({"data-slot":"separator"},f(r),{class:f(ut)("wp:bg-border wp:shrink-0 wp:data-[orientation=horizontal]:h-px wp:data-[orientation=horizontal]:w-full wp:data-[orientation=vertical]:h-full wp:data-[orientation=vertical]:w-px",t.class)}),null,16,["class"]))}}),wg=wC,yC=X({__name:"Toggle",props:{defaultValue:{type:Boolean},modelValue:{type:[Boolean,null]},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]},variant:{default:"default"},size:{default:"default"}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,s=Lr(zt(r,"class","size","variant"),n);return(i,o)=>(I(),K(f(g_),ye({"data-slot":"toggle"},f(s),{class:f(ut)(f(_C)({variant:e.variant,size:e.size}),r.class)}),{default:k(a=>[te(i.$slots,"default",dr(tr(a)))]),_:3},16,["class"]))}}),bC=yC;const _C=jp("wp:inline-flex wp:items-center wp:justify-center wp:gap-2 wp:rounded-md wp:text-sm wp:font-medium wp:hover:bg-muted wp:hover:text-muted-foreground wp:disabled:pointer-events-none wp:disabled:opacity-50 wp:data-[state=on]:bg-accent wp:data-[state=on]:text-accent-foreground wp:[&_svg]:pointer-events-none wp:[&_svg:not([class*='size-'])]:size-4 wp:[&_svg]:shrink-0 wp:focus-visible:border-ring wp:focus-visible:ring-ring/50 wp:focus-visible:ring-[3px] wp:outline-none wp:transition-[color,box-shadow] wp:aria-invalid:ring-destructive/20 wp:dark:aria-invalid:ring-destructive/40 wp:aria-invalid:border-destructive wp:whitespace-nowrap",{variants:{variant:{default:"wp:bg-transparent",outline:"wp:border wp:border-input wp:bg-transparent wp:shadow-xs wp:hover:bg-accent wp:hover:text-accent-foreground"},size:{default:"wp:h-9 wp:px-2 wp:min-w-9",sm:"wp:h-8 wp:px-1.5 wp:min-w-8",lg:"wp:h-10 wp:px-2.5 wp:min-w-10"}},defaultVariants:{variant:"default",size:"default"}});var SC={class:"wp:flex wp:flex-col wp:gap-6 wp:py-4"},CC={class:"wp:flex wp:flex-col wp:gap-2"},xC={class:"wp:flex wp:flex-col wp:gap-2"},TC={class:"wp:flex wp:flex-col wp:gap-4"},EC={class:"wp:flex wp:justify-between"},AC={class:"wp:text-sm wp:text-muted-foreground"},kC={class:"wp:flex wp:flex-col wp:gap-4"},RC={class:"wp:flex wp:justify-between"},IC={class:"wp:text-sm wp:text-muted-foreground"},$C={class:"wp:flex wp:flex-col wp:gap-2"},PC={class:"wp:flex wp:justify-between"},DC={class:"wp:text-sm wp:text-muted-foreground"},OC={class:"wp:flex wp:flex-col wp:gap-2"},HC={class:"wp:flex wp:items-center wp:justify-between wp:gap-4"},MC={class:"wp:flex wp:flex-col wp:gap-1"},NC={class:"wp:flex wp:flex-col wp:gap-3"},qC={class:"wp:grid wp:grid-cols-2 wp:gap-2 wp:text-sm"},BC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},LC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},FC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},VC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},jC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},UC={class:"wp:flex wp:items-center wp:justify-between wp:gap-2"},zC=X({__name:"AudioSettingsDialog",props:{visible:{type:Boolean}},emits:["update:visible"],setup(e,{emit:t}){const r=t,n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",s=Vt("sip"),{setVolume:i,setOutputDevice:o,setInputDevice:a,setNotificationVolume:l}=s,u=s.setRingtoneVolume??(()=>{}),c=s.setRingtoneTone??(()=>{}),d=V([]),p=V([]),h=as("webphone-input-device",""),m=as("webphone-output-device",""),y=as("webphone-volume",100),T=as("webphone-notification-volume",100),g=as("webphone-ringtone-volume",100),b=as("webphone-ringtone-tone","original"),w=as(Lp,!1),_={classic:"original","original-loud":"aurora","original-intense":"resonancia"},E=async()=>{try{await navigator.mediaDevices.getUserMedia({audio:!0});const O=await navigator.mediaDevices.enumerateDevices();d.value=O.filter(z=>z.kind==="audioinput").map((z,G)=>({deviceId:z.deviceId,label:z.label||`Microphone ${G+1}`})),p.value=O.filter(z=>z.kind==="audiooutput").map((z,G)=>({deviceId:z.deviceId,label:z.label||`Speaker ${G+1}`}));const R=d.value.some(z=>z.deviceId===h.value);(!h.value||!R)&&d.value.length>0&&(h.value=d.value[0]?.deviceId??"");const M=p.value.some(z=>z.deviceId===m.value);(!m.value||!M)&&p.value.length>0&&(m.value=p.value[0]?.deviceId??""),h.value&&a(h.value),m.value&&o(m.value)}catch(O){console.error("Error loading devices",O)}},P=O=>{const R=String(O);h.value=R,a(R)},B=O=>{const R=String(O);m.value=R,o(R)},v=(O,R=35)=>O.length<=R?O:O.substring(0,R)+"...",N=j({get:()=>[y.value],set:O=>{y.value=O[0],i(y.value)}}),q=j({get:()=>[T.value],set:O=>{T.value=O[0],l(T.value)}}),C=j({get:()=>[g.value],set:O=>{g.value=O[0]??100,u(g.value)}}),S=O=>{b.value=String(O),c(b.value)},x=O=>{w.value=O};return Qe(()=>{E(),i(y.value),l(T.value),u(g.value),localStorage.removeItem("webphone-custom-ringtone");const O=_[b.value]??b.value;b.value=["original","aurora","resonancia"].includes(O)?O:"original",c(b.value)}),(O,R)=>e.visible?(I(),K(f(Kc),{key:0,open:e.visible,"onUpdate:open":R[6]||(R[6]=M=>r("update:visible",M))},{default:k(()=>[$(f(Wc),{class:"wp:sm:max-w-sm"},{default:k(()=>[$(f(Gc),null,{default:k(()=>[$(f(Jc),null,{default:k(()=>[...R[7]||(R[7]=[Ne("Audio Settings",-1)])]),_:1})]),_:1}),Q("div",SC,[Q("div",CC,[$(f(mn),null,{default:k(()=>[...R[8]||(R[8]=[Ne("Microphone",-1)])]),_:1}),$(f(Yc),{modelValue:f(h),"onUpdate:modelValue":[R[0]||(R[0]=M=>tt(h)?h.value=M:null),P]},{default:k(()=>[$(f(Qc),{class:"wp:w-full"},{default:k(()=>[$(f(eu),{placeholder:"Select Microphone"})]),_:1}),$(f(Zc),null,{default:k(()=>[$(f(Xc),null,{default:k(()=>[(I(!0),Se(Ke,null,hr(d.value,M=>(I(),K(f(ji),{key:M.deviceId,value:M.deviceId,title:M.label},{default:k(()=>[Ne(Le(v(M.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),Q("div",xC,[$(f(mn),null,{default:k(()=>[...R[9]||(R[9]=[Ne("Speaker",-1)])]),_:1}),$(f(Yc),{modelValue:f(m),"onUpdate:modelValue":[R[1]||(R[1]=M=>tt(m)?m.value=M:null),B]},{default:k(()=>[$(f(Qc),{class:"wp:w-full"},{default:k(()=>[$(f(eu),{placeholder:"Select Speaker"})]),_:1}),$(f(Zc),null,{default:k(()=>[$(f(Xc),null,{default:k(()=>[(I(!0),Se(Ke,null,hr(p.value,M=>(I(),K(f(ji),{key:M.deviceId,value:M.deviceId,title:M.label},{default:k(()=>[Ne(Le(v(M.label)),1)]),_:2},1032,["value","title"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),Q("div",TC,[Q("div",EC,[$(f(mn),null,{default:k(()=>[...R[10]||(R[10]=[Ne("Media Volume",-1)])]),_:1}),Q("span",AC,Le(f(y))+"%",1)]),$(f(tu),{modelValue:N.value,"onUpdate:modelValue":R[2]||(R[2]=M=>N.value=M),max:100,step:1},null,8,["modelValue"])]),Q("div",kC,[Q("div",RC,[$(f(mn),null,{default:k(()=>[...R[11]||(R[11]=[Ne("Notification Volume",-1)])]),_:1}),Q("span",IC,Le(f(T))+"%",1)]),$(f(tu),{modelValue:q.value,"onUpdate:modelValue":R[3]||(R[3]=M=>q.value=M),max:100,step:1},null,8,["modelValue"])]),Q("div",$C,[Q("div",PC,[$(f(mn),null,{default:k(()=>[...R[12]||(R[12]=[Ne("Volumen del tono",-1)])]),_:1}),Q("span",DC,Le(f(g))+"%",1)]),$(f(tu),{modelValue:C.value,"onUpdate:modelValue":R[4]||(R[4]=M=>C.value=M),max:100,step:1},null,8,["modelValue"])]),Q("div",OC,[$(f(mn),null,{default:k(()=>[...R[13]||(R[13]=[Ne("Tono de llamada",-1)])]),_:1}),$(f(Yc),{"model-value":f(b),"onUpdate:modelValue":S},{default:k(()=>[$(f(Qc),{class:"wp:w-full"},{default:k(()=>[$(f(eu),{placeholder:"Seleccionar tono"})]),_:1}),$(f(Zc),null,{default:k(()=>[$(f(Xc),null,{default:k(()=>[$(f(ji),{value:"original"},{default:k(()=>[...R[14]||(R[14]=[Ne("Original",-1)])]),_:1}),$(f(ji),{value:"aurora"},{default:k(()=>[...R[15]||(R[15]=[Ne("Aurora",-1)])]),_:1}),$(f(ji),{value:"resonancia"},{default:k(()=>[...R[16]||(R[16]=[Ne("Resonancia",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model-value"])]),$(f(wg)),Q("div",HC,[Q("div",MC,[$(f(mn),{for:"auto-answer-toggle"},{default:k(()=>[...R[17]||(R[17]=[Ne("Respuesta automática",-1)])]),_:1})]),$(f(bC),{id:"auto-answer-toggle","model-value":f(w),role:"switch","aria-checked":f(w),"aria-label":f(w)?"Desactivar respuesta automática":"Activar respuesta automática",class:Xe(["wp:flex wp:h-7 wp:w-12 wp:shrink-0 wp:cursor-pointer wp:items-center wp:justify-start wp:rounded-full wp:border-0 wp:p-0.5 wp:transition-colors wp:focus-visible:ring-2 wp:focus-visible:ring-primary/50"]),style:xt({backgroundColor:f(w)?"var(--color-primary-500)":"var(--muted)"}),"onUpdate:modelValue":x},{default:k(()=>[Q("span",{class:Xe(["wp:pointer-events-none wp:block wp:h-6 wp:w-6 wp:shrink-0 wp:rounded-full wp:bg-white wp:shadow-sm wp:transition-transform",f(w)?"wp:translate-x-5":"wp:translate-x-0"])},null,2)]),_:1},8,["model-value","aria-checked","aria-label","style"])]),$(f(wg)),Q("div",NC,[$(f(mn),{class:"wp:text-base"},{default:k(()=>[...R[18]||(R[18]=[Ne("Atajos de teclado",-1)])]),_:1}),Q("div",qC,[Q("div",BC,[R[19]||(R[19]=Q("span",{class:"wp:text-muted-foreground"},"Historial",-1)),$(f(vn),null,{default:k(()=>[Ne(Le(f(n))+"H",1)]),_:1})]),Q("div",LC,[R[20]||(R[20]=Q("span",{class:"wp:text-muted-foreground"},"Configuración",-1)),$(f(vn),null,{default:k(()=>[Ne(Le(f(n))+",",1)]),_:1})]),Q("div",FC,[R[21]||(R[21]=Q("span",{class:"wp:text-muted-foreground"},"Teclado",-1)),$(f(vn),null,{default:k(()=>[Ne(Le(f(n))+"K",1)]),_:1})]),Q("div",VC,[R[22]||(R[22]=Q("span",{class:"wp:text-muted-foreground"},"Línea 1",-1)),$(f(vn),null,{default:k(()=>[Ne(Le(f(n))+"1",1)]),_:1})]),Q("div",jC,[R[23]||(R[23]=Q("span",{class:"wp:text-muted-foreground"},"Línea 2",-1)),$(f(vn),null,{default:k(()=>[Ne(Le(f(n))+"2",1)]),_:1})]),Q("div",UC,[R[24]||(R[24]=Q("span",{class:"wp:text-muted-foreground"},"Línea 3",-1)),$(f(vn),null,{default:k(()=>[Ne(Le(f(n))+"3",1)]),_:1})])])])]),$(f(mg),null,{default:k(()=>[$(f(pt),{variant:"secondary",onClick:R[5]||(R[5]=M=>r("update:visible",!1))},{default:k(()=>[...R[25]||(R[25]=[Ne("Close",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):qe("",!0)}}),KC=zC,WC=X({__name:"ScrollBar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=zt(t,"class");return(n,s)=>(I(),K(f(H2),ye({"data-slot":"scroll-area-scrollbar"},f(r),{class:f(ut)("wp:flex wp:touch-none wp:p-px wp:transition-colors wp:select-none",e.orientation==="vertical"&&"wp:h-full wp:w-2.5 wp:border-l wp:border-l-transparent",e.orientation==="horizontal"&&"wp:h-2.5 wp:flex-col wp:border-t wp:border-t-transparent",t.class)}),{default:k(()=>[$(f(N2),{"data-slot":"scroll-area-thumb",class:"wp:bg-border wp:relative wp:flex-1 wp:rounded-full"})]),_:1},16,["class"]))}}),GC=WC,JC=X({__name:"ScrollArea",props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e,r=zt(t,"class");return(n,s)=>(I(),K(f(x2),ye({"data-slot":"scroll-area"},f(r),{class:f(ut)("wp:relative",t.class)}),{default:k(()=>[$(f(q2),{"data-slot":"scroll-area-viewport",class:"wp:focus-visible:ring-ring/50 wp:size-full wp:rounded-[inherit] wp:transition-[color,box-shadow] wp:outline-none wp:focus-visible:ring-[3px] wp:focus-visible:outline-1"},{default:k(()=>[te(n.$slots,"default")]),_:3}),$(GC),$(f(E2))]),_:3},16,["class"]))}}),yg=JC,YC={class:"wp:relative wp:my-2"},ZC={class:"wp:flex wp:flex-col wp:gap-2"},XC=["onClick"],QC={class:"wp:flex wp:min-w-0 wp:items-center wp:gap-3"},ex={class:"wp:flex wp:min-w-0 wp:flex-col"},tx={class:"wp:truncate wp:text-sm wp:font-medium"},rx={class:"wp:text-[10px] wp:text-muted-foreground"},nx={class:"wp:flex wp:shrink-0 wp:items-center wp:gap-1"},sx={class:"wp:flex wp:flex-col wp:items-end"},ix={key:0,class:"wp:text-xs wp:font-mono wp:text-muted-foreground"},ox={class:"wp:text-[10px] wp:text-muted-foreground wp:capitalize"},ax=["aria-label","onClick"],lx=["aria-label","onClick"],cx={key:0,class:"wp:py-8 wp:text-center wp:text-muted-foreground"},ux={key:1,class:"wp:py-8 wp:text-center wp:text-muted-foreground"},dx=X({__name:"CallHistoryDialog",props:{visible:{type:Boolean},maskNumber:{type:Boolean},contacts:{}},emits:["update:visible","call"],setup(e,{emit:t}){const r=e,n=t,s=Vt("webphone"),i=V(""),o=V(null);let a=null;const l=b=>{if(!r.contacts)return b;const w=r.contacts.find(_=>_.number===b);return w?w.name:b},u=b=>{const w=l(b);return r.maskNumber&&w===b?cn(b):w},c=j(()=>{if(!i.value)return s.callHistory;const b=i.value.toLowerCase();return s.callHistory.filter(w=>{const _=l(w.number).toLowerCase(),E=w.number.toLowerCase();return _.includes(b)||E.includes(b)})}),d=b=>b===0?"":`${Math.floor(b/60)}:${(b%60).toString().padStart(2,"0")}`,p=b=>b.direction==="incoming"?b.status==="missed"?L_:B_:F_,h=b=>({answered:"Contestada",missed:"Perdida",cancelled:"Cancelada"})[b],m=b=>b.status==="missed"?"wp:text-red-500":b.direction==="incoming"?"wp:text-green-500":"wp:text-blue-500",y=b=>{n("update:visible",!1),n("call",b)},T=async b=>{if(navigator.clipboard?.writeText){await navigator.clipboard.writeText(b);return}const w=document.createElement("textarea");w.value=b,w.setAttribute("readonly",""),w.style.position="fixed",w.style.opacity="0",document.body.appendChild(w),w.select();const _=document.execCommand("copy");if(w.remove(),!_)throw new Error("Clipboard is not available")},g=async b=>{try{await T(b.number),o.value=b.id,a!==null&&window.clearTimeout(a),a=window.setTimeout(()=>{o.value===b.id&&(o.value=null),a=null},1600)}catch(w){console.warn("Could not copy call history number:",w)}};return(b,w)=>e.visible?(I(),K(f(Kc),{key:0,open:e.visible,"onUpdate:open":w[1]||(w[1]=_=>n("update:visible",_))},{default:k(()=>[$(f(Wc),{class:"wp:sm:max-w-sm"},{default:k(()=>[$(f(Gc),null,{default:k(()=>[$(f(Jc),null,{default:k(()=>[...w[2]||(w[2]=[Ne("Historial de llamadas",-1)])]),_:1})]),_:1}),Q("div",YC,[$(f(U_),{class:"wp:absolute wp:left-2 wp:top-2.5 wp:h-4 wp:w-4 wp:text-muted-foreground"}),$(f(Fi),{modelValue:i.value,"onUpdate:modelValue":w[0]||(w[0]=_=>i.value=_),placeholder:"Buscar en el historial...",class:"wp:pl-8"},null,8,["modelValue"])]),$(f(yg),{class:"wp:h-[60vh] wp:pr-4"},{default:k(()=>[$(f(Vi),null,{default:k(()=>[Q("div",ZC,[(I(!0),Se(Ke,null,hr(c.value,_=>(I(),Se("div",{key:_.id,class:"wp:flex wp:items-center wp:justify-between wp:gap-2 wp:rounded-lg wp:p-2 wp:hover:bg-accent wp:cursor-pointer wp:transition-colors",onClick:E=>y(_.number)},[Q("div",QC,[(I(),K(gi(p(_)),{class:Xe([m(_),"wp:h-4 wp:w-4"])},null,8,["class"])),Q("div",ex,[Q("span",tx,Le(u(_.number)),1),Q("span",rx,Le(new Date(_.startTime).toLocaleString("es-CO")),1)])]),Q("div",nx,[Q("div",sx,[_.duration>0?(I(),Se("span",ix,Le(d(_.duration)),1)):qe("",!0),Q("span",ox,Le(h(_.status)),1)]),$(f(Ks),null,{default:k(()=>[$(f(Gs),{"as-child":""},{default:k(()=>[Q("button",{type:"button",class:"wp:inline-flex wp:h-8 wp:w-8 wp:items-center wp:justify-center wp:rounded-md wp:text-muted-foreground wp:transition-colors wp:hover:bg-muted wp:hover:text-foreground","aria-label":o.value===_.id?"Número copiado":"Copiar número",onClick:Zt(E=>g(_),["stop"])},[o.value===_.id?(I(),K(f(qc),{key:0,class:"wp:h-4 wp:w-4"})):(I(),K(f(O_),{key:1,class:"wp:h-4 wp:w-4"}))],8,ax)]),_:2},1024),$(f(Ws),null,{default:k(()=>[Ne(Le(o.value===_.id?"Número copiado":"Copiar número"),1)]),_:2},1024)]),_:2},1024),$(f(Ks),null,{default:k(()=>[$(f(Gs),{"as-child":""},{default:k(()=>[Q("button",{type:"button",class:"wp:inline-flex wp:h-8 wp:w-8 wp:items-center wp:justify-center wp:rounded-md wp:text-primary wp:transition-colors wp:hover:bg-primary/10","aria-label":"Llamar a "+_.number,onClick:Zt(E=>y(_.number),["stop"])},[$(f(q_),{class:"wp:h-4 wp:w-4"})],8,lx)]),_:2},1024),$(f(Ws),null,{default:k(()=>[...w[3]||(w[3]=[Ne("Llamar",-1)])]),_:1})]),_:2},1024)])],8,XC))),128)),f(s).callHistory.length===0?(I(),Se("div",cx," No hay historial de llamadas ")):c.value.length===0?(I(),Se("div",ux," No se encontraron resultados ")):qe("",!0)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):qe("",!0)}}),fx=dx,px={class:"wp:grid wp:gap-4 wp:py-4"},hx={class:"wp:grid wp:gap-2 wp:relative"},gx={class:"wp:relative"},vx={key:0,class:"wp:absolute wp:top-full wp:left-0 wp:right-0 wp:mt-1 wp:bg-popover wp:border wp:rounded-md wp:shadow-lg wp:z-50 wp:max-h-60 wp:overflow-auto"},mx={class:"wp:p-1"},wx=["onClick"],yx={class:"wp:flex wp:flex-col wp:min-w-0 wp:flex-1"},bx={class:"wp:font-medium wp:text-sm wp:truncate"},_x={class:"wp:text-xs wp:text-muted-foreground"},Sx=X({__name:"TransferDialog",props:{visible:{type:Boolean},contacts:{default:()=>[]}},emits:["update:visible","transfer"],setup(e,{emit:t}){const r=e,n=t,s=V(""),i=V(!1),o=V(null);He(()=>r.visible,p=>{p&&(s.value="",i.value=!1)}),He(s,p=>{i.value=p.length>0&&a.value.length>0});const a=j(()=>{if(!s.value)return r.contacts;const p=s.value.toLowerCase();return r.contacts.filter(h=>h.name.toLowerCase().includes(p)||h.number.includes(p))}),l=p=>{s.value=p.number,i.value=!1},u=()=>{s.value="",i.value=!1,o.value?.focus()},c=p=>{const h=s.value.trim();h&&(n("transfer",h,p),n("update:visible",!1),s.value="",i.value=!1)},d=p=>{p.key==="Enter"&&s.value.trim()?(p.preventDefault(),c("blind")):p.key==="Escape"&&(i.value=!1)};return(p,h)=>e.visible?(I(),K(f(Kc),{key:0,open:e.visible,"onUpdate:open":h[5]||(h[5]=m=>n("update:visible",m))},{default:k(()=>[$(f(Wc),{class:"wp:sm:max-w-md"},{default:k(()=>[$(f(Gc),null,{default:k(()=>[$(f(Jc),null,{default:k(()=>[...h[6]||(h[6]=[Ne("Transferir Llamada",-1)])]),_:1})]),_:1}),Q("div",px,[Q("div",hx,[$(f(mn),{for:"transfer-input"},{default:k(()=>[...h[7]||(h[7]=[Ne("Número o Contacto",-1)])]),_:1}),Q("div",gx,[$(f(Fi),{id:"transfer-input",ref_key:"inputRef",ref:o,modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=m=>s.value=m),type:"text",placeholder:"Escribe un número o busca un contacto...",class:"wp:pr-8",onKeydown:d,onFocus:h[1]||(h[1]=m=>i.value=s.value.length>0&&a.value.length>0),autocomplete:"off"},null,8,["modelValue"]),s.value?(I(),K(f(pt),{key:0,variant:"ghost",size:"icon",class:"wp:absolute wp:right-0 wp:top-0 wp:h-full wp:w-8 wp:hover:bg-transparent",onClick:u},{default:k(()=>[$(f(Lc),{class:"wp:h-4 wp:w-4"})]),_:1})):qe("",!0)]),i.value&&a.value.length>0?(I(),Se("div",vx,[$(f(yg),{class:"wp:max-h-60"},{default:k(()=>[Q("div",mx,[(I(!0),Se(Ke,null,hr(a.value,m=>(I(),Se("div",{key:m.number,class:"wp:flex wp:items-center wp:gap-2 wp:p-2 wp:rounded-sm wp:cursor-pointer wp:hover:bg-accent wp:transition-colors",onClick:y=>l(m)},[m.type?(I(),Se("div",{key:0,class:Xe(f(ut)("wp:flex wp:items-center wp:justify-center wp:w-8 wp:h-8 wp:rounded-full wp:shrink-0",m.type==="extension"?"wp:bg-blue-100 wp:text-blue-600 wp:dark:bg-blue-900/30 wp:dark:text-blue-400":m.type==="contact"?"wp:bg-emerald-100 wp:text-emerald-600 wp:dark:bg-emerald-900/30 wp:dark:text-emerald-400":m.type==="voicemail"?"wp:bg-purple-100 wp:text-purple-600 wp:dark:bg-purple-900/30 wp:dark:text-purple-400":"wp:bg-amber-100 wp:text-amber-600 wp:dark:bg-amber-900/30 wp:dark:text-amber-400"))},[m.type==="extension"?(I(),K(f(fg),{key:0,class:"wp:w-4 wp:h-4"})):m.type==="contact"?(I(),K(f(Bc),{key:1,class:"wp:w-4 wp:h-4"})):m.type==="voicemail"?(I(),K(f(gg),{key:2,class:"wp:w-4 wp:h-4"})):(I(),K(f(vg),{key:3,class:"wp:w-4 wp:h-4"}))],2)):qe("",!0),Q("div",yx,[Q("span",bx,Le(m.name),1),Q("span",_x,Le(m.number),1)])],8,wx))),128))])]),_:1})])):qe("",!0),h[8]||(h[8]=Q("p",{class:"wp:text-xs wp:text-muted-foreground"}," Presiona Enter para transferir directamente ",-1))])]),$(f(mg),{class:"wp:flex-col wp:gap-2 sm:wp:flex-row"},{default:k(()=>[$(f(pt),{variant:"secondary",onClick:h[2]||(h[2]=m=>n("update:visible",!1)),class:"wp:w-full sm:wp:w-auto"},{default:k(()=>[...h[9]||(h[9]=[Ne(" Cancelar ",-1)])]),_:1}),$(f(pt),{onClick:h[3]||(h[3]=m=>c("blind")),disabled:!s.value.trim(),variant:"outline",class:"wp:w-full sm:wp:flex-1"},{default:k(()=>[...h[10]||(h[10]=[Ne(" Transferencia Ciega ",-1)])]),_:1},8,["disabled"]),$(f(pt),{onClick:h[4]||(h[4]=m=>c("attended")),disabled:!s.value.trim(),class:"wp:w-full sm:wp:flex-1"},{default:k(()=>[...h[11]||(h[11]=[Ne(" Con Consulta ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"])):qe("",!0)}}),Cx=Sx,xx=X({__name:"DocumentPip",props:{remoteStream:{},localStream:{},hasVideo:{type:Boolean},remoteNumber:{},isConnected:{type:Boolean},callStatus:{},isMuted:{type:Boolean},isHeld:{type:Boolean},destination:{},isVideo:{type:Boolean},active:{type:Boolean},autoOpenOnBlur:{type:Boolean}},emits:["transfer","update:active","hangup","answer","toggleMute","toggleHold"],setup(e,{expose:t,emit:r}){const n=e,s=r,i=V(!1),o=V(!1),a=V(!1),l=V(null),u=V(0),c=V(null);let d=null,p=null;Qe(()=>{i.value="documentPictureInPicture"in window,document.addEventListener("visibilitychange",y),window.addEventListener("blur",T)}),jt(()=>{document.removeEventListener("visibilitychange",y),window.removeEventListener("blur",T),p&&(clearTimeout(p),p=null),b(),M()});const h=()=>{const G=n.callStatus!=="idle",ae=document.hidden||!document.hasFocus();return n.autoOpenOnBlur!==!1&&G&&i.value&&ae&&!o.value&&!a.value},m=()=>{h()&&(p&&clearTimeout(p),p=setTimeout(()=>{h()&&R()},120))},y=()=>{m()},T=()=>{m()},g=()=>{c.value||(u.value=0,c.value=setInterval(()=>{u.value++},1e3))},b=()=>{c.value&&(clearInterval(c.value),c.value=null)},w=G=>{const ae=Math.floor(G/60),Y=G%60;return`${ae.toString().padStart(2,"0")}:${Y.toString().padStart(2,"0")}`};He(()=>n.callStatus,(G,ae)=>{G==="connected"&&ae!=="connected"?g():G==="idle"&&ae!=="idle"&&(b(),o.value&&M())},{immediate:!0}),He(()=>n.isConnected,G=>{!G&&o.value&&(b(),M())}),He(()=>[n.callStatus,n.isMuted,n.isHeld],()=>{l.value&&(C(l.value.document),N(l.value.document))});const _=j(()=>i.value&&n.isConnected),E={phone:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>',phoneOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" transform="rotate(135 12 12)"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',mic:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',micOff:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="2" x2="22" y1="2" y2="22"/><path d="M18.89 13.23A7.12 7.12 0 0 0 19 12v-2"/><path d="M5 10v2a7 7 0 0 0 12 5"/><path d="M15 9.34V5a3 3 0 0 0-5.68-1.33"/><path d="M9 9v3a3 3 0 0 0 5.12 2.12"/><line x1="12" x2="12" y1="19" y2="22"/></svg>',pause:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="14" y="4" width="4" height="16" rx="1"/><rect x="6" y="4" width="4" height="16" rx="1"/></svg>',play:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3"/></svg>',transfer:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 3 4 4-4 4"/><path d="M20 7H4"/><path d="m8 21-4-4 4-4"/><path d="M4 17h16"/></svg>',video:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>',user:'<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'},P=G=>{const ae=G.createElement("style");ae.textContent=`
|
|
77
77
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
78
78
|
|
|
79
79
|
body {
|
|
@@ -279,7 +279,7 @@ Duration=160`,contentType:"application/dtmf-relay",contentDisposition:"signal"}}
|
|
|
279
279
|
0%, 100% { opacity: 1; }
|
|
280
280
|
50% { opacity: 0.7; }
|
|
281
281
|
}
|
|
282
|
-
`,G.head.appendChild(
|
|
282
|
+
`,G.head.appendChild(ae)},B=()=>{switch(n.callStatus){case"calling":return"Llamando...";case"incoming":return"Entrante";case"connected":return n.isHeld?"En espera":"En llamada";case"held":return"En espera";default:return""}},v=()=>{switch(n.callStatus){case"calling":return"pip-status-calling";case"incoming":return"pip-status-incoming";case"connected":return n.isHeld?"pip-status-held":"pip-status-connected";case"held":return"pip-status-held";default:return""}},N=G=>{const ae=G.querySelector(".pip-status-text");ae&&(ae.textContent=B(),ae.className=`pip-status-text ${v()}`)},q=G=>{const ae=G.createElement("div");return ae.className="pip-wrapper",n.hasVideo?ae.innerHTML=`
|
|
283
283
|
<div class="pip-video-area">
|
|
284
284
|
<video id="pip-remote-video" autoplay playsinline></video>
|
|
285
285
|
<div class="pip-local-container">
|
|
@@ -287,15 +287,15 @@ Duration=160`,contentType:"application/dtmf-relay",contentDisposition:"signal"}}
|
|
|
287
287
|
</div>
|
|
288
288
|
<div class="pip-overlay">
|
|
289
289
|
<span class="pip-name">${n.remoteNumber||"Llamada"}</span>
|
|
290
|
-
<span id="pip-timer" class="pip-timer">${
|
|
290
|
+
<span id="pip-timer" class="pip-timer">${w(u.value)}</span>
|
|
291
291
|
</div>
|
|
292
292
|
</div>
|
|
293
293
|
<div class="pip-actions" id="pip-actions"></div>
|
|
294
|
-
`:
|
|
294
|
+
`:ae.innerHTML=`
|
|
295
295
|
<div class="pip-audio-area">
|
|
296
296
|
<div class="pip-caller-name">${n.remoteNumber||"Llamada"}</div>
|
|
297
|
-
<div class="pip-status-text ${
|
|
298
|
-
<div class="pip-duration" id="pip-timer">${
|
|
297
|
+
<div class="pip-status-text ${v()}">${B()}</div>
|
|
298
|
+
<div class="pip-duration" id="pip-timer">${w(u.value)}</div>
|
|
299
299
|
</div>
|
|
300
300
|
<div class="pip-actions" id="pip-actions"></div>
|
|
301
|
-
`,oe},C=G=>{const oe=G.getElementById("pip-actions");if(oe){if(oe.innerHTML="",n.callStatus==="incoming"){if(n.hasVideo){const de=G.createElement("button");de.className="pip-btn pip-btn-video",de.title="Contestar con Video",de.innerHTML=E.video,de.onclick=()=>s("answer",!0),oe.appendChild(de)}const Y=G.createElement("button");Y.className="pip-btn pip-btn-answer",Y.title="Contestar",Y.innerHTML=E.phone,Y.onclick=()=>s("answer",!1),oe.appendChild(Y);const ae=G.createElement("button");ae.className="pip-btn pip-btn-hangup",ae.title="Rechazar",ae.innerHTML=E.phoneOff,ae.onclick=()=>{s("hangup"),M()},oe.appendChild(ae)}else if(n.callStatus==="connected"){const Y=G.createElement("button");Y.className=`pip-btn pip-btn-mute ${n.isMuted?"active":""}`,Y.title=n.isMuted?"Activar micrófono":"Silenciar",Y.innerHTML=n.isMuted?E.micOff:E.mic,Y.onclick=()=>s("toggleMute"),oe.appendChild(Y);const ae=G.createElement("button");ae.className=`pip-btn pip-btn-hold ${n.isHeld?"active":""}`,ae.title=n.isHeld?"Reanudar":"Pausar",ae.innerHTML=n.isHeld?E.play:E.pause,ae.onclick=()=>s("toggleHold"),oe.appendChild(ae);const de=G.createElement("button");de.className="pip-btn pip-btn-transfer",de.title="Transferir",de.innerHTML=E.transfer,de.onclick=()=>s("transfer"),oe.appendChild(de);const Re=G.createElement("button");Re.className="pip-btn pip-btn-hangup",Re.title="Colgar",Re.innerHTML=E.phoneOff,Re.onclick=()=>{s("hangup"),M()},oe.appendChild(Re)}else if(n.callStatus==="calling"){const Y=G.createElement("button");Y.className="pip-btn pip-btn-hangup",Y.title="Cancelar",Y.innerHTML=E.phoneOff,Y.onclick=()=>{s("hangup"),M()},oe.appendChild(Y)}}},b=G=>{setTimeout(()=>{const oe=G.getElementById("pip-remote-video"),Y=G.getElementById("pip-local-video");oe&&n.remoteStream&&(oe.srcObject=n.remoteStream,oe.play().catch(()=>{})),Y&&n.localStream&&(Y.srcObject=n.localStream,Y.play().catch(()=>{}))},50)},x=G=>{const oe=G.getElementById("pip-timer");oe&&(d=setInterval(()=>{oe.textContent=y(u.value)},1e3))},O=()=>{d&&(clearInterval(d),d=null)},R=async()=>{if(!(!i.value||o.value||a.value)){a.value=!0;try{const G=n.hasVideo?340:280,oe=n.hasVideo?280:200,Y=await window.documentPictureInPicture.requestWindow({width:G,height:oe,preferInitialWindowPlacement:!0});l.value=Y,o.value=!0,s("update:active",!0),$(Y.document);const ae=q(Y.document);Y.document.body.appendChild(ae),n.hasVideo&&b(Y.document),C(Y.document),x(Y.document),Y.addEventListener("pagehide",()=>{O(),o.value=!1,l.value=null,s("update:active",!1)})}catch(G){console.error("[DocumentPip] Error:",G)}finally{a.value=!1}}},M=()=>{O(),l.value&&(l.value.close(),l.value=null,o.value=!1,s("update:active",!1))};return t({open:R,close:M,toggle:()=>{o.value?M():R()},isActive:o,isSupported:i,canUsePip:_}),(G,oe)=>te(G.$slots,"default")}}),hx=px,gx=["data-mode","data-call-status","data-network-status"],vx={key:0,class:"webphone__video-area wp:relative wp:w-full wp:aspect-video wp:bg-black"},mx={class:"webphone__video-local-frame wp:absolute wp:bottom-2 wp:right-2 wp:w-24 wp:aspect-video wp:bg-neutral-800 wp:rounded wp:overflow-hidden wp:border wp:border-white/20 wp:shadow-lg"},wx={class:"webphone__body wp:flex wp:flex-col wp:gap-1 wp:space-y-2"},yx={key:0,class:"webphone__channel-switcher-wrap wp:flex wp:flex-col wp:items-center wp:justify-center wp:py-3 wp:px-4 wp:gap-2"},bx={role:"radiogroup","aria-label":"Canales",class:"webphone__channel-switcher wp:w-full wp:max-w-[330px] wp:flex wp:items-center wp:justify-between wp:gap-1"},_x={class:"wp:flex"},Sx=["aria-checked","disabled","title","data-channel-id","data-state","data-call-state","onClick"],Cx={class:"webphone__display wp:py-1"},xx=["data-visible"],Tx={key:1,class:"webphone__offline-overlay wp:absolute wp:inset-0 wp:z-40 wp:flex wp:items-center wp:justify-center wp:bg-white/70 wp:dark:bg-neutral-900/70 wp:backdrop-blur-[1px] wp:px-6 wp:text-center"},Ex={key:2,class:"webphone__footer wp:flex wp:flex-col wp:items-center wp:p-2 wp:gap-0"},Ax=X({__name:"WebPhone",props:{host:{},wsUrl:{},extension:{},password:{},to:{},mode:{default:"call"},logo:{},contacts:{default:()=>[]},position:{default:()=>({})},initialKeypadVisible:{type:Boolean,default:!0},enablePictureInPicture:{type:Boolean,default:!0},maskNumber:{type:Boolean,default:!1},earlyMedia:{type:Boolean,default:!1},onAnswer:{},onHangup:{},onReject:{}},emits:["back","call-context","call-state","media-ready"],setup(e,{expose:t,emit:r}){const n=new Map,s=e,i=r,o=j(()=>{if(s.wsUrl)return s.wsUrl;if(s.host)return`wss://${s.host}/ws`}),a=j(()=>!o.value||!s.extension?"":`${o.value}::${s.extension}`),l=a.value?n.get(a.value):void 0,u=B0({server:o.value,extension:s.extension,initialConnected:l,initialKeypadVisible:s.initialKeypadVisible}),c=Wr(u),d=wy(u,{onCallContext:Z=>i("call-context",Z),onCallState:Z=>i("call-state",Z),onMediaReady:Z=>i("media-ready",Z)}),{initUserAgent:p,switchChannel:h,remoteStream:g,localStream:w}=d;Jn("webphone",c),Jn("sip",d),t({stop:d.stop}),at(()=>{s.mode==="webcall"&&(s.to||console.error('WebPhone: "to" prop is required when mode is "webcall"'),s.logo||console.error('WebPhone: "logo" prop is required when mode is "webcall"'))});const T=V(!1),v=V(!1),S=V(!1),y=V(null),_=V(null),E=V(null),$=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",B=j(()=>s.mode==="webcall"),m=V(0),N=Z=>!!Z&&Z.getVideoTracks().length>0;De(()=>c.callStatus,Z=>{if(Z==="idle"&&!c.isKeypadVisible){c.toggleKeypad();return}Z!=="idle"&&c.isKeypadVisible&&c.toggleKeypad()});const q=j(()=>c.channels.find(Z=>Z.id===c.activeChannelId)??null),C=Z=>{if(!Z)return"";const ce=Z.trim(),ge=ce.startsWith("+"),ut=ce.replace(/[^\d]/g,"");return ge?`+${ut}`:ut},b=j(()=>{const Z=q.value?.remoteNumber||c.remoteNumber,ce=C(Z),ge=s.contacts.find(ut=>C(ut.number)===ce);return ge?.name?ge.name:s.maskNumber&&Z?an(Z):Z||"Llamada"}),x=j(()=>{const Z=q.value?.remoteNumber||c.remoteNumber;return s.maskNumber?an(Z):Z}),O=j(()=>(m.value,!!q.value?.hasVideo||N(g.value)||N(w.value))),{isOnline:R}=sb(),M=j(()=>!R.value),z=V(null),G=V(!1),oe=j(()=>s.enablePictureInPicture),Y=()=>{oe.value&&z.value?.toggle()},ae=async(Z,ce)=>{try{ce==="blind"?await d.transferCall(Z):await d.startAttendedTransfer(Z)}catch(ge){console.error("[WebPhone] Transfer error:",ge),alert(ge instanceof Error?ge.message:"Transfer failed. Please try again.")}},de=async()=>{try{await d.completeAttendedTransfer()}catch(Z){console.error("[WebPhone] Complete transfer error:",Z),alert(Z instanceof Error?Z.message:"Failed to complete transfer.")}},Re=async()=>{try{await d.cancelAttendedTransfer()}catch(Z){console.error("[WebPhone] Cancel transfer error:",Z),alert(Z instanceof Error?Z.message:"Failed to cancel transfer.")}},je=Z=>{c.keypadValue=Z,d.makeCall(Z)},Ie=Z=>{if(s.onAnswer){s.onAnswer(Z);return}d.answerCall(Z)},Pe=async()=>{await d.hangupCall(),await s.onHangup?.()},nt=()=>{if(s.onReject){s.onReject();return}d.hangupCall()},_t=()=>{S.value=!0,z.value?.close(),window.focus()},Be=()=>{if(!oe.value)return!1;const Z=c.callStatus!=="idle",ce=document.hidden||!document.hasFocus();return Z&&ce&&!G.value},st=()=>{window.setTimeout(()=>{Be()&&z.value?.open()},150)};at(()=>{_.value&&(G.value||!g.value?_.value.srcObject=null:_.value.srcObject=g.value),E.value&&(G.value||!w.value?E.value.srcObject=null:E.value.srcObject=w.value)});const ht=Z=>{if(!Z||typeof Z.addEventListener!="function"||typeof Z.removeEventListener!="function")return()=>{};const ce=()=>{m.value+=1};return Z.addEventListener("addtrack",ce),Z.addEventListener("removetrack",ce),()=>{Z.removeEventListener("addtrack",ce),Z.removeEventListener("removetrack",ce)}};De(g,(Z,ce,ge)=>{m.value+=1,ge(ht(Z))},{immediate:!0}),De(w,(Z,ce,ge)=>{m.value+=1,ge(ht(Z))},{immediate:!0});const mt=["button","a","input","textarea","select","label","video",'[role="button"]','[role="radio"]',"[data-no-drag]"].join(", "),A=()=>{const Z=window.innerWidth<640,ce=window.innerWidth<1024;let ge=360;return Z?ge=window.innerWidth*.9:ce&&(ge=340),{x:Math.max(0,(window.innerWidth-ge)/2),y:Z?30:80}},{x:P,y:J,style:ie}=nb(y,{initialValue:j(()=>{const Z=A();return{x:s.position.x??Z.x,y:s.position.y??Z.y}}).value,preventDefault:!0,onStart:(Z,ce)=>{const ge=ce.target;if(ge instanceof HTMLElement&&ge.closest(mt))return!1}});De(()=>s.position,Z=>{const ce=A();P.value=Z.x??ce.x,J.value=Z.y??ce.y},{deep:!0});const re=[{label:"Canal 1",value:0},{label:"Canal 2",value:1},{label:"Canal 3",value:2}],ee=V(!1),pe=j({get:()=>c.activeChannelId.toString(),set:async Z=>{if(!M.value&&Z&&!ee.value){ee.value=!0;try{await h(parseInt(Z))}finally{ee.value=!1}}}}),fe=Z=>{const ce=c.channels.find(ge=>ge.id===Z);return ce?ce.status==="connected"||ce.status==="calling"||ce.status==="incoming":!1},le=Z=>{const ce=c.channels.find(ge=>ge.id===Z);return ce?ce.isHeld||ce.status==="held":!1},ne=Z=>{M.value||(pe.value=Z.toString())},Ee=Z=>{if(!M.value&&((Z.metaKey||Z.ctrlKey)&&Z.key.toLowerCase()==="h"&&(Z.preventDefault(),v.value=!0),(Z.metaKey||Z.ctrlKey)&&Z.key===","&&(Z.preventDefault(),T.value=!0),(Z.metaKey||Z.ctrlKey)&&Z.key.toLowerCase()==="k"&&(Z.preventDefault(),c.toggleKeypad()),(Z.metaKey||Z.ctrlKey)&&["1","2","3"].includes(Z.key))){Z.preventDefault();const ce=parseInt(Z.key)-1;ee.value||(ee.value=!0,h(ce).finally(()=>{ee.value=!1}))}};De(()=>c.callStatus,()=>{Be()&&st()}),De(()=>c.isConnected,Z=>{a.value&&n.set(a.value,Z)},{immediate:!0}),De(oe,Z=>{!Z&&G.value&&z.value?.close()});const he=V(!1),Te=async()=>{he.value||M.value||!s.host||!s.extension||!s.password||(await p({uri:`sip:${s.extension}@${s.host}`,transportOptions:{server:o.value},authorizationUsername:s.extension,authorizationPassword:s.password,earlyMedia:s.earlyMedia}),d.extension.value&&(he.value=!0,s.mode==="webcall"&&s.to&&d.makeCall(s.to)))},Oe=()=>Te(),Ve=async()=>{await d.stop(),he.value=!1};return Jn("webphoneRegistration",{isConnected:j(()=>c.isConnected),register:Oe,unregister:Ve}),Qe(async()=>{window.addEventListener("keydown",Ee),document.addEventListener("visibilitychange",st),window.addEventListener("blur",st),window.addEventListener("pagehide",st),!(s.mode==="webcall"&&(!s.to||!s.logo))&&await Te()}),De(()=>R.value,async Z=>{Z&&await Te()}),jt(()=>{d.stop(),window.removeEventListener("keydown",Ee),document.removeEventListener("visibilitychange",st),window.removeEventListener("blur",st),window.removeEventListener("pagehide",st)}),(Z,ce)=>(I(),Se(Ke,null,[Q("div",{ref_key:"phoneRef",ref:y,style:xt(f(ie)),class:Xe(["webphone webphone-container wp:bg-white wp:dark:bg-neutral-800 wp:rounded-lg wp:shadow-sm wp:inset-shadow-2xs wp:w-[min(92vw,330px)] wp:fixed wp:z-50 wp:select-none wp:[&_button]:cursor-pointer wp:**:[[role=button]]:cursor-pointer",M.value?"wp:opacity-70":""]),"data-mode":s.mode,"data-call-status":c.callStatus,"data-network-status":M.value?"offline":"online"},[O.value&&!G.value?(I(),Se("div",vx,[Q("video",{ref_key:"remoteVideoRef",ref:_,autoplay:"",playsinline:"",class:"webphone__video-remote wp:w-full wp:h-full wp:object-cover"},null,512),Q("div",mx,[Q("video",{ref_key:"localVideoRef",ref:E,autoplay:"",playsinline:"",muted:"",class:"webphone__video-local wp:w-full wp:h-full wp:object-cover"},null,512)])])):Ne("",!0),Q("div",wx,[B.value?Ne("",!0):(I(),Se("div",yx,[Q("div",bx,[Q("div",_x,[(I(),Se(Ke,null,fr(re,ge=>Q("button",{key:ge.value,type:"button",role:"radio","aria-checked":pe.value===ge.value.toString(),disabled:M.value,title:`${ge.label} (${f($)}${ge.value+1})`,class:Xe(["webphone__channel-button wp:flex wp:items-center wp:gap-1 wp:px-2 wp:py-2 wp:rounded-lg wp:transition-colors wp:duration-200 wp:outline-none wp:focus-visible:ring-2 wp:focus-visible:ring-[var(--p-primary-color)] wp:focus-visible:ring-offset-2 wp:focus-visible:ring-offset-white wp:dark:focus-visible:ring-offset-neutral-900",le(ge.value)?"wp:bg-status-hold/12 hover:wp:bg-status-hold/18":fe(ge.value)?"wp:bg-[var(--color-red)]/12 hover:wp:bg-[var(--color-red)]/18":pe.value===ge.value.toString()?"wp:bg-[var(--p-primary-color)]/12":"wp:hover:bg-neutral-100 wp:dark:hover:bg-neutral-800/80"]),"data-channel-id":ge.value,"data-state":pe.value===ge.value.toString()?"active":"idle","data-call-state":le(ge.value)?"held":fe(ge.value)?"busy":"available",onClick:ut=>ne(ge.value)},[D(f(Vc),{class:Xe(["webphone__channel-icon wp:size-3 wp:shrink-0",le(ge.value)?"wp:text-status-hold":fe(ge.value)?"wp:text-[var(--color-red)]":pe.value===ge.value.toString()?"wp:text-[var(--p-primary-color)]":"wp:text-neutral-400"]),"stroke-width":1.8},null,8,["class"]),Q("span",{class:Xe(["webphone__channel-label wp:text-[11px] wp:leading-none manrope wp:font-bold",le(ge.value)?"wp:text-status-hold":fe(ge.value)?"wp:text-[var(--color-red)]":pe.value===ge.value.toString()?"wp:text-[var(--p-primary-color)]":"wp:text-neutral-500 wp:dark:text-neutral-400"])},Fe(ge.label),3)],10,Sx)),64))]),D(f(ma),null,{default:k(()=>[D(f(ga),null,{default:k(()=>[D(f(wa),{"as-child":""},{default:k(()=>[D(f(pt),{variant:"ghost",size:"icon",class:Xe(["wp:h-8 wp:w-8 wp:rounded-full",G.value?"wp:text-primary":""]),title:"Picture-in-Picture",onClick:Y},{default:k(()=>[D(f(O_),{class:"wp:w-4 wp:h-4 wp:text-[var(--color-settings)]"})]),_:1},8,["class"])]),_:1}),D(f(va),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[...ce[8]||(ce[8]=[Q("span",null,"Picture-in-Picture",-1)])]),_:1})]),_:1})]),_:1}),D(f(ma),null,{default:k(()=>[D(f(ga),null,{default:k(()=>[D(f(wa),{"as-child":""},{default:k(()=>[D(f(pt),{variant:"ghost",size:"icon",class:"wp:h-8 wp:w-8 wp:rounded-full",onClick:ce[0]||(ce[0]=ge=>T.value=!0)},{default:k(()=>[D(f(N_),{class:"wp:w-4 wp:h-4 wp:text-[var(--color-settings)]"})]),_:1})]),_:1}),D(f(va),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[ce[9]||(ce[9]=Q("span",null,"Configuración",-1)),D(f(hn),null,{default:k(()=>[qe(Fe(f($))+",",1)]),_:1})]),_:1})]),_:1})]),_:1})])])),Q("div",Cx,[(I(!0),Se(Ke,null,fr(c.channels,ge=>oo((I(),K(jS,{key:ge.id,"channel-id":ge.id,"allow-input":!B.value,"is-web-call":B.value,"is-online":f(R),contacts:s.contacts,user:s.extension,"mask-number":s.maskNumber},null,8,["channel-id","allow-input","is-web-call","is-online","contacts","user","mask-number"])),[[ko,ge.id===c.activeChannelId]])),128))]),Q("div",{class:Xe(["webphone__keypad wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",c.isKeypadVisible&&c.callStatus==="idle"?"wp:max-h-[300px] wp:opacity-100 wp:pb-0":"wp:max-h-0 wp:opacity-0 wp:pb-0"]),"data-visible":c.isKeypadVisible&&c.callStatus==="idle"?"true":"false"},[D(Hc)],10,xx),D(hS,{class:"webphone__actions",style:xt(M.value?"pointer-events: none;":void 0),destination:B.value?s.to:void 0,"is-video":s.mode==="video","on-answer":s.onAnswer,"on-hangup":s.onHangup,"on-reject":s.onReject,onTransfer:ce[1]||(ce[1]=ge=>S.value=!0),onCompleteTransfer:de,onCancelTransfer:Re},null,8,["style","destination","is-video","on-answer","on-hangup","on-reject"])]),M.value?(I(),Se("div",Tx,[...ce[10]||(ce[10]=[Q("span",{class:"wp:text-sm wp:font-semibold wp:text-status-disconnected"},"Sin internet",-1)])])):Ne("",!0),B.value?(I(),Se("div",Ex,[...ce[11]||(ce[11]=[Q("div",{class:"webphone__footer-label wp:text-[10px] wp:text-primary"},"Powered By",-1),Q("div",{class:"webphone__footer-content wp:flex wp:items-center wp:gap-2"},[Q("a",{href:"https://www.nebula123.com",target:"_blank",class:"webphone__footer-link wp:text-[10px] wp:text-primary wp:hover:underline"}," www.nebula123.com ")],-1)])])):Ne("",!0)],14,gx),D(qC,{visible:T.value,"onUpdate:visible":ce[2]||(ce[2]=ge=>T.value=ge)},null,8,["visible"]),D(tx,{visible:v.value,"onUpdate:visible":ce[3]||(ce[3]=ge=>v.value=ge),contacts:s.contacts,"mask-number":s.maskNumber,onCall:je},null,8,["visible","contacts","mask-number"]),D(fx,{visible:S.value,"onUpdate:visible":ce[4]||(ce[4]=ge=>S.value=ge),contacts:s.contacts,onTransfer:ae},null,8,["visible","contacts"]),D(hx,{ref_key:"documentPipRef",ref:z,active:G.value,"onUpdate:active":ce[5]||(ce[5]=ge=>G.value=ge),"auto-open-on-blur":oe.value,"is-connected":c.isConnected,"remote-number":x.value,"caller-name":b.value,"has-video":O.value??!1,"remote-stream":f(g),"local-stream":f(w),destination:B.value?s.to:void 0,"is-video":s.mode==="video","call-status":c.callStatus,"is-muted":c.isMuted,"is-held":c.isHeld,onTransfer:_t,onTransferRequest:ae,onHangup:Pe,onReject:nt,onAnswer:Ie,onToggleMute:ce[6]||(ce[6]=ge=>f(d).toggleMute()),onToggleHold:ce[7]||(ce[7]=ge=>f(d).toggleHold())},null,8,["active","auto-open-on-blur","is-connected","remote-number","caller-name","has-video","remote-stream","local-stream","destination","is-video","call-status","is-muted","is-held"])],64))}}),kx=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Rx=kx(Ax,[["__scopeId","data-v-1feccefe"]]),Ix=Tl({props:{host:String,wsUrl:String,extension:String,password:String,to:String,mode:{type:String,default:"call"},logo:String,contacts:{type:[String,Array],default:()=>[]},initialKeypadVisible:{type:[Boolean,String],default:!0},enablePictureInPicture:{type:Boolean,default:!0},maskNumber:{type:[Boolean,String],default:!1},earlyMedia:{type:[Boolean,String],default:!1},onAnswer:Function,onHangup:Function,onReject:Function},setup(e){return()=>{let t=e.contacts;if(typeof e.contacts=="string")try{t=JSON.parse(e.contacts)}catch{t=[]}return pr(Rx,{...e,contacts:t,initialKeypadVisible:!(e.initialKeypadVisible===!1||e.initialKeypadVisible==="false"),maskNumber:e.maskNumber===!0||e.maskNumber==="true",earlyMedia:e.earlyMedia===!0||e.earlyMedia==="true"})}}},{shadowRoot:!1});customElements.define("web-phone",Ix)})();
|
|
301
|
+
`,ae},C=G=>{const ae=G.getElementById("pip-actions");if(ae){if(ae.innerHTML="",n.callStatus==="incoming"){if(n.hasVideo){const de=G.createElement("button");de.className="pip-btn pip-btn-video",de.title="Contestar con Video",de.innerHTML=E.video,de.onclick=()=>s("answer",!0),ae.appendChild(de)}const Y=G.createElement("button");Y.className="pip-btn pip-btn-answer",Y.title="Contestar",Y.innerHTML=E.phone,Y.onclick=()=>s("answer",!1),ae.appendChild(Y);const le=G.createElement("button");le.className="pip-btn pip-btn-hangup",le.title="Rechazar",le.innerHTML=E.phoneOff,le.onclick=()=>{s("hangup"),M()},ae.appendChild(le)}else if(n.callStatus==="connected"){const Y=G.createElement("button");Y.className=`pip-btn pip-btn-mute ${n.isMuted?"active":""}`,Y.title=n.isMuted?"Activar micrófono":"Silenciar",Y.innerHTML=n.isMuted?E.micOff:E.mic,Y.onclick=()=>s("toggleMute"),ae.appendChild(Y);const le=G.createElement("button");le.className=`pip-btn pip-btn-hold ${n.isHeld?"active":""}`,le.title=n.isHeld?"Reanudar":"Pausar",le.innerHTML=n.isHeld?E.play:E.pause,le.onclick=()=>s("toggleHold"),ae.appendChild(le);const de=G.createElement("button");de.className="pip-btn pip-btn-transfer",de.title="Transferir",de.innerHTML=E.transfer,de.onclick=()=>s("transfer"),ae.appendChild(de);const Ie=G.createElement("button");Ie.className="pip-btn pip-btn-hangup",Ie.title="Colgar",Ie.innerHTML=E.phoneOff,Ie.onclick=()=>{s("hangup"),M()},ae.appendChild(Ie)}else if(n.callStatus==="calling"){const Y=G.createElement("button");Y.className="pip-btn pip-btn-hangup",Y.title="Cancelar",Y.innerHTML=E.phoneOff,Y.onclick=()=>{s("hangup"),M()},ae.appendChild(Y)}}},S=G=>{setTimeout(()=>{const ae=G.getElementById("pip-remote-video"),Y=G.getElementById("pip-local-video");ae&&n.remoteStream&&(ae.srcObject=n.remoteStream,ae.play().catch(()=>{})),Y&&n.localStream&&(Y.srcObject=n.localStream,Y.play().catch(()=>{}))},50)},x=G=>{const ae=G.getElementById("pip-timer");ae&&(d=setInterval(()=>{ae.textContent=w(u.value)},1e3))},O=()=>{d&&(clearInterval(d),d=null)},R=async()=>{if(!(!i.value||o.value||a.value)){a.value=!0;try{const G=n.hasVideo?340:280,ae=n.hasVideo?280:200,Y=await window.documentPictureInPicture.requestWindow({width:G,height:ae,preferInitialWindowPlacement:!0});l.value=Y,o.value=!0,s("update:active",!0),P(Y.document);const le=q(Y.document);Y.document.body.appendChild(le),n.hasVideo&&S(Y.document),C(Y.document),x(Y.document),Y.addEventListener("pagehide",()=>{O(),o.value=!1,l.value=null,s("update:active",!1)})}catch(G){console.error("[DocumentPip] Error:",G)}finally{a.value=!1}}},M=()=>{O(),l.value&&(l.value.close(),l.value=null,o.value=!1,s("update:active",!1))};return t({open:R,close:M,toggle:()=>{o.value?M():R()},isActive:o,isSupported:i,canUsePip:_}),(G,ae)=>te(G.$slots,"default")}}),Tx=xx,Ex=["data-mode","data-call-status","data-network-status"],Ax={key:0,class:"webphone__video-area wp:relative wp:w-full wp:aspect-video wp:bg-black"},kx={class:"webphone__video-local-frame wp:absolute wp:bottom-2 wp:right-2 wp:w-24 wp:aspect-video wp:bg-neutral-800 wp:rounded wp:overflow-hidden wp:border wp:border-white/20 wp:shadow-lg"},Rx={class:"webphone__body wp:flex wp:flex-col wp:gap-1 wp:space-y-2"},Ix={key:0,class:"webphone__channel-switcher-wrap wp:flex wp:flex-col wp:items-center wp:justify-center wp:py-3 wp:px-4 wp:gap-2"},$x={role:"radiogroup","aria-label":"Canales",class:"webphone__channel-switcher wp:w-full wp:max-w-[330px] wp:flex wp:items-center wp:justify-between wp:gap-1"},Px={class:"wp:flex"},Dx=["aria-checked","disabled","title","data-channel-id","data-state","data-call-state","onClick"],Ox={class:"webphone__display wp:py-1"},Hx=["data-visible"],Mx={key:1,class:"webphone__offline-overlay wp:absolute wp:inset-0 wp:z-40 wp:flex wp:items-center wp:justify-center wp:bg-white/70 wp:dark:bg-neutral-900/70 wp:backdrop-blur-[1px] wp:px-6 wp:text-center"},Nx={key:2,class:"webphone__footer wp:flex wp:flex-col wp:items-center wp:p-2 wp:gap-0"},qx=X({__name:"WebPhone",props:{host:{},wsUrl:{},extension:{},password:{},to:{},mode:{default:"call"},logo:{},contacts:{default:()=>[]},position:{default:()=>({})},initialKeypadVisible:{type:Boolean,default:!0},enablePictureInPicture:{type:Boolean,default:!0},maskNumber:{type:Boolean,default:!1},earlyMedia:{type:Boolean,default:!1},onAnswer:{},onHangup:{},onReject:{}},emits:["back","call-context","call-state","media-ready"],setup(e,{expose:t,emit:r}){const n=new Map,s=e,i=r,o=j(()=>{if(s.wsUrl)return s.wsUrl;if(s.host)return`wss://${s.host}/ws`}),a=j(()=>!o.value||!s.extension?"":`${o.value}::${s.extension}`),l=a.value?n.get(a.value):void 0,u=F0({server:o.value,extension:s.extension,initialConnected:l,initialKeypadVisible:s.initialKeypadVisible}),c=Jr(u),d=xy(u,{onCallContext:Z=>i("call-context",Z),onCallState:Z=>i("call-state",Z),onMediaReady:Z=>i("media-ready",Z)}),{initUserAgent:p,switchChannel:h,remoteStream:m,localStream:y}=d;Yn("webphone",c),Yn("sip",d),t({stop:d.stop}),lt(()=>{s.mode==="webcall"&&(s.to||console.error('WebPhone: "to" prop is required when mode is "webcall"'),s.logo||console.error('WebPhone: "logo" prop is required when mode is "webcall"'))});const T=V(!1),g=V(!1),b=V(!1),w=V(null),_=V(null),E=V(null),P=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl+",B=j(()=>s.mode==="webcall"),v=V(0),N=Z=>!!Z&&Z.getVideoTracks().length>0;He(()=>c.callStatus,Z=>{if(Z==="idle"&&!c.isKeypadVisible){c.toggleKeypad();return}Z!=="idle"&&c.isKeypadVisible&&c.toggleKeypad()});const q=j(()=>c.channels.find(Z=>Z.id===c.activeChannelId)??null),C=Z=>{if(!Z)return"";const ue=Z.trim(),ge=ue.startsWith("+"),dt=ue.replace(/[^\d]/g,"");return ge?`+${dt}`:dt},S=j(()=>{const Z=q.value?.remoteNumber||c.remoteNumber,ue=C(Z),ge=s.contacts.find(dt=>C(dt.number)===ue);return ge?.name?ge.name:s.maskNumber&&Z?cn(Z):Z||"Llamada"}),x=j(()=>{const Z=q.value?.remoteNumber||c.remoteNumber;return s.maskNumber?cn(Z):Z}),O=j(()=>(v.value,!!q.value?.hasVideo||N(m.value)||N(y.value))),{isOnline:R}=ub(),M=j(()=>!R.value),z=V(null),G=V(!1),ae=j(()=>s.enablePictureInPicture),Y=()=>{ae.value&&z.value?.toggle()},le=async(Z,ue)=>{try{ue==="blind"?await d.transferCall(Z):await d.startAttendedTransfer(Z)}catch(ge){console.error("[WebPhone] Transfer error:",ge),alert(ge instanceof Error?ge.message:"Transfer failed. Please try again.")}},de=async()=>{try{await d.completeAttendedTransfer()}catch(Z){console.error("[WebPhone] Complete transfer error:",Z),alert(Z instanceof Error?Z.message:"Failed to complete transfer.")}},Ie=async()=>{try{await d.cancelAttendedTransfer()}catch(Z){console.error("[WebPhone] Cancel transfer error:",Z),alert(Z instanceof Error?Z.message:"Failed to cancel transfer.")}},je=Z=>{c.keypadValue=Z,d.makeCall(Z)},$e=Z=>{if(s.onAnswer){s.onAnswer(Z);return}d.answerCall(Z)},Oe=async()=>{await d.hangupCall(),await s.onHangup?.()},nt=()=>{if(s.onReject){s.onReject();return}d.hangupCall()},_t=()=>{b.value=!0,z.value?.close(),window.focus()},Be=()=>{if(!ae.value)return!1;const Z=c.callStatus!=="idle",ue=document.hidden||!document.hasFocus();return Z&&ue&&!G.value},st=()=>{window.setTimeout(()=>{Be()&&z.value?.open()},150)};lt(()=>{_.value&&(G.value||!m.value?_.value.srcObject=null:_.value.srcObject=m.value),E.value&&(G.value||!y.value?E.value.srcObject=null:E.value.srcObject=y.value)});const ht=Z=>{if(!Z||typeof Z.addEventListener!="function"||typeof Z.removeEventListener!="function")return()=>{};const ue=()=>{v.value+=1};return Z.addEventListener("addtrack",ue),Z.addEventListener("removetrack",ue),()=>{Z.removeEventListener("addtrack",ue),Z.removeEventListener("removetrack",ue)}};He(m,(Z,ue,ge)=>{v.value+=1,ge(ht(Z))},{immediate:!0}),He(y,(Z,ue,ge)=>{v.value+=1,ge(ht(Z))},{immediate:!0});const wt=["button","a","input","textarea","select","label","video",'[role="button"]','[role="radio"]',"[data-no-drag]"].join(", "),A=()=>{const Z=window.innerWidth<640,ue=window.innerWidth<1024;let ge=360;return Z?ge=window.innerWidth*.9:ue&&(ge=340),{x:Math.max(0,(window.innerWidth-ge)/2),y:Z?30:80}},{x:D,y:J,style:oe}=cb(w,{initialValue:j(()=>{const Z=A();return{x:s.position.x??Z.x,y:s.position.y??Z.y}}).value,preventDefault:!0,onStart:(Z,ue)=>{const ge=ue.target;if(ge instanceof HTMLElement&&ge.closest(wt))return!1}});He(()=>s.position,Z=>{const ue=A();D.value=Z.x??ue.x,J.value=Z.y??ue.y},{deep:!0});const re=[{label:"Canal 1",value:0},{label:"Canal 2",value:1},{label:"Canal 3",value:2}],ee=V(!1),pe=j({get:()=>c.activeChannelId.toString(),set:async Z=>{if(!M.value&&Z&&!ee.value){ee.value=!0;try{await h(parseInt(Z))}finally{ee.value=!1}}}}),fe=Z=>{const ue=c.channels.find(ge=>ge.id===Z);return ue?ue.status==="connected"||ue.status==="calling"||ue.status==="incoming":!1},ce=Z=>{const ue=c.channels.find(ge=>ge.id===Z);return ue?ue.isHeld||ue.status==="held":!1},se=Z=>{M.value||(pe.value=Z.toString())},Ae=Z=>{if(!M.value&&((Z.metaKey||Z.ctrlKey)&&Z.key.toLowerCase()==="h"&&(Z.preventDefault(),g.value=!0),(Z.metaKey||Z.ctrlKey)&&Z.key===","&&(Z.preventDefault(),T.value=!0),(Z.metaKey||Z.ctrlKey)&&Z.key.toLowerCase()==="k"&&(Z.preventDefault(),c.toggleKeypad()),(Z.metaKey||Z.ctrlKey)&&["1","2","3"].includes(Z.key))){Z.preventDefault();const ue=parseInt(Z.key)-1;ee.value||(ee.value=!0,h(ue).finally(()=>{ee.value=!1}))}};He(()=>c.callStatus,()=>{Be()&&st()}),He(()=>c.isConnected,Z=>{a.value&&n.set(a.value,Z)},{immediate:!0}),He(ae,Z=>{!Z&&G.value&&z.value?.close()});const he=V(!1),Te=async()=>{he.value||M.value||!s.host||!s.extension||!s.password||(await p({uri:`sip:${s.extension}@${s.host}`,transportOptions:{server:o.value},authorizationUsername:s.extension,authorizationPassword:s.password,earlyMedia:s.earlyMedia}),d.extension.value&&(he.value=!0,s.mode==="webcall"&&s.to&&d.makeCall(s.to)))},Me=()=>Te(),Ve=async()=>{await d.stop(),he.value=!1};return Yn("webphoneRegistration",{isConnected:j(()=>c.isConnected),register:Me,unregister:Ve}),Qe(async()=>{window.addEventListener("keydown",Ae),document.addEventListener("visibilitychange",st),window.addEventListener("blur",st),window.addEventListener("pagehide",st),!(s.mode==="webcall"&&(!s.to||!s.logo))&&await Te()}),He(()=>R.value,async Z=>{Z&&await Te()}),jt(()=>{d.stop(),window.removeEventListener("keydown",Ae),document.removeEventListener("visibilitychange",st),window.removeEventListener("blur",st),window.removeEventListener("pagehide",st)}),(Z,ue)=>(I(),Se(Ke,null,[Q("div",{ref_key:"phoneRef",ref:w,style:xt(f(oe)),class:Xe(["webphone webphone-container wp:bg-white wp:dark:bg-neutral-800 wp:rounded-lg wp:shadow-sm wp:inset-shadow-2xs wp:w-[min(92vw,330px)] wp:fixed wp:z-50 wp:select-none wp:[&_button]:cursor-pointer wp:**:[[role=button]]:cursor-pointer",M.value?"wp:opacity-70":""]),"data-mode":s.mode,"data-call-status":c.callStatus,"data-network-status":M.value?"offline":"online"},[O.value&&!G.value?(I(),Se("div",Ax,[Q("video",{ref_key:"remoteVideoRef",ref:_,autoplay:"",playsinline:"",class:"webphone__video-remote wp:w-full wp:h-full wp:object-cover"},null,512),Q("div",kx,[Q("video",{ref_key:"localVideoRef",ref:E,autoplay:"",playsinline:"",muted:"",class:"webphone__video-local wp:w-full wp:h-full wp:object-cover"},null,512)])])):qe("",!0),Q("div",Rx,[B.value?qe("",!0):(I(),Se("div",Ix,[Q("div",$x,[Q("div",Px,[(I(),Se(Ke,null,hr(re,ge=>Q("button",{key:ge.value,type:"button",role:"radio","aria-checked":pe.value===ge.value.toString(),disabled:M.value,title:`${ge.label} (${f(P)}${ge.value+1})`,class:Xe(["webphone__channel-button wp:flex wp:items-center wp:gap-1 wp:px-2 wp:py-2 wp:rounded-lg wp:transition-colors wp:duration-200 wp:outline-none wp:focus-visible:ring-2 wp:focus-visible:ring-[var(--p-primary-color)] wp:focus-visible:ring-offset-2 wp:focus-visible:ring-offset-white wp:dark:focus-visible:ring-offset-neutral-900",ce(ge.value)?"wp:bg-status-hold/12 hover:wp:bg-status-hold/18":fe(ge.value)?"wp:bg-[var(--color-red)]/12 hover:wp:bg-[var(--color-red)]/18":pe.value===ge.value.toString()?"wp:bg-[var(--p-primary-color)]/12":"wp:hover:bg-neutral-100 wp:dark:hover:bg-neutral-800/80"]),"data-channel-id":ge.value,"data-state":pe.value===ge.value.toString()?"active":"idle","data-call-state":ce(ge.value)?"held":fe(ge.value)?"busy":"available",onClick:dt=>se(ge.value)},[$(f(zc),{class:Xe(["webphone__channel-icon wp:size-3 wp:shrink-0",ce(ge.value)?"wp:text-status-hold":fe(ge.value)?"wp:text-[var(--color-red)]":pe.value===ge.value.toString()?"wp:text-[var(--p-primary-color)]":"wp:text-neutral-400"]),"stroke-width":1.8},null,8,["class"]),Q("span",{class:Xe(["webphone__channel-label wp:text-[11px] wp:leading-none manrope wp:font-bold",ce(ge.value)?"wp:text-status-hold":fe(ge.value)?"wp:text-[var(--color-red)]":pe.value===ge.value.toString()?"wp:text-[var(--p-primary-color)]":"wp:text-neutral-500 wp:dark:text-neutral-400"])},Le(ge.label),3)],10,Dx)),64))]),$(f(Vi),null,{default:k(()=>[$(f(Ks),null,{default:k(()=>[$(f(Gs),{"as-child":""},{default:k(()=>[$(f(pt),{variant:"ghost",size:"icon",class:Xe(["wp:h-8 wp:w-8 wp:rounded-full",G.value?"wp:text-primary":""]),title:"Picture-in-Picture",onClick:Y},{default:k(()=>[$(f(V_),{class:"wp:w-4 wp:h-4 wp:text-[var(--color-settings)]"})]),_:1},8,["class"])]),_:1}),$(f(Ws),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[...ue[8]||(ue[8]=[Q("span",null,"Picture-in-Picture",-1)])]),_:1})]),_:1})]),_:1}),$(f(Vi),null,{default:k(()=>[$(f(Ks),null,{default:k(()=>[$(f(Gs),{"as-child":""},{default:k(()=>[$(f(pt),{variant:"ghost",size:"icon",class:"wp:h-8 wp:w-8 wp:rounded-full",onClick:ue[0]||(ue[0]=ge=>T.value=!0)},{default:k(()=>[$(f(z_),{class:"wp:w-4 wp:h-4 wp:text-[var(--color-settings)]"})]),_:1})]),_:1}),$(f(Ws),{class:"wp:flex wp:items-center wp:gap-2"},{default:k(()=>[ue[9]||(ue[9]=Q("span",null,"Configuración",-1)),$(f(vn),null,{default:k(()=>[Ne(Le(f(P))+",",1)]),_:1})]),_:1})]),_:1})]),_:1})])])),Q("div",Ox,[(I(!0),Se(Ke,null,hr(c.channels,ge=>po((I(),K(ZS,{key:ge.id,"channel-id":ge.id,"allow-input":!B.value,"is-web-call":B.value,"is-online":f(R),contacts:s.contacts,user:s.extension,"mask-number":s.maskNumber},null,8,["channel-id","allow-input","is-web-call","is-online","contacts","user","mask-number"])),[[Oo,ge.id===c.activeChannelId]])),128))]),Q("div",{class:Xe(["webphone__keypad wp:transition-all wp:duration-300 wp:ease-in-out wp:overflow-hidden",c.isKeypadVisible&&c.callStatus==="idle"?"wp:max-h-[300px] wp:opacity-100 wp:pb-0":"wp:max-h-0 wp:opacity-0 wp:pb-0"]),"data-visible":c.isKeypadVisible&&c.callStatus==="idle"?"true":"false"},[$(Nc)],10,Hx),$(SS,{class:"webphone__actions",style:xt(M.value?"pointer-events: none;":void 0),destination:B.value?s.to:void 0,"is-video":s.mode==="video","on-answer":s.onAnswer,"on-hangup":s.onHangup,"on-reject":s.onReject,onTransfer:ue[1]||(ue[1]=ge=>b.value=!0),onCompleteTransfer:de,onCancelTransfer:Ie},null,8,["style","destination","is-video","on-answer","on-hangup","on-reject"])]),M.value?(I(),Se("div",Mx,[...ue[10]||(ue[10]=[Q("span",{class:"wp:text-sm wp:font-semibold wp:text-status-disconnected"},"Sin internet",-1)])])):qe("",!0),B.value?(I(),Se("div",Nx,[...ue[11]||(ue[11]=[Q("div",{class:"webphone__footer-label wp:text-[10px] wp:text-primary"},"Powered By",-1),Q("div",{class:"webphone__footer-content wp:flex wp:items-center wp:gap-2"},[Q("a",{href:"https://www.nebula123.com",target:"_blank",class:"webphone__footer-link wp:text-[10px] wp:text-primary wp:hover:underline"}," www.nebula123.com ")],-1)])])):qe("",!0)],14,Ex),$(KC,{visible:T.value,"onUpdate:visible":ue[2]||(ue[2]=ge=>T.value=ge)},null,8,["visible"]),$(fx,{visible:g.value,"onUpdate:visible":ue[3]||(ue[3]=ge=>g.value=ge),contacts:s.contacts,"mask-number":s.maskNumber,onCall:je},null,8,["visible","contacts","mask-number"]),$(Cx,{visible:b.value,"onUpdate:visible":ue[4]||(ue[4]=ge=>b.value=ge),contacts:s.contacts,onTransfer:le},null,8,["visible","contacts"]),$(Tx,{ref_key:"documentPipRef",ref:z,active:G.value,"onUpdate:active":ue[5]||(ue[5]=ge=>G.value=ge),"auto-open-on-blur":ae.value,"is-connected":c.isConnected,"remote-number":x.value,"caller-name":S.value,"has-video":O.value??!1,"remote-stream":f(m),"local-stream":f(y),destination:B.value?s.to:void 0,"is-video":s.mode==="video","call-status":c.callStatus,"is-muted":c.isMuted,"is-held":c.isHeld,onTransfer:_t,onTransferRequest:le,onHangup:Oe,onReject:nt,onAnswer:$e,onToggleMute:ue[6]||(ue[6]=ge=>f(d).toggleMute()),onToggleHold:ue[7]||(ue[7]=ge=>f(d).toggleHold())},null,8,["active","auto-open-on-blur","is-connected","remote-number","caller-name","has-video","remote-stream","local-stream","destination","is-video","call-status","is-muted","is-held"])],64))}}),Bx=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Lx=Bx(qx,[["__scopeId","data-v-1feccefe"]]),Fx=kl({props:{host:String,wsUrl:String,extension:String,password:String,to:String,mode:{type:String,default:"call"},logo:String,contacts:{type:[String,Array],default:()=>[]},initialKeypadVisible:{type:[Boolean,String],default:!0},enablePictureInPicture:{type:Boolean,default:!0},maskNumber:{type:[Boolean,String],default:!1},earlyMedia:{type:[Boolean,String],default:!1},onAnswer:Function,onHangup:Function,onReject:Function},setup(e){return()=>{let t=e.contacts;if(typeof e.contacts=="string")try{t=JSON.parse(e.contacts)}catch{t=[]}return gr(Lx,{...e,contacts:t,initialKeypadVisible:!(e.initialKeypadVisible===!1||e.initialKeypadVisible==="false"),maskNumber:e.maskNumber===!0||e.maskNumber==="true",earlyMedia:e.earlyMedia===!0||e.earlyMedia==="true"})}}},{shadowRoot:!1});customElements.define("web-phone",Fx)})();
|