@orbit-software/sdk 1.92.1 → 1.92.2
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/.claude/settings.local.json +3 -1
- package/dist/esm/sdk.mjs +8 -8
- package/dist/esm/sdk.umd.js +6 -6
- package/dist/stats-esm.html +1 -1
- package/dist/stats-umd-react.html +1 -1
- package/dist/stats-umd.html +1 -1
- package/dist/umd/sdk.umd.js +6 -6
- package/dist/umd_react/sdk_react.umd.js +6 -6
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`/*! tailwindcss v4.0.0 | MIT License | https://tailwindcss.com */:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-serif:ui-serif,Georgia,Cambria,"Times New Roman",Times,serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(.971 .013 17.38);--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-300:oklch(.808 .114 19.571);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-red-800:oklch(.444 .177 26.899);--color-red-900:oklch(.396 .141 25.723);--color-red-950:oklch(.258 .092 26.042);--color-orange-50:oklch(.98 .016 73.684);--color-orange-100:oklch(.954 .038 75.164);--color-orange-200:oklch(.901 .076 70.697);--color-orange-300:oklch(.837 .128 66.29);--color-orange-400:oklch(.75 .183 55.934);--color-orange-500:oklch(.705 .213 47.604);--color-orange-600:oklch(.646 .222 41.116);--color-orange-700:oklch(.553 .195 38.402);--color-orange-800:oklch(.47 .157 37.304);--color-orange-900:oklch(.408 .123 38.172);--color-orange-950:oklch(.266 .079 36.259);--color-amber-50:oklch(.987 .022 95.277);--color-amber-100:oklch(.962 .059 95.617);--color-amber-200:oklch(.924 .12 95.746);--color-amber-300:oklch(.879 .169 91.605);--color-amber-400:oklch(.828 .189 84.429);--color-amber-500:oklch(.769 .188 70.08);--color-amber-600:oklch(.666 .179 58.318);--color-amber-700:oklch(.555 .163 48.998);--color-amber-800:oklch(.473 .137 46.201);--color-amber-900:oklch(.414 .112 45.904);--color-amber-950:oklch(.279 .077 45.635);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-100:oklch(.973 .071 103.193);--color-yellow-200:oklch(.945 .129 101.54);--color-yellow-300:oklch(.905 .182 98.111);--color-yellow-400:oklch(.852 .199 91.936);--color-yellow-500:oklch(.795 .184 86.047);--color-yellow-600:oklch(.681 .162 75.834);--color-yellow-700:oklch(.554 .135 66.442);--color-yellow-800:oklch(.476 .114 61.907);--color-yellow-900:oklch(.421 .095 57.708);--color-yellow-950:oklch(.286 .066 53.813);--color-lime-50:oklch(.986 .031 120.757);--color-lime-100:oklch(.967 .067 122.328);--color-lime-200:oklch(.938 .127 124.321);--color-lime-300:oklch(.897 .196 126.665);--color-lime-400:oklch(.841 .238 128.85);--color-lime-500:oklch(.768 .233 130.85);--color-lime-600:oklch(.648 .2 131.684);--color-lime-700:oklch(.532 .157 131.589);--color-lime-800:oklch(.453 .124 130.933);--color-lime-900:oklch(.405 .101 131.063);--color-lime-950:oklch(.274 .072 132.109);--color-green-50:oklch(.982 .018 155.826);--color-green-100:oklch(.962 .044 156.743);--color-green-200:oklch(.925 .084 155.995);--color-green-300:oklch(.871 .15 154.449);--color-green-400:oklch(.792 .209 151.711);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-green-800:oklch(.448 .119 151.328);--color-green-900:oklch(.393 .095 152.535);--color-green-950:oklch(.266 .065 152.934);--color-emerald-50:oklch(.979 .021 166.113);--color-emerald-100:oklch(.95 .052 163.051);--color-emerald-200:oklch(.905 .093 164.15);--color-emerald-300:oklch(.845 .143 164.978);--color-emerald-400:oklch(.765 .177 163.223);--color-emerald-500:oklch(.696 .17 162.48);--color-emerald-600:oklch(.596 .145 163.225);--color-emerald-700:oklch(.508 .118 165.612);--color-emerald-800:oklch(.432 .095 166.913);--color-emerald-900:oklch(.378 .077 168.94);--color-emerald-950:oklch(.262 .051 172.552);--color-teal-50:oklch(.984 .014 180.72);--color-teal-100:oklch(.953 .051 180.801);--color-teal-200:oklch(.91 .096 180.426);--color-teal-300:oklch(.855 .138 181.071);--color-teal-400:oklch(.777 .152 181.912);--color-teal-500:oklch(.704 .14 182.503);--color-teal-600:oklch(.6 .118 184.704);--color-teal-700:oklch(.511 .096 186.391);--color-teal-800:oklch(.437 .078 188.216);--color-teal-900:oklch(.386 .063 188.416);--color-teal-950:oklch(.277 .046 192.524);--color-cyan-50:oklch(.984 .019 200.873);--color-cyan-100:oklch(.956 .045 203.388);--color-cyan-200:oklch(.917 .08 205.041);--color-cyan-300:oklch(.865 .127 207.078);--color-cyan-400:oklch(.789 .154 211.53);--color-cyan-500:oklch(.715 .143 215.221);--color-cyan-600:oklch(.609 .126 221.723);--color-cyan-700:oklch(.52 .105 223.128);--color-cyan-800:oklch(.45 .085 224.283);--color-cyan-900:oklch(.398 .07 227.392);--color-cyan-950:oklch(.302 .056 229.695);--color-sky-50:oklch(.977 .013 236.62);--color-sky-100:oklch(.951 .026 236.824);--color-sky-200:oklch(.901 .058 230.902);--color-sky-300:oklch(.828 .111 230.318);--color-sky-400:oklch(.746 .16 232.661);--color-sky-500:oklch(.685 .169 237.323);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-sky-950:oklch(.293 .066 243.157);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-indigo-50:oklch(.962 .018 272.314);--color-indigo-100:oklch(.93 .034 272.788);--color-indigo-200:oklch(.87 .065 274.039);--color-indigo-300:oklch(.785 .115 274.713);--color-indigo-400:oklch(.673 .182 276.935);--color-indigo-500:oklch(.585 .233 277.117);--color-indigo-600:oklch(.511 .262 276.966);--color-indigo-700:oklch(.457 .24 277.023);--color-indigo-800:oklch(.398 .195 277.366);--color-indigo-900:oklch(.359 .144 278.697);--color-indigo-950:oklch(.257 .09 281.288);--color-violet-50:oklch(.969 .016 293.756);--color-violet-100:oklch(.943 .029 294.588);--color-violet-200:oklch(.894 .057 293.283);--color-violet-300:oklch(.811 .111 293.571);--color-violet-400:oklch(.702 .183 293.541);--color-violet-500:oklch(.606 .25 292.717);--color-violet-600:oklch(.541 .281 293.009);--color-violet-700:oklch(.491 .27 292.581);--color-violet-800:oklch(.432 .232 292.759);--color-violet-900:oklch(.38 .189 293.745);--color-violet-950:oklch(.283 .141 291.089);--color-purple-50:oklch(.977 .014 308.299);--color-purple-100:oklch(.946 .033 307.174);--color-purple-200:oklch(.902 .063 306.703);--color-purple-300:oklch(.827 .119 306.383);--color-purple-400:oklch(.714 .203 305.504);--color-purple-500:oklch(.627 .265 303.9);--color-purple-600:oklch(.558 .288 302.321);--color-purple-700:oklch(.496 .265 301.924);--color-purple-800:oklch(.438 .218 303.724);--color-purple-900:oklch(.381 .176 304.987);--color-purple-950:oklch(.291 .149 302.717);--color-fuchsia-50:oklch(.977 .017 320.058);--color-fuchsia-100:oklch(.952 .037 318.852);--color-fuchsia-200:oklch(.903 .076 319.62);--color-fuchsia-300:oklch(.833 .145 321.434);--color-fuchsia-400:oklch(.74 .238 322.16);--color-fuchsia-500:oklch(.667 .295 322.15);--color-fuchsia-600:oklch(.591 .293 322.896);--color-fuchsia-700:oklch(.518 .253 323.949);--color-fuchsia-800:oklch(.452 .211 324.591);--color-fuchsia-900:oklch(.401 .17 325.612);--color-fuchsia-950:oklch(.293 .136 325.661);--color-pink-50:oklch(.971 .014 343.198);--color-pink-100:oklch(.948 .028 342.258);--color-pink-200:oklch(.899 .061 343.231);--color-pink-300:oklch(.823 .12 346.018);--color-pink-400:oklch(.718 .202 349.761);--color-pink-500:oklch(.656 .241 354.308);--color-pink-600:oklch(.592 .249 .584);--color-pink-700:oklch(.525 .223 3.958);--color-pink-800:oklch(.459 .187 3.815);--color-pink-900:oklch(.408 .153 2.432);--color-pink-950:oklch(.284 .109 3.907);--color-rose-50:oklch(.969 .015 12.422);--color-rose-100:oklch(.941 .03 12.58);--color-rose-200:oklch(.892 .058 10.001);--color-rose-300:oklch(.81 .117 11.638);--color-rose-400:oklch(.712 .194 13.428);--color-rose-500:oklch(.645 .246 16.439);--color-rose-600:oklch(.586 .253 17.585);--color-rose-700:oklch(.514 .222 16.935);--color-rose-800:oklch(.455 .188 13.697);--color-rose-900:oklch(.41 .159 10.272);--color-rose-950:oklch(.271 .105 12.094);--color-slate-50:oklch(.984 .003 247.858);--color-slate-100:oklch(.968 .007 247.896);--color-slate-200:oklch(.929 .013 255.508);--color-slate-300:oklch(.869 .022 252.894);--color-slate-400:oklch(.704 .04 256.788);--color-slate-500:oklch(.554 .046 257.417);--color-slate-600:oklch(.446 .043 257.281);--color-slate-700:oklch(.372 .044 257.287);--color-slate-800:oklch(.279 .041 260.031);--color-slate-900:oklch(.208 .042 265.755);--color-slate-950:oklch(.129 .042 264.695);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-gray-950:oklch(.13 .028 261.692);--color-zinc-50:oklch(.985 0 0);--color-zinc-100:oklch(.967 .001 286.375);--color-zinc-200:oklch(.92 .004 286.32);--color-zinc-300:oklch(.871 .006 286.286);--color-zinc-400:oklch(.705 .015 286.067);--color-zinc-500:oklch(.552 .016 285.938);--color-zinc-600:oklch(.442 .017 285.786);--color-zinc-700:oklch(.37 .013 285.805);--color-zinc-800:oklch(.274 .006 286.033);--color-zinc-900:oklch(.21 .006 285.885);--color-zinc-950:oklch(.141 .005 285.823);--color-neutral-50:oklch(.985 0 0);--color-neutral-100:oklch(.97 0 0);--color-neutral-200:oklch(.922 0 0);--color-neutral-300:oklch(.87 0 0);--color-neutral-400:oklch(.708 0 0);--color-neutral-500:oklch(.556 0 0);--color-neutral-600:oklch(.439 0 0);--color-neutral-700:oklch(.371 0 0);--color-neutral-800:oklch(.269 0 0);--color-neutral-900:oklch(.205 0 0);--color-neutral-950:oklch(.145 0 0);--color-stone-50:oklch(.985 .001 106.423);--color-stone-100:oklch(.97 .001 106.424);--color-stone-200:oklch(.923 .003 48.717);--color-stone-300:oklch(.869 .005 56.366);--color-stone-400:oklch(.709 .01 56.259);--color-stone-500:oklch(.553 .013 58.071);--color-stone-600:oklch(.444 .011 73.639);--color-stone-700:oklch(.374 .01 67.558);--color-stone-800:oklch(.268 .007 34.298);--color-stone-900:oklch(.216 .006 56.043);--color-stone-950:oklch(.147 .004 49.25);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--leading-loose:2;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--inset-shadow-2xs:inset 0 1px #0000000d;--inset-shadow-xs:inset 0 1px 1px #0000000d;--inset-shadow-sm:inset 0 2px 4px #0000000d;--drop-shadow-xs:0 1px 1px #0000000d;--drop-shadow-sm:0 1px 2px #00000026;--drop-shadow-md:0 3px 3px #0000001f;--drop-shadow-lg:0 4px 4px #00000026;--drop-shadow-xl:0 9px 7px #0000001a;--drop-shadow-2xl:0 25px 25px #00000026;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--perspective-dramatic:100px;--perspective-near:300px;--perspective-normal:500px;--perspective-midrange:800px;--perspective-distant:1200px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings);--spacing-safe-area-inset-bottom:max(var(--tg-safe-area-inset-bottom),16px);--spacing-tg-safe-area-inset-bottom:var(--tg-safe-area-inset-bottom);--color-primary:var(--tg-theme-button-color);--color-text:var(--tg-theme-text-color);--color-link:var(--tg-theme-link-color);--color-hint:var(--tg-theme-hint-color);--color-background:var(--tg-theme-bg-color);--color-border:#00000026;--color-button:var(--tg-theme-button-color);--color-button-foreground:var(--tgui--button_text_color);--color-secondary-bg-color:var(--tg-theme-secondary-bg-color);--color-section-bg-color:var(--tg-theme-section-bg-color);--color-section-header-text-color:var(--tg-theme-section-header-text-color);--color-destructive-text-color:var(--tg-theme-destructive-text-color);--color-secondary-fill:var(--tgui--secondary_fill);--color-tgui-bg:var(--tgui--bg_color);--color-tgui-secondary-bg:var(--tgui--secondary_bg_color);--color-tgui-section-bg:var(--tgui--section_bg_color);--color-tgui-surface-primary:var(--tgui--surface_primary);--color-tgui-text:var(--tgui--text_color);--color-tgui-subtitle-text:var(--tgui--subtitle_text_color);--color-tgui-link:var(--tgui--link_color);--color-tgui-hint:var(--tgui--hint_color);--color-custom-green:#1ec948;--font-headline:-apple-system-headline,BlinkMacSystemFont,sans-serif;--shadow-top-divider:0 calc(var(--retina-separator-width,1px)*-1)0 var(--tgui--divider);--shadow-card:0 5px 6px 0 #0000000f,0 0 2px 1px #00000005}#overlay-root *,#overlay-root :after,#overlay-root :before,::backdrop{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,#overlay-root :host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--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(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}#overlay-root hr{height:0;color:inherit;border-top-width:1px}#overlay-root abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#overlay-root h1,#overlay-root h2,#overlay-root h3,#overlay-root h4,#overlay-root h5,#overlay-root h6{font-size:inherit;font-weight:inherit}#overlay-root a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}#overlay-root b,#overlay-root strong{font-weight:bolder}#overlay-root code,#overlay-root kbd,#overlay-root samp,#overlay-root pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}#overlay-root small{font-size:80%}#overlay-root sub,#overlay-root sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}#overlay-root sub{bottom:-.25em}#overlay-root sup{top:-.5em}#overlay-root table{text-indent:0;border-color:inherit;border-collapse:collapse}#overlay-root :-moz-focusring{outline:auto}#overlay-root progress{vertical-align:baseline}#overlay-root summary{display:list-item}#overlay-root ol,#overlay-root ul,#overlay-root menu{list-style:none}#overlay-root img,#overlay-root svg,#overlay-root video,#overlay-root canvas,#overlay-root audio,#overlay-root iframe,#overlay-root embed,#overlay-root object{vertical-align:middle;display:block}#overlay-root img,#overlay-root video{max-width:100%;height:auto}#overlay-root button,#overlay-root input,#overlay-root select,#overlay-root optgroup,#overlay-root textarea{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}#overlay-root :where(select:is([multiple],[size])) optgroup{font-weight:bolder}#overlay-root :where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1;color:color-mix(in oklab,currentColor 50%,transparent)}#overlay-root 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:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}#overlay-root :-moz-ui-invalid{box-shadow:none}#overlay-root button,#overlay-root input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}#overlay-root [hidden]:where(:not([hidden=until-found])){display:none!important}#overlay-root .pointer-events-auto{pointer-events:auto}#overlay-root .pointer-events-none{pointer-events:none}#overlay-root .collapse{visibility:collapse}#overlay-root .invisible{visibility:hidden}#overlay-root .visible{visibility:visible}#overlay-root .sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}#overlay-root .not-sr-only{clip:auto;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}#overlay-root .absolute{position:absolute}#overlay-root .fixed{position:fixed}#overlay-root .relative{position:relative}#overlay-root .static{position:static}#overlay-root .sticky{position:sticky}#overlay-root .-inset-1{inset:calc(var(--spacing)*-1)}#overlay-root .inset-0{inset:calc(var(--spacing)*0)}#overlay-root .top-1\\/2{top:50%}#overlay-root .top-3{top:calc(var(--spacing)*3)}#overlay-root .top-17{top:calc(var(--spacing)*17)}#overlay-root .-right-4{right:calc(var(--spacing)*-4)}#overlay-root .-right-8{right:calc(var(--spacing)*-8)}#overlay-root .right-0{right:calc(var(--spacing)*0)}#overlay-root .right-2{right:calc(var(--spacing)*2)}#overlay-root .right-6{right:calc(var(--spacing)*6)}#overlay-root .-bottom-2{bottom:calc(var(--spacing)*-2)}#overlay-root .-bottom-15{bottom:calc(var(--spacing)*-15)}#overlay-root .bottom-0{bottom:calc(var(--spacing)*0)}#overlay-root .bottom-1{bottom:calc(var(--spacing)*1)}#overlay-root .bottom-2{bottom:calc(var(--spacing)*2)}#overlay-root .bottom-3{bottom:calc(var(--spacing)*3)}#overlay-root .bottom-4{bottom:calc(var(--spacing)*4)}#overlay-root .bottom-6{bottom:calc(var(--spacing)*6)}#overlay-root .bottom-7{bottom:calc(var(--spacing)*7)}#overlay-root .bottom-8{bottom:calc(var(--spacing)*8)}#overlay-root .bottom-10{bottom:calc(var(--spacing)*10)}#overlay-root .bottom-11{bottom:calc(var(--spacing)*11)}#overlay-root .bottom-12{bottom:calc(var(--spacing)*12)}#overlay-root .bottom-13{bottom:calc(var(--spacing)*13)}#overlay-root .-left-3{left:calc(var(--spacing)*-3)}#overlay-root .-left-6{left:calc(var(--spacing)*-6)}#overlay-root .left-0{left:calc(var(--spacing)*0)}#overlay-root .left-1\\/2{left:50%}#overlay-root .left-2{left:calc(var(--spacing)*2)}#overlay-root .left-4{left:calc(var(--spacing)*4)}#overlay-root .left-7{left:calc(var(--spacing)*7)}#overlay-root .left-8{left:calc(var(--spacing)*8)}#overlay-root .left-10{left:calc(var(--spacing)*10)}#overlay-root .isolate{isolation:isolate}#overlay-root .isolation-auto{isolation:auto}#overlay-root .z-0{z-index:0}#overlay-root .z-1{z-index:1}#overlay-root .z-10{z-index:10}#overlay-root .z-\\[-1\\]{z-index:-1}#overlay-root .z-\\[-2\\]{z-index:-2}#overlay-root .order-123{order:123}#overlay-root .\\!container{width:100%!important}@media (width>=40rem){#overlay-root .\\!container{max-width:40rem!important}}@media (width>=48rem){#overlay-root .\\!container{max-width:48rem!important}}@media (width>=64rem){#overlay-root .\\!container{max-width:64rem!important}}@media (width>=80rem){#overlay-root .\\!container{max-width:80rem!important}}@media (width>=96rem){#overlay-root .\\!container{max-width:96rem!important}}#overlay-root .container{width:100%}@media (width>=40rem){#overlay-root .container{max-width:40rem}}@media (width>=48rem){#overlay-root .container{max-width:48rem}}@media (width>=64rem){#overlay-root .container{max-width:64rem}}@media (width>=80rem){#overlay-root .container{max-width:80rem}}@media (width>=96rem){#overlay-root .container{max-width:96rem}}#overlay-root .mx-auto{margin-inline:auto}#overlay-root .-mt-1\\.5{margin-top:calc(var(--spacing)*-1.5)}#overlay-root .mt-0\\.5{margin-top:calc(var(--spacing)*.5)}#overlay-root .mt-5{margin-top:calc(var(--spacing)*5)}#overlay-root .mb-2{margin-bottom:calc(var(--spacing)*2)}#overlay-root .-ml-3{margin-left:calc(var(--spacing)*-3)}#overlay-root .block{display:block}#overlay-root .contents{display:contents}#overlay-root .flex{display:flex}#overlay-root .flow-root{display:flow-root}#overlay-root .grid{display:grid}#overlay-root .hidden{display:none}#overlay-root .inline{display:inline}#overlay-root .inline-block{display:inline-block}#overlay-root .inline-flex{display:inline-flex}#overlay-root .inline-grid{display:inline-grid}#overlay-root .inline-table{display:inline-table}#overlay-root .list-item{display:list-item}#overlay-root .table{display:table}#overlay-root .table-caption{display:table-caption}#overlay-root .table-cell{display:table-cell}#overlay-root .table-column{display:table-column}#overlay-root .table-column-group{display:table-column-group}#overlay-root .table-footer-group{display:table-footer-group}#overlay-root .table-header-group{display:table-header-group}#overlay-root .table-row{display:table-row}#overlay-root .table-row-group{display:table-row-group}#overlay-root .aspect-square{aspect-ratio:1}#overlay-root .size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}#overlay-root .size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}#overlay-root .size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}#overlay-root .size-18{width:calc(var(--spacing)*18);height:calc(var(--spacing)*18)}#overlay-root .size-24{width:calc(var(--spacing)*24);height:calc(var(--spacing)*24)}#overlay-root .size-\\[25px\\]{width:25px;height:25px}#overlay-root .\\!h-7{height:calc(var(--spacing)*7)!important}#overlay-root .h-12{height:calc(var(--spacing)*12)}#overlay-root .h-12\\.5{height:calc(var(--spacing)*12.5)}#overlay-root .h-18{height:calc(var(--spacing)*18)}#overlay-root .h-\\[30px\\]{height:30px}#overlay-root .h-\\[100dvh\\]{height:100dvh}#overlay-root .h-\\[var\\(--tabbar-current-height\\)\\]{height:var(--tabbar-current-height)}#overlay-root .h-\\[var\\(--tg-safe-area-inset-bottom\\)\\]{height:var(--tg-safe-area-inset-bottom)}#overlay-root .h-auto{height:auto}#overlay-root .h-full{height:100%}#overlay-root .max-h-12\\.5{max-height:calc(var(--spacing)*12.5)}#overlay-root .max-h-\\[calc\\(95dvh-var\\(--tg-safe-area-inset-top\\)-var\\(--tg-safe-area-inset-bottom\\)\\)\\]{max-height:calc(95dvh - var(--tg-safe-area-inset-top) - var(--tg-safe-area-inset-bottom))}#overlay-root .min-h-0{min-height:calc(var(--spacing)*0)}#overlay-root .min-h-\\[96px\\]{min-height:96px}#overlay-root .min-h-\\[calc\\(95dvh-var\\(--tg-safe-area-inset-top\\)-var\\(--tg-safe-area-inset-bottom\\)\\)\\]{min-height:calc(95dvh - var(--tg-safe-area-inset-top) - var(--tg-safe-area-inset-bottom))}#overlay-root .w-12{width:calc(var(--spacing)*12)}#overlay-root .w-16{width:calc(var(--spacing)*16)}#overlay-root .w-\\[130px\\]{width:130px}#overlay-root .w-\\[210px\\]{width:210px}#overlay-root .w-fit{width:fit-content}#overlay-root .w-full{width:100%}#overlay-root .max-w-20{max-width:calc(var(--spacing)*20)}#overlay-root .min-w-\\[96px\\]{min-width:96px}#overlay-root .flex-1{flex:1}#overlay-root .flex-\\[0\\.2\\]{flex:.2}#overlay-root .flex-shrink-0{flex-shrink:0}#overlay-root .shrink{flex-shrink:1}#overlay-root .shrink-0{flex-shrink:0}#overlay-root .flex-grow,#overlay-root .grow{flex-grow:1}#overlay-root .border-collapse{border-collapse:collapse}#overlay-root .origin-center{transform-origin:50%}#overlay-root .-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}#overlay-root .translate-none{translate:none}#overlay-root .scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}#overlay-root .scale-3d{scale:var(--tw-scale-x)var(--tw-scale-y)var(--tw-scale-z)}#overlay-root .-rotate-3{rotate:-3deg}#overlay-root .-rotate-4{rotate:-4deg}#overlay-root .-rotate-5{rotate:-5deg}#overlay-root .-rotate-6{rotate:-6deg}#overlay-root .-rotate-8{rotate:-8deg}#overlay-root .-rotate-12{rotate:-12deg}#overlay-root .-rotate-15{rotate:-15deg}#overlay-root .-rotate-90{rotate:-90deg}#overlay-root .rotate-3{rotate:3deg}#overlay-root .rotate-5{rotate:5deg}#overlay-root .rotate-10{rotate:10deg}#overlay-root .rotate-11{rotate:11deg}#overlay-root .\\!transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)!important}#overlay-root .transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}#overlay-root .animate-pulse{animation:var(--animate-pulse)}#overlay-root .animate-spin{animation:var(--animate-spin)}#overlay-root .cursor-pointer{cursor:pointer}#overlay-root .touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}#overlay-root .resize{resize:both}#overlay-root .auto-cols-max{grid-auto-columns:max-content}#overlay-root .grid-flow-col{grid-auto-flow:column}#overlay-root .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#overlay-root .grid-cols-\\[minmax\\(0\\,1fr\\)_max-content\\]{grid-template-columns:minmax(0,1fr) max-content}#overlay-root .flex-col{flex-direction:column}#overlay-root .flex-row{flex-direction:row}#overlay-root .flex-wrap{flex-wrap:wrap}#overlay-root .items-center{align-items:center}#overlay-root .items-start{align-items:flex-start}#overlay-root .justify-between{justify-content:space-between}#overlay-root .justify-center{justify-content:center}#overlay-root .justify-start{justify-content:flex-start}#overlay-root .justify-items-center{justify-items:center}#overlay-root .gap-0{gap:calc(var(--spacing)*0)}#overlay-root .gap-0\\.5{gap:calc(var(--spacing)*.5)}#overlay-root .gap-1{gap:calc(var(--spacing)*1)}#overlay-root .gap-1\\.5{gap:calc(var(--spacing)*1.5)}#overlay-root .gap-2{gap:calc(var(--spacing)*2)}#overlay-root .gap-2\\.5{gap:calc(var(--spacing)*2.5)}#overlay-root .gap-3{gap:calc(var(--spacing)*3)}#overlay-root .gap-4{gap:calc(var(--spacing)*4)}#overlay-root .gap-6{gap:calc(var(--spacing)*6)}#overlay-root .gap-\\[5px\\]{gap:5px}#overlay-root .gap-\\[6px\\]{gap:6px}#overlay-root .gap-\\[10px\\]{gap:10px}#overlay-root .gap-x-\\[10px\\]{column-gap:10px}#overlay-root :where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}#overlay-root .gap-y-\\[30px\\]{row-gap:30px}#overlay-root :where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}#overlay-root :where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-end-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}#overlay-root :where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}#overlay-root :where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}#overlay-root .self-stretch{align-self:stretch}#overlay-root .truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#overlay-root .overflow-hidden{overflow:hidden}#overlay-root .overflow-visible{overflow:visible}#overlay-root .rounded{border-radius:.25rem}#overlay-root .rounded-\\[20px\\]{border-radius:20px}#overlay-root .rounded-\\[40px\\]{border-radius:40px}#overlay-root .rounded-full{border-radius:3.40282e38px}#overlay-root .rounded-lg{border-radius:var(--radius-lg)}#overlay-root .rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}#overlay-root .rounded-ss{border-start-start-radius:.25rem}#overlay-root .rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}#overlay-root .rounded-se{border-start-end-radius:.25rem}#overlay-root .rounded-ee{border-end-end-radius:.25rem}#overlay-root .rounded-es{border-end-start-radius:.25rem}#overlay-root .rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}#overlay-root .rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}#overlay-root .rounded-tl{border-top-left-radius:.25rem}#overlay-root .rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}#overlay-root .rounded-tr{border-top-right-radius:.25rem}#overlay-root .rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}#overlay-root .rounded-br{border-bottom-right-radius:.25rem}#overlay-root .rounded-bl{border-bottom-left-radius:.25rem}#overlay-root .border{border-style:var(--tw-border-style);border-width:1px}#overlay-root .border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}#overlay-root .border-y{border-block-style:var(--tw-border-style);border-block-width:1px}#overlay-root .border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}#overlay-root .border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}#overlay-root .border-t{border-top-style:var(--tw-border-style);border-top-width:1px}#overlay-root .border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}#overlay-root .border-r{border-right-style:var(--tw-border-style);border-right-width:1px}#overlay-root .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}#overlay-root .border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}#overlay-root .border-l{border-left-style:var(--tw-border-style);border-left-width:1px}#overlay-root .bg-\\[var\\(--tgui--plain_background\\)\\]{background-color:var(--tgui--plain_background)}#overlay-root .bg-tgui-section-bg{background-color:var(--tgui--section_bg_color)}#overlay-root .bg-white{background-color:var(--color-white)}#overlay-root .bg-center{background-position:50%}#overlay-root .bg-no-repeat{background-repeat:no-repeat}#overlay-root .bg-repeat{background-repeat:repeat}#overlay-root .object-contain{object-fit:contain}#overlay-root .object-cover{object-fit:cover}#overlay-root .p-0{padding:calc(var(--spacing)*0)}#overlay-root .p-4{padding:calc(var(--spacing)*4)}#overlay-root .p-\\[10px_10px_14px_10px\\]{padding:10px 10px 14px}#overlay-root .px-1{padding-inline:calc(var(--spacing)*1)}#overlay-root .px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}#overlay-root .px-4{padding-inline:calc(var(--spacing)*4)}#overlay-root .px-\\[6px\\]{padding-inline:6px}#overlay-root .px-\\[9px\\]{padding-inline:9px}#overlay-root .px-\\[12px\\]{padding-inline:12px}#overlay-root .py-1\\.5{padding-block:calc(var(--spacing)*1.5)}#overlay-root .py-\\[3px\\]{padding-block:3px}#overlay-root .py-\\[5px\\]{padding-block:5px}#overlay-root .pt-1{padding-top:calc(var(--spacing)*1)}#overlay-root .pt-7\\.5{padding-top:calc(var(--spacing)*7.5)}#overlay-root .pr-1\\.5{padding-right:calc(var(--spacing)*1.5)}#overlay-root .pr-\\[7px\\]{padding-right:7px}#overlay-root .pb-0{padding-bottom:calc(var(--spacing)*0)}#overlay-root .pb-2{padding-bottom:calc(var(--spacing)*2)}#overlay-root .pb-2\\.5{padding-bottom:calc(var(--spacing)*2.5)}#overlay-root .pb-3{padding-bottom:calc(var(--spacing)*3)}#overlay-root .pb-6{padding-bottom:calc(var(--spacing)*6)}#overlay-root .pb-6505{padding-bottom:calc(var(--spacing)*6505)}#overlay-root .pb-\\[calc\\(var\\(--tg-safe-area-inset-bottom\\)\\+6px\\)\\]{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + 6px)}#overlay-root .pl-2\\.5{padding-left:calc(var(--spacing)*2.5)}#overlay-root .text-center{text-align:center}#overlay-root .text-left{text-align:left}#overlay-root .text-\\[3em\\]{font-size:3em}#overlay-root .text-\\[4em\\]{font-size:4em}#overlay-root .text-\\[6em\\]{font-size:6em}#overlay-root .text-\\[10px\\]{font-size:10px}#overlay-root .text-\\[13px\\]{font-size:13px}#overlay-root .text-\\[16px\\]{font-size:16px}#overlay-root .text-\\[24px\\]{font-size:24px}#overlay-root .leading-\\[13px\\]{--tw-leading:13px;line-height:13px}#overlay-root .leading-\\[16px\\]{--tw-leading:16px;line-height:16px}#overlay-root .font-\\[400\\]{--tw-font-weight:400;font-weight:400}#overlay-root .font-\\[590\\]{--tw-font-weight:590;font-weight:590}#overlay-root .font-\\[800\\]{--tw-font-weight:800;font-weight:800}#overlay-root .text-wrap{text-wrap:wrap}#overlay-root .text-clip{text-overflow:clip}#overlay-root .text-ellipsis{text-overflow:ellipsis}#overlay-root .whitespace-nowrap{white-space:nowrap}#overlay-root .\\!text-black{color:var(--color-black)!important}#overlay-root .\\!text-black\\/50{color:color-mix(in oklab,var(--color-black)50%,transparent)!important}#overlay-root .\\!text-gray-900{color:var(--color-gray-900)!important}#overlay-root .\\!text-white{color:var(--color-white)!important}#overlay-root .text-\\[var\\(--tgui--button_color\\)\\]{color:var(--tgui--button_color)}#overlay-root .text-black{color:var(--color-black)}#overlay-root .text-button-foreground{color:var(--tgui--button_text_color)}#overlay-root .text-gray-900{color:var(--color-gray-900)}#overlay-root .text-hint{color:var(--tg-theme-hint-color)}#overlay-root .text-inherit{color:inherit}#overlay-root .text-red-500{color:var(--color-red-500)}#overlay-root .text-white{color:var(--color-white)}#overlay-root .capitalize{text-transform:capitalize}#overlay-root .lowercase{text-transform:lowercase}#overlay-root .normal-case{text-transform:none}#overlay-root .uppercase{text-transform:uppercase}#overlay-root .italic{font-style:italic}#overlay-root .not-italic{font-style:normal}#overlay-root .diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#overlay-root .lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#overlay-root .normal-nums{font-variant-numeric:normal}#overlay-root .oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#overlay-root .ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#overlay-root .proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#overlay-root .slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#overlay-root .stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#overlay-root .tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}#overlay-root .line-through{text-decoration-line:line-through}#overlay-root .no-underline{text-decoration-line:none}#overlay-root .overline{text-decoration-line:overline}#overlay-root .underline{text-decoration-line:underline}#overlay-root .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#overlay-root .subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}#overlay-root .opacity-0{opacity:0}#overlay-root .opacity-40{opacity:.4}#overlay-root .opacity-70{opacity:.7}#overlay-root .opacity-100{opacity:1}#overlay-root .mix-blend-overlay{mix-blend-mode:overlay}#overlay-root .inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-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)}#overlay-root .ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + 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)}#overlay-root .shadow{--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)}#overlay-root .shadow-\\[0_0_10px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow:0 0 10px 0 var(--tw-shadow-color,#0003);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#overlay-root .outline{outline-style:var(--tw-outline-style);outline-width:1px}#overlay-root .blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}#overlay-root .drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}#overlay-root .grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}#overlay-root .invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}#overlay-root .sepia{--tw-sepia:sepia(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}#overlay-root .filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}#overlay-root .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,)}#overlay-root .backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-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,)}#overlay-root .backdrop-invert{--tw-backdrop-invert:invert(100%);-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,)}#overlay-root .backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-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,)}#overlay-root .backdrop-filter{-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,)}#overlay-root .\\!transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}#overlay-root .transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#overlay-root .transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#overlay-root .transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}#overlay-root .duration-200{--tw-duration:.2s;transition-duration:.2s}#overlay-root .duration-300{--tw-duration:.3s;transition-duration:.3s}#overlay-root .duration-400{--tw-duration:.4s;transition-duration:.4s}#overlay-root .ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}#overlay-root .ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}#overlay-root .ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}#overlay-root .will-change-transform{will-change:transform}#overlay-root :where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}#overlay-root .ring-inset{--tw-ring-inset:inset}#overlay-root .select-all{-webkit-user-select:all;user-select:all}#overlay-root .before\\:hidden:before{content:var(--tw-content);display:none}div#overlay-root [vaul-overlay]{background:var(--tgui--overlay_bg_color)!important}div#overlay-root div[vaul-overlay]{background:#0006!important}.box-opening-modal-drawer[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transition:none!important;animation:none!important;transform:none!important}.box-opening-modal-drawer[vaul-drawer],.box-opening-modal-drawer[vaul-drawer]>*,.box-opening-modal-drawer[vaul-drawer] [role=dialog],.box-opening-modal-drawer[vaul-drawer] [data-vaul-drawer-wrapper]{background:0 0!important}.box-opening-modal-drawer header,.box-opening-modal-drawer [class*=ModalHeader]{z-index:999!important}#overlay-root div#root{z-index:0;position:relative}div#overlay-root{overscroll-behavior:none;scroll-behavior:smooth;pointer-events:none;width:100vw;height:100vh;position:fixed;z-index:9999!important}div#overlay-root.cssdk-overlay-hidden{visibility:hidden;pointer-events:none!important}div#overlay-root.cssdk-overlay-hidden .cssdk-orientation-check{visibility:visible;pointer-events:auto}div#overlay-root div[class*=flex]{display:flex!important}div#overlay-root div[class*=grid]{display:grid!important}div#overlay-root div[class*=inline]{display:inline!important}div#overlay-root div[class*=inline-block]{display:inline-block!important}div#overlay-root div[class*=inline-flex]{display:inline-flex!important}div#overlay-root .flex{display:flex!important}div#overlay-root .inline-flex{display:inline-flex!important}div#overlay-root .grid{display:grid!important}div#overlay-root .inline-grid{display:inline-grid!important}div#overlay-root .block{display:block!important}div#overlay-root .inline-block{display:inline-block!important}div#overlay-root .inline{display:inline!important}div#overlay-root *{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:#0000;-webkit-user-select:none;user-select:none;-ms-overflow-style:none;scrollbar-width:none}div#overlay-root ::-webkit-scrollbar{display:none}div#overlay-root img{pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}div#overlay-root button[class^=tgui]:after{border-radius:inherit}.cssdk-text-rounded{font-family:-apple-system-rounded,Arial Rounded MT,ui-rounded,system-ui,sans-serif!important}.cssdk-page-container{--container-padding:16px;--floating-profile-area-height:0px;--container-padding-top:calc(var(--container-padding) + var(--tg-safe-area-inset-top,0px));--container-padding-bottom:calc(var(--container-bottom-padding,var(--container-padding)) + var(--floating-profile-area-height,0) + var(--tg-safe-area-inset-bottom,0px));--container-padding-left:calc(var(--container-padding) + var(--tg-safe-area-inset-left,0px));--container-padding-right:calc(var(--container-padding) + var(--tg-safe-area-inset-right,0px));padding:var(--container-padding-top)var(--container-padding-right)var(--container-padding-bottom)var(--container-padding-left);box-sizing:border-box;overscroll-behavior:none;background-color:var(--tgui--secondary_bg_color);height:auto;min-height:100dvh;max-height:100dvh;overflow:hidden scroll}.cssdk-floating-profile{box-sizing:border-box;z-index:1;background:var(--tgui--bg_color,#282e33);cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--tg-theme-text-color,#f5f5f5);overscroll-behavior:none;will-change:box-shadow;border:none;font-family:system-ui,-apple-system,BlinkMacSystemFont,Roboto,Apple Color Emoji,Helvetica Neue,sans-serif;transition:box-shadow .3s ease-in-out}.cssdk-floating-profile:hover{cursor:grab}.cssdk-floating-profile:active{cursor:grabbing}.cssdk-floating-profile.cssdk-floating-profile--light{color:var(--tgui--text_color,#f5f5f5);background:var(--tgui--bg_color);box-shadow:var(--floating-profile-shadow)}.cssdk-floating-profile.cssdk-floating-profile--dark{--floating-profile-shadow:0px 0px 1px 1px #ffffff1a,0px 32px 64px 0px #ffffff1a;--floating-profile-shadow-active:0px 0px 1px 1px #ffffff0d,0px 4px 16px 0px #ffffff0d;color:#fff;box-shadow:var(--floating-profile-shadow);background:#000}.cssdk-floating-profile.cssdk-floating-profile--translucent{color:#fff;background:#ffffff26}.cssdk-close-btn{cursor:pointer;color:var(--tgui--hint_color)!important;padding:0!important}.cssdk-close-btn:hover{filter:brightness(1.2)}.cssdk-close-btn:active{filter:brightness(.6)}.cssdk-floating-profile:not(.cssdk-floating-profile--expanded):active{box-shadow:var(--floating-profile-shadow-active)}.cssdk-floating-profile:focus-visible,.cssdk-floating-profile:focus-within{outline:none}.cssdk-profile-modal{max-height:60dvh!important}.cssdk-profile-modal .cssdk-page-container{min-height:0!important;max-height:60dvh!important}@media (orientation:landscape){.cssdk-profile-modal{width:410px!important;max-height:100dvh!important;top:0!important;left:unset!important}.cssdk-profile-modal .cssdk-page-container{min-height:100dvh!important;max-height:100dvh!important}}.cssdk-balance-section{will-change:transform;-webkit-tap-highlight-color:transparent;flex-direction:column;align-items:center;width:100%;display:flex;transform:scale(1);cursor:pointer!important}.cssdk-balance-section:active{transition:transform .2s cubic-bezier(.34,1.56,.64,1);transform:scale(.95)!important}.tmanetwork_close+iframe{z-index:1;position:relative}.cssdk-banner-container{pointer-events:none;justify-content:center;align-items:center;transition:opacity .3s ease-in-out,transform .3s ease-in-out;display:flex;position:fixed;left:0;right:0}.cssdk-banner-top{top:var(--tg-safe-area-inset-top,0px);height:var(--banner-top-height,0px);background:0 0;transform:translateY(-100%)}.cssdk-banner-bottom{bottom:var(--tg-safe-area-inset-bottom,0px);height:var(--banner-bottom-height,0px);background:0 0;transform:translateY(100%)}.cssdk-banner-container:not(:empty){pointer-events:auto}.cssdk-banner-top.cssdk-banner-show,.cssdk-banner-bottom.cssdk-banner-show{transform:translateY(0)}.cssdk-banner-top.cssdk-banner-hide{transform:translateY(-100%)}.cssdk-banner-bottom.cssdk-banner-hide{transform:translateY(100%)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@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-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}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@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-content{syntax:"*";inherits:false;initial-value:""}#overlay-root .tgui-f23c0e195677169c{background:var(--tgui--bg_color);overflow:hidden}#overlay-root .tgui-947b927060015de8{max-height:0;transition:max-height .1s ease-in-out}#overlay-root .tgui-60e7968097edfa6f{color:var(--tgui--link_color);transition:transform .15s ease-out}#overlay-root .tgui-c900ecbd6d8d6d5e{transform:rotate(180deg)}#overlay-root .tgui-b8dfba0b5c3d054c{--tgui--cell--middle--padding:16px 0;align-items:center;display:flex;gap:24px;padding:0 24px}#overlay-root .tgui-7b5bccbb645b495f{gap:16px}#overlay-root .tgui-7edaaf0c57797623{background:var(--tgui--tertiary_bg_color)}#overlay-root .tgui-56b2e897ed7ccb22,#overlay-root .tgui-aaa795d78c356ac1{align-items:center;display:flex;justify-content:center}#overlay-root .tgui-8735a62be5a8b8a7{display:flex;flex-direction:column;flex-grow:1;gap:2px;max-width:100%;min-width:0;padding:var(--tgui--cell--middle--padding)}#overlay-root .tgui-1c6d7865a76a19bc,#overlay-root .tgui-8735a62be5a8b8a7>*{overflow:hidden;text-overflow:ellipsis}#overlay-root .tgui-b8dfba0b5c3d054c:not(.tgui-6c49dadccf648a5b) .tgui-1c6d7865a76a19bc,#overlay-root .tgui-b8dfba0b5c3d054c:not(.tgui-6c49dadccf648a5b) .tgui-8735a62be5a8b8a7>*{white-space:nowrap}#overlay-root .tgui-46dd90b57ffed25f{color:var(--tgui--subtitle_text_color)}#overlay-root .tgui-a894f59f4c5ad72f{align-items:center;display:inline-flex;gap:4px}#overlay-root .tgui-bb909928b48f948b,#overlay-root .tgui-d528ef65a8b76273,#overlay-root .tgui-fc059ed3ac5799a6{color:var(--tgui--hint_color)}#overlay-root .tgui-7b5bccbb645b495f{--tgui--cell--middle--padding:12px 0;padding:0 16px}@media (hover:hover) and (pointer:fine){#overlay-root .tgui-b8dfba0b5c3d054c:hover{background:var(--tgui--tertiary_bg_color)}}#overlay-root .tgui-b5d680db78c4cc2e{cursor:pointer;isolation:isolate;position:relative;transition:opacity .15s ease-out}#overlay-root .tgui-b5d680db78c4cc2e[readonly]{cursor:default;pointer-events:visible}#overlay-root .tgui-b5d680db78c4cc2e[disabled]{cursor:default;opacity:.35}#overlay-root .tgui-34eb6f8b96874d40:active,#overlay-root .tgui-7c5d6c1f6bbe3eaf:active{opacity:.65}@media (hover:hover) and (pointer:fine){#overlay-root .tgui-34eb6f8b96874d40:hover,#overlay-root .tgui-7c5d6c1f6bbe3eaf:hover{opacity:.85}}#overlay-root .tgui-8071f6e38c77bc0b{border-radius:inherit;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:background-color .15s ease-out}#overlay-root .tgui-e156954daf886976{animation:tgui-81605f53eca39186 .3s cubic-bezier(.3,.3,.5,1);background:var(--tgui--outline);border-radius:50%;content:"";height:24px;margin:-12px 0;opacity:0;position:absolute;width:24px}@keyframes tgui-81605f53eca39186{0%{opacity:1;transform:scale(1)}30%{opacity:1}to{opacity:0;transform:scale(8)}}#overlay-root .tgui-30064fce0d501f17{font-size:var(--tgui--subheadline1--font_size);line-height:var(--tgui--subheadline1--line_height)}#overlay-root .tgui-8f63cd31b2513281{font-size:var(--tgui--subheadline2--font_size);line-height:var(--tgui--subheadline2--line_height)}#overlay-root .tgui-c3e2e598bd70eee6{font-family:var(--tgui--font-family)}#overlay-root .tgui-080a44e6ac3f4d27{margin:0}#overlay-root .tgui-5c92f90c2701fa17{font-weight:var(--tgui--font_weight--accent1)}#overlay-root .tgui-809f1f8a3f64154d{font-weight:var(--tgui--font_weight--accent2)}#overlay-root .tgui-5b8bdfbd2af10f59{font-weight:var(--tgui--font_weight--accent3)}#overlay-root .tgui-c602097b30e4ede9{text-transform:uppercase}#overlay-root .tgui-2916d621b0ea5857{font-size:var(--tgui--caption1--font_size);line-height:var(--tgui--caption1--line_height)}#overlay-root .tgui-937d123c23df98b3{font-size:var(--tgui--caption2--font_size);line-height:var(--tgui--caption2--line_height)}#overlay-root .tgui-65c206f0fd891b6b{font-size:var(--tgui--text--font_size);line-height:var(--tgui--text--line_height)}#overlay-root .tgui-91c5537b51b490a7{border-radius:50%}#overlay-root .tgui-305551eb3f5abb68.tgui-305551eb3f5abb68{background-color:var(--tgui--secondary_fill);color:var(--tgui--link_color)}#overlay-root .tgui-30d8642662534eb5{align-items:center;background-color:var(--tgui--tertiary_bg_color);box-shadow:0 0 0 1px var(--tgui--outline);display:flex;justify-content:center;position:relative}#overlay-root .tgui-1191c597a64dbd25{border-radius:inherit;display:block;height:100%;-o-object-fit:cover;object-fit:cover;position:absolute;visibility:hidden;width:100%}#overlay-root .tgui-72bd4140eca37f53 .tgui-1191c597a64dbd25{visibility:visible}#overlay-root .tgui-5ee2f1c6e1da49b5{align-items:center;display:flex;justify-content:center;position:absolute}#overlay-root .tgui-e3bcc434a6ee9317{position:absolute;right:-12px;top:-12px}#overlay-root .tgui-562f7459d74103ea{align-items:center;border-radius:20px;box-sizing:border-box;display:inline-flex;height:20px;justify-content:center;margin:0 6px;min-width:20px;padding:0 5px}#overlay-root .tgui-c1a5e9170826a773{height:24px;padding:0 6px}#overlay-root .tgui-4f69ed647e40e245{border-radius:50%;display:inline-block;height:6px;margin:7px;width:6px}#overlay-root .tgui-6e63faaa2b33f4ae{background:var(--tgui--button_color);color:var(--tgui--button_text_color)}#overlay-root .tgui-4b52474c713ffa7c{background:var(--tgui--destructive_text_color);color:var(--tgui--button_text_color)}#overlay-root .tgui-0278f262d68294f0{background:var(--tgui--secondary_fill);color:var(--tgui--link_color)}#overlay-root .tgui-0883e451f3707277{background:var(--tgui--plain_background);color:var(--tgui--plain_foreground)}#overlay-root .tgui-6b3dbcedd9052940{background:var(--tgui--white);color:var(--tgui--link_color)}#overlay-root .tgui-e05fce4753086879{font-size:var(--tgui--headline--font_size);line-height:var(--tgui--headline--line_height)}#overlay-root .tgui-c6d7432a5c12debe{font-size:var(--tgui--large_title--font_size);line-height:var(--tgui--large_title--line_height)}#overlay-root .tgui-2fc52ee93e8068a6{font-size:var(--tgui--title1--font_size);line-height:var(--tgui--title1--line_height)}#overlay-root .tgui-72c2a480384c4fb1{font-size:var(--tgui--title2--font_size);line-height:var(--tgui--title2--line_height)}#overlay-root .tgui-45c5f45d3e9105f4{font-size:var(--tgui--title3--font_size);line-height:var(--tgui--title3--line_height)}#overlay-root .tgui-54214e0db34f53c3{position:absolute;right:-12px;top:0}#overlay-root .tgui-28e0a2576155be01{display:flex}#overlay-root .tgui-28e0a2576155be01>:not(:first-child){margin-left:-12px}#overlay-root .tgui-28e0a2576155be01>*{box-shadow:0 0 0 3px var(--tgui--bg_color)}#overlay-root .tgui-c3d21871b48e0ba3{background:var(--tgui--bg_color);display:flex;gap:20px;overflow:hidden;padding:16px 20px;position:relative}#overlay-root .tgui-7b260d7ad33f3ba0:not(.tgui-f80265c401d577b0){box-shadow:var(--tgui--base--section--box_shadow)}#overlay-root .tgui-cefdf70a2d9648ea{border-radius:16px}#overlay-root .tgui-f80265c401d577b0{padding:20px}#overlay-root .tgui-f80265c401d577b0 .tgui-2646957e5c9379f3{color:var(--tgui--white)}#overlay-root .tgui-f80265c401d577b0 .tgui-62a759a0c54c3667{color:var(--tgui--white);opacity:.8}#overlay-root .tgui-d67d90bbcab86e14{background:var(--tgui--bg_color)}#overlay-root .tgui-7b260d7ad33f3ba0.tgui-d67d90bbcab86e14{border:1px solid var(--tgui--outline);border-radius:16px;box-shadow:none;margin:8px 20px}#overlay-root .tgui-cefdf70a2d9648ea.tgui-d67d90bbcab86e14{background:var(--tgui--quartenary_bg_color);margin:8px 16px}#overlay-root .tgui-11921b54915b369c{bottom:0;left:0;position:absolute;right:0;top:0}#overlay-root .tgui-a04b768cea14d789{display:flex;flex:1 1 0;flex-direction:column;gap:2px;z-index:var(--tgui--z-index--simple)}#overlay-root .tgui-62a759a0c54c3667{color:var(--tgui--subtitle_text_color)}#overlay-root .tgui-1e638bcb841cdfbc{color:var(--tgui--hint_color)}#overlay-root .tgui-5e0d89b3bc8342d8{display:flex;gap:4px;margin-top:10px}#overlay-root .tgui-fa2f2ea4a4ffc035{border-radius:50%;height:28px}#overlay-root .tgui-79024fcb6d81ad79{background:var(--tgui--secondary_fill);border-left:3px solid var(--tgui--link_color);border-radius:4px;padding:6px 28px 8px 12px;position:relative}#overlay-root .tgui-16ed20e7a6e2daa0{color:var(--tgui--text_color)}#overlay-root .tgui-bd5b6cd161834705{display:block;position:absolute;right:6px;top:4px}#overlay-root .tgui-6c9b3f1fd52a3108{color:var(--tgui--link_color)}#overlay-root .tgui-117e77cd385a9c8d{align-items:center;border:none;border-radius:8px;box-sizing:border-box;display:inline-flex;justify-content:center;max-width:100%;min-width:80px;text-decoration:none}#overlay-root .tgui-726846958fe7f4a0{flex-grow:1;width:100%}#overlay-root .tgui-117e77cd385a9c8d:after{background:var(--tgui--bg_color);bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:opacity .15s ease-out}#overlay-root .tgui-06cc94d03a7c4dd7,#overlay-root .tgui-8310172a5320ab71{align-items:center;display:flex;justify-content:center}#overlay-root .tgui-5f6014c0f063b6de{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:var(--tgui--z-index--simple)}#overlay-root .tgui-014f2b7d196b090d.tgui-014f2b7d196b090d{align-items:center;background:inherit;border-radius:inherit;color:var(--tgui--button--spinner-color);cursor:auto;display:flex;height:100%;justify-content:center;position:absolute;width:100%}#overlay-root .tgui-13f23a224303ddaa{border-radius:20px;gap:6px;height:36px;min-width:34px;padding:8px 12px}#overlay-root .tgui-1a16a49d89076ff4{gap:8px;height:42px;min-width:42px;padding:8px 14px}#overlay-root .tgui-9cef742a22f195c9{gap:10px;height:50px;padding:10px 20px}#overlay-root .tgui-8a1ca9efa24f4809{--tgui--button--hovered-opacity:.15;--tgui--button--spinner-color:var(--tgui--button_text_color);background:var(--tgui--button_color);color:var(--tgui--button_text_color)}#overlay-root .tgui-91bda9a36246a33c{--tgui--button--hovered-opacity:.07;--tgui--button--spinner-color:var(--tgui--link_color);background:var(--tgui--secondary_fill);color:var(--tgui--link_color)}#overlay-root .tgui-48956537c34690db{--tgui--button--hovered-opacity:.03;--tgui--button--spinner-color:var(--tgui--plain_foreground);background:transparent;color:var(--tgui--link_color)}#overlay-root .tgui-93106efd6b6d66ee{background:var(--tgui--plain_background)}#overlay-root .tgui-93106efd6b6d66ee,#overlay-root .tgui-e884e36ff1faa596{--tgui--button--hovered-opacity:.5;--tgui--button--spinner-color:var(--tgui--plain_foreground);color:var(--tgui--plain_foreground)}#overlay-root .tgui-e884e36ff1faa596{background:inherit;box-shadow:0 0 0 1px var(--tgui--outline)}#overlay-root .tgui-ba6d30cc81e39ae5{--tgui--button--hovered-opacity:.5;--tgui--button--spinner-color:var(--tgui--surface_dark);background:var(--tgui--white)}#overlay-root .tgui-55e8aa7f5cea2280.tgui-1a16a49d89076ff4{border-radius:12px}#overlay-root .tgui-55e8aa7f5cea2280:after{content:unset}#overlay-root .tgui-490cb0f5ec4998f3 .tgui-06cc94d03a7c4dd7,#overlay-root .tgui-490cb0f5ec4998f3 .tgui-5f6014c0f063b6de,#overlay-root .tgui-490cb0f5ec4998f3 .tgui-8310172a5320ab71{opacity:0}@media (hover:hover) and (pointer:fine){#overlay-root .tgui-117e77cd385a9c8d:hover:after{opacity:var(--tgui--button--hovered-opacity)}}#overlay-root .tgui-0ac8c3540e603b63{color:var(--tgui--link_color)}#overlay-root .tgui-562a3eae646b486d{color:var(--tgui--hint_color)}#overlay-root .tgui-dbf261f4b3046bb3{background:var(--tgui--tertiary_bg_color);border-radius:20px;box-shadow:0 32px 64px #0000000a,0 0 2px 1px #00000005;display:inline-block;overflow:hidden;position:relative}#overlay-root .tgui-c6ad96fdf8ce4b28{background:var(--tgui--plain_foreground)}#overlay-root .tgui-80c6a0ba7b3c11fd{--tgui--cell--middle--padding:16px 0;background:var(--tgui--card_bg_color);padding:0 20px}#overlay-root .tgui-814d1971a92687e3{--tgui--text_color:var(--tgui--white);--tgui--hint_color:hsla(0,0%,100%,.75);background:linear-gradient(180deg,transparent 0,var(--tgui--black) 100%);bottom:0;left:0;padding-top:48px;position:absolute;right:0}#overlay-root .tgui-422c21c917cc0873{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:break-spaces}#overlay-root .tgui-27c5a061c5f35c04{font-weight:var(--tgui--font_weight--accent2)}#overlay-root .tgui-814d1971a92687e3 .tgui-27c5a061c5f35c04{color:var(--tgui--white)}#overlay-root .tgui-79efb12936705a6f{position:absolute;right:16px;top:16px}#overlay-root .tgui-6372c64c79ad2959{align-items:center;border-radius:10px;box-sizing:border-box;display:inline-flex;gap:8px;justify-content:center;padding:8px 12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}#overlay-root .tgui-b8b077d7e3491b30{background:var(--tgui--surface_primary);box-shadow:0 12px 24px #0000000d}#overlay-root .tgui-ccc3e4a302799418{background:var(--tgui--plain_background)}#overlay-root .tgui-fdfccf8f92c11530{border-radius:10px;box-shadow:0 0 0 1px var(--tgui--outline)}#overlay-root .tgui-9c7ff8cd23a6ea9a{color:var(--tgui--plain_foreground);flex:1 1 0;overflow:hidden;text-overflow:ellipsis}#overlay-root .tgui-0d7ce20ebc0fc7aa{margin-right:2px}#overlay-root .tgui-67f596882eb2b6ab{align-items:center;color:var(--tgui--secondary_hint_color);display:flex;margin-top:1.5px}#overlay-root .tgui-a8ce18a8594cea9b{align-items:center;background:transparent;border:none;color:var(--tgui--link_color);display:flex;gap:24px;height:48px;padding:10px 24px;width:100%}#overlay-root .tgui-6e7ca796043fe6ca{color:var(--tgui--destructive_text_color)}#overlay-root .tgui-f464dba82cb8b46e{gap:18px;height:44px;padding:8px 18px}#overlay-root .tgui-c5be765fabc1327f{text-align:right}#overlay-root .tgui-437ab2028f14c95c{align-items:center;color:var(--tgui--secondary_hint_color);display:flex;gap:12px}#overlay-root .tgui-4af039094fb946b4{color:var(--tgui--hint_color);margin:2px 0 0}#overlay-root .tgui-97dd747d03e9d3e0{align-items:center;color:var(--tgui--hint_color);display:flex;gap:8px}#overlay-root .tgui-64a5a0dc5509605e{flex-grow:1;overflow-wrap:anywhere}#overlay-root .tgui-3b026a2674eb3f4c{flex-shrink:0}#overlay-root .tgui-dda0e80fdf796ba5{border:none;border-radius:12px;display:inline-flex;padding:8px}#overlay-root .tgui-b92d762e02762017{border-radius:50%;padding:6px}#overlay-root .tgui-93cba8aff2e72079{background:var(--tgui--secondary_fill);color:var(--tgui--link_color)}#overlay-root .tgui-08ef1486bc111162{background:transparent;color:var(--tgui--link_color)}#overlay-root .tgui-2250ff52f0b5cf71{background:var(--tgui--plain_background);color:var(--tgui--plain_foreground)}#overlay-root .tgui-53781f3cf83e8be1{background:inherit;box-shadow:0 0 0 1px var(--tgui--outline);color:var(--tgui--plain_foreground)}#overlay-root .tgui-39e9f02ce4b4b950{display:flex;gap:12px}#overlay-root .tgui-b3d7f75461a64b76{gap:8px}#overlay-root .tgui-c5545e0bc6105e48{align-items:center;background:transparent;border:none;border-radius:12px;box-sizing:border-box;color:var(--tgui--link_color);display:flex;flex:1 0 0;flex-direction:column;gap:3px;justify-content:center;max-width:100%;min-height:60px;min-width:64px;padding:0 12px}#overlay-root .tgui-bf32cd3c110b8729{gap:4px;min-height:64px;min-width:72px}#overlay-root .tgui-99a630d0096f2169{background:var(--tgui--secondary_fill)}#overlay-root .tgui-30bf4976f818e8bf{background:var(--tgui--plain_background);color:var(--tgui--plain_foreground)}#overlay-root .tgui-c0c9bf3b1a53a8a4{max-width:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#overlay-root .tgui-389a43acd684137a>:not(:last-child){margin-bottom:12px}#overlay-root .tgui-cfed40fe81d34ad5{box-sizing:border-box;padding:10px 18px}#overlay-root .tgui-e5c3a5b87f8b1f46{align-items:center;display:flex;flex-direction:column;gap:24px;justify-content:center;overflow:hidden;padding:32px}#overlay-root .tgui-9c3dbc0ef84585d4{margin:0;overflow-wrap:anywhere;text-align:center}#overlay-root .tgui-87cd6af55f73428d{color:var(--tgui--hint_color)}#overlay-root .tgui-87cd6af55f73428d:not(:first-child){margin-top:8px}#overlay-root .tgui-8e15431b81f6601e .tgui-db9be63c4fecf79b{background:var(--tgui--section_bg_color);box-shadow:0 1px 2px #0000001a}#overlay-root .tgui-97eca24324122dbc .tgui-4b78bed6e925088e{background:var(--tgui--section_bg_color);border-radius:12px}#overlay-root .tgui-97eca24324122dbc .tgui-4b78bed6e925088e>:first-child{border-radius:12px 12px 0 0}#overlay-root .tgui-97eca24324122dbc .tgui-4b78bed6e925088e>:last-child{border-radius:0 0 12px 12px}#overlay-root .tgui-97eca24324122dbc .tgui-4b78bed6e925088e>:only-child{border-radius:12px}#overlay-root .tgui-8af0d10d5540c6cc{border-top:none;border-color:var(--tgui--outline);border-width:var(--tgui--border--width);margin:0}#overlay-root .tgui-dbb364e8ced00cc8{padding:12px 24px}#overlay-root .tgui-8c4c6f82ba895475{padding:8px 16px 0}#overlay-root .tgui-8ebba379083b615a{padding:16px 24px 20px;text-align:center}#overlay-root .tgui-8c4c6f82ba895475.tgui-8ebba379083b615a{padding:16px 16px 0}#overlay-root .tgui-67471b69da3e3062{color:var(--tgui--section_header_text_color)}#overlay-root .tgui-d0251b46536ac046{color:var(--tgui--link_color);padding:20px 24px 4px 22px}#overlay-root .tgui-34fd1a25cc171439{color:var(--tgui--text_color);padding-left:24px}#overlay-root .tgui-b7217abb24e8763a{color:var(--tgui--section_header_text_color);padding:16px 16px 8px}#overlay-root .tgui-b7217abb24e8763a.tgui-34fd1a25cc171439{color:var(--tgui--text_color);padding:0 0 12px}#overlay-root .tgui-f492b616576c67fb{display:flex;gap:9px;padding:12px}#overlay-root .tgui-d45985ba4cb27e5f{background:var(--tgui--tertiary_bg_color);border-radius:2px;height:3px;min-width:3px;width:100%}#overlay-root .tgui-352b8d247f473986{background:var(--tgui--link_color)}#overlay-root .tgui-b53f1370d519b689{display:flex;flex-direction:column;gap:24px;margin:0;padding:32px 44px}#overlay-root .tgui-732e8859c58ffb77{flex-direction:row}#overlay-root .tgui-4614301efc783534{display:flex;overflow-x:scroll;-webkit-overflow-scrolling:touch;scrollbar-width:none}#overlay-root .tgui-4e145f66199825da::-webkit-scrollbar{display:none}#overlay-root .tgui-caaaa27ccfa566b7{--tgui--timeline--item--thickness:4px;--tgui--timeline--item--size:12px;display:flex;gap:32px}#overlay-root .tgui-caaaa27ccfa566b7:last-child .tgui-3fc2f0d7045d23d8{display:none}#overlay-root .tgui-0f46575488c31b93{min-width:var(--tgui--timeline--item--size);position:relative}#overlay-root .tgui-d7ba9c56743387af{border-radius:50%;height:var(--tgui--timeline--item--size);left:0;top:4px;width:var(--tgui--timeline--item--size)}#overlay-root .tgui-3fc2f0d7045d23d8,#overlay-root .tgui-d7ba9c56743387af{background:var(--tgui--quartenary_bg_color);position:absolute}#overlay-root .tgui-3fc2f0d7045d23d8{border-radius:2px;bottom:0;height:calc(100% - 4px);left:50%;top:24px;transform:translate(-50%);width:var(--tgui--timeline--item--thickness)}#overlay-root .tgui-bf9f87dd32ecad81{overflow:hidden}#overlay-root .tgui-2b850faa8f3a520a{display:inline-block;margin-bottom:4px}#overlay-root .tgui-b9a4d9afcd70e355{color:var(--tgui--hint_color)}#overlay-root .tgui-581d134185fd28b4 .tgui-d7ba9c56743387af,#overlay-root .tgui-dcd66bc07faad440 .tgui-3fc2f0d7045d23d8,#overlay-root .tgui-dcd66bc07faad440 .tgui-d7ba9c56743387af{background:var(--tgui--link_color)}#overlay-root .tgui-566b727e7a35e935 .tgui-0f46575488c31b93{--tgui--timeline--item--size:16px}#overlay-root .tgui-566b727e7a35e935 .tgui-d7ba9c56743387af{top:6px}#overlay-root .tgui-566b727e7a35e935 .tgui-3fc2f0d7045d23d8{height:calc(100% + 26px);top:6px}#overlay-root .tgui-f461f2eeb28c21d0{flex-direction:column;gap:24px}#overlay-root .tgui-f461f2eeb28c21d0 .tgui-0f46575488c31b93{align-items:center;display:flex;height:var(--tgui--timeline--item--size)}#overlay-root .tgui-f461f2eeb28c21d0 .tgui-d7ba9c56743387af{top:0}#overlay-root .tgui-f461f2eeb28c21d0 .tgui-3fc2f0d7045d23d8{height:var(--tgui--timeline--item--thickness);left:0;top:50%;transform:translateY(-50%);width:calc(100% + 36px)}#overlay-root .tgui-f461f2eeb28c21d0 .tgui-2b850faa8f3a520a{white-space:nowrap}#overlay-root .tgui-81a5164cd16c05d5{stroke:var(--tgui--link_color);transform:rotate(-90deg)}#overlay-root .tgui-ced47fd163a53511{border-radius:2px;height:4px;overflow:hidden;position:relative}#overlay-root .tgui-44060f289fdbdb84:after{bottom:0;content:"";left:0;opacity:.4;right:0;top:0}#overlay-root .tgui-027278a6d6708965,#overlay-root .tgui-44060f289fdbdb84:after{background:var(--tgui--link_color);position:absolute}#overlay-root .tgui-027278a6d6708965{border-radius:inherit;height:100%;transition:width .2s ease;z-index:var(--tgui--z-index--simple)}#overlay-root .tgui-97f2df57786b02dc{position:relative}#overlay-root .tgui-3eb6091f664c15d6:after,#overlay-root .tgui-3eb6091f664c15d6:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:var(--tgui--z-index--simple)}#overlay-root .tgui-97f2df57786b02dc:before{background:var(--tgui--secondary_bg_color)}#overlay-root .tgui-97f2df57786b02dc:not(.tgui-ecf101b3117a96c8):after{animation:tgui-3a837cc9661e7502 1.8s linear infinite;background-color:var(--tgui--bg_color);z-index:var(--tgui--z-index--skeleton)}@keyframes tgui-3a837cc9661e7502{0%,to{opacity:.4}50%{opacity:.7}}#overlay-root .tgui-bed09b0692380ce7{animation:tgui-738ce40067f9bb6e .34s cubic-bezier(.3,.3,.5,1);bottom:10px;box-sizing:border-box;left:10px;max-width:460px;position:fixed;right:10px;transition:transform .32s cubic-bezier(.3,.3,.5,1);-webkit-user-select:none;-moz-user-select:none;user-select:none}#overlay-root .tgui-a869502f11f22b6c{align-items:center;-webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px);background:var(--tgui--surface_dark);border-radius:10px;bottom:0;box-sizing:border-box;display:flex;gap:12px;left:0;padding:10px 16px 10px 10px;position:sticky;right:0;top:0;width:100%}#overlay-root .tgui-a1e25a2488982fc5{transform:translate3d(0,140%,0)}#overlay-root .tgui-c2ca59c94a46245e{bottom:16px}#overlay-root .tgui-c2ca59c94a46245e .tgui-a869502f11f22b6c{border-radius:14px}#overlay-root .tgui-093aea87229643ac,#overlay-root .tgui-229bfa1a0a8ac43f{align-items:center;color:var(--tgui--toast_accent_color);display:flex}#overlay-root .tgui-7d8f183ba67229e9{color:var(--tgui--white);display:flex;flex:1 1 0;flex-direction:column;gap:1px}@keyframes tgui-738ce40067f9bb6e{0%{transform:translate3d(0,140%,0)}to{transform:translateZ(0)}}#overlay-root .tgui-4d26fba7185ffa9f{background:transparent;border:none;color:var(--tgui--toast_accent_color);padding:0}#overlay-root .tgui-86f452d8e92a2075{display:table;position:relative}#overlay-root .tgui-86f452d8e92a2075:before{background-color:var(--tgui--bg_color);background-image:url("data:image/svg+xml,%3csvg%20width='72'%20height='66'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23a)'%20filter='url(%23b)'%20fill='%23000'%3e%3ccircle%20opacity='.75'%20cx='37.5'%20cy='8.5'%20r='.5'/%3e%3ccircle%20cx='4'%20cy='36'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='51.5'%20cy='29.5'%20r='.5'/%3e%3ccircle%20cx='63.5'%20cy='29.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='43.5'%20cy='20.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='2'%20cy='41'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='34.5'%20cy='11.5'%20r='1.5'/%3e%3ccircle%20cx='20'%20cy='17'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='29.5'%20cy='32.5'%20r='.5'/%3e%3ccircle%20cx='14.5'%20cy='1.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='68.5'%20cy='32.5'%20r='1.5'/%3e%3ccircle%20cx='35'%20cy='54'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='35'%20cy='2'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='31.5'%20cy='59.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='68'%20cy='40'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='4.5'%20cy='20.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='7.5'%20cy='28.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='30.5'%20cy='33.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='67.5'%20cy='3.5'%20r='1.5'/%3e%3ccircle%20cx='43.5'%20cy='20.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='.5'%20cy='26.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='25.5'%20cy='9.5'%20r='.5'/%3e%3ccircle%20cx='36.5'%20cy='26.5'%20r='.5'/%3e%3ccircle%20cx='54.5'%20cy='20.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='18.5'%20cy='36.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='3.5'%20cy='63.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='70.5'%20cy='48.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='26.5'%20cy='8.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='57.5'%20cy='31.5'%20r='.5'/%3e%3ccircle%20cx='34'%20cy='17'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='45'%20cy='31'%20r='1'/%3e%3ccircle%20cx='44.5'%20cy='46.5'%20r='1.5'/%3e%3ccircle%20cx='33'%20cy='36'%20r='1'/%3e%3ccircle%20cx='28.5'%20cy='33.5'%20r='.5'/%3e%3ccircle%20cx='61.5'%20cy='27.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='44.5'%20cy='43.5'%20r='.5'/%3e%3ccircle%20cx='54.5'%20cy='37.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='1.5'%20cy='30.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='64'%20cy='16'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='1.5'%20cy='47.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='59.5'%20cy='.5'%20r='.5'/%3e%3ccircle%20cx='5.5'%20cy='50.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='24.5'%20cy='35.5'%20r='1.5'/%3e%3ccircle%20cx='30'%20cy='60'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='57'%20cy='33'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='8'%20cy='54'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='35.5'%20cy='40.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='11.5'%20cy='54.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='46.5'%20cy='29.5'%20r='.5'/%3e%3ccircle%20cx='19'%20cy='13'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='5.5'%20cy='14.5'%20r='1.5'/%3e%3ccircle%20cx='3.5'%20cy='2.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='46'%20cy='29'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='43'%20cy='25'%20r='1'/%3e%3ccircle%20cx='4.5'%20cy='6.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='12'%20cy='34'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='10.5'%20cy='18.5'%20r='.5'/%3e%3ccircle%20cx='61.5'%20cy='3.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='68.5'%20cy='28.5'%20r='1.5'/%3e%3ccircle%20cx='42.5'%20cy='59.5'%20r='1.5'/%3e%3ccircle%20cx='65.5'%20cy='46.5'%20r='1.5'/%3e%3ccircle%20cx='62.5'%20cy='65.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='24.5'%20cy='63.5'%20r='.5'/%3e%3ccircle%20cx='19.5'%20cy='16.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='9.5'%20cy='29.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='27'%20cy='3'%20r='1'/%3e%3ccircle%20cx='40'%20cy='48'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='9'%20cy='7'%20r='1'/%3e%3ccircle%20cx='52.5'%20cy='38.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='71'%20cy='15'%20r='1'/%3e%3ccircle%20cx='11.5'%20cy='20.5'%20r='1.5'/%3e%3ccircle%20cx='31.5'%20cy='16.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='10.5'%20cy='53.5'%20r='.5'/%3e%3ccircle%20cx='41.5'%20cy='55.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='52.5'%20cy='62.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='27'%20cy='19'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='1.5'%20cy='7.5'%20r='1.5'/%3e%3ccircle%20cx='50'%20cy='62'%20r='1'/%3e%3ccircle%20cx='47'%20cy='1'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='24.5'%20cy='54.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='38'%20cy='21'%20r='1'/%3e%3ccircle%20cx='59'%20cy='62'%20r='1'/%3e%3ccircle%20cx='54.5'%20cy='32.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='11'%20cy='9'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='15.5'%20cy='37.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='6.5'%20cy='41.5'%20r='1.5'/%3e%3ccircle%20cx='67.5'%20cy='22.5'%20r='1.5'/%3e%3ccircle%20cx='12.5'%20cy='16.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='17'%20cy='31'%20r='1'/%3e%3ccircle%20cx='14.5'%20cy='58.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='69'%20cy='19'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='57'%20cy='46'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='2'%20cy='25'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='32'%20cy='35'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='26'%20cy='16'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='55'%20cy='57'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='9.5'%20cy='6.5'%20r='.5'/%3e%3ccircle%20cx='61.5'%20cy='35.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='5.5'%20cy='33.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='65.5'%20cy='23.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='38.5'%20cy='23.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='22'%20cy='3'%20r='1'/%3e%3ccircle%20cx='18.5'%20cy='28.5'%20r='1.5'/%3e%3ccircle%20cx='54.5'%20cy='52.5'%20r='.5'/%3e%3ccircle%20cx='69.5'%20cy='54.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='63.5'%20cy='24.5'%20r='.5'/%3e%3ccircle%20cx='6.5'%20cy='34.5'%20r='1.5'/%3e%3ccircle%20cx='60'%20cy='4'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='35'%20cy='34'%20r='1'/%3e%3ccircle%20cx='43.5'%20cy='64.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='5.5'%20cy='33.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='71.5'%20cy='14.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='6.5'%20cy='49.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='66'%20cy='33'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='41'%20cy='54'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='7'%20cy='13'%20r='1'/%3e%3ccircle%20cx='47.5'%20cy='30.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='13'%20cy='31'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='51.5'%20cy='8.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='45.5'%20cy='6.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='4'%20cy='59'%20r='1'/%3e%3ccircle%20cx='15'%20cy='23'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='63'%20cy='47'%20r='1'/%3e%3ccircle%20cx='7'%20cy='31'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='2'%20cy='12'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='50.5'%20cy='35.5'%20r='.5'/%3e%3ccircle%20cx='12'%20cy='35'%20r='1'/%3e%3ccircle%20cx='22.5'%20cy='54.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='60.5'%20cy='53.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='39.5'%20cy='7.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='68.5'%20cy='64.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='18.5'%20cy='37.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='8.5'%20cy='27.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='48.5'%20cy='46.5'%20r='.5'/%3e%3ccircle%20cx='60.5'%20cy='1.5'%20r='1.5'/%3e%3ccircle%20cx='11.5'%20cy='62.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='39.5'%20cy='47.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='25.5'%20cy='1.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='50.5'%20cy='8.5'%20r='1.5'/%3e%3ccircle%20cx='40.5'%20cy='28.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='9.5'%20cy='8.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='66.5'%20cy='57.5'%20r='.5'/%3e%3ccircle%20cx='16'%20cy='39'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='12'%20cy='44'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='44.5'%20cy='28.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='41.5'%20cy='4.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='27.5'%20cy='33.5'%20r='.5'/%3e%3ccircle%20cx='63.5'%20cy='56.5'%20r='.5'/%3e%3ccircle%20cx='34.5'%20cy='45.5'%20r='.5'/%3e%3ccircle%20cx='10.5'%20cy='50.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='17'%20cy='2'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='60.5'%20cy='36.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='49.5'%20cy='34.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='41'%20cy='39'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='32.5'%20cy='41.5'%20r='.5'/%3e%3ccircle%20cx='25.5'%20cy='2.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='36.5'%20cy='40.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='49'%20cy='28'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='27'%20cy='41'%20r='1'/%3e%3ccircle%20cx='2.5'%20cy='26.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='40.5'%20cy='19.5'%20r='.5'/%3e%3ccircle%20cx='11.5'%20cy='52.5'%20r='.5'/%3e%3ccircle%20cx='65.5'%20cy='33.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='52.5'%20cy='19.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='17'%20cy='15'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='16.5'%20cy='11.5'%20r='1.5'/%3e%3ccircle%20cx='20.5'%20cy='9.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='36.5'%20cy='4.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='31.5'%20cy='9.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='71'%20cy='18'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='40'%20cy='50'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='22.5'%20cy='37.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='47'%20cy='51'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='61.5'%20cy='5.5'%20r='1.5'/%3e%3ccircle%20cx='70.5'%20cy='34.5'%20r='.5'/%3e%3ccircle%20cx='14'%20cy='34'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='20'%20cy='33'%20r='1'/%3e%3ccircle%20cx='7.5'%20cy='17.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='14.5'%20cy='41.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='69'%20cy='63'%20r='1'/%3e%3ccircle%20cx='25'%20cy='35'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='43'%20cy='32'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='5.5'%20cy='44.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='29.5'%20cy='14.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='42.5'%20cy='57.5'%20r='.5'/%3e%3ccircle%20cx='42'%20cy='42'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='10.5'%20cy='13.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='57.5'%20cy='32.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='19.5'%20cy='29.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='20.5'%20cy='34.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='7.5'%20cy='17.5'%20r='.5'/%3e%3ccircle%20cx='13'%20cy='61'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='23.5'%20cy='49.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='69.5'%20cy='10.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='15'%20cy='60'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='54'%20cy='53'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='10'%20cy='57'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='45.5'%20cy='10.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='67.5'%20cy='57.5'%20r='.5'/%3e%3ccircle%20cx='60.5'%20cy='7.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='35.5'%20cy='59.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='40'%20cy='26'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='35.5'%20cy='38.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='54.5'%20cy='26.5'%20r='1.5'/%3e%3ccircle%20cx='52.5'%20cy='5.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='37.5'%20cy='9.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='64.5'%20cy='52.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='61'%20cy='7'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='24.5'%20cy='19.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='4'%20cy='59'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='14.5'%20cy='51.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='26.5'%20cy='42.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='8.5'%20cy='33.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='.5'%20cy='36.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='24.5'%20cy='2.5'%20r='1.5'/%3e%3ccircle%20cx='33'%20cy='61'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='70.5'%20cy='24.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='36.5'%20cy='18.5'%20r='1.5'/%3e%3ccircle%20cx='61.5'%20cy='57.5'%20r='.5'/%3e%3ccircle%20cx='43'%20cy='31'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='50'%20cy='11'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='44.5'%20cy='20.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='59.5'%20cy='22.5'%20r='.5'/%3e%3ccircle%20cx='40.5'%20cy='58.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='59.5'%20cy='44.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='23.5'%20cy='30.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='36'%20cy='1'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='28.5'%20cy='13.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='39.5'%20cy='11.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='49'%20cy='38'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='68'%20cy='50'%20r='1'/%3e%3ccircle%20cx='44.5'%20cy='32.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='17.5'%20cy='27.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='23'%20cy='37'%20r='1'/%3e%3ccircle%20cx='-.5'%20cy='60.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='19'%20cy='26'%20r='1'/%3e%3ccircle%20cx='57.5'%20cy='36.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='11.5'%20cy='13.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='56.5'%20cy='48.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='29'%20cy='53'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='3'%20cy='22'%20r='1'/%3e%3ccircle%20cx='8.5'%20cy='63.5'%20r='.5'/%3e%3ccircle%20cx='57.5'%20cy='4.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='63.5'%20cy='4.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='10.5'%20cy='16.5'%20r='1.5'/%3e%3ccircle%20cx='41.5'%20cy='16.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='40.5'%20cy='47.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='60'%20cy='22'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='14.5'%20cy='37.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='15'%20cy='18'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='16.5'%20cy='24.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='8.5'%20cy='64.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='58'%20cy='51'%20r='1'/%3e%3ccircle%20cx='69'%20cy='12'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='39'%20cy='52'%20r='1'/%3e%3ccircle%20cx='51.5'%20cy='9.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='24.5'%20cy='13.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='26.5'%20cy='38.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='63'%20cy='13'%20r='1'/%3e%3ccircle%20cx='39.5'%20cy='36.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='46'%20cy='31'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='40.5'%20cy='13.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='33.5'%20cy='50.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='1.5'%20cy='47.5'%20r='.5'/%3e%3ccircle%20cx='15.5'%20cy='5.5'%20r='1.5'/%3e%3ccircle%20cx='40.5'%20cy='24.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='24.5'%20cy='59.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='45.5'%20cy='36.5'%20r='.5'/%3e%3ccircle%20cx='53.5'%20cy='28.5'%20r='1.5'/%3e%3ccircle%20cx='28'%20cy='34'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='25.5'%20cy='42.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='63.5'%20cy='45.5'%20r='.5'/%3e%3ccircle%20cx='56.5'%20cy='25.5'%20r='1.5'/%3e%3ccircle%20cx='53.5'%20cy='60.5'%20r='1.5'/%3e%3ccircle%20cx='9.5'%20cy='3.5'%20r='1.5'/%3e%3ccircle%20cx='68'%20cy='61'%20r='1'/%3e%3ccircle%20cx='31.5'%20cy='14.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='14.5'%20cy='25.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='8.5'%20cy='55.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='63.5'%20cy='39.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='52.5'%20cy='22.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='13'%20cy='48'%20r='1'/%3e%3ccircle%20cx='40'%20cy='22'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='12'%20cy='23'%20r='1'/%3e%3ccircle%20cx='16.5'%20cy='42.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='17.5'%20cy='28.5'%20r='1.5'/%3e%3ccircle%20cx='63'%20cy='2'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='65'%20cy='12'%20r='1'/%3e%3ccircle%20cx='13.5'%20cy='3.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='31.5'%20cy='36.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='3.5'%20cy='17.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='60.5'%20cy='47.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='13.5'%20cy='45.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='50.5'%20cy='31.5'%20r='.5'/%3e%3ccircle%20cx='64'%20cy='19'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='30.5'%20cy='48.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='19.5'%20cy='7.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='52'%20cy='22'%20r='1'/%3e%3ccircle%20cx='2'%20cy='6'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='46'%20cy='54'%20r='1'/%3e%3ccircle%20cx='57.5'%20cy='13.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='30.5'%20cy='52.5'%20r='.5'/%3e%3ccircle%20cx='38.5'%20cy='60.5'%20r='.5'/%3e%3ccircle%20cx='65.5'%20cy='41.5'%20r='.5'/%3e%3ccircle%20cx='60'%20cy='54'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='47.5'%20cy='47.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='58.5'%20cy='49.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='46'%20cy='62'%20r='1'/%3e%3ccircle%20cx='52.5'%20cy='54.5'%20r='1.5'/%3e%3ccircle%20cx='70.5'%20cy='49.5'%20r='1.5'/%3e%3ccircle%20cx='62.5'%20cy='64.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='48'%20cy='41'%20r='1'/%3e%3ccircle%20cx='21.5'%20cy='62.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='64'%20cy='15'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='49'%20cy='5'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='37.5'%20cy='41.5'%20r='1.5'/%3e%3ccircle%20cx='49.5'%20cy='22.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='49'%20cy='18'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='5.5'%20cy='27.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='42.5'%20cy='49.5'%20r='.5'/%3e%3ccircle%20opacity='.75'%20cx='30.5'%20cy='5.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='6.5'%20cy='32.5'%20r='1.5'/%3e%3ccircle%20cx='8.5'%20cy='38.5'%20r='1.5'/%3e%3ccircle%20cx='17.5'%20cy='55.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='49'%20cy='25'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='7.5'%20cy='32.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='64'%20cy='35'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='26'%20cy='62'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='63.5'%20cy='5.5'%20r='.5'/%3e%3ccircle%20cx='29.5'%20cy='27.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='52.5'%20cy='56.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='2.5'%20cy='26.5'%20r='1.5'/%3e%3ccircle%20cx='18.5'%20cy='32.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='4.5'%20cy='32.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='2.5'%20cy='22.5'%20r='.5'/%3e%3ccircle%20cx='30.5'%20cy='40.5'%20r='.5'/%3e%3ccircle%20opacity='.5'%20cx='56.5'%20cy='38.5'%20r='1.5'/%3e%3ccircle%20cx='26.5'%20cy='22.5'%20r='.5'/%3e%3ccircle%20cx='22'%20cy='26'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='50.5'%20cy='61.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='30.5'%20cy='33.5'%20r='1.5'/%3e%3ccircle%20cx='56.5'%20cy='25.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='15'%20cy='30'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='14.5'%20cy='36.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='15.5'%20cy='61.5'%20r='.5'/%3e%3ccircle%20cx='67'%20cy='16'%20r='1'/%3e%3ccircle%20opacity='.5'%20cx='26'%20cy='37'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='17'%20cy='2'%20r='1'/%3e%3ccircle%20cx='50.5'%20cy='32.5'%20r='1.5'/%3e%3ccircle%20opacity='.5'%20cx='49.5'%20cy='36.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='12'%20cy='29'%20r='1'/%3e%3ccircle%20opacity='.75'%20cx='66.5'%20cy='2.5'%20r='1.5'/%3e%3ccircle%20opacity='.75'%20cx='31.5'%20cy='48.5'%20r='1.5'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h72v66H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20x='0'%20y='0'%20width='72'%20height='66'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20values='0%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200%200%200%201%200'/%3e%3cfeBlend%20in2='shape'%20result='effect1_innerShadow_379_752'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e");bottom:0;content:"";left:0;position:absolute;right:0;top:0;transition:.4s ease;z-index:var(--tgui--z-index--simple)}#overlay-root .tgui-aff2a6268e887037:before{opacity:0}#overlay-root .tgui-abbb25a9ce45033e{cursor:pointer;position:relative}#overlay-root .tgui-6e9776e8c33b2626{cursor:default;opacity:.3}#overlay-root .tgui-21b20ecaad17ccf9{color:var(--tgui--outline);display:block}#overlay-root .tgui-bca5056bf34297b0{color:var(--tgui--link_color);opacity:0;position:absolute;top:0;transition:opacity .15s ease-out}#overlay-root .tgui-60cf4cc79ba44c4f:checked~.tgui-bca5056bf34297b0{opacity:1}#overlay-root .tgui-b9fd8cdf929947df{height:1px;margin:-1px;padding:0;position:absolute;white-space:nowrap;width:1px;clip:rect(0,0,0,0);border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);opacity:0;overflow:hidden}#overlay-root .tgui-a03137b1ed760aaf{display:flex;gap:10px;min-height:48px;padding:10px 12px 10px 16px}#overlay-root .tgui-ca1c0e2d013ae260{min-height:50px;padding:10px 16px}#overlay-root .tgui-f3ab78c8048cb9dc{align-items:center;background:conic-gradient(from 0deg at 50% 50%,#0c28ff,#03ffff,#24d627,#fdff22,#ff2227,#fe2df6,#7122ff 1turn);border-radius:50%;display:flex;height:24px;justify-content:center;position:relative;width:24px}#overlay-root .tgui-93beab8699996b1e{border-radius:50%;height:16px;width:16px}#overlay-root .tgui-93beab8699996b1e:after,#overlay-root .tgui-93beab8699996b1e:before{border-radius:inherit;content:"";position:absolute}#overlay-root .tgui-93beab8699996b1e:before{background:var(--tgui--bg_color);bottom:2px;left:2px;right:2px;top:2px}#overlay-root .tgui-93beab8699996b1e:after{background:inherit;bottom:4px;left:4px;right:4px;top:4px}#overlay-root .tgui-21dba5277ef0ddd7{flex:1 1 0}#overlay-root .tgui-8ca550c2fc85eff5{background:var(--tgui--bg_color);padding:20px 22px 16px;position:relative}#overlay-root .tgui-8ca550c2fc85eff5 .tgui-9f9a52f695b85cc9{background:var(--tgui--bg_color);border-radius:5px;color:var(--tgui--secondary_hint_color);left:32px;max-width:calc(100% - 86px);overflow:hidden;padding:0 6px;position:absolute;text-overflow:ellipsis;top:6px;white-space:nowrap}#overlay-root .tgui-4a83fef1f04acb0e{pointer-events:none;position:relative}#overlay-root .tgui-7707c5d942b7b9af.tgui-4a83fef1f04acb0e{opacity:.35}#overlay-root .tgui-8ca550c2fc85eff5.tgui-4a83fef1f04acb0e:after{background:var(--tgui--bg_color);bottom:0;content:"";left:0;opacity:.5;position:absolute;right:0;top:0}#overlay-root .tgui-0f5050defacbf813{align-items:center;box-sizing:border-box;display:flex}#overlay-root .tgui-16b3783d394bc7db,#overlay-root .tgui-8f04eff653cfa5e5{display:flex}#overlay-root .tgui-8ca550c2fc85eff5 .tgui-0f5050defacbf813{border-radius:14px;box-shadow:0 0 0 2px var(--tgui--outline)}#overlay-root .tgui-8ca550c2fc85eff5.tgui-41b168516bddcf4b .tgui-9f9a52f695b85cc9{color:var(--tgui--destructive_text_color)}#overlay-root .tgui-8ca550c2fc85eff5.tgui-41b168516bddcf4b .tgui-0f5050defacbf813{box-shadow:0 0 0 2px var(--tgui--destructive_text_color)}#overlay-root .tgui-8ca550c2fc85eff5.tgui-89277928456f0e30 .tgui-9f9a52f695b85cc9{color:var(--tgui--link_color)}#overlay-root .tgui-8ca550c2fc85eff5.tgui-89277928456f0e30 .tgui-0f5050defacbf813{box-shadow:0 0 0 2px var(--tgui--link_color)}#overlay-root .tgui-7707c5d942b7b9af .tgui-0f5050defacbf813{background:var(--tgui--bg_color);border-radius:12px}#overlay-root .tgui-7707c5d942b7b9af.tgui-41b168516bddcf4b .tgui-0f5050defacbf813{box-shadow:0 0 0 1.5px var(--tgui--destructive_text_color)}#overlay-root .tgui-d9de1f32aee12a15{gap:12px;padding:12px 16px}#overlay-root .tgui-9b2ad13855aef059{min-height:48px}#overlay-root .tgui-c4863cd4c893a047{background:transparent;border:0;box-sizing:border-box;color:var(--tgui--text_color);display:block;margin:0;outline:0;padding:0;resize:none;text-overflow:ellipsis;width:100%}#overlay-root .tgui-c4863cd4c893a047::-webkit-inner-spin-button,#overlay-root .tgui-c4863cd4c893a047::-webkit-outer-spin-button{-webkit-appearance:none}#overlay-root .tgui-c4863cd4c893a047::-moz-placeholder{color:var(--tgui--secondary_hint_color)}#overlay-root .tgui-c4863cd4c893a047::placeholder{color:var(--tgui--secondary_hint_color)}#overlay-root .tgui-6cca8a28a056cc34{--tgui--multiselect--min-height:52px;min-height:var(--tgui--multiselect--min-height);position:relative;width:100%}#overlay-root .tgui-1ed7193796bd9fff.tgui-1ed7193796bd9fff{min-height:var(--tgui--multiselect--min-height);padding-right:48px}#overlay-root .tgui-e9b05eb8feaa0359{color:var(--tgui--secondary_hint_color);position:absolute;right:16px}#overlay-root .tgui-c56e136f855e5144{--tgui--multiselect--gap:8px;box-sizing:border-box;display:flex;flex-grow:1;flex-shrink:1;flex-wrap:wrap;gap:var(--tgui--multiselect--gap);margin:0;max-width:100%;overflow:hidden;padding:8px;position:relative}#overlay-root .tgui-991d85450550abb9{max-width:calc(100% - var(--tgui--multiselect--gap));padding:6px 12px}#overlay-root .tgui-41e02fd2529dfbd2{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;box-shadow:none;color:var(--tgui--text_color);display:flex;flex:1;flex-direction:column;justify-content:center;outline:none;padding:0 8px;position:relative;width:100%}#overlay-root .tgui-41e02fd2529dfbd2::-moz-placeholder{color:var(--tgui--secondary_hint_color)}#overlay-root .tgui-41e02fd2529dfbd2::placeholder{color:var(--tgui--secondary_hint_color)}#overlay-root .tgui-41e02fd2529dfbd2[readonly]{cursor:default}#overlay-root .tgui-ac1d436c45aafe04 .tgui-41e02fd2529dfbd2{text-overflow:ellipsis;white-space:nowrap}#overlay-root .tgui-0b4134fd8d5c05ac{color:var(--tgui--hint_color);display:flex}#overlay-root .tgui-70d34454bcf3c3e4{background:var(--tgui--bg_color);border-radius:12px;box-shadow:0 32px 64px #0000000a,0 0 2px 1px #00000005;box-sizing:border-box;margin-top:8px;max-height:168px;overflow-y:scroll;width:100%}#overlay-root .tgui-6a25d2bd42bb932c{color:var(--tgui--hint_color)}#overlay-root .tgui-15f9ec3c119467a6{height:48px;padding:0 16px}#overlay-root .tgui-e3f4e376df0c272c{color:var(--tgui--link_color)}#overlay-root .tgui-e9c83f4f150e5513{z-index:var(--tgui--z-index--simple)}#overlay-root .tgui-97a62789a70393d0{position:absolute}#overlay-root .tgui-6ae8c47f9448321b{content:"";display:block;transform:translateY(1px)}#overlay-root .tgui-6c3deae89ec68e99{transform:rotate(90deg) translate(50%,-50%);transform-origin:right}#overlay-root .tgui-fed67e27ad8cb75f{transform:rotate(180deg)}#overlay-root .tgui-b27d1c4f6222569e{transform:rotate(-90deg) translate(-50%,-50%);transform-origin:left}#overlay-root .tgui-9bfdebc3fdae031b{cursor:pointer;position:relative}#overlay-root .tgui-55c1caaee1c1e33e{cursor:default;opacity:.25}#overlay-root .tgui-18734a5360b84fba{color:var(--tgui--outline);display:block}#overlay-root .tgui-1ec4b447aa5cf66a{color:var(--tgui--link_color);opacity:0;position:absolute;top:0}#overlay-root .tgui-18734a5360b84fba,#overlay-root .tgui-1ec4b447aa5cf66a{transition:opacity .15s ease-out}#overlay-root .tgui-7cd9bbef46d9194c:checked~.tgui-18734a5360b84fba{opacity:0}#overlay-root .tgui-7cd9bbef46d9194c:checked~.tgui-1ec4b447aa5cf66a{opacity:1}#overlay-root .tgui-a641ca1e63331268{background:var(--tgui--bg_color);bottom:0;box-sizing:border-box;left:0;padding:32px 20px;position:fixed;right:0;top:0}#overlay-root .tgui-a40b67b8ec9e3a49,#overlay-root .tgui-a641ca1e63331268{align-items:center;display:flex;flex-direction:column;justify-content:center;overflow:hidden}#overlay-root .tgui-a40b67b8ec9e3a49{flex:1 1 0;max-width:100%;text-overflow:ellipsis;white-space:nowrap}#overlay-root .tgui-bf64531d065e1bd9 .tgui-a40b67b8ec9e3a49{flex:unset}#overlay-root .tgui-7df9ee9d6d6586de,#overlay-root .tgui-a40b67b8ec9e3a49{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#overlay-root .tgui-7df9ee9d6d6586de{max-width:100%;text-align:center}#overlay-root .tgui-36c453f0a9d51371{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin-top:20px}#overlay-root .tgui-0e77c7f1a1b82c84{--tgui--pin_input--buttons-gap:12px;--tgui--pin_input--button-width:33.3%;display:flex;flex-direction:column;flex-wrap:wrap;gap:var(--tgui--pin_input--buttons-gap);margin-top:52px;width:100%}#overlay-root .tgui-bf64531d065e1bd9 .tgui-0e77c7f1a1b82c84{--tgui--pin_input--button-width:76px}#overlay-root .tgui-49b69c407401f76c{display:flex;gap:var(--tgui--pin_input--buttons-gap);justify-content:center}#overlay-root .tgui-49b69c407401f76c:last-child{justify-content:flex-end;margin-left:calc(var(--tgui--pin_input--buttons-gap) * 2)}#overlay-root .tgui-bf64531d065e1bd9 .tgui-49b69c407401f76c:last-child{justify-content:center;margin-left:calc(var(--tgui--pin_input--button-width) + var(--tgui--pin_input--buttons-gap))}#overlay-root .tgui-14d79626209a204a{color:var(--tgui--link_color);display:block;margin:auto}#overlay-root .tgui-6eaa561b38208c72{background:var(--tgui--tertiary_bg_color);border:none;border-radius:16px;color:var(--tgui--text_color);height:56px;padding:0;width:var(--tgui--pin_input--button-width)}#overlay-root .tgui-3bea52c968cee224{border-radius:50%;height:76px;width:76px}#overlay-root .tgui-bad1e0d3a612c110{align-items:center;background:var(--tgui--bg_color);border:2.5px solid var(--tgui--divider);border-radius:12px;display:flex;height:44px;justify-content:center;padding:0;transition:border-color .15s ease-out;width:40px}#overlay-root .tgui-b9a1527d00258387{background:var(--tgui--link_color);border:none;border-radius:50%;height:13px;opacity:.1;width:13px}#overlay-root .tgui-b9a1527d00258387.tgui-1d6fb1351888c5e0{opacity:1}#overlay-root .tgui-bad1e0d3a612c110:focus-within{border-color:var(--tgui--link_color)}#overlay-root .tgui-9fa4f4531187df59{background:var(--tgui--text_color);border-radius:50%;height:8px;width:8px}#overlay-root .tgui-de477a8e3910f19f{cursor:pointer;display:block;position:relative}#overlay-root .tgui-d5c5e7402bfd8c12{cursor:default;opacity:.25}#overlay-root .tgui-bfcd091645843388{color:var(--tgui--outline);display:block}#overlay-root .tgui-8d2d5ba97b4abd79{color:var(--tgui--link_color);opacity:0;position:absolute;top:0}#overlay-root .tgui-8d2d5ba97b4abd79,#overlay-root .tgui-bfcd091645843388{transition:opacity .15s ease-out}#overlay-root .tgui-743a4b0f25e5d51b:checked~.tgui-bfcd091645843388{opacity:0}#overlay-root .tgui-743a4b0f25e5d51b:checked~.tgui-8d2d5ba97b4abd79{opacity:1}#overlay-root .tgui-0487bdb4329cd879{display:flex;gap:4px;padding:12px;position:relative}#overlay-root .tgui-6169bc2e9d6fdeb8{color:var(--tgui--tertiary_bg_color);position:relative}#overlay-root .tgui-6169bc2e9d6fdeb8:focus-visible{outline:2px solid var(--tgui--link_color)}#overlay-root .tgui-f0faaa15f44569ba{color:var(--tgui--link_color);position:absolute}#overlay-root .tgui-52ba7059852e9950{bottom:0;margin:0;opacity:0;position:absolute;top:0}#overlay-root .tgui-919c5658483cae11{position:relative}#overlay-root .tgui-a0742fd4c73756f7{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:inherit;border:none;border-radius:inherit;color:var(--tgui--text_color);outline:none;padding:12px 58px 12px 16px;width:100%}#overlay-root .tgui-025a45d791e466f6{color:var(--tgui--secondary_hint_color);pointer-events:none;position:absolute;right:16px;top:50%;transform:translateY(-50%)}#overlay-root .tgui-aa094d6480bfa32a{cursor:pointer;position:relative}#overlay-root .tgui-7d31e315f5cc4733{cursor:default;opacity:.25}#overlay-root .tgui-ad96577f259c5732{color:var(--tgui--link_color);display:block;opacity:0;transition:opacity .15s ease-out}#overlay-root .tgui-6988c618806a5171:checked~.tgui-ad96577f259c5732{opacity:1}#overlay-root .tgui-717c3649db8d5af2{--tgui--slider--thumb--size:12px;align-items:center;box-sizing:border-box;display:flex;gap:24px;min-height:52px;padding:16px 24px}#overlay-root .tgui-35faba867393ce37{border-radius:8px;cursor:pointer;height:var(--tgui--slider--thumb--size);position:relative;width:100%}#overlay-root .tgui-c591a831de13ba23{cursor:default;opacity:.35}#overlay-root .tgui-4de4feff2dcc975c,#overlay-root .tgui-e11a455378c63b15{border-radius:inherit;height:3px;left:0;margin-top:-1px;position:absolute;top:50%}#overlay-root .tgui-e11a455378c63b15{align-items:center;background-color:var(--tgui--tertiary_bg_color);box-sizing:border-box;display:flex;justify-content:space-between;width:100%}#overlay-root .tgui-4de4feff2dcc975c{background:var(--tgui--button_color);width:auto}#overlay-root .tgui-7fe9f0fbc9771947{height:100%;isolation:isolate;margin-left:calc(var(--tgui--slider--thumb--size) / 10);margin-right:calc(var(--tgui--slider--thumb--size) / 10);position:relative;z-index:var(--tgui--z-index--simple)}#overlay-root .tgui-6598607160233201,#overlay-root .tgui-a56564bcfd4b56e5{align-items:center;display:flex;justify-content:center;margin-top:3px}#overlay-root .tgui-d2e2a2e28ef0f746{--tgui--slider--thumb--size:24px;gap:20px;padding:20px}#overlay-root .tgui-d2e2a2e28ef0f746 .tgui-4de4feff2dcc975c,#overlay-root .tgui-d2e2a2e28ef0f746 .tgui-e11a455378c63b15{height:4px;margin-top:-2px}#overlay-root .tgui-b632646f586ff14d{background:var(--tgui--secondary_hint_color);border-radius:50%;height:2px;position:absolute;width:2px}#overlay-root .tgui-2b0a006b5a9ffd68{background:var(--tgui--secondary_hint_color);opacity:.35}#overlay-root .tgui-7951a89b824476b3{background:var(--tgui--tertiary_bg_color);border-radius:3px;height:20px;width:4px}#overlay-root .tgui-7951a89b824476b3.tgui-2b0a006b5a9ffd68{background:var(--tgui--button_color);opacity:1}#overlay-root .tgui-b632646f586ff14d:not(.tgui-7951a89b824476b3):first-child{transform:translate(50%)}#overlay-root .tgui-b632646f586ff14d:last-child{transform:translate(-150%)}#overlay-root .tgui-7951a89b824476b3:last-child{transform:translate(-100%)}#overlay-root .tgui-83b7253102c6addc{background:var(--tgui--button_color);border-radius:50%;height:var(--tgui--slider--thumb--size);position:absolute;top:50%;transform:translate(-50%,-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--tgui--slider--thumb--size);z-index:var(--tgui--z-index--simple)}#overlay-root .tgui-96f5864d281f94a8{background:var(--tgui--white);box-shadow:0 6px 6.5px #0000001f,0 .5px 2px #0000001f}#overlay-root .tgui-abdeb837bfc726cb{height:100%;width:100%}#overlay-root .tgui-a1dc55b304d32032{align-items:center;border-radius:16px;cursor:pointer;display:flex;height:32px;overflow:hidden;position:relative;width:52px}#overlay-root .tgui-57a00e000de7483d{cursor:default;opacity:.4}#overlay-root .tgui-3acc6d0262399734:before{background:var(--tgui--secondary_bg_color);bottom:0;content:"";left:0;position:absolute;right:0;top:0}#overlay-root .tgui-2776944549f431fc .tgui-3acc6d0262399734:before{border:3px solid var(--tgui--secondary_hint_color);border-radius:16px}#overlay-root .tgui-3acc6d0262399734:after{border-radius:50%;content:"";position:absolute;top:50%;transform:translateY(-50%)}#overlay-root .tgui-2776944549f431fc .tgui-3acc6d0262399734:after{background:var(--tgui--secondary_hint_color);height:16px;margin-left:8px;width:16px}#overlay-root .tgui-b70ccb0e7742541a .tgui-3acc6d0262399734:after{background:var(--tgui--white);box-shadow:0 3px 1px #0000000f,0 3px 8px #00000026,0 0 0 1px #0000000a;height:28px;margin-left:2px;width:28px}#overlay-root .tgui-edfaab8ff474b0de:checked+.tgui-3acc6d0262399734:before{background-color:var(--tgui--link_color);border-color:var(--tgui--link_color)}#overlay-root .tgui-2776944549f431fc .tgui-edfaab8ff474b0de:checked+.tgui-3acc6d0262399734:after{height:24px;width:24px}#overlay-root .tgui-edfaab8ff474b0de:checked+.tgui-3acc6d0262399734:after{transform:translate(20px) translateY(-50%)}#overlay-root .tgui-2776944549f431fc .tgui-edfaab8ff474b0de:checked+.tgui-3acc6d0262399734:after{background:var(--tgui--white);transform:translate(16px) translateY(-50%)}@media (prefers-reduced-motion:no-preference){#overlay-root .tgui-3acc6d0262399734:before{transition:background-color,border-color 67ms linear}#overlay-root .tgui-3acc6d0262399734:after{transition:transform .3s cubic-bezier(.175,.885,.32,1.275) 0s}#overlay-root .tgui-b70ccb0e7742541a .tgui-3acc6d0262399734:before{transition:background-color .2s ease}#overlay-root .tgui-b70ccb0e7742541a .tgui-3acc6d0262399734:after{transition:transform .2s cubic-bezier(.36,-.24,.26,1.32)}}#overlay-root .tgui-d40ec83150e66029{background:inherit;border:none;border-radius:inherit;color:var(--tgui--text_color);min-height:80px;outline:none;padding:12px 16px;resize:none;width:100%}#overlay-root .tgui-d40ec83150e66029::-moz-placeholder{color:var(--tgui--secondary_hint_color)}#overlay-root .tgui-d40ec83150e66029::placeholder{color:var(--tgui--secondary_hint_color)}#overlay-root .tgui-2453b62de8016bfa .tgui-d40ec83150e66029{min-height:84px;padding:16px}#overlay-root .tgui-7a5facec9dc28fae{left:0;position:fixed;right:0}#overlay-root .tgui-d83e15d73344cdc0{top:0}#overlay-root .tgui-01790b7e59088ea5{bottom:0;padding-bottom:var(--tgui--safe_area_inset_bottom)}#overlay-root .tgui-53cb2ebed0c3b08f{background:var(--tgui--surface_primary);box-shadow:0 -1px 0 var(--tgui--divider);display:flex;justify-items:stretch;padding:0 16px}#overlay-root .tgui-a2b4713d67582227{padding:0}#overlay-root .tgui-64cd0db020a9bacf{align-items:center;background:transparent;border:none;color:var(--tgui--secondary_hint_color);display:flex;flex:1 0 0;flex-direction:column;gap:6px;justify-content:center;margin:0;max-width:100%;min-width:0;padding:12px 16px 16px;transition:.15s ease-out}#overlay-root .tgui-ecbb746748ea4134{gap:4px;padding:8px 12px 4px}#overlay-root .tgui-e6658d0b8927f95e{color:var(--tgui--link_color)}#overlay-root .tgui-e6658d0b8927f95e:not(.tgui-ecbb746748ea4134) .tgui-44d48e11585af170{background:var(--tgui--secondary_fill)}#overlay-root .tgui-44d48e11585af170{border-radius:35px;display:flex;justify-content:center;min-width:64px;padding:2px 10px}#overlay-root .tgui-ecbb746748ea4134 .tgui-44d48e11585af170{padding:0}#overlay-root .tgui-aeab497081949a15{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#overlay-root .tgui-0eddcd83377979c2,#overlay-root .tgui-68fc52f1068b8e16{align-items:center;display:flex}#overlay-root .tgui-0eddcd83377979c2{color:var(--tgui--divider);height:20px;justify-content:center;margin:0 -6px;width:24px}#overlay-root .tgui-a9c3d618b6e43d64{color:var(--tgui--link_color)}#overlay-root .tgui-32fe6ce00169d72e{border-radius:8px;color:var(--tgui--hint_color);cursor:pointer;padding:8px 10px;text-decoration:none;transition:opacity .15s ease-out}#overlay-root .tgui-32fe6ce00169d72e:active{opacity:.5}@media (hover:hover) and (pointer:fine){#overlay-root .tgui-32fe6ce00169d72e:hover{background:var(--tgui--tertiary_bg_color)}}#overlay-root .tgui-442a9579d6c19dc4{--tgui--compact_pagination--dot--opacity--selected:.1;--tgui--compact_pagination--dot--background--selected:var(--tgui--link_color);display:inline-flex;gap:8px;padding:4px}#overlay-root .tgui-15adbef8fe5efed9{backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);background:#00000040;border-radius:28px;padding:8px 9px}#overlay-root .tgui-15adbef8fe5efed9,#overlay-root .tgui-cdc228e9d92dac5b{--tgui--compact_pagination--dot--opacity--selected:.25;--tgui--compact_pagination--dot--background--selected:var(--tgui--white);gap:6px}#overlay-root .tgui-cdc228e9d92dac5b{padding:0}#overlay-root .tgui-747563e660315b07{background:var(--tgui--compact_pagination--dot--background--selected,var(--tgui--link_color));border:none;border-radius:50%;cursor:pointer;display:block;height:8px;opacity:var(--tgui--compact_pagination--dot--opacity--selected,.25);padding:0;transition:opacity .15s ease-in-out;width:8px}#overlay-root .tgui-6d14364fac453a65{opacity:1}#overlay-root .tgui-bfabaddd169233a9{color:var(--tgui--link_color);text-decoration:none}#overlay-root .tgui-38580a5c868cecc4{display:flex;gap:8px;padding:16px}#overlay-root .tgui-645f8efe8c9c3cc5{opacity:.35}#overlay-root .tgui-8dab5cf704c88e82{align-items:center;background:transparent;border:none;border-radius:12px;box-sizing:border-box;color:var(--tgui--hint_color);cursor:pointer;display:flex;height:44px;justify-content:center;min-width:44px;padding:0 10px}#overlay-root .tgui-64016be270020f33{background:var(--tgui--tertiary_bg_color);color:var(--textColor)}#overlay-root .tgui-a43e090d3501d4ca{cursor:default;opacity:.35}#overlay-root .tgui-670c6b2f3c8df445{cursor:default;opacity:1}#overlay-root .tgui-2636b28cb21c42cc{color:var(--tgui--link_color)}#overlay-root .tgui-71259e3311d7116e{background:var(--tgui--tertiary_bg_color);border-radius:44px;box-sizing:border-box;height:100%;overflow:hidden;padding:2px;width:100%}#overlay-root .tgui-b0a9057ab5d33005{align-content:stretch;align-items:center;border-radius:inherit;box-sizing:border-box;display:flex;height:100%;position:relative;width:100%}#overlay-root .tgui-31f461ccfea23ec3{background:var(--tgui--segmented_control_active_bg);border-radius:40px;bottom:0;box-sizing:border-box;left:0;position:absolute;right:0;top:0;transition:transform .15s;z-index:var(--tgui--z-index--simple)}#overlay-root .tgui-16c6b1986a48e2b5{background:var(--tgui--tertiary_bg_color);border-radius:9px}#overlay-root .tgui-16c6b1986a48e2b5 .tgui-31f461ccfea23ec3{border:var(--tgui--border--width) solid rgba(0,0,0,.04);border-radius:inherit;box-shadow:0 3px 1px #0000000a,0 3px 8px #0000001f}#overlay-root .tgui-bbfb272d22eb23e8{background:transparent;border:none;border-radius:inherit;color:var(--tgui--text_color);flex:1 1 0;max-width:100%;overflow:hidden;padding:10px 24px;text-overflow:ellipsis;white-space:nowrap;z-index:var(--tgui--z-index--simple)}#overlay-root .tgui-513fce1023cbbd63{padding:6px 24px}#overlay-root .tgui-89d3925598b8fd68{align-content:stretch;align-items:center;display:flex;gap:12px;height:100%;overflow:hidden;position:relative;width:100%}#overlay-root .tgui-8e986e14448c29e6{background:var(--tgui--button_color);border-radius:4px 4px 1px 1px;bottom:0;height:3px;left:0;position:absolute;right:0;transition:transform 125ms}#overlay-root .tgui-96892ceed80c1bf3{background:transparent;border:none;border-radius:inherit;color:var(--tgui--secondary_hint_color);flex:1 0 0;height:44px;max-width:100%;overflow:hidden;text-overflow:ellipsis;transition:color 125ms;white-space:nowrap}#overlay-root .tgui-44ea091aea23df33{color:var(--tgui--link_color)}#overlay-root .tgui-cc76354712c6e8d9{background-color:var(--tgui--bg_color);border-top-left-radius:16px;border-top-right-radius:16px;bottom:0;display:flex;flex-direction:column;left:0;max-height:96%;outline:none;position:fixed;right:0;z-index:var(--tgui--z-index--overlay)}#overlay-root .tgui-2c53ae2ef0209d4d{align-items:center;border-bottom:1px solid var(--tgui--divider);display:flex;justify-content:space-between;padding:16px}#overlay-root .tgui-5dc6ad1ca3ac3ed4{overflow-y:auto;padding-bottom:var(--tgui--safe_area_inset_bottom)}#overlay-root .tgui-f67c8fb3553eee55{align-items:center;box-sizing:border-box;display:flex;gap:12px;justify-content:space-between;padding:16px;position:relative}#overlay-root .tgui-f67c8fb3553eee55:before{background:var(--tgui--divider);border-radius:4px;content:"";height:4px;left:50%;position:absolute;top:8px;transform:translate(-50%);width:36px}#overlay-root .tgui-09b5f6cfd7ba56ab,#overlay-root .tgui-fe1d6742d85038d7{align-items:center;display:flex;flex:1 0 0}#overlay-root .tgui-09b5f6cfd7ba56ab{justify-content:flex-start}#overlay-root .tgui-fe1d6742d85038d7{justify-content:flex-end}#overlay-root .tgui-7ce1022bfdcb0ae3{--tgui--text--line_height:28px;display:block;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}#overlay-root .tgui-3197096cb603b35a{bottom:0;left:0;position:fixed;right:0;top:0;z-index:var(--tgui--z-index--overlay)}#overlay-root .tgui-5638a4ef4e806d8c{background:var(--tgui--white);border-radius:12px;box-shadow:0 8px 24px #0000001a;color:var(--tgui--black);padding:10px}#overlay-root .tgui-bc60ca772e3ae3c6{background:var(--tooltip_background_dark);box-shadow:none}#overlay-root .tgui-5638a4ef4e806d8c .tgui-e0107e1e5ea5b9f3,#overlay-root .tgui-bc60ca772e3ae3c6{color:var(--tgui--white)}#overlay-root .tgui-bc60ca772e3ae3c6 .tgui-e0107e1e5ea5b9f3{color:var(--tooltip_background_dark)}#overlay-root .tgui-e37c114229ebfe85 .tgui-bc60ca772e3ae3c6{backdrop-filter:blur(50px);-webkit-backdrop-filter:blur(50px)}#overlay-root .tgui-6a12827a138e8827{--tgui--font-family:system-ui,-apple-system,BlinkMacSystemFont,"Roboto","Apple Color Emoji","Helvetica Neue",sans-serif;--tgui--font_weight--accent1:700;--tgui--font_weight--accent2:600;--tgui--font_weight--accent3:400;--tgui--large_title--font_size:34px;--tgui--large_title--line_height:42px;--tgui--title1--font_size:28px;--tgui--title1--line_height:36px;--tgui--title2--font_size:24px;--tgui--title2--line_height:32px;--tgui--title3--font_size:20px;--tgui--title3--line_height:24px;--tgui--headline--font_size:19px;--tgui--headline--line_height:28px;--tgui--text--font_size:17px;--tgui--text--line_height:26px;--tgui--subheadline1--font_size:16px;--tgui--subheadline1--line_height:24px;--tgui--subheadline2--font_size:15px;--tgui--subheadline2--line_height:22px;--tgui--caption1--font_size:13px;--tgui--caption1--line_height:20px;--tgui--caption2--font_size:11px;--tgui--caption2--line_height:16px;--tgui--border--width:1px;--tgui--base--section--box_shadow:0 1px 2px 0 rgba(0,0,0,.1);--tgui--bg_color:var(--tg-theme-bg-color,#fff);--tgui--text_color:var(--tg-theme-text-color,#000);--tgui--hint_color:var(--tg-theme-hint-color,#707579);--tgui--link_color:var(--tg-theme-link-color,#007aff);--tgui--button_color:var(--tg-theme-button-color,#007aff);--tgui--button_text_color:var(--tg-theme-button-text-color,#fff);--tgui--secondary_bg_color:var(--tg-theme-secondary-bg-color,#efeff4);--tgui--header_bg_color:var(--tg-theme-header-bg-color,#fff);--tgui--accent_text_color:var(--tg-theme-accent-text-color,#007aff);--tgui--section_bg_color:var(--tg-theme-section-bg-color,#fff);--tgui--section_header_text_color:var(--tg-theme-section-header-text-color,#707579);--tgui--subtitle_text_color:var(--tg-theme-subtitle-text-color,#707579);--tgui--destructive_text_color:var(--tg-theme-destructive-text-color,#e53935);--tgui--skeleton:hsla(0,0%,100%,.03);--tgui--divider:rgba(0,0,0,.15);--tgui--outline:rgba(0,0,0,.05);--tgui--surface_primary:hsla(0,0%,100%,.95);--tgui--tertiary_bg_color:#f4f4f7;--tgui--quartenary_bg_color:#f6f6fa;--tgui--segmented_control_active_bg:#fff;--tgui--card_bg_color:#fff;--tgui--secondary_hint_color:#a2acb0;--tgui--secondary_fill:rgba(67,120,255,.1);--tgui--green:#31d158;--tgui--destructive_background:#e53935;--tgui--primary_code_highlight:#4378ff;--tgui--secondary_code_highlight:#b00fb4;--tgui--tertiary_code_highlight:#3a9f20;--tgui--plain_background:rgba(0,0,0,.04);--tgui--plain_foreground:rgba(0,0,0,.8);--tgui--toast_accent_color:#55a6ff;--tgui--surface_dark:rgba(56,56,56,.85);--tooltip_background_dark:rgba(0,0,0,.85);--tgui--white:#fff;--tgui--black:#000;--tgui--z-index--simple:1;--tgui--z-index--skeleton:2;--tgui--z-index--overlay:3;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;color:var(--tgui--text_color)}#overlay-root .tgui-56dbb42c1dbd5e2b{--tgui--large_title--line_height:41px;--tgui--title1--line_height:34px;--tgui--title2--line_height:28px;--tgui--title3--line_height:25px;--tgui--headline--line_height:24px;--tgui--text--line_height:22px;--tgui--subheadline1--line_height:21px;--tgui--subheadline2--line_height:20px;--tgui--caption1--line_height:16px;--tgui--caption2--line_height:13px}#overlay-root .tgui-865b921add8ee075{--tgui--bg_color:var(--tg-theme-bg-color,#212121);--tgui--text_color:var(--tg-theme-text-color,#fff);--tgui--hint_color:var(--tg-theme-hint-color,#aaa);--tgui--link_color:var(--tg-theme-link-color,#2990ff);--tgui--button_color:var(--tg-theme-button-color,#2990ff);--tgui--button_text_color:var(--tg-theme-button-text-color,#fff);--tgui--secondary_bg_color:var(--tg-theme-secondary-bg-color,#0f0f0f);--tgui--header_bg_color:var(--tg-theme-header-bg-color,#212121);--tgui--accent_text_color:var(--tg-theme-accent-text-color,#007aff);--tgui--section_bg_color:var(--tg-theme-section-bg-color,#212121);--tgui--section_header_text_color:var(--tg-theme-section-header-text-color,#aaa);--tgui--subtitle_text_color:var(--tg-theme-subtitle-text-color,#aaa);--tgui--destructive_text_color:var(--tg-theme-destructive-text-color,#e53935);--tgui--skeleton:hsla(0,0%,100%,.03);--tgui--divider:hsla(0,0%,100%,.05);--tgui--outline:hsla(0,0%,100%,.1);--tgui--surface_primary:hsla(0,0%,9%,.95);--tgui--tertiary_bg_color:#2a2a2a;--tgui--quartenary_bg_color:#2f2f2f;--tgui--segmented_control_active_bg:#2f2f2f;--tgui--card_bg_color:#242424;--tgui--secondary_hint_color:#78797e;--tgui--secondary_fill:rgba(41,144,255,.15);--tgui--green:#32e55e;--tgui--destructive_background:rgba(255,35,35,.02);--tgui--primary_code_highlight:#2990ff;--tgui--secondary_code_highlight:#e937ed;--tgui--tertiary_code_highlight:#5ae536;--tgui--plain_background:hsla(0,0%,100%,.08);--tgui--plain_foreground:hsla(0,0%,100%,.95)}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){#overlay-root .tgui-6a12827a138e8827{--tgui--border--width:.5px}}@supports (padding-top:constant(safe-area-inset-bottom)){#overlay-root .tgui-6a12827a138e8827{--tgui--safe_area_inset_bottom:constant(safe-area-inset-bottom)}}@supports (padding-top:env(safe-area-inset-bottom)){#overlay-root .tgui-6a12827a138e8827{--tgui--safe_area_inset_bottom:env(safe-area-inset-bottom)}}@supports (color:color-mix(in srgb,var(--tgui--accent_text_color ) 10%,transparent)){#overlay-root .tgui-6a12827a138e8827{--tgui--secondary_fill:color-mix(in srgb,var(--tgui--accent_text_color) 10%,transparent)}#overlay-root .tgui-865b921add8ee075{--tgui--secondary_fill:color-mix(in srgb,var(--tgui--accent_text_color) 15%,transparent)}}#overlay-root .ui-snackbar#snackbar{animation:tgui-738ce40067f9bb6e .34s cubic-bezier(.3,.3,.5,1);box-sizing:border-box;max-width:460px;position:fixed;transition:transform .32s cubic-bezier(.3,.3,.5,1);-webkit-user-select:none;user-select:none;z-index:4;bottom:calc(10px + var(--tg-safe-area-inset-bottom, 0px))!important;left:calc(10px + var(--tg-safe-area-inset-left, 0px));right:calc(10px + var(--tg-safe-area-inset-right, 0px))}#overlay-root .ui-snackbar#snackbar>div{align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:var(--tgui--surface_dark);bottom:0;box-sizing:border-box;display:flex;gap:12px;left:0;position:sticky;right:0;top:0;width:100%;padding:10px 14px;border-radius:14px}#overlay-root .ui-snackbar#snackbar .before,#overlay-root .ui-snackbar#snackbar .after{align-items:center;color:var(--tgui--toast_accent_color);display:flex}#overlay-root .ui-snackbar#snackbar .content{color:var(--tgui--white);display:flex;flex:1 1;flex-direction:column;gap:1px}#overlay-root .ui-snackbar#snackbar.enter{animation:slideInFromBottom .34s cubic-bezier(.3,.3,.5,1)}#overlay-root .ui-snackbar#snackbar.exit{animation:slideOutToBottom .34s cubic-bezier(.3,.3,.5,1)}#overlay-root .ui-snackbar--success_top#snackbar,#overlay-root .ui-snackbar--warning#snackbar,#overlay-root .ui-snackbar--error#snackbar{bottom:auto!important;top:calc(10px + var(--tg-safe-area-inset-top, 0px))!important}#overlay-root .ui-snackbar--success_top#snackbar.enter,#overlay-root .ui-snackbar--warning#snackbar.enter,#overlay-root .ui-snackbar--error#snackbar.enter{animation:slideInFromTop .34s cubic-bezier(.3,.3,.5,1)}#overlay-root .ui-snackbar--success_top#snackbar.exit,#overlay-root .ui-snackbar--warning#snackbar.exit,#overlay-root .ui-snackbar--error#snackbar.exit{animation:slideOutToTop .34s cubic-bezier(.3,.3,.5,1)}@keyframes slideInFromBottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideOutToBottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slideInFromTop{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes slideOutToTop{0%{transform:translateY(0)}to{transform:translateY(-100%)}}#overlay-root .xs-button{height:28px!important;min-height:28px!important;max-height:28px!important;min-width:32px!important;gap:6px!important;padding:0 10px!important;border-radius:14px!important;min-inline-size:32px!important;display:flex!important;align-items:center!important;justify-content:center!important}#overlay-root .xs-button [role=status]{color:inherit!important}#overlay-root .xs-button h6{margin:0!important;padding:0!important;line-height:1!important;display:flex!important;align-items:center!important}#overlay-root .xs-button>div{display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}`)),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
(function(ct,_t){typeof exports=="object"&&typeof module<"u"?_t(exports):typeof define=="function"&&define.amd?define(["exports"],_t):(ct=typeof globalThis<"u"?globalThis:ct||self,_t(ct.OrbitSDK={}))})(this,function(exports){"use strict";var Pf=ct=>{throw TypeError(ct)};var Wl=(ct,_t,Gt)=>_t.has(ct)||Pf("Cannot "+Gt);var te=(ct,_t,Gt)=>(Wl(ct,_t,"read from private field"),Gt?Gt.call(ct):_t.get(ct)),Ye=(ct,_t,Gt)=>_t.has(ct)?Pf("Cannot add the same private member more than once"):_t instanceof WeakSet?_t.add(ct):_t.set(ct,Gt),Le=(ct,_t,Gt,vr)=>(Wl(ct,_t,"write to private field"),vr?vr.call(ct,Gt):_t.set(ct,Gt),Gt),st=(ct,_t,Gt)=>(Wl(ct,_t,"access private method"),Gt);var oa=(ct,_t,Gt,vr)=>({set _(Fr){Le(ct,_t,Fr,Gt)},get _(){return te(ct,_t,vr)}});var ct,_t,Gt,vr,Fr,fi,ec,di,mn,pi,tc,Fn,rc,jn,mi,yr,Bn,Bt,rs,Vn,Tr,pn,nc,sr,lt,ns,er,Un,gi,Xr,gn,is,vi,yi,zn,Gn,vn,_i,mt,Gs,Hl,ql,Kl,Yl,Xl,Ql,Jl,If,ic,ss,jr,tr,Wn,Br,$n,sc,Qr,Ar,os,oc,Jr,yn,or,Zr,tn,aa,Zl,ac,Vr,lc,kt,_n,bn,bi,xi,xn,Si,Ei,cc,uc,fc,dc,hc;function _mergeNamespaces(e,t){for(var i=0;i<t.length;i++){const s=t[i];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(s,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const version="1.92.
|
|
2
|
+
(function(ct,_t){typeof exports=="object"&&typeof module<"u"?_t(exports):typeof define=="function"&&define.amd?define(["exports"],_t):(ct=typeof globalThis<"u"?globalThis:ct||self,_t(ct.OrbitSDK={}))})(this,function(exports){"use strict";var Pf=ct=>{throw TypeError(ct)};var Wl=(ct,_t,Gt)=>_t.has(ct)||Pf("Cannot "+Gt);var te=(ct,_t,Gt)=>(Wl(ct,_t,"read from private field"),Gt?Gt.call(ct):_t.get(ct)),Ye=(ct,_t,Gt)=>_t.has(ct)?Pf("Cannot add the same private member more than once"):_t instanceof WeakSet?_t.add(ct):_t.set(ct,Gt),Le=(ct,_t,Gt,vr)=>(Wl(ct,_t,"write to private field"),vr?vr.call(ct,Gt):_t.set(ct,Gt),Gt),st=(ct,_t,Gt)=>(Wl(ct,_t,"access private method"),Gt);var oa=(ct,_t,Gt,vr)=>({set _(Fr){Le(ct,_t,Fr,Gt)},get _(){return te(ct,_t,vr)}});var ct,_t,Gt,vr,Fr,fi,ec,di,mn,pi,tc,Fn,rc,jn,mi,yr,Bn,Bt,rs,Vn,Tr,pn,nc,sr,lt,ns,er,Un,gi,Xr,gn,is,vi,yi,zn,Gn,vn,_i,mt,Gs,Hl,ql,Kl,Yl,Xl,Ql,Jl,If,ic,ss,jr,tr,Wn,Br,$n,sc,Qr,Ar,os,oc,Jr,yn,or,Zr,tn,aa,Zl,ac,Vr,lc,kt,_n,bn,bi,xi,xn,Si,Ei,cc,uc,fc,dc,hc;function _mergeNamespaces(e,t){for(var i=0;i<t.length;i++){const s=t[i];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(s,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const version="1.92.2";function getDefaultExportFromCjs$3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
5
5
|
*
|
|
@@ -96,7 +96,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
96
96
|
${y}px !important;
|
|
97
97
|
top: ${m}px !important;
|
|
98
98
|
}
|
|
99
|
-
`),()=>{w.contains(S)&&w.removeChild(S)}},[t]),jsxRuntimeExports.jsx(PopChildMeasure,{isPresent:t,childRef:a,sizeRef:l,children:reactExports.cloneElement(e,{ref:u})})}const PresenceChild=({children:e,initial:t,isPresent:i,onExitComplete:s,custom:o,presenceAffectsLayout:a,mode:l,anchorX:c,root:u})=>{const d=useConstant(newChildrenMap),p=reactExports.useId();let m=!0,g=reactExports.useMemo(()=>(m=!1,{id:p,initial:t,isPresent:i,custom:o,onExitComplete:b=>{d.set(b,!0);for(const y of d.values())if(!y)return;s&&s()},register:b=>(d.set(b,!1),()=>d.delete(b))}),[i,d,s]);return a&&m&&(g={...g}),reactExports.useMemo(()=>{d.forEach((b,y)=>d.set(y,!1))},[i]),reactExports.useEffect(()=>{!i&&!d.size&&s&&s()},[i]),l==="popLayout"&&(e=jsxRuntimeExports.jsx(PopChild,{isPresent:i,anchorX:c,root:u,children:e})),jsxRuntimeExports.jsx(PresenceContext.Provider,{value:g,children:e})};function newChildrenMap(){return new Map}function usePresence(e=!0){const t=reactExports.useContext(PresenceContext);if(t===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:o}=t,a=reactExports.useId();reactExports.useEffect(()=>{if(e)return o(a)},[e]);const l=reactExports.useCallback(()=>e&&s&&s(a),[a,s,e]);return!i&&s?[!1,l]:[!0]}const getChildKey=e=>e.key||"";function onlyElements(e){const t=[];return reactExports.Children.forEach(e,i=>{reactExports.isValidElement(i)&&t.push(i)}),t}const AnimatePresence=({children:e,custom:t,initial:i=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:a="sync",propagate:l=!1,anchorX:c="left",root:u})=>{const[d,p]=usePresence(l),m=reactExports.useMemo(()=>onlyElements(e),[e]),g=l&&!d?[]:m.map(getChildKey),b=reactExports.useRef(!0),y=reactExports.useRef(m),S=useConstant(()=>new Map),[w,E]=reactExports.useState(m),[A,T]=reactExports.useState(m);useIsomorphicLayoutEffect(()=>{b.current=!1,y.current=m;for(let k=0;k<A.length;k++){const F=getChildKey(A[k]);g.includes(F)?S.delete(F):S.get(F)!==!0&&S.set(F,!1)}},[A,g.length,g.join("-")]);const P=[];if(m!==w){let k=[...m];for(let F=0;F<A.length;F++){const N=A[F],U=getChildKey(N);g.includes(U)||(k.splice(F,0,N),P.push(N))}return a==="wait"&&P.length&&(k=P),T(onlyElements(k)),E(m),null}const{forceRender:O}=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:A.map(k=>{const F=getChildKey(k),N=l&&!d?!1:m===A||g.includes(F),U=()=>{if(S.has(F))S.set(F,!0);else return;let H=!0;S.forEach(Y=>{Y||(H=!1)}),H&&(O==null||O(),T(y.current),l&&(p==null||p()),s&&s())};return jsxRuntimeExports.jsx(PresenceChild,{isPresent:N,initial:!b.current||i?void 0:!1,custom:t,presenceAffectsLayout:o,mode:a,root:u,onExitComplete:N?void 0:U,anchorX:c,children:k},F)})})},LazyContext=reactExports.createContext({strict:!1}),featureProps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},featureDefinitions={};for(const e in featureProps)featureDefinitions[e]={isEnabled:t=>featureProps[e].some(i=>!!t[i])};function loadFeatures(e){for(const t in e)featureDefinitions[t]={...featureDefinitions[t],...e[t]}}const validMotionProps=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||validMotionProps.has(e)}let shouldForward=e=>!isValidMotionProp(e);function loadExternalIsValidProp(e){typeof e=="function"&&(shouldForward=t=>t.startsWith("on")?!isValidMotionProp(t):e(t))}try{loadExternalIsValidProp(require("@emotion/is-prop-valid").default)}catch{}function filterProps(e,t,i){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(shouldForward(o)||i===!0&&isValidMotionProp(o)||!t&&!isValidMotionProp(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}const MotionContext=reactExports.createContext({});function isAnimationControls(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function isVariantLabel(e){return typeof e=="string"||Array.isArray(e)}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants(e){return isAnimationControls(e.animate)||variantProps.some(t=>isVariantLabel(e[t]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}function getCurrentTreeVariants(e,t){if(isControllingVariants(e)){const{initial:i,animate:s}=e;return{initial:i===!1||isVariantLabel(i)?i:void 0,animate:isVariantLabel(s)?s:void 0}}return e.inherit!==!1?t:{}}function useCreateMotionContext(e){const{initial:t,animate:i}=getCurrentTreeVariants(e,reactExports.useContext(MotionContext));return reactExports.useMemo(()=>({initial:t,animate:i}),[variantLabelsAsDependency(t),variantLabelsAsDependency(i)])}function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}const scaleCorrectors={};function addScaleCorrector(e){for(const t in e)scaleCorrectors[t]=e[t],isCSSVariableName(t)&&(scaleCorrectors[t].isCSSVariable=!0)}function isForcedMotionValue(e,{layout:t,layoutId:i}){return transformProps.has(e)||e.startsWith("origin")||(t||i!==void 0)&&(!!scaleCorrectors[e]||e==="opacity")}const translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform(e,t,i){let s="",o=!0;for(let a=0;a<numTransforms;a++){const l=transformPropOrder[a],c=e[l];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(l.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||i){const d=getValueAsType(c,numberValueTypes[l]);if(!u){o=!1;const p=translateAlias[l]||l;s+=`${p}(${d}) `}i&&(t[l]=d)}}return s=s.trim(),i?s=i(t,o?"":s):o&&(s="none"),s}function buildHTMLStyles(e,t,i){const{style:s,vars:o,transformOrigin:a}=e;let l=!1,c=!1;for(const u in t){const d=t[u];if(transformProps.has(u)){l=!0;continue}else if(isCSSVariableName(u)){o[u]=d;continue}else{const p=getValueAsType(d,numberValueTypes[u]);u.startsWith("origin")?(c=!0,a[u]=p):s[u]=p}}if(t.transform||(l||i?s.transform=buildTransform(t,e.transform,i):s.transform&&(s.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:p=0}=a;s.transformOrigin=`${u} ${d} ${p}`}}const createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(e,t,i){for(const s in t)!isMotionValue(t[s])&&!isForcedMotionValue(s,i)&&(e[s]=t[s])}function useInitialMotionValues({transformTemplate:e},t){return reactExports.useMemo(()=>{const i=createHtmlRenderState();return buildHTMLStyles(i,t,e),Object.assign({},i.vars,i.style)},[t])}function useStyle(e,t){const i=e.style||{},s={};return copyRawValuesOnly(s,i,e),Object.assign(s,useInitialMotionValues(e,t)),s}function useHTMLProps(e,t){const i={},s=useStyle(e,t);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=s,i}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath(e,t,i=1,s=0,o=!0){e.pathLength=1;const a=o?dashKeys:camelKeys;e[a.offset]=px.transform(-s);const l=px.transform(t),c=px.transform(i);e[a.array]=`${l} ${c}`}function buildSVGAttrs(e,{attrX:t,attrY:i,attrScale:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,d,p){if(buildHTMLStyles(e,c,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),i!==void 0&&(m.y=i),s!==void 0&&(m.scale=s),o!==void 0&&buildSVGPath(m,o,a,l,!1)}const createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=e=>typeof e=="string"&&e.toLowerCase()==="svg";function useSVGProps(e,t,i,s){const o=reactExports.useMemo(()=>{const a=createSvgRenderState();return buildSVGAttrs(a,t,isSVGTag(s),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};copyRawValuesOnly(a,e.style,e),o.style={...a,...o.style}}return o}const lowercaseSVGElements=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent(e){return typeof e!="string"||e.includes("-")?!1:!!(lowercaseSVGElements.indexOf(e)>-1||/[A-Z]/u.test(e))}function useRender(e,t,i,{latestValues:s},o,a=!1){const c=(isSVGComponent(e)?useSVGProps:useHTMLProps)(t,s,o,e),u=filterProps(t,typeof e=="string",a),d=e!==reactExports.Fragment?{...u,...c,ref:i}:{},{children:p}=t,m=reactExports.useMemo(()=>isMotionValue(p)?p.get():p,[p]);return reactExports.createElement(e,{...d,children:m})}function getValueState(e){const t=[{},{}];return e==null||e.values.forEach((i,s)=>{t[0][s]=i.get(),t[1][s]=i.getVelocity()}),t}function resolveVariantFromProps(e,t,i,s){if(typeof t=="function"){const[o,a]=getValueState(s);t=t(i!==void 0?i:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,a]=getValueState(s);t=t(i!==void 0?i:e.custom,o,a)}return t}function resolveMotionValue(e){return isMotionValue(e)?e.get():e}function makeState({scrapeMotionValuesFromProps:e,createRenderState:t},i,s,o){return{latestValues:makeLatestValues(i,s,o,e),renderState:t()}}function makeLatestValues(e,t,i,s){const o={},a=s(e,{});for(const g in a)o[g]=resolveMotionValue(a[g]);let{initial:l,animate:c}=e;const u=isControllingVariants(e),d=isVariantNode(e);t&&d&&!u&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let p=i?i.initial===!1:!1;p=p||l===!1;const m=p?c:l;if(m&&typeof m!="boolean"&&!isAnimationControls(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const y=resolveVariantFromProps(e,g[b]);if(y){const{transitionEnd:S,transition:w,...E}=y;for(const A in E){let T=E[A];if(Array.isArray(T)){const P=p?T.length-1:0;T=T[P]}T!==null&&(o[A]=T)}for(const A in S)o[A]=S[A]}}}return o}const makeUseVisualState=e=>(t,i)=>{const s=reactExports.useContext(MotionContext),o=reactExports.useContext(PresenceContext),a=()=>makeState(e,t,s,o);return i?a():useConstant(a)};function scrapeMotionValuesFromProps$1(e,t,i){var a;const{style:s}=e,o={};for(const l in s)(isMotionValue(s[l])||t.style&&isMotionValue(t.style[l])||isForcedMotionValue(l,e)||((a=i==null?void 0:i.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(o[l]=s[l]);return o}const useHTMLVisualState=makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState});function scrapeMotionValuesFromProps(e,t,i){const s=scrapeMotionValuesFromProps$1(e,t,i);for(const o in e)if(isMotionValue(e[o])||isMotionValue(t[o])){const a=transformPropOrder.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[a]=e[o]}return s}const useSVGVisualState=makeUseVisualState({scrapeMotionValuesFromProps,createRenderState:createSvgRenderState}),motionComponentSymbol=Symbol.for("motionComponentSymbol");function isRefObject(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function useMotionRef(e,t,i){return reactExports.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),i&&(typeof i=="function"?i(s):isRefObject(i)&&(i.current=s))},[t])}const camelToDash=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId),SwitchLayoutGroupContext=reactExports.createContext({});function useVisualElement(e,t,i,s,o){var S,w;const{visualElement:a}=reactExports.useContext(MotionContext),l=reactExports.useContext(LazyContext),c=reactExports.useContext(PresenceContext),u=reactExports.useContext(MotionConfigContext).reducedMotion,d=reactExports.useRef(null);s=s||l.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:a,props:i,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const p=d.current,m=reactExports.useContext(SwitchLayoutGroupContext);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&createProjectionNode$1(d.current,i,o,m);const g=reactExports.useRef(!1);reactExports.useInsertionEffect(()=>{p&&g.current&&p.update(i,c)});const b=i[optimizedAppearDataAttribute],y=reactExports.useRef(!!b&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,b))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,b)));return useIsomorphicLayoutEffect(()=>{p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),reactExports.useEffect(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,b)}),y.current=!1),p.enteringChildren=void 0)}),p}function createProjectionNode$1(e,t,i,s){const{layoutId:o,layout:a,drag:l,dragConstraints:c,layoutScroll:u,layoutRoot:d,layoutCrossfade:p}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:getClosestProjectingNode(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!l||c&&isRefObject(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:s,crossfade:p,layoutScroll:u,layoutRoot:d})}function getClosestProjectingNode(e){if(e)return e.options.allowProjection!==!1?e.projection:getClosestProjectingNode(e.parent)}function createMotionComponent(e,{forwardMotionProps:t=!1}={},i,s){i&&loadFeatures(i);const o=isSVGComponent(e)?useSVGVisualState:useHTMLVisualState;function a(c,u){let d;const p={...reactExports.useContext(MotionConfigContext),...c,layoutId:useLayoutId(c)},{isStatic:m}=p,g=useCreateMotionContext(c),b=o(c,m);if(!m&&isBrowser){useStrictMode();const y=getProjectionFunctionality(p);d=y.MeasureLayout,g.visualElement=useVisualElement(e,b,p,s,y.ProjectionNode)}return jsxRuntimeExports.jsxs(MotionContext.Provider,{value:g,children:[d&&g.visualElement?jsxRuntimeExports.jsx(d,{visualElement:g.visualElement,...p}):null,useRender(e,c,useMotionRef(b,g.visualElement,u),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=reactExports.forwardRef(a);return l[motionComponentSymbol]=e,l}function useLayoutId({layoutId:e}){const t=reactExports.useContext(LayoutGroupContext).id;return t&&e!==void 0?t+"-"+e:e}function useStrictMode(e,t){reactExports.useContext(LazyContext).strict}function getProjectionFunctionality(e){const{drag:t,layout:i}=featureDefinitions;if(!t&&!i)return{};const s={...t,...i};return{MeasureLayout:t!=null&&t.isEnabled(e)||i!=null&&i.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function createMotionProxy(e,t){if(typeof Proxy>"u")return createMotionComponent;const i=new Map,s=(a,l)=>createMotionComponent(a,l,e,t),o=(a,l)=>s(a,l);return new Proxy(o,{get:(a,l)=>l==="create"?s:(i.has(l)||i.set(l,createMotionComponent(l,void 0,e,t)),i.get(l))})}function convertBoundingBoxToBox({top:e,left:t,right:i,bottom:s}){return{x:{min:t,max:i},y:{min:e,max:s}}}function convertBoxToBoundingBox({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function transformBoxPoints(e,t){if(!t)return e;const i=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function isIdentityScale(e){return e===void 0||e===1}function hasScale({scale:e,scaleX:t,scaleY:i}){return!isIdentityScale(e)||!isIdentityScale(t)||!isIdentityScale(i)}function hasTransform(e){return hasScale(e)||has2DTranslate(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function has2DTranslate(e){return is2DTranslate(e.x)||is2DTranslate(e.y)}function is2DTranslate(e){return e&&e!=="0%"}function scalePoint(e,t,i){const s=e-i,o=t*s;return i+o}function applyPointDelta(e,t,i,s,o){return o!==void 0&&(e=scalePoint(e,o,s)),scalePoint(e,i,s)+t}function applyAxisDelta(e,t=0,i=1,s,o){e.min=applyPointDelta(e.min,t,i,s,o),e.max=applyPointDelta(e.max,t,i,s,o)}function applyBoxDelta(e,{x:t,y:i}){applyAxisDelta(e.x,t.translate,t.scale,t.originPoint),applyAxisDelta(e.y,i.translate,i.scale,i.originPoint)}const TREE_SCALE_SNAP_MIN=.999999999999,TREE_SCALE_SNAP_MAX=1.0000000000001;function applyTreeDeltas(e,t,i,s=!1){const o=i.length;if(!o)return;t.x=t.y=1;let a,l;for(let c=0;c<o;c++){a=i[c],l=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&a.options.layoutScroll&&a.scroll&&a!==a.root&&transformBox(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,applyBoxDelta(e,l)),s&&hasTransform(a.latestValues)&&transformBox(e,a.latestValues))}t.x<TREE_SCALE_SNAP_MAX&&t.x>TREE_SCALE_SNAP_MIN&&(t.x=1),t.y<TREE_SCALE_SNAP_MAX&&t.y>TREE_SCALE_SNAP_MIN&&(t.y=1)}function translateAxis(e,t){e.min=e.min+t,e.max=e.max+t}function transformAxis(e,t,i,s,o=.5){const a=mixNumber$1(e.min,e.max,o);applyAxisDelta(e,t,i,a,s)}function transformBox(e,t){transformAxis(e.x,t.x,t.scaleX,t.scale,t.originX),transformAxis(e.y,t.y,t.scaleY,t.scale,t.originY)}function measureViewportBox(e,t){return convertBoundingBoxToBox(transformBoxPoints(e.getBoundingClientRect(),t))}function measurePageBox(e,t,i){const s=measureViewportBox(e,i),{scroll:o}=t;return o&&(translateAxis(s.x,o.offset.x),translateAxis(s.y,o.offset.y)),s}const createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()}),prefersReducedMotion={current:null},hasReducedMotionListener={current:!1};function initPrefersReducedMotion(){if(hasReducedMotionListener.current=!0,!!isBrowser)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>prefersReducedMotion.current=e.matches;e.addEventListener("change",t),t()}else prefersReducedMotion.current=!1}const visualElementStore=new WeakMap;function updateMotionValuesFromProps(e,t,i){for(const s in t){const o=t[s],a=i[s];if(isMotionValue(o))e.addValue(s,o);else if(isMotionValue(a))e.addValue(s,motionValue(o,{owner:e}));else if(a!==o)if(e.hasValue(s)){const l=e.getValue(s);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(s);e.addValue(s,motionValue(l!==void 0?l:o,{owner:e}))}}for(const s in i)t[s]===void 0&&e.removeValue(s);return t}const propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class VisualElement{scrapeMotionValuesFromProps(t,i,s){return{}}constructor({parent:t,props:i,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=time.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,frame.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=i.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=i,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=isControllingVariants(i),this.isVariantNode=isVariantNode(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(i,{},this);for(const g in m){const b=m[g];u[g]!==void 0&&isMotionValue(b)&&b.set(u[g])}}mount(t){var i;this.current=t,visualElementStore.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,o)=>this.bindToMotionValue(o,s)),hasReducedMotionListener.current||initPrefersReducedMotion(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:prefersReducedMotion.current,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),cancelFrame(this.notifyUpdate),cancelFrame(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,i){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=transformProps.has(t);s&&this.onBindTransform&&this.onBindTransform();const o=i.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,i)),this.valueSubscriptions.set(t,()=>{o(),a&&a(),i.owner&&i.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in featureDefinitions){const i=featureDefinitions[t];if(!i)continue;const{isEnabled:s,Feature:o}=i;if(!this.features[t]&&o&&s(this.props)&&(this.features[t]=new o(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,i){this.latestValues[t]=i}update(t,i){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<propEventHandlers.length;s++){const o=propEventHandlers[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a="on"+o,l=t[a];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(t),()=>i.variantChildren.delete(t)}addValue(t,i){const s=this.values.get(t);i!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,i),this.values.set(t,i),this.latestValues[t]=i.get())}removeValue(t){this.values.delete(t);const i=this.valueSubscriptions.get(t);i&&(i(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,i){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&i!==void 0&&(s=motionValue(i===null?void 0:i,{owner:this}),this.addValue(t,s)),s}readValue(t,i){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(isNumericalString(s)||isZeroValueString(s))?s=parseFloat(s):!findValueType(s)&&complex.test(i)&&(s=getAnimatableNone(t,i)),this.setBaseTarget(t,isMotionValue(s)?s.get():s)),isMotionValue(s)?s.get():s}setBaseTarget(t,i){this.baseTarget[t]=i}getBaseTarget(t){var a;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const l=resolveVariantFromProps(this.props,i,(a=this.presenceContext)==null?void 0:a.custom);l&&(s=l[t])}if(i&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!isMotionValue(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,i){return this.events[t]||(this.events[t]=new SubscriptionManager),this.events[t].add(i)}notify(t,...i){this.events[t]&&this.events[t].notify(...i)}scheduleRenderMicrotask(){microtask.render(this.render)}}class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(t,i){return t.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(t,i){return t.style?t.style[i]:void 0}removeValueFromRenderState(t,{vars:i,style:s}){delete i[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;isMotionValue(t)&&(this.childSubscription=t.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function renderHTML(e,{style:t,vars:i},s,o){const a=e.style;let l;for(l in t)a[l]=t[l];o==null||o.applyProjectionStyles(a,s);for(l in i)a.setProperty(l,i[l])}function getComputedStyle$1(e){return window.getComputedStyle(e)}class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(t,i){var s;if(transformProps.has(i))return(s=this.projection)!=null&&s.isProjecting?defaultTransformValue(i):readTransformValue(t,i);{const o=getComputedStyle$1(t),a=(isCSSVariableName(i)?o.getPropertyValue(i):o[i])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:i}){return measureViewportBox(t,i)}build(t,i,s){buildHTMLStyles(t,i,s.transformTemplate)}scrapeMotionValuesFromProps(t,i,s){return scrapeMotionValuesFromProps$1(t,i,s)}}const camelCaseAttributes=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function renderSVG(e,t,i,s){renderHTML(e,t,void 0,s);for(const o in t.attrs)e.setAttribute(camelCaseAttributes.has(o)?o:camelToDash(o),t.attrs[o])}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(t,i){return t[i]}readValueFromInstance(t,i){if(transformProps.has(i)){const s=getDefaultValueType(i);return s&&s.default||0}return i=camelCaseAttributes.has(i)?i:camelToDash(i),t.getAttribute(i)}scrapeMotionValuesFromProps(t,i,s){return scrapeMotionValuesFromProps(t,i,s)}build(t,i,s){buildSVGAttrs(t,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,i,s,o){renderSVG(t,i,s,o)}mount(t){this.isSVGTag=isSVGTag(t.tagName),super.mount(t)}}const createDomVisualElement=(e,t)=>isSVGComponent(e)?new SVGVisualElement(t):new HTMLVisualElement(t,{allowProjection:e!==reactExports.Fragment});function resolveVariant(e,t,i){const s=e.getProps();return resolveVariantFromProps(s,t,i!==void 0?i:s.custom,e)}const isKeyframesTarget=e=>Array.isArray(e);function setMotionValue(e,t,i){e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,motionValue(i))}function resolveFinalValueInKeyframes(e){return isKeyframesTarget(e)?e[e.length-1]||0:e}function setTarget(e,t){const i=resolveVariant(e,t);let{transitionEnd:s={},transition:o={},...a}=i||{};a={...a,...s};for(const l in a){const c=resolveFinalValueInKeyframes(a[l]);setMotionValue(e,l,c)}}function isWillChangeMotionValue(e){return!!(isMotionValue(e)&&e.add)}function addValueToWillChange(e,t){const i=e.getValue("willChange");if(isWillChangeMotionValue(i))return i.add(t);if(!i&&MotionGlobalConfig.WillChange){const s=new MotionGlobalConfig.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function getOptimisedAppearId(e){return e.props[optimizedAppearDataAttribute]}const isNotNull=e=>e!==null;function getFinalKeyframe(e,{repeat:t,repeatType:i="loop"},s){const o=e.filter(isNotNull),a=t&&i!=="loop"&&t%2===1?0:o.length-1;return o[a]}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:t})=>t.length>2?keyframesTransition:transformProps.has(e)?e.startsWith("scale")?criticallyDampedSpring(t[1]):underDampedSpring:ease;function isTransitionDefined({when:e,delay:t,delayChildren:i,staggerChildren:s,staggerDirection:o,repeat:a,repeatType:l,repeatDelay:c,from:u,elapsed:d,...p}){return!!Object.keys(p).length}const animateMotionValue=(e,t,i,s={},o,a)=>l=>{const c=getValueTransition$1(s,e)||{},u=c.delay||s.delay||0;let{elapsed:d=0}=s;d=d-secondsToMilliseconds(u);const p={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:o};isTransitionDefined(c)||Object.assign(p,getDefaultTransition(e,p)),p.duration&&(p.duration=secondsToMilliseconds(p.duration)),p.repeatDelay&&(p.repeatDelay=secondsToMilliseconds(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(makeAnimationInstant(p),p.delay===0&&(m=!0)),(MotionGlobalConfig.instantAnimations||MotionGlobalConfig.skipAnimations)&&(m=!0,makeAnimationInstant(p),p.delay=0),p.allowFlatten=!c.type&&!c.ease,m&&!a&&t.get()!==void 0){const g=getFinalKeyframe(p.keyframes,c);if(g!==void 0){frame.update(()=>{p.onUpdate(g),p.onComplete()});return}}return c.isSync?new JSAnimation(p):new AsyncMotionValueAnimation(p)};function shouldBlockAnimation({protectedKeys:e,needsAnimating:t},i){const s=e.hasOwnProperty(i)&&t[i]!==!0;return t[i]=!1,s}function animateTarget(e,t,{delay:i=0,transitionOverride:s,type:o}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;s&&(a=s);const u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const p in c){const m=e.getValue(p,e.latestValues[p]??null),g=c[p];if(g===void 0||d&&shouldBlockAnimation(d,p))continue;const b={delay:i,...getValueTransition$1(a||{},p)},y=m.get();if(y!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===y&&!b.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const E=getOptimisedAppearId(e);if(E){const A=window.MotionHandoffAnimation(E,p,frame);A!==null&&(b.startTime=A,S=!0)}}addValueToWillChange(e,p),m.start(animateMotionValue(p,m,g,e.shouldReduceMotion&&positionalKeys.has(p)?{type:!1}:b,e,S));const w=m.animation;w&&u.push(w)}return l&&Promise.all(u).then(()=>{frame.update(()=>{l&&setTarget(e,l)})}),u}function calcChildStagger(e,t,i,s=0,o=1){const a=Array.from(e).sort((d,p)=>d.sortNodePosition(p)).indexOf(t),l=e.size,c=(l-1)*s;return typeof i=="function"?i(a,l):o===1?a*s:c-a*s}function animateVariant(e,t,i={}){var u;const s=resolveVariant(e,t,i.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(o=i.transitionOverride);const a=s?()=>Promise.all(animateTarget(e,s,i)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:m,staggerDirection:g}=o;return animateChildren(e,t,d,p,m,g,i)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,p]=c==="beforeChildren"?[a,l]:[l,a];return d().then(()=>p())}else return Promise.all([a(),l(i.delay)])}function animateChildren(e,t,i=0,s=0,o=0,a=1,l){const c=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),c.push(animateVariant(u,t,{...l,delay:i+(typeof s=="function"?0:s)+calcChildStagger(e.variantChildren,u,s,o,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(c)}function animateVisualElement(e,t,i={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const o=t.map(a=>animateVariant(e,a,i));s=Promise.all(o)}else if(typeof t=="string")s=animateVariant(e,t,i);else{const o=typeof t=="function"?resolveVariant(e,t,i.custom):t;s=Promise.all(animateTarget(e,o,i))}return s.then(()=>{e.notify("AnimationComplete",t)})}function shallowCompare(e,t){if(!Array.isArray(t))return!1;const i=t.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}const numVariantProps=variantProps.length;function getVariantContext(e){if(!e)return;if(!e.isControllingVariants){const i=e.parent?getVariantContext(e.parent)||{}:{};return e.props.initial!==void 0&&(i.initial=e.props.initial),i}const t={};for(let i=0;i<numVariantProps;i++){const s=variantProps[i],o=e.props[s];(isVariantLabel(o)||o===!1)&&(t[s]=o)}return t}const reversePriorityOrder=[...variantPriorityOrder].reverse(),numAnimationTypes=variantPriorityOrder.length;function animateList(e){return t=>Promise.all(t.map(({animation:i,options:s})=>animateVisualElement(e,i,s)))}function createAnimationState(e){let t=animateList(e),i=createState(),s=!0;const o=u=>(d,p)=>{var g;const m=resolveVariant(e,p,u==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:y,...S}=m;d={...d,...S,...y}}return d};function a(u){t=u(e)}function l(u){const{props:d}=e,p=getVariantContext(e.parent)||{},m=[],g=new Set;let b={},y=1/0;for(let w=0;w<numAnimationTypes;w++){const E=reversePriorityOrder[w],A=i[E],T=d[E]!==void 0?d[E]:p[E],P=isVariantLabel(T),O=E===u?A.isActive:null;O===!1&&(y=w);let k=T===p[E]&&T!==d[E]&&P;if(k&&s&&e.manuallyAnimateOnMount&&(k=!1),A.protectedKeys={...b},!A.isActive&&O===null||!T&&!A.prevProp||isAnimationControls(T)||typeof T=="boolean")continue;const F=checkVariantsDidChange(A.prevProp,T);let N=F||E===u&&A.isActive&&!k&&P||w>y&&P,U=!1;const H=Array.isArray(T)?T:[T];let Y=H.reduce(o(E),{});O===!1&&(Y={});const{prevResolvedValues:Z={}}=A,ie={...Z,...Y},q=B=>{N=!0,g.has(B)&&(U=!0,g.delete(B)),A.needsAnimating[B]=!0;const M=e.getValue(B);M&&(M.liveStyle=!1)};for(const B in ie){const M=Y[B],D=Z[B];if(b.hasOwnProperty(B))continue;let G=!1;isKeyframesTarget(M)&&isKeyframesTarget(D)?G=!shallowCompare(M,D):G=M!==D,G?M!=null?q(B):g.add(B):M!==void 0&&g.has(B)?q(B):A.protectedKeys[B]=!0}A.prevProp=T,A.prevResolvedValues=Y,A.isActive&&(b={...b,...Y}),s&&e.blockInitialAnimation&&(N=!1);const z=k&&F;N&&(!z||U)&&m.push(...H.map(B=>{const M={type:E};if(typeof B=="string"&&s&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,G=resolveVariant(D,B);if(D.enteringChildren&&G){const{delayChildren:j}=G.transition||{};M.delay=calcChildStagger(D.enteringChildren,e,j)}}return{animation:B,options:M}}))}if(g.size){const w={};if(typeof d.initial!="boolean"){const E=resolveVariant(e,Array.isArray(d.initial)?d.initial[0]:d.initial);E&&E.transition&&(w.transition=E.transition)}g.forEach(E=>{const A=e.getBaseTarget(E),T=e.getValue(E);T&&(T.liveStyle=!0),w[E]=A??null}),m.push({animation:w})}let S=!!m.length;return s&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(S=!1),s=!1,S?t(m):Promise.resolve()}function c(u,d){var m;if(i[u].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(u,d)}),i[u].isActive=d;const p=l(u);for(const g in i)i[g].protectedKeys={};return p}return{animateChanges:l,setActive:c,setAnimateFunction:a,getState:()=>i,reset:()=>{i=createState(),s=!0}}}function checkVariantsDidChange(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!shallowCompare(t,e):!1}function createTypeState(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}class Feature{constructor(t){this.isMounted=!1,this.node=t}update(){}}class AnimationFeature extends Feature{constructor(t){super(t),t.animationState||(t.animationState=createAnimationState(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();isAnimationControls(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:i}=this.node.prevProps||{};t!==i&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let id$1=0;class ExitAnimationFeature extends Feature{constructor(){super(...arguments),this.id=id$1++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const o=this.node.animationState.setActive("exit",!t);i&&!t&&o.then(()=>{i(this.id)})}mount(){const{register:t,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const animations={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}};function addDomEvent(e,t,i,s={passive:!0}){return e.addEventListener(t,i,s),()=>e.removeEventListener(t,i)}function extractEventInfo(e){return{point:{x:e.pageX,y:e.pageY}}}const addPointerInfo=e=>t=>isPrimaryPointer(t)&&e(t,extractEventInfo(t));function addPointerEvent(e,t,i,s){return addDomEvent(e,t,addPointerInfo(i),s)}const SCALE_PRECISION=1e-4,SCALE_MIN=1-SCALE_PRECISION,SCALE_MAX=1+SCALE_PRECISION,TRANSLATE_PRECISION=.01,TRANSLATE_MIN=0-TRANSLATE_PRECISION,TRANSLATE_MAX=0+TRANSLATE_PRECISION;function calcLength(e){return e.max-e.min}function isNear(e,t,i){return Math.abs(e-t)<=i}function calcAxisDelta(e,t,i,s=.5){e.origin=s,e.originPoint=mixNumber$1(t.min,t.max,e.origin),e.scale=calcLength(i)/calcLength(t),e.translate=mixNumber$1(i.min,i.max,e.origin)-e.originPoint,(e.scale>=SCALE_MIN&&e.scale<=SCALE_MAX||isNaN(e.scale))&&(e.scale=1),(e.translate>=TRANSLATE_MIN&&e.translate<=TRANSLATE_MAX||isNaN(e.translate))&&(e.translate=0)}function calcBoxDelta(e,t,i,s){calcAxisDelta(e.x,t.x,i.x,s?s.originX:void 0),calcAxisDelta(e.y,t.y,i.y,s?s.originY:void 0)}function calcRelativeAxis(e,t,i){e.min=i.min+t.min,e.max=e.min+calcLength(t)}function calcRelativeBox(e,t,i){calcRelativeAxis(e.x,t.x,i.x),calcRelativeAxis(e.y,t.y,i.y)}function calcRelativeAxisPosition(e,t,i){e.min=t.min-i.min,e.max=e.min+calcLength(t)}function calcRelativePosition(e,t,i){calcRelativeAxisPosition(e.x,t.x,i.x),calcRelativeAxisPosition(e.y,t.y,i.y)}function eachAxis(e){return[e("x"),e("y")]}const getContextWindow=({current:e})=>e?e.ownerDocument.defaultView:null,distance=(e,t)=>Math.abs(e-t);function distance2D(e,t){const i=distance(e.x,t.x),s=distance(e.y,t.y);return Math.sqrt(i**2+s**2)}class PanSession{constructor(t,i,{transformPagePoint:s,contextWindow:o=window,dragSnapToOrigin:a=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=getPanInfo(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,y=distance2D(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!y)return;const{point:S}=g,{timestamp:w}=frameData;this.history.push({...S,timestamp:w});const{onStart:E,onMove:A}=this.handlers;b||(E&&E(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=transformPoint(b,this.transformPagePoint),frame.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=getPanInfo(g.type==="pointercancel"?this.lastMoveEventInfo:transformPoint(b,this.transformPagePoint),this.history);this.startEvent&&y&&y(g,E),S&&S(g,E)},!isPrimaryPointer(t))return;this.dragSnapToOrigin=a,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=l,this.contextWindow=o||window;const c=extractEventInfo(t),u=transformPoint(c,this.transformPagePoint),{point:d}=u,{timestamp:p}=frameData;this.history=[{...d,timestamp:p}];const{onSessionStart:m}=i;m&&m(t,getPanInfo(u,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cancelFrame(this.updatePoint)}}function transformPoint(e,t){return t?{point:t(e.point)}:e}function subtractPoint(e,t){return{x:e.x-t.x,y:e.y-t.y}}function getPanInfo({point:e},t){return{point:e,delta:subtractPoint(e,lastDevicePoint(t)),offset:subtractPoint(e,startDevicePoint(t)),velocity:getVelocity(t,.1)}}function startDevicePoint(e){return e[0]}function lastDevicePoint(e){return e[e.length-1]}function getVelocity(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,s=null;const o=lastDevicePoint(e);for(;i>=0&&(s=e[i],!(o.timestamp-s.timestamp>secondsToMilliseconds(t)));)i--;if(!s)return{x:0,y:0};const a=millisecondsToSeconds(o.timestamp-s.timestamp);if(a===0)return{x:0,y:0};const l={x:(o.x-s.x)/a,y:(o.y-s.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function applyConstraints(e,{min:t,max:i},s){return t!==void 0&&e<t?e=s?mixNumber$1(t,e,s.min):Math.max(e,t):i!==void 0&&e>i&&(e=s?mixNumber$1(i,e,s.max):Math.min(e,i)),e}function calcRelativeAxisConstraints(e,t,i){return{min:t!==void 0?e.min+t:void 0,max:i!==void 0?e.max+i-(e.max-e.min):void 0}}function calcRelativeConstraints(e,{top:t,left:i,bottom:s,right:o}){return{x:calcRelativeAxisConstraints(e.x,i,o),y:calcRelativeAxisConstraints(e.y,t,s)}}function calcViewportAxisConstraints(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function calcViewportConstraints(e,t){return{x:calcViewportAxisConstraints(e.x,t.x),y:calcViewportAxisConstraints(e.y,t.y)}}function calcOrigin(e,t){let i=.5;const s=calcLength(e),o=calcLength(t);return o>s?i=progress(t.min,t.max-s,e.min):s>o&&(i=progress(e.min,e.max-o,t.min)),clamp(0,1,i)}function rebaseAxisConstraints(e,t){const i={};return t.min!==void 0&&(i.min=t.min-e.min),t.max!==void 0&&(i.max=t.max-e.min),i}const defaultElastic=.35;function resolveDragElastic(e=defaultElastic){return e===!1?e=0:e===!0&&(e=defaultElastic),{x:resolveAxisElastic(e,"left","right"),y:resolveAxisElastic(e,"top","bottom")}}function resolveAxisElastic(e,t,i){return{min:resolvePointElastic(e,t),max:resolvePointElastic(e,i)}}function resolvePointElastic(e,t){return typeof e=="number"?e:e[t]||0}const elementDragControls=new WeakMap;class VisualElementDragControls{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(extractEventInfo(m).point)},l=(m,g)=>{const{drag:b,dragPropagation:y,onDragStart:S}=this.getProps();if(b&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=setDragLock(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(E=>{let A=this.getAxisMotionValue(E).get()||0;if(percent.test(A)){const{projection:T}=this.visualElement;if(T&&T.layout){const P=T.layout.layoutBox[E];P&&(A=calcLength(P)*(parseFloat(A)/100))}}this.originPoint[E]=A}),S&&frame.postRender(()=>S(m,g)),addValueToWillChange(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:y,onDirectionLock:S,onDrag:w}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:E}=g;if(y&&this.currentDirection===null){this.currentDirection=getCurrentDirection(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",g.point,E),this.updateAxis("y",g.point,E),this.visualElement.render(),w&&w(m,g)},u=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>eachAxis(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)==null?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new PanSession(t,{onSessionStart:a,onStart:l,onMove:c,onSessionEnd:u,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:s,contextWindow:getContextWindow(this.visualElement)})}stop(t,i){const s=t||this.latestPointerEvent,o=i||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!o||!s)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&frame.postRender(()=>c(s,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:i}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(t,i,s){const{drag:o}=this.getProps();if(!s||!shouldDrag(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let l=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(l=applyConstraints(l,this.constraints[t],this.elastic[t])),a.set(l)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,o=this.constraints;t&&isRefObject(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=calcRelativeConstraints(s.layoutBox,t):this.constraints=!1,this.elastic=resolveDragElastic(i),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=rebaseAxisConstraints(s.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!isRefObject(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=measurePageBox(s,o.root,this.visualElement.getTransformPagePoint());let l=calcViewportConstraints(o.layout.layoutBox,a);if(i){const c=i(convertBoxToBoundingBox(l));this.hasMutatedConstraints=!!c,c&&(l=convertBoundingBoxToBox(c))}return l}startAnimation(t){const{drag:i,dragMomentum:s,dragElastic:o,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=eachAxis(p=>{if(!shouldDrag(p,i,this.currentDirection))return;let m=u[p]||{};l&&(m={min:0,max:0});const g=o?200:1e6,b=o?40:1e7,y={type:"inertia",velocity:s?t[p]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(p,y)});return Promise.all(d).then(c)}startAxisValueAnimation(t,i){const s=this.getAxisMotionValue(t);return addValueToWillChange(this.visualElement,t),s.start(animateMotionValue(t,s,0,i,this.visualElement,!1))}stopAnimation(){eachAxis(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eachAxis(t=>{var i;return(i=this.getAxisMotionValue(t).animation)==null?void 0:i.pause()})}getAnimationState(t){var i;return(i=this.getAxisMotionValue(t).animation)==null?void 0:i.state}getAxisMotionValue(t){const i=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),o=s[i];return o||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){eachAxis(i=>{const{drag:s}=this.getProps();if(!shouldDrag(i,s,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(i);if(o&&o.layout){const{min:l,max:c}=o.layout.layoutBox[i];a.set(t[i]-mixNumber$1(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!isRefObject(i)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};eachAxis(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const u=c.get();o[l]=calcOrigin({min:u,max:u},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),eachAxis(l=>{if(!shouldDrag(l,t,null))return;const c=this.getAxisMotionValue(l),{min:u,max:d}=this.constraints[l];c.set(mixNumber$1(u,d,o[l]))})}addListeners(){if(!this.visualElement.current)return;elementDragControls.set(this.visualElement,this);const t=this.visualElement.current,i=addPointerEvent(t,"pointerdown",u=>{const{drag:d,dragListener:p=!0}=this.getProps();d&&p&&this.start(u)}),s=()=>{const{dragConstraints:u}=this.getProps();isRefObject(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),frame.read(s);const l=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(eachAxis(p=>{const m=this.getAxisMotionValue(p);m&&(this.originPoint[p]+=u[p].translate,m.set(m.get()+u[p].translate))}),this.visualElement.render())});return()=>{l(),i(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:l=defaultElastic,dragMomentum:c=!0}=t;return{...t,drag:i,dragDirectionLock:s,dragPropagation:o,dragConstraints:a,dragElastic:l,dragMomentum:c}}}function shouldDrag(e,t,i){return(t===!0||t===e)&&(i===null||i===e)}function getCurrentDirection(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}class DragGesture extends Feature{constructor(t){super(t),this.removeGroupControls=noop$2,this.removeListeners=noop$2,this.controls=new VisualElementDragControls(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop$2}unmount(){this.removeGroupControls(),this.removeListeners()}}const asyncHandler=e=>(t,i)=>{e&&frame.postRender(()=>e(t,i))};class PanGesture extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop$2}onPointerDown(t){this.session=new PanSession(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:i,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:asyncHandler(t),onStart:asyncHandler(i),onMove:s,onEnd:(a,l)=>{delete this.session,o&&frame.postRender(()=>o(a,l))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const globalProjectionState={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const correctBorderRadius={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(px.test(e))e=parseFloat(e);else return e;const i=pixelsToPercent(e,t.target.x),s=pixelsToPercent(e,t.target.y);return`${i}% ${s}%`}},correctBoxShadow={correct:(e,{treeScale:t,projectionDelta:i})=>{const s=e,o=complex.parse(e);if(o.length>5)return s;const a=complex.createTransformer(e),l=typeof o[0]!="number"?1:0,c=i.x.scale*t.x,u=i.y.scale*t.y;o[0+l]/=c,o[1+l]/=u;const d=mixNumber$1(c,u,.5);return typeof o[2+l]=="number"&&(o[2+l]/=d),typeof o[3+l]=="number"&&(o[3+l]/=d),a(o)}};let hasTakenAnySnapshot=!1;class MeasureLayoutWithContext extends reactExports.Component{componentDidMount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:s,layoutId:o}=this.props,{projection:a}=t;addScaleCorrector(defaultScaleCorrectors),a&&(i.group&&i.group.add(a),s&&s.register&&o&&s.register(a),hasTakenAnySnapshot&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:i,visualElement:s,drag:o,isPresent:a}=this.props,{projection:l}=s;return l&&(l.isPresent=a,hasTakenAnySnapshot=!0,o||t.layoutDependency!==i||i===void 0||t.isPresent!==a?l.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?l.promote():l.relegate()||frame.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:o}=t;hasTakenAnySnapshot=!0,o&&(o.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function MeasureLayout(e){const[t,i]=usePresence(),s=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(MeasureLayoutWithContext,{...e,layoutGroup:s,switchLayoutGroup:reactExports.useContext(SwitchLayoutGroupContext),isPresent:t,safeToRemove:i})}const defaultScaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxShadow:correctBoxShadow};function animateSingleValue(e,t,i){const s=isMotionValue(e)?e:motionValue(e);return s.start(animateMotionValue("",s,t,i)),s.animation}const compareByDepth=(e,t)=>e.depth-t.depth;class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(t){addUniqueItem(this.children,t),this.isDirty=!0}remove(t){removeItem(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(t)}}function delay$1(e,t){const i=time.now(),s=({timestamp:o})=>{const a=o-i;a>=t&&(cancelFrame(s),e(a-t))};return frame.setup(s,!0),()=>cancelFrame(s)}const borders=["TopLeft","TopRight","BottomLeft","BottomRight"],numBorders=borders.length,asNumber=e=>typeof e=="string"?parseFloat(e):e,isPx=e=>typeof e=="number"||px.test(e);function mixValues(e,t,i,s,o,a){o?(e.opacity=mixNumber$1(0,i.opacity??1,easeCrossfadeIn(s)),e.opacityExit=mixNumber$1(t.opacity??1,0,easeCrossfadeOut(s))):a&&(e.opacity=mixNumber$1(t.opacity??1,i.opacity??1,s));for(let l=0;l<numBorders;l++){const c=`border${borders[l]}Radius`;let u=getRadius(t,c),d=getRadius(i,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||isPx(u)===isPx(d)?(e[c]=Math.max(mixNumber$1(asNumber(u),asNumber(d),s),0),(percent.test(d)||percent.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||i.rotate)&&(e.rotate=mixNumber$1(t.rotate||0,i.rotate||0,s))}function getRadius(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const easeCrossfadeIn=compress(0,.5,circOut),easeCrossfadeOut=compress(.5,.95,noop$2);function compress(e,t,i){return s=>s<e?0:s>t?1:i(progress(e,t,s))}function copyAxisInto(e,t){e.min=t.min,e.max=t.max}function copyBoxInto(e,t){copyAxisInto(e.x,t.x),copyAxisInto(e.y,t.y)}function copyAxisDeltaInto(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function removePointDelta(e,t,i,s,o){return e-=t,e=scalePoint(e,1/i,s),o!==void 0&&(e=scalePoint(e,1/o,s)),e}function removeAxisDelta(e,t=0,i=1,s=.5,o,a=e,l=e){if(percent.test(t)&&(t=parseFloat(t),t=mixNumber$1(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=mixNumber$1(a.min,a.max,s);e===a&&(c-=t),e.min=removePointDelta(e.min,t,i,c,o),e.max=removePointDelta(e.max,t,i,c,o)}function removeAxisTransforms(e,t,[i,s,o],a,l){removeAxisDelta(e,t[i],t[s],t[o],t.scale,a,l)}const xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function removeBoxTransforms(e,t,i,s){removeAxisTransforms(e.x,t,xKeys,i?i.x:void 0,s?s.x:void 0),removeAxisTransforms(e.y,t,yKeys,i?i.y:void 0,s?s.y:void 0)}function isAxisDeltaZero(e){return e.translate===0&&e.scale===1}function isDeltaZero(e){return isAxisDeltaZero(e.x)&&isAxisDeltaZero(e.y)}function axisEquals(e,t){return e.min===t.min&&e.max===t.max}function boxEquals(e,t){return axisEquals(e.x,t.x)&&axisEquals(e.y,t.y)}function axisEqualsRounded(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function boxEqualsRounded(e,t){return axisEqualsRounded(e.x,t.x)&&axisEqualsRounded(e.y,t.y)}function aspectRatio(e){return calcLength(e.x)/calcLength(e.y)}function axisDeltaEquals(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class NodeStack{constructor(){this.members=[]}add(t){addUniqueItem(this.members,t),t.scheduleRender()}remove(t){if(removeItem(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(t){const i=this.members.findIndex(o=>t===o);if(i===0)return!1;let s;for(let o=i;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){s=a;break}}return s?(this.promote(s),!0):!1}promote(t,i){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,i&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:i,resumingFrom:s}=t;i.onExitComplete&&i.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function buildProjectionTransform(e,t,i){let s="";const o=e.x.translate/t.x,a=e.y.translate/t.y,l=(i==null?void 0:i.z)||0;if((o||a||l)&&(s=`translate3d(${o}px, ${a}px, ${l}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),i){const{transformPerspective:d,rotate:p,rotateX:m,rotateY:g,skewX:b,skewY:y}=i;d&&(s=`perspective(${d}px) ${s}`),p&&(s+=`rotate(${p}deg) `),m&&(s+=`rotateX(${m}deg) `),g&&(s+=`rotateY(${g}deg) `),b&&(s+=`skewX(${b}deg) `),y&&(s+=`skewY(${y}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(s+=`scale(${c}, ${u})`),s||"none"}const transformAxes=["","X","Y","Z"],animationTarget=1e3;let id=0;function resetDistortingTransform(e,t,i,s){const{latestValues:o}=t;o[e]&&(i[e]=o[e],t.setStaticValue(e,0),s&&(s[e]=0))}function cancelTreeOptimisedTransformAnimations(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const i=getOptimisedAppearId(t);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",frame,!(o||a))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(s)}function createProjectionNode({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(l={},c=t==null?void 0:t()){this.id=id++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new SubscriptionManager),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const u=this.eventHandlers.get(l);u&&u.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=isSVGElement$1(l)&&!isSVGSVGElement(l),this.instance=l;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||c)&&(this.isLayoutDirty=!0),e){let p,m=0;const g=()=>this.root.updateBlockedByResize=!1;frame.read(()=>{m=window.innerWidth}),e(l,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,p&&p(),p=delay$1(g,250),globalProjectionState.hasAnimatedSinceResize&&(globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||defaultLayoutTransition,{onLayoutAnimationStart:S,onLayoutAnimationComplete:w}=d.getProps(),E=!this.targetLayout||!boxEqualsRounded(this.targetLayout,b),A=!m&&g;if(this.options.layoutRoot||this.resumeFrom||A||m&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...getValueTransition$1(y,"layout"),onPlay:S,onComplete:w};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(p,A)}else m||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),cancelFrame(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const m=this.path[p];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(clearIsLayoutDirty);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate)):this.nodes.forEach(clearIsLayoutDirty),this.clearAllSnapshots();const c=time.now();frameData.delta=clamp(0,1e3/60,c-frameData.timestamp),frameData.timestamp=c,frameData.isProcessing=!0,frameSteps.update.process(frameData),frameSteps.preRender.process(frameData),frameSteps.render.process(frameData),frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!calcLength(this.snapshot.measuredBox.x)&&!calcLength(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c&&this.instance){const u=s(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:u,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!isDeltaZero(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;l&&this.instance&&(c||hasTransform(this.latestValues)||p)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return l&&(u=this.removeTransform(u)),roundBox(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:l}=this.options;if(!l)return createBox();const c=l.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(checkNodeWasScrollRoot))){const{scroll:p}=this.root;p&&(translateAxis(c.x,p.offset.x),translateAxis(c.y,p.offset.y))}return c}removeElementScroll(l){var u;const c=createBox();if(copyBoxInto(c,l),(u=this.scroll)!=null&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const p=this.path[d],{scroll:m,options:g}=p;p!==this.root&&m&&g.layoutScroll&&(m.wasRoot&©BoxInto(c,l),translateAxis(c.x,m.offset.x),translateAxis(c.y,m.offset.y))}return c}applyTransform(l,c=!1){const u=createBox();copyBoxInto(u,l);for(let d=0;d<this.path.length;d++){const p=this.path[d];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&transformBox(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),hasTransform(p.latestValues)&&transformBox(u,p.latestValues)}return hasTransform(this.latestValues)&&transformBox(u,this.latestValues),u}removeTransform(l){const c=createBox();copyBoxInto(c,l);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!hasTransform(d.latestValues))continue;hasScale(d.latestValues)&&d.updateSnapshot();const p=createBox(),m=d.measurePageBox();copyBoxInto(p,m),removeBoxTransforms(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,p)}return hasTransform(this.latestValues)&&removeBoxTransforms(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var g;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(l||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=frameData.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),calcRelativeBox(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,b.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var y;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===frameData.timestamp&&(u=!1),u)return;const{layout:d,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||p))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;applyTreeDeltas(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=createBox());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)),calcBoxDelta(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)||!axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(l,c=!1){const u=this.snapshot,d=u?u.latestValues:{},p={...this.latestValues},m=createDelta();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const g=createBox(),b=u?u.source:void 0,y=this.layout?this.layout.source:void 0,S=b!==y,w=this.getStack(),E=!w||w.members.length<=1,A=!!(S&&!E&&this.options.crossfade===!0&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0;let T;this.mixTargetDelta=P=>{const O=P/1e3;mixAxisDelta(m.x,l.x,O),mixAxisDelta(m.y,l.y,O),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(calcRelativePosition(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mixBox(this.relativeTarget,this.relativeTargetOrigin,g,O),T&&boxEquals(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=createBox()),copyBoxInto(T,this.relativeTarget)),S&&(this.animationValues=p,mixValues(p,d,this.latestValues,O,A,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var c,u,d;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(d=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||d.stop(),this.pendingAnimation&&(cancelFrame(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=frame.update(()=>{globalProjectionState.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=motionValue(0)),this.currentAnimation=animateSingleValue(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),l.onUpdate&&l.onUpdate(p)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(animationTarget),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:p}=l;if(!(!c||!u||!d)){if(this!==l&&this.layout&&d&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||createBox();const m=calcLength(this.layout.layoutBox.x);u.x.min=l.target.x.min,u.x.max=u.x.min+m;const g=calcLength(this.layout.layoutBox.y);u.y.min=l.target.y.min,u.y.max=u.y.min+g}copyBoxInto(c,u),transformBox(c,p),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new NodeStack),this.sharedNodes.get(l).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var c;const{layoutId:l}=this.options;return l?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:l}=this.options;return l?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:u}=l;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&resetDistortingTransform("z",l,d,this.animationValues);for(let p=0;p<transformAxes.length;p++)resetDistortingTransform(`rotate${transformAxes[p]}`,l,d,this.animationValues),resetDistortingTransform(`skew${transformAxes[p]}`,l,d,this.animationValues);l.render();for(const p in d)l.setStaticValue(p,d[p]),this.animationValues&&(this.animationValues[p]=d[p]);l.scheduleRender()}applyProjectionStyles(l,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=resolveMotionValue(c==null?void 0:c.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=resolveMotionValue(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(l.transform=u?u({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=buildProjectionTransform(this.projectionDeltaWithTransform,this.treeScale,p);u&&(m=u(p,m)),l.transform=m;const{x:g,y:b}=this.projectionDelta;l.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,d.animationValues?l.opacity=d===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:l.opacity=d===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const y in scaleCorrectors){if(p[y]===void 0)continue;const{correct:S,applyTo:w,isCSSVariable:E}=scaleCorrectors[y],A=m==="none"?p[y]:S(p[y],d);if(w){const T=w.length;for(let P=0;P<T;P++)l[w[P]]=A}else E?this.options.visualElement.renderState.vars[y]=A:l[y]=A}this.options.layoutId&&(l.pointerEvents=d===this?resolveMotionValue(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(e){e.updateLayout()}function notifyLayoutUpdate(e){var i;const t=((i=e.resumeFrom)==null?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=e.layout,{animationType:a}=e.options,l=t.source!==e.layout.source;a==="size"?eachAxis(m=>{const g=l?t.measuredBox[m]:t.layoutBox[m],b=calcLength(g);g.min=s[m].min,g.max=g.min+b}):shouldAnimatePositionOnly(a,t.layoutBox,s)&&eachAxis(m=>{const g=l?t.measuredBox[m]:t.layoutBox[m],b=calcLength(s[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const c=createDelta();calcBoxDelta(c,s,t.layoutBox);const u=createDelta();l?calcBoxDelta(u,e.applyTransform(o,!0),t.measuredBox):calcBoxDelta(u,s,t.layoutBox);const d=!isDeltaZero(c);let p=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const y=createBox();calcRelativePosition(y,t.layoutBox,g.layoutBox);const S=createBox();calcRelativePosition(S,s,b.layoutBox),boxEqualsRounded(y,S)||(p=!0),m.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=y,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function propagateDirtyNodes(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cleanDirtyNodes(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function clearSnapshot(e){e.clearSnapshot()}function clearMeasurements(e){e.clearMeasurements()}function clearIsLayoutDirty(e){e.isLayoutDirty=!1}function resetTransformStyle(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function finishAnimation(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function resolveTargetDelta(e){e.resolveTargetDelta()}function calcProjection(e){e.calcProjection()}function resetSkewAndRotation(e){e.resetSkewAndRotation()}function removeLeadSnapshots(e){e.removeLeadSnapshot()}function mixAxisDelta(e,t,i){e.translate=mixNumber$1(t.translate,0,i),e.scale=mixNumber$1(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function mixAxis(e,t,i,s){e.min=mixNumber$1(t.min,i.min,s),e.max=mixNumber$1(t.max,i.max,s)}function mixBox(e,t,i,s){mixAxis(e.x,t.x,i.x,s),mixAxis(e.y,t.y,i.y,s)}function hasOpacityCrossfade(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]},userAgentContains=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),roundPoint=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop$2;function roundAxis(e){e.min=roundPoint(e.min),e.max=roundPoint(e.max)}function roundBox(e){roundAxis(e.x),roundAxis(e.y)}function shouldAnimatePositionOnly(e,t,i){return e==="position"||e==="preserve-aspect"&&!isNear(aspectRatio(t),aspectRatio(i),.2)}function checkNodeWasScrollRoot(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const DocumentProjectionNode=createProjectionNode({attachResizeListener:(e,t)=>addDomEvent(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rootProjectionNode={current:void 0},HTMLProjectionNode=createProjectionNode({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rootProjectionNode.current){const e=new DocumentProjectionNode({});e.mount(window),e.setOptions({layoutScroll:!0}),rootProjectionNode.current=e}return rootProjectionNode.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),drag={pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:HTMLProjectionNode,MeasureLayout}};function handleHoverEvent(e,t,i){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",i==="Start");const o="onHover"+i,a=s[o];a&&frame.postRender(()=>a(t,extractEventInfo(t)))}class HoverGesture extends Feature{mount(){const{current:t}=this.node;t&&(this.unmount=hover(t,(i,s)=>(handleHoverEvent(this.node,s,"Start"),o=>handleHoverEvent(this.node,o,"End"))))}unmount(){}}class FocusGesture extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function handlePressEvent(e,t,i){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",i==="Start");const o="onTap"+(i==="End"?"":i),a=s[o];a&&frame.postRender(()=>a(t,extractEventInfo(t)))}class PressGesture extends Feature{mount(){const{current:t}=this.node;t&&(this.unmount=press(t,(i,s)=>(handlePressEvent(this.node,s,"Start"),(o,{success:a})=>handlePressEvent(this.node,o,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const observerCallbacks=new WeakMap,observers=new WeakMap,fireObserverCallback=e=>{const t=observerCallbacks.get(e.target);t&&t(e)},fireAllObserverCallbacks=e=>{e.forEach(fireObserverCallback)};function initIntersectionObserver({root:e,...t}){const i=e||document;observers.has(i)||observers.set(i,{});const s=observers.get(i),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(fireAllObserverCallbacks,{root:e,...t})),s[o]}function observeIntersection(e,t,i){const s=initIntersectionObserver(t);return observerCallbacks.set(e,i),s.observe(e),()=>{observerCallbacks.delete(e),s.unobserve(e)}}const thresholdNames={some:0,all:1};class InViewFeature extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:i,margin:s,amount:o="some",once:a}=t,l={root:i?i.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:thresholdNames[o]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:p,onViewportLeave:m}=this.node.getProps(),g=d?p:m;g&&g(u)};return observeIntersection(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:i}=this.node;["amount","margin","root"].some(hasViewportOptionChanged(t,i))&&this.startObserver()}unmount(){}}function hasViewportOptionChanged({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}const gestureAnimations={inView:{Feature:InViewFeature},tap:{Feature:PressGesture},focus:{Feature:FocusGesture},hover:{Feature:HoverGesture}},layout={layout:{ProjectionNode:HTMLProjectionNode,MeasureLayout}},featureBundle={...animations,...gestureAnimations,...drag,...layout},motion=createMotionProxy(featureBundle,createDomVisualElement);function useUnmountEffect(e){return reactExports.useEffect(()=>()=>e(),[])}function useMotionValue(e){const t=useConstant(()=>motionValue(e)),{isStatic:i}=reactExports.useContext(MotionConfigContext);if(i){const[,s]=reactExports.useState(e);reactExports.useEffect(()=>t.on("change",s),[])}return t}function isDOMKeyframes(e){return typeof e=="object"&&!Array.isArray(e)}function resolveSubjects(e,t,i,s){return typeof e=="string"&&isDOMKeyframes(t)?resolveElements(e,i,s):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function calculateRepeatDuration(e,t,i){return e*(t+1)}function calcNextTime(e,t,i,s){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?i:t.startsWith("<")?Math.max(0,i+parseFloat(t.slice(1))):s.get(t)??e}function eraseKeyframes(e,t,i){for(let s=0;s<e.length;s++){const o=e[s];o.at>t&&o.at<i&&(removeItem(e,o),s--)}}function addKeyframes(e,t,i,s,o,a){eraseKeyframes(e,o,a);for(let l=0;l<t.length;l++)e.push({value:t[l],at:mixNumber$1(o,a,s[l]),easing:getEasingForSegment(i,l)})}function normalizeTimes(e,t){for(let i=0;i<e.length;i++)e[i]=e[i]/(t+1)}function compareByTime(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const defaultSegmentEasing="easeInOut";function createAnimationsFromSequence(e,{defaultTransition:t={},...i}={},s,o){const a=t.duration||.3,l=new Map,c=new Map,u={},d=new Map;let p=0,m=0,g=0;for(let b=0;b<e.length;b++){const y=e[b];if(typeof y=="string"){d.set(y,m);continue}else if(!Array.isArray(y)){d.set(y.name,calcNextTime(m,y.at,p,d));continue}let[S,w,E={}]=y;E.at!==void 0&&(m=calcNextTime(m,E.at,p,d));let A=0;const T=(P,O,k,F=0,N=0)=>{const U=keyframesAsList(P),{delay:H=0,times:Y=defaultOffset(U),type:Z="keyframes",repeat:ie,repeatType:q,repeatDelay:z=0,...$}=O;let{ease:B=t.ease||"easeOut",duration:M}=O;const D=typeof H=="function"?H(F,N):H,G=U.length,j=isGenerator(Z)?Z:o==null?void 0:o[Z||"keyframes"];if(G<=2&&j){let se=100;if(G===2&&isNumberKeyframesArray(U)){const Q=U[1]-U[0];se=Math.abs(Q)}const ce={...$};M!==void 0&&(ce.duration=secondsToMilliseconds(M));const le=createGeneratorEasing(ce,se,j);B=le.ease,M=le.duration}M??(M=a);const W=m+D;Y.length===1&&Y[0]===0&&(Y[1]=1);const J=Y.length-U.length;if(J>0&&fillOffset(Y,J),U.length===1&&U.unshift(null),ie){M=calculateRepeatDuration(M,ie);const se=[...U],ce=[...Y];B=Array.isArray(B)?[...B]:[B];const le=[...B];for(let Q=0;Q<ie;Q++){U.push(...se);for(let oe=0;oe<se.length;oe++)Y.push(ce[oe]+(Q+1)),B.push(oe===0?"linear":getEasingForSegment(le,oe-1))}normalizeTimes(Y,ie)}const re=W+M;addKeyframes(k,U,B,Y,W,re),A=Math.max(D+M,A),g=Math.max(re,g)};if(isMotionValue(S)){const P=getSubjectSequence(S,c);T(w,E,getValueSequence("default",P))}else{const P=resolveSubjects(S,w,s,u),O=P.length;for(let k=0;k<O;k++){w=w,E=E;const F=P[k],N=getSubjectSequence(F,c);for(const U in w)T(w[U],getValueTransition(E,U),getValueSequence(U,N),k,O)}}p=m,m+=A}return c.forEach((b,y)=>{for(const S in b){const w=b[S];w.sort(compareByTime);const E=[],A=[],T=[];for(let O=0;O<w.length;O++){const{at:k,value:F,easing:N}=w[O];E.push(F),A.push(progress(0,g,k)),T.push(N||"easeOut")}A[0]!==0&&(A.unshift(0),E.unshift(E[0]),T.unshift(defaultSegmentEasing)),A[A.length-1]!==1&&(A.push(1),E.push(null)),l.has(y)||l.set(y,{keyframes:{},transition:{}});const P=l.get(y);P.keyframes[S]=E,P.transition[S]={...t,duration:g,ease:T,times:A,...i}}}),l}function getSubjectSequence(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function getValueSequence(e,t){return t[e]||(t[e]=[]),t[e]}function keyframesAsList(e){return Array.isArray(e)?e:[e]}function getValueTransition(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const isNumber$2=e=>typeof e=="number",isNumberKeyframesArray=e=>e.every(isNumber$2);function isObjectKey(e,t){return e in t}class ObjectVisualElement extends VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,i){if(isObjectKey(i,t)){const s=t[i];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(t,i){delete i.output[t]}measureInstanceViewportBox(){return createBox()}build(t,i){Object.assign(t.output,i)}renderInstance(t,{output:i}){Object.assign(t,i)}sortInstanceNodePosition(){return 0}}function createDOMVisualElement(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=isSVGElement$1(e)&&!isSVGSVGElement(e)?new SVGVisualElement(t):new HTMLVisualElement(t);i.mount(e),visualElementStore.set(e,i)}function createObjectVisualElement(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},i=new ObjectVisualElement(t);i.mount(e),visualElementStore.set(e,i)}function isSingleValue(e,t){return isMotionValue(e)||typeof e=="number"||typeof e=="string"&&!isDOMKeyframes(t)}function animateSubject(e,t,i,s){const o=[];if(isSingleValue(e,t))o.push(animateSingleValue(e,isDOMKeyframes(t)&&t.default||t,i&&(i.default||i)));else{const a=resolveSubjects(e,t,s),l=a.length;for(let c=0;c<l;c++){const u=a[c],d=u instanceof Element?createDOMVisualElement:createObjectVisualElement;visualElementStore.has(u)||d(u);const p=visualElementStore.get(u),m={...i};"delay"in m&&typeof m.delay=="function"&&(m.delay=m.delay(c,l)),o.push(...animateTarget(p,{...t,transition:m},{}))}}return o}function animateSequence(e,t,i){const s=[];return createAnimationsFromSequence(e,t,i,{spring}).forEach(({keyframes:a,transition:l},c)=>{s.push(...animateSubject(c,a,l))}),s}function isSequence(e){return Array.isArray(e)&&e.some(Array.isArray)}function createScopedAnimate(e){function t(i,s,o){let a=[],l;if(isSequence(i))a=animateSequence(i,s,e);else{const{onComplete:u,...d}=o||{};typeof u=="function"&&(l=u),a=animateSubject(i,s,d,e)}const c=new GroupAnimationWithThen(a);return l&&c.finished.then(l),e&&(e.animations.push(c),c.finished.then(()=>{removeItem(e.animations,c)})),c}return t}function useAnimate(){const e=useConstant(()=>({current:null,animations:[]})),t=useConstant(()=>createScopedAnimate(e));return useUnmountEffect(()=>{e.animations.forEach(i=>i.stop()),e.animations.length=0}),[e,t]}var define_process_env_default$5={NODE_ENV:"production",version:"1.92.1",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"};const ASSETS_BASE_URL=define_process_env_default$5.ASSETS_BASE_URL;function assetUrl(e){return`${ASSETS_BASE_URL}/${e}`}const image$1=assetUrl("icon_diamond.webp"),IconBalanceGems=({style:e,...t})=>jsxRuntimeExports.jsx("img",{src:image$1,style:{aspectRatio:"1/1",...e},...t,alt:""});function r(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(i=r(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function clsx(){for(var e,t,i=0,s="",o=arguments.length;i<o;i++)(e=arguments[i])&&(t=r(e))&&(s&&(s+=" "),s+=t);return s}const CLASS_PART_SEPARATOR="-",createClassGroupUtils=e=>{const t=createClassMap(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{const c=l.split(CLASS_PART_SEPARATOR);return c[0]===""&&c.length!==1&&c.shift(),getGroupRecursive(c,t)||getGroupIdForArbitraryProperty(l)},getConflictingClassGroupIds:(l,c)=>{const u=i[l]||[];return c&&s[l]?[...u,...s[l]]:u}}},getGroupRecursive=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const i=e[0],s=t.nextPart.get(i),o=s?getGroupRecursive(e.slice(1),s):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(CLASS_PART_SEPARATOR);return(l=t.validators.find(({validator:c})=>c(a)))==null?void 0:l.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(arbitraryPropertyRegex.test(e)){const t=arbitraryPropertyRegex.exec(e)[1],i=t==null?void 0:t.substring(0,t.indexOf(":"));if(i)return"arbitrary.."+i}},createClassMap=e=>{const{theme:t,classGroups:i}=e,s={nextPart:new Map,validators:[]};for(const o in i)processClassesRecursively(i[o],s,o,t);return s},processClassesRecursively=(e,t,i,s)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:getPart(t,o);a.classGroupId=i;return}if(typeof o=="function"){if(isThemeGetter(o)){processClassesRecursively(o(s),t,i,s);return}t.validators.push({validator:o,classGroupId:i});return}Object.entries(o).forEach(([a,l])=>{processClassesRecursively(l,getPart(t,a),i,s)})})},getPart=(e,t)=>{let i=e;return t.split(CLASS_PART_SEPARATOR).forEach(s=>{i.nextPart.has(s)||i.nextPart.set(s,{nextPart:new Map,validators:[]}),i=i.nextPart.get(s)}),i},isThemeGetter=e=>e.isThemeGetter,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=new Map,s=new Map;const o=(a,l)=>{i.set(a,l),t++,t>e&&(t=0,s=i,i=new Map)};return{get(a){let l=i.get(a);if(l!==void 0)return l;if((l=s.get(a))!==void 0)return o(a,l),l},set(a,l){i.has(a)?i.set(a,l):o(a,l)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",MODIFIER_SEPARATOR_LENGTH=MODIFIER_SEPARATOR.length,createParseClassName=e=>{const{prefix:t,experimentalParseClassName:i}=e;let s=o=>{const a=[];let l=0,c=0,u=0,d;for(let y=0;y<o.length;y++){let S=o[y];if(l===0&&c===0){if(S===MODIFIER_SEPARATOR){a.push(o.slice(u,y)),u=y+MODIFIER_SEPARATOR_LENGTH;continue}if(S==="/"){d=y;continue}}S==="["?l++:S==="]"?l--:S==="("?c++:S===")"&&c--}const p=a.length===0?o:o.substring(u),m=stripImportantModifier(p),g=m!==p,b=d&&d>u?d-u:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:b}};if(t){const o=t+MODIFIER_SEPARATOR,a=s;s=l=>l.startsWith(o)?a(l.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(i){const o=s;s=a=>i({className:a,parseClassName:o})}return s},stripImportantModifier=e=>e.endsWith(IMPORTANT_MODIFIER)?e.substring(0,e.length-1):e.startsWith(IMPORTANT_MODIFIER)?e.substring(1):e,createSortModifiers=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const o=[];let a=[];return s.forEach(l=>{l[0]==="["||t[l]?(o.push(...a.sort(),l),a=[]):a.push(l)}),o.push(...a.sort()),o}},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),sortModifiers:createSortModifiers(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,t)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:a}=t,l=[],c=e.trim().split(SPLIT_CLASSES_REGEX);let u="";for(let d=c.length-1;d>=0;d-=1){const p=c[d],{isExternal:m,modifiers:g,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:S}=i(p);if(m){u=p+(u.length>0?" "+u:u);continue}let w=!!S,E=s(w?y.substring(0,S):y);if(!E){if(!w){u=p+(u.length>0?" "+u:u);continue}if(E=s(y),!E){u=p+(u.length>0?" "+u:u);continue}w=!1}const A=a(g).join(":"),T=b?A+IMPORTANT_MODIFIER:A,P=T+E;if(l.includes(P))continue;l.push(P);const O=o(E,w);for(let k=0;k<O.length;++k){const F=O[k];l.push(T+F)}u=p+(u.length>0?" "+u:u)}return u};function twJoin(){let e=0,t,i,s="";for(;e<arguments.length;)(t=arguments[e++])&&(i=toValue(t))&&(s&&(s+=" "),s+=i);return s}const toValue=e=>{if(typeof e=="string")return e;let t,i="";for(let s=0;s<e.length;s++)e[s]&&(t=toValue(e[s]))&&(i&&(i+=" "),i+=t);return i};function createTailwindMerge(e,...t){let i,s,o,a=l;function l(u){const d=t.reduce((p,m)=>m(p),e());return i=createConfigUtils(d),s=i.cache.get,o=i.cache.set,a=c,c(u)}function c(u){const d=s(u);if(d)return d;const p=mergeClassList(u,i);return o(u,p),p}return function(){return a(twJoin.apply(null,arguments))}}const fromTheme=e=>{const t=i=>i[e]||[];return t.isThemeGetter=!0,t},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+\/\d+$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\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$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=e=>fractionRegex.test(e),isNumber$1=e=>!!e&&!Number.isNaN(Number(e)),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber$1(e.slice(0,-1)),isTshirtSize=e=>tshirtUnitRegex.test(e),isAny=()=>!0,isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),isAnyNonArbitrary=e=>!isArbitraryValue(e)&&!isArbitraryVariable(e),isArbitrarySize=e=>getIsArbitraryValue(e,isLabelSize,isNever),isArbitraryValue=e=>arbitraryValueRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,isLabelLength,isLengthOnly),isArbitraryNumber=e=>getIsArbitraryValue(e,isLabelNumber,isNumber$1),isArbitraryPosition=e=>getIsArbitraryValue(e,isLabelPosition,isNever),isArbitraryImage=e=>getIsArbitraryValue(e,isLabelImage,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,isLabelShadow,isShadow),isArbitraryVariable=e=>arbitraryVariableRegex.test(e),isArbitraryVariableLength=e=>getIsArbitraryVariable(e,isLabelLength),isArbitraryVariableFamilyName=e=>getIsArbitraryVariable(e,isLabelFamilyName),isArbitraryVariablePosition=e=>getIsArbitraryVariable(e,isLabelPosition),isArbitraryVariableSize=e=>getIsArbitraryVariable(e,isLabelSize),isArbitraryVariableImage=e=>getIsArbitraryVariable(e,isLabelImage),isArbitraryVariableShadow=e=>getIsArbitraryVariable(e,isLabelShadow,!0),getIsArbitraryValue=(e,t,i)=>{const s=arbitraryValueRegex.exec(e);return s?s[1]?t(s[1]):i(s[2]):!1},getIsArbitraryVariable=(e,t,i=!1)=>{const s=arbitraryVariableRegex.exec(e);return s?s[1]?t(s[1]):i:!1},isLabelPosition=e=>e==="position"||e==="percentage",isLabelImage=e=>e==="image"||e==="url",isLabelSize=e=>e==="length"||e==="size"||e==="bg-size",isLabelLength=e=>e==="length",isLabelNumber=e=>e==="number",isLabelFamilyName=e=>e==="family-name",isLabelShadow=e=>e==="shadow",getDefaultConfig=()=>{const e=fromTheme("color"),t=fromTheme("font"),i=fromTheme("text"),s=fromTheme("font-weight"),o=fromTheme("tracking"),a=fromTheme("leading"),l=fromTheme("breakpoint"),c=fromTheme("container"),u=fromTheme("spacing"),d=fromTheme("radius"),p=fromTheme("shadow"),m=fromTheme("inset-shadow"),g=fromTheme("text-shadow"),b=fromTheme("drop-shadow"),y=fromTheme("blur"),S=fromTheme("perspective"),w=fromTheme("aspect"),E=fromTheme("ease"),A=fromTheme("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...P(),isArbitraryVariable,isArbitraryValue],k=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],N=()=>[isArbitraryVariable,isArbitraryValue,u],U=()=>[isFraction,"full","auto",...N()],H=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],Y=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],Z=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],ie=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...N()],B=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],M=()=>[e,isArbitraryVariable,isArbitraryValue],D=()=>[...P(),isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],W=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],J=()=>["","none","full",d,isArbitraryVariable,isArbitraryValue],re=()=>["",isNumber$1,isArbitraryVariableLength,isArbitraryLength],se=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[isNumber$1,isPercent,isArbitraryVariablePosition,isArbitraryPosition],Q=()=>["","none",y,isArbitraryVariable,isArbitraryValue],oe=()=>["none",isNumber$1,isArbitraryVariable,isArbitraryValue],de=()=>["none",isNumber$1,isArbitraryVariable,isArbitraryValue],ue=()=>[isNumber$1,isArbitraryVariable,isArbitraryValue],ye=()=>[isFraction,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber$1],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,w]}],container:["container"],columns:[{columns:[isNumber$1,isArbitraryValue,isArbitraryVariable,c]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:O()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",c,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber$1,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[c,"screen",...B()]}],"min-w":[{"min-w":[c,"screen","none",...B()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",i,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,isArbitraryVariable,isArbitraryNumber]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryValue,t]}],"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:[o,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber$1,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[a,...N()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[isNumber$1,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[isNumber$1,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],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",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber$1,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",p,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",m,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[isNumber$1,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",g,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[isNumber$1]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[isNumber$1]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:Q()}],brightness:[{brightness:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",b,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber$1,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",E,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",A,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",isArbitraryVariable,isArbitraryValue]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[isNumber$1,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}},twMerge=createTailwindMerge(getDefaultConfig);function cn$1(...e){return twMerge(clsx(e))}function Drawer({children:e,headerOptions:t,closeButtonStyles:i,className:s,variant:o="default",style:a,...l}){return jsxRuntimeExports.jsx(Modal,{header:jsxRuntimeExports.jsx(Modal.Header,{after:jsxRuntimeExports.jsx(Modal.Close,{children:jsxRuntimeExports.jsx(Icon28Close,{style:{color:"var(--tgui--secondary_color)",...i}})}),style:{zIndex:1,position:"absolute",top:0,left:0,right:0,backgroundColor:"transparent",borderRadius:"inherit",overflow:"hidden",...t==null?void 0:t.style},className:cn$1("before:hidden",t==null?void 0:t.className),...t}),className:cn$1("pb-0",s),style:o==="secondary"?{backgroundColor:"var(--tgui--secondary_bg_color)",...a}:a,...l,children:e})}const DrawerContent=reactExports.forwardRef(({children:e,className:t,...i},s)=>jsxRuntimeExports.jsx("div",{ref:s,className:cn$1("flex flex-col text-center px-4 pt-7.5 gap-6 pb-[calc(var(--tg-safe-area-inset-bottom)+6px)]",t),...i,children:e})),useAnimateNumber=(e,t=!0,i=!1)=>{const[,s]=useAnimate(),[o,a]=React.useState(t?0:e),l=useMotionValue(t?0:e),c=React.useRef(e);return l.on("change",d=>{const m=Math.abs(d-c.current)<.001;a(m?i?c.current:Math.round(c.current):i?d:Math.round(d))}),reactExports.useEffect(()=>{c.current=e;const d=s(l,e,{ease:"easeOut",duration:.1});return()=>d.stop()},[l,e,s]),[o,d=>{c.current=d;const p=s(l,d,{ease:"easeOut",duration:.1});return()=>p.stop()}]},XpProgress=({level:e,experience:t,xpNeeded:i,className:s,size:o=40,levelFontSize:a})=>{const[l]=useAnimateNumber(t),[c]=useAnimateNumber(e),u=4,d=Math.round(l/i*100)/100,p=o,m=p/2-u/2,g=2*Math.PI*m,b=formatCompactNumber(c),y=a||`${p*.6/(1+.4*(b.length-1))}px`;return jsxRuntimeExports.jsxs("div",{className:cn$1("relative flex justify-center items-center overflow-hidden",s),style:{width:o,height:o},children:[jsxRuntimeExports.jsx(Text,{className:"text-rounded",style:{fontSize:y,lineHeight:`${o||p}px`,fontWeight:800},children:b}),jsxRuntimeExports.jsxs(motion.svg,{width:p,height:p,viewBox:`0 0 ${p} ${p}`,className:"absolute inset-0 text-inherit",children:[jsxRuntimeExports.jsx("title",{children:"Xp progress background"}),jsxRuntimeExports.jsx(motion.circle,{cx:p/2,cy:p/2,r:m,opacity:.2,stroke:"currentColor",fill:"none",strokeWidth:u})]},"bg"),jsxRuntimeExports.jsxs(motion.svg,{width:p,height:p,viewBox:`0 0 ${p} ${p}`,className:"absolute inset-0 -rotate-90",children:[jsxRuntimeExports.jsx("title",{children:"Xp progress"}),jsxRuntimeExports.jsx(motion.circle,{cx:p/2,cy:p/2,r:m,fill:"none",stroke:"currentColor",strokeWidth:u,strokeLinecap:"round",initial:{strokeDasharray:g,strokeDashoffset:g},animate:{strokeDashoffset:(1-d)*g},transition:{strokeDashoffset:{ease:"easeOut",duration:2}}})]},"fg")]})},dividePriceResponse=e=>e/100,DEBUG_BUILD$2=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,GLOBAL_OBJ=globalThis,SDK_VERSION="10.18.0";function getMainCarrier(){return getSentryCarrier(GLOBAL_OBJ),GLOBAL_OBJ}function getSentryCarrier(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||SDK_VERSION,t[SDK_VERSION]=t[SDK_VERSION]||{}}function getGlobalSingleton(e,t,i=GLOBAL_OBJ){const s=i.__SENTRY__=i.__SENTRY__||{},o=s[SDK_VERSION]=s[SDK_VERSION]||{};return o[e]||(o[e]=t())}const CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],PREFIX="Sentry Logger ",originalConsoleMethods={};function consoleSandbox(e){if(!("console"in GLOBAL_OBJ))return e();const t=GLOBAL_OBJ.console,i={},s=Object.keys(originalConsoleMethods);s.forEach(o=>{const a=originalConsoleMethods[o];i[o]=t[o],t[o]=a});try{return e()}finally{s.forEach(o=>{t[o]=i[o]})}}function enable(){_getLoggerSettings().enabled=!0}function disable(){_getLoggerSettings().enabled=!1}function isEnabled(){return _getLoggerSettings().enabled}function log$6(...e){_maybeLog("log",...e)}function warn(...e){_maybeLog("warn",...e)}function error(...e){_maybeLog("error",...e)}function _maybeLog(e,...t){DEBUG_BUILD$2&&isEnabled()&&consoleSandbox(()=>{GLOBAL_OBJ.console[e](`${PREFIX}[${e}]:`,...t)})}function _getLoggerSettings(){return DEBUG_BUILD$2?getGlobalSingleton("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const debug={enable,disable,isEnabled,log:log$6,warn,error},STACKTRACE_FRAME_LIMIT=50,UNKNOWN_FUNCTION="?",WEBPACK_ERROR_REGEXP=/\(error: (.*)\)/,STRIP_FRAME_REGEXP=/captureMessage|captureException/;function createStackParser(...e){const t=e.sort((i,s)=>i[0]-s[0]).map(i=>i[1]);return(i,s=0,o=0)=>{const a=[],l=i.split(`
|
|
99
|
+
`),()=>{w.contains(S)&&w.removeChild(S)}},[t]),jsxRuntimeExports.jsx(PopChildMeasure,{isPresent:t,childRef:a,sizeRef:l,children:reactExports.cloneElement(e,{ref:u})})}const PresenceChild=({children:e,initial:t,isPresent:i,onExitComplete:s,custom:o,presenceAffectsLayout:a,mode:l,anchorX:c,root:u})=>{const d=useConstant(newChildrenMap),p=reactExports.useId();let m=!0,g=reactExports.useMemo(()=>(m=!1,{id:p,initial:t,isPresent:i,custom:o,onExitComplete:b=>{d.set(b,!0);for(const y of d.values())if(!y)return;s&&s()},register:b=>(d.set(b,!1),()=>d.delete(b))}),[i,d,s]);return a&&m&&(g={...g}),reactExports.useMemo(()=>{d.forEach((b,y)=>d.set(y,!1))},[i]),reactExports.useEffect(()=>{!i&&!d.size&&s&&s()},[i]),l==="popLayout"&&(e=jsxRuntimeExports.jsx(PopChild,{isPresent:i,anchorX:c,root:u,children:e})),jsxRuntimeExports.jsx(PresenceContext.Provider,{value:g,children:e})};function newChildrenMap(){return new Map}function usePresence(e=!0){const t=reactExports.useContext(PresenceContext);if(t===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:o}=t,a=reactExports.useId();reactExports.useEffect(()=>{if(e)return o(a)},[e]);const l=reactExports.useCallback(()=>e&&s&&s(a),[a,s,e]);return!i&&s?[!1,l]:[!0]}const getChildKey=e=>e.key||"";function onlyElements(e){const t=[];return reactExports.Children.forEach(e,i=>{reactExports.isValidElement(i)&&t.push(i)}),t}const AnimatePresence=({children:e,custom:t,initial:i=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:a="sync",propagate:l=!1,anchorX:c="left",root:u})=>{const[d,p]=usePresence(l),m=reactExports.useMemo(()=>onlyElements(e),[e]),g=l&&!d?[]:m.map(getChildKey),b=reactExports.useRef(!0),y=reactExports.useRef(m),S=useConstant(()=>new Map),[w,E]=reactExports.useState(m),[A,T]=reactExports.useState(m);useIsomorphicLayoutEffect(()=>{b.current=!1,y.current=m;for(let k=0;k<A.length;k++){const F=getChildKey(A[k]);g.includes(F)?S.delete(F):S.get(F)!==!0&&S.set(F,!1)}},[A,g.length,g.join("-")]);const P=[];if(m!==w){let k=[...m];for(let F=0;F<A.length;F++){const N=A[F],U=getChildKey(N);g.includes(U)||(k.splice(F,0,N),P.push(N))}return a==="wait"&&P.length&&(k=P),T(onlyElements(k)),E(m),null}const{forceRender:O}=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:A.map(k=>{const F=getChildKey(k),N=l&&!d?!1:m===A||g.includes(F),U=()=>{if(S.has(F))S.set(F,!0);else return;let H=!0;S.forEach(Y=>{Y||(H=!1)}),H&&(O==null||O(),T(y.current),l&&(p==null||p()),s&&s())};return jsxRuntimeExports.jsx(PresenceChild,{isPresent:N,initial:!b.current||i?void 0:!1,custom:t,presenceAffectsLayout:o,mode:a,root:u,onExitComplete:N?void 0:U,anchorX:c,children:k},F)})})},LazyContext=reactExports.createContext({strict:!1}),featureProps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},featureDefinitions={};for(const e in featureProps)featureDefinitions[e]={isEnabled:t=>featureProps[e].some(i=>!!t[i])};function loadFeatures(e){for(const t in e)featureDefinitions[t]={...featureDefinitions[t],...e[t]}}const validMotionProps=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||validMotionProps.has(e)}let shouldForward=e=>!isValidMotionProp(e);function loadExternalIsValidProp(e){typeof e=="function"&&(shouldForward=t=>t.startsWith("on")?!isValidMotionProp(t):e(t))}try{loadExternalIsValidProp(require("@emotion/is-prop-valid").default)}catch{}function filterProps(e,t,i){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(shouldForward(o)||i===!0&&isValidMotionProp(o)||!t&&!isValidMotionProp(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}const MotionContext=reactExports.createContext({});function isAnimationControls(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function isVariantLabel(e){return typeof e=="string"||Array.isArray(e)}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants(e){return isAnimationControls(e.animate)||variantProps.some(t=>isVariantLabel(e[t]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}function getCurrentTreeVariants(e,t){if(isControllingVariants(e)){const{initial:i,animate:s}=e;return{initial:i===!1||isVariantLabel(i)?i:void 0,animate:isVariantLabel(s)?s:void 0}}return e.inherit!==!1?t:{}}function useCreateMotionContext(e){const{initial:t,animate:i}=getCurrentTreeVariants(e,reactExports.useContext(MotionContext));return reactExports.useMemo(()=>({initial:t,animate:i}),[variantLabelsAsDependency(t),variantLabelsAsDependency(i)])}function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}const scaleCorrectors={};function addScaleCorrector(e){for(const t in e)scaleCorrectors[t]=e[t],isCSSVariableName(t)&&(scaleCorrectors[t].isCSSVariable=!0)}function isForcedMotionValue(e,{layout:t,layoutId:i}){return transformProps.has(e)||e.startsWith("origin")||(t||i!==void 0)&&(!!scaleCorrectors[e]||e==="opacity")}const translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform(e,t,i){let s="",o=!0;for(let a=0;a<numTransforms;a++){const l=transformPropOrder[a],c=e[l];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(l.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||i){const d=getValueAsType(c,numberValueTypes[l]);if(!u){o=!1;const p=translateAlias[l]||l;s+=`${p}(${d}) `}i&&(t[l]=d)}}return s=s.trim(),i?s=i(t,o?"":s):o&&(s="none"),s}function buildHTMLStyles(e,t,i){const{style:s,vars:o,transformOrigin:a}=e;let l=!1,c=!1;for(const u in t){const d=t[u];if(transformProps.has(u)){l=!0;continue}else if(isCSSVariableName(u)){o[u]=d;continue}else{const p=getValueAsType(d,numberValueTypes[u]);u.startsWith("origin")?(c=!0,a[u]=p):s[u]=p}}if(t.transform||(l||i?s.transform=buildTransform(t,e.transform,i):s.transform&&(s.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:p=0}=a;s.transformOrigin=`${u} ${d} ${p}`}}const createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(e,t,i){for(const s in t)!isMotionValue(t[s])&&!isForcedMotionValue(s,i)&&(e[s]=t[s])}function useInitialMotionValues({transformTemplate:e},t){return reactExports.useMemo(()=>{const i=createHtmlRenderState();return buildHTMLStyles(i,t,e),Object.assign({},i.vars,i.style)},[t])}function useStyle(e,t){const i=e.style||{},s={};return copyRawValuesOnly(s,i,e),Object.assign(s,useInitialMotionValues(e,t)),s}function useHTMLProps(e,t){const i={},s=useStyle(e,t);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=s,i}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath(e,t,i=1,s=0,o=!0){e.pathLength=1;const a=o?dashKeys:camelKeys;e[a.offset]=px.transform(-s);const l=px.transform(t),c=px.transform(i);e[a.array]=`${l} ${c}`}function buildSVGAttrs(e,{attrX:t,attrY:i,attrScale:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,d,p){if(buildHTMLStyles(e,c,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),i!==void 0&&(m.y=i),s!==void 0&&(m.scale=s),o!==void 0&&buildSVGPath(m,o,a,l,!1)}const createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=e=>typeof e=="string"&&e.toLowerCase()==="svg";function useSVGProps(e,t,i,s){const o=reactExports.useMemo(()=>{const a=createSvgRenderState();return buildSVGAttrs(a,t,isSVGTag(s),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};copyRawValuesOnly(a,e.style,e),o.style={...a,...o.style}}return o}const lowercaseSVGElements=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent(e){return typeof e!="string"||e.includes("-")?!1:!!(lowercaseSVGElements.indexOf(e)>-1||/[A-Z]/u.test(e))}function useRender(e,t,i,{latestValues:s},o,a=!1){const c=(isSVGComponent(e)?useSVGProps:useHTMLProps)(t,s,o,e),u=filterProps(t,typeof e=="string",a),d=e!==reactExports.Fragment?{...u,...c,ref:i}:{},{children:p}=t,m=reactExports.useMemo(()=>isMotionValue(p)?p.get():p,[p]);return reactExports.createElement(e,{...d,children:m})}function getValueState(e){const t=[{},{}];return e==null||e.values.forEach((i,s)=>{t[0][s]=i.get(),t[1][s]=i.getVelocity()}),t}function resolveVariantFromProps(e,t,i,s){if(typeof t=="function"){const[o,a]=getValueState(s);t=t(i!==void 0?i:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,a]=getValueState(s);t=t(i!==void 0?i:e.custom,o,a)}return t}function resolveMotionValue(e){return isMotionValue(e)?e.get():e}function makeState({scrapeMotionValuesFromProps:e,createRenderState:t},i,s,o){return{latestValues:makeLatestValues(i,s,o,e),renderState:t()}}function makeLatestValues(e,t,i,s){const o={},a=s(e,{});for(const g in a)o[g]=resolveMotionValue(a[g]);let{initial:l,animate:c}=e;const u=isControllingVariants(e),d=isVariantNode(e);t&&d&&!u&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let p=i?i.initial===!1:!1;p=p||l===!1;const m=p?c:l;if(m&&typeof m!="boolean"&&!isAnimationControls(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const y=resolveVariantFromProps(e,g[b]);if(y){const{transitionEnd:S,transition:w,...E}=y;for(const A in E){let T=E[A];if(Array.isArray(T)){const P=p?T.length-1:0;T=T[P]}T!==null&&(o[A]=T)}for(const A in S)o[A]=S[A]}}}return o}const makeUseVisualState=e=>(t,i)=>{const s=reactExports.useContext(MotionContext),o=reactExports.useContext(PresenceContext),a=()=>makeState(e,t,s,o);return i?a():useConstant(a)};function scrapeMotionValuesFromProps$1(e,t,i){var a;const{style:s}=e,o={};for(const l in s)(isMotionValue(s[l])||t.style&&isMotionValue(t.style[l])||isForcedMotionValue(l,e)||((a=i==null?void 0:i.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(o[l]=s[l]);return o}const useHTMLVisualState=makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState});function scrapeMotionValuesFromProps(e,t,i){const s=scrapeMotionValuesFromProps$1(e,t,i);for(const o in e)if(isMotionValue(e[o])||isMotionValue(t[o])){const a=transformPropOrder.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[a]=e[o]}return s}const useSVGVisualState=makeUseVisualState({scrapeMotionValuesFromProps,createRenderState:createSvgRenderState}),motionComponentSymbol=Symbol.for("motionComponentSymbol");function isRefObject(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function useMotionRef(e,t,i){return reactExports.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),i&&(typeof i=="function"?i(s):isRefObject(i)&&(i.current=s))},[t])}const camelToDash=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId),SwitchLayoutGroupContext=reactExports.createContext({});function useVisualElement(e,t,i,s,o){var S,w;const{visualElement:a}=reactExports.useContext(MotionContext),l=reactExports.useContext(LazyContext),c=reactExports.useContext(PresenceContext),u=reactExports.useContext(MotionConfigContext).reducedMotion,d=reactExports.useRef(null);s=s||l.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:a,props:i,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const p=d.current,m=reactExports.useContext(SwitchLayoutGroupContext);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&createProjectionNode$1(d.current,i,o,m);const g=reactExports.useRef(!1);reactExports.useInsertionEffect(()=>{p&&g.current&&p.update(i,c)});const b=i[optimizedAppearDataAttribute],y=reactExports.useRef(!!b&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,b))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,b)));return useIsomorphicLayoutEffect(()=>{p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),reactExports.useEffect(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,b)}),y.current=!1),p.enteringChildren=void 0)}),p}function createProjectionNode$1(e,t,i,s){const{layoutId:o,layout:a,drag:l,dragConstraints:c,layoutScroll:u,layoutRoot:d,layoutCrossfade:p}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:getClosestProjectingNode(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!l||c&&isRefObject(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:s,crossfade:p,layoutScroll:u,layoutRoot:d})}function getClosestProjectingNode(e){if(e)return e.options.allowProjection!==!1?e.projection:getClosestProjectingNode(e.parent)}function createMotionComponent(e,{forwardMotionProps:t=!1}={},i,s){i&&loadFeatures(i);const o=isSVGComponent(e)?useSVGVisualState:useHTMLVisualState;function a(c,u){let d;const p={...reactExports.useContext(MotionConfigContext),...c,layoutId:useLayoutId(c)},{isStatic:m}=p,g=useCreateMotionContext(c),b=o(c,m);if(!m&&isBrowser){useStrictMode();const y=getProjectionFunctionality(p);d=y.MeasureLayout,g.visualElement=useVisualElement(e,b,p,s,y.ProjectionNode)}return jsxRuntimeExports.jsxs(MotionContext.Provider,{value:g,children:[d&&g.visualElement?jsxRuntimeExports.jsx(d,{visualElement:g.visualElement,...p}):null,useRender(e,c,useMotionRef(b,g.visualElement,u),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=reactExports.forwardRef(a);return l[motionComponentSymbol]=e,l}function useLayoutId({layoutId:e}){const t=reactExports.useContext(LayoutGroupContext).id;return t&&e!==void 0?t+"-"+e:e}function useStrictMode(e,t){reactExports.useContext(LazyContext).strict}function getProjectionFunctionality(e){const{drag:t,layout:i}=featureDefinitions;if(!t&&!i)return{};const s={...t,...i};return{MeasureLayout:t!=null&&t.isEnabled(e)||i!=null&&i.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function createMotionProxy(e,t){if(typeof Proxy>"u")return createMotionComponent;const i=new Map,s=(a,l)=>createMotionComponent(a,l,e,t),o=(a,l)=>s(a,l);return new Proxy(o,{get:(a,l)=>l==="create"?s:(i.has(l)||i.set(l,createMotionComponent(l,void 0,e,t)),i.get(l))})}function convertBoundingBoxToBox({top:e,left:t,right:i,bottom:s}){return{x:{min:t,max:i},y:{min:e,max:s}}}function convertBoxToBoundingBox({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function transformBoxPoints(e,t){if(!t)return e;const i=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function isIdentityScale(e){return e===void 0||e===1}function hasScale({scale:e,scaleX:t,scaleY:i}){return!isIdentityScale(e)||!isIdentityScale(t)||!isIdentityScale(i)}function hasTransform(e){return hasScale(e)||has2DTranslate(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function has2DTranslate(e){return is2DTranslate(e.x)||is2DTranslate(e.y)}function is2DTranslate(e){return e&&e!=="0%"}function scalePoint(e,t,i){const s=e-i,o=t*s;return i+o}function applyPointDelta(e,t,i,s,o){return o!==void 0&&(e=scalePoint(e,o,s)),scalePoint(e,i,s)+t}function applyAxisDelta(e,t=0,i=1,s,o){e.min=applyPointDelta(e.min,t,i,s,o),e.max=applyPointDelta(e.max,t,i,s,o)}function applyBoxDelta(e,{x:t,y:i}){applyAxisDelta(e.x,t.translate,t.scale,t.originPoint),applyAxisDelta(e.y,i.translate,i.scale,i.originPoint)}const TREE_SCALE_SNAP_MIN=.999999999999,TREE_SCALE_SNAP_MAX=1.0000000000001;function applyTreeDeltas(e,t,i,s=!1){const o=i.length;if(!o)return;t.x=t.y=1;let a,l;for(let c=0;c<o;c++){a=i[c],l=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&a.options.layoutScroll&&a.scroll&&a!==a.root&&transformBox(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,applyBoxDelta(e,l)),s&&hasTransform(a.latestValues)&&transformBox(e,a.latestValues))}t.x<TREE_SCALE_SNAP_MAX&&t.x>TREE_SCALE_SNAP_MIN&&(t.x=1),t.y<TREE_SCALE_SNAP_MAX&&t.y>TREE_SCALE_SNAP_MIN&&(t.y=1)}function translateAxis(e,t){e.min=e.min+t,e.max=e.max+t}function transformAxis(e,t,i,s,o=.5){const a=mixNumber$1(e.min,e.max,o);applyAxisDelta(e,t,i,a,s)}function transformBox(e,t){transformAxis(e.x,t.x,t.scaleX,t.scale,t.originX),transformAxis(e.y,t.y,t.scaleY,t.scale,t.originY)}function measureViewportBox(e,t){return convertBoundingBoxToBox(transformBoxPoints(e.getBoundingClientRect(),t))}function measurePageBox(e,t,i){const s=measureViewportBox(e,i),{scroll:o}=t;return o&&(translateAxis(s.x,o.offset.x),translateAxis(s.y,o.offset.y)),s}const createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()}),prefersReducedMotion={current:null},hasReducedMotionListener={current:!1};function initPrefersReducedMotion(){if(hasReducedMotionListener.current=!0,!!isBrowser)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>prefersReducedMotion.current=e.matches;e.addEventListener("change",t),t()}else prefersReducedMotion.current=!1}const visualElementStore=new WeakMap;function updateMotionValuesFromProps(e,t,i){for(const s in t){const o=t[s],a=i[s];if(isMotionValue(o))e.addValue(s,o);else if(isMotionValue(a))e.addValue(s,motionValue(o,{owner:e}));else if(a!==o)if(e.hasValue(s)){const l=e.getValue(s);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(s);e.addValue(s,motionValue(l!==void 0?l:o,{owner:e}))}}for(const s in i)t[s]===void 0&&e.removeValue(s);return t}const propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class VisualElement{scrapeMotionValuesFromProps(t,i,s){return{}}constructor({parent:t,props:i,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=time.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,frame.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=i.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=i,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=isControllingVariants(i),this.isVariantNode=isVariantNode(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(i,{},this);for(const g in m){const b=m[g];u[g]!==void 0&&isMotionValue(b)&&b.set(u[g])}}mount(t){var i;this.current=t,visualElementStore.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,o)=>this.bindToMotionValue(o,s)),hasReducedMotionListener.current||initPrefersReducedMotion(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:prefersReducedMotion.current,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),cancelFrame(this.notifyUpdate),cancelFrame(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,i){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=transformProps.has(t);s&&this.onBindTransform&&this.onBindTransform();const o=i.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,i)),this.valueSubscriptions.set(t,()=>{o(),a&&a(),i.owner&&i.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in featureDefinitions){const i=featureDefinitions[t];if(!i)continue;const{isEnabled:s,Feature:o}=i;if(!this.features[t]&&o&&s(this.props)&&(this.features[t]=new o(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,i){this.latestValues[t]=i}update(t,i){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<propEventHandlers.length;s++){const o=propEventHandlers[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a="on"+o,l=t[a];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(t),()=>i.variantChildren.delete(t)}addValue(t,i){const s=this.values.get(t);i!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,i),this.values.set(t,i),this.latestValues[t]=i.get())}removeValue(t){this.values.delete(t);const i=this.valueSubscriptions.get(t);i&&(i(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,i){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&i!==void 0&&(s=motionValue(i===null?void 0:i,{owner:this}),this.addValue(t,s)),s}readValue(t,i){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(isNumericalString(s)||isZeroValueString(s))?s=parseFloat(s):!findValueType(s)&&complex.test(i)&&(s=getAnimatableNone(t,i)),this.setBaseTarget(t,isMotionValue(s)?s.get():s)),isMotionValue(s)?s.get():s}setBaseTarget(t,i){this.baseTarget[t]=i}getBaseTarget(t){var a;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const l=resolveVariantFromProps(this.props,i,(a=this.presenceContext)==null?void 0:a.custom);l&&(s=l[t])}if(i&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!isMotionValue(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,i){return this.events[t]||(this.events[t]=new SubscriptionManager),this.events[t].add(i)}notify(t,...i){this.events[t]&&this.events[t].notify(...i)}scheduleRenderMicrotask(){microtask.render(this.render)}}class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(t,i){return t.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(t,i){return t.style?t.style[i]:void 0}removeValueFromRenderState(t,{vars:i,style:s}){delete i[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;isMotionValue(t)&&(this.childSubscription=t.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function renderHTML(e,{style:t,vars:i},s,o){const a=e.style;let l;for(l in t)a[l]=t[l];o==null||o.applyProjectionStyles(a,s);for(l in i)a.setProperty(l,i[l])}function getComputedStyle$1(e){return window.getComputedStyle(e)}class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(t,i){var s;if(transformProps.has(i))return(s=this.projection)!=null&&s.isProjecting?defaultTransformValue(i):readTransformValue(t,i);{const o=getComputedStyle$1(t),a=(isCSSVariableName(i)?o.getPropertyValue(i):o[i])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:i}){return measureViewportBox(t,i)}build(t,i,s){buildHTMLStyles(t,i,s.transformTemplate)}scrapeMotionValuesFromProps(t,i,s){return scrapeMotionValuesFromProps$1(t,i,s)}}const camelCaseAttributes=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function renderSVG(e,t,i,s){renderHTML(e,t,void 0,s);for(const o in t.attrs)e.setAttribute(camelCaseAttributes.has(o)?o:camelToDash(o),t.attrs[o])}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(t,i){return t[i]}readValueFromInstance(t,i){if(transformProps.has(i)){const s=getDefaultValueType(i);return s&&s.default||0}return i=camelCaseAttributes.has(i)?i:camelToDash(i),t.getAttribute(i)}scrapeMotionValuesFromProps(t,i,s){return scrapeMotionValuesFromProps(t,i,s)}build(t,i,s){buildSVGAttrs(t,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,i,s,o){renderSVG(t,i,s,o)}mount(t){this.isSVGTag=isSVGTag(t.tagName),super.mount(t)}}const createDomVisualElement=(e,t)=>isSVGComponent(e)?new SVGVisualElement(t):new HTMLVisualElement(t,{allowProjection:e!==reactExports.Fragment});function resolveVariant(e,t,i){const s=e.getProps();return resolveVariantFromProps(s,t,i!==void 0?i:s.custom,e)}const isKeyframesTarget=e=>Array.isArray(e);function setMotionValue(e,t,i){e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,motionValue(i))}function resolveFinalValueInKeyframes(e){return isKeyframesTarget(e)?e[e.length-1]||0:e}function setTarget(e,t){const i=resolveVariant(e,t);let{transitionEnd:s={},transition:o={},...a}=i||{};a={...a,...s};for(const l in a){const c=resolveFinalValueInKeyframes(a[l]);setMotionValue(e,l,c)}}function isWillChangeMotionValue(e){return!!(isMotionValue(e)&&e.add)}function addValueToWillChange(e,t){const i=e.getValue("willChange");if(isWillChangeMotionValue(i))return i.add(t);if(!i&&MotionGlobalConfig.WillChange){const s=new MotionGlobalConfig.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function getOptimisedAppearId(e){return e.props[optimizedAppearDataAttribute]}const isNotNull=e=>e!==null;function getFinalKeyframe(e,{repeat:t,repeatType:i="loop"},s){const o=e.filter(isNotNull),a=t&&i!=="loop"&&t%2===1?0:o.length-1;return o[a]}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:t})=>t.length>2?keyframesTransition:transformProps.has(e)?e.startsWith("scale")?criticallyDampedSpring(t[1]):underDampedSpring:ease;function isTransitionDefined({when:e,delay:t,delayChildren:i,staggerChildren:s,staggerDirection:o,repeat:a,repeatType:l,repeatDelay:c,from:u,elapsed:d,...p}){return!!Object.keys(p).length}const animateMotionValue=(e,t,i,s={},o,a)=>l=>{const c=getValueTransition$1(s,e)||{},u=c.delay||s.delay||0;let{elapsed:d=0}=s;d=d-secondsToMilliseconds(u);const p={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:o};isTransitionDefined(c)||Object.assign(p,getDefaultTransition(e,p)),p.duration&&(p.duration=secondsToMilliseconds(p.duration)),p.repeatDelay&&(p.repeatDelay=secondsToMilliseconds(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(makeAnimationInstant(p),p.delay===0&&(m=!0)),(MotionGlobalConfig.instantAnimations||MotionGlobalConfig.skipAnimations)&&(m=!0,makeAnimationInstant(p),p.delay=0),p.allowFlatten=!c.type&&!c.ease,m&&!a&&t.get()!==void 0){const g=getFinalKeyframe(p.keyframes,c);if(g!==void 0){frame.update(()=>{p.onUpdate(g),p.onComplete()});return}}return c.isSync?new JSAnimation(p):new AsyncMotionValueAnimation(p)};function shouldBlockAnimation({protectedKeys:e,needsAnimating:t},i){const s=e.hasOwnProperty(i)&&t[i]!==!0;return t[i]=!1,s}function animateTarget(e,t,{delay:i=0,transitionOverride:s,type:o}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;s&&(a=s);const u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const p in c){const m=e.getValue(p,e.latestValues[p]??null),g=c[p];if(g===void 0||d&&shouldBlockAnimation(d,p))continue;const b={delay:i,...getValueTransition$1(a||{},p)},y=m.get();if(y!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===y&&!b.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const E=getOptimisedAppearId(e);if(E){const A=window.MotionHandoffAnimation(E,p,frame);A!==null&&(b.startTime=A,S=!0)}}addValueToWillChange(e,p),m.start(animateMotionValue(p,m,g,e.shouldReduceMotion&&positionalKeys.has(p)?{type:!1}:b,e,S));const w=m.animation;w&&u.push(w)}return l&&Promise.all(u).then(()=>{frame.update(()=>{l&&setTarget(e,l)})}),u}function calcChildStagger(e,t,i,s=0,o=1){const a=Array.from(e).sort((d,p)=>d.sortNodePosition(p)).indexOf(t),l=e.size,c=(l-1)*s;return typeof i=="function"?i(a,l):o===1?a*s:c-a*s}function animateVariant(e,t,i={}){var u;const s=resolveVariant(e,t,i.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(o=i.transitionOverride);const a=s?()=>Promise.all(animateTarget(e,s,i)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:m,staggerDirection:g}=o;return animateChildren(e,t,d,p,m,g,i)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,p]=c==="beforeChildren"?[a,l]:[l,a];return d().then(()=>p())}else return Promise.all([a(),l(i.delay)])}function animateChildren(e,t,i=0,s=0,o=0,a=1,l){const c=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),c.push(animateVariant(u,t,{...l,delay:i+(typeof s=="function"?0:s)+calcChildStagger(e.variantChildren,u,s,o,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(c)}function animateVisualElement(e,t,i={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const o=t.map(a=>animateVariant(e,a,i));s=Promise.all(o)}else if(typeof t=="string")s=animateVariant(e,t,i);else{const o=typeof t=="function"?resolveVariant(e,t,i.custom):t;s=Promise.all(animateTarget(e,o,i))}return s.then(()=>{e.notify("AnimationComplete",t)})}function shallowCompare(e,t){if(!Array.isArray(t))return!1;const i=t.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}const numVariantProps=variantProps.length;function getVariantContext(e){if(!e)return;if(!e.isControllingVariants){const i=e.parent?getVariantContext(e.parent)||{}:{};return e.props.initial!==void 0&&(i.initial=e.props.initial),i}const t={};for(let i=0;i<numVariantProps;i++){const s=variantProps[i],o=e.props[s];(isVariantLabel(o)||o===!1)&&(t[s]=o)}return t}const reversePriorityOrder=[...variantPriorityOrder].reverse(),numAnimationTypes=variantPriorityOrder.length;function animateList(e){return t=>Promise.all(t.map(({animation:i,options:s})=>animateVisualElement(e,i,s)))}function createAnimationState(e){let t=animateList(e),i=createState(),s=!0;const o=u=>(d,p)=>{var g;const m=resolveVariant(e,p,u==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:y,...S}=m;d={...d,...S,...y}}return d};function a(u){t=u(e)}function l(u){const{props:d}=e,p=getVariantContext(e.parent)||{},m=[],g=new Set;let b={},y=1/0;for(let w=0;w<numAnimationTypes;w++){const E=reversePriorityOrder[w],A=i[E],T=d[E]!==void 0?d[E]:p[E],P=isVariantLabel(T),O=E===u?A.isActive:null;O===!1&&(y=w);let k=T===p[E]&&T!==d[E]&&P;if(k&&s&&e.manuallyAnimateOnMount&&(k=!1),A.protectedKeys={...b},!A.isActive&&O===null||!T&&!A.prevProp||isAnimationControls(T)||typeof T=="boolean")continue;const F=checkVariantsDidChange(A.prevProp,T);let N=F||E===u&&A.isActive&&!k&&P||w>y&&P,U=!1;const H=Array.isArray(T)?T:[T];let Y=H.reduce(o(E),{});O===!1&&(Y={});const{prevResolvedValues:Z={}}=A,ie={...Z,...Y},q=B=>{N=!0,g.has(B)&&(U=!0,g.delete(B)),A.needsAnimating[B]=!0;const M=e.getValue(B);M&&(M.liveStyle=!1)};for(const B in ie){const M=Y[B],D=Z[B];if(b.hasOwnProperty(B))continue;let G=!1;isKeyframesTarget(M)&&isKeyframesTarget(D)?G=!shallowCompare(M,D):G=M!==D,G?M!=null?q(B):g.add(B):M!==void 0&&g.has(B)?q(B):A.protectedKeys[B]=!0}A.prevProp=T,A.prevResolvedValues=Y,A.isActive&&(b={...b,...Y}),s&&e.blockInitialAnimation&&(N=!1);const z=k&&F;N&&(!z||U)&&m.push(...H.map(B=>{const M={type:E};if(typeof B=="string"&&s&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,G=resolveVariant(D,B);if(D.enteringChildren&&G){const{delayChildren:j}=G.transition||{};M.delay=calcChildStagger(D.enteringChildren,e,j)}}return{animation:B,options:M}}))}if(g.size){const w={};if(typeof d.initial!="boolean"){const E=resolveVariant(e,Array.isArray(d.initial)?d.initial[0]:d.initial);E&&E.transition&&(w.transition=E.transition)}g.forEach(E=>{const A=e.getBaseTarget(E),T=e.getValue(E);T&&(T.liveStyle=!0),w[E]=A??null}),m.push({animation:w})}let S=!!m.length;return s&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(S=!1),s=!1,S?t(m):Promise.resolve()}function c(u,d){var m;if(i[u].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(u,d)}),i[u].isActive=d;const p=l(u);for(const g in i)i[g].protectedKeys={};return p}return{animateChanges:l,setActive:c,setAnimateFunction:a,getState:()=>i,reset:()=>{i=createState(),s=!0}}}function checkVariantsDidChange(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!shallowCompare(t,e):!1}function createTypeState(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}class Feature{constructor(t){this.isMounted=!1,this.node=t}update(){}}class AnimationFeature extends Feature{constructor(t){super(t),t.animationState||(t.animationState=createAnimationState(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();isAnimationControls(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:i}=this.node.prevProps||{};t!==i&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let id$1=0;class ExitAnimationFeature extends Feature{constructor(){super(...arguments),this.id=id$1++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const o=this.node.animationState.setActive("exit",!t);i&&!t&&o.then(()=>{i(this.id)})}mount(){const{register:t,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const animations={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}};function addDomEvent(e,t,i,s={passive:!0}){return e.addEventListener(t,i,s),()=>e.removeEventListener(t,i)}function extractEventInfo(e){return{point:{x:e.pageX,y:e.pageY}}}const addPointerInfo=e=>t=>isPrimaryPointer(t)&&e(t,extractEventInfo(t));function addPointerEvent(e,t,i,s){return addDomEvent(e,t,addPointerInfo(i),s)}const SCALE_PRECISION=1e-4,SCALE_MIN=1-SCALE_PRECISION,SCALE_MAX=1+SCALE_PRECISION,TRANSLATE_PRECISION=.01,TRANSLATE_MIN=0-TRANSLATE_PRECISION,TRANSLATE_MAX=0+TRANSLATE_PRECISION;function calcLength(e){return e.max-e.min}function isNear(e,t,i){return Math.abs(e-t)<=i}function calcAxisDelta(e,t,i,s=.5){e.origin=s,e.originPoint=mixNumber$1(t.min,t.max,e.origin),e.scale=calcLength(i)/calcLength(t),e.translate=mixNumber$1(i.min,i.max,e.origin)-e.originPoint,(e.scale>=SCALE_MIN&&e.scale<=SCALE_MAX||isNaN(e.scale))&&(e.scale=1),(e.translate>=TRANSLATE_MIN&&e.translate<=TRANSLATE_MAX||isNaN(e.translate))&&(e.translate=0)}function calcBoxDelta(e,t,i,s){calcAxisDelta(e.x,t.x,i.x,s?s.originX:void 0),calcAxisDelta(e.y,t.y,i.y,s?s.originY:void 0)}function calcRelativeAxis(e,t,i){e.min=i.min+t.min,e.max=e.min+calcLength(t)}function calcRelativeBox(e,t,i){calcRelativeAxis(e.x,t.x,i.x),calcRelativeAxis(e.y,t.y,i.y)}function calcRelativeAxisPosition(e,t,i){e.min=t.min-i.min,e.max=e.min+calcLength(t)}function calcRelativePosition(e,t,i){calcRelativeAxisPosition(e.x,t.x,i.x),calcRelativeAxisPosition(e.y,t.y,i.y)}function eachAxis(e){return[e("x"),e("y")]}const getContextWindow=({current:e})=>e?e.ownerDocument.defaultView:null,distance=(e,t)=>Math.abs(e-t);function distance2D(e,t){const i=distance(e.x,t.x),s=distance(e.y,t.y);return Math.sqrt(i**2+s**2)}class PanSession{constructor(t,i,{transformPagePoint:s,contextWindow:o=window,dragSnapToOrigin:a=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=getPanInfo(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,y=distance2D(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!y)return;const{point:S}=g,{timestamp:w}=frameData;this.history.push({...S,timestamp:w});const{onStart:E,onMove:A}=this.handlers;b||(E&&E(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=transformPoint(b,this.transformPagePoint),frame.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=getPanInfo(g.type==="pointercancel"?this.lastMoveEventInfo:transformPoint(b,this.transformPagePoint),this.history);this.startEvent&&y&&y(g,E),S&&S(g,E)},!isPrimaryPointer(t))return;this.dragSnapToOrigin=a,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=l,this.contextWindow=o||window;const c=extractEventInfo(t),u=transformPoint(c,this.transformPagePoint),{point:d}=u,{timestamp:p}=frameData;this.history=[{...d,timestamp:p}];const{onSessionStart:m}=i;m&&m(t,getPanInfo(u,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cancelFrame(this.updatePoint)}}function transformPoint(e,t){return t?{point:t(e.point)}:e}function subtractPoint(e,t){return{x:e.x-t.x,y:e.y-t.y}}function getPanInfo({point:e},t){return{point:e,delta:subtractPoint(e,lastDevicePoint(t)),offset:subtractPoint(e,startDevicePoint(t)),velocity:getVelocity(t,.1)}}function startDevicePoint(e){return e[0]}function lastDevicePoint(e){return e[e.length-1]}function getVelocity(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,s=null;const o=lastDevicePoint(e);for(;i>=0&&(s=e[i],!(o.timestamp-s.timestamp>secondsToMilliseconds(t)));)i--;if(!s)return{x:0,y:0};const a=millisecondsToSeconds(o.timestamp-s.timestamp);if(a===0)return{x:0,y:0};const l={x:(o.x-s.x)/a,y:(o.y-s.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function applyConstraints(e,{min:t,max:i},s){return t!==void 0&&e<t?e=s?mixNumber$1(t,e,s.min):Math.max(e,t):i!==void 0&&e>i&&(e=s?mixNumber$1(i,e,s.max):Math.min(e,i)),e}function calcRelativeAxisConstraints(e,t,i){return{min:t!==void 0?e.min+t:void 0,max:i!==void 0?e.max+i-(e.max-e.min):void 0}}function calcRelativeConstraints(e,{top:t,left:i,bottom:s,right:o}){return{x:calcRelativeAxisConstraints(e.x,i,o),y:calcRelativeAxisConstraints(e.y,t,s)}}function calcViewportAxisConstraints(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function calcViewportConstraints(e,t){return{x:calcViewportAxisConstraints(e.x,t.x),y:calcViewportAxisConstraints(e.y,t.y)}}function calcOrigin(e,t){let i=.5;const s=calcLength(e),o=calcLength(t);return o>s?i=progress(t.min,t.max-s,e.min):s>o&&(i=progress(e.min,e.max-o,t.min)),clamp(0,1,i)}function rebaseAxisConstraints(e,t){const i={};return t.min!==void 0&&(i.min=t.min-e.min),t.max!==void 0&&(i.max=t.max-e.min),i}const defaultElastic=.35;function resolveDragElastic(e=defaultElastic){return e===!1?e=0:e===!0&&(e=defaultElastic),{x:resolveAxisElastic(e,"left","right"),y:resolveAxisElastic(e,"top","bottom")}}function resolveAxisElastic(e,t,i){return{min:resolvePointElastic(e,t),max:resolvePointElastic(e,i)}}function resolvePointElastic(e,t){return typeof e=="number"?e:e[t]||0}const elementDragControls=new WeakMap;class VisualElementDragControls{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(extractEventInfo(m).point)},l=(m,g)=>{const{drag:b,dragPropagation:y,onDragStart:S}=this.getProps();if(b&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=setDragLock(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(E=>{let A=this.getAxisMotionValue(E).get()||0;if(percent.test(A)){const{projection:T}=this.visualElement;if(T&&T.layout){const P=T.layout.layoutBox[E];P&&(A=calcLength(P)*(parseFloat(A)/100))}}this.originPoint[E]=A}),S&&frame.postRender(()=>S(m,g)),addValueToWillChange(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:y,onDirectionLock:S,onDrag:w}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:E}=g;if(y&&this.currentDirection===null){this.currentDirection=getCurrentDirection(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",g.point,E),this.updateAxis("y",g.point,E),this.visualElement.render(),w&&w(m,g)},u=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>eachAxis(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)==null?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new PanSession(t,{onSessionStart:a,onStart:l,onMove:c,onSessionEnd:u,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:s,contextWindow:getContextWindow(this.visualElement)})}stop(t,i){const s=t||this.latestPointerEvent,o=i||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!o||!s)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&frame.postRender(()=>c(s,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:i}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(t,i,s){const{drag:o}=this.getProps();if(!s||!shouldDrag(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let l=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(l=applyConstraints(l,this.constraints[t],this.elastic[t])),a.set(l)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,o=this.constraints;t&&isRefObject(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=calcRelativeConstraints(s.layoutBox,t):this.constraints=!1,this.elastic=resolveDragElastic(i),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=rebaseAxisConstraints(s.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!isRefObject(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=measurePageBox(s,o.root,this.visualElement.getTransformPagePoint());let l=calcViewportConstraints(o.layout.layoutBox,a);if(i){const c=i(convertBoxToBoundingBox(l));this.hasMutatedConstraints=!!c,c&&(l=convertBoundingBoxToBox(c))}return l}startAnimation(t){const{drag:i,dragMomentum:s,dragElastic:o,dragTransition:a,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=eachAxis(p=>{if(!shouldDrag(p,i,this.currentDirection))return;let m=u[p]||{};l&&(m={min:0,max:0});const g=o?200:1e6,b=o?40:1e7,y={type:"inertia",velocity:s?t[p]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(p,y)});return Promise.all(d).then(c)}startAxisValueAnimation(t,i){const s=this.getAxisMotionValue(t);return addValueToWillChange(this.visualElement,t),s.start(animateMotionValue(t,s,0,i,this.visualElement,!1))}stopAnimation(){eachAxis(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eachAxis(t=>{var i;return(i=this.getAxisMotionValue(t).animation)==null?void 0:i.pause()})}getAnimationState(t){var i;return(i=this.getAxisMotionValue(t).animation)==null?void 0:i.state}getAxisMotionValue(t){const i=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),o=s[i];return o||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){eachAxis(i=>{const{drag:s}=this.getProps();if(!shouldDrag(i,s,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(i);if(o&&o.layout){const{min:l,max:c}=o.layout.layoutBox[i];a.set(t[i]-mixNumber$1(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!isRefObject(i)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};eachAxis(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const u=c.get();o[l]=calcOrigin({min:u,max:u},this.constraints[l])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),eachAxis(l=>{if(!shouldDrag(l,t,null))return;const c=this.getAxisMotionValue(l),{min:u,max:d}=this.constraints[l];c.set(mixNumber$1(u,d,o[l]))})}addListeners(){if(!this.visualElement.current)return;elementDragControls.set(this.visualElement,this);const t=this.visualElement.current,i=addPointerEvent(t,"pointerdown",u=>{const{drag:d,dragListener:p=!0}=this.getProps();d&&p&&this.start(u)}),s=()=>{const{dragConstraints:u}=this.getProps();isRefObject(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),frame.read(s);const l=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(eachAxis(p=>{const m=this.getAxisMotionValue(p);m&&(this.originPoint[p]+=u[p].translate,m.set(m.get()+u[p].translate))}),this.visualElement.render())});return()=>{l(),i(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:l=defaultElastic,dragMomentum:c=!0}=t;return{...t,drag:i,dragDirectionLock:s,dragPropagation:o,dragConstraints:a,dragElastic:l,dragMomentum:c}}}function shouldDrag(e,t,i){return(t===!0||t===e)&&(i===null||i===e)}function getCurrentDirection(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}class DragGesture extends Feature{constructor(t){super(t),this.removeGroupControls=noop$2,this.removeListeners=noop$2,this.controls=new VisualElementDragControls(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop$2}unmount(){this.removeGroupControls(),this.removeListeners()}}const asyncHandler=e=>(t,i)=>{e&&frame.postRender(()=>e(t,i))};class PanGesture extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop$2}onPointerDown(t){this.session=new PanSession(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:i,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:asyncHandler(t),onStart:asyncHandler(i),onMove:s,onEnd:(a,l)=>{delete this.session,o&&frame.postRender(()=>o(a,l))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const globalProjectionState={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const correctBorderRadius={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(px.test(e))e=parseFloat(e);else return e;const i=pixelsToPercent(e,t.target.x),s=pixelsToPercent(e,t.target.y);return`${i}% ${s}%`}},correctBoxShadow={correct:(e,{treeScale:t,projectionDelta:i})=>{const s=e,o=complex.parse(e);if(o.length>5)return s;const a=complex.createTransformer(e),l=typeof o[0]!="number"?1:0,c=i.x.scale*t.x,u=i.y.scale*t.y;o[0+l]/=c,o[1+l]/=u;const d=mixNumber$1(c,u,.5);return typeof o[2+l]=="number"&&(o[2+l]/=d),typeof o[3+l]=="number"&&(o[3+l]/=d),a(o)}};let hasTakenAnySnapshot=!1;class MeasureLayoutWithContext extends reactExports.Component{componentDidMount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:s,layoutId:o}=this.props,{projection:a}=t;addScaleCorrector(defaultScaleCorrectors),a&&(i.group&&i.group.add(a),s&&s.register&&o&&s.register(a),hasTakenAnySnapshot&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:i,visualElement:s,drag:o,isPresent:a}=this.props,{projection:l}=s;return l&&(l.isPresent=a,hasTakenAnySnapshot=!0,o||t.layoutDependency!==i||i===void 0||t.isPresent!==a?l.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?l.promote():l.relegate()||frame.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:o}=t;hasTakenAnySnapshot=!0,o&&(o.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function MeasureLayout(e){const[t,i]=usePresence(),s=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(MeasureLayoutWithContext,{...e,layoutGroup:s,switchLayoutGroup:reactExports.useContext(SwitchLayoutGroupContext),isPresent:t,safeToRemove:i})}const defaultScaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxShadow:correctBoxShadow};function animateSingleValue(e,t,i){const s=isMotionValue(e)?e:motionValue(e);return s.start(animateMotionValue("",s,t,i)),s.animation}const compareByDepth=(e,t)=>e.depth-t.depth;class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(t){addUniqueItem(this.children,t),this.isDirty=!0}remove(t){removeItem(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(t)}}function delay$1(e,t){const i=time.now(),s=({timestamp:o})=>{const a=o-i;a>=t&&(cancelFrame(s),e(a-t))};return frame.setup(s,!0),()=>cancelFrame(s)}const borders=["TopLeft","TopRight","BottomLeft","BottomRight"],numBorders=borders.length,asNumber=e=>typeof e=="string"?parseFloat(e):e,isPx=e=>typeof e=="number"||px.test(e);function mixValues(e,t,i,s,o,a){o?(e.opacity=mixNumber$1(0,i.opacity??1,easeCrossfadeIn(s)),e.opacityExit=mixNumber$1(t.opacity??1,0,easeCrossfadeOut(s))):a&&(e.opacity=mixNumber$1(t.opacity??1,i.opacity??1,s));for(let l=0;l<numBorders;l++){const c=`border${borders[l]}Radius`;let u=getRadius(t,c),d=getRadius(i,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||isPx(u)===isPx(d)?(e[c]=Math.max(mixNumber$1(asNumber(u),asNumber(d),s),0),(percent.test(d)||percent.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||i.rotate)&&(e.rotate=mixNumber$1(t.rotate||0,i.rotate||0,s))}function getRadius(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const easeCrossfadeIn=compress(0,.5,circOut),easeCrossfadeOut=compress(.5,.95,noop$2);function compress(e,t,i){return s=>s<e?0:s>t?1:i(progress(e,t,s))}function copyAxisInto(e,t){e.min=t.min,e.max=t.max}function copyBoxInto(e,t){copyAxisInto(e.x,t.x),copyAxisInto(e.y,t.y)}function copyAxisDeltaInto(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function removePointDelta(e,t,i,s,o){return e-=t,e=scalePoint(e,1/i,s),o!==void 0&&(e=scalePoint(e,1/o,s)),e}function removeAxisDelta(e,t=0,i=1,s=.5,o,a=e,l=e){if(percent.test(t)&&(t=parseFloat(t),t=mixNumber$1(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=mixNumber$1(a.min,a.max,s);e===a&&(c-=t),e.min=removePointDelta(e.min,t,i,c,o),e.max=removePointDelta(e.max,t,i,c,o)}function removeAxisTransforms(e,t,[i,s,o],a,l){removeAxisDelta(e,t[i],t[s],t[o],t.scale,a,l)}const xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function removeBoxTransforms(e,t,i,s){removeAxisTransforms(e.x,t,xKeys,i?i.x:void 0,s?s.x:void 0),removeAxisTransforms(e.y,t,yKeys,i?i.y:void 0,s?s.y:void 0)}function isAxisDeltaZero(e){return e.translate===0&&e.scale===1}function isDeltaZero(e){return isAxisDeltaZero(e.x)&&isAxisDeltaZero(e.y)}function axisEquals(e,t){return e.min===t.min&&e.max===t.max}function boxEquals(e,t){return axisEquals(e.x,t.x)&&axisEquals(e.y,t.y)}function axisEqualsRounded(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function boxEqualsRounded(e,t){return axisEqualsRounded(e.x,t.x)&&axisEqualsRounded(e.y,t.y)}function aspectRatio(e){return calcLength(e.x)/calcLength(e.y)}function axisDeltaEquals(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class NodeStack{constructor(){this.members=[]}add(t){addUniqueItem(this.members,t),t.scheduleRender()}remove(t){if(removeItem(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(t){const i=this.members.findIndex(o=>t===o);if(i===0)return!1;let s;for(let o=i;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){s=a;break}}return s?(this.promote(s),!0):!1}promote(t,i){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,i&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:i,resumingFrom:s}=t;i.onExitComplete&&i.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function buildProjectionTransform(e,t,i){let s="";const o=e.x.translate/t.x,a=e.y.translate/t.y,l=(i==null?void 0:i.z)||0;if((o||a||l)&&(s=`translate3d(${o}px, ${a}px, ${l}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),i){const{transformPerspective:d,rotate:p,rotateX:m,rotateY:g,skewX:b,skewY:y}=i;d&&(s=`perspective(${d}px) ${s}`),p&&(s+=`rotate(${p}deg) `),m&&(s+=`rotateX(${m}deg) `),g&&(s+=`rotateY(${g}deg) `),b&&(s+=`skewX(${b}deg) `),y&&(s+=`skewY(${y}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(s+=`scale(${c}, ${u})`),s||"none"}const transformAxes=["","X","Y","Z"],animationTarget=1e3;let id=0;function resetDistortingTransform(e,t,i,s){const{latestValues:o}=t;o[e]&&(i[e]=o[e],t.setStaticValue(e,0),s&&(s[e]=0))}function cancelTreeOptimisedTransformAnimations(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const i=getOptimisedAppearId(t);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",frame,!(o||a))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(s)}function createProjectionNode({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(l={},c=t==null?void 0:t()){this.id=id++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new SubscriptionManager),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const u=this.eventHandlers.get(l);u&&u.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=isSVGElement$1(l)&&!isSVGSVGElement(l),this.instance=l;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||c)&&(this.isLayoutDirty=!0),e){let p,m=0;const g=()=>this.root.updateBlockedByResize=!1;frame.read(()=>{m=window.innerWidth}),e(l,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,p&&p(),p=delay$1(g,250),globalProjectionState.hasAnimatedSinceResize&&(globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||defaultLayoutTransition,{onLayoutAnimationStart:S,onLayoutAnimationComplete:w}=d.getProps(),E=!this.targetLayout||!boxEqualsRounded(this.targetLayout,b),A=!m&&g;if(this.options.layoutRoot||this.resumeFrom||A||m&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...getValueTransition$1(y,"layout"),onPlay:S,onComplete:w};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(p,A)}else m||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),cancelFrame(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const m=this.path[p];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(clearIsLayoutDirty);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate)):this.nodes.forEach(clearIsLayoutDirty),this.clearAllSnapshots();const c=time.now();frameData.delta=clamp(0,1e3/60,c-frameData.timestamp),frameData.timestamp=c,frameData.isProcessing=!0,frameSteps.update.process(frameData),frameSteps.preRender.process(frameData),frameSteps.render.process(frameData),frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!calcLength(this.snapshot.measuredBox.x)&&!calcLength(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c&&this.instance){const u=s(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:u,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!o)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!isDeltaZero(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;l&&this.instance&&(c||hasTransform(this.latestValues)||p)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return l&&(u=this.removeTransform(u)),roundBox(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:l}=this.options;if(!l)return createBox();const c=l.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(checkNodeWasScrollRoot))){const{scroll:p}=this.root;p&&(translateAxis(c.x,p.offset.x),translateAxis(c.y,p.offset.y))}return c}removeElementScroll(l){var u;const c=createBox();if(copyBoxInto(c,l),(u=this.scroll)!=null&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const p=this.path[d],{scroll:m,options:g}=p;p!==this.root&&m&&g.layoutScroll&&(m.wasRoot&©BoxInto(c,l),translateAxis(c.x,m.offset.x),translateAxis(c.y,m.offset.y))}return c}applyTransform(l,c=!1){const u=createBox();copyBoxInto(u,l);for(let d=0;d<this.path.length;d++){const p=this.path[d];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&transformBox(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),hasTransform(p.latestValues)&&transformBox(u,p.latestValues)}return hasTransform(this.latestValues)&&transformBox(u,this.latestValues),u}removeTransform(l){const c=createBox();copyBoxInto(c,l);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!hasTransform(d.latestValues))continue;hasScale(d.latestValues)&&d.updateSnapshot();const p=createBox(),m=d.measurePageBox();copyBoxInto(p,m),removeBoxTransforms(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,p)}return hasTransform(this.latestValues)&&removeBoxTransforms(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var g;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(l||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=frameData.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),calcRelativeBox(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,b.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var y;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===frameData.timestamp&&(u=!1),u)return;const{layout:d,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||p))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;applyTreeDeltas(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=createBox());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)),calcBoxDelta(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)||!axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(l,c=!1){const u=this.snapshot,d=u?u.latestValues:{},p={...this.latestValues},m=createDelta();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const g=createBox(),b=u?u.source:void 0,y=this.layout?this.layout.source:void 0,S=b!==y,w=this.getStack(),E=!w||w.members.length<=1,A=!!(S&&!E&&this.options.crossfade===!0&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0;let T;this.mixTargetDelta=P=>{const O=P/1e3;mixAxisDelta(m.x,l.x,O),mixAxisDelta(m.y,l.y,O),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(calcRelativePosition(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mixBox(this.relativeTarget,this.relativeTargetOrigin,g,O),T&&boxEquals(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=createBox()),copyBoxInto(T,this.relativeTarget)),S&&(this.animationValues=p,mixValues(p,d,this.latestValues,O,A,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var c,u,d;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(d=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||d.stop(),this.pendingAnimation&&(cancelFrame(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=frame.update(()=>{globalProjectionState.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=motionValue(0)),this.currentAnimation=animateSingleValue(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),l.onUpdate&&l.onUpdate(p)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(animationTarget),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:p}=l;if(!(!c||!u||!d)){if(this!==l&&this.layout&&d&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||createBox();const m=calcLength(this.layout.layoutBox.x);u.x.min=l.target.x.min,u.x.max=u.x.min+m;const g=calcLength(this.layout.layoutBox.y);u.y.min=l.target.y.min,u.y.max=u.y.min+g}copyBoxInto(c,u),transformBox(c,p),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new NodeStack),this.sharedNodes.get(l).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var c;const{layoutId:l}=this.options;return l?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:l}=this.options;return l?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:u}=l;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&resetDistortingTransform("z",l,d,this.animationValues);for(let p=0;p<transformAxes.length;p++)resetDistortingTransform(`rotate${transformAxes[p]}`,l,d,this.animationValues),resetDistortingTransform(`skew${transformAxes[p]}`,l,d,this.animationValues);l.render();for(const p in d)l.setStaticValue(p,d[p]),this.animationValues&&(this.animationValues[p]=d[p]);l.scheduleRender()}applyProjectionStyles(l,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=resolveMotionValue(c==null?void 0:c.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=resolveMotionValue(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(l.transform=u?u({},""):"none",this.hasProjected=!1);return}l.visibility="";const p=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=buildProjectionTransform(this.projectionDeltaWithTransform,this.treeScale,p);u&&(m=u(p,m)),l.transform=m;const{x:g,y:b}=this.projectionDelta;l.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,d.animationValues?l.opacity=d===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:l.opacity=d===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const y in scaleCorrectors){if(p[y]===void 0)continue;const{correct:S,applyTo:w,isCSSVariable:E}=scaleCorrectors[y],A=m==="none"?p[y]:S(p[y],d);if(w){const T=w.length;for(let P=0;P<T;P++)l[w[P]]=A}else E?this.options.visualElement.renderState.vars[y]=A:l[y]=A}this.options.layoutId&&(l.pointerEvents=d===this?resolveMotionValue(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(e){e.updateLayout()}function notifyLayoutUpdate(e){var i;const t=((i=e.resumeFrom)==null?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=e.layout,{animationType:a}=e.options,l=t.source!==e.layout.source;a==="size"?eachAxis(m=>{const g=l?t.measuredBox[m]:t.layoutBox[m],b=calcLength(g);g.min=s[m].min,g.max=g.min+b}):shouldAnimatePositionOnly(a,t.layoutBox,s)&&eachAxis(m=>{const g=l?t.measuredBox[m]:t.layoutBox[m],b=calcLength(s[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const c=createDelta();calcBoxDelta(c,s,t.layoutBox);const u=createDelta();l?calcBoxDelta(u,e.applyTransform(o,!0),t.measuredBox):calcBoxDelta(u,s,t.layoutBox);const d=!isDeltaZero(c);let p=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const y=createBox();calcRelativePosition(y,t.layoutBox,g.layoutBox);const S=createBox();calcRelativePosition(S,s,b.layoutBox),boxEqualsRounded(y,S)||(p=!0),m.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=y,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function propagateDirtyNodes(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cleanDirtyNodes(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function clearSnapshot(e){e.clearSnapshot()}function clearMeasurements(e){e.clearMeasurements()}function clearIsLayoutDirty(e){e.isLayoutDirty=!1}function resetTransformStyle(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function finishAnimation(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function resolveTargetDelta(e){e.resolveTargetDelta()}function calcProjection(e){e.calcProjection()}function resetSkewAndRotation(e){e.resetSkewAndRotation()}function removeLeadSnapshots(e){e.removeLeadSnapshot()}function mixAxisDelta(e,t,i){e.translate=mixNumber$1(t.translate,0,i),e.scale=mixNumber$1(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function mixAxis(e,t,i,s){e.min=mixNumber$1(t.min,i.min,s),e.max=mixNumber$1(t.max,i.max,s)}function mixBox(e,t,i,s){mixAxis(e.x,t.x,i.x,s),mixAxis(e.y,t.y,i.y,s)}function hasOpacityCrossfade(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]},userAgentContains=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),roundPoint=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop$2;function roundAxis(e){e.min=roundPoint(e.min),e.max=roundPoint(e.max)}function roundBox(e){roundAxis(e.x),roundAxis(e.y)}function shouldAnimatePositionOnly(e,t,i){return e==="position"||e==="preserve-aspect"&&!isNear(aspectRatio(t),aspectRatio(i),.2)}function checkNodeWasScrollRoot(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const DocumentProjectionNode=createProjectionNode({attachResizeListener:(e,t)=>addDomEvent(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rootProjectionNode={current:void 0},HTMLProjectionNode=createProjectionNode({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rootProjectionNode.current){const e=new DocumentProjectionNode({});e.mount(window),e.setOptions({layoutScroll:!0}),rootProjectionNode.current=e}return rootProjectionNode.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),drag={pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:HTMLProjectionNode,MeasureLayout}};function handleHoverEvent(e,t,i){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",i==="Start");const o="onHover"+i,a=s[o];a&&frame.postRender(()=>a(t,extractEventInfo(t)))}class HoverGesture extends Feature{mount(){const{current:t}=this.node;t&&(this.unmount=hover(t,(i,s)=>(handleHoverEvent(this.node,s,"Start"),o=>handleHoverEvent(this.node,o,"End"))))}unmount(){}}class FocusGesture extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function handlePressEvent(e,t,i){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",i==="Start");const o="onTap"+(i==="End"?"":i),a=s[o];a&&frame.postRender(()=>a(t,extractEventInfo(t)))}class PressGesture extends Feature{mount(){const{current:t}=this.node;t&&(this.unmount=press(t,(i,s)=>(handlePressEvent(this.node,s,"Start"),(o,{success:a})=>handlePressEvent(this.node,o,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const observerCallbacks=new WeakMap,observers=new WeakMap,fireObserverCallback=e=>{const t=observerCallbacks.get(e.target);t&&t(e)},fireAllObserverCallbacks=e=>{e.forEach(fireObserverCallback)};function initIntersectionObserver({root:e,...t}){const i=e||document;observers.has(i)||observers.set(i,{});const s=observers.get(i),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(fireAllObserverCallbacks,{root:e,...t})),s[o]}function observeIntersection(e,t,i){const s=initIntersectionObserver(t);return observerCallbacks.set(e,i),s.observe(e),()=>{observerCallbacks.delete(e),s.unobserve(e)}}const thresholdNames={some:0,all:1};class InViewFeature extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:i,margin:s,amount:o="some",once:a}=t,l={root:i?i.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:thresholdNames[o]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:p,onViewportLeave:m}=this.node.getProps(),g=d?p:m;g&&g(u)};return observeIntersection(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:i}=this.node;["amount","margin","root"].some(hasViewportOptionChanged(t,i))&&this.startObserver()}unmount(){}}function hasViewportOptionChanged({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}const gestureAnimations={inView:{Feature:InViewFeature},tap:{Feature:PressGesture},focus:{Feature:FocusGesture},hover:{Feature:HoverGesture}},layout={layout:{ProjectionNode:HTMLProjectionNode,MeasureLayout}},featureBundle={...animations,...gestureAnimations,...drag,...layout},motion=createMotionProxy(featureBundle,createDomVisualElement);function useUnmountEffect(e){return reactExports.useEffect(()=>()=>e(),[])}function useMotionValue(e){const t=useConstant(()=>motionValue(e)),{isStatic:i}=reactExports.useContext(MotionConfigContext);if(i){const[,s]=reactExports.useState(e);reactExports.useEffect(()=>t.on("change",s),[])}return t}function isDOMKeyframes(e){return typeof e=="object"&&!Array.isArray(e)}function resolveSubjects(e,t,i,s){return typeof e=="string"&&isDOMKeyframes(t)?resolveElements(e,i,s):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function calculateRepeatDuration(e,t,i){return e*(t+1)}function calcNextTime(e,t,i,s){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?i:t.startsWith("<")?Math.max(0,i+parseFloat(t.slice(1))):s.get(t)??e}function eraseKeyframes(e,t,i){for(let s=0;s<e.length;s++){const o=e[s];o.at>t&&o.at<i&&(removeItem(e,o),s--)}}function addKeyframes(e,t,i,s,o,a){eraseKeyframes(e,o,a);for(let l=0;l<t.length;l++)e.push({value:t[l],at:mixNumber$1(o,a,s[l]),easing:getEasingForSegment(i,l)})}function normalizeTimes(e,t){for(let i=0;i<e.length;i++)e[i]=e[i]/(t+1)}function compareByTime(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const defaultSegmentEasing="easeInOut";function createAnimationsFromSequence(e,{defaultTransition:t={},...i}={},s,o){const a=t.duration||.3,l=new Map,c=new Map,u={},d=new Map;let p=0,m=0,g=0;for(let b=0;b<e.length;b++){const y=e[b];if(typeof y=="string"){d.set(y,m);continue}else if(!Array.isArray(y)){d.set(y.name,calcNextTime(m,y.at,p,d));continue}let[S,w,E={}]=y;E.at!==void 0&&(m=calcNextTime(m,E.at,p,d));let A=0;const T=(P,O,k,F=0,N=0)=>{const U=keyframesAsList(P),{delay:H=0,times:Y=defaultOffset(U),type:Z="keyframes",repeat:ie,repeatType:q,repeatDelay:z=0,...$}=O;let{ease:B=t.ease||"easeOut",duration:M}=O;const D=typeof H=="function"?H(F,N):H,G=U.length,j=isGenerator(Z)?Z:o==null?void 0:o[Z||"keyframes"];if(G<=2&&j){let se=100;if(G===2&&isNumberKeyframesArray(U)){const Q=U[1]-U[0];se=Math.abs(Q)}const ce={...$};M!==void 0&&(ce.duration=secondsToMilliseconds(M));const le=createGeneratorEasing(ce,se,j);B=le.ease,M=le.duration}M??(M=a);const W=m+D;Y.length===1&&Y[0]===0&&(Y[1]=1);const J=Y.length-U.length;if(J>0&&fillOffset(Y,J),U.length===1&&U.unshift(null),ie){M=calculateRepeatDuration(M,ie);const se=[...U],ce=[...Y];B=Array.isArray(B)?[...B]:[B];const le=[...B];for(let Q=0;Q<ie;Q++){U.push(...se);for(let oe=0;oe<se.length;oe++)Y.push(ce[oe]+(Q+1)),B.push(oe===0?"linear":getEasingForSegment(le,oe-1))}normalizeTimes(Y,ie)}const re=W+M;addKeyframes(k,U,B,Y,W,re),A=Math.max(D+M,A),g=Math.max(re,g)};if(isMotionValue(S)){const P=getSubjectSequence(S,c);T(w,E,getValueSequence("default",P))}else{const P=resolveSubjects(S,w,s,u),O=P.length;for(let k=0;k<O;k++){w=w,E=E;const F=P[k],N=getSubjectSequence(F,c);for(const U in w)T(w[U],getValueTransition(E,U),getValueSequence(U,N),k,O)}}p=m,m+=A}return c.forEach((b,y)=>{for(const S in b){const w=b[S];w.sort(compareByTime);const E=[],A=[],T=[];for(let O=0;O<w.length;O++){const{at:k,value:F,easing:N}=w[O];E.push(F),A.push(progress(0,g,k)),T.push(N||"easeOut")}A[0]!==0&&(A.unshift(0),E.unshift(E[0]),T.unshift(defaultSegmentEasing)),A[A.length-1]!==1&&(A.push(1),E.push(null)),l.has(y)||l.set(y,{keyframes:{},transition:{}});const P=l.get(y);P.keyframes[S]=E,P.transition[S]={...t,duration:g,ease:T,times:A,...i}}}),l}function getSubjectSequence(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function getValueSequence(e,t){return t[e]||(t[e]=[]),t[e]}function keyframesAsList(e){return Array.isArray(e)?e:[e]}function getValueTransition(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const isNumber$2=e=>typeof e=="number",isNumberKeyframesArray=e=>e.every(isNumber$2);function isObjectKey(e,t){return e in t}class ObjectVisualElement extends VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,i){if(isObjectKey(i,t)){const s=t[i];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(t,i){delete i.output[t]}measureInstanceViewportBox(){return createBox()}build(t,i){Object.assign(t.output,i)}renderInstance(t,{output:i}){Object.assign(t,i)}sortInstanceNodePosition(){return 0}}function createDOMVisualElement(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=isSVGElement$1(e)&&!isSVGSVGElement(e)?new SVGVisualElement(t):new HTMLVisualElement(t);i.mount(e),visualElementStore.set(e,i)}function createObjectVisualElement(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},i=new ObjectVisualElement(t);i.mount(e),visualElementStore.set(e,i)}function isSingleValue(e,t){return isMotionValue(e)||typeof e=="number"||typeof e=="string"&&!isDOMKeyframes(t)}function animateSubject(e,t,i,s){const o=[];if(isSingleValue(e,t))o.push(animateSingleValue(e,isDOMKeyframes(t)&&t.default||t,i&&(i.default||i)));else{const a=resolveSubjects(e,t,s),l=a.length;for(let c=0;c<l;c++){const u=a[c],d=u instanceof Element?createDOMVisualElement:createObjectVisualElement;visualElementStore.has(u)||d(u);const p=visualElementStore.get(u),m={...i};"delay"in m&&typeof m.delay=="function"&&(m.delay=m.delay(c,l)),o.push(...animateTarget(p,{...t,transition:m},{}))}}return o}function animateSequence(e,t,i){const s=[];return createAnimationsFromSequence(e,t,i,{spring}).forEach(({keyframes:a,transition:l},c)=>{s.push(...animateSubject(c,a,l))}),s}function isSequence(e){return Array.isArray(e)&&e.some(Array.isArray)}function createScopedAnimate(e){function t(i,s,o){let a=[],l;if(isSequence(i))a=animateSequence(i,s,e);else{const{onComplete:u,...d}=o||{};typeof u=="function"&&(l=u),a=animateSubject(i,s,d,e)}const c=new GroupAnimationWithThen(a);return l&&c.finished.then(l),e&&(e.animations.push(c),c.finished.then(()=>{removeItem(e.animations,c)})),c}return t}function useAnimate(){const e=useConstant(()=>({current:null,animations:[]})),t=useConstant(()=>createScopedAnimate(e));return useUnmountEffect(()=>{e.animations.forEach(i=>i.stop()),e.animations.length=0}),[e,t]}var define_process_env_default$5={NODE_ENV:"production",version:"1.92.2",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"};const ASSETS_BASE_URL=define_process_env_default$5.ASSETS_BASE_URL;function assetUrl(e){return`${ASSETS_BASE_URL}/${e}`}const image$1=assetUrl("icon_diamond.webp"),IconBalanceGems=({style:e,...t})=>jsxRuntimeExports.jsx("img",{src:image$1,style:{aspectRatio:"1/1",...e},...t,alt:""});function r(e){var t,i,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(i=r(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function clsx(){for(var e,t,i=0,s="",o=arguments.length;i<o;i++)(e=arguments[i])&&(t=r(e))&&(s&&(s+=" "),s+=t);return s}const CLASS_PART_SEPARATOR="-",createClassGroupUtils=e=>{const t=createClassMap(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{const c=l.split(CLASS_PART_SEPARATOR);return c[0]===""&&c.length!==1&&c.shift(),getGroupRecursive(c,t)||getGroupIdForArbitraryProperty(l)},getConflictingClassGroupIds:(l,c)=>{const u=i[l]||[];return c&&s[l]?[...u,...s[l]]:u}}},getGroupRecursive=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const i=e[0],s=t.nextPart.get(i),o=s?getGroupRecursive(e.slice(1),s):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(CLASS_PART_SEPARATOR);return(l=t.validators.find(({validator:c})=>c(a)))==null?void 0:l.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(arbitraryPropertyRegex.test(e)){const t=arbitraryPropertyRegex.exec(e)[1],i=t==null?void 0:t.substring(0,t.indexOf(":"));if(i)return"arbitrary.."+i}},createClassMap=e=>{const{theme:t,classGroups:i}=e,s={nextPart:new Map,validators:[]};for(const o in i)processClassesRecursively(i[o],s,o,t);return s},processClassesRecursively=(e,t,i,s)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:getPart(t,o);a.classGroupId=i;return}if(typeof o=="function"){if(isThemeGetter(o)){processClassesRecursively(o(s),t,i,s);return}t.validators.push({validator:o,classGroupId:i});return}Object.entries(o).forEach(([a,l])=>{processClassesRecursively(l,getPart(t,a),i,s)})})},getPart=(e,t)=>{let i=e;return t.split(CLASS_PART_SEPARATOR).forEach(s=>{i.nextPart.has(s)||i.nextPart.set(s,{nextPart:new Map,validators:[]}),i=i.nextPart.get(s)}),i},isThemeGetter=e=>e.isThemeGetter,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=new Map,s=new Map;const o=(a,l)=>{i.set(a,l),t++,t>e&&(t=0,s=i,i=new Map)};return{get(a){let l=i.get(a);if(l!==void 0)return l;if((l=s.get(a))!==void 0)return o(a,l),l},set(a,l){i.has(a)?i.set(a,l):o(a,l)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",MODIFIER_SEPARATOR_LENGTH=MODIFIER_SEPARATOR.length,createParseClassName=e=>{const{prefix:t,experimentalParseClassName:i}=e;let s=o=>{const a=[];let l=0,c=0,u=0,d;for(let y=0;y<o.length;y++){let S=o[y];if(l===0&&c===0){if(S===MODIFIER_SEPARATOR){a.push(o.slice(u,y)),u=y+MODIFIER_SEPARATOR_LENGTH;continue}if(S==="/"){d=y;continue}}S==="["?l++:S==="]"?l--:S==="("?c++:S===")"&&c--}const p=a.length===0?o:o.substring(u),m=stripImportantModifier(p),g=m!==p,b=d&&d>u?d-u:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:b}};if(t){const o=t+MODIFIER_SEPARATOR,a=s;s=l=>l.startsWith(o)?a(l.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(i){const o=s;s=a=>i({className:a,parseClassName:o})}return s},stripImportantModifier=e=>e.endsWith(IMPORTANT_MODIFIER)?e.substring(0,e.length-1):e.startsWith(IMPORTANT_MODIFIER)?e.substring(1):e,createSortModifiers=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const o=[];let a=[];return s.forEach(l=>{l[0]==="["||t[l]?(o.push(...a.sort(),l),a=[]):a.push(l)}),o.push(...a.sort()),o}},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),sortModifiers:createSortModifiers(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,t)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:a}=t,l=[],c=e.trim().split(SPLIT_CLASSES_REGEX);let u="";for(let d=c.length-1;d>=0;d-=1){const p=c[d],{isExternal:m,modifiers:g,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:S}=i(p);if(m){u=p+(u.length>0?" "+u:u);continue}let w=!!S,E=s(w?y.substring(0,S):y);if(!E){if(!w){u=p+(u.length>0?" "+u:u);continue}if(E=s(y),!E){u=p+(u.length>0?" "+u:u);continue}w=!1}const A=a(g).join(":"),T=b?A+IMPORTANT_MODIFIER:A,P=T+E;if(l.includes(P))continue;l.push(P);const O=o(E,w);for(let k=0;k<O.length;++k){const F=O[k];l.push(T+F)}u=p+(u.length>0?" "+u:u)}return u};function twJoin(){let e=0,t,i,s="";for(;e<arguments.length;)(t=arguments[e++])&&(i=toValue(t))&&(s&&(s+=" "),s+=i);return s}const toValue=e=>{if(typeof e=="string")return e;let t,i="";for(let s=0;s<e.length;s++)e[s]&&(t=toValue(e[s]))&&(i&&(i+=" "),i+=t);return i};function createTailwindMerge(e,...t){let i,s,o,a=l;function l(u){const d=t.reduce((p,m)=>m(p),e());return i=createConfigUtils(d),s=i.cache.get,o=i.cache.set,a=c,c(u)}function c(u){const d=s(u);if(d)return d;const p=mergeClassList(u,i);return o(u,p),p}return function(){return a(twJoin.apply(null,arguments))}}const fromTheme=e=>{const t=i=>i[e]||[];return t.isThemeGetter=!0,t},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+\/\d+$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\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$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=e=>fractionRegex.test(e),isNumber$1=e=>!!e&&!Number.isNaN(Number(e)),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber$1(e.slice(0,-1)),isTshirtSize=e=>tshirtUnitRegex.test(e),isAny=()=>!0,isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),isAnyNonArbitrary=e=>!isArbitraryValue(e)&&!isArbitraryVariable(e),isArbitrarySize=e=>getIsArbitraryValue(e,isLabelSize,isNever),isArbitraryValue=e=>arbitraryValueRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,isLabelLength,isLengthOnly),isArbitraryNumber=e=>getIsArbitraryValue(e,isLabelNumber,isNumber$1),isArbitraryPosition=e=>getIsArbitraryValue(e,isLabelPosition,isNever),isArbitraryImage=e=>getIsArbitraryValue(e,isLabelImage,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,isLabelShadow,isShadow),isArbitraryVariable=e=>arbitraryVariableRegex.test(e),isArbitraryVariableLength=e=>getIsArbitraryVariable(e,isLabelLength),isArbitraryVariableFamilyName=e=>getIsArbitraryVariable(e,isLabelFamilyName),isArbitraryVariablePosition=e=>getIsArbitraryVariable(e,isLabelPosition),isArbitraryVariableSize=e=>getIsArbitraryVariable(e,isLabelSize),isArbitraryVariableImage=e=>getIsArbitraryVariable(e,isLabelImage),isArbitraryVariableShadow=e=>getIsArbitraryVariable(e,isLabelShadow,!0),getIsArbitraryValue=(e,t,i)=>{const s=arbitraryValueRegex.exec(e);return s?s[1]?t(s[1]):i(s[2]):!1},getIsArbitraryVariable=(e,t,i=!1)=>{const s=arbitraryVariableRegex.exec(e);return s?s[1]?t(s[1]):i:!1},isLabelPosition=e=>e==="position"||e==="percentage",isLabelImage=e=>e==="image"||e==="url",isLabelSize=e=>e==="length"||e==="size"||e==="bg-size",isLabelLength=e=>e==="length",isLabelNumber=e=>e==="number",isLabelFamilyName=e=>e==="family-name",isLabelShadow=e=>e==="shadow",getDefaultConfig=()=>{const e=fromTheme("color"),t=fromTheme("font"),i=fromTheme("text"),s=fromTheme("font-weight"),o=fromTheme("tracking"),a=fromTheme("leading"),l=fromTheme("breakpoint"),c=fromTheme("container"),u=fromTheme("spacing"),d=fromTheme("radius"),p=fromTheme("shadow"),m=fromTheme("inset-shadow"),g=fromTheme("text-shadow"),b=fromTheme("drop-shadow"),y=fromTheme("blur"),S=fromTheme("perspective"),w=fromTheme("aspect"),E=fromTheme("ease"),A=fromTheme("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...P(),isArbitraryVariable,isArbitraryValue],k=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],N=()=>[isArbitraryVariable,isArbitraryValue,u],U=()=>[isFraction,"full","auto",...N()],H=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],Y=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],Z=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],ie=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...N()],B=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],M=()=>[e,isArbitraryVariable,isArbitraryValue],D=()=>[...P(),isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],W=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],J=()=>["","none","full",d,isArbitraryVariable,isArbitraryValue],re=()=>["",isNumber$1,isArbitraryVariableLength,isArbitraryLength],se=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[isNumber$1,isPercent,isArbitraryVariablePosition,isArbitraryPosition],Q=()=>["","none",y,isArbitraryVariable,isArbitraryValue],oe=()=>["none",isNumber$1,isArbitraryVariable,isArbitraryValue],de=()=>["none",isNumber$1,isArbitraryVariable,isArbitraryValue],ue=()=>[isNumber$1,isArbitraryVariable,isArbitraryValue],ye=()=>[isFraction,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber$1],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,w]}],container:["container"],columns:[{columns:[isNumber$1,isArbitraryValue,isArbitraryVariable,c]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:O()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",c,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber$1,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[c,"screen",...B()]}],"min-w":[{"min-w":[c,"screen","none",...B()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",i,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,isArbitraryVariable,isArbitraryNumber]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryValue,t]}],"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:[o,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber$1,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[a,...N()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[isNumber$1,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[isNumber$1,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],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",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber$1,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",p,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",m,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[isNumber$1,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",g,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[isNumber$1]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[isNumber$1]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:Q()}],brightness:[{brightness:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",b,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber$1,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",E,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",A,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",isArbitraryVariable,isArbitraryValue]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[isNumber$1,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}},twMerge=createTailwindMerge(getDefaultConfig);function cn$1(...e){return twMerge(clsx(e))}function Drawer({children:e,headerOptions:t,closeButtonStyles:i,className:s,variant:o="default",style:a,...l}){return jsxRuntimeExports.jsx(Modal,{header:jsxRuntimeExports.jsx(Modal.Header,{after:jsxRuntimeExports.jsx(Modal.Close,{children:jsxRuntimeExports.jsx(Icon28Close,{style:{color:"var(--tgui--secondary_color)",...i}})}),style:{zIndex:1,position:"absolute",top:0,left:0,right:0,backgroundColor:"transparent",borderRadius:"inherit",overflow:"hidden",...t==null?void 0:t.style},className:cn$1("before:hidden",t==null?void 0:t.className),...t}),className:cn$1("pb-0",s),style:o==="secondary"?{backgroundColor:"var(--tgui--secondary_bg_color)",...a}:a,...l,children:e})}const DrawerContent=reactExports.forwardRef(({children:e,className:t,...i},s)=>jsxRuntimeExports.jsx("div",{ref:s,className:cn$1("flex flex-col text-center px-4 pt-7.5 gap-6 pb-[calc(var(--tg-safe-area-inset-bottom)+6px)]",t),...i,children:e})),useAnimateNumber=(e,t=!0,i=!1)=>{const[,s]=useAnimate(),[o,a]=React.useState(t?0:e),l=useMotionValue(t?0:e),c=React.useRef(e);return l.on("change",d=>{const m=Math.abs(d-c.current)<.001;a(m?i?c.current:Math.round(c.current):i?d:Math.round(d))}),reactExports.useEffect(()=>{c.current=e;const d=s(l,e,{ease:"easeOut",duration:.1});return()=>d.stop()},[l,e,s]),[o,d=>{c.current=d;const p=s(l,d,{ease:"easeOut",duration:.1});return()=>p.stop()}]},XpProgress=({level:e,experience:t,xpNeeded:i,className:s,size:o=40,levelFontSize:a})=>{const[l]=useAnimateNumber(t),[c]=useAnimateNumber(e),u=4,d=Math.round(l/i*100)/100,p=o,m=p/2-u/2,g=2*Math.PI*m,b=formatCompactNumber(c),y=a||`${p*.6/(1+.4*(b.length-1))}px`;return jsxRuntimeExports.jsxs("div",{className:cn$1("relative flex justify-center items-center overflow-hidden",s),style:{width:o,height:o},children:[jsxRuntimeExports.jsx(Text,{className:"text-rounded",style:{fontSize:y,lineHeight:`${o||p}px`,fontWeight:800},children:b}),jsxRuntimeExports.jsxs(motion.svg,{width:p,height:p,viewBox:`0 0 ${p} ${p}`,className:"absolute inset-0 text-inherit",children:[jsxRuntimeExports.jsx("title",{children:"Xp progress background"}),jsxRuntimeExports.jsx(motion.circle,{cx:p/2,cy:p/2,r:m,opacity:.2,stroke:"currentColor",fill:"none",strokeWidth:u})]},"bg"),jsxRuntimeExports.jsxs(motion.svg,{width:p,height:p,viewBox:`0 0 ${p} ${p}`,className:"absolute inset-0 -rotate-90",children:[jsxRuntimeExports.jsx("title",{children:"Xp progress"}),jsxRuntimeExports.jsx(motion.circle,{cx:p/2,cy:p/2,r:m,fill:"none",stroke:"currentColor",strokeWidth:u,strokeLinecap:"round",initial:{strokeDasharray:g,strokeDashoffset:g},animate:{strokeDashoffset:(1-d)*g},transition:{strokeDashoffset:{ease:"easeOut",duration:2}}})]},"fg")]})},dividePriceResponse=e=>e/100,DEBUG_BUILD$2=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,GLOBAL_OBJ=globalThis,SDK_VERSION="10.18.0";function getMainCarrier(){return getSentryCarrier(GLOBAL_OBJ),GLOBAL_OBJ}function getSentryCarrier(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||SDK_VERSION,t[SDK_VERSION]=t[SDK_VERSION]||{}}function getGlobalSingleton(e,t,i=GLOBAL_OBJ){const s=i.__SENTRY__=i.__SENTRY__||{},o=s[SDK_VERSION]=s[SDK_VERSION]||{};return o[e]||(o[e]=t())}const CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],PREFIX="Sentry Logger ",originalConsoleMethods={};function consoleSandbox(e){if(!("console"in GLOBAL_OBJ))return e();const t=GLOBAL_OBJ.console,i={},s=Object.keys(originalConsoleMethods);s.forEach(o=>{const a=originalConsoleMethods[o];i[o]=t[o],t[o]=a});try{return e()}finally{s.forEach(o=>{t[o]=i[o]})}}function enable(){_getLoggerSettings().enabled=!0}function disable(){_getLoggerSettings().enabled=!1}function isEnabled(){return _getLoggerSettings().enabled}function log$6(...e){_maybeLog("log",...e)}function warn(...e){_maybeLog("warn",...e)}function error(...e){_maybeLog("error",...e)}function _maybeLog(e,...t){DEBUG_BUILD$2&&isEnabled()&&consoleSandbox(()=>{GLOBAL_OBJ.console[e](`${PREFIX}[${e}]:`,...t)})}function _getLoggerSettings(){return DEBUG_BUILD$2?getGlobalSingleton("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const debug={enable,disable,isEnabled,log:log$6,warn,error},STACKTRACE_FRAME_LIMIT=50,UNKNOWN_FUNCTION="?",WEBPACK_ERROR_REGEXP=/\(error: (.*)\)/,STRIP_FRAME_REGEXP=/captureMessage|captureException/;function createStackParser(...e){const t=e.sort((i,s)=>i[0]-s[0]).map(i=>i[1]);return(i,s=0,o=0)=>{const a=[],l=i.split(`
|
|
100
100
|
`);for(let c=s;c<l.length;c++){let u=l[c];u.length>1024&&(u=u.slice(0,1024));const d=WEBPACK_ERROR_REGEXP.test(u)?u.replace(WEBPACK_ERROR_REGEXP,"$1"):u;if(!d.match(/\S*Error: /)){for(const p of t){const m=p(d);if(m){a.push(m);break}}if(a.length>=STACKTRACE_FRAME_LIMIT+o)break}}return stripSentryFramesAndReverse(a.slice(o))}}function stackParserFromStackParserOptions(e){return Array.isArray(e)?createStackParser(...e):e}function stripSentryFramesAndReverse(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(getLastStackFrame(t).function||"")&&t.pop(),t.reverse(),STRIP_FRAME_REGEXP.test(getLastStackFrame(t).function||"")&&(t.pop(),STRIP_FRAME_REGEXP.test(getLastStackFrame(t).function||"")&&t.pop()),t.slice(0,STACKTRACE_FRAME_LIMIT).map(i=>({...i,filename:i.filename||getLastStackFrame(t).filename,function:i.function||UNKNOWN_FUNCTION}))}function getLastStackFrame(e){return e[e.length-1]||{}}const defaultFunctionName="<anonymous>";function getFunctionName(e){try{return!e||typeof e!="function"?defaultFunctionName:e.name||defaultFunctionName}catch{return defaultFunctionName}}function getFramesFromEvent(e){const t=e.exception;if(t){const i=[];try{return t.values.forEach(s=>{s.stacktrace.frames&&i.push(...s.stacktrace.frames)}),i}catch{return}}}const handlers={},instrumented={};function addHandler(e,t){handlers[e]=handlers[e]||[],handlers[e].push(t)}function maybeInstrument(e,t){if(!instrumented[e]){instrumented[e]=!0;try{t()}catch(i){DEBUG_BUILD$2&&debug.error(`Error while instrumenting ${e}`,i)}}}function triggerHandlers(e,t){const i=e&&handlers[e];if(i)for(const s of i)try{s(t)}catch(o){DEBUG_BUILD$2&&debug.error(`Error while triggering instrumentation handler.
|
|
101
101
|
Type: ${e}
|
|
102
102
|
Name: ${getFunctionName(s)}
|
|
@@ -110,7 +110,7 @@ Event: ${getEventDescription(e)}`),!0;if(_isDeniedUrl(e,t.denyUrls))return DEBUG
|
|
|
110
110
|
Event: ${getEventDescription(e)}.
|
|
111
111
|
Url: ${_getEventFilterUrl(e)}`),!0;if(!_isAllowedUrl(e,t.allowUrls))return DEBUG_BUILD$2&&debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
112
112
|
Event: ${getEventDescription(e)}.
|
|
113
|
-
Url: ${_getEventFilterUrl(e)}`),!0}return!1}function _isIgnoredError(e,t){return t!=null&&t.length?getPossibleEventMessages(e).some(i=>stringMatchesSomePattern(i,t)):!1}function _isIgnoredTransaction(e,t){if(!(t!=null&&t.length))return!1;const i=e.transaction;return i?stringMatchesSomePattern(i,t):!1}function _isDeniedUrl(e,t){if(!(t!=null&&t.length))return!1;const i=_getEventFilterUrl(e);return i?stringMatchesSomePattern(i,t):!1}function _isAllowedUrl(e,t){if(!(t!=null&&t.length))return!0;const i=_getEventFilterUrl(e);return i?stringMatchesSomePattern(i,t):!0}function _getLastValidUrl(e=[]){for(let t=e.length-1;t>=0;t--){const i=e[t];if(i&&i.filename!=="<anonymous>"&&i.filename!=="[native code]")return i.filename||null}return null}function _getEventFilterUrl(e){var t,i;try{const s=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(a=>{var l,c,u;return((l=a.mechanism)==null?void 0:l.parent_id)===void 0&&((u=(c=a.stacktrace)==null?void 0:c.frames)==null?void 0:u.length)}),o=(i=s==null?void 0:s.stacktrace)==null?void 0:i.frames;return o?_getLastValidUrl(o):null}catch{return DEBUG_BUILD$2&&debug.error(`Cannot extract url for event ${getEventDescription(e)}`),null}}function _isUselessError(e){var t,i;return(i=(t=e.exception)==null?void 0:t.values)!=null&&i.length?!e.message&&!e.exception.values.some(s=>s.stacktrace||s.type&&s.type!=="Error"||s.value):!1}function applyAggregateErrorsToEvent(e,t,i,s,o,a){var c;if(!((c=o.exception)!=null&&c.values)||!a||!isInstanceOf(a.originalException,Error))return;const l=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;l&&(o.exception.values=aggregateExceptionsFromError(e,t,s,a.originalException,i,o.exception.values,l,0))}function aggregateExceptionsFromError(e,t,i,s,o,a,l,c){if(a.length>=i+1)return a;let u=[...a];if(isInstanceOf(s[o],Error)){applyExceptionGroupFieldsForParentException(l,c);const d=e(t,s[o]),p=u.length;applyExceptionGroupFieldsForChildException(d,o,p,c),u=aggregateExceptionsFromError(e,t,i,s[o],o,[d,...u],d,p)}return Array.isArray(s.errors)&&s.errors.forEach((d,p)=>{if(isInstanceOf(d,Error)){applyExceptionGroupFieldsForParentException(l,c);const m=e(t,d),g=u.length;applyExceptionGroupFieldsForChildException(m,`errors[${p}]`,g,c),u=aggregateExceptionsFromError(e,t,i,d,o,[m,...u],m,g)}}),u}function applyExceptionGroupFieldsForParentException(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function applyExceptionGroupFieldsForChildException(e,t,i,s){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:i,parent_id:s}}function addConsoleInstrumentationHandler(e){const t="console";addHandler(t,e),maybeInstrument(t,instrumentConsole)}function instrumentConsole(){"console"in GLOBAL_OBJ&&CONSOLE_LEVELS.forEach(function(e){e in GLOBAL_OBJ.console&&fill(GLOBAL_OBJ.console,e,function(t){return originalConsoleMethods[e]=t,function(...i){triggerHandlers("console",{args:i,level:e});const o=originalConsoleMethods[e];o==null||o.apply(GLOBAL_OBJ.console,i)}})})}function severityLevelFromString(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const INTEGRATION_NAME$4="Dedupe",_dedupeIntegration=()=>{let e;return{name:INTEGRATION_NAME$4,processEvent(t){if(t.type)return t;try{if(_shouldDropEvent(t,e))return DEBUG_BUILD$2&&debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},dedupeIntegration=_dedupeIntegration;function _shouldDropEvent(e,t){return t?!!(_isSameMessageEvent(e,t)||_isSameExceptionEvent(e,t)):!1}function _isSameMessageEvent(e,t){const i=e.message,s=t.message;return!(!i&&!s||i&&!s||!i&&s||i!==s||!_isSameFingerprint(e,t)||!_isSameStacktrace(e,t))}function _isSameExceptionEvent(e,t){const i=_getExceptionFromEvent(t),s=_getExceptionFromEvent(e);return!(!i||!s||i.type!==s.type||i.value!==s.value||!_isSameFingerprint(e,t)||!_isSameStacktrace(e,t))}function _isSameStacktrace(e,t){let i=getFramesFromEvent(e),s=getFramesFromEvent(t);if(!i&&!s)return!0;if(i&&!s||!i&&s||(i=i,s=s,s.length!==i.length))return!1;for(let o=0;o<s.length;o++){const a=s[o],l=i[o];if(a.filename!==l.filename||a.lineno!==l.lineno||a.colno!==l.colno||a.function!==l.function)return!1}return!0}function _isSameFingerprint(e,t){let i=e.fingerprint,s=t.fingerprint;if(!i&&!s)return!0;if(i&&!s||!i&&s)return!1;i=i,s=s;try{return i.join("")===s.join("")}catch{return!1}}function _getExceptionFromEvent(e){var t,i;return(i=(t=e.exception)==null?void 0:t.values)==null?void 0:i[0]}function getBreadcrumbLogLevelFromHttpStatusCode(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const WINDOW$2=GLOBAL_OBJ;function supportsHistory(){return"history"in WINDOW$2&&!!WINDOW$2.history}function _isFetchSupported(){if(!("fetch"in WINDOW$2))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function isNativeFunction(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function supportsNativeFetch(){var i;if(typeof EdgeRuntime=="string")return!0;if(!_isFetchSupported())return!1;if(isNativeFunction(WINDOW$2.fetch))return!0;let e=!1;const t=WINDOW$2.document;if(t&&typeof t.createElement=="function")try{const s=t.createElement("iframe");s.hidden=!0,t.head.appendChild(s),(i=s.contentWindow)!=null&&i.fetch&&(e=isNativeFunction(s.contentWindow.fetch)),t.head.removeChild(s)}catch(s){DEBUG_BUILD$2&&debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",s)}return e}function addFetchInstrumentationHandler(e,t){const i="fetch";addHandler(i,e),maybeInstrument(i,()=>instrumentFetch(void 0,t))}function instrumentFetch(e,t=!1){t&&!supportsNativeFetch()||fill(GLOBAL_OBJ,"fetch",function(i){return function(...s){const o=new Error,{method:a,url:l}=parseFetchArgs(s),c={args:s,fetchData:{method:a,url:l},startTimestamp:timestampInSeconds()*1e3,virtualError:o,headers:getHeadersFromFetchArgs(s)};return triggerHandlers("fetch",{...c}),i.apply(GLOBAL_OBJ,s).then(async u=>(triggerHandlers("fetch",{...c,endTimestamp:timestampInSeconds()*1e3,response:u}),u),u=>{if(triggerHandlers("fetch",{...c,endTimestamp:timestampInSeconds()*1e3,error:u}),isError(u)&&u.stack===void 0&&(u.stack=o.stack,addNonEnumerableProperty(u,"framesToPop",1)),u instanceof TypeError&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const d=new URL(c.fetchData.url);u.message=`${u.message} (${d.host})`}catch{}throw u})}})}function hasProp(e,t){return!!e&&typeof e=="object"&&!!e[t]}function getUrlFromResource(e){return typeof e=="string"?e:e?hasProp(e,"url")?e.url:e.toString?e.toString():"":""}function parseFetchArgs(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[i,s]=e;return{url:getUrlFromResource(i),method:hasProp(s,"method")?String(s.method).toUpperCase():"GET"}}const t=e[0];return{url:getUrlFromResource(t),method:hasProp(t,"method")?String(t.method).toUpperCase():"GET"}}function getHeadersFromFetchArgs(e){const[t,i]=e;try{if(typeof i=="object"&&i!==null&&"headers"in i&&i.headers)return new Headers(i.headers);if(isRequest(t))return new Headers(t.headers)}catch{}}function getSDKSource(){return"npm"}const WINDOW$1=GLOBAL_OBJ;let ignoreOnError=0;function shouldIgnoreOnError(){return ignoreOnError>0}function ignoreNextOnError(){ignoreOnError++,setTimeout(()=>{ignoreOnError--})}function wrap(e,t={}){function i(o){return typeof o=="function"}if(!i(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(getOriginalFunction(e))return e}catch{return e}const s=function(...o){try{const a=o.map(l=>wrap(l,t));return e.apply(this,a)}catch(a){throw ignoreNextOnError(),withScope(l=>{l.addEventProcessor(c=>(t.mechanism&&(addExceptionTypeValue(c,void 0),addExceptionMechanism(c,t.mechanism)),c.extra={...c.extra,arguments:o},c)),captureException(a)}),a}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(s[o]=e[o])}catch{}markFunctionWrapped(s,e),addNonEnumerableProperty(e,"__sentry_wrapped__",s);try{Object.getOwnPropertyDescriptor(s,"name").configurable&&Object.defineProperty(s,"name",{get(){return e.name}})}catch{}return s}function getHttpRequestData(){const e=getLocationHref(),{referrer:t}=WINDOW$1.document||{},{userAgent:i}=WINDOW$1.navigator||{},s={...t&&{Referer:t},...i&&{"User-Agent":i}};return{url:e,headers:s}}function exceptionFromError(e,t){const i=parseStackFrames(e,t),s={type:extractType(t),value:extractMessage(t)};return i.length&&(s.stacktrace={frames:i}),s.type===void 0&&s.value===""&&(s.value="Unrecoverable error caught"),s}function eventFromPlainObject(e,t,i,s){const o=getClient(),a=o==null?void 0:o.getOptions().normalizeDepth,l=getErrorPropertyFromObject(t),c={__serialized__:normalizeToSize(t,a)};if(l)return{exception:{values:[exceptionFromError(e,l)]},extra:c};const u={exception:{values:[{type:isEvent(t)?t.constructor.name:s?"UnhandledRejection":"Error",value:getNonErrorObjectExceptionValue(t,{isUnhandledRejection:s})}]},extra:c};if(i){const d=parseStackFrames(e,i);d.length&&(u.exception.values[0].stacktrace={frames:d})}return u}function eventFromError(e,t){return{exception:{values:[exceptionFromError(e,t)]}}}function parseStackFrames(e,t){const i=t.stacktrace||t.stack||"",s=getSkipFirstStackStringLines(t),o=getPopFirstTopFrames(t);try{return e(i,s,o)}catch{}return[]}const reactMinifiedRegexp=/Minified React error #\d+;/i;function getSkipFirstStackStringLines(e){return e&&reactMinifiedRegexp.test(e.message)?1:0}function getPopFirstTopFrames(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function isWebAssemblyException(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function extractType(e){const t=e==null?void 0:e.name;return!t&&isWebAssemblyException(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function extractMessage(e){const t=e==null?void 0:e.message;return isWebAssemblyException(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function eventFromException(e,t,i,s){const o=(i==null?void 0:i.syntheticException)||void 0,a=eventFromUnknownInput(e,t,o,s);return addExceptionMechanism(a),a.level="error",i!=null&&i.event_id&&(a.event_id=i.event_id),resolvedSyncPromise(a)}function eventFromMessage(e,t,i="info",s,o){const a=(s==null?void 0:s.syntheticException)||void 0,l=eventFromString(e,t,a,o);return l.level=i,s!=null&&s.event_id&&(l.event_id=s.event_id),resolvedSyncPromise(l)}function eventFromUnknownInput(e,t,i,s,o){let a;if(isErrorEvent$1(t)&&t.error)return eventFromError(e,t.error);if(isDOMError(t)||isDOMException(t)){const l=t;if("stack"in t)a=eventFromError(e,t);else{const c=l.name||(isDOMError(l)?"DOMError":"DOMException"),u=l.message?`${c}: ${l.message}`:c;a=eventFromString(e,u,i,s),addExceptionTypeValue(a,u)}return"code"in l&&(a.tags={...a.tags,"DOMException.code":`${l.code}`}),a}return isError(t)?eventFromError(e,t):isPlainObject$1(t)||isEvent(t)?(a=eventFromPlainObject(e,t,i,o),addExceptionMechanism(a,{synthetic:!0}),a):(a=eventFromString(e,t,i,s),addExceptionTypeValue(a,`${t}`),addExceptionMechanism(a,{synthetic:!0}),a)}function eventFromString(e,t,i,s){const o={};if(s&&i){const a=parseStackFrames(e,i);a.length&&(o.exception={values:[{value:t,stacktrace:{frames:a}}]}),addExceptionMechanism(o,{synthetic:!0})}if(isParameterizedString(t)){const{__sentry_template_string__:a,__sentry_template_values__:l}=t;return o.logentry={message:a,params:l},o}return o.message=t,o}function getNonErrorObjectExceptionValue(e,{isUnhandledRejection:t}){const i=extractExceptionKeysForMessage(e),s=t?"promise rejection":"exception";return isErrorEvent$1(e)?`Event \`ErrorEvent\` captured as ${s} with message \`${e.message}\``:isEvent(e)?`Event \`${getObjectClassName(e)}\` (type=${e.type}) captured as ${s}`:`Object captured as ${s} with keys: ${i}`}function getObjectClassName(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function getErrorPropertyFromObject(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const i=e[t];if(i instanceof Error)return i}}const DEFAULT_FLUSH_INTERVAL=5e3;class BrowserClient extends Client{constructor(t){var c;const i=applyDefaultOptions(t),s=WINDOW$1.SENTRY_SDK_SOURCE||getSDKSource();applySdkMetadata(i,"browser",["browser"],s),(c=i._metadata)!=null&&c.sdk&&(i._metadata.sdk.settings={infer_ip:i.sendDefaultPii?"auto":"never",...i._metadata.sdk.settings}),super(i);const{sendDefaultPii:o,sendClientReports:a,enableLogs:l}=this._options;WINDOW$1.document&&(a||l)&&WINDOW$1.document.addEventListener("visibilitychange",()=>{WINDOW$1.document.visibilityState==="hidden"&&(a&&this._flushOutcomes(),l&&_INTERNAL_flushLogsBuffer(this))}),l&&(this.on("flush",()=>{_INTERNAL_flushLogsBuffer(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{_INTERNAL_flushLogsBuffer(this)},DEFAULT_FLUSH_INTERVAL)})),o&&this.on("beforeSendSession",addAutoIpAddressToSession)}eventFromException(t,i){return eventFromException(this._options.stackParser,t,i,this._options.attachStacktrace)}eventFromMessage(t,i="info",s){return eventFromMessage(this._options.stackParser,t,i,s,this._options.attachStacktrace)}_prepareEvent(t,i,s,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,i,s,o)}}function applyDefaultOptions(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=WINDOW$1.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const DEBUG_BUILD$1=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,WINDOW=GLOBAL_OBJ,DEBOUNCE_DURATION=1e3;let debounceTimerID,lastCapturedEventType,lastCapturedEventTargetId;function addClickKeypressInstrumentationHandler(e){const t="dom";addHandler(t,e),maybeInstrument(t,instrumentDOM)}function instrumentDOM(){if(!WINDOW.document)return;const e=triggerHandlers.bind(null,"dom"),t=makeDOMEventHandler(e,!0);WINDOW.document.addEventListener("click",t,!1),WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(i=>{var a,l;const o=(a=WINDOW[i])==null?void 0:a.prototype;(l=o==null?void 0:o.hasOwnProperty)!=null&&l.call(o,"addEventListener")&&(fill(o,"addEventListener",function(c){return function(u,d,p){if(u==="click"||u=="keypress")try{const m=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},g=m[u]=m[u]||{refCount:0};if(!g.handler){const b=makeDOMEventHandler(e);g.handler=b,c.call(this,u,b,p)}g.refCount++}catch{}return c.call(this,u,d,p)}}),fill(o,"removeEventListener",function(c){return function(u,d,p){if(u==="click"||u=="keypress")try{const m=this.__sentry_instrumentation_handlers__||{},g=m[u];g&&(g.refCount--,g.refCount<=0&&(c.call(this,u,g.handler,p),g.handler=void 0,delete m[u]),Object.keys(m).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,u,d,p)}}))})}function isSimilarToLastCapturedEvent(e){if(e.type!==lastCapturedEventType)return!1;try{if(!e.target||e.target._sentryId!==lastCapturedEventTargetId)return!1}catch{}return!0}function shouldSkipDOMEvent(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function makeDOMEventHandler(e,t=!1){return i=>{if(!i||i._sentryCaptured)return;const s=getEventTarget$1(i);if(shouldSkipDOMEvent(i.type,s))return;addNonEnumerableProperty(i,"_sentryCaptured",!0),s&&!s._sentryId&&addNonEnumerableProperty(s,"_sentryId",uuid4());const o=i.type==="keypress"?"input":i.type;isSimilarToLastCapturedEvent(i)||(e({event:i,name:o,global:t}),lastCapturedEventType=i.type,lastCapturedEventTargetId=s?s._sentryId:void 0),clearTimeout(debounceTimerID),debounceTimerID=WINDOW.setTimeout(()=>{lastCapturedEventTargetId=void 0,lastCapturedEventType=void 0},DEBOUNCE_DURATION)}}function getEventTarget$1(e){try{return e.target}catch{return null}}let lastHref;function addHistoryInstrumentationHandler(e){const t="history";addHandler(t,e),maybeInstrument(t,instrumentHistory)}function instrumentHistory(){if(WINDOW.addEventListener("popstate",()=>{const t=WINDOW.location.href,i=lastHref;if(lastHref=t,i===t)return;triggerHandlers("history",{from:i,to:t})}),!supportsHistory())return;function e(t){return function(...i){const s=i.length>2?i[2]:void 0;if(s){const o=lastHref,a=getAbsoluteUrl(String(s));if(lastHref=a,o===a)return t.apply(this,i);triggerHandlers("history",{from:o,to:a})}return t.apply(this,i)}}fill(WINDOW.history,"pushState",e),fill(WINDOW.history,"replaceState",e)}function getAbsoluteUrl(e){try{return new URL(e,WINDOW.location.origin).toString()}catch{return e}}const cachedImplementations={};function getNativeImplementation(e){const t=cachedImplementations[e];if(t)return t;let i=WINDOW[e];if(isNativeFunction(i))return cachedImplementations[e]=i.bind(WINDOW);const s=WINDOW.document;if(s&&typeof s.createElement=="function")try{const o=s.createElement("iframe");o.hidden=!0,s.head.appendChild(o);const a=o.contentWindow;a!=null&&a[e]&&(i=a[e]),s.head.removeChild(o)}catch(o){DEBUG_BUILD$1&&debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return i&&(cachedImplementations[e]=i.bind(WINDOW))}function clearCachedImplementation(e){cachedImplementations[e]=void 0}const SENTRY_XHR_DATA_KEY="__sentry_xhr_v3__";function addXhrInstrumentationHandler(e){const t="xhr";addHandler(t,e),maybeInstrument(t,instrumentXHR)}function instrumentXHR(){if(!WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,i,s){const o=new Error,a=timestampInSeconds()*1e3,l=isString$2(s[0])?s[0].toUpperCase():void 0,c=parseXhrUrlArg(s[1]);if(!l||!c)return t.apply(i,s);i[SENTRY_XHR_DATA_KEY]={method:l,url:c,request_headers:{}},l==="POST"&&c.match(/sentry_key/)&&(i.__sentry_own_request__=!0);const u=()=>{const d=i[SENTRY_XHR_DATA_KEY];if(d&&i.readyState===4){try{d.status_code=i.status}catch{}const p={endTimestamp:timestampInSeconds()*1e3,startTimestamp:a,xhr:i,virtualError:o};triggerHandlers("xhr",p)}};return"onreadystatechange"in i&&typeof i.onreadystatechange=="function"?i.onreadystatechange=new Proxy(i.onreadystatechange,{apply(d,p,m){return u(),d.apply(p,m)}}):i.addEventListener("readystatechange",u),i.setRequestHeader=new Proxy(i.setRequestHeader,{apply(d,p,m){const[g,b]=m,y=p[SENTRY_XHR_DATA_KEY];return y&&isString$2(g)&&isString$2(b)&&(y.request_headers[g.toLowerCase()]=b),d.apply(p,m)}}),t.apply(i,s)}}),e.send=new Proxy(e.send,{apply(t,i,s){const o=i[SENTRY_XHR_DATA_KEY];if(!o)return t.apply(i,s);s[0]!==void 0&&(o.body=s[0]);const a={startTimestamp:timestampInSeconds()*1e3,xhr:i};return triggerHandlers("xhr",a),t.apply(i,s)}})}function parseXhrUrlArg(e){if(isString$2(e))return e;try{return e.toString()}catch{}}function makeFetchTransport(e,t=getNativeImplementation("fetch")){let i=0,s=0;async function o(a){const l=a.body.length;i+=l,s++;const c={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:i<=6e4&&s<15,...e.fetchOptions};try{const u=await t(e.url,c);return{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}}catch(u){throw clearCachedImplementation("fetch"),u}finally{i-=l,s--}}return createTransport(e,o)}const CHROME_PRIORITY=30,GECKO_PRIORITY=50;function createFrame(e,t,i,s){const o={filename:e,function:t==="<anonymous>"?UNKNOWN_FUNCTION:t,in_app:!0};return i!==void 0&&(o.lineno=i),s!==void 0&&(o.colno=s),o}const chromeRegexNoFnName=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,chromeRegex=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,chromeEvalRegex=/\((\S*)(?::(\d+))(?::(\d+))\)/,chromeDataUriRegex=/at (.+?) ?\(data:(.+?),/,chromeStackParserFn=e=>{const t=e.match(chromeDataUriRegex);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const i=chromeRegexNoFnName.exec(e);if(i){const[,o,a,l]=i;return createFrame(o,UNKNOWN_FUNCTION,+a,+l)}const s=chromeRegex.exec(e);if(s){if(s[2]&&s[2].indexOf("eval")===0){const c=chromeEvalRegex.exec(s[2]);c&&(s[2]=c[1],s[3]=c[2],s[4]=c[3])}const[a,l]=extractSafariExtensionDetails(s[1]||UNKNOWN_FUNCTION,s[2]);return createFrame(l,a,s[3]?+s[3]:void 0,s[4]?+s[4]:void 0)}},chromeStackLineParser=[CHROME_PRIORITY,chromeStackParserFn],geckoREgex=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,geckoEvalRegex=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gecko=e=>{const t=geckoREgex.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=geckoEvalRegex.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let s=t[3],o=t[1]||UNKNOWN_FUNCTION;return[o,s]=extractSafariExtensionDetails(o,s),createFrame(s,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},geckoStackLineParser=[GECKO_PRIORITY,gecko],defaultStackLineParsers=[chromeStackLineParser,geckoStackLineParser],defaultStackParser=createStackParser(...defaultStackLineParsers),extractSafariExtensionDetails=(e,t)=>{const i=e.indexOf("safari-extension")!==-1,s=e.indexOf("safari-web-extension")!==-1;return i||s?[e.indexOf("@")!==-1?e.split("@")[0]:UNKNOWN_FUNCTION,i?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,MAX_ALLOWED_STRING_LENGTH=1024,INTEGRATION_NAME$3="Breadcrumbs",_breadcrumbsIntegration=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:INTEGRATION_NAME$3,setup(i){t.console&&addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(i)),t.dom&&addClickKeypressInstrumentationHandler(_getDomBreadcrumbHandler(i,t.dom)),t.xhr&&addXhrInstrumentationHandler(_getXhrBreadcrumbHandler(i)),t.fetch&&addFetchInstrumentationHandler(_getFetchBreadcrumbHandler(i)),t.history&&addHistoryInstrumentationHandler(_getHistoryBreadcrumbHandler(i)),t.sentry&&i.on("beforeSendEvent",_getSentryBreadcrumbHandler(i))}}},breadcrumbsIntegration=_breadcrumbsIntegration;function _getSentryBreadcrumbHandler(e){return function(i){getClient()===e&&addBreadcrumb({category:`sentry.${i.type==="transaction"?"transaction":"event"}`,event_id:i.event_id,level:i.level,message:getEventDescription(i)},{event:i})}}function _getDomBreadcrumbHandler(e,t){return function(s){if(getClient()!==e)return;let o,a,l=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>MAX_ALLOWED_STRING_LENGTH&&(DEBUG_BUILD&&debug.warn(`\`dom.maxStringLength\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${c} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`),c=MAX_ALLOWED_STRING_LENGTH),typeof l=="string"&&(l=[l]);try{const d=s.event,p=_isEvent(d)?d.target:d;o=htmlTreeAsString(p,{keyAttrs:l,maxStringLength:c}),a=getComponentName(p)}catch{o="<unknown>"}if(o.length===0)return;const u={category:`ui.${s.name}`,message:o};a&&(u.data={"ui.component_name":a}),addBreadcrumb(u,{event:s.event,name:s.name,global:s.global})}}function _getConsoleBreadcrumbHandler(e){return function(i){if(getClient()!==e)return;const s={category:"console",data:{arguments:i.args,logger:"console"},level:severityLevelFromString(i.level),message:safeJoin(i.args," ")};if(i.level==="assert")if(i.args[0]===!1)s.message=`Assertion failed: ${safeJoin(i.args.slice(1)," ")||"console.assert"}`,s.data.arguments=i.args.slice(1);else return;addBreadcrumb(s,{input:i.args,level:i.level})}}function _getXhrBreadcrumbHandler(e){return function(i){if(getClient()!==e)return;const{startTimestamp:s,endTimestamp:o}=i,a=i.xhr[SENTRY_XHR_DATA_KEY];if(!s||!o||!a)return;const{method:l,url:c,status_code:u,body:d}=a,p={method:l,url:c,status_code:u},m={xhr:i.xhr,input:d,startTimestamp:s,endTimestamp:o},g={category:"xhr",data:p,type:"http",level:getBreadcrumbLogLevelFromHttpStatusCode(u)};e.emit("beforeOutgoingRequestBreadcrumb",g,m),addBreadcrumb(g,m)}}function _getFetchBreadcrumbHandler(e){return function(i){if(getClient()!==e)return;const{startTimestamp:s,endTimestamp:o}=i;if(o&&!(i.fetchData.url.match(/sentry_key/)&&i.fetchData.method==="POST"))if(i.fetchData.method,i.fetchData.url,i.error){const a=i.fetchData,l={data:i.error,input:i.args,startTimestamp:s,endTimestamp:o},c={category:"fetch",data:a,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",c,l),addBreadcrumb(c,l)}else{const a=i.response,l={...i.fetchData,status_code:a==null?void 0:a.status};i.fetchData.request_body_size,i.fetchData.response_body_size,a==null||a.status;const c={input:i.args,response:a,startTimestamp:s,endTimestamp:o},u={category:"fetch",data:l,type:"http",level:getBreadcrumbLogLevelFromHttpStatusCode(l.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",u,c),addBreadcrumb(u,c)}}}function _getHistoryBreadcrumbHandler(e){return function(i){if(getClient()!==e)return;let s=i.from,o=i.to;const a=parseUrl(WINDOW$1.location.href);let l=s?parseUrl(s):void 0;const c=parseUrl(o);l!=null&&l.path||(l=a),a.protocol===c.protocol&&a.host===c.host&&(o=c.relative),a.protocol===l.protocol&&a.host===l.host&&(s=l.relative),addBreadcrumb({category:"navigation",data:{from:s,to:o}})}}function _isEvent(e){return!!e&&!!e.target}const DEFAULT_EVENT_TARGET=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],INTEGRATION_NAME$2="BrowserApiErrors",_browserApiErrorsIntegration=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:INTEGRATION_NAME$2,setupOnce(){t.setTimeout&&fill(WINDOW$1,"setTimeout",_wrapTimeFunction),t.setInterval&&fill(WINDOW$1,"setInterval",_wrapTimeFunction),t.requestAnimationFrame&&fill(WINDOW$1,"requestAnimationFrame",_wrapRAF),t.XMLHttpRequest&&"XMLHttpRequest"in WINDOW$1&&fill(XMLHttpRequest.prototype,"send",_wrapXHR);const i=t.eventTarget;i&&(Array.isArray(i)?i:DEFAULT_EVENT_TARGET).forEach(o=>_wrapEventTarget(o,t))}}},browserApiErrorsIntegration=_browserApiErrorsIntegration;function _wrapTimeFunction(e){return function(...t){const i=t[0];return t[0]=wrap(i,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${getFunctionName(e)}`}}),e.apply(this,t)}}function _wrapRAF(e){return function(t){return e.apply(this,[wrap(t,{mechanism:{data:{handler:getFunctionName(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function _wrapXHR(e){return function(...t){const i=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in i&&typeof i[o]=="function"&&fill(i,o,function(a){const l={mechanism:{data:{handler:getFunctionName(a)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},c=getOriginalFunction(a);return c&&(l.mechanism.data.handler=getFunctionName(c)),wrap(a,l)})}),e.apply(this,t)}}function _wrapEventTarget(e,t){var o,a;const s=(o=WINDOW$1[e])==null?void 0:o.prototype;(a=s==null?void 0:s.hasOwnProperty)!=null&&a.call(s,"addEventListener")&&(fill(s,"addEventListener",function(l){return function(c,u,d){try{isEventListenerObject(u)&&(u.handleEvent=wrap(u.handleEvent,{mechanism:{data:{handler:getFunctionName(u),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&unregisterOriginalCallback(this,c,u),l.apply(this,[c,wrap(u,{mechanism:{data:{handler:getFunctionName(u),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),d])}}),fill(s,"removeEventListener",function(l){return function(c,u,d){try{const p=u.__sentry_wrapped__;p&&l.call(this,c,p,d)}catch{}return l.call(this,c,u,d)}}))}function isEventListenerObject(e){return typeof e.handleEvent=="function"}function unregisterOriginalCallback(e,t,i){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,i)}const browserSessionIntegration=()=>({name:"BrowserSession",setupOnce(){if(typeof WINDOW$1.document>"u"){DEBUG_BUILD&&debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}startSession({ignoreDuration:!0}),captureSession(),addHistoryInstrumentationHandler(({from:e,to:t})=>{e!==void 0&&e!==t&&(startSession({ignoreDuration:!0}),captureSession())})}}),INTEGRATION_NAME$1="GlobalHandlers",_globalHandlersIntegration=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:INTEGRATION_NAME$1,setupOnce(){Error.stackTraceLimit=50},setup(i){t.onerror&&(_installGlobalOnErrorHandler(i),globalHandlerLog("onerror")),t.onunhandledrejection&&(_installGlobalOnUnhandledRejectionHandler(i),globalHandlerLog("onunhandledrejection"))}}},globalHandlersIntegration=_globalHandlersIntegration;function _installGlobalOnErrorHandler(e){addGlobalErrorInstrumentationHandler(t=>{const{stackParser:i,attachStacktrace:s}=getOptions();if(getClient()!==e||shouldIgnoreOnError())return;const{msg:o,url:a,line:l,column:c,error:u}=t,d=_enhanceEventWithInitialFrame(eventFromUnknownInput(i,u||o,void 0,s,!1),a,l,c);d.level="error",captureEvent(d,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function _installGlobalOnUnhandledRejectionHandler(e){addGlobalUnhandledRejectionInstrumentationHandler(t=>{const{stackParser:i,attachStacktrace:s}=getOptions();if(getClient()!==e||shouldIgnoreOnError())return;const o=_getUnhandledRejectionError(t),a=isPrimitive(o)?_eventFromRejectionWithPrimitive(o):eventFromUnknownInput(i,o,void 0,s,!0);a.level="error",captureEvent(a,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function _getUnhandledRejectionError(e){if(isPrimitive(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function _eventFromRejectionWithPrimitive(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function _enhanceEventWithInitialFrame(e,t,i,s){const o=e.exception=e.exception||{},a=o.values=o.values||[],l=a[0]=a[0]||{},c=l.stacktrace=l.stacktrace||{},u=c.frames=c.frames||[],d=s,p=i,m=getFilenameFromUrl(t)??getLocationHref();return u.length===0&&u.push({colno:d,filename:m,function:UNKNOWN_FUNCTION,in_app:!0,lineno:p}),e}function globalHandlerLog(e){DEBUG_BUILD&&debug.log(`Global Handler attached: ${e}`)}function getOptions(){const e=getClient();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function getFilenameFromUrl(e){if(!(!isString$2(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),i=t?t[1]:"text/javascript",s=e.includes("base64,");return`<data:${i}${s?",base64":""}>`}return e.slice(0,1024)}}const httpContextIntegration=()=>({name:"HttpContext",preprocessEvent(e){var s;if(!WINDOW$1.navigator&&!WINDOW$1.location&&!WINDOW$1.document)return;const t=getHttpRequestData(),i={...t.headers,...(s=e.request)==null?void 0:s.headers};e.request={...t,...e.request,headers:i}}}),DEFAULT_KEY="cause",DEFAULT_LIMIT=5,INTEGRATION_NAME="LinkedErrors",_linkedErrorsIntegration=(e={})=>{const t=e.limit||DEFAULT_LIMIT,i=e.key||DEFAULT_KEY;return{name:INTEGRATION_NAME,preprocessEvent(s,o,a){const l=a.getOptions();applyAggregateErrorsToEvent(exceptionFromError,l.stackParser,i,t,s,o)}}},linkedErrorsIntegration=_linkedErrorsIntegration;function checkAndWarnIfIsEmbeddedBrowserExtension(){return _isEmbeddedBrowserExtension()?(DEBUG_BUILD&&consoleSandbox(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function _isEmbeddedBrowserExtension(){var a;if(typeof WINDOW$1.window>"u")return!1;const e=WINDOW$1;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((a=t==null?void 0:t.runtime)!=null&&a.id))return!1;const i=getLocationHref(),s=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(WINDOW$1===WINDOW$1.top&&s.some(l=>i.startsWith(`${l}://`)))}function getDefaultIntegrations(e){return[inboundFiltersIntegration(),functionToStringIntegration(),browserApiErrorsIntegration(),breadcrumbsIntegration(),globalHandlersIntegration(),linkedErrorsIntegration(),dedupeIntegration(),httpContextIntegration(),browserSessionIntegration()]}function init$1(e={}){const t=!e.skipBrowserExtensionCheck&&checkAndWarnIfIsEmbeddedBrowserExtension(),i={...e,enabled:t?!1:e.enabled,stackParser:stackParserFromStackParserOptions(e.stackParser||defaultStackParser),integrations:getIntegrationsToSetup({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?getDefaultIntegrations():e.defaultIntegrations}),transport:e.transport||makeFetchTransport};return initAndBind(BrowserClient,i)}function init(e){const t={...e};return applySdkMetadata(t,"react"),setContext("react",{version:reactExports.version}),init$1(t)}var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},defaultTimeoutProvider={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},TimeoutManager=(Gt=class{constructor(){Ye(this,ct,defaultTimeoutProvider);Ye(this,_t,!1)}setTimeoutProvider(e){Le(this,ct,e)}setTimeout(e,t){return te(this,ct).setTimeout(e,t)}clearTimeout(e){te(this,ct).clearTimeout(e)}setInterval(e,t){return te(this,ct).setInterval(e,t)}clearInterval(e){te(this,ct).clearInterval(e)}},ct=new WeakMap,_t=new WeakMap,Gt),timeoutManager=new TimeoutManager;function systemSetTimeoutZero(e){setTimeout(e,0)}var isServer=typeof window>"u"||"Deno"in globalThis;function noop$1(){}function functionalUpdate(e,t){return typeof e=="function"?e(t):e}function isValidTimeout(e){return typeof e=="number"&&e>=0&&e!==1/0}function timeUntilStale(e,t){return Math.max(e+(t||0)-Date.now(),0)}function resolveStaleTime(e,t){return typeof e=="function"?e(t):e}function resolveEnabled(e,t){return typeof e=="function"?e(t):e}function matchQuery(e,t){const{type:i="all",exact:s,fetchStatus:o,predicate:a,queryKey:l,stale:c}=e;if(l){if(s){if(t.queryHash!==hashQueryKeyByOptions(l,t.options))return!1}else if(!partialMatchKey(t.queryKey,l))return!1}if(i!=="all"){const u=t.isActive();if(i==="active"&&!u||i==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||a&&!a(t))}function matchMutation(e,t){const{exact:i,status:s,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(i){if(hashKey(t.options.mutationKey)!==hashKey(a))return!1}else if(!partialMatchKey(t.options.mutationKey,a))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function hashQueryKeyByOptions(e,t){return((t==null?void 0:t.queryKeyHashFn)||hashKey)(e)}function hashKey(e){return JSON.stringify(e,(t,i)=>isPlainObject(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function partialMatchKey(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(i=>partialMatchKey(e[i],t[i])):!1}var hasOwn=Object.prototype.hasOwnProperty;function replaceEqualDeep(e,t){if(e===t)return e;const i=isPlainArray(e)&&isPlainArray(t);if(!i&&!(isPlainObject(e)&&isPlainObject(t)))return t;const o=(i?e:Object.keys(e)).length,a=i?t:Object.keys(t),l=a.length,c=i?new Array(l):{};let u=0;for(let d=0;d<l;d++){const p=i?d:a[d],m=e[p],g=t[p];if(m===g){c[p]=m,(i?d<o:hasOwn.call(e,p))&&u++;continue}if(m===null||g===null||typeof m!="object"||typeof g!="object"){c[p]=g;continue}const b=replaceEqualDeep(m,g);c[p]=b,b===m&&u++}return o===l&&u===o?e:c}function shallowEqualObjects(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}function isPlainArray(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;const t=e.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!hasObjectPrototype(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function hasObjectPrototype(e){return Object.prototype.toString.call(e)==="[object Object]"}function sleep(e){return new Promise(t=>{timeoutManager.setTimeout(t,e)})}function replaceData(e,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?replaceEqualDeep(e,t):t}function addToEnd(e,t,i=0){const s=[...e,t];return i&&s.length>i?s.slice(1):s}function addToStart(e,t,i=0){const s=[t,...e];return i&&s.length>i?s.slice(0,-1):s}var skipToken=Symbol();function ensureQueryFn(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function shouldThrowError(e,t){return typeof e=="function"?e(...t):!!e}var FocusManager=(ec=class extends Subscribable{constructor(){super();Ye(this,vr);Ye(this,Fr);Ye(this,fi);Le(this,fi,t=>{if(!isServer&&window.addEventListener){const i=()=>t();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){te(this,Fr)||this.setEventListener(te(this,fi))}onUnsubscribe(){var t;this.hasListeners()||((t=te(this,Fr))==null||t.call(this),Le(this,Fr,void 0))}setEventListener(t){var i;Le(this,fi,t),(i=te(this,Fr))==null||i.call(this),Le(this,Fr,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){te(this,vr)!==t&&(Le(this,vr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(i=>{i(t)})}isFocused(){var t;return typeof te(this,vr)=="boolean"?te(this,vr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},vr=new WeakMap,Fr=new WeakMap,fi=new WeakMap,ec),focusManager=new FocusManager;function pendingThenable(){let e,t;const i=new Promise((o,a)=>{e=o,t=a});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),e(o)},i.reject=o=>{s({status:"rejected",reason:o}),t(o)},i}var defaultScheduler=systemSetTimeoutZero;function createNotifyManager(){let e=[],t=0,i=c=>{c()},s=c=>{c()},o=defaultScheduler;const a=c=>{t?e.push(c):o(()=>{i(c)})},l=()=>{const c=e;e=[],c.length&&o(()=>{s(()=>{c.forEach(u=>{i(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||l()}return u},batchCalls:c=>(...u)=>{a(()=>{c(...u)})},schedule:a,setNotifyFunction:c=>{i=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{o=c}}}var notifyManager=createNotifyManager(),OnlineManager=(tc=class extends Subscribable{constructor(){super();Ye(this,di,!0);Ye(this,mn);Ye(this,pi);Le(this,pi,t=>{if(!isServer&&window.addEventListener){const i=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}})}onSubscribe(){te(this,mn)||this.setEventListener(te(this,pi))}onUnsubscribe(){var t;this.hasListeners()||((t=te(this,mn))==null||t.call(this),Le(this,mn,void 0))}setEventListener(t){var i;Le(this,pi,t),(i=te(this,mn))==null||i.call(this),Le(this,mn,t(this.setOnline.bind(this)))}setOnline(t){te(this,di)!==t&&(Le(this,di,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return te(this,di)}},di=new WeakMap,mn=new WeakMap,pi=new WeakMap,tc),onlineManager=new OnlineManager;function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return(e??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function createRetryer(e){let t=!1,i=0,s;const o=pendingThenable(),a=()=>o.status!=="pending",l=S=>{var w;if(!a()){const E=new CancelledError(S);g(E),(w=e.onCancel)==null||w.call(e,E)}},c=()=>{t=!0},u=()=>{t=!1},d=()=>focusManager.isFocused()&&(e.networkMode==="always"||onlineManager.isOnline())&&e.canRun(),p=()=>canFetch(e.networkMode)&&e.canRun(),m=S=>{a()||(s==null||s(),o.resolve(S))},g=S=>{a()||(s==null||s(),o.reject(S))},b=()=>new Promise(S=>{var w;s=E=>{(a()||d())&&S(E)},(w=e.onPause)==null||w.call(e)}).then(()=>{var S;s=void 0,a()||(S=e.onContinue)==null||S.call(e)}),y=()=>{if(a())return;let S;const w=i===0?e.initialPromise:void 0;try{S=w??e.fn()}catch(E){S=Promise.reject(E)}Promise.resolve(S).then(m).catch(E=>{var k;if(a())return;const A=e.retry??(isServer?0:3),T=e.retryDelay??defaultRetryDelay,P=typeof T=="function"?T(i,E):T,O=A===!0||typeof A=="number"&&i<A||typeof A=="function"&&A(i,E);if(t||!O){g(E);return}i++,(k=e.onFail)==null||k.call(e,i,E),sleep(P).then(()=>d()?void 0:b()).then(()=>{t?g(E):y()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(s==null||s(),o),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?y():b().then(y),o)}}var Removable=(rc=class{constructor(){Ye(this,Fn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Le(this,Fn,timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(isServer?1/0:5*60*1e3))}clearGcTimeout(){te(this,Fn)&&(timeoutManager.clearTimeout(te(this,Fn)),Le(this,Fn,void 0))}},Fn=new WeakMap,rc),define_process_env_default$4={NODE_ENV:"production",version:"1.92.1",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"},Query=(nc=class extends Removable{constructor(t){super();Ye(this,Tr);Ye(this,jn);Ye(this,mi);Ye(this,yr);Ye(this,Bn);Ye(this,Bt);Ye(this,rs);Ye(this,Vn);Le(this,Vn,!1),Le(this,rs,t.defaultOptions),this.setOptions(t.options),this.observers=[],Le(this,Bn,t.client),Le(this,yr,te(this,Bn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Le(this,jn,getDefaultState$1(this.options)),this.state=t.state??te(this,jn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=te(this,Bt))==null?void 0:t.promise}setOptions(t){if(this.options={...te(this,rs),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=getDefaultState$1(this.options);i.data!==void 0&&(this.setData(i.data,{updatedAt:i.dataUpdatedAt,manual:!0}),Le(this,jn,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&te(this,yr).remove(this)}setData(t,i){const s=replaceData(this.state.data,t,this.options);return st(this,Tr,pn).call(this,{data:s,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),s}setState(t,i){st(this,Tr,pn).call(this,{type:"setState",state:t,setStateOptions:i})}cancel(t){var s,o;const i=(s=te(this,Bt))==null?void 0:s.promise;return(o=te(this,Bt))==null||o.cancel(t),i?i.then(noop$1).catch(noop$1):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(te(this,jn))}isActive(){return this.observers.some(t=>resolveEnabled(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>resolveStaleTime(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!timeUntilStale(this.state.dataUpdatedAt,t)}onFocus(){var i;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(i=te(this,Bt))==null||i.continue()}onOnline(){var i;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(i=te(this,Bt))==null||i.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),te(this,yr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(i=>i!==t),this.observers.length||(te(this,Bt)&&(te(this,Vn)?te(this,Bt).cancel({revert:!0}):te(this,Bt).cancelRetry()),this.scheduleGc()),te(this,yr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||st(this,Tr,pn).call(this,{type:"invalidate"})}async fetch(t,i){var u,d,p,m,g,b,y,S,w,E,A,T;if(this.state.fetchStatus!=="idle"&&((u=te(this,Bt))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(te(this,Bt))return te(this,Bt).continueRetry(),te(this,Bt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const P=this.observers.find(O=>O.options.queryFn);P&&this.setOptions(P.options)}const s=new AbortController,o=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(Le(this,Vn,!0),s.signal)})},a=()=>{const P=ensureQueryFn(this.options,i),k=(()=>{const F={client:te(this,Bn),queryKey:this.queryKey,meta:this.meta};return o(F),F})();return Le(this,Vn,!1),this.options.persister?this.options.persister(P,k,this):P(k)},c=(()=>{const P={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:te(this,Bn),state:this.state,fetchFn:a};return o(P),P})();(d=this.options.behavior)==null||d.onFetch(c,this),Le(this,mi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=c.fetchOptions)==null?void 0:p.meta))&&st(this,Tr,pn).call(this,{type:"fetch",meta:(m=c.fetchOptions)==null?void 0:m.meta}),Le(this,Bt,createRetryer({initialPromise:i==null?void 0:i.initialPromise,fn:c.fetchFn,onCancel:P=>{P instanceof CancelledError&&P.revert&&this.setState({...te(this,mi),fetchStatus:"idle"}),s.abort()},onFail:(P,O)=>{st(this,Tr,pn).call(this,{type:"failed",failureCount:P,error:O})},onPause:()=>{st(this,Tr,pn).call(this,{type:"pause"})},onContinue:()=>{st(this,Tr,pn).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const P=await te(this,Bt).start();if(P===void 0)throw define_process_env_default$4.NODE_ENV,new Error(`${this.queryHash} data is undefined`);return this.setData(P),(b=(g=te(this,yr).config).onSuccess)==null||b.call(g,P,this),(S=(y=te(this,yr).config).onSettled)==null||S.call(y,P,this.state.error,this),P}catch(P){if(P instanceof CancelledError){if(P.silent)return te(this,Bt).promise;if(P.revert){if(this.state.data===void 0)throw P;return this.state.data}}throw st(this,Tr,pn).call(this,{type:"error",error:P}),(E=(w=te(this,yr).config).onError)==null||E.call(w,P,this),(T=(A=te(this,yr).config).onSettled)==null||T.call(A,this.state.data,P,this),P}finally{this.scheduleGc()}}},jn=new WeakMap,mi=new WeakMap,yr=new WeakMap,Bn=new WeakMap,Bt=new WeakMap,rs=new WeakMap,Vn=new WeakMap,Tr=new WeakSet,pn=function(t){const i=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...fetchState(s.data,this.options),fetchMeta:t.meta??null};case"success":const o={...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Le(this,mi,t.manual?o:void 0),o;case"error":const a=t.error;return{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=i(this.state),notifyManager.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),te(this,yr).notify({query:this,type:"updated",action:t})})},nc);function fetchState(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function getDefaultState$1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,i=t!==void 0,s=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var QueryObserver=(ic=class extends Subscribable{constructor(t,i){super();Ye(this,mt);Ye(this,sr);Ye(this,lt);Ye(this,ns);Ye(this,er);Ye(this,Un);Ye(this,gi);Ye(this,Xr);Ye(this,gn);Ye(this,is);Ye(this,vi);Ye(this,yi);Ye(this,zn);Ye(this,Gn);Ye(this,vn);Ye(this,_i,new Set);this.options=i,Le(this,sr,t),Le(this,gn,null),Le(this,Xr,pendingThenable()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(te(this,lt).addObserver(this),shouldFetchOnMount(te(this,lt),this.options)?st(this,mt,Gs).call(this):this.updateResult(),st(this,mt,Yl).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(te(this,lt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(te(this,lt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,st(this,mt,Xl).call(this),st(this,mt,Ql).call(this),te(this,lt).removeObserver(this)}setOptions(t){const i=this.options,s=te(this,lt);if(this.options=te(this,sr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,te(this,lt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");st(this,mt,Jl).call(this),te(this,lt).setOptions(this.options),i._defaulted&&!shallowEqualObjects(this.options,i)&&te(this,sr).getQueryCache().notify({type:"observerOptionsUpdated",query:te(this,lt),observer:this});const o=this.hasListeners();o&&shouldFetchOptionally(te(this,lt),s,this.options,i)&&st(this,mt,Gs).call(this),this.updateResult(),o&&(te(this,lt)!==s||resolveEnabled(this.options.enabled,te(this,lt))!==resolveEnabled(i.enabled,te(this,lt))||resolveStaleTime(this.options.staleTime,te(this,lt))!==resolveStaleTime(i.staleTime,te(this,lt)))&&st(this,mt,Hl).call(this);const a=st(this,mt,ql).call(this);o&&(te(this,lt)!==s||resolveEnabled(this.options.enabled,te(this,lt))!==resolveEnabled(i.enabled,te(this,lt))||a!==te(this,vn))&&st(this,mt,Kl).call(this,a)}getOptimisticResult(t){const i=te(this,sr).getQueryCache().build(te(this,sr),t),s=this.createResult(i,t);return shouldAssignObserverCurrentProperties(this,s)&&(Le(this,er,s),Le(this,gi,this.options),Le(this,Un,te(this,lt).state)),s}getCurrentResult(){return te(this,er)}trackResult(t,i){return new Proxy(t,{get:(s,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&!this.options.experimental_prefetchInRender&&te(this,Xr).status==="pending"&&te(this,Xr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,o))})}trackProp(t){te(this,_i).add(t)}getCurrentQuery(){return te(this,lt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const i=te(this,sr).defaultQueryOptions(t),s=te(this,sr).getQueryCache().build(te(this,sr),i);return s.fetch().then(()=>this.createResult(s,i))}fetch(t){return st(this,mt,Gs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),te(this,er)))}createResult(t,i){var U;const s=te(this,lt),o=this.options,a=te(this,er),l=te(this,Un),c=te(this,gi),d=t!==s?t.state:te(this,ns),{state:p}=t;let m={...p},g=!1,b;if(i._optimisticResults){const H=this.hasListeners(),Y=!H&&shouldFetchOnMount(t,i),Z=H&&shouldFetchOptionally(t,s,i,o);(Y||Z)&&(m={...m,...fetchState(p.data,t.options)}),i._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:y,errorUpdatedAt:S,status:w}=m;b=m.data;let E=!1;if(i.placeholderData!==void 0&&b===void 0&&w==="pending"){let H;a!=null&&a.isPlaceholderData&&i.placeholderData===(c==null?void 0:c.placeholderData)?(H=a.data,E=!0):H=typeof i.placeholderData=="function"?i.placeholderData((U=te(this,yi))==null?void 0:U.state.data,te(this,yi)):i.placeholderData,H!==void 0&&(w="success",b=replaceData(a==null?void 0:a.data,H,i),g=!0)}if(i.select&&b!==void 0&&!E)if(a&&b===(l==null?void 0:l.data)&&i.select===te(this,is))b=te(this,vi);else try{Le(this,is,i.select),b=i.select(b),b=replaceData(a==null?void 0:a.data,b,i),Le(this,vi,b),Le(this,gn,null)}catch(H){Le(this,gn,H)}te(this,gn)&&(y=te(this,gn),b=te(this,vi),S=Date.now(),w="error");const A=m.fetchStatus==="fetching",T=w==="pending",P=w==="error",O=T&&A,k=b!==void 0,N={status:w,fetchStatus:m.fetchStatus,isPending:T,isSuccess:w==="success",isError:P,isInitialLoading:O,isLoading:O,data:b,dataUpdatedAt:m.dataUpdatedAt,error:y,errorUpdatedAt:S,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:A,isRefetching:A&&!T,isLoadingError:P&&!k,isPaused:m.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:P&&k,isStale:isStale(t,i),refetch:this.refetch,promise:te(this,Xr),isEnabled:resolveEnabled(i.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const H=ie=>{N.status==="error"?ie.reject(N.error):N.data!==void 0&&ie.resolve(N.data)},Y=()=>{const ie=Le(this,Xr,N.promise=pendingThenable());H(ie)},Z=te(this,Xr);switch(Z.status){case"pending":t.queryHash===s.queryHash&&H(Z);break;case"fulfilled":(N.status==="error"||N.data!==Z.value)&&Y();break;case"rejected":(N.status!=="error"||N.error!==Z.reason)&&Y();break}}return N}updateResult(){const t=te(this,er),i=this.createResult(te(this,lt),this.options);if(Le(this,Un,te(this,lt).state),Le(this,gi,this.options),te(this,Un).data!==void 0&&Le(this,yi,te(this,lt)),shallowEqualObjects(i,t))return;Le(this,er,i);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!te(this,_i).size)return!0;const l=new Set(a??te(this,_i));return this.options.throwOnError&&l.add("error"),Object.keys(te(this,er)).some(c=>{const u=c;return te(this,er)[u]!==t[u]&&l.has(u)})};st(this,mt,If).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&st(this,mt,Yl).call(this)}},sr=new WeakMap,lt=new WeakMap,ns=new WeakMap,er=new WeakMap,Un=new WeakMap,gi=new WeakMap,Xr=new WeakMap,gn=new WeakMap,is=new WeakMap,vi=new WeakMap,yi=new WeakMap,zn=new WeakMap,Gn=new WeakMap,vn=new WeakMap,_i=new WeakMap,mt=new WeakSet,Gs=function(t){st(this,mt,Jl).call(this);let i=te(this,lt).fetch(this.options,t);return t!=null&&t.throwOnError||(i=i.catch(noop$1)),i},Hl=function(){st(this,mt,Xl).call(this);const t=resolveStaleTime(this.options.staleTime,te(this,lt));if(isServer||te(this,er).isStale||!isValidTimeout(t))return;const s=timeUntilStale(te(this,er).dataUpdatedAt,t)+1;Le(this,zn,timeoutManager.setTimeout(()=>{te(this,er).isStale||this.updateResult()},s))},ql=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(te(this,lt)):this.options.refetchInterval)??!1},Kl=function(t){st(this,mt,Ql).call(this),Le(this,vn,t),!(isServer||resolveEnabled(this.options.enabled,te(this,lt))===!1||!isValidTimeout(te(this,vn))||te(this,vn)===0)&&Le(this,Gn,timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&st(this,mt,Gs).call(this)},te(this,vn)))},Yl=function(){st(this,mt,Hl).call(this),st(this,mt,Kl).call(this,st(this,mt,ql).call(this))},Xl=function(){te(this,zn)&&(timeoutManager.clearTimeout(te(this,zn)),Le(this,zn,void 0))},Ql=function(){te(this,Gn)&&(timeoutManager.clearInterval(te(this,Gn)),Le(this,Gn,void 0))},Jl=function(){const t=te(this,sr).getQueryCache().build(te(this,sr),this.options);if(t===te(this,lt))return;const i=te(this,lt);Le(this,lt,t),Le(this,ns,t.state),this.hasListeners()&&(i==null||i.removeObserver(this),t.addObserver(this))},If=function(t){notifyManager.batch(()=>{t.listeners&&this.listeners.forEach(i=>{i(te(this,er))}),te(this,sr).getQueryCache().notify({query:te(this,lt),type:"observerResultsUpdated"})})},ic);function shouldLoadOnMount(e,t){return resolveEnabled(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function shouldFetchOnMount(e,t){return shouldLoadOnMount(e,t)||e.state.data!==void 0&&shouldFetchOn(e,t,t.refetchOnMount)}function shouldFetchOn(e,t,i){if(resolveEnabled(t.enabled,e)!==!1&&resolveStaleTime(t.staleTime,e)!=="static"){const s=typeof i=="function"?i(e):i;return s==="always"||s!==!1&&isStale(e,t)}return!1}function shouldFetchOptionally(e,t,i,s){return(e!==t||resolveEnabled(s.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&isStale(e,i)}function isStale(e,t){return resolveEnabled(t.enabled,e)!==!1&&e.isStaleByTime(resolveStaleTime(t.staleTime,e))}function shouldAssignObserverCurrentProperties(e,t){return!shallowEqualObjects(e.getCurrentResult(),t)}function infiniteQueryBehavior(e){return{onFetch:(t,i)=>{var p,m,g,b,y;const s=t.options,o=(g=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:g.direction,a=((b=t.state.data)==null?void 0:b.pages)||[],l=((y=t.state.data)==null?void 0:y.pageParams)||[];let c={pages:[],pageParams:[]},u=0;const d=async()=>{let S=!1;const w=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?S=!0:t.signal.addEventListener("abort",()=>{S=!0}),t.signal)})},E=ensureQueryFn(t.options,t.fetchOptions),A=async(T,P,O)=>{if(S)return Promise.reject();if(P==null&&T.pages.length)return Promise.resolve(T);const F=(()=>{const Y={client:t.client,queryKey:t.queryKey,pageParam:P,direction:O?"backward":"forward",meta:t.options.meta};return w(Y),Y})(),N=await E(F),{maxPages:U}=t.options,H=O?addToStart:addToEnd;return{pages:H(T.pages,N,U),pageParams:H(T.pageParams,P,U)}};if(o&&a.length){const T=o==="backward",P=T?getPreviousPageParam:getNextPageParam,O={pages:a,pageParams:l},k=P(s,O);c=await A(O,k,T)}else{const T=e??a.length;do{const P=u===0?l[0]??s.initialPageParam:getNextPageParam(s,c);if(u>0&&P==null)break;c=await A(c,P),u++}while(u<T)}return c};t.options.persister?t.fetchFn=()=>{var S,w;return(w=(S=t.options).persister)==null?void 0:w.call(S,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i)}:t.fetchFn=d}}}function getNextPageParam(e,{pages:t,pageParams:i}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,i[s],i):void 0}function getPreviousPageParam(e,{pages:t,pageParams:i}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,i[0],i):void 0}var Mutation=(sc=class extends Removable{constructor(t){super();Ye(this,Br);Ye(this,ss);Ye(this,jr);Ye(this,tr);Ye(this,Wn);Le(this,ss,t.client),this.mutationId=t.mutationId,Le(this,tr,t.mutationCache),Le(this,jr,[]),this.state=t.state||getDefaultState(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){te(this,jr).includes(t)||(te(this,jr).push(t),this.clearGcTimeout(),te(this,tr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Le(this,jr,te(this,jr).filter(i=>i!==t)),this.scheduleGc(),te(this,tr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){te(this,jr).length||(this.state.status==="pending"?this.scheduleGc():te(this,tr).remove(this))}continue(){var t;return((t=te(this,Wn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,c,u,d,p,m,g,b,y,S,w,E,A,T,P,O,k,F,N,U;const i=()=>{st(this,Br,$n).call(this,{type:"continue"})},s={client:te(this,ss),meta:this.options.meta,mutationKey:this.options.mutationKey};Le(this,Wn,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(H,Y)=>{st(this,Br,$n).call(this,{type:"failed",failureCount:H,error:Y})},onPause:()=>{st(this,Br,$n).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>te(this,tr).canRun(this)}));const o=this.state.status==="pending",a=!te(this,Wn).canStart();try{if(o)i();else{st(this,Br,$n).call(this,{type:"pending",variables:t,isPaused:a}),await((c=(l=te(this,tr).config).onMutate)==null?void 0:c.call(l,t,this,s));const Y=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,t,s));Y!==this.state.context&&st(this,Br,$n).call(this,{type:"pending",context:Y,variables:t,isPaused:a})}const H=await te(this,Wn).start();return await((m=(p=te(this,tr).config).onSuccess)==null?void 0:m.call(p,H,t,this.state.context,this,s)),await((b=(g=this.options).onSuccess)==null?void 0:b.call(g,H,t,this.state.context,s)),await((S=(y=te(this,tr).config).onSettled)==null?void 0:S.call(y,H,null,this.state.variables,this.state.context,this,s)),await((E=(w=this.options).onSettled)==null?void 0:E.call(w,H,null,t,this.state.context,s)),st(this,Br,$n).call(this,{type:"success",data:H}),H}catch(H){try{throw await((T=(A=te(this,tr).config).onError)==null?void 0:T.call(A,H,t,this.state.context,this,s)),await((O=(P=this.options).onError)==null?void 0:O.call(P,H,t,this.state.context,s)),await((F=(k=te(this,tr).config).onSettled)==null?void 0:F.call(k,void 0,H,this.state.variables,this.state.context,this,s)),await((U=(N=this.options).onSettled)==null?void 0:U.call(N,void 0,H,t,this.state.context,s)),H}finally{st(this,Br,$n).call(this,{type:"error",error:H})}}finally{te(this,tr).runNext(this)}}},ss=new WeakMap,jr=new WeakMap,tr=new WeakMap,Wn=new WeakMap,Br=new WeakSet,$n=function(t){const i=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=i(this.state),notifyManager.batch(()=>{te(this,jr).forEach(s=>{s.onMutationUpdate(t)}),te(this,tr).notify({mutation:this,type:"updated",action:t})})},sc);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var MutationCache=(oc=class extends Subscribable{constructor(t={}){super();Ye(this,Qr);Ye(this,Ar);Ye(this,os);this.config=t,Le(this,Qr,new Set),Le(this,Ar,new Map),Le(this,os,0)}build(t,i,s){const o=new Mutation({client:t,mutationCache:this,mutationId:++oa(this,os)._,options:t.defaultMutationOptions(i),state:s});return this.add(o),o}add(t){te(this,Qr).add(t);const i=scopeFor(t);if(typeof i=="string"){const s=te(this,Ar).get(i);s?s.push(t):te(this,Ar).set(i,[t])}this.notify({type:"added",mutation:t})}remove(t){if(te(this,Qr).delete(t)){const i=scopeFor(t);if(typeof i=="string"){const s=te(this,Ar).get(i);if(s)if(s.length>1){const o=s.indexOf(t);o!==-1&&s.splice(o,1)}else s[0]===t&&te(this,Ar).delete(i)}}this.notify({type:"removed",mutation:t})}canRun(t){const i=scopeFor(t);if(typeof i=="string"){const s=te(this,Ar).get(i),o=s==null?void 0:s.find(a=>a.state.status==="pending");return!o||o===t}else return!0}runNext(t){var s;const i=scopeFor(t);if(typeof i=="string"){const o=(s=te(this,Ar).get(i))==null?void 0:s.find(a=>a!==t&&a.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){notifyManager.batch(()=>{te(this,Qr).forEach(t=>{this.notify({type:"removed",mutation:t})}),te(this,Qr).clear(),te(this,Ar).clear()})}getAll(){return Array.from(te(this,Qr))}find(t){const i={exact:!0,...t};return this.getAll().find(s=>matchMutation(i,s))}findAll(t={}){return this.getAll().filter(i=>matchMutation(t,i))}notify(t){notifyManager.batch(()=>{this.listeners.forEach(i=>{i(t)})})}resumePausedMutations(){const t=this.getAll().filter(i=>i.state.isPaused);return notifyManager.batch(()=>Promise.all(t.map(i=>i.continue().catch(noop$1))))}},Qr=new WeakMap,Ar=new WeakMap,os=new WeakMap,oc);function scopeFor(e){var t;return(t=e.options.scope)==null?void 0:t.id}var MutationObserver$1=(ac=class extends Subscribable{constructor(i,s){super();Ye(this,tn);Ye(this,Jr);Ye(this,yn);Ye(this,or);Ye(this,Zr);Le(this,Jr,i),this.setOptions(s),this.bindMethods(),st(this,tn,aa).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var o;const s=this.options;this.options=te(this,Jr).defaultMutationOptions(i),shallowEqualObjects(this.options,s)||te(this,Jr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:te(this,or),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&hashKey(s.mutationKey)!==hashKey(this.options.mutationKey)?this.reset():((o=te(this,or))==null?void 0:o.state.status)==="pending"&&te(this,or).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=te(this,or))==null||i.removeObserver(this)}onMutationUpdate(i){st(this,tn,aa).call(this),st(this,tn,Zl).call(this,i)}getCurrentResult(){return te(this,yn)}reset(){var i;(i=te(this,or))==null||i.removeObserver(this),Le(this,or,void 0),st(this,tn,aa).call(this),st(this,tn,Zl).call(this)}mutate(i,s){var o;return Le(this,Zr,s),(o=te(this,or))==null||o.removeObserver(this),Le(this,or,te(this,Jr).getMutationCache().build(te(this,Jr),this.options)),te(this,or).addObserver(this),te(this,or).execute(i)}},Jr=new WeakMap,yn=new WeakMap,or=new WeakMap,Zr=new WeakMap,tn=new WeakSet,aa=function(){var s;const i=((s=te(this,or))==null?void 0:s.state)??getDefaultState();Le(this,yn,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Zl=function(i){notifyManager.batch(()=>{var s,o,a,l,c,u,d,p;if(te(this,Zr)&&this.hasListeners()){const m=te(this,yn).variables,g=te(this,yn).context,b={client:te(this,Jr),meta:this.options.meta,mutationKey:this.options.mutationKey};(i==null?void 0:i.type)==="success"?((o=(s=te(this,Zr)).onSuccess)==null||o.call(s,i.data,m,g,b),(l=(a=te(this,Zr)).onSettled)==null||l.call(a,i.data,null,m,g,b)):(i==null?void 0:i.type)==="error"&&((u=(c=te(this,Zr)).onError)==null||u.call(c,i.error,m,g,b),(p=(d=te(this,Zr)).onSettled)==null||p.call(d,void 0,i.error,m,g,b))}this.listeners.forEach(m=>{m(te(this,yn))})})},ac),QueryCache=(lc=class extends Subscribable{constructor(t={}){super();Ye(this,Vr);this.config=t,Le(this,Vr,new Map)}build(t,i,s){const o=i.queryKey,a=i.queryHash??hashQueryKeyByOptions(o,i);let l=this.get(a);return l||(l=new Query({client:t,queryKey:o,queryHash:a,options:t.defaultQueryOptions(i),state:s,defaultOptions:t.getQueryDefaults(o)}),this.add(l)),l}add(t){te(this,Vr).has(t.queryHash)||(te(this,Vr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const i=te(this,Vr).get(t.queryHash);i&&(t.destroy(),i===t&&te(this,Vr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return te(this,Vr).get(t)}getAll(){return[...te(this,Vr).values()]}find(t){const i={exact:!0,...t};return this.getAll().find(s=>matchQuery(i,s))}findAll(t={}){const i=this.getAll();return Object.keys(t).length>0?i.filter(s=>matchQuery(t,s)):i}notify(t){notifyManager.batch(()=>{this.listeners.forEach(i=>{i(t)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Vr=new WeakMap,lc),QueryClient=(cc=class{constructor(e={}){Ye(this,kt);Ye(this,_n);Ye(this,bn);Ye(this,bi);Ye(this,xi);Ye(this,xn);Ye(this,Si);Ye(this,Ei);Le(this,kt,e.queryCache||new QueryCache),Le(this,_n,e.mutationCache||new MutationCache),Le(this,bn,e.defaultOptions||{}),Le(this,bi,new Map),Le(this,xi,new Map),Le(this,xn,0)}mount(){oa(this,xn)._++,te(this,xn)===1&&(Le(this,Si,focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),te(this,kt).onFocus())})),Le(this,Ei,onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),te(this,kt).onOnline())})))}unmount(){var e,t;oa(this,xn)._--,te(this,xn)===0&&((e=te(this,Si))==null||e.call(this),Le(this,Si,void 0),(t=te(this,Ei))==null||t.call(this),Le(this,Ei,void 0))}isFetching(e){return te(this,kt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return te(this,_n).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const t=this.defaultQueryOptions({queryKey:e});return(i=te(this,kt).get(t.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),i=te(this,kt).build(this,t),s=i.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(resolveStaleTime(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return te(this,kt).findAll(e).map(({queryKey:t,state:i})=>{const s=i.data;return[t,s]})}setQueryData(e,t,i){const s=this.defaultQueryOptions({queryKey:e}),o=te(this,kt).get(s.queryHash),a=o==null?void 0:o.state.data,l=functionalUpdate(t,a);if(l!==void 0)return te(this,kt).build(this,s).setData(l,{...i,manual:!0})}setQueriesData(e,t,i){return notifyManager.batch(()=>te(this,kt).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,i)]))}getQueryState(e){var i;const t=this.defaultQueryOptions({queryKey:e});return(i=te(this,kt).get(t.queryHash))==null?void 0:i.state}removeQueries(e){const t=te(this,kt);notifyManager.batch(()=>{t.findAll(e).forEach(i=>{t.remove(i)})})}resetQueries(e,t){const i=te(this,kt);return notifyManager.batch(()=>(i.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const i={revert:!0,...t},s=notifyManager.batch(()=>te(this,kt).findAll(e).map(o=>o.cancel(i)));return Promise.all(s).then(noop$1).catch(noop$1)}invalidateQueries(e,t={}){return notifyManager.batch(()=>(te(this,kt).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const i={...t,cancelRefetch:t.cancelRefetch??!0},s=notifyManager.batch(()=>te(this,kt).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,i);return i.throwOnError||(a=a.catch(noop$1)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(s).then(noop$1)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const i=te(this,kt).build(this,t);return i.isStaleByTime(resolveStaleTime(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(noop$1).catch(noop$1)}fetchInfiniteQuery(e){return e.behavior=infiniteQueryBehavior(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(noop$1).catch(noop$1)}ensureInfiniteQueryData(e){return e.behavior=infiniteQueryBehavior(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return onlineManager.isOnline()?te(this,_n).resumePausedMutations():Promise.resolve()}getQueryCache(){return te(this,kt)}getMutationCache(){return te(this,_n)}getDefaultOptions(){return te(this,bn)}setDefaultOptions(e){Le(this,bn,e)}setQueryDefaults(e,t){te(this,bi).set(hashKey(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...te(this,bi).values()],i={};return t.forEach(s=>{partialMatchKey(e,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(e,t){te(this,xi).set(hashKey(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...te(this,xi).values()],i={};return t.forEach(s=>{partialMatchKey(e,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const t={...te(this,bn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=hashQueryKeyByOptions(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...te(this,bn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){te(this,kt).clear(),te(this,_n).clear()}},kt=new WeakMap,_n=new WeakMap,bn=new WeakMap,bi=new WeakMap,xi=new WeakMap,xn=new WeakMap,Si=new WeakMap,Ei=new WeakMap,cc),QueryClientContext=reactExports.createContext(void 0),useQueryClient=e=>{const t=reactExports.useContext(QueryClientContext);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},QueryClientProvider=({client:e,children:t})=>(reactExports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:e,children:t})),IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext),ensurePreventErrorBoundaryRetry=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},useClearResetErrorBoundary=e=>{reactExports.useEffect(()=>{e.clearReset()},[e])},getHasError=({result:e,errorResetBoundary:t,throwOnError:i,query:s,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||shouldThrowError(i,[e.error,s])),defaultThrowOnError=(e,t)=>t.state.data===void 0,ensureSuspenseTimers=e=>{if(e.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...o)=>i(s(...o)):i(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},willFetch=(e,t)=>e.isLoading&&e.isFetching&&!t,shouldSuspend=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,fetchOptimistic=(e,t,i)=>t.fetchOptimistic(e).catch(()=>{i.clearReset()});function useBaseQuery(e,t,i){var m,g,b,y,S;const s=useIsRestoring(),o=useQueryErrorResetBoundary(),a=useQueryClient(),l=a.defaultQueryOptions(e);(g=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||g.call(m,l),l._optimisticResults=s?"isRestoring":"optimistic",ensureSuspenseTimers(l),ensurePreventErrorBoundaryRetry(l,o),useClearResetErrorBoundary(o);const c=!a.getQueryCache().get(l.queryHash),[u]=reactExports.useState(()=>new t(a,l)),d=u.getOptimisticResult(l),p=!s&&e.subscribed!==!1;if(reactExports.useSyncExternalStore(reactExports.useCallback(w=>{const E=p?u.subscribe(notifyManager.batchCalls(w)):noop$1;return u.updateResult(),E},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),reactExports.useEffect(()=>{u.setOptions(l)},[l,u]),shouldSuspend(l,d))throw fetchOptimistic(l,u,o);if(getHasError({result:d,errorResetBoundary:o,throwOnError:l.throwOnError,query:a.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;if((y=(b=a.getDefaultOptions().queries)==null?void 0:b._experimental_afterQuery)==null||y.call(b,l,d),l.experimental_prefetchInRender&&!isServer&&willFetch(d,s)){const w=c?fetchOptimistic(l,u,o):(S=a.getQueryCache().get(l.queryHash))==null?void 0:S.promise;w==null||w.catch(noop$1).finally(()=>{u.updateResult()})}return l.notifyOnChangeProps?d:u.trackResult(d)}function useQuery(e,t){return useBaseQuery(e,QueryObserver)}function useSuspenseQuery(e,t){return useBaseQuery({...e,enabled:!0,suspense:!0,throwOnError:defaultThrowOnError,placeholderData:void 0},QueryObserver)}function useMutation(e,t){const i=useQueryClient(),[s]=reactExports.useState(()=>new MutationObserver$1(i,e));reactExports.useEffect(()=>{s.setOptions(e)},[s,e]);const o=reactExports.useSyncExternalStore(reactExports.useCallback(l=>s.subscribe(notifyManager.batchCalls(l)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=reactExports.useCallback((l,c)=>{s.mutate(l,c).catch(noop$1)},[s]);if(o.error&&shouldThrowError(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}const PROFILE_TAG="profile";function useProfile(e){return useSuspenseQuery({queryKey:[PROFILE_TAG],queryFn:async()=>{const t=await window.CryptoSteamSDK.getProfile();return setUser({id:String(t.id)}),t},select:t=>({...t,inventory:t.inventory||[],balance_usdt:dividePriceResponse(t.balance_usdt),balances:{...t.balances,usdt:dividePriceResponse(t.balance_usdt)}}),...e})}const LevelInfoModal=({children:e})=>{const{t}=useTranslation(),[i,s]=reactExports.useState(!1),{data:{level_up_exp:o,experience:a,level:l,current_level_exp:c}}=useProfile(),[u]=useAnimateNumber(a);return jsxRuntimeExports.jsx(Drawer,{trigger:e,open:i,onOpenChange:s,children:jsxRuntimeExports.jsxs(DrawerContent,{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"w-16 h-18 flex items-center justify-center",children:jsxRuntimeExports.jsx(XpProgress,{experience:a-c,xpNeeded:o-c,level:l,size:64,className:"text-[var(--tgui--button_color)]"})}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntimeExports.jsx(Title$1,{level:"2",weight:"1",children:t("levelInfoModal.title")}),jsxRuntimeExports.jsxs(Caption,{level:"1",weight:"2",className:"text-center",children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--tgui--text_color)"},children:u.toLocaleString()}),jsxRuntimeExports.jsxs("span",{style:{color:"var(--tgui--subtitle_text_color)"},children:[" / ",o.toLocaleString()," XP"]})]})]})]}),jsxRuntimeExports.jsx("div",{className:"-mt-1.5 text-center",children:jsxRuntimeExports.jsx(Subheadline,{level:"2",weight:"3",children:t("levelInfoModal.description")})}),jsxRuntimeExports.jsx(Button,{size:"s",stretched:!0,onClick:()=>s(!1),mode:"filled",style:{height:42},children:t("levelInfoModal.action")})]})})};function AnimatedBalance({value:e,style:t,className:i,colorText:s="",noRounding:o}){const[a,l]=useAnimateNumber(0,!1,o),[c,u]=reactExports.useState(s),d=reactExports.useRef(0),p=reactExports.useRef();reactExports.useEffect(()=>{const g=e,b=d.current;return p.current&&clearTimeout(p.current),b!==0&&(g>b?u("#22C55E"):g<b&&u("#FF7700")),l(g),p.current=setTimeout(()=>{u(s)},300),d.current=g,()=>{p.current&&clearTimeout(p.current)}},[e,l,s]);const m=o?Math.trunc((a??0)*100)/100:Math.round(a??0);return jsxRuntimeExports.jsx(Text,{weight:"1",className:cn$1("text-rounded",i),style:{color:c||"inherit",transition:"color 0.3s ease",...t},children:formatter.format(m)})}const Icons={thumbsDownOutlined:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m15.5 15.16-.61.53a.45.45 0 0 0-.15.24l-.92 4.36a3.1 3.1 0 0 1-4.37 2.24 3.24 3.24 0 0 1-1.8-2.93v-2.18c-1.82-.01-3.42-.47-4.57-1.6-1.17-1.14-1.7-2.8-1.7-4.88V9.77c0-2.07.53-3.74 1.7-4.87 1.16-1.12 2.78-1.57 4.6-1.57h7.87c.41-.53 1-.91 1.68-1.04.24-.04.5-.04.8-.04h.14A2.79 2.79 0 0 1 21.2 4.6c.04.24.04.52.04.83v7.72c0 .32 0 .6-.04.84a2.79 2.79 0 0 1-2.22 2.3c-.24.04-.5.04-.8.04h-.14c-.3 0-.57 0-.8-.04a2.73 2.73 0 0 1-1.75-1.13Zm-3.52 4.71a1.23 1.23 0 0 1-1.73.89 1.29 1.29 0 0 1-.72-1.16v-3.16a.96.96 0 0 0-.94-.97h-.9c-1.56 0-2.63-.4-3.32-1.06-.67-.66-1.12-1.74-1.12-3.47V9.77c0-1.73.45-2.8 1.12-3.44.68-.66 1.75-1.05 3.32-1.05h7.28V13.1a.96.96 0 0 0-.08.06l-1.21 1.04c-.4.34-.67.8-.78 1.33l-.92 4.35Zm6.67-5.5-.54.01-.55-.01a.87.87 0 0 1-.7-.72V4.93a.87.87 0 0 1 .7-.72l.55-.01.54.01c.36.07.64.36.7.72l.01.57v7.58l-.01.57a.87.87 0 0 1-.7.72Z",clipRule:"evenodd"})}),thumbsUpOutlined:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.2 8.97.6-.63c.05-.05.1-.12.11-.2l1.02-4.56a3.03 3.03 0 0 1 3.55-2.36 3.11 3.11 0 0 1 2.43 3.07v2.4h.1c1.94 0 3.55.43 4.66 1.57 1.1 1.15 1.52 2.81 1.52 4.82v1.09c0 2.08-.58 3.73-1.74 4.84A6.2 6.2 0 0 1 16 20.56h-7.9c-.33.48-.81.84-1.38 1-.33.08-.69.08-1.08.08h-.19c-.39 0-.75 0-1.08-.09a2.56 2.56 0 0 1-1.77-1.84 4.54 4.54 0 0 1-.09-1.11v-7.78c0-.4 0-.78.09-1.12.23-.9.9-1.6 1.77-1.84.33-.09.7-.09 1.08-.09h.19c.39 0 .75 0 1.08.1.61.16 1.13.56 1.46 1.1Zm3.57-4.95c.14-.62.73-1.02 1.34-.9.53.12.92.6.92 1.17v3.38c0 .54.42.97.94.97H16c1.73 0 2.73.39 3.33 1 .6.62.96 1.66.96 3.44v1.09c0 1.7-.46 2.77-1.13 3.41-.69.66-1.73 1.03-3.16 1.03L8.6 18.6v-7.28l1.54-1.6c.3-.31.52-.7.61-1.14l1.03-4.56Zm-5.06 6.9v7.58c0 .57-.01.66-.03.71a.64.64 0 0 1-.44.46c-.05.01-.14.02-.68.02-.55 0-.64 0-.69-.02a.64.64 0 0 1-.44-.46 4.12 4.12 0 0 1-.02-.71v-7.58c0-.57 0-.66.02-.71.05-.23.22-.4.44-.46.05-.02.14-.03.69-.03.54 0 .63.01.68.03.22.06.39.23.44.46.02.05.02.15.03.71Z",clipRule:"evenodd"})}),thumbsDownFilled:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"m21.32 13.75.01-.58V5l-.01-.59a2 2 0 0 0-1.74-1.73L19 2.67l-.59.01a2 2 0 0 0-1.73 1.73l-.01.59v8.17l.01.58a2 2 0 0 0 1.73 1.73c.13.02.28.02.59.02.3 0 .46 0 .58-.02a2 2 0 0 0 1.74-1.73ZM7.5 3.83c-3.79 0-6 1.79-6 5.89v1.26c0 4.1 2.21 5.69 6 5.69h1v3.65a2.18 2.18 0 0 0 4.26.63l1.73-5.52c.05-.17.08-.34.08-.5V5.7c0-.65 0-.98-.13-1.23-.11-.22-.3-.4-.51-.51-.25-.13-.58-.13-1.23-.13H7.5Z"})}),thumbsUpFilled:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"m2.68 10.24-.01.59v8.16l.01.59a2 2 0 0 0 1.73 1.73c.13.02.29.02.59.02s.46 0 .59-.02a2 2 0 0 0 1.73-1.73l.01-.59v-8.16l-.01-.59a2 2 0 0 0-1.73-1.73C5.46 8.5 5.3 8.5 5 8.5s-.46 0-.59.02a2 2 0 0 0-1.73 1.73ZM16.5 20.16c3.79 0 6-1.78 6-5.88v-1.26c0-4.1-2.21-5.7-6-5.7h-1V3.69a2.18 2.18 0 0 0-4.26-.63L9.51 8.57c-.05.16-.08.33-.08.5v9.22c0 .66 0 .98.13 1.23.11.22.29.4.51.51.25.13.58.13 1.23.13h5.2Z"})}),star:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M11.17 2.49a.87.87 0 0 1 1.66 0L13.9 5.7c.16.5.74.74 1.21.5l3.03-1.51a.87.87 0 0 1 1.17 1.17L17.8 8.9a.87.87 0 0 0 .5 1.21l3.21 1.07c.8.27.8 1.4 0 1.66L18.3 13.9a.87.87 0 0 0-.5 1.21l1.51 3.03a.87.87 0 0 1-1.17 1.17L15.1 17.8a.87.87 0 0 0-1.21.5l-1.07 3.21c-.27.8-1.4.8-1.66 0L10.1 18.3a.87.87 0 0 0-1.21-.5L5.86 19.3a.87.87 0 0 1-1.17-1.17L6.2 15.1a.87.87 0 0 0-.5-1.21l-3.21-1.07a.87.87 0 0 1 0-1.66L5.7 10.1c.5-.16.74-.74.5-1.21L4.7 5.86A.87.87 0 0 1 5.86 4.7L8.9 6.2a.87.87 0 0 0 1.21-.5l1.07-3.21Z"})}),smile:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 28 28",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.987 14c0-4.953 4.024-8.991 9.015-8.991S23.017 9.047 23.017 14s-4.024 8.991-9.015 8.991S4.987 18.953 4.987 14m9.015-11c-6.063 0-11 4.912-11 11s4.937 11 11 11 11-4.912 11-11-4.937-11-11-11m4.438 13.835a1.01 1.01 0 0 0-.604-1.283.99.99 0 0 0-1.27.616 1 1 0 0 1-.069.132 2.1 2.1 0 0 1-.372.466c-.348.331-.983.728-2.123.728s-1.775-.397-2.123-.727a2.1 2.1 0 0 1-.372-.467 1 1 0 0 1-.07-.132l-.005-.013-.003-.007a.99.99 0 0 0-1.261-.596c-.517.186-.787.76-.604 1.283l.89-.32-.89.32v.002l.002.003.002.006.005.013a2 2 0 0 0 .059.142c.038.084.092.194.166.321.148.254.38.582.722.908.704.67 1.82 1.272 3.482 1.272s2.778-.602 3.482-1.272a4.2 4.2 0 0 0 .722-.908 3.5 3.5 0 0 0 .225-.463l.005-.014.002-.005.001-.003v-.001l-.886-.32zM11.007 12.8c.688 0 1.247-.66 1.247-1.476s-.559-1.477-1.247-1.477c-.69 0-1.247.661-1.247 1.477 0 .815.558 1.476 1.247 1.476m5.986 0c.688 0 1.247-.66 1.247-1.476s-.559-1.477-1.247-1.477c-.69 0-1.247.661-1.247 1.477 0 .815.558 1.476 1.246 1.476Z",clipRule:"evenodd"})}),discountOutline:e=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:[jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.04 2.57a2.81 2.81 0 0 0-4.05 0l-.65.68a1.1 1.1 0 0 1-.9.33l-.94-.1a2.81 2.81 0 0 0-3.1 2.6L4.35 7c-.02.34-.2.65-.48.84l-.78.52a2.81 2.81 0 0 0-.7 3.98l.55.76c.2.28.26.63.17.95l-.26.9a2.81 2.81 0 0 0 2.02 3.5l.91.23c.33.08.6.31.74.62l.38.86a2.81 2.81 0 0 0 3.8 1.38l.84-.41c.3-.15.66-.15.97 0l.84.41c1.43.7 3.15.07 3.8-1.38l.38-.86c.14-.3.41-.54.74-.62l.9-.23a2.81 2.81 0 0 0 2.03-3.5l-.26-.9a1.1 1.1 0 0 1 .17-.95l.55-.76c.93-1.28.62-3.09-.7-3.98l-.78-.52a1.1 1.1 0 0 1-.48-.84l-.07-.93a2.81 2.81 0 0 0-3.1-2.6l-.93.1a1.1 1.1 0 0 1-.9-.33l-.65-.68Zm-2.81 1.2a1.1 1.1 0 0 1 1.57 0l.66.67c.6.62 1.45.93 2.31.84l.93-.1a1.1 1.1 0 0 1 1.21 1.02l.07.93c.06.87.51 1.65 1.23 2.14l.78.52c.51.35.64 1.05.27 1.56l-.55.76c-.5.7-.66 1.6-.43 2.42l.26.9a1.1 1.1 0 0 1-.79 1.37l-.9.23c-.85.2-1.54.8-1.9 1.58l-.38.86a1.1 1.1 0 0 1-1.48.54l-.84-.41a2.81 2.81 0 0 0-2.47 0l-.84.4a1.1 1.1 0 0 1-1.48-.53l-.38-.86a2.81 2.81 0 0 0-1.9-1.58l-.9-.23a1.1 1.1 0 0 1-.8-1.37l.27-.9c.24-.83.08-1.72-.43-2.42l-.55-.76a1.1 1.1 0 0 1 .27-1.56l.78-.52a2.81 2.81 0 0 0 1.23-2.14l.07-.93a1.1 1.1 0 0 1 1.2-1.02l.94.1c.86.1 1.71-.22 2.31-.84l.66-.68Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6c.36 0 .64.29.64.64v.68c1.66.17 2.8.98 3.17 1.86a.64.64 0 1 1-1.19.5c-.12-.3-.73-.9-1.98-1.07v2.82c1.22.19 2.02.53 2.52 1 .62.59.7 1.26.7 1.71 0 .84-.54 1.5-1.22 1.91-.55.34-1.24.55-2 .63v.68a.64.64 0 0 1-1.28 0v-.68c-1.66-.17-2.8-.98-3.17-1.86a.64.64 0 0 1 1.19-.5c.12.3.73.9 1.98 1.07v-2.82a4.62 4.62 0 0 1-2.52-1 2.21 2.21 0 0 1-.7-1.71c0-.84.54-1.5 1.23-1.91a4.78 4.78 0 0 1 1.99-.63v-.68c0-.35.29-.64.64-.64Zm-.64 2.61c-.54.07-1 .23-1.33.43-.45.28-.6.59-.6.82 0 .3.04.54.29.77.23.2.7.47 1.64.63V8.61Zm1.28 4.13v2.65c.54-.07 1-.23 1.33-.43.45-.28.6-.59.6-.82 0-.3-.04-.54-.29-.77-.22-.2-.7-.47-1.64-.63Z",clipRule:"evenodd"})]}),cup:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.6 1.71H9.4c-.57 0-1.05 0-1.45.04a3 3 0 0 0-1.2.33c-.57.3-1.06.85-1.32 1.44a3.57 3.57 0 0 0-.21 1.67c-.54-.1-1.1-.04-1.59.12A2.76 2.76 0 0 0 1.71 8c0 1.34.8 2.57 1.85 3.41a6.47 6.47 0 0 0 3.21 1.4c.15.35.3.67.47.98a6.82 6.82 0 0 0 2.39 2.7c-.03.47-.1.8-.18 1.02-.1.28-.21.44-.34.59l-.15.16-.1.1a2.28 2.28 0 0 0-.71 1.74v1.33c0 .47.38.86.85.86h6c.47 0 .86-.39.86-.86V20.1a2.28 2.28 0 0 0-.72-1.74l-.1-.1-.15-.16c-.13-.15-.25-.31-.34-.59a3.9 3.9 0 0 1-.18-1.02 6.82 6.82 0 0 0 2.39-2.7c.16-.3.32-.63.47-.98a6.47 6.47 0 0 0 3.21-1.4A4.57 4.57 0 0 0 22.3 8c0-1.42-.9-2.34-1.92-2.69a3.22 3.22 0 0 0-1.59-.12c.04-.62.01-1.16-.21-1.67a3.11 3.11 0 0 0-1.32-1.44 3 3 0 0 0-1.2-.33c-.4-.04-.88-.04-1.44-.04ZM12.7 17.1a4.72 4.72 0 0 1-1.4 0c-.05.37-.13.7-.22.97-.19.55-.45.9-.7 1.18l-.23.25-.06.06c-.08.08-.12.13-.15.18-.03.05-.08.13-.08.37v.47h4.28v-.47c0-.24-.05-.32-.08-.37a1.42 1.42 0 0 0-.17-.2l-.04-.04-.24-.25a3.3 3.3 0 0 1-.69-1.18c-.1-.28-.17-.6-.21-.97Zm6.66-7c-.43.35-.94.63-1.48.81.33-1.15.56-2.43.73-3.8.21-.2.7-.34 1.2-.16.44.15.76.48.76 1.06 0 .66-.41 1.43-1.21 2.09Zm-13.24.81a25.2 25.2 0 0 1-.73-3.8c-.21-.2-.7-.34-1.2-.16-.44.15-.76.48-.76 1.06 0 .66.41 1.43 1.21 2.09.43.35.94.63 1.48.81Zm1.45-7.32c.1-.05.24-.1.53-.12.31-.03.72-.03 1.33-.03h5.14c.61 0 1.02 0 1.33.03.3.02.43.07.53.12.23.13.46.38.57.62.1.25.1.54 0 1.72-.25 2.94-.85 5.39-1.75 7.06-.9 1.68-2 2.45-3.25 2.45s-2.35-.77-3.25-2.45c-.9-1.67-1.5-4.12-1.75-7.06-.1-1.18-.1-1.47 0-1.72.1-.24.34-.5.57-.62Z",clipRule:"evenodd"})}),games:e=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:[jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.82 3.86h.36c1.38 0 2.46 0 3.33.06.9.07 1.65.22 2.34.54a6.37 6.37 0 0 1 2.74 2.43c.4.64.62 1.35.78 2.22.17.85.29 1.91.44 3.27l.46 4.06c.05.45 0 .9-.13 1.34a3.4 3.4 0 0 1-6.17.7l-1.39-2.33a.22.22 0 0 0-.19-.11H9.61a.22.22 0 0 0-.19.1l-1.4 2.35a3.4 3.4 0 0 1-6.16-.7 3.3 3.3 0 0 1-.13-1.35l.46-4.06c.15-1.36.27-2.42.44-3.27.16-.87.39-1.58.78-2.22a6.37 6.37 0 0 1 2.74-2.43 6.6 6.6 0 0 1 2.34-.54c.87-.06 1.95-.06 3.33-.06Zm-3.2 1.7c-.79.07-1.3.18-1.73.38a4.7 4.7 0 0 0-2.02 1.8c-.25.4-.43.9-.57 1.67a45.2 45.2 0 0 0-.43 3.18l-.45 4.02a1.7 1.7 0 0 0 3.14 1.06l1.39-2.35c.34-.57.97-.93 1.66-.93h4.78c.7 0 1.32.36 1.66.93l1.4 2.35a1.69 1.69 0 0 0 3.13-1.06l-.45-4.02c-.16-1.4-.27-2.4-.43-3.18a4.83 4.83 0 0 0-.57-1.68 4.69 4.69 0 0 0-2.02-1.79 4.9 4.9 0 0 0-1.73-.37c-.8-.07-1.82-.07-3.23-.07h-.3c-1.41 0-2.43 0-3.23.07Zm-.09 2.42c.47 0 .85.37.85.82v.55h.54c.47 0 .85.37.85.83 0 .45-.38.82-.85.82h-.54v.55c0 .45-.38.82-.85.82a.84.84 0 0 1-.85-.82V11h-.54a.84.84 0 0 1-.84-.82c0-.46.38-.83.84-.83h.54V8.8c0-.45.38-.82.85-.82Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M16.62 8.3c0 .47-.4.86-.9.86-.49 0-.89-.39-.89-.87s.4-.86.9-.86.9.38.9.86ZM18.51 10.12c0 .48-.4.87-.9.87-.49 0-.9-.39-.9-.87s.41-.86.9-.86c.5 0 .9.38.9.86ZM14.74 10.12c0 .48-.4.87-.9.87s-.9-.39-.9-.87.4-.86.9-.86.9.38.9.86ZM16.62 11.95c0 .48-.4.87-.9.87-.49 0-.89-.39-.89-.87s.4-.87.9-.87.9.4.9.87Z"})]}),download:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M19.14 19c.53 0 .96.45.96 1s-.43 1-.96 1H4.86a.98.98 0 0 1-.96-1c0-.55.43-1 .96-1h14.28ZM12 2c.53 0 .95.45.95 1v10.34l4.57-4.8a.91.91 0 0 1 1.34 0c.38.4.38 1.03 0 1.42l-6.19 6.5a.91.91 0 0 1-1.34 0l-6.2-6.5a1.04 1.04 0 0 1 0-1.42.93.93 0 0 1 1.35 0l4.57 4.8V3c0-.55.42-1 .95-1Z"})}),checkThin:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 28 28",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M24.66 6.21c.4.38.4 1 .03 1.4l-13.3 13.78a.99.99 0 0 1-1.43 0L3.31 14.5a.99.99 0 1 1 1.43-1.37l5.93 6.15 12.6-13.05a1 1 0 0 1 1.4-.02Z",clipRule:"evenodd"})}),addCircle:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.06 18.58a8.65 8.65 0 0 1-8.57-8.57c0-1.18.22-2.28.67-3.32a8.73 8.73 0 0 1 7.9-5.26c1.17 0 2.28.23 3.31.67a8.76 8.76 0 0 1 4.6 4.6c.45 1.03.67 2.13.67 3.3 0 1.18-.22 2.28-.67 3.32a8.76 8.76 0 0 1-4.6 4.59 8.24 8.24 0 0 1-3.31.67Zm0-1.7a6.76 6.76 0 0 0 4.87-2 6.9 6.9 0 1 0-4.87 2ZM10 5.5a.75.75 0 0 0-.75.75v3h-3a.75.75 0 0 0 0 1.5h3v3a.75.75 0 0 0 1.5 0v-3h3a.75.75 0 0 0 0-1.5h-3v-3A.75.75 0 0 0 10 5.5Z",clipRule:"evenodd"})}),search:e=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:[jsxRuntimeExports.jsx("circle",{cx:"9",cy:"10",r:"6",stroke:"currentColor",strokeWidth:"2"}),jsxRuntimeExports.jsx("rect",{width:"8",height:"2",x:"13.88",y:"13.46",fill:"currentColor",rx:"1",transform:"rotate(45 13.88 13.46)"})]}),chevronLeft:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 12",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M.72 6a.88.88 0 0 1 .25-.63L5.06.97a.66.66 0 0 1 .86-.13c.11.07.2.17.27.29a.84.84 0 0 1-.13.97L2.42 6l3.64 3.9c.15.17.22.36.22.58a.8.8 0 0 1-.36.68.66.66 0 0 1-.86-.12L.97 6.63c-.08-.1-.15-.2-.19-.3A.86.86 0 0 1 .72 6Z"})}),chevronRight:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 12",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M6.42 5.77c0 .12-.02.23-.07.33a.9.9 0 0 1-.21.3l-4.5 4.4a.77.77 0 0 1-.56.23.77.77 0 0 1-.4-.1.76.76 0 0 1-.4-.68c0-.22.09-.41.25-.58l4.01-3.9-4-3.9A.79.79 0 0 1 1.07.5c.21 0 .4.07.55.22l4.5 4.41c.1.1.17.2.22.3.05.1.07.2.07.33Z"})}),close:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor","fill-opacity":".8",d:"M7.86 17.14a1 1 0 0 1-1-1.02c0-.27.1-.52.3-.7L10.54 12l-3.4-3.4a.98.98 0 0 1-.3-.71c0-.58.45-1 1.01-1 .28 0 .5.09.7.27l3.42 3.42 3.45-3.43a1 1 0 0 1 1.72.71c0 .29-.1.5-.31.73L13.43 12l3.4 3.4c.2.18.3.44.3.72 0 .57-.45 1.02-1.03 1.02a.97.97 0 0 1-.72-.3l-3.4-3.4-3.38 3.4c-.2.2-.46.3-.74.3Z",opacity:".5"})})};function Icon({name:e,size:t=24,className:i,title:s,"aria-label":o,...a}){const l=Icons[e],c=!!(s||o);return jsxRuntimeExports.jsx(l,{className:cn$1("aspect-square",i),width:t,height:t,role:"img","aria-hidden":!c,"aria-label":o,...a,children:s?jsxRuntimeExports.jsx("title",{children:s}):null})}const useForceRerender=()=>{const[,e]=reactExports.useState(0);return()=>e(t=>t+1)},useMiniApp=()=>{const e=useForceRerender();return reactExports.useEffect(()=>{var i;const t=["viewportChanged","themeChanged","safeAreaChanged","contentSafeAreaChanged","fullscreenChanged"];for(const s of t)(i=window.Telegram.WebApp)==null||i.onEvent(s,e);return window.screen.orientation.addEventListener("change",e),()=>{var s;window.screen.orientation.removeEventListener("change",e);for(const o of t)(s=window.Telegram.WebApp)==null||s.offEvent(o,e)}},[e]),{miniApp:window.Telegram.WebApp}};function useThrottle(e,t=500){const[i,s]=React.useState(e),o=React.useRef(null);return React.useEffect(()=>{const a=Date.now();if(o.current&&a>=o.current+t)o.current=a,s(e);else{const l=window.setTimeout(()=>{o.current=a,s(e)},t);return()=>window.clearTimeout(l)}},[e,t]),i}const createStoreImpl=e=>{let t;const i=new Set,s=(d,p)=>{const m=typeof d=="function"?d(t):d;if(!Object.is(m,t)){const g=t;t=p??(typeof m!="object"||m===null)?m:Object.assign({},t,m),i.forEach(b=>b(t,g))}},o=()=>t,c={setState:s,getState:o,getInitialState:()=>u,subscribe:d=>(i.add(d),()=>i.delete(d))},u=t=e(s,o,c);return c},createStore=e=>e?createStoreImpl(e):createStoreImpl,identity=e=>e;function useStore(e,t=identity){const i=React.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return React.useDebugValue(i),i}const createImpl=e=>{const t=createStore(e),i=s=>useStore(t,s);return Object.assign(i,t),i},create$2=e=>e?createImpl(e):createImpl,useInventoryModalStore=create$2(e=>({isOpen:!1,setIsOpen:t=>e({isOpen:t})})),useTopUpModalStore=create$2(e=>({isOpen:!1,setIsOpen:t=>e({isOpen:t})})),IconTelegramStar=e=>jsxRuntimeExports.jsxs("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntimeExports.jsx("title",{children:"Telegram star"}),jsxRuntimeExports.jsx("path",{d:"M5.04458 4.95162L6.76524 1.50401C6.96358 1.10625 7.44349 0.946501 7.83713 1.14722C7.99146 1.22591 8.11654 1.35336 8.19305 1.51008L9.81812 4.835C9.95078 5.10661 10.2102 5.29194 10.5079 5.32792L13.9104 5.73869C14.3723 5.79439 14.7022 6.21816 14.6469 6.68507C14.6242 6.87734 14.5373 7.05617 14.4007 7.19164L11.7111 9.85999C11.6025 9.96772 11.5501 10.1203 11.5689 10.2729L12.0159 13.8751C12.0798 14.3908 11.718 14.8614 11.208 14.9259C11.0147 14.9504 10.8185 14.9132 10.6472 14.8191L7.80591 13.2571C7.60021 13.1442 7.35288 13.1409 7.14436 13.2484L4.20051 14.7679C3.78627 14.9819 3.27883 14.8156 3.06727 14.3968C2.98815 14.2401 2.95889 14.0626 2.9836 13.8883L3.219 12.2357C3.33411 11.4274 3.83114 10.7262 4.55123 10.3562L7.82109 8.67603C7.90844 8.63116 7.94313 8.52343 7.89869 8.43521C7.86444 8.36671 7.79074 8.32813 7.71574 8.33897L3.71669 8.91512C3.10542 9.00334 2.48548 8.82972 2.00622 8.43608L0.67443 7.34251C0.294229 7.03037 0.236353 6.46592 0.54524 6.08182C0.688736 5.90321 0.894877 5.78724 1.12074 5.75798L4.5354 5.31578C4.75433 5.28739 4.9453 5.15104 5.04458 4.95162Z",fill:"url(#paint0_linear_13203_44637)"}),jsxRuntimeExports.jsx("path",{d:"M8.14979 9.42368C8.22479 9.41285 8.29849 9.45143 8.33273 9.51993C8.37717 9.60815 8.34249 9.71588 8.25513 9.76075L4.98527 11.4409C4.26519 11.8109 3.76815 12.5121 3.65305 13.3204L3.44604 14.7745C3.28846 14.6964 3.15363 14.5679 3.06779 14.3977C2.98867 14.241 2.95941 14.0635 2.98412 13.8892L3.21952 12.2366C3.33463 11.4283 3.83166 10.7271 4.55175 10.3571L5.67393 9.78026L8.14979 9.42368Z",fill:"white",fillOpacity:"0.660262"}),jsxRuntimeExports.jsx("path",{d:"M7.83713 1.14722C7.99146 1.22591 8.11654 1.35336 8.19305 1.51008L9.81812 4.835C9.95078 5.10661 10.2102 5.29194 10.5079 5.32792L13.9104 5.73869C14.3723 5.79439 14.7022 6.21816 14.6469 6.68507C14.6385 6.75704 14.6209 6.82705 14.5954 6.89381C14.5175 6.85783 14.4332 6.83334 14.3439 6.8225L10.9414 6.41173C10.6438 6.37575 10.3843 6.19042 10.2516 5.91881L8.62658 2.5939C8.55006 2.43718 8.42499 2.30972 8.27065 2.23103C7.87701 2.03031 7.3971 2.19007 7.19876 2.58783L5.4781 6.03543C5.37883 6.23485 5.18786 6.3712 4.96893 6.39959L1.55427 6.84179C1.3284 6.87105 1.12226 6.98702 0.978764 7.16563C0.905716 7.25646 0.853259 7.35747 0.820528 7.4626L0.67443 7.34251C0.294229 7.03037 0.236353 6.46592 0.54524 6.08182C0.688736 5.90321 0.894877 5.78724 1.12074 5.75798L4.5354 5.31578C4.75433 5.28739 4.9453 5.15104 5.04458 4.95162L6.76524 1.50401C6.96358 1.10625 7.44349 0.946501 7.83713 1.14722Z",fill:"white",fillOpacity:"0.660262"}),jsxRuntimeExports.jsx("path",{d:"M6.45499 1.35048C6.73938 0.780608 7.42912 0.551056 7.99466 0.83935C8.2164 0.952283 8.39523 1.1348 8.50491 1.35893L10.1298 4.68385C10.2111 4.85011 10.3691 4.96304 10.5496 4.98493L13.9522 5.39548C14.6048 5.47438 15.0691 6.07091 14.9915 6.72705C14.9597 6.99692 14.8376 7.24815 14.6451 7.43912L11.9556 10.1072C11.9235 10.1393 11.9074 10.1853 11.9133 10.2315L12.3603 13.8336C12.4476 14.5383 11.9523 15.1825 11.2517 15.2714C10.9855 15.305 10.7159 15.2536 10.4805 15.1242L7.63895 13.5624C7.53468 13.505 7.4094 13.5033 7.30362 13.5579L4.35977 15.0774C3.77364 15.3798 3.05616 15.1448 2.75789 14.5546C2.64669 14.3343 2.60572 14.0851 2.64041 13.8408L2.87581 12.1879C3.00673 11.2687 3.57248 10.4705 4.39293 10.0489L6.7719 8.8264L3.76649 9.2597C3.0839 9.35811 2.392 9.17452 1.8464 8.75313L1.78636 8.70544L0.454356 7.61166C-0.0728106 7.179 -0.152796 6.39801 0.275093 5.86564C0.474515 5.61744 0.761508 5.45596 1.07625 5.41521L4.49091 4.97301C4.59517 4.95957 4.68643 4.89433 4.73455 4.79808L6.45499 1.35048ZM7.6797 1.45734C7.45838 1.34441 7.1883 1.43436 7.07558 1.66023L5.35514 5.10784C5.20427 5.41022 4.91403 5.61766 4.58 5.6608L1.16534 6.10299C1.02856 6.12077 0.903271 6.19122 0.815699 6.30025C0.625815 6.5363 0.661581 6.88442 0.8946 7.07561L2.22661 8.16939C2.63065 8.50104 3.15262 8.64735 3.66743 8.57322L7.66626 7.99685C7.88952 7.96477 8.10759 8.07922 8.20882 8.28059C8.33844 8.53832 8.23678 8.85371 7.9797 8.98593L4.71005 10.6658C4.09011 10.9843 3.66179 11.5886 3.56251 12.2859L3.32711 13.9385C3.31237 14.0424 3.32993 14.1483 3.37696 14.2418C3.50182 14.4889 3.799 14.5862 4.04156 14.4609L6.98563 12.9416C7.29646 12.781 7.66626 12.7858 7.9732 12.9544L10.8145 14.5162C10.9216 14.5752 11.0439 14.5983 11.1646 14.5832C11.4841 14.5426 11.7123 14.2459 11.6718 13.919L11.2248 10.3169C11.1928 10.0578 11.2821 9.79836 11.4672 9.61498L14.1566 6.94663C14.2374 6.86643 14.2892 6.76022 14.3027 6.64555C14.3356 6.36766 14.1403 6.11708 13.8691 6.08413L10.4664 5.67359C10.0517 5.62351 9.69082 5.36557 9.50657 4.9884L7.88172 1.66348C7.83794 1.57417 7.76705 1.50178 7.6797 1.45734Z",fill:"url(#paint1_linear_13203_44637)"}),jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:"paint0_linear_13203_44637",x1:"5.54898",y1:"4.31195",x2:"11.4016",y2:"14.7166",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#FFCE00"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#FFAD00"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"paint1_linear_13203_44637",x1:"7.50002",y1:"1.06175",x2:"7.50002",y2:"14.7178",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#F28B00"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#FA7400"})]})]})]}),coinImage=assetUrl("cs-coin.webp"),IconBalanceCoins=({style:e,...t})=>jsxRuntimeExports.jsx("img",{src:coinImage,style:{aspectRatio:"1/1",...e},...t,alt:""}),image=assetUrl("icon_usdt.webp"),IconUsdt=({style:e,...t})=>jsxRuntimeExports.jsx("img",{src:image,style:{aspectRatio:"1/1",height:32,...e},...t,alt:""});reactExports.memo(()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"h-[var(--tabbar-current-height)] shrink-0"}),jsxRuntimeExports.jsx(BottomSentinelSafeArea,{})]}));function BottomSentinelSafeArea(){return jsxRuntimeExports.jsx("div",{className:"h-[var(--tg-safe-area-inset-bottom)] shrink-0"})}const boxRegularIcon=assetUrl("boxes/rewards/box_regular.webp"),SnackbarContext=reactExports.createContext({showSnackbar:()=>{}}),useSnackbar=()=>reactExports.useContext(SnackbarContext),CustomSnackbar=({id:e,before:t,after:i,className:s,children:o})=>jsxRuntimeExports.jsx("div",{id:e,className:s,children:jsxRuntimeExports.jsxs("div",{children:[t&&jsxRuntimeExports.jsx("div",{className:"before",children:t}),jsxRuntimeExports.jsx("div",{className:"content",children:o}),i&&jsxRuntimeExports.jsx("div",{className:"after",children:i})]})}),SnackbarProvider=({children:e})=>{const[t,i]=reactExports.useState([]),[s,o]=reactExports.useState([]),a=React.useRef(0),l=React.useRef(new Map),c=reactExports.useCallback(g=>{i(b=>b.map(y=>y.id===g?{...y,animationState:"exit"}:y)),l.current.set(g,setTimeout(()=>{i(b=>b.filter(y=>y.id!==g)),l.current.delete(g)},300))},[]),u=reactExports.useCallback(g=>{o(b=>b.map(y=>y.id===g?{...y,animationState:"exit"}:y)),l.current.set(g,setTimeout(()=>{o(b=>b.filter(y=>y.id!==g)),l.current.delete(g)},300))},[]),d=reactExports.useCallback((g,b={})=>{const y=++a.current,S={id:y,message:g,before:b.before||p(b.type),after:b.after||null,coins:b.coins||null,gems:b.gems||null,usdt:b.usdt||null,isSpentCoins:b.isSpentCoins||!1,boxes:b.boxes||null,type:b.type||null,animationState:"enter"};b.type==="warning"||b.type==="error"?(o(E=>[...E,S]),l.current.set(y,setTimeout(()=>u(y),3e3))):(i(E=>[...E,S]),l.current.set(y,setTimeout(()=>c(y),3e3)))},[u,c]);React.useEffect(()=>{const g=l.current;return()=>{g.forEach(b=>clearTimeout(b)),g.clear()}},[]);const p=g=>{switch(g){case"success":return jsxRuntimeExports.jsx(Icon,{name:"checkThin",size:28,className:"text-button-foreground"});case"success_top":return jsxRuntimeExports.jsx(Icon,{name:"checkThin",size:28,className:"text-button-foreground"});case"warning":return null;case"error":return null;default:return null}},m=g=>jsxRuntimeExports.jsx(CustomSnackbar,{id:"snackbar",onClose:()=>g.type==="warning"||g.type==="error"?u(g.id):c(g.id),before:g.before,after:g.after,className:`ui-snackbar ${g.type?`ui-snackbar--${g.type}`:""} ${g.animationState||""}`,children:jsxRuntimeExports.jsxs(Text,{style:{fontSize:13,lineHeight:"16px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:4},children:[jsxRuntimeExports.jsx("span",{children:g.message}),jsxRuntimeExports.jsxs("div",{className:"grid grid-flow-col auto-cols-max gap-2 items-center",children:[!!g.coins&&jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[jsxRuntimeExports.jsxs(Text,{weight:"1",style:{fontSize:17,lineHeight:"22px"},children:[g.isSpentCoins?"-":"+",g.coins]}),jsxRuntimeExports.jsx(IconBalanceCoins,{style:{height:14,marginBottom:-2}})]}),!!g.gems&&jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[jsxRuntimeExports.jsxs(Text,{weight:"1",style:{fontSize:17,lineHeight:"22px"},children:[g.isSpentCoins?"-":"+",g.gems]}),jsxRuntimeExports.jsx(IconBalanceGems,{style:{height:14,marginBottom:-2}})]}),!!g.usdt&&jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[jsxRuntimeExports.jsxs(Text,{weight:"1",style:{fontSize:17,lineHeight:"22px"},children:[g.isSpentCoins?"-":"+",g.usdt]}),jsxRuntimeExports.jsx(IconUsdt,{style:{height:14,marginBottom:-2}})]}),!!g.boxes&&jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[jsxRuntimeExports.jsxs(Text,{weight:"1",style:{fontSize:17,lineHeight:"22px"},children:["+",g.boxes]}),jsxRuntimeExports.jsx("img",{src:boxRegularIcon,alt:"Box",style:{height:14,width:14,transform:"translateY(10%)"}})]})]})]})},g.id);return jsxRuntimeExports.jsxs(SnackbarContext.Provider,{value:{showSnackbar:d},children:[e,t.map(m),s.map(m),jsxRuntimeExports.jsx(BottomSentinelSafeArea,{})]})};var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,function(module,exports){typeof document<"u"&&typeof navigator<"u"&&function(e,t){module.exports=t()}(lottie$1,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var i,s=e.length,o;for(i=0;i<s;i+=1){o=e[i].prototype;for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t.prototype[a]=o[a])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].pause()},resume:function(){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].resume()},setRate:function(i){var s,o=this.audios.length;for(s=0;s<o;s+=1)this.audios[s].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(i,s){var o=0,a=[],l;switch(i){case"int16":case"uint8c":l=1;break;default:l=1.1;break}for(o=0;o<s;o+=1)a.push(l);return a}function t(i,s){return i==="float32"?new Float32Array(s):i==="int16"?new Int16Array(s):i==="uint8c"?new Uint8ClampedArray(s):e(i,s)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var i=createSizedArray(e.length),s,o=e.length;for(s=0;s<o;s+=1)i[s]=Math.abs(e[s]);return i}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,i,s){this.type=e,this.currentTime=t,this.totalTime=i,this.direction=s<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,i,s){this.type=e,this.currentLoop=i,this.totalLoops=t,this.direction=s<0?-1:1}function BMSegmentStartEvent(e,t,i){this.type=e,this.firstFrame=t,this.totalFrames=i}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,i){var s,o,a,l,c,u,d,p;switch(l=Math.floor(e*6),c=e*6-l,u=i*(1-t),d=i*(1-c*t),p=i*(1-(1-c)*t),l%6){case 0:s=i,o=p,a=u;break;case 1:s=d,o=i,a=u;break;case 2:s=u,o=i,a=p;break;case 3:s=u,o=d,a=i;break;case 4:s=p,o=u,a=i;break;case 5:s=i,o=u,a=d;break}return[s,o,a]}function RGBtoHSV(e,t,i){var s=Math.max(e,t,i),o=Math.min(e,t,i),a=s-o,l,c=s===0?0:a/s,u=s/255;switch(s){case o:l=0;break;case e:l=t-i+a*(t<i?6:0),l/=6*a;break;case t:l=i-e+a*2,l/=6*a;break;case i:l=e-t+a*4,l/=6*a;break}return[l,c,u]}function addSaturationToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[1]+=t,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[2]+=t,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[0]+=t/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e=[],t,i;for(t=0;t<256;t+=1)i=t.toString(16),e[t]=i.length===1?"0"+i:i;return function(s,o,a){return s<0&&(s=0),o<0&&(o=0),a<0&&(a=0),"#"+e[s]+e[o]+e[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=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},_typeof$5(e)}var dataManager=function(){var e=1,t=[],i,s,o={onmessage:function(){},postMessage:function(b){i({data:b})}},a={postMessage:function(b){o.onmessage({data:b})}};function l(g){if(window.Worker&&window.Blob&&getWebWorker()){var b=new Blob(["var _workerSelf = self; self.onmessage = ",g.toString()],{type:"text/javascript"}),y=URL.createObjectURL(b);return new Worker(y)}return i=g,o}function c(){s||(s=l(function(b){function y(){function w(z,$){var B,M,D=z.length,G,j,W,J;for(M=0;M<D;M+=1)if(B=z[M],"ks"in B&&!B.completed){if(B.completed=!0,B.hasMask){var re=B.masksProperties;for(j=re.length,G=0;G<j;G+=1)if(re[G].pt.k.i)O(re[G].pt.k);else for(J=re[G].pt.k.length,W=0;W<J;W+=1)re[G].pt.k[W].s&&O(re[G].pt.k[W].s[0]),re[G].pt.k[W].e&&O(re[G].pt.k[W].e[0])}B.ty===0?(B.layers=T(B.refId,$),w(B.layers,$)):B.ty===4?P(B.shapes):B.ty===5&&ie(B)}}function E(z,$){if(z){var B=0,M=z.length;for(B=0;B<M;B+=1)z[B].t===1&&(z[B].data.layers=T(z[B].data.refId,$),w(z[B].data.layers,$))}}function A(z,$){for(var B=0,M=$.length;B<M;){if($[B].id===z)return $[B];B+=1}return null}function T(z,$){var B=A(z,$);return B?B.layers.__used?JSON.parse(JSON.stringify(B.layers)):(B.layers.__used=!0,B.layers):null}function P(z){var $,B=z.length,M,D;for($=B-1;$>=0;$-=1)if(z[$].ty==="sh")if(z[$].ks.k.i)O(z[$].ks.k);else for(D=z[$].ks.k.length,M=0;M<D;M+=1)z[$].ks.k[M].s&&O(z[$].ks.k[M].s[0]),z[$].ks.k[M].e&&O(z[$].ks.k[M].e[0]);else z[$].ty==="gr"&&P(z[$].it)}function O(z){var $,B=z.i.length;for($=0;$<B;$+=1)z.i[$][0]+=z.v[$][0],z.i[$][1]+=z.v[$][1],z.o[$][0]+=z.v[$][0],z.o[$][1]+=z.v[$][1]}function k(z,$){var B=$?$.split("."):[100,100,100];return z[0]>B[0]?!0:B[0]>z[0]?!1:z[1]>B[1]?!0:B[1]>z[1]?!1:z[2]>B[2]?!0:B[2]>z[2]?!1:null}var F=function(){var z=[4,4,14];function $(M){var D=M.t.d;M.t.d={k:[{s:D,t:0}]}}function B(M){var D,G=M.length;for(D=0;D<G;D+=1)M[D].ty===5&&$(M[D])}return function(M){if(k(z,M.v)&&(B(M.layers),M.assets)){var D,G=M.assets.length;for(D=0;D<G;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}(),N=function(){var z=[4,7,99];return function($){if($.chars&&!k(z,$.v)){var B,M=$.chars.length;for(B=0;B<M;B+=1){var D=$.chars[B];D.data&&D.data.shapes&&(P(D.data.shapes),D.data.ip=0,D.data.op=99999,D.data.st=0,D.data.sr=1,D.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},$.chars[B].t||(D.data.shapes.push({ty:"no"}),D.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),U=function(){var z=[5,7,15];function $(M){var D=M.t.p;typeof D.a=="number"&&(D.a={a:0,k:D.a}),typeof D.p=="number"&&(D.p={a:0,k:D.p}),typeof D.r=="number"&&(D.r={a:0,k:D.r})}function B(M){var D,G=M.length;for(D=0;D<G;D+=1)M[D].ty===5&&$(M[D])}return function(M){if(k(z,M.v)&&(B(M.layers),M.assets)){var D,G=M.assets.length;for(D=0;D<G;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}(),H=function(){var z=[4,1,9];function $(M){var D,G=M.length,j,W;for(D=0;D<G;D+=1)if(M[D].ty==="gr")$(M[D].it);else if(M[D].ty==="fl"||M[D].ty==="st")if(M[D].c.k&&M[D].c.k[0].i)for(W=M[D].c.k.length,j=0;j<W;j+=1)M[D].c.k[j].s&&(M[D].c.k[j].s[0]/=255,M[D].c.k[j].s[1]/=255,M[D].c.k[j].s[2]/=255,M[D].c.k[j].s[3]/=255),M[D].c.k[j].e&&(M[D].c.k[j].e[0]/=255,M[D].c.k[j].e[1]/=255,M[D].c.k[j].e[2]/=255,M[D].c.k[j].e[3]/=255);else M[D].c.k[0]/=255,M[D].c.k[1]/=255,M[D].c.k[2]/=255,M[D].c.k[3]/=255}function B(M){var D,G=M.length;for(D=0;D<G;D+=1)M[D].ty===4&&$(M[D].shapes)}return function(M){if(k(z,M.v)&&(B(M.layers),M.assets)){var D,G=M.assets.length;for(D=0;D<G;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}(),Y=function(){var z=[4,4,18];function $(M){var D,G=M.length,j,W;for(D=G-1;D>=0;D-=1)if(M[D].ty==="sh")if(M[D].ks.k.i)M[D].ks.k.c=M[D].closed;else for(W=M[D].ks.k.length,j=0;j<W;j+=1)M[D].ks.k[j].s&&(M[D].ks.k[j].s[0].c=M[D].closed),M[D].ks.k[j].e&&(M[D].ks.k[j].e[0].c=M[D].closed);else M[D].ty==="gr"&&$(M[D].it)}function B(M){var D,G,j=M.length,W,J,re,se;for(G=0;G<j;G+=1){if(D=M[G],D.hasMask){var ce=D.masksProperties;for(J=ce.length,W=0;W<J;W+=1)if(ce[W].pt.k.i)ce[W].pt.k.c=ce[W].cl;else for(se=ce[W].pt.k.length,re=0;re<se;re+=1)ce[W].pt.k[re].s&&(ce[W].pt.k[re].s[0].c=ce[W].cl),ce[W].pt.k[re].e&&(ce[W].pt.k[re].e[0].c=ce[W].cl)}D.ty===4&&$(D.shapes)}}return function(M){if(k(z,M.v)&&(B(M.layers),M.assets)){var D,G=M.assets.length;for(D=0;D<G;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}();function Z(z){z.__complete||(H(z),F(z),N(z),U(z),Y(z),w(z.layers,z.assets),E(z.chars,z.assets),z.__complete=!0)}function ie(z){z.t.a.length===0&&"m"in z.t.p}var q={};return q.completeData=Z,q.checkColors=H,q.checkChars=N,q.checkPathProperties=U,q.checkShapes=Y,q.completeLayers=w,q}if(a.dataManager||(a.dataManager=y()),a.assetLoader||(a.assetLoader=function(){function w(A){var T=A.getResponseHeader("content-type");return T&&A.responseType==="json"&&T.indexOf("json")!==-1||A.response&&_typeof$5(A.response)==="object"?A.response:A.response&&typeof A.response=="string"?JSON.parse(A.response):A.responseText?JSON.parse(A.responseText):null}function E(A,T,P,O){var k,F=new XMLHttpRequest;try{F.responseType="json"}catch{}F.onreadystatechange=function(){if(F.readyState===4)if(F.status===200)k=w(F),P(k);else try{k=w(F),P(k)}catch(N){O&&O(N)}};try{F.open(["G","E","T"].join(""),A,!0)}catch{F.open(["G","E","T"].join(""),T+"/"+A,!0)}F.send()}return{load:E}}()),b.data.type==="loadAnimation")a.assetLoader.load(b.data.path,b.data.fullPath,function(w){a.dataManager.completeData(w),a.postMessage({id:b.data.id,payload:w,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})});else if(b.data.type==="complete"){var S=b.data.animation;a.dataManager.completeData(S),a.postMessage({id:b.data.id,payload:S,status:"success"})}else b.data.type==="loadData"&&a.assetLoader.load(b.data.path,b.data.fullPath,function(w){a.postMessage({id:b.data.id,payload:w,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})})}),s.onmessage=function(g){var b=g.data,y=b.id,S=t[y];t[y]=null,b.status==="success"?S.onComplete(b.payload):S.onError&&S.onError()})}function u(g,b){e+=1;var y="processId_"+e;return t[y]={onComplete:g,onError:b},y}function d(g,b,y){c();var S=u(b,y);s.postMessage({type:"loadAnimation",path:g,fullPath:window.location.origin+window.location.pathname,id:S})}function p(g,b,y){c();var S=u(b,y);s.postMessage({type:"loadData",path:g,fullPath:window.location.origin+window.location.pathname,id:S})}function m(g,b,y){c();var S=u(b,y);s.postMessage({type:"complete",animation:g,id:S})}return{loadAnimation:d,loadData:p,completeAnimation:m}}(),ImagePreloader=function(){var e=function(){var E=createTag("canvas");E.width=1,E.height=1;var A=E.getContext("2d");return A.fillStyle="rgba(0,0,0,0)",A.fillRect(0,0,1,1),E}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(E,A,T){var P="";if(E.e)P=E.p;else if(A){var O=E.p;O.indexOf("images/")!==-1&&(O=O.split("/")[1]),P=A+O}else P=T,P+=E.u?E.u:"",P+=E.p;return P}function o(E){var A=0,T=setInterval((function(){var P=E.getBBox();(P.width||A>500)&&(this._imageLoaded(),clearInterval(T)),A+=1}).bind(this),50)}function a(E){var A=s(E,this.assetsPath,this.path),T=createNS("image");isSafari?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){P.img=e,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",A),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var P={img:T,assetData:E};return P}function l(E){var A=s(E,this.assetsPath,this.path),T=createTag("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){P.img=e,this._imageLoaded()}).bind(this),!1),T.src=A;var P={img:T,assetData:E};return P}function c(E){var A={assetData:E},T=s(E,this.assetsPath,this.path);return dataManager.loadData(T,(function(P){A.img=P,this._footageLoaded()}).bind(this),(function(){A.img={},this._footageLoaded()}).bind(this)),A}function u(E,A){this.imagesLoadedCb=A;var T,P=E.length;for(T=0;T<P;T+=1)E[T].layers||(!E[T].t||E[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(E[T]))):E[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(E[T]))))}function d(E){this.path=E||""}function p(E){this.assetsPath=E||""}function m(E){for(var A=0,T=this.images.length;A<T;){if(this.images[A].assetData===E)return this.images[A].img;A+=1}return null}function g(){this.imagesLoadedCb=null,this.images.length=0}function b(){return this.totalImages===this.loadedAssets}function y(){return this.totalFootages===this.loadedFootagesCount}function S(E,A){E==="svg"?(this._elementHelper=A,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function w(){this._imageLoaded=t.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=c.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return w.prototype={loadAssets:u,setAssetsPath:p,setPath:d,loadedImages:b,loadedFootages:y,destroy:g,getAsset:m,createImgData:l,createImageData:a,imageLoaded:t,footageLoaded:i,setCacheType:S},w}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,i){if(this._cbs[t])for(var s=this._cbs[t],o=0;o<s.length;o+=1)s[o](i)},addEventListener:function(t,i){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(i),(function(){this.removeEventListener(t,i)}).bind(this)},removeEventListener:function(t,i){if(!i)this._cbs[t]=null;else if(this._cbs[t]){for(var s=0,o=this._cbs[t].length;s<o;)this._cbs[t][s]===i&&(this._cbs[t].splice(s,1),s-=1,o-=1),s+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var i=t.split(`\r
|
|
113
|
+
Url: ${_getEventFilterUrl(e)}`),!0}return!1}function _isIgnoredError(e,t){return t!=null&&t.length?getPossibleEventMessages(e).some(i=>stringMatchesSomePattern(i,t)):!1}function _isIgnoredTransaction(e,t){if(!(t!=null&&t.length))return!1;const i=e.transaction;return i?stringMatchesSomePattern(i,t):!1}function _isDeniedUrl(e,t){if(!(t!=null&&t.length))return!1;const i=_getEventFilterUrl(e);return i?stringMatchesSomePattern(i,t):!1}function _isAllowedUrl(e,t){if(!(t!=null&&t.length))return!0;const i=_getEventFilterUrl(e);return i?stringMatchesSomePattern(i,t):!0}function _getLastValidUrl(e=[]){for(let t=e.length-1;t>=0;t--){const i=e[t];if(i&&i.filename!=="<anonymous>"&&i.filename!=="[native code]")return i.filename||null}return null}function _getEventFilterUrl(e){var t,i;try{const s=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(a=>{var l,c,u;return((l=a.mechanism)==null?void 0:l.parent_id)===void 0&&((u=(c=a.stacktrace)==null?void 0:c.frames)==null?void 0:u.length)}),o=(i=s==null?void 0:s.stacktrace)==null?void 0:i.frames;return o?_getLastValidUrl(o):null}catch{return DEBUG_BUILD$2&&debug.error(`Cannot extract url for event ${getEventDescription(e)}`),null}}function _isUselessError(e){var t,i;return(i=(t=e.exception)==null?void 0:t.values)!=null&&i.length?!e.message&&!e.exception.values.some(s=>s.stacktrace||s.type&&s.type!=="Error"||s.value):!1}function applyAggregateErrorsToEvent(e,t,i,s,o,a){var c;if(!((c=o.exception)!=null&&c.values)||!a||!isInstanceOf(a.originalException,Error))return;const l=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;l&&(o.exception.values=aggregateExceptionsFromError(e,t,s,a.originalException,i,o.exception.values,l,0))}function aggregateExceptionsFromError(e,t,i,s,o,a,l,c){if(a.length>=i+1)return a;let u=[...a];if(isInstanceOf(s[o],Error)){applyExceptionGroupFieldsForParentException(l,c);const d=e(t,s[o]),p=u.length;applyExceptionGroupFieldsForChildException(d,o,p,c),u=aggregateExceptionsFromError(e,t,i,s[o],o,[d,...u],d,p)}return Array.isArray(s.errors)&&s.errors.forEach((d,p)=>{if(isInstanceOf(d,Error)){applyExceptionGroupFieldsForParentException(l,c);const m=e(t,d),g=u.length;applyExceptionGroupFieldsForChildException(m,`errors[${p}]`,g,c),u=aggregateExceptionsFromError(e,t,i,d,o,[m,...u],m,g)}}),u}function applyExceptionGroupFieldsForParentException(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function applyExceptionGroupFieldsForChildException(e,t,i,s){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:i,parent_id:s}}function addConsoleInstrumentationHandler(e){const t="console";addHandler(t,e),maybeInstrument(t,instrumentConsole)}function instrumentConsole(){"console"in GLOBAL_OBJ&&CONSOLE_LEVELS.forEach(function(e){e in GLOBAL_OBJ.console&&fill(GLOBAL_OBJ.console,e,function(t){return originalConsoleMethods[e]=t,function(...i){triggerHandlers("console",{args:i,level:e});const o=originalConsoleMethods[e];o==null||o.apply(GLOBAL_OBJ.console,i)}})})}function severityLevelFromString(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const INTEGRATION_NAME$4="Dedupe",_dedupeIntegration=()=>{let e;return{name:INTEGRATION_NAME$4,processEvent(t){if(t.type)return t;try{if(_shouldDropEvent(t,e))return DEBUG_BUILD$2&&debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},dedupeIntegration=_dedupeIntegration;function _shouldDropEvent(e,t){return t?!!(_isSameMessageEvent(e,t)||_isSameExceptionEvent(e,t)):!1}function _isSameMessageEvent(e,t){const i=e.message,s=t.message;return!(!i&&!s||i&&!s||!i&&s||i!==s||!_isSameFingerprint(e,t)||!_isSameStacktrace(e,t))}function _isSameExceptionEvent(e,t){const i=_getExceptionFromEvent(t),s=_getExceptionFromEvent(e);return!(!i||!s||i.type!==s.type||i.value!==s.value||!_isSameFingerprint(e,t)||!_isSameStacktrace(e,t))}function _isSameStacktrace(e,t){let i=getFramesFromEvent(e),s=getFramesFromEvent(t);if(!i&&!s)return!0;if(i&&!s||!i&&s||(i=i,s=s,s.length!==i.length))return!1;for(let o=0;o<s.length;o++){const a=s[o],l=i[o];if(a.filename!==l.filename||a.lineno!==l.lineno||a.colno!==l.colno||a.function!==l.function)return!1}return!0}function _isSameFingerprint(e,t){let i=e.fingerprint,s=t.fingerprint;if(!i&&!s)return!0;if(i&&!s||!i&&s)return!1;i=i,s=s;try{return i.join("")===s.join("")}catch{return!1}}function _getExceptionFromEvent(e){var t,i;return(i=(t=e.exception)==null?void 0:t.values)==null?void 0:i[0]}function getBreadcrumbLogLevelFromHttpStatusCode(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const WINDOW$2=GLOBAL_OBJ;function supportsHistory(){return"history"in WINDOW$2&&!!WINDOW$2.history}function _isFetchSupported(){if(!("fetch"in WINDOW$2))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function isNativeFunction(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function supportsNativeFetch(){var i;if(typeof EdgeRuntime=="string")return!0;if(!_isFetchSupported())return!1;if(isNativeFunction(WINDOW$2.fetch))return!0;let e=!1;const t=WINDOW$2.document;if(t&&typeof t.createElement=="function")try{const s=t.createElement("iframe");s.hidden=!0,t.head.appendChild(s),(i=s.contentWindow)!=null&&i.fetch&&(e=isNativeFunction(s.contentWindow.fetch)),t.head.removeChild(s)}catch(s){DEBUG_BUILD$2&&debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",s)}return e}function addFetchInstrumentationHandler(e,t){const i="fetch";addHandler(i,e),maybeInstrument(i,()=>instrumentFetch(void 0,t))}function instrumentFetch(e,t=!1){t&&!supportsNativeFetch()||fill(GLOBAL_OBJ,"fetch",function(i){return function(...s){const o=new Error,{method:a,url:l}=parseFetchArgs(s),c={args:s,fetchData:{method:a,url:l},startTimestamp:timestampInSeconds()*1e3,virtualError:o,headers:getHeadersFromFetchArgs(s)};return triggerHandlers("fetch",{...c}),i.apply(GLOBAL_OBJ,s).then(async u=>(triggerHandlers("fetch",{...c,endTimestamp:timestampInSeconds()*1e3,response:u}),u),u=>{if(triggerHandlers("fetch",{...c,endTimestamp:timestampInSeconds()*1e3,error:u}),isError(u)&&u.stack===void 0&&(u.stack=o.stack,addNonEnumerableProperty(u,"framesToPop",1)),u instanceof TypeError&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const d=new URL(c.fetchData.url);u.message=`${u.message} (${d.host})`}catch{}throw u})}})}function hasProp(e,t){return!!e&&typeof e=="object"&&!!e[t]}function getUrlFromResource(e){return typeof e=="string"?e:e?hasProp(e,"url")?e.url:e.toString?e.toString():"":""}function parseFetchArgs(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[i,s]=e;return{url:getUrlFromResource(i),method:hasProp(s,"method")?String(s.method).toUpperCase():"GET"}}const t=e[0];return{url:getUrlFromResource(t),method:hasProp(t,"method")?String(t.method).toUpperCase():"GET"}}function getHeadersFromFetchArgs(e){const[t,i]=e;try{if(typeof i=="object"&&i!==null&&"headers"in i&&i.headers)return new Headers(i.headers);if(isRequest(t))return new Headers(t.headers)}catch{}}function getSDKSource(){return"npm"}const WINDOW$1=GLOBAL_OBJ;let ignoreOnError=0;function shouldIgnoreOnError(){return ignoreOnError>0}function ignoreNextOnError(){ignoreOnError++,setTimeout(()=>{ignoreOnError--})}function wrap(e,t={}){function i(o){return typeof o=="function"}if(!i(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(getOriginalFunction(e))return e}catch{return e}const s=function(...o){try{const a=o.map(l=>wrap(l,t));return e.apply(this,a)}catch(a){throw ignoreNextOnError(),withScope(l=>{l.addEventProcessor(c=>(t.mechanism&&(addExceptionTypeValue(c,void 0),addExceptionMechanism(c,t.mechanism)),c.extra={...c.extra,arguments:o},c)),captureException(a)}),a}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(s[o]=e[o])}catch{}markFunctionWrapped(s,e),addNonEnumerableProperty(e,"__sentry_wrapped__",s);try{Object.getOwnPropertyDescriptor(s,"name").configurable&&Object.defineProperty(s,"name",{get(){return e.name}})}catch{}return s}function getHttpRequestData(){const e=getLocationHref(),{referrer:t}=WINDOW$1.document||{},{userAgent:i}=WINDOW$1.navigator||{},s={...t&&{Referer:t},...i&&{"User-Agent":i}};return{url:e,headers:s}}function exceptionFromError(e,t){const i=parseStackFrames(e,t),s={type:extractType(t),value:extractMessage(t)};return i.length&&(s.stacktrace={frames:i}),s.type===void 0&&s.value===""&&(s.value="Unrecoverable error caught"),s}function eventFromPlainObject(e,t,i,s){const o=getClient(),a=o==null?void 0:o.getOptions().normalizeDepth,l=getErrorPropertyFromObject(t),c={__serialized__:normalizeToSize(t,a)};if(l)return{exception:{values:[exceptionFromError(e,l)]},extra:c};const u={exception:{values:[{type:isEvent(t)?t.constructor.name:s?"UnhandledRejection":"Error",value:getNonErrorObjectExceptionValue(t,{isUnhandledRejection:s})}]},extra:c};if(i){const d=parseStackFrames(e,i);d.length&&(u.exception.values[0].stacktrace={frames:d})}return u}function eventFromError(e,t){return{exception:{values:[exceptionFromError(e,t)]}}}function parseStackFrames(e,t){const i=t.stacktrace||t.stack||"",s=getSkipFirstStackStringLines(t),o=getPopFirstTopFrames(t);try{return e(i,s,o)}catch{}return[]}const reactMinifiedRegexp=/Minified React error #\d+;/i;function getSkipFirstStackStringLines(e){return e&&reactMinifiedRegexp.test(e.message)?1:0}function getPopFirstTopFrames(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function isWebAssemblyException(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function extractType(e){const t=e==null?void 0:e.name;return!t&&isWebAssemblyException(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function extractMessage(e){const t=e==null?void 0:e.message;return isWebAssemblyException(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function eventFromException(e,t,i,s){const o=(i==null?void 0:i.syntheticException)||void 0,a=eventFromUnknownInput(e,t,o,s);return addExceptionMechanism(a),a.level="error",i!=null&&i.event_id&&(a.event_id=i.event_id),resolvedSyncPromise(a)}function eventFromMessage(e,t,i="info",s,o){const a=(s==null?void 0:s.syntheticException)||void 0,l=eventFromString(e,t,a,o);return l.level=i,s!=null&&s.event_id&&(l.event_id=s.event_id),resolvedSyncPromise(l)}function eventFromUnknownInput(e,t,i,s,o){let a;if(isErrorEvent$1(t)&&t.error)return eventFromError(e,t.error);if(isDOMError(t)||isDOMException(t)){const l=t;if("stack"in t)a=eventFromError(e,t);else{const c=l.name||(isDOMError(l)?"DOMError":"DOMException"),u=l.message?`${c}: ${l.message}`:c;a=eventFromString(e,u,i,s),addExceptionTypeValue(a,u)}return"code"in l&&(a.tags={...a.tags,"DOMException.code":`${l.code}`}),a}return isError(t)?eventFromError(e,t):isPlainObject$1(t)||isEvent(t)?(a=eventFromPlainObject(e,t,i,o),addExceptionMechanism(a,{synthetic:!0}),a):(a=eventFromString(e,t,i,s),addExceptionTypeValue(a,`${t}`),addExceptionMechanism(a,{synthetic:!0}),a)}function eventFromString(e,t,i,s){const o={};if(s&&i){const a=parseStackFrames(e,i);a.length&&(o.exception={values:[{value:t,stacktrace:{frames:a}}]}),addExceptionMechanism(o,{synthetic:!0})}if(isParameterizedString(t)){const{__sentry_template_string__:a,__sentry_template_values__:l}=t;return o.logentry={message:a,params:l},o}return o.message=t,o}function getNonErrorObjectExceptionValue(e,{isUnhandledRejection:t}){const i=extractExceptionKeysForMessage(e),s=t?"promise rejection":"exception";return isErrorEvent$1(e)?`Event \`ErrorEvent\` captured as ${s} with message \`${e.message}\``:isEvent(e)?`Event \`${getObjectClassName(e)}\` (type=${e.type}) captured as ${s}`:`Object captured as ${s} with keys: ${i}`}function getObjectClassName(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function getErrorPropertyFromObject(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const i=e[t];if(i instanceof Error)return i}}const DEFAULT_FLUSH_INTERVAL=5e3;class BrowserClient extends Client{constructor(t){var c;const i=applyDefaultOptions(t),s=WINDOW$1.SENTRY_SDK_SOURCE||getSDKSource();applySdkMetadata(i,"browser",["browser"],s),(c=i._metadata)!=null&&c.sdk&&(i._metadata.sdk.settings={infer_ip:i.sendDefaultPii?"auto":"never",...i._metadata.sdk.settings}),super(i);const{sendDefaultPii:o,sendClientReports:a,enableLogs:l}=this._options;WINDOW$1.document&&(a||l)&&WINDOW$1.document.addEventListener("visibilitychange",()=>{WINDOW$1.document.visibilityState==="hidden"&&(a&&this._flushOutcomes(),l&&_INTERNAL_flushLogsBuffer(this))}),l&&(this.on("flush",()=>{_INTERNAL_flushLogsBuffer(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{_INTERNAL_flushLogsBuffer(this)},DEFAULT_FLUSH_INTERVAL)})),o&&this.on("beforeSendSession",addAutoIpAddressToSession)}eventFromException(t,i){return eventFromException(this._options.stackParser,t,i,this._options.attachStacktrace)}eventFromMessage(t,i="info",s){return eventFromMessage(this._options.stackParser,t,i,s,this._options.attachStacktrace)}_prepareEvent(t,i,s,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,i,s,o)}}function applyDefaultOptions(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=WINDOW$1.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const DEBUG_BUILD$1=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,WINDOW=GLOBAL_OBJ,DEBOUNCE_DURATION=1e3;let debounceTimerID,lastCapturedEventType,lastCapturedEventTargetId;function addClickKeypressInstrumentationHandler(e){const t="dom";addHandler(t,e),maybeInstrument(t,instrumentDOM)}function instrumentDOM(){if(!WINDOW.document)return;const e=triggerHandlers.bind(null,"dom"),t=makeDOMEventHandler(e,!0);WINDOW.document.addEventListener("click",t,!1),WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(i=>{var a,l;const o=(a=WINDOW[i])==null?void 0:a.prototype;(l=o==null?void 0:o.hasOwnProperty)!=null&&l.call(o,"addEventListener")&&(fill(o,"addEventListener",function(c){return function(u,d,p){if(u==="click"||u=="keypress")try{const m=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},g=m[u]=m[u]||{refCount:0};if(!g.handler){const b=makeDOMEventHandler(e);g.handler=b,c.call(this,u,b,p)}g.refCount++}catch{}return c.call(this,u,d,p)}}),fill(o,"removeEventListener",function(c){return function(u,d,p){if(u==="click"||u=="keypress")try{const m=this.__sentry_instrumentation_handlers__||{},g=m[u];g&&(g.refCount--,g.refCount<=0&&(c.call(this,u,g.handler,p),g.handler=void 0,delete m[u]),Object.keys(m).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,u,d,p)}}))})}function isSimilarToLastCapturedEvent(e){if(e.type!==lastCapturedEventType)return!1;try{if(!e.target||e.target._sentryId!==lastCapturedEventTargetId)return!1}catch{}return!0}function shouldSkipDOMEvent(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function makeDOMEventHandler(e,t=!1){return i=>{if(!i||i._sentryCaptured)return;const s=getEventTarget$1(i);if(shouldSkipDOMEvent(i.type,s))return;addNonEnumerableProperty(i,"_sentryCaptured",!0),s&&!s._sentryId&&addNonEnumerableProperty(s,"_sentryId",uuid4());const o=i.type==="keypress"?"input":i.type;isSimilarToLastCapturedEvent(i)||(e({event:i,name:o,global:t}),lastCapturedEventType=i.type,lastCapturedEventTargetId=s?s._sentryId:void 0),clearTimeout(debounceTimerID),debounceTimerID=WINDOW.setTimeout(()=>{lastCapturedEventTargetId=void 0,lastCapturedEventType=void 0},DEBOUNCE_DURATION)}}function getEventTarget$1(e){try{return e.target}catch{return null}}let lastHref;function addHistoryInstrumentationHandler(e){const t="history";addHandler(t,e),maybeInstrument(t,instrumentHistory)}function instrumentHistory(){if(WINDOW.addEventListener("popstate",()=>{const t=WINDOW.location.href,i=lastHref;if(lastHref=t,i===t)return;triggerHandlers("history",{from:i,to:t})}),!supportsHistory())return;function e(t){return function(...i){const s=i.length>2?i[2]:void 0;if(s){const o=lastHref,a=getAbsoluteUrl(String(s));if(lastHref=a,o===a)return t.apply(this,i);triggerHandlers("history",{from:o,to:a})}return t.apply(this,i)}}fill(WINDOW.history,"pushState",e),fill(WINDOW.history,"replaceState",e)}function getAbsoluteUrl(e){try{return new URL(e,WINDOW.location.origin).toString()}catch{return e}}const cachedImplementations={};function getNativeImplementation(e){const t=cachedImplementations[e];if(t)return t;let i=WINDOW[e];if(isNativeFunction(i))return cachedImplementations[e]=i.bind(WINDOW);const s=WINDOW.document;if(s&&typeof s.createElement=="function")try{const o=s.createElement("iframe");o.hidden=!0,s.head.appendChild(o);const a=o.contentWindow;a!=null&&a[e]&&(i=a[e]),s.head.removeChild(o)}catch(o){DEBUG_BUILD$1&&debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return i&&(cachedImplementations[e]=i.bind(WINDOW))}function clearCachedImplementation(e){cachedImplementations[e]=void 0}const SENTRY_XHR_DATA_KEY="__sentry_xhr_v3__";function addXhrInstrumentationHandler(e){const t="xhr";addHandler(t,e),maybeInstrument(t,instrumentXHR)}function instrumentXHR(){if(!WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,i,s){const o=new Error,a=timestampInSeconds()*1e3,l=isString$2(s[0])?s[0].toUpperCase():void 0,c=parseXhrUrlArg(s[1]);if(!l||!c)return t.apply(i,s);i[SENTRY_XHR_DATA_KEY]={method:l,url:c,request_headers:{}},l==="POST"&&c.match(/sentry_key/)&&(i.__sentry_own_request__=!0);const u=()=>{const d=i[SENTRY_XHR_DATA_KEY];if(d&&i.readyState===4){try{d.status_code=i.status}catch{}const p={endTimestamp:timestampInSeconds()*1e3,startTimestamp:a,xhr:i,virtualError:o};triggerHandlers("xhr",p)}};return"onreadystatechange"in i&&typeof i.onreadystatechange=="function"?i.onreadystatechange=new Proxy(i.onreadystatechange,{apply(d,p,m){return u(),d.apply(p,m)}}):i.addEventListener("readystatechange",u),i.setRequestHeader=new Proxy(i.setRequestHeader,{apply(d,p,m){const[g,b]=m,y=p[SENTRY_XHR_DATA_KEY];return y&&isString$2(g)&&isString$2(b)&&(y.request_headers[g.toLowerCase()]=b),d.apply(p,m)}}),t.apply(i,s)}}),e.send=new Proxy(e.send,{apply(t,i,s){const o=i[SENTRY_XHR_DATA_KEY];if(!o)return t.apply(i,s);s[0]!==void 0&&(o.body=s[0]);const a={startTimestamp:timestampInSeconds()*1e3,xhr:i};return triggerHandlers("xhr",a),t.apply(i,s)}})}function parseXhrUrlArg(e){if(isString$2(e))return e;try{return e.toString()}catch{}}function makeFetchTransport(e,t=getNativeImplementation("fetch")){let i=0,s=0;async function o(a){const l=a.body.length;i+=l,s++;const c={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:i<=6e4&&s<15,...e.fetchOptions};try{const u=await t(e.url,c);return{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}}catch(u){throw clearCachedImplementation("fetch"),u}finally{i-=l,s--}}return createTransport(e,o)}const CHROME_PRIORITY=30,GECKO_PRIORITY=50;function createFrame(e,t,i,s){const o={filename:e,function:t==="<anonymous>"?UNKNOWN_FUNCTION:t,in_app:!0};return i!==void 0&&(o.lineno=i),s!==void 0&&(o.colno=s),o}const chromeRegexNoFnName=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,chromeRegex=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,chromeEvalRegex=/\((\S*)(?::(\d+))(?::(\d+))\)/,chromeDataUriRegex=/at (.+?) ?\(data:(.+?),/,chromeStackParserFn=e=>{const t=e.match(chromeDataUriRegex);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const i=chromeRegexNoFnName.exec(e);if(i){const[,o,a,l]=i;return createFrame(o,UNKNOWN_FUNCTION,+a,+l)}const s=chromeRegex.exec(e);if(s){if(s[2]&&s[2].indexOf("eval")===0){const c=chromeEvalRegex.exec(s[2]);c&&(s[2]=c[1],s[3]=c[2],s[4]=c[3])}const[a,l]=extractSafariExtensionDetails(s[1]||UNKNOWN_FUNCTION,s[2]);return createFrame(l,a,s[3]?+s[3]:void 0,s[4]?+s[4]:void 0)}},chromeStackLineParser=[CHROME_PRIORITY,chromeStackParserFn],geckoREgex=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,geckoEvalRegex=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gecko=e=>{const t=geckoREgex.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=geckoEvalRegex.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let s=t[3],o=t[1]||UNKNOWN_FUNCTION;return[o,s]=extractSafariExtensionDetails(o,s),createFrame(s,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},geckoStackLineParser=[GECKO_PRIORITY,gecko],defaultStackLineParsers=[chromeStackLineParser,geckoStackLineParser],defaultStackParser=createStackParser(...defaultStackLineParsers),extractSafariExtensionDetails=(e,t)=>{const i=e.indexOf("safari-extension")!==-1,s=e.indexOf("safari-web-extension")!==-1;return i||s?[e.indexOf("@")!==-1?e.split("@")[0]:UNKNOWN_FUNCTION,i?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,MAX_ALLOWED_STRING_LENGTH=1024,INTEGRATION_NAME$3="Breadcrumbs",_breadcrumbsIntegration=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:INTEGRATION_NAME$3,setup(i){t.console&&addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(i)),t.dom&&addClickKeypressInstrumentationHandler(_getDomBreadcrumbHandler(i,t.dom)),t.xhr&&addXhrInstrumentationHandler(_getXhrBreadcrumbHandler(i)),t.fetch&&addFetchInstrumentationHandler(_getFetchBreadcrumbHandler(i)),t.history&&addHistoryInstrumentationHandler(_getHistoryBreadcrumbHandler(i)),t.sentry&&i.on("beforeSendEvent",_getSentryBreadcrumbHandler(i))}}},breadcrumbsIntegration=_breadcrumbsIntegration;function _getSentryBreadcrumbHandler(e){return function(i){getClient()===e&&addBreadcrumb({category:`sentry.${i.type==="transaction"?"transaction":"event"}`,event_id:i.event_id,level:i.level,message:getEventDescription(i)},{event:i})}}function _getDomBreadcrumbHandler(e,t){return function(s){if(getClient()!==e)return;let o,a,l=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>MAX_ALLOWED_STRING_LENGTH&&(DEBUG_BUILD&&debug.warn(`\`dom.maxStringLength\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${c} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`),c=MAX_ALLOWED_STRING_LENGTH),typeof l=="string"&&(l=[l]);try{const d=s.event,p=_isEvent(d)?d.target:d;o=htmlTreeAsString(p,{keyAttrs:l,maxStringLength:c}),a=getComponentName(p)}catch{o="<unknown>"}if(o.length===0)return;const u={category:`ui.${s.name}`,message:o};a&&(u.data={"ui.component_name":a}),addBreadcrumb(u,{event:s.event,name:s.name,global:s.global})}}function _getConsoleBreadcrumbHandler(e){return function(i){if(getClient()!==e)return;const s={category:"console",data:{arguments:i.args,logger:"console"},level:severityLevelFromString(i.level),message:safeJoin(i.args," ")};if(i.level==="assert")if(i.args[0]===!1)s.message=`Assertion failed: ${safeJoin(i.args.slice(1)," ")||"console.assert"}`,s.data.arguments=i.args.slice(1);else return;addBreadcrumb(s,{input:i.args,level:i.level})}}function _getXhrBreadcrumbHandler(e){return function(i){if(getClient()!==e)return;const{startTimestamp:s,endTimestamp:o}=i,a=i.xhr[SENTRY_XHR_DATA_KEY];if(!s||!o||!a)return;const{method:l,url:c,status_code:u,body:d}=a,p={method:l,url:c,status_code:u},m={xhr:i.xhr,input:d,startTimestamp:s,endTimestamp:o},g={category:"xhr",data:p,type:"http",level:getBreadcrumbLogLevelFromHttpStatusCode(u)};e.emit("beforeOutgoingRequestBreadcrumb",g,m),addBreadcrumb(g,m)}}function _getFetchBreadcrumbHandler(e){return function(i){if(getClient()!==e)return;const{startTimestamp:s,endTimestamp:o}=i;if(o&&!(i.fetchData.url.match(/sentry_key/)&&i.fetchData.method==="POST"))if(i.fetchData.method,i.fetchData.url,i.error){const a=i.fetchData,l={data:i.error,input:i.args,startTimestamp:s,endTimestamp:o},c={category:"fetch",data:a,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",c,l),addBreadcrumb(c,l)}else{const a=i.response,l={...i.fetchData,status_code:a==null?void 0:a.status};i.fetchData.request_body_size,i.fetchData.response_body_size,a==null||a.status;const c={input:i.args,response:a,startTimestamp:s,endTimestamp:o},u={category:"fetch",data:l,type:"http",level:getBreadcrumbLogLevelFromHttpStatusCode(l.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",u,c),addBreadcrumb(u,c)}}}function _getHistoryBreadcrumbHandler(e){return function(i){if(getClient()!==e)return;let s=i.from,o=i.to;const a=parseUrl(WINDOW$1.location.href);let l=s?parseUrl(s):void 0;const c=parseUrl(o);l!=null&&l.path||(l=a),a.protocol===c.protocol&&a.host===c.host&&(o=c.relative),a.protocol===l.protocol&&a.host===l.host&&(s=l.relative),addBreadcrumb({category:"navigation",data:{from:s,to:o}})}}function _isEvent(e){return!!e&&!!e.target}const DEFAULT_EVENT_TARGET=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],INTEGRATION_NAME$2="BrowserApiErrors",_browserApiErrorsIntegration=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:INTEGRATION_NAME$2,setupOnce(){t.setTimeout&&fill(WINDOW$1,"setTimeout",_wrapTimeFunction),t.setInterval&&fill(WINDOW$1,"setInterval",_wrapTimeFunction),t.requestAnimationFrame&&fill(WINDOW$1,"requestAnimationFrame",_wrapRAF),t.XMLHttpRequest&&"XMLHttpRequest"in WINDOW$1&&fill(XMLHttpRequest.prototype,"send",_wrapXHR);const i=t.eventTarget;i&&(Array.isArray(i)?i:DEFAULT_EVENT_TARGET).forEach(o=>_wrapEventTarget(o,t))}}},browserApiErrorsIntegration=_browserApiErrorsIntegration;function _wrapTimeFunction(e){return function(...t){const i=t[0];return t[0]=wrap(i,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${getFunctionName(e)}`}}),e.apply(this,t)}}function _wrapRAF(e){return function(t){return e.apply(this,[wrap(t,{mechanism:{data:{handler:getFunctionName(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function _wrapXHR(e){return function(...t){const i=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in i&&typeof i[o]=="function"&&fill(i,o,function(a){const l={mechanism:{data:{handler:getFunctionName(a)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},c=getOriginalFunction(a);return c&&(l.mechanism.data.handler=getFunctionName(c)),wrap(a,l)})}),e.apply(this,t)}}function _wrapEventTarget(e,t){var o,a;const s=(o=WINDOW$1[e])==null?void 0:o.prototype;(a=s==null?void 0:s.hasOwnProperty)!=null&&a.call(s,"addEventListener")&&(fill(s,"addEventListener",function(l){return function(c,u,d){try{isEventListenerObject(u)&&(u.handleEvent=wrap(u.handleEvent,{mechanism:{data:{handler:getFunctionName(u),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&unregisterOriginalCallback(this,c,u),l.apply(this,[c,wrap(u,{mechanism:{data:{handler:getFunctionName(u),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),d])}}),fill(s,"removeEventListener",function(l){return function(c,u,d){try{const p=u.__sentry_wrapped__;p&&l.call(this,c,p,d)}catch{}return l.call(this,c,u,d)}}))}function isEventListenerObject(e){return typeof e.handleEvent=="function"}function unregisterOriginalCallback(e,t,i){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,i)}const browserSessionIntegration=()=>({name:"BrowserSession",setupOnce(){if(typeof WINDOW$1.document>"u"){DEBUG_BUILD&&debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}startSession({ignoreDuration:!0}),captureSession(),addHistoryInstrumentationHandler(({from:e,to:t})=>{e!==void 0&&e!==t&&(startSession({ignoreDuration:!0}),captureSession())})}}),INTEGRATION_NAME$1="GlobalHandlers",_globalHandlersIntegration=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:INTEGRATION_NAME$1,setupOnce(){Error.stackTraceLimit=50},setup(i){t.onerror&&(_installGlobalOnErrorHandler(i),globalHandlerLog("onerror")),t.onunhandledrejection&&(_installGlobalOnUnhandledRejectionHandler(i),globalHandlerLog("onunhandledrejection"))}}},globalHandlersIntegration=_globalHandlersIntegration;function _installGlobalOnErrorHandler(e){addGlobalErrorInstrumentationHandler(t=>{const{stackParser:i,attachStacktrace:s}=getOptions();if(getClient()!==e||shouldIgnoreOnError())return;const{msg:o,url:a,line:l,column:c,error:u}=t,d=_enhanceEventWithInitialFrame(eventFromUnknownInput(i,u||o,void 0,s,!1),a,l,c);d.level="error",captureEvent(d,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function _installGlobalOnUnhandledRejectionHandler(e){addGlobalUnhandledRejectionInstrumentationHandler(t=>{const{stackParser:i,attachStacktrace:s}=getOptions();if(getClient()!==e||shouldIgnoreOnError())return;const o=_getUnhandledRejectionError(t),a=isPrimitive(o)?_eventFromRejectionWithPrimitive(o):eventFromUnknownInput(i,o,void 0,s,!0);a.level="error",captureEvent(a,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function _getUnhandledRejectionError(e){if(isPrimitive(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function _eventFromRejectionWithPrimitive(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function _enhanceEventWithInitialFrame(e,t,i,s){const o=e.exception=e.exception||{},a=o.values=o.values||[],l=a[0]=a[0]||{},c=l.stacktrace=l.stacktrace||{},u=c.frames=c.frames||[],d=s,p=i,m=getFilenameFromUrl(t)??getLocationHref();return u.length===0&&u.push({colno:d,filename:m,function:UNKNOWN_FUNCTION,in_app:!0,lineno:p}),e}function globalHandlerLog(e){DEBUG_BUILD&&debug.log(`Global Handler attached: ${e}`)}function getOptions(){const e=getClient();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function getFilenameFromUrl(e){if(!(!isString$2(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),i=t?t[1]:"text/javascript",s=e.includes("base64,");return`<data:${i}${s?",base64":""}>`}return e.slice(0,1024)}}const httpContextIntegration=()=>({name:"HttpContext",preprocessEvent(e){var s;if(!WINDOW$1.navigator&&!WINDOW$1.location&&!WINDOW$1.document)return;const t=getHttpRequestData(),i={...t.headers,...(s=e.request)==null?void 0:s.headers};e.request={...t,...e.request,headers:i}}}),DEFAULT_KEY="cause",DEFAULT_LIMIT=5,INTEGRATION_NAME="LinkedErrors",_linkedErrorsIntegration=(e={})=>{const t=e.limit||DEFAULT_LIMIT,i=e.key||DEFAULT_KEY;return{name:INTEGRATION_NAME,preprocessEvent(s,o,a){const l=a.getOptions();applyAggregateErrorsToEvent(exceptionFromError,l.stackParser,i,t,s,o)}}},linkedErrorsIntegration=_linkedErrorsIntegration;function checkAndWarnIfIsEmbeddedBrowserExtension(){return _isEmbeddedBrowserExtension()?(DEBUG_BUILD&&consoleSandbox(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function _isEmbeddedBrowserExtension(){var a;if(typeof WINDOW$1.window>"u")return!1;const e=WINDOW$1;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((a=t==null?void 0:t.runtime)!=null&&a.id))return!1;const i=getLocationHref(),s=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(WINDOW$1===WINDOW$1.top&&s.some(l=>i.startsWith(`${l}://`)))}function getDefaultIntegrations(e){return[inboundFiltersIntegration(),functionToStringIntegration(),browserApiErrorsIntegration(),breadcrumbsIntegration(),globalHandlersIntegration(),linkedErrorsIntegration(),dedupeIntegration(),httpContextIntegration(),browserSessionIntegration()]}function init$1(e={}){const t=!e.skipBrowserExtensionCheck&&checkAndWarnIfIsEmbeddedBrowserExtension(),i={...e,enabled:t?!1:e.enabled,stackParser:stackParserFromStackParserOptions(e.stackParser||defaultStackParser),integrations:getIntegrationsToSetup({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?getDefaultIntegrations():e.defaultIntegrations}),transport:e.transport||makeFetchTransport};return initAndBind(BrowserClient,i)}function init(e){const t={...e};return applySdkMetadata(t,"react"),setContext("react",{version:reactExports.version}),init$1(t)}var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},defaultTimeoutProvider={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},TimeoutManager=(Gt=class{constructor(){Ye(this,ct,defaultTimeoutProvider);Ye(this,_t,!1)}setTimeoutProvider(e){Le(this,ct,e)}setTimeout(e,t){return te(this,ct).setTimeout(e,t)}clearTimeout(e){te(this,ct).clearTimeout(e)}setInterval(e,t){return te(this,ct).setInterval(e,t)}clearInterval(e){te(this,ct).clearInterval(e)}},ct=new WeakMap,_t=new WeakMap,Gt),timeoutManager=new TimeoutManager;function systemSetTimeoutZero(e){setTimeout(e,0)}var isServer=typeof window>"u"||"Deno"in globalThis;function noop$1(){}function functionalUpdate(e,t){return typeof e=="function"?e(t):e}function isValidTimeout(e){return typeof e=="number"&&e>=0&&e!==1/0}function timeUntilStale(e,t){return Math.max(e+(t||0)-Date.now(),0)}function resolveStaleTime(e,t){return typeof e=="function"?e(t):e}function resolveEnabled(e,t){return typeof e=="function"?e(t):e}function matchQuery(e,t){const{type:i="all",exact:s,fetchStatus:o,predicate:a,queryKey:l,stale:c}=e;if(l){if(s){if(t.queryHash!==hashQueryKeyByOptions(l,t.options))return!1}else if(!partialMatchKey(t.queryKey,l))return!1}if(i!=="all"){const u=t.isActive();if(i==="active"&&!u||i==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||a&&!a(t))}function matchMutation(e,t){const{exact:i,status:s,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(i){if(hashKey(t.options.mutationKey)!==hashKey(a))return!1}else if(!partialMatchKey(t.options.mutationKey,a))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function hashQueryKeyByOptions(e,t){return((t==null?void 0:t.queryKeyHashFn)||hashKey)(e)}function hashKey(e){return JSON.stringify(e,(t,i)=>isPlainObject(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function partialMatchKey(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(i=>partialMatchKey(e[i],t[i])):!1}var hasOwn=Object.prototype.hasOwnProperty;function replaceEqualDeep(e,t){if(e===t)return e;const i=isPlainArray(e)&&isPlainArray(t);if(!i&&!(isPlainObject(e)&&isPlainObject(t)))return t;const o=(i?e:Object.keys(e)).length,a=i?t:Object.keys(t),l=a.length,c=i?new Array(l):{};let u=0;for(let d=0;d<l;d++){const p=i?d:a[d],m=e[p],g=t[p];if(m===g){c[p]=m,(i?d<o:hasOwn.call(e,p))&&u++;continue}if(m===null||g===null||typeof m!="object"||typeof g!="object"){c[p]=g;continue}const b=replaceEqualDeep(m,g);c[p]=b,b===m&&u++}return o===l&&u===o?e:c}function shallowEqualObjects(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}function isPlainArray(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;const t=e.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!hasObjectPrototype(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function hasObjectPrototype(e){return Object.prototype.toString.call(e)==="[object Object]"}function sleep(e){return new Promise(t=>{timeoutManager.setTimeout(t,e)})}function replaceData(e,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?replaceEqualDeep(e,t):t}function addToEnd(e,t,i=0){const s=[...e,t];return i&&s.length>i?s.slice(1):s}function addToStart(e,t,i=0){const s=[t,...e];return i&&s.length>i?s.slice(0,-1):s}var skipToken=Symbol();function ensureQueryFn(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function shouldThrowError(e,t){return typeof e=="function"?e(...t):!!e}var FocusManager=(ec=class extends Subscribable{constructor(){super();Ye(this,vr);Ye(this,Fr);Ye(this,fi);Le(this,fi,t=>{if(!isServer&&window.addEventListener){const i=()=>t();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){te(this,Fr)||this.setEventListener(te(this,fi))}onUnsubscribe(){var t;this.hasListeners()||((t=te(this,Fr))==null||t.call(this),Le(this,Fr,void 0))}setEventListener(t){var i;Le(this,fi,t),(i=te(this,Fr))==null||i.call(this),Le(this,Fr,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){te(this,vr)!==t&&(Le(this,vr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(i=>{i(t)})}isFocused(){var t;return typeof te(this,vr)=="boolean"?te(this,vr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},vr=new WeakMap,Fr=new WeakMap,fi=new WeakMap,ec),focusManager=new FocusManager;function pendingThenable(){let e,t;const i=new Promise((o,a)=>{e=o,t=a});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),e(o)},i.reject=o=>{s({status:"rejected",reason:o}),t(o)},i}var defaultScheduler=systemSetTimeoutZero;function createNotifyManager(){let e=[],t=0,i=c=>{c()},s=c=>{c()},o=defaultScheduler;const a=c=>{t?e.push(c):o(()=>{i(c)})},l=()=>{const c=e;e=[],c.length&&o(()=>{s(()=>{c.forEach(u=>{i(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||l()}return u},batchCalls:c=>(...u)=>{a(()=>{c(...u)})},schedule:a,setNotifyFunction:c=>{i=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{o=c}}}var notifyManager=createNotifyManager(),OnlineManager=(tc=class extends Subscribable{constructor(){super();Ye(this,di,!0);Ye(this,mn);Ye(this,pi);Le(this,pi,t=>{if(!isServer&&window.addEventListener){const i=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}})}onSubscribe(){te(this,mn)||this.setEventListener(te(this,pi))}onUnsubscribe(){var t;this.hasListeners()||((t=te(this,mn))==null||t.call(this),Le(this,mn,void 0))}setEventListener(t){var i;Le(this,pi,t),(i=te(this,mn))==null||i.call(this),Le(this,mn,t(this.setOnline.bind(this)))}setOnline(t){te(this,di)!==t&&(Le(this,di,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return te(this,di)}},di=new WeakMap,mn=new WeakMap,pi=new WeakMap,tc),onlineManager=new OnlineManager;function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return(e??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function createRetryer(e){let t=!1,i=0,s;const o=pendingThenable(),a=()=>o.status!=="pending",l=S=>{var w;if(!a()){const E=new CancelledError(S);g(E),(w=e.onCancel)==null||w.call(e,E)}},c=()=>{t=!0},u=()=>{t=!1},d=()=>focusManager.isFocused()&&(e.networkMode==="always"||onlineManager.isOnline())&&e.canRun(),p=()=>canFetch(e.networkMode)&&e.canRun(),m=S=>{a()||(s==null||s(),o.resolve(S))},g=S=>{a()||(s==null||s(),o.reject(S))},b=()=>new Promise(S=>{var w;s=E=>{(a()||d())&&S(E)},(w=e.onPause)==null||w.call(e)}).then(()=>{var S;s=void 0,a()||(S=e.onContinue)==null||S.call(e)}),y=()=>{if(a())return;let S;const w=i===0?e.initialPromise:void 0;try{S=w??e.fn()}catch(E){S=Promise.reject(E)}Promise.resolve(S).then(m).catch(E=>{var k;if(a())return;const A=e.retry??(isServer?0:3),T=e.retryDelay??defaultRetryDelay,P=typeof T=="function"?T(i,E):T,O=A===!0||typeof A=="number"&&i<A||typeof A=="function"&&A(i,E);if(t||!O){g(E);return}i++,(k=e.onFail)==null||k.call(e,i,E),sleep(P).then(()=>d()?void 0:b()).then(()=>{t?g(E):y()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(s==null||s(),o),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?y():b().then(y),o)}}var Removable=(rc=class{constructor(){Ye(this,Fn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Le(this,Fn,timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(isServer?1/0:5*60*1e3))}clearGcTimeout(){te(this,Fn)&&(timeoutManager.clearTimeout(te(this,Fn)),Le(this,Fn,void 0))}},Fn=new WeakMap,rc),define_process_env_default$4={NODE_ENV:"production",version:"1.92.2",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"},Query=(nc=class extends Removable{constructor(t){super();Ye(this,Tr);Ye(this,jn);Ye(this,mi);Ye(this,yr);Ye(this,Bn);Ye(this,Bt);Ye(this,rs);Ye(this,Vn);Le(this,Vn,!1),Le(this,rs,t.defaultOptions),this.setOptions(t.options),this.observers=[],Le(this,Bn,t.client),Le(this,yr,te(this,Bn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Le(this,jn,getDefaultState$1(this.options)),this.state=t.state??te(this,jn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=te(this,Bt))==null?void 0:t.promise}setOptions(t){if(this.options={...te(this,rs),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=getDefaultState$1(this.options);i.data!==void 0&&(this.setData(i.data,{updatedAt:i.dataUpdatedAt,manual:!0}),Le(this,jn,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&te(this,yr).remove(this)}setData(t,i){const s=replaceData(this.state.data,t,this.options);return st(this,Tr,pn).call(this,{data:s,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),s}setState(t,i){st(this,Tr,pn).call(this,{type:"setState",state:t,setStateOptions:i})}cancel(t){var s,o;const i=(s=te(this,Bt))==null?void 0:s.promise;return(o=te(this,Bt))==null||o.cancel(t),i?i.then(noop$1).catch(noop$1):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(te(this,jn))}isActive(){return this.observers.some(t=>resolveEnabled(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>resolveStaleTime(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!timeUntilStale(this.state.dataUpdatedAt,t)}onFocus(){var i;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(i=te(this,Bt))==null||i.continue()}onOnline(){var i;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(i=te(this,Bt))==null||i.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),te(this,yr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(i=>i!==t),this.observers.length||(te(this,Bt)&&(te(this,Vn)?te(this,Bt).cancel({revert:!0}):te(this,Bt).cancelRetry()),this.scheduleGc()),te(this,yr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||st(this,Tr,pn).call(this,{type:"invalidate"})}async fetch(t,i){var u,d,p,m,g,b,y,S,w,E,A,T;if(this.state.fetchStatus!=="idle"&&((u=te(this,Bt))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(te(this,Bt))return te(this,Bt).continueRetry(),te(this,Bt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const P=this.observers.find(O=>O.options.queryFn);P&&this.setOptions(P.options)}const s=new AbortController,o=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(Le(this,Vn,!0),s.signal)})},a=()=>{const P=ensureQueryFn(this.options,i),k=(()=>{const F={client:te(this,Bn),queryKey:this.queryKey,meta:this.meta};return o(F),F})();return Le(this,Vn,!1),this.options.persister?this.options.persister(P,k,this):P(k)},c=(()=>{const P={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:te(this,Bn),state:this.state,fetchFn:a};return o(P),P})();(d=this.options.behavior)==null||d.onFetch(c,this),Le(this,mi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=c.fetchOptions)==null?void 0:p.meta))&&st(this,Tr,pn).call(this,{type:"fetch",meta:(m=c.fetchOptions)==null?void 0:m.meta}),Le(this,Bt,createRetryer({initialPromise:i==null?void 0:i.initialPromise,fn:c.fetchFn,onCancel:P=>{P instanceof CancelledError&&P.revert&&this.setState({...te(this,mi),fetchStatus:"idle"}),s.abort()},onFail:(P,O)=>{st(this,Tr,pn).call(this,{type:"failed",failureCount:P,error:O})},onPause:()=>{st(this,Tr,pn).call(this,{type:"pause"})},onContinue:()=>{st(this,Tr,pn).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const P=await te(this,Bt).start();if(P===void 0)throw define_process_env_default$4.NODE_ENV,new Error(`${this.queryHash} data is undefined`);return this.setData(P),(b=(g=te(this,yr).config).onSuccess)==null||b.call(g,P,this),(S=(y=te(this,yr).config).onSettled)==null||S.call(y,P,this.state.error,this),P}catch(P){if(P instanceof CancelledError){if(P.silent)return te(this,Bt).promise;if(P.revert){if(this.state.data===void 0)throw P;return this.state.data}}throw st(this,Tr,pn).call(this,{type:"error",error:P}),(E=(w=te(this,yr).config).onError)==null||E.call(w,P,this),(T=(A=te(this,yr).config).onSettled)==null||T.call(A,this.state.data,P,this),P}finally{this.scheduleGc()}}},jn=new WeakMap,mi=new WeakMap,yr=new WeakMap,Bn=new WeakMap,Bt=new WeakMap,rs=new WeakMap,Vn=new WeakMap,Tr=new WeakSet,pn=function(t){const i=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...fetchState(s.data,this.options),fetchMeta:t.meta??null};case"success":const o={...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Le(this,mi,t.manual?o:void 0),o;case"error":const a=t.error;return{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=i(this.state),notifyManager.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),te(this,yr).notify({query:this,type:"updated",action:t})})},nc);function fetchState(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function getDefaultState$1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,i=t!==void 0,s=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var QueryObserver=(ic=class extends Subscribable{constructor(t,i){super();Ye(this,mt);Ye(this,sr);Ye(this,lt);Ye(this,ns);Ye(this,er);Ye(this,Un);Ye(this,gi);Ye(this,Xr);Ye(this,gn);Ye(this,is);Ye(this,vi);Ye(this,yi);Ye(this,zn);Ye(this,Gn);Ye(this,vn);Ye(this,_i,new Set);this.options=i,Le(this,sr,t),Le(this,gn,null),Le(this,Xr,pendingThenable()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(te(this,lt).addObserver(this),shouldFetchOnMount(te(this,lt),this.options)?st(this,mt,Gs).call(this):this.updateResult(),st(this,mt,Yl).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(te(this,lt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(te(this,lt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,st(this,mt,Xl).call(this),st(this,mt,Ql).call(this),te(this,lt).removeObserver(this)}setOptions(t){const i=this.options,s=te(this,lt);if(this.options=te(this,sr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,te(this,lt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");st(this,mt,Jl).call(this),te(this,lt).setOptions(this.options),i._defaulted&&!shallowEqualObjects(this.options,i)&&te(this,sr).getQueryCache().notify({type:"observerOptionsUpdated",query:te(this,lt),observer:this});const o=this.hasListeners();o&&shouldFetchOptionally(te(this,lt),s,this.options,i)&&st(this,mt,Gs).call(this),this.updateResult(),o&&(te(this,lt)!==s||resolveEnabled(this.options.enabled,te(this,lt))!==resolveEnabled(i.enabled,te(this,lt))||resolveStaleTime(this.options.staleTime,te(this,lt))!==resolveStaleTime(i.staleTime,te(this,lt)))&&st(this,mt,Hl).call(this);const a=st(this,mt,ql).call(this);o&&(te(this,lt)!==s||resolveEnabled(this.options.enabled,te(this,lt))!==resolveEnabled(i.enabled,te(this,lt))||a!==te(this,vn))&&st(this,mt,Kl).call(this,a)}getOptimisticResult(t){const i=te(this,sr).getQueryCache().build(te(this,sr),t),s=this.createResult(i,t);return shouldAssignObserverCurrentProperties(this,s)&&(Le(this,er,s),Le(this,gi,this.options),Le(this,Un,te(this,lt).state)),s}getCurrentResult(){return te(this,er)}trackResult(t,i){return new Proxy(t,{get:(s,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&!this.options.experimental_prefetchInRender&&te(this,Xr).status==="pending"&&te(this,Xr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,o))})}trackProp(t){te(this,_i).add(t)}getCurrentQuery(){return te(this,lt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const i=te(this,sr).defaultQueryOptions(t),s=te(this,sr).getQueryCache().build(te(this,sr),i);return s.fetch().then(()=>this.createResult(s,i))}fetch(t){return st(this,mt,Gs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),te(this,er)))}createResult(t,i){var U;const s=te(this,lt),o=this.options,a=te(this,er),l=te(this,Un),c=te(this,gi),d=t!==s?t.state:te(this,ns),{state:p}=t;let m={...p},g=!1,b;if(i._optimisticResults){const H=this.hasListeners(),Y=!H&&shouldFetchOnMount(t,i),Z=H&&shouldFetchOptionally(t,s,i,o);(Y||Z)&&(m={...m,...fetchState(p.data,t.options)}),i._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:y,errorUpdatedAt:S,status:w}=m;b=m.data;let E=!1;if(i.placeholderData!==void 0&&b===void 0&&w==="pending"){let H;a!=null&&a.isPlaceholderData&&i.placeholderData===(c==null?void 0:c.placeholderData)?(H=a.data,E=!0):H=typeof i.placeholderData=="function"?i.placeholderData((U=te(this,yi))==null?void 0:U.state.data,te(this,yi)):i.placeholderData,H!==void 0&&(w="success",b=replaceData(a==null?void 0:a.data,H,i),g=!0)}if(i.select&&b!==void 0&&!E)if(a&&b===(l==null?void 0:l.data)&&i.select===te(this,is))b=te(this,vi);else try{Le(this,is,i.select),b=i.select(b),b=replaceData(a==null?void 0:a.data,b,i),Le(this,vi,b),Le(this,gn,null)}catch(H){Le(this,gn,H)}te(this,gn)&&(y=te(this,gn),b=te(this,vi),S=Date.now(),w="error");const A=m.fetchStatus==="fetching",T=w==="pending",P=w==="error",O=T&&A,k=b!==void 0,N={status:w,fetchStatus:m.fetchStatus,isPending:T,isSuccess:w==="success",isError:P,isInitialLoading:O,isLoading:O,data:b,dataUpdatedAt:m.dataUpdatedAt,error:y,errorUpdatedAt:S,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:A,isRefetching:A&&!T,isLoadingError:P&&!k,isPaused:m.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:P&&k,isStale:isStale(t,i),refetch:this.refetch,promise:te(this,Xr),isEnabled:resolveEnabled(i.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const H=ie=>{N.status==="error"?ie.reject(N.error):N.data!==void 0&&ie.resolve(N.data)},Y=()=>{const ie=Le(this,Xr,N.promise=pendingThenable());H(ie)},Z=te(this,Xr);switch(Z.status){case"pending":t.queryHash===s.queryHash&&H(Z);break;case"fulfilled":(N.status==="error"||N.data!==Z.value)&&Y();break;case"rejected":(N.status!=="error"||N.error!==Z.reason)&&Y();break}}return N}updateResult(){const t=te(this,er),i=this.createResult(te(this,lt),this.options);if(Le(this,Un,te(this,lt).state),Le(this,gi,this.options),te(this,Un).data!==void 0&&Le(this,yi,te(this,lt)),shallowEqualObjects(i,t))return;Le(this,er,i);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!te(this,_i).size)return!0;const l=new Set(a??te(this,_i));return this.options.throwOnError&&l.add("error"),Object.keys(te(this,er)).some(c=>{const u=c;return te(this,er)[u]!==t[u]&&l.has(u)})};st(this,mt,If).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&st(this,mt,Yl).call(this)}},sr=new WeakMap,lt=new WeakMap,ns=new WeakMap,er=new WeakMap,Un=new WeakMap,gi=new WeakMap,Xr=new WeakMap,gn=new WeakMap,is=new WeakMap,vi=new WeakMap,yi=new WeakMap,zn=new WeakMap,Gn=new WeakMap,vn=new WeakMap,_i=new WeakMap,mt=new WeakSet,Gs=function(t){st(this,mt,Jl).call(this);let i=te(this,lt).fetch(this.options,t);return t!=null&&t.throwOnError||(i=i.catch(noop$1)),i},Hl=function(){st(this,mt,Xl).call(this);const t=resolveStaleTime(this.options.staleTime,te(this,lt));if(isServer||te(this,er).isStale||!isValidTimeout(t))return;const s=timeUntilStale(te(this,er).dataUpdatedAt,t)+1;Le(this,zn,timeoutManager.setTimeout(()=>{te(this,er).isStale||this.updateResult()},s))},ql=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(te(this,lt)):this.options.refetchInterval)??!1},Kl=function(t){st(this,mt,Ql).call(this),Le(this,vn,t),!(isServer||resolveEnabled(this.options.enabled,te(this,lt))===!1||!isValidTimeout(te(this,vn))||te(this,vn)===0)&&Le(this,Gn,timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&st(this,mt,Gs).call(this)},te(this,vn)))},Yl=function(){st(this,mt,Hl).call(this),st(this,mt,Kl).call(this,st(this,mt,ql).call(this))},Xl=function(){te(this,zn)&&(timeoutManager.clearTimeout(te(this,zn)),Le(this,zn,void 0))},Ql=function(){te(this,Gn)&&(timeoutManager.clearInterval(te(this,Gn)),Le(this,Gn,void 0))},Jl=function(){const t=te(this,sr).getQueryCache().build(te(this,sr),this.options);if(t===te(this,lt))return;const i=te(this,lt);Le(this,lt,t),Le(this,ns,t.state),this.hasListeners()&&(i==null||i.removeObserver(this),t.addObserver(this))},If=function(t){notifyManager.batch(()=>{t.listeners&&this.listeners.forEach(i=>{i(te(this,er))}),te(this,sr).getQueryCache().notify({query:te(this,lt),type:"observerResultsUpdated"})})},ic);function shouldLoadOnMount(e,t){return resolveEnabled(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function shouldFetchOnMount(e,t){return shouldLoadOnMount(e,t)||e.state.data!==void 0&&shouldFetchOn(e,t,t.refetchOnMount)}function shouldFetchOn(e,t,i){if(resolveEnabled(t.enabled,e)!==!1&&resolveStaleTime(t.staleTime,e)!=="static"){const s=typeof i=="function"?i(e):i;return s==="always"||s!==!1&&isStale(e,t)}return!1}function shouldFetchOptionally(e,t,i,s){return(e!==t||resolveEnabled(s.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&isStale(e,i)}function isStale(e,t){return resolveEnabled(t.enabled,e)!==!1&&e.isStaleByTime(resolveStaleTime(t.staleTime,e))}function shouldAssignObserverCurrentProperties(e,t){return!shallowEqualObjects(e.getCurrentResult(),t)}function infiniteQueryBehavior(e){return{onFetch:(t,i)=>{var p,m,g,b,y;const s=t.options,o=(g=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:g.direction,a=((b=t.state.data)==null?void 0:b.pages)||[],l=((y=t.state.data)==null?void 0:y.pageParams)||[];let c={pages:[],pageParams:[]},u=0;const d=async()=>{let S=!1;const w=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?S=!0:t.signal.addEventListener("abort",()=>{S=!0}),t.signal)})},E=ensureQueryFn(t.options,t.fetchOptions),A=async(T,P,O)=>{if(S)return Promise.reject();if(P==null&&T.pages.length)return Promise.resolve(T);const F=(()=>{const Y={client:t.client,queryKey:t.queryKey,pageParam:P,direction:O?"backward":"forward",meta:t.options.meta};return w(Y),Y})(),N=await E(F),{maxPages:U}=t.options,H=O?addToStart:addToEnd;return{pages:H(T.pages,N,U),pageParams:H(T.pageParams,P,U)}};if(o&&a.length){const T=o==="backward",P=T?getPreviousPageParam:getNextPageParam,O={pages:a,pageParams:l},k=P(s,O);c=await A(O,k,T)}else{const T=e??a.length;do{const P=u===0?l[0]??s.initialPageParam:getNextPageParam(s,c);if(u>0&&P==null)break;c=await A(c,P),u++}while(u<T)}return c};t.options.persister?t.fetchFn=()=>{var S,w;return(w=(S=t.options).persister)==null?void 0:w.call(S,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i)}:t.fetchFn=d}}}function getNextPageParam(e,{pages:t,pageParams:i}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,i[s],i):void 0}function getPreviousPageParam(e,{pages:t,pageParams:i}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,i[0],i):void 0}var Mutation=(sc=class extends Removable{constructor(t){super();Ye(this,Br);Ye(this,ss);Ye(this,jr);Ye(this,tr);Ye(this,Wn);Le(this,ss,t.client),this.mutationId=t.mutationId,Le(this,tr,t.mutationCache),Le(this,jr,[]),this.state=t.state||getDefaultState(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){te(this,jr).includes(t)||(te(this,jr).push(t),this.clearGcTimeout(),te(this,tr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Le(this,jr,te(this,jr).filter(i=>i!==t)),this.scheduleGc(),te(this,tr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){te(this,jr).length||(this.state.status==="pending"?this.scheduleGc():te(this,tr).remove(this))}continue(){var t;return((t=te(this,Wn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,c,u,d,p,m,g,b,y,S,w,E,A,T,P,O,k,F,N,U;const i=()=>{st(this,Br,$n).call(this,{type:"continue"})},s={client:te(this,ss),meta:this.options.meta,mutationKey:this.options.mutationKey};Le(this,Wn,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(H,Y)=>{st(this,Br,$n).call(this,{type:"failed",failureCount:H,error:Y})},onPause:()=>{st(this,Br,$n).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>te(this,tr).canRun(this)}));const o=this.state.status==="pending",a=!te(this,Wn).canStart();try{if(o)i();else{st(this,Br,$n).call(this,{type:"pending",variables:t,isPaused:a}),await((c=(l=te(this,tr).config).onMutate)==null?void 0:c.call(l,t,this,s));const Y=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,t,s));Y!==this.state.context&&st(this,Br,$n).call(this,{type:"pending",context:Y,variables:t,isPaused:a})}const H=await te(this,Wn).start();return await((m=(p=te(this,tr).config).onSuccess)==null?void 0:m.call(p,H,t,this.state.context,this,s)),await((b=(g=this.options).onSuccess)==null?void 0:b.call(g,H,t,this.state.context,s)),await((S=(y=te(this,tr).config).onSettled)==null?void 0:S.call(y,H,null,this.state.variables,this.state.context,this,s)),await((E=(w=this.options).onSettled)==null?void 0:E.call(w,H,null,t,this.state.context,s)),st(this,Br,$n).call(this,{type:"success",data:H}),H}catch(H){try{throw await((T=(A=te(this,tr).config).onError)==null?void 0:T.call(A,H,t,this.state.context,this,s)),await((O=(P=this.options).onError)==null?void 0:O.call(P,H,t,this.state.context,s)),await((F=(k=te(this,tr).config).onSettled)==null?void 0:F.call(k,void 0,H,this.state.variables,this.state.context,this,s)),await((U=(N=this.options).onSettled)==null?void 0:U.call(N,void 0,H,t,this.state.context,s)),H}finally{st(this,Br,$n).call(this,{type:"error",error:H})}}finally{te(this,tr).runNext(this)}}},ss=new WeakMap,jr=new WeakMap,tr=new WeakMap,Wn=new WeakMap,Br=new WeakSet,$n=function(t){const i=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=i(this.state),notifyManager.batch(()=>{te(this,jr).forEach(s=>{s.onMutationUpdate(t)}),te(this,tr).notify({mutation:this,type:"updated",action:t})})},sc);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var MutationCache=(oc=class extends Subscribable{constructor(t={}){super();Ye(this,Qr);Ye(this,Ar);Ye(this,os);this.config=t,Le(this,Qr,new Set),Le(this,Ar,new Map),Le(this,os,0)}build(t,i,s){const o=new Mutation({client:t,mutationCache:this,mutationId:++oa(this,os)._,options:t.defaultMutationOptions(i),state:s});return this.add(o),o}add(t){te(this,Qr).add(t);const i=scopeFor(t);if(typeof i=="string"){const s=te(this,Ar).get(i);s?s.push(t):te(this,Ar).set(i,[t])}this.notify({type:"added",mutation:t})}remove(t){if(te(this,Qr).delete(t)){const i=scopeFor(t);if(typeof i=="string"){const s=te(this,Ar).get(i);if(s)if(s.length>1){const o=s.indexOf(t);o!==-1&&s.splice(o,1)}else s[0]===t&&te(this,Ar).delete(i)}}this.notify({type:"removed",mutation:t})}canRun(t){const i=scopeFor(t);if(typeof i=="string"){const s=te(this,Ar).get(i),o=s==null?void 0:s.find(a=>a.state.status==="pending");return!o||o===t}else return!0}runNext(t){var s;const i=scopeFor(t);if(typeof i=="string"){const o=(s=te(this,Ar).get(i))==null?void 0:s.find(a=>a!==t&&a.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){notifyManager.batch(()=>{te(this,Qr).forEach(t=>{this.notify({type:"removed",mutation:t})}),te(this,Qr).clear(),te(this,Ar).clear()})}getAll(){return Array.from(te(this,Qr))}find(t){const i={exact:!0,...t};return this.getAll().find(s=>matchMutation(i,s))}findAll(t={}){return this.getAll().filter(i=>matchMutation(t,i))}notify(t){notifyManager.batch(()=>{this.listeners.forEach(i=>{i(t)})})}resumePausedMutations(){const t=this.getAll().filter(i=>i.state.isPaused);return notifyManager.batch(()=>Promise.all(t.map(i=>i.continue().catch(noop$1))))}},Qr=new WeakMap,Ar=new WeakMap,os=new WeakMap,oc);function scopeFor(e){var t;return(t=e.options.scope)==null?void 0:t.id}var MutationObserver$1=(ac=class extends Subscribable{constructor(i,s){super();Ye(this,tn);Ye(this,Jr);Ye(this,yn);Ye(this,or);Ye(this,Zr);Le(this,Jr,i),this.setOptions(s),this.bindMethods(),st(this,tn,aa).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var o;const s=this.options;this.options=te(this,Jr).defaultMutationOptions(i),shallowEqualObjects(this.options,s)||te(this,Jr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:te(this,or),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&hashKey(s.mutationKey)!==hashKey(this.options.mutationKey)?this.reset():((o=te(this,or))==null?void 0:o.state.status)==="pending"&&te(this,or).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=te(this,or))==null||i.removeObserver(this)}onMutationUpdate(i){st(this,tn,aa).call(this),st(this,tn,Zl).call(this,i)}getCurrentResult(){return te(this,yn)}reset(){var i;(i=te(this,or))==null||i.removeObserver(this),Le(this,or,void 0),st(this,tn,aa).call(this),st(this,tn,Zl).call(this)}mutate(i,s){var o;return Le(this,Zr,s),(o=te(this,or))==null||o.removeObserver(this),Le(this,or,te(this,Jr).getMutationCache().build(te(this,Jr),this.options)),te(this,or).addObserver(this),te(this,or).execute(i)}},Jr=new WeakMap,yn=new WeakMap,or=new WeakMap,Zr=new WeakMap,tn=new WeakSet,aa=function(){var s;const i=((s=te(this,or))==null?void 0:s.state)??getDefaultState();Le(this,yn,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Zl=function(i){notifyManager.batch(()=>{var s,o,a,l,c,u,d,p;if(te(this,Zr)&&this.hasListeners()){const m=te(this,yn).variables,g=te(this,yn).context,b={client:te(this,Jr),meta:this.options.meta,mutationKey:this.options.mutationKey};(i==null?void 0:i.type)==="success"?((o=(s=te(this,Zr)).onSuccess)==null||o.call(s,i.data,m,g,b),(l=(a=te(this,Zr)).onSettled)==null||l.call(a,i.data,null,m,g,b)):(i==null?void 0:i.type)==="error"&&((u=(c=te(this,Zr)).onError)==null||u.call(c,i.error,m,g,b),(p=(d=te(this,Zr)).onSettled)==null||p.call(d,void 0,i.error,m,g,b))}this.listeners.forEach(m=>{m(te(this,yn))})})},ac),QueryCache=(lc=class extends Subscribable{constructor(t={}){super();Ye(this,Vr);this.config=t,Le(this,Vr,new Map)}build(t,i,s){const o=i.queryKey,a=i.queryHash??hashQueryKeyByOptions(o,i);let l=this.get(a);return l||(l=new Query({client:t,queryKey:o,queryHash:a,options:t.defaultQueryOptions(i),state:s,defaultOptions:t.getQueryDefaults(o)}),this.add(l)),l}add(t){te(this,Vr).has(t.queryHash)||(te(this,Vr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const i=te(this,Vr).get(t.queryHash);i&&(t.destroy(),i===t&&te(this,Vr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return te(this,Vr).get(t)}getAll(){return[...te(this,Vr).values()]}find(t){const i={exact:!0,...t};return this.getAll().find(s=>matchQuery(i,s))}findAll(t={}){const i=this.getAll();return Object.keys(t).length>0?i.filter(s=>matchQuery(t,s)):i}notify(t){notifyManager.batch(()=>{this.listeners.forEach(i=>{i(t)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Vr=new WeakMap,lc),QueryClient=(cc=class{constructor(e={}){Ye(this,kt);Ye(this,_n);Ye(this,bn);Ye(this,bi);Ye(this,xi);Ye(this,xn);Ye(this,Si);Ye(this,Ei);Le(this,kt,e.queryCache||new QueryCache),Le(this,_n,e.mutationCache||new MutationCache),Le(this,bn,e.defaultOptions||{}),Le(this,bi,new Map),Le(this,xi,new Map),Le(this,xn,0)}mount(){oa(this,xn)._++,te(this,xn)===1&&(Le(this,Si,focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),te(this,kt).onFocus())})),Le(this,Ei,onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),te(this,kt).onOnline())})))}unmount(){var e,t;oa(this,xn)._--,te(this,xn)===0&&((e=te(this,Si))==null||e.call(this),Le(this,Si,void 0),(t=te(this,Ei))==null||t.call(this),Le(this,Ei,void 0))}isFetching(e){return te(this,kt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return te(this,_n).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const t=this.defaultQueryOptions({queryKey:e});return(i=te(this,kt).get(t.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),i=te(this,kt).build(this,t),s=i.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(resolveStaleTime(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return te(this,kt).findAll(e).map(({queryKey:t,state:i})=>{const s=i.data;return[t,s]})}setQueryData(e,t,i){const s=this.defaultQueryOptions({queryKey:e}),o=te(this,kt).get(s.queryHash),a=o==null?void 0:o.state.data,l=functionalUpdate(t,a);if(l!==void 0)return te(this,kt).build(this,s).setData(l,{...i,manual:!0})}setQueriesData(e,t,i){return notifyManager.batch(()=>te(this,kt).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,i)]))}getQueryState(e){var i;const t=this.defaultQueryOptions({queryKey:e});return(i=te(this,kt).get(t.queryHash))==null?void 0:i.state}removeQueries(e){const t=te(this,kt);notifyManager.batch(()=>{t.findAll(e).forEach(i=>{t.remove(i)})})}resetQueries(e,t){const i=te(this,kt);return notifyManager.batch(()=>(i.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const i={revert:!0,...t},s=notifyManager.batch(()=>te(this,kt).findAll(e).map(o=>o.cancel(i)));return Promise.all(s).then(noop$1).catch(noop$1)}invalidateQueries(e,t={}){return notifyManager.batch(()=>(te(this,kt).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const i={...t,cancelRefetch:t.cancelRefetch??!0},s=notifyManager.batch(()=>te(this,kt).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let a=o.fetch(void 0,i);return i.throwOnError||(a=a.catch(noop$1)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(s).then(noop$1)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const i=te(this,kt).build(this,t);return i.isStaleByTime(resolveStaleTime(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(noop$1).catch(noop$1)}fetchInfiniteQuery(e){return e.behavior=infiniteQueryBehavior(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(noop$1).catch(noop$1)}ensureInfiniteQueryData(e){return e.behavior=infiniteQueryBehavior(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return onlineManager.isOnline()?te(this,_n).resumePausedMutations():Promise.resolve()}getQueryCache(){return te(this,kt)}getMutationCache(){return te(this,_n)}getDefaultOptions(){return te(this,bn)}setDefaultOptions(e){Le(this,bn,e)}setQueryDefaults(e,t){te(this,bi).set(hashKey(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...te(this,bi).values()],i={};return t.forEach(s=>{partialMatchKey(e,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(e,t){te(this,xi).set(hashKey(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...te(this,xi).values()],i={};return t.forEach(s=>{partialMatchKey(e,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const t={...te(this,bn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=hashQueryKeyByOptions(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...te(this,bn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){te(this,kt).clear(),te(this,_n).clear()}},kt=new WeakMap,_n=new WeakMap,bn=new WeakMap,bi=new WeakMap,xi=new WeakMap,xn=new WeakMap,Si=new WeakMap,Ei=new WeakMap,cc),QueryClientContext=reactExports.createContext(void 0),useQueryClient=e=>{const t=reactExports.useContext(QueryClientContext);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},QueryClientProvider=({client:e,children:t})=>(reactExports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:e,children:t})),IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext),ensurePreventErrorBoundaryRetry=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},useClearResetErrorBoundary=e=>{reactExports.useEffect(()=>{e.clearReset()},[e])},getHasError=({result:e,errorResetBoundary:t,throwOnError:i,query:s,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||shouldThrowError(i,[e.error,s])),defaultThrowOnError=(e,t)=>t.state.data===void 0,ensureSuspenseTimers=e=>{if(e.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...o)=>i(s(...o)):i(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},willFetch=(e,t)=>e.isLoading&&e.isFetching&&!t,shouldSuspend=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,fetchOptimistic=(e,t,i)=>t.fetchOptimistic(e).catch(()=>{i.clearReset()});function useBaseQuery(e,t,i){var m,g,b,y,S;const s=useIsRestoring(),o=useQueryErrorResetBoundary(),a=useQueryClient(),l=a.defaultQueryOptions(e);(g=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||g.call(m,l),l._optimisticResults=s?"isRestoring":"optimistic",ensureSuspenseTimers(l),ensurePreventErrorBoundaryRetry(l,o),useClearResetErrorBoundary(o);const c=!a.getQueryCache().get(l.queryHash),[u]=reactExports.useState(()=>new t(a,l)),d=u.getOptimisticResult(l),p=!s&&e.subscribed!==!1;if(reactExports.useSyncExternalStore(reactExports.useCallback(w=>{const E=p?u.subscribe(notifyManager.batchCalls(w)):noop$1;return u.updateResult(),E},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),reactExports.useEffect(()=>{u.setOptions(l)},[l,u]),shouldSuspend(l,d))throw fetchOptimistic(l,u,o);if(getHasError({result:d,errorResetBoundary:o,throwOnError:l.throwOnError,query:a.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;if((y=(b=a.getDefaultOptions().queries)==null?void 0:b._experimental_afterQuery)==null||y.call(b,l,d),l.experimental_prefetchInRender&&!isServer&&willFetch(d,s)){const w=c?fetchOptimistic(l,u,o):(S=a.getQueryCache().get(l.queryHash))==null?void 0:S.promise;w==null||w.catch(noop$1).finally(()=>{u.updateResult()})}return l.notifyOnChangeProps?d:u.trackResult(d)}function useQuery(e,t){return useBaseQuery(e,QueryObserver)}function useSuspenseQuery(e,t){return useBaseQuery({...e,enabled:!0,suspense:!0,throwOnError:defaultThrowOnError,placeholderData:void 0},QueryObserver)}function useMutation(e,t){const i=useQueryClient(),[s]=reactExports.useState(()=>new MutationObserver$1(i,e));reactExports.useEffect(()=>{s.setOptions(e)},[s,e]);const o=reactExports.useSyncExternalStore(reactExports.useCallback(l=>s.subscribe(notifyManager.batchCalls(l)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=reactExports.useCallback((l,c)=>{s.mutate(l,c).catch(noop$1)},[s]);if(o.error&&shouldThrowError(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}const PROFILE_TAG="profile";function useProfile(e){return useSuspenseQuery({queryKey:[PROFILE_TAG],queryFn:async()=>{const t=await window.CryptoSteamSDK.getProfile();return setUser({id:String(t.id)}),t},select:t=>({...t,inventory:t.inventory||[],balance_usdt:dividePriceResponse(t.balance_usdt),balances:{...t.balances,usdt:dividePriceResponse(t.balance_usdt)}}),...e})}const LevelInfoModal=({children:e})=>{const{t}=useTranslation(),[i,s]=reactExports.useState(!1),{data:{level_up_exp:o,experience:a,level:l,current_level_exp:c}}=useProfile(),[u]=useAnimateNumber(a);return jsxRuntimeExports.jsx(Drawer,{trigger:e,open:i,onOpenChange:s,children:jsxRuntimeExports.jsxs(DrawerContent,{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center gap-3",children:[jsxRuntimeExports.jsx("div",{className:"w-16 h-18 flex items-center justify-center",children:jsxRuntimeExports.jsx(XpProgress,{experience:a-c,xpNeeded:o-c,level:l,size:64,className:"text-[var(--tgui--button_color)]"})}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center gap-2",children:[jsxRuntimeExports.jsx(Title$1,{level:"2",weight:"1",children:t("levelInfoModal.title")}),jsxRuntimeExports.jsxs(Caption,{level:"1",weight:"2",className:"text-center",children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--tgui--text_color)"},children:u.toLocaleString()}),jsxRuntimeExports.jsxs("span",{style:{color:"var(--tgui--subtitle_text_color)"},children:[" / ",o.toLocaleString()," XP"]})]})]})]}),jsxRuntimeExports.jsx("div",{className:"-mt-1.5 text-center",children:jsxRuntimeExports.jsx(Subheadline,{level:"2",weight:"3",children:t("levelInfoModal.description")})}),jsxRuntimeExports.jsx(Button,{size:"s",stretched:!0,onClick:()=>s(!1),mode:"filled",style:{height:42},children:t("levelInfoModal.action")})]})})};function AnimatedBalance({value:e,style:t,className:i,colorText:s="",noRounding:o}){const[a,l]=useAnimateNumber(0,!1,o),[c,u]=reactExports.useState(s),d=reactExports.useRef(0),p=reactExports.useRef();reactExports.useEffect(()=>{const g=e,b=d.current;return p.current&&clearTimeout(p.current),b!==0&&(g>b?u("#22C55E"):g<b&&u("#FF7700")),l(g),p.current=setTimeout(()=>{u(s)},300),d.current=g,()=>{p.current&&clearTimeout(p.current)}},[e,l,s]);const m=o?Math.trunc((a??0)*100)/100:Math.round(a??0);return jsxRuntimeExports.jsx(Text,{weight:"1",className:cn$1("text-rounded",i),style:{color:c||"inherit",transition:"color 0.3s ease",...t},children:formatter.format(m)})}const Icons={thumbsDownOutlined:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m15.5 15.16-.61.53a.45.45 0 0 0-.15.24l-.92 4.36a3.1 3.1 0 0 1-4.37 2.24 3.24 3.24 0 0 1-1.8-2.93v-2.18c-1.82-.01-3.42-.47-4.57-1.6-1.17-1.14-1.7-2.8-1.7-4.88V9.77c0-2.07.53-3.74 1.7-4.87 1.16-1.12 2.78-1.57 4.6-1.57h7.87c.41-.53 1-.91 1.68-1.04.24-.04.5-.04.8-.04h.14A2.79 2.79 0 0 1 21.2 4.6c.04.24.04.52.04.83v7.72c0 .32 0 .6-.04.84a2.79 2.79 0 0 1-2.22 2.3c-.24.04-.5.04-.8.04h-.14c-.3 0-.57 0-.8-.04a2.73 2.73 0 0 1-1.75-1.13Zm-3.52 4.71a1.23 1.23 0 0 1-1.73.89 1.29 1.29 0 0 1-.72-1.16v-3.16a.96.96 0 0 0-.94-.97h-.9c-1.56 0-2.63-.4-3.32-1.06-.67-.66-1.12-1.74-1.12-3.47V9.77c0-1.73.45-2.8 1.12-3.44.68-.66 1.75-1.05 3.32-1.05h7.28V13.1a.96.96 0 0 0-.08.06l-1.21 1.04c-.4.34-.67.8-.78 1.33l-.92 4.35Zm6.67-5.5-.54.01-.55-.01a.87.87 0 0 1-.7-.72V4.93a.87.87 0 0 1 .7-.72l.55-.01.54.01c.36.07.64.36.7.72l.01.57v7.58l-.01.57a.87.87 0 0 1-.7.72Z",clipRule:"evenodd"})}),thumbsUpOutlined:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.2 8.97.6-.63c.05-.05.1-.12.11-.2l1.02-4.56a3.03 3.03 0 0 1 3.55-2.36 3.11 3.11 0 0 1 2.43 3.07v2.4h.1c1.94 0 3.55.43 4.66 1.57 1.1 1.15 1.52 2.81 1.52 4.82v1.09c0 2.08-.58 3.73-1.74 4.84A6.2 6.2 0 0 1 16 20.56h-7.9c-.33.48-.81.84-1.38 1-.33.08-.69.08-1.08.08h-.19c-.39 0-.75 0-1.08-.09a2.56 2.56 0 0 1-1.77-1.84 4.54 4.54 0 0 1-.09-1.11v-7.78c0-.4 0-.78.09-1.12.23-.9.9-1.6 1.77-1.84.33-.09.7-.09 1.08-.09h.19c.39 0 .75 0 1.08.1.61.16 1.13.56 1.46 1.1Zm3.57-4.95c.14-.62.73-1.02 1.34-.9.53.12.92.6.92 1.17v3.38c0 .54.42.97.94.97H16c1.73 0 2.73.39 3.33 1 .6.62.96 1.66.96 3.44v1.09c0 1.7-.46 2.77-1.13 3.41-.69.66-1.73 1.03-3.16 1.03L8.6 18.6v-7.28l1.54-1.6c.3-.31.52-.7.61-1.14l1.03-4.56Zm-5.06 6.9v7.58c0 .57-.01.66-.03.71a.64.64 0 0 1-.44.46c-.05.01-.14.02-.68.02-.55 0-.64 0-.69-.02a.64.64 0 0 1-.44-.46 4.12 4.12 0 0 1-.02-.71v-7.58c0-.57 0-.66.02-.71.05-.23.22-.4.44-.46.05-.02.14-.03.69-.03.54 0 .63.01.68.03.22.06.39.23.44.46.02.05.02.15.03.71Z",clipRule:"evenodd"})}),thumbsDownFilled:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"m21.32 13.75.01-.58V5l-.01-.59a2 2 0 0 0-1.74-1.73L19 2.67l-.59.01a2 2 0 0 0-1.73 1.73l-.01.59v8.17l.01.58a2 2 0 0 0 1.73 1.73c.13.02.28.02.59.02.3 0 .46 0 .58-.02a2 2 0 0 0 1.74-1.73ZM7.5 3.83c-3.79 0-6 1.79-6 5.89v1.26c0 4.1 2.21 5.69 6 5.69h1v3.65a2.18 2.18 0 0 0 4.26.63l1.73-5.52c.05-.17.08-.34.08-.5V5.7c0-.65 0-.98-.13-1.23-.11-.22-.3-.4-.51-.51-.25-.13-.58-.13-1.23-.13H7.5Z"})}),thumbsUpFilled:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"m2.68 10.24-.01.59v8.16l.01.59a2 2 0 0 0 1.73 1.73c.13.02.29.02.59.02s.46 0 .59-.02a2 2 0 0 0 1.73-1.73l.01-.59v-8.16l-.01-.59a2 2 0 0 0-1.73-1.73C5.46 8.5 5.3 8.5 5 8.5s-.46 0-.59.02a2 2 0 0 0-1.73 1.73ZM16.5 20.16c3.79 0 6-1.78 6-5.88v-1.26c0-4.1-2.21-5.7-6-5.7h-1V3.69a2.18 2.18 0 0 0-4.26-.63L9.51 8.57c-.05.16-.08.33-.08.5v9.22c0 .66 0 .98.13 1.23.11.22.29.4.51.51.25.13.58.13 1.23.13h5.2Z"})}),star:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M11.17 2.49a.87.87 0 0 1 1.66 0L13.9 5.7c.16.5.74.74 1.21.5l3.03-1.51a.87.87 0 0 1 1.17 1.17L17.8 8.9a.87.87 0 0 0 .5 1.21l3.21 1.07c.8.27.8 1.4 0 1.66L18.3 13.9a.87.87 0 0 0-.5 1.21l1.51 3.03a.87.87 0 0 1-1.17 1.17L15.1 17.8a.87.87 0 0 0-1.21.5l-1.07 3.21c-.27.8-1.4.8-1.66 0L10.1 18.3a.87.87 0 0 0-1.21-.5L5.86 19.3a.87.87 0 0 1-1.17-1.17L6.2 15.1a.87.87 0 0 0-.5-1.21l-3.21-1.07a.87.87 0 0 1 0-1.66L5.7 10.1c.5-.16.74-.74.5-1.21L4.7 5.86A.87.87 0 0 1 5.86 4.7L8.9 6.2a.87.87 0 0 0 1.21-.5l1.07-3.21Z"})}),smile:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 28 28",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.987 14c0-4.953 4.024-8.991 9.015-8.991S23.017 9.047 23.017 14s-4.024 8.991-9.015 8.991S4.987 18.953 4.987 14m9.015-11c-6.063 0-11 4.912-11 11s4.937 11 11 11 11-4.912 11-11-4.937-11-11-11m4.438 13.835a1.01 1.01 0 0 0-.604-1.283.99.99 0 0 0-1.27.616 1 1 0 0 1-.069.132 2.1 2.1 0 0 1-.372.466c-.348.331-.983.728-2.123.728s-1.775-.397-2.123-.727a2.1 2.1 0 0 1-.372-.467 1 1 0 0 1-.07-.132l-.005-.013-.003-.007a.99.99 0 0 0-1.261-.596c-.517.186-.787.76-.604 1.283l.89-.32-.89.32v.002l.002.003.002.006.005.013a2 2 0 0 0 .059.142c.038.084.092.194.166.321.148.254.38.582.722.908.704.67 1.82 1.272 3.482 1.272s2.778-.602 3.482-1.272a4.2 4.2 0 0 0 .722-.908 3.5 3.5 0 0 0 .225-.463l.005-.014.002-.005.001-.003v-.001l-.886-.32zM11.007 12.8c.688 0 1.247-.66 1.247-1.476s-.559-1.477-1.247-1.477c-.69 0-1.247.661-1.247 1.477 0 .815.558 1.476 1.247 1.476m5.986 0c.688 0 1.247-.66 1.247-1.476s-.559-1.477-1.247-1.477c-.69 0-1.247.661-1.247 1.477 0 .815.558 1.476 1.246 1.476Z",clipRule:"evenodd"})}),discountOutline:e=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:[jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.04 2.57a2.81 2.81 0 0 0-4.05 0l-.65.68a1.1 1.1 0 0 1-.9.33l-.94-.1a2.81 2.81 0 0 0-3.1 2.6L4.35 7c-.02.34-.2.65-.48.84l-.78.52a2.81 2.81 0 0 0-.7 3.98l.55.76c.2.28.26.63.17.95l-.26.9a2.81 2.81 0 0 0 2.02 3.5l.91.23c.33.08.6.31.74.62l.38.86a2.81 2.81 0 0 0 3.8 1.38l.84-.41c.3-.15.66-.15.97 0l.84.41c1.43.7 3.15.07 3.8-1.38l.38-.86c.14-.3.41-.54.74-.62l.9-.23a2.81 2.81 0 0 0 2.03-3.5l-.26-.9a1.1 1.1 0 0 1 .17-.95l.55-.76c.93-1.28.62-3.09-.7-3.98l-.78-.52a1.1 1.1 0 0 1-.48-.84l-.07-.93a2.81 2.81 0 0 0-3.1-2.6l-.93.1a1.1 1.1 0 0 1-.9-.33l-.65-.68Zm-2.81 1.2a1.1 1.1 0 0 1 1.57 0l.66.67c.6.62 1.45.93 2.31.84l.93-.1a1.1 1.1 0 0 1 1.21 1.02l.07.93c.06.87.51 1.65 1.23 2.14l.78.52c.51.35.64 1.05.27 1.56l-.55.76c-.5.7-.66 1.6-.43 2.42l.26.9a1.1 1.1 0 0 1-.79 1.37l-.9.23c-.85.2-1.54.8-1.9 1.58l-.38.86a1.1 1.1 0 0 1-1.48.54l-.84-.41a2.81 2.81 0 0 0-2.47 0l-.84.4a1.1 1.1 0 0 1-1.48-.53l-.38-.86a2.81 2.81 0 0 0-1.9-1.58l-.9-.23a1.1 1.1 0 0 1-.8-1.37l.27-.9c.24-.83.08-1.72-.43-2.42l-.55-.76a1.1 1.1 0 0 1 .27-1.56l.78-.52a2.81 2.81 0 0 0 1.23-2.14l.07-.93a1.1 1.1 0 0 1 1.2-1.02l.94.1c.86.1 1.71-.22 2.31-.84l.66-.68Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6c.36 0 .64.29.64.64v.68c1.66.17 2.8.98 3.17 1.86a.64.64 0 1 1-1.19.5c-.12-.3-.73-.9-1.98-1.07v2.82c1.22.19 2.02.53 2.52 1 .62.59.7 1.26.7 1.71 0 .84-.54 1.5-1.22 1.91-.55.34-1.24.55-2 .63v.68a.64.64 0 0 1-1.28 0v-.68c-1.66-.17-2.8-.98-3.17-1.86a.64.64 0 0 1 1.19-.5c.12.3.73.9 1.98 1.07v-2.82a4.62 4.62 0 0 1-2.52-1 2.21 2.21 0 0 1-.7-1.71c0-.84.54-1.5 1.23-1.91a4.78 4.78 0 0 1 1.99-.63v-.68c0-.35.29-.64.64-.64Zm-.64 2.61c-.54.07-1 .23-1.33.43-.45.28-.6.59-.6.82 0 .3.04.54.29.77.23.2.7.47 1.64.63V8.61Zm1.28 4.13v2.65c.54-.07 1-.23 1.33-.43.45-.28.6-.59.6-.82 0-.3-.04-.54-.29-.77-.22-.2-.7-.47-1.64-.63Z",clipRule:"evenodd"})]}),cup:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.6 1.71H9.4c-.57 0-1.05 0-1.45.04a3 3 0 0 0-1.2.33c-.57.3-1.06.85-1.32 1.44a3.57 3.57 0 0 0-.21 1.67c-.54-.1-1.1-.04-1.59.12A2.76 2.76 0 0 0 1.71 8c0 1.34.8 2.57 1.85 3.41a6.47 6.47 0 0 0 3.21 1.4c.15.35.3.67.47.98a6.82 6.82 0 0 0 2.39 2.7c-.03.47-.1.8-.18 1.02-.1.28-.21.44-.34.59l-.15.16-.1.1a2.28 2.28 0 0 0-.71 1.74v1.33c0 .47.38.86.85.86h6c.47 0 .86-.39.86-.86V20.1a2.28 2.28 0 0 0-.72-1.74l-.1-.1-.15-.16c-.13-.15-.25-.31-.34-.59a3.9 3.9 0 0 1-.18-1.02 6.82 6.82 0 0 0 2.39-2.7c.16-.3.32-.63.47-.98a6.47 6.47 0 0 0 3.21-1.4A4.57 4.57 0 0 0 22.3 8c0-1.42-.9-2.34-1.92-2.69a3.22 3.22 0 0 0-1.59-.12c.04-.62.01-1.16-.21-1.67a3.11 3.11 0 0 0-1.32-1.44 3 3 0 0 0-1.2-.33c-.4-.04-.88-.04-1.44-.04ZM12.7 17.1a4.72 4.72 0 0 1-1.4 0c-.05.37-.13.7-.22.97-.19.55-.45.9-.7 1.18l-.23.25-.06.06c-.08.08-.12.13-.15.18-.03.05-.08.13-.08.37v.47h4.28v-.47c0-.24-.05-.32-.08-.37a1.42 1.42 0 0 0-.17-.2l-.04-.04-.24-.25a3.3 3.3 0 0 1-.69-1.18c-.1-.28-.17-.6-.21-.97Zm6.66-7c-.43.35-.94.63-1.48.81.33-1.15.56-2.43.73-3.8.21-.2.7-.34 1.2-.16.44.15.76.48.76 1.06 0 .66-.41 1.43-1.21 2.09Zm-13.24.81a25.2 25.2 0 0 1-.73-3.8c-.21-.2-.7-.34-1.2-.16-.44.15-.76.48-.76 1.06 0 .66.41 1.43 1.21 2.09.43.35.94.63 1.48.81Zm1.45-7.32c.1-.05.24-.1.53-.12.31-.03.72-.03 1.33-.03h5.14c.61 0 1.02 0 1.33.03.3.02.43.07.53.12.23.13.46.38.57.62.1.25.1.54 0 1.72-.25 2.94-.85 5.39-1.75 7.06-.9 1.68-2 2.45-3.25 2.45s-2.35-.77-3.25-2.45c-.9-1.67-1.5-4.12-1.75-7.06-.1-1.18-.1-1.47 0-1.72.1-.24.34-.5.57-.62Z",clipRule:"evenodd"})}),games:e=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:[jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.82 3.86h.36c1.38 0 2.46 0 3.33.06.9.07 1.65.22 2.34.54a6.37 6.37 0 0 1 2.74 2.43c.4.64.62 1.35.78 2.22.17.85.29 1.91.44 3.27l.46 4.06c.05.45 0 .9-.13 1.34a3.4 3.4 0 0 1-6.17.7l-1.39-2.33a.22.22 0 0 0-.19-.11H9.61a.22.22 0 0 0-.19.1l-1.4 2.35a3.4 3.4 0 0 1-6.16-.7 3.3 3.3 0 0 1-.13-1.35l.46-4.06c.15-1.36.27-2.42.44-3.27.16-.87.39-1.58.78-2.22a6.37 6.37 0 0 1 2.74-2.43 6.6 6.6 0 0 1 2.34-.54c.87-.06 1.95-.06 3.33-.06Zm-3.2 1.7c-.79.07-1.3.18-1.73.38a4.7 4.7 0 0 0-2.02 1.8c-.25.4-.43.9-.57 1.67a45.2 45.2 0 0 0-.43 3.18l-.45 4.02a1.7 1.7 0 0 0 3.14 1.06l1.39-2.35c.34-.57.97-.93 1.66-.93h4.78c.7 0 1.32.36 1.66.93l1.4 2.35a1.69 1.69 0 0 0 3.13-1.06l-.45-4.02c-.16-1.4-.27-2.4-.43-3.18a4.83 4.83 0 0 0-.57-1.68 4.69 4.69 0 0 0-2.02-1.79 4.9 4.9 0 0 0-1.73-.37c-.8-.07-1.82-.07-3.23-.07h-.3c-1.41 0-2.43 0-3.23.07Zm-.09 2.42c.47 0 .85.37.85.82v.55h.54c.47 0 .85.37.85.83 0 .45-.38.82-.85.82h-.54v.55c0 .45-.38.82-.85.82a.84.84 0 0 1-.85-.82V11h-.54a.84.84 0 0 1-.84-.82c0-.46.38-.83.84-.83h.54V8.8c0-.45.38-.82.85-.82Z",clipRule:"evenodd"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M16.62 8.3c0 .47-.4.86-.9.86-.49 0-.89-.39-.89-.87s.4-.86.9-.86.9.38.9.86ZM18.51 10.12c0 .48-.4.87-.9.87-.49 0-.9-.39-.9-.87s.41-.86.9-.86c.5 0 .9.38.9.86ZM14.74 10.12c0 .48-.4.87-.9.87s-.9-.39-.9-.87.4-.86.9-.86.9.38.9.86ZM16.62 11.95c0 .48-.4.87-.9.87-.49 0-.89-.39-.89-.87s.4-.87.9-.87.9.4.9.87Z"})]}),download:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M19.14 19c.53 0 .96.45.96 1s-.43 1-.96 1H4.86a.98.98 0 0 1-.96-1c0-.55.43-1 .96-1h14.28ZM12 2c.53 0 .95.45.95 1v10.34l4.57-4.8a.91.91 0 0 1 1.34 0c.38.4.38 1.03 0 1.42l-6.19 6.5a.91.91 0 0 1-1.34 0l-6.2-6.5a1.04 1.04 0 0 1 0-1.42.93.93 0 0 1 1.35 0l4.57 4.8V3c0-.55.42-1 .95-1Z"})}),checkThin:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 28 28",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M24.66 6.21c.4.38.4 1 .03 1.4l-13.3 13.78a.99.99 0 0 1-1.43 0L3.31 14.5a.99.99 0 1 1 1.43-1.37l5.93 6.15 12.6-13.05a1 1 0 0 1 1.4-.02Z",clipRule:"evenodd"})}),addCircle:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.06 18.58a8.65 8.65 0 0 1-8.57-8.57c0-1.18.22-2.28.67-3.32a8.73 8.73 0 0 1 7.9-5.26c1.17 0 2.28.23 3.31.67a8.76 8.76 0 0 1 4.6 4.6c.45 1.03.67 2.13.67 3.3 0 1.18-.22 2.28-.67 3.32a8.76 8.76 0 0 1-4.6 4.59 8.24 8.24 0 0 1-3.31.67Zm0-1.7a6.76 6.76 0 0 0 4.87-2 6.9 6.9 0 1 0-4.87 2ZM10 5.5a.75.75 0 0 0-.75.75v3h-3a.75.75 0 0 0 0 1.5h3v3a.75.75 0 0 0 1.5 0v-3h3a.75.75 0 0 0 0-1.5h-3v-3A.75.75 0 0 0 10 5.5Z",clipRule:"evenodd"})}),search:e=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:[jsxRuntimeExports.jsx("circle",{cx:"9",cy:"10",r:"6",stroke:"currentColor",strokeWidth:"2"}),jsxRuntimeExports.jsx("rect",{width:"8",height:"2",x:"13.88",y:"13.46",fill:"currentColor",rx:"1",transform:"rotate(45 13.88 13.46)"})]}),chevronLeft:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 12",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M.72 6a.88.88 0 0 1 .25-.63L5.06.97a.66.66 0 0 1 .86-.13c.11.07.2.17.27.29a.84.84 0 0 1-.13.97L2.42 6l3.64 3.9c.15.17.22.36.22.58a.8.8 0 0 1-.36.68.66.66 0 0 1-.86-.12L.97 6.63c-.08-.1-.15-.2-.19-.3A.86.86 0 0 1 .72 6Z"})}),chevronRight:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 12",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M6.42 5.77c0 .12-.02.23-.07.33a.9.9 0 0 1-.21.3l-4.5 4.4a.77.77 0 0 1-.56.23.77.77 0 0 1-.4-.1.76.76 0 0 1-.4-.68c0-.22.09-.41.25-.58l4.01-3.9-4-3.9A.79.79 0 0 1 1.07.5c.21 0 .4.07.55.22l4.5 4.41c.1.1.17.2.22.3.05.1.07.2.07.33Z"})}),close:e=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...e,children:jsxRuntimeExports.jsx("path",{fill:"currentColor","fill-opacity":".8",d:"M7.86 17.14a1 1 0 0 1-1-1.02c0-.27.1-.52.3-.7L10.54 12l-3.4-3.4a.98.98 0 0 1-.3-.71c0-.58.45-1 1.01-1 .28 0 .5.09.7.27l3.42 3.42 3.45-3.43a1 1 0 0 1 1.72.71c0 .29-.1.5-.31.73L13.43 12l3.4 3.4c.2.18.3.44.3.72 0 .57-.45 1.02-1.03 1.02a.97.97 0 0 1-.72-.3l-3.4-3.4-3.38 3.4c-.2.2-.46.3-.74.3Z",opacity:".5"})})};function Icon({name:e,size:t=24,className:i,title:s,"aria-label":o,...a}){const l=Icons[e],c=!!(s||o);return jsxRuntimeExports.jsx(l,{className:cn$1("aspect-square",i),width:t,height:t,role:"img","aria-hidden":!c,"aria-label":o,...a,children:s?jsxRuntimeExports.jsx("title",{children:s}):null})}const useForceRerender=()=>{const[,e]=reactExports.useState(0);return()=>e(t=>t+1)},useMiniApp=()=>{const e=useForceRerender();return reactExports.useEffect(()=>{var i;const t=["viewportChanged","themeChanged","safeAreaChanged","contentSafeAreaChanged","fullscreenChanged"];for(const s of t)(i=window.Telegram.WebApp)==null||i.onEvent(s,e);return window.screen.orientation.addEventListener("change",e),()=>{var s;window.screen.orientation.removeEventListener("change",e);for(const o of t)(s=window.Telegram.WebApp)==null||s.offEvent(o,e)}},[e]),{miniApp:window.Telegram.WebApp}};function useThrottle(e,t=500){const[i,s]=React.useState(e),o=React.useRef(null);return React.useEffect(()=>{const a=Date.now();if(o.current&&a>=o.current+t)o.current=a,s(e);else{const l=window.setTimeout(()=>{o.current=a,s(e)},t);return()=>window.clearTimeout(l)}},[e,t]),i}const createStoreImpl=e=>{let t;const i=new Set,s=(d,p)=>{const m=typeof d=="function"?d(t):d;if(!Object.is(m,t)){const g=t;t=p??(typeof m!="object"||m===null)?m:Object.assign({},t,m),i.forEach(b=>b(t,g))}},o=()=>t,c={setState:s,getState:o,getInitialState:()=>u,subscribe:d=>(i.add(d),()=>i.delete(d))},u=t=e(s,o,c);return c},createStore=e=>e?createStoreImpl(e):createStoreImpl,identity=e=>e;function useStore(e,t=identity){const i=React.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return React.useDebugValue(i),i}const createImpl=e=>{const t=createStore(e),i=s=>useStore(t,s);return Object.assign(i,t),i},create$2=e=>e?createImpl(e):createImpl,useInventoryModalStore=create$2(e=>({isOpen:!1,setIsOpen:t=>e({isOpen:t})})),useTopUpModalStore=create$2(e=>({isOpen:!1,setIsOpen:t=>e({isOpen:t})})),IconTelegramStar=e=>jsxRuntimeExports.jsxs("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntimeExports.jsx("title",{children:"Telegram star"}),jsxRuntimeExports.jsx("path",{d:"M5.04458 4.95162L6.76524 1.50401C6.96358 1.10625 7.44349 0.946501 7.83713 1.14722C7.99146 1.22591 8.11654 1.35336 8.19305 1.51008L9.81812 4.835C9.95078 5.10661 10.2102 5.29194 10.5079 5.32792L13.9104 5.73869C14.3723 5.79439 14.7022 6.21816 14.6469 6.68507C14.6242 6.87734 14.5373 7.05617 14.4007 7.19164L11.7111 9.85999C11.6025 9.96772 11.5501 10.1203 11.5689 10.2729L12.0159 13.8751C12.0798 14.3908 11.718 14.8614 11.208 14.9259C11.0147 14.9504 10.8185 14.9132 10.6472 14.8191L7.80591 13.2571C7.60021 13.1442 7.35288 13.1409 7.14436 13.2484L4.20051 14.7679C3.78627 14.9819 3.27883 14.8156 3.06727 14.3968C2.98815 14.2401 2.95889 14.0626 2.9836 13.8883L3.219 12.2357C3.33411 11.4274 3.83114 10.7262 4.55123 10.3562L7.82109 8.67603C7.90844 8.63116 7.94313 8.52343 7.89869 8.43521C7.86444 8.36671 7.79074 8.32813 7.71574 8.33897L3.71669 8.91512C3.10542 9.00334 2.48548 8.82972 2.00622 8.43608L0.67443 7.34251C0.294229 7.03037 0.236353 6.46592 0.54524 6.08182C0.688736 5.90321 0.894877 5.78724 1.12074 5.75798L4.5354 5.31578C4.75433 5.28739 4.9453 5.15104 5.04458 4.95162Z",fill:"url(#paint0_linear_13203_44637)"}),jsxRuntimeExports.jsx("path",{d:"M8.14979 9.42368C8.22479 9.41285 8.29849 9.45143 8.33273 9.51993C8.37717 9.60815 8.34249 9.71588 8.25513 9.76075L4.98527 11.4409C4.26519 11.8109 3.76815 12.5121 3.65305 13.3204L3.44604 14.7745C3.28846 14.6964 3.15363 14.5679 3.06779 14.3977C2.98867 14.241 2.95941 14.0635 2.98412 13.8892L3.21952 12.2366C3.33463 11.4283 3.83166 10.7271 4.55175 10.3571L5.67393 9.78026L8.14979 9.42368Z",fill:"white",fillOpacity:"0.660262"}),jsxRuntimeExports.jsx("path",{d:"M7.83713 1.14722C7.99146 1.22591 8.11654 1.35336 8.19305 1.51008L9.81812 4.835C9.95078 5.10661 10.2102 5.29194 10.5079 5.32792L13.9104 5.73869C14.3723 5.79439 14.7022 6.21816 14.6469 6.68507C14.6385 6.75704 14.6209 6.82705 14.5954 6.89381C14.5175 6.85783 14.4332 6.83334 14.3439 6.8225L10.9414 6.41173C10.6438 6.37575 10.3843 6.19042 10.2516 5.91881L8.62658 2.5939C8.55006 2.43718 8.42499 2.30972 8.27065 2.23103C7.87701 2.03031 7.3971 2.19007 7.19876 2.58783L5.4781 6.03543C5.37883 6.23485 5.18786 6.3712 4.96893 6.39959L1.55427 6.84179C1.3284 6.87105 1.12226 6.98702 0.978764 7.16563C0.905716 7.25646 0.853259 7.35747 0.820528 7.4626L0.67443 7.34251C0.294229 7.03037 0.236353 6.46592 0.54524 6.08182C0.688736 5.90321 0.894877 5.78724 1.12074 5.75798L4.5354 5.31578C4.75433 5.28739 4.9453 5.15104 5.04458 4.95162L6.76524 1.50401C6.96358 1.10625 7.44349 0.946501 7.83713 1.14722Z",fill:"white",fillOpacity:"0.660262"}),jsxRuntimeExports.jsx("path",{d:"M6.45499 1.35048C6.73938 0.780608 7.42912 0.551056 7.99466 0.83935C8.2164 0.952283 8.39523 1.1348 8.50491 1.35893L10.1298 4.68385C10.2111 4.85011 10.3691 4.96304 10.5496 4.98493L13.9522 5.39548C14.6048 5.47438 15.0691 6.07091 14.9915 6.72705C14.9597 6.99692 14.8376 7.24815 14.6451 7.43912L11.9556 10.1072C11.9235 10.1393 11.9074 10.1853 11.9133 10.2315L12.3603 13.8336C12.4476 14.5383 11.9523 15.1825 11.2517 15.2714C10.9855 15.305 10.7159 15.2536 10.4805 15.1242L7.63895 13.5624C7.53468 13.505 7.4094 13.5033 7.30362 13.5579L4.35977 15.0774C3.77364 15.3798 3.05616 15.1448 2.75789 14.5546C2.64669 14.3343 2.60572 14.0851 2.64041 13.8408L2.87581 12.1879C3.00673 11.2687 3.57248 10.4705 4.39293 10.0489L6.7719 8.8264L3.76649 9.2597C3.0839 9.35811 2.392 9.17452 1.8464 8.75313L1.78636 8.70544L0.454356 7.61166C-0.0728106 7.179 -0.152796 6.39801 0.275093 5.86564C0.474515 5.61744 0.761508 5.45596 1.07625 5.41521L4.49091 4.97301C4.59517 4.95957 4.68643 4.89433 4.73455 4.79808L6.45499 1.35048ZM7.6797 1.45734C7.45838 1.34441 7.1883 1.43436 7.07558 1.66023L5.35514 5.10784C5.20427 5.41022 4.91403 5.61766 4.58 5.6608L1.16534 6.10299C1.02856 6.12077 0.903271 6.19122 0.815699 6.30025C0.625815 6.5363 0.661581 6.88442 0.8946 7.07561L2.22661 8.16939C2.63065 8.50104 3.15262 8.64735 3.66743 8.57322L7.66626 7.99685C7.88952 7.96477 8.10759 8.07922 8.20882 8.28059C8.33844 8.53832 8.23678 8.85371 7.9797 8.98593L4.71005 10.6658C4.09011 10.9843 3.66179 11.5886 3.56251 12.2859L3.32711 13.9385C3.31237 14.0424 3.32993 14.1483 3.37696 14.2418C3.50182 14.4889 3.799 14.5862 4.04156 14.4609L6.98563 12.9416C7.29646 12.781 7.66626 12.7858 7.9732 12.9544L10.8145 14.5162C10.9216 14.5752 11.0439 14.5983 11.1646 14.5832C11.4841 14.5426 11.7123 14.2459 11.6718 13.919L11.2248 10.3169C11.1928 10.0578 11.2821 9.79836 11.4672 9.61498L14.1566 6.94663C14.2374 6.86643 14.2892 6.76022 14.3027 6.64555C14.3356 6.36766 14.1403 6.11708 13.8691 6.08413L10.4664 5.67359C10.0517 5.62351 9.69082 5.36557 9.50657 4.9884L7.88172 1.66348C7.83794 1.57417 7.76705 1.50178 7.6797 1.45734Z",fill:"url(#paint1_linear_13203_44637)"}),jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:"paint0_linear_13203_44637",x1:"5.54898",y1:"4.31195",x2:"11.4016",y2:"14.7166",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#FFCE00"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#FFAD00"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"paint1_linear_13203_44637",x1:"7.50002",y1:"1.06175",x2:"7.50002",y2:"14.7178",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#F28B00"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#FA7400"})]})]})]}),coinImage=assetUrl("cs-coin.webp"),IconBalanceCoins=({style:e,...t})=>jsxRuntimeExports.jsx("img",{src:coinImage,style:{aspectRatio:"1/1",...e},...t,alt:""}),image=assetUrl("icon_usdt.webp"),IconUsdt=({style:e,...t})=>jsxRuntimeExports.jsx("img",{src:image,style:{aspectRatio:"1/1",height:32,...e},...t,alt:""});reactExports.memo(()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"h-[var(--tabbar-current-height)] shrink-0"}),jsxRuntimeExports.jsx(BottomSentinelSafeArea,{})]}));function BottomSentinelSafeArea(){return jsxRuntimeExports.jsx("div",{className:"h-[var(--tg-safe-area-inset-bottom)] shrink-0"})}const boxRegularIcon=assetUrl("boxes/rewards/box_regular.webp"),SnackbarContext=reactExports.createContext({showSnackbar:()=>{}}),useSnackbar=()=>reactExports.useContext(SnackbarContext),CustomSnackbar=({id:e,before:t,after:i,className:s,children:o})=>jsxRuntimeExports.jsx("div",{id:e,className:s,children:jsxRuntimeExports.jsxs("div",{children:[t&&jsxRuntimeExports.jsx("div",{className:"before",children:t}),jsxRuntimeExports.jsx("div",{className:"content",children:o}),i&&jsxRuntimeExports.jsx("div",{className:"after",children:i})]})}),SnackbarProvider=({children:e})=>{const[t,i]=reactExports.useState([]),[s,o]=reactExports.useState([]),a=React.useRef(0),l=React.useRef(new Map),c=reactExports.useCallback(g=>{i(b=>b.map(y=>y.id===g?{...y,animationState:"exit"}:y)),l.current.set(g,setTimeout(()=>{i(b=>b.filter(y=>y.id!==g)),l.current.delete(g)},300))},[]),u=reactExports.useCallback(g=>{o(b=>b.map(y=>y.id===g?{...y,animationState:"exit"}:y)),l.current.set(g,setTimeout(()=>{o(b=>b.filter(y=>y.id!==g)),l.current.delete(g)},300))},[]),d=reactExports.useCallback((g,b={})=>{const y=++a.current,S={id:y,message:g,before:b.before||p(b.type),after:b.after||null,coins:b.coins||null,gems:b.gems||null,usdt:b.usdt||null,isSpentCoins:b.isSpentCoins||!1,boxes:b.boxes||null,type:b.type||null,animationState:"enter"};b.type==="warning"||b.type==="error"?(o(E=>[...E,S]),l.current.set(y,setTimeout(()=>u(y),3e3))):(i(E=>[...E,S]),l.current.set(y,setTimeout(()=>c(y),3e3)))},[u,c]);React.useEffect(()=>{const g=l.current;return()=>{g.forEach(b=>clearTimeout(b)),g.clear()}},[]);const p=g=>{switch(g){case"success":return jsxRuntimeExports.jsx(Icon,{name:"checkThin",size:28,className:"text-button-foreground"});case"success_top":return jsxRuntimeExports.jsx(Icon,{name:"checkThin",size:28,className:"text-button-foreground"});case"warning":return null;case"error":return null;default:return null}},m=g=>jsxRuntimeExports.jsx(CustomSnackbar,{id:"snackbar",onClose:()=>g.type==="warning"||g.type==="error"?u(g.id):c(g.id),before:g.before,after:g.after,className:`ui-snackbar ${g.type?`ui-snackbar--${g.type}`:""} ${g.animationState||""}`,children:jsxRuntimeExports.jsxs(Text,{style:{fontSize:13,lineHeight:"16px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:4},children:[jsxRuntimeExports.jsx("span",{children:g.message}),jsxRuntimeExports.jsxs("div",{className:"grid grid-flow-col auto-cols-max gap-2 items-center",children:[!!g.coins&&jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[jsxRuntimeExports.jsxs(Text,{weight:"1",style:{fontSize:17,lineHeight:"22px"},children:[g.isSpentCoins?"-":"+",g.coins]}),jsxRuntimeExports.jsx(IconBalanceCoins,{style:{height:14,marginBottom:-2}})]}),!!g.gems&&jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[jsxRuntimeExports.jsxs(Text,{weight:"1",style:{fontSize:17,lineHeight:"22px"},children:[g.isSpentCoins?"-":"+",g.gems]}),jsxRuntimeExports.jsx(IconBalanceGems,{style:{height:14,marginBottom:-2}})]}),!!g.usdt&&jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[jsxRuntimeExports.jsxs(Text,{weight:"1",style:{fontSize:17,lineHeight:"22px"},children:[g.isSpentCoins?"-":"+",g.usdt]}),jsxRuntimeExports.jsx(IconUsdt,{style:{height:14,marginBottom:-2}})]}),!!g.boxes&&jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[jsxRuntimeExports.jsxs(Text,{weight:"1",style:{fontSize:17,lineHeight:"22px"},children:["+",g.boxes]}),jsxRuntimeExports.jsx("img",{src:boxRegularIcon,alt:"Box",style:{height:14,width:14,transform:"translateY(10%)"}})]})]})]})},g.id);return jsxRuntimeExports.jsxs(SnackbarContext.Provider,{value:{showSnackbar:d},children:[e,t.map(m),s.map(m),jsxRuntimeExports.jsx(BottomSentinelSafeArea,{})]})};var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,function(module,exports){typeof document<"u"&&typeof navigator<"u"&&function(e,t){module.exports=t()}(lottie$1,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var i,s=e.length,o;for(i=0;i<s;i+=1){o=e[i].prototype;for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t.prototype[a]=o[a])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].pause()},resume:function(){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].resume()},setRate:function(i){var s,o=this.audios.length;for(s=0;s<o;s+=1)this.audios[s].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(i,s){var o=0,a=[],l;switch(i){case"int16":case"uint8c":l=1;break;default:l=1.1;break}for(o=0;o<s;o+=1)a.push(l);return a}function t(i,s){return i==="float32"?new Float32Array(s):i==="int16"?new Int16Array(s):i==="uint8c"?new Uint8ClampedArray(s):e(i,s)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var i=createSizedArray(e.length),s,o=e.length;for(s=0;s<o;s+=1)i[s]=Math.abs(e[s]);return i}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,i,s){this.type=e,this.currentTime=t,this.totalTime=i,this.direction=s<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,i,s){this.type=e,this.currentLoop=i,this.totalLoops=t,this.direction=s<0?-1:1}function BMSegmentStartEvent(e,t,i){this.type=e,this.firstFrame=t,this.totalFrames=i}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,i){var s,o,a,l,c,u,d,p;switch(l=Math.floor(e*6),c=e*6-l,u=i*(1-t),d=i*(1-c*t),p=i*(1-(1-c)*t),l%6){case 0:s=i,o=p,a=u;break;case 1:s=d,o=i,a=u;break;case 2:s=u,o=i,a=p;break;case 3:s=u,o=d,a=i;break;case 4:s=p,o=u,a=i;break;case 5:s=i,o=u,a=d;break}return[s,o,a]}function RGBtoHSV(e,t,i){var s=Math.max(e,t,i),o=Math.min(e,t,i),a=s-o,l,c=s===0?0:a/s,u=s/255;switch(s){case o:l=0;break;case e:l=t-i+a*(t<i?6:0),l/=6*a;break;case t:l=i-e+a*2,l/=6*a;break;case i:l=e-t+a*4,l/=6*a;break}return[l,c,u]}function addSaturationToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[1]+=t,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[2]+=t,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,t){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[0]+=t/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e=[],t,i;for(t=0;t<256;t+=1)i=t.toString(16),e[t]=i.length===1?"0"+i:i;return function(s,o,a){return s<0&&(s=0),o<0&&(o=0),a<0&&(a=0),"#"+e[s]+e[o]+e[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=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},_typeof$5(e)}var dataManager=function(){var e=1,t=[],i,s,o={onmessage:function(){},postMessage:function(b){i({data:b})}},a={postMessage:function(b){o.onmessage({data:b})}};function l(g){if(window.Worker&&window.Blob&&getWebWorker()){var b=new Blob(["var _workerSelf = self; self.onmessage = ",g.toString()],{type:"text/javascript"}),y=URL.createObjectURL(b);return new Worker(y)}return i=g,o}function c(){s||(s=l(function(b){function y(){function w(z,$){var B,M,D=z.length,G,j,W,J;for(M=0;M<D;M+=1)if(B=z[M],"ks"in B&&!B.completed){if(B.completed=!0,B.hasMask){var re=B.masksProperties;for(j=re.length,G=0;G<j;G+=1)if(re[G].pt.k.i)O(re[G].pt.k);else for(J=re[G].pt.k.length,W=0;W<J;W+=1)re[G].pt.k[W].s&&O(re[G].pt.k[W].s[0]),re[G].pt.k[W].e&&O(re[G].pt.k[W].e[0])}B.ty===0?(B.layers=T(B.refId,$),w(B.layers,$)):B.ty===4?P(B.shapes):B.ty===5&&ie(B)}}function E(z,$){if(z){var B=0,M=z.length;for(B=0;B<M;B+=1)z[B].t===1&&(z[B].data.layers=T(z[B].data.refId,$),w(z[B].data.layers,$))}}function A(z,$){for(var B=0,M=$.length;B<M;){if($[B].id===z)return $[B];B+=1}return null}function T(z,$){var B=A(z,$);return B?B.layers.__used?JSON.parse(JSON.stringify(B.layers)):(B.layers.__used=!0,B.layers):null}function P(z){var $,B=z.length,M,D;for($=B-1;$>=0;$-=1)if(z[$].ty==="sh")if(z[$].ks.k.i)O(z[$].ks.k);else for(D=z[$].ks.k.length,M=0;M<D;M+=1)z[$].ks.k[M].s&&O(z[$].ks.k[M].s[0]),z[$].ks.k[M].e&&O(z[$].ks.k[M].e[0]);else z[$].ty==="gr"&&P(z[$].it)}function O(z){var $,B=z.i.length;for($=0;$<B;$+=1)z.i[$][0]+=z.v[$][0],z.i[$][1]+=z.v[$][1],z.o[$][0]+=z.v[$][0],z.o[$][1]+=z.v[$][1]}function k(z,$){var B=$?$.split("."):[100,100,100];return z[0]>B[0]?!0:B[0]>z[0]?!1:z[1]>B[1]?!0:B[1]>z[1]?!1:z[2]>B[2]?!0:B[2]>z[2]?!1:null}var F=function(){var z=[4,4,14];function $(M){var D=M.t.d;M.t.d={k:[{s:D,t:0}]}}function B(M){var D,G=M.length;for(D=0;D<G;D+=1)M[D].ty===5&&$(M[D])}return function(M){if(k(z,M.v)&&(B(M.layers),M.assets)){var D,G=M.assets.length;for(D=0;D<G;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}(),N=function(){var z=[4,7,99];return function($){if($.chars&&!k(z,$.v)){var B,M=$.chars.length;for(B=0;B<M;B+=1){var D=$.chars[B];D.data&&D.data.shapes&&(P(D.data.shapes),D.data.ip=0,D.data.op=99999,D.data.st=0,D.data.sr=1,D.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},$.chars[B].t||(D.data.shapes.push({ty:"no"}),D.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),U=function(){var z=[5,7,15];function $(M){var D=M.t.p;typeof D.a=="number"&&(D.a={a:0,k:D.a}),typeof D.p=="number"&&(D.p={a:0,k:D.p}),typeof D.r=="number"&&(D.r={a:0,k:D.r})}function B(M){var D,G=M.length;for(D=0;D<G;D+=1)M[D].ty===5&&$(M[D])}return function(M){if(k(z,M.v)&&(B(M.layers),M.assets)){var D,G=M.assets.length;for(D=0;D<G;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}(),H=function(){var z=[4,1,9];function $(M){var D,G=M.length,j,W;for(D=0;D<G;D+=1)if(M[D].ty==="gr")$(M[D].it);else if(M[D].ty==="fl"||M[D].ty==="st")if(M[D].c.k&&M[D].c.k[0].i)for(W=M[D].c.k.length,j=0;j<W;j+=1)M[D].c.k[j].s&&(M[D].c.k[j].s[0]/=255,M[D].c.k[j].s[1]/=255,M[D].c.k[j].s[2]/=255,M[D].c.k[j].s[3]/=255),M[D].c.k[j].e&&(M[D].c.k[j].e[0]/=255,M[D].c.k[j].e[1]/=255,M[D].c.k[j].e[2]/=255,M[D].c.k[j].e[3]/=255);else M[D].c.k[0]/=255,M[D].c.k[1]/=255,M[D].c.k[2]/=255,M[D].c.k[3]/=255}function B(M){var D,G=M.length;for(D=0;D<G;D+=1)M[D].ty===4&&$(M[D].shapes)}return function(M){if(k(z,M.v)&&(B(M.layers),M.assets)){var D,G=M.assets.length;for(D=0;D<G;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}(),Y=function(){var z=[4,4,18];function $(M){var D,G=M.length,j,W;for(D=G-1;D>=0;D-=1)if(M[D].ty==="sh")if(M[D].ks.k.i)M[D].ks.k.c=M[D].closed;else for(W=M[D].ks.k.length,j=0;j<W;j+=1)M[D].ks.k[j].s&&(M[D].ks.k[j].s[0].c=M[D].closed),M[D].ks.k[j].e&&(M[D].ks.k[j].e[0].c=M[D].closed);else M[D].ty==="gr"&&$(M[D].it)}function B(M){var D,G,j=M.length,W,J,re,se;for(G=0;G<j;G+=1){if(D=M[G],D.hasMask){var ce=D.masksProperties;for(J=ce.length,W=0;W<J;W+=1)if(ce[W].pt.k.i)ce[W].pt.k.c=ce[W].cl;else for(se=ce[W].pt.k.length,re=0;re<se;re+=1)ce[W].pt.k[re].s&&(ce[W].pt.k[re].s[0].c=ce[W].cl),ce[W].pt.k[re].e&&(ce[W].pt.k[re].e[0].c=ce[W].cl)}D.ty===4&&$(D.shapes)}}return function(M){if(k(z,M.v)&&(B(M.layers),M.assets)){var D,G=M.assets.length;for(D=0;D<G;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}();function Z(z){z.__complete||(H(z),F(z),N(z),U(z),Y(z),w(z.layers,z.assets),E(z.chars,z.assets),z.__complete=!0)}function ie(z){z.t.a.length===0&&"m"in z.t.p}var q={};return q.completeData=Z,q.checkColors=H,q.checkChars=N,q.checkPathProperties=U,q.checkShapes=Y,q.completeLayers=w,q}if(a.dataManager||(a.dataManager=y()),a.assetLoader||(a.assetLoader=function(){function w(A){var T=A.getResponseHeader("content-type");return T&&A.responseType==="json"&&T.indexOf("json")!==-1||A.response&&_typeof$5(A.response)==="object"?A.response:A.response&&typeof A.response=="string"?JSON.parse(A.response):A.responseText?JSON.parse(A.responseText):null}function E(A,T,P,O){var k,F=new XMLHttpRequest;try{F.responseType="json"}catch{}F.onreadystatechange=function(){if(F.readyState===4)if(F.status===200)k=w(F),P(k);else try{k=w(F),P(k)}catch(N){O&&O(N)}};try{F.open(["G","E","T"].join(""),A,!0)}catch{F.open(["G","E","T"].join(""),T+"/"+A,!0)}F.send()}return{load:E}}()),b.data.type==="loadAnimation")a.assetLoader.load(b.data.path,b.data.fullPath,function(w){a.dataManager.completeData(w),a.postMessage({id:b.data.id,payload:w,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})});else if(b.data.type==="complete"){var S=b.data.animation;a.dataManager.completeData(S),a.postMessage({id:b.data.id,payload:S,status:"success"})}else b.data.type==="loadData"&&a.assetLoader.load(b.data.path,b.data.fullPath,function(w){a.postMessage({id:b.data.id,payload:w,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})})}),s.onmessage=function(g){var b=g.data,y=b.id,S=t[y];t[y]=null,b.status==="success"?S.onComplete(b.payload):S.onError&&S.onError()})}function u(g,b){e+=1;var y="processId_"+e;return t[y]={onComplete:g,onError:b},y}function d(g,b,y){c();var S=u(b,y);s.postMessage({type:"loadAnimation",path:g,fullPath:window.location.origin+window.location.pathname,id:S})}function p(g,b,y){c();var S=u(b,y);s.postMessage({type:"loadData",path:g,fullPath:window.location.origin+window.location.pathname,id:S})}function m(g,b,y){c();var S=u(b,y);s.postMessage({type:"complete",animation:g,id:S})}return{loadAnimation:d,loadData:p,completeAnimation:m}}(),ImagePreloader=function(){var e=function(){var E=createTag("canvas");E.width=1,E.height=1;var A=E.getContext("2d");return A.fillStyle="rgba(0,0,0,0)",A.fillRect(0,0,1,1),E}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(E,A,T){var P="";if(E.e)P=E.p;else if(A){var O=E.p;O.indexOf("images/")!==-1&&(O=O.split("/")[1]),P=A+O}else P=T,P+=E.u?E.u:"",P+=E.p;return P}function o(E){var A=0,T=setInterval((function(){var P=E.getBBox();(P.width||A>500)&&(this._imageLoaded(),clearInterval(T)),A+=1}).bind(this),50)}function a(E){var A=s(E,this.assetsPath,this.path),T=createNS("image");isSafari?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){P.img=e,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",A),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var P={img:T,assetData:E};return P}function l(E){var A=s(E,this.assetsPath,this.path),T=createTag("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){P.img=e,this._imageLoaded()}).bind(this),!1),T.src=A;var P={img:T,assetData:E};return P}function c(E){var A={assetData:E},T=s(E,this.assetsPath,this.path);return dataManager.loadData(T,(function(P){A.img=P,this._footageLoaded()}).bind(this),(function(){A.img={},this._footageLoaded()}).bind(this)),A}function u(E,A){this.imagesLoadedCb=A;var T,P=E.length;for(T=0;T<P;T+=1)E[T].layers||(!E[T].t||E[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(E[T]))):E[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(E[T]))))}function d(E){this.path=E||""}function p(E){this.assetsPath=E||""}function m(E){for(var A=0,T=this.images.length;A<T;){if(this.images[A].assetData===E)return this.images[A].img;A+=1}return null}function g(){this.imagesLoadedCb=null,this.images.length=0}function b(){return this.totalImages===this.loadedAssets}function y(){return this.totalFootages===this.loadedFootagesCount}function S(E,A){E==="svg"?(this._elementHelper=A,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function w(){this._imageLoaded=t.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=c.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return w.prototype={loadAssets:u,setAssetsPath:p,setPath:d,loadedImages:b,loadedFootages:y,destroy:g,getAsset:m,createImgData:l,createImageData:a,imageLoaded:t,footageLoaded:i,setCacheType:S},w}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,i){if(this._cbs[t])for(var s=this._cbs[t],o=0;o<s.length;o+=1)s[o](i)},addEventListener:function(t,i){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(i),(function(){this.removeEventListener(t,i)}).bind(this)},removeEventListener:function(t,i){if(!i)this._cbs[t]=null;else if(this._cbs[t]){for(var s=0,o=this._cbs[t].length;s<o;)this._cbs[t][s]===i&&(this._cbs[t].splice(s,1),s-=1,o-=1),s+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var i=t.split(`\r
|
|
114
114
|
`),s={},o,a=0,l=0;l<i.length;l+=1)o=i[l].split(":"),o.length===2&&(s[o[0]]=o[1].trim(),a+=1);if(a===0)throw new Error;return s}return function(t){for(var i=[],s=0;s<t.length;s+=1){var o=t[s],a={time:o.tm,duration:o.dr};try{a.payload=JSON.parse(t[s].cm)}catch{try{a.payload=e(t[s].cm)}catch{a.payload={name:t[s].cm}}}i.push(a)}return i}}(),ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(i){for(var s=0,o=this.compositions.length;s<o;){if(this.compositions[s].data&&this.compositions[s].data.nm===i)return this.compositions[s].prepareFrame&&this.compositions[s].data.xt&&this.compositions[s].prepareFrame(this.currentFrame),this.compositions[s].compInterface;s+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(t,i){renderers[t]=i};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return _typeof$4=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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var i=getRenderer(t);this.renderer=new i(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var i={wrapper:e,animationData:t},s=e.attributes;i.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",i.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var o=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";o==="false"?i.loop=!1:o==="true"?i.loop=!0:o!==""&&(i.loop=parseInt(o,10));var a=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:s.getNamedItem("bm-autoplay")?s.getNamedItem("bm-autoplay").value:!0;i.autoplay=a!=="false",i.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"";var l=s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"";l==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,i,s=t.length,o=e.layers,a,l=o.length;for(a=0;a<l;a+=1)for(i=0;i<s;){if(t[i].id===o[a].id){t[i]=o[a];break}i+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(s=e.assets.length,i=0;i<s;i+=1)this.animationData.assets.push(e.assets[i]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var i=typeof e=="number"?e:void 0,s=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(i,s)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,i=0;i<this.markers.length;i+=1)if(t=this.markers[i],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,i){if(!(i&&this.name!==i)){var s=Number(e);if(isNaN(s)){var o=this.getMarkerData(e);o&&this.goToAndStop(o.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,i){if(!(i&&this.name!==i)){var s=Number(e);if(isNaN(s)){var o=this.getMarkerData(e);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(s,t,i);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,i=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(i=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,t=0)):this.setCurrentRawFrameValue(t),i&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?i=e:this.currentRawFrame+this.firstFrame>t&&(i=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var i,s=e.length;for(i=0;i<s;i+=1)this.segments.push(e[i])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var i=e.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),t=this.assetsPath+i}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,i=this.assets.length;t<i;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,i){try{var s=this.renderer.getElementByPath(e);s.updateDocumentData(t,i)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],i=0,s=0,o=0,a=!0,l=!1;function c($){for(var B=0,M=$.target;B<s;)t[B].animation===M&&(t.splice(B,1),B-=1,s-=1,M.isPaused||m()),B+=1}function u($,B){if(!$)return null;for(var M=0;M<s;){if(t[M].elem===$&&t[M].elem!==null)return t[M].animation;M+=1}var D=new AnimationItem;return g(D,$),D.setData($,B),D}function d(){var $,B=t.length,M=[];for($=0;$<B;$+=1)M.push(t[$].animation);return M}function p(){o+=1,H()}function m(){o-=1}function g($,B){$.addEventListener("destroy",c),$.addEventListener("_active",p),$.addEventListener("_idle",m),t.push({elem:B,animation:$}),s+=1}function b($){var B=new AnimationItem;return g(B,null),B.setParams($),B}function y($,B){var M;for(M=0;M<s;M+=1)t[M].animation.setSpeed($,B)}function S($,B){var M;for(M=0;M<s;M+=1)t[M].animation.setDirection($,B)}function w($){var B;for(B=0;B<s;B+=1)t[B].animation.play($)}function E($){var B=$-i,M;for(M=0;M<s;M+=1)t[M].animation.advanceTime(B);i=$,o&&!l?window.requestAnimationFrame(E):a=!0}function A($){i=$,window.requestAnimationFrame(E)}function T($){var B;for(B=0;B<s;B+=1)t[B].animation.pause($)}function P($,B,M){var D;for(D=0;D<s;D+=1)t[D].animation.goToAndStop($,B,M)}function O($){var B;for(B=0;B<s;B+=1)t[B].animation.stop($)}function k($){var B;for(B=0;B<s;B+=1)t[B].animation.togglePause($)}function F($){var B;for(B=s-1;B>=0;B-=1)t[B].animation.destroy($)}function N($,B,M){var D=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),G,j=D.length;for(G=0;G<j;G+=1)M&&D[G].setAttribute("data-bm-type",M),u(D[G],$);if(B&&j===0){M||(M="svg");var W=document.getElementsByTagName("body")[0];W.innerText="";var J=createTag("div");J.style.width="100%",J.style.height="100%",J.setAttribute("data-bm-type",M),W.appendChild(J),u(J,$)}}function U(){var $;for($=0;$<s;$+=1)t[$].animation.resize()}function H(){!l&&o&&a&&(window.requestAnimationFrame(A),a=!1)}function Y(){l=!0}function Z(){l=!1,H()}function ie($,B){var M;for(M=0;M<s;M+=1)t[M].animation.setVolume($,B)}function q($){var B;for(B=0;B<s;B+=1)t[B].animation.mute($)}function z($){var B;for(B=0;B<s;B+=1)t[B].animation.unmute($)}return e.registerAnimation=u,e.loadAnimation=b,e.setSpeed=y,e.setDirection=S,e.play=w,e.pause=T,e.stop=O,e.togglePause=k,e.searchAnimations=N,e.resize=U,e.goToAndStop=P,e.destroy=F,e.freeze=Y,e.unfreeze=Z,e.setVolume=ie,e.mute=q,e.unmute=z,e.getRegisteredAnimations=d,e}(),BezierFactory=function(){var e={};e.getBezierEasing=i;var t={};function i(A,T,P,O,k){var F=k||("bez_"+A+"_"+T+"_"+P+"_"+O).replace(/\./g,"p");if(t[F])return t[F];var N=new E([A,T,P,O]);return t[F]=N,N}var s=4,o=.001,a=1e-7,l=10,c=11,u=1/(c-1),d=typeof Float32Array=="function";function p(A,T){return 1-3*T+3*A}function m(A,T){return 3*T-6*A}function g(A){return 3*A}function b(A,T,P){return((p(T,P)*A+m(T,P))*A+g(T))*A}function y(A,T,P){return 3*p(T,P)*A*A+2*m(T,P)*A+g(T)}function S(A,T,P,O,k){var F,N,U=0;do N=T+(P-T)/2,F=b(N,O,k)-A,F>0?P=N:T=N;while(Math.abs(F)>a&&++U<l);return N}function w(A,T,P,O){for(var k=0;k<s;++k){var F=y(T,P,O);if(F===0)return T;var N=b(T,P,O)-A;T-=N/F}return T}function E(A){this._p=A,this._mSampleValues=d?new Float32Array(c):new Array(c),this._precomputed=!1,this.get=this.get.bind(this)}return E.prototype={get:function(T){var P=this._p[0],O=this._p[1],k=this._p[2],F=this._p[3];return this._precomputed||this._precompute(),P===O&&k===F?T:T===0?0:T===1?1:b(this._getTForX(T),O,F)},_precompute:function(){var T=this._p[0],P=this._p[1],O=this._p[2],k=this._p[3];this._precomputed=!0,(T!==P||O!==k)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],P=this._p[2],O=0;O<c;++O)this._mSampleValues[O]=b(O*u,T,P)},_getTForX:function(T){for(var P=this._p[0],O=this._p[2],k=this._mSampleValues,F=0,N=1,U=c-1;N!==U&&k[N]<=T;++N)F+=u;--N;var H=(T-k[N])/(k[N+1]-k[N]),Y=F+H*u,Z=y(Y,P,O);return Z>=o?w(T,Y,P,O):Z===0?Y:S(T,F,F+u,P,O)}},e}(),pooling=function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}}(),poolFactory=function(){return function(e,t,i){var s=0,o=e,a=createSizedArray(o),l={newElement:c,release:u};function c(){var d;return s?(s-=1,d=a[s]):d=t(),d}function u(d){s===o&&(a=pooling.double(a),o*=2),i&&i(d),a[s]=d,s+=1}return l}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function t(i){var s,o=i.lengths.length;for(s=0;s<o;s+=1)bezierLengthPool.release(i.lengths[s]);i.lengths.length=0}return poolFactory(8,e,t)}();function bezFunction(){var e=Math;function t(g,b,y,S,w,E){var A=g*S+b*w+y*E-w*S-E*g-y*b;return A>-.001&&A<.001}function i(g,b,y,S,w,E,A,T,P){if(y===0&&E===0&&P===0)return t(g,b,S,w,A,T);var O=e.sqrt(e.pow(S-g,2)+e.pow(w-b,2)+e.pow(E-y,2)),k=e.sqrt(e.pow(A-g,2)+e.pow(T-b,2)+e.pow(P-y,2)),F=e.sqrt(e.pow(A-S,2)+e.pow(T-w,2)+e.pow(P-E,2)),N;return O>k?O>F?N=O-k-F:N=F-k-O:F>k?N=F-k-O:N=k-O-F,N>-1e-4&&N<1e-4}var s=function(){return function(g,b,y,S){var w=getDefaultCurveSegments(),E,A,T,P,O,k=0,F,N=[],U=[],H=bezierLengthPool.newElement();for(T=y.length,E=0;E<w;E+=1){for(O=E/(w-1),F=0,A=0;A<T;A+=1)P=bmPow(1-O,3)*g[A]+3*bmPow(1-O,2)*O*y[A]+3*(1-O)*bmPow(O,2)*S[A]+bmPow(O,3)*b[A],N[A]=P,U[A]!==null&&(F+=bmPow(N[A]-U[A],2)),U[A]=N[A];F&&(F=bmSqrt(F),k+=F),H.percents[E]=O,H.lengths[E]=k}return H.addedLength=k,H}}();function o(g){var b=segmentsLengthPool.newElement(),y=g.c,S=g.v,w=g.o,E=g.i,A,T=g._length,P=b.lengths,O=0;for(A=0;A<T-1;A+=1)P[A]=s(S[A],S[A+1],w[A],E[A+1]),O+=P[A].addedLength;return y&&T&&(P[A]=s(S[A],S[0],w[A],E[0]),O+=P[A].addedLength),b.totalLength=O,b}function a(g){this.segmentLength=0,this.points=new Array(g)}function l(g,b){this.partialLength=g,this.point=b}var c=function(){var g={};return function(b,y,S,w){var E=(b[0]+"_"+b[1]+"_"+y[0]+"_"+y[1]+"_"+S[0]+"_"+S[1]+"_"+w[0]+"_"+w[1]).replace(/\./g,"p");if(!g[E]){var A=getDefaultCurveSegments(),T,P,O,k,F,N=0,U,H,Y=null;b.length===2&&(b[0]!==y[0]||b[1]!==y[1])&&t(b[0],b[1],y[0],y[1],b[0]+S[0],b[1]+S[1])&&t(b[0],b[1],y[0],y[1],y[0]+w[0],y[1]+w[1])&&(A=2);var Z=new a(A);for(O=S.length,T=0;T<A;T+=1){for(H=createSizedArray(O),F=T/(A-1),U=0,P=0;P<O;P+=1)k=bmPow(1-F,3)*b[P]+3*bmPow(1-F,2)*F*(b[P]+S[P])+3*(1-F)*bmPow(F,2)*(y[P]+w[P])+bmPow(F,3)*y[P],H[P]=k,Y!==null&&(U+=bmPow(H[P]-Y[P],2));U=bmSqrt(U),N+=U,Z.points[T]=new l(U,H),Y=H}Z.segmentLength=N,g[E]=Z}return g[E]}}();function u(g,b){var y=b.percents,S=b.lengths,w=y.length,E=bmFloor((w-1)*g),A=g*b.addedLength,T=0;if(E===w-1||E===0||A===S[E])return y[E];for(var P=S[E]>A?-1:1,O=!0;O;)if(S[E]<=A&&S[E+1]>A?(T=(A-S[E])/(S[E+1]-S[E]),O=!1):E+=P,E<0||E>=w-1){if(E===w-1)return y[E];O=!1}return y[E]+(y[E+1]-y[E])*T}function d(g,b,y,S,w,E){var A=u(w,E),T=1-A,P=e.round((T*T*T*g[0]+(A*T*T+T*A*T+T*T*A)*y[0]+(A*A*T+T*A*A+A*T*A)*S[0]+A*A*A*b[0])*1e3)/1e3,O=e.round((T*T*T*g[1]+(A*T*T+T*A*T+T*T*A)*y[1]+(A*A*T+T*A*A+A*T*A)*S[1]+A*A*A*b[1])*1e3)/1e3;return[P,O]}var p=createTypedArray("float32",8);function m(g,b,y,S,w,E,A){w<0?w=0:w>1&&(w=1);var T=u(w,A);E=E>1?1:E;var P=u(E,A),O,k=g.length,F=1-T,N=1-P,U=F*F*F,H=T*F*F*3,Y=T*T*F*3,Z=T*T*T,ie=F*F*N,q=T*F*N+F*T*N+F*F*P,z=T*T*N+F*T*P+T*F*P,$=T*T*P,B=F*N*N,M=T*N*N+F*P*N+F*N*P,D=T*P*N+F*P*P+T*N*P,G=T*P*P,j=N*N*N,W=P*N*N+N*P*N+N*N*P,J=P*P*N+N*P*P+P*N*P,re=P*P*P;for(O=0;O<k;O+=1)p[O*4]=e.round((U*g[O]+H*y[O]+Y*S[O]+Z*b[O])*1e3)/1e3,p[O*4+1]=e.round((ie*g[O]+q*y[O]+z*S[O]+$*b[O])*1e3)/1e3,p[O*4+2]=e.round((B*g[O]+M*y[O]+D*S[O]+G*b[O])*1e3)/1e3,p[O*4+3]=e.round((j*g[O]+W*y[O]+J*S[O]+re*b[O])*1e3)/1e3;return p}return{getSegmentsLength:o,getNewSegment:m,getPointInSegment:d,buildBezierData:c,pointOnLine2D:t,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var i=this.offsetTime,s;this.propType==="multidimensional"&&(s=createTypedArray("float32",this.pv.length));for(var o=t.lastIndex,a=o,l=this.keyframes.length-1,c=!0,u,d,p;c;){if(u=this.keyframes[a],d=this.keyframes[a+1],a===l-1&&e>=d.t-i){u.h&&(u=d),o=0;break}if(d.t-i>e){o=a;break}a<l-1?a+=1:(o=0,c=!1)}p=this.keyframesMetadata[a]||{};var m,g,b,y,S,w,E=d.t-i,A=u.t-i,T;if(u.to){p.bezierData||(p.bezierData=bez.buildBezierData(u.s,d.s||u.e,u.to,u.ti));var P=p.bezierData;if(e>=E||e<A){var O=e>=E?P.points.length-1:0;for(g=P.points[O].point.length,m=0;m<g;m+=1)s[m]=P.points[O].point[m]}else{p.__fnct?w=p.__fnct:(w=BezierFactory.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y,u.n).get,p.__fnct=w),b=w((e-A)/(E-A));var k=P.segmentLength*b,F,N=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastAddedLength:0;for(S=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastPoint:0,c=!0,y=P.points.length;c;){if(N+=P.points[S].partialLength,k===0||b===0||S===P.points.length-1){for(g=P.points[S].point.length,m=0;m<g;m+=1)s[m]=P.points[S].point[m];break}else if(k>=N&&k<N+P.points[S+1].partialLength){for(F=(k-N)/P.points[S+1].partialLength,g=P.points[S].point.length,m=0;m<g;m+=1)s[m]=P.points[S].point[m]+(P.points[S+1].point[m]-P.points[S].point[m])*F;break}S<y-1?S+=1:c=!1}t._lastPoint=S,t._lastAddedLength=N-P.points[S].partialLength,t._lastKeyframeIndex=a}}else{var U,H,Y,Z,ie;if(l=u.s.length,T=d.s||u.e,this.sh&&u.h!==1)if(e>=E)s[0]=T[0],s[1]=T[1],s[2]=T[2];else if(e<=A)s[0]=u.s[0],s[1]=u.s[1],s[2]=u.s[2];else{var q=createQuaternion(u.s),z=createQuaternion(T),$=(e-A)/(E-A);quaternionToEuler(s,slerp(q,z,$))}else for(a=0;a<l;a+=1)u.h!==1&&(e>=E?b=1:e<A?b=0:(u.o.x.constructor===Array?(p.__fnct||(p.__fnct=[]),p.__fnct[a]?w=p.__fnct[a]:(U=u.o.x[a]===void 0?u.o.x[0]:u.o.x[a],H=u.o.y[a]===void 0?u.o.y[0]:u.o.y[a],Y=u.i.x[a]===void 0?u.i.x[0]:u.i.x[a],Z=u.i.y[a]===void 0?u.i.y[0]:u.i.y[a],w=BezierFactory.getBezierEasing(U,H,Y,Z).get,p.__fnct[a]=w)):p.__fnct?w=p.__fnct:(U=u.o.x,H=u.o.y,Y=u.i.x,Z=u.i.y,w=BezierFactory.getBezierEasing(U,H,Y,Z).get,u.keyframeMetadata=w),b=w((e-A)/(E-A)))),T=d.s||u.e,ie=u.h===1?u.s[a]:u.s[a]+(T[a]-u.s[a])*b,this.propType==="multidimensional"?s[a]=ie:s=ie}return t.lastIndex=o,s}function slerp(e,t,i){var s=[],o=e[0],a=e[1],l=e[2],c=e[3],u=t[0],d=t[1],p=t[2],m=t[3],g,b,y,S,w;return b=o*u+a*d+l*p+c*m,b<0&&(b=-b,u=-u,d=-d,p=-p,m=-m),1-b>1e-6?(g=Math.acos(b),y=Math.sin(g),S=Math.sin((1-i)*g)/y,w=Math.sin(i*g)/y):(S=1-i,w=i),s[0]=S*o+w*u,s[1]=S*a+w*d,s[2]=S*l+w*p,s[3]=S*c+w*m,s}function quaternionToEuler(e,t){var i=t[0],s=t[1],o=t[2],a=t[3],l=Math.atan2(2*s*a-2*i*o,1-2*s*s-2*o*o),c=Math.asin(2*i*s+2*o*a),u=Math.atan2(2*i*a-2*s*o,1-2*i*i-2*o*o);e[0]=l/degToRads,e[1]=c/degToRads,e[2]=u/degToRads}function createQuaternion(e){var t=e[0]*degToRads,i=e[1]*degToRads,s=e[2]*degToRads,o=Math.cos(t/2),a=Math.cos(i/2),l=Math.cos(s/2),c=Math.sin(t/2),u=Math.sin(i/2),d=Math.sin(s/2),p=o*a*l-c*u*d,m=c*u*l+o*a*d,g=c*a*l+o*u*d,b=o*u*l-c*a*d;return[m,g,b,p]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(e,this._caching);this.pv=s}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)t=e[i]*this.mult,mathAbs(this.v[i]-t)>1e-5&&(this.v[i]=t,this._mdf=!0),i+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)i=this.effectsSequence[e](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,i,s){this.propType="unidimensional",this.mult=i||1,this.data=t,this.v=i?t.k*i:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=s,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,i,s){this.propType="multidimensional",this.mult=i||1,this.data=t,this._mdf=!1,this.elem=e,this.container=s,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o,a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),o=0;o<a;o+=1)this.v[o]=t.k[o]*this.mult,this.pv[o]=t.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,i,s){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=i||1,this.elem=e,this.container=s,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,i,s){this.propType="multidimensional";var o,a=t.k.length,l,c,u,d;for(o=0;o<a-1;o+=1)t.k[o].to&&t.k[o].s&&t.k[o+1]&&t.k[o+1].s&&(l=t.k[o].s,c=t.k[o+1].s,u=t.k[o].to,d=t.k[o].ti,(l.length===2&&!(l[0]===c[0]&&l[1]===c[1])&&bez.pointOnLine2D(l[0],l[1],c[0],c[1],l[0]+u[0],l[1]+u[1])&&bez.pointOnLine2D(l[0],l[1],c[0],c[1],c[0]+d[0],c[1]+d[1])||l.length===3&&!(l[0]===c[0]&&l[1]===c[1]&&l[2]===c[2])&&bez.pointOnLine3D(l[0],l[1],l[2],c[0],c[1],c[2],l[0]+u[0],l[1]+u[1],l[2]+u[2])&&bez.pointOnLine3D(l[0],l[1],l[2],c[0],c[1],c[2],c[0]+d[0],c[1]+d[1],c[2]+d[2]))&&(t.k[o].to=null,t.k[o].ti=null),l[0]===c[0]&&l[1]===c[1]&&u[0]===0&&u[1]===0&&d[0]===0&&d[1]===0&&(l.length===2||l[2]===c[2]&&u[2]===0&&d[2]===0)&&(t.k[o].to=null,t.k[o].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=s,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var p=t.k[0].s.length;for(this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p),o=0;o<p;o+=1)this.v[o]=initFrame,this.pv[o]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",p)},this.addEffect=addEffect}var PropertyFactory=function(){function e(i,s,o,a,l){s.sid&&(s=i.globalData.slotManager.getProp(s));var c;if(!s.k.length)c=new ValueProperty(i,s,a,l);else if(typeof s.k[0]=="number")c=new MultiDimensionalProperty(i,s,a,l);else switch(o){case 0:c=new KeyframedValueProperty(i,s,a,l);break;case 1:c=new KeyframedMultidimensionalProperty(i,s,a,l);break}return c.effectsSequence.length&&l.addDynamicProperty(c),c}var t={getProp:e};return t}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,i=this.dynamicProperties.length;for(t=0;t<i;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var i=0;i<t;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,i,s,o){var a;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[s]||a[s]&&!o)&&(a[s]=pointPool.newElement()),a[s][0]=e,a[s][1]=t},ShapePath.prototype.setTripleAt=function(e,t,i,s,o,a,l,c){this.setXYAt(e,t,"v",l,c),this.setXYAt(i,s,"o",l,c),this.setXYAt(o,a,"i",l,c)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,i=this.o,s=this.i,o=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],s[0][0],s[0][1],i[0][0],i[0][1],0,!1),o=1);var a=this._length-1,l=this._length,c;for(c=o;c<l;c+=1)e.setTripleAt(t[a][0],t[a][1],s[a][0],s[a][1],i[a][0],i[a][1],c,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function t(o){var a=o._length,l;for(l=0;l<a;l+=1)pointPool.release(o.v[l]),pointPool.release(o.i[l]),pointPool.release(o.o[l]),o.v[l]=null,o.i[l]=null,o.o[l]=null;o._length=0,o.c=!1}function i(o){var a=s.newElement(),l,c=o._length===void 0?o.v.length:o._length;for(a.setLength(c),a.c=o.c,l=0;l<c;l+=1)a.setTripleAt(o.v[l][0],o.v[l][1],o.o[l][0],o.o[l][1],o.i[l][0],o.i[l][1],l);return a}var s=poolFactory(4,e,t);return s.clone=i,s}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:o,release:a},t=0,i=4,s=createSizedArray(i);function o(){var l;return t?(t-=1,l=s[t]):l=new ShapeCollection,l}function a(l){var c,u=l._length;for(c=0;c<u;c+=1)shapePool.release(l.shapes[c]);l._length=0,t===i&&(s=pooling.double(s),i*=2),s[t]=l,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(E,A,T){var P=T.lastIndex,O,k,F,N,U,H,Y,Z,ie,q=this.keyframes;if(E<q[0].t-this.offsetTime)O=q[0].s[0],F=!0,P=0;else if(E>=q[q.length-1].t-this.offsetTime)O=q[q.length-1].s?q[q.length-1].s[0]:q[q.length-2].e[0],F=!0;else{for(var z=P,$=q.length-1,B=!0,M,D,G;B&&(M=q[z],D=q[z+1],!(D.t-this.offsetTime>E));)z<$-1?z+=1:B=!1;if(G=this.keyframesMetadata[z]||{},F=M.h===1,P=z,!F){if(E>=D.t-this.offsetTime)Z=1;else if(E<M.t-this.offsetTime)Z=0;else{var j;G.__fnct?j=G.__fnct:(j=BezierFactory.getBezierEasing(M.o.x,M.o.y,M.i.x,M.i.y).get,G.__fnct=j),Z=j((E-(M.t-this.offsetTime))/(D.t-this.offsetTime-(M.t-this.offsetTime)))}k=D.s?D.s[0]:M.e[0]}O=M.s[0]}for(H=A._length,Y=O.i[0].length,T.lastIndex=P,N=0;N<H;N+=1)for(U=0;U<Y;U+=1)ie=F?O.i[N][U]:O.i[N][U]+(k.i[N][U]-O.i[N][U])*Z,A.i[N][U]=ie,ie=F?O.o[N][U]:O.o[N][U]+(k.o[N][U]-O.o[N][U])*Z,A.o[N][U]=ie,ie=F?O.v[N][U]:O.v[N][U]+(k.v[N][U]-O.v[N][U])*Z,A.v[N][U]=ie}function i(){var E=this.comp.renderedFrame-this.offsetTime,A=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,P=this._caching.lastFrame;return P!==e&&(P<A&&E<A||P>T&&E>T)||(this._caching.lastIndex=P<E?this._caching.lastIndex:0,this.interpolateShape(E,this.pv,this._caching)),this._caching.lastFrame=E,this.pv}function s(){this.paths=this.localShapeCollection}function o(E,A){if(E._length!==A._length||E.c!==A.c)return!1;var T,P=E._length;for(T=0;T<P;T+=1)if(E.v[T][0]!==A.v[T][0]||E.v[T][1]!==A.v[T][1]||E.o[T][0]!==A.o[T][0]||E.o[T][1]!==A.o[T][1]||E.i[T][0]!==A.i[T][0]||E.i[T][1]!==A.i[T][1])return!1;return!0}function a(E){o(this.v,E)||(this.v=shapePool.clone(E),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function l(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var E;this.kf?E=this.pv:this.data.ks?E=this.data.ks.k:E=this.data.pt.k;var A,T=this.effectsSequence.length;for(A=0;A<T;A+=1)E=this.effectsSequence[A](E);this.setVValue(E),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function c(E,A,T){this.propType="shape",this.comp=E.comp,this.container=E,this.elem=E,this.data=A,this.k=!1,this.kf=!1,this._mdf=!1;var P=T===3?A.pt.k:A.ks.k;this.v=shapePool.clone(P),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function u(E){this.effectsSequence.push(E),this.container.addDynamicProperty(this)}c.prototype.interpolateShape=t,c.prototype.getValue=l,c.prototype.setVValue=a,c.prototype.addEffect=u;function d(E,A,T){this.propType="shape",this.comp=E.comp,this.elem=E,this.container=E,this.offsetTime=E.data.st,this.keyframes=T===3?A.pt.k:A.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var P=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,P),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=s,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[i.bind(this)]}d.prototype.getValue=l,d.prototype.interpolateShape=t,d.prototype.setVValue=a,d.prototype.addEffect=u;var p=function(){var E=roundCorner;function A(T,P){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=P.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=PropertyFactory.getProp(T,P.p,1,0,this),this.s=PropertyFactory.getProp(T,P.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return A.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var P=this.p.v[0],O=this.p.v[1],k=this.s.v[0]/2,F=this.s.v[1]/2,N=this.d!==3,U=this.v;U.v[0][0]=P,U.v[0][1]=O-F,U.v[1][0]=N?P+k:P-k,U.v[1][1]=O,U.v[2][0]=P,U.v[2][1]=O+F,U.v[3][0]=N?P-k:P+k,U.v[3][1]=O,U.i[0][0]=N?P-k*E:P+k*E,U.i[0][1]=O-F,U.i[1][0]=N?P+k:P-k,U.i[1][1]=O-F*E,U.i[2][0]=N?P+k*E:P-k*E,U.i[2][1]=O+F,U.i[3][0]=N?P-k:P+k,U.i[3][1]=O+F*E,U.o[0][0]=N?P+k*E:P-k*E,U.o[0][1]=O-F,U.o[1][0]=N?P+k:P-k,U.o[1][1]=O+F*E,U.o[2][0]=N?P-k*E:P+k*E,U.o[2][1]=O+F,U.o[3][0]=N?P-k:P+k,U.o[3][1]=O-F*E}},extendPrototype([DynamicPropertyContainer],A),A}(),m=function(){function E(A,T){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=A,this.comp=A.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(A),T.sy===1?(this.ir=PropertyFactory.getProp(A,T.ir,0,0,this),this.is=PropertyFactory.getProp(A,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(A,T.pt,0,0,this),this.p=PropertyFactory.getProp(A,T.p,1,0,this),this.r=PropertyFactory.getProp(A,T.r,0,degToRads,this),this.or=PropertyFactory.getProp(A,T.or,0,0,this),this.os=PropertyFactory.getProp(A,T.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return E.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,P=Math.PI*2/T,O=!0,k=this.or.v,F=this.ir.v,N=this.os.v,U=this.is.v,H=2*Math.PI*k/(T*2),Y=2*Math.PI*F/(T*2),Z,ie,q,z,$=-Math.PI/2;$+=this.r.v;var B=this.data.d===3?-1:1;for(this.v._length=0,Z=0;Z<T;Z+=1){ie=O?k:F,q=O?N:U,z=O?H:Y;var M=ie*Math.cos($),D=ie*Math.sin($),G=M===0&&D===0?0:D/Math.sqrt(M*M+D*D),j=M===0&&D===0?0:-M/Math.sqrt(M*M+D*D);M+=+this.p.v[0],D+=+this.p.v[1],this.v.setTripleAt(M,D,M-G*z*q*B,D-j*z*q*B,M+G*z*q*B,D+j*z*q*B,Z,!0),O=!O,$+=P*B}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),P=Math.PI*2/T,O=this.or.v,k=this.os.v,F=2*Math.PI*O/(T*4),N,U=-Math.PI*.5,H=this.data.d===3?-1:1;for(U+=this.r.v,this.v._length=0,N=0;N<T;N+=1){var Y=O*Math.cos(U),Z=O*Math.sin(U),ie=Y===0&&Z===0?0:Z/Math.sqrt(Y*Y+Z*Z),q=Y===0&&Z===0?0:-Y/Math.sqrt(Y*Y+Z*Z);Y+=+this.p.v[0],Z+=+this.p.v[1],this.v.setTripleAt(Y,Z,Y-ie*F*k*H,Z-q*F*k*H,Y+ie*F*k*H,Z+q*F*k*H,N,!0),U+=P*H}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],E),E}(),g=function(){function E(A,T){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=A,this.comp=A.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(A),this.p=PropertyFactory.getProp(A,T.p,1,0,this),this.s=PropertyFactory.getProp(A,T.s,1,0,this),this.r=PropertyFactory.getProp(A,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return E.prototype={convertRectToPath:function(){var T=this.p.v[0],P=this.p.v[1],O=this.s.v[0]/2,k=this.s.v[1]/2,F=bmMin(O,k,this.r.v),N=F*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+O,P-k+F,T+O,P-k+F,T+O,P-k+N,0,!0),this.v.setTripleAt(T+O,P+k-F,T+O,P+k-N,T+O,P+k-F,1,!0),F!==0?(this.v.setTripleAt(T+O-F,P+k,T+O-F,P+k,T+O-N,P+k,2,!0),this.v.setTripleAt(T-O+F,P+k,T-O+N,P+k,T-O+F,P+k,3,!0),this.v.setTripleAt(T-O,P+k-F,T-O,P+k-F,T-O,P+k-N,4,!0),this.v.setTripleAt(T-O,P-k+F,T-O,P-k+N,T-O,P-k+F,5,!0),this.v.setTripleAt(T-O+F,P-k,T-O+F,P-k,T-O+N,P-k,6,!0),this.v.setTripleAt(T+O-F,P-k,T+O-N,P-k,T+O-F,P-k,7,!0)):(this.v.setTripleAt(T-O,P+k,T-O+N,P+k,T-O,P+k,2),this.v.setTripleAt(T-O,P-k,T-O,P-k+N,T-O,P-k,3))):(this.v.setTripleAt(T+O,P-k+F,T+O,P-k+N,T+O,P-k+F,0,!0),F!==0?(this.v.setTripleAt(T+O-F,P-k,T+O-F,P-k,T+O-N,P-k,1,!0),this.v.setTripleAt(T-O+F,P-k,T-O+N,P-k,T-O+F,P-k,2,!0),this.v.setTripleAt(T-O,P-k+F,T-O,P-k+F,T-O,P-k+N,3,!0),this.v.setTripleAt(T-O,P+k-F,T-O,P+k-N,T-O,P+k-F,4,!0),this.v.setTripleAt(T-O+F,P+k,T-O+F,P+k,T-O+N,P+k,5,!0),this.v.setTripleAt(T+O-F,P+k,T+O-N,P+k,T+O-F,P+k,6,!0),this.v.setTripleAt(T+O,P+k-F,T+O,P+k-F,T+O,P+k-N,7,!0)):(this.v.setTripleAt(T-O,P-k,T-O+N,P-k,T-O,P-k,1,!0),this.v.setTripleAt(T-O,P+k,T-O,P+k-N,T-O,P+k,2,!0),this.v.setTripleAt(T+O,P+k,T+O-N,P+k,T+O,P+k,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},extendPrototype([DynamicPropertyContainer],E),E}();function b(E,A,T){var P;if(T===3||T===4){var O=T===3?A.pt:A.ks,k=O.k;k.length?P=new d(E,A,T):P=new c(E,A,T)}else T===5?P=new g(E,A):T===6?P=new p(E,A):T===7&&(P=new m(E,A));return P.k&&E.addDynamicProperty(P),P}function y(){return c}function S(){return d}var w={};return w.getShapeProp=b,w.getConstructorFunction=y,w.getKeyframedConstructorFunction=S,w}();/*!
|
|
115
115
|
Transformation Matrix v2.0
|
|
116
116
|
(c) Epistemex 2014-2015
|
|
@@ -129,7 +129,7 @@ s.goToAndStop(S-s.firstFrame-1,!0)}y.type==="loop"&&(p===null||p!==y.frames||s.i
|
|
|
129
129
|
-3px -2px 0 #FFFFFF,
|
|
130
130
|
`,WebkitBackgroundClip:"text",WebkitTextFillColor:"#FFFFFF",backgroundClip:"text",paddingRight:"0.28em",zIndex:0},children:e.reward_value}),jsxRuntimeExports.jsx("div",{className:cn$1("absolute text-rounded-num-fill font-[800] whitespace-nowrap",l(e.reward_type,e.reward_value)),style:{background:o(e.reward_type),WebkitBackgroundClip:"text",WebkitTextFillColor:e.reward_type==="usdt"?"transparent":"#FFFFFF",backgroundClip:"text",fontSize:Number(l(e.reward_type,e.reward_value).replace("text-[","").replace("em]",""))+.3+"em",zIndex:2,paddingRight:"0.3em"},children:e.reward_value}),jsxRuntimeExports.jsx("div",{className:cn$1("absolute text-rounded-num font-[800] whitespace-nowrap",l(e.reward_type,e.reward_value)),style:{background:s(e.reward_type),WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",fontSize:Number(l(e.reward_type,e.reward_value).replace("text-[","").replace("em]",""))+.3+"em",textShadow:`0.1em 0.1em 0 ${a(e.reward_type)}`,paddingRight:"0.3em",zIndex:1},children:e.reward_value})]})}const getRewardIcon=e=>{switch(e.reward_type){case"coins":return{icon:e.reward_value>=1e3?coin_1000_icon:e.reward_value>=300?coin_300_icon:e.reward_value>=100?coin_100_icon:(e.reward_value>=50,coin_50_icon),sPosition:e.reward_value>=100&&e.reward_value<300?"-rotate-15 -right-8 bottom-6":e.reward_value<100?"-rotate-15 -right-4 bottom-4":"-rotate-12 -right-8 -bottom"};case"usdt":return{icon:e.reward_value>=50?usdt_50_icon:e.reward_value>=20?usdt_20_icon:usdt_1_icon,sPosition:e.reward_value>=50?"-rotate-8 -left-6 bottom-13":"-rotate-6 right-2 -bottom-2"};case"ton":case"telegram_premium":return{icon:telegram_icon,sPosition:"rotate-3 left-0 bottom-2"};case"double_balance":return{icon:question_icon,sPosition:"-rotate-5 right-0 bottom-0"};case"box":return{icon:e.reward_value===12?box_rare_icon:e.reward_value===13?box_epic_icon:e.reward_value===14?box_legend_icon:box_regular_icon,sPosition:"-rotate-4 -right-4 -bottom-2"};default:return{icon:"",sPosition:""}}},RewardTypeImage=reactExports.memo(({reward:e,className:t,badgeSize:i,wheelSpinState:s,shouldShake:o=!1})=>{const{icon:a,sPosition:l}=getRewardIcon(e);return reactExports.useEffect(()=>{var u,d,p;if(!o)return;(p=(d=(u=window.Telegram)==null?void 0:u.WebApp)==null?void 0:d.HapticFeedback)==null||p.impactOccurred("soft");const c=setInterval(()=>{var m,g,b;(b=(g=(m=window.Telegram)==null?void 0:m.WebApp)==null?void 0:g.HapticFeedback)==null||b.impactOccurred("soft")},2300);return()=>{clearInterval(c)}},[o]),jsxRuntimeExports.jsxs("div",{className:cn$1("relative",t),children:[i!==null&&s!=="SPINNING"&&jsxRuntimeExports.jsx(RewardTypeBadge,{reward:e,size:i??"s",className:cn$1(i==="s"&&`absolute bottom-0 ${l}`,i==="m"&&"mt-5 absolute -bottom-15 left-1/2 transform -translate-x-1/2",(e.reward_type==="coins"||e.reward_type==="usdt")&&"mb-2")}),jsxRuntimeExports.jsx(motion.img,{src:a,alt:"",className:cn$1("w-full h-full",e.reward_type==="box"&&"py-1.5 px-1.5",(e.reward_type==="coins"||e.reward_type==="usdt")&&"pb-3 px-1.5"),animate:{rotate:o?[0,-10,10,-10,10,-6,6,0]:0,scale:o?[1,1.08,1,1.08,1,1.05,1,1]:1,y:o?[0,-8,0,-8,0,-4,0,0]:0,x:o?[0,-2,2,-2,2,-1,1,0]:0},transition:o?{rotate:{duration:.9,repeat:Number.POSITIVE_INFINITY,repeatDelay:1.4,ease:"easeInOut"},scale:{duration:.9,repeat:Number.POSITIVE_INFINITY,repeatDelay:1.4,ease:[.34,1.56,.64,1]},y:{duration:.9,repeat:Number.POSITIVE_INFINITY,repeatDelay:1.4,ease:[.34,1.56,.64,1]},x:{duration:.9,repeat:Number.POSITIVE_INFINITY,repeatDelay:1.4,ease:"easeInOut"}}:{duration:0}}),jsxRuntimeExports.jsx(RewardBoxRareBadge,{reward:e}),(e.reward_type==="coins"||e.reward_type==="usdt")&&jsxRuntimeExports.jsx(RewardNumericOverlay,{reward:e,badgeSize:i})]})});function findPrizeIndex({prizes:e,targetReward:t,currentIndex:i}){const s=e.reduce((a,l,c)=>(t.reward_type==="coins"?l.reward_type==="coins"&&a.push(c):l.reward_type===t.reward_type&&l.reward_value===t.reward_value&&a.push(c),a),[]);if(s.length===0)return null;if(t.reward_type==="coins"){const a=t.reward_value,l=s.reduce((p,m)=>{const g=Math.abs(e[m].reward_value-a),b=Math.abs(e[p].reward_value-a);return g<b?m:p},s[0]),c=e[l].reward_value,u=s.filter(p=>e[p].reward_value===c);return u.find(p=>p>i)??u[0]}return s.find(a=>a>i)??s[0]}function getDistance(e,t,i){const s=Math.abs(e-t);return Math.min(s,i-s)}const PrizeCarousel=reactExports.memo(({prizes:e,wheelSpinState:t,actualReward:i,setSpinState:s,isSkipped:o=!1,animationPhase:a="carousel",isOpeningAnimationComplete:l=!0,onCarouselClick:c,viewMode:u="wheel"})=>{const[d,p]=useEmblaCarousel({axis:"y",loop:!0,dragFree:!1,align:"center",startIndex:Math.floor(e.length/4),watchDrag:!1,skipSnaps:!1,containScroll:!1}),[m,g]=reactExports.useState(0),b=reactExports.useRef(),y=reactExports.useRef(),S=reactExports.useRef(),w=reactExports.useRef(),E=reactExports.useCallback(()=>{var T,P,O,k,F,N;if(!p)return;const A=p.selectedScrollSnap();g(A),A!==m&&(t==="IDLE"?(O=(P=(T=window.Telegram)==null?void 0:T.WebApp)==null?void 0:P.HapticFeedback)==null||O.impactOccurred("soft"):t==="SPINNING"&&((N=(F=(k=window.Telegram)==null?void 0:k.WebApp)==null?void 0:F.HapticFeedback)==null||N.impactOccurred("light")))},[p,m,t]);return reactExports.useEffect(()=>{if(p)return E(),p.on("select",E),()=>{p.off("select",E)}},[p,E]),reactExports.useEffect(()=>{const A=()=>{y.current&&cancelAnimationFrame(y.current),b.current&&clearInterval(b.current)};if(!p)return A;if(t==="IDLE")return b.current=window.setInterval(()=>{p.scrollPrev()},2e3),A;if(t==="SPINNING"&&i){A();const T=findPrizeIndex({prizes:e,targetReward:i,currentIndex:p.selectedScrollSnap()});if(T===null)return s("STOPPED"),A;w.current=T,S.current=Date.now();const P=p.selectedScrollSnap(),O=e.length,N=(P-T+O)%O+(o?0:1)*O,U=()=>o?BOX_OPENING_SKIPPED_ANIMATION_DURATION_MS:BOX_OPENING_ANIMATION_DURATION_MS;let H=0;const Y=ie=>{const z=M=>{const D=1-M;return 1-D*D*D};if(ie<=.7)return z(ie);const $=z(.7),B=(ie-.7)/(1-.7);return $+B*(1-$)},Z=()=>{const ie=Date.now(),q=Math.max(1,U()),z=ie-(S.current||ie),$=Math.min(z/q,1),M=Y($)*N,G=Math.min(N,Math.ceil(M-1e-6)),j=G-H;if(j>0){for(let J=0;J<j;J++)p.scrollPrev();H=G}if($<1){y.current=requestAnimationFrame(Z);return}const W=()=>{var J,re,se;p.off("settle",W),s("STOPPED"),(se=(re=(J=window.Telegram)==null?void 0:J.WebApp)==null?void 0:re.HapticFeedback)==null||se.impactOccurred("medium")};p.on("settle",W)};y.current=requestAnimationFrame(Z)}return A},[p,t,i,s,e,o]),jsxRuntimeExports.jsx("button",{type:"button",className:"absolute inset-0 flex items-center justify-center overflow-hidden cursor-pointer",style:{"--slide-size":"max(160px, min(200px, 25vh))"},onClick:c,onKeyDown:c,onKeyUp:c,children:jsxRuntimeExports.jsxs("div",{className:"overflow-hidden h-full w-full",ref:d,children:[jsxRuntimeExports.jsx("div",{className:"flex h-full flex-col will-change-transform",children:e.map((A,T)=>{const P=getDistance(T,m,e.length),O=P===0,k=T===m,F=t==="IDLE"&&P===1?1:t==="IDLE"&&P>1?.6:t==="IDLE"&&P===0?1:t==="STOPPED"&&!O?0:1,N=t==="IDLE"&&O?.95:t==="IDLE"&&P===1||t==="IDLE"&&P>1?.65:t==="IDLE"&&P===0?.95:t==="STOPPED"&&O?1:t==="STOPPED"&&!O?0:.75,U=(T-m+e.length)%e.length,H=P!==0&&U>e.length/2,Y=P!==0&&!H,ie=A.reward_type==="box"&&t==="STOPPED"&&a==="final"&&l,q=t==="IDLE"?O||k?5:Y?15:-15:0,$=u==="result"||t==="STOPPED"&&(O||k)&&a==="final"&&!(A.reward_type==="coins"||A.reward_type==="usdt");return jsxRuntimeExports.jsx("div",{className:"flex min-h-0 items-center justify-center",style:{flex:"0 0 var(--slide-size)"},"data-prize-index":T,children:jsxRuntimeExports.jsxs(motion.div,{className:"relative will-change-transform will-change-opacity h-full aspect-square origin-center",initial:{scale:1.4,opacity:0,rotate:5},animate:{scale:N,opacity:F,rotate:q},transition:{type:"spring",stiffness:500,damping:35,mass:2},children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0 flex items-center justify-center z-[-1]",style:{transform:"translate(0%, 2%)"},children:jsxRuntimeExports.jsx("div",{className:"rounded-full bg-white aspect-square",style:{width:t==="IDLE"&&O?"130%":"50%",height:t==="IDLE"&&O?"130%":"50%",opacity:t==="IDLE"&&O?.5:0,transition:"opacity 0.3s ease, width 0.3s ease, height 0.3s ease",mixBlendMode:"overlay"}})}),jsxRuntimeExports.jsx(RewardTypeImage,{reward:A,className:"w-full aspect-square",badgeSize:$?"m":"s",wheelSpinState:t,shouldShake:ie})]})},`${A.reward_type}-${A.reward_value}-${T}`)})}),jsxRuntimeExports.jsx(Pointers,{wheelSpinState:t})]})})}),Pointers=reactExports.memo(({wheelSpinState:e})=>{const t=e==="SPINNING"?1:0,i=e==="SPINNING"?"200px":"10px";return jsxRuntimeExports.jsxs(motion.div,{className:"pointer-events-none absolute inset-0 flex items-center justify-center z-[-2]",initial:{gap:i,opacity:0},animate:{gap:i,opacity:t},transition:{duration:.4,ease:"easeInOut"},children:[jsxRuntimeExports.jsx("svg",{"aria-hidden":"true",width:"20",height:"24",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",children:jsxRuntimeExports.jsx("path",{d:"M0 20.535V3.46502C0 1.09775 2.61346 -0.336891 4.61063 0.934038L18.0227 9.46902C19.8752 10.6479 19.8752 13.3521 18.0227 14.531L4.61063 23.066C2.61345 24.3369 0 22.9023 0 20.535Z",fill:"black"})}),jsxRuntimeExports.jsx("svg",{"aria-hidden":"true",width:"20",height:"24",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation",children:jsxRuntimeExports.jsx("path",{d:"M20 20.535V3.46502C20 1.09775 17.3865 -0.336891 15.3894 0.934038L1.97726 9.46902C0.124763 10.6479 0.124767 13.3521 1.97726 14.531L15.3894 23.066C17.3865 24.3369 20 22.9023 20 20.535Z",fill:"black"})})]})});function RaysAnimation({className:e,style:t}){return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1728 996",preserveAspectRatio:"xMidYMid slice",className:e,style:{...t},children:jsxRuntimeExports.jsxs("g",{"data-idx":"1",children:[jsxRuntimeExports.jsx("g",{transform:"matrix(1,0,0,1,864,498)","data-idx":"2",children:jsxRuntimeExports.jsxs("g",{"data-idx":"3",transform:"scale(1.2)",children:[jsxRuntimeExports.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 0 0",to:"360 0 0",dur:"18s",repeatCount:"indefinite",additive:"sum"}),jsxRuntimeExports.jsx("path",{fill:"#ffffff",d:"M0 0L1296 0 L1167.6556528015353 562.3133258963553 Z","data-idx":"4"}),jsxRuntimeExports.jsx("path",{fill:"#ffffff",d:"M0 0L808.0427832089188 1013.2536012785666 L288.38713040738355 1263.5065741876433 Z","data-idx":"5"}),jsxRuntimeExports.jsx("path",{fill:"#ffffff",d:"M0 0L-288.3871304073834 1263.5065741876433 L-808.0427832089186 1013.2536012785667 Z","data-idx":"6"}),jsxRuntimeExports.jsx("path",{fill:"#ffffff",d:"M0 0L-1167.655652801535 562.3133258963554 L-1296 1.5871422516949698e-13 Z","data-idx":"7"}),jsxRuntimeExports.jsx("path",{fill:"#ffffff",d:"M0 0L-1167.6556528015353 -562.3133258963552 L-808.0427832089189 -1013.2536012785665 Z","data-idx":"8"}),jsxRuntimeExports.jsx("path",{fill:"#ffffff",d:"M0 0L-288.3871304073837 -1263.5065741876433 L288.3871304073821 -1263.5065741876438 Z","data-idx":"9"}),jsxRuntimeExports.jsx("path",{fill:"#ffffff",d:"M0 0L808.0427832089184 -1013.2536012785667 L1167.6556528015356 -562.3133258963545 Z","data-idx":"10"}),jsxRuntimeExports.jsx("path",{strokeWidth:"0",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#000000",fill:"#ffffff",d:"M0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0A0 0 0 0 0 0 0","data-idx":"11"})]})}),jsxRuntimeExports.jsx("g",{"data-idx":"13"})]})})}const DEFAULT_CONFIG$2={excitementChance:.4,excitementDistance:3,excitementMultiplier:3,mode:"progressive"},isExcitingPrize=e=>e.reward_type==="usdt"||e.reward_type==="coins"&&e.reward_value>=1e3||e.reward_type==="box"&&e.reward_value>=12;function generateExcitingPrizes(e,t,i={}){const s={...DEFAULT_CONFIG$2,...i};if(Math.random()>s.excitementChance)return e;const o=[...e],a=o.findIndex(u=>u.reward_type===t.reward_type&&u.reward_value===t.reward_value);if(a===-1)return e;const l=isExcitingPrize(t),c=u=>{const d=["coins","usdt","box"],p=d[Math.floor(Math.random()*d.length)],m=a-u,g=Math.max(1,3-m);switch(p){case"coins":return{reward_type:"coins",reward_value:500*g+Math.floor(Math.random()*500*g),extra:""};case"usdt":return{reward_type:"usdt",reward_value:.5*g+Math.floor(Math.random()*2*g),extra:""};case"box":{const y={1:[11,12,13],2:[11,12,13],3:[14]}[g];return{reward_type:"box",reward_value:y[Math.floor(Math.random()*y.length)],extra:""}}default:return{reward_type:"coins",reward_value:1e3,extra:""}}};if(s.mode==="dramatic"){const d=Math.max(0,a-3);for(let p=d;p<a;p++)p>=0&&p<o.length&&(o[p]=c(p))}else{const u=Math.min(3,a);for(let d=0;d<u;d++){const p=a-u+d;p>=0&&p<o.length&&(o[p]=c(p))}if(!l){const d=s.excitementDistance;if(d<o.length){const p=Math.random();p<.4?o[d]={reward_type:"usdt",reward_value:25+Math.floor(Math.random()*25),extra:""}:p<.7?o[d]={reward_type:"box",reward_value:14,extra:""}:o[d]={reward_type:"coins",reward_value:3e3+Math.floor(Math.random()*2e3),extra:""}}}}return o}function shuffleArray(e){const t=[...e];for(let i=t.length-1;i>0;i--){const s=Math.floor(Math.random()*(i+1));[t[i],t[s]]=[t[s],t[i]]}return t}const sortPrizesDistributed=e=>{const t=e.filter(m=>m.reward_type==="box"),i=e.filter(m=>m.reward_type!=="box");if(t.length===0)return shuffleArray(i);if(i.length===0)return t;const s=[],o=e.length,a=shuffleArray([...i]),l=Math.floor(o/t.length),c=m=>{const g=Math.floor(m*.3);return Math.max(1,m+(Math.random()>.5?1:-1)*Math.floor(Math.random()*g))};let u=0,d=0,p=Math.floor(Math.random()*Math.min(l,o/2));for(let m=0;m<o;m++)if(m===p&&u<t.length){if(s.push(t[u]),u++,u<t.length){const b=c(l);p=m+b,p>=o&&(p=o-1)}}else d<a.length&&(s.push(a[d]),d++);for(;u<t.length;)s.push(t[u]),u++;for(;d<a.length;)s.push(a[d]),d++;return s},boxOpenBg=assetUrl("boxes/boxOpenBg_2.webp"),overlayImage=assetUrl("boxes/overlay.webp"),COMMON_BOX={reward_type:"box",reward_value:11},BoxOpeningModal=()=>{const{t:e}=useTranslation(),{data:{inventory:t}}=useProfile(),{viewMode:i,isBoxOpeningModalOpen:s,closeBoxModal:o,openBoxModal:a,currentBoxId:l,wheelSpinState:c,animationPhase:u,isSkipped:d,setWheelSpinState:p,setAnimationPhase:m,setSkipped:g}=useBoxOpening(),{showSnackbar:b}=useSnackbar(),y=reactExports.useRef(!1),S=useFireConfetti(),[w,E]=reactExports.useState([]),[A,T]=reactExports.useState(null),[P,O]=reactExports.useState([]),k=reactExports.useRef(null),F=reactExports.useRef(0),[N,U]=reactExports.useState(!1),{setIsOpen:H}=useInventoryModalStore(),[Y,Z]=reactExports.useState(!1),{mutate:ie,isPending:q}=useBoxRewards({onSuccess(ce){const{rewards:le,recent_rewards:Q}=ce,oe=[...le,...le,...le,...le],de=sortPrizesDistributed(oe);E(de),O(Array.isArray(Q)?Q:[])},onError(){b(e("common.error"),{type:"error"}),o()}}),{mutateAsync:z,isPending:$}=useRevealReward({onError(){b(e("common.error"),{type:"error"}),o()}});reactExports.useEffect(()=>{if(l&&i==="wheel"){if(T(null),!l)return;ie({boxId:l})}l&&i==="result"&&(T({...COMMON_BOX,extra:`:${l}`}),E([COMMON_BOX]))},[l,i,ie]),reactExports.useEffect(()=>{if(s){Z(!1);const ce=setTimeout(()=>{Z(!0)},1700);return()=>clearTimeout(ce)}Z(!1)},[s]),reactExports.useEffect(()=>{if(c==="STOPPED"&&u==="carousel"){const ce=setTimeout(()=>{m("transition")},150);return()=>clearTimeout(ce)}},[c,u,m]),reactExports.useEffect(()=>{if(u==="transition"){const ce=setTimeout(()=>{var le,Q,oe;m("final"),(oe=(Q=(le=window.Telegram)==null?void 0:le.WebApp)==null?void 0:Q.HapticFeedback)==null||oe.impactOccurred("medium")},330);return()=>clearTimeout(ce)}},[u,m]),reactExports.useEffect(()=>{function ce(){k.current!==null&&(clearInterval(k.current),k.current=null)}if(s&&i==="wheel"&&c==="IDLE"&&P.length>0){const Q=()=>{const oe=F.current%P.length,de=P[oe];toast.custom(()=>jsxRuntimeExports.jsx(EventToast,{recentReward:de})),F.current=(F.current+1)%P.length};Q(),Q(),ce(),k.current=window.setInterval(()=>{Q()},3e3)}else ce(),F.current=0,toast.dismiss();return()=>{ce(),F.current=0,toast.dismiss()}},[s,i,c,P]),reactExports.useEffect(()=>{s&&(y.current||c==="STOPPED"&&u==="final"&&A&&i==="wheel"&&((A==null?void 0:A.reward_type)==="box"&&S(),(A.reward_type==="coins"||A.reward_type==="usdt")&&(y.current=!0)))},[i,c,u,A,s,S]);const B=reactExports.useCallback(async()=>{var ce,le,Q;try{if(!l||$)return;y.current=!1;const oe=await z({boxId:l});T(oe);const de=Math.random()<.2,ue=generateExcitingPrizes([oe,...w],oe,{mode:de?"dramatic":"progressive",excitementChance:de?1:.45,excitementDistance:de?1:3,excitementMultiplier:de?4:3});E(ue),p("SPINNING"),(Q=(le=(ce=window.Telegram)==null?void 0:ce.WebApp)==null?void 0:le.HapticFeedback)==null||Q.impactOccurred("light")}catch(oe){console.error(oe),b(e("common.error"),{type:"error"}),o()}},[l,$,z,w,p,o,b,e]),M=()=>{o()},D=reactExports.useCallback(()=>{var ce;if(A){const le=(ce=A.extra)==null?void 0:ce.match(/:(\d+)/);le&&a(Number(le[1]))}else o()},[A,a,o]),G=()=>{var ce,le;(le=(ce=window.Telegram)==null?void 0:ce.WebApp)==null||le.HapticFeedback.impactOccurred("soft"),U(!0),o()},j=reactExports.useCallback(()=>{var ce,le;if(!W){B();return}(le=(ce=window.Telegram)==null?void 0:ce.WebApp)==null||le.HapticFeedback.impactOccurred("soft"),(A==null?void 0:A.reward_type)==="usdt"||(A==null?void 0:A.reward_type)==="coins"?o():(A==null?void 0:A.reward_type)==="box"&&D()},[D,B,A,o]);reactExports.useEffect(()=>{if(!s&&N){const ce=setTimeout(()=>{H(!0),U(!1)},100);return()=>clearTimeout(ce)}},[s,N,H]);const W=c==="STOPPED"&&u==="final",J=A?A.reward_type==="box":!1,re=reactExports.useMemo(()=>c==="SPINNING"?`linear-gradient(rgba(187, 255, 255, 0), rgba(168, 255, 157, 0.9)), url(${boxOpenBg})`:A&&A.reward_type==="box"&&A.reward_value===12?`radial-gradient(95.44% 55.12% at 50.13% 55.12%, #1AF3FB 36.93%, #1D82FF 100%), url(${boxOpenBg})`:A&&A.reward_type==="box"&&A.reward_value===13?`linear-gradient(rgba(238, 86, 255, 0.6), rgba(238, 206, 243, 0.5)), url(${boxOpenBg})`:A&&A.reward_type==="box"&&A.reward_value===14?`linear-gradient(rgba(255, 206, 133, 0.6), rgba(239, 255, 151, 0.5)), url(${boxOpenBg})`:A&&A.reward_type==="box"&&A.reward_value===11?`radial-gradient(95.44% 55.12% at 50.13% 55.12%, #9FFAFC 36.93%, #01DEF6 100%), url(${boxOpenBg})`:A&&A.reward_type==="coins"?`radial-gradient(95.44% 55.12% at 50.13% 55.12%, #FF4 36.93%, #F4AB00 100%), url(${boxOpenBg})`:A&&A.reward_type==="usdt"?`radial-gradient(95.44% 55.12% at 50.13% 55.12%, #D5FF79 36.93%, #00CA07 100%), url(${boxOpenBg})`:`linear-gradient(rgba(187, 255, 255, 0.9), rgba(168, 255, 157, 0.9)), url(${boxOpenBg})`,[A,c]),se=q||$;return jsxRuntimeExports.jsxs(Drawer,{open:s,onOpenChange:ce=>{ce||o()},headerOptions:{before:!d&&c==="SPINNING"&&jsxRuntimeExports.jsx(Button,{size:"s",mode:"white",className:"!h-7 text-tgui-button animate-in fade-in duration-300",onClick:()=>{g(!0)},children:e("box_open.skip")})},style:{backgroundPosition:"50%",backgroundSize:"cover",backgroundRepeat:"no-repeat",maxHeight:"100dvh",borderTopLeftRadius:0,borderTopRightRadius:0,zIndex:11e3},className:"pb-0 box-opening-modal-drawer",closeButtonStyles:{color:"#000"},children:[jsxRuntimeExports.jsx(AnimatedFullscreen,{isOpen:s,backgroundImage:re,animationType:"scale",overlayImage,showOverlay:c==="SPINNING",children:jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col h-[100dvh] overflow-hidden",children:[jsxRuntimeExports.jsxs(motion.div,{className:cn$1("absolute inset-0"),initial:{y:"-100vh"},animate:{y:0},transition:{type:"spring",stiffness:200,damping:20,mass:1.2},children:[q?jsxRuntimeExports.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsxRuntimeExports.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-tgui-button"})}):jsxRuntimeExports.jsx(PrizeCarousel,{prizes:w,wheelSpinState:c,setSpinState:p,actualReward:A,isSkipped:d,animationPhase:u,isOpeningAnimationComplete:Y,viewMode:i,onCarouselClick:c==="IDLE"||c==="STOPPED"&&u==="final"?j:void 0}),jsxRuntimeExports.jsx(motion.div,{className:"absolute inset-0 flex items-center justify-center",initial:{opacity:0,scale:1.3,y:100},animate:{opacity:W?1:0,scale:W?1:1.3,y:W?-0:100},transition:{duration:.6,ease:[.34,1.56,.64,1]},style:{pointerEvents:W?"auto":"none",zIndex:-1},children:jsxRuntimeExports.jsx("div",{className:"text-center flex flex-col items-center",children:jsxRuntimeExports.jsx("div",{className:"will-change-transform will-change-opacity",children:jsxRuntimeExports.jsx(Title$1,{style:{fontSize:36,lineHeight:"41px",color:"#000",fontWeight:700,zIndex:1,marginBottom:J?"40vh":"32vh"},children:e("box_open.you_ve_got")})})})}),jsxRuntimeExports.jsx(motion.div,{className:"absolute left-1/2 top-1/2 pointer-events-none",style:{width:"110vw",height:"110vh",maxWidth:"110vw",maxHeight:"110vh",zIndex:-2,x:"-50%",y:"-50%"},initial:{opacity:0,scale:1},animate:{opacity:W&&s?.4:0},transition:{opacity:{duration:.6,ease:"easeOut",delay:W&&s?.3:1}},children:jsxRuntimeExports.jsx(RaysAnimation,{className:"w-full h-full",style:{mixBlendMode:"overlay"}})})]}),jsxRuntimeExports.jsxs("div",{className:"fixed bottom-0 left-0 right-0 w-full",children:[jsxRuntimeExports.jsx(motion.div,{className:"pb-6",style:{paddingLeft:10,paddingRight:10},initial:{y:0},animate:{y:q||c==="SPINNING"||c==="STOPPED"&&u!=="final"?200:0},transition:{type:"spring",stiffness:300,damping:30},children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center gap-4",children:[jsxRuntimeExports.jsx(AnimatePresence,{children:(t==null?void 0:t.length)&&t.length>1&&W&&c==="STOPPED"&&u==="final"&&jsxRuntimeExports.jsx(motion.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.95},transition:{duration:.3,ease:"easeOut"},children:jsxRuntimeExports.jsx(Button,{size:"s",mode:"white",onClick:G,className:"text-black",style:{height:42,outline:"1px solid rgba(0, 0, 0, 0.1)",boxShadow:"0px 2px 6px 0px rgba(0, 0, 0, 0.1)",paddingLeft:"5px"},loading:se,children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-0 w-full",children:[jsxRuntimeExports.jsx(Badge,{type:"number",mode:"primary",large:!0,children:t.length}),jsxRuntimeExports.jsx(Subheadline,{weight:"2",className:"text-black whitespace-nowrap",children:e("box_open.button_unopened_boxes")}),jsxRuntimeExports.jsx("div",{className:"flex items-center overflow-hidden px-1.5",children:t.slice(0,3).map((ce,le)=>jsxRuntimeExports.jsx("div",{className:cn$1("flex items-center justify-center flex-shrink-0",le!==0&&"-ml-3"),children:jsxRuntimeExports.jsx("img",{src:getBoxImage(ce),alt:"",className:"size-7 object-contain"})},`inventory-preview-${ce.id}`))}),jsxRuntimeExports.jsx(Icon,{name:"chevronRight",size:14,className:"opacity-40 flex-shrink-0"})]})})})}),jsxRuntimeExports.jsx(motion.div,{layout:!0,transition:{duration:.3,ease:"easeOut"},className:"w-full flex items-start justify-between gap-2.5",children:jsxRuntimeExports.jsxs(motion.div,{layout:!0,className:"flex-1",style:{paddingLeft:W&&((A==null?void 0:A.reward_type)==="coins"||(A==null?void 0:A.reward_type)==="usdt")?0:20,paddingRight:W&&((A==null?void 0:A.reward_type)==="coins"||(A==null?void 0:A.reward_type)==="usdt")?0:20},transition:{duration:.3,ease:"easeOut"},children:[(!W||J)&&jsxRuntimeExports.jsx(ConfettiParticles,{count:40,margin:8,padding:8}),jsxRuntimeExports.jsx(Button,{size:"l",stretched:!0,mode:W?"white":"filled",onClick:J?D:W?M:B,style:{borderRadius:"25px",background:W?"#FFFFFF":"var(--tgui--button_color)",outline:W?"var(--retina-separator-width) solid rgba(0, 0, 0, 0.15)":"var(--retina-separator-width) solid rgba(0,0,0,0)",color:W?"#000":"var(--tgui--button_text_color)",boxShadow:W?"0 10px 20px 0 rgba(0, 0, 0, 0.40)":"none",transition:"background 0.3s ease, outline 0.3s ease, color 0.3s ease, box-shadow 0.3s ease"},loading:se,children:e(J&&W?"box_open.button_open_now":W?"common.ok":"box_open.button_reveal_reward")})]})})]})}),jsxRuntimeExports.jsx(BottomSentinelSafeArea,{})]})]})}),jsxRuntimeExports.jsx(AnimatePresence,{children:s&&i==="wheel"&&c==="IDLE"&&P.length>0&&jsxRuntimeExports.jsx(motion.div,{className:"absolute w-[130px] pl-2.5 text-left",style:{bottom:getEventsBottomOffset()+94,right:16,zIndex:12001},initial:{y:40,opacity:0},animate:{y:0,opacity:1},exit:{y:60,opacity:0},transition:{duration:.25,ease:"easeInOut"},children:jsxRuntimeExports.jsx(Caption,{weight:"2",className:"!text-black whitespace-nowrap",children:e("box_open.recent_rewards")})},"recent-rewards-label")})]})};var reactConfetti_min$1={exports:{}},reactConfetti_min=reactConfetti_min$1.exports,hasRequiredReactConfetti_min;function requireReactConfetti_min(){return hasRequiredReactConfetti_min||(hasRequiredReactConfetti_min=1,function(e,t){(function(i,s){e.exports=s(requireReact())})(typeof self<"u"?self:reactConfetti_min,function(i){return function(s){var o={};function a(l){if(o[l])return o[l].exports;var c=o[l]={i:l,l:!1,exports:{}};return s[l].call(c.exports,c,c.exports,a),c.l=!0,c.exports}return a.m=s,a.c=o,a.d=function(l,c,u){a.o(l,c)||Object.defineProperty(l,c,{enumerable:!0,get:u})},a.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},a.t=function(l,c){if(1&c&&(l=a(l)),8&c||4&c&&typeof l=="object"&&l&&l.__esModule)return l;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:l}),2&c&&typeof l!="string")for(var d in l)a.d(u,d,(function(p){return l[p]}).bind(null,d));return u},a.n=function(l){var c=l&&l.__esModule?function(){return l.default}:function(){return l};return a.d(c,"a",c),c},a.o=function(l,c){return Object.prototype.hasOwnProperty.call(l,c)},a.p="",a(a.s=2)}([function(s,o){s.exports=i},function(s,o,a){var l={linear:function(c,u,d,p){return(d-u)*c/p+u},easeInQuad:function(c,u,d,p){return(d-u)*(c/=p)*c+u},easeOutQuad:function(c,u,d,p){return-(d-u)*(c/=p)*(c-2)+u},easeInOutQuad:function(c,u,d,p){var m=d-u;return(c/=p/2)<1?m/2*c*c+u:-m/2*(--c*(c-2)-1)+u},easeInCubic:function(c,u,d,p){return(d-u)*(c/=p)*c*c+u},easeOutCubic:function(c,u,d,p){return(d-u)*((c=c/p-1)*c*c+1)+u},easeInOutCubic:function(c,u,d,p){var m=d-u;return(c/=p/2)<1?m/2*c*c*c+u:m/2*((c-=2)*c*c+2)+u},easeInQuart:function(c,u,d,p){return(d-u)*(c/=p)*c*c*c+u},easeOutQuart:function(c,u,d,p){return-(d-u)*((c=c/p-1)*c*c*c-1)+u},easeInOutQuart:function(c,u,d,p){var m=d-u;return(c/=p/2)<1?m/2*c*c*c*c+u:-m/2*((c-=2)*c*c*c-2)+u},easeInQuint:function(c,u,d,p){return(d-u)*(c/=p)*c*c*c*c+u},easeOutQuint:function(c,u,d,p){return(d-u)*((c=c/p-1)*c*c*c*c+1)+u},easeInOutQuint:function(c,u,d,p){var m=d-u;return(c/=p/2)<1?m/2*c*c*c*c*c+u:m/2*((c-=2)*c*c*c*c+2)+u},easeInSine:function(c,u,d,p){var m=d-u;return-m*Math.cos(c/p*(Math.PI/2))+m+u},easeOutSine:function(c,u,d,p){return(d-u)*Math.sin(c/p*(Math.PI/2))+u},easeInOutSine:function(c,u,d,p){return-(d-u)/2*(Math.cos(Math.PI*c/p)-1)+u},easeInExpo:function(c,u,d,p){return c==0?u:(d-u)*Math.pow(2,10*(c/p-1))+u},easeOutExpo:function(c,u,d,p){var m=d-u;return c==p?u+m:m*(1-Math.pow(2,-10*c/p))+u},easeInOutExpo:function(c,u,d,p){var m=d-u;return c===0?u:c===p?u+m:(c/=p/2)<1?m/2*Math.pow(2,10*(c-1))+u:m/2*(2-Math.pow(2,-10*--c))+u},easeInCirc:function(c,u,d,p){return-(d-u)*(Math.sqrt(1-(c/=p)*c)-1)+u},easeOutCirc:function(c,u,d,p){return(d-u)*Math.sqrt(1-(c=c/p-1)*c)+u},easeInOutCirc:function(c,u,d,p){var m=d-u;return(c/=p/2)<1?-m/2*(Math.sqrt(1-c*c)-1)+u:m/2*(Math.sqrt(1-(c-=2)*c)+1)+u},easeInElastic:function(c,u,d,p){var m,g,b,y=d-u;return b=1.70158,c===0?u:(c/=p)==1?u+y:((g=0)||(g=.3*p),(m=y)<Math.abs(y)?(m=y,b=g/4):b=g/(2*Math.PI)*Math.asin(y/m),-m*Math.pow(2,10*(c-=1))*Math.sin((c*p-b)*(2*Math.PI)/g)+u)},easeOutElastic:function(c,u,d,p){var m,g,b,y=d-u;return b=1.70158,c===0?u:(c/=p)==1?u+y:((g=0)||(g=.3*p),(m=y)<Math.abs(y)?(m=y,b=g/4):b=g/(2*Math.PI)*Math.asin(y/m),m*Math.pow(2,-10*c)*Math.sin((c*p-b)*(2*Math.PI)/g)+y+u)},easeInOutElastic:function(c,u,d,p){var m,g,b,y=d-u;return b=1.70158,c===0?u:(c/=p/2)==2?u+y:((g=0)||(g=p*.44999999999999996),(m=y)<Math.abs(y)?(m=y,b=g/4):b=g/(2*Math.PI)*Math.asin(y/m),c<1?m*Math.pow(2,10*(c-=1))*Math.sin((c*p-b)*(2*Math.PI)/g)*-.5+u:m*Math.pow(2,-10*(c-=1))*Math.sin((c*p-b)*(2*Math.PI)/g)*.5+y+u)},easeInBack:function(c,u,d,p,m){return m===void 0&&(m=1.70158),(d-u)*(c/=p)*c*((m+1)*c-m)+u},easeOutBack:function(c,u,d,p,m){return m===void 0&&(m=1.70158),(d-u)*((c=c/p-1)*c*((m+1)*c+m)+1)+u},easeInOutBack:function(c,u,d,p,m){var g=d-u;return m===void 0&&(m=1.70158),(c/=p/2)<1?g/2*(c*c*((1+(m*=1.525))*c-m))+u:g/2*((c-=2)*c*((1+(m*=1.525))*c+m)+2)+u},easeInBounce:function(c,u,d,p){var m=d-u;return m-l.easeOutBounce(p-c,0,m,p)+u},easeOutBounce:function(c,u,d,p){var m=d-u;return(c/=p)<.36363636363636365?m*(7.5625*c*c)+u:c<.7272727272727273?m*(7.5625*(c-=.5454545454545454)*c+.75)+u:c<.9090909090909091?m*(7.5625*(c-=.8181818181818182)*c+.9375)+u:m*(7.5625*(c-=.9545454545454546)*c+.984375)+u},easeInOutBounce:function(c,u,d,p){var m=d-u;return c<p/2?.5*l.easeInBounce(2*c,0,m,p)+u:.5*l.easeOutBounce(2*c-p,0,m,p)+.5*m+u}};s.exports=l},function(s,o,a){s.exports=a(3)},function(s,o,a){a.r(o),a.d(o,"ReactConfetti",function(){return le});var l,c,u=a(0),d=a.n(u),p=a(1),m=a.n(p);function g(Q,oe){return Q+Math.random()*(oe-Q)}function b(Q,oe){for(var de=0;de<oe.length;de++){var ue=oe[de];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(Q,ue.key,ue)}}function y(Q,oe,de){return oe in Q?Object.defineProperty(Q,oe,{value:de,enumerable:!0,configurable:!0,writable:!0}):Q[oe]=de,Q}(function(Q){Q[Q.Circle=0]="Circle",Q[Q.Square=1]="Square",Q[Q.Strip=2]="Strip"})(l||(l={})),function(Q){Q[Q.Positive=1]="Positive",Q[Q.Negative=-1]="Negative"}(c||(c={}));var S=function(){function Q(ue,ye,ve,me){(function(Me,Be){if(!(Me instanceof Be))throw new TypeError("Cannot call a class as a function")})(this,Q),y(this,"context",void 0),y(this,"radius",void 0),y(this,"x",void 0),y(this,"y",void 0),y(this,"w",void 0),y(this,"h",void 0),y(this,"vx",void 0),y(this,"vy",void 0),y(this,"shape",void 0),y(this,"angle",void 0),y(this,"angularSpin",void 0),y(this,"color",void 0),y(this,"rotateY",void 0),y(this,"rotationDirection",void 0),y(this,"getOptions",void 0),this.getOptions=ye;var Oe,$e,De=this.getOptions(),Xe=De.colors,je=De.initialVelocityX,be=De.initialVelocityY;this.context=ue,this.x=ve,this.y=me,this.w=g(5,20),this.h=g(5,20),this.radius=g(5,10),this.vx=typeof je=="number"?g(-je,je):g(je.min,je.max),this.vy=typeof be=="number"?g(-be,0):g(be.min,be.max),this.shape=(Oe=0,$e=2,Math.floor(Oe+Math.random()*($e-Oe+1))),this.angle=g(0,360)*Math.PI/180,this.angularSpin=g(-.2,.2),this.color=Xe[Math.floor(Math.random()*Xe.length)],this.rotateY=g(0,1),this.rotationDirection=g(0,1)?c.Positive:c.Negative}var oe,de;return oe=Q,(de=[{key:"update",value:function(){var ue=this.getOptions(),ye=ue.gravity,ve=ue.wind,me=ue.friction,Oe=ue.opacity,$e=ue.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=ye,this.vx+=ve,this.vx*=me,this.vy*=me,this.rotateY>=1&&this.rotationDirection===c.Positive?this.rotationDirection=c.Negative:this.rotateY<=-1&&this.rotationDirection===c.Negative&&(this.rotationDirection=c.Positive);var De=.1*this.rotationDirection;if(this.rotateY+=De,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=Oe,this.context.lineCap="round",this.context.lineWidth=2,$e&&typeof $e=="function")$e.call(this,this.context);else switch(this.shape){case l.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case l.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case l.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&b(oe.prototype,de),Q}();function w(Q,oe,de){return oe in Q?Object.defineProperty(Q,oe,{value:de,enumerable:!0,configurable:!0,writable:!0}):Q[oe]=de,Q}var E=function Q(oe,de){var ue=this;(function(ve,me){if(!(ve instanceof me))throw new TypeError("Cannot call a class as a function")})(this,Q),w(this,"canvas",void 0),w(this,"context",void 0),w(this,"getOptions",void 0),w(this,"x",0),w(this,"y",0),w(this,"w",0),w(this,"h",0),w(this,"lastNumberOfPieces",0),w(this,"tweenInitTime",Date.now()),w(this,"particles",[]),w(this,"particlesGenerated",0),w(this,"removeParticleAt",function(ve){ue.particles.splice(ve,1)}),w(this,"getParticle",function(){var ve=g(ue.x,ue.w+ue.x),me=g(ue.y,ue.h+ue.y);return new S(ue.context,ue.getOptions,ve,me)}),w(this,"animate",function(){var ve=ue.canvas,me=ue.context,Oe=ue.particlesGenerated,$e=ue.lastNumberOfPieces,De=ue.getOptions(),Xe=De.run,je=De.recycle,be=De.numberOfPieces,Me=De.debug,Be=De.tweenFunction,Ke=De.tweenDuration;if(!Xe)return!1;var ke=ue.particles.length,qe=je?ke:Oe,Qe=Date.now();if(qe<be){$e!==be&&(ue.tweenInitTime=Qe,ue.lastNumberOfPieces=be);for(var at=ue.tweenInitTime,ot=Be(Qe-at>Ke?Ke:Math.max(0,Qe-at),qe,be,Ke),ut=Math.round(ot-qe),it=0;it<ut;it++)ue.particles.push(ue.getParticle());ue.particlesGenerated+=ut}return Me&&(me.font="12px sans-serif",me.fillStyle="#333",me.textAlign="right",me.fillText("Particles: ".concat(ke),ve.width-10,ve.height-20)),ue.particles.forEach(function(Ue,we){Ue.update(),(Ue.y>ve.height||Ue.y<-100||Ue.x>ve.width+100||Ue.x<-100)&&(je&&qe<=be?ue.particles[we]=ue.getParticle():ue.removeParticleAt(we))}),ke>0||qe<be}),this.canvas=oe;var ye=this.canvas.getContext("2d");if(!ye)throw new Error("Could not get canvas context");this.context=ye,this.getOptions=de};function A(Q,oe){var de=Object.keys(Q);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(Q);oe&&(ue=ue.filter(function(ye){return Object.getOwnPropertyDescriptor(Q,ye).enumerable})),de.push.apply(de,ue)}return de}function T(Q){for(var oe=1;oe<arguments.length;oe++){var de=arguments[oe]!=null?arguments[oe]:{};oe%2?A(Object(de),!0).forEach(function(ue){O(Q,ue,de[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(de)):A(Object(de)).forEach(function(ue){Object.defineProperty(Q,ue,Object.getOwnPropertyDescriptor(de,ue))})}return Q}function P(Q,oe){for(var de=0;de<oe.length;de++){var ue=oe[de];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(Q,ue.key,ue)}}function O(Q,oe,de){return oe in Q?Object.defineProperty(Q,oe,{value:de,enumerable:!0,configurable:!0,writable:!0}):Q[oe]=de,Q}var k={width:typeof window<"u"?window.innerWidth:300,height:typeof window<"u"?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:m.a.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},F=function(){function Q(ue,ye){var ve=this;(function(Oe,$e){if(!(Oe instanceof $e))throw new TypeError("Cannot call a class as a function")})(this,Q),O(this,"canvas",void 0),O(this,"context",void 0),O(this,"_options",void 0),O(this,"generator",void 0),O(this,"rafId",void 0),O(this,"setOptionsWithDefaults",function(Oe){var $e={confettiSource:{x:0,y:0,w:ve.canvas.width,h:0}};ve._options=T(T(T({},$e),k),Oe),Object.assign(ve,Oe.confettiSource)}),O(this,"update",function(){var Oe=ve.options,$e=Oe.run,De=Oe.onConfettiComplete,Xe=ve.canvas,je=ve.context;$e&&(je.fillStyle="white",je.clearRect(0,0,Xe.width,Xe.height)),ve.generator.animate()?ve.rafId=requestAnimationFrame(ve.update):(De&&typeof De=="function"&&ve.generator.particlesGenerated>0&&De.call(ve,ve),ve._options.run=!1)}),O(this,"reset",function(){ve.generator&&ve.generator.particlesGenerated>0&&(ve.generator.particlesGenerated=0,ve.generator.particles=[],ve.generator.lastNumberOfPieces=0)}),O(this,"stop",function(){ve.options={run:!1},ve.rafId&&(cancelAnimationFrame(ve.rafId),ve.rafId=void 0)}),this.canvas=ue;var me=this.canvas.getContext("2d");if(!me)throw new Error("Could not get canvas context");this.context=me,this.generator=new E(this.canvas,function(){return ve.options}),this.options=ye,this.update()}var oe,de;return oe=Q,(de=[{key:"options",get:function(){return this._options},set:function(ue){var ye=this._options&&this._options.run,ve=this._options&&this._options.recycle;this.setOptionsWithDefaults(ue),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof ue.recycle=="boolean"&&ue.recycle&&ve===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof ue.run=="boolean"&&ue.run&&ye===!1&&this.update()}}])&&P(oe.prototype,de),Q}();function N(Q){return function(oe){if(Array.isArray(oe))return z(oe)}(Q)||function(oe){if(typeof Symbol<"u"&&Symbol.iterator in Object(oe))return Array.from(oe)}(Q)||q(Q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
131
131
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function U(Q){return(U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe})(Q)}function H(){return(H=Object.assign||function(Q){for(var oe=1;oe<arguments.length;oe++){var de=arguments[oe];for(var ue in de)Object.prototype.hasOwnProperty.call(de,ue)&&(Q[ue]=de[ue])}return Q}).apply(this,arguments)}function Y(Q,oe){var de=Object.keys(Q);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(Q);oe&&(ue=ue.filter(function(ye){return Object.getOwnPropertyDescriptor(Q,ye).enumerable})),de.push.apply(de,ue)}return de}function Z(Q){for(var oe=1;oe<arguments.length;oe++){var de=arguments[oe]!=null?arguments[oe]:{};oe%2?Y(Object(de),!0).forEach(function(ue){J(Q,ue,de[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(de)):Y(Object(de)).forEach(function(ue){Object.defineProperty(Q,ue,Object.getOwnPropertyDescriptor(de,ue))})}return Q}function ie(Q,oe){return function(de){if(Array.isArray(de))return de}(Q)||function(de,ue){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(de)))){var ye=[],ve=!0,me=!1,Oe=void 0;try{for(var $e,De=de[Symbol.iterator]();!(ve=($e=De.next()).done)&&(ye.push($e.value),!ue||ye.length!==ue);ve=!0);}catch(Xe){me=!0,Oe=Xe}finally{try{ve||De.return==null||De.return()}finally{if(me)throw Oe}}return ye}}(Q,oe)||q(Q,oe)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
132
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function q(Q,oe){if(Q){if(typeof Q=="string")return z(Q,oe);var de=Object.prototype.toString.call(Q).slice(8,-1);return de==="Object"&&Q.constructor&&(de=Q.constructor.name),de==="Map"||de==="Set"?Array.from(Q):de==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(de)?z(Q,oe):void 0}}function z(Q,oe){(oe==null||oe>Q.length)&&(oe=Q.length);for(var de=0,ue=new Array(oe);de<oe;de++)ue[de]=Q[de];return ue}function $(Q,oe){if(!(Q instanceof oe))throw new TypeError("Cannot call a class as a function")}function B(Q,oe){for(var de=0;de<oe.length;de++){var ue=oe[de];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(Q,ue.key,ue)}}function M(Q,oe){return(M=Object.setPrototypeOf||function(de,ue){return de.__proto__=ue,de})(Q,oe)}function D(Q){var oe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var de,ue=W(Q);if(oe){var ye=W(this).constructor;de=Reflect.construct(ue,arguments,ye)}else de=ue.apply(this,arguments);return G(this,de)}}function G(Q,oe){return!oe||U(oe)!=="object"&&typeof oe!="function"?j(Q):oe}function j(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function W(Q){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(oe){return oe.__proto__||Object.getPrototypeOf(oe)})(Q)}function J(Q,oe,de){return oe in Q?Object.defineProperty(Q,oe,{value:de,enumerable:!0,configurable:!0,writable:!0}):Q[oe]=de,Q}var re=d.a.createRef(),se=function(Q){(function(ve,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function");ve.prototype=Object.create(me&&me.prototype,{constructor:{value:ve,writable:!0,configurable:!0}}),me&&M(ve,me)})(ye,Q);var oe,de,ue=D(ye);function ye(ve){var me;$(this,ye);for(var Oe=arguments.length,$e=new Array(Oe>1?Oe-1:0),De=1;De<Oe;De++)$e[De-1]=arguments[De];return J(j(me=ue.call.apply(ue,[this,ve].concat($e))),"canvas",d.a.createRef()),J(j(me),"confetti",void 0),me.canvas=ve.canvasRef||re,me}return oe=ye,(de=[{key:"componentDidMount",value:function(){if(this.canvas.current){var ve=ce(this.props)[0];this.confetti=new F(this.canvas.current,ve)}}},{key:"componentDidUpdate",value:function(){var ve=ce(this.props)[0];this.confetti&&(this.confetti.options=ve)}},{key:"componentWillUnmount",value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:"render",value:function(){var ve=ie(ce(this.props),2),me=ve[0],Oe=ve[1],$e=Z({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},Oe.style);return d.a.createElement("canvas",H({width:me.width,height:me.height,ref:this.canvas},Oe,{style:$e}))}}])&&B(oe.prototype,de),ye}(u.Component);function ce(Q){var oe={},de={},ue=[].concat(N(Object.keys(k)),["confettiSource","drawShape","onConfettiComplete"]),ye=["canvasRef"];for(var ve in Q){var me=Q[ve];ue.includes(ve)?oe[ve]=me:ye.includes(ve)?ye[ve]=me:de[ve]=me}return[oe,de,{}]}J(se,"defaultProps",Z({},k)),J(se,"displayName","ReactConfetti");var le=d.a.forwardRef(function(Q,oe){return d.a.createElement(se,H({canvasRef:oe},Q))});o.default=le}]).default})}(reactConfetti_min$1)),reactConfetti_min$1.exports}var reactConfetti_minExports=requireReactConfetti_min();const Confetti=getDefaultExportFromCjs$3(reactConfetti_minExports),ConfettiProvider=({children:e})=>{const{isVisible:t,stopConfetti:i}=useConfettiStore(s=>s);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[e,t&&reactDomExports.createPortal(jsxRuntimeExports.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:999999},children:jsxRuntimeExports.jsx(Confetti,{recycle:!1,onConfettiComplete:()=>i()})}),document.body)]})};function BalanceHeader({type:e,balanceId:t}){const{t:i}=useTranslation(),{data:s}=useProfile();return jsxRuntimeExports.jsxs("div",{className:"absolute top-3 left-4 z-1 flex flex-col items-start",children:[jsxRuntimeExports.jsx(Caption,{weight:"3",children:i("topUpModal.balance")}),jsxRuntimeExports.jsxs("div",{id:t,className:"flex flex-row gap-0.5 items-center justify-center",children:[jsxRuntimeExports.jsx("div",{className:"size-5 flex items-center justify-center",children:e==="coins"?jsxRuntimeExports.jsx(IconBalanceCoins,{style:{height:18}}):e==="gems"?jsxRuntimeExports.jsx(IconBalanceGems,{width:18,height:18}):jsxRuntimeExports.jsx(IconUsdt,{style:{height:18,width:19}})}),jsxRuntimeExports.jsx(AnimatedBalance,{className:"text-rounded",style:{fontSize:"17px",lineHeight:"22px"},value:e==="coins"?s.balance_coins:e==="gems"?s.balance_gems:s.balance_usdt,noRounding:e==="usdt"})]})]})}const StarParticles=({count:e=50,width:t,height:i,style:s,delay:o=0})=>{const[a,l]=reactExports.useState(!1),c=reactExports.useRef(null),u=reactExports.useRef([]),d=reactExports.useRef();return reactExports.useEffect(()=>{const p=setTimeout(()=>{l(!0)},o);return()=>clearTimeout(p)},[o]),reactExports.useEffect(()=>{const p=()=>({x:Math.random()*t,y:Math.random()*i,scale:.6+Math.random()*.9,rotation:Math.random()*360,opacity:.3+Math.random()*.7,velocity:{x:(Math.random()-.5)*.24,y:(Math.random()-.5)*.24},fadeOut:!1});u.current=Array(e).fill(null).map(p);let m=performance.now();const g=b=>{const y=c.current;if(!y)return;const S=(b-m)/16.67;m=b;const w=window.devicePixelRatio||1;y.width=t*w,y.height=i*w;const E=y.getContext("2d",{alpha:!0});E&&(E.scale(w,w),E.clearRect(0,0,t,i),E.imageSmoothingEnabled=!1,u.current.forEach(A=>{!A.fadeOut&&(A.x<10||A.x>t-10||A.y<10||A.y>i-10)&&(A.fadeOut=!0),A.fadeOut&&(A.opacity=Math.max(0,A.opacity-.03*S)),E.save(),E.translate(A.x,A.y),E.rotate(A.rotation*Math.PI/180),E.scale(A.scale,A.scale),E.globalAlpha=A.opacity,E.beginPath(),E.moveTo(3,0),E.lineTo(2.635,2.635),E.lineTo(0,3),E.lineTo(2.635,3.365),E.lineTo(3,6),E.lineTo(3.365,3.365),E.lineTo(6,3),E.lineTo(3.365,2.635),E.closePath(),E.fillStyle="#FFB700",E.fill(),E.restore(),A.x+=A.velocity.x*S,A.y+=A.velocity.y*S,A.rotation+=.24*S,A.opacity<=0&&Object.assign(A,p())}),d.current=requestAnimationFrame(g))};return d.current=requestAnimationFrame(g),()=>{d.current&&cancelAnimationFrame(d.current)}},[t,i,e]),jsxRuntimeExports.jsx("canvas",{ref:c,width:t,height:i,style:{position:"absolute",pointerEvents:"none",zIndex:2,width:`${t}px`,height:`${i}px`,opacity:a?1:0,transform:`scale(${a?1:.9})`,transition:"opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",...s}})},PRICES_TAG="prices";function usePrices(){return useQuery({queryKey:[PRICES_TAG],queryFn:async()=>await makeRequest("prices","GET")})}const IconCurrencyStar=e=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:[jsxRuntimeExports.jsx("title",{children:"Currency star"}),jsxRuntimeExports.jsx("path",{d:"M5.87807 4.95235L7.59874 1.50475C7.79707 1.10699 8.27698 0.947233 8.67063 1.14796C8.82496 1.22664 8.95003 1.3541 9.02655 1.51082L10.6516 4.83573C10.7843 5.10734 11.0437 5.29267 11.3414 5.32865L14.7439 5.73942C15.2058 5.79513 15.5357 6.2189 15.4804 6.6858C15.4577 6.87807 15.3708 7.0569 15.2342 7.19238L12.5446 9.86072C12.436 9.96845 12.3835 10.1211 12.4024 10.2737L12.8494 13.8758C12.9133 14.3915 12.5515 14.8621 12.0415 14.9267C11.8481 14.9512 11.652 14.9139 11.4807 14.8198L8.63941 13.2578C8.4337 13.1449 8.18638 13.1416 7.97785 13.2492L5.034 14.7687C4.61977 14.9826 4.11233 14.8163 3.90077 14.3976C3.82165 14.2408 3.79239 14.0633 3.8171 13.889L4.0525 12.2364C4.1676 11.4281 4.66464 10.7269 5.38472 10.3569L8.65458 8.67676C8.74194 8.6319 8.77662 8.52416 8.73219 8.43594C8.69794 8.36744 8.62424 8.32886 8.54924 8.3397L4.55019 8.91585C3.93892 9.00408 3.31898 8.83045 2.83971 8.43681L1.50793 7.34324C1.12772 7.0311 1.06985 6.46666 1.37874 6.08255C1.52223 5.90394 1.72837 5.78797 1.95424 5.75871L5.3689 5.31651C5.58783 5.28812 5.7788 5.15177 5.87807 4.95235Z",fill:"url(#paint0_linear_4259_226)"}),jsxRuntimeExports.jsx("path",{d:"M8.98273 9.42344C9.05773 9.4126 9.13143 9.45119 9.16568 9.51968C9.21012 9.6079 9.17544 9.71564 9.08808 9.76051L5.81822 11.4406C5.09813 11.8106 4.6011 12.5119 4.486 13.3202L4.27899 14.7742C4.1214 14.6962 3.98658 14.5676 3.90074 14.3975C3.82162 14.2408 3.79236 14.0632 3.81707 13.889L4.05247 12.2364C4.16757 11.4281 4.66461 10.7268 5.38469 10.3568L6.50687 9.78001L8.98273 9.42344Z",fill:"white",fillOpacity:"0.660262"}),jsxRuntimeExports.jsx("path",{d:"M8.67063 1.14796C8.82496 1.22664 8.95003 1.3541 9.02655 1.51082L10.6516 4.83573C10.7843 5.10734 11.0437 5.29267 11.3414 5.32865L14.7439 5.73942C15.2058 5.79513 15.5357 6.2189 15.4804 6.6858C15.472 6.75777 15.4544 6.82778 15.4288 6.89454C15.351 6.85856 15.2667 6.83407 15.1774 6.82323L11.7749 6.41246C11.4773 6.37648 11.2178 6.19115 11.0851 5.91955L9.46007 2.59463C9.38356 2.43791 9.25848 2.31045 9.10415 2.23177C8.71051 2.03105 8.2306 2.1908 8.03226 2.58856L6.3116 6.03617C6.21232 6.23559 6.02135 6.37193 5.80242 6.40033L2.38776 6.84252C2.1619 6.87178 1.95576 6.98775 1.81226 7.16636C1.73921 7.25719 1.68675 7.3582 1.65402 7.46333L1.50793 7.34324C1.12772 7.0311 1.06985 6.46666 1.37874 6.08255C1.52223 5.90394 1.72837 5.78797 1.95424 5.75871L5.3689 5.31651C5.58783 5.28812 5.7788 5.15177 5.87807 4.95235L7.59874 1.50475C7.79707 1.10699 8.27698 0.947233 8.67063 1.14796Z",fill:"white",fillOpacity:"0.660262"}),jsxRuntimeExports.jsx("path",{d:"M7.2883 1.34987C7.5727 0.779997 8.26244 0.550446 8.82797 0.83874C9.04972 0.951673 9.22855 1.13419 9.33823 1.35832L10.9631 4.68324C11.0444 4.8495 11.2024 4.96243 11.3829 4.98432L14.7855 5.39487C15.4381 5.47377 15.9024 6.0703 15.8248 6.72644C15.793 6.99631 15.6709 7.24754 15.4785 7.43851L12.7889 10.1066C12.7568 10.1387 12.7407 10.1847 12.7466 10.2308L13.1936 13.833C13.2809 14.5377 12.7856 15.1819 12.085 15.2708C11.8189 15.3044 11.5492 15.253 11.3138 15.1236L8.47226 13.5618C8.368 13.5044 8.24271 13.5027 8.13693 13.5573L5.19308 15.0768C4.60695 15.3792 3.88947 15.1442 3.5912 14.554C3.48 14.3337 3.43904 14.0844 3.47372 13.8402L3.70912 12.1873C3.84005 11.268 4.4058 10.4699 5.22624 10.0483L7.60521 8.82579L4.5998 9.25909C3.91721 9.3575 3.22531 9.17391 2.67972 8.75252L2.61967 8.70483L1.28767 7.61105C0.760502 7.17839 0.680517 6.3974 1.10841 5.86503C1.30783 5.61683 1.59482 5.45535 1.90956 5.4146L5.32422 4.9724C5.42848 4.95896 5.51974 4.89371 5.56786 4.79747L7.2883 1.34987ZM8.51301 1.45673C8.2917 1.3438 8.02161 1.43375 7.9089 1.65962L6.18845 5.10723C6.03758 5.40961 5.74734 5.61705 5.41331 5.66019L1.99865 6.10238C1.86187 6.12016 1.73658 6.1906 1.64901 6.29964C1.45913 6.53569 1.49489 6.88381 1.72791 7.075L3.05992 8.16878C3.46396 8.50043 3.98593 8.64674 4.50074 8.57261L8.49957 7.99624C8.72284 7.96416 8.9409 8.07861 9.04213 8.27998C9.17175 8.53771 9.07009 8.8531 8.81301 8.98532L5.54337 10.6652C4.92343 10.9837 4.4951 11.588 4.39583 12.2853L4.16042 13.9379C4.14568 14.0417 4.16324 14.1477 4.21028 14.2412C4.33513 14.4883 4.63231 14.5856 4.87487 14.4603L7.81894 12.941C8.12978 12.7804 8.49957 12.7852 8.80651 12.9538L11.6478 14.5156C11.7549 14.5745 11.8772 14.5977 11.9979 14.5826C12.3174 14.542 12.5457 14.2453 12.5051 13.9184L12.0582 10.3162C12.0261 10.0572 12.1154 9.79775 12.3005 9.61437L14.9899 6.94602C15.0707 6.86582 15.1225 6.75961 15.136 6.64494C15.1689 6.36705 14.9736 6.11647 14.7024 6.08352L11.2997 5.67298C10.885 5.6229 10.5241 5.36496 10.3399 4.98779L8.71504 1.66287C8.67125 1.57356 8.60037 1.50117 8.51301 1.45673Z",fill:"url(#paint1_linear_4259_226)"}),jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:"paint0_linear_4259_226",x1:"6.38247",y1:"4.31269",x2:"12.2351",y2:"14.7173",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#FFCE00"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#FFAD00"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"paint1_linear_4259_226",x1:"8.33333",y1:"1.06114",x2:"8.33333",y2:"14.7172",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#F28B00"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#FA7400"})]})]})]}),XsButton=reactExports.forwardRef(({className:e,children:t,...i},s)=>jsxRuntimeExports.jsx(Button,{...i,ref:s,className:`xs-button ${e||""}`,size:"s",children:t}));XsButton.displayName="XsButton";const Ribbon=({text:e})=>jsxRuntimeExports.jsxs("svg",{style:{position:"absolute",top:-2,right:-2,width:48,height:48,overflow:"visible"},children:[jsxRuntimeExports.jsx("title",{children:"Ribbon"}),jsxRuntimeExports.jsx("path",{d:"M46.83 24.5L23.5 1.17C22.75 0.42 21.73 0 20.68 0C19.62 0 2.73 0.05 1.55 0.05C0.36 0.05 -0.23 1.4885 0.6 2.32L45.72 47.44C46.56 48.28 48 47.68 48 46.5C48 45.31 48 28.38 48 27.32C48 26.26 47.5 25.24 46.82 24.5Z",fill:"#1EC948"}),jsxRuntimeExports.jsx("text",{x:"21",y:"21",textAnchor:"middle",transform:"rotate(45 24 24)",style:{fill:"white",fontSize:"13px",fontWeight:700,fontFamily:"-apple-system, system-ui, sans-serif"},children:e})]}),BuyOption=({amount:e,price:t,onClick:i,loading:s,discount:o,optionIcon:a})=>{const{t:l}=useTranslation();return jsxRuntimeExports.jsxs(motion.button,{whileTap:{scale:.95},className:"relative flex flex-col items-center bg-tgui-section-bg cursor-pointer rounded-lg w-full px-1 pb-2.5 pt-1",onClick:i,type:"button",children:[o&&jsxRuntimeExports.jsx(Ribbon,{text:o}),jsxRuntimeExports.jsx("div",{className:"h-12.5 flex justify-center items-center",children:jsxRuntimeExports.jsx("img",{className:"max-w-20 max-h-12.5 object-cover",src:a,alt:"Option icon"})}),jsxRuntimeExports.jsx(Text,{weight:"1",className:"text-rounded",style:{fontSize:"20px",lineHeight:"25px"},children:formatter.format(e)}),jsxRuntimeExports.jsx(Text,{weight:"3",style:{fontSize:"10px",lineHeight:"13px"},children:l("topUpModal.gems")}),jsxRuntimeExports.jsx(XsButton,{onClick:c=>{c.stopPropagation(),i()},mode:"bezeled",style:{color:"#F36200",backgroundColor:"rgba(255, 190, 0, 0.20)",marginTop:10},before:jsxRuntimeExports.jsx(IconCurrencyStar,{style:{width:16,height:16}}),loading:s,children:jsxRuntimeExports.jsx(Text,{weight:"2",style:{fontSize:"10px",lineHeight:"13px"},children:formatter.format(t)})})]})},optionIcon1=assetUrl("buyOptions/buyOption1.webp"),optionIcon2=assetUrl("buyOptions/buyOption2.webp"),optionIcon3=assetUrl("buyOptions/buyOption3.webp"),optionIcon4=assetUrl("buyOptions/buyOption4.webp"),optionIcon5=assetUrl("buyOptions/buyOption5.webp"),optionIcon6=assetUrl("buyOptions/buyOption6.webp"),icons=[optionIcon1,optionIcon2,optionIcon3,optionIcon4,optionIcon5,optionIcon6],getIconByIndex=e=>icons[e%icons.length],TopUpModal=({...e})=>{const{t}=useTranslation(),{isOpen:i,setIsOpen:s}=useTopUpModalStore(),{showSnackbar:o}=useSnackbar(),a=useQueryClient(),l=useFireConfetti(),[c,u]=reactExports.useState(null),{data:d,isLoading:p,error:m}=usePrices(),g=async(b,y)=>{var S,w;u(1),(w=(S=window.Telegram)==null?void 0:S.WebApp)==null||w.openInvoice(b,E=>{E==="paid"&&(a.invalidateQueries({queryKey:[PROFILE_TAG]}),s(!1),l(),o(t("snackbar.purchase.walletPurchaseGems"),{type:"success_top",gems:y.toString()}))}),u(null)};return jsxRuntimeExports.jsx(Drawer,{open:i,onOpenChange:s,headerOptions:{before:jsxRuntimeExports.jsx(BalanceHeader,{type:"gems"})},variant:"secondary",...e,children:jsxRuntimeExports.jsxs(DrawerContent,{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3 items-center",children:[jsxRuntimeExports.jsx(LazyLottie,{asset:"lottie/moneyTongue.json",className:"size-18",height:72,width:72}),jsxRuntimeExports.jsx(Title$1,{level:"2",weight:"1",children:t("topUpModal.topUpBalance")})]}),p?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center w-full",style:{height:282},children:jsxRuntimeExports.jsx(Spinner,{size:"m"})}):m?jsxRuntimeExports.jsx("div",{className:"text-red-500 text-center p-4",children:t("common.error")}):d!=null&&d.items?jsxRuntimeExports.jsx("div",{className:"grid grid-cols-3 gap-1.5 w-full",children:d.items.map((b,y)=>jsxRuntimeExports.jsxs("div",{className:"relative z-1 overflow-visible",children:[y>=d.items.length-2&&jsxRuntimeExports.jsx(StarParticles,{width:100,height:58,count:30,delay:300,style:{bottom:0,left:"50%",transform:"translateX(-50%) scale(1)"}}),jsxRuntimeExports.jsx(BuyOption,{amount:b.gems,price:b.stars,onClick:()=>g(b.invoice_url,b.gems),loading:c===b.gems,discount:b.discount?`–${b.discount}%`:void 0,optionIcon:getIconByIndex(y)},b.gems)]},b.invoice_url))}):null]})})},supportedLanguages=["en","ru","hi","es","pt"];function mapTelegramLanguageToSupported(e){return{"pt-br":"pt","pt-pt":"pt"}[e]||e}const getTelegramLanguage=()=>{var s,o,a;const e=(a=(o=(s=window.Telegram)==null?void 0:s.WebApp)==null?void 0:o.initDataUnsafe.user)==null?void 0:a.language_code,t=e?mapTelegramLanguageToSupported(e):null;return t&&supportedLanguages.includes(t)?t:"en"};function I18nBackendLanguageProvider({children:e}){const{i18n:t}=useTranslation(),{data:i}=useProfile(),s=reactExports.useRef(!1),o=reactExports.useRef(null),a=getTelegramLanguage(),l=i.language===t.language,c=i.language===null&&t.language===a;if(reactExports.useEffect(()=>{!s.current&&(l||c)&&(s.current=!0)},[l,c]),!s.current&&!l&&!c){if(o.current)throw o.current;const u=i.language===null?a:i.language;throw o.current=t.changeLanguage(u),o.current}return o.current=null,e}class APIRequestError extends Error{constructor({message:t,status:i,responseText:s}){super(t),this.status=i,this.responseText=s}}function createMakeRequest(e){return async function(i,s,o){e.waitUntilReady&&await e.waitUntilReady();const a=`${e.baseUrl}/${i}`;try{const l=e.getAuthData(),c=e.getBotId(),u={"X-Auth":l||e.getInitData(),"Content-Type":"application/json"};if(c&&(u["X-Bot-ID"]=c),l){console.warn("WARNING: AUTH_DATA is used for requests!!!"),console.log("=== API Request Debug ==="),console.log("externalAuthData:",l),console.log("externalAuthData type:",typeof l),console.log("externalAuthData truthy?",!!l),console.log("externalAuthData length:",l==null?void 0:l.length),console.log("config.getInitData():",e.getInitData()),console.log("config.getInitData() type:",typeof e.getInitData()),console.log("config.getInitData() truthy?",!!e.getInitData());const p=l||e.getInitData();console.log("X-Auth value (before headers):",p),console.log("X-Auth value type:",typeof p),console.log("X-Auth value truthy?",!!p),console.log("X-Auth value length:",p==null?void 0:p.length),u["a-deb"]=l,u["a-deb-string"]=String(l),console.log("Final headers object:",u),u["X-Auth"]||(u["X-Auth"]=l),console.log("Final X-Auth header:",u["X-Auth"])}const d=await fetch(a,{method:s,headers:u,body:o?JSON.stringify(o):null});if(!d.ok)throw new APIRequestError({message:`Request to ${i} failed with status ${d.status}`,status:d.status,responseText:await(async()=>{try{return await d.text()}catch{return}})()});return d.json()}catch(l){throw l instanceof APIRequestError||console.error(`Error during request to ${i}:`,l),l}}}const queryClient=new QueryClient({mutationCache:new MutationCache({onError:e=>{captureException(e)}}),queryCache:new QueryCache({onError:e=>{captureException(e)}}),defaultOptions:{queries:{staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!0,refetchOnMount:!0,retry:(e,t)=>{if(t instanceof APIRequestError&&t.status===401)return e<3;if(t instanceof Error&&"status"in t){const i=t.status;if(i&&i>=400&&i<500)return!1}return e<3},retryDelay:(e,t)=>t instanceof APIRequestError&&t.status===401?Math.min(1e3*2**e,4e3):Math.min(1e3*2**e,3e4)},mutations:{retry:1,retryDelay:1e3}}});function createOverlay(e){let t=document.getElementById("overlay-root");t=document.createElement("div"),t.id="overlay-root",document.body.appendChild(t),clientExports.createRoot(t).render(jsxRuntimeExports.jsx(OverlayManager,{options:e}))}const OverlayManager=({options:e})=>{const t=reactExports.useCallback(()=>{var i;(i=window.Telegram.WebApp)==null||i.openTelegramLink("https://t.me/orbit_portal_bot/app?startapp=profile")},[]);return reactExports.useEffect(()=>{const i=s=>{s.shiftKey&&s.key==="Tab"&&(s.preventDefault(),t())};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[t]),jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:jsxRuntimeExports.jsxs(AppRoot,{children:[jsxRuntimeExports.jsx(OrientationCheck,{}),jsxRuntimeExports.jsx("div",{id:"overlay-banner-top",className:"cssdk-banner-container cssdk-banner-top"}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsxs(I18nBackendLanguageProvider,{children:[jsxRuntimeExports.jsx(SnackbarProvider,{children:jsxRuntimeExports.jsx(BoxOpeningProvider,{children:jsxRuntimeExports.jsxs(ConfettiProvider,{children:[jsxRuntimeExports.jsx(OverlayProfile,{variant:(e==null?void 0:e.variant)||"translucent",onOpenProfile:()=>t(),initialPosition:e==null?void 0:e.initialPosition,initialCoordinates:e==null?void 0:e.initialCoordinates}),jsxRuntimeExports.jsx(TopUpModal,{}),jsxRuntimeExports.jsx(BoxOpeningModal,{}),jsxRuntimeExports.jsx(ProfileInventoryModal,{})]})})}),jsxRuntimeExports.jsx(EventsStack,{})]})}),jsxRuntimeExports.jsx("div",{id:"overlay-banner-bottom",className:"cssdk-banner-container cssdk-banner-bottom"})]})})};class AbortError extends Error{constructor(t="The operation was aborted"){super(t),this.name="AbortError"}}function delay(e,{signal:t}={}){return new Promise((i,s)=>{const o=()=>{s(new AbortError)},a=()=>{clearTimeout(l),o()};if(t!=null&&t.aborted)return o();const l=setTimeout(()=>{t==null||t.removeEventListener("abort",a),i()},e);t==null||t.addEventListener("abort",a,{once:!0})})}var define_process_env_default$3={NODE_ENV:"production",version:"1.92.1",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"},win;if(typeof window>"u"){var loc={hostname:""};win={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:loc,referrer:""},screen:{width:0,height:0},location:loc,addEventListener:function(){},removeEventListener:function(){}}}else win=window;function _array_like_to_array(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function asyncGeneratorStep(e,t,i,s,o,a,l){try{var c=e[a](l),u=c.value}catch(d){i(d);return}c.done?t(u):Promise.resolve(u).then(s,o)}function _async_to_generator(e){return function(){var t=this,i=arguments;return new Promise(function(s,o){var a=e.apply(t,i);function l(u){asyncGeneratorStep(a,s,o,l,c,"next",u)}function c(u){asyncGeneratorStep(a,s,o,l,c,"throw",u)}l(void 0)})}}function _construct(e,t,i){return _is_native_reflect_construct()?_construct=Reflect.construct:_construct=function(o,a,l){var c=[null];c.push.apply(c,a);var u=Function.bind.apply(o,c),d=new u;return l&&_set_prototype_of(d,l.prototype),d},_construct.apply(null,arguments)}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function _create_class(e,t,i){return t&&_defineProperties(e.prototype,t),e}function _extends(){return _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},_extends.apply(this,arguments)}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},_get_prototype_of(e)}function _inherits(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _is_native_function(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _object_without_properties_loose(e,t){if(e==null)return{};var i={},s=Object.keys(e),o,a;for(a=0;a<s.length;a++)o=s[a],!(t.indexOf(o)>=0)&&(i[o]=e[o]);return i}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(s,o){return s.__proto__=o,s},_set_prototype_of(e,t)}function _type_of(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if(typeof e=="string")return _array_like_to_array(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _array_like_to_array(e,t)}}function _wrap_native_super(e){var t=typeof Map=="function"?new Map:void 0;return _wrap_native_super=function(s){if(s===null||!_is_native_function(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(s))return t.get(s);t.set(s,o)}function o(){return _construct(s,arguments,_get_prototype_of(this).constructor)}return o.prototype=Object.create(s.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(o,s)},_wrap_native_super(e)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_is_native_reflect_construct=function(){return!!e})()}function _create_for_of_iterator_helper_loose(e,t){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=_unsupported_iterable_to_array(e))||t){i&&(e=i);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _ts_generator(e,t){var i,s,o,a,l={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(d){return function(p){return u([d,p])}}function u(d){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,s&&(o=d[0]&2?s.return:d[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,d[1])).done)return o;switch(s=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return l.label++,{value:d[1],done:!1};case 5:l.label++,s=d[1],d=[0];continue;case 7:d=l.ops.pop(),l.trys.pop();continue;default:if(o=l.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){l=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){l.label=d[1];break}if(d[0]===6&&l.label<o[1]){l.label=o[1],o=d;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(d);break}o[2]&&l.ops.pop(),l.trys.pop();continue}d=t.call(e,l)}catch(p){d=[6,p],s=0}finally{i=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function _ts_values(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],s=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var __defProp=Object.defineProperty,__defNormalProp=function(e,t,i){return t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},__publicField=function(e,t,i){return __defNormalProp(e,(typeof t>"u"?"undefined":_type_of(t))!=="symbol"?t+"":t,i)},_a,__defProp$1=Object.defineProperty,__defNormalProp$1=function(e,t,i){return t in e?__defProp$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},__publicField$1=function(e,t,i){return __defNormalProp$1(e,(typeof t>"u"?"undefined":_type_of(t))!=="symbol"?t+"":t,i)},NodeType$3=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(NodeType$3||{}),testableAccessors$1={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods$1={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype$1={},isAngularZonePresent$1=function(){return!!globalThis.Zone};function getUntaintedPrototype$1(e){if(untaintedBasePrototype$1[e])return untaintedBasePrototype$1[e];var t=globalThis[e],i=t.prototype,s=e in testableAccessors$1?testableAccessors$1[e]:void 0,o=!!(s&&s.every(function(p){var m,g;return!!((g=(m=Object.getOwnPropertyDescriptor(i,p))==null?void 0:m.get)!=null&&g.toString().includes("[native code]"))})),a=e in testableMethods$1?testableMethods$1[e]:void 0,l=!!(a&&a.every(function(p){var m;return typeof i[p]=="function"&&((m=i[p])==null?void 0:m.toString().includes("[native code]"))}));if(o&&l&&!isAngularZonePresent$1())return untaintedBasePrototype$1[e]=t.prototype,t.prototype;try{var c=document.createElement("iframe");document.body.appendChild(c);var u=c.contentWindow;if(!u)return t.prototype;var d=u[e].prototype;return document.body.removeChild(c),d?untaintedBasePrototype$1[e]=d:i}catch{return i}}var untaintedAccessorCache$1={};function getUntaintedAccessor$1(e,t,i){var s,o=e+"."+String(i);if(untaintedAccessorCache$1[o])return untaintedAccessorCache$1[o].call(t);var a=getUntaintedPrototype$1(e),l=(s=Object.getOwnPropertyDescriptor(a,i))==null?void 0:s.get;return l?(untaintedAccessorCache$1[o]=l,l.call(t)):t[i]}var untaintedMethodCache$1={};function getUntaintedMethod$1(e,t,i){var s=e+"."+String(i);if(untaintedMethodCache$1[s])return untaintedMethodCache$1[s].bind(t);var o=getUntaintedPrototype$1(e),a=o[i];return typeof a!="function"?t[i]:(untaintedMethodCache$1[s]=a,a.bind(t))}function childNodes$1(e){return getUntaintedAccessor$1("Node",e,"childNodes")}function parentNode$1(e){return getUntaintedAccessor$1("Node",e,"parentNode")}function parentElement$1(e){return getUntaintedAccessor$1("Node",e,"parentElement")}function textContent$1(e){return getUntaintedAccessor$1("Node",e,"textContent")}function contains$1(e,t){return getUntaintedMethod$1("Node",e,"contains")(t)}function getRootNode$1(e){return getUntaintedMethod$1("Node",e,"getRootNode")()}function host$1(e){return!e||!("host"in e)?null:getUntaintedAccessor$1("ShadowRoot",e,"host")}function styleSheets$1(e){return e.styleSheets}function shadowRoot$1(e){return!e||!("shadowRoot"in e)?null:getUntaintedAccessor$1("Element",e,"shadowRoot")}function querySelector$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelector")(t)}function querySelectorAll$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelectorAll")(t)}function mutationObserverCtor$1(){return getUntaintedPrototype$1("MutationObserver").constructor}var index$1={childNodes:childNodes$1,parentNode:parentNode$1,parentElement:parentElement$1,textContent:textContent$1,contains:contains$1,getRootNode:getRootNode$1,host:host$1,styleSheets:styleSheets$1,shadowRoot:shadowRoot$1,querySelector:querySelector$1,querySelectorAll:querySelectorAll$1,mutationObserver:mutationObserverCtor$1};function isElement(e){return e.nodeType===e.ELEMENT_NODE}function isShadowRoot(e){var t=e&&"host"in e&&"mode"in e&&index$1.host(e)||null;return!!(t&&"shadowRoot"in t&&index$1.shadowRoot(t)===e)}function isNativeShadowDom(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function fixBrowserCompatibilityIssuesInCSS(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function escapeImportStatement(e){var t=e.cssText;if(t.split('"').length<3)return t;var i=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?i.push("layer"):e.layerName&&i.push("layer("+e.layerName+")"),e.supportsText&&i.push("supports("+e.supportsText+")"),e.media.length&&i.push(e.media.mediaText),i.join(" ")+";"}function stringifyStylesheet(e){try{var t=e.rules||e.cssRules;if(!t)return null;var i=e.href;!i&&e.ownerNode&&e.ownerNode.ownerDocument&&(i=e.ownerNode.ownerDocument.location.href);var s=Array.from(t,function(o){return stringifyRule(o,i)}).join("");return fixBrowserCompatibilityIssuesInCSS(s)}catch{return null}}function stringifyRule(e,t){if(isCSSImportRule(e)){var i;try{i=stringifyStylesheet(e.styleSheet)||escapeImportStatement(e)}catch{i=e.cssText}return e.styleSheet.href?absolutifyURLs(i,e.styleSheet.href):i}else{var s=e.cssText;return isCSSStyleRule(e)&&e.selectorText.includes(":")&&(s=fixSafariColons(s)),t?absolutifyURLs(s,t):s}}function fixSafariColons(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function isCSSImportRule(e){return"styleSheet"in e}function isCSSStyleRule(e){return"selectorText"in e}var Mirror=function(){function e(){__publicField$1(this,"idNodeMap",new Map),__publicField$1(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(s){var o;if(!s)return-1;var a=(o=this.getMeta(s))==null?void 0:o.id;return a??-1},t.getNode=function(s){return this.idNodeMap.get(s)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(s){return this.nodeMetaMap.get(s)||null},t.removeNodeFromMap=function(s){var o=this,a=this.getId(s);this.idNodeMap.delete(a),s.childNodes&&s.childNodes.forEach(function(l){return o.removeNodeFromMap(l)})},t.has=function(s){return this.idNodeMap.has(s)},t.hasNode=function(s){return this.nodeMetaMap.has(s)},t.add=function(s,o){var a=o.id;this.idNodeMap.set(a,s),this.nodeMetaMap.set(s,o)},t.replace=function(s,o){var a=this.getNode(s);if(a){var l=this.nodeMetaMap.get(a);l&&this.nodeMetaMap.set(o,l)}this.idNodeMap.set(s,o)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function createMirror$2(){return new Mirror}function maskInputValue(e){var t=e.element,i=e.maskInputOptions,s=e.tagName,o=e.type,a=e.value,l=e.maskInputFn,c=a||"",u=o&&toLowerCase(o);return(i[s.toLowerCase()]||u&&i[u])&&(l?c=l(c,t):c="*".repeat(c.length)),c}function toLowerCase(e){return e.toLowerCase()}var ORIGINAL_ATTRIBUTE_NAME="__rrweb_original__";function is2DCanvasBlank(e){var t=e.getContext("2d");if(!t)return!0;for(var i=50,s=0;s<e.width;s+=i)for(var o=0;o<e.height;o+=i){var a=t.getImageData,l=ORIGINAL_ATTRIBUTE_NAME in a?a[ORIGINAL_ATTRIBUTE_NAME]:a,c=new Uint32Array(l.call(t,s,o,Math.min(i,e.width-s),Math.min(i,e.height-o)).data.buffer);if(c.some(function(u){return u!==0}))return!1}return!0}function getInputType(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?toLowerCase(t):null}function extractFileExtension(e,t){var i;try{i=new URL(e,t??window.location.href)}catch{return null}var s=/\.([0-9a-z]+)(?:$)/i,o=i.pathname.match(s),a;return(a=o==null?void 0:o[1])!=null?a:null}function extractOrigin(e){var t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,URL_PROTOCOL_MATCH=/^(?:[a-z+]+:)?\/\//i,URL_WWW_MATCH=/^www\..*/i,DATA_URI=/^(data:)([^,]*),(.*)/i;function absolutifyURLs(e,t){return(e||"").replace(URL_IN_CSS_REF,function(i,s,o,a,l,c){var u=o||l||c,d=s||a||"";if(!u)return i;if(URL_PROTOCOL_MATCH.test(u)||URL_WWW_MATCH.test(u)||DATA_URI.test(u))return"url("+d+u+d+")";if(u[0]==="/")return"url("+d+(extractOrigin(t)+u)+d+")";var p=t.split("/"),m=u.split("/");p.pop();for(var g=_create_for_of_iterator_helper_loose(m),b;!(b=g()).done;){var y=b.value;y!=="."&&(y===".."?p.pop():p.push(y))}return"url("+d+p.join("/")+d+")"})}function normalizeCssString(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function splitCssText(e,t){var i=Array.from(t.childNodes),s=[];if(i.length>1&&e&&typeof e=="string"){for(var o=normalizeCssString(e),a=1;a<i.length;a++)if(i[a].textContent&&typeof i[a].textContent=="string")for(var l=normalizeCssString(i[a].textContent),c=3;c<l.length;c++){var u=l.substring(0,c);if(o.split(u).length===2){for(var d=o.indexOf(u),p=d;p<e.length;p++)if(normalizeCssString(e.substring(0,p)).length===d){s.push(e.substring(0,p)),e=e.substring(p);break}break}}}return s.push(e),s}function markCssSplits(e,t){return splitCssText(e,t).join("/* rr_split */")}var _id=1,tagNameRegex=new RegExp("[^a-z0-9-_:]"),IGNORED_NODE=-2;function genId(){return _id++}function getValidTagName$1(e){if(_instanceof(e,HTMLFormElement))return"form";var t=toLowerCase(e.tagName);return tagNameRegex.test(t)?"div":t}var canvasService,canvasCtx,SRCSET_NOT_SPACES=/^[^ \t\n\r\u000c]+/,SRCSET_COMMAS_OR_SPACES=/^[, \t\n\r\u000c]+/;function getAbsoluteSrcsetString(e,t){if(t.trim()==="")return t;var i=0;function s(d){var p,m=d.exec(t.substring(i));return m?(p=m[0],i+=p.length,p):""}for(var o=[];s(SRCSET_COMMAS_OR_SPACES),!(i>=t.length);){var a=s(SRCSET_NOT_SPACES);if(a.slice(-1)===",")a=absoluteToDoc(e,a.substring(0,a.length-1)),o.push(a);else{var l="";a=absoluteToDoc(e,a);for(var c=!1;;){var u=t.charAt(i);if(u===""){o.push((a+l).trim());break}else if(c)u===")"&&(c=!1);else if(u===","){i+=1,o.push((a+l).trim());break}else u==="("&&(c=!0);l+=u,i+=1}}}return o.join(", ")}var cachedDocument=new WeakMap;function absoluteToDoc(e,t){return!t||t.trim()===""?t:getHref(e,t)}function isSVGElement(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function getHref(e,t){var i=cachedDocument.get(e);if(i||(i=e.createElement("a"),cachedDocument.set(e,i)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return i.setAttribute("href",t),i.href}function transformAttribute(e,t,i,s){return s&&(i==="src"||i==="href"&&!(t==="use"&&s[0]==="#")||i==="xlink:href"&&s[0]!=="#"||i==="background"&&(t==="table"||t==="td"||t==="th")?absoluteToDoc(e,s):i==="srcset"?getAbsoluteSrcsetString(e,s):i==="style"?absolutifyURLs(s,getHref(e)):t==="object"&&i==="data"?absoluteToDoc(e,s):s)}function ignoreAttribute(e,t,i){return(e==="video"||e==="audio")&&t==="autoplay"}function _isBlockedElement(e,t,i){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(var s=e.classList.length;s--;){var o=e.classList[s];if(t.test(o))return!0}if(i)return e.matches(i)}catch{}return!1}function classMatchesRegex(e,t,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return i?classMatchesRegex(index$1.parentNode(e),t,i):!1;for(var s=e.classList.length;s--;){var o=e.classList[s];if(t.test(o))return!0}return i?classMatchesRegex(index$1.parentNode(e),t,i):!1}function needMaskingText(e,t,i,s){var o;if(isElement(e)){if(o=e,!index$1.childNodes(o).length)return!1}else{if(index$1.parentElement(e)===null)return!1;o=index$1.parentElement(e)}try{if(typeof t=="string"){if(s){if(o.closest("."+t))return!0}else if(o.classList.contains(t))return!0}else if(classMatchesRegex(o,t,s))return!0;if(i){if(s){if(o.closest(i))return!0}else if(o.matches(i))return!0}}catch{}return!1}function onceIframeLoaded(e,t,i){var s=e.contentWindow;if(s){var o=!1,a;try{a=s.document.readyState}catch{return}if(a!=="complete"){var l=setTimeout(function(){o||(t(),o=!0)},i);e.addEventListener("load",function(){clearTimeout(l),o=!0,t()});return}var c="about:blank";if(s.location.href!==c||e.src===c||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function onceStylesheetLoaded(e,t,i){var s=!1,o;try{o=e.sheet}catch{return}if(!o){var a=setTimeout(function(){s||(t(),s=!0)},i);e.addEventListener("load",function(){clearTimeout(a),s=!0,t()})}}function serializeNode(e,t){var i=t.doc,s=t.mirror,o=t.blockClass,a=t.blockSelector,l=t.needsMask,c=t.inlineStylesheet,u=t.maskInputOptions,d=u===void 0?{}:u,p=t.maskTextFn,m=t.maskInputFn,g=t.dataURLOptions,b=g===void 0?{}:g,y=t.inlineImages,S=t.recordCanvas,w=t.keepIframeSrcFn,E=t.newlyAddedElement,A=E===void 0?!1:E,T=t.cssCaptured,P=T===void 0?!1:T,O=getRootId(i,s);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:NodeType$3.Document,childNodes:[],compatMode:e.compatMode}:{type:NodeType$3.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:NodeType$3.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:O};case e.ELEMENT_NODE:return serializeElementNode(e,{doc:i,blockClass:o,blockSelector:a,inlineStylesheet:c,maskInputOptions:d,maskInputFn:m,dataURLOptions:b,inlineImages:y,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:A,rootId:O});case e.TEXT_NODE:return serializeTextNode(e,{doc:i,needsMask:l,maskTextFn:p,rootId:O,cssCaptured:P});case e.CDATA_SECTION_NODE:return{type:NodeType$3.CDATA,textContent:"",rootId:O};case e.COMMENT_NODE:return{type:NodeType$3.Comment,textContent:index$1.textContent(e)||"",rootId:O};default:return!1}}function getRootId(e,t){if(t.hasNode(e)){var i=t.getId(e);return i===1?void 0:i}}function serializeTextNode(e,t){var i=t.needsMask,s=t.maskTextFn,o=t.rootId,a=t.cssCaptured,l=index$1.parentNode(e),c=l&&l.tagName,u="",d=c==="STYLE"?!0:void 0,p=c==="SCRIPT"?!0:void 0;return p?u="SCRIPT_PLACEHOLDER":a||(u=index$1.textContent(e),d&&u&&(u=absolutifyURLs(u,getHref(t.doc)))),!d&&!p&&u&&i&&(u=s?s(u,index$1.parentElement(e)):u.replace(/[\S]/g,"*")),{type:NodeType$3.Text,textContent:u||"",rootId:o}}function serializeElementNode(e,t){for(var i=t.doc,s=t.blockClass,o=t.blockSelector,a=t.inlineStylesheet,l=t.maskInputOptions,c=l===void 0?{}:l,u=t.maskInputFn,d=t.dataURLOptions,p=d===void 0?{}:d,m=t.inlineImages,g=t.recordCanvas,b=t.keepIframeSrcFn,y=t.newlyAddedElement,S=y===void 0?!1:y,w=t.rootId,E=_isBlockedElement(e,s,o),A=getValidTagName$1(e),T={},P=e.attributes.length,O=0;O<P;O++){var k=e.attributes[O];ignoreAttribute(A,k.name,k.value)||(T[k.name]=transformAttribute(i,A,toLowerCase(k.name),k.value))}if(A==="link"&&a){var F=Array.from(i.styleSheets).find(function(re){return re.href===e.href}),N=null;F&&(N=stringifyStylesheet(F)),N&&(delete T.rel,delete T.href,T._cssText=N)}if(A==="style"&&e.sheet){var U=stringifyStylesheet(e.sheet);U&&(e.childNodes.length>1&&(U=markCssSplits(U,e)),T._cssText=U)}if(A==="input"||A==="textarea"||A==="select"){var H=e.value,Y=e.checked;T.type!=="radio"&&T.type!=="checkbox"&&T.type!=="submit"&&T.type!=="button"&&H?T.value=maskInputValue({element:e,type:getInputType(e),tagName:A,value:H,maskInputOptions:c,maskInputFn:u}):Y&&(T.checked=Y)}if(A==="option"&&(e.selected&&!c.select?T.selected=!0:delete T.selected),A==="dialog"&&e.open&&(T.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),A==="canvas"&&g){if(e.__context==="2d")is2DCanvasBlank(e)||(T.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){var Z=e.toDataURL(p.type,p.quality),ie=i.createElement("canvas");ie.width=e.width,ie.height=e.height;var q=ie.toDataURL(p.type,p.quality);Z!==q&&(T.rr_dataURL=Z)}}if(A==="img"&&m){canvasService||(canvasService=i.createElement("canvas"),canvasCtx=canvasService.getContext("2d"));var z=e,$=z.currentSrc||z.getAttribute("src")||"<unknown-src>",B=z.crossOrigin,M=function(){z.removeEventListener("load",M);try{canvasService.width=z.naturalWidth,canvasService.height=z.naturalHeight,canvasCtx.drawImage(z,0,0),T.rr_dataURL=canvasService.toDataURL(p.type,p.quality)}catch(re){if(z.crossOrigin!=="anonymous"){z.crossOrigin="anonymous",z.complete&&z.naturalWidth!==0?M():z.addEventListener("load",M);return}else console.warn("Cannot inline img src="+$+"! Error: "+re)}z.crossOrigin==="anonymous"&&(B?T.crossOrigin=B:z.removeAttribute("crossorigin"))};z.complete&&z.naturalWidth!==0?M():z.addEventListener("load",M)}if(A==="audio"||A==="video"){var D=T;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.rr_mediaVolume=e.volume}if(S||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),E){var G=e.getBoundingClientRect(),j=G.width,W=G.height;T={class:T.class,rr_width:""+j+"px",rr_height:""+W+"px"}}A==="iframe"&&!b(T.src)&&(e.contentDocument||(T.rr_src=T.src),delete T.src);var J;try{customElements.get(A)&&(J=!0)}catch{}return{type:NodeType$3.Element,tagName:A,attributes:T,childNodes:[],isSVG:isSVGElement(e)||void 0,needBlock:E,rootId:w,isCustom:J}}function lowerIfExists(e){return e==null?"":e.toLowerCase()}function slimDOMExcluded(e,t){if(t.comment&&e.type===NodeType$3.Comment)return!0;if(e.type===NodeType$3.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&extractFileExtension(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(lowerIfExists(e.attributes.name).match(/^msapplication-tile(image|color)$/)||lowerIfExists(e.attributes.name)==="application-name"||lowerIfExists(e.attributes.rel)==="icon"||lowerIfExists(e.attributes.rel)==="apple-touch-icon"||lowerIfExists(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&lowerIfExists(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(lowerIfExists(e.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(e.attributes.name).match(/^(og|twitter):/)||lowerIfExists(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(lowerIfExists(e.attributes.name)==="robots"||lowerIfExists(e.attributes.name)==="googlebot"||lowerIfExists(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(lowerIfExists(e.attributes.name)==="author"||lowerIfExists(e.attributes.name)==="generator"||lowerIfExists(e.attributes.name)==="framework"||lowerIfExists(e.attributes.name)==="publisher"||lowerIfExists(e.attributes.name)==="progid"||lowerIfExists(e.attributes.property).match(/^article:/)||lowerIfExists(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(lowerIfExists(e.attributes.name)==="google-site-verification"||lowerIfExists(e.attributes.name)==="yandex-verification"||lowerIfExists(e.attributes.name)==="csrf-token"||lowerIfExists(e.attributes.name)==="p:domain_verify"||lowerIfExists(e.attributes.name)==="verify-v1"||lowerIfExists(e.attributes.name)==="verification"||lowerIfExists(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function serializeNodeWithId(e,t){var i=t.doc,s=t.mirror,o=t.blockClass,a=t.blockSelector,l=t.maskTextClass,c=t.maskTextSelector,u=t.skipChild,d=u===void 0?!1:u,p=t.inlineStylesheet,m=p===void 0?!0:p,g=t.maskInputOptions,b=g===void 0?{}:g,y=t.maskTextFn,S=t.maskInputFn,w=t.slimDOMOptions,E=t.dataURLOptions,A=E===void 0?{}:E,T=t.inlineImages,P=T===void 0?!1:T,O=t.recordCanvas,k=O===void 0?!1:O,F=t.onSerialize,N=t.onIframeLoad,U=t.iframeLoadTimeout,H=U===void 0?5e3:U,Y=t.onStylesheetLoad,Z=t.stylesheetLoadTimeout,ie=Z===void 0?5e3:Z,q=t.keepIframeSrcFn,z=q===void 0?function(){return!1}:q,$=t.newlyAddedElement,B=$===void 0?!1:$,M=t.cssCaptured,D=M===void 0?!1:M,G=t.needsMask,j=t.preserveWhiteSpace,W=j===void 0?!0:j;if(!G){var J=G===void 0;G=needMaskingText(e,l,c,J)}var re=serializeNode(e,{doc:i,mirror:s,blockClass:o,blockSelector:a,needsMask:G,inlineStylesheet:m,maskInputOptions:b,maskTextFn:y,maskInputFn:S,dataURLOptions:A,inlineImages:P,recordCanvas:k,keepIframeSrcFn:z,newlyAddedElement:B,cssCaptured:D});if(!re)return console.warn(e,"not serialized"),null;var se;s.hasNode(e)?se=s.getId(e):slimDOMExcluded(re,w)||!W&&re.type===NodeType$3.Text&&!re.textContent.replace(/^\s+|\s+$/gm,"").length?se=IGNORED_NODE:se=genId();var ce=Object.assign(re,{id:se});if(s.add(e,ce),se===IGNORED_NODE)return null;F&&F(e);var le=!d;if(ce.type===NodeType$3.Element){le=le&&!ce.needBlock,delete ce.needBlock;var Q=index$1.shadowRoot(e);Q&&isNativeShadowDom(Q)&&(ce.isShadowHost=!0)}if((ce.type===NodeType$3.Document||ce.type===NodeType$3.Element)&&le){w.headWhitespace&&ce.type===NodeType$3.Element&&ce.tagName==="head"&&(W=!1);var oe={doc:i,mirror:s,blockClass:o,blockSelector:a,needsMask:G,maskTextClass:l,maskTextSelector:c,skipChild:d,inlineStylesheet:m,maskInputOptions:b,maskTextFn:y,maskInputFn:S,slimDOMOptions:w,dataURLOptions:A,inlineImages:P,recordCanvas:k,preserveWhiteSpace:W,onSerialize:F,onIframeLoad:N,iframeLoadTimeout:H,onStylesheetLoad:Y,stylesheetLoadTimeout:ie,keepIframeSrcFn:z,cssCaptured:!1};if(!(ce.type===NodeType$3.Element&&ce.tagName==="textarea"&&ce.attributes.value!==void 0)){ce.type===NodeType$3.Element&&ce.attributes._cssText!==void 0&&typeof ce.attributes._cssText=="string"&&(oe.cssCaptured=!0);for(var de=_create_for_of_iterator_helper_loose(Array.from(index$1.childNodes(e))),ue;!(ue=de()).done;){var ye=ue.value,ve=serializeNodeWithId(ye,oe);ve&&ce.childNodes.push(ve)}}var me=null;if(isElement(e)&&(me=index$1.shadowRoot(e)))for(var Oe=_create_for_of_iterator_helper_loose(Array.from(index$1.childNodes(me))),$e;!($e=Oe()).done;){var De=$e.value,Xe=serializeNodeWithId(De,oe);Xe&&(isNativeShadowDom(me)&&(Xe.isShadow=!0),ce.childNodes.push(Xe))}}var je=index$1.parentNode(e);return je&&isShadowRoot(je)&&isNativeShadowDom(je)&&(ce.isShadow=!0),ce.type===NodeType$3.Element&&ce.tagName==="iframe"&&onceIframeLoaded(e,function(){var be=e.contentDocument;if(be&&N){var Me=serializeNodeWithId(be,{doc:be,mirror:s,blockClass:o,blockSelector:a,needsMask:G,maskTextClass:l,maskTextSelector:c,skipChild:!1,inlineStylesheet:m,maskInputOptions:b,maskTextFn:y,maskInputFn:S,slimDOMOptions:w,dataURLOptions:A,inlineImages:P,recordCanvas:k,preserveWhiteSpace:W,onSerialize:F,onIframeLoad:N,iframeLoadTimeout:H,onStylesheetLoad:Y,stylesheetLoadTimeout:ie,keepIframeSrcFn:z});Me&&N(e,Me)}},H),ce.type===NodeType$3.Element&&ce.tagName==="link"&&typeof ce.attributes.rel=="string"&&(ce.attributes.rel==="stylesheet"||ce.attributes.rel==="preload"&&typeof ce.attributes.href=="string"&&extractFileExtension(ce.attributes.href)==="css")&&onceStylesheetLoaded(e,function(){if(Y){var be=serializeNodeWithId(e,{doc:i,mirror:s,blockClass:o,blockSelector:a,needsMask:G,maskTextClass:l,maskTextSelector:c,skipChild:!1,inlineStylesheet:m,maskInputOptions:b,maskTextFn:y,maskInputFn:S,slimDOMOptions:w,dataURLOptions:A,inlineImages:P,recordCanvas:k,preserveWhiteSpace:W,onSerialize:F,onIframeLoad:N,iframeLoadTimeout:H,onStylesheetLoad:Y,stylesheetLoadTimeout:ie,keepIframeSrcFn:z});be&&Y(e,be)}},ie),ce}function snapshot(e,t){var i=t,s=i.mirror,o=s===void 0?new Mirror:s,a=i.blockClass,l=a===void 0?"rr-block":a,c=i.blockSelector,u=c===void 0?null:c,d=i.maskTextClass,p=d===void 0?"rr-mask":d,m=i.maskTextSelector,g=m===void 0?null:m,b=i.inlineStylesheet,y=b===void 0?!0:b,S=i.inlineImages,w=S===void 0?!1:S,E=i.recordCanvas,A=E===void 0?!1:E,T=i.maskAllInputs,P=T===void 0?!1:T,O=i.maskTextFn,k=i.maskInputFn,F=i.slimDOM,N=F===void 0?!1:F,U=i.dataURLOptions,H=i.preserveWhiteSpace,Y=i.onSerialize,Z=i.onIframeLoad,ie=i.iframeLoadTimeout,q=i.onStylesheetLoad,z=i.stylesheetLoadTimeout,$=i.keepIframeSrcFn,B=$===void 0?function(){return!1}:$,M=P===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:P===!1?{password:!0}:P,D=N===!0||N==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:N==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:N===!1?{}:N;return serializeNodeWithId(e,{doc:e,mirror:o,blockClass:l,blockSelector:u,maskTextClass:p,maskTextSelector:g,skipChild:!1,inlineStylesheet:y,maskInputOptions:M,maskTextFn:O,maskInputFn:k,slimDOMOptions:D,dataURLOptions:U,inlineImages:w,recordCanvas:A,preserveWhiteSpace:H,onSerialize:Y,onIframeLoad:Z,iframeLoadTimeout:ie,onStylesheetLoad:q,stylesheetLoadTimeout:z,keepIframeSrcFn:B,newlyAddedElement:!1})}function getDefaultExportFromCjs$1(e){return e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace$1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var i=function s(){return _instanceof(this,s)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(i,s,o.get?o:{enumerable:!0,get:function(){return e[s]}})}),i}var picocolors_browser$1={exports:{}},x$1=String,create$1=function e(){return{isColorSupported:!1,reset:x$1,bold:x$1,dim:x$1,italic:x$1,underline:x$1,inverse:x$1,hidden:x$1,strikethrough:x$1,black:x$1,red:x$1,green:x$1,yellow:x$1,blue:x$1,magenta:x$1,cyan:x$1,white:x$1,gray:x$1,bgBlack:x$1,bgRed:x$1,bgGreen:x$1,bgYellow:x$1,bgBlue:x$1,bgMagenta:x$1,bgCyan:x$1,bgWhite:x$1}};picocolors_browser$1.exports=create$1(),picocolors_browser$1.exports.createColors=create$1;var picocolors_browserExports$1=picocolors_browser$1.exports,__viteBrowserExternal$2={},__viteBrowserExternal$1$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal$2},Symbol.toStringTag,{value:"Module"})),require$$2$1=getAugmentedNamespace$1(__viteBrowserExternal$1$1),pico$1=picocolors_browserExports$1,terminalHighlight$1$1=require$$2$1,CssSyntaxError$3$1=function(e){_inherits(t,e);function t(s,o,a,l,c,u){var d;return d=e.call(this,s)||this,d.name="CssSyntaxError",d.reason=s,c&&(d.file=c),l&&(d.source=l),u&&(d.plugin=u),typeof o<"u"&&typeof a<"u"&&(typeof o=="number"?(d.line=o,d.column=a):(d.line=o.line,d.column=o.column,d.endLine=a.line,d.endColumn=a.column)),d.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(d,t),d}var i=t.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(o){var a=this;if(!this.source)return"";var l=this.source;o==null&&(o=pico$1.isColorSupported),terminalHighlight$1$1&&o&&(l=terminalHighlight$1$1(l));var c=l.split(/\r?\n/),u=Math.max(this.line-3,0),d=Math.min(this.line+2,c.length),p=String(d).length,m,g;if(o){var b=pico$1.createColors(!0),y=b.bold,S=b.gray,w=b.red;m=function(E){return y(w(E))},g=function(E){return S(E)}}else m=g=function(E){return E};return c.slice(u,d).map(function(E,A){var T=u+1+A,P=" "+(" "+T).slice(-p)+" | ";if(T===a.line){var O=g(P.replace(/\d/g," "))+E.slice(0,a.column-1).replace(/[^\t]/g," ");return m(">")+g(P)+E+`
|
|
132
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function q(Q,oe){if(Q){if(typeof Q=="string")return z(Q,oe);var de=Object.prototype.toString.call(Q).slice(8,-1);return de==="Object"&&Q.constructor&&(de=Q.constructor.name),de==="Map"||de==="Set"?Array.from(Q):de==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(de)?z(Q,oe):void 0}}function z(Q,oe){(oe==null||oe>Q.length)&&(oe=Q.length);for(var de=0,ue=new Array(oe);de<oe;de++)ue[de]=Q[de];return ue}function $(Q,oe){if(!(Q instanceof oe))throw new TypeError("Cannot call a class as a function")}function B(Q,oe){for(var de=0;de<oe.length;de++){var ue=oe[de];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(Q,ue.key,ue)}}function M(Q,oe){return(M=Object.setPrototypeOf||function(de,ue){return de.__proto__=ue,de})(Q,oe)}function D(Q){var oe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var de,ue=W(Q);if(oe){var ye=W(this).constructor;de=Reflect.construct(ue,arguments,ye)}else de=ue.apply(this,arguments);return G(this,de)}}function G(Q,oe){return!oe||U(oe)!=="object"&&typeof oe!="function"?j(Q):oe}function j(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function W(Q){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(oe){return oe.__proto__||Object.getPrototypeOf(oe)})(Q)}function J(Q,oe,de){return oe in Q?Object.defineProperty(Q,oe,{value:de,enumerable:!0,configurable:!0,writable:!0}):Q[oe]=de,Q}var re=d.a.createRef(),se=function(Q){(function(ve,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function");ve.prototype=Object.create(me&&me.prototype,{constructor:{value:ve,writable:!0,configurable:!0}}),me&&M(ve,me)})(ye,Q);var oe,de,ue=D(ye);function ye(ve){var me;$(this,ye);for(var Oe=arguments.length,$e=new Array(Oe>1?Oe-1:0),De=1;De<Oe;De++)$e[De-1]=arguments[De];return J(j(me=ue.call.apply(ue,[this,ve].concat($e))),"canvas",d.a.createRef()),J(j(me),"confetti",void 0),me.canvas=ve.canvasRef||re,me}return oe=ye,(de=[{key:"componentDidMount",value:function(){if(this.canvas.current){var ve=ce(this.props)[0];this.confetti=new F(this.canvas.current,ve)}}},{key:"componentDidUpdate",value:function(){var ve=ce(this.props)[0];this.confetti&&(this.confetti.options=ve)}},{key:"componentWillUnmount",value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:"render",value:function(){var ve=ie(ce(this.props),2),me=ve[0],Oe=ve[1],$e=Z({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},Oe.style);return d.a.createElement("canvas",H({width:me.width,height:me.height,ref:this.canvas},Oe,{style:$e}))}}])&&B(oe.prototype,de),ye}(u.Component);function ce(Q){var oe={},de={},ue=[].concat(N(Object.keys(k)),["confettiSource","drawShape","onConfettiComplete"]),ye=["canvasRef"];for(var ve in Q){var me=Q[ve];ue.includes(ve)?oe[ve]=me:ye.includes(ve)?ye[ve]=me:de[ve]=me}return[oe,de,{}]}J(se,"defaultProps",Z({},k)),J(se,"displayName","ReactConfetti");var le=d.a.forwardRef(function(Q,oe){return d.a.createElement(se,H({canvasRef:oe},Q))});o.default=le}]).default})}(reactConfetti_min$1)),reactConfetti_min$1.exports}var reactConfetti_minExports=requireReactConfetti_min();const Confetti=getDefaultExportFromCjs$3(reactConfetti_minExports),ConfettiProvider=({children:e})=>{const{isVisible:t,stopConfetti:i}=useConfettiStore(s=>s);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[e,t&&reactDomExports.createPortal(jsxRuntimeExports.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:999999},children:jsxRuntimeExports.jsx(Confetti,{recycle:!1,onConfettiComplete:()=>i()})}),document.body)]})};function BalanceHeader({type:e,balanceId:t}){const{t:i}=useTranslation(),{data:s}=useProfile();return jsxRuntimeExports.jsxs("div",{className:"absolute top-3 left-4 z-1 flex flex-col items-start",children:[jsxRuntimeExports.jsx(Caption,{weight:"3",children:i("topUpModal.balance")}),jsxRuntimeExports.jsxs("div",{id:t,className:"flex flex-row gap-0.5 items-center justify-center",children:[jsxRuntimeExports.jsx("div",{className:"size-5 flex items-center justify-center",children:e==="coins"?jsxRuntimeExports.jsx(IconBalanceCoins,{style:{height:18}}):e==="gems"?jsxRuntimeExports.jsx(IconBalanceGems,{width:18,height:18}):jsxRuntimeExports.jsx(IconUsdt,{style:{height:18,width:19}})}),jsxRuntimeExports.jsx(AnimatedBalance,{className:"text-rounded",style:{fontSize:"17px",lineHeight:"22px"},value:e==="coins"?s.balance_coins:e==="gems"?s.balance_gems:s.balance_usdt,noRounding:e==="usdt"})]})]})}const StarParticles=({count:e=50,width:t,height:i,style:s,delay:o=0})=>{const[a,l]=reactExports.useState(!1),c=reactExports.useRef(null),u=reactExports.useRef([]),d=reactExports.useRef();return reactExports.useEffect(()=>{const p=setTimeout(()=>{l(!0)},o);return()=>clearTimeout(p)},[o]),reactExports.useEffect(()=>{const p=()=>({x:Math.random()*t,y:Math.random()*i,scale:.6+Math.random()*.9,rotation:Math.random()*360,opacity:.3+Math.random()*.7,velocity:{x:(Math.random()-.5)*.24,y:(Math.random()-.5)*.24},fadeOut:!1});u.current=Array(e).fill(null).map(p);let m=performance.now();const g=b=>{const y=c.current;if(!y)return;const S=(b-m)/16.67;m=b;const w=window.devicePixelRatio||1;y.width=t*w,y.height=i*w;const E=y.getContext("2d",{alpha:!0});E&&(E.scale(w,w),E.clearRect(0,0,t,i),E.imageSmoothingEnabled=!1,u.current.forEach(A=>{!A.fadeOut&&(A.x<10||A.x>t-10||A.y<10||A.y>i-10)&&(A.fadeOut=!0),A.fadeOut&&(A.opacity=Math.max(0,A.opacity-.03*S)),E.save(),E.translate(A.x,A.y),E.rotate(A.rotation*Math.PI/180),E.scale(A.scale,A.scale),E.globalAlpha=A.opacity,E.beginPath(),E.moveTo(3,0),E.lineTo(2.635,2.635),E.lineTo(0,3),E.lineTo(2.635,3.365),E.lineTo(3,6),E.lineTo(3.365,3.365),E.lineTo(6,3),E.lineTo(3.365,2.635),E.closePath(),E.fillStyle="#FFB700",E.fill(),E.restore(),A.x+=A.velocity.x*S,A.y+=A.velocity.y*S,A.rotation+=.24*S,A.opacity<=0&&Object.assign(A,p())}),d.current=requestAnimationFrame(g))};return d.current=requestAnimationFrame(g),()=>{d.current&&cancelAnimationFrame(d.current)}},[t,i,e]),jsxRuntimeExports.jsx("canvas",{ref:c,width:t,height:i,style:{position:"absolute",pointerEvents:"none",zIndex:2,width:`${t}px`,height:`${i}px`,opacity:a?1:0,transform:`scale(${a?1:.9})`,transition:"opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",...s}})},PRICES_TAG="prices";function usePrices(){return useQuery({queryKey:[PRICES_TAG],queryFn:async()=>await makeRequest("prices","GET")})}const IconCurrencyStar=e=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:[jsxRuntimeExports.jsx("title",{children:"Currency star"}),jsxRuntimeExports.jsx("path",{d:"M5.87807 4.95235L7.59874 1.50475C7.79707 1.10699 8.27698 0.947233 8.67063 1.14796C8.82496 1.22664 8.95003 1.3541 9.02655 1.51082L10.6516 4.83573C10.7843 5.10734 11.0437 5.29267 11.3414 5.32865L14.7439 5.73942C15.2058 5.79513 15.5357 6.2189 15.4804 6.6858C15.4577 6.87807 15.3708 7.0569 15.2342 7.19238L12.5446 9.86072C12.436 9.96845 12.3835 10.1211 12.4024 10.2737L12.8494 13.8758C12.9133 14.3915 12.5515 14.8621 12.0415 14.9267C11.8481 14.9512 11.652 14.9139 11.4807 14.8198L8.63941 13.2578C8.4337 13.1449 8.18638 13.1416 7.97785 13.2492L5.034 14.7687C4.61977 14.9826 4.11233 14.8163 3.90077 14.3976C3.82165 14.2408 3.79239 14.0633 3.8171 13.889L4.0525 12.2364C4.1676 11.4281 4.66464 10.7269 5.38472 10.3569L8.65458 8.67676C8.74194 8.6319 8.77662 8.52416 8.73219 8.43594C8.69794 8.36744 8.62424 8.32886 8.54924 8.3397L4.55019 8.91585C3.93892 9.00408 3.31898 8.83045 2.83971 8.43681L1.50793 7.34324C1.12772 7.0311 1.06985 6.46666 1.37874 6.08255C1.52223 5.90394 1.72837 5.78797 1.95424 5.75871L5.3689 5.31651C5.58783 5.28812 5.7788 5.15177 5.87807 4.95235Z",fill:"url(#paint0_linear_4259_226)"}),jsxRuntimeExports.jsx("path",{d:"M8.98273 9.42344C9.05773 9.4126 9.13143 9.45119 9.16568 9.51968C9.21012 9.6079 9.17544 9.71564 9.08808 9.76051L5.81822 11.4406C5.09813 11.8106 4.6011 12.5119 4.486 13.3202L4.27899 14.7742C4.1214 14.6962 3.98658 14.5676 3.90074 14.3975C3.82162 14.2408 3.79236 14.0632 3.81707 13.889L4.05247 12.2364C4.16757 11.4281 4.66461 10.7268 5.38469 10.3568L6.50687 9.78001L8.98273 9.42344Z",fill:"white",fillOpacity:"0.660262"}),jsxRuntimeExports.jsx("path",{d:"M8.67063 1.14796C8.82496 1.22664 8.95003 1.3541 9.02655 1.51082L10.6516 4.83573C10.7843 5.10734 11.0437 5.29267 11.3414 5.32865L14.7439 5.73942C15.2058 5.79513 15.5357 6.2189 15.4804 6.6858C15.472 6.75777 15.4544 6.82778 15.4288 6.89454C15.351 6.85856 15.2667 6.83407 15.1774 6.82323L11.7749 6.41246C11.4773 6.37648 11.2178 6.19115 11.0851 5.91955L9.46007 2.59463C9.38356 2.43791 9.25848 2.31045 9.10415 2.23177C8.71051 2.03105 8.2306 2.1908 8.03226 2.58856L6.3116 6.03617C6.21232 6.23559 6.02135 6.37193 5.80242 6.40033L2.38776 6.84252C2.1619 6.87178 1.95576 6.98775 1.81226 7.16636C1.73921 7.25719 1.68675 7.3582 1.65402 7.46333L1.50793 7.34324C1.12772 7.0311 1.06985 6.46666 1.37874 6.08255C1.52223 5.90394 1.72837 5.78797 1.95424 5.75871L5.3689 5.31651C5.58783 5.28812 5.7788 5.15177 5.87807 4.95235L7.59874 1.50475C7.79707 1.10699 8.27698 0.947233 8.67063 1.14796Z",fill:"white",fillOpacity:"0.660262"}),jsxRuntimeExports.jsx("path",{d:"M7.2883 1.34987C7.5727 0.779997 8.26244 0.550446 8.82797 0.83874C9.04972 0.951673 9.22855 1.13419 9.33823 1.35832L10.9631 4.68324C11.0444 4.8495 11.2024 4.96243 11.3829 4.98432L14.7855 5.39487C15.4381 5.47377 15.9024 6.0703 15.8248 6.72644C15.793 6.99631 15.6709 7.24754 15.4785 7.43851L12.7889 10.1066C12.7568 10.1387 12.7407 10.1847 12.7466 10.2308L13.1936 13.833C13.2809 14.5377 12.7856 15.1819 12.085 15.2708C11.8189 15.3044 11.5492 15.253 11.3138 15.1236L8.47226 13.5618C8.368 13.5044 8.24271 13.5027 8.13693 13.5573L5.19308 15.0768C4.60695 15.3792 3.88947 15.1442 3.5912 14.554C3.48 14.3337 3.43904 14.0844 3.47372 13.8402L3.70912 12.1873C3.84005 11.268 4.4058 10.4699 5.22624 10.0483L7.60521 8.82579L4.5998 9.25909C3.91721 9.3575 3.22531 9.17391 2.67972 8.75252L2.61967 8.70483L1.28767 7.61105C0.760502 7.17839 0.680517 6.3974 1.10841 5.86503C1.30783 5.61683 1.59482 5.45535 1.90956 5.4146L5.32422 4.9724C5.42848 4.95896 5.51974 4.89371 5.56786 4.79747L7.2883 1.34987ZM8.51301 1.45673C8.2917 1.3438 8.02161 1.43375 7.9089 1.65962L6.18845 5.10723C6.03758 5.40961 5.74734 5.61705 5.41331 5.66019L1.99865 6.10238C1.86187 6.12016 1.73658 6.1906 1.64901 6.29964C1.45913 6.53569 1.49489 6.88381 1.72791 7.075L3.05992 8.16878C3.46396 8.50043 3.98593 8.64674 4.50074 8.57261L8.49957 7.99624C8.72284 7.96416 8.9409 8.07861 9.04213 8.27998C9.17175 8.53771 9.07009 8.8531 8.81301 8.98532L5.54337 10.6652C4.92343 10.9837 4.4951 11.588 4.39583 12.2853L4.16042 13.9379C4.14568 14.0417 4.16324 14.1477 4.21028 14.2412C4.33513 14.4883 4.63231 14.5856 4.87487 14.4603L7.81894 12.941C8.12978 12.7804 8.49957 12.7852 8.80651 12.9538L11.6478 14.5156C11.7549 14.5745 11.8772 14.5977 11.9979 14.5826C12.3174 14.542 12.5457 14.2453 12.5051 13.9184L12.0582 10.3162C12.0261 10.0572 12.1154 9.79775 12.3005 9.61437L14.9899 6.94602C15.0707 6.86582 15.1225 6.75961 15.136 6.64494C15.1689 6.36705 14.9736 6.11647 14.7024 6.08352L11.2997 5.67298C10.885 5.6229 10.5241 5.36496 10.3399 4.98779L8.71504 1.66287C8.67125 1.57356 8.60037 1.50117 8.51301 1.45673Z",fill:"url(#paint1_linear_4259_226)"}),jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:"paint0_linear_4259_226",x1:"6.38247",y1:"4.31269",x2:"12.2351",y2:"14.7173",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#FFCE00"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#FFAD00"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"paint1_linear_4259_226",x1:"8.33333",y1:"1.06114",x2:"8.33333",y2:"14.7172",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{stopColor:"#F28B00"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#FA7400"})]})]})]}),XsButton=reactExports.forwardRef(({className:e,children:t,...i},s)=>jsxRuntimeExports.jsx(Button,{...i,ref:s,className:`xs-button ${e||""}`,size:"s",children:t}));XsButton.displayName="XsButton";const Ribbon=({text:e})=>jsxRuntimeExports.jsxs("svg",{style:{position:"absolute",top:-2,right:-2,width:48,height:48,overflow:"visible"},children:[jsxRuntimeExports.jsx("title",{children:"Ribbon"}),jsxRuntimeExports.jsx("path",{d:"M46.83 24.5L23.5 1.17C22.75 0.42 21.73 0 20.68 0C19.62 0 2.73 0.05 1.55 0.05C0.36 0.05 -0.23 1.4885 0.6 2.32L45.72 47.44C46.56 48.28 48 47.68 48 46.5C48 45.31 48 28.38 48 27.32C48 26.26 47.5 25.24 46.82 24.5Z",fill:"#1EC948"}),jsxRuntimeExports.jsx("text",{x:"21",y:"21",textAnchor:"middle",transform:"rotate(45 24 24)",style:{fill:"white",fontSize:"13px",fontWeight:700,fontFamily:"-apple-system, system-ui, sans-serif"},children:e})]}),BuyOption=({amount:e,price:t,onClick:i,loading:s,discount:o,optionIcon:a})=>{const{t:l}=useTranslation();return jsxRuntimeExports.jsxs(motion.button,{whileTap:{scale:.95},className:"relative flex flex-col items-center bg-tgui-section-bg cursor-pointer rounded-lg w-full px-1 pb-2.5 pt-1",onClick:i,type:"button",children:[o&&jsxRuntimeExports.jsx(Ribbon,{text:o}),jsxRuntimeExports.jsx("div",{className:"h-12.5 flex justify-center items-center",children:jsxRuntimeExports.jsx("img",{className:"max-w-20 max-h-12.5 object-cover",src:a,alt:"Option icon"})}),jsxRuntimeExports.jsx(Text,{weight:"1",className:"text-rounded",style:{fontSize:"20px",lineHeight:"25px"},children:formatter.format(e)}),jsxRuntimeExports.jsx(Text,{weight:"3",style:{fontSize:"10px",lineHeight:"13px"},children:l("topUpModal.gems")}),jsxRuntimeExports.jsx(XsButton,{onClick:c=>{c.stopPropagation(),i()},mode:"bezeled",style:{color:"#F36200",backgroundColor:"rgba(255, 190, 0, 0.20)",marginTop:10},before:jsxRuntimeExports.jsx(IconCurrencyStar,{style:{width:16,height:16}}),loading:s,children:jsxRuntimeExports.jsx(Text,{weight:"2",style:{fontSize:"10px",lineHeight:"13px"},children:formatter.format(t)})})]})},optionIcon1=assetUrl("buyOptions/buyOption1.webp"),optionIcon2=assetUrl("buyOptions/buyOption2.webp"),optionIcon3=assetUrl("buyOptions/buyOption3.webp"),optionIcon4=assetUrl("buyOptions/buyOption4.webp"),optionIcon5=assetUrl("buyOptions/buyOption5.webp"),optionIcon6=assetUrl("buyOptions/buyOption6.webp"),icons=[optionIcon1,optionIcon2,optionIcon3,optionIcon4,optionIcon5,optionIcon6],getIconByIndex=e=>icons[e%icons.length],TopUpModal=({...e})=>{const{t}=useTranslation(),{isOpen:i,setIsOpen:s}=useTopUpModalStore(),{showSnackbar:o}=useSnackbar(),a=useQueryClient(),l=useFireConfetti(),[c,u]=reactExports.useState(null),{data:d,isLoading:p,error:m}=usePrices(),g=async(b,y)=>{var S,w;u(1),(w=(S=window.Telegram)==null?void 0:S.WebApp)==null||w.openInvoice(b,E=>{E==="paid"&&(a.invalidateQueries({queryKey:[PROFILE_TAG]}),s(!1),l(),o(t("snackbar.purchase.walletPurchaseGems"),{type:"success_top",gems:y.toString()}))}),u(null)};return jsxRuntimeExports.jsx(Drawer,{open:i,onOpenChange:s,headerOptions:{before:jsxRuntimeExports.jsx(BalanceHeader,{type:"gems"})},variant:"secondary",...e,children:jsxRuntimeExports.jsxs(DrawerContent,{children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3 items-center",children:[jsxRuntimeExports.jsx(LazyLottie,{asset:"lottie/moneyTongue.json",className:"size-18",height:72,width:72}),jsxRuntimeExports.jsx(Title$1,{level:"2",weight:"1",children:t("topUpModal.topUpBalance")})]}),p?jsxRuntimeExports.jsx("div",{className:"flex justify-center items-center w-full",style:{height:282},children:jsxRuntimeExports.jsx(Spinner,{size:"m"})}):m?jsxRuntimeExports.jsx("div",{className:"text-red-500 text-center p-4",children:t("common.error")}):d!=null&&d.items?jsxRuntimeExports.jsx("div",{className:"grid grid-cols-3 gap-1.5 w-full",children:d.items.map((b,y)=>jsxRuntimeExports.jsxs("div",{className:"relative z-1 overflow-visible",children:[y>=d.items.length-2&&jsxRuntimeExports.jsx(StarParticles,{width:100,height:58,count:30,delay:300,style:{bottom:0,left:"50%",transform:"translateX(-50%) scale(1)"}}),jsxRuntimeExports.jsx(BuyOption,{amount:b.gems,price:b.stars,onClick:()=>g(b.invoice_url,b.gems),loading:c===b.gems,discount:b.discount?`–${b.discount}%`:void 0,optionIcon:getIconByIndex(y)},b.gems)]},b.invoice_url))}):null]})})},supportedLanguages=["en","ru","hi","es","pt"];function mapTelegramLanguageToSupported(e){return{"pt-br":"pt","pt-pt":"pt"}[e]||e}const getTelegramLanguage=()=>{var s,o,a;const e=(a=(o=(s=window.Telegram)==null?void 0:s.WebApp)==null?void 0:o.initDataUnsafe.user)==null?void 0:a.language_code,t=e?mapTelegramLanguageToSupported(e):null;return t&&supportedLanguages.includes(t)?t:"en"};function I18nBackendLanguageProvider({children:e}){const{i18n:t}=useTranslation(),{data:i}=useProfile(),s=reactExports.useRef(!1),o=reactExports.useRef(null),a=getTelegramLanguage(),l=i.language===t.language,c=i.language===null&&t.language===a;if(reactExports.useEffect(()=>{!s.current&&(l||c)&&(s.current=!0)},[l,c]),!s.current&&!l&&!c){if(o.current)throw o.current;const u=i.language===null?a:i.language;throw o.current=t.changeLanguage(u),o.current}return o.current=null,e}class APIRequestError extends Error{constructor({message:t,status:i,responseText:s}){super(t),this.status=i,this.responseText=s}}function createMakeRequest(e){return async function(i,s,o){e.waitUntilReady&&await e.waitUntilReady();const a=`${e.baseUrl}/${i}`;try{const l=e.getAuthData(),c=e.getBotId(),u={"X-Auth":l||e.getInitData(),"Content-Type":"application/json"};if(c&&(u["X-Bot-ID"]=c),l){console.warn("WARNING: AUTH_DATA is used for requests!!!"),console.log("=== API Request Debug ==="),console.log("externalAuthData:",l),console.log("externalAuthData type:",typeof l),console.log("externalAuthData truthy?",!!l),console.log("externalAuthData length:",l==null?void 0:l.length),console.log("config.getInitData():",e.getInitData()),console.log("config.getInitData() type:",typeof e.getInitData()),console.log("config.getInitData() truthy?",!!e.getInitData());const p=l||e.getInitData();console.log("X-Auth value (before headers):",p),console.log("X-Auth value type:",typeof p),console.log("X-Auth value truthy?",!!p),console.log("X-Auth value length:",p==null?void 0:p.length),u["a-deb"]=l,u["a-deb-string"]=String(l),console.log("Final headers object:",u),u["X-Auth"]||(u["X-Auth"]=l),console.log("Final X-Auth header:",u["X-Auth"])}const d=await fetch(a,{method:s,headers:u,body:o?JSON.stringify(o):null});if(!d.ok)throw new APIRequestError({message:`Request to ${i} failed with status ${d.status}`,status:d.status,responseText:await(async()=>{try{return await d.text()}catch{return}})()});return d.json()}catch(l){throw l instanceof APIRequestError||console.error(`Error during request to ${i}:`,l),l}}}const queryClient=new QueryClient({mutationCache:new MutationCache({onError:e=>{captureException(e)}}),queryCache:new QueryCache({onError:e=>{captureException(e)}}),defaultOptions:{queries:{staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!0,refetchOnMount:!0,retry:(e,t)=>{if(t instanceof APIRequestError&&t.status===401)return e<3;if(t instanceof Error&&"status"in t){const i=t.status;if(i&&i>=400&&i<500)return!1}return e<3},retryDelay:(e,t)=>t instanceof APIRequestError&&t.status===401?Math.min(1e3*2**e,4e3):Math.min(1e3*2**e,3e4)},mutations:{retry:1,retryDelay:1e3}}});function createOverlay(e){let t=document.getElementById("overlay-root");t=document.createElement("div"),t.id="overlay-root",document.body.appendChild(t),clientExports.createRoot(t).render(jsxRuntimeExports.jsx(OverlayManager,{options:e}))}const OverlayManager=({options:e})=>{const t=reactExports.useCallback(()=>{var i;(i=window.Telegram.WebApp)==null||i.openTelegramLink("https://t.me/orbit_portal_bot/app?startapp=profile")},[]);return reactExports.useEffect(()=>{const i=s=>{s.shiftKey&&s.key==="Tab"&&(s.preventDefault(),t())};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[t]),jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:jsxRuntimeExports.jsxs(AppRoot,{children:[jsxRuntimeExports.jsx(OrientationCheck,{}),jsxRuntimeExports.jsx("div",{id:"overlay-banner-top",className:"cssdk-banner-container cssdk-banner-top"}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsxs(I18nBackendLanguageProvider,{children:[jsxRuntimeExports.jsx(SnackbarProvider,{children:jsxRuntimeExports.jsx(BoxOpeningProvider,{children:jsxRuntimeExports.jsxs(ConfettiProvider,{children:[jsxRuntimeExports.jsx(OverlayProfile,{variant:(e==null?void 0:e.variant)||"translucent",onOpenProfile:()=>t(),initialPosition:e==null?void 0:e.initialPosition,initialCoordinates:e==null?void 0:e.initialCoordinates}),jsxRuntimeExports.jsx(TopUpModal,{}),jsxRuntimeExports.jsx(BoxOpeningModal,{}),jsxRuntimeExports.jsx(ProfileInventoryModal,{})]})})}),jsxRuntimeExports.jsx(EventsStack,{})]})}),jsxRuntimeExports.jsx("div",{id:"overlay-banner-bottom",className:"cssdk-banner-container cssdk-banner-bottom"})]})})};class AbortError extends Error{constructor(t="The operation was aborted"){super(t),this.name="AbortError"}}function delay(e,{signal:t}={}){return new Promise((i,s)=>{const o=()=>{s(new AbortError)},a=()=>{clearTimeout(l),o()};if(t!=null&&t.aborted)return o();const l=setTimeout(()=>{t==null||t.removeEventListener("abort",a),i()},e);t==null||t.addEventListener("abort",a,{once:!0})})}var define_process_env_default$3={NODE_ENV:"production",version:"1.92.2",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"},win;if(typeof window>"u"){var loc={hostname:""};win={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:loc,referrer:""},screen:{width:0,height:0},location:loc,addEventListener:function(){},removeEventListener:function(){}}}else win=window;function _array_like_to_array(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function asyncGeneratorStep(e,t,i,s,o,a,l){try{var c=e[a](l),u=c.value}catch(d){i(d);return}c.done?t(u):Promise.resolve(u).then(s,o)}function _async_to_generator(e){return function(){var t=this,i=arguments;return new Promise(function(s,o){var a=e.apply(t,i);function l(u){asyncGeneratorStep(a,s,o,l,c,"next",u)}function c(u){asyncGeneratorStep(a,s,o,l,c,"throw",u)}l(void 0)})}}function _construct(e,t,i){return _is_native_reflect_construct()?_construct=Reflect.construct:_construct=function(o,a,l){var c=[null];c.push.apply(c,a);var u=Function.bind.apply(o,c),d=new u;return l&&_set_prototype_of(d,l.prototype),d},_construct.apply(null,arguments)}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function _create_class(e,t,i){return t&&_defineProperties(e.prototype,t),e}function _extends(){return _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},_extends.apply(this,arguments)}function _get_prototype_of(e){return _get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},_get_prototype_of(e)}function _inherits(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_set_prototype_of(e,t)}function _instanceof(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _is_native_function(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _object_without_properties_loose(e,t){if(e==null)return{};var i={},s=Object.keys(e),o,a;for(a=0;a<s.length;a++)o=s[a],!(t.indexOf(o)>=0)&&(i[o]=e[o]);return i}function _set_prototype_of(e,t){return _set_prototype_of=Object.setPrototypeOf||function(s,o){return s.__proto__=o,s},_set_prototype_of(e,t)}function _type_of(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if(typeof e=="string")return _array_like_to_array(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _array_like_to_array(e,t)}}function _wrap_native_super(e){var t=typeof Map=="function"?new Map:void 0;return _wrap_native_super=function(s){if(s===null||!_is_native_function(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(s))return t.get(s);t.set(s,o)}function o(){return _construct(s,arguments,_get_prototype_of(this).constructor)}return o.prototype=Object.create(s.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),_set_prototype_of(o,s)},_wrap_native_super(e)}function _is_native_reflect_construct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_is_native_reflect_construct=function(){return!!e})()}function _create_for_of_iterator_helper_loose(e,t){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=_unsupported_iterable_to_array(e))||t){i&&(e=i);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _ts_generator(e,t){var i,s,o,a,l={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(d){return function(p){return u([d,p])}}function u(d){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,s&&(o=d[0]&2?s.return:d[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,d[1])).done)return o;switch(s=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return l.label++,{value:d[1],done:!1};case 5:l.label++,s=d[1],d=[0];continue;case 7:d=l.ops.pop(),l.trys.pop();continue;default:if(o=l.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){l=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){l.label=d[1];break}if(d[0]===6&&l.label<o[1]){l.label=o[1],o=d;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(d);break}o[2]&&l.ops.pop(),l.trys.pop();continue}d=t.call(e,l)}catch(p){d=[6,p],s=0}finally{i=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function _ts_values(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],s=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var __defProp=Object.defineProperty,__defNormalProp=function(e,t,i){return t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},__publicField=function(e,t,i){return __defNormalProp(e,(typeof t>"u"?"undefined":_type_of(t))!=="symbol"?t+"":t,i)},_a,__defProp$1=Object.defineProperty,__defNormalProp$1=function(e,t,i){return t in e?__defProp$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},__publicField$1=function(e,t,i){return __defNormalProp$1(e,(typeof t>"u"?"undefined":_type_of(t))!=="symbol"?t+"":t,i)},NodeType$3=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(NodeType$3||{}),testableAccessors$1={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods$1={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype$1={},isAngularZonePresent$1=function(){return!!globalThis.Zone};function getUntaintedPrototype$1(e){if(untaintedBasePrototype$1[e])return untaintedBasePrototype$1[e];var t=globalThis[e],i=t.prototype,s=e in testableAccessors$1?testableAccessors$1[e]:void 0,o=!!(s&&s.every(function(p){var m,g;return!!((g=(m=Object.getOwnPropertyDescriptor(i,p))==null?void 0:m.get)!=null&&g.toString().includes("[native code]"))})),a=e in testableMethods$1?testableMethods$1[e]:void 0,l=!!(a&&a.every(function(p){var m;return typeof i[p]=="function"&&((m=i[p])==null?void 0:m.toString().includes("[native code]"))}));if(o&&l&&!isAngularZonePresent$1())return untaintedBasePrototype$1[e]=t.prototype,t.prototype;try{var c=document.createElement("iframe");document.body.appendChild(c);var u=c.contentWindow;if(!u)return t.prototype;var d=u[e].prototype;return document.body.removeChild(c),d?untaintedBasePrototype$1[e]=d:i}catch{return i}}var untaintedAccessorCache$1={};function getUntaintedAccessor$1(e,t,i){var s,o=e+"."+String(i);if(untaintedAccessorCache$1[o])return untaintedAccessorCache$1[o].call(t);var a=getUntaintedPrototype$1(e),l=(s=Object.getOwnPropertyDescriptor(a,i))==null?void 0:s.get;return l?(untaintedAccessorCache$1[o]=l,l.call(t)):t[i]}var untaintedMethodCache$1={};function getUntaintedMethod$1(e,t,i){var s=e+"."+String(i);if(untaintedMethodCache$1[s])return untaintedMethodCache$1[s].bind(t);var o=getUntaintedPrototype$1(e),a=o[i];return typeof a!="function"?t[i]:(untaintedMethodCache$1[s]=a,a.bind(t))}function childNodes$1(e){return getUntaintedAccessor$1("Node",e,"childNodes")}function parentNode$1(e){return getUntaintedAccessor$1("Node",e,"parentNode")}function parentElement$1(e){return getUntaintedAccessor$1("Node",e,"parentElement")}function textContent$1(e){return getUntaintedAccessor$1("Node",e,"textContent")}function contains$1(e,t){return getUntaintedMethod$1("Node",e,"contains")(t)}function getRootNode$1(e){return getUntaintedMethod$1("Node",e,"getRootNode")()}function host$1(e){return!e||!("host"in e)?null:getUntaintedAccessor$1("ShadowRoot",e,"host")}function styleSheets$1(e){return e.styleSheets}function shadowRoot$1(e){return!e||!("shadowRoot"in e)?null:getUntaintedAccessor$1("Element",e,"shadowRoot")}function querySelector$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelector")(t)}function querySelectorAll$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelectorAll")(t)}function mutationObserverCtor$1(){return getUntaintedPrototype$1("MutationObserver").constructor}var index$1={childNodes:childNodes$1,parentNode:parentNode$1,parentElement:parentElement$1,textContent:textContent$1,contains:contains$1,getRootNode:getRootNode$1,host:host$1,styleSheets:styleSheets$1,shadowRoot:shadowRoot$1,querySelector:querySelector$1,querySelectorAll:querySelectorAll$1,mutationObserver:mutationObserverCtor$1};function isElement(e){return e.nodeType===e.ELEMENT_NODE}function isShadowRoot(e){var t=e&&"host"in e&&"mode"in e&&index$1.host(e)||null;return!!(t&&"shadowRoot"in t&&index$1.shadowRoot(t)===e)}function isNativeShadowDom(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function fixBrowserCompatibilityIssuesInCSS(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function escapeImportStatement(e){var t=e.cssText;if(t.split('"').length<3)return t;var i=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?i.push("layer"):e.layerName&&i.push("layer("+e.layerName+")"),e.supportsText&&i.push("supports("+e.supportsText+")"),e.media.length&&i.push(e.media.mediaText),i.join(" ")+";"}function stringifyStylesheet(e){try{var t=e.rules||e.cssRules;if(!t)return null;var i=e.href;!i&&e.ownerNode&&e.ownerNode.ownerDocument&&(i=e.ownerNode.ownerDocument.location.href);var s=Array.from(t,function(o){return stringifyRule(o,i)}).join("");return fixBrowserCompatibilityIssuesInCSS(s)}catch{return null}}function stringifyRule(e,t){if(isCSSImportRule(e)){var i;try{i=stringifyStylesheet(e.styleSheet)||escapeImportStatement(e)}catch{i=e.cssText}return e.styleSheet.href?absolutifyURLs(i,e.styleSheet.href):i}else{var s=e.cssText;return isCSSStyleRule(e)&&e.selectorText.includes(":")&&(s=fixSafariColons(s)),t?absolutifyURLs(s,t):s}}function fixSafariColons(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function isCSSImportRule(e){return"styleSheet"in e}function isCSSStyleRule(e){return"selectorText"in e}var Mirror=function(){function e(){__publicField$1(this,"idNodeMap",new Map),__publicField$1(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(s){var o;if(!s)return-1;var a=(o=this.getMeta(s))==null?void 0:o.id;return a??-1},t.getNode=function(s){return this.idNodeMap.get(s)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(s){return this.nodeMetaMap.get(s)||null},t.removeNodeFromMap=function(s){var o=this,a=this.getId(s);this.idNodeMap.delete(a),s.childNodes&&s.childNodes.forEach(function(l){return o.removeNodeFromMap(l)})},t.has=function(s){return this.idNodeMap.has(s)},t.hasNode=function(s){return this.nodeMetaMap.has(s)},t.add=function(s,o){var a=o.id;this.idNodeMap.set(a,s),this.nodeMetaMap.set(s,o)},t.replace=function(s,o){var a=this.getNode(s);if(a){var l=this.nodeMetaMap.get(a);l&&this.nodeMetaMap.set(o,l)}this.idNodeMap.set(s,o)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function createMirror$2(){return new Mirror}function maskInputValue(e){var t=e.element,i=e.maskInputOptions,s=e.tagName,o=e.type,a=e.value,l=e.maskInputFn,c=a||"",u=o&&toLowerCase(o);return(i[s.toLowerCase()]||u&&i[u])&&(l?c=l(c,t):c="*".repeat(c.length)),c}function toLowerCase(e){return e.toLowerCase()}var ORIGINAL_ATTRIBUTE_NAME="__rrweb_original__";function is2DCanvasBlank(e){var t=e.getContext("2d");if(!t)return!0;for(var i=50,s=0;s<e.width;s+=i)for(var o=0;o<e.height;o+=i){var a=t.getImageData,l=ORIGINAL_ATTRIBUTE_NAME in a?a[ORIGINAL_ATTRIBUTE_NAME]:a,c=new Uint32Array(l.call(t,s,o,Math.min(i,e.width-s),Math.min(i,e.height-o)).data.buffer);if(c.some(function(u){return u!==0}))return!1}return!0}function getInputType(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?toLowerCase(t):null}function extractFileExtension(e,t){var i;try{i=new URL(e,t??window.location.href)}catch{return null}var s=/\.([0-9a-z]+)(?:$)/i,o=i.pathname.match(s),a;return(a=o==null?void 0:o[1])!=null?a:null}function extractOrigin(e){var t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,URL_PROTOCOL_MATCH=/^(?:[a-z+]+:)?\/\//i,URL_WWW_MATCH=/^www\..*/i,DATA_URI=/^(data:)([^,]*),(.*)/i;function absolutifyURLs(e,t){return(e||"").replace(URL_IN_CSS_REF,function(i,s,o,a,l,c){var u=o||l||c,d=s||a||"";if(!u)return i;if(URL_PROTOCOL_MATCH.test(u)||URL_WWW_MATCH.test(u)||DATA_URI.test(u))return"url("+d+u+d+")";if(u[0]==="/")return"url("+d+(extractOrigin(t)+u)+d+")";var p=t.split("/"),m=u.split("/");p.pop();for(var g=_create_for_of_iterator_helper_loose(m),b;!(b=g()).done;){var y=b.value;y!=="."&&(y===".."?p.pop():p.push(y))}return"url("+d+p.join("/")+d+")"})}function normalizeCssString(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function splitCssText(e,t){var i=Array.from(t.childNodes),s=[];if(i.length>1&&e&&typeof e=="string"){for(var o=normalizeCssString(e),a=1;a<i.length;a++)if(i[a].textContent&&typeof i[a].textContent=="string")for(var l=normalizeCssString(i[a].textContent),c=3;c<l.length;c++){var u=l.substring(0,c);if(o.split(u).length===2){for(var d=o.indexOf(u),p=d;p<e.length;p++)if(normalizeCssString(e.substring(0,p)).length===d){s.push(e.substring(0,p)),e=e.substring(p);break}break}}}return s.push(e),s}function markCssSplits(e,t){return splitCssText(e,t).join("/* rr_split */")}var _id=1,tagNameRegex=new RegExp("[^a-z0-9-_:]"),IGNORED_NODE=-2;function genId(){return _id++}function getValidTagName$1(e){if(_instanceof(e,HTMLFormElement))return"form";var t=toLowerCase(e.tagName);return tagNameRegex.test(t)?"div":t}var canvasService,canvasCtx,SRCSET_NOT_SPACES=/^[^ \t\n\r\u000c]+/,SRCSET_COMMAS_OR_SPACES=/^[, \t\n\r\u000c]+/;function getAbsoluteSrcsetString(e,t){if(t.trim()==="")return t;var i=0;function s(d){var p,m=d.exec(t.substring(i));return m?(p=m[0],i+=p.length,p):""}for(var o=[];s(SRCSET_COMMAS_OR_SPACES),!(i>=t.length);){var a=s(SRCSET_NOT_SPACES);if(a.slice(-1)===",")a=absoluteToDoc(e,a.substring(0,a.length-1)),o.push(a);else{var l="";a=absoluteToDoc(e,a);for(var c=!1;;){var u=t.charAt(i);if(u===""){o.push((a+l).trim());break}else if(c)u===")"&&(c=!1);else if(u===","){i+=1,o.push((a+l).trim());break}else u==="("&&(c=!0);l+=u,i+=1}}}return o.join(", ")}var cachedDocument=new WeakMap;function absoluteToDoc(e,t){return!t||t.trim()===""?t:getHref(e,t)}function isSVGElement(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function getHref(e,t){var i=cachedDocument.get(e);if(i||(i=e.createElement("a"),cachedDocument.set(e,i)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return i.setAttribute("href",t),i.href}function transformAttribute(e,t,i,s){return s&&(i==="src"||i==="href"&&!(t==="use"&&s[0]==="#")||i==="xlink:href"&&s[0]!=="#"||i==="background"&&(t==="table"||t==="td"||t==="th")?absoluteToDoc(e,s):i==="srcset"?getAbsoluteSrcsetString(e,s):i==="style"?absolutifyURLs(s,getHref(e)):t==="object"&&i==="data"?absoluteToDoc(e,s):s)}function ignoreAttribute(e,t,i){return(e==="video"||e==="audio")&&t==="autoplay"}function _isBlockedElement(e,t,i){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(var s=e.classList.length;s--;){var o=e.classList[s];if(t.test(o))return!0}if(i)return e.matches(i)}catch{}return!1}function classMatchesRegex(e,t,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return i?classMatchesRegex(index$1.parentNode(e),t,i):!1;for(var s=e.classList.length;s--;){var o=e.classList[s];if(t.test(o))return!0}return i?classMatchesRegex(index$1.parentNode(e),t,i):!1}function needMaskingText(e,t,i,s){var o;if(isElement(e)){if(o=e,!index$1.childNodes(o).length)return!1}else{if(index$1.parentElement(e)===null)return!1;o=index$1.parentElement(e)}try{if(typeof t=="string"){if(s){if(o.closest("."+t))return!0}else if(o.classList.contains(t))return!0}else if(classMatchesRegex(o,t,s))return!0;if(i){if(s){if(o.closest(i))return!0}else if(o.matches(i))return!0}}catch{}return!1}function onceIframeLoaded(e,t,i){var s=e.contentWindow;if(s){var o=!1,a;try{a=s.document.readyState}catch{return}if(a!=="complete"){var l=setTimeout(function(){o||(t(),o=!0)},i);e.addEventListener("load",function(){clearTimeout(l),o=!0,t()});return}var c="about:blank";if(s.location.href!==c||e.src===c||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function onceStylesheetLoaded(e,t,i){var s=!1,o;try{o=e.sheet}catch{return}if(!o){var a=setTimeout(function(){s||(t(),s=!0)},i);e.addEventListener("load",function(){clearTimeout(a),s=!0,t()})}}function serializeNode(e,t){var i=t.doc,s=t.mirror,o=t.blockClass,a=t.blockSelector,l=t.needsMask,c=t.inlineStylesheet,u=t.maskInputOptions,d=u===void 0?{}:u,p=t.maskTextFn,m=t.maskInputFn,g=t.dataURLOptions,b=g===void 0?{}:g,y=t.inlineImages,S=t.recordCanvas,w=t.keepIframeSrcFn,E=t.newlyAddedElement,A=E===void 0?!1:E,T=t.cssCaptured,P=T===void 0?!1:T,O=getRootId(i,s);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:NodeType$3.Document,childNodes:[],compatMode:e.compatMode}:{type:NodeType$3.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:NodeType$3.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:O};case e.ELEMENT_NODE:return serializeElementNode(e,{doc:i,blockClass:o,blockSelector:a,inlineStylesheet:c,maskInputOptions:d,maskInputFn:m,dataURLOptions:b,inlineImages:y,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:A,rootId:O});case e.TEXT_NODE:return serializeTextNode(e,{doc:i,needsMask:l,maskTextFn:p,rootId:O,cssCaptured:P});case e.CDATA_SECTION_NODE:return{type:NodeType$3.CDATA,textContent:"",rootId:O};case e.COMMENT_NODE:return{type:NodeType$3.Comment,textContent:index$1.textContent(e)||"",rootId:O};default:return!1}}function getRootId(e,t){if(t.hasNode(e)){var i=t.getId(e);return i===1?void 0:i}}function serializeTextNode(e,t){var i=t.needsMask,s=t.maskTextFn,o=t.rootId,a=t.cssCaptured,l=index$1.parentNode(e),c=l&&l.tagName,u="",d=c==="STYLE"?!0:void 0,p=c==="SCRIPT"?!0:void 0;return p?u="SCRIPT_PLACEHOLDER":a||(u=index$1.textContent(e),d&&u&&(u=absolutifyURLs(u,getHref(t.doc)))),!d&&!p&&u&&i&&(u=s?s(u,index$1.parentElement(e)):u.replace(/[\S]/g,"*")),{type:NodeType$3.Text,textContent:u||"",rootId:o}}function serializeElementNode(e,t){for(var i=t.doc,s=t.blockClass,o=t.blockSelector,a=t.inlineStylesheet,l=t.maskInputOptions,c=l===void 0?{}:l,u=t.maskInputFn,d=t.dataURLOptions,p=d===void 0?{}:d,m=t.inlineImages,g=t.recordCanvas,b=t.keepIframeSrcFn,y=t.newlyAddedElement,S=y===void 0?!1:y,w=t.rootId,E=_isBlockedElement(e,s,o),A=getValidTagName$1(e),T={},P=e.attributes.length,O=0;O<P;O++){var k=e.attributes[O];ignoreAttribute(A,k.name,k.value)||(T[k.name]=transformAttribute(i,A,toLowerCase(k.name),k.value))}if(A==="link"&&a){var F=Array.from(i.styleSheets).find(function(re){return re.href===e.href}),N=null;F&&(N=stringifyStylesheet(F)),N&&(delete T.rel,delete T.href,T._cssText=N)}if(A==="style"&&e.sheet){var U=stringifyStylesheet(e.sheet);U&&(e.childNodes.length>1&&(U=markCssSplits(U,e)),T._cssText=U)}if(A==="input"||A==="textarea"||A==="select"){var H=e.value,Y=e.checked;T.type!=="radio"&&T.type!=="checkbox"&&T.type!=="submit"&&T.type!=="button"&&H?T.value=maskInputValue({element:e,type:getInputType(e),tagName:A,value:H,maskInputOptions:c,maskInputFn:u}):Y&&(T.checked=Y)}if(A==="option"&&(e.selected&&!c.select?T.selected=!0:delete T.selected),A==="dialog"&&e.open&&(T.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),A==="canvas"&&g){if(e.__context==="2d")is2DCanvasBlank(e)||(T.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){var Z=e.toDataURL(p.type,p.quality),ie=i.createElement("canvas");ie.width=e.width,ie.height=e.height;var q=ie.toDataURL(p.type,p.quality);Z!==q&&(T.rr_dataURL=Z)}}if(A==="img"&&m){canvasService||(canvasService=i.createElement("canvas"),canvasCtx=canvasService.getContext("2d"));var z=e,$=z.currentSrc||z.getAttribute("src")||"<unknown-src>",B=z.crossOrigin,M=function(){z.removeEventListener("load",M);try{canvasService.width=z.naturalWidth,canvasService.height=z.naturalHeight,canvasCtx.drawImage(z,0,0),T.rr_dataURL=canvasService.toDataURL(p.type,p.quality)}catch(re){if(z.crossOrigin!=="anonymous"){z.crossOrigin="anonymous",z.complete&&z.naturalWidth!==0?M():z.addEventListener("load",M);return}else console.warn("Cannot inline img src="+$+"! Error: "+re)}z.crossOrigin==="anonymous"&&(B?T.crossOrigin=B:z.removeAttribute("crossorigin"))};z.complete&&z.naturalWidth!==0?M():z.addEventListener("load",M)}if(A==="audio"||A==="video"){var D=T;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.rr_mediaVolume=e.volume}if(S||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),E){var G=e.getBoundingClientRect(),j=G.width,W=G.height;T={class:T.class,rr_width:""+j+"px",rr_height:""+W+"px"}}A==="iframe"&&!b(T.src)&&(e.contentDocument||(T.rr_src=T.src),delete T.src);var J;try{customElements.get(A)&&(J=!0)}catch{}return{type:NodeType$3.Element,tagName:A,attributes:T,childNodes:[],isSVG:isSVGElement(e)||void 0,needBlock:E,rootId:w,isCustom:J}}function lowerIfExists(e){return e==null?"":e.toLowerCase()}function slimDOMExcluded(e,t){if(t.comment&&e.type===NodeType$3.Comment)return!0;if(e.type===NodeType$3.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&extractFileExtension(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(lowerIfExists(e.attributes.name).match(/^msapplication-tile(image|color)$/)||lowerIfExists(e.attributes.name)==="application-name"||lowerIfExists(e.attributes.rel)==="icon"||lowerIfExists(e.attributes.rel)==="apple-touch-icon"||lowerIfExists(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&lowerIfExists(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(lowerIfExists(e.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(e.attributes.name).match(/^(og|twitter):/)||lowerIfExists(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(lowerIfExists(e.attributes.name)==="robots"||lowerIfExists(e.attributes.name)==="googlebot"||lowerIfExists(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(lowerIfExists(e.attributes.name)==="author"||lowerIfExists(e.attributes.name)==="generator"||lowerIfExists(e.attributes.name)==="framework"||lowerIfExists(e.attributes.name)==="publisher"||lowerIfExists(e.attributes.name)==="progid"||lowerIfExists(e.attributes.property).match(/^article:/)||lowerIfExists(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(lowerIfExists(e.attributes.name)==="google-site-verification"||lowerIfExists(e.attributes.name)==="yandex-verification"||lowerIfExists(e.attributes.name)==="csrf-token"||lowerIfExists(e.attributes.name)==="p:domain_verify"||lowerIfExists(e.attributes.name)==="verify-v1"||lowerIfExists(e.attributes.name)==="verification"||lowerIfExists(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function serializeNodeWithId(e,t){var i=t.doc,s=t.mirror,o=t.blockClass,a=t.blockSelector,l=t.maskTextClass,c=t.maskTextSelector,u=t.skipChild,d=u===void 0?!1:u,p=t.inlineStylesheet,m=p===void 0?!0:p,g=t.maskInputOptions,b=g===void 0?{}:g,y=t.maskTextFn,S=t.maskInputFn,w=t.slimDOMOptions,E=t.dataURLOptions,A=E===void 0?{}:E,T=t.inlineImages,P=T===void 0?!1:T,O=t.recordCanvas,k=O===void 0?!1:O,F=t.onSerialize,N=t.onIframeLoad,U=t.iframeLoadTimeout,H=U===void 0?5e3:U,Y=t.onStylesheetLoad,Z=t.stylesheetLoadTimeout,ie=Z===void 0?5e3:Z,q=t.keepIframeSrcFn,z=q===void 0?function(){return!1}:q,$=t.newlyAddedElement,B=$===void 0?!1:$,M=t.cssCaptured,D=M===void 0?!1:M,G=t.needsMask,j=t.preserveWhiteSpace,W=j===void 0?!0:j;if(!G){var J=G===void 0;G=needMaskingText(e,l,c,J)}var re=serializeNode(e,{doc:i,mirror:s,blockClass:o,blockSelector:a,needsMask:G,inlineStylesheet:m,maskInputOptions:b,maskTextFn:y,maskInputFn:S,dataURLOptions:A,inlineImages:P,recordCanvas:k,keepIframeSrcFn:z,newlyAddedElement:B,cssCaptured:D});if(!re)return console.warn(e,"not serialized"),null;var se;s.hasNode(e)?se=s.getId(e):slimDOMExcluded(re,w)||!W&&re.type===NodeType$3.Text&&!re.textContent.replace(/^\s+|\s+$/gm,"").length?se=IGNORED_NODE:se=genId();var ce=Object.assign(re,{id:se});if(s.add(e,ce),se===IGNORED_NODE)return null;F&&F(e);var le=!d;if(ce.type===NodeType$3.Element){le=le&&!ce.needBlock,delete ce.needBlock;var Q=index$1.shadowRoot(e);Q&&isNativeShadowDom(Q)&&(ce.isShadowHost=!0)}if((ce.type===NodeType$3.Document||ce.type===NodeType$3.Element)&&le){w.headWhitespace&&ce.type===NodeType$3.Element&&ce.tagName==="head"&&(W=!1);var oe={doc:i,mirror:s,blockClass:o,blockSelector:a,needsMask:G,maskTextClass:l,maskTextSelector:c,skipChild:d,inlineStylesheet:m,maskInputOptions:b,maskTextFn:y,maskInputFn:S,slimDOMOptions:w,dataURLOptions:A,inlineImages:P,recordCanvas:k,preserveWhiteSpace:W,onSerialize:F,onIframeLoad:N,iframeLoadTimeout:H,onStylesheetLoad:Y,stylesheetLoadTimeout:ie,keepIframeSrcFn:z,cssCaptured:!1};if(!(ce.type===NodeType$3.Element&&ce.tagName==="textarea"&&ce.attributes.value!==void 0)){ce.type===NodeType$3.Element&&ce.attributes._cssText!==void 0&&typeof ce.attributes._cssText=="string"&&(oe.cssCaptured=!0);for(var de=_create_for_of_iterator_helper_loose(Array.from(index$1.childNodes(e))),ue;!(ue=de()).done;){var ye=ue.value,ve=serializeNodeWithId(ye,oe);ve&&ce.childNodes.push(ve)}}var me=null;if(isElement(e)&&(me=index$1.shadowRoot(e)))for(var Oe=_create_for_of_iterator_helper_loose(Array.from(index$1.childNodes(me))),$e;!($e=Oe()).done;){var De=$e.value,Xe=serializeNodeWithId(De,oe);Xe&&(isNativeShadowDom(me)&&(Xe.isShadow=!0),ce.childNodes.push(Xe))}}var je=index$1.parentNode(e);return je&&isShadowRoot(je)&&isNativeShadowDom(je)&&(ce.isShadow=!0),ce.type===NodeType$3.Element&&ce.tagName==="iframe"&&onceIframeLoaded(e,function(){var be=e.contentDocument;if(be&&N){var Me=serializeNodeWithId(be,{doc:be,mirror:s,blockClass:o,blockSelector:a,needsMask:G,maskTextClass:l,maskTextSelector:c,skipChild:!1,inlineStylesheet:m,maskInputOptions:b,maskTextFn:y,maskInputFn:S,slimDOMOptions:w,dataURLOptions:A,inlineImages:P,recordCanvas:k,preserveWhiteSpace:W,onSerialize:F,onIframeLoad:N,iframeLoadTimeout:H,onStylesheetLoad:Y,stylesheetLoadTimeout:ie,keepIframeSrcFn:z});Me&&N(e,Me)}},H),ce.type===NodeType$3.Element&&ce.tagName==="link"&&typeof ce.attributes.rel=="string"&&(ce.attributes.rel==="stylesheet"||ce.attributes.rel==="preload"&&typeof ce.attributes.href=="string"&&extractFileExtension(ce.attributes.href)==="css")&&onceStylesheetLoaded(e,function(){if(Y){var be=serializeNodeWithId(e,{doc:i,mirror:s,blockClass:o,blockSelector:a,needsMask:G,maskTextClass:l,maskTextSelector:c,skipChild:!1,inlineStylesheet:m,maskInputOptions:b,maskTextFn:y,maskInputFn:S,slimDOMOptions:w,dataURLOptions:A,inlineImages:P,recordCanvas:k,preserveWhiteSpace:W,onSerialize:F,onIframeLoad:N,iframeLoadTimeout:H,onStylesheetLoad:Y,stylesheetLoadTimeout:ie,keepIframeSrcFn:z});be&&Y(e,be)}},ie),ce}function snapshot(e,t){var i=t,s=i.mirror,o=s===void 0?new Mirror:s,a=i.blockClass,l=a===void 0?"rr-block":a,c=i.blockSelector,u=c===void 0?null:c,d=i.maskTextClass,p=d===void 0?"rr-mask":d,m=i.maskTextSelector,g=m===void 0?null:m,b=i.inlineStylesheet,y=b===void 0?!0:b,S=i.inlineImages,w=S===void 0?!1:S,E=i.recordCanvas,A=E===void 0?!1:E,T=i.maskAllInputs,P=T===void 0?!1:T,O=i.maskTextFn,k=i.maskInputFn,F=i.slimDOM,N=F===void 0?!1:F,U=i.dataURLOptions,H=i.preserveWhiteSpace,Y=i.onSerialize,Z=i.onIframeLoad,ie=i.iframeLoadTimeout,q=i.onStylesheetLoad,z=i.stylesheetLoadTimeout,$=i.keepIframeSrcFn,B=$===void 0?function(){return!1}:$,M=P===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:P===!1?{password:!0}:P,D=N===!0||N==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:N==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:N===!1?{}:N;return serializeNodeWithId(e,{doc:e,mirror:o,blockClass:l,blockSelector:u,maskTextClass:p,maskTextSelector:g,skipChild:!1,inlineStylesheet:y,maskInputOptions:M,maskTextFn:O,maskInputFn:k,slimDOMOptions:D,dataURLOptions:U,inlineImages:w,recordCanvas:A,preserveWhiteSpace:H,onSerialize:Y,onIframeLoad:Z,iframeLoadTimeout:ie,onStylesheetLoad:q,stylesheetLoadTimeout:z,keepIframeSrcFn:B,newlyAddedElement:!1})}function getDefaultExportFromCjs$1(e){return e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace$1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var i=function s(){return _instanceof(this,s)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(i,s,o.get?o:{enumerable:!0,get:function(){return e[s]}})}),i}var picocolors_browser$1={exports:{}},x$1=String,create$1=function e(){return{isColorSupported:!1,reset:x$1,bold:x$1,dim:x$1,italic:x$1,underline:x$1,inverse:x$1,hidden:x$1,strikethrough:x$1,black:x$1,red:x$1,green:x$1,yellow:x$1,blue:x$1,magenta:x$1,cyan:x$1,white:x$1,gray:x$1,bgBlack:x$1,bgRed:x$1,bgGreen:x$1,bgYellow:x$1,bgBlue:x$1,bgMagenta:x$1,bgCyan:x$1,bgWhite:x$1}};picocolors_browser$1.exports=create$1(),picocolors_browser$1.exports.createColors=create$1;var picocolors_browserExports$1=picocolors_browser$1.exports,__viteBrowserExternal$2={},__viteBrowserExternal$1$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal$2},Symbol.toStringTag,{value:"Module"})),require$$2$1=getAugmentedNamespace$1(__viteBrowserExternal$1$1),pico$1=picocolors_browserExports$1,terminalHighlight$1$1=require$$2$1,CssSyntaxError$3$1=function(e){_inherits(t,e);function t(s,o,a,l,c,u){var d;return d=e.call(this,s)||this,d.name="CssSyntaxError",d.reason=s,c&&(d.file=c),l&&(d.source=l),u&&(d.plugin=u),typeof o<"u"&&typeof a<"u"&&(typeof o=="number"?(d.line=o,d.column=a):(d.line=o.line,d.column=o.column,d.endLine=a.line,d.endColumn=a.column)),d.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(d,t),d}var i=t.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(o){var a=this;if(!this.source)return"";var l=this.source;o==null&&(o=pico$1.isColorSupported),terminalHighlight$1$1&&o&&(l=terminalHighlight$1$1(l));var c=l.split(/\r?\n/),u=Math.max(this.line-3,0),d=Math.min(this.line+2,c.length),p=String(d).length,m,g;if(o){var b=pico$1.createColors(!0),y=b.bold,S=b.gray,w=b.red;m=function(E){return y(w(E))},g=function(E){return S(E)}}else m=g=function(E){return E};return c.slice(u,d).map(function(E,A){var T=u+1+A,P=" "+(" "+T).slice(-p)+" | ";if(T===a.line){var O=g(P.replace(/\d/g," "))+E.slice(0,a.column-1).replace(/[^\t]/g," ");return m(">")+g(P)+E+`
|
|
133
133
|
`+O+m("^")}return" "+g(P)+E}).join(`
|
|
134
134
|
`)},i.toString=function(){var o=this.showSourceCode();return o&&(o=`
|
|
135
135
|
|
|
@@ -190,7 +190,7 @@ or you can use record.mirror to access the mirror instance during recording.`,_m
|
|
|
190
190
|
`);var t="",i,s,o=0,a;for(i=s=0,o=e.length,a=0;a<o;a++){var l=e.charCodeAt(a),c=null;l<128?s++:l>127&&l<2048?c=String.fromCharCode(l>>6|192,l&63|128):c=String.fromCharCode(l>>12|224,l>>6&63|128,l&63|128),c!==null&&(s>i&&(t+=e.substring(i,s)),t+=c,i=s=a+1)}return s>i&&(t+=e.substring(i,e.length)),t},_.UUID=function(){try{return win.crypto.randomUUID()}catch{for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",_.map(e,function(s){return s.toString(16)}).join("")}};var BLOCKED_UA_STRS=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];_.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<BLOCKED_UA_STRS.length;t++)if(e.indexOf(BLOCKED_UA_STRS[t])!==-1)return!0;return!1},_.HTTPBuildQuery=function(e,t){var i,s,o=[];return _.isUndefined(t)&&(t="&"),_.each(e,function(a,l){i=encodeURIComponent(a.toString()),s=encodeURIComponent(l),o[o.length]=s+"="+i}),o.join(t)},_.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var i="[\\?&]"+t+"=([^&#]*)",s=new RegExp(i),o=s.exec(e);if(o===null||o&&typeof o[1]!="string"&&o[1].length)return"";var a=o[1];try{a=decodeURIComponent(a)}catch{console$1.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},_.cookie={get:function(e){for(var t=e+"=",i=document$1.cookie.split(";"),s=0;s<i.length;s++){for(var o=i[s];o.charAt(0)==" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return decodeURIComponent(o.substring(t.length,o.length))}return null},parse:function(e){var t;try{t=_.JSONDecode(_.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,i,s,o,a,l){var c="",u="",d="";if(l)c="; domain="+l;else if(s){var p=extract_domain(document$1.location.hostname);c=p?"; domain=."+p:""}if(i){var m=new Date;m.setTime(m.getTime()+i*1e3),u="; expires="+m.toGMTString()}a&&(o=!0,d="; SameSite=None"),o&&(d+="; secure"),document$1.cookie=e+"="+encodeURIComponent(t)+u+"; path=/"+c+d},set:function(e,t,i,s,o,a,l){var c="",u="",d="";if(l)c="; domain="+l;else if(s){var p=extract_domain(document$1.location.hostname);c=p?"; domain=."+p:""}if(i){var m=new Date;m.setTime(m.getTime()+i*24*60*60*1e3),u="; expires="+m.toGMTString()}a&&(o=!0,d="; SameSite=None"),o&&(d+="; secure");var g=e+"="+encodeURIComponent(t)+u+"; path=/"+c+d;return document$1.cookie=g,g},remove:function(e,t,i){_.cookie.set(e,"",-1,t,!1,!1,i)}};var _testStorageSupported=function(e){var t=!0;try{var i="__mplss_"+cheap_guid(8),s="xyz";e.setItem(i,s),e.getItem(i)!==s&&(t=!1),e.removeItem(i)}catch{t=!1}return t},_localStorageSupported=null,localStorageSupported=function(e,t){return _localStorageSupported!==null&&!t?_localStorageSupported:_localStorageSupported=_testStorageSupported(e||win.localStorage)},_sessionStorageSupported=null,sessionStorageSupported=function(e,t){return _sessionStorageSupported!==null&&!t?_sessionStorageSupported:_sessionStorageSupported=_testStorageSupported(e||win.sessionStorage)};function _storageWrapper(e,t,i){var s=function(o){console$1.error(t+" error: "+o)};return{is_supported:function(o){var a=i(e,o);return a||console$1.error(t+" unsupported"),a},error:s,get:function(o){try{return e.getItem(o)}catch(a){s(a)}return null},parse:function(o){try{return _.JSONDecode(e.getItem(o))||{}}catch{}return null},set:function(o,a){try{e.setItem(o,a)}catch(l){s(l)}},remove:function(o){try{e.removeItem(o)}catch(a){s(a)}}}}_.localStorage=_storageWrapper(win.localStorage,"localStorage",localStorageSupported),_.sessionStorage=_storageWrapper(win.sessionStorage,"sessionStorage",sessionStorageSupported),_.register_event=function(){var e=function(s,o,a,l,c){if(!s){console$1.error("No valid element provided to register_event");return}if(s.addEventListener&&!l)s.addEventListener(o,a,!!c);else{var u="on"+o,d=s[u];s[u]=t(s,a,d)}};function t(s,o,a){var l=function(c){if(c=c||i(win.event),!!c){var u=!0,d,p;return _.isFunction(a)&&(d=a(c)),p=o.call(s,c),(d===!1||p===!1)&&(u=!1),u}};return l}function i(s){return s&&(s.preventDefault=i.preventDefault,s.stopPropagation=i.stopPropagation),s}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},e}();var TOKEN_MATCH_REGEX=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');_.dom_query=function(){function e(o){return o.all?o.all:o.getElementsByTagName("*")}var t=/[\t\r\n]/g;function i(o,a){var l=" "+a+" ";return(" "+o.className+" ").replace(t," ").indexOf(l)>=0}function s(o){if(!document$1.getElementsByTagName)return[];var a=o.split(" "),l,c,u,d,p,m,g,b,y,S,w=[document$1];for(m=0;m<a.length;m++){if(l=a[m].replace(/^\s+/,"").replace(/\s+$/,""),l.indexOf("#")>-1){c=l.split("#"),u=c[0];var E=c[1],A=document$1.getElementById(E);if(!A||u&&A.nodeName.toLowerCase()!=u)return[];w=[A];continue}if(l.indexOf(".")>-1){c=l.split("."),u=c[0];var T=c[1];for(u||(u="*"),d=[],p=0,g=0;g<w.length;g++)for(u=="*"?y=e(w[g]):y=w[g].getElementsByTagName(u),b=0;b<y.length;b++)d[p++]=y[b];for(w=[],S=0,g=0;g<d.length;g++)d[g].className&&_.isString(d[g].className)&&i(d[g],T)&&(w[S++]=d[g]);continue}var P=l.match(TOKEN_MATCH_REGEX);if(P){u=P[1];var O=P[2],k=P[3],F=P[4];for(u||(u="*"),d=[],p=0,g=0;g<w.length;g++)for(u=="*"?y=e(w[g]):y=w[g].getElementsByTagName(u),b=0;b<y.length;b++)d[p++]=y[b];w=[],S=0;var N;switch(k){case"=":N=function(U){return U.getAttribute(O)==F};break;case"~":N=function(U){return U.getAttribute(O).match(new RegExp("\\b"+F+"\\b"))};break;case"|":N=function(U){return U.getAttribute(O).match(new RegExp("^"+F+"-?"))};break;case"^":N=function(U){return U.getAttribute(O).indexOf(F)===0};break;case"$":N=function(U){return U.getAttribute(O).lastIndexOf(F)==U.getAttribute(O).length-F.length};break;case"*":N=function(U){return U.getAttribute(O).indexOf(F)>-1};break;default:N=function(U){return U.getAttribute(O)}}for(w=[],S=0,g=0;g<d.length;g++)N(d[g])&&(w[S++]=d[g]);continue}for(u=l,d=[],p=0,g=0;g<w.length;g++)for(y=w[g].getElementsByTagName(u),b=0;b<y.length;b++)d[p++]=y[b];w=d}return w}return function(o){return _.isElement(o)?[o]:_.isObject(o)&&!_.isUndefined(o.length)?o:s.call(this,o)}}();var CAMPAIGN_KEYWORDS=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],CLICK_IDS=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];_.info={campaignParams:function(e){var t="",i={};return _.each(CAMPAIGN_KEYWORDS,function(s){t=_.getQueryParam(document$1.URL,s),t.length?i[s]=t:e!==void 0&&(i[s]=e)}),i},clickParams:function(){var e="",t={};return _.each(CLICK_IDS,function(i){e=_.getQueryParam(document$1.URL,i),e.length&&(t[i]=e)}),t},marketingParams:function(){return _.extend(_.info.campaignParams(),_.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var t=_.info.searchEngine(e),i=t!="yahoo"?"q":"p",s={};if(t!==null){s.$search_engine=t;var o=_.getQueryParam(e,i);o.length&&(s.mp_keyword=o)}return s},browser:function(e,t,i){return t=t||"",i||_.includes(e," OPR/")?_.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":_.includes(e,"IEMobile")||_.includes(e,"WPDesktop")?"Internet Explorer Mobile":_.includes(e,"SamsungBrowser/")?"Samsung Internet":_.includes(e,"Edge")||_.includes(e,"Edg/")?"Microsoft Edge":_.includes(e,"FBIOS")?"Facebook Mobile":_.includes(e,"Whale/")?"Whale Browser":_.includes(e,"Chrome")?"Chrome":_.includes(e,"CriOS")?"Chrome iOS":_.includes(e,"UCWEB")||_.includes(e,"UCBrowser")?"UC Browser":_.includes(e,"FxiOS")?"Firefox iOS":_.includes(t,"Apple")?_.includes(e,"Mobile")?"Mobile Safari":"Safari":_.includes(e,"Android")?"Android Mobile":_.includes(e,"Konqueror")?"Konqueror":_.includes(e,"Firefox")?"Firefox":_.includes(e,"MSIE")||_.includes(e,"Trident/")?"Internet Explorer":_.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,i){var s=_.info.browser(e,t,i),o={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},a=o[s];if(a===void 0)return null;var l=e.match(a);return l?parseFloat(l[l.length-2]):null},os:function(){var e=userAgent;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return win.location.href},properties:function(e){return typeof e!="object"&&(e={}),_.extend(_.strip_empty_properties({$os:_.info.os(),$browser:_.info.browser(userAgent,navigator$1.vendor,windowOpera),$referrer:document$1.referrer,$referring_domain:_.info.referringDomain(document$1.referrer),$device:_.info.device(userAgent)}),{$current_url:_.info.currentUrl(),$browser_version:_.info.browserVersion(userAgent,navigator$1.vendor,windowOpera),$screen_height:screen.height,$screen_width:screen.width,mp_lib:"web",$lib_version:Config.LIB_VERSION,$insert_id:cheap_guid(),time:_.timestamp()/1e3},_.strip_empty_properties(e))},people_properties:function(){return _.extend(_.strip_empty_properties({$os:_.info.os(),$browser:_.info.browser(userAgent,navigator$1.vendor,windowOpera)}),{$browser_version:_.info.browserVersion(userAgent,navigator$1.vendor,windowOpera)})},mpPageViewProperties:function(){return _.strip_empty_properties({current_page_title:document$1.title,current_domain:win.location.hostname,current_url_path:win.location.pathname,current_url_protocol:win.location.protocol,current_url_search:win.location.search})}};var batchedThrottle=function(e,t){var i=null,s=[];return function(o){var a=this;return s.push(o),i||(i=new PromisePolyfill(function(l){setTimeout(function(){var c=e.apply(a,[s]);i=null,s=[],l(c)},t)})),i}},cheap_guid=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},SIMPLE_DOMAIN_MATCH_REGEX=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,DOMAIN_MATCH_REGEX=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,extract_domain=function(e){var t=DOMAIN_MATCH_REGEX,i=e.split("."),s=i[i.length-1];(s.length>4||s==="com"||s==="org")&&(t=SIMPLE_DOMAIN_MATCH_REGEX);var o=e.match(t);return o?o[0]:""},isOnline=function(){var e=win.navigator.onLine;return _.isUndefined(e)||e},NOOP_FUNC=function(){},JSONStringify=null,JSONParse=null;typeof JSON<"u"&&(JSONStringify=JSON.stringify,JSONParse=JSON.parse),JSONStringify=JSONStringify||_.JSONEncode,JSONParse=JSONParse||_.JSONDecode,_.info=_.info,_.info.browser=_.info.browser,_.info.browserVersion=_.info.browserVersion,_.info.device=_.info.device,_.info.properties=_.info.properties,_.isBlockedUA=_.isBlockedUA,_.isEmptyObject=_.isEmptyObject,_.isObject=_.isObject,_.JSONDecode=_.JSONDecode,_.JSONEncode=_.JSONEncode,_.toArray=_.toArray,_.NPO=NpoPromise;var MIXPANEL_DB_NAME="mixpanelBrowserDb",RECORDING_EVENTS_STORE_NAME="mixpanelRecordingEvents",RECORDING_REGISTRY_STORE_NAME="mixpanelRecordingRegistry",DB_VERSION=1,OBJECT_STORES=[RECORDING_EVENTS_STORE_NAME,RECORDING_REGISTRY_STORE_NAME],IDBStorageWrapper=function(e){this.dbPromise=null,this.storeName=e};IDBStorageWrapper.prototype._openDb=function(){return new PromisePolyfill(function(e,t){var i=win.indexedDB.open(MIXPANEL_DB_NAME,DB_VERSION);i.onerror=function(){t(i.error)},i.onsuccess=function(){e(i.result)},i.onupgradeneeded=function(s){var o=s.target.result;OBJECT_STORES.forEach(function(a){o.createObjectStore(a)})}})},IDBStorageWrapper.prototype.init=function(){return win.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof win.IDBDatabase?PromisePolyfill.resolve():PromisePolyfill.reject(e)})):PromisePolyfill.reject("indexedDB is not supported in this browser")},IDBStorageWrapper.prototype.makeTransaction=function(e,t){var i=this.storeName,s=function(o){return new PromisePolyfill(function(a,l){var c=o.transaction(i,e);c.oncomplete=function(){a(c)},c.onabort=c.onerror=function(){l(c.error)},t(c.objectStore(i))})};return this.dbPromise.then(s).catch((function(o){return o&&o.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(s)):PromisePolyfill.reject(o)}).bind(this))},IDBStorageWrapper.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(i){i.put(t,e)})},IDBStorageWrapper.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(i){t=i.get(e)}).then(function(){return t.result})},IDBStorageWrapper.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},IDBStorageWrapper.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var GDPR_DEFAULT_PERSISTENCE_PREFIX="__mp_opt_in_out_";function optIn(e,t){_optInOut(!0,e,t)}function optOut(e,t){_optInOut(!1,e,t)}function hasOptedIn(e,t){return _getStorageValue(e,t)==="1"}function hasOptedOut(e,t){if(_hasDoNotTrackFlagOn(t))return console$1.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var i=_getStorageValue(e,t)==="0";return i&&console$1.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function addOptOutCheckMixpanelLib(e){return _addOptOutCheck(e,function(t){return this.get_config(t)})}function addOptOutCheckMixpanelPeople(e){return _addOptOutCheck(e,function(t){return this._get_config(t)})}function addOptOutCheckMixpanelGroup(e){return _addOptOutCheck(e,function(t){return this._get_config(t)})}function clearOptInOut(e,t){t=t||{},_getStorage(t).remove(_getStorageKey(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function _getStorage(e){return e=e||{},e.persistenceType==="localStorage"?_.localStorage:_.cookie}function _getStorageKey(e,t){return t=t||{},(t.persistencePrefix||GDPR_DEFAULT_PERSISTENCE_PREFIX)+e}function _getStorageValue(e,t){return _getStorage(t).get(_getStorageKey(e,t))}function _hasDoNotTrackFlagOn(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||win,i=t.navigator||{},s=!1;return _.each([i.doNotTrack,i.msDoNotTrack,t.doNotTrack],function(o){_.includes([!0,1,"1","yes"],o)&&(s=!0)}),s}function _optInOut(e,t,i){if(!_.isString(t)||!t.length){console$1.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}i=i||{},_getStorage(i).set(_getStorageKey(t,i),e?1:0,_.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&e&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function _addOptOutCheck(e,t){return function(){var i=!1;try{var s=t.call(this,"token"),o=t.call(this,"ignore_dnt"),a=t.call(this,"opt_out_tracking_persistence_type"),l=t.call(this,"opt_out_tracking_cookie_prefix"),c=t.call(this,"window");s&&(i=hasOptedOut(s,{ignoreDnt:o,persistenceType:a,persistencePrefix:l,window:c}))}catch(d){console$1.error("Unexpected error when checking tracking opt-out status: "+d)}if(!i)return e.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var logger$6=console_with_prefix("lock"),SharedLock=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||win.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||PromisePolyfill};SharedLock.prototype.withLock=function(e,t){var i=this.promiseImpl;return new i(_.bind(function(s,o){var a=t||new Date().getTime()+"|"+Math.random(),l=new Date().getTime(),c=this.storageKey,u=this.pollIntervalMS,d=this.timeoutMS,p=this.storage,m=c+":X",g=c+":Y",b=c+":Z",y=function(T){if(new Date().getTime()-l>d){logger$6.error("Timeout waiting for mutex on "+c+"; clearing lock. ["+a+"]"),p.removeItem(b),p.removeItem(g),E();return}setTimeout(function(){try{T()}catch(P){o(P)}},u*(Math.random()+.1))},S=function(T,P){T()?P():y(function(){S(T,P)})},w=function(){var T=p.getItem(g);return T&&T!==a?!1:(p.setItem(g,a),p.getItem(g)===a?!0:(localStorageSupported(p,!0)||o(new Error("localStorage support dropped while acquiring lock")),!1))},E=function(){p.setItem(m,a),S(w,function(){if(p.getItem(m)===a){A();return}y(function(){if(p.getItem(g)!==a){E();return}S(function(){return!p.getItem(b)},A)})})},A=function(){p.setItem(b,"1");var T=function(){p.removeItem(b),p.getItem(g)===a&&p.removeItem(g),p.getItem(m)===a&&p.removeItem(m)};e().then(function(P){T(),s(P)}).catch(function(P){T(),o(P)})};try{if(localStorageSupported(p,!0))E();else throw new Error("localStorage support check failed")}catch(T){o(T)}},this))};var LocalStorageWrapper=function(e){this.storage=e||win.localStorage};LocalStorageWrapper.prototype.init=function(){return PromisePolyfill.resolve()},LocalStorageWrapper.prototype.setItem=function(e,t){return new PromisePolyfill(_.bind(function(i,s){try{this.storage.setItem(e,JSONStringify(t))}catch(o){s(o)}i()},this))},LocalStorageWrapper.prototype.getItem=function(e){return new PromisePolyfill(_.bind(function(t,i){var s;try{s=JSONParse(this.storage.getItem(e))}catch(o){i(o)}t(s)},this))},LocalStorageWrapper.prototype.removeItem=function(e){return new PromisePolyfill(_.bind(function(t,i){try{this.storage.removeItem(e)}catch(s){i(s)}t()},this))};var logger$5=console_with_prefix("batch"),RequestQueue=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new LocalStorageWrapper,this.lock=new SharedLock(e,{storage:t.sharedLockStorage||win.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||_.bind(logger$5.error,logger$5),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=batchedThrottle(_.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=_.bind(function(i){return this._enqueuePersisted([i])},this)};RequestQueue.prototype.ensureInit=function(){return this.initialized?PromisePolyfill.resolve():this.queueStorage.init().then(_.bind(function(){this.initialized=!0},this)).catch(_.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},RequestQueue.prototype.enqueue=function(e,t){var i={id:cheap_guid(),flushAfter:new Date().getTime()+t*2,payload:e};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),PromisePolyfill.resolve(!0))},RequestQueue.prototype._enqueuePersisted=function(e){var t=_.bind(function(){return this.ensureInit().then(_.bind(function(){return this.readFromStorage()},this)).then(_.bind(function(i){return this.saveToStorage(i.concat(e))},this)).then(_.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(e)),i},this)).catch(_.bind(function(i){return this.reportError("Error enqueueing items",i,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(_.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))},RequestQueue.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(_.bind(function(){return this.readFromStorage()},this)).then(_.bind(function(i){if(i.length){var s={};_.each(t,function(l){s[l.id]=!0});for(var o=0;o<i.length;o++){var a=i[o];if(new Date().getTime()>a.flushAfter&&!s[a.id]&&(a.orphaned=!0,t.push(a),t.length>=e))break}}return t},this)):PromisePolyfill.resolve(t)};var filterOutIDsAndInvalid=function(e,t){var i=[];return _.each(e,function(s){s.id&&!t[s.id]&&i.push(s)}),i};RequestQueue.prototype.removeItemsByID=function(e){var t={};if(_.each(e,function(s){t[s]=!0}),this.memQueue=filterOutIDsAndInvalid(this.memQueue,t),this.usePersistence){var i=_.bind(function(){return this.ensureInit().then(_.bind(function(){return this.readFromStorage()},this)).then(_.bind(function(s){return s=filterOutIDsAndInvalid(s,t),this.saveToStorage(s)},this)).then(_.bind(function(){return this.readFromStorage()},this)).then(_.bind(function(s){for(var o=0;o<s.length;o++){var a=s[o];if(a.id&&t[a.id])throw new Error("Item not removed from storage")}return!0},this)).catch(_.bind(function(s){return this.reportError("Error removing items",s,e),!1},this))},this);return this.lock.withLock(i,this.pid).catch(_.bind(function(s){return this.reportError("Error acquiring storage lock",s),localStorageSupported(this.lock.storage,!0)?!1:i().then(_.bind(function(o){return o||this.queueStorage.removeItem(this.storageKey).then(function(){return o})},this)).catch(_.bind(function(o){return this.reportError("Error clearing queue",o),!1},this))},this))}else return PromisePolyfill.resolve(!0)};var updatePayloads=function(e,t){var i=[];return _.each(e,function(s){var o=s.id;if(o in t){var a=t[o];a!==null&&(s.payload=a,i.push(s))}else i.push(s)}),i};RequestQueue.prototype.updatePayloads=function(e){return this.memQueue=updatePayloads(this.memQueue,e),this.usePersistence?this.lock.withLock(_.bind(function(){return this.ensureInit().then(_.bind(function(){return this.readFromStorage()},this)).then(_.bind(function(i){return i=updatePayloads(i,e),this.saveToStorage(i)},this)).catch(_.bind(function(i){return this.reportError("Error updating items",e,i),!1},this))},this),this.pid).catch(_.bind(function(t){return this.reportError("Error acquiring storage lock",t),!1},this)):PromisePolyfill.resolve(!0)},RequestQueue.prototype.readFromStorage=function(){return this.ensureInit().then(_.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(_.bind(function(e){return e&&(_.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(_.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},RequestQueue.prototype.saveToStorage=function(e){return this.ensureInit().then(_.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(_.bind(function(t){return this.reportError("Error saving queue",t),!1},this))},RequestQueue.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(_.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):PromisePolyfill.resolve()};var MAX_RETRY_INTERVAL_MS=10*60*1e3,logger$4=console_with_prefix("batch"),RequestBatcher=function(e,t){this.errorReporter=t.errorReporter,this.queue=new RequestQueue(e,{errorReporter:_.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};RequestBatcher.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},RequestBatcher.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},RequestBatcher.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},RequestBatcher.prototype.clear=function(){return this.queue.clear()},RequestBatcher.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},RequestBatcher.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},RequestBatcher.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(_.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},RequestBatcher.prototype.sendRequestPromise=function(e,t){return new PromisePolyfill(_.bind(function(i){this.sendRequest(e,t,i)},this))},RequestBatcher.prototype.flush=function(e){if(this.requestInProgress)return logger$4.log("Flush: Request already in progress"),PromisePolyfill.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),s=this.batchSize;return this.queue.fillBatch(s).then(_.bind(function(o){var a=o.length===s,l=[],c={};if(_.each(o,function(m){var g=m.payload;if(this.beforeSendHook&&!m.orphaned&&(g=this.beforeSendHook(g)),g){g.event&&g.properties&&(g.properties=_.extend({},g.properties,{mp_sent_by_lib_version:Config.LIB_VERSION}));var b=!0,y=m.id;y?(this.itemIdsSentSuccessfully[y]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:m,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[y]}),b=!1):this.reportError("[dupe] found item with no ID",{item:m}),b&&l.push(g)}c[m.id]=g},this),l.length<1)return this.requestInProgress=!1,this.resetFlush(),PromisePolyfill.resolve();var u=_.bind(function(){return this.queue.removeItemsByID(_.map(o,function(m){return m.id})).then(_.bind(function(m){return _.each(o,_.bind(function(g){var b=g.id;b?(this.itemIdsSentSuccessfully[b]=this.itemIdsSentSuccessfully[b]||0,this.itemIdsSentSuccessfully[b]++,this.itemIdsSentSuccessfully[b]>5&&this.reportError("[dupe] item ID sent too many times",{item:g,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[b]})):this.reportError("[dupe] found item with no ID while removing",{item:g})},this)),m?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!a?(this.resetFlush(),PromisePolyfill.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),PromisePolyfill.resolve())},this))},this),d=_.bind(function(m){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(c);if(_.isObject(m)&&m.error==="timeout"&&new Date().getTime()-i>=t)return this.reportError("Network timeout; retrying"),this.flush();if(_.isObject(m)&&(m.httpStatusCode>=500||m.httpStatusCode===429||m.httpStatusCode<=0&&!isOnline()||m.error==="timeout")){var g=this.flushInterval*2;return m.retryAfter&&(g=parseInt(m.retryAfter,10)*1e3||g),g=Math.min(MAX_RETRY_INTERVAL_MS,g),this.reportError("Error; retry in "+g+" ms"),this.scheduleFlush(g),PromisePolyfill.resolve()}else if(_.isObject(m)&&m.httpStatusCode===413)if(o.length>1){var b=Math.max(1,Math.floor(s/2));return this.batchSize=Math.min(this.batchSize,b,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),PromisePolyfill.resolve()}else return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),u();else return u()}catch(y){this.reportError("Error handling API response",y),this.resetFlush()}},this),p={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(p.transport="sendBeacon"),logger$4.log("MIXPANEL REQUEST:",l),this.sendRequestPromise(l,p).then(d)},this)).catch(_.bind(function(o){this.reportError("Error flushing request queue",o),this.resetFlush()},this))},RequestBatcher.prototype.reportError=function(e,t){if(logger$4.error.apply(logger$4.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(i){logger$4.error(i)}};var isRecordingExpired=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},RECORD_ENQUEUE_THROTTLE_MS=250,logger$3=console_with_prefix("recorder"),CompressionStream=win.CompressionStream,RECORDER_BATCHER_LIB_CONFIG={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},ACTIVE_SOURCES=new Set([IncrementalSource.MouseMove,IncrementalSource.MouseInteraction,IncrementalSource.Scroll,IncrementalSource.ViewportResize,IncrementalSource.Input,IncrementalSource.TouchMove,IncrementalSource.MediaInteraction,IncrementalSource.Drag,IncrementalSource.Selection]);function isUserEvent(e){return e.type===EventType.IncrementalSnapshot&&ACTIVE_SOURCES.has(e.data.source)}var SessionRecording=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||NOOP_FUNC,this._onMaxLengthReached=e.onMaxLengthReached||NOOP_FUNC,this._onBatchSent=e.onBatchSent||NOOP_FUNC,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=MAX_RECORDING_MS,this.recordMinMs=0;var t=localStorageSupported(e.sharedLockStorage,!0);this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new IDBStorageWrapper(RECORDING_EVENTS_STORE_NAME),this.batcher=new RequestBatcher(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:RECORDER_BATCHER_LIB_CONFIG,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:RECORD_ENQUEUE_THROTTLE_MS,sharedLockTimeoutMS:10*1e3})};SessionRecording.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))},SessionRecording.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},SessionRecording.prototype.get_config=function(e){return this.getConfig(e)},SessionRecording.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){logger$3.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>MAX_RECORDING_MS&&(this.recordMaxMs=MAX_RECORDING_MS,logger$3.critical("record_max_ms cannot be greater than "+MAX_RECORDING_MS+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>MAX_VALUE_FOR_MIN_RECORDING_MS&&(this.recordMinMs=MAX_VALUE_FOR_MIN_RECORDING_MS,logger$3.critical("record_min_ms cannot be greater than "+MAX_VALUE_FOR_MIN_RECORDING_MS+"ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=_.info.currentUrl(),this.replayStartUrl=_.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var o=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,o),this.idleExpires=new Date().getTime()+o}).bind(this);t();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(o){if(this.idleExpires&&this.idleExpires<o.timestamp){this._onIdleTimeout();return}isUserEvent(o)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(o)}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:i,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(o){this.reportError("Unexpected error when starting rrweb recording.",o)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var s=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),s)},SessionRecording.prototype.stopRecording=function(e){if(!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},SessionRecording.prototype.isRrwebStopped=function(){return this._stopRecording===null},SessionRecording.prototype.flushEventsWithOptOut=function(e,t,i){var s=(function(o){o===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,i,s)},SessionRecording.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},SessionRecording.deserialize=function(e,t){var i=new SessionRecording(_.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}));return i},SessionRecording.prototype._sendRequest=function(e,t,i,s){var o=(function(a,l){a.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=_.info.currentUrl()),this._onBatchSent(),s({status:0,httpStatusCode:a.status,responseBody:l,retryAfter:a.headers.get("Retry-After")})}).bind(this);win.fetch(this.getConfig("api_host")+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:i}).then(function(a){a.json().then(function(l){o(a,l)}).catch(function(l){s({error:l})})}).catch(function(a){s({error:a,httpStatusCode:0})})},SessionRecording.prototype._flushEvents=addOptOutCheckMixpanelLib(function(e,t,i){var s=e.length;if(s>0){for(var o=this.replayId,a=1/0,l=-1/0,c=!1,u=0;u<s;u++)a=Math.min(a,e[u].timestamp),l=Math.max(l,e[u].timestamp),e[u].type===EventType.FullSnapshot&&(c=!0);if(this.seqNo===0){if(!c){i({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=a}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=a);var d=l-this.replayStartTime,p={$current_url:this.batchStartUrl,$lib_version:Config.LIB_VERSION,batch_start_time:a/1e3,distinct_id:String(this._mixpanel.get_distinct_id()),mp_lib:"web",replay_id:o,replay_length_ms:d,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},m=JSON.stringify(e),g=this._mixpanel.get_property("$device_id");g&&(p.$device_id=g);var b=this._mixpanel.get_property("$user_id");if(b&&(p.$user_id=b),CompressionStream){var y=new Blob([m],{type:"application/json"}).stream(),S=y.pipeThrough(new CompressionStream("gzip"));new Response(S).blob().then((function(w){p.format="gzip",this._sendRequest(o,p,w,i)}).bind(this))}else p.format="body",this._sendRequest(o,p,m,i)}}),SessionRecording.prototype.reportError=function(e,t){logger$3.error.apply(logger$3.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(i){logger$3.error(i)}};var RecordingRegistry=function(e){this.idb=new IDBStorageWrapper(RECORDING_REGISTRY_STORE_NAME),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};RecordingRegistry.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},RecordingRegistry.prototype.setActiveRecording=function(e){var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),PromisePolyfill.resolve())},RecordingRegistry.prototype.getActiveRecording=function(){return this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return isRecordingExpired(e)?null:e}).bind(this)).catch(this.handleError.bind(this))},RecordingRegistry.prototype.clearActiveRecording=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},RecordingRegistry.prototype.flushInactiveRecordings=function(){return this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(i){return isRecordingExpired(i)}).map((function(i){var s=SessionRecording.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return s.unloadPersistedData().then((function(){return this.idb.removeItem(i.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return PromisePolyfill.all(t)}).bind(this)).catch(this.handleError.bind(this))};var logger$2=console_with_prefix("recorder"),MixpanelRecorder=function(e,t,i){this.mixpanelInstance=e,this.rrwebRecord=t||record,this.sharedLockStorage=i,this.recordingRegistry=new RecordingRegistry({mixpanelInstance:this.mixpanelInstance,errorReporter:logger$2.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null};MixpanelRecorder.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){logger$2.log("Recording already in progress, skipping startRecording.");return}var t=(function(){logger$2.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),i=(function(){logger$2.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),s=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),o={mixpanelInstance:this.mixpanelInstance,onBatchSent:s,onIdleTimeout:t,onMaxLengthReached:i,replayId:_.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=SessionRecording.deserialize(e.activeSerializedRecording,o):this.activeRecording=new SessionRecording(o),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},MixpanelRecorder.prototype.stopRecording=function(){var e=this._stopCurrentRecording(!1);return this.recordingRegistry.clearActiveRecording(),this.activeRecording=null,e},MixpanelRecorder.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},MixpanelRecorder.prototype._stopCurrentRecording=function(e){return this.activeRecording?this.activeRecording.stopRecording(e):PromisePolyfill.resolve()},MixpanelRecorder.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),PromisePolyfill.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(logger$2.log("No resumable recording found."),null)}).bind(this))},MixpanelRecorder.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},MixpanelRecorder.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(MixpanelRecorder.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),win.__mp_recorder=MixpanelRecorder;var EV_CHANGE="change",EV_CLICK="click",EV_HASHCHANGE="hashchange",EV_MP_LOCATION_CHANGE="mp_locationchange",EV_POPSTATE="popstate",EV_SCROLLEND="scrollend",EV_SUBMIT="submit",CLICK_EVENT_PROPS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],OPT_IN_CLASSES=["mp-include"],OPT_OUT_CLASSES=["mp-no-track"],SENSITIVE_DATA_CLASSES=OPT_OUT_CLASSES.concat(["mp-sensitive"]),TRACKED_ATTRS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],logger$1=console_with_prefix("autocapture");function getClasses(e){for(var t={},i=getClassName(e).split(" "),s=0;s<i.length;s++){var o=i[s];o&&(t[o]=!0)}return t}function getClassName(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function getPreviousElementSibling(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!isElementNode(e));return e}function getPropertiesFromElement(e,t,i,s,o,a){var l={$classes:getClassName(e).split(" "),$tag_name:e.tagName.toLowerCase()},c=e.id;c&&(l.$id=c),shouldTrackElementDetails(e,t,o,a)&&_.each(TRACKED_ATTRS.concat(s),function(m){if(e.hasAttribute(m)&&!i[m]){var g=e.getAttribute(m);shouldTrackValue(g)&&(l["$attr-"+m]=g)}});for(var u=1,d=1,p=e;p=getPreviousElementSibling(p);)u++,p.tagName===e.tagName&&d++;return l.$nth_child=u,l.$nth_of_type=d,l}function getPropsForDOMEvent(e,t){var i=t.allowElementCallback,s=t.allowSelectors||[],o=t.blockAttrs||[],a=t.blockElementCallback,l=t.blockSelectors||[],c=t.captureTextContent||!1,u=t.captureExtraAttrs||[],d=t.capturedForHeatMap||!1,p={};_.each(o,function(O){p[O]=!0});var m=null,g=typeof e.target>"u"?e.srcElement:e.target;if(isTextNode(g)&&(g=g.parentNode),shouldTrackDomEvent(g,e)&&isElementAllowed(g,e,i,s)&&!isElementBlocked(g,e,a,l)){for(var b=[g],y=g;y.parentNode&&!isTag(y,"body");)b.push(y.parentNode),y=y.parentNode;var S=[],w,E=!1;if(_.each(b,function(O){var k=shouldTrackElementDetails(O,e,i,s);!p.href&&O.tagName.toLowerCase()==="a"&&(w=O.getAttribute("href"),w=k&&shouldTrackValue(w)&&w),isElementBlocked(O,e,a,l)&&(E=!0),S.push(getPropertiesFromElement(O,e,p,u,i,s))},this),!E){var A=document$1.documentElement;if(m={$event_type:e.type,$host:win.location.host,$pathname:win.location.pathname,$elements:S,$el_attr__href:w,$viewportHeight:Math.max(A.clientHeight,win.innerHeight||0),$viewportWidth:Math.max(A.clientWidth,win.innerWidth||0),$pageHeight:document$1.body.offsetHeight||0,$pageWidth:document$1.body.offsetWidth||0},_.each(u,function(O){if(!p[O]&&g.hasAttribute(O)){var k=g.getAttribute(O);shouldTrackValue(k)&&(m["$el_attr__"+O]=k)}}),c&&(T=getSafeText(g,e,i,s),T&&T.length&&(m.$el_text=T)),e.type===EV_CLICK&&(_.each(CLICK_EVENT_PROPS,function(O){O in e&&(m["$"+O]=e[O])}),d&&(m.$captured_for_heatmap=!0),g=guessRealClickTarget(e)),c){var T=getSafeText(g,e,i,s);T&&T.length&&(m.$el_text=T)}if(g){if(!isElementAllowed(g,e,i,s)||isElementBlocked(g,e,a,l))return null;var P=getPropertiesFromElement(g,e,p,u,i,s);m.$target=P,m.$el_classes=P.$classes,_.extend(m,_.strip_empty_properties({$el_id:P.$id,$el_tag_name:P.$tag_name}))}}}return m}function getSafeText(e,t,i,s){var o="";return shouldTrackElementDetails(e,t,i,s)&&e.childNodes&&e.childNodes.length&&_.each(e.childNodes,function(a){isTextNode(a)&&a.textContent&&(o+=_.trim(a.textContent).split(/(\s+)/).filter(shouldTrackValue).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),_.trim(o)}function guessRealClickTarget(e){for(var t=e.target,i=e.composedPath(),s=0;s<i.length;s++){var o=i[s];if(isTag(o,"a")||isTag(o,"button")||isTag(o,"input")||isTag(o,"select")||o.getAttribute&&o.getAttribute("role")==="button"){t=o;break}if(o===t)break}return t}function isElementAllowed(e,t,i,s){if(i)try{if(!i(e,t))return!1}catch(l){return logger$1.critical("Error while checking element in allowElementCallback",l),!1}if(!s.length)return!0;for(var o=0;o<s.length;o++){var a=s[o];try{if(e.matches(a))return!0}catch(l){logger$1.critical("Error while checking selector: "+a,l)}}return!1}function isElementBlocked(e,t,i,s){var o;if(i)try{if(i(e,t))return!0}catch(c){return logger$1.critical("Error while checking element in blockElementCallback",c),!0}if(s&&s.length)for(o=0;o<s.length;o++){var a=s[o];try{if(e.matches(a))return!0}catch(c){logger$1.critical("Error while checking selector: "+a,c)}}var l=getClasses(e);for(o=0;o<OPT_OUT_CLASSES.length;o++)if(l[OPT_OUT_CLASSES[o]])return!0;return!1}function isElementNode(e){return e&&e.nodeType===1}function isTag(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function isTextNode(e){return e&&e.nodeType===3}function minDOMApisSupported(){try{var e=document$1.createElement("div");return!!e.matches}catch{return!1}}function shouldTrackDomEvent(e,t){if(!e||isTag(e,"html")||!isElementNode(e))return!1;var i=e.tagName.toLowerCase();switch(i){case"form":return t.type===EV_SUBMIT;case"input":return["button","submit"].indexOf(e.getAttribute("type"))===-1?t.type===EV_CHANGE:t.type===EV_CLICK;case"select":case"textarea":return t.type===EV_CHANGE;default:return t.type===EV_CLICK}}function shouldTrackElementDetails(e,t,i,s){var o;if(!isElementAllowed(e,t,i,s))return!1;for(var a=e;a.parentNode&&!isTag(a,"body");a=a.parentNode){var l=getClasses(a);for(o=0;o<SENSITIVE_DATA_CLASSES.length;o++)if(l[SENSITIVE_DATA_CLASSES[o]])return!1}var c=getClasses(e);for(o=0;o<OPT_IN_CLASSES.length;o++)if(c[OPT_IN_CLASSES[o]])return!0;if(isTag(e,"input")||isTag(e,"select")||isTag(e,"textarea")||e.getAttribute("contenteditable")==="true")return!1;var u=e.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}var d=e.name||e.id||"";if(typeof d=="string"){var p=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(p.test(d.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function shouldTrackValue(e){if(e===null||_.isUndefined(e))return!1;if(typeof e=="string"){e=_.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(e))return!1}return!0}var AUTOCAPTURE_CONFIG_KEY="autocapture",LEGACY_PAGEVIEW_CONFIG_KEY="track_pageview",PAGEVIEW_OPTION_FULL_URL="full-url",PAGEVIEW_OPTION_URL_WITH_PATH_AND_QUERY_STRING="url-with-path-and-query-string",PAGEVIEW_OPTION_URL_WITH_PATH="url-with-path",CONFIG_ALLOW_ELEMENT_CALLBACK="allow_element_callback",CONFIG_ALLOW_SELECTORS="allow_selectors",CONFIG_ALLOW_URL_REGEXES="allow_url_regexes",CONFIG_BLOCK_ATTRS="block_attrs",CONFIG_BLOCK_ELEMENT_CALLBACK="block_element_callback",CONFIG_BLOCK_SELECTORS="block_selectors",CONFIG_BLOCK_URL_REGEXES="block_url_regexes",CONFIG_CAPTURE_EXTRA_ATTRS="capture_extra_attrs",CONFIG_CAPTURE_TEXT_CONTENT="capture_text_content",CONFIG_SCROLL_CAPTURE_ALL="scroll_capture_all",CONFIG_SCROLL_CHECKPOINTS="scroll_depth_percent_checkpoints",CONFIG_TRACK_CLICK="click",CONFIG_TRACK_INPUT="input",CONFIG_TRACK_PAGEVIEW="pageview",CONFIG_TRACK_SCROLL="scroll",CONFIG_TRACK_SUBMIT="submit",CONFIG_DEFAULTS$1={};CONFIG_DEFAULTS$1[CONFIG_ALLOW_SELECTORS]=[],CONFIG_DEFAULTS$1[CONFIG_ALLOW_URL_REGEXES]=[],CONFIG_DEFAULTS$1[CONFIG_BLOCK_ATTRS]=[],CONFIG_DEFAULTS$1[CONFIG_BLOCK_ELEMENT_CALLBACK]=null,CONFIG_DEFAULTS$1[CONFIG_BLOCK_SELECTORS]=[],CONFIG_DEFAULTS$1[CONFIG_BLOCK_URL_REGEXES]=[],CONFIG_DEFAULTS$1[CONFIG_CAPTURE_EXTRA_ATTRS]=[],CONFIG_DEFAULTS$1[CONFIG_CAPTURE_TEXT_CONTENT]=!1,CONFIG_DEFAULTS$1[CONFIG_SCROLL_CAPTURE_ALL]=!1,CONFIG_DEFAULTS$1[CONFIG_SCROLL_CHECKPOINTS]=[25,50,75,100],CONFIG_DEFAULTS$1[CONFIG_TRACK_CLICK]=!0,CONFIG_DEFAULTS$1[CONFIG_TRACK_INPUT]=!0,CONFIG_DEFAULTS$1[CONFIG_TRACK_PAGEVIEW]=PAGEVIEW_OPTION_FULL_URL,CONFIG_DEFAULTS$1[CONFIG_TRACK_SCROLL]=!0,CONFIG_DEFAULTS$1[CONFIG_TRACK_SUBMIT]=!0;var DEFAULT_PROPS={$mp_autocapture:!0},MP_EV_CLICK="$mp_click",MP_EV_INPUT="$mp_input_change",MP_EV_SCROLL="$mp_scroll",MP_EV_SUBMIT="$mp_submit",Autocapture=function(e){this.mp=e};Autocapture.prototype.init=function(){if(!minDOMApisSupported()){logger$1.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageviewTracking(),this.initClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking()},Autocapture.prototype.getFullConfig=function(){var e=this.mp.get_config(AUTOCAPTURE_CONFIG_KEY);return e?_.isObject(e)?_.extend({},CONFIG_DEFAULTS$1,e):CONFIG_DEFAULTS$1:{}},Autocapture.prototype.getConfig=function(e){return this.getFullConfig()[e]},Autocapture.prototype.currentUrlBlocked=function(){var e,t=_.info.currentUrl(),i=this.getConfig(CONFIG_ALLOW_URL_REGEXES)||[];if(i.length){var s=!1;for(e=0;e<i.length;e++){var o=i[e];try{if(t.match(o)){s=!0;break}}catch(l){return logger$1.critical("Error while checking block URL regex: "+o,l),!0}}if(!s)return!0}var a=this.getConfig(CONFIG_BLOCK_URL_REGEXES)||[];if(!a||!a.length)return!1;for(e=0;e<a.length;e++)try{if(t.match(a[e]))return!0}catch(l){return logger$1.critical("Error while checking block URL regex: "+a[e],l),!0}return!1},Autocapture.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(AUTOCAPTURE_CONFIG_KEY)?this.getConfig(CONFIG_TRACK_PAGEVIEW):this.mp.get_config(LEGACY_PAGEVIEW_CONFIG_KEY)},Autocapture.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var i=getPropsForDOMEvent(e,{allowElementCallback:this.getConfig(CONFIG_ALLOW_ELEMENT_CALLBACK),allowSelectors:this.getConfig(CONFIG_ALLOW_SELECTORS),blockAttrs:this.getConfig(CONFIG_BLOCK_ATTRS),blockElementCallback:this.getConfig(CONFIG_BLOCK_ELEMENT_CALLBACK),blockSelectors:this.getConfig(CONFIG_BLOCK_SELECTORS),captureExtraAttrs:this.getConfig(CONFIG_CAPTURE_EXTRA_ATTRS),captureTextContent:this.getConfig(CONFIG_CAPTURE_TEXT_CONTENT),capturedForHeatMap:t===MP_EV_CLICK&&!this.getConfig(CONFIG_TRACK_CLICK)&&this.mp.is_recording_heatmap_data()});i&&(_.extend(i,DEFAULT_PROPS),this.mp.track(t,i))}},Autocapture.prototype.initClickTracking=function(){win.removeEventListener(EV_CLICK,this.listenerClick),!(!this.getConfig(CONFIG_TRACK_CLICK)&&!this.mp.get_config("record_heatmap_data"))&&(logger$1.log("Initializing click tracking"),this.listenerClick=win.addEventListener(EV_CLICK,(function(e){!this.getConfig(CONFIG_TRACK_CLICK)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,MP_EV_CLICK)}).bind(this)))},Autocapture.prototype.initInputTracking=function(){win.removeEventListener(EV_CHANGE,this.listenerChange),this.getConfig(CONFIG_TRACK_INPUT)&&(logger$1.log("Initializing input tracking"),this.listenerChange=win.addEventListener(EV_CHANGE,(function(e){this.getConfig(CONFIG_TRACK_INPUT)&&this.trackDomEvent(e,MP_EV_INPUT)}).bind(this)))},Autocapture.prototype.initPageviewTracking=function(){if(win.removeEventListener(EV_POPSTATE,this.listenerPopstate),win.removeEventListener(EV_HASHCHANGE,this.listenerHashchange),win.removeEventListener(EV_MP_LOCATION_CHANGE,this.listenerLocationchange),!!this.pageviewTrackingConfig()){logger$1.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(DEFAULT_PROPS)),t&&(e=_.info.currentUrl()),this.listenerPopstate=win.addEventListener(EV_POPSTATE,function(){win.dispatchEvent(new Event(EV_MP_LOCATION_CHANGE))}),this.listenerHashchange=win.addEventListener(EV_HASHCHANGE,function(){win.dispatchEvent(new Event(EV_MP_LOCATION_CHANGE))});var i=win.history.pushState;typeof i=="function"&&(win.history.pushState=function(o,a,l){i.call(win.history,o,a,l),win.dispatchEvent(new Event(EV_MP_LOCATION_CHANGE))});var s=win.history.replaceState;typeof s=="function"&&(win.history.replaceState=function(o,a,l){s.call(win.history,o,a,l),win.dispatchEvent(new Event(EV_MP_LOCATION_CHANGE))}),this.listenerLocationchange=win.addEventListener(EV_MP_LOCATION_CHANGE,safewrap((function(){if(!this.currentUrlBlocked()){var o=_.info.currentUrl(),a=!1,l=o.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],c=this.pageviewTrackingConfig();if(c===PAGEVIEW_OPTION_FULL_URL?a=o!==e:c===PAGEVIEW_OPTION_URL_WITH_PATH_AND_QUERY_STRING?a=o.split("#")[0]!==e.split("#")[0]:c===PAGEVIEW_OPTION_URL_WITH_PATH&&(a=l),a){var u=this.mp.track_pageview(DEFAULT_PROPS);u&&(e=o),l&&(this.lastScrollCheckpoint=0,logger$1.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)))}},Autocapture.prototype.initScrollTracking=function(){win.removeEventListener(EV_SCROLLEND,this.listenerScroll),this.getConfig(CONFIG_TRACK_SCROLL)&&(logger$1.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0,this.listenerScroll=win.addEventListener(EV_SCROLLEND,safewrap((function(){if(this.getConfig(CONFIG_TRACK_SCROLL)&&!this.currentUrlBlocked()){var e=this.getConfig(CONFIG_SCROLL_CAPTURE_ALL),t=(this.getConfig(CONFIG_SCROLL_CHECKPOINTS)||[]).slice().sort(function(u,d){return u-d}),i=win.scrollY,s=_.extend({$scroll_top:i},DEFAULT_PROPS);try{var o=document$1.body.scrollHeight,a=Math.round(i/(o-win.innerHeight)*100);if(s.$scroll_height=o,s.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var l=0;l<t.length;l++){var c=t[l];a>=c&&this.lastScrollCheckpoint<c&&(s.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,e=!0)}}catch(u){logger$1.critical("Error while calculating scroll percentage",u)}e&&this.mp.track(MP_EV_SCROLL,s)}}).bind(this))))},Autocapture.prototype.initSubmitTracking=function(){win.removeEventListener(EV_SUBMIT,this.listenerSubmit),this.getConfig(CONFIG_TRACK_SUBMIT)&&(logger$1.log("Initializing submit tracking"),this.listenerSubmit=win.addEventListener(EV_SUBMIT,(function(e){this.getConfig(CONFIG_TRACK_SUBMIT)&&this.trackDomEvent(e,MP_EV_SUBMIT)}).bind(this)))},safewrapClass(Autocapture);var fetch$1=win.fetch,logger=console_with_prefix("flags"),FLAGS_CONFIG_KEY="flags",CONFIG_CONTEXT="context",CONFIG_DEFAULTS={};CONFIG_DEFAULTS[CONFIG_CONTEXT]={};var FeatureFlagManager=function(e){this.getMpConfig=e.getConfigFunc,this.getDistinctId=e.getDistinctIdFunc,this.track=e.trackingFunc};FeatureFlagManager.prototype.init=function(){if(!minApisSupported()){logger.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set},FeatureFlagManager.prototype.getFullConfig=function(){var e=this.getMpConfig(FLAGS_CONFIG_KEY);return e?_.isObject(e)?_.extend({},CONFIG_DEFAULTS,e):CONFIG_DEFAULTS:{}},FeatureFlagManager.prototype.getConfig=function(e){return this.getFullConfig()[e]},FeatureFlagManager.prototype.isSystemEnabled=function(){return!!this.getMpConfig(FLAGS_CONFIG_KEY)},FeatureFlagManager.prototype.areFlagsReady=function(){return this.isSystemEnabled()||logger.error("Feature Flags not enabled"),!!this.flags},FeatureFlagManager.prototype.fetchFlags=function(){if(this.isSystemEnabled()){var e=this.getDistinctId();logger.log("Fetching flags for distinct ID: "+e);var t={context:_.extend({distinct_id:e},this.getConfig(CONFIG_CONTEXT))};this.fetchPromise=win.fetch(this.getMpConfig("api_host")+"/"+this.getMpConfig("api_routes").flags,{method:"POST",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),"Content-Type":"application/octet-stream"},body:JSON.stringify(t)}).then((function(i){return i.json().then((function(s){var o=s.flags;if(!o)throw new Error("No flags in API response");var a=new Map;_.each(o,function(l,c){a.set(c,{key:l.variant_key,value:l.variant_value})}),this.flags=a}).bind(this)).catch(function(s){logger.error(s)})}).bind(this)).catch(function(){})}},FeatureFlagManager.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(i){return logger.error(i),t}):new Promise(function(i){logger.critical("Feature Flags not initialized"),i(t)})},FeatureFlagManager.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return logger.log("Flags not loaded yet"),t;var i=this.flags.get(e);return i?(this.trackFeatureCheck(e,i),i):(logger.log('No flag found: "'+e+'"'),t)},FeatureFlagManager.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(i){return i.value}).catch(function(i){return logger.error(i),t})},FeatureFlagManager.prototype.getFeatureData=function(e,t){return logger.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},FeatureFlagManager.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},FeatureFlagManager.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(i){return logger.error(i),t})},FeatureFlagManager.prototype.isEnabledSync=function(e,t){t=t||!1;var i=this.getVariantValueSync(e,t);return i!==!0&&i!==!1&&(logger.error('Feature flag "'+e+'" value: '+i+" is not a boolean; returning fallback value: "+t),i=t),i},FeatureFlagManager.prototype.trackFeatureCheck=function(e,t){this.trackedFeatures.has(e)||(this.trackedFeatures.add(e),this.track("$experiment_started",{"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag"}))};function minApisSupported(){return!!fetch$1&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"}safewrapClass(FeatureFlagManager),FeatureFlagManager.prototype.are_flags_ready=FeatureFlagManager.prototype.areFlagsReady,FeatureFlagManager.prototype.get_variant=FeatureFlagManager.prototype.getVariant,FeatureFlagManager.prototype.get_variant_sync=FeatureFlagManager.prototype.getVariantSync,FeatureFlagManager.prototype.get_variant_value=FeatureFlagManager.prototype.getVariantValue,FeatureFlagManager.prototype.get_variant_value_sync=FeatureFlagManager.prototype.getVariantValueSync,FeatureFlagManager.prototype.is_enabled=FeatureFlagManager.prototype.isEnabled,FeatureFlagManager.prototype.is_enabled_sync=FeatureFlagManager.prototype.isEnabledSync,FeatureFlagManager.prototype.get_feature_data=FeatureFlagManager.prototype.getFeatureData;var DomTracker=function(){};DomTracker.prototype.create_properties=function(){},DomTracker.prototype.event_handler=function(){},DomTracker.prototype.after_track_handler=function(){},DomTracker.prototype.init=function(e){return this.mp=e,this},DomTracker.prototype.track=function(e,t,i,s){var o=this,a=_.dom_query(e);if(a.length===0){console$1.error("The DOM query ("+e+") returned 0 elements");return}return _.each(a,function(l){_.register_event(l,this.override_event,function(c){var u={},d=o.create_properties(i,this),p=o.mp.get_config("track_links_timeout");o.event_handler(c,this,u),window.setTimeout(o.track_callback(s,d,u,!0),p),o.mp.track(t,d,o.track_callback(s,d,u))})},this),!0},DomTracker.prototype.track_callback=function(e,t,i,s){s=s||!1;var o=this;return function(){i.callback_fired||(i.callback_fired=!0,!(e&&e(s,t)===!1)&&o.after_track_handler(t,i,s))}},DomTracker.prototype.create_properties=function(e,t){var i;return typeof e=="function"?i=e(t):i=_.extend({},e),i};var LinkTracker=function(){this.override_event="click"};_.inherit(LinkTracker,DomTracker),LinkTracker.prototype.create_properties=function(e,t){var i=LinkTracker.superclass.create_properties.apply(this,arguments);return t.href&&(i.url=t.href),i},LinkTracker.prototype.event_handler=function(e,t,i){i.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",i.href=t.href,i.new_tab||e.preventDefault()},LinkTracker.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var FormTracker=function(){this.override_event="submit"};_.inherit(FormTracker,DomTracker),FormTracker.prototype.event_handler=function(e,t,i){i.element=t,e.preventDefault()},FormTracker.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var SET_ACTION="$set",SET_ONCE_ACTION="$set_once",UNSET_ACTION="$unset",ADD_ACTION="$add",APPEND_ACTION="$append",UNION_ACTION="$union",REMOVE_ACTION="$remove",DELETE_ACTION="$delete",apiActions={set_action:function(e,t){var i={},s={};return _.isObject(e)?_.each(e,function(o,a){this._is_reserved_property(a)||(s[a]=o)},this):s[e]=t,i[SET_ACTION]=s,i},unset_action:function(e){var t={},i=[];return _.isArray(e)||(e=[e]),_.each(e,function(s){this._is_reserved_property(s)||i.push(s)},this),t[UNSET_ACTION]=i,t},set_once_action:function(e,t){var i={},s={};return _.isObject(e)?_.each(e,function(o,a){this._is_reserved_property(a)||(s[a]=o)},this):s[e]=t,i[SET_ONCE_ACTION]=s,i},union_action:function(e,t){var i={},s={};return _.isObject(e)?_.each(e,function(o,a){this._is_reserved_property(a)||(s[a]=_.isArray(o)?o:[o])},this):s[e]=_.isArray(t)?t:[t],i[UNION_ACTION]=s,i},append_action:function(e,t){var i={},s={};return _.isObject(e)?_.each(e,function(o,a){this._is_reserved_property(a)||(s[a]=o)},this):s[e]=t,i[APPEND_ACTION]=s,i},remove_action:function(e,t){var i={},s={};return _.isObject(e)?_.each(e,function(o,a){this._is_reserved_property(a)||(s[a]=o)},this):s[e]=t,i[REMOVE_ACTION]=s,i},delete_action:function(){var e={};return e[DELETE_ACTION]="",e}},MixpanelGroup=function(){};_.extend(MixpanelGroup.prototype,apiActions),MixpanelGroup.prototype._init=function(e,t,i){this._mixpanel=e,this._group_key=t,this._group_id=i},MixpanelGroup.prototype.set=addOptOutCheckMixpanelGroup(function(e,t,i){var s=this.set_action(e,t);return _.isObject(e)&&(i=t),this._send_request(s,i)}),MixpanelGroup.prototype.set_once=addOptOutCheckMixpanelGroup(function(e,t,i){var s=this.set_once_action(e,t);return _.isObject(e)&&(i=t),this._send_request(s,i)}),MixpanelGroup.prototype.unset=addOptOutCheckMixpanelGroup(function(e,t){var i=this.unset_action(e);return this._send_request(i,t)}),MixpanelGroup.prototype.union=addOptOutCheckMixpanelGroup(function(e,t,i){_.isObject(e)&&(i=t);var s=this.union_action(e,t);return this._send_request(s,i)}),MixpanelGroup.prototype.delete=addOptOutCheckMixpanelGroup(function(e){var t=this.delete_action();return this._send_request(t,e)}),MixpanelGroup.prototype.remove=addOptOutCheckMixpanelGroup(function(e,t,i){var s=this.remove_action(e,t);return this._send_request(s,i)}),MixpanelGroup.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var i=_.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},MixpanelGroup.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"},MixpanelGroup.prototype._get_config=function(e){return this._mixpanel.get_config(e)},MixpanelGroup.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},MixpanelGroup.prototype.remove=MixpanelGroup.prototype.remove,MixpanelGroup.prototype.set=MixpanelGroup.prototype.set,MixpanelGroup.prototype.set_once=MixpanelGroup.prototype.set_once,MixpanelGroup.prototype.union=MixpanelGroup.prototype.union,MixpanelGroup.prototype.unset=MixpanelGroup.prototype.unset,MixpanelGroup.prototype.toString=MixpanelGroup.prototype.toString;var MixpanelPeople=function(){};_.extend(MixpanelPeople.prototype,apiActions),MixpanelPeople.prototype._init=function(e){this._mixpanel=e},MixpanelPeople.prototype.set=addOptOutCheckMixpanelPeople(function(e,t,i){var s=this.set_action(e,t);return _.isObject(e)&&(i=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),s[SET_ACTION]=_.extend({},_.info.people_properties(),s[SET_ACTION]),this._send_request(s,i)}),MixpanelPeople.prototype.set_once=addOptOutCheckMixpanelPeople(function(e,t,i){var s=this.set_once_action(e,t);return _.isObject(e)&&(i=t),this._send_request(s,i)}),MixpanelPeople.prototype.unset=addOptOutCheckMixpanelPeople(function(e,t){var i=this.unset_action(e);return this._send_request(i,t)}),MixpanelPeople.prototype.increment=addOptOutCheckMixpanelPeople(function(e,t,i){var s={},o={};return _.isObject(e)?(_.each(e,function(a,l){if(!this._is_reserved_property(l))if(isNaN(parseFloat(a))){console$1.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else o[l]=a},this),i=t):(_.isUndefined(t)&&(t=1),o[e]=t),s[ADD_ACTION]=o,this._send_request(s,i)}),MixpanelPeople.prototype.append=addOptOutCheckMixpanelPeople(function(e,t,i){_.isObject(e)&&(i=t);var s=this.append_action(e,t);return this._send_request(s,i)}),MixpanelPeople.prototype.remove=addOptOutCheckMixpanelPeople(function(e,t,i){_.isObject(e)&&(i=t);var s=this.remove_action(e,t);return this._send_request(s,i)}),MixpanelPeople.prototype.union=addOptOutCheckMixpanelPeople(function(e,t,i){_.isObject(e)&&(i=t);var s=this.union_action(e,t);return this._send_request(s,i)}),MixpanelPeople.prototype.track_charge=addOptOutCheckMixpanelPeople(function(){console$1.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),MixpanelPeople.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},MixpanelPeople.prototype.delete_user=function(){if(!this._identify_called()){console$1.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},MixpanelPeople.prototype.toString=function(){return this._mixpanel.toString()+".people"},MixpanelPeople.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),s=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(e.$device_id=i),s&&(e.$user_id=s),o&&(e.$had_persisted_distinct_id=o);var a=_.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:a,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),_.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),_.truncate(a,255))},MixpanelPeople.prototype._get_config=function(e){return this._mixpanel.get_config(e)},MixpanelPeople.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},MixpanelPeople.prototype._enqueue=function(e){SET_ACTION in e?this._mixpanel.persistence._add_to_people_queue(SET_ACTION,e):SET_ONCE_ACTION in e?this._mixpanel.persistence._add_to_people_queue(SET_ONCE_ACTION,e):UNSET_ACTION in e?this._mixpanel.persistence._add_to_people_queue(UNSET_ACTION,e):ADD_ACTION in e?this._mixpanel.persistence._add_to_people_queue(ADD_ACTION,e):APPEND_ACTION in e?this._mixpanel.persistence._add_to_people_queue(APPEND_ACTION,e):REMOVE_ACTION in e?this._mixpanel.persistence._add_to_people_queue(REMOVE_ACTION,e):UNION_ACTION in e?this._mixpanel.persistence._add_to_people_queue(UNION_ACTION,e):console$1.error("Invalid call to _enqueue():",e)},MixpanelPeople.prototype._flush_one_queue=function(e,t,i,s){var o=this,a=_.extend({},this._mixpanel.persistence.load_queue(e)),l=a;!_.isUndefined(a)&&_.isObject(a)&&!_.isEmptyObject(a)&&(o._mixpanel.persistence._pop_from_people_queue(e,a),o._mixpanel.persistence.save(),s&&(l=s(a)),t.call(o,l,function(c,u){c===0&&o._mixpanel.persistence._add_to_people_queue(e,a),_.isUndefined(i)||i(c,u)}))},MixpanelPeople.prototype._flush=function(e,t,i,s,o,a,l){var c=this;this._flush_one_queue(SET_ACTION,this.set,e),this._flush_one_queue(SET_ONCE_ACTION,this.set_once,s),this._flush_one_queue(UNSET_ACTION,this.unset,a,function(w){return _.keys(w)}),this._flush_one_queue(ADD_ACTION,this.increment,t),this._flush_one_queue(UNION_ACTION,this.union,o);var u=this._mixpanel.persistence.load_queue(APPEND_ACTION);if(!_.isUndefined(u)&&_.isArray(u)&&u.length)for(var d,p=function(w,E){w===0&&c._mixpanel.persistence._add_to_people_queue(APPEND_ACTION,d),_.isUndefined(i)||i(w,E)},m=u.length-1;m>=0;m--)u=this._mixpanel.persistence.load_queue(APPEND_ACTION),d=u.pop(),c._mixpanel.persistence.save(),_.isEmptyObject(d)||c.append(d,p);var g=this._mixpanel.persistence.load_queue(REMOVE_ACTION);if(!_.isUndefined(g)&&_.isArray(g)&&g.length)for(var b,y=function(w,E){w===0&&c._mixpanel.persistence._add_to_people_queue(REMOVE_ACTION,b),_.isUndefined(l)||l(w,E)},S=g.length-1;S>=0;S--)g=this._mixpanel.persistence.load_queue(REMOVE_ACTION),b=g.pop(),c._mixpanel.persistence.save(),_.isEmptyObject(b)||c.remove(b,y)},MixpanelPeople.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"},MixpanelPeople.prototype.set=MixpanelPeople.prototype.set,MixpanelPeople.prototype.set_once=MixpanelPeople.prototype.set_once,MixpanelPeople.prototype.unset=MixpanelPeople.prototype.unset,MixpanelPeople.prototype.increment=MixpanelPeople.prototype.increment,MixpanelPeople.prototype.append=MixpanelPeople.prototype.append,MixpanelPeople.prototype.remove=MixpanelPeople.prototype.remove,MixpanelPeople.prototype.union=MixpanelPeople.prototype.union,MixpanelPeople.prototype.track_charge=MixpanelPeople.prototype.track_charge,MixpanelPeople.prototype.clear_charges=MixpanelPeople.prototype.clear_charges,MixpanelPeople.prototype.delete_user=MixpanelPeople.prototype.delete_user,MixpanelPeople.prototype.toString=MixpanelPeople.prototype.toString;var SET_QUEUE_KEY="__mps",SET_ONCE_QUEUE_KEY="__mpso",UNSET_QUEUE_KEY="__mpus",ADD_QUEUE_KEY="__mpa",APPEND_QUEUE_KEY="__mpap",REMOVE_QUEUE_KEY="__mpr",UNION_QUEUE_KEY="__mpu",PEOPLE_DISTINCT_ID_KEY="$people_distinct_id",ALIAS_ID_KEY="__alias",EVENT_TIMERS_KEY="__timers",RESERVED_PROPERTIES=[SET_QUEUE_KEY,SET_ONCE_QUEUE_KEY,UNSET_QUEUE_KEY,ADD_QUEUE_KEY,APPEND_QUEUE_KEY,REMOVE_QUEUE_KEY,UNION_QUEUE_KEY,PEOPLE_DISTINCT_ID_KEY,ALIAS_ID_KEY,EVENT_TIMERS_KEY],MixpanelPersistence=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(console$1.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&_.localStorage.is_supported()?this.storage=_.localStorage:this.storage=_.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};MixpanelPersistence.prototype.properties=function(){var e={};return this.load(),_.each(this.props,function(t,i){_.include(RESERVED_PROPERTIES,i)||(e[i]=t)}),e},MixpanelPersistence.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=_.extend({},e))}},MixpanelPersistence.prototype.upgrade=function(){var e,t;this.storage===_.localStorage?(e=_.cookie.parse(this.name),_.cookie.remove(this.name),_.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===_.cookie&&(t=_.localStorage.parse(this.name),_.localStorage.remove(this.name),t&&this.register_once(t))},MixpanelPersistence.prototype.save=function(){this.disabled||this.storage.set(this.name,JSONStringify(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},MixpanelPersistence.prototype.load_prop=function(e){return this.load(),this.props[e]},MixpanelPersistence.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},MixpanelPersistence.prototype.clear=function(){this.remove(),this.props={}},MixpanelPersistence.prototype.register_once=function(e,t,i){return _.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof i>"u"?this.default_expiry:i,this.load(),_.each(e,function(s,o){(!this.props.hasOwnProperty(o)||this.props[o]===t)&&(this.props[o]=s)},this),this.save(),!0):!1},MixpanelPersistence.prototype.register=function(e,t){return _.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,this.load(),_.extend(this.props,e),this.save(),!0):!1},MixpanelPersistence.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},MixpanelPersistence.prototype.update_search_keyword=function(e){this.register(_.info.searchInfo(e))},MixpanelPersistence.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:_.info.referringDomain(e)||"$direct"},"")},MixpanelPersistence.prototype.get_referrer_info=function(){return _.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},MixpanelPersistence.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},MixpanelPersistence.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},MixpanelPersistence.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},MixpanelPersistence.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},MixpanelPersistence.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},MixpanelPersistence.prototype.get_cross_subdomain=function(){return this.cross_subdomain},MixpanelPersistence.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},MixpanelPersistence.prototype._add_to_people_queue=function(e,t){var i=this._get_queue_key(e),s=t[e],o=this._get_or_create_queue(SET_ACTION),a=this._get_or_create_queue(SET_ONCE_ACTION),l=this._get_or_create_queue(UNSET_ACTION),c=this._get_or_create_queue(ADD_ACTION),u=this._get_or_create_queue(UNION_ACTION),d=this._get_or_create_queue(REMOVE_ACTION,[]),p=this._get_or_create_queue(APPEND_ACTION,[]);i===SET_QUEUE_KEY?(_.extend(o,s),this._pop_from_people_queue(ADD_ACTION,s),this._pop_from_people_queue(UNION_ACTION,s),this._pop_from_people_queue(UNSET_ACTION,s)):i===SET_ONCE_QUEUE_KEY?(_.each(s,function(m,g){g in a||(a[g]=m)}),this._pop_from_people_queue(UNSET_ACTION,s)):i===UNSET_QUEUE_KEY?_.each(s,function(m){_.each([o,a,c,u],function(g){m in g&&delete g[m]}),_.each(p,function(g){m in g&&delete g[m]}),l[m]=!0}):i===ADD_QUEUE_KEY?(_.each(s,function(m,g){g in o?o[g]+=m:(g in c||(c[g]=0),c[g]+=m)},this),this._pop_from_people_queue(UNSET_ACTION,s)):i===UNION_QUEUE_KEY?(_.each(s,function(m,g){_.isArray(m)&&(g in u||(u[g]=[]),_.each(m,function(b){_.include(u[g],b)||u[g].push(b)}))}),this._pop_from_people_queue(UNSET_ACTION,s)):i===REMOVE_QUEUE_KEY?(d.push(s),this._pop_from_people_queue(APPEND_ACTION,s)):i===APPEND_QUEUE_KEY&&(p.push(s),this._pop_from_people_queue(UNSET_ACTION,s)),console$1.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),console$1.log(t),this.save()},MixpanelPersistence.prototype._pop_from_people_queue=function(e,t){var i=this.props[this._get_queue_key(e)];_.isUndefined(i)||_.each(t,function(s,o){e===APPEND_ACTION||e===REMOVE_ACTION?_.each(i,function(a){a[o]===s&&delete a[o]}):delete i[o]},this)},MixpanelPersistence.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},MixpanelPersistence.prototype._get_queue_key=function(e){if(e===SET_ACTION)return SET_QUEUE_KEY;if(e===SET_ONCE_ACTION)return SET_ONCE_QUEUE_KEY;if(e===UNSET_ACTION)return UNSET_QUEUE_KEY;if(e===ADD_ACTION)return ADD_QUEUE_KEY;if(e===APPEND_ACTION)return APPEND_QUEUE_KEY;if(e===REMOVE_ACTION)return REMOVE_QUEUE_KEY;if(e===UNION_ACTION)return UNION_QUEUE_KEY;console$1.error("Invalid queue:",e)},MixpanelPersistence.prototype._get_or_create_queue=function(e,t){var i=this._get_queue_key(e);return t=_.isUndefined(t)?{}:t,this.props[i]||(this.props[i]=t)},MixpanelPersistence.prototype.set_event_timer=function(e,t){var i=this.load_prop(EVENT_TIMERS_KEY)||{};i[e]=t,this.props[EVENT_TIMERS_KEY]=i,this.save()},MixpanelPersistence.prototype.remove_event_timer=function(e){var t=this.load_prop(EVENT_TIMERS_KEY)||{},i=t[e];return _.isUndefined(i)||(delete this.props[EVENT_TIMERS_KEY][e],this.save()),i};var init_type,load_extra_bundle=function(e,t){throw new Error(e+" not available in this build.")},mixpanel_master,INIT_MODULE=0,INIT_SNIPPET=1,IDENTITY_FUNC=function(e){return e},PRIMARY_INSTANCE_NAME="mixpanel",PAYLOAD_TYPE_BASE64="base64",PAYLOAD_TYPE_JSON="json",DEVICE_ID_PREFIX="$device:",USE_XHR=win.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ENQUEUE_REQUESTS=!USE_XHR&&userAgent.indexOf("MSIE")===-1&&userAgent.indexOf("Mozilla")===-1,sendBeacon=null;navigator$1.sendBeacon&&(sendBeacon=function(){return navigator$1.sendBeacon.apply(navigator$1,arguments)});var DEFAULT_API_ROUTES={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},DEFAULT_CONFIG$1={api_host:"https://api-js.mixpanel.com",api_routes:DEFAULT_API_ROUTES,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:PAYLOAD_TYPE_BASE64,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:NOOP_FUNC,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:NOOP_FUNC,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_canvas:!1,record_collect_fonts:!1,record_heatmap_data:!1,record_idle_timeout_ms:30*60*1e3,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:MAX_RECORDING_MS,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},DOM_LOADED=!1,MixpanelLib=function(){},create_mplib=function(e,t,i){var s,o=i===PRIMARY_INSTANCE_NAME?mixpanel_master:mixpanel_master[i];if(o&&init_type===INIT_MODULE)s=o;else{if(o&&!_.isArray(o)){console$1.error("You have already initialized "+i);return}s=new MixpanelLib}if(s._cached_groups={},s._init(e,t,i),s.people=new MixpanelPeople,s.people._init(s),!s.get_config("skip_first_touch_marketing")){var a=_.info.campaignParams(null),l={},c=!1;_.each(a,function(u,d){l["initial_"+d]=u,u&&(c=!0)}),c&&s.people.set_once(l)}return Config.DEBUG=Config.DEBUG||s.get_config("debug"),!_.isUndefined(o)&&_.isArray(o)&&(s._execute_array.call(s.people,o.people),s._execute_array(o)),s};MixpanelLib.prototype.init=function(e,t,i){if(_.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===PRIMARY_INSTANCE_NAME){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var s=create_mplib(e,t,i);return mixpanel_master[i]=s,s._loaded(),s},MixpanelLib.prototype._init=function(e,t,i){t=t||{},this.__loaded=!0,this.config={};var s={};if(!("api_payload_format"in t)){var o=t.api_host||DEFAULT_CONFIG$1.api_host;o.match(/\.mixpanel\.com/)&&(s.api_payload_format=PAYLOAD_TYPE_JSON)}if(this.set_config(_.extend({},DEFAULT_CONFIG$1,s,t,{name:i,token:e,callback_fn:(i===PRIMARY_INSTANCE_NAME?i:PRIMARY_INSTANCE_NAME+"."+i)+"._jsc"})),this._jsc=NOOP_FUNC,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!_.localStorage.is_supported(!0)||!USE_XHR)this._batch_requests=!1,console$1.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),_.each(this.get_batcher_configs(),function(c){console$1.log("Clearing batch queue "+c.queue_key),_.localStorage.remove(c.queue_key)});else if(this.init_batchers(),sendBeacon&&win.addEventListener){var a=_.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);win.addEventListener("pagehide",function(c){c.persisted&&a()}),win.addEventListener("visibilitychange",function(){document$1.visibilityState==="hidden"&&a()})}}this.persistence=this.cookie=new MixpanelPersistence(this.config),this.unpersisted_superprops={},this._gdpr_init();var l=_.UUID();this.get_distinct_id()||this.register_once({distinct_id:DEVICE_ID_PREFIX+l,$device_id:l},""),this.flags=new FeatureFlagManager({getConfigFunc:_.bind(this.get_config,this),getDistinctIdFunc:_.bind(this.get_distinct_id,this),trackingFunc:_.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Autocapture(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},MixpanelLib.prototype._init_tab_id=function(){if(_.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,i="mp_gen_new_tab_id_"+e;(_.sessionStorage.get(i)||!_.sessionStorage.get(t))&&_.sessionStorage.set(t,"$tab-"+_.UUID()),_.sessionStorage.set(i,"1"),this.tab_id=_.sessionStorage.get(t),win.addEventListener("beforeunload",function(){_.sessionStorage.remove(i)})}catch(s){this.report_error("Error initializing tab id",s)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},MixpanelLib.prototype.get_tab_id=function(){return this.tab_id||null},MixpanelLib.prototype._should_load_recorder=function(){var e=new IDBStorageWrapper(RECORDING_REGISTRY_STORE_NAME),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(i){for(var s=0;s<i.length;s++)if(isRecordingExpired(i[s])||i[s].tabId===t)return!0;return!1}).catch(_.bind(function(i){this.report_error("Error checking recording registry",i)},this))},MixpanelLib.prototype._check_and_start_session_recording=addOptOutCheckMixpanelLib(function(e){if(!win.MutationObserver){console$1.critical("Browser does not support MutationObserver; skipping session recording");return}var t=_.bind(function(s){var o=_.bind(function(){this._recorder=this._recorder||new win.__mp_recorder(this),this._recorder.resumeRecording(s)},this);_.isUndefined(win.__mp_recorder)?load_extra_bundle(this.get_config("recorder_src"),o):o()},this),i=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");e||i?t(!0):this._should_load_recorder().then(function(s){s&&t(!1)})}),MixpanelLib.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},MixpanelLib.prototype.stop_session_recording=function(){this._recorder&&this._recorder.stopRecording()},MixpanelLib.prototype.pause_session_recording=function(){this._recorder&&this._recorder.pauseRecording()},MixpanelLib.prototype.resume_session_recording=function(){this._recorder&&this._recorder.resumeRecording()},MixpanelLib.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},MixpanelLib.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},MixpanelLib.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();if(t){var i=_.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+i}return e},MixpanelLib.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},MixpanelLib.prototype.__get_recorder=function(){return this._recorder},MixpanelLib.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=_.info.campaignParams(null);_.each(e,(function(t,i){this.unregister(i)}).bind(this))}},MixpanelLib.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(document$1.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(_.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(document$1.referrer)},MixpanelLib.prototype._dom_loaded=function(){_.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||_.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},MixpanelLib.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!DOM_LOADED)return this.__dom_loaded_queue.push([e,t]),!1;var i=new e().init(this);return i.track.apply(i,t)},MixpanelLib.prototype._prepare_callback=function(e,t){if(_.isUndefined(e))return null;if(USE_XHR){var i=function(l){e(l,t)};return i}else{var s=this._jsc,o=""+Math.floor(Math.random()*1e8),a=this.get_config("callback_fn")+"["+o+"]";return s[o]=function(l){delete s[o],e(l,t)},a}},MixpanelLib.prototype._send_request=function(e,t,i,s){var o=!0;if(ENQUEUE_REQUESTS)return this.__request_queue.push(arguments),o;var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},l=null;!s&&(_.isFunction(i)||typeof i=="string")&&(s=i,i=null),i=_.extend(a,i||{}),USE_XHR||(i.method="GET");var c=i.method==="POST",u=sendBeacon&&c&&i.transport.toLowerCase()==="sendbeacon",d=i.verbose;t.verbose&&(d=!0),this.get_config("test")&&(t.test=1),d&&(t.verbose=1),this.get_config("img")&&(t.img=1),USE_XHR||(s?t.callback=s:(d||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),c&&(l="data="+encodeURIComponent(t.data),delete t.data),_.extend(t,this.get_config("api_extra_query_params")),e+="?"+_.HTTPBuildQuery(t);var p=this;if("img"in t){var m=document$1.createElement("img");m.src=e,document$1.body.appendChild(m)}else if(u){try{o=sendBeacon(e,l)}catch(E){p.report_error(E),o=!1}try{s&&s(o?1:0)}catch(E){p.report_error(E)}}else if(USE_XHR)try{var g=new XMLHttpRequest;g.open(i.method,e,!0);var b=this.get_config("xhr_headers");if(c&&(b["Content-Type"]="application/x-www-form-urlencoded"),_.each(b,function(E,A){g.setRequestHeader(A,E)}),i.timeout_ms&&typeof g.timeout<"u"){g.timeout=i.timeout_ms;var y=new Date().getTime()}g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(g.status===200){if(s)if(d){var E;try{E=_.JSONDecode(g.responseText)}catch(P){if(p.report_error(P),i.ignore_json_errors)E=g.responseText;else return}s(E)}else s(Number(g.responseText))}else{var A;if(g.timeout&&!g.status&&new Date().getTime()-y>=g.timeout?A="timeout":A="Bad HTTP status: "+g.status+" "+g.statusText,p.report_error(A),s)if(d){var T=g.responseHeaders||{};s({status:0,httpStatusCode:g.status,error:A,retryAfter:T["Retry-After"]})}else s(0)}},g.send(l)}catch(E){p.report_error(E),o=!1}else{var S=document$1.createElement("script");S.type="text/javascript",S.async=!0,S.defer=!0,S.src=e;var w=document$1.getElementsByTagName("script")[0];w.parentNode.insertBefore(S,w)}return o},MixpanelLib.prototype._execute_array=function(e){var t,i=[],s=[],o=[];_.each(e,function(l){l&&(t=l[0],_.isArray(t)?o.push(l):typeof l=="function"?l.call(this):_.isArray(l)&&t==="alias"?i.push(l):_.isArray(l)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?o.push(l):s.push(l))},this);var a=function(l,c){_.each(l,function(u){if(_.isArray(u[0])){var d=c;_.each(u,function(p){d=d[p[0]].apply(d,p.slice(1))})}else this[u[0]].apply(this,u.slice(1))},c)};a(i,this),a(s,this),a(o,this)},MixpanelLib.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},MixpanelLib.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},MixpanelLib.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=_.bind(function(i){return new RequestBatcher(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:_.bind(function(s,o,a){this._send_request(this.get_config("api_host")+i.endpoint,this._encode_data_for_request(s),o,this._prepare_callback(a,s))},this),beforeSendHook:_.bind(function(s){return this._run_hook("before_send_"+i.type,s)},this),stopAllBatchingFunc:_.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},MixpanelLib.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,_.each(this.request_batchers,function(e){e.start()}))},MixpanelLib.prototype.stop_batch_senders=function(){this._batch_requests=!1,_.each(this.request_batchers,function(e){e.stop(),e.clear()})},MixpanelLib.prototype.push=function(e){this._execute_array([e])},MixpanelLib.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},MixpanelLib.prototype._encode_data_for_request=function(e){var t=JSONStringify(e);return this.get_config("api_payload_format")===PAYLOAD_TYPE_BASE64&&(t=_.base64Encode(t)),{data:t}},MixpanelLib.prototype._track_or_batch=function(e,t){var i=_.truncate(e.data,255),s=e.endpoint,o=e.batcher,a=e.should_send_immediately,l=e.send_request_options||{};t=t||NOOP_FUNC;var c=!0,u=_.bind(function(){return l.skip_hooks||(i=this._run_hook("before_send_"+e.type,i)),i?(console$1.log("MIXPANEL REQUEST:"),console$1.log(i),this._send_request(s,this._encode_data_for_request(i),l,this._prepare_callback(t,i))):null},this);return this._batch_requests&&!a?o.enqueue(i).then(function(d){d?t(1,i):u()}):c=u(),c&&i},MixpanelLib.prototype.track=addOptOutCheckMixpanelLib(function(e,t,i,s){!s&&typeof i=="function"&&(s=i,i=null),i=i||{};var o=i.transport;o&&(i.transport=o);var a=i.send_immediately;if(typeof s!="function"&&(s=NOOP_FUNC),_.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){s(0);return}t=_.extend({},t),t.token=this.get_config("token");var l=this.persistence.remove_event_timer(e);if(!_.isUndefined(l)){var c=new Date().getTime()-l;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?_.info.marketingParams():{};t=_.extend({},_.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var d=this.get_config("property_blacklist");_.isArray(d)?_.each(d,function(g){delete t[g]}):this.report_error("Invalid value for property_blacklist config: "+d);var p={event:e,properties:t},m=this._track_or_batch({type:"events",data:p,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:a,send_request_options:i},s);return m}),MixpanelLib.prototype.set_group=addOptOutCheckMixpanelLib(function(e,t,i){_.isArray(t)||(t=[t]);var s={};return s[e]=t,this.register(s),this.people.set(e,t,i)}),MixpanelLib.prototype.add_group=addOptOutCheckMixpanelLib(function(e,t,i){var s=this.get_property(e),o={};return s===void 0?(o[e]=[t],this.register(o)):s.indexOf(t)===-1&&(s.push(t),o[e]=s,this.register(o)),this.people.union(e,t,i)}),MixpanelLib.prototype.remove_group=addOptOutCheckMixpanelLib(function(e,t,i){var s=this.get_property(e);if(s!==void 0){var o=s.indexOf(t);o>-1&&(s.splice(o,1),this.register({group_key:s})),s.length===0&&this.unregister(e)}return this.people.remove(e,t,i)}),MixpanelLib.prototype.track_with_groups=addOptOutCheckMixpanelLib(function(e,t,i,s){var o=_.extend({},t||{});return _.each(i,function(a,l){a!=null&&(o[l]=a)}),this.track(e,o,s)}),MixpanelLib.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},MixpanelLib.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},MixpanelLib.prototype.get_group=function(e,t){var i=this._create_map_key(e,t),s=this._cached_groups[i];return(s===void 0||s._group_key!==e||s._group_id!==t)&&(s=new MixpanelGroup,s._init(this,e,t),this._cached_groups[i]=s),s},MixpanelLib.prototype.track_pageview=addOptOutCheckMixpanelLib(function(e,t){typeof e!="object"&&(e={}),t=t||{};var i=t.event_name||"$mp_web_page_view",s=_.extend(_.info.mpPageViewProperties(),_.info.campaignParams(),_.info.clickParams()),o=_.extend({},s,e);return this.track(i,o)}),MixpanelLib.prototype.track_links=function(){return this._track_dom.call(this,LinkTracker,arguments)},MixpanelLib.prototype.track_forms=function(){return this._track_dom.call(this,FormTracker,arguments)},MixpanelLib.prototype.time_event=function(e){if(_.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var REGISTER_DEFAULTS={persistent:!0},options_for_register=function(e){var t;return _.isObject(e)?t=e:_.isUndefined(e)?t={}:t={days:e},_.extend({},REGISTER_DEFAULTS,t)};MixpanelLib.prototype.register=function(e,t){var i=options_for_register(t);i.persistent?this.persistence.register(e,i.days):_.extend(this.unpersisted_superprops,e)},MixpanelLib.prototype.register_once=function(e,t,i){var s=options_for_register(i);s.persistent?this.persistence.register_once(e,t,s.days):(typeof t>"u"&&(t="None"),_.each(e,function(o,a){(!this.unpersisted_superprops.hasOwnProperty(a)||this.unpersisted_superprops[a]===t)&&(this.unpersisted_superprops[a]=o)},this))},MixpanelLib.prototype.unregister=function(e,t){t=options_for_register(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},MixpanelLib.prototype._register_single=function(e,t){var i={};i[e]=t,this.register(i)},MixpanelLib.prototype.identify=function(e,t,i,s,o,a,l,c){var u=this.get_distinct_id();if(e&&u!==e){if(typeof e=="string"&&e.indexOf(DEVICE_ID_PREFIX)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var d=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:d},"")}e!==u&&e!==this.get_property(ALIAS_ID_KEY)&&(this.unregister(ALIAS_ID_KEY),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,i,s,o,a,l,c),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},MixpanelLib.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=_.UUID();this.register_once({distinct_id:DEVICE_ID_PREFIX+e,$device_id:e},""),this.stop_session_recording(),this._check_and_start_session_recording()},MixpanelLib.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},MixpanelLib.prototype.alias=function(e,t){if(e===this.get_property(PEOPLE_DISTINCT_ID_KEY))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var i=this;return _.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(ALIAS_ID_KEY,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){i.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},MixpanelLib.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},MixpanelLib.prototype.set_config=function(e){if(_.isObject(e)){_.extend(this.config,e);var t=e.batch_size;t&&_.each(this.request_batchers,function(i){i.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),Config.DEBUG=Config.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init()}},MixpanelLib.prototype.get_config=function(e){return this.config[e]},MixpanelLib.prototype._run_hook=function(e){var t=(this.config.hooks[e]||IDENTITY_FUNC).apply(this,slice.call(arguments,1));return typeof t>"u"&&(this.report_error(e+" hook did not return a value"),t=null),t},MixpanelLib.prototype.get_property=function(e){return this.persistence.load_prop([e])},MixpanelLib.prototype.toString=function(){var e=this.get_config("name");return e!==PRIMARY_INSTANCE_NAME&&(e=PRIMARY_INSTANCE_NAME+"."+e),e},MixpanelLib.prototype._event_is_disabled=function(e){return _.isBlockedUA(userAgent)||this._flags.disable_all_events||_.include(this.__disabled_events,e)},MixpanelLib.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&_.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||_.cookie.get("mp_optout"))&&(_.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},MixpanelLib.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},MixpanelLib.prototype._gdpr_call_func=function(e,t){return t=_.extend({track:_.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),_.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},MixpanelLib.prototype.opt_in_tracking=function(e){e=_.extend({enable_persistence:!0},e),this._gdpr_call_func(optIn,e),this._gdpr_update_persistence(e)},MixpanelLib.prototype.opt_out_tracking=function(e){e=_.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(optOut,e),this._gdpr_update_persistence(e)},MixpanelLib.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(hasOptedIn,e)},MixpanelLib.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(hasOptedOut,e)},MixpanelLib.prototype.clear_opt_in_out_tracking=function(e){e=_.extend({enable_persistence:!0},e),this._gdpr_call_func(clearOptInOut,e),this._gdpr_update_persistence(e)},MixpanelLib.prototype.report_error=function(e,t){console$1.error.apply(console$1.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(i){console$1.error(i)}},MixpanelLib.prototype.init=MixpanelLib.prototype.init,MixpanelLib.prototype.reset=MixpanelLib.prototype.reset,MixpanelLib.prototype.disable=MixpanelLib.prototype.disable,MixpanelLib.prototype.time_event=MixpanelLib.prototype.time_event,MixpanelLib.prototype.track=MixpanelLib.prototype.track,MixpanelLib.prototype.track_links=MixpanelLib.prototype.track_links,MixpanelLib.prototype.track_forms=MixpanelLib.prototype.track_forms,MixpanelLib.prototype.track_pageview=MixpanelLib.prototype.track_pageview,MixpanelLib.prototype.register=MixpanelLib.prototype.register,MixpanelLib.prototype.register_once=MixpanelLib.prototype.register_once,MixpanelLib.prototype.unregister=MixpanelLib.prototype.unregister,MixpanelLib.prototype.identify=MixpanelLib.prototype.identify,MixpanelLib.prototype.alias=MixpanelLib.prototype.alias,MixpanelLib.prototype.name_tag=MixpanelLib.prototype.name_tag,MixpanelLib.prototype.set_config=MixpanelLib.prototype.set_config,MixpanelLib.prototype.get_config=MixpanelLib.prototype.get_config,MixpanelLib.prototype.get_property=MixpanelLib.prototype.get_property,MixpanelLib.prototype.get_distinct_id=MixpanelLib.prototype.get_distinct_id,MixpanelLib.prototype.toString=MixpanelLib.prototype.toString,MixpanelLib.prototype.opt_out_tracking=MixpanelLib.prototype.opt_out_tracking,MixpanelLib.prototype.opt_in_tracking=MixpanelLib.prototype.opt_in_tracking,MixpanelLib.prototype.has_opted_out_tracking=MixpanelLib.prototype.has_opted_out_tracking,MixpanelLib.prototype.has_opted_in_tracking=MixpanelLib.prototype.has_opted_in_tracking,MixpanelLib.prototype.clear_opt_in_out_tracking=MixpanelLib.prototype.clear_opt_in_out_tracking,MixpanelLib.prototype.get_group=MixpanelLib.prototype.get_group,MixpanelLib.prototype.set_group=MixpanelLib.prototype.set_group,MixpanelLib.prototype.add_group=MixpanelLib.prototype.add_group,MixpanelLib.prototype.remove_group=MixpanelLib.prototype.remove_group,MixpanelLib.prototype.track_with_groups=MixpanelLib.prototype.track_with_groups,MixpanelLib.prototype.start_batch_senders=MixpanelLib.prototype.start_batch_senders,MixpanelLib.prototype.stop_batch_senders=MixpanelLib.prototype.stop_batch_senders,MixpanelLib.prototype.start_session_recording=MixpanelLib.prototype.start_session_recording,MixpanelLib.prototype.stop_session_recording=MixpanelLib.prototype.stop_session_recording,MixpanelLib.prototype.pause_session_recording=MixpanelLib.prototype.pause_session_recording,MixpanelLib.prototype.resume_session_recording=MixpanelLib.prototype.resume_session_recording,MixpanelLib.prototype.get_session_recording_properties=MixpanelLib.prototype.get_session_recording_properties,MixpanelLib.prototype.get_session_replay_url=MixpanelLib.prototype.get_session_replay_url,MixpanelLib.prototype.get_tab_id=MixpanelLib.prototype.get_tab_id,MixpanelLib.prototype.DEFAULT_API_ROUTES=DEFAULT_API_ROUTES,MixpanelLib.prototype.__get_recorder=MixpanelLib.prototype.__get_recorder,MixpanelPersistence.prototype.properties=MixpanelPersistence.prototype.properties,MixpanelPersistence.prototype.update_search_keyword=MixpanelPersistence.prototype.update_search_keyword,MixpanelPersistence.prototype.update_referrer_info=MixpanelPersistence.prototype.update_referrer_info,MixpanelPersistence.prototype.get_cross_subdomain=MixpanelPersistence.prototype.get_cross_subdomain,MixpanelPersistence.prototype.clear=MixpanelPersistence.prototype.clear;var instances={},extend_mp=function(){_.each(instances,function(e,t){t!==PRIMARY_INSTANCE_NAME&&(mixpanel_master[t]=e)}),mixpanel_master._=_},override_mp_init_func=function(){mixpanel_master.init=function(e,t,i){if(i)return mixpanel_master[i]||(mixpanel_master[i]=instances[i]=create_mplib(e,t,i),mixpanel_master[i]._loaded()),mixpanel_master[i];var s=mixpanel_master;instances[PRIMARY_INSTANCE_NAME]?s=instances[PRIMARY_INSTANCE_NAME]:e&&(s=create_mplib(e,t,PRIMARY_INSTANCE_NAME),s._loaded(),instances[PRIMARY_INSTANCE_NAME]=s),mixpanel_master=s,init_type===INIT_SNIPPET&&(win[PRIMARY_INSTANCE_NAME]=mixpanel_master),extend_mp()}},add_dom_loaded_handler=function(){function e(){e.done||(e.done=!0,DOM_LOADED=!0,ENQUEUE_REQUESTS=!1,_.each(instances,function(s){s._dom_loaded()}))}function t(){try{document$1.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(document$1.addEventListener)document$1.readyState==="complete"?e():document$1.addEventListener("DOMContentLoaded",e,!1);else if(document$1.attachEvent){document$1.attachEvent("onreadystatechange",e);var i=!1;try{i=win.frameElement===null}catch{}document$1.documentElement.doScroll&&i&&t()}_.register_event(win,"load",e,!0)};function init_as_module(e){return load_extra_bundle=e,init_type=INIT_MODULE,mixpanel_master=new MixpanelLib,override_mp_init_func(),mixpanel_master.init(),add_dom_loaded_handler(),mixpanel_master}function loadNoop(e,t){t()}var mixpanel=init_as_module(loadNoop),lib={},uaParser_min$1={exports:{}},uaParser_min=uaParser_min$1.exports,hasRequiredUaParser_min;function requireUaParser_min(){return hasRequiredUaParser_min||(hasRequiredUaParser_min=1,function(e,t){(function(i,s){var o="1.0.41",a="",l="?",c="function",u="undefined",d="object",p="string",m="major",g="model",b="name",y="type",S="vendor",w="version",E="architecture",A="console",T="mobile",P="tablet",O="smarttv",k="wearable",F="embedded",N=500,U="Amazon",H="Apple",Y="ASUS",Z="BlackBerry",ie="Browser",q="Chrome",z="Edge",$="Firefox",B="Google",M="Honor",D="Huawei",G="Lenovo",j="LG",W="Microsoft",J="Motorola",re="Nvidia",se="OnePlus",ce="Opera",le="OPPO",Q="Samsung",oe="Sharp",de="Sony",ue="Xiaomi",ye="Zebra",ve="Facebook",me="Chromium OS",Oe="Mac OS",$e=" Browser",De=function(Ue,we){var Te={};for(var Ve in Ue)we[Ve]&&we[Ve].length%2===0?Te[Ve]=we[Ve].concat(Ue[Ve]):Te[Ve]=Ue[Ve];return Te},Xe=function(Ue){for(var we={},Te=0;Te<Ue.length;Te++)we[Ue[Te].toUpperCase()]=Ue[Te];return we},je=function(Ue,we){return typeof Ue===p?be(we).indexOf(be(Ue))!==-1:!1},be=function(Ue){return Ue.toLowerCase()},Me=function(Ue){return typeof Ue===p?Ue.replace(/[^\d\.]/g,a).split(".")[0]:s},Be=function(Ue,we){if(typeof Ue===p)return Ue=Ue.replace(/^\s\s*/,a),typeof we===u?Ue:Ue.substring(0,N)},Ke=function(Ue,we){for(var Te=0,Ve,Ie,He,xe,Re,nt;Te<we.length&&!Re;){var bt=we[Te],At=we[Te+1];for(Ve=Ie=0;Ve<bt.length&&!Re&&bt[Ve];)if(Re=bt[Ve++].exec(Ue),Re)for(He=0;He<At.length;He++)nt=Re[++Ie],xe=At[He],typeof xe===d&&xe.length>0?xe.length===2?typeof xe[1]==c?this[xe[0]]=xe[1].call(this,nt):this[xe[0]]=xe[1]:xe.length===3?typeof xe[1]===c&&!(xe[1].exec&&xe[1].test)?this[xe[0]]=nt?xe[1].call(this,nt,xe[2]):s:this[xe[0]]=nt?nt.replace(xe[1],xe[2]):s:xe.length===4&&(this[xe[0]]=nt?xe[3].call(this,nt.replace(xe[1],xe[2])):s):this[xe]=nt||s;Te+=2}},ke=function(Ue,we){for(var Te in we)if(typeof we[Te]===d&&we[Te].length>0){for(var Ve=0;Ve<we[Te].length;Ve++)if(je(we[Te][Ve],Ue))return Te===l?s:Te}else if(je(we[Te],Ue))return Te===l?s:Te;return we.hasOwnProperty("*")?we["*"]:Ue},qe={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Qe={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},at={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[b,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[b,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[b,w],[/opios[\/ ]+([\w\.]+)/i],[w,[b,ce+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[b,ce+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[b,ce]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[b,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[w,[b,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[b,w],[/quark(?:pc)?\/([-\w\.]+)/i],[w,[b,"Quark"]],[/\bddg\/([\w\.]+)/i],[w,[b,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[b,"UC"+ie]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[b,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[b,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[b,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[b,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[b,"Smart Lenovo "+ie]],[/(avast|avg)\/([\w\.]+)/i],[[b,/(.+)/,"$1 Secure "+ie],w],[/\bfocus\/([\w\.]+)/i],[w,[b,$+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[b,ce+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[b,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[b,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[b,ce+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[b,"MIUI"+$e]],[/fxios\/([\w\.-]+)/i],[w,[b,$]],[/\bqihoobrowser\/?([\w\.]*)/i],[w,[b,"360"]],[/\b(qq)\/([\w\.]+)/i],[[b,/(.+)/,"$1Browser"],w],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[b,/(.+)/,"$1"+$e],w],[/samsungbrowser\/([\w\.]+)/i],[w,[b,Q+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[w,[b,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[b,"Sogou Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[b,w],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[b],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[w,b],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[b,ve],w],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[b,w],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[b,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[b,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[b,q+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[b,q+" WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[b,"Android "+ie]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[b,w],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[w,[b,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[w,b],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[b,[w,ke,qe]],[/(webkit|khtml)\/([\w\.]+)/i],[b,w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[b,"Netscape"],w],[/(wolvic|librewolf)\/([\w\.]+)/i],[b,w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[b,$+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[b,[w,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[b,[w,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[E,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[E,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[E,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[E,/ower/,a,be]],[/ sun4\w[;\)]/i],[[E,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[E,be]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[S,Q],[y,P]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[g,[S,Q],[y,T]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[g,[S,H],[y,T]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[g,[S,H],[y,P]],[/(macintosh);/i],[g,[S,H]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[g,[S,oe],[y,T]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[g,[S,M],[y,P]],[/honor([-\w ]+)[;\)]/i],[g,[S,M],[y,T]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[g,[S,D],[y,P]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[g,[S,D],[y,T]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[g,/_/g," "],[S,ue],[y,P]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[g,/_/g," "],[S,ue],[y,T]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[g,[S,le],[y,T]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[g,[S,ke,{OnePlus:["304","403","203"],"*":le}],[y,P]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[g,[S,"Vivo"],[y,T]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[g,[S,"Realme"],[y,T]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[g,[S,J],[y,T]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[g,[S,J],[y,P]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[S,j],[y,P]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[g,[S,j],[y,T]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[g,[S,G],[y,P]],[/(nokia) (t[12][01])/i],[S,g,[y,P]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[g,/_/g," "],[y,T],[S,"Nokia"]],[/(pixel (c|tablet))\b/i],[g,[S,B],[y,P]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[g,[S,B],[y,T]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[g,[S,de],[y,T]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[g,"Xperia Tablet"],[S,de],[y,P]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[g,[S,se],[y,T]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[g,[S,U],[y,P]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[g,/(.+)/g,"Fire Phone $1"],[S,U],[y,T]],[/(playbook);[-\w\),; ]+(rim)/i],[g,S,[y,P]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[g,[S,Z],[y,T]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[g,[S,Y],[y,P]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[g,[S,Y],[y,T]],[/(nexus 9)/i],[g,[S,"HTC"],[y,P]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[S,[g,/_/g," "],[y,T]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[g,[S,"TCL"],[y,P]],[/(itel) ((\w+))/i],[[S,be],g,[y,ke,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[g,[S,"Acer"],[y,P]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[g,[S,"Meizu"],[y,T]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[g,[S,"Ulefone"],[y,T]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[g,[S,"Energizer"],[y,T]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[g,[S,"Cat"],[y,T]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[g,[S,"Smartfren"],[y,T]],[/droid.+; (a(?:015|06[35]|142p?))/i],[g,[S,"Nothing"],[y,T]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[g,[S,"Archos"],[y,P]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[g,[S,"Archos"],[y,T]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[S,g,[y,P]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[S,g,[y,T]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[S,g,[y,P]],[/(surface duo)/i],[g,[S,W],[y,P]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[g,[S,"Fairphone"],[y,T]],[/(u304aa)/i],[g,[S,"AT&T"],[y,T]],[/\bsie-(\w*)/i],[g,[S,"Siemens"],[y,T]],[/\b(rct\w+) b/i],[g,[S,"RCA"],[y,P]],[/\b(venue[\d ]{2,7}) b/i],[g,[S,"Dell"],[y,P]],[/\b(q(?:mv|ta)\w+) b/i],[g,[S,"Verizon"],[y,P]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[g,[S,"Barnes & Noble"],[y,P]],[/\b(tm\d{3}\w+) b/i],[g,[S,"NuVision"],[y,P]],[/\b(k88) b/i],[g,[S,"ZTE"],[y,P]],[/\b(nx\d{3}j) b/i],[g,[S,"ZTE"],[y,T]],[/\b(gen\d{3}) b.+49h/i],[g,[S,"Swiss"],[y,T]],[/\b(zur\d{3}) b/i],[g,[S,"Swiss"],[y,P]],[/\b((zeki)?tb.*\b) b/i],[g,[S,"Zeki"],[y,P]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[S,"Dragon Touch"],g,[y,P]],[/\b(ns-?\w{0,9}) b/i],[g,[S,"Insignia"],[y,P]],[/\b((nxa|next)-?\w{0,9}) b/i],[g,[S,"NextBook"],[y,P]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[S,"Voice"],g,[y,T]],[/\b(lvtel\-)?(v1[12]) b/i],[[S,"LvTel"],g,[y,T]],[/\b(ph-1) /i],[g,[S,"Essential"],[y,T]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[g,[S,"Envizen"],[y,P]],[/\b(trio[-\w\. ]+) b/i],[g,[S,"MachSpeed"],[y,P]],[/\btu_(1491) b/i],[g,[S,"Rotor"],[y,P]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[g,[S,re],[y,P]],[/(sprint) (\w+)/i],[S,g,[y,T]],[/(kin\.[onetw]{3})/i],[[g,/\./g," "],[S,W],[y,T]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[g,[S,ye],[y,P]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[g,[S,ye],[y,T]],[/smart-tv.+(samsung)/i],[S,[y,O]],[/hbbtv.+maple;(\d+)/i],[[g,/^/,"SmartTV"],[S,Q],[y,O]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[S,j],[y,O]],[/(apple) ?tv/i],[S,[g,H+" TV"],[y,O]],[/crkey/i],[[g,q+"cast"],[S,B],[y,O]],[/droid.+aft(\w+)( bui|\))/i],[g,[S,U],[y,O]],[/(shield \w+ tv)/i],[g,[S,re],[y,O]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[g,[S,oe],[y,O]],[/(bravia[\w ]+)( bui|\))/i],[g,[S,de],[y,O]],[/(mi(tv|box)-?\w+) bui/i],[g,[S,ue],[y,O]],[/Hbbtv.*(technisat) (.*);/i],[S,g,[y,O]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[S,Be],[g,Be],[y,O]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[g,[y,O]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[y,O]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[S,g,[y,A]],[/droid.+; (shield)( bui|\))/i],[g,[S,re],[y,A]],[/(playstation \w+)/i],[g,[S,de],[y,A]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[g,[S,W],[y,A]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[g,[S,Q],[y,k]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[S,g,[y,k]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[g,[S,le],[y,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[g,[S,H],[y,k]],[/(opwwe\d{3})/i],[g,[S,se],[y,k]],[/(moto 360)/i],[g,[S,J],[y,k]],[/(smartwatch 3)/i],[g,[S,de],[y,k]],[/(g watch r)/i],[g,[S,j],[y,k]],[/droid.+; (wt63?0{2,3})\)/i],[g,[S,ye],[y,k]],[/droid.+; (glass) \d/i],[g,[S,B],[y,k]],[/(pico) (4|neo3(?: link|pro)?)/i],[S,g,[y,k]],[/; (quest( \d| pro)?)/i],[g,[S,ve],[y,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[S,[y,F]],[/(aeobc)\b/i],[g,[S,U],[y,F]],[/(homepod).+mac os/i],[g,[S,H],[y,F]],[/windows iot/i],[[y,F]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[g,[y,T]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[g,[y,P]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[y,P]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[y,T]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[g,[S,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[b,z+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[b,w],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[b,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[b,w],[/ladybird\//i],[[b,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,b]],os:[[/microsoft (windows) (vista|xp)/i],[b,w],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[b,[w,ke,Qe]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,ke,Qe],[b,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[b,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[b,Oe],[w,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,b],[/(ubuntu) ([\w\.]+) like android/i],[[b,/(.+)/,"$1 Touch"],w],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[b,w],[/\(bb(10);/i],[w,[b,Z]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[w,[b,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[b,$+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[b,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[b,"watchOS"]],[/crkey\/([\d\.]+)/i],[w,[b,q+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[b,me],w],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[b,w],[/(sunos) ?([\w\.\d]*)/i],[[b,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[b,w]]},ot=function(Ue,we){if(typeof Ue===d&&(we=Ue,Ue=s),!(this instanceof ot))return new ot(Ue,we).getResult();var Te=typeof i!==u&&i.navigator?i.navigator:s,Ve=Ue||(Te&&Te.userAgent?Te.userAgent:a),Ie=Te&&Te.userAgentData?Te.userAgentData:s,He=we?De(at,we):at,xe=Te&&Te.userAgent==Ve;return this.getBrowser=function(){var Re={};return Re[b]=s,Re[w]=s,Ke.call(Re,Ve,He.browser),Re[m]=Me(Re[w]),xe&&Te&&Te.brave&&typeof Te.brave.isBrave==c&&(Re[b]="Brave"),Re},this.getCPU=function(){var Re={};return Re[E]=s,Ke.call(Re,Ve,He.cpu),Re},this.getDevice=function(){var Re={};return Re[S]=s,Re[g]=s,Re[y]=s,Ke.call(Re,Ve,He.device),xe&&!Re[y]&&Ie&&Ie.mobile&&(Re[y]=T),xe&&Re[g]=="Macintosh"&&Te&&typeof Te.standalone!==u&&Te.maxTouchPoints&&Te.maxTouchPoints>2&&(Re[g]="iPad",Re[y]=P),Re},this.getEngine=function(){var Re={};return Re[b]=s,Re[w]=s,Ke.call(Re,Ve,He.engine),Re},this.getOS=function(){var Re={};return Re[b]=s,Re[w]=s,Ke.call(Re,Ve,He.os),xe&&!Re[b]&&Ie&&Ie.platform&&Ie.platform!="Unknown"&&(Re[b]=Ie.platform.replace(/chrome os/i,me).replace(/macos/i,Oe)),Re},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Ve},this.setUA=function(Re){return Ve=typeof Re===p&&Re.length>N?Be(Re,N):Re,this},this.setUA(Ve),this};ot.VERSION=o,ot.BROWSER=Xe([b,w,m]),ot.CPU=Xe([E]),ot.DEVICE=Xe([g,S,y,A,T,O,P,k,F]),ot.ENGINE=ot.OS=Xe([b,w]),e.exports&&(t=e.exports=ot),t.UAParser=ot;var ut=typeof i!==u&&(i.jQuery||i.Zepto);if(ut&&!ut.ua){var it=new ot;ut.ua=it.getResult(),ut.ua.get=function(){return it.getUA()},ut.ua.set=function(Ue){it.setUA(Ue);var we=it.getResult();for(var Te in we)ut.ua[Te]=we[Te]}}})(typeof window=="object"?window:uaParser_min)}(uaParser_min$1,uaParser_min$1.exports)),uaParser_min$1.exports}var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib;hasRequiredLib=1,Object.defineProperty(lib,"__esModule",{value:!0});function e(fe){return fe&&typeof fe=="object"&&"default"in fe?fe.default:fe}var t=requireReact(),i=e(t),s=requireUaParser_min(),o=new s,a=o.getBrowser(),l=o.getCPU(),c=o.getDevice(),u=o.getEngine(),d=o.getOS(),p=o.getUA(),m=function(K){return o.setUA(K)},g=function(K){if(!K){console.error("No userAgent string was provided");return}var ee=new s(K);return{UA:ee,browser:ee.getBrowser(),cpu:ee.getCPU(),device:ee.getDevice(),engine:ee.getEngine(),os:ee.getOS(),ua:ee.getUA(),setUserAgent:function(Se){return ee.setUA(Se)}}},b=Object.freeze({ClientUAInstance:o,browser:a,cpu:l,device:c,engine:u,os:d,ua:p,setUa:m,parseUserAgent:g});function y(fe,K){var ee=Object.keys(fe);if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(fe);K&&(_e=_e.filter(function(Se){return Object.getOwnPropertyDescriptor(fe,Se).enumerable})),ee.push.apply(ee,_e)}return ee}function S(fe){for(var K=1;K<arguments.length;K++){var ee=arguments[K]!=null?arguments[K]:{};K%2?y(Object(ee),!0).forEach(function(_e){P(fe,_e,ee[_e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(fe,Object.getOwnPropertyDescriptors(ee)):y(Object(ee)).forEach(function(_e){Object.defineProperty(fe,_e,Object.getOwnPropertyDescriptor(ee,_e))})}return fe}function w(fe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(K){return typeof K}:w=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},w(fe)}function E(fe,K){if(!(fe instanceof K))throw new TypeError("Cannot call a class as a function")}function A(fe,K){for(var ee=0;ee<K.length;ee++){var _e=K[ee];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(fe,_e.key,_e)}}function T(fe,K,ee){return A(fe.prototype,K),fe}function P(fe,K,ee){return K in fe?Object.defineProperty(fe,K,{value:ee,enumerable:!0,configurable:!0,writable:!0}):fe[K]=ee,fe}function O(){return O=Object.assign||function(fe){for(var K=1;K<arguments.length;K++){var ee=arguments[K];for(var _e in ee)Object.prototype.hasOwnProperty.call(ee,_e)&&(fe[_e]=ee[_e])}return fe},O.apply(this,arguments)}function k(fe,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");fe.prototype=Object.create(K&&K.prototype,{constructor:{value:fe,writable:!0,configurable:!0}}),K&&N(fe,K)}function F(fe){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(ee){return ee.__proto__||Object.getPrototypeOf(ee)},F(fe)}function N(fe,K){return N=Object.setPrototypeOf||function(_e,Se){return _e.__proto__=Se,_e},N(fe,K)}function U(fe,K){if(fe==null)return{};var ee={},_e=Object.keys(fe),Se,rt;for(rt=0;rt<_e.length;rt++)Se=_e[rt],!(K.indexOf(Se)>=0)&&(ee[Se]=fe[Se]);return ee}function H(fe,K){if(fe==null)return{};var ee=U(fe,K),_e,Se;if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(fe);for(Se=0;Se<rt.length;Se++)_e=rt[Se],!(K.indexOf(_e)>=0)&&Object.prototype.propertyIsEnumerable.call(fe,_e)&&(ee[_e]=fe[_e])}return ee}function Y(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}function Z(fe,K){if(K&&(typeof K=="object"||typeof K=="function"))return K;if(K!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y(fe)}function ie(fe,K){return q(fe)||z(fe,K)||$(fe,K)||M()}function q(fe){if(Array.isArray(fe))return fe}function z(fe,K){var ee=fe==null?null:typeof Symbol<"u"&&fe[Symbol.iterator]||fe["@@iterator"];if(ee!=null){var _e=[],Se=!0,rt=!1,wt,Yt;try{for(ee=ee.call(fe);!(Se=(wt=ee.next()).done)&&(_e.push(wt.value),!(K&&_e.length===K));Se=!0);}catch(Ii){rt=!0,Yt=Ii}finally{try{!Se&&ee.return!=null&&ee.return()}finally{if(rt)throw Yt}}return _e}}function $(fe,K){if(fe){if(typeof fe=="string")return B(fe,K);var ee=Object.prototype.toString.call(fe).slice(8,-1);if(ee==="Object"&&fe.constructor&&(ee=fe.constructor.name),ee==="Map"||ee==="Set")return Array.from(fe);if(ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee))return B(fe,K)}}function B(fe,K){(K==null||K>fe.length)&&(K=fe.length);for(var ee=0,_e=new Array(K);ee<K;ee++)_e[ee]=fe[ee];return _e}function M(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
191
191
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},G={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},j={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},W={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},J=function(K){switch(K){case D.Mobile:return{isMobile:!0};case D.Tablet:return{isTablet:!0};case D.SmartTv:return{isSmartTV:!0};case D.Console:return{isConsole:!0};case D.Wearable:return{isWearable:!0};case D.Browser:return{isBrowser:!0};case D.Embedded:return{isEmbedded:!0};default:return W}},re=function(K){return m(K)},se=function(K){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return K||ee},ce=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},le=function(K){var ee=ce();return ee&&ee.platform&&(ee.platform.indexOf(K)!==-1||ee.platform==="MacIntel"&&ee.maxTouchPoints>1&&!window.MSStream)},Q=function(K,ee,_e,Se,rt){return{isBrowser:K,browserMajorVersion:se(ee.major),browserFullVersion:se(ee.version),browserName:se(ee.name),engineName:se(_e.name),engineVersion:se(_e.version),osName:se(Se.name),osVersion:se(Se.version),userAgent:se(rt)}},oe=function(K,ee,_e,Se){return S({},K,{vendor:se(ee.vendor),model:se(ee.model),os:se(_e.name),osVersion:se(_e.version),ua:se(Se)})},de=function(K,ee,_e,Se){return{isSmartTV:K,engineName:se(ee.name),engineVersion:se(ee.version),osName:se(_e.name),osVersion:se(_e.version),userAgent:se(Se)}},ue=function(K,ee,_e,Se){return{isConsole:K,engineName:se(ee.name),engineVersion:se(ee.version),osName:se(_e.name),osVersion:se(_e.version),userAgent:se(Se)}},ye=function(K,ee,_e,Se){return{isWearable:K,engineName:se(ee.name),engineVersion:se(ee.version),osName:se(_e.name),osVersion:se(_e.version),userAgent:se(Se)}},ve=function(K,ee,_e,Se,rt){return{isEmbedded:K,vendor:se(ee.vendor),model:se(ee.model),engineName:se(_e.name),engineVersion:se(_e.version),osName:se(Se.name),osVersion:se(Se.version),userAgent:se(rt)}};function me(fe){var K=fe?g(fe):b,ee=K.device,_e=K.browser,Se=K.engine,rt=K.os,wt=K.ua,Yt=J(ee.type),Ii=Yt.isBrowser,gs=Yt.isMobile,Mi=Yt.isTablet,Oi=Yt.isSmartTV,vs=Yt.isConsole,Mr=Yt.isWearable,ki=Yt.isEmbedded;if(Ii)return Q(Ii,_e,Se,rt,wt);if(Oi)return de(Oi,Se,rt,wt);if(vs)return ue(vs,Se,rt,wt);if(gs||Mi)return oe(Yt,ee,rt,wt);if(Mr)return ye(Mr,Se,rt,wt);if(ki)return ve(ki,ee,Se,rt,wt)}var Oe=function(K){var ee=K.type;return ee===D.Mobile},$e=function(K){var ee=K.type;return ee===D.Tablet},De=function(K){var ee=K.type;return ee===D.Mobile||ee===D.Tablet},Xe=function(K){var ee=K.type;return ee===D.SmartTv},je=function(K){var ee=K.type;return ee===D.Browser},be=function(K){var ee=K.type;return ee===D.Wearable},Me=function(K){var ee=K.type;return ee===D.Console},Be=function(K){var ee=K.type;return ee===D.Embedded},Ke=function(K){var ee=K.vendor;return se(ee)},ke=function(K){var ee=K.model;return se(ee)},qe=function(K){var ee=K.type;return se(ee,"browser")},Qe=function(K){var ee=K.name;return ee===j.Android},at=function(K){var ee=K.name;return ee===j.Windows},ot=function(K){var ee=K.name;return ee===j.MAC_OS},ut=function(K){var ee=K.name;return ee===j.WindowsPhone},it=function(K){var ee=K.name;return ee===j.IOS},Ue=function(K){var ee=K.version;return se(ee)},we=function(K){var ee=K.name;return se(ee)},Te=function(K){var ee=K.name;return ee===G.Chrome},Ve=function(K){var ee=K.name;return ee===G.Firefox},Ie=function(K){var ee=K.name;return ee===G.Chromium},He=function(K){var ee=K.name;return ee===G.Edge},xe=function(K){var ee=K.name;return ee===G.Yandex},Re=function(K){var ee=K.name;return ee===G.Safari||ee===G.MobileSafari},nt=function(K){var ee=K.name;return ee===G.MobileSafari},bt=function(K){var ee=K.name;return ee===G.Opera},At=function(K){var ee=K.name;return ee===G.InternetExplorer||ee===G.Ie},xt=function(K){var ee=K.name;return ee===G.MIUI},qt=function(K){var ee=K.name;return ee===G.SamsungBrowser},Je=function(K){var ee=K.version;return se(ee)},vt=function(K){var ee=K.major;return se(ee)},St=function(K){var ee=K.name;return se(ee)},Dt=function(K){var ee=K.name;return se(ee)},Rr=function(K){var ee=K.version;return se(ee)},Pt=function(){var K=ce(),ee=K&&K.userAgent&&K.userAgent.toLowerCase();return typeof ee=="string"?/electron/.test(ee):!1},Et=function(K){return typeof K=="string"&&K.indexOf("Edg/")!==-1},Pr=function(){var K=ce();return K&&(/iPad|iPhone|iPod/.test(K.platform)||K.platform==="MacIntel"&&K.maxTouchPoints>1)&&!window.MSStream},gt=function(){return le("iPad")},Kt=function(){return le("iPhone")},Ir=function(){return le("iPod")},rr=function(K){return se(K)};function Sn(fe){var K=fe||b,ee=K.device,_e=K.browser,Se=K.os,rt=K.engine,wt=K.ua;return{isSmartTV:Xe(ee),isConsole:Me(ee),isWearable:be(ee),isEmbedded:Be(ee),isMobileSafari:nt(_e)||gt(),isChromium:Ie(_e),isMobile:De(ee)||gt(),isMobileOnly:Oe(ee),isTablet:$e(ee)||gt(),isBrowser:je(ee),isDesktop:je(ee),isAndroid:Qe(Se),isWinPhone:ut(Se),isIOS:it(Se)||gt(),isChrome:Te(_e),isFirefox:Ve(_e),isSafari:Re(_e),isOpera:bt(_e),isIE:At(_e),osVersion:Ue(Se),osName:we(Se),fullBrowserVersion:Je(_e),browserVersion:vt(_e),browserName:St(_e),mobileVendor:Ke(ee),mobileModel:ke(ee),engineName:Dt(rt),engineVersion:Rr(rt),getUA:rr(wt),isEdge:He(_e)||Et(wt),isYandex:xe(_e),deviceType:qe(ee),isIOS13:Pr(),isIPad13:gt(),isIPhone13:Kt(),isIPod13:Ir(),isElectron:Pt(),isEdgeChromium:Et(wt),isLegacyEdge:He(_e)&&!Et(wt),isWindows:at(Se),isMacOs:ot(Se),isMIUI:xt(_e),isSamsungBrowser:qt(_e)}}var wi=Xe(c),Ws=Me(c),Hs=be(c),la=Be(c),rn=nt(a)||gt(),qs=Ie(a),Hn=De(c)||gt(),Ks=Oe(c),as=$e(c)||gt(),ls=je(c),Ys=je(c),cs=Qe(d),Xs=ut(d),Qs=it(d)||gt(),It=Te(a),ca=Ve(a),us=Re(a),Js=bt(a),qn=At(a),ua=Ue(d),Zs=we(d),Ci=Je(a),_r=vt(a),fa=St(a),dr=Ke(c),da=ke(c),ha=Dt(u),pa=Rr(u),Ti=rr(p),Ai=He(a)||Et(p),Kn=xe(a),Ri=qe(c),ma=Pr(),ga=gt(),fs=Kt(),eo=Ir(),ds=Pt(),Yn=Et(p),va=He(a)&&!Et(p),hs=at(d),ht=ot(d),to=xt(a),ro=qt(a),ps=function(K){if(!K||typeof K!="string"){console.error("No valid user agent string was provided");return}var ee=g(K),_e=ee.device,Se=ee.browser,rt=ee.os,wt=ee.engine,Yt=ee.ua;return Sn({device:_e,browser:Se,os:rt,engine:wt,ua:Yt})},no=function(K){var ee=K.renderWithFragment,_e=K.children,Se=H(K,["renderWithFragment","children"]);return cs?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",Se,_e):null},io=function(K){var ee=K.renderWithFragment,_e=K.children,Se=H(K,["renderWithFragment","children"]);return ls?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",Se,_e):null},so=function(K){var ee=K.renderWithFragment,_e=K.children,Se=H(K,["renderWithFragment","children"]);return qn?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",Se,_e):null},ms=function(K){var ee=K.renderWithFragment,_e=K.children,Se=H(K,["renderWithFragment","children"]);return Qs?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",Se,_e):null},Pi=function(K){var ee=K.renderWithFragment,_e=K.children,Se=H(K,["renderWithFragment","children"]);return Hn?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",Se,_e):null},Ur=function(K){var ee=K.renderWithFragment,_e=K.children,Se=H(K,["renderWithFragment","children"]);return as?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",Se,_e):null},zr=function(K){var ee=K.renderWithFragment,_e=K.children,Se=H(K,["renderWithFragment","children"]);return Xs?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",Se,_e):null},Gr=function(K){var ee=K.renderWithFragment,_e=K.children;K.viewClassName,K.style;var Se=H(K,["renderWithFragment","children","viewClassName","style"]);return Ks?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",Se,_e):null},Xn=function(K){var ee=K.renderWithFragment,_e=K.children,Se=H(K,["renderWithFragment","children"]);return wi?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",Se,_e):null},Qn=function(K){var ee=K.renderWithFragment,_e=K.children,Se=H(K,["renderWithFragment","children"]);return Ws?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",Se,_e):null},Wr=function(K){var ee=K.renderWithFragment,_e=K.children,Se=H(K,["renderWithFragment","children"]);return Hs?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",Se,_e):null},ya=function(K){var ee=K.renderWithFragment,_e=K.children;K.viewClassName,K.style;var Se=K.condition,rt=H(K,["renderWithFragment","children","viewClassName","style","condition"]);return Se?ee?i.createElement(t.Fragment,null,_e):i.createElement("div",rt,_e):null};function oo(fe){return function(K){k(ee,K);function ee(_e){var Se;return E(this,ee),Se=Z(this,F(ee).call(this,_e)),Se.isEventListenerAdded=!1,Se.handleOrientationChange=Se.handleOrientationChange.bind(Y(Se)),Se.onOrientationChange=Se.onOrientationChange.bind(Y(Se)),Se.onPageLoad=Se.onPageLoad.bind(Y(Se)),Se.state={isLandscape:!1,isPortrait:!1},Se}return T(ee,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var Se=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:Se===0,isLandscape:Se===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":w(window))!==void 0&&Hn&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return i.createElement(fe,O({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),ee}(i.Component)}function Jn(){var fe=t.useState(function(){var rt=window.innerWidth>window.innerHeight?90:0;return{isPortrait:rt===0,isLandscape:rt===90,orientation:rt===0?"portrait":"landscape"}}),K=ie(fe,2),ee=K[0],_e=K[1],Se=t.useCallback(function(){var rt=window.innerWidth>window.innerHeight?90:0,wt={isPortrait:rt===0,isLandscape:rt===90,orientation:rt===0?"portrait":"landscape"};ee.orientation!==wt.orientation&&_e(wt)},[ee.orientation]);return t.useEffect(function(){return(typeof window>"u"?"undefined":w(window))!==void 0&&Hn&&(Se(),window.addEventListener("load",Se,!1),window.addEventListener("resize",Se,!1)),function(){window.removeEventListener("resize",Se,!1),window.removeEventListener("load",Se,!1)}},[Se]),ee}function ao(fe){var K=fe||window.navigator.userAgent;return g(K)}function lo(fe){var K=fe||window.navigator.userAgent,ee=ao(K),_e=Sn(ee);return[_e,ee]}return lib.AndroidView=no,lib.BrowserTypes=G,lib.BrowserView=io,lib.ConsoleView=Qn,lib.CustomView=ya,lib.IEView=so,lib.IOSView=ms,lib.MobileOnlyView=Gr,lib.MobileView=Pi,lib.OsTypes=j,lib.SmartTVView=Xn,lib.TabletView=Ur,lib.WearableView=Wr,lib.WinPhoneView=zr,lib.browserName=fa,lib.browserVersion=_r,lib.deviceDetect=me,lib.deviceType=Ri,lib.engineName=ha,lib.engineVersion=pa,lib.fullBrowserVersion=Ci,lib.getSelectorsByUserAgent=ps,lib.getUA=Ti,lib.isAndroid=cs,lib.isBrowser=ls,lib.isChrome=It,lib.isChromium=qs,lib.isConsole=Ws,lib.isDesktop=Ys,lib.isEdge=Ai,lib.isEdgeChromium=Yn,lib.isElectron=ds,lib.isEmbedded=la,lib.isFirefox=ca,lib.isIE=qn,lib.isIOS=Qs,lib.isIOS13=ma,lib.isIPad13=ga,lib.isIPhone13=fs,lib.isIPod13=eo,lib.isLegacyEdge=va,lib.isMIUI=to,lib.isMacOs=ht,lib.isMobile=Hn,lib.isMobileOnly=Ks,lib.isMobileSafari=rn,lib.isOpera=Js,lib.isSafari=us,lib.isSamsungBrowser=ro,lib.isSmartTV=wi,lib.isTablet=as,lib.isWearable=Hs,lib.isWinPhone=Xs,lib.isWindows=hs,lib.isYandex=Kn,lib.mobileModel=da,lib.mobileVendor=dr,lib.osName=Zs,lib.osVersion=ua,lib.parseUserAgent=g,lib.setUserAgent=re,lib.useDeviceData=ao,lib.useDeviceSelectors=lo,lib.useMobileOrientation=Jn,lib.withOrientationChange=oo,lib}var libExports=requireLib(),dist={},ga4={},gtag={},hasRequiredGtag;function requireGtag(){return hasRequiredGtag||(hasRequiredGtag=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];if(typeof window<"u"){var c;typeof window.gtag>"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(c=window).gtag.apply(c,a)}},i=t;e.default=i}(gtag)),gtag}var format={},hasRequiredFormat;function requireFormat(){return hasRequiredFormat||(hasRequiredFormat=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function i(c){return c.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(u,d,p){return d>0&&d+u.length!==p.length&&u.search(t)>-1&&p.charAt(d-2)!==":"&&(p.charAt(d+u.length)!=="-"||p.charAt(d-1)==="-")&&p.charAt(d-1).search(/[^\s-]/)<0?u.toLowerCase():u.substr(1).search(/[A-Z]|\../)>-1?u:u.charAt(0).toUpperCase()+u.substr(1)})}function s(c){return typeof c=="string"&&c.indexOf("@")!==-1}var o="REDACTED (Potential Email Address)";function a(c){return s(c)?(console.warn("This arg looks like an email address, redacting."),o):c}function l(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,p=c||"";return u&&(p=i(c)),d&&(p=a(p)),p}}(format)),format}var hasRequiredGa4;function requireGa4(){return hasRequiredGa4||(hasRequiredGa4=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=l(requireGtag()),i=l(requireFormat()),s=["eventCategory","eventAction","eventLabel","eventValue","hitType"],o=["title","location"],a=["page","hitType"];function l(q){return q&&q.__esModule?q:{default:q}}function c(q,z){if(q==null)return{};var $=u(q,z),B,M;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(q);for(M=0;M<D.length;M++)B=D[M],!(z.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(q,B)&&($[B]=q[B])}return $}function u(q,z){if(q==null)return{};var $={},B=Object.keys(q),M,D;for(D=0;D<B.length;D++)M=B[D],!(z.indexOf(M)>=0)&&($[M]=q[M]);return $}function d(q){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},d(q)}function p(q){return b(q)||g(q)||A(q)||m()}function m(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
192
192
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(q){if(typeof Symbol<"u"&&q[Symbol.iterator]!=null||q["@@iterator"]!=null)return Array.from(q)}function b(q){if(Array.isArray(q))return T(q)}function y(q,z){var $=Object.keys(q);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(q);z&&(B=B.filter(function(M){return Object.getOwnPropertyDescriptor(q,M).enumerable})),$.push.apply($,B)}return $}function S(q){for(var z=1;z<arguments.length;z++){var $=arguments[z]!=null?arguments[z]:{};z%2?y(Object($),!0).forEach(function(B){U(q,B,$[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors($)):y(Object($)).forEach(function(B){Object.defineProperty(q,B,Object.getOwnPropertyDescriptor($,B))})}return q}function w(q,z){return O(q)||P(q,z)||A(q,z)||E()}function E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
193
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(q,z){if(q){if(typeof q=="string")return T(q,z);var $=Object.prototype.toString.call(q).slice(8,-1);if($==="Object"&&q.constructor&&($=q.constructor.name),$==="Map"||$==="Set")return Array.from(q);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return T(q,z)}}function T(q,z){(z==null||z>q.length)&&(z=q.length);for(var $=0,B=new Array(z);$<z;$++)B[$]=q[$];return B}function P(q,z){var $=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if($!=null){var B,M,D,G,j=[],W=!0,J=!1;try{if(D=($=$.call(q)).next,z!==0)for(;!(W=(B=D.call($)).done)&&(j.push(B.value),j.length!==z);W=!0);}catch(re){J=!0,M=re}finally{try{if(!W&&$.return!=null&&(G=$.return(),Object(G)!==G))return}finally{if(J)throw M}}return j}}function O(q){if(Array.isArray(q))return q}function k(q,z){if(!(q instanceof z))throw new TypeError("Cannot call a class as a function")}function F(q,z){for(var $=0;$<z.length;$++){var B=z[$];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(q,H(B.key),B)}}function N(q,z,$){return F(q.prototype,z),Object.defineProperty(q,"prototype",{writable:!1}),q}function U(q,z,$){return z=H(z),z in q?Object.defineProperty(q,z,{value:$,enumerable:!0,configurable:!0,writable:!0}):q[z]=$,q}function H(q){var z=Y(q,"string");return d(z)==="symbol"?z:String(z)}function Y(q,z){if(d(q)!=="object"||q===null)return q;var $=q[Symbol.toPrimitive];if($!==void 0){var B=$.call(q,z||"default");if(d(B)!=="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)(q)}var Z=function(){function q(){var z=this;k(this,q),U(this,"reset",function(){z.isInitialized=!1,z._testMode=!1,z._currentMeasurementId,z._hasLoadedGA=!1,z._isQueuing=!1,z._queueGtag=[]}),U(this,"_gtag",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];z._testMode||z._isQueuing?z._queueGtag.push(B):t.default.apply(void 0,B)}),U(this,"_loadGA",function($,B){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!z._hasLoadedGA){var D=document.createElement("script");D.async=!0,D.src="".concat(M,"?id=").concat($),B&&D.setAttribute("nonce",B),document.body.appendChild(D),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},z._hasLoadedGA=!0}}),U(this,"_toGtagOptions",function($){if($){var B={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},M=Object.entries($).reduce(function(D,G){var j=w(G,2),W=j[0],J=j[1];return B[W]?D[B[W]]=J:D[W]=J,D},{});return M}}),U(this,"initialize",function($){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!$)throw new Error("Require GA_MEASUREMENT_ID");var M=typeof $=="string"?[{trackingId:$}]:$;z._currentMeasurementId=M[0].trackingId;var D=B.gaOptions,G=B.gtagOptions,j=B.nonce,W=B.testMode,J=W===void 0?!1:W,re=B.gtagUrl;if(z._testMode=J,J||z._loadGA(z._currentMeasurementId,j,re),z.isInitialized||(z._gtag("js",new Date),M.forEach(function(le){var Q=S(S(S({},z._toGtagOptions(S(S({},D),le.gaOptions))),G),le.gtagOptions);Object.keys(Q).length?z._gtag("config",le.trackingId,Q):z._gtag("config",le.trackingId)})),z.isInitialized=!0,!J){var se=p(z._queueGtag);for(z._queueGtag=[],z._isQueuing=!1;se.length;){var ce=se.shift();z._gtag.apply(z,p(ce)),ce[0]==="get"&&(z._isQueuing=!0)}}}),U(this,"set",function($){if(!$){console.warn("`fieldsObject` is required in .set()");return}if(d($)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys($).length===0&&console.warn("empty `fieldsObject` given to .set()"),z._gaCommand("set",$)}),U(this,"_gaCommandSendEvent",function($,B,M,D,G){z._gtag("event",B,S(S({event_category:$,event_label:M,value:D},G&&{non_interaction:G.nonInteraction}),z._toGtagOptions(G)))}),U(this,"_gaCommandSendEventParameters",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];if(typeof B[0]=="string")z._gaCommandSendEvent.apply(z,p(B.slice(1)));else{var D=B[0],G=D.eventCategory,j=D.eventAction,W=D.eventLabel,J=D.eventValue;D.hitType;var re=c(D,s);z._gaCommandSendEvent(G,j,W,J,re)}}),U(this,"_gaCommandSendTiming",function($,B,M,D){z._gtag("event","timing_complete",{name:B,value:M,event_category:$,event_label:D})}),U(this,"_gaCommandSendPageview",function($,B){if(B&&Object.keys(B).length){var M=z._toGtagOptions(B),D=M.title,G=M.location,j=c(M,o);z._gtag("event","page_view",S(S(S(S({},$&&{page_path:$}),D&&{page_title:D}),G&&{page_location:G}),j))}else $?z._gtag("event","page_view",{page_path:$}):z._gtag("event","page_view")}),U(this,"_gaCommandSendPageviewParameters",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];if(typeof B[0]=="string")z._gaCommandSendPageview.apply(z,p(B.slice(1)));else{var D=B[0],G=D.page;D.hitType;var j=c(D,a);z._gaCommandSendPageview(G,j)}}),U(this,"_gaCommandSend",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];var D=typeof B[0]=="string"?B[0]:B[0].hitType;switch(D){case"event":z._gaCommandSendEventParameters.apply(z,B);break;case"pageview":z._gaCommandSendPageviewParameters.apply(z,B);break;case"timing":z._gaCommandSendTiming.apply(z,p(B.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(D));break;default:console.warn("Send command doesn't exist: ".concat(D))}}),U(this,"_gaCommandSet",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];typeof B[0]=="string"&&(B[0]=U({},B[0],B[1])),z._gtag("set",z._toGtagOptions(B[0]))}),U(this,"_gaCommand",function($){for(var B=arguments.length,M=new Array(B>1?B-1:0),D=1;D<B;D++)M[D-1]=arguments[D];switch($){case"send":z._gaCommandSend.apply(z,M);break;case"set":z._gaCommandSet.apply(z,M);break;default:console.warn("Command doesn't exist: ".concat($))}}),U(this,"ga",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];if(typeof B[0]=="string")z._gaCommand.apply(z,B);else{var D=B[0];z._gtag("get",z._currentMeasurementId,"client_id",function(G){z._isQueuing=!1;var j=z._queueGtag;for(D({get:function(re){return re==="clientId"?G:re==="trackingId"?z._currentMeasurementId:re==="apiVersion"?"1":void 0}});j.length;){var W=j.shift();z._gtag.apply(z,p(W))}}),z._isQueuing=!0}return z.ga}),U(this,"event",function($,B){if(typeof $=="string")z._gtag("event",$,z._toGtagOptions(B));else{var M=$.action,D=$.category,G=$.label,j=$.value,W=$.nonInteraction,J=$.transport;if(!D||!M){console.warn("args.category AND args.action are required in event()");return}var re={hitType:"event",eventCategory:(0,i.default)(D),eventAction:(0,i.default)(M)};G&&(re.eventLabel=(0,i.default)(G)),typeof j<"u"&&(typeof j!="number"?console.warn("Expected `args.value` arg to be a Number."):re.eventValue=j),typeof W<"u"&&(typeof W!="boolean"?console.warn("`args.nonInteraction` must be a boolean."):re.nonInteraction=W),typeof J<"u"&&(typeof J!="string"?console.warn("`args.transport` must be a string."):(["beacon","xhr","image"].indexOf(J)===-1&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),re.transport=J)),z._gaCommand("send",re)}}),U(this,"send",function($){z._gaCommand("send",$)}),this.reset()}return N(q,[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}]),q}();e.GA4=Z;var ie=new Z;e.default=ie}(ga4)),ga4}var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(e){function t(c){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},t(c)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ReactGAImplementation=void 0;var i=o(requireGa4());function s(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(s=function(m){return m?d:u})(c)}function o(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!=="object"&&typeof c!="function")return{default:c};var d=s(u);if(d&&d.has(c))return d.get(c);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&Object.prototype.hasOwnProperty.call(c,g)){var b=m?Object.getOwnPropertyDescriptor(c,g):null;b&&(b.get||b.set)?Object.defineProperty(p,g,b):p[g]=c[g]}return p.default=c,d&&d.set(c,p),p}var a=i.GA4;e.ReactGAImplementation=a;var l=i.default;e.default=l}(dist)),dist}var distExports=requireDist();const ReactGA=getDefaultExportFromCjs$3(distExports),isString=e=>typeof e=="string",defer=()=>{let e,t;const i=new Promise((s,o)=>{e=s,t=o});return i.resolve=e,i.reject=t,i},makeString=e=>e==null?"":""+e,copy=(e,t,i)=>{e.forEach(s=>{t[s]&&(i[s]=t[s])})},lastOfPathSeparatorRegExp=/###/g,cleanKey=e=>e&&e.indexOf("###")>-1?e.replace(lastOfPathSeparatorRegExp,"."):e,canNotTraverseDeeper=e=>!e||isString(e),getLastOfPath=(e,t,i)=>{const s=isString(t)?t.split("."):t;let o=0;for(;o<s.length-1;){if(canNotTraverseDeeper(e))return{};const a=cleanKey(s[o]);!e[a]&&i&&(e[a]=new i),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return canNotTraverseDeeper(e)?{}:{obj:e,k:cleanKey(s[o])}},setPath=(e,t,i)=>{const{obj:s,k:o}=getLastOfPath(e,t,Object);if(s!==void 0||t.length===1){s[o]=i;return}let a=t[t.length-1],l=t.slice(0,t.length-1),c=getLastOfPath(e,l,Object);for(;c.obj===void 0&&l.length;)a=`${l[l.length-1]}.${a}`,l=l.slice(0,l.length-1),c=getLastOfPath(e,l,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${a}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${a}`]=i},pushPath=(e,t,i,s)=>{const{obj:o,k:a}=getLastOfPath(e,t,Object);o[a]=o[a]||[],o[a].push(i)},getPath=(e,t)=>{const{obj:i,k:s}=getLastOfPath(e,t);if(i&&Object.prototype.hasOwnProperty.call(i,s))return i[s]},getPathWithDefaults=(e,t,i)=>{const s=getPath(e,i);return s!==void 0?s:getPath(t,i)},deepExtend=(e,t,i)=>{for(const s in t)s!=="__proto__"&&s!=="constructor"&&(s in e?isString(e[s])||e[s]instanceof String||isString(t[s])||t[s]instanceof String?i&&(e[s]=t[s]):deepExtend(e[s],t[s],i):e[s]=t[s]);return e},regexEscape=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const escape=e=>isString(e)?e.replace(/[&<>"'\/]/g,t=>_entityMap[t]):e;class RegExpCache{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const i=this.regExpMap.get(t);if(i!==void 0)return i;const s=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,s),this.regExpQueue.push(t),s}}const chars=[" ",",","?","!",";"],looksLikeObjectPathRegExpCache=new RegExpCache(20),looksLikeObjectPath=(e,t,i)=>{t=t||"",i=i||"";const s=chars.filter(l=>t.indexOf(l)<0&&i.indexOf(l)<0);if(s.length===0)return!0;const o=looksLikeObjectPathRegExpCache.getRegExp(`(${s.map(l=>l==="?"?"\\?":l).join("|")})`);let a=!o.test(e);if(!a){const l=e.indexOf(i);l>0&&!o.test(e.substring(0,l))&&(a=!0)}return a},deepFind=(e,t,i=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const s=t.split(i);let o=e;for(let a=0;a<s.length;){if(!o||typeof o!="object")return;let l,c="";for(let u=a;u<s.length;++u)if(u!==a&&(c+=i),c+=s[u],l=o[c],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&u<s.length-1)continue;a+=u-a+1;break}o=l}return o},getCleanedCode=e=>e==null?void 0:e.replace("_","-"),consoleLogger={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var i,s;(s=(i=console==null?void 0:console[e])==null?void 0:i.apply)==null||s.call(i,console,t)}};class Logger{constructor(t,i={}){this.init(t,i)}init(t,i={}){this.prefix=i.prefix||"i18next:",this.logger=t||consoleLogger,this.options=i,this.debug=i.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,i,s,o){return o&&!this.debug?null:(isString(t[0])&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[i](t))}create(t){return new Logger(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Logger(this.logger,t)}}var baseLogger=new Logger;class EventEmitter{constructor(){this.observers={}}on(t,i){return t.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const o=this.observers[s].get(i)||0;this.observers[s].set(i,o+1)}),this}off(t,i){if(this.observers[t]){if(!i){delete this.observers[t];return}this.observers[t].delete(i)}}emit(t,...i){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,a])=>{for(let l=0;l<a;l++)o(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,a])=>{for(let l=0;l<a;l++)o.apply(o,[t,...i])})}}class ResourceStore extends EventEmitter{constructor(t,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const i=this.options.ns.indexOf(t);i>-1&&this.options.ns.splice(i,1)}getResource(t,i,s,o={}){var d,p;const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,i],s&&(Array.isArray(s)?c.push(...s):isString(s)&&a?c.push(...s.split(a)):c.push(s)));const u=getPath(this.data,c);return!u&&!i&&!s&&t.indexOf(".")>-1&&(t=c[0],i=c[1],s=c.slice(2).join(".")),u||!l||!isString(s)?u:deepFind((p=(d=this.data)==null?void 0:d[t])==null?void 0:p[i],s,a)}addResource(t,i,s,o,a={silent:!1}){const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let c=[t,i];s&&(c=c.concat(l?s.split(l):s)),t.indexOf(".")>-1&&(c=t.split("."),o=i,i=c[1]),this.addNamespaces(i),setPath(this.data,c,o),a.silent||this.emit("added",t,i,s,o)}addResources(t,i,s,o={silent:!1}){for(const a in s)(isString(s[a])||Array.isArray(s[a]))&&this.addResource(t,i,a,s[a],{silent:!0});o.silent||this.emit("added",t,i,s)}addResourceBundle(t,i,s,o,a,l={silent:!1,skipCopy:!1}){let c=[t,i];t.indexOf(".")>-1&&(c=t.split("."),o=s,s=i,i=c[1]),this.addNamespaces(i);let u=getPath(this.data,c)||{};l.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?deepExtend(u,s,a):u={...u,...s},setPath(this.data,c,u),l.silent||this.emit("added",t,i,s)}removeResourceBundle(t,i){this.hasResourceBundle(t,i)&&delete this.data[t][i],this.removeNamespaces(i),this.emit("removed",t,i)}hasResourceBundle(t,i){return this.getResource(t,i)!==void 0}getResourceBundle(t,i){return i||(i=this.options.defaultNS),this.getResource(t,i)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const i=this.getDataByLanguage(t);return!!(i&&Object.keys(i)||[]).find(o=>i[o]&&Object.keys(i[o]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,s,o){return e.forEach(a=>{var l;t=((l=this.processors[a])==null?void 0:l.process(t,i,s,o))??t}),t}};const PATH_KEY=Symbol("i18next/PATH_KEY");function createProxy(){const e=[],t=Object.create(null);let i;return t.get=(s,o)=>{var a;return(a=i==null?void 0:i.revoke)==null||a.call(i),o===PATH_KEY?e:(e.push(o),i=Proxy.revocable(s,t),i.proxy)},Proxy.revocable(Object.create(null),t).proxy}function keysFromSelector(e,t){const{[PATH_KEY]:i}=e(createProxy());return i.join((t==null?void 0:t.keySeparator)??".")}const checkedLoadedFor={},shouldHandleAsObject=e=>!isString(e)&&typeof e!="boolean"&&typeof e!="number";class Translator extends EventEmitter{constructor(t,i={}){super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,i={interpolation:{}}){const s={...i};if(t==null)return!1;const o=this.resolve(t,s);return(o==null?void 0:o.res)!==void 0}extractFromKey(t,i){let s=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=i.ns||this.options.defaultNS||[];const l=s&&t.indexOf(s)>-1,c=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!looksLikeObjectPath(t,s,o);if(l&&!c){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:isString(a)?[a]:a};const d=t.split(s);(s!==o||s===o&&this.options.ns.indexOf(d[0])>-1)&&(a=d.shift()),t=d.join(o)}return{key:t,namespaces:isString(a)?[a]:a}}translate(t,i,s){let o=typeof i=="object"?{...i}:i;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=keysFromSelector(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);const a=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:c,namespaces:u}=this.extractFromKey(t[t.length-1],o),d=u[u.length-1];let p=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;p===void 0&&(p=":");const m=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((m==null?void 0:m.toLowerCase())==="cimode")return g?a?{res:`${d}${p}${c}`,usedKey:c,exactUsedKey:c,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${p}${c}`:a?{res:c,usedKey:c,exactUsedKey:c,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:c;const b=this.resolve(t,o);let y=b==null?void 0:b.res;const S=(b==null?void 0:b.usedKey)||c,w=(b==null?void 0:b.exactUsedKey)||c,E=["[object Number]","[object Function]","[object RegExp]"],A=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,P=o.count!==void 0&&!isString(o.count),O=Translator.hasDefaultValue(o),k=P?this.pluralResolver.getSuffix(m,o.count,o):"",F=o.ordinal&&P?this.pluralResolver.getSuffix(m,o.count,{ordinal:!1}):"",N=P&&!o.ordinal&&o.count===0,U=N&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${k}`]||o[`defaultValue${F}`]||o.defaultValue;let H=y;T&&!y&&O&&(H=U);const Y=shouldHandleAsObject(H),Z=Object.prototype.toString.apply(H);if(T&&H&&Y&&E.indexOf(Z)<0&&!(isString(A)&&Array.isArray(H))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ie=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,H,{...o,ns:u}):`key '${c} (${this.language})' returned an object instead of string.`;return a?(b.res=ie,b.usedParams=this.getUsedParamsDetails(o),b):ie}if(l){const ie=Array.isArray(H),q=ie?[]:{},z=ie?w:S;for(const $ in H)if(Object.prototype.hasOwnProperty.call(H,$)){const B=`${z}${l}${$}`;O&&!y?q[$]=this.translate(B,{...o,defaultValue:shouldHandleAsObject(U)?U[$]:void 0,joinArrays:!1,ns:u}):q[$]=this.translate(B,{...o,joinArrays:!1,ns:u}),q[$]===B&&(q[$]=H[$])}y=q}}else if(T&&isString(A)&&Array.isArray(y))y=y.join(A),y&&(y=this.extendTranslation(y,t,o,s));else{let ie=!1,q=!1;!this.isValidLookup(y)&&O&&(ie=!0,y=U),this.isValidLookup(y)||(q=!0,y=c);const $=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&q?void 0:y,B=O&&U!==y&&this.options.updateMissing;if(q||ie||B){if(this.logger.log(B?"updateKey":"missingKey",m,d,c,B?U:y),l){const j=this.resolve(c,{...o,keySeparator:!1});j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let M=[];const D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&D&&D[0])for(let j=0;j<D.length;j++)M.push(D[j]);else this.options.saveMissingTo==="all"?M=this.languageUtils.toResolveHierarchy(o.lng||this.language):M.push(o.lng||this.language);const G=(j,W,J)=>{var se;const re=O&&J!==y?J:$;this.options.missingKeyHandler?this.options.missingKeyHandler(j,d,W,re,B,o):(se=this.backendConnector)!=null&&se.saveMissing&&this.backendConnector.saveMissing(j,d,W,re,B,o),this.emit("missingKey",j,d,W,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?M.forEach(j=>{const W=this.pluralResolver.getSuffixes(j,o);N&&o[`defaultValue${this.options.pluralSeparator}zero`]&&W.indexOf(`${this.options.pluralSeparator}zero`)<0&&W.push(`${this.options.pluralSeparator}zero`),W.forEach(J=>{G([j],c+J,o[`defaultValue${J}`]||U)})}):G(M,c,U))}y=this.extendTranslation(y,t,o,b,s),q&&y===c&&this.options.appendNamespaceToMissingKey&&(y=`${d}${p}${c}`),(q||ie)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${p}${c}`:c,ie?y:void 0,o))}return a?(b.res=y,b.usedParams=this.getUsedParamsDetails(o),b):y}extendTranslation(t,i,s,o,a){var u,d;if((u=this.i18nFormat)!=null&&u.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const p=isString(t)&&(((d=s==null?void 0:s.interpolation)==null?void 0:d.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(p){const b=t.match(this.interpolator.nestingRegexp);m=b&&b.length}let g=s.replace&&!isString(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),t=this.interpolator.interpolate(t,g,s.lng||this.language||o.usedLng,s),p){const b=t.match(this.interpolator.nestingRegexp),y=b&&b.length;m<y&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,(...b)=>(a==null?void 0:a[0])===b[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${i[0]}`),null):this.translate(...b,i),s)),s.interpolation&&this.interpolator.reset()}const l=s.postProcess||this.options.postProcess,c=isString(l)?[l]:l;return t!=null&&(c!=null&&c.length)&&s.applyPostProcessor!==!1&&(t=postProcessor.handle(c,t,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t,i={}){let s,o,a,l,c;return isString(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(s))return;const d=this.extractFromKey(u,i),p=d.key;o=p;let m=d.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=i.count!==void 0&&!isString(i.count),b=g&&!i.ordinal&&i.count===0,y=i.context!==void 0&&(isString(i.context)||typeof i.context=="number")&&i.context!=="",S=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);m.forEach(w=>{var E,A;this.isValidLookup(s)||(c=w,!checkedLoadedFor[`${S[0]}-${w}`]&&((E=this.utils)!=null&&E.hasLoadedNamespace)&&!((A=this.utils)!=null&&A.hasLoadedNamespace(c))&&(checkedLoadedFor[`${S[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${S.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(T=>{var k;if(this.isValidLookup(s))return;l=T;const P=[p];if((k=this.i18nFormat)!=null&&k.addLookupKeys)this.i18nFormat.addLookupKeys(P,p,T,w,i);else{let F;g&&(F=this.pluralResolver.getSuffix(T,i.count,i));const N=`${this.options.pluralSeparator}zero`,U=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(i.ordinal&&F.indexOf(U)===0&&P.push(p+F.replace(U,this.options.pluralSeparator)),P.push(p+F),b&&P.push(p+N)),y){const H=`${p}${this.options.contextSeparator||"_"}${i.context}`;P.push(H),g&&(i.ordinal&&F.indexOf(U)===0&&P.push(H+F.replace(U,this.options.pluralSeparator)),P.push(H+F),b&&P.push(H+N))}}let O;for(;O=P.pop();)this.isValidLookup(s)||(a=O,s=this.getResource(T,w,O,i))}))})}),{res:s,usedKey:o,exactUsedKey:a,usedLng:l,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,i,s,o={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,i,s,o):this.resourceStore.getResource(t,i,s,o)}getUsedParamsDetails(t={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&!isString(t.replace);let o=s?t.replace:t;if(s&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const a of i)delete o[a]}return o}static hasDefaultValue(t){const i="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&i===s.substring(0,i.length)&&t[s]!==void 0)return!0;return!1}}class LanguageUtil{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(t){if(t=getCleanedCode(t),!t||t.indexOf("-")<0)return null;const i=t.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(t){if(t=getCleanedCode(t),!t||t.indexOf("-")<0)return t;const i=t.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(t){if(isString(t)&&t.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(t)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let i;return t.forEach(s=>{if(i)return;const o=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(o))&&(i=o)}),!i&&this.options.supportedLngs&&t.forEach(s=>{if(i)return;const o=this.getScriptPartFromCode(s);if(this.isSupportedCode(o))return i=o;const a=this.getLanguagePartFromCode(s);if(this.isSupportedCode(a))return i=a;i=this.options.supportedLngs.find(l=>{if(l===a)return l;if(!(l.indexOf("-")<0&&a.indexOf("-")<0)&&(l.indexOf("-")>0&&a.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===a||l.indexOf(a)===0&&a.length>1))return l})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(t,i){if(!t)return[];if(typeof t=="function"&&(t=t(i)),isString(t)&&(t=[t]),Array.isArray(t))return t;if(!i)return t.default||[];let s=t[i];return s||(s=t[this.getScriptPartFromCode(i)]),s||(s=t[this.formatLanguageCode(i)]),s||(s=t[this.getLanguagePartFromCode(i)]),s||(s=t.default),s||[]}toResolveHierarchy(t,i){const s=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],t),o=[],a=l=>{l&&(this.isSupportedCode(l)?o.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return isString(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):isString(t)&&a(this.formatLanguageCode(t)),s.forEach(l=>{o.indexOf(l)<0&&a(this.formatLanguageCode(l))}),o}}const suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5},dummyRule={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class PluralResolver{constructor(t,i={}){this.languageUtils=t,this.options=i,this.logger=baseLogger.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,i){this.rules[t]=i}clearCache(){this.pluralRulesCache={}}getRule(t,i={}){const s=getCleanedCode(t==="dev"?"en":t),o=i.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:s,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let l;try{l=new Intl.PluralRules(s,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),dummyRule;if(!t.match(/-|_/))return dummyRule;const u=this.languageUtils.getLanguagePartFromCode(t);l=this.getRule(u,i)}return this.pluralRulesCache[a]=l,l}needsPlural(t,i={}){let s=this.getRule(t,i);return s||(s=this.getRule("dev",i)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,i,s={}){return this.getSuffixes(t,s).map(o=>`${i}${o}`)}getSuffixes(t,i={}){let s=this.getRule(t,i);return s||(s=this.getRule("dev",i)),s?s.resolvedOptions().pluralCategories.sort((o,a)=>suffixesOrder[o]-suffixesOrder[a]).map(o=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,i,s={}){const o=this.getRule(t,s);return o?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${o.select(i)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",i,s))}}const deepFindWithDefaults=(e,t,i,s=".",o=!0)=>{let a=getPathWithDefaults(e,t,i);return!a&&o&&isString(i)&&(a=deepFind(e,i,s),a===void 0&&(a=deepFind(t,i,s))),a},regexSafe=e=>e.replace(/\$/g,"$$$$");class Interpolator{constructor(t={}){var i;this.logger=baseLogger.create("interpolator"),this.options=t,this.format=((i=t==null?void 0:t.interpolation)==null?void 0:i.format)||(s=>s),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:i,escapeValue:s,useRawValueToEscape:o,prefix:a,prefixEscaped:l,suffix:c,suffixEscaped:u,formatSeparator:d,unescapeSuffix:p,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:S,nestingOptionsSeparator:w,maxReplaces:E,alwaysFormat:A}=t.interpolation;this.escape=i!==void 0?i:escape,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?regexEscape(a):l||"{{",this.suffix=c?regexEscape(c):u||"}}",this.formatSeparator=d||",",this.unescapePrefix=p?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=g?regexEscape(g):b||regexEscape("$t("),this.nestingSuffix=y?regexEscape(y):S||regexEscape(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=E||1e3,this.alwaysFormat=A!==void 0?A:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(i,s)=>(i==null?void 0:i.source)===s?(i.lastIndex=0,i):new RegExp(s,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,i,s,o){var b;let a,l,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=y=>{if(y.indexOf(this.formatSeparator)<0){const A=deepFindWithDefaults(i,u,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(A,void 0,s,{...o,...i,interpolationkey:y}):A}const S=y.split(this.formatSeparator),w=S.shift().trim(),E=S.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(i,u,w,this.options.keySeparator,this.options.ignoreJSONStructure),E,s,{...o,...i,interpolationkey:w})};this.resetRegExp();const p=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((b=o==null?void 0:o.interpolation)==null?void 0:b.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>regexSafe(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?regexSafe(this.escape(y)):regexSafe(y)}].forEach(y=>{for(c=0;a=y.regex.exec(t);){const S=a[1].trim();if(l=d(S),l===void 0)if(typeof p=="function"){const E=p(t,a,o);l=isString(E)?E:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))l="";else if(m){l=a[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),l="";else!isString(l)&&!this.useRawValueToEscape&&(l=makeString(l));const w=y.safeValue(l);if(t=t.replace(a[0],w),m?(y.regex.lastIndex+=l.length,y.regex.lastIndex-=a[0].length):y.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,i,s={}){let o,a,l;const c=(u,d)=>{const p=this.nestingOptionsSeparator;if(u.indexOf(p)<0)return u;const m=u.split(new RegExp(`${p}[ ]*{`));let g=`{${m[1]}`;u=m[0],g=this.interpolate(g,l);const b=g.match(/'/g),y=g.match(/"/g);(((b==null?void 0:b.length)??0)%2===0&&!y||y.length%2!==0)&&(g=g.replace(/'/g,'"'));try{l=JSON.parse(g),d&&(l={...d,...l})}catch(S){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,S),`${u}${p}${g}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,u};for(;o=this.nestingRegexp.exec(t);){let u=[];l={...s},l=l.replace&&!isString(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;const d=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(d!==-1&&(u=o[1].slice(d).split(this.formatSeparator).map(p=>p.trim()).filter(Boolean),o[1]=o[1].slice(0,d)),a=i(c.call(this,o[1].trim(),l),l),a&&o[0]===t&&!isString(a))return a;isString(a)||(a=makeString(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u.length&&(a=u.reduce((p,m)=>this.format(p,m,s.lng,{...s,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}const parseFormatStr=e=>{let t=e.toLowerCase().trim();const i={};if(e.indexOf("(")>-1){const s=e.split("(");t=s[0].toLowerCase().trim();const o=s[1].substring(0,s[1].length-1);t==="currency"&&o.indexOf(":")<0?i.currency||(i.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?i.range||(i.range=o.trim()):o.split(";").forEach(l=>{if(l){const[c,...u]=l.split(":"),d=u.join(":").trim().replace(/^'+|'+$/g,""),p=c.trim();i[p]||(i[p]=d),d==="false"&&(i[p]=!1),d==="true"&&(i[p]=!0),isNaN(d)||(i[p]=parseInt(d,10))}})}return{formatName:t,formatOptions:i}},createCachedFormatter=e=>{const t={};return(i,s,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});const l=s+JSON.stringify(a);let c=t[l];return c||(c=e(getCleanedCode(s),o),t[l]=c),c(i)}},createNonCachedFormatter=e=>(t,i,s)=>e(getCleanedCode(i),s)(t);class Formatter{constructor(t={}){this.logger=baseLogger.create("formatter"),this.options=t,this.init(t)}init(t,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";const s=i.cacheInBuiltFormats?createCachedFormatter:createNonCachedFormatter;this.formats={number:s((o,a)=>{const l=new Intl.NumberFormat(o,{...a});return c=>l.format(c)}),currency:s((o,a)=>{const l=new Intl.NumberFormat(o,{...a,style:"currency"});return c=>l.format(c)}),datetime:s((o,a)=>{const l=new Intl.DateTimeFormat(o,{...a});return c=>l.format(c)}),relativetime:s((o,a)=>{const l=new Intl.RelativeTimeFormat(o,{...a});return c=>l.format(c,a.range||"day")}),list:s((o,a)=>{const l=new Intl.ListFormat(o,{...a});return c=>l.format(c)})}}add(t,i){this.formats[t.toLowerCase().trim()]=i}addCached(t,i){this.formats[t.toLowerCase().trim()]=createCachedFormatter(i)}format(t,i,s,o={}){const a=i.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(c=>c.indexOf(")")>-1)){const c=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,c)].join(this.formatSeparator)}return a.reduce((c,u)=>{var m;const{formatName:d,formatOptions:p}=parseFormatStr(u);if(this.formats[d]){let g=c;try{const b=((m=o==null?void 0:o.formatParams)==null?void 0:m[o.interpolationkey])||{},y=b.locale||b.lng||o.locale||o.lng||s;g=this.formats[d](c,y,{...p,...o,...b})}catch(b){this.logger.warn(b)}return g}else this.logger.warn(`there was no format function for ${d}`);return c},t)}}const removePending=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Connector extends EventEmitter{constructor(t,i,s,o={}){var a,l;super(),this.backend=t,this.store=i,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(l=(a=this.backend)==null?void 0:a.init)==null||l.call(a,s,o.backend,o)}queueLoad(t,i,s,o){const a={},l={},c={},u={};return t.forEach(d=>{let p=!0;i.forEach(m=>{const g=`${d}|${m}`;!s.reload&&this.store.hasResourceBundle(d,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?l[g]===void 0&&(l[g]=!0):(this.state[g]=1,p=!1,l[g]===void 0&&(l[g]=!0),a[g]===void 0&&(a[g]=!0),u[m]===void 0&&(u[m]=!0)))}),p||(c[d]=!0)}),(Object.keys(a).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(l),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(t,i,s){const o=t.split("|"),a=o[0],l=o[1];i&&this.emit("failedLoading",a,l,i),!i&&s&&this.store.addResourceBundle(a,l,s,void 0,void 0,{skipCopy:!0}),this.state[t]=i?-1:2,i&&s&&(this.state[t]=0);const c={};this.queue.forEach(u=>{pushPath(u.loaded,[a],l),removePending(u,t),i&&u.errors.push(i),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(d=>{c[d]||(c[d]={});const p=u.loaded[d];p.length&&p.forEach(m=>{c[d][m]===void 0&&(c[d][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(t,i,s,o=0,a=this.retryTimeout,l){if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:i,fcName:s,tried:o,wait:a,callback:l});return}this.readingCalls++;const c=(d,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(d&&p&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,i,s,o+1,a*2,l)},a);return}l(d,p)},u=this.backend[s].bind(this.backend);if(u.length===2){try{const d=u(t,i);d&&typeof d.then=="function"?d.then(p=>c(null,p)).catch(c):c(null,d)}catch(d){c(d)}return}return u(t,i,c)}prepareLoading(t,i,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();isString(t)&&(t=this.languageUtils.toResolveHierarchy(t)),isString(i)&&(i=[i]);const a=this.queueLoad(t,i,s,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(l=>{this.loadOne(l)})}load(t,i,s){this.prepareLoading(t,i,{},s)}reload(t,i,s){this.prepareLoading(t,i,{reload:!0},s)}loadOne(t,i=""){const s=t.split("|"),o=s[0],a=s[1];this.read(o,a,"read",void 0,void 0,(l,c)=>{l&&this.logger.warn(`${i}loading namespace ${a} for language ${o} failed`,l),!l&&c&&this.logger.log(`${i}loaded namespace ${a} for language ${o}`,c),this.loaded(t,l,c)})}saveMissing(t,i,s,o,a,l={},c=()=>{}){var u,d,p,m,g;if((d=(u=this.services)==null?void 0:u.utils)!=null&&d.hasLoadedNamespace&&!((m=(p=this.services)==null?void 0:p.utils)!=null&&m.hasLoadedNamespace(i))){this.logger.warn(`did not save key "${s}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if((g=this.backend)!=null&&g.create){const b={...l,isUpdate:a},y=this.backend.create.bind(this.backend);if(y.length<6)try{let S;y.length===5?S=y(t,i,s,o,b):S=y(t,i,s,o),S&&typeof S.then=="function"?S.then(w=>c(null,w)).catch(c):c(null,S)}catch(S){c(S)}else y(t,i,s,o,c,b)}!t||!t[0]||this.store.addResource(t[0],i,s,o)}}}const get=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),isString(e[1])&&(t.defaultValue=e[1]),isString(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(s=>{t[s]=i[s]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),transformOptions=e=>{var t,i;return isString(e.ns)&&(e.ns=[e.ns]),isString(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),isString(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((i=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:i.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},noop=()=>{},bindMemberFunctions=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(i=>{typeof e[i]=="function"&&(e[i]=e[i].bind(e))})};class I18n extends EventEmitter{constructor(t={},i){if(super(),this.options=transformOptions(t),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),i&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,i),this;setTimeout(()=>{this.init(t,i)},0)}}init(t={},i){this.isInitializing=!0,typeof t=="function"&&(i=t,t={}),t.defaultNS==null&&t.ns&&(isString(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=get();this.options={...s,...this.options,...transformOptions(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?baseLogger.init(o(this.modules.logger),this.options):baseLogger.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=Formatter;const p=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const m=this.services;m.logger=baseLogger,m.resourceStore=this.store,m.languageUtils=p,m.pluralResolver=new PluralResolver(p,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(m.formatter=o(d),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Interpolator(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Connector(o(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.languageDetector&&(m.languageDetector=o(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=o(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Translator(this.services,this.options),this.translator.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=noop),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...p)=>this.store[d](...p)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...p)=>(this.store[d](...p),this)});const c=defer(),u=()=>{const d=(p,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(m),i(p,m)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(t,i=noop){var a,l;let s=i;const o=isString(t)?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const c=[],u=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(m=>{m!=="cimode"&&c.indexOf(m)<0&&c.push(m)})};o?u(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>u(p)),(l=(a=this.options.preload)==null?void 0:a.forEach)==null||l.call(a,d=>u(d)),this.services.backendConnector.load(c,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(d)})}else s(null)}reloadResources(t,i,s){const o=defer();return typeof t=="function"&&(s=t,t=void 0),typeof i=="function"&&(s=i,i=void 0),t||(t=this.languages),i||(i=this.options.ns),s||(s=noop),this.services.backendConnector.reload(t,i,a=>{o.resolve(),s(a)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&postProcessor.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let i=0;i<this.languages.length;i++){const s=this.languages[i];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,i){this.isLanguageChangingTo=t;const s=defer();this.emit("languageChanging",t);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},a=(c,u)=>{u?this.isLanguageChangingTo===t&&(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve((...d)=>this.t(...d)),i&&i(c,(...d)=>this.t(...d))},l=c=>{var p,m;!t&&!c&&this.services.languageDetector&&(c=[]);const u=isString(c)?c:c&&c[0],d=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(isString(c)?[c]:c);d&&(this.language||o(d),this.translator.language||this.translator.changeLanguage(d),(m=(p=this.services.languageDetector)==null?void 0:p.cacheUserLanguage)==null||m.call(p,d)),this.loadResources(d,g=>{a(g,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,i,s){const o=(a,l,...c)=>{let u;typeof l!="object"?u=this.options.overloadTranslationOptionHandler([a,l].concat(c)):u={...l},u.lng=u.lng||o.lng,u.lngs=u.lngs||o.lngs,u.ns=u.ns||o.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||s||o.keyPrefix);const d=this.options.keySeparator||".";let p;return u.keyPrefix&&Array.isArray(a)?p=a.map(m=>(typeof m=="function"&&(m=keysFromSelector(m,{...this.options,...l})),`${u.keyPrefix}${d}${m}`)):(typeof a=="function"&&(a=keysFromSelector(a,{...this.options,...l})),p=u.keyPrefix?`${u.keyPrefix}${d}${a}`:a),this.t(p,u)};return isString(t)?o.lng=t:o.lngs=t,o.ns=i,o.keyPrefix=s,o}t(...t){var i;return(i=this.translator)==null?void 0:i.translate(...t)}exists(...t){var i;return(i=this.translator)==null?void 0:i.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=i.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const l=(c,u)=>{const d=this.services.backendConnector.state[`${c}|${u}`];return d===-1||d===0||d===2};if(i.precheck){const c=i.precheck(this,l);if(c!==void 0)return c}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(s,t)&&(!o||l(a,t)))}loadNamespaces(t,i){const s=defer();return this.options.ns?(isString(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{s.resolve(),i&&i(o)}),s):(i&&i(),Promise.resolve())}loadLanguages(t,i){const s=defer();isString(t)&&(t=[t]);const o=this.options.preload||[],a=t.filter(l=>o.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return a.length?(this.options.preload=o.concat(a),this.loadResources(l=>{s.resolve(),i&&i(l)}),s):(i&&i(),Promise.resolve())}dir(t){var o,a;if(t||(t=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const l=new Intl.Locale(t);if(l&&l.getTextInfo){const c=l.getTextInfo();if(c&&c.direction)return c.direction}}catch{}const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((a=this.services)==null?void 0:a.languageUtils)||new LanguageUtil(get());return t.toLowerCase().indexOf("-latn")>1?"ltr":i.indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},i){return new I18n(t,i)}cloneInstance(t={},i=noop){const s=t.forkResourceStore;s&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new I18n(o);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(c=>{a[c]=this[c]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},s){const c=Object.keys(this.store.data).reduce((u,d)=>(u[d]={...this.store.data[d]},u[d]=Object.keys(u[d]).reduce((p,m)=>(p[m]={...u[d][m]},p),u[d]),u),{});a.store=new ResourceStore(c,o),a.services.resourceStore=a.store}return a.translator=new Translator(a.services,o),a.translator.on("*",(c,...u)=>{a.emit(c,...u)}),a.init(o,i),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const instance=I18n.createInstance();instance.createInstance=I18n.createInstance,instance.createInstance,instance.dir,instance.init,instance.loadResources,instance.reloadResources,instance.use,instance.changeLanguage,instance.getFixedT,instance.t,instance.exists,instance.setDefaultNamespace,instance.hasLoadedNamespace,instance.loadNamespaces,instance.loadLanguages;const balance$4="Balance",topUp$4="Top Up",ads$4="Ads",adsOn$4="On",adsOff$4="Off",level$4="Level",toLevelUp$4="to lvl up",xpCounter$4="/ {{total}} XP",lootBox$4="Loot Box",forLevel$4="for level {{level}}",unopenedLootBox$4="Unopened Loot Box",emptyBox$4="Empty Box",openItem$4="Open Item",reward_type$4={coins:"{{count}} coin",coins_one:"{{count}} coin",coins_few:"{{count}} coins",coins_many:"{{count}} coins",usdt_no_amount:"USDT",coins_no_amount:"Coins",usdt:"{{count}} USDT",usdt_one:"{{count}} USDT",usdt_few:"{{count}} USDT",usdt_many:"{{count}} USDT",ton:"{{count}} TON",ton_one:"{{count}} TON",ton_few:"{{count}} TON",ton_many:"{{count}} TON",telegram_premium:"Telegram Premium",double_balance:"Double Balance",box:"LOOT BOX",box_common:"BASIC",box_rare:"RARE",box_epic:"EPIC",box_legend:"LEGEND"},confirmIframe$4={pay:"Pay",cancel:"Cancel"},months$4={january:"Jan",february:"Feb",march:"Mar",april:"Apr",may:"May",june:"Jun",july:"Jul",august:"Aug",september:"Sep",october:"Oct",november:"Nov",december:"Dec"},box_open$4={skip:"Skip",you_ve_got:"You’ve got",button_reveal_reward:"Reveal Reward",button_open_now:"Open Now",button_save_inventory:"Save to Inventory",button_unopened_boxes:"Unopened Loot Boxes",recent_rewards:"Recent rewards",later_open_later_inventory:"You can open it later in inventory"},common$4={error:"Oops! Something went wrong. Please try again later.",continue:"Continue",ok:"OK",timeAgo:{sec_zero:"{{count}} seconds ago",sec_one:"{{count}} second ago",sec_two:"{{count}} seconds ago",sec_few:"{{count}} seconds ago",sec_many:"{{count}} seconds ago",sec_other:"{{count}} seconds ago",now:"Just now",min_zero:"{{count}} minutes ago",min_one:"{{count}} minute ago",min_two:"{{count}} minutes ago",min_few:"{{count}} minutes ago",min_many:"{{count}} minutes ago",min_other:"{{count}} minutes ago",h_zero:"{{count}} hours ago",h_one:"{{count}} hour ago",h_two:"{{count}} hours ago",h_few:"{{count}} hours ago",h_many:"{{count}} hours ago",h_other:"{{count}} hours ago",d_zero:"{{count}} days ago",d_one:"{{count}} day ago",d_two:"{{count}} days ago",d_few:"{{count}} days ago",d_many:"{{count}} days ago",d_other:"{{count}} days ago"}},snackbar$4={purchase:{blackHolePurchaseChest:"Purchase",blackHolePurchaseLevel:"Purchase",blackHolePurchaseAutoBurn:"Purchase",walletPurchaseGems:"Purchase",blackHoleBurnCoins:"Burned",error:"Failed to make a purchase"},receiving:{claimedTask:"Received"}},purchaseAdsFreeModal$4={title:"Remove Ads",disableAllInterruptions:"Disable all interruptions in games with a recurring monthly subscription. No worries, you will also have the option to turn ads on back if you want anytime!",noInterruptionsInGames:"No interruptions in games with a recurring subscription.",activeRecurring:"Active recurring payments at {{price}}",aMonth:" a month.",nextPayment:"Next payment {{date}}",activeUntil:"Active until {{date}}",subscriptionPaused:"Subscription is Paused",resumeSubscription:"Resume Subscription",cancelSubscription:"Cancel Subscription",continue:"Continue",month:"{{price}} / month",errorCancelSubscription:"Failed to cancel subscription. Please try again"},levelInfoModal$4={title:"Your Level",description:"Gain experience by playing games. For leveling up you get loot boxes, which may contain USDT, coins or better loot boxes. Compete with other players to win real USDT every week.",action:"Got It"},topUpModal$4={balance:"Balance",topUpBalance:"Top Up Gems",coins:"coins",gems:"gems",topUp:"Top Up"},inventoryModal$4={title:"Inventory",description:"It's your personal storage space for all unopened loot boxes. Tap each image to reveal reward inside!"},en={balance:balance$4,topUp:topUp$4,ads:ads$4,adsOn:adsOn$4,adsOff:adsOff$4,level:level$4,toLevelUp:toLevelUp$4,xpCounter:xpCounter$4,lootBox:lootBox$4,forLevel:forLevel$4,unopenedLootBox:unopenedLootBox$4,emptyBox:emptyBox$4,openItem:openItem$4,reward_type:reward_type$4,confirmIframe:confirmIframe$4,months:months$4,box_open:box_open$4,common:common$4,snackbar:snackbar$4,purchaseAdsFreeModal:purchaseAdsFreeModal$4,levelInfoModal:levelInfoModal$4,topUpModal:topUpModal$4,inventoryModal:inventoryModal$4},balance$3="Saldo",topUp$3="Recargar",ads$3="Anuncios",adsOn$3="On",adsOff$3="Off",level$3="Nivel",toLevelUp$3="para subir de nivel",xpCounter$3="/ {{total}} XP",lootBox$3="Caja de botín",forLevel$3="para el nivel {{level}}",unopenedLootBox$3="Caja de botín sin abrir",emptyBox$3="Caja vacía",openItem$3="Abrir objeto",reward_type$3={coins:"{{count}} moneda",coins_one:"{{count}} moneda",coins_few:"{{count}} monedas",coins_many:"{{count}} monedas",usdt_no_amount:"USDT",coins_no_amount:"Monedas",usdt:"{{count}} USDT",usdt_one:"{{count}} USDT",usdt_few:"{{count}} USDT",usdt_many:"{{count}} USDT",ton:"{{count}} TON",ton_one:"{{count}} TON",ton_few:"{{count}} TON",ton_many:"{{count}} TON",telegram_premium:"Telegram Premium",double_balance:"Doble saldo",box:"CAJA DE BOTÍN",box_common:"BÁSICA",box_rare:"RARA",box_epic:"ÉPICA",box_legend:"LEGENDARIA"},confirmIframe$3={pay:"Pagar",cancel:"Cancelar"},months$3={january:"Ene",february:"Feb",march:"Mar",april:"Abr",may:"May",june:"Jun",july:"Jul",august:"Ago",september:"Sep",october:"Oct",november:"Nov",december:"Dic"},box_open$3={skip:"Omitir",you_ve_got:"Obtuviste",button_reveal_reward:"Revelar recompensa",button_open_now:"Abrir ahora",button_save_inventory:"Guardar en inventario",button_unopened_boxes:"Inventario",recent_rewards:"Recientes",later_open_later_inventory:"Puedes abrirla más tarde en el inventario"},common$3={error:"¡Ups! Algo salió mal. Inténtalo de nuevo más tarde.",continue:"Continuar",ok:"OK",timeAgo:{sec_zero:"hace {{count}} segundos",sec_one:"hace {{count}} segundo",sec_two:"hace {{count}} segundos",sec_few:"hace {{count}} segundos",sec_many:"hace {{count}} segundos",sec_other:"hace {{count}} segundos",now:"Justo ahora",min_zero:"hace {{count}} minutos",min_one:"hace {{count}} minuto",min_two:"hace {{count}} minutos",min_few:"hace {{count}} minutos",min_many:"hace {{count}} minutos",min_other:"hace {{count}} minutos",h_zero:"hace {{count}} horas",h_one:"hace {{count}} hora",h_two:"hace {{count}} horas",h_few:"hace {{count}} horas",h_many:"hace {{count}} horas",h_other:"hace {{count}} horas",d_zero:"hace {{count}} días",d_one:"hace {{count}} día",d_two:"hace {{count}} días",d_few:"hace {{count}} días",d_many:"hace {{count}} días",d_other:"hace {{count}} días"}},snackbar$3={purchase:{blackHolePurchaseChest:"Compra",blackHolePurchaseLevel:"Compra",blackHolePurchaseAutoBurn:"Compra",walletPurchaseGems:"Compra",blackHoleBurnCoins:"Quemado",error:"No se pudo realizar la compra"},receiving:{claimedTask:"Recibido"}},purchaseAdsFreeModal$3={title:"Eliminar anuncios",disableAllInterruptions:"Desactiva todas las interrupciones en los juegos con una suscripción mensual recurrente. No te preocupes, ¡también tendrás la opción de activar los anuncios cuando quieras!",noInterruptionsInGames:"Sin interrupciones en los juegos con una suscripción recurrente.",activeRecurring:"Pagos recurrentes activos a {{price}}",aMonth:" al mes.",nextPayment:"Próximo pago {{date}}",activeUntil:"Activo hasta {{date}}",subscriptionPaused:"La suscripción está en pausa",resumeSubscription:"Reanudar suscripción",cancelSubscription:"Cancelar suscripción",continue:"Continuar",month:"{{price}} / mes",errorCancelSubscription:"No se pudo cancelar la suscripción. Inténtalo de nuevo"},levelInfoModal$3={title:"Tu nivel",description:"Gana experiencia jugando. Al subir de nivel obtienes cajas de botín, que pueden contener USDT, monedas o mejores cajas. Compite con otros jugadores para ganar USDT real cada semana.",action:"Entendido"},topUpModal$3={balance:"Saldo",topUpBalance:"Recargar gemas",coins:"monedas",gems:"gemas",topUp:"Recargar"},inventoryModal$3={title:"Inventario",description:"Es tu espacio de almacenamiento personal para todas las cajas de botín sin abrir. Toca cada imagen para revelar la recompensa dentro."},es={balance:balance$3,topUp:topUp$3,ads:ads$3,adsOn:adsOn$3,adsOff:adsOff$3,level:level$3,toLevelUp:toLevelUp$3,xpCounter:xpCounter$3,lootBox:lootBox$3,forLevel:forLevel$3,unopenedLootBox:unopenedLootBox$3,emptyBox:emptyBox$3,openItem:openItem$3,reward_type:reward_type$3,confirmIframe:confirmIframe$3,months:months$3,box_open:box_open$3,common:common$3,snackbar:snackbar$3,purchaseAdsFreeModal:purchaseAdsFreeModal$3,levelInfoModal:levelInfoModal$3,topUpModal:topUpModal$3,inventoryModal:inventoryModal$3},balance$2="बैलेंस",topUp$2="रिचार्ज",ads$2="विज्ञापन",adsOn$2="चालू",adsOff$2="बंद",level$2="स्तर",toLevelUp$2="लेवल अप तक",xpCounter$2="/ {{total}} XP",lootBox$2="लूट बॉक्स",forLevel$2="स्तर {{level}} के लिए",unopenedLootBox$2="बिना खोले गए लूट बॉक्स",emptyBox$2="खाली बॉक्स",openItem$2="आइटम खोलें",reward_type$2={coins:"{{count}} सिक्के",coins_one:"{{count}} सिक्का",coins_few:"{{count}} सिक्के",coins_many:"{{count}} सिक्के",coins_no_amount:"सिक्के",usdt_no_amount:"USDT",usdt:"{{count}} USDT",usdt_one:"{{count}} USDT",usdt_few:"{{count}} USDT",usdt_many:"{{count}} USDT",ton:"{{count}} TON",ton_one:"{{count}} TON",ton_few:"{{count}} TON",ton_many:"{{count}} TON",telegram_premium:"टेलीग्राम प्रीमियम",double_balance:"दोगुनी शेष राशि",box:"लूट बॉक्स",box_common:"बुनियादी",box_rare:"दुर्लभ",box_epic:"महाकाव्य",box_legend:"दंतकथा"},confirmIframe$2={pay:"भुगतान करें",cancel:"रद्द करें"},months$2={january:"जन",february:"फ़र",march:"मार्च",april:"अप्रै",may:"मई",june:"जून",july:"जुला",august:"अग",september:"सितं",october:"अक्टू",november:"नवं",december:"दिसं"},box_open$2={skip:"छोड़ें",you_ve_got:"आपको मिला",button_reveal_reward:"पुरस्कार प्रकट करें",button_open_now:"अभी खोलें",button_save_inventory:"इन्वेंटरी में सहेजें",button_unopened_boxes:"अनपेट लूट बॉक्स",recent_rewards:"हाल के पुरस्कार",later_open_later_inventory:"आप इसे बाद में इन्वेंटरी में खोल सकते हैं"},common$2={error:"उफ़! कुछ गलत हो गया। कृपया बाद में फिर प्रयास करें।",continue:"जारी रखें",ok:"ठीक है",timeAgo:{sec_zero:"{{count}} सेकंड पहले",sec_one:"{{count}} सेकंड पहले",sec_two:"{{count}} सेकंड पहले",sec_few:"{{count}} सेकंड पहले",sec_many:"{{count}} सेकंड पहले",sec_other:"{{count}} सेकंड पहले",now:"अभी",min_zero:"{{count}} मिनट पहले",min_one:"{{count}} मिनट पहले",min_two:"{{count}} मिनट पहले",min_few:"{{count}} मिनट पहले",min_many:"{{count}} मिनट पहले",min_other:"{{count}} मिनट पहले",h_zero:"{{count}} घंटे पहले",h_one:"{{count}} घंटा पहले",h_two:"{{count}} घंटे पहले",h_few:"{{count}} घंटे पहले",h_many:"{{count}} घंटे पहले",h_other:"{{count}} घंटे पहले",d_zero:"{{count}} दिन पहले",d_one:"{{count}} दिन पहले",d_two:"{{count}} दिन पहले",d_few:"{{count}} दिन पहले",d_many:"{{count}} दिन पहले",d_other:"{{count}} दिन पहले"}},snackbar$2={purchase:{blackHolePurchaseChest:"खरीद",blackHolePurchaseLevel:"खरीद",blackHolePurchaseAutoBurn:"खरीद",walletPurchaseGems:"खरीद",blackHoleBurnCoins:"जलाया गया",error:"खरीदारी विफल रही"},receiving:{claimedTask:"प्राप्त"}},purchaseAdsFreeModal$2={title:"विज्ञापन हटाएँ",disableAllInterruptions:"मासिक आवर्ती सदस्यता के साथ खेलों में सभी बाधाएँ बंद करें। चिंता न करें, आप चाहें तो किसी भी समय विज्ञापन फिर से चालू कर सकते हैं!",noInterruptionsInGames:"आवर्ती सदस्यता के साथ खेलों में कोई व्यवधान नहीं।",activeRecurring:"सक्रिय आवर्ती भुगतान {{price}} पर",aMonth:" प्रति माह.",nextPayment:"अगला भुगतान {{date}}",activeUntil:"{{date}} तक सक्रिय",subscriptionPaused:"सदस्यता रोकी गई है",resumeSubscription:"सदस्यता फिर शुरू करें",cancelSubscription:"सदस्यता रद्द करें",continue:"जारी रखें",month:"{{price}} / माह",errorCancelSubscription:"सदस्यता रद्द नहीं हो सकी। कृपया पुनः प्रयास करें"},levelInfoModal$2={title:"आपका स्तर",description:"गेम खेलकर अनुभव अर्जित करें। लेवल बढ़ाने पर आपको लूट बॉक्स मिलते हैं जिनमें USDT, कॉइन्स या बेहतर लूट बॉक्स हो सकते हैं। हर सप्ताह वास्तविक USDT जीतने के लिए अन्य खिलाड़ियों से प्रतिस्पर्धा करें।",action:"समझ गया"},topUpModal$2={balance:"बैलेंस",topUpBalance:"जेम्स रिचार्ज करें",coins:"कॉइन्स",gems:"जेम्स",topUp:"रिचार्ज"},inventoryModal$2={title:"इन्वेंटरी",description:"यह आपके सभी बिना खुले लूट बॉक्स के लिए आपका व्यक्तिगत स्टोरेज स्पेस है। अंदर का इनाम प्रकट करने के लिए हर छवि पर टैप करें!"},hi={balance:balance$2,topUp:topUp$2,ads:ads$2,adsOn:adsOn$2,adsOff:adsOff$2,level:level$2,toLevelUp:toLevelUp$2,xpCounter:xpCounter$2,lootBox:lootBox$2,forLevel:forLevel$2,unopenedLootBox:unopenedLootBox$2,emptyBox:emptyBox$2,openItem:openItem$2,reward_type:reward_type$2,confirmIframe:confirmIframe$2,months:months$2,box_open:box_open$2,common:common$2,snackbar:snackbar$2,purchaseAdsFreeModal:purchaseAdsFreeModal$2,levelInfoModal:levelInfoModal$2,topUpModal:topUpModal$2,inventoryModal:inventoryModal$2},balance$1="Saldo",topUp$1="Recarregar",ads$1="Anúncios",adsOn$1="On",adsOff$1="Off",level$1="Nível",toLevelUp$1="para subir de nível",xpCounter$1="/ {{total}} XP",lootBox$1="Caixa de loot",forLevel$1="para o nível {{level}}",unopenedLootBox$1="Caixa de Loot Não Aberta",emptyBox$1="Caixa vazia",openItem$1="Abrir item",reward_type$1={coins:"{{count}} moeda",coins_one:"{{count}} moeda",coins_few:"{{count}} moedas",coins_many:"{{count}} moedas",usdt_no_amount:"USDT",coins_no_amount:"Moedas",usdt:"{{count}} USDT",usdt_one:"{{count}} USDT",usdt_few:"{{count}} USDT",usdt_many:"{{count}} USDT",ton:"{{count}} TON",ton_one:"{{count}} TON",ton_few:"{{count}} TON",ton_many:"{{count}} TON",telegram_premium:"Telegram Premium",double_balance:"Saldo Duplo",box:"CAIXA DE LOOT",box_common:"BÁSICA",box_rare:"RARA",box_epic:"ÉPICA",box_legend:"LENDÁRIA"},confirmIframe$1={pay:"Pagar",cancel:"Cancelar"},months$1={january:"Jan",february:"Fev",march:"Mar",april:"Abr",may:"Mai",june:"Jun",july:"Jul",august:"Ago",september:"Set",october:"Out",november:"Nov",december:"Dez"},box_open$1={skip:"Pular",you_ve_got:"Você recebeu",button_reveal_reward:"Revelar Recompensa",button_open_now:"Abrir Agora",button_save_inventory:"Salvar no Inventário",button_unopened_boxes:"Inventário",recent_rewards:"Recentes",later_open_later_inventory:"Você pode abrir mais tarde no inventário"},common$1={error:"Ops! Algo deu errado. Tente novamente mais tarde.",continue:"Continuar",ok:"OK",timeAgo:{sec_zero:"há {{count}} segundos",sec_one:"há {{count}} segundo",sec_two:"há {{count}} segundos",sec_few:"há {{count}} segundos",sec_many:"há {{count}} segundos",sec_other:"há {{count}} segundos",now:"Agora mesmo",min_zero:"há {{count}} minutos",min_one:"há {{count}} minuto",min_two:"há {{count}} minutos",min_few:"há {{count}} minutos",min_many:"há {{count}} minutos",min_other:"há {{count}} minutos",h_zero:"há {{count}} horas",h_one:"há {{count}} hora",h_two:"há {{count}} horas",h_few:"há {{count}} horas",h_many:"há {{count}} horas",h_other:"há {{count}} horas",d_zero:"há {{count}} dias",d_one:"há {{count}} dia",d_two:"há {{count}} dias",d_few:"há {{count}} dias",d_many:"há {{count}} dias",d_other:"há {{count}} dias"}},snackbar$1={purchase:{blackHolePurchaseChest:"Compra",blackHolePurchaseLevel:"Compra",blackHolePurchaseAutoBurn:"Compra",walletPurchaseGems:"Compra",blackHoleBurnCoins:"Queimado",error:"Falha ao realizar a compra"},receiving:{claimedTask:"Recebido"}},purchaseAdsFreeModal$1={title:"Remover anúncios",disableAllInterruptions:"Desative todas as interrupções nos jogos com uma assinatura mensal recorrente. Sem preocupações, você também poderá ligar os anúncios quando quiser!",noInterruptionsInGames:"Sem interrupções nos jogos com uma assinatura recorrente.",activeRecurring:"Pagamentos recorrentes ativos em {{price}}",aMonth:" por mês.",nextPayment:"Próximo pagamento {{date}}",activeUntil:"Ativo até {{date}}",subscriptionPaused:"A assinatura está em pausa",resumeSubscription:"Retomar assinatura",cancelSubscription:"Cancelar assinatura",continue:"Continuar",month:"{{price}} / mês",errorCancelSubscription:"Falha ao cancelar a assinatura. Tente novamente"},levelInfoModal$1={title:"Seu nível",description:"Ganhe experiência jogando. Ao subir de nível você recebe caixas de loot, que podem conter USDT, moedas ou caixas melhores. Compita com outros jogadores para ganhar USDT real toda semana.",action:"Entendi"},topUpModal$1={balance:"Saldo",topUpBalance:"Recarregar gemas",coins:"moedas",gems:"gemas",topUp:"Recarregar"},inventoryModal$1={title:"Inventário",description:"É o seu espaço pessoal de armazenamento para todas as caixas de loot não abertas. Toque em cada imagem para revelar a recompensa dentro!"},pt={balance:balance$1,topUp:topUp$1,ads:ads$1,adsOn:adsOn$1,adsOff:adsOff$1,level:level$1,toLevelUp:toLevelUp$1,xpCounter:xpCounter$1,lootBox:lootBox$1,forLevel:forLevel$1,unopenedLootBox:unopenedLootBox$1,emptyBox:emptyBox$1,openItem:openItem$1,reward_type:reward_type$1,confirmIframe:confirmIframe$1,months:months$1,box_open:box_open$1,common:common$1,snackbar:snackbar$1,purchaseAdsFreeModal:purchaseAdsFreeModal$1,levelInfoModal:levelInfoModal$1,topUpModal:topUpModal$1,inventoryModal:inventoryModal$1},balance="Баланс",topUp="Пополнить",ads="Реклама",adsOn="Вкл.",adsOff="Выкл.",level="Уровень",toLevelUp="до повышения уровня",xpCounter="/ {{total}} XP",lootBox="Лутбокс",forLevel="для уровня {{level}}",unopenedLootBox="Неоткрытый лутбокс",emptyBox="Пустой бокс",openItem="Открыть предмет",reward_type={coins:"{{count}} монета",coins_one:"{{count}} монета",coins_few:"{{count}} монеты",coins_many:"{{count}} монет",usdt_no_amount:"USDT",coins_no_amount:"Монеты",usdt:"{{count}} USDT",usdt_one:"{{count}} USDT",usdt_few:"{{count}} USDT",usdt_many:"{{count}} USDT",ton:"{{count}} TON",ton_one:"{{count}} TON",ton_few:"{{count}} TON",ton_many:"{{count}} TON",telegram_premium:"Телеграм Премиум",double_balance:"Двойной баланс",box:"ЛУТ БОКС",box_common:"ОБЫЧНЫЙ",box_rare:"РЕДКИЙ",box_epic:"ЭПИК",box_legend:"ЛЕГЕНДАРНЫЙ"},confirmIframe={pay:"Оплатить",cancel:"Отменить"},months={january:"янв",february:"фев",march:"мар",april:"апр",may:"май",june:"июн",july:"июл",august:"авг",september:"сен",october:"окт",november:"ноя",december:"дек"},box_open={skip:"Пропустить",you_ve_got:"Получено",button_reveal_reward:"Узнать награду",button_open_now:"Открыть",button_save_inventory:"Оставить в инвентаре",button_unopened_boxes:"Неоткрытые лутбоксы",recent_rewards:"Недавние",later_open_later_inventory:"Можно открыть его позже в инвентаре"},common={error:"Упс! Что-то пошло не так. Попробуй позже.",continue:"Продолжить",ok:"OK",timeAgo:{sec_zero:"{{count}} секунд назад",sec_one:"{{count}} секунду назад",sec_two:"{{count}} секунды назад",sec_few:"{{count}} секунды назад",sec_many:"{{count}} секунд назад",sec_other:"{{count}} секунд назад",now:"Только что",min_zero:"{{count}} минут назад",min_one:"{{count}} минуту назад",min_two:"{{count}} минуты назад",min_few:"{{count}} минуты назад",min_many:"{{count}} минут назад",min_other:"{{count}} минут назад",h_zero:"{{count}} часов назад",h_one:"{{count}} час назад",h_two:"{{count}} часа назад",h_few:"{{count}} часа назад",h_many:"{{count}} часов назад",h_other:"{{count}} часов назад",d_zero:"{{count}} дней назад",d_one:"{{count}} день назад",d_two:"{{count}} дня назад",d_few:"{{count}} дня назад",d_many:"{{count}} дней назад",d_other:"{{count}} дней назад"}},snackbar={purchase:{blackHolePurchaseChest:"Покупка",blackHolePurchaseLevel:"Покупка",blackHolePurchaseAutoBurn:"Покупка",walletPurchaseGems:"Покупка",blackHoleBurnCoins:"Сожжено",error:"Не удалось совершить покупку"},receiving:{claimedTask:"Получено"}},purchaseAdsFreeModal={title:"Удалить рекламу",disableAllInterruptions:"Отключите все прерывания в играх с ежемесячной подпиской. Не волнуйтесь, при желании вы всегда сможете снова включить рекламу!",noInterruptionsInGames:"Без прерываний в играх при оформленной подписке.",activeRecurring:"Активные регулярные платежи по цене {{price}}",aMonth:" в месяц.",nextPayment:"Следующий платеж {{date}}",activeUntil:"Активна до {{date}}",subscriptionPaused:"Подписка приостановлена",resumeSubscription:"Возобновить подписку",cancelSubscription:"Отменить подписку",continue:"Продолжить",month:"{{price}} / месяц",errorCancelSubscription:"Не удалось отменить подписку. Пожалуйста, попробуйте еще раз"},levelInfoModal={title:"Ваш уровень",description:"Получайте опыт, играя в игры. За повышение уровня вы получаете лутбоксы, в которых могут быть USDT, монеты или более ценные лутбоксы. Соревнуйтесь с другими игроками, чтобы выигрывать реальные USDT каждую неделю.",action:"Понял"},topUpModal={balance:"Баланс",topUpBalance:"Пополнить баланс",coins:"монет",gems:"алмазов",topUp:"Пополнить"},inventoryModal={title:"Инвентарь",description:"Это твоё персональное хранилище для неоткрытых лутбоксов. Нажми на каждый, чтобы узнать, какая внутри награда!"},ru={balance,topUp,ads,adsOn,adsOff,level,toLevelUp,xpCounter,lootBox,forLevel,unopenedLootBox,emptyBox,openItem,reward_type,confirmIframe,months,box_open,common,snackbar,purchaseAdsFreeModal,levelInfoModal,topUpModal,inventoryModal};var define_process_env_default$2={NODE_ENV:"production",version:"1.92.1",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"};const resources={en:{translation:en},ru:{translation:ru},hi:{translation:hi},es:{translation:es},pt:{translation:pt}};instance.use(initReactI18next).init({resources,fallbackLng:"en",supportedLngs:supportedLanguages,debug:define_process_env_default$2.NODE_ENV==="development",interpolation:{escapeValue:!1}});const translationsTyped=(e,t)=>instance.t(e,t),PROVIDER_COLORS={Orbit:"#3b82f6",TMA:"#22c55e",Monetag:"#f97316",Adsgram:"#a855f7",Gigapub:"#14b8a6",Banner:"#ec4899",SDK:"#6366f1"},ADS_BADGE_STYLE="background:#1e293b;color:#38bdf8;padding:2px 6px;border-radius:3px;font-weight:bold";function getProviderStyle(e){return`background:${PROVIDER_COLORS[e]||"#94a3b8"};color:#fff;padding:2px 6px;border-radius:3px;font-weight:bold`}function formatTimestamp(){return`${(performance.now()/1e3).toFixed(2)}s`}function createAdLogger(e){const t=new Map,i=getProviderStyle(e);return{info(s,o){o!==void 0?console.log(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:inherit",o):console.log(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:inherit")},warn(s,o){o!==void 0?console.warn(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:#f59e0b;font-weight:bold",o):console.warn(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:#f59e0b;font-weight:bold")},error(s,o){o!==void 0?console.error(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:#ef4444;font-weight:bold",o):console.error(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:#ef4444;font-weight:bold")},group(s){console.groupCollapsed(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:inherit;font-weight:bold")},groupEnd(){console.groupEnd()},time(s){t.set(s,performance.now())},timeEnd(s){const o=t.get(s);if(o!==void 0){const a=performance.now()-o;t.delete(s),console.log(`%c ADS %c ${e} %c ${s} took ${a.toFixed(0)}ms`,ADS_BADGE_STYLE,i,"color:#38bdf8;font-style:italic")}}}}const log$5=createAdLogger("Banner");class BannerManager{constructor(t){this.containerId=(t==null?void 0:t.containerId)||"overlay-banner-bottom",this.bannerHeight=(t==null?void 0:t.height)||60,this.animationDuration=(t==null?void 0:t.animationDuration)||300}async checkBannerPermission(t){try{const i=await t();return i.ads_free?(log$5.info("Banner disabled: user has ads_free flag"),!1):Array.isArray(i==null?void 0:i.audiences)&&i.audiences.includes("banner_test")?!0:(log$5.info("Banner test flag not found in user profile audiences"),!1)}catch(i){return log$5.error("Error checking banner permission",i),!1}}async setBanner(t,i){try{if(!await this.checkBannerPermission(i))return;const o=document.getElementById(this.containerId);if(!o){log$5.warn(`Banner container with id "${this.containerId}" not found`);return}o.classList.remove("cssdk-banner-hide"),typeof t=="string"?o.innerHTML=t:(o.innerHTML="",o.appendChild(t)),document.documentElement.style.setProperty("--banner-bottom-height",`${this.bannerHeight}px`),requestAnimationFrame(()=>{o.classList.add("cssdk-banner-show")})}catch(s){log$5.error("setBanner error",s)}}createDefaultContent(){return`
|
|
193
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(q,z){if(q){if(typeof q=="string")return T(q,z);var $=Object.prototype.toString.call(q).slice(8,-1);if($==="Object"&&q.constructor&&($=q.constructor.name),$==="Map"||$==="Set")return Array.from(q);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return T(q,z)}}function T(q,z){(z==null||z>q.length)&&(z=q.length);for(var $=0,B=new Array(z);$<z;$++)B[$]=q[$];return B}function P(q,z){var $=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if($!=null){var B,M,D,G,j=[],W=!0,J=!1;try{if(D=($=$.call(q)).next,z!==0)for(;!(W=(B=D.call($)).done)&&(j.push(B.value),j.length!==z);W=!0);}catch(re){J=!0,M=re}finally{try{if(!W&&$.return!=null&&(G=$.return(),Object(G)!==G))return}finally{if(J)throw M}}return j}}function O(q){if(Array.isArray(q))return q}function k(q,z){if(!(q instanceof z))throw new TypeError("Cannot call a class as a function")}function F(q,z){for(var $=0;$<z.length;$++){var B=z[$];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(q,H(B.key),B)}}function N(q,z,$){return F(q.prototype,z),Object.defineProperty(q,"prototype",{writable:!1}),q}function U(q,z,$){return z=H(z),z in q?Object.defineProperty(q,z,{value:$,enumerable:!0,configurable:!0,writable:!0}):q[z]=$,q}function H(q){var z=Y(q,"string");return d(z)==="symbol"?z:String(z)}function Y(q,z){if(d(q)!=="object"||q===null)return q;var $=q[Symbol.toPrimitive];if($!==void 0){var B=$.call(q,z||"default");if(d(B)!=="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)(q)}var Z=function(){function q(){var z=this;k(this,q),U(this,"reset",function(){z.isInitialized=!1,z._testMode=!1,z._currentMeasurementId,z._hasLoadedGA=!1,z._isQueuing=!1,z._queueGtag=[]}),U(this,"_gtag",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];z._testMode||z._isQueuing?z._queueGtag.push(B):t.default.apply(void 0,B)}),U(this,"_loadGA",function($,B){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!z._hasLoadedGA){var D=document.createElement("script");D.async=!0,D.src="".concat(M,"?id=").concat($),B&&D.setAttribute("nonce",B),document.body.appendChild(D),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},z._hasLoadedGA=!0}}),U(this,"_toGtagOptions",function($){if($){var B={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},M=Object.entries($).reduce(function(D,G){var j=w(G,2),W=j[0],J=j[1];return B[W]?D[B[W]]=J:D[W]=J,D},{});return M}}),U(this,"initialize",function($){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!$)throw new Error("Require GA_MEASUREMENT_ID");var M=typeof $=="string"?[{trackingId:$}]:$;z._currentMeasurementId=M[0].trackingId;var D=B.gaOptions,G=B.gtagOptions,j=B.nonce,W=B.testMode,J=W===void 0?!1:W,re=B.gtagUrl;if(z._testMode=J,J||z._loadGA(z._currentMeasurementId,j,re),z.isInitialized||(z._gtag("js",new Date),M.forEach(function(le){var Q=S(S(S({},z._toGtagOptions(S(S({},D),le.gaOptions))),G),le.gtagOptions);Object.keys(Q).length?z._gtag("config",le.trackingId,Q):z._gtag("config",le.trackingId)})),z.isInitialized=!0,!J){var se=p(z._queueGtag);for(z._queueGtag=[],z._isQueuing=!1;se.length;){var ce=se.shift();z._gtag.apply(z,p(ce)),ce[0]==="get"&&(z._isQueuing=!0)}}}),U(this,"set",function($){if(!$){console.warn("`fieldsObject` is required in .set()");return}if(d($)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys($).length===0&&console.warn("empty `fieldsObject` given to .set()"),z._gaCommand("set",$)}),U(this,"_gaCommandSendEvent",function($,B,M,D,G){z._gtag("event",B,S(S({event_category:$,event_label:M,value:D},G&&{non_interaction:G.nonInteraction}),z._toGtagOptions(G)))}),U(this,"_gaCommandSendEventParameters",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];if(typeof B[0]=="string")z._gaCommandSendEvent.apply(z,p(B.slice(1)));else{var D=B[0],G=D.eventCategory,j=D.eventAction,W=D.eventLabel,J=D.eventValue;D.hitType;var re=c(D,s);z._gaCommandSendEvent(G,j,W,J,re)}}),U(this,"_gaCommandSendTiming",function($,B,M,D){z._gtag("event","timing_complete",{name:B,value:M,event_category:$,event_label:D})}),U(this,"_gaCommandSendPageview",function($,B){if(B&&Object.keys(B).length){var M=z._toGtagOptions(B),D=M.title,G=M.location,j=c(M,o);z._gtag("event","page_view",S(S(S(S({},$&&{page_path:$}),D&&{page_title:D}),G&&{page_location:G}),j))}else $?z._gtag("event","page_view",{page_path:$}):z._gtag("event","page_view")}),U(this,"_gaCommandSendPageviewParameters",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];if(typeof B[0]=="string")z._gaCommandSendPageview.apply(z,p(B.slice(1)));else{var D=B[0],G=D.page;D.hitType;var j=c(D,a);z._gaCommandSendPageview(G,j)}}),U(this,"_gaCommandSend",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];var D=typeof B[0]=="string"?B[0]:B[0].hitType;switch(D){case"event":z._gaCommandSendEventParameters.apply(z,B);break;case"pageview":z._gaCommandSendPageviewParameters.apply(z,B);break;case"timing":z._gaCommandSendTiming.apply(z,p(B.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(D));break;default:console.warn("Send command doesn't exist: ".concat(D))}}),U(this,"_gaCommandSet",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];typeof B[0]=="string"&&(B[0]=U({},B[0],B[1])),z._gtag("set",z._toGtagOptions(B[0]))}),U(this,"_gaCommand",function($){for(var B=arguments.length,M=new Array(B>1?B-1:0),D=1;D<B;D++)M[D-1]=arguments[D];switch($){case"send":z._gaCommandSend.apply(z,M);break;case"set":z._gaCommandSet.apply(z,M);break;default:console.warn("Command doesn't exist: ".concat($))}}),U(this,"ga",function(){for(var $=arguments.length,B=new Array($),M=0;M<$;M++)B[M]=arguments[M];if(typeof B[0]=="string")z._gaCommand.apply(z,B);else{var D=B[0];z._gtag("get",z._currentMeasurementId,"client_id",function(G){z._isQueuing=!1;var j=z._queueGtag;for(D({get:function(re){return re==="clientId"?G:re==="trackingId"?z._currentMeasurementId:re==="apiVersion"?"1":void 0}});j.length;){var W=j.shift();z._gtag.apply(z,p(W))}}),z._isQueuing=!0}return z.ga}),U(this,"event",function($,B){if(typeof $=="string")z._gtag("event",$,z._toGtagOptions(B));else{var M=$.action,D=$.category,G=$.label,j=$.value,W=$.nonInteraction,J=$.transport;if(!D||!M){console.warn("args.category AND args.action are required in event()");return}var re={hitType:"event",eventCategory:(0,i.default)(D),eventAction:(0,i.default)(M)};G&&(re.eventLabel=(0,i.default)(G)),typeof j<"u"&&(typeof j!="number"?console.warn("Expected `args.value` arg to be a Number."):re.eventValue=j),typeof W<"u"&&(typeof W!="boolean"?console.warn("`args.nonInteraction` must be a boolean."):re.nonInteraction=W),typeof J<"u"&&(typeof J!="string"?console.warn("`args.transport` must be a string."):(["beacon","xhr","image"].indexOf(J)===-1&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),re.transport=J)),z._gaCommand("send",re)}}),U(this,"send",function($){z._gaCommand("send",$)}),this.reset()}return N(q,[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}]),q}();e.GA4=Z;var ie=new Z;e.default=ie}(ga4)),ga4}var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(e){function t(c){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},t(c)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ReactGAImplementation=void 0;var i=o(requireGa4());function s(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(s=function(m){return m?d:u})(c)}function o(c,u){if(c&&c.__esModule)return c;if(c===null||t(c)!=="object"&&typeof c!="function")return{default:c};var d=s(u);if(d&&d.has(c))return d.get(c);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in c)if(g!=="default"&&Object.prototype.hasOwnProperty.call(c,g)){var b=m?Object.getOwnPropertyDescriptor(c,g):null;b&&(b.get||b.set)?Object.defineProperty(p,g,b):p[g]=c[g]}return p.default=c,d&&d.set(c,p),p}var a=i.GA4;e.ReactGAImplementation=a;var l=i.default;e.default=l}(dist)),dist}var distExports=requireDist();const ReactGA=getDefaultExportFromCjs$3(distExports),isString=e=>typeof e=="string",defer=()=>{let e,t;const i=new Promise((s,o)=>{e=s,t=o});return i.resolve=e,i.reject=t,i},makeString=e=>e==null?"":""+e,copy=(e,t,i)=>{e.forEach(s=>{t[s]&&(i[s]=t[s])})},lastOfPathSeparatorRegExp=/###/g,cleanKey=e=>e&&e.indexOf("###")>-1?e.replace(lastOfPathSeparatorRegExp,"."):e,canNotTraverseDeeper=e=>!e||isString(e),getLastOfPath=(e,t,i)=>{const s=isString(t)?t.split("."):t;let o=0;for(;o<s.length-1;){if(canNotTraverseDeeper(e))return{};const a=cleanKey(s[o]);!e[a]&&i&&(e[a]=new i),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return canNotTraverseDeeper(e)?{}:{obj:e,k:cleanKey(s[o])}},setPath=(e,t,i)=>{const{obj:s,k:o}=getLastOfPath(e,t,Object);if(s!==void 0||t.length===1){s[o]=i;return}let a=t[t.length-1],l=t.slice(0,t.length-1),c=getLastOfPath(e,l,Object);for(;c.obj===void 0&&l.length;)a=`${l[l.length-1]}.${a}`,l=l.slice(0,l.length-1),c=getLastOfPath(e,l,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${a}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${a}`]=i},pushPath=(e,t,i,s)=>{const{obj:o,k:a}=getLastOfPath(e,t,Object);o[a]=o[a]||[],o[a].push(i)},getPath=(e,t)=>{const{obj:i,k:s}=getLastOfPath(e,t);if(i&&Object.prototype.hasOwnProperty.call(i,s))return i[s]},getPathWithDefaults=(e,t,i)=>{const s=getPath(e,i);return s!==void 0?s:getPath(t,i)},deepExtend=(e,t,i)=>{for(const s in t)s!=="__proto__"&&s!=="constructor"&&(s in e?isString(e[s])||e[s]instanceof String||isString(t[s])||t[s]instanceof String?i&&(e[s]=t[s]):deepExtend(e[s],t[s],i):e[s]=t[s]);return e},regexEscape=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const escape=e=>isString(e)?e.replace(/[&<>"'\/]/g,t=>_entityMap[t]):e;class RegExpCache{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const i=this.regExpMap.get(t);if(i!==void 0)return i;const s=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,s),this.regExpQueue.push(t),s}}const chars=[" ",",","?","!",";"],looksLikeObjectPathRegExpCache=new RegExpCache(20),looksLikeObjectPath=(e,t,i)=>{t=t||"",i=i||"";const s=chars.filter(l=>t.indexOf(l)<0&&i.indexOf(l)<0);if(s.length===0)return!0;const o=looksLikeObjectPathRegExpCache.getRegExp(`(${s.map(l=>l==="?"?"\\?":l).join("|")})`);let a=!o.test(e);if(!a){const l=e.indexOf(i);l>0&&!o.test(e.substring(0,l))&&(a=!0)}return a},deepFind=(e,t,i=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const s=t.split(i);let o=e;for(let a=0;a<s.length;){if(!o||typeof o!="object")return;let l,c="";for(let u=a;u<s.length;++u)if(u!==a&&(c+=i),c+=s[u],l=o[c],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&u<s.length-1)continue;a+=u-a+1;break}o=l}return o},getCleanedCode=e=>e==null?void 0:e.replace("_","-"),consoleLogger={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var i,s;(s=(i=console==null?void 0:console[e])==null?void 0:i.apply)==null||s.call(i,console,t)}};class Logger{constructor(t,i={}){this.init(t,i)}init(t,i={}){this.prefix=i.prefix||"i18next:",this.logger=t||consoleLogger,this.options=i,this.debug=i.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,i,s,o){return o&&!this.debug?null:(isString(t[0])&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[i](t))}create(t){return new Logger(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Logger(this.logger,t)}}var baseLogger=new Logger;class EventEmitter{constructor(){this.observers={}}on(t,i){return t.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const o=this.observers[s].get(i)||0;this.observers[s].set(i,o+1)}),this}off(t,i){if(this.observers[t]){if(!i){delete this.observers[t];return}this.observers[t].delete(i)}}emit(t,...i){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,a])=>{for(let l=0;l<a;l++)o(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,a])=>{for(let l=0;l<a;l++)o.apply(o,[t,...i])})}}class ResourceStore extends EventEmitter{constructor(t,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const i=this.options.ns.indexOf(t);i>-1&&this.options.ns.splice(i,1)}getResource(t,i,s,o={}){var d,p;const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,i],s&&(Array.isArray(s)?c.push(...s):isString(s)&&a?c.push(...s.split(a)):c.push(s)));const u=getPath(this.data,c);return!u&&!i&&!s&&t.indexOf(".")>-1&&(t=c[0],i=c[1],s=c.slice(2).join(".")),u||!l||!isString(s)?u:deepFind((p=(d=this.data)==null?void 0:d[t])==null?void 0:p[i],s,a)}addResource(t,i,s,o,a={silent:!1}){const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let c=[t,i];s&&(c=c.concat(l?s.split(l):s)),t.indexOf(".")>-1&&(c=t.split("."),o=i,i=c[1]),this.addNamespaces(i),setPath(this.data,c,o),a.silent||this.emit("added",t,i,s,o)}addResources(t,i,s,o={silent:!1}){for(const a in s)(isString(s[a])||Array.isArray(s[a]))&&this.addResource(t,i,a,s[a],{silent:!0});o.silent||this.emit("added",t,i,s)}addResourceBundle(t,i,s,o,a,l={silent:!1,skipCopy:!1}){let c=[t,i];t.indexOf(".")>-1&&(c=t.split("."),o=s,s=i,i=c[1]),this.addNamespaces(i);let u=getPath(this.data,c)||{};l.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?deepExtend(u,s,a):u={...u,...s},setPath(this.data,c,u),l.silent||this.emit("added",t,i,s)}removeResourceBundle(t,i){this.hasResourceBundle(t,i)&&delete this.data[t][i],this.removeNamespaces(i),this.emit("removed",t,i)}hasResourceBundle(t,i){return this.getResource(t,i)!==void 0}getResourceBundle(t,i){return i||(i=this.options.defaultNS),this.getResource(t,i)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const i=this.getDataByLanguage(t);return!!(i&&Object.keys(i)||[]).find(o=>i[o]&&Object.keys(i[o]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,s,o){return e.forEach(a=>{var l;t=((l=this.processors[a])==null?void 0:l.process(t,i,s,o))??t}),t}};const PATH_KEY=Symbol("i18next/PATH_KEY");function createProxy(){const e=[],t=Object.create(null);let i;return t.get=(s,o)=>{var a;return(a=i==null?void 0:i.revoke)==null||a.call(i),o===PATH_KEY?e:(e.push(o),i=Proxy.revocable(s,t),i.proxy)},Proxy.revocable(Object.create(null),t).proxy}function keysFromSelector(e,t){const{[PATH_KEY]:i}=e(createProxy());return i.join((t==null?void 0:t.keySeparator)??".")}const checkedLoadedFor={},shouldHandleAsObject=e=>!isString(e)&&typeof e!="boolean"&&typeof e!="number";class Translator extends EventEmitter{constructor(t,i={}){super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,i={interpolation:{}}){const s={...i};if(t==null)return!1;const o=this.resolve(t,s);return(o==null?void 0:o.res)!==void 0}extractFromKey(t,i){let s=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=i.ns||this.options.defaultNS||[];const l=s&&t.indexOf(s)>-1,c=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!looksLikeObjectPath(t,s,o);if(l&&!c){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:isString(a)?[a]:a};const d=t.split(s);(s!==o||s===o&&this.options.ns.indexOf(d[0])>-1)&&(a=d.shift()),t=d.join(o)}return{key:t,namespaces:isString(a)?[a]:a}}translate(t,i,s){let o=typeof i=="object"?{...i}:i;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=keysFromSelector(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);const a=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:c,namespaces:u}=this.extractFromKey(t[t.length-1],o),d=u[u.length-1];let p=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;p===void 0&&(p=":");const m=o.lng||this.language,g=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((m==null?void 0:m.toLowerCase())==="cimode")return g?a?{res:`${d}${p}${c}`,usedKey:c,exactUsedKey:c,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${p}${c}`:a?{res:c,usedKey:c,exactUsedKey:c,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:c;const b=this.resolve(t,o);let y=b==null?void 0:b.res;const S=(b==null?void 0:b.usedKey)||c,w=(b==null?void 0:b.exactUsedKey)||c,E=["[object Number]","[object Function]","[object RegExp]"],A=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,P=o.count!==void 0&&!isString(o.count),O=Translator.hasDefaultValue(o),k=P?this.pluralResolver.getSuffix(m,o.count,o):"",F=o.ordinal&&P?this.pluralResolver.getSuffix(m,o.count,{ordinal:!1}):"",N=P&&!o.ordinal&&o.count===0,U=N&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${k}`]||o[`defaultValue${F}`]||o.defaultValue;let H=y;T&&!y&&O&&(H=U);const Y=shouldHandleAsObject(H),Z=Object.prototype.toString.apply(H);if(T&&H&&Y&&E.indexOf(Z)<0&&!(isString(A)&&Array.isArray(H))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ie=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,H,{...o,ns:u}):`key '${c} (${this.language})' returned an object instead of string.`;return a?(b.res=ie,b.usedParams=this.getUsedParamsDetails(o),b):ie}if(l){const ie=Array.isArray(H),q=ie?[]:{},z=ie?w:S;for(const $ in H)if(Object.prototype.hasOwnProperty.call(H,$)){const B=`${z}${l}${$}`;O&&!y?q[$]=this.translate(B,{...o,defaultValue:shouldHandleAsObject(U)?U[$]:void 0,joinArrays:!1,ns:u}):q[$]=this.translate(B,{...o,joinArrays:!1,ns:u}),q[$]===B&&(q[$]=H[$])}y=q}}else if(T&&isString(A)&&Array.isArray(y))y=y.join(A),y&&(y=this.extendTranslation(y,t,o,s));else{let ie=!1,q=!1;!this.isValidLookup(y)&&O&&(ie=!0,y=U),this.isValidLookup(y)||(q=!0,y=c);const $=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&q?void 0:y,B=O&&U!==y&&this.options.updateMissing;if(q||ie||B){if(this.logger.log(B?"updateKey":"missingKey",m,d,c,B?U:y),l){const j=this.resolve(c,{...o,keySeparator:!1});j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let M=[];const D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&D&&D[0])for(let j=0;j<D.length;j++)M.push(D[j]);else this.options.saveMissingTo==="all"?M=this.languageUtils.toResolveHierarchy(o.lng||this.language):M.push(o.lng||this.language);const G=(j,W,J)=>{var se;const re=O&&J!==y?J:$;this.options.missingKeyHandler?this.options.missingKeyHandler(j,d,W,re,B,o):(se=this.backendConnector)!=null&&se.saveMissing&&this.backendConnector.saveMissing(j,d,W,re,B,o),this.emit("missingKey",j,d,W,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?M.forEach(j=>{const W=this.pluralResolver.getSuffixes(j,o);N&&o[`defaultValue${this.options.pluralSeparator}zero`]&&W.indexOf(`${this.options.pluralSeparator}zero`)<0&&W.push(`${this.options.pluralSeparator}zero`),W.forEach(J=>{G([j],c+J,o[`defaultValue${J}`]||U)})}):G(M,c,U))}y=this.extendTranslation(y,t,o,b,s),q&&y===c&&this.options.appendNamespaceToMissingKey&&(y=`${d}${p}${c}`),(q||ie)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${p}${c}`:c,ie?y:void 0,o))}return a?(b.res=y,b.usedParams=this.getUsedParamsDetails(o),b):y}extendTranslation(t,i,s,o,a){var u,d;if((u=this.i18nFormat)!=null&&u.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const p=isString(t)&&(((d=s==null?void 0:s.interpolation)==null?void 0:d.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(p){const b=t.match(this.interpolator.nestingRegexp);m=b&&b.length}let g=s.replace&&!isString(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),t=this.interpolator.interpolate(t,g,s.lng||this.language||o.usedLng,s),p){const b=t.match(this.interpolator.nestingRegexp),y=b&&b.length;m<y&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,(...b)=>(a==null?void 0:a[0])===b[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${i[0]}`),null):this.translate(...b,i),s)),s.interpolation&&this.interpolator.reset()}const l=s.postProcess||this.options.postProcess,c=isString(l)?[l]:l;return t!=null&&(c!=null&&c.length)&&s.applyPostProcessor!==!1&&(t=postProcessor.handle(c,t,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t,i={}){let s,o,a,l,c;return isString(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(s))return;const d=this.extractFromKey(u,i),p=d.key;o=p;let m=d.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=i.count!==void 0&&!isString(i.count),b=g&&!i.ordinal&&i.count===0,y=i.context!==void 0&&(isString(i.context)||typeof i.context=="number")&&i.context!=="",S=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);m.forEach(w=>{var E,A;this.isValidLookup(s)||(c=w,!checkedLoadedFor[`${S[0]}-${w}`]&&((E=this.utils)!=null&&E.hasLoadedNamespace)&&!((A=this.utils)!=null&&A.hasLoadedNamespace(c))&&(checkedLoadedFor[`${S[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${S.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(T=>{var k;if(this.isValidLookup(s))return;l=T;const P=[p];if((k=this.i18nFormat)!=null&&k.addLookupKeys)this.i18nFormat.addLookupKeys(P,p,T,w,i);else{let F;g&&(F=this.pluralResolver.getSuffix(T,i.count,i));const N=`${this.options.pluralSeparator}zero`,U=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(i.ordinal&&F.indexOf(U)===0&&P.push(p+F.replace(U,this.options.pluralSeparator)),P.push(p+F),b&&P.push(p+N)),y){const H=`${p}${this.options.contextSeparator||"_"}${i.context}`;P.push(H),g&&(i.ordinal&&F.indexOf(U)===0&&P.push(H+F.replace(U,this.options.pluralSeparator)),P.push(H+F),b&&P.push(H+N))}}let O;for(;O=P.pop();)this.isValidLookup(s)||(a=O,s=this.getResource(T,w,O,i))}))})}),{res:s,usedKey:o,exactUsedKey:a,usedLng:l,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,i,s,o={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,i,s,o):this.resourceStore.getResource(t,i,s,o)}getUsedParamsDetails(t={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&!isString(t.replace);let o=s?t.replace:t;if(s&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const a of i)delete o[a]}return o}static hasDefaultValue(t){const i="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&i===s.substring(0,i.length)&&t[s]!==void 0)return!0;return!1}}class LanguageUtil{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(t){if(t=getCleanedCode(t),!t||t.indexOf("-")<0)return null;const i=t.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(t){if(t=getCleanedCode(t),!t||t.indexOf("-")<0)return t;const i=t.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(t){if(isString(t)&&t.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(t)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let i;return t.forEach(s=>{if(i)return;const o=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(o))&&(i=o)}),!i&&this.options.supportedLngs&&t.forEach(s=>{if(i)return;const o=this.getScriptPartFromCode(s);if(this.isSupportedCode(o))return i=o;const a=this.getLanguagePartFromCode(s);if(this.isSupportedCode(a))return i=a;i=this.options.supportedLngs.find(l=>{if(l===a)return l;if(!(l.indexOf("-")<0&&a.indexOf("-")<0)&&(l.indexOf("-")>0&&a.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===a||l.indexOf(a)===0&&a.length>1))return l})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(t,i){if(!t)return[];if(typeof t=="function"&&(t=t(i)),isString(t)&&(t=[t]),Array.isArray(t))return t;if(!i)return t.default||[];let s=t[i];return s||(s=t[this.getScriptPartFromCode(i)]),s||(s=t[this.formatLanguageCode(i)]),s||(s=t[this.getLanguagePartFromCode(i)]),s||(s=t.default),s||[]}toResolveHierarchy(t,i){const s=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],t),o=[],a=l=>{l&&(this.isSupportedCode(l)?o.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return isString(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):isString(t)&&a(this.formatLanguageCode(t)),s.forEach(l=>{o.indexOf(l)<0&&a(this.formatLanguageCode(l))}),o}}const suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5},dummyRule={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class PluralResolver{constructor(t,i={}){this.languageUtils=t,this.options=i,this.logger=baseLogger.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,i){this.rules[t]=i}clearCache(){this.pluralRulesCache={}}getRule(t,i={}){const s=getCleanedCode(t==="dev"?"en":t),o=i.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:s,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let l;try{l=new Intl.PluralRules(s,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),dummyRule;if(!t.match(/-|_/))return dummyRule;const u=this.languageUtils.getLanguagePartFromCode(t);l=this.getRule(u,i)}return this.pluralRulesCache[a]=l,l}needsPlural(t,i={}){let s=this.getRule(t,i);return s||(s=this.getRule("dev",i)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,i,s={}){return this.getSuffixes(t,s).map(o=>`${i}${o}`)}getSuffixes(t,i={}){let s=this.getRule(t,i);return s||(s=this.getRule("dev",i)),s?s.resolvedOptions().pluralCategories.sort((o,a)=>suffixesOrder[o]-suffixesOrder[a]).map(o=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,i,s={}){const o=this.getRule(t,s);return o?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${o.select(i)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",i,s))}}const deepFindWithDefaults=(e,t,i,s=".",o=!0)=>{let a=getPathWithDefaults(e,t,i);return!a&&o&&isString(i)&&(a=deepFind(e,i,s),a===void 0&&(a=deepFind(t,i,s))),a},regexSafe=e=>e.replace(/\$/g,"$$$$");class Interpolator{constructor(t={}){var i;this.logger=baseLogger.create("interpolator"),this.options=t,this.format=((i=t==null?void 0:t.interpolation)==null?void 0:i.format)||(s=>s),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:i,escapeValue:s,useRawValueToEscape:o,prefix:a,prefixEscaped:l,suffix:c,suffixEscaped:u,formatSeparator:d,unescapeSuffix:p,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:S,nestingOptionsSeparator:w,maxReplaces:E,alwaysFormat:A}=t.interpolation;this.escape=i!==void 0?i:escape,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?regexEscape(a):l||"{{",this.suffix=c?regexEscape(c):u||"}}",this.formatSeparator=d||",",this.unescapePrefix=p?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=g?regexEscape(g):b||regexEscape("$t("),this.nestingSuffix=y?regexEscape(y):S||regexEscape(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=E||1e3,this.alwaysFormat=A!==void 0?A:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(i,s)=>(i==null?void 0:i.source)===s?(i.lastIndex=0,i):new RegExp(s,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,i,s,o){var b;let a,l,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=y=>{if(y.indexOf(this.formatSeparator)<0){const A=deepFindWithDefaults(i,u,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(A,void 0,s,{...o,...i,interpolationkey:y}):A}const S=y.split(this.formatSeparator),w=S.shift().trim(),E=S.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(i,u,w,this.options.keySeparator,this.options.ignoreJSONStructure),E,s,{...o,...i,interpolationkey:w})};this.resetRegExp();const p=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((b=o==null?void 0:o.interpolation)==null?void 0:b.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>regexSafe(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?regexSafe(this.escape(y)):regexSafe(y)}].forEach(y=>{for(c=0;a=y.regex.exec(t);){const S=a[1].trim();if(l=d(S),l===void 0)if(typeof p=="function"){const E=p(t,a,o);l=isString(E)?E:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))l="";else if(m){l=a[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),l="";else!isString(l)&&!this.useRawValueToEscape&&(l=makeString(l));const w=y.safeValue(l);if(t=t.replace(a[0],w),m?(y.regex.lastIndex+=l.length,y.regex.lastIndex-=a[0].length):y.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,i,s={}){let o,a,l;const c=(u,d)=>{const p=this.nestingOptionsSeparator;if(u.indexOf(p)<0)return u;const m=u.split(new RegExp(`${p}[ ]*{`));let g=`{${m[1]}`;u=m[0],g=this.interpolate(g,l);const b=g.match(/'/g),y=g.match(/"/g);(((b==null?void 0:b.length)??0)%2===0&&!y||y.length%2!==0)&&(g=g.replace(/'/g,'"'));try{l=JSON.parse(g),d&&(l={...d,...l})}catch(S){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,S),`${u}${p}${g}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,u};for(;o=this.nestingRegexp.exec(t);){let u=[];l={...s},l=l.replace&&!isString(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;const d=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(d!==-1&&(u=o[1].slice(d).split(this.formatSeparator).map(p=>p.trim()).filter(Boolean),o[1]=o[1].slice(0,d)),a=i(c.call(this,o[1].trim(),l),l),a&&o[0]===t&&!isString(a))return a;isString(a)||(a=makeString(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u.length&&(a=u.reduce((p,m)=>this.format(p,m,s.lng,{...s,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}const parseFormatStr=e=>{let t=e.toLowerCase().trim();const i={};if(e.indexOf("(")>-1){const s=e.split("(");t=s[0].toLowerCase().trim();const o=s[1].substring(0,s[1].length-1);t==="currency"&&o.indexOf(":")<0?i.currency||(i.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?i.range||(i.range=o.trim()):o.split(";").forEach(l=>{if(l){const[c,...u]=l.split(":"),d=u.join(":").trim().replace(/^'+|'+$/g,""),p=c.trim();i[p]||(i[p]=d),d==="false"&&(i[p]=!1),d==="true"&&(i[p]=!0),isNaN(d)||(i[p]=parseInt(d,10))}})}return{formatName:t,formatOptions:i}},createCachedFormatter=e=>{const t={};return(i,s,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});const l=s+JSON.stringify(a);let c=t[l];return c||(c=e(getCleanedCode(s),o),t[l]=c),c(i)}},createNonCachedFormatter=e=>(t,i,s)=>e(getCleanedCode(i),s)(t);class Formatter{constructor(t={}){this.logger=baseLogger.create("formatter"),this.options=t,this.init(t)}init(t,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";const s=i.cacheInBuiltFormats?createCachedFormatter:createNonCachedFormatter;this.formats={number:s((o,a)=>{const l=new Intl.NumberFormat(o,{...a});return c=>l.format(c)}),currency:s((o,a)=>{const l=new Intl.NumberFormat(o,{...a,style:"currency"});return c=>l.format(c)}),datetime:s((o,a)=>{const l=new Intl.DateTimeFormat(o,{...a});return c=>l.format(c)}),relativetime:s((o,a)=>{const l=new Intl.RelativeTimeFormat(o,{...a});return c=>l.format(c,a.range||"day")}),list:s((o,a)=>{const l=new Intl.ListFormat(o,{...a});return c=>l.format(c)})}}add(t,i){this.formats[t.toLowerCase().trim()]=i}addCached(t,i){this.formats[t.toLowerCase().trim()]=createCachedFormatter(i)}format(t,i,s,o={}){const a=i.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(c=>c.indexOf(")")>-1)){const c=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,c)].join(this.formatSeparator)}return a.reduce((c,u)=>{var m;const{formatName:d,formatOptions:p}=parseFormatStr(u);if(this.formats[d]){let g=c;try{const b=((m=o==null?void 0:o.formatParams)==null?void 0:m[o.interpolationkey])||{},y=b.locale||b.lng||o.locale||o.lng||s;g=this.formats[d](c,y,{...p,...o,...b})}catch(b){this.logger.warn(b)}return g}else this.logger.warn(`there was no format function for ${d}`);return c},t)}}const removePending=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Connector extends EventEmitter{constructor(t,i,s,o={}){var a,l;super(),this.backend=t,this.store=i,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(l=(a=this.backend)==null?void 0:a.init)==null||l.call(a,s,o.backend,o)}queueLoad(t,i,s,o){const a={},l={},c={},u={};return t.forEach(d=>{let p=!0;i.forEach(m=>{const g=`${d}|${m}`;!s.reload&&this.store.hasResourceBundle(d,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?l[g]===void 0&&(l[g]=!0):(this.state[g]=1,p=!1,l[g]===void 0&&(l[g]=!0),a[g]===void 0&&(a[g]=!0),u[m]===void 0&&(u[m]=!0)))}),p||(c[d]=!0)}),(Object.keys(a).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(l),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(t,i,s){const o=t.split("|"),a=o[0],l=o[1];i&&this.emit("failedLoading",a,l,i),!i&&s&&this.store.addResourceBundle(a,l,s,void 0,void 0,{skipCopy:!0}),this.state[t]=i?-1:2,i&&s&&(this.state[t]=0);const c={};this.queue.forEach(u=>{pushPath(u.loaded,[a],l),removePending(u,t),i&&u.errors.push(i),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(d=>{c[d]||(c[d]={});const p=u.loaded[d];p.length&&p.forEach(m=>{c[d][m]===void 0&&(c[d][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(t,i,s,o=0,a=this.retryTimeout,l){if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:i,fcName:s,tried:o,wait:a,callback:l});return}this.readingCalls++;const c=(d,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(d&&p&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,i,s,o+1,a*2,l)},a);return}l(d,p)},u=this.backend[s].bind(this.backend);if(u.length===2){try{const d=u(t,i);d&&typeof d.then=="function"?d.then(p=>c(null,p)).catch(c):c(null,d)}catch(d){c(d)}return}return u(t,i,c)}prepareLoading(t,i,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();isString(t)&&(t=this.languageUtils.toResolveHierarchy(t)),isString(i)&&(i=[i]);const a=this.queueLoad(t,i,s,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(l=>{this.loadOne(l)})}load(t,i,s){this.prepareLoading(t,i,{},s)}reload(t,i,s){this.prepareLoading(t,i,{reload:!0},s)}loadOne(t,i=""){const s=t.split("|"),o=s[0],a=s[1];this.read(o,a,"read",void 0,void 0,(l,c)=>{l&&this.logger.warn(`${i}loading namespace ${a} for language ${o} failed`,l),!l&&c&&this.logger.log(`${i}loaded namespace ${a} for language ${o}`,c),this.loaded(t,l,c)})}saveMissing(t,i,s,o,a,l={},c=()=>{}){var u,d,p,m,g;if((d=(u=this.services)==null?void 0:u.utils)!=null&&d.hasLoadedNamespace&&!((m=(p=this.services)==null?void 0:p.utils)!=null&&m.hasLoadedNamespace(i))){this.logger.warn(`did not save key "${s}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if((g=this.backend)!=null&&g.create){const b={...l,isUpdate:a},y=this.backend.create.bind(this.backend);if(y.length<6)try{let S;y.length===5?S=y(t,i,s,o,b):S=y(t,i,s,o),S&&typeof S.then=="function"?S.then(w=>c(null,w)).catch(c):c(null,S)}catch(S){c(S)}else y(t,i,s,o,c,b)}!t||!t[0]||this.store.addResource(t[0],i,s,o)}}}const get=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),isString(e[1])&&(t.defaultValue=e[1]),isString(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(s=>{t[s]=i[s]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),transformOptions=e=>{var t,i;return isString(e.ns)&&(e.ns=[e.ns]),isString(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),isString(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((i=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:i.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},noop=()=>{},bindMemberFunctions=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(i=>{typeof e[i]=="function"&&(e[i]=e[i].bind(e))})};class I18n extends EventEmitter{constructor(t={},i){if(super(),this.options=transformOptions(t),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),i&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,i),this;setTimeout(()=>{this.init(t,i)},0)}}init(t={},i){this.isInitializing=!0,typeof t=="function"&&(i=t,t={}),t.defaultNS==null&&t.ns&&(isString(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=get();this.options={...s,...this.options,...transformOptions(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?baseLogger.init(o(this.modules.logger),this.options):baseLogger.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=Formatter;const p=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const m=this.services;m.logger=baseLogger,m.resourceStore=this.store,m.languageUtils=p,m.pluralResolver=new PluralResolver(p,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(m.formatter=o(d),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Interpolator(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Connector(o(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.languageDetector&&(m.languageDetector=o(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=o(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Translator(this.services,this.options),this.translator.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=noop),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...p)=>this.store[d](...p)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...p)=>(this.store[d](...p),this)});const c=defer(),u=()=>{const d=(p,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(m),i(p,m)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(t,i=noop){var a,l;let s=i;const o=isString(t)?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const c=[],u=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(m=>{m!=="cimode"&&c.indexOf(m)<0&&c.push(m)})};o?u(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>u(p)),(l=(a=this.options.preload)==null?void 0:a.forEach)==null||l.call(a,d=>u(d)),this.services.backendConnector.load(c,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(d)})}else s(null)}reloadResources(t,i,s){const o=defer();return typeof t=="function"&&(s=t,t=void 0),typeof i=="function"&&(s=i,i=void 0),t||(t=this.languages),i||(i=this.options.ns),s||(s=noop),this.services.backendConnector.reload(t,i,a=>{o.resolve(),s(a)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&postProcessor.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let i=0;i<this.languages.length;i++){const s=this.languages[i];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,i){this.isLanguageChangingTo=t;const s=defer();this.emit("languageChanging",t);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},a=(c,u)=>{u?this.isLanguageChangingTo===t&&(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve((...d)=>this.t(...d)),i&&i(c,(...d)=>this.t(...d))},l=c=>{var p,m;!t&&!c&&this.services.languageDetector&&(c=[]);const u=isString(c)?c:c&&c[0],d=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(isString(c)?[c]:c);d&&(this.language||o(d),this.translator.language||this.translator.changeLanguage(d),(m=(p=this.services.languageDetector)==null?void 0:p.cacheUserLanguage)==null||m.call(p,d)),this.loadResources(d,g=>{a(g,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,i,s){const o=(a,l,...c)=>{let u;typeof l!="object"?u=this.options.overloadTranslationOptionHandler([a,l].concat(c)):u={...l},u.lng=u.lng||o.lng,u.lngs=u.lngs||o.lngs,u.ns=u.ns||o.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||s||o.keyPrefix);const d=this.options.keySeparator||".";let p;return u.keyPrefix&&Array.isArray(a)?p=a.map(m=>(typeof m=="function"&&(m=keysFromSelector(m,{...this.options,...l})),`${u.keyPrefix}${d}${m}`)):(typeof a=="function"&&(a=keysFromSelector(a,{...this.options,...l})),p=u.keyPrefix?`${u.keyPrefix}${d}${a}`:a),this.t(p,u)};return isString(t)?o.lng=t:o.lngs=t,o.ns=i,o.keyPrefix=s,o}t(...t){var i;return(i=this.translator)==null?void 0:i.translate(...t)}exists(...t){var i;return(i=this.translator)==null?void 0:i.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=i.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const l=(c,u)=>{const d=this.services.backendConnector.state[`${c}|${u}`];return d===-1||d===0||d===2};if(i.precheck){const c=i.precheck(this,l);if(c!==void 0)return c}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(s,t)&&(!o||l(a,t)))}loadNamespaces(t,i){const s=defer();return this.options.ns?(isString(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{s.resolve(),i&&i(o)}),s):(i&&i(),Promise.resolve())}loadLanguages(t,i){const s=defer();isString(t)&&(t=[t]);const o=this.options.preload||[],a=t.filter(l=>o.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return a.length?(this.options.preload=o.concat(a),this.loadResources(l=>{s.resolve(),i&&i(l)}),s):(i&&i(),Promise.resolve())}dir(t){var o,a;if(t||(t=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const l=new Intl.Locale(t);if(l&&l.getTextInfo){const c=l.getTextInfo();if(c&&c.direction)return c.direction}}catch{}const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((a=this.services)==null?void 0:a.languageUtils)||new LanguageUtil(get());return t.toLowerCase().indexOf("-latn")>1?"ltr":i.indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},i){return new I18n(t,i)}cloneInstance(t={},i=noop){const s=t.forkResourceStore;s&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new I18n(o);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(c=>{a[c]=this[c]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},s){const c=Object.keys(this.store.data).reduce((u,d)=>(u[d]={...this.store.data[d]},u[d]=Object.keys(u[d]).reduce((p,m)=>(p[m]={...u[d][m]},p),u[d]),u),{});a.store=new ResourceStore(c,o),a.services.resourceStore=a.store}return a.translator=new Translator(a.services,o),a.translator.on("*",(c,...u)=>{a.emit(c,...u)}),a.init(o,i),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const instance=I18n.createInstance();instance.createInstance=I18n.createInstance,instance.createInstance,instance.dir,instance.init,instance.loadResources,instance.reloadResources,instance.use,instance.changeLanguage,instance.getFixedT,instance.t,instance.exists,instance.setDefaultNamespace,instance.hasLoadedNamespace,instance.loadNamespaces,instance.loadLanguages;const balance$4="Balance",topUp$4="Top Up",ads$4="Ads",adsOn$4="On",adsOff$4="Off",level$4="Level",toLevelUp$4="to lvl up",xpCounter$4="/ {{total}} XP",lootBox$4="Loot Box",forLevel$4="for level {{level}}",unopenedLootBox$4="Unopened Loot Box",emptyBox$4="Empty Box",openItem$4="Open Item",reward_type$4={coins:"{{count}} coin",coins_one:"{{count}} coin",coins_few:"{{count}} coins",coins_many:"{{count}} coins",usdt_no_amount:"USDT",coins_no_amount:"Coins",usdt:"{{count}} USDT",usdt_one:"{{count}} USDT",usdt_few:"{{count}} USDT",usdt_many:"{{count}} USDT",ton:"{{count}} TON",ton_one:"{{count}} TON",ton_few:"{{count}} TON",ton_many:"{{count}} TON",telegram_premium:"Telegram Premium",double_balance:"Double Balance",box:"LOOT BOX",box_common:"BASIC",box_rare:"RARE",box_epic:"EPIC",box_legend:"LEGEND"},confirmIframe$4={pay:"Pay",cancel:"Cancel"},months$4={january:"Jan",february:"Feb",march:"Mar",april:"Apr",may:"May",june:"Jun",july:"Jul",august:"Aug",september:"Sep",october:"Oct",november:"Nov",december:"Dec"},box_open$4={skip:"Skip",you_ve_got:"You’ve got",button_reveal_reward:"Reveal Reward",button_open_now:"Open Now",button_save_inventory:"Save to Inventory",button_unopened_boxes:"Unopened Loot Boxes",recent_rewards:"Recent rewards",later_open_later_inventory:"You can open it later in inventory"},common$4={error:"Oops! Something went wrong. Please try again later.",continue:"Continue",ok:"OK",timeAgo:{sec_zero:"{{count}} seconds ago",sec_one:"{{count}} second ago",sec_two:"{{count}} seconds ago",sec_few:"{{count}} seconds ago",sec_many:"{{count}} seconds ago",sec_other:"{{count}} seconds ago",now:"Just now",min_zero:"{{count}} minutes ago",min_one:"{{count}} minute ago",min_two:"{{count}} minutes ago",min_few:"{{count}} minutes ago",min_many:"{{count}} minutes ago",min_other:"{{count}} minutes ago",h_zero:"{{count}} hours ago",h_one:"{{count}} hour ago",h_two:"{{count}} hours ago",h_few:"{{count}} hours ago",h_many:"{{count}} hours ago",h_other:"{{count}} hours ago",d_zero:"{{count}} days ago",d_one:"{{count}} day ago",d_two:"{{count}} days ago",d_few:"{{count}} days ago",d_many:"{{count}} days ago",d_other:"{{count}} days ago"}},snackbar$4={purchase:{blackHolePurchaseChest:"Purchase",blackHolePurchaseLevel:"Purchase",blackHolePurchaseAutoBurn:"Purchase",walletPurchaseGems:"Purchase",blackHoleBurnCoins:"Burned",error:"Failed to make a purchase"},receiving:{claimedTask:"Received"}},purchaseAdsFreeModal$4={title:"Remove Ads",disableAllInterruptions:"Disable all interruptions in games with a recurring monthly subscription. No worries, you will also have the option to turn ads on back if you want anytime!",noInterruptionsInGames:"No interruptions in games with a recurring subscription.",activeRecurring:"Active recurring payments at {{price}}",aMonth:" a month.",nextPayment:"Next payment {{date}}",activeUntil:"Active until {{date}}",subscriptionPaused:"Subscription is Paused",resumeSubscription:"Resume Subscription",cancelSubscription:"Cancel Subscription",continue:"Continue",month:"{{price}} / month",errorCancelSubscription:"Failed to cancel subscription. Please try again"},levelInfoModal$4={title:"Your Level",description:"Gain experience by playing games. For leveling up you get loot boxes, which may contain USDT, coins or better loot boxes. Compete with other players to win real USDT every week.",action:"Got It"},topUpModal$4={balance:"Balance",topUpBalance:"Top Up Gems",coins:"coins",gems:"gems",topUp:"Top Up"},inventoryModal$4={title:"Inventory",description:"It's your personal storage space for all unopened loot boxes. Tap each image to reveal reward inside!"},en={balance:balance$4,topUp:topUp$4,ads:ads$4,adsOn:adsOn$4,adsOff:adsOff$4,level:level$4,toLevelUp:toLevelUp$4,xpCounter:xpCounter$4,lootBox:lootBox$4,forLevel:forLevel$4,unopenedLootBox:unopenedLootBox$4,emptyBox:emptyBox$4,openItem:openItem$4,reward_type:reward_type$4,confirmIframe:confirmIframe$4,months:months$4,box_open:box_open$4,common:common$4,snackbar:snackbar$4,purchaseAdsFreeModal:purchaseAdsFreeModal$4,levelInfoModal:levelInfoModal$4,topUpModal:topUpModal$4,inventoryModal:inventoryModal$4},balance$3="Saldo",topUp$3="Recargar",ads$3="Anuncios",adsOn$3="On",adsOff$3="Off",level$3="Nivel",toLevelUp$3="para subir de nivel",xpCounter$3="/ {{total}} XP",lootBox$3="Caja de botín",forLevel$3="para el nivel {{level}}",unopenedLootBox$3="Caja de botín sin abrir",emptyBox$3="Caja vacía",openItem$3="Abrir objeto",reward_type$3={coins:"{{count}} moneda",coins_one:"{{count}} moneda",coins_few:"{{count}} monedas",coins_many:"{{count}} monedas",usdt_no_amount:"USDT",coins_no_amount:"Monedas",usdt:"{{count}} USDT",usdt_one:"{{count}} USDT",usdt_few:"{{count}} USDT",usdt_many:"{{count}} USDT",ton:"{{count}} TON",ton_one:"{{count}} TON",ton_few:"{{count}} TON",ton_many:"{{count}} TON",telegram_premium:"Telegram Premium",double_balance:"Doble saldo",box:"CAJA DE BOTÍN",box_common:"BÁSICA",box_rare:"RARA",box_epic:"ÉPICA",box_legend:"LEGENDARIA"},confirmIframe$3={pay:"Pagar",cancel:"Cancelar"},months$3={january:"Ene",february:"Feb",march:"Mar",april:"Abr",may:"May",june:"Jun",july:"Jul",august:"Ago",september:"Sep",october:"Oct",november:"Nov",december:"Dic"},box_open$3={skip:"Omitir",you_ve_got:"Obtuviste",button_reveal_reward:"Revelar recompensa",button_open_now:"Abrir ahora",button_save_inventory:"Guardar en inventario",button_unopened_boxes:"Inventario",recent_rewards:"Recientes",later_open_later_inventory:"Puedes abrirla más tarde en el inventario"},common$3={error:"¡Ups! Algo salió mal. Inténtalo de nuevo más tarde.",continue:"Continuar",ok:"OK",timeAgo:{sec_zero:"hace {{count}} segundos",sec_one:"hace {{count}} segundo",sec_two:"hace {{count}} segundos",sec_few:"hace {{count}} segundos",sec_many:"hace {{count}} segundos",sec_other:"hace {{count}} segundos",now:"Justo ahora",min_zero:"hace {{count}} minutos",min_one:"hace {{count}} minuto",min_two:"hace {{count}} minutos",min_few:"hace {{count}} minutos",min_many:"hace {{count}} minutos",min_other:"hace {{count}} minutos",h_zero:"hace {{count}} horas",h_one:"hace {{count}} hora",h_two:"hace {{count}} horas",h_few:"hace {{count}} horas",h_many:"hace {{count}} horas",h_other:"hace {{count}} horas",d_zero:"hace {{count}} días",d_one:"hace {{count}} día",d_two:"hace {{count}} días",d_few:"hace {{count}} días",d_many:"hace {{count}} días",d_other:"hace {{count}} días"}},snackbar$3={purchase:{blackHolePurchaseChest:"Compra",blackHolePurchaseLevel:"Compra",blackHolePurchaseAutoBurn:"Compra",walletPurchaseGems:"Compra",blackHoleBurnCoins:"Quemado",error:"No se pudo realizar la compra"},receiving:{claimedTask:"Recibido"}},purchaseAdsFreeModal$3={title:"Eliminar anuncios",disableAllInterruptions:"Desactiva todas las interrupciones en los juegos con una suscripción mensual recurrente. No te preocupes, ¡también tendrás la opción de activar los anuncios cuando quieras!",noInterruptionsInGames:"Sin interrupciones en los juegos con una suscripción recurrente.",activeRecurring:"Pagos recurrentes activos a {{price}}",aMonth:" al mes.",nextPayment:"Próximo pago {{date}}",activeUntil:"Activo hasta {{date}}",subscriptionPaused:"La suscripción está en pausa",resumeSubscription:"Reanudar suscripción",cancelSubscription:"Cancelar suscripción",continue:"Continuar",month:"{{price}} / mes",errorCancelSubscription:"No se pudo cancelar la suscripción. Inténtalo de nuevo"},levelInfoModal$3={title:"Tu nivel",description:"Gana experiencia jugando. Al subir de nivel obtienes cajas de botín, que pueden contener USDT, monedas o mejores cajas. Compite con otros jugadores para ganar USDT real cada semana.",action:"Entendido"},topUpModal$3={balance:"Saldo",topUpBalance:"Recargar gemas",coins:"monedas",gems:"gemas",topUp:"Recargar"},inventoryModal$3={title:"Inventario",description:"Es tu espacio de almacenamiento personal para todas las cajas de botín sin abrir. Toca cada imagen para revelar la recompensa dentro."},es={balance:balance$3,topUp:topUp$3,ads:ads$3,adsOn:adsOn$3,adsOff:adsOff$3,level:level$3,toLevelUp:toLevelUp$3,xpCounter:xpCounter$3,lootBox:lootBox$3,forLevel:forLevel$3,unopenedLootBox:unopenedLootBox$3,emptyBox:emptyBox$3,openItem:openItem$3,reward_type:reward_type$3,confirmIframe:confirmIframe$3,months:months$3,box_open:box_open$3,common:common$3,snackbar:snackbar$3,purchaseAdsFreeModal:purchaseAdsFreeModal$3,levelInfoModal:levelInfoModal$3,topUpModal:topUpModal$3,inventoryModal:inventoryModal$3},balance$2="बैलेंस",topUp$2="रिचार्ज",ads$2="विज्ञापन",adsOn$2="चालू",adsOff$2="बंद",level$2="स्तर",toLevelUp$2="लेवल अप तक",xpCounter$2="/ {{total}} XP",lootBox$2="लूट बॉक्स",forLevel$2="स्तर {{level}} के लिए",unopenedLootBox$2="बिना खोले गए लूट बॉक्स",emptyBox$2="खाली बॉक्स",openItem$2="आइटम खोलें",reward_type$2={coins:"{{count}} सिक्के",coins_one:"{{count}} सिक्का",coins_few:"{{count}} सिक्के",coins_many:"{{count}} सिक्के",coins_no_amount:"सिक्के",usdt_no_amount:"USDT",usdt:"{{count}} USDT",usdt_one:"{{count}} USDT",usdt_few:"{{count}} USDT",usdt_many:"{{count}} USDT",ton:"{{count}} TON",ton_one:"{{count}} TON",ton_few:"{{count}} TON",ton_many:"{{count}} TON",telegram_premium:"टेलीग्राम प्रीमियम",double_balance:"दोगुनी शेष राशि",box:"लूट बॉक्स",box_common:"बुनियादी",box_rare:"दुर्लभ",box_epic:"महाकाव्य",box_legend:"दंतकथा"},confirmIframe$2={pay:"भुगतान करें",cancel:"रद्द करें"},months$2={january:"जन",february:"फ़र",march:"मार्च",april:"अप्रै",may:"मई",june:"जून",july:"जुला",august:"अग",september:"सितं",october:"अक्टू",november:"नवं",december:"दिसं"},box_open$2={skip:"छोड़ें",you_ve_got:"आपको मिला",button_reveal_reward:"पुरस्कार प्रकट करें",button_open_now:"अभी खोलें",button_save_inventory:"इन्वेंटरी में सहेजें",button_unopened_boxes:"अनपेट लूट बॉक्स",recent_rewards:"हाल के पुरस्कार",later_open_later_inventory:"आप इसे बाद में इन्वेंटरी में खोल सकते हैं"},common$2={error:"उफ़! कुछ गलत हो गया। कृपया बाद में फिर प्रयास करें।",continue:"जारी रखें",ok:"ठीक है",timeAgo:{sec_zero:"{{count}} सेकंड पहले",sec_one:"{{count}} सेकंड पहले",sec_two:"{{count}} सेकंड पहले",sec_few:"{{count}} सेकंड पहले",sec_many:"{{count}} सेकंड पहले",sec_other:"{{count}} सेकंड पहले",now:"अभी",min_zero:"{{count}} मिनट पहले",min_one:"{{count}} मिनट पहले",min_two:"{{count}} मिनट पहले",min_few:"{{count}} मिनट पहले",min_many:"{{count}} मिनट पहले",min_other:"{{count}} मिनट पहले",h_zero:"{{count}} घंटे पहले",h_one:"{{count}} घंटा पहले",h_two:"{{count}} घंटे पहले",h_few:"{{count}} घंटे पहले",h_many:"{{count}} घंटे पहले",h_other:"{{count}} घंटे पहले",d_zero:"{{count}} दिन पहले",d_one:"{{count}} दिन पहले",d_two:"{{count}} दिन पहले",d_few:"{{count}} दिन पहले",d_many:"{{count}} दिन पहले",d_other:"{{count}} दिन पहले"}},snackbar$2={purchase:{blackHolePurchaseChest:"खरीद",blackHolePurchaseLevel:"खरीद",blackHolePurchaseAutoBurn:"खरीद",walletPurchaseGems:"खरीद",blackHoleBurnCoins:"जलाया गया",error:"खरीदारी विफल रही"},receiving:{claimedTask:"प्राप्त"}},purchaseAdsFreeModal$2={title:"विज्ञापन हटाएँ",disableAllInterruptions:"मासिक आवर्ती सदस्यता के साथ खेलों में सभी बाधाएँ बंद करें। चिंता न करें, आप चाहें तो किसी भी समय विज्ञापन फिर से चालू कर सकते हैं!",noInterruptionsInGames:"आवर्ती सदस्यता के साथ खेलों में कोई व्यवधान नहीं।",activeRecurring:"सक्रिय आवर्ती भुगतान {{price}} पर",aMonth:" प्रति माह.",nextPayment:"अगला भुगतान {{date}}",activeUntil:"{{date}} तक सक्रिय",subscriptionPaused:"सदस्यता रोकी गई है",resumeSubscription:"सदस्यता फिर शुरू करें",cancelSubscription:"सदस्यता रद्द करें",continue:"जारी रखें",month:"{{price}} / माह",errorCancelSubscription:"सदस्यता रद्द नहीं हो सकी। कृपया पुनः प्रयास करें"},levelInfoModal$2={title:"आपका स्तर",description:"गेम खेलकर अनुभव अर्जित करें। लेवल बढ़ाने पर आपको लूट बॉक्स मिलते हैं जिनमें USDT, कॉइन्स या बेहतर लूट बॉक्स हो सकते हैं। हर सप्ताह वास्तविक USDT जीतने के लिए अन्य खिलाड़ियों से प्रतिस्पर्धा करें।",action:"समझ गया"},topUpModal$2={balance:"बैलेंस",topUpBalance:"जेम्स रिचार्ज करें",coins:"कॉइन्स",gems:"जेम्स",topUp:"रिचार्ज"},inventoryModal$2={title:"इन्वेंटरी",description:"यह आपके सभी बिना खुले लूट बॉक्स के लिए आपका व्यक्तिगत स्टोरेज स्पेस है। अंदर का इनाम प्रकट करने के लिए हर छवि पर टैप करें!"},hi={balance:balance$2,topUp:topUp$2,ads:ads$2,adsOn:adsOn$2,adsOff:adsOff$2,level:level$2,toLevelUp:toLevelUp$2,xpCounter:xpCounter$2,lootBox:lootBox$2,forLevel:forLevel$2,unopenedLootBox:unopenedLootBox$2,emptyBox:emptyBox$2,openItem:openItem$2,reward_type:reward_type$2,confirmIframe:confirmIframe$2,months:months$2,box_open:box_open$2,common:common$2,snackbar:snackbar$2,purchaseAdsFreeModal:purchaseAdsFreeModal$2,levelInfoModal:levelInfoModal$2,topUpModal:topUpModal$2,inventoryModal:inventoryModal$2},balance$1="Saldo",topUp$1="Recarregar",ads$1="Anúncios",adsOn$1="On",adsOff$1="Off",level$1="Nível",toLevelUp$1="para subir de nível",xpCounter$1="/ {{total}} XP",lootBox$1="Caixa de loot",forLevel$1="para o nível {{level}}",unopenedLootBox$1="Caixa de Loot Não Aberta",emptyBox$1="Caixa vazia",openItem$1="Abrir item",reward_type$1={coins:"{{count}} moeda",coins_one:"{{count}} moeda",coins_few:"{{count}} moedas",coins_many:"{{count}} moedas",usdt_no_amount:"USDT",coins_no_amount:"Moedas",usdt:"{{count}} USDT",usdt_one:"{{count}} USDT",usdt_few:"{{count}} USDT",usdt_many:"{{count}} USDT",ton:"{{count}} TON",ton_one:"{{count}} TON",ton_few:"{{count}} TON",ton_many:"{{count}} TON",telegram_premium:"Telegram Premium",double_balance:"Saldo Duplo",box:"CAIXA DE LOOT",box_common:"BÁSICA",box_rare:"RARA",box_epic:"ÉPICA",box_legend:"LENDÁRIA"},confirmIframe$1={pay:"Pagar",cancel:"Cancelar"},months$1={january:"Jan",february:"Fev",march:"Mar",april:"Abr",may:"Mai",june:"Jun",july:"Jul",august:"Ago",september:"Set",october:"Out",november:"Nov",december:"Dez"},box_open$1={skip:"Pular",you_ve_got:"Você recebeu",button_reveal_reward:"Revelar Recompensa",button_open_now:"Abrir Agora",button_save_inventory:"Salvar no Inventário",button_unopened_boxes:"Inventário",recent_rewards:"Recentes",later_open_later_inventory:"Você pode abrir mais tarde no inventário"},common$1={error:"Ops! Algo deu errado. Tente novamente mais tarde.",continue:"Continuar",ok:"OK",timeAgo:{sec_zero:"há {{count}} segundos",sec_one:"há {{count}} segundo",sec_two:"há {{count}} segundos",sec_few:"há {{count}} segundos",sec_many:"há {{count}} segundos",sec_other:"há {{count}} segundos",now:"Agora mesmo",min_zero:"há {{count}} minutos",min_one:"há {{count}} minuto",min_two:"há {{count}} minutos",min_few:"há {{count}} minutos",min_many:"há {{count}} minutos",min_other:"há {{count}} minutos",h_zero:"há {{count}} horas",h_one:"há {{count}} hora",h_two:"há {{count}} horas",h_few:"há {{count}} horas",h_many:"há {{count}} horas",h_other:"há {{count}} horas",d_zero:"há {{count}} dias",d_one:"há {{count}} dia",d_two:"há {{count}} dias",d_few:"há {{count}} dias",d_many:"há {{count}} dias",d_other:"há {{count}} dias"}},snackbar$1={purchase:{blackHolePurchaseChest:"Compra",blackHolePurchaseLevel:"Compra",blackHolePurchaseAutoBurn:"Compra",walletPurchaseGems:"Compra",blackHoleBurnCoins:"Queimado",error:"Falha ao realizar a compra"},receiving:{claimedTask:"Recebido"}},purchaseAdsFreeModal$1={title:"Remover anúncios",disableAllInterruptions:"Desative todas as interrupções nos jogos com uma assinatura mensal recorrente. Sem preocupações, você também poderá ligar os anúncios quando quiser!",noInterruptionsInGames:"Sem interrupções nos jogos com uma assinatura recorrente.",activeRecurring:"Pagamentos recorrentes ativos em {{price}}",aMonth:" por mês.",nextPayment:"Próximo pagamento {{date}}",activeUntil:"Ativo até {{date}}",subscriptionPaused:"A assinatura está em pausa",resumeSubscription:"Retomar assinatura",cancelSubscription:"Cancelar assinatura",continue:"Continuar",month:"{{price}} / mês",errorCancelSubscription:"Falha ao cancelar a assinatura. Tente novamente"},levelInfoModal$1={title:"Seu nível",description:"Ganhe experiência jogando. Ao subir de nível você recebe caixas de loot, que podem conter USDT, moedas ou caixas melhores. Compita com outros jogadores para ganhar USDT real toda semana.",action:"Entendi"},topUpModal$1={balance:"Saldo",topUpBalance:"Recarregar gemas",coins:"moedas",gems:"gemas",topUp:"Recarregar"},inventoryModal$1={title:"Inventário",description:"É o seu espaço pessoal de armazenamento para todas as caixas de loot não abertas. Toque em cada imagem para revelar a recompensa dentro!"},pt={balance:balance$1,topUp:topUp$1,ads:ads$1,adsOn:adsOn$1,adsOff:adsOff$1,level:level$1,toLevelUp:toLevelUp$1,xpCounter:xpCounter$1,lootBox:lootBox$1,forLevel:forLevel$1,unopenedLootBox:unopenedLootBox$1,emptyBox:emptyBox$1,openItem:openItem$1,reward_type:reward_type$1,confirmIframe:confirmIframe$1,months:months$1,box_open:box_open$1,common:common$1,snackbar:snackbar$1,purchaseAdsFreeModal:purchaseAdsFreeModal$1,levelInfoModal:levelInfoModal$1,topUpModal:topUpModal$1,inventoryModal:inventoryModal$1},balance="Баланс",topUp="Пополнить",ads="Реклама",adsOn="Вкл.",adsOff="Выкл.",level="Уровень",toLevelUp="до повышения уровня",xpCounter="/ {{total}} XP",lootBox="Лутбокс",forLevel="для уровня {{level}}",unopenedLootBox="Неоткрытый лутбокс",emptyBox="Пустой бокс",openItem="Открыть предмет",reward_type={coins:"{{count}} монета",coins_one:"{{count}} монета",coins_few:"{{count}} монеты",coins_many:"{{count}} монет",usdt_no_amount:"USDT",coins_no_amount:"Монеты",usdt:"{{count}} USDT",usdt_one:"{{count}} USDT",usdt_few:"{{count}} USDT",usdt_many:"{{count}} USDT",ton:"{{count}} TON",ton_one:"{{count}} TON",ton_few:"{{count}} TON",ton_many:"{{count}} TON",telegram_premium:"Телеграм Премиум",double_balance:"Двойной баланс",box:"ЛУТ БОКС",box_common:"ОБЫЧНЫЙ",box_rare:"РЕДКИЙ",box_epic:"ЭПИК",box_legend:"ЛЕГЕНДАРНЫЙ"},confirmIframe={pay:"Оплатить",cancel:"Отменить"},months={january:"янв",february:"фев",march:"мар",april:"апр",may:"май",june:"июн",july:"июл",august:"авг",september:"сен",october:"окт",november:"ноя",december:"дек"},box_open={skip:"Пропустить",you_ve_got:"Получено",button_reveal_reward:"Узнать награду",button_open_now:"Открыть",button_save_inventory:"Оставить в инвентаре",button_unopened_boxes:"Неоткрытые лутбоксы",recent_rewards:"Недавние",later_open_later_inventory:"Можно открыть его позже в инвентаре"},common={error:"Упс! Что-то пошло не так. Попробуй позже.",continue:"Продолжить",ok:"OK",timeAgo:{sec_zero:"{{count}} секунд назад",sec_one:"{{count}} секунду назад",sec_two:"{{count}} секунды назад",sec_few:"{{count}} секунды назад",sec_many:"{{count}} секунд назад",sec_other:"{{count}} секунд назад",now:"Только что",min_zero:"{{count}} минут назад",min_one:"{{count}} минуту назад",min_two:"{{count}} минуты назад",min_few:"{{count}} минуты назад",min_many:"{{count}} минут назад",min_other:"{{count}} минут назад",h_zero:"{{count}} часов назад",h_one:"{{count}} час назад",h_two:"{{count}} часа назад",h_few:"{{count}} часа назад",h_many:"{{count}} часов назад",h_other:"{{count}} часов назад",d_zero:"{{count}} дней назад",d_one:"{{count}} день назад",d_two:"{{count}} дня назад",d_few:"{{count}} дня назад",d_many:"{{count}} дней назад",d_other:"{{count}} дней назад"}},snackbar={purchase:{blackHolePurchaseChest:"Покупка",blackHolePurchaseLevel:"Покупка",blackHolePurchaseAutoBurn:"Покупка",walletPurchaseGems:"Покупка",blackHoleBurnCoins:"Сожжено",error:"Не удалось совершить покупку"},receiving:{claimedTask:"Получено"}},purchaseAdsFreeModal={title:"Удалить рекламу",disableAllInterruptions:"Отключите все прерывания в играх с ежемесячной подпиской. Не волнуйтесь, при желании вы всегда сможете снова включить рекламу!",noInterruptionsInGames:"Без прерываний в играх при оформленной подписке.",activeRecurring:"Активные регулярные платежи по цене {{price}}",aMonth:" в месяц.",nextPayment:"Следующий платеж {{date}}",activeUntil:"Активна до {{date}}",subscriptionPaused:"Подписка приостановлена",resumeSubscription:"Возобновить подписку",cancelSubscription:"Отменить подписку",continue:"Продолжить",month:"{{price}} / месяц",errorCancelSubscription:"Не удалось отменить подписку. Пожалуйста, попробуйте еще раз"},levelInfoModal={title:"Ваш уровень",description:"Получайте опыт, играя в игры. За повышение уровня вы получаете лутбоксы, в которых могут быть USDT, монеты или более ценные лутбоксы. Соревнуйтесь с другими игроками, чтобы выигрывать реальные USDT каждую неделю.",action:"Понял"},topUpModal={balance:"Баланс",topUpBalance:"Пополнить баланс",coins:"монет",gems:"алмазов",topUp:"Пополнить"},inventoryModal={title:"Инвентарь",description:"Это твоё персональное хранилище для неоткрытых лутбоксов. Нажми на каждый, чтобы узнать, какая внутри награда!"},ru={balance,topUp,ads,adsOn,adsOff,level,toLevelUp,xpCounter,lootBox,forLevel,unopenedLootBox,emptyBox,openItem,reward_type,confirmIframe,months,box_open,common,snackbar,purchaseAdsFreeModal,levelInfoModal,topUpModal,inventoryModal};var define_process_env_default$2={NODE_ENV:"production",version:"1.92.2",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"};const resources={en:{translation:en},ru:{translation:ru},hi:{translation:hi},es:{translation:es},pt:{translation:pt}};instance.use(initReactI18next).init({resources,fallbackLng:"en",supportedLngs:supportedLanguages,debug:define_process_env_default$2.NODE_ENV==="development",interpolation:{escapeValue:!1}});const translationsTyped=(e,t)=>instance.t(e,t),PROVIDER_COLORS={Orbit:"#3b82f6",TMA:"#22c55e",Monetag:"#f97316",Adsgram:"#a855f7",Gigapub:"#14b8a6",Banner:"#ec4899",SDK:"#6366f1"},ADS_BADGE_STYLE="background:#1e293b;color:#38bdf8;padding:2px 6px;border-radius:3px;font-weight:bold";function getProviderStyle(e){return`background:${PROVIDER_COLORS[e]||"#94a3b8"};color:#fff;padding:2px 6px;border-radius:3px;font-weight:bold`}function formatTimestamp(){return`${(performance.now()/1e3).toFixed(2)}s`}function createAdLogger(e){const t=new Map,i=getProviderStyle(e);return{info(s,o){o!==void 0?console.log(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:inherit",o):console.log(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:inherit")},warn(s,o){o!==void 0?console.warn(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:#f59e0b;font-weight:bold",o):console.warn(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:#f59e0b;font-weight:bold")},error(s,o){o!==void 0?console.error(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:#ef4444;font-weight:bold",o):console.error(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:#ef4444;font-weight:bold")},group(s){console.groupCollapsed(`%c ADS %c ${e} %c ${s} [${formatTimestamp()}]`,ADS_BADGE_STYLE,i,"color:inherit;font-weight:bold")},groupEnd(){console.groupEnd()},time(s){t.set(s,performance.now())},timeEnd(s){const o=t.get(s);if(o!==void 0){const a=performance.now()-o;t.delete(s),console.log(`%c ADS %c ${e} %c ${s} took ${a.toFixed(0)}ms`,ADS_BADGE_STYLE,i,"color:#38bdf8;font-style:italic")}}}}const log$5=createAdLogger("Banner");class BannerManager{constructor(t){this.containerId=(t==null?void 0:t.containerId)||"overlay-banner-bottom",this.bannerHeight=(t==null?void 0:t.height)||60,this.animationDuration=(t==null?void 0:t.animationDuration)||300}async checkBannerPermission(t){try{const i=await t();return i.ads_free?(log$5.info("Banner disabled: user has ads_free flag"),!1):Array.isArray(i==null?void 0:i.audiences)&&i.audiences.includes("banner_test")?!0:(log$5.info("Banner test flag not found in user profile audiences"),!1)}catch(i){return log$5.error("Error checking banner permission",i),!1}}async setBanner(t,i){try{if(!await this.checkBannerPermission(i))return;const o=document.getElementById(this.containerId);if(!o){log$5.warn(`Banner container with id "${this.containerId}" not found`);return}o.classList.remove("cssdk-banner-hide"),typeof t=="string"?o.innerHTML=t:(o.innerHTML="",o.appendChild(t)),document.documentElement.style.setProperty("--banner-bottom-height",`${this.bannerHeight}px`),requestAnimationFrame(()=>{o.classList.add("cssdk-banner-show")})}catch(s){log$5.error("setBanner error",s)}}createDefaultContent(){return`
|
|
194
194
|
<div style="
|
|
195
195
|
display: flex;
|
|
196
196
|
align-items: center;
|
|
@@ -210,4 +210,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
210
210
|
<div>Реклама</div>
|
|
211
211
|
</div>
|
|
212
212
|
</div>
|
|
213
|
-
`}clearBanner(){const t=document.getElementById(this.containerId);if(!t){log$5.warn(`Banner container with id "${this.containerId}" not found`);return}t.classList.add("cssdk-banner-hide"),t.classList.remove("cssdk-banner-show"),setTimeout(()=>{t.innerHTML="",document.documentElement.style.setProperty("--banner-bottom-height","0px")},this.animationDuration)}getHeight(){return this.bannerHeight}isVisible(){const t=document.getElementById(this.containerId);return(t==null?void 0:t.classList.contains("cssdk-banner-show"))||!1}}const TELEGRAM_SCRIPT_URL="https://telegram.org/js/telegram-web-app.js?59";function ensureTelegramWebApp(){var e;return(e=window.Telegram)!=null&&e.WebApp?Promise.resolve(window.Telegram.WebApp):new Promise((t,i)=>{const s=document.querySelector('script[src*="telegram-web-app.js"]');if(s){s.addEventListener("load",()=>{var a;(a=window.Telegram)!=null&&a.WebApp?t(window.Telegram.WebApp):i(new Error("Telegram WebApp not available after script load"))}),s.addEventListener("error",()=>i(new Error("Failed to load Telegram WebApp script")));return}const o=document.createElement("script");o.src=TELEGRAM_SCRIPT_URL,o.async=!1,o.onload=()=>{var a;(a=window.Telegram)!=null&&a.WebApp?t(window.Telegram.WebApp):i(new Error("Telegram WebApp not available after script load"))},o.onerror=()=>i(new Error("Failed to load Telegram WebApp script")),document.head.appendChild(o)})}function getTelegramWebApp(){var t;const e=(t=window.Telegram)==null?void 0:t.WebApp;if(!e)throw new Error("Telegram WebApp is not available. Ensure ensureTelegramWebApp() was awaited before calling this.");return e}const DEFAULT_CONFIG={inactivityTimeout:15e3,activityScoreThreshold:10,motionThreshold:.05,gyroscopeThreshold:.05,checkInterval:1e3,maxActivityScore:15,scoreDecayRate:.95,autoclickerDetection:{enabled:!0,maxIdenticalIntervals:5,minTimingVariation:10,maxIdenticalPositions:3,requiredMotionThreshold:.5}};class ActivityDetector{constructor(t={}){this.listeners=new Set,this.checkInterval=null,this.domEventListeners=[],this.lastMotionData=null,this.lastGyroscopeData=null,this.config={...DEFAULT_CONFIG,...t};try{this.isTelegramAvailable=!!getTelegramWebApp().platform}catch{this.isTelegramAvailable=!1}this.state=this.initializeState(),this.setupActivityDetection()}initializeState(){const t=this.detectPlatform(),i=this.checkMotionSupport(),s=this.checkGyroscopeSupport();return{isActive:!0,lastActivityTime:Date.now(),activityScore:100,platform:t,hasMotionSupport:i,hasGyroscopeSupport:s,autoclickerDetected:!1,clickPattern:{lastClickTime:0,lastClickPosition:{x:0,y:0},timingHistory:[],positionHistory:[]}}}detectPlatform(){if(this.isTelegramAvailable){const i=getTelegramWebApp().platform;return i==="android"||i==="ios"?"mobile":"desktop"}const t=navigator.userAgent.toLowerCase();return/mobile|android|iphone|ipad|phone/i.test(t)?"mobile":"desktop"}checkMotionSupport(){return this.isTelegramAvailable?!!getTelegramWebApp().isVersionAtLeast("6.1"):!1}checkGyroscopeSupport(){return this.isTelegramAvailable?!!getTelegramWebApp().isVersionAtLeast("6.1"):!1}setupActivityDetection(){this.setupDOMEvents(),this.setupTelegramSensors(),this.startPeriodicCheck()}setupDOMEvents(){["mousedown","mousemove","click","touchstart","touchmove","touchend","keydown","keyup","scroll","wheel","focus","blur"].forEach(i=>{const s=this.createActivityListener();document.addEventListener(i,s,{passive:!0}),this.domEventListeners.push({event:i,listener:s})})}createActivityListener(){return t=>{if(this.config.autoclickerDetection.enabled&&this.detectAutoclicker(t)){this.state={...this.state,autoclickerDetected:!0};return}this.updateActivity(5)}}detectAutoclicker(t){const i=Date.now(),s=this.getEventPosition(t),o=i-this.state.clickPattern.lastClickTime,a=[...this.state.clickPattern.timingHistory,o],l=this.countIdenticalIntervals(a),c=this.countIdenticalPositions(s),u=this.state.motionData&&Math.abs(this.state.motionData.x)+Math.abs(this.state.motionData.y)+Math.abs(this.state.motionData.z)>this.config.autoclickerDetection.requiredMotionThreshold,d=l>this.config.autoclickerDetection.maxIdenticalIntervals||c>this.config.autoclickerDetection.maxIdenticalPositions||this.state.platform==="mobile"&&!u;return this.state.clickPattern={lastClickTime:i,lastClickPosition:s,timingHistory:a.slice(-10),positionHistory:[...this.state.clickPattern.positionHistory,{...s,time:i}].slice(-10)},d}countIdenticalIntervals(t){if(t.length<2)return 0;let i=0;for(let s=1;s<t.length;s++)if(Math.abs(t[s]-t[s-1])<this.config.autoclickerDetection.minTimingVariation?i++:i=0,i>=this.config.autoclickerDetection.maxIdenticalIntervals)return i;return i}countIdenticalPositions(t){const i=this.state.clickPattern.positionHistory;if(i.length===0)return 0;let s=0;for(let o=i.length-1;o>=0;o--){const a=i[o];if(Math.abs(t.x-a.x)<2&&Math.abs(t.y-a.y)<2)s++;else break;if(s>=this.config.autoclickerDetection.maxIdenticalPositions)return s}return s}getEventPosition(t){if(t.type.includes("touch")){const i=t;if(i.touches.length>0)return{x:i.touches[0].clientX,y:i.touches[0].clientY}}else if(t.type.includes("mouse")){const i=t;return{x:i.clientX,y:i.clientY}}return{x:0,y:0}}setupTelegramSensors(){if(!this.isTelegramAvailable){console.warn("Activity Detection: Telegram WebApp not available. Motion and gyroscope sensors will not work.");return}const t=getTelegramWebApp();this.state.hasMotionSupport&&t.Accelerometer&&t.Accelerometer.start({refresh_rate:1e3},i=>{i&&t.onEvent("accelerometerChanged",()=>{const s=t.Accelerometer;s&&s.isStarted&&this.handleMotionData(s.x,s.y,s.z)})}),this.state.hasGyroscopeSupport&&t.DeviceOrientation&&t.DeviceOrientation.start({refresh_rate:1e3,need_absolute:!1},i=>{i&&t.onEvent("deviceOrientationChanged",()=>{const s=t.DeviceOrientation;s&&s.isStarted&&this.handleGyroscopeData(s.alpha,s.beta,s.gamma)})})}handleMotionData(t,i,s){if(this.lastMotionData){const o=Math.abs(t-this.lastMotionData.x),a=Math.abs(i-this.lastMotionData.y),l=Math.abs(s-this.lastMotionData.z),c=o+a+l;if(c>this.config.motionThreshold){const u=Math.min(this.config.maxActivityScore,c*10);this.updateActivity(u)}}this.lastMotionData={x:t,y:i,z:s},this.state={...this.state,motionData:{x:t,y:i,z:s}},this.state.autoclickerDetected&&this.config.autoclickerDetection.enabled&&Math.abs(t)+Math.abs(i)+Math.abs(s)>this.config.autoclickerDetection.requiredMotionThreshold&&(this.state={...this.state,autoclickerDetected:!1})}handleGyroscopeData(t,i,s){if(this.lastGyroscopeData){const o=Math.abs(t-this.lastGyroscopeData.alpha),a=Math.abs(i-this.lastGyroscopeData.beta),l=Math.abs(s-this.lastGyroscopeData.gamma),c=o+a+l;if(c>this.config.gyroscopeThreshold){const u=Math.min(this.config.maxActivityScore,c*5);this.updateActivity(u)}}this.lastGyroscopeData={alpha:t,beta:i,gamma:s},this.state={...this.state,gyroscopeData:{alpha:t,beta:i,gamma:s}}}updateActivity(t){const i=Date.now(),s=i-this.state.lastActivityTime,o=Math.max(0,1-s/this.config.inactivityTimeout),a=this.state.activityScore*o,l=Math.min(100,a+t);this.state={...this.state,isActive:l>=this.config.activityScoreThreshold,lastActivityTime:i,activityScore:l},this.notifyListeners()}startPeriodicCheck(){this.checkInterval=setInterval(()=>{const i=Date.now()-this.state.lastActivityTime,s=Math.max(0,1-i/this.config.inactivityTimeout),o=this.state.activityScore*s*this.config.scoreDecayRate,a=o>=this.config.activityScoreThreshold;(this.state.isActive!==a||Math.abs(this.state.activityScore-o)>1)&&(this.state={...this.state,isActive:a,activityScore:Math.max(0,o)},this.notifyListeners())},this.config.checkInterval)}notifyListeners(){this.listeners.forEach(t=>{try{t(this.state)}catch(i){console.error("Error in activity listener:",i)}})}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}getState(){return{...this.state}}resetAutoclickerDetection(){this.state={...this.state,autoclickerDetected:!1,clickPattern:{lastClickTime:0,lastClickPosition:{x:0,y:0},timingHistory:[],positionHistory:[]}}}updateConfig(t){this.config={...this.config,...t}}destroy(){if(this.checkInterval&&(clearInterval(this.checkInterval),this.checkInterval=null),this.domEventListeners.forEach(({event:t,listener:i})=>{document.removeEventListener(t,i)}),this.domEventListeners=[],this.isTelegramAvailable){const t=getTelegramWebApp();t.Accelerometer&&t.Accelerometer.isStarted&&t.Accelerometer.stop(),t.DeviceOrientation&&t.DeviceOrientation.isStarted&&t.DeviceOrientation.stop()}this.listeners.clear()}}let activityDetectorInstance=null;function getActivityDetector(e){return activityDetectorInstance||(activityDetectorInstance=new ActivityDetector(e)),activityDetectorInstance}function getBaseAnalyticsParams(){return{game_id:window.game_id,game_title:window.game_title,game_url:window.location.origin+window.location.pathname}}const log$4=createAdLogger("Adsgram");async function showAdsgramAdWithTimeout(e){if(!e)return log$4.error("Ad controller not available"),mixpanel.track("ad_show_error",{message:"Adsgram Ad Controller not available",error_type:"controller_unavailable",...getBaseAnalyticsParams(),ad_type:"adsgram"}),!1;const t=e;return log$4.group("Showing Ad"),log$4.time("show"),new Promise(i=>{const s=setTimeout(()=>{log$4.timeEnd("show"),log$4.error("Ad request timed out after 5s"),log$4.groupEnd(),mixpanel.track("ad_show_error",{message:"Adsgram ad request timed out after 5 seconds",error_type:"timeout",timeout_duration:5e3,...getBaseAnalyticsParams(),ad_type:"adsgram"}),i(!1)},5e3);mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"adsgram"}),log$4.info("Starting ad display..."),t.show().then(o=>{clearTimeout(s),log$4.timeEnd("show"),o.done?(log$4.info("Ad finished successfully",{state:o.state,description:o.description}),mixpanel.track("ad_show_success",{...getBaseAnalyticsParams(),ad_type:"adsgram"}),log$4.groupEnd(),i(!0)):(log$4.warn("Ad was not completed",{state:o.state,description:o.description}),mixpanel.track("ad_show_error",{message:"Adsgram ad was not completed.",error_type:"not_completed",result:o,...getBaseAnalyticsParams(),ad_type:"adsgram"}),log$4.groupEnd(),i(!1))}).catch(o=>{clearTimeout(s),log$4.timeEnd("show"),log$4.error("Ad error",{error:o==null?void 0:o.error,state:o==null?void 0:o.state,description:o==null?void 0:o.description}),log$4.groupEnd(),mixpanel.track("ad_show_error",{message:"Adsgram ad threw an error",error_type:"exception",error:(o==null?void 0:o.error)||String(o),...getBaseAnalyticsParams(),ad_type:"adsgram"}),i(!1)})})}const log$3=createAdLogger("Gigapub");function parseProjectId(e){const t=document.createElement("div");t.innerHTML=e;const i=t.querySelector("script");if(!i)throw new Error("Gigapub: no script tag found in gigapub configuration.");const o=(i.getAttribute("src")||"").match(/[?&]id=([^&]+)/);if(o)return o[1];const a=i.getAttribute("data-project-id");if(a)return a;throw new Error("Gigapub: could not parse project id from script.")}async function initGigapubAds(e){log$3.group("Initialization"),log$3.time("init");const t=parseProjectId(e);log$3.info("Parsed project ID",{projectId:t});const i=document.createElement("script");return i.setAttribute("data-project-id",t),i.text="!function(){var s=document.currentScript,p=s.getAttribute('data-project-id')||'default';var d=['https://ad.gigapub.tech','https://ru-ad.gigapub.tech'],i=0,t,sc;function l(){sc=document.createElement('script');sc.async=true;sc.src=d[i]+'/script?id='+p;clearTimeout(t);t=setTimeout(function(){sc.onload=sc.onerror=null;sc.src='';if(++i<d.length)l()},15000);sc.onload=function(){clearTimeout(t)};sc.onerror=function(){clearTimeout(t);if(++i<d.length)l()};document.head.appendChild(sc)}l()}()",new Promise((s,o)=>{document.head.appendChild(i),log$3.info("Multi-CDN script appended to head");const a=Date.now(),l=setInterval(()=>{if(window.showGiga&&typeof window.showGiga=="function")clearInterval(l),log$3.timeEnd("init"),log$3.info("Initialized successfully (showGiga found)"),log$3.groupEnd(),s();else if(Date.now()-a>35e3){clearInterval(l);const c=new Error("Gigapub: showGiga function did not appear on window object within timeout.");log$3.timeEnd("init"),log$3.error("Init timeout — showGiga not found after 35s"),log$3.groupEnd(),o(c)}},100)})}async function showGigapubAd(e,t){const i=crypto.randomUUID();return!window.showGiga||typeof window.showGiga!="function"?e?(log$3.warn("showGiga not available, using fallback",{transactionId:i}),mixpanel.track("ad_show_fallback",{message:"Gigapub showGiga function not available, using fallback.",...getBaseAnalyticsParams(),ad_type:"gigapub",transaction_id:i,placement_id:t}),await e()):(mixpanel.track("ad_show_error",{message:"Gigapub showGiga function not available",error_type:"function_unavailable",...getBaseAnalyticsParams(),ad_type:"gigapub",transaction_id:i,placement_id:t}),!1):(log$3.group("Showing Ad"),log$3.time("show"),log$3.info("Starting ad display",{transactionId:i,placementId:t}),new Promise(s=>{mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"gigapub",transaction_id:i,placement_id:t}),window.showGiga({transactionId:i,showTag:t}).then(()=>{log$3.timeEnd("show"),log$3.info("Ad finished successfully",{transactionId:i,placementId:t}),log$3.groupEnd(),mixpanel.track("ad_show_success",{...getBaseAnalyticsParams(),ad_type:"gigapub",transaction_id:i,placement_id:t}),s(!0)}).catch(o=>{log$3.timeEnd("show"),log$3.error("Ad error",{error:o,transactionId:i,placementId:t}),log$3.groupEnd(),mixpanel.track("ad_show_error",{message:"Gigapub ad failed or was skipped",error_type:"exception",error:o==null?void 0:o.toString(),error_message:(o==null?void 0:o.message)||"Unknown error",...getBaseAnalyticsParams(),ad_type:"gigapub",transaction_id:i,placement_id:t}),s(!1)})}))}const log$2=createAdLogger("Monetag");async function initMonetagAds(e){log$2.group("Initialization"),log$2.time("init");try{const t=document.createElement("div");t.innerHTML=e;const i=t.firstElementChild;if(i){const s=i.dataset.sdk||null,o=document.createElement("script");for(let a=0;a<i.attributes.length;a++){const l=i.attributes[a];o.setAttribute(l.name,l.value)}return i.text&&(o.text=i.text),await new Promise((a,l)=>{if(!s){const u=new Error("Monetag: ad function name not found in script tag");return log$2.error("Ad function name not found in script tag"),log$2.timeEnd("init"),log$2.groupEnd(),l(u)}const c=s;log$2.info("Ad function name found",{fnName:c}),o.onload=()=>{log$2.info("Script loaded, waiting for function on window...");const u=Date.now(),d=setInterval(()=>{if(typeof window[c]=="function")clearInterval(d),log$2.timeEnd("init"),log$2.info("Initialized successfully",{fnName:c}),log$2.groupEnd(),a();else if(Date.now()-u>5e3){clearInterval(d);const p=new Error(`Monetag: function ${c} did not appear on window object within 5 seconds.`);log$2.timeEnd("init"),log$2.error("Init timeout — function not found after 5s",{fnName:c}),log$2.groupEnd(),l(p)}},100)},o.onerror=u=>{log$2.timeEnd("init"),log$2.error("Script failed to load",u),log$2.groupEnd(),l(new Error("Monetag: script failed to load."))},document.head.appendChild(o),log$2.info("Script appended to head")}),s}return log$2.error("No script tag found in monetag configuration"),log$2.timeEnd("init"),log$2.groupEnd(),null}catch(t){return log$2.error("Failed to initialize",t),log$2.timeEnd("init"),log$2.groupEnd(),null}}function createMonetagFallbackFunction(e,t){return async()=>{const i=window.game_id?String(window.game_id):"0";return await showMonetagAd(e,i,t)}}async function showMonetagAd(e,t,i){if(log$2.group("Showing Ad"),log$2.time("show"),log$2.info("Starting ad display",{fnName:e,ymid:t,placementId:i}),!e)return log$2.error("Ad function name not found"),log$2.timeEnd("show"),log$2.groupEnd(),mixpanel.track("ad_show_error",{message:"Monetag ad function name not found",error_type:"function_name_missing",...getBaseAnalyticsParams(),ad_type:"monetag",placement_id:i}),!1;const s=window[e];if(typeof s!="function")return log$2.error("Ad function not found on window",{fnName:e}),log$2.timeEnd("show"),log$2.groupEnd(),mixpanel.track("ad_show_error",{message:"Monetag ad function not found on window object",error_type:"function_unavailable",function_name:e,...getBaseAnalyticsParams(),ad_type:"monetag",placement_id:i}),!1;const o=i?`orbit-${i}`:"orbit";return new Promise(a=>{mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"monetag",placement_id:i}),s({ymid:t,requestVar:o}).then(()=>{log$2.timeEnd("show"),log$2.info("Ad watched successfully",{placementId:i}),log$2.groupEnd(),mixpanel.track("ad_show_success",{...getBaseAnalyticsParams(),ad_type:"monetag",placement_id:i}),a(!0)}).catch(l=>{log$2.timeEnd("show"),log$2.error("Ad failed or was skipped",{error:l,placementId:i}),log$2.groupEnd(),mixpanel.track("ad_show_error",{message:"Monetag ad failed or was skipped",error_type:"ad_failed",error:String(l),...getBaseAnalyticsParams(),ad_type:"monetag",placement_id:i}),a(!1)})})}var define_process_env_default$1={NODE_ENV:"production",version:"1.92.1",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"};const log$1=createAdLogger("Orbit");async function initOrbitAds(){log$1.group("Initialization"),log$1.time("init"),log$1.info("Loading script...");const e=define_process_env_default$1.ADS_SCRIPT_URL,t=document.createElement("script");return t.src=e,t.async=!0,new Promise((i,s)=>{t.onload=()=>{log$1.info("Script loaded, waiting for showOrbitAds function...");const o=Date.now(),a=setInterval(()=>{if(window.showOrbitAds&&typeof window.showOrbitAds=="function")clearInterval(a),log$1.timeEnd("init"),log$1.info("Initialized successfully"),log$1.groupEnd(),i();else if(Date.now()-o>5e3){clearInterval(a);const l=new Error("Orbit: showOrbitAds function did not appear on window object within 5 seconds.");log$1.timeEnd("init"),log$1.error("Init timeout — showOrbitAds not found after 5s",l),log$1.groupEnd(),s(l)}},100)},t.onerror=o=>{log$1.timeEnd("init"),log$1.error("Script failed to load",o),log$1.groupEnd(),s(new Error("Orbit: script failed to load."))},document.head.appendChild(t),log$1.info("Script appended to head")})}async function showOrbitAd(e,t){const i=crypto.randomUUID();if(!window.showOrbitAds||typeof window.showOrbitAds!="function")return e?(log$1.warn("showOrbitAds not available, using fallback",{transactionId:i}),mixpanel.track("ad_show_fallback",{message:"Orbit showOrbitAds function not available, using fallback.",...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),await e()):(mixpanel.track("ad_show_error",{message:"Orbit showOrbitAds function not available",error_type:"function_unavailable",...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),!1);mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),log$1.group("Showing Ad"),log$1.time("show"),log$1.info("Starting ad display",{transactionId:i,...t});try{const s=await window.showOrbitAds(t);if(log$1.timeEnd("show"),log$1.info("showOrbitAds resolved",{response:s,transactionId:i}),s.is_direct_sales)return mixpanel.track("ad_show_success",{...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),log$1.info("Ad shown successfully (internal ad)"),log$1.groupEnd(),!0;if(log$1.warn("is_direct_sales=false, falling back to provider",{transactionId:i}),mixpanel.track("ad_show_fallback",{message:"Orbit has no ad available, falling back to provider network.",...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),e){const o=await e();return log$1.info("Fallback result",{result:o,transactionId:i}),log$1.groupEnd(),o}return log$1.groupEnd(),!1}catch(s){if(log$1.timeEnd("show"),log$1.error("Ad error",{error:s,transactionId:i}),mixpanel.track("ad_show_error",{message:"Orbit ad failed or was skipped",error_type:"exception",error:s instanceof Error?s.toString():String(s),error_message:s instanceof Error?s.message:"Unknown error",...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),e){log$1.warn("Error occurred, using fallback provider",{transactionId:i}),mixpanel.track("ad_show_fallback",{message:"Orbit ad errored, falling back to provider network.",...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i});const o=await e();return log$1.info("Fallback result after error",{result:o,transactionId:i}),log$1.groupEnd(),o}return log$1.groupEnd(),!1}}const log=createAdLogger("TMA");async function checkAdStatus(e){try{log.info("Checking ad status",{adId:e});const t=await fetch(`https://sp.tmanetwork.tech/bid_info?id=${e}`);if(t.status===204)return log.info("Ad status: NOT_SHOWED (204)",{adId:e}),mixpanel.track("ad_status_not_showed",{...getBaseAnalyticsParams(),ad_id:e,ad_type:"tma"}),"NOT_SHOWED";if(!t.ok)throw new Error(`Failed to check ad status: ${t.status}`);const i=await t.json();return i.click_created?(log.info("Ad status: CLICKED",{adId:e}),mixpanel.track("ad_status_clicked",{...getBaseAnalyticsParams(),ad_id:e,ad_type:"tma"}),"CLICKED"):i.imp_created?(log.info("Ad status: SHOWED",{adId:e}),mixpanel.track("ad_status_showed",{...getBaseAnalyticsParams(),ad_id:e,ad_type:"tma"}),"SHOWED"):(log.info("Ad status: NOT_SHOWED (no imp/click)",{adId:e}),mixpanel.track("ad_status_not_showed",{...getBaseAnalyticsParams(),ad_id:e,ad_type:"tma"}),"NOT_SHOWED")}catch(t){throw log.error("Error checking ad status",{adId:e,error:t}),mixpanel.track("ad_status_error",{...getBaseAnalyticsParams(),ad_id:e,ad_type:"tma"}),t}}async function showAd(e={}){if(!window.TMANetwork){const t=new Error("TMANetwork is not available");throw log.error("TMANetwork not available on window"),mixpanel.track("ad_show_error",{message:"TMANetwork is not available",error_type:"sdk_unavailable",...getBaseAnalyticsParams(),ad_type:"tma"}),t}if(window.TMANetwork.hasInterstitialAd()){log.info("Ad already loaded, showing immediately"),e.onStart&&e.onStart();try{mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"tma"});const t=await window.TMANetwork.showInterstitialAd();return log.info("Ad shown successfully",{adId:t.id}),mixpanel.track("ad_show_success",{...getBaseAnalyticsParams(),ad_type:"tma",ad_id:t.id}),window.TMANetwork.reloadAd(),t}catch(t){throw log.error("Error showing preloaded ad",t),mixpanel.track("ad_show_error",{message:t instanceof Error?t.message:"Unknown error showing TMA ad",error_type:"exception",error:t instanceof Error?t.toString():String(t),...getBaseAnalyticsParams(),ad_type:"tma"}),t}}return log.info("Waiting for ad to load (10s timeout)..."),new Promise((t,i)=>{let s=!1;const o=async()=>{if(!s){s=!0;try{log.info("onAdLoaded event received"),mixpanel.track("ad_load_event_received",{...getBaseAnalyticsParams(),ad_type:"tma"}),e.onStart&&e.onStart(),mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"tma"});const a=await window.TMANetwork.showInterstitialAd();log.info("Ad shown successfully after load",{adId:a.id}),mixpanel.track("ad_load_success",{...getBaseAnalyticsParams(),ad_type:"tma",ad_id:a.id}),window.TMANetwork.reloadAd(),t(a)}catch(a){log.error("Error showing ad after load event",a),mixpanel.track("ad_load_error",{message:a instanceof Error?a.message:"Unknown error loading TMA ad",error_type:"load_exception",error:a instanceof Error?a.toString():String(a),...getBaseAnalyticsParams(),ad_type:"tma"}),i(a)}}};setTimeout(()=>{if(!s){s=!0;const a=new Error("Ad load timeout");log.error("Ad load timeout after 10s"),mixpanel.track("ad_load_timeout",{message:"Ad load timeout after 10 seconds",error_type:"timeout",timeout_duration:1e4,...getBaseAnalyticsParams(),ad_type:"tma"}),i(a)}},1e4),window.TMANetwork.addEventListener("onAdLoaded",o)})}function loadTMANetworkScript(){return new Promise((e,t)=>{if(log.group("Script Load"),log.time("scriptLoad"),mixpanel.track("tma_script_load_requested",getBaseAnalyticsParams()),document.querySelector('script[src="https://files.tmanetwork.tech/tmanetwork.min.js"]')){log.info("Script already loaded (skipping)"),log.timeEnd("scriptLoad"),log.groupEnd(),e();return}const i=document.createElement("script");i.src="https://files.tmanetwork.tech/tmanetwork.min.js",i.async=!0,i.onload=()=>{log.timeEnd("scriptLoad"),log.info("Script loaded successfully"),log.groupEnd(),mixpanel.track("tma_script_load_success",getBaseAnalyticsParams()),e()},i.onerror=s=>{log.timeEnd("scriptLoad"),log.error("Failed to load script",s),log.groupEnd(),mixpanel.track("tma_script_load_error",{message:"Failed to load TMANetwork script",error_type:"script_load_failed",error:String(s),...getBaseAnalyticsParams()}),captureException(s),t(new Error("Failed to load TMANetwork script"))},document.head.appendChild(i)})}function initSentry(){init({dsn:"https://b52384170118e5a8b1f43ca653975198@o4509677809172480.ingest.de.sentry.io/4509677817364560",sendDefaultPii:!0,integrations:[dedupeIntegration()],maxBreadcrumbs:50,beforeBreadcrumb(e){return e.category==="console"&&e.level!=="error"?null:e}})}function validateCloudStorageValue(e){if(e==null)return{isValid:!1,error:"Value cannot be null or undefined"};const t=e.length;let i;try{i=new TextEncoder().encode(e)}catch{return{isValid:!1,error:"Value cannot be encoded as UTF-8",characterCount:t}}const s=i.length;if(s>4096)return{isValid:!1,error:`Value exceeds maximum size: ${s} bytes (limit: 4096 bytes)`,byteSize:s,characterCount:t};if(e.includes("\0"))return{isValid:!1,error:"Value contains null bytes (\\0) which are not allowed",byteSize:s,characterCount:t};if(/[\x01-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]/.test(e))return{isValid:!1,error:"Value contains invalid control characters",byteSize:s,characterCount:t};try{if(new TextDecoder("utf-8",{fatal:!0}).decode(i)!==e)return{isValid:!1,error:"Value encoding/decoding mismatch",byteSize:s,characterCount:t}}catch{return{isValid:!1,error:"Value contains invalid UTF-8 sequences",byteSize:s,characterCount:t}}return{isValid:!0,byteSize:s,characterCount:t}}function ensureViewportMetaTag(){if(typeof document>"u")return;const e=document.head||document.getElementsByTagName("head")[0];if(!e)return;const t=document.querySelector('meta[name="viewport"]'),i=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);if(!t&&i){const s=document.createElement("meta");s.name="viewport",s.content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no",e.appendChild(s)}}const getGlobalObj=()=>{if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;throw new Error("No global object found")};function throttleLeading(e,t){let i=0;return function(...s){const o=Date.now();return o-i>=t?(i=o,e.apply(this,s)):(console.log(`Function is throttled. Next call available in ${t-(o-i)}ms`),Promise.resolve(!1))}}var define_process_env_default={NODE_ENV:"production",version:"1.92.1",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"};ensureViewportMetaTag(),initSentry();const adLog=createAdLogger("SDK"),CloudStorageGetItem=e=>new Promise((t,i)=>{getTelegramWebApp().CloudStorage.getItem(e,(s,o)=>{s?i(new Error(s)):t(o??null)})}),CloudStorageSetItem=(e,t)=>new Promise((i,s)=>{getTelegramWebApp().CloudStorage.setItem(e,t,(o,a)=>{o?s(new Error(o)):i(a??null)})}),CloudStorageRemoveItem=e=>new Promise((t,i)=>{getTelegramWebApp().CloudStorage.removeItem(e,(s,o)=>{s?i(new Error(s)):t(o??null)})}),BASE_URL=define_process_env_default.BASE_URL,G_MEASUREMENT_ID="G-4RMXVE2K75",BANNER_HEIGHT=60,bannerManager=new BannerManager({height:BANNER_HEIGHT});let timer=null;const pending={};let state={};const CLOUD_STORAGE_PREFIX="sdk_pending_",LOCAL_STORAGE_PREFIX="portal_sdk_pending_";function setValueSync(e,t){let i;if(typeof t=="object"&&t!==null)try{i=JSON.stringify(t)}catch(a){console.error(`Failed to serialize value for ${e}:`,a),i=String(t)}else i=String(t);state[e]=pending[e]=i;try{localStorage.setItem(`${LOCAL_STORAGE_PREFIX}${e}`,i)}catch(a){console.error(`Failed to save ${e} to localStorage:`,a)}const{isValid:s,error:o}=validateCloudStorageValue(i);if(!s){console.warn(`Value for ${e} cannot be saved to CloudStorage:`,o);return}CloudStorageSetItem(`${CLOUD_STORAGE_PREFIX}${e}`,i).catch(a=>{console.error(`Failed to save ${e} to CloudStorage:`,a)})}function removeValueSync(e){delete state[e],delete pending[e];try{localStorage.removeItem(`${LOCAL_STORAGE_PREFIX}${e}`)}catch(t){console.error(`Failed to remove ${e} from localStorage:`,t)}CloudStorageRemoveItem(`${CLOUD_STORAGE_PREFIX}${e}`).catch(console.error),makeRequest(`storage/${e}`,"DELETE").catch(console.error)}function getValueSync(e){return state[e]}async function loadAll(){const e={};try{for(let a=0;a<localStorage.length;a++){const l=localStorage.key(a);if(l&&l.startsWith(LOCAL_STORAGE_PREFIX)){const c=localStorage.getItem(l);if(c){const u=l.replace(LOCAL_STORAGE_PREFIX,"");e[u]=c,console.log(`Loaded from localStorage: ${u}`)}}}}catch(a){console.error("Failed to load from localStorage:",a)}const t={};try{const a=await new Promise((l,c)=>{getTelegramWebApp().CloudStorage.getKeys((u,d)=>{u?c(new Error(u)):l(d??[])})});for(const l of a)if(l.startsWith(CLOUD_STORAGE_PREFIX))try{const c=await CloudStorageGetItem(l);if(c){const u=l.replace(CLOUD_STORAGE_PREFIX,"");t[u]=c,console.log(`Loaded from CloudStorage: ${u}`)}}catch(c){console.error(`Failed to load ${l} from CloudStorage:`,c)}}catch(a){console.error("Failed to load keys from CloudStorage:",a)}const i={...t,...e},s=[500,500,1e3];let o=0;for(;;)try{const a=await makeRequest("storage/","GET");state={...a.data,...i};for(const l of Object.keys(i))pending[l]=i[l];console.log(`Loaded state from backend (${Object.keys(a.data).length} keys), localStorage (${Object.keys(e).length} keys) and CloudStorage (${Object.keys(t).length} keys)`);return}catch(a){if(o>=s.length){console.error("Failed to load all storage values:",a),state=i;for(const l of Object.keys(i))pending[l]=i[l];return}await delay(s[o]),o+=1}}function startSaveTick(){timer&&clearInterval(timer),loadAll(),timer=setInterval(async()=>{await savePendingChanges()},5*1e3)}async function savePendingChanges(){const e={...pending};console.log("save pending changes "+Object.keys(e).length),console.log(pending);for(const t of Object.keys(e)){const i=e[t],s=[500,500,1e3];let o=0,a=!1;for(;!a;)try{if(await makeRequest(`storage/${t}`,"PUT",{value:i}),pending[t]===i){delete pending[t];try{localStorage.removeItem(`${LOCAL_STORAGE_PREFIX}${t}`),console.log(`Removed ${t} from localStorage after successful sync`)}catch(l){console.error(`Failed to remove ${t} from localStorage:`,l)}try{await CloudStorageRemoveItem(`${CLOUD_STORAGE_PREFIX}${t}`),console.log(`Removed ${t} from CloudStorage after successful sync`)}catch(l){console.error(`Failed to remove ${t} from CloudStorage:`,l)}}else console.log(`Value for ${t} changed during save, keeping in pending and local storages`);a=!0}catch(l){if(o>=s.length){console.error(`Failed to save key ${t}:`,l);break}await delay(s[o]),o+=1}}}let configCache=null;const CACHE_DURATION_MS=5*60*1e3;let adType=null,orbitInitialized=!1,monetagShowAdFnName=null,adsgramAdController=null,countRequestAd=1,externalBotId=null,externalAuthData=null,isPortal=!1,launchResponseCache=null;const telegramReady=ensureTelegramWebApp(),makeRequest=createMakeRequest({baseUrl:BASE_URL,getAuthData:()=>externalAuthData,getBotId:()=>externalBotId,getInitData:()=>{var e,t;return((t=(e=window.Telegram)==null?void 0:e.WebApp)==null?void 0:t.initData)??""},waitUntilReady:()=>telegramReady});function getStartupConfig(){return window==null?void 0:window.startupConfig}let intervalId;const trackTimeEveryS=20;function startGameTimeTrack(){intervalId&&clearInterval(intervalId),CryptoSteamSDK.trackGameTimeTick(),intervalId=setInterval(()=>{CryptoSteamSDK.trackGameTimeTick()},trackTimeEveryS*1e3)}try{const e=(hc=(dc=(fc=(uc=window.Telegram)==null?void 0:uc.WebApp)==null?void 0:fc.initDataUnsafe)==null?void 0:dc.user)==null?void 0:hc.id;mixpanel.init("b0d7c97039e244366388b9a210c0b15a",{debug:!0,track_pageview:!0,persistence:"localStorage"}),e&&mixpanel.identify(String(e)),mixpanel.track("sdk_initialized",getBaseAnalyticsParams())}catch(e){console.error(e)}const CryptoSteamSDK={version:define_process_env_default.version,onAdStart:null,onAdEnd:null,initialize:async(e,t)=>{var s,o;const i=await ensureTelegramWebApp();isPortal=(t==null?void 0:t.mode)==="portal";try{t!=null&&t.authData&&(console.error("USE AUTH_DATA FOR REQUESTS!!!"),console.log("options.authData",t.authData),externalAuthData=t.authData),e&&(externalBotId=e,queryClient.invalidateQueries({queryKey:[PROFILE_TAG]}),queryClient.invalidateQueries({queryKey:[PRICES_TAG]})),isPortal||startSaveTick();const a=await CryptoSteamSDK.getProfile(),l=await CryptoSteamSDK.getConfig();libExports.isMobile&&l.supported_screen_formats.includes("fullscreen")||!libExports.isMobile&&l.supported_screen_formats.includes("fullscreen-desktop")?(i==null||i.setHeaderColor("#000"),i==null||i.setBackgroundColor("#000"),i==null||i.requestFullscreen()):i==null||i.exitFullscreen(),adLog.group("SDK & Ads Initialization"),adLog.time("fullInit"),adLog.info("Starting initialization",{version:define_process_env_default.version});const c=await makeRequest("launch","POST");launchResponseCache=c,await new Promise(d=>{document.readyState==="complete"?d():window.addEventListener("load",()=>d())});const{ads:u}=c;try{await initOrbitAds(),orbitInitialized=!0}catch(d){adLog.error("Orbit failed to initialize",d)}if((u==null?void 0:u.type)==="tma"&&u.tmaAdsKey)if(adType="tma",await loadTMANetworkScript(),window.TMANetwork)await window.TMANetwork.init(c.tma_ads_key),adLog.info("TMANetwork initialized successfully");else throw new Error("TMANetwork object not found.");else if((u==null?void 0:u.type)==="monetag"&&u.monetag)adType="monetag",monetagShowAdFnName=await initMonetagAds(u.monetag);else if((u==null?void 0:u.type)==="adsgram"&&u.adsgram){adType="adsgram",adLog.info("Adsgram: initialization started");try{const d=document.createElement("script");d.src="https://sad.adsgram.ai/js/sad.min.js",d.async=!0,await new Promise((p,m)=>{d.onload=()=>{adLog.info("Adsgram: script loaded, waiting for window.Adsgram...");const g=Date.now(),b=setInterval(()=>{if(window.Adsgram&&typeof window.Adsgram.init=="function")if(clearInterval(b),adLog.info("Adsgram: window.Adsgram found, initializing..."),adsgramAdController=window.Adsgram.init({blockId:u.adsgram}),adsgramAdController)adLog.info("Adsgram: initialized successfully"),p();else{const y=new Error("Adsgram: init returned null or undefined.");adLog.error("Adsgram: init returned null",y),m(y)}else if(Date.now()-g>5e3){clearInterval(b);const y=new Error("Adsgram: window.Adsgram did not appear within 5 seconds.");adLog.error("Adsgram: init timeout after 5s",y),m(y)}},100)},d.onerror=g=>{adLog.error("Adsgram: script failed to load",g),m(new Error("Adsgram: script failed to load."))},document.head.appendChild(d),adLog.info("Adsgram: script appended to head")})}catch(d){adLog.error("Adsgram: failed to initialize",d)}}else if((u==null?void 0:u.type)==="gigapub"&&u.gigapub){adType="gigapub";try{await initGigapubAds(u.gigapub)}catch(d){adLog.error("Gigapub: failed to initialize",d)}if(u.monetag)try{monetagShowAdFnName=await initMonetagAds(u.monetag),adLog.info("Monetag fallback initialized for Gigapub")}catch(d){adLog.error("Monetag fallback: failed to initialize",d)}}adLog.timeEnd("fullInit"),adLog.info("Ads network fully initialized",{provider:adType,orbitInitialized}),adLog.groupEnd(),(s=a==null?void 0:a.audiences)!=null&&s[0]&&mixpanel.track("$experiment_started",{"Experiment name":"start_page_ab","Variant name":(o=a==null?void 0:a.audiences)==null?void 0:o[0]})}catch(a){adLog.timeEnd("fullInit"),adLog.error("Error during ads initialization",a),adLog.groupEnd()}try{const a=await CryptoSteamSDK.getProfile(),l=await CryptoSteamSDK.getConfig();if(t!=null&&t.authData&&console.log("externalAuthData",externalAuthData),!a){console.error("Profile not found");return}if(!l){console.error("Config not found");return}mixpanel.identify(String(a.id)),window.game_id=a.game_id,window.game_title=l.title,ReactGA.initialize(G_MEASUREMENT_ID,{gaOptions:{userId:a.id,gameId:a.game_id}}),ReactGA.event("init",{gameId:a.game_id}),mixpanel.track("game_initialized",{game_id:a.game_id,game_title:l.title}),!isPortal&&!(t!=null&&t.disable_startup_ads)&&CryptoSteamSDK.requestAd().catch(c=>{adLog.error("Error requesting initial ad",c)})}catch(a){console.error("Error during GA initialization:",a)}},getLaunchResponse:()=>launchResponseCache,isLaunchedFromPortal:()=>{var e,t,i;return((i=(t=(e=window==null?void 0:window.Telegram)==null?void 0:e.WebApp)==null?void 0:t.initDataUnsafe)==null?void 0:i.start_param)==="orbit_launcher"},getConfig:async()=>{const e=Date.now();if(configCache&&configCache.expiresAt>e)return configCache.config;const t=await makeRequest("config","GET");return configCache={config:t,expiresAt:e+CACHE_DURATION_MS},t},isAdEnabled:async()=>(await makeRequest("ads/status","GET")).enabled,requestAd:async(e={})=>{var t,i,s,o,a;adLog.group("requestAd"),adLog.time("requestAd"),(t=CryptoSteamSDK.onAdStart)==null||t.call(CryptoSteamSDK);try{const l=await CryptoSteamSDK.getProfile(),c=CryptoSteamSDK.getLaunchResponse();if(countRequestAd===1&&!isPortal&&(adLog.info("First request — checking launch rules",{is_ad_cooldown:c==null?void 0:c.is_ad_cooldown}),c&&c.is_ad_cooldown))return countRequestAd++,adLog.warn("Skipped: ad is in cooldown",{is_ad_cooldown:c.is_ad_cooldown}),(i=CryptoSteamSDK.onAdEnd)==null||i.call(CryptoSteamSDK,!1),adLog.timeEnd("requestAd"),adLog.groupEnd(),!1;if(l.ads_free&&!isPortal)return adLog.warn("Skipped: profile has ads_free flag"),(s=CryptoSteamSDK.onAdEnd)==null||s.call(CryptoSteamSDK,!1),adLog.timeEnd("requestAd"),adLog.groupEnd(),!1;mixpanel.track("ad_show_requested",{...getBaseAnalyticsParams(),ad_type:orbitInitialized?"orbit":adType,placement_id:e.placementId});const d=async()=>{if(adType==="tma")try{return await showAd(e),!0}catch(m){return adLog.error("Error showing TMA ad",m),!1}if(adType==="monetag"){const g=`${(await CryptoSteamSDK.getProfile()).game_id}`;return await showMonetagAd(monetagShowAdFnName,g,e.placementId)}if(adType==="adsgram")return await showAdsgramAdWithTimeout(adsgramAdController);if(adType==="gigapub"){const m=createMonetagFallbackFunction(monetagShowAdFnName,e.placementId);return await showGigapubAd(m,e.placementId)}return adLog.error("Ad network not initialized or not supported",{adType}),mixpanel.track("ad_show_error",{...getBaseAnalyticsParams(),message:"Ad network not initialized or not supported",ad_type:adType,error_type:"unsupported_network",placement_id:e.placementId}),!1};countRequestAd=++countRequestAd;let p;if(adLog.info("Dispatching ad request",{orbitInitialized,adType,placementId:e.placementId}),orbitInitialized){const m=l.game_id?Number(l.game_id):void 0;p=await showOrbitAd(d,{zoneId:m,placementId:e.placementId})}else p=await d();return adLog.timeEnd("requestAd"),adLog.info("Ad request completed",{result:p}),adLog.groupEnd(),(o=CryptoSteamSDK.onAdEnd)==null||o.call(CryptoSteamSDK,p),p}catch(l){return adLog.timeEnd("requestAd"),adLog.error("Error in requestAd",l),adLog.groupEnd(),mixpanel.track("ad_show_error",{...getBaseAnalyticsParams(),message:l instanceof Error?l.message:"Unknown error in requestAd",error_type:"sdk_exception",ad_type:adType,error:l instanceof Error?l.toString():String(l),placement_id:e.placementId}),(a=CryptoSteamSDK.onAdEnd)==null||a.call(CryptoSteamSDK,!1),!1}},requestRewardAd:async(e={})=>{var t,i,s;adLog.group("requestRewardAd"),adLog.time("requestRewardAd"),(t=CryptoSteamSDK.onAdStart)==null||t.call(CryptoSteamSDK);try{mixpanel.track("ad_show_requested",{...getBaseAnalyticsParams(),ad_type:orbitInitialized?"orbit":adType,placement_id:e.placementId});const o=async()=>{if(adType==="tma")try{const l=await showAd(e);await delay(1e3);const c=await checkAdStatus(l.id);return c==="SHOWED"||c==="CLICKED"}catch(l){return adLog.error("Error showing TMA reward ad",l),!1}if(adType==="monetag"){const c=`${(await CryptoSteamSDK.getProfile()).game_id}`;return await showMonetagAd(monetagShowAdFnName,c,e.placementId)}if(adType==="adsgram")return await showAdsgramAdWithTimeout(adsgramAdController);if(adType==="gigapub"){const l=createMonetagFallbackFunction(monetagShowAdFnName,e.placementId),c=await showGigapubAd(l,e.placementId);return await delay(2e3),c}return adLog.error("Ad network not initialized or not supported",{adType}),mixpanel.track("ad_show_error",{...getBaseAnalyticsParams(),message:"Ad network not initialized or not supported",ad_type:adType,error_type:"unsupported_network",placement_id:e.placementId}),!1};let a;if(adLog.info("Dispatching reward ad request",{orbitInitialized,adType,placementId:e.placementId}),orbitInitialized){const l=window.game_id?Number(window.game_id):void 0;a=await showOrbitAd(o,{zoneId:l,placementId:e.placementId})}else a=await o();return adLog.timeEnd("requestRewardAd"),adLog.info("Reward ad request completed",{result:a}),adLog.groupEnd(),(i=CryptoSteamSDK.onAdEnd)==null||i.call(CryptoSteamSDK,a),a}catch(o){return adLog.timeEnd("requestRewardAd"),adLog.error("Error in requestRewardAd",o),adLog.groupEnd(),mixpanel.track("ad_show_error",{...getBaseAnalyticsParams(),message:o instanceof Error?o.message:"Unknown error in requestRewardAd",error_type:"sdk_exception",ad_type:adType,error:o instanceof Error?o.toString():String(o),placement_id:e.placementId}),(s=CryptoSteamSDK.onAdEnd)==null||s.call(CryptoSteamSDK,!1),!1}},getProfile:async()=>await makeRequest("profile","GET"),getBalance:async()=>await makeRequest("balance","GET"),trackGameTimeTick:()=>{getActivityDetector().getState().isActive&&makeRequest("ping","POST")},getVersion:()=>version,initializeOverlay:async e=>{await telegramReady,e!=null&&e.authData&&(console.error("USE AUTH_DATA FOR REQUESTS!!!"),externalAuthData=e.authData),startGameTimeTrack(),e!=null&&e.botId&&(externalBotId=e.botId,queryClient.invalidateQueries({queryKey:[PROFILE_TAG]}),queryClient.invalidateQueries({queryKey:[PRICES_TAG]}));const t=getStartupConfig(),i={...e,initialPosition:(e==null?void 0:e.initialPosition)??(t==null?void 0:t.overlayPosition)??"topLeft"};if(document.getElementById("overlay-root")){console.log("Overlay root already exists");return}if(createOverlay(i),!((e==null?void 0:e.visible)!==!1)){const a=document.getElementById("overlay-root");a&&a.classList.add("cssdk-overlay-hidden")}window.runGame&&window.runGame()},getShopItems:async()=>(await makeRequest("shop/items","GET")).items,getPurchasedShopItem:async e=>await makeRequest(`shop/purchases/${e}`,"GET"),getPurchasedShopItems:async()=>await makeRequest("shop/purchases","GET"),buyShopItem:async e=>{const t=await CryptoSteamSDK.getBalance(),s=(await CryptoSteamSDK.getShopItems()).find(o=>o.id===e);if(s||console.warn(`Not found shop item with id ${e}`),s&&t.balance_gems>=s.price)return await makeRequest(`shop/items/${e}/buy`,"POST");useTopUpModalStore.getState().setIsOpen(!0)},openPurchaseConfirmModal:async(e,t)=>{const i=await ensureTelegramWebApp(),s=await CryptoSteamSDK.getBalance();return new Promise((o,a)=>{if(s.balance_gems<e.price){useTopUpModalStore.getState().setIsOpen(!0),a(new Error("insufficient funds"));return}const l=document.createElement("div");l.style.position="fixed",l.style.top="0",l.style.left="0",l.style.width="100%",l.style.height="100%",l.style.backgroundColor="transparent",l.style.zIndex="9999";const c=document.createElement("iframe");if(c.style.position="fixed",t){let S=t.x+(t.width-210)/2,w=t.y-108-20;w<8&&(w=t.y+t.height+20),S+210>window.innerWidth-8&&(S=window.innerWidth-8-210),S<8&&(S=8),(w+108>window.innerHeight-8||w<8)&&(w=(window.innerHeight-108)/2,S=(window.innerWidth-210)/2),c.style.left=`${S}px`,c.style.top=`${w}px`}else c.style.left="50%",c.style.top="50%",c.style.transform="translate(-50%, -50%)";c.style.boxShadow="0px 0px 2px 1px rgba(0, 0, 0, 0.22), 0px 32px 64px rgba(0, 0, 0, 0.34)",c.style.borderRadius="24px",c.style.border="none",c.style.zIndex="10000",c.referrerPolicy="origin",c.style.width="210px",c.style.height="108px",c.style.backgroundColor="white";const u=new URLSearchParams;u.set("itemId",e.id.toString()),u.set("price",e.price.toString()),u.set("__tg_x_auth",i==null?void 0:i.initData);const d={confirm:{pay:translationsTyped("confirmIframe.pay"),cancel:translationsTyped("confirmIframe.cancel")}};u.set("translations",JSON.stringify(d)),c.src=`${BASE_URL}/shop/payment_iframe?${u.toString()}`;const p=m=>{m.data.type==="confirm"?(window.removeEventListener("message",p),document.body.removeChild(l),document.body.removeChild(c),o({status:"success"})):m.data.type==="cancel"?(window.removeEventListener("message",p),document.body.removeChild(l),document.body.removeChild(c),o({status:"error"})):m.data.type==="error"&&(window.removeEventListener("message",p),document.body.removeChild(l),document.body.removeChild(c),a(new Error(m.data.message)))};window.addEventListener("message",p),l.onclick=()=>{window.removeEventListener("message",p),document.body.removeChild(l),document.body.removeChild(c),o({status:"error"})},document.body.appendChild(l),document.body.appendChild(c)})},createInvoice:async(e,t,i,s)=>await makeRequest("invoices","POST",{title:e,description:t,to_user_id:i,amount:s}),getAllKeyValues:async()=>{const e=await CryptoSteamSDK.getProfile();return Array.isArray(e==null?void 0:e.audiences)&&e.audiences.includes("banner_test")?(console.log("getAllKeyValuesSync"),Promise.resolve(state)):(await makeRequest("storage/","GET")).data},getValue:async e=>{const t=await CryptoSteamSDK.getProfile();return Array.isArray(t==null?void 0:t.audiences)&&t.audiences.includes("banner_test")?(console.log("getValueSync",e),Promise.resolve(getValueSync(e))):(await makeRequest(`storage/${e}`,"GET")).value},setValue:async(e,t)=>{const i=await CryptoSteamSDK.getProfile();if(Array.isArray(i==null?void 0:i.audiences)&&i.audiences.includes("banner_test"))return console.log("setValueSync",e,t),setValueSync(e,t),Promise.resolve();await makeRequest(`storage/${e}`,"PUT",{value:t})},removeValue:async e=>{const t=await CryptoSteamSDK.getProfile();if(Array.isArray(t==null?void 0:t.audiences)&&t.audiences.includes("banner_test"))return console.log("removeValueSync",e),removeValueSync(e),Promise.resolve();await makeRequest(`storage/${e}`,"DELETE")},getData:async e=>(console.warn("[DEPRECATED] Use PortalSDK.getValue instead"),(await makeRequest(`storage/${e}`,"GET")).value),setData:async(e,t)=>{console.warn("[DEPRECATED] Use PortalSDK.setValue instead"),await makeRequest(`storage/${e}`,"PUT",{value:t})},getLocale:()=>{var e,t;return((t=(e=window.Telegram.WebApp)==null?void 0:e.initDataUnsafe.user)==null?void 0:t.language_code)||"en"},showSharing:(e,t)=>{var s;const i=`https://t.me/share/url?text=${encodeURIComponent(t||"")}&url=${encodeURIComponent(e)}`;(s=window.Telegram.WebApp)==null||s.openTelegramLink(i)},telegramCloudStorage:{getValue:async e=>CloudStorageGetItem(e),setValue:async(e,t)=>CloudStorageSetItem(e,t),removeValue:async e=>CloudStorageRemoveItem(e)},gameReady:async()=>{console.log("CryptoSteamSDK: gameReady received");const e=await CryptoSteamSDK.getProfile(),t=await CryptoSteamSDK.getConfig();if(!e){console.error("Profile not found");return}if(!t){console.error("Config not found");return}mixpanel.track("game_ready",{game_id:e.game_id,game_title:t.title}),ReactGA.event("game_loaded",{gameId:e.game_id})},getWages:async()=>await makeRequest("v1/wages","GET"),claimWage:async e=>await makeRequest(`v1/wages/${e}/claim`,"POST"),startWage:async e=>await makeRequest(`v1/wages/${e}/start`,"POST"),setValueWage:async({wageId:e,value:t})=>await makeRequest(`v1/wages/${e}`,"PUT",{value:t}),getAdsgramController:()=>adsgramAdController,setBottomBanner:async()=>{const e=bannerManager.createDefaultContent();await bannerManager.setBanner(e,CryptoSteamSDK.getProfile)},clearBottomBanner:()=>{bannerManager.clearBanner()},showOverlay:()=>{const e=document.getElementById("overlay-root");e&&e.classList.remove("cssdk-overlay-hidden")},hideOverlay:()=>{const e=document.getElementById("overlay-root");e&&e.classList.add("cssdk-overlay-hidden")},isOverlayVisible:()=>{const e=document.getElementById("overlay-root");return e?!e.classList.contains("cssdk-overlay-hidden"):!1}};CryptoSteamSDK.requestAd=throttleLeading(CryptoSteamSDK.requestAd.bind(CryptoSteamSDK),1e4);const globalObj=getGlobalObj();globalObj.CryptoSteamSDK=CryptoSteamSDK,globalObj.PortalSDK=CryptoSteamSDK;const PortalEmuSDK={isAdRunning:()=>!1,getValueSync:e=>getValueSync(e),setValueSync:(e,t)=>{setValueSync(e,t)},removeValueSync:async e=>{removeValueSync(e)},reloadAd:()=>{},getStartParam:()=>{var t;const e=(t=window.Telegram.WebApp)==null?void 0:t.initDataUnsafe.start_param;return e||""},requestAd:async()=>{await CryptoSteamSDK.requestAd()}};globalObj.PortalEmuSDK=PortalEmuSDK,exports.BASE_URL=BASE_URL,exports.PortalSDK=CryptoSteamSDK,exports.default=CryptoSteamSDK,exports.makeRequest=makeRequest,exports.startGameTimeTrack=startGameTimeTrack,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
213
|
+
`}clearBanner(){const t=document.getElementById(this.containerId);if(!t){log$5.warn(`Banner container with id "${this.containerId}" not found`);return}t.classList.add("cssdk-banner-hide"),t.classList.remove("cssdk-banner-show"),setTimeout(()=>{t.innerHTML="",document.documentElement.style.setProperty("--banner-bottom-height","0px")},this.animationDuration)}getHeight(){return this.bannerHeight}isVisible(){const t=document.getElementById(this.containerId);return(t==null?void 0:t.classList.contains("cssdk-banner-show"))||!1}}const TELEGRAM_SCRIPT_URL="https://telegram.org/js/telegram-web-app.js?59";function ensureTelegramWebApp(){var e;return(e=window.Telegram)!=null&&e.WebApp?Promise.resolve(window.Telegram.WebApp):new Promise((t,i)=>{const s=document.querySelector('script[src*="telegram-web-app.js"]');if(s){s.addEventListener("load",()=>{var a;(a=window.Telegram)!=null&&a.WebApp?t(window.Telegram.WebApp):i(new Error("Telegram WebApp not available after script load"))}),s.addEventListener("error",()=>i(new Error("Failed to load Telegram WebApp script")));return}const o=document.createElement("script");o.src=TELEGRAM_SCRIPT_URL,o.async=!1,o.onload=()=>{var a;(a=window.Telegram)!=null&&a.WebApp?t(window.Telegram.WebApp):i(new Error("Telegram WebApp not available after script load"))},o.onerror=()=>i(new Error("Failed to load Telegram WebApp script")),document.head.appendChild(o)})}function getTelegramWebApp(){var t;const e=(t=window.Telegram)==null?void 0:t.WebApp;if(!e)throw new Error("Telegram WebApp is not available. Ensure ensureTelegramWebApp() was awaited before calling this.");return e}const DEFAULT_CONFIG={inactivityTimeout:15e3,activityScoreThreshold:10,motionThreshold:.05,gyroscopeThreshold:.05,checkInterval:1e3,maxActivityScore:15,scoreDecayRate:.95,autoclickerDetection:{enabled:!0,maxIdenticalIntervals:5,minTimingVariation:10,maxIdenticalPositions:3,requiredMotionThreshold:.5}};class ActivityDetector{constructor(t={}){this.listeners=new Set,this.checkInterval=null,this.domEventListeners=[],this.lastMotionData=null,this.lastGyroscopeData=null,this.config={...DEFAULT_CONFIG,...t};try{this.isTelegramAvailable=!!getTelegramWebApp().platform}catch{this.isTelegramAvailable=!1}this.state=this.initializeState(),this.setupActivityDetection()}initializeState(){const t=this.detectPlatform(),i=this.checkMotionSupport(),s=this.checkGyroscopeSupport();return{isActive:!0,lastActivityTime:Date.now(),activityScore:100,platform:t,hasMotionSupport:i,hasGyroscopeSupport:s,autoclickerDetected:!1,clickPattern:{lastClickTime:0,lastClickPosition:{x:0,y:0},timingHistory:[],positionHistory:[]}}}detectPlatform(){if(this.isTelegramAvailable){const i=getTelegramWebApp().platform;return i==="android"||i==="ios"?"mobile":"desktop"}const t=navigator.userAgent.toLowerCase();return/mobile|android|iphone|ipad|phone/i.test(t)?"mobile":"desktop"}checkMotionSupport(){return this.isTelegramAvailable?!!getTelegramWebApp().isVersionAtLeast("6.1"):!1}checkGyroscopeSupport(){return this.isTelegramAvailable?!!getTelegramWebApp().isVersionAtLeast("6.1"):!1}setupActivityDetection(){this.setupDOMEvents(),this.setupTelegramSensors(),this.startPeriodicCheck()}setupDOMEvents(){["mousedown","mousemove","click","touchstart","touchmove","touchend","keydown","keyup","scroll","wheel","focus","blur"].forEach(i=>{const s=this.createActivityListener();document.addEventListener(i,s,{passive:!0}),this.domEventListeners.push({event:i,listener:s})})}createActivityListener(){return t=>{if(this.config.autoclickerDetection.enabled&&this.detectAutoclicker(t)){this.state={...this.state,autoclickerDetected:!0};return}this.updateActivity(5)}}detectAutoclicker(t){const i=Date.now(),s=this.getEventPosition(t),o=i-this.state.clickPattern.lastClickTime,a=[...this.state.clickPattern.timingHistory,o],l=this.countIdenticalIntervals(a),c=this.countIdenticalPositions(s),u=this.state.motionData&&Math.abs(this.state.motionData.x)+Math.abs(this.state.motionData.y)+Math.abs(this.state.motionData.z)>this.config.autoclickerDetection.requiredMotionThreshold,d=l>this.config.autoclickerDetection.maxIdenticalIntervals||c>this.config.autoclickerDetection.maxIdenticalPositions||this.state.platform==="mobile"&&!u;return this.state.clickPattern={lastClickTime:i,lastClickPosition:s,timingHistory:a.slice(-10),positionHistory:[...this.state.clickPattern.positionHistory,{...s,time:i}].slice(-10)},d}countIdenticalIntervals(t){if(t.length<2)return 0;let i=0;for(let s=1;s<t.length;s++)if(Math.abs(t[s]-t[s-1])<this.config.autoclickerDetection.minTimingVariation?i++:i=0,i>=this.config.autoclickerDetection.maxIdenticalIntervals)return i;return i}countIdenticalPositions(t){const i=this.state.clickPattern.positionHistory;if(i.length===0)return 0;let s=0;for(let o=i.length-1;o>=0;o--){const a=i[o];if(Math.abs(t.x-a.x)<2&&Math.abs(t.y-a.y)<2)s++;else break;if(s>=this.config.autoclickerDetection.maxIdenticalPositions)return s}return s}getEventPosition(t){if(t.type.includes("touch")){const i=t;if(i.touches.length>0)return{x:i.touches[0].clientX,y:i.touches[0].clientY}}else if(t.type.includes("mouse")){const i=t;return{x:i.clientX,y:i.clientY}}return{x:0,y:0}}setupTelegramSensors(){if(!this.isTelegramAvailable){console.warn("Activity Detection: Telegram WebApp not available. Motion and gyroscope sensors will not work.");return}const t=getTelegramWebApp();this.state.hasMotionSupport&&t.Accelerometer&&t.Accelerometer.start({refresh_rate:1e3},i=>{i&&t.onEvent("accelerometerChanged",()=>{const s=t.Accelerometer;s&&s.isStarted&&this.handleMotionData(s.x,s.y,s.z)})}),this.state.hasGyroscopeSupport&&t.DeviceOrientation&&t.DeviceOrientation.start({refresh_rate:1e3,need_absolute:!1},i=>{i&&t.onEvent("deviceOrientationChanged",()=>{const s=t.DeviceOrientation;s&&s.isStarted&&this.handleGyroscopeData(s.alpha,s.beta,s.gamma)})})}handleMotionData(t,i,s){if(this.lastMotionData){const o=Math.abs(t-this.lastMotionData.x),a=Math.abs(i-this.lastMotionData.y),l=Math.abs(s-this.lastMotionData.z),c=o+a+l;if(c>this.config.motionThreshold){const u=Math.min(this.config.maxActivityScore,c*10);this.updateActivity(u)}}this.lastMotionData={x:t,y:i,z:s},this.state={...this.state,motionData:{x:t,y:i,z:s}},this.state.autoclickerDetected&&this.config.autoclickerDetection.enabled&&Math.abs(t)+Math.abs(i)+Math.abs(s)>this.config.autoclickerDetection.requiredMotionThreshold&&(this.state={...this.state,autoclickerDetected:!1})}handleGyroscopeData(t,i,s){if(this.lastGyroscopeData){const o=Math.abs(t-this.lastGyroscopeData.alpha),a=Math.abs(i-this.lastGyroscopeData.beta),l=Math.abs(s-this.lastGyroscopeData.gamma),c=o+a+l;if(c>this.config.gyroscopeThreshold){const u=Math.min(this.config.maxActivityScore,c*5);this.updateActivity(u)}}this.lastGyroscopeData={alpha:t,beta:i,gamma:s},this.state={...this.state,gyroscopeData:{alpha:t,beta:i,gamma:s}}}updateActivity(t){const i=Date.now(),s=i-this.state.lastActivityTime,o=Math.max(0,1-s/this.config.inactivityTimeout),a=this.state.activityScore*o,l=Math.min(100,a+t);this.state={...this.state,isActive:l>=this.config.activityScoreThreshold,lastActivityTime:i,activityScore:l},this.notifyListeners()}startPeriodicCheck(){this.checkInterval=setInterval(()=>{const i=Date.now()-this.state.lastActivityTime,s=Math.max(0,1-i/this.config.inactivityTimeout),o=this.state.activityScore*s*this.config.scoreDecayRate,a=o>=this.config.activityScoreThreshold;(this.state.isActive!==a||Math.abs(this.state.activityScore-o)>1)&&(this.state={...this.state,isActive:a,activityScore:Math.max(0,o)},this.notifyListeners())},this.config.checkInterval)}notifyListeners(){this.listeners.forEach(t=>{try{t(this.state)}catch(i){console.error("Error in activity listener:",i)}})}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}getState(){return{...this.state}}resetAutoclickerDetection(){this.state={...this.state,autoclickerDetected:!1,clickPattern:{lastClickTime:0,lastClickPosition:{x:0,y:0},timingHistory:[],positionHistory:[]}}}updateConfig(t){this.config={...this.config,...t}}destroy(){if(this.checkInterval&&(clearInterval(this.checkInterval),this.checkInterval=null),this.domEventListeners.forEach(({event:t,listener:i})=>{document.removeEventListener(t,i)}),this.domEventListeners=[],this.isTelegramAvailable){const t=getTelegramWebApp();t.Accelerometer&&t.Accelerometer.isStarted&&t.Accelerometer.stop(),t.DeviceOrientation&&t.DeviceOrientation.isStarted&&t.DeviceOrientation.stop()}this.listeners.clear()}}let activityDetectorInstance=null;function getActivityDetector(e){return activityDetectorInstance||(activityDetectorInstance=new ActivityDetector(e)),activityDetectorInstance}function getBaseAnalyticsParams(){return{game_id:window.game_id,game_title:window.game_title,game_url:window.location.origin+window.location.pathname}}const log$4=createAdLogger("Adsgram");async function showAdsgramAdWithTimeout(e){if(!e)return log$4.error("Ad controller not available"),mixpanel.track("ad_show_error",{message:"Adsgram Ad Controller not available",error_type:"controller_unavailable",...getBaseAnalyticsParams(),ad_type:"adsgram"}),!1;const t=e;return log$4.group("Showing Ad"),log$4.time("show"),new Promise(i=>{const s=setTimeout(()=>{log$4.timeEnd("show"),log$4.error("Ad request timed out after 5s"),log$4.groupEnd(),mixpanel.track("ad_show_error",{message:"Adsgram ad request timed out after 5 seconds",error_type:"timeout",timeout_duration:5e3,...getBaseAnalyticsParams(),ad_type:"adsgram"}),i(!1)},5e3);mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"adsgram"}),log$4.info("Starting ad display..."),t.show().then(o=>{clearTimeout(s),log$4.timeEnd("show"),o.done?(log$4.info("Ad finished successfully",{state:o.state,description:o.description}),mixpanel.track("ad_show_success",{...getBaseAnalyticsParams(),ad_type:"adsgram"}),log$4.groupEnd(),i(!0)):(log$4.warn("Ad was not completed",{state:o.state,description:o.description}),mixpanel.track("ad_show_error",{message:"Adsgram ad was not completed.",error_type:"not_completed",result:o,...getBaseAnalyticsParams(),ad_type:"adsgram"}),log$4.groupEnd(),i(!1))}).catch(o=>{clearTimeout(s),log$4.timeEnd("show"),log$4.error("Ad error",{error:o==null?void 0:o.error,state:o==null?void 0:o.state,description:o==null?void 0:o.description}),log$4.groupEnd(),mixpanel.track("ad_show_error",{message:"Adsgram ad threw an error",error_type:"exception",error:(o==null?void 0:o.error)||String(o),...getBaseAnalyticsParams(),ad_type:"adsgram"}),i(!1)})})}const log$3=createAdLogger("Gigapub");function parseProjectId(e){const t=document.createElement("div");t.innerHTML=e;const i=t.querySelector("script");if(!i)throw new Error("Gigapub: no script tag found in gigapub configuration.");const o=(i.getAttribute("src")||"").match(/[?&]id=([^&]+)/);if(o)return o[1];const a=i.getAttribute("data-project-id");if(a)return a;throw new Error("Gigapub: could not parse project id from script.")}async function initGigapubAds(e){log$3.group("Initialization"),log$3.time("init");const t=parseProjectId(e);log$3.info("Parsed project ID",{projectId:t});const i=document.createElement("script");return i.setAttribute("data-project-id",t),i.text="!function(){var s=document.currentScript,p=s.getAttribute('data-project-id')||'default';var d=['https://ad.gigapub.tech','https://ru-ad.gigapub.tech'],i=0,t,sc;function l(){sc=document.createElement('script');sc.async=true;sc.src=d[i]+'/script?id='+p;clearTimeout(t);t=setTimeout(function(){sc.onload=sc.onerror=null;sc.src='';if(++i<d.length)l()},15000);sc.onload=function(){clearTimeout(t)};sc.onerror=function(){clearTimeout(t);if(++i<d.length)l()};document.head.appendChild(sc)}l()}()",new Promise((s,o)=>{document.head.appendChild(i),log$3.info("Multi-CDN script appended to head");const a=Date.now(),l=setInterval(()=>{if(window.showGiga&&typeof window.showGiga=="function")clearInterval(l),log$3.timeEnd("init"),log$3.info("Initialized successfully (showGiga found)"),log$3.groupEnd(),s();else if(Date.now()-a>35e3){clearInterval(l);const c=new Error("Gigapub: showGiga function did not appear on window object within timeout.");log$3.timeEnd("init"),log$3.error("Init timeout — showGiga not found after 35s"),log$3.groupEnd(),o(c)}},100)})}async function showGigapubAd(e,t){const i=crypto.randomUUID();return!window.showGiga||typeof window.showGiga!="function"?e?(log$3.warn("showGiga not available, using fallback",{transactionId:i}),mixpanel.track("ad_show_fallback",{message:"Gigapub showGiga function not available, using fallback.",...getBaseAnalyticsParams(),ad_type:"gigapub",transaction_id:i,placement_id:t}),await e()):(mixpanel.track("ad_show_error",{message:"Gigapub showGiga function not available",error_type:"function_unavailable",...getBaseAnalyticsParams(),ad_type:"gigapub",transaction_id:i,placement_id:t}),!1):(log$3.group("Showing Ad"),log$3.time("show"),log$3.info("Starting ad display",{transactionId:i,placementId:t}),new Promise(s=>{mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"gigapub",transaction_id:i,placement_id:t}),window.showGiga({transactionId:i,showTag:t}).then(()=>{log$3.timeEnd("show"),log$3.info("Ad finished successfully",{transactionId:i,placementId:t}),log$3.groupEnd(),mixpanel.track("ad_show_success",{...getBaseAnalyticsParams(),ad_type:"gigapub",transaction_id:i,placement_id:t}),s(!0)}).catch(o=>{log$3.timeEnd("show"),log$3.error("Ad error",{error:o,transactionId:i,placementId:t}),log$3.groupEnd(),mixpanel.track("ad_show_error",{message:"Gigapub ad failed or was skipped",error_type:"exception",error:o==null?void 0:o.toString(),error_message:(o==null?void 0:o.message)||"Unknown error",...getBaseAnalyticsParams(),ad_type:"gigapub",transaction_id:i,placement_id:t}),s(!1)})}))}const log$2=createAdLogger("Monetag");async function initMonetagAds(e){log$2.group("Initialization"),log$2.time("init");try{const t=document.createElement("div");t.innerHTML=e;const i=t.firstElementChild;if(i){const s=i.dataset.sdk||null,o=document.createElement("script");for(let a=0;a<i.attributes.length;a++){const l=i.attributes[a];o.setAttribute(l.name,l.value)}return i.text&&(o.text=i.text),await new Promise((a,l)=>{if(!s){const u=new Error("Monetag: ad function name not found in script tag");return log$2.error("Ad function name not found in script tag"),log$2.timeEnd("init"),log$2.groupEnd(),l(u)}const c=s;log$2.info("Ad function name found",{fnName:c}),o.onload=()=>{log$2.info("Script loaded, waiting for function on window...");const u=Date.now(),d=setInterval(()=>{if(typeof window[c]=="function")clearInterval(d),log$2.timeEnd("init"),log$2.info("Initialized successfully",{fnName:c}),log$2.groupEnd(),a();else if(Date.now()-u>5e3){clearInterval(d);const p=new Error(`Monetag: function ${c} did not appear on window object within 5 seconds.`);log$2.timeEnd("init"),log$2.error("Init timeout — function not found after 5s",{fnName:c}),log$2.groupEnd(),l(p)}},100)},o.onerror=u=>{log$2.timeEnd("init"),log$2.error("Script failed to load",u),log$2.groupEnd(),l(new Error("Monetag: script failed to load."))},document.head.appendChild(o),log$2.info("Script appended to head")}),s}return log$2.error("No script tag found in monetag configuration"),log$2.timeEnd("init"),log$2.groupEnd(),null}catch(t){return log$2.error("Failed to initialize",t),log$2.timeEnd("init"),log$2.groupEnd(),null}}function createMonetagFallbackFunction(e,t){return async()=>{const i=window.game_id?String(window.game_id):"0";return await showMonetagAd(e,i,t)}}async function showMonetagAd(e,t,i){if(log$2.group("Showing Ad"),log$2.time("show"),log$2.info("Starting ad display",{fnName:e,ymid:t,placementId:i}),!e)return log$2.error("Ad function name not found"),log$2.timeEnd("show"),log$2.groupEnd(),mixpanel.track("ad_show_error",{message:"Monetag ad function name not found",error_type:"function_name_missing",...getBaseAnalyticsParams(),ad_type:"monetag",placement_id:i}),!1;const s=window[e];if(typeof s!="function")return log$2.error("Ad function not found on window",{fnName:e}),log$2.timeEnd("show"),log$2.groupEnd(),mixpanel.track("ad_show_error",{message:"Monetag ad function not found on window object",error_type:"function_unavailable",function_name:e,...getBaseAnalyticsParams(),ad_type:"monetag",placement_id:i}),!1;const o=i?`orbit-${i}`:"orbit";return new Promise(a=>{mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"monetag",placement_id:i}),s({ymid:t,requestVar:o,timeout:5}).then(()=>{log$2.timeEnd("show"),log$2.info("Ad watched successfully",{placementId:i}),log$2.groupEnd(),mixpanel.track("ad_show_success",{...getBaseAnalyticsParams(),ad_type:"monetag",placement_id:i}),a(!0)}).catch(l=>{log$2.timeEnd("show"),log$2.error("Ad failed or was skipped",{error:l,placementId:i}),log$2.groupEnd(),mixpanel.track("ad_show_error",{message:"Monetag ad failed or was skipped",error_type:"ad_failed",error:String(l),...getBaseAnalyticsParams(),ad_type:"monetag",placement_id:i}),a(!1)})})}var define_process_env_default$1={NODE_ENV:"production",version:"1.92.2",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"};const log$1=createAdLogger("Orbit");async function initOrbitAds(){log$1.group("Initialization"),log$1.time("init"),log$1.info("Loading script...");const e=define_process_env_default$1.ADS_SCRIPT_URL,t=document.createElement("script");return t.src=e,t.async=!0,new Promise((i,s)=>{t.onload=()=>{log$1.info("Script loaded, waiting for showOrbitAds function...");const o=Date.now(),a=setInterval(()=>{if(window.showOrbitAds&&typeof window.showOrbitAds=="function")clearInterval(a),log$1.timeEnd("init"),log$1.info("Initialized successfully"),log$1.groupEnd(),i();else if(Date.now()-o>5e3){clearInterval(a);const l=new Error("Orbit: showOrbitAds function did not appear on window object within 5 seconds.");log$1.timeEnd("init"),log$1.error("Init timeout — showOrbitAds not found after 5s",l),log$1.groupEnd(),s(l)}},100)},t.onerror=o=>{log$1.timeEnd("init"),log$1.error("Script failed to load",o),log$1.groupEnd(),s(new Error("Orbit: script failed to load."))},document.head.appendChild(t),log$1.info("Script appended to head")})}async function showOrbitAd(e,t){const i=crypto.randomUUID();if(!window.showOrbitAds||typeof window.showOrbitAds!="function")return e?(log$1.warn("showOrbitAds not available, using fallback",{transactionId:i}),mixpanel.track("ad_show_fallback",{message:"Orbit showOrbitAds function not available, using fallback.",...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),await e()):(mixpanel.track("ad_show_error",{message:"Orbit showOrbitAds function not available",error_type:"function_unavailable",...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),!1);mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),log$1.group("Showing Ad"),log$1.time("show"),log$1.info("Starting ad display",{transactionId:i,...t});try{const s=await window.showOrbitAds(t);if(log$1.timeEnd("show"),log$1.info("showOrbitAds resolved",{response:s,transactionId:i}),s.is_direct_sales)return mixpanel.track("ad_show_success",{...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),log$1.info("Ad shown successfully (internal ad)"),log$1.groupEnd(),!0;if(log$1.warn("is_direct_sales=false, falling back to provider",{transactionId:i}),mixpanel.track("ad_show_fallback",{message:"Orbit has no ad available, falling back to provider network.",...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),e){const o=await e();return log$1.info("Fallback result",{result:o,transactionId:i}),log$1.groupEnd(),o}return log$1.groupEnd(),!1}catch(s){if(log$1.timeEnd("show"),log$1.error("Ad error",{error:s,transactionId:i}),mixpanel.track("ad_show_error",{message:"Orbit ad failed or was skipped",error_type:"exception",error:s instanceof Error?s.toString():String(s),error_message:s instanceof Error?s.message:"Unknown error",...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i}),e){log$1.warn("Error occurred, using fallback provider",{transactionId:i}),mixpanel.track("ad_show_fallback",{message:"Orbit ad errored, falling back to provider network.",...getBaseAnalyticsParams(),ad_type:"orbit",transaction_id:i});const o=await e();return log$1.info("Fallback result after error",{result:o,transactionId:i}),log$1.groupEnd(),o}return log$1.groupEnd(),!1}}const log=createAdLogger("TMA");async function checkAdStatus(e){try{log.info("Checking ad status",{adId:e});const t=await fetch(`https://sp.tmanetwork.tech/bid_info?id=${e}`);if(t.status===204)return log.info("Ad status: NOT_SHOWED (204)",{adId:e}),mixpanel.track("ad_status_not_showed",{...getBaseAnalyticsParams(),ad_id:e,ad_type:"tma"}),"NOT_SHOWED";if(!t.ok)throw new Error(`Failed to check ad status: ${t.status}`);const i=await t.json();return i.click_created?(log.info("Ad status: CLICKED",{adId:e}),mixpanel.track("ad_status_clicked",{...getBaseAnalyticsParams(),ad_id:e,ad_type:"tma"}),"CLICKED"):i.imp_created?(log.info("Ad status: SHOWED",{adId:e}),mixpanel.track("ad_status_showed",{...getBaseAnalyticsParams(),ad_id:e,ad_type:"tma"}),"SHOWED"):(log.info("Ad status: NOT_SHOWED (no imp/click)",{adId:e}),mixpanel.track("ad_status_not_showed",{...getBaseAnalyticsParams(),ad_id:e,ad_type:"tma"}),"NOT_SHOWED")}catch(t){throw log.error("Error checking ad status",{adId:e,error:t}),mixpanel.track("ad_status_error",{...getBaseAnalyticsParams(),ad_id:e,ad_type:"tma"}),t}}async function showAd(e={}){if(!window.TMANetwork){const t=new Error("TMANetwork is not available");throw log.error("TMANetwork not available on window"),mixpanel.track("ad_show_error",{message:"TMANetwork is not available",error_type:"sdk_unavailable",...getBaseAnalyticsParams(),ad_type:"tma"}),t}if(window.TMANetwork.hasInterstitialAd()){log.info("Ad already loaded, showing immediately"),e.onStart&&e.onStart();try{mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"tma"});const t=await window.TMANetwork.showInterstitialAd();return log.info("Ad shown successfully",{adId:t.id}),mixpanel.track("ad_show_success",{...getBaseAnalyticsParams(),ad_type:"tma",ad_id:t.id}),window.TMANetwork.reloadAd(),t}catch(t){throw log.error("Error showing preloaded ad",t),mixpanel.track("ad_show_error",{message:t instanceof Error?t.message:"Unknown error showing TMA ad",error_type:"exception",error:t instanceof Error?t.toString():String(t),...getBaseAnalyticsParams(),ad_type:"tma"}),t}}return log.info("Waiting for ad to load (10s timeout)..."),new Promise((t,i)=>{let s=!1;const o=async()=>{if(!s){s=!0;try{log.info("onAdLoaded event received"),mixpanel.track("ad_load_event_received",{...getBaseAnalyticsParams(),ad_type:"tma"}),e.onStart&&e.onStart(),mixpanel.track("ad_show_started",{...getBaseAnalyticsParams(),ad_type:"tma"});const a=await window.TMANetwork.showInterstitialAd();log.info("Ad shown successfully after load",{adId:a.id}),mixpanel.track("ad_load_success",{...getBaseAnalyticsParams(),ad_type:"tma",ad_id:a.id}),window.TMANetwork.reloadAd(),t(a)}catch(a){log.error("Error showing ad after load event",a),mixpanel.track("ad_load_error",{message:a instanceof Error?a.message:"Unknown error loading TMA ad",error_type:"load_exception",error:a instanceof Error?a.toString():String(a),...getBaseAnalyticsParams(),ad_type:"tma"}),i(a)}}};setTimeout(()=>{if(!s){s=!0;const a=new Error("Ad load timeout");log.error("Ad load timeout after 10s"),mixpanel.track("ad_load_timeout",{message:"Ad load timeout after 10 seconds",error_type:"timeout",timeout_duration:1e4,...getBaseAnalyticsParams(),ad_type:"tma"}),i(a)}},1e4),window.TMANetwork.addEventListener("onAdLoaded",o)})}function loadTMANetworkScript(){return new Promise((e,t)=>{if(log.group("Script Load"),log.time("scriptLoad"),mixpanel.track("tma_script_load_requested",getBaseAnalyticsParams()),document.querySelector('script[src="https://files.tmanetwork.tech/tmanetwork.min.js"]')){log.info("Script already loaded (skipping)"),log.timeEnd("scriptLoad"),log.groupEnd(),e();return}const i=document.createElement("script");i.src="https://files.tmanetwork.tech/tmanetwork.min.js",i.async=!0,i.onload=()=>{log.timeEnd("scriptLoad"),log.info("Script loaded successfully"),log.groupEnd(),mixpanel.track("tma_script_load_success",getBaseAnalyticsParams()),e()},i.onerror=s=>{log.timeEnd("scriptLoad"),log.error("Failed to load script",s),log.groupEnd(),mixpanel.track("tma_script_load_error",{message:"Failed to load TMANetwork script",error_type:"script_load_failed",error:String(s),...getBaseAnalyticsParams()}),captureException(s),t(new Error("Failed to load TMANetwork script"))},document.head.appendChild(i)})}function initSentry(){init({dsn:"https://b52384170118e5a8b1f43ca653975198@o4509677809172480.ingest.de.sentry.io/4509677817364560",sendDefaultPii:!0,integrations:[dedupeIntegration()],maxBreadcrumbs:50,beforeBreadcrumb(e){return e.category==="console"&&e.level!=="error"?null:e}})}function validateCloudStorageValue(e){if(e==null)return{isValid:!1,error:"Value cannot be null or undefined"};const t=e.length;let i;try{i=new TextEncoder().encode(e)}catch{return{isValid:!1,error:"Value cannot be encoded as UTF-8",characterCount:t}}const s=i.length;if(s>4096)return{isValid:!1,error:`Value exceeds maximum size: ${s} bytes (limit: 4096 bytes)`,byteSize:s,characterCount:t};if(e.includes("\0"))return{isValid:!1,error:"Value contains null bytes (\\0) which are not allowed",byteSize:s,characterCount:t};if(/[\x01-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]/.test(e))return{isValid:!1,error:"Value contains invalid control characters",byteSize:s,characterCount:t};try{if(new TextDecoder("utf-8",{fatal:!0}).decode(i)!==e)return{isValid:!1,error:"Value encoding/decoding mismatch",byteSize:s,characterCount:t}}catch{return{isValid:!1,error:"Value contains invalid UTF-8 sequences",byteSize:s,characterCount:t}}return{isValid:!0,byteSize:s,characterCount:t}}function ensureViewportMetaTag(){if(typeof document>"u")return;const e=document.head||document.getElementsByTagName("head")[0];if(!e)return;const t=document.querySelector('meta[name="viewport"]'),i=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);if(!t&&i){const s=document.createElement("meta");s.name="viewport",s.content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no",e.appendChild(s)}}const getGlobalObj=()=>{if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;throw new Error("No global object found")};function throttleLeading(e,t){let i=0;return function(...s){const o=Date.now();return o-i>=t?(i=o,e.apply(this,s)):(console.log(`Function is throttled. Next call available in ${t-(o-i)}ms`),Promise.resolve(!1))}}var define_process_env_default={NODE_ENV:"production",version:"1.92.2",BASE_URL:"https://app.portalapp.games/sdk",ADS_SCRIPT_URL:"https://ads-sdk.portalapp.games/script.js",ASSETS_BASE_URL:"https://sdk.portalapp.games/assets"};ensureViewportMetaTag(),initSentry();const adLog=createAdLogger("SDK"),CloudStorageGetItem=e=>new Promise((t,i)=>{getTelegramWebApp().CloudStorage.getItem(e,(s,o)=>{s?i(new Error(s)):t(o??null)})}),CloudStorageSetItem=(e,t)=>new Promise((i,s)=>{getTelegramWebApp().CloudStorage.setItem(e,t,(o,a)=>{o?s(new Error(o)):i(a??null)})}),CloudStorageRemoveItem=e=>new Promise((t,i)=>{getTelegramWebApp().CloudStorage.removeItem(e,(s,o)=>{s?i(new Error(s)):t(o??null)})}),BASE_URL=define_process_env_default.BASE_URL,G_MEASUREMENT_ID="G-4RMXVE2K75",BANNER_HEIGHT=60,bannerManager=new BannerManager({height:BANNER_HEIGHT});let timer=null;const pending={};let state={};const CLOUD_STORAGE_PREFIX="sdk_pending_",LOCAL_STORAGE_PREFIX="portal_sdk_pending_";function setValueSync(e,t){let i;if(typeof t=="object"&&t!==null)try{i=JSON.stringify(t)}catch(a){console.error(`Failed to serialize value for ${e}:`,a),i=String(t)}else i=String(t);state[e]=pending[e]=i;try{localStorage.setItem(`${LOCAL_STORAGE_PREFIX}${e}`,i)}catch(a){console.error(`Failed to save ${e} to localStorage:`,a)}const{isValid:s,error:o}=validateCloudStorageValue(i);if(!s){console.warn(`Value for ${e} cannot be saved to CloudStorage:`,o);return}CloudStorageSetItem(`${CLOUD_STORAGE_PREFIX}${e}`,i).catch(a=>{console.error(`Failed to save ${e} to CloudStorage:`,a)})}function removeValueSync(e){delete state[e],delete pending[e];try{localStorage.removeItem(`${LOCAL_STORAGE_PREFIX}${e}`)}catch(t){console.error(`Failed to remove ${e} from localStorage:`,t)}CloudStorageRemoveItem(`${CLOUD_STORAGE_PREFIX}${e}`).catch(console.error),makeRequest(`storage/${e}`,"DELETE").catch(console.error)}function getValueSync(e){return state[e]}async function loadAll(){const e={};try{for(let a=0;a<localStorage.length;a++){const l=localStorage.key(a);if(l&&l.startsWith(LOCAL_STORAGE_PREFIX)){const c=localStorage.getItem(l);if(c){const u=l.replace(LOCAL_STORAGE_PREFIX,"");e[u]=c,console.log(`Loaded from localStorage: ${u}`)}}}}catch(a){console.error("Failed to load from localStorage:",a)}const t={};try{const a=await new Promise((l,c)=>{getTelegramWebApp().CloudStorage.getKeys((u,d)=>{u?c(new Error(u)):l(d??[])})});for(const l of a)if(l.startsWith(CLOUD_STORAGE_PREFIX))try{const c=await CloudStorageGetItem(l);if(c){const u=l.replace(CLOUD_STORAGE_PREFIX,"");t[u]=c,console.log(`Loaded from CloudStorage: ${u}`)}}catch(c){console.error(`Failed to load ${l} from CloudStorage:`,c)}}catch(a){console.error("Failed to load keys from CloudStorage:",a)}const i={...t,...e},s=[500,500,1e3];let o=0;for(;;)try{const a=await makeRequest("storage/","GET");state={...a.data,...i};for(const l of Object.keys(i))pending[l]=i[l];console.log(`Loaded state from backend (${Object.keys(a.data).length} keys), localStorage (${Object.keys(e).length} keys) and CloudStorage (${Object.keys(t).length} keys)`);return}catch(a){if(o>=s.length){console.error("Failed to load all storage values:",a),state=i;for(const l of Object.keys(i))pending[l]=i[l];return}await delay(s[o]),o+=1}}function startSaveTick(){timer&&clearInterval(timer),loadAll(),timer=setInterval(async()=>{await savePendingChanges()},5*1e3)}async function savePendingChanges(){const e={...pending};console.log("save pending changes "+Object.keys(e).length),console.log(pending);for(const t of Object.keys(e)){const i=e[t],s=[500,500,1e3];let o=0,a=!1;for(;!a;)try{if(await makeRequest(`storage/${t}`,"PUT",{value:i}),pending[t]===i){delete pending[t];try{localStorage.removeItem(`${LOCAL_STORAGE_PREFIX}${t}`),console.log(`Removed ${t} from localStorage after successful sync`)}catch(l){console.error(`Failed to remove ${t} from localStorage:`,l)}try{await CloudStorageRemoveItem(`${CLOUD_STORAGE_PREFIX}${t}`),console.log(`Removed ${t} from CloudStorage after successful sync`)}catch(l){console.error(`Failed to remove ${t} from CloudStorage:`,l)}}else console.log(`Value for ${t} changed during save, keeping in pending and local storages`);a=!0}catch(l){if(o>=s.length){console.error(`Failed to save key ${t}:`,l);break}await delay(s[o]),o+=1}}}let configCache=null;const CACHE_DURATION_MS=5*60*1e3;let adType=null,orbitInitialized=!1,monetagShowAdFnName=null,adsgramAdController=null,countRequestAd=1,externalBotId=null,externalAuthData=null,isPortal=!1,launchResponseCache=null;const telegramReady=ensureTelegramWebApp(),makeRequest=createMakeRequest({baseUrl:BASE_URL,getAuthData:()=>externalAuthData,getBotId:()=>externalBotId,getInitData:()=>{var e,t;return((t=(e=window.Telegram)==null?void 0:e.WebApp)==null?void 0:t.initData)??""},waitUntilReady:()=>telegramReady});function getStartupConfig(){return window==null?void 0:window.startupConfig}let intervalId;const trackTimeEveryS=20;function startGameTimeTrack(){intervalId&&clearInterval(intervalId),CryptoSteamSDK.trackGameTimeTick(),intervalId=setInterval(()=>{CryptoSteamSDK.trackGameTimeTick()},trackTimeEveryS*1e3)}try{const e=(hc=(dc=(fc=(uc=window.Telegram)==null?void 0:uc.WebApp)==null?void 0:fc.initDataUnsafe)==null?void 0:dc.user)==null?void 0:hc.id;mixpanel.init("b0d7c97039e244366388b9a210c0b15a",{debug:!0,track_pageview:!0,persistence:"localStorage"}),e&&mixpanel.identify(String(e)),mixpanel.track("sdk_initialized",getBaseAnalyticsParams())}catch(e){console.error(e)}const CryptoSteamSDK={version:define_process_env_default.version,onAdStart:null,onAdEnd:null,initialize:async(e,t)=>{var s,o;const i=await ensureTelegramWebApp();isPortal=(t==null?void 0:t.mode)==="portal";try{t!=null&&t.authData&&(console.error("USE AUTH_DATA FOR REQUESTS!!!"),console.log("options.authData",t.authData),externalAuthData=t.authData),e&&(externalBotId=e,queryClient.invalidateQueries({queryKey:[PROFILE_TAG]}),queryClient.invalidateQueries({queryKey:[PRICES_TAG]})),isPortal||startSaveTick();const a=await CryptoSteamSDK.getProfile(),l=await CryptoSteamSDK.getConfig();libExports.isMobile&&l.supported_screen_formats.includes("fullscreen")||!libExports.isMobile&&l.supported_screen_formats.includes("fullscreen-desktop")?(i==null||i.setHeaderColor("#000"),i==null||i.setBackgroundColor("#000"),i==null||i.requestFullscreen()):i==null||i.exitFullscreen(),adLog.group("SDK & Ads Initialization"),adLog.time("fullInit"),adLog.info("Starting initialization",{version:define_process_env_default.version});const c=await makeRequest("launch","POST");launchResponseCache=c,await new Promise(d=>{document.readyState==="complete"?d():window.addEventListener("load",()=>d())});const{ads:u}=c;try{await initOrbitAds(),orbitInitialized=!0}catch(d){adLog.error("Orbit failed to initialize",d)}if((u==null?void 0:u.type)==="tma"&&u.tmaAdsKey)if(adType="tma",await loadTMANetworkScript(),window.TMANetwork)await window.TMANetwork.init(c.tma_ads_key),adLog.info("TMANetwork initialized successfully");else throw new Error("TMANetwork object not found.");else if((u==null?void 0:u.type)==="monetag"&&u.monetag)adType="monetag",monetagShowAdFnName=await initMonetagAds(u.monetag);else if((u==null?void 0:u.type)==="adsgram"&&u.adsgram){adType="adsgram",adLog.info("Adsgram: initialization started");try{const d=document.createElement("script");d.src="https://sad.adsgram.ai/js/sad.min.js",d.async=!0,await new Promise((p,m)=>{d.onload=()=>{adLog.info("Adsgram: script loaded, waiting for window.Adsgram...");const g=Date.now(),b=setInterval(()=>{if(window.Adsgram&&typeof window.Adsgram.init=="function")if(clearInterval(b),adLog.info("Adsgram: window.Adsgram found, initializing..."),adsgramAdController=window.Adsgram.init({blockId:u.adsgram}),adsgramAdController)adLog.info("Adsgram: initialized successfully"),p();else{const y=new Error("Adsgram: init returned null or undefined.");adLog.error("Adsgram: init returned null",y),m(y)}else if(Date.now()-g>5e3){clearInterval(b);const y=new Error("Adsgram: window.Adsgram did not appear within 5 seconds.");adLog.error("Adsgram: init timeout after 5s",y),m(y)}},100)},d.onerror=g=>{adLog.error("Adsgram: script failed to load",g),m(new Error("Adsgram: script failed to load."))},document.head.appendChild(d),adLog.info("Adsgram: script appended to head")})}catch(d){adLog.error("Adsgram: failed to initialize",d)}}else if((u==null?void 0:u.type)==="gigapub"&&u.gigapub){adType="gigapub";try{await initGigapubAds(u.gigapub)}catch(d){adLog.error("Gigapub: failed to initialize",d)}if(u.monetag)try{monetagShowAdFnName=await initMonetagAds(u.monetag),adLog.info("Monetag fallback initialized for Gigapub")}catch(d){adLog.error("Monetag fallback: failed to initialize",d)}}adLog.timeEnd("fullInit"),adLog.info("Ads network fully initialized",{provider:adType,orbitInitialized}),adLog.groupEnd(),(s=a==null?void 0:a.audiences)!=null&&s[0]&&mixpanel.track("$experiment_started",{"Experiment name":"start_page_ab","Variant name":(o=a==null?void 0:a.audiences)==null?void 0:o[0]})}catch(a){adLog.timeEnd("fullInit"),adLog.error("Error during ads initialization",a),adLog.groupEnd()}try{const a=await CryptoSteamSDK.getProfile(),l=await CryptoSteamSDK.getConfig();if(t!=null&&t.authData&&console.log("externalAuthData",externalAuthData),!a){console.error("Profile not found");return}if(!l){console.error("Config not found");return}mixpanel.identify(String(a.id)),window.game_id=a.game_id,window.game_title=l.title,ReactGA.initialize(G_MEASUREMENT_ID,{gaOptions:{userId:a.id,gameId:a.game_id}}),ReactGA.event("init",{gameId:a.game_id}),mixpanel.track("game_initialized",{game_id:a.game_id,game_title:l.title}),!isPortal&&!(t!=null&&t.disable_startup_ads)&&CryptoSteamSDK.requestAd().catch(c=>{adLog.error("Error requesting initial ad",c)})}catch(a){console.error("Error during GA initialization:",a)}},getLaunchResponse:()=>launchResponseCache,isLaunchedFromPortal:()=>{var e,t,i;return((i=(t=(e=window==null?void 0:window.Telegram)==null?void 0:e.WebApp)==null?void 0:t.initDataUnsafe)==null?void 0:i.start_param)==="orbit_launcher"},getConfig:async()=>{const e=Date.now();if(configCache&&configCache.expiresAt>e)return configCache.config;const t=await makeRequest("config","GET");return configCache={config:t,expiresAt:e+CACHE_DURATION_MS},t},isAdEnabled:async()=>(await makeRequest("ads/status","GET")).enabled,requestAd:async(e={})=>{var t,i,s,o,a;adLog.group("requestAd"),adLog.time("requestAd"),(t=CryptoSteamSDK.onAdStart)==null||t.call(CryptoSteamSDK);try{const l=await CryptoSteamSDK.getProfile(),c=CryptoSteamSDK.getLaunchResponse();if(countRequestAd===1&&!isPortal&&(adLog.info("First request — checking launch rules",{is_ad_cooldown:c==null?void 0:c.is_ad_cooldown}),c&&c.is_ad_cooldown))return countRequestAd++,adLog.warn("Skipped: ad is in cooldown",{is_ad_cooldown:c.is_ad_cooldown}),(i=CryptoSteamSDK.onAdEnd)==null||i.call(CryptoSteamSDK,!1),adLog.timeEnd("requestAd"),adLog.groupEnd(),!1;if(l.ads_free&&!isPortal)return adLog.warn("Skipped: profile has ads_free flag"),(s=CryptoSteamSDK.onAdEnd)==null||s.call(CryptoSteamSDK,!1),adLog.timeEnd("requestAd"),adLog.groupEnd(),!1;mixpanel.track("ad_show_requested",{...getBaseAnalyticsParams(),ad_type:orbitInitialized?"orbit":adType,placement_id:e.placementId});const d=async()=>{if(adType==="tma")try{return await showAd(e),!0}catch(m){return adLog.error("Error showing TMA ad",m),!1}if(adType==="monetag"){const g=`${(await CryptoSteamSDK.getProfile()).game_id}`;return await showMonetagAd(monetagShowAdFnName,g,e.placementId)}if(adType==="adsgram")return await showAdsgramAdWithTimeout(adsgramAdController);if(adType==="gigapub"){const m=createMonetagFallbackFunction(monetagShowAdFnName,e.placementId);return await showGigapubAd(m,e.placementId)}return adLog.error("Ad network not initialized or not supported",{adType}),mixpanel.track("ad_show_error",{...getBaseAnalyticsParams(),message:"Ad network not initialized or not supported",ad_type:adType,error_type:"unsupported_network",placement_id:e.placementId}),!1};countRequestAd=++countRequestAd;let p;if(adLog.info("Dispatching ad request",{orbitInitialized,adType,placementId:e.placementId}),orbitInitialized){const m=l.game_id?Number(l.game_id):void 0;p=await showOrbitAd(d,{zoneId:m,placementId:e.placementId})}else p=await d();return adLog.timeEnd("requestAd"),adLog.info("Ad request completed",{result:p}),adLog.groupEnd(),(o=CryptoSteamSDK.onAdEnd)==null||o.call(CryptoSteamSDK,p),p}catch(l){return adLog.timeEnd("requestAd"),adLog.error("Error in requestAd",l),adLog.groupEnd(),mixpanel.track("ad_show_error",{...getBaseAnalyticsParams(),message:l instanceof Error?l.message:"Unknown error in requestAd",error_type:"sdk_exception",ad_type:adType,error:l instanceof Error?l.toString():String(l),placement_id:e.placementId}),(a=CryptoSteamSDK.onAdEnd)==null||a.call(CryptoSteamSDK,!1),!1}},requestRewardAd:async(e={})=>{var t,i,s;adLog.group("requestRewardAd"),adLog.time("requestRewardAd"),(t=CryptoSteamSDK.onAdStart)==null||t.call(CryptoSteamSDK);try{mixpanel.track("ad_show_requested",{...getBaseAnalyticsParams(),ad_type:orbitInitialized?"orbit":adType,placement_id:e.placementId});const o=async()=>{if(adType==="tma")try{const l=await showAd(e);await delay(1e3);const c=await checkAdStatus(l.id);return c==="SHOWED"||c==="CLICKED"}catch(l){return adLog.error("Error showing TMA reward ad",l),!1}if(adType==="monetag"){const c=`${(await CryptoSteamSDK.getProfile()).game_id}`;return await showMonetagAd(monetagShowAdFnName,c,e.placementId)}if(adType==="adsgram")return await showAdsgramAdWithTimeout(adsgramAdController);if(adType==="gigapub"){const l=createMonetagFallbackFunction(monetagShowAdFnName,e.placementId),c=await showGigapubAd(l,e.placementId);return await delay(2e3),c}return adLog.error("Ad network not initialized or not supported",{adType}),mixpanel.track("ad_show_error",{...getBaseAnalyticsParams(),message:"Ad network not initialized or not supported",ad_type:adType,error_type:"unsupported_network",placement_id:e.placementId}),!1};let a;if(adLog.info("Dispatching reward ad request",{orbitInitialized,adType,placementId:e.placementId}),orbitInitialized){const l=window.game_id?Number(window.game_id):void 0;a=await showOrbitAd(o,{zoneId:l,placementId:e.placementId})}else a=await o();return adLog.timeEnd("requestRewardAd"),adLog.info("Reward ad request completed",{result:a}),adLog.groupEnd(),(i=CryptoSteamSDK.onAdEnd)==null||i.call(CryptoSteamSDK,a),a}catch(o){return adLog.timeEnd("requestRewardAd"),adLog.error("Error in requestRewardAd",o),adLog.groupEnd(),mixpanel.track("ad_show_error",{...getBaseAnalyticsParams(),message:o instanceof Error?o.message:"Unknown error in requestRewardAd",error_type:"sdk_exception",ad_type:adType,error:o instanceof Error?o.toString():String(o),placement_id:e.placementId}),(s=CryptoSteamSDK.onAdEnd)==null||s.call(CryptoSteamSDK,!1),!1}},getProfile:async()=>await makeRequest("profile","GET"),getBalance:async()=>await makeRequest("balance","GET"),trackGameTimeTick:()=>{getActivityDetector().getState().isActive&&makeRequest("ping","POST")},getVersion:()=>version,initializeOverlay:async e=>{await telegramReady,e!=null&&e.authData&&(console.error("USE AUTH_DATA FOR REQUESTS!!!"),externalAuthData=e.authData),startGameTimeTrack(),e!=null&&e.botId&&(externalBotId=e.botId,queryClient.invalidateQueries({queryKey:[PROFILE_TAG]}),queryClient.invalidateQueries({queryKey:[PRICES_TAG]}));const t=getStartupConfig(),i={...e,initialPosition:(e==null?void 0:e.initialPosition)??(t==null?void 0:t.overlayPosition)??"topLeft"};if(document.getElementById("overlay-root")){console.log("Overlay root already exists");return}if(createOverlay(i),!((e==null?void 0:e.visible)!==!1)){const a=document.getElementById("overlay-root");a&&a.classList.add("cssdk-overlay-hidden")}window.runGame&&window.runGame()},getShopItems:async()=>(await makeRequest("shop/items","GET")).items,getPurchasedShopItem:async e=>await makeRequest(`shop/purchases/${e}`,"GET"),getPurchasedShopItems:async()=>await makeRequest("shop/purchases","GET"),buyShopItem:async e=>{const t=await CryptoSteamSDK.getBalance(),s=(await CryptoSteamSDK.getShopItems()).find(o=>o.id===e);if(s||console.warn(`Not found shop item with id ${e}`),s&&t.balance_gems>=s.price)return await makeRequest(`shop/items/${e}/buy`,"POST");useTopUpModalStore.getState().setIsOpen(!0)},openPurchaseConfirmModal:async(e,t)=>{const i=await ensureTelegramWebApp(),s=await CryptoSteamSDK.getBalance();return new Promise((o,a)=>{if(s.balance_gems<e.price){useTopUpModalStore.getState().setIsOpen(!0),a(new Error("insufficient funds"));return}const l=document.createElement("div");l.style.position="fixed",l.style.top="0",l.style.left="0",l.style.width="100%",l.style.height="100%",l.style.backgroundColor="transparent",l.style.zIndex="9999";const c=document.createElement("iframe");if(c.style.position="fixed",t){let S=t.x+(t.width-210)/2,w=t.y-108-20;w<8&&(w=t.y+t.height+20),S+210>window.innerWidth-8&&(S=window.innerWidth-8-210),S<8&&(S=8),(w+108>window.innerHeight-8||w<8)&&(w=(window.innerHeight-108)/2,S=(window.innerWidth-210)/2),c.style.left=`${S}px`,c.style.top=`${w}px`}else c.style.left="50%",c.style.top="50%",c.style.transform="translate(-50%, -50%)";c.style.boxShadow="0px 0px 2px 1px rgba(0, 0, 0, 0.22), 0px 32px 64px rgba(0, 0, 0, 0.34)",c.style.borderRadius="24px",c.style.border="none",c.style.zIndex="10000",c.referrerPolicy="origin",c.style.width="210px",c.style.height="108px",c.style.backgroundColor="white";const u=new URLSearchParams;u.set("itemId",e.id.toString()),u.set("price",e.price.toString()),u.set("__tg_x_auth",i==null?void 0:i.initData);const d={confirm:{pay:translationsTyped("confirmIframe.pay"),cancel:translationsTyped("confirmIframe.cancel")}};u.set("translations",JSON.stringify(d)),c.src=`${BASE_URL}/shop/payment_iframe?${u.toString()}`;const p=m=>{m.data.type==="confirm"?(window.removeEventListener("message",p),document.body.removeChild(l),document.body.removeChild(c),o({status:"success"})):m.data.type==="cancel"?(window.removeEventListener("message",p),document.body.removeChild(l),document.body.removeChild(c),o({status:"error"})):m.data.type==="error"&&(window.removeEventListener("message",p),document.body.removeChild(l),document.body.removeChild(c),a(new Error(m.data.message)))};window.addEventListener("message",p),l.onclick=()=>{window.removeEventListener("message",p),document.body.removeChild(l),document.body.removeChild(c),o({status:"error"})},document.body.appendChild(l),document.body.appendChild(c)})},createInvoice:async(e,t,i,s)=>await makeRequest("invoices","POST",{title:e,description:t,to_user_id:i,amount:s}),getAllKeyValues:async()=>{const e=await CryptoSteamSDK.getProfile();return Array.isArray(e==null?void 0:e.audiences)&&e.audiences.includes("banner_test")?(console.log("getAllKeyValuesSync"),Promise.resolve(state)):(await makeRequest("storage/","GET")).data},getValue:async e=>{const t=await CryptoSteamSDK.getProfile();return Array.isArray(t==null?void 0:t.audiences)&&t.audiences.includes("banner_test")?(console.log("getValueSync",e),Promise.resolve(getValueSync(e))):(await makeRequest(`storage/${e}`,"GET")).value},setValue:async(e,t)=>{const i=await CryptoSteamSDK.getProfile();if(Array.isArray(i==null?void 0:i.audiences)&&i.audiences.includes("banner_test"))return console.log("setValueSync",e,t),setValueSync(e,t),Promise.resolve();await makeRequest(`storage/${e}`,"PUT",{value:t})},removeValue:async e=>{const t=await CryptoSteamSDK.getProfile();if(Array.isArray(t==null?void 0:t.audiences)&&t.audiences.includes("banner_test"))return console.log("removeValueSync",e),removeValueSync(e),Promise.resolve();await makeRequest(`storage/${e}`,"DELETE")},getData:async e=>(console.warn("[DEPRECATED] Use PortalSDK.getValue instead"),(await makeRequest(`storage/${e}`,"GET")).value),setData:async(e,t)=>{console.warn("[DEPRECATED] Use PortalSDK.setValue instead"),await makeRequest(`storage/${e}`,"PUT",{value:t})},getLocale:()=>{var e,t;return((t=(e=window.Telegram.WebApp)==null?void 0:e.initDataUnsafe.user)==null?void 0:t.language_code)||"en"},showSharing:(e,t)=>{var s;const i=`https://t.me/share/url?text=${encodeURIComponent(t||"")}&url=${encodeURIComponent(e)}`;(s=window.Telegram.WebApp)==null||s.openTelegramLink(i)},telegramCloudStorage:{getValue:async e=>CloudStorageGetItem(e),setValue:async(e,t)=>CloudStorageSetItem(e,t),removeValue:async e=>CloudStorageRemoveItem(e)},gameReady:async()=>{console.log("CryptoSteamSDK: gameReady received");const e=await CryptoSteamSDK.getProfile(),t=await CryptoSteamSDK.getConfig();if(!e){console.error("Profile not found");return}if(!t){console.error("Config not found");return}mixpanel.track("game_ready",{game_id:e.game_id,game_title:t.title}),ReactGA.event("game_loaded",{gameId:e.game_id})},getWages:async()=>await makeRequest("v1/wages","GET"),claimWage:async e=>await makeRequest(`v1/wages/${e}/claim`,"POST"),startWage:async e=>await makeRequest(`v1/wages/${e}/start`,"POST"),setValueWage:async({wageId:e,value:t})=>await makeRequest(`v1/wages/${e}`,"PUT",{value:t}),getAdsgramController:()=>adsgramAdController,setBottomBanner:async()=>{const e=bannerManager.createDefaultContent();await bannerManager.setBanner(e,CryptoSteamSDK.getProfile)},clearBottomBanner:()=>{bannerManager.clearBanner()},showOverlay:()=>{const e=document.getElementById("overlay-root");e&&e.classList.remove("cssdk-overlay-hidden")},hideOverlay:()=>{const e=document.getElementById("overlay-root");e&&e.classList.add("cssdk-overlay-hidden")},isOverlayVisible:()=>{const e=document.getElementById("overlay-root");return e?!e.classList.contains("cssdk-overlay-hidden"):!1}};CryptoSteamSDK.requestAd=throttleLeading(CryptoSteamSDK.requestAd.bind(CryptoSteamSDK),1e4);const globalObj=getGlobalObj();globalObj.CryptoSteamSDK=CryptoSteamSDK,globalObj.PortalSDK=CryptoSteamSDK;const PortalEmuSDK={isAdRunning:()=>!1,getValueSync:e=>getValueSync(e),setValueSync:(e,t)=>{setValueSync(e,t)},removeValueSync:async e=>{removeValueSync(e)},reloadAd:()=>{},getStartParam:()=>{var t;const e=(t=window.Telegram.WebApp)==null?void 0:t.initDataUnsafe.start_param;return e||""},requestAd:async()=>{await CryptoSteamSDK.requestAd()}};globalObj.PortalEmuSDK=PortalEmuSDK,exports.BASE_URL=BASE_URL,exports.PortalSDK=CryptoSteamSDK,exports.default=CryptoSteamSDK,exports.makeRequest=makeRequest,exports.startGameTimeTrack=startGameTimeTrack,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|