@andreyfedkovich/cozy-ui 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/styles.css +1 -1
- package/dist-lib/ui-library.cjs.js +6 -6
- package/dist-lib/ui-library.cjs.js.map +1 -1
- package/dist-lib/ui-library.es.js +2379 -2389
- package/dist-lib/ui-library.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),c=require("react/jsx-runtime"),Rn=require("react-dom");function ba(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=ba(g),ya=ba(Rn),Ol=e=>d.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M0.5 8.50634L8.5 0.5L16.5 8.49975",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.5 6.58643V16.4994H14.5V6.56641",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M6.5 16.4998V10.5H10.5",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),Dl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.09237 4.75028C8.31363 4.75028 8.49345 4.92792 8.49345 5.1465V8.80763C8.49345 9.02622 8.31363 9.2032 8.09237 9.2032H5.6565C5.43524 9.2032 5.2561 9.02622 5.2561 8.80763C5.2561 8.58839 5.43524 8.41141 5.6565 8.41141H7.6913V5.1465C7.6913 4.92792 7.87111 4.75028 8.09237 4.75028ZM1 8C1 11.8599 4.17853 15 8.08502 15C11.4053 15 14.2442 12.7712 14.9895 9.58028C15.0397 9.36763 14.9047 9.155 14.6887 9.10547C14.4775 9.05859 14.2582 9.18933 14.2074 9.40264C13.547 12.2317 11.0296 14.2075 8.08502 14.2075C4.62038 14.2075 1.80149 11.4227 1.80149 8C1.80149 4.5766 4.62038 1.79245 8.08502 1.79245C10.5296 1.79245 12.7502 3.20962 13.7756 5.36839H11.3912C11.17 5.36839 10.9901 5.54537 10.9901 5.76396C10.9901 5.98254 11.17 6.16019 11.3912 6.16019H14.424C14.6453 6.16019 14.8244 5.98254 14.8244 5.76396V2.76849C14.8244 2.54991 14.6453 2.37226 14.424 2.37226C14.2028 2.37226 14.023 2.54991 14.023 2.76849V4.18236C12.7335 2.23226 10.5062 1 8.08502 1C4.17853 1 1 4.14009 1 8Z",fill:"currentColor"})),Rl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5774)"},d.createElement("path",{d:"M8.24567 14.0242H0.666672V0.666992H6.60323L10.5609 4.6247V9.57183",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M6.60417 0.666992V4.6247H10.5619",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M12.638 12.54L13.8254 13.7405L15.0127 12.54",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.07781 12.5403L7.89047 11.3398L6.70312 12.5403",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12.2564 15.1521C11.7 15.4559 11.0599 15.5703 10.4328 15.4781C9.80562 15.3859 9.22551 15.092 8.78019 14.6409C8.38611 14.2414 8.11251 13.7391 7.99061 13.1914C7.8687 12.6437 7.90348 12.0728 8.09094 11.5439",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.45833 9.9274C10.0147 9.62358 10.6548 9.50915 11.2819 9.60138C11.9091 9.69361 12.4892 9.9875 12.9345 10.4386C13.3288 10.8379 13.6028 11.34 13.7252 11.8877C13.8477 12.4353 13.8138 13.0063 13.6272 13.5355",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5774"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Pl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5680)"},d.createElement("path",{d:"M13.9999 6.31067V3.52381H5.79479V2H0.666595V12.2264C0.666595 12.3432 0.713287 12.4551 0.796637 12.5377C0.879986 12.6202 0.993098 12.6666 1.11097 12.6666H8.35888",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M14.2521 6L9.0879 11.1766L8 14L10.8358 12.9333L16 7.75667L14.2521 6Z",stroke:"currentColor",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.33339 11.333L10.6667 12.6663",stroke:"currentColor",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5680"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Tl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.05584 2.58008V5.33656C4.3465 5.33656 4.28125 6.22012 4.28125 6.4379C4.28125 6.65568 4.44608 7.68235 5.15853 7.68235C5.39614 8.66258 5.9937 9.51765 6.83242 10.0779",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.6302 10.0628C10.4691 9.50283 11.0666 8.64767 11.3039 7.66731C12.0102 7.66731 12.1751 6.65932 12.1751 6.43843C12.1751 6.21754 12.2964 5.34953 11.5933 5.33709V2.62109",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.37643 9.79102V10.4669C6.37643 10.9336 6.60665 11.6118 4.04309 12.1003C1.33332 12.6167 1.33333 14.6669 1.33333 14.6669H15.3333C15.3333 14.6669 15.3334 12.6603 12.4338 12.1003C9.94494 11.618 10.1005 10.9336 10.1005 10.4669V9.79102",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M4.59114 11.9824L8.32766 14.6673L12.061 12.0228",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8.3282 3.00033L1.79167 1.60033L8.3282 0.666992L14.8615 1.60033L8.3282 3.00033Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.05725 3.93359L8.32711 4.40026L11.5938 3.93359",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.25781 1.69336V7.20001",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Al=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M6.9329 14H2V9.06713H6.9329V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.9329 6.60059H2V1.66765H6.9329V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.3343 14H9.40144V9.06713H14.3343V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.3343 6.60059H9.40144V1.66765H14.3343V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Il=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5733)"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2984 6.64286C15.2984 10.7453 8.14844 15 8.14844 15C8.14844 15 0.998444 10.7453 0.998444 6.64286C0.998444 6.53654 0.998444 6.2315 0.998444 6.17857C0.998444 3.87061 2.7989 2 5.02032 2C6.28408 2 7.4111 2.60682 8.14755 3.55396C8.88489 2.60682 10.0124 2 11.2766 2C13.498 2 15.2984 3.87061 15.2984 6.17857C15.2984 6.23104 15.2984 6.53607 15.2984 6.64286Z",stroke:"currentColor"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5733"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Ll=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5852)"},d.createElement("path",{d:"M4.81389 5.81154C4.79445 6.087 5.00199 6.32606 5.27745 6.3455C5.55291 6.36494 5.79197 6.1574 5.81141 5.88194L5.31265 5.84674L4.81389 5.81154ZM10.6346 4.74381L11.1154 4.6067V4.6067L10.6346 4.74381ZM8.27563 9.0822L7.96537 8.69011L8.27563 9.0822ZM7.09347 11.3614C7.09347 11.6376 7.31733 11.8614 7.59347 11.8614C7.86961 11.8614 8.09347 11.6376 8.09347 11.3614H7.59347H7.09347ZM5.31265 5.84674L5.81141 5.88194C5.90808 4.51228 6.8506 3.80991 7.87427 3.67837C8.94608 3.54065 9.91206 4.03342 10.1537 4.88092L10.6346 4.74381L11.1154 4.6067C10.6897 3.114 9.11102 2.51123 7.74682 2.68653C6.33448 2.868 4.94971 3.88719 4.81389 5.81154L5.31265 5.84674ZM10.6346 4.74381L10.1537 4.88092C10.2697 5.28772 10.347 5.69413 10.1318 6.24186C9.9049 6.81911 9.32895 7.61111 7.96537 8.69011L8.27563 9.0822L8.58589 9.47429C10.01 8.34742 10.7424 7.42216 11.0625 6.60764C11.3942 5.76361 11.2571 5.10376 11.1154 4.6067L10.6346 4.74381ZM8.27563 9.0822L7.96537 8.69011C7.0119 9.44458 7.09347 10.6137 7.09347 11.3614H7.59347H8.09347C8.09347 10.4547 8.08561 9.87017 8.58589 9.47429L8.27563 9.0822Z",fill:"currentColor"}),d.createElement("circle",{cx:7.66097,cy:13.1607,r:.431202,fill:"currentColor"}),d.createElement("path",{d:"M8.17085 15.3418C12.1312 15.3418 15.3418 12.1313 15.3418 8.17095C15.3418 4.21057 12.1312 1 8.17085 1C4.21047 1 1 4.21057 1 8.17095C1 12.1313 4.21047 15.3418 8.17085 15.3418Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5852"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Wl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"m38.46 11.54l-5.85-5.9a3.9 3.9 0 0 0-2.76-1.14h-19.5a2 2 0 0 0-1.95 2v35.1a2 2 0 0 0 1.95 2h27.3a2 2 0 0 0 2-2V14.3a3.9 3.9 0 0 0-1.19-2.76m-25.08 3.15H29.7m-16.32 7.03h21.24m-21.24 7.03h19.5m-19.5 7.03h12.68"})),$l=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.26562 6.60009V3.33337C5.26562 2.71452 5.51145 2.12104 5.94904 1.68345C6.38663 1.24586 6.98015 1 7.599 1C8.21784 1 8.81132 1.24586 9.24891 1.68345C9.68651 2.12104 9.93237 2.71452 9.93237 3.33337V6.60009",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M13.2002 5.66699H2V15.0005H13.2002V5.66699Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),Fl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5666)"},d.createElement("path",{d:"M12.3924 13.6144L11.0069 7.30241L13.701 4.60825C14.8557 3.45361 15.2406 1.91409 14.8557 1.14433C14.0859 0.75945 12.5464 1.14433 11.3918 2.29897L8.69759 4.99313L2.38557 3.60756C2.00069 3.53058 1.69278 3.68454 1.53883 3.99244L1.3079 4.37732C1.15395 4.7622 1.23093 5.14708 1.53883 5.37801L5.61856 8.07217L4.07904 10.3814H1.76976L1 11.1512L3.30928 12.6907L4.8488 15L5.61856 14.2302V11.921L7.92784 10.3814L10.622 14.4612C10.8529 14.7691 11.2378 14.846 11.6227 14.6921L12.0076 14.5381C12.3155 14.3072 12.4694 13.9993 12.3924 13.6144Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5666"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Bl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5649)"},d.createElement("path",{d:"M11.7265 12.0262C9.54829 11.6097 9.54246 10.9341 9.54246 10.4973V9.8042C9.97361 9.38644 10.3133 8.88369 10.5399 8.32776C10.7665 7.77182 10.875 7.17487 10.8587 6.57475V4.478C10.8587 2.20657 9.24835 1.33301 7.80104 1.33301C6.35374 1.33301 4.74336 2.20657 4.74336 4.478V6.57475C4.72731 7.17345 4.83548 7.76895 5.06102 8.32378C5.28656 8.8786 5.62458 9.38067 6.0538 9.79837V10.4973C6.0538 10.9341 6.0538 11.6301 3.86974 12.0262C3.25845 12.135 2.69243 12.4205 2.24165 12.8475C1.79087 13.2744 1.4751 13.8241 1.33333 14.4286H14.2601C14.1154 13.826 13.7992 13.2783 13.3495 12.8519C12.8998 12.4254 12.336 12.1386 11.7265 12.0262V12.0262Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5649"},d.createElement("rect",{width:16,height:16,fill:"white"})))),zl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5794)"},d.createElement("path",{d:"M9.12936 11.9944H1.33333C1.33333 11.9944 1.33335 10.4405 3.42691 10.0372C5.22691 9.69028 5.22975 9.14763 5.22975 8.79178V8.43298C4.77582 8.01292 4.45171 7.47165 4.29568 6.87318V6.87318C3.74708 6.87318 3.6166 5.7463 3.6166 5.58024C3.6166 5.41417 3.59592 4.73811 4.15045 4.73811C3.79164 3.31472 3.85386 2.00989 4.83837 2.00989C7.21069 0.370026 10.3629 1.8765 9.20046 4.73811C9.75795 4.73811 9.74011 5.41121 9.74011 5.58024C9.74011 5.74926 9.61273 6.87318 9.06116 6.87318C8.90437 7.4744 8.57795 8.0179 8.12101 8.43892V8.79475C8.12101 9.03791 8.05281 9.51827 9.01063 9.86522",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M11.1147 13.3319C12.343 13.3319 13.3387 12.3361 13.3387 11.1078C13.3387 9.87953 12.343 8.88379 11.1147 8.88379C9.88636 8.88379 8.89062 9.87953 8.89062 11.1078C8.89062 12.3361 9.88636 13.3319 11.1147 13.3319Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M12.6849 12.6797L14.6718 14.6666",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5794"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Hl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5697)"},d.createElement("path",{d:"M11.4479 1.33301H13.3353V3.22339",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.66681 7.55537L6.66986 3.99973L9.33659 5.3331L13.3367 1.33301",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12.4479 14.6664V5.77734H14.2257V14.6664",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M8.89062 14.6662V10.2246H10.6684V14.6662",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M5.33333 14.6665V8.8916H7.11411V14.6665",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M1.77864 14.6667V12.0029H3.55646V14.6667",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M14.6699 14.667H1.33333",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5697"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Yl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M4.93759 11.5H1.65C1.47761 11.5 1.31233 11.4285 1.19043 11.3012C1.06853 11.1739 1 11.0014 1 10.8214V2.67857C1 2.4986 1.06853 2.32598 1.19043 2.19873C1.31233 2.07147 1.47761 2 1.65 2H13.35C13.5224 2 13.6877 2.07147 13.8096 2.19873C13.9315 2.32598 14 2.4986 14 2.67857",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M13.9996 10.5448C14.0057 10.7866 13.9466 11.0252 13.8291 11.2326C13.7117 11.44 13.5407 11.6076 13.3365 11.7156L5.60035 14.9065C4.93136 15.2187 4.71622 14.6817 4.71622 14.2821V6.32045C4.70283 6.07729 4.75896 5.83551 4.87725 5.62665C4.99553 5.41778 5.17049 5.25154 5.37932 5.14963L12.8827 2.05555C13.3748 1.86822 13.9967 2.18353 13.9967 2.57068L13.9996 10.5448Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M7.5 10.5C8.01283 10.5 8.42857 10.0523 8.42857 9.5C8.42857 8.94772 8.01283 8.5 7.5 8.5C6.98716 8.5 6.57143 8.94772 6.57143 9.5C6.57143 10.0523 6.98716 10.5 7.5 10.5Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M3.32143 4.5H7.96428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3.32143 7H4.71428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Vl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M472 96h-88V40h-32v56H160V40h-32v56H40a24.03 24.03 0 0 0-24 24v336a24.03 24.03 0 0 0 24 24h432a24.03 24.03 0 0 0 24-24V120a24.03 24.03 0 0 0-24-24m-8 352H48V128h80v40h32v-40h192v40h32v-40h80Z"}),d.createElement("path",{d:"M112 224h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32zm-256 72h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32zm-256 72h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32z"})),ql=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M8 7.5A1.5 1.5 0 0 1 9.5 6h12A1.5 1.5 0 0 1 23 7.5v3a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 8 10.5zm2 .5v2h11V8zM4 5.25A3.25 3.25 0 0 1 7.25 2h16.5A3.25 3.25 0 0 1 27 5.25v21.5A3.25 3.25 0 0 1 23.75 30H7.25A3.25 3.25 0 0 1 4 26.75zM7.25 4C6.56 4 6 4.56 6 5.25v21.5c0 .69.56 1.25 1.25 1.25h16.5c.69 0 1.25-.56 1.25-1.25V5.25C25 4.56 24.44 4 23.75 4zm22 4H28v4h1.25a.75.75 0 0 0 .75-.75v-2.5a.75.75 0 0 0-.75-.75M28 14h1.25a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75H28zm1.25 6H28v4h1.25a.75.75 0 0 0 .75-.75v-2.5a.75.75 0 0 0-.75-.75"})),Gl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8M305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3z"})),Ul=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M9.5 1A1.5 1.5 0 0 0 8 2.5v2a1.5 1.5 0 0 0 1 1.414V7a.5.5 0 0 0 .82.384L11.48 6h2.02A1.5 1.5 0 0 0 15 4.5v-2A1.5 1.5 0 0 0 13.5 1zM9 2.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2.2a.5.5 0 0 0-.32.116l-.98.816V5.5a.5.5 0 0 0-.5-.5a.5.5 0 0 1-.5-.5zM3 6a2 2 0 1 1 4 0a2 2 0 0 1-4 0m2-1a1 1 0 1 0 0 2a1 1 0 0 0 0-2M2.5 9h5A1.5 1.5 0 0 1 9 10.5c0 1.116-.459 2.01-1.212 2.615C7.047 13.71 6.053 14 5 14s-2.047-.29-2.788-.885C1.46 12.51 1 11.616 1 10.5A1.5 1.5 0 0 1 2.5 9m5 1h-5a.5.5 0 0 0-.5.5c0 .817.325 1.423.838 1.835C3.364 12.757 4.12 13 5 13s1.636-.243 2.162-.665C7.675 11.923 8 11.317 8 10.5a.5.5 0 0 0-.5-.5"})),Zl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M1536 640h-512V512h512zm-512 384h512v128h-512zm131 896l128 128H256V0h1536v1283l-128 128V128H384v1792zM941 429L704 666L531 493l90-90l83 83l147-147zm0 512l-237 237l-173-173l90-90l83 83l147-147zm-237 569l147-147l90 90l-237 237l-173-173l90-90zm1325-57l-557 558l-269-270l90-90l179 178l467-466z"})),Xl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M20.039 4.751a1 1 0 0 0 1.922.551l.827-2.884a1 1 0 1 0-1.922-.55zm8.668-1.458a1 1 0 0 1 0 1.414l-3 3a1 1 0 1 1-1.414-1.414l3-3a1 1 0 0 1 1.414 0M26 11.002a1 1 0 0 1 1-1h3a1 1 0 0 1 0 2h-3a1 1 0 0 1-1-1M11.956 5.659a3 3 0 0 1 4.805-.78l10.36 10.36a3 3 0 0 1-.78 4.804l-4.749 2.375a5.5 5.5 0 0 1-9.813 4.906l-2.717 1.359A3 3 0 0 1 5.6 28.12L3.88 26.4a3 3 0 0 1-.562-3.463zm1.62 20.767a3.5 3.5 0 0 0 6.218-3.109zm1.77-20.133a1 1 0 0 0-1.6.26l-8.64 17.279a1 1 0 0 0 .187 1.154l1.72 1.72a1 1 0 0 0 1.155.188l17.279-8.64a1 1 0 0 0 .26-1.601z"})),Kl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:19,height:19,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M17 17a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5m0 0a4.5 4.5 0 0 1 4.5 4.5M17 17a4.5 4.5 0 0 0-4.5 4.5M7 7.5a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5m0 0a4.5 4.5 0 0 1 4.5 4.5M7 7.5A4.5 4.5 0 0 0 2.5 12m1 3.5c0 2.764 2.236 5 5 5l-.5-2m10.5-10c0-2.764-2.236-5-5-5l.5 2"})),Ql=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm192 200v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8m-48 396H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8m104.1-115.6c1.8-34.5 16.2-66.8 40.8-91.4c26.2-26.2 62-41 99.1-41c37.4 0 72.6 14.6 99.1 41c3.2 3.2 6.3 6.6 9.2 10.1L769.2 673a8 8 0 0 0 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l.6-95.4a8 8 0 0 0-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7c-.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6M880 744h-48.1c-4.3 0-7.8 3.3-8 7.6c-1.8 34.5-16.2 66.8-40.8 91.4c-26.2 26.2-62 41-99.1 41c-37.4 0-72.6-14.6-99.1-41c-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9a8 8 0 0 0-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-.6 95.4a8 8 0 0 0 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7c.2-4.5-3.5-8.3-8-8.3"})),wa=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40m-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40"}),d.createElement("path",{d:"M894 345c-48.1-66-115.3-110.1-189-130v.1c-17.1-19-36.4-36.5-58-52.1c-163.7-119-393.5-82.7-513 81c-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4c5.3 16.9 23.3 26.2 40.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6c17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408M323 735l-12-5l-99 31l-1-104l-8-9c-84.6-103.2-90.2-251.9-11-361c96.4-132.2 281.2-161.4 413-66c132.2 96.1 161.5 280.6 66 412c-80.1 109.9-223.5 150.5-348 102m505-17l-8 10l1 104l-98-33l-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1C613.7 788.2 680.7 742.2 729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62c72.6 99.6 68.5 235.2-8 330"}),d.createElement("path",{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40"})),xr=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M6.5433 12.0867C9.6048 12.0867 12.0867 9.60488 12.0867 6.54338C12.0867 3.48188 9.6048 1 6.5433 1C3.4818 1 1 3.48188 1 6.54338C1 9.60488 3.4818 12.0867 6.5433 12.0867Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.4727 10.4707L15.9994 16.0007",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Jl=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M19 12.5H6M19 12.5L14.3333 8M19 12.5L14.3333 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),dt=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3285 17.0857 11.7189 17.0989 11.3243 16.7372L5.32428 11.2372C4.91716 10.864 4.88965 10.2314 5.26285 9.82427C5.63604 9.41715 6.26861 9.38965 6.67573 9.76284L11.9699 14.6159L17.2929 9.29289Z",fill:"currentColor"})),ed=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3285 17.0857 11.7189 17.0989 11.3243 16.7372L5.32428 11.2372C4.91716 10.864 4.88965 10.2314 5.26285 9.82427C5.63604 9.41715 6.26861 9.38965 6.67573 9.76284L11.9699 14.6159L17.2929 9.29289Z",fill:"rgba(0, 109, 240, 0.8)"})),ct=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M13 3L8 8M3 13L8 8M8 8L3 3L13 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Ro=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M8 11.6226L10.8813 15L16 9",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),td=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#FFEEEE"}),d.createElement("path",{d:"M7.5 7.5L16.5 16.5M7.5 16.5L16.5 7.5",stroke:"#D72D40",strokeWidth:1.4,strokeLinecap:"round"})),nd=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F4F0"}),d.createElement("path",{d:"M9.89997 17C9.7143 17 9.53632 16.9248 9.40507 16.7909L5.20502 12.505C4.93166 12.226 4.93166 11.7739 5.20502 11.495C5.47837 11.216 5.92165 11.216 6.19483 11.495L9.89997 15.2757L17.8052 7.2092C18.0785 6.93027 18.5218 6.93027 18.795 7.2092C19.0683 7.48813 19.0683 7.94045 18.795 8.21939L10.3949 16.7909C10.2636 16.9248 10.0857 17 9.89997 17Z",fill:"#00A582"})),rd=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F1FF"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1056 8.28604C12.3584 8.28604 12.5639 8.48905 12.5639 8.73886V12.923C12.5639 13.1728 12.3584 13.3751 12.1056 13.3751H9.32172C9.06885 13.3751 8.86411 13.1728 8.86411 12.923C8.86411 12.6724 9.06885 12.4702 9.32172 12.4702H11.6472V8.73886C11.6472 8.48905 11.8527 8.28604 12.1056 8.28604ZM4 12C4 16.4113 7.63261 20 12.0972 20C15.8917 20 19.1362 17.4528 19.988 13.806C20.0453 13.563 19.891 13.32 19.6443 13.2634C19.4029 13.2098 19.1523 13.3592 19.0942 13.603C18.3394 16.8362 15.4624 19.0943 12.0972 19.0943C8.13758 19.0943 4.91599 15.9117 4.91599 12C4.91599 8.08754 8.13758 4.90566 12.0972 4.90566C14.8909 4.90566 17.4288 6.52528 18.6007 8.99245H15.8757C15.6228 8.99245 15.4173 9.19471 15.4173 9.44452C15.4173 9.69433 15.6228 9.89736 15.8757 9.89736H19.3418C19.5946 9.89736 19.7994 9.69433 19.7994 9.44452V6.02113C19.7994 5.77132 19.5946 5.5683 19.3418 5.5683C19.0889 5.5683 18.8834 5.77132 18.8834 6.02113V7.63698C17.4097 5.4083 14.8642 4 12.0972 4C7.63261 4 4 7.58867 4 12Z",fill:"#4573D9"})),od=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M21.9006 11.9999C21.9006 6.53258 17.4684 2.10042 12.0011 2.10042C6.53372 2.10042 2.10156 6.53258 2.10156 11.9999C2.10156 17.4673 6.53372 21.8994 12.0011 21.8994C17.4684 21.8994 21.9006 17.4673 21.9006 11.9999Z",fill:"#00A582",stroke:"#00A582",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M8 11.6226L10.8813 15L16 9",stroke:"white",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),xa=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"#D72D40",stroke:"#D72D40",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M15.6912 8.31348L8.30859 15.6917",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M15.6947 15.6917L8.31641 8.31348",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ca=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M11.8617 21.7234C17.3082 21.7234 21.7234 17.3082 21.7234 11.8617C21.7234 6.41523 17.3082 2 11.8617 2C6.41523 2 2 6.41523 2 11.8617C2 17.3082 6.41523 21.7234 11.8617 21.7234Z",fill:"#FFA300",stroke:"#FFA300",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M11.3004 13.9799L11.0046 6.75096C11.0001 6.63834 11.0178 6.52593 11.0567 6.42017C11.0957 6.3144 11.155 6.21731 11.2315 6.1345C11.3079 6.05168 11.3999 5.98475 11.5022 5.93749C11.6046 5.89023 11.7152 5.86359 11.8278 5.85908C11.9404 5.85458 12.0528 5.87228 12.1586 5.91122C12.2644 5.95015 12.3614 6.00959 12.4442 6.08603C12.527 6.16248 12.594 6.25442 12.6413 6.35673C12.6885 6.45905 12.7152 6.56967 12.7197 6.68229C12.7197 6.70373 12.7197 6.72952 12.7197 6.75096L12.4238 13.9799C12.4238 14.1295 12.3644 14.2729 12.2587 14.3787C12.1529 14.4844 12.0095 14.5438 11.86 14.5438C11.7104 14.5438 11.567 14.4844 11.4613 14.3787C11.3555 14.2729 11.2961 14.1295 11.2961 13.9799H11.3004Z",fill:"white"}),d.createElement("circle",{cx:11.8605,cy:16.7795,r:1,fill:"white",stroke:"white",strokeWidth:.572616})),ka=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M15 3H1V13H15V3Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1 3L8 10.3433L15 3",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.3359 7.89648L15.0026 12.9998",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1 12.9998L5.66667 7.89648",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),sd=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M1.61422 14.1333L5.99625 12.4418C6.61289 12.5773 7.2432 12.6457 7.87554 12.6458C11.6739 12.6458 14.7511 10.2623 14.7511 7.32292C14.7511 4.38348 11.6739 2 7.87554 2C4.07718 2 1 4.38348 1 7.32292C1 8.81925 1.79758 10.1707 3.08101 11.1347L1.61422 14.1333Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("circle",{cx:4.98438,cy:7.66211,r:.75,fill:"currentColor"}),d.createElement("circle",{cx:7.875,cy:7.66211,r:.75,fill:"currentColor"}),d.createElement("circle",{cx:10.7656,cy:7.66211,r:.75,fill:"currentColor"})),ad=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M11.5195 9.99817C11.3265 9.87759 11.0947 9.83572 10.8717 9.88121C10.6488 9.92671 10.4519 10.0561 10.3216 10.2426C9.89136 10.7756 9.35845 11.663 7.34409 9.64859C5.32972 7.63423 6.2171 7.1013 6.74759 6.67105C6.93413 6.54079 7.0635 6.34385 7.109 6.12093C7.15449 5.89801 7.11263 5.66612 6.99205 5.47319C6.84537 5.25073 5.90909 3.80596 5.74285 3.56639C5.57662 3.32681 5.35414 2.93568 4.84077 3.00901C4.31202 3.17497 3.84929 3.50384 3.51868 3.9486C3.18807 4.39337 3.00653 4.93127 3 5.48541C3 7.13308 4.29808 9.15233 6.07287 10.9271C7.84766 12.7019 9.86692 14 11.5146 14C12.0687 13.9935 12.6066 13.8119 13.0514 13.4813C13.4962 13.1507 13.825 12.688 13.991 12.1592C14.0643 11.6434 13.6732 11.4258 13.4336 11.2571C13.194 11.0885 11.7419 10.1448 11.5195 9.99817Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),id=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M29 26H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h6.46l1.71-2.55A1 1 0 0 1 12 4h8a1 1 0 0 1 .83.45L22.54 7H29a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1M4 24h24V9h-6a1 1 0 0 1-.83-.45L19.46 6h-6.92l-1.71 2.55A1 1 0 0 1 10 9H4Z"}),d.createElement("path",{d:"M16 22a6 6 0 1 1 6-6a6 6 0 0 1-6 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4"})),Sa=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"#000000",style:{opacity:1},...e},d.createElement("path",{d:"M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9z"})),Na=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18m.05-13v.1h-.1V8z"})),cd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M18 28h-4a2 2 0 0 1-2-2v-7.59L4.59 11A2 2 0 0 1 4 9.59V6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v3.59a2 2 0 0 1-.59 1.41L20 18.41V26a2 2 0 0 1-2 2M6 6v3.59l8 8V26h4v-8.41l8-8V6Z"})),Ea=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9m67.4-174.4L687.8 215l73.3 73.3l-362.7 362.6l-88.9 15.7zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32"})),ld=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M20.3 13.43a1 1 0 0 0-1.25.65A7.14 7.14 0 0 1 12.18 19A7.1 7.1 0 0 1 5 12a7.1 7.1 0 0 1 7.18-7a7.26 7.26 0 0 1 4.65 1.67l-2.17-.36a1 1 0 0 0-1.15.83a1 1 0 0 0 .83 1.15l4.24.7h.17a1 1 0 0 0 .34-.06a.3.3 0 0 0 .1-.06a.8.8 0 0 0 .2-.11l.09-.11c0-.05.09-.09.13-.15s0-.1.05-.14a1.3 1.3 0 0 0 .07-.18l.75-4a1 1 0 0 0-2-.38l-.27 1.45A9.2 9.2 0 0 0 12.18 3A9.1 9.1 0 0 0 3 12a9.1 9.1 0 0 0 9.18 9A9.12 9.12 0 0 0 21 14.68a1 1 0 0 0-.7-1.25"})),dd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64m176.5 585.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1"})),ja=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M4.5 11.5a3 3 0 0 1 3-3h8.718a4 4 0 0 1 2.325.745l4.914 3.51a4 4 0 0 0 2.325.745H40.5a3 3 0 0 1 3 3v20a3 3 0 0 1-3 3h-33a3 3 0 0 1-3-3z"}),d.createElement("circle",{cx:25.435,cy:25.065,r:5.565}),d.createElement("path",{d:"M21.5 29L17 33.5"})),ud=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{d:"M19 3v4m0 14V11m-7-8v12m0 6v-2M5 3v2m0 16V9"}),d.createElement("circle",{cx:19,cy:9,r:2,transform:"rotate(90 19 9)"}),d.createElement("circle",{cx:12,cy:17,r:2,transform:"rotate(90 12 17)"}),d.createElement("circle",{cx:5,cy:7,r:2,transform:"rotate(90 5 7)"})),fd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:24,height:24,fill:"#000000",style:{opacity:1},...e},d.createElement("path",{d:"M6.84 2.189a1.96 1.96 0 0 0-1.68 0L.286 4.498A.5.5 0 0 0 0 4.976v3.026a.5.5 0 1 0 1 0V5.756l1 .496v2.75a.5.5 0 0 0 .147.354l.025.024l.06.055q.075.072.217.188c.187.153.457.355.794.558c.67.401 1.634.82 2.757.82s2.088-.419 2.757-.82a6.7 6.7 0 0 0 1.012-.746l.06-.055l.023-.024h.002A.5.5 0 0 0 10 9.001v-2.75l1.722-.854a.5.5 0 0 0-.008-.9zm.032 5.615L9 6.748V8.78l-.082.07a6 6 0 0 1-.675.473c-.58.348-1.366.679-2.243.679s-1.662-.33-2.243-.679A6 6 0 0 1 3 8.78V6.748l2.128 1.056c.55.272 1.194.272 1.744 0m-.46-4.711l3.942 1.867l-3.927 1.948a.96.96 0 0 1-.854 0L1.646 4.96l3.942-1.867a.96.96 0 0 1 .824 0M2.149 9.358"})),hd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M1728 1664q26 0 45 19t19 45t-19 45t-45 19H960q-26 0-45-19t-19-45t19-45t45-19zm-128 256q26 0 45 19t19 45t-19 45t-45 19h-512q-26 0-45-19t-19-45t19-45t45-19zm238-512h210v128H537q-10 64-14 128t-7 127t-3 128t-1 129H128v-193q0-81 6-160t17-159H0v-128h172q50-245 151-471t250-427q-146-5-268-61T82 289l-45-46l47-44q104-97 228-147T579 1q156 0 286 58t239 168q77 2 149 24t134 60t113 90t87 115t57 135t20 150v64h-64q-132 0-247-56t-199-159q-76 138-191 227t-269 125q-43 99-76 200t-57 206h289q22-84 69-154t112-122t146-79t167-29q87 0 167 28t145 80t113 121t69 155M1238 380q-6 65-26 132q51 88 134 146t185 74q-10-61-35-115t-63-101t-88-80t-107-56m-126 7q-102 8-192 50T759 547T642 704t-61 189q85-7 161-36t139-78t112-112t81-144q14-33 23-67t15-69M224 247q80 66 177 101t201 35q97 0 187-30t168-88q-80-66-177-101t-201-35q-97 0-187 30t-168 88m318 775q-8 2-16 2t-16 0h-32q-16 0-32-2v-47q-53 118-89 232t-59 230t-32 235t-10 248h128q0-121 8-234t27-223t49-219t74-222m442 386h720q-20-57-56-104t-83-81t-104-52t-117-19q-61 0-117 18t-103 52t-84 81t-56 105"})),Ma=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M12 15V3m0 12l-4-4m4 4l4-4M2 17l.621 2.485A2 2 0 0 0 4.561 21h14.877a2 2 0 0 0 1.94-1.515L22 17"}));var Oa=(e=>(e.BLUE_01="#D3E8FA",e.BLUE_02="#4573D9",e.BLUE_03="#4573D9",e.BLUE_04="#4573D9",e.BLUE_05="#001A3D",e.GRAY_01="#F4F7FA",e.GRAY_02="#c8c7cc",e.GRAY_03="#808080",e.GRAY_04="#525252",e.GRAY_05="#2A2A2A",e.GRAY_06="#AEBFDE",e.GRAY_07="#DDE5F5",e.WHITE_01="#FFFFFF",e.BLACK_01="#000000",e.GREEN_01="#C4F2E8",e.GREEN_02="#00A582",e.ORANGE_01="#F9E1D7",e.ORANGE_02="#FF6B2C",e.RED_01="#FFEEEE",e.RED_02="#D72D40",e.YELLOW_01="#FFF1D8",e.YELLOW_02="#FFA300",e))(Oa||{});function md(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qr={exports:{}};var ms;function pd(){return ms||(ms=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(s=o(s,r(i)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var i in s)t.call(s,i)&&s[i]&&(a=o(a,i));return a}function o(s,a){return a?s?s+" "+a:s+a:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(qr)),qr.exports}var gd=pd();const M=md(gd),vd="_block_idr7t_5",_d="_subtitle_idr7t_10",bd="_title_idr7t_17",Gr={block:vd,subtitle:_d,title:bd},yd=({id:e,title:t,subtitle:n,children:r,className:o})=>c.jsxs("div",{className:M(Gr.block,o),id:e,children:[t&&typeof t=="string"?c.jsx("div",{className:Gr.title,children:t}):t,n&&c.jsx("div",{className:Gr.subtitle,children:n}),r]});function ps(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ps(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ps(e[o],null)}}}}function qe(...e){return d.useCallback(Pn(...e),e)}var wd=Symbol.for("react.lazy"),mr=d[" use ".trim().toString()];function xd(e){return typeof e=="object"&&e!==null&&"then"in e}function Da(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===wd&&"_payload"in e&&xd(e._payload)}function Ra(e){const t=kd(e),n=d.forwardRef((r,o)=>{let{children:s,...a}=r;Da(s)&&typeof mr=="function"&&(s=mr(s._payload));const i=d.Children.toArray(s),l=i.find(Nd);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Cd=Ra("Slot");function kd(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(Da(o)&&typeof mr=="function"&&(o=mr(o._payload)),d.isValidElement(o)){const a=jd(o),i=Ed(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sd=Symbol("radix.slottable");function Nd(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sd}function Ed(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function jd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Pa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Pa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ta(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pa(e))&&(r&&(r+=" "),r+=t);return r}const gs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vs=Ta,Aa=(e,t)=>n=>{var r;if(t?.variants==null)return vs(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n?.[u],h=s?.[u];if(f===null)return null;const p=gs(f)||gs(h);return o[u][p]}),i=n&&Object.entries(n).reduce((u,f)=>{let[h,p]=f;return p===void 0||(u[h]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:h,className:p,...m}=f;return Object.entries(m).every(b=>{let[v,_]=b;return Array.isArray(_)?_.includes({...s,...i}[v]):{...s,...i}[v]===_})?[...u,h,p]:u},[]);return vs(e,a,l,n?.class,n?.className)},Md=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Od=(e,t)=>({classGroupId:e,validator:t}),Ia=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),pr="-",_s=[],Dd="arbitrary..",Rd=e=>{const t=Td(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Pd(a);const i=a.split(pr),l=i[0]===""&&i.length>1?1:0;return La(i,l,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const l=r[a],u=n[a];return l?u?Md(u,l):l:u||_s}return n[a]||_s}}},La=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=La(e,t+1,s);if(u)return u}const a=n.validators;if(a===null)return;const i=t===0?e.join(pr):e.slice(t).join(pr),l=a.length;for(let u=0;u<l;u++){const f=a[u];if(f.validator(i))return f.classGroupId}},Pd=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Dd+r:void 0})(),Td=e=>{const{theme:t,classGroups:n}=e;return Ad(n,t)},Ad=(e,t)=>{const n=Ia();for(const r in e){const o=e[r];Po(o,n,r,t)}return n},Po=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const a=e[s];Id(a,t,n,r)}},Id=(e,t,n,r)=>{if(typeof e=="string"){Ld(e,t,n);return}if(typeof e=="function"){Wd(e,t,n,r);return}$d(e,t,n,r)},Ld=(e,t,n)=>{const r=e===""?t:Wa(t,e);r.classGroupId=n},Wd=(e,t,n,r)=>{if(Fd(e)){Po(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Od(n,e))},$d=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let a=0;a<s;a++){const[i,l]=o[a];Po(l,Wa(t,i),n,r)}},Wa=(e,t)=>{let n=e;const r=t.split(pr),o=r.length;for(let s=0;s<o;s++){const a=r[s];let i=n.nextPart.get(a);i||(i=Ia(),n.nextPart.set(a,i)),n=i}return n},Fd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Bd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,a)=>{n[s]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return o(s,a),a},set(s,a){s in n?n[s]=a:o(s,a)}}},go="!",bs=":",zd=[],ys=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Hd=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,l=0,u;const f=o.length;for(let v=0;v<f;v++){const _=o[v];if(a===0&&i===0){if(_===bs){s.push(o.slice(l,v)),l=v+1;continue}if(_==="/"){u=v;continue}}_==="["?a++:_==="]"?a--:_==="("?i++:_===")"&&i--}const h=s.length===0?o:o.slice(l);let p=h,m=!1;h.endsWith(go)?(p=h.slice(0,-1),m=!0):h.startsWith(go)&&(p=h.slice(1),m=!0);const b=u&&u>l?u-l:void 0;return ys(s,m,p,b)};if(t){const o=t+bs,s=r;r=a=>a.startsWith(o)?s(a.slice(o.length)):ys(zd,!1,a,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Yd=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const a=n[s],i=a[0]==="[",l=t.has(a);i||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},Vd=e=>({cache:Bd(e.cacheSize),parseClassName:Hd(e),sortModifiers:Yd(e),...Rd(e)}),qd=/\s+/,Gd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(qd);let l="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:h,modifiers:p,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:v}=n(f);if(h){l=f+(l.length>0?" "+l:l);continue}let _=!!v,y=r(_?b.substring(0,v):b);if(!y){if(!_){l=f+(l.length>0?" "+l:l);continue}if(y=r(b),!y){l=f+(l.length>0?" "+l:l);continue}_=!1}const w=p.length===0?"":p.length===1?p[0]:s(p).join(":"),x=m?w+go:w,k=x+y;if(a.indexOf(k)>-1)continue;a.push(k);const S=o(y,_);for(let C=0;C<S.length;++C){const N=S[C];a.push(x+N)}l=f+(l.length>0?" "+l:l)}return l},Ud=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=$a(n))&&(o&&(o+=" "),o+=r);return o},$a=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$a(e[r]))&&(n&&(n+=" "),n+=t);return n},Zd=(e,...t)=>{let n,r,o,s;const a=l=>{const u=t.reduce((f,h)=>h(f),e());return n=Vd(u),r=n.cache.get,o=n.cache.set,s=i,i(l)},i=l=>{const u=r(l);if(u)return u;const f=Gd(l,n);return o(l,f),f};return s=a,(...l)=>s(Ud(...l))},Xd=[],Ee=e=>{const t=n=>n[e]||Xd;return t.isThemeGetter=!0,t},Fa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ba=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Kd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jd=/\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$/,eu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,St=e=>Kd.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),Nt=e=>!!e&&Number.isInteger(Number(e)),Ur=e=>e.endsWith("%")&&te(e.slice(0,-1)),gt=e=>Qd.test(e),za=()=>!0,ru=e=>Jd.test(e)&&!eu.test(e),To=()=>!1,ou=e=>tu.test(e),su=e=>nu.test(e),au=e=>!L(e)&&!F(e),iu=e=>Pt(e,Va,To),L=e=>Fa.test(e),Wt=e=>Pt(e,qa,ru),ws=e=>Pt(e,pu,te),cu=e=>Pt(e,Ua,za),lu=e=>Pt(e,Ga,To),xs=e=>Pt(e,Ha,To),du=e=>Pt(e,Ya,su),Xn=e=>Pt(e,Za,ou),F=e=>Ba.test(e),pn=e=>Vt(e,qa),uu=e=>Vt(e,Ga),Cs=e=>Vt(e,Ha),fu=e=>Vt(e,Va),hu=e=>Vt(e,Ya),Kn=e=>Vt(e,Za,!0),mu=e=>Vt(e,Ua,!0),Pt=(e,t,n)=>{const r=Fa.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vt=(e,t,n=!1)=>{const r=Ba.exec(e);return r?r[1]?t(r[1]):n:!1},Ha=e=>e==="position"||e==="percentage",Ya=e=>e==="image"||e==="url",Va=e=>e==="length"||e==="size"||e==="bg-size",qa=e=>e==="length",pu=e=>e==="number",Ga=e=>e==="family-name",Ua=e=>e==="number"||e==="weight",Za=e=>e==="shadow",gu=()=>{const e=Ee("color"),t=Ee("font"),n=Ee("text"),r=Ee("font-weight"),o=Ee("tracking"),s=Ee("leading"),a=Ee("breakpoint"),i=Ee("container"),l=Ee("spacing"),u=Ee("radius"),f=Ee("shadow"),h=Ee("inset-shadow"),p=Ee("text-shadow"),m=Ee("drop-shadow"),b=Ee("blur"),v=Ee("perspective"),_=Ee("aspect"),y=Ee("ease"),w=Ee("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...k(),F,L],C=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],E=()=>[F,L,l],D=()=>[St,"full","auto",...E()],O=()=>[Nt,"none","subgrid",F,L],T=()=>["auto",{span:["full",Nt,F,L]},Nt,F,L],R=()=>[Nt,"auto",F,L],A=()=>["auto","min","max","fr",F,L],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...E()],q=()=>[St,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],W=()=>[St,"screen","full","dvw","lvw","svw","min","max","fit",...E()],G=()=>[St,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],j=()=>[e,F,L],K=()=>[...k(),Cs,xs,{position:[F,L]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",fu,iu,{size:[F,L]}],ne=()=>[Ur,pn,Wt],ee=()=>["","none","full",u,F,L],re=()=>["",te,pn,Wt],fe=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[te,Ur,Cs,xs],$=()=>["","none",b,F,L],de=()=>["none",te,F,L],ke=()=>["none",te,F,L],Oe=()=>[te,F,L],ce=()=>[St,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gt],breakpoint:[gt],color:[za],container:[gt],"drop-shadow":[gt],ease:["in","out","in-out"],font:[au],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gt],shadow:[gt],spacing:["px",te],text:[gt],"text-shadow":[gt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",St,L,F,_]}],container:["container"],columns:[{columns:[te,L,F,i]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:S()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Nt,"auto",F,L]}],basis:[{basis:[St,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,St,"auto","initial","none",L]}],grow:[{grow:["",te,F,L]}],shrink:[{shrink:["",te,F,L]}],order:[{order:[Nt,"first","last","none",F,L]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...G()]}],"min-block-size":[{"min-block":["auto",...G()]}],"max-block-size":[{"max-block":["none",...G()]}],w:[{w:[i,"screen",...q()]}],"min-w":[{"min-w":[i,"screen","none",...q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,pn,Wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,mu,cu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ur,L]}],"font-family":[{font:[uu,lu,t]}],"font-features":[{"font-features":[L]}],"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,F,L]}],"line-clamp":[{"line-clamp":[te,"none",F,ws]}],leading:[{leading:[s,...E()]}],"list-image":[{"list-image":["none",F,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",F,Wt]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[te,"auto",F,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,L]}],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",F,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nt,F,L],radial:["",F,L],conic:[Nt,F,L]},hu,du]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"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-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":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:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,F,L]}],"outline-w":[{outline:["",te,pn,Wt]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",f,Kn,Xn]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",h,Kn,Xn]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[te,Wt]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",p,Kn,Xn]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[te,F,L]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"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":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[F,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,L]}],filter:[{filter:["","none",F,L]}],blur:[{blur:$()}],brightness:[{brightness:[te,F,L]}],contrast:[{contrast:[te,F,L]}],"drop-shadow":[{"drop-shadow":["","none",m,Kn,Xn]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",te,F,L]}],"hue-rotate":[{"hue-rotate":[te,F,L]}],invert:[{invert:["",te,F,L]}],saturate:[{saturate:[te,F,L]}],sepia:[{sepia:["",te,F,L]}],"backdrop-filter":[{"backdrop-filter":["","none",F,L]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[te,F,L]}],"backdrop-contrast":[{"backdrop-contrast":[te,F,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,F,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,F,L]}],"backdrop-invert":[{"backdrop-invert":["",te,F,L]}],"backdrop-opacity":[{"backdrop-opacity":[te,F,L]}],"backdrop-saturate":[{"backdrop-saturate":[te,F,L]}],"backdrop-sepia":[{"backdrop-sepia":["",te,F,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",F,L]}],ease:[{ease:["linear","initial",y,F,L]}],delay:[{delay:[te,F,L]}],animate:[{animate:["none",w,F,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,F,L]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:ke()}],"scale-x":[{"scale-x":ke()}],"scale-y":[{"scale-y":ke()}],"scale-z":[{"scale-z":ke()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[F,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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",F,L]}],"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":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",F,L]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[te,pn,Wt,ws]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vu=Zd(gu);function J(...e){return vu(Ta(e))}const vo=Aa("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Cr=d.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?Cd:"button";return c.jsx(a,{className:J(vo({variant:t,size:n,className:e})),ref:s,...o})});Cr.displayName="Button";const _u="_cssloadSpeedingWheel_akex8_6",bu="_bigSize_akex8_20",yu="_smallSize_akex8_26",wu="_extraSmallSize_akex8_32",Qn={cssloadSpeedingWheel:_u,bigSize:bu,smallSize:yu,extraSmallSize:wu};function xu(e){return e==="medium"?"small":e==="large"?"big":e}const Ue=({marginTop:e,marginBottom:t,marginLeft:n,className:r,size:o="big"})=>{const s=g.useMemo(()=>({marginTop:e,marginBottom:t,marginLeft:n}),[t,n,e]),a=xu(o);return c.jsx("div",{className:r,style:s,children:c.jsx("div",{className:M(Qn.cssloadSpeedingWheel,{[Qn.bigSize]:a==="big",[Qn.smallSize]:a==="small",[Qn.extraSmallSize]:a==="extraSmall"})})})},Cu="_button_sby7s_5",ku="_button__loader_sby7s_190",Su="_button__content_sby7s_197",Gt={button:Cu,"button--variant-primary":"_button--variant-primary_sby7s_30","button--variant-primary--disabled":"_button--variant-primary--disabled_sby7s_41","button--variant-default":"_button--variant-default_sby7s_49","button--variant-default--disabled":"_button--variant-default--disabled_sby7s_62","button--variant-secondary":"_button--variant-secondary_sby7s_70","button--variant-secondary--disabled":"_button--variant-secondary--disabled_sby7s_85","button--variant-text":"_button--variant-text_sby7s_93","button--variant-text--disabled":"_button--variant-text--disabled_sby7s_109","button--variant-link":"_button--variant-link_sby7s_117","button--variant-link--disabled":"_button--variant-link--disabled_sby7s_133","button--variant-danger":"_button--variant-danger_sby7s_141","button--variant-danger--disabled":"_button--variant-danger--disabled_sby7s_151","button--size-small":"_button--size-small_sby7s_159","button--size-medium":"_button--size-medium_sby7s_167","button--size-large":"_button--size-large_sby7s_175","button--loading":"_button--loading_sby7s_186",button__loader:ku,button__content:Su},xe=g.forwardRef(({variant:e="default",size:t="medium",className:n="",loading:r=!1,disabled:o=!1,children:s,type:a="button",...i},l)=>{const u=M(Gt.button,Gt[`button--variant-${e}`],Gt[`button--size-${t}`],{[Gt["button--loading"]]:r,[Gt["button--disabled"]]:o},n);return c.jsxs(Cr,{ref:l,variant:null,size:null,className:u,disabled:o||r,type:a,...i,children:[s&&s,r&&c.jsx("span",{className:Gt.button__loader,children:c.jsx(Ue,{size:"extraSmall"})})]})});xe.displayName="Button";const Xa=e=>{const[t,n]=g.useState(0),[r,o]=g.useState(0),s=g.useRef(null);return g.useEffect(()=>{if(!e)return;const i=new ResizeObserver(u=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{for(const f of u)if(f.borderBoxSize){const h=Array.isArray(f.borderBoxSize)?f.borderBoxSize[0]:f.borderBoxSize;n(h.blockSize),o(h.inlineSize)}else n(f.contentRect.height),o(f.contentRect.width)})});i.observe(e);const l=e.getBoundingClientRect().height;return n(l),()=>{i.disconnect()}},[e,n]),g.useMemo(()=>({height:t,width:r}),[t,r])},ks={capture:!0,passive:!0},Nu=({triggerRef:e,dropdownHeight:t,offset:n=8,enabled:r=!0,onAnchorFrame:o})=>{const[s,a]=g.useState("bottom"),i=g.useRef(null),l=g.useCallback(()=>{if(!e.current)return"bottom";const f=e.current.getBoundingClientRect(),h=window.innerHeight,p=f.top-n;return h-f.bottom-n>=t?"bottom":p>=t?"top":"bottom"},[e,t,n]),u=g.useCallback(()=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{const f=l();a(f),o?.(f)})},[l,o]);return g.useEffect(()=>{if(!r)return;const f=e.current;if(!f)return;u();const h=new ResizeObserver(()=>{u()});h.observe(f);const p=new MutationObserver(()=>{u()});p.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]});const m=[];let b=f.parentElement;for(;b;){const v=window.getComputedStyle(b),_=v.overflow+v.overflowY+v.overflowX;/(auto|scroll)/.test(_)&&(m.push(b),b.addEventListener("scroll",u)),b=b.parentElement}return window.addEventListener("scroll",u,ks),window.addEventListener("resize",u),window.addEventListener("transitionend",u),window.addEventListener("animationend",u),()=>{i.current&&cancelAnimationFrame(i.current),h.disconnect(),p.disconnect(),window.removeEventListener("scroll",u,ks),window.removeEventListener("resize",u),window.removeEventListener("transitionend",u),window.removeEventListener("animationend",u),m.forEach(v=>{v.removeEventListener("scroll",u)})}},[r,e,u]),s},Eu="_container_1dkro_1",ju="_activeButton_1dkro_16",Mu="_slider_1dkro_22",Zr={container:Eu,activeButton:ju,slider:Mu},Ou=({options:e,value:t,defaultValue:n,data:r,activeButton:o,defaultActiveButton:s,onChange:a})=>{const i=g.useMemo(()=>e?.length?e.map(y=>({id:y.value,label:y.label,additionalComponent:y.additionalComponent})):r??[],[e,r]),[l,u]=g.useState(()=>n??s??i[0]?.id),[f,h]=g.useState({transform:"translateX(0)",width:0}),p=g.useRef(new Map),m=t??o??l,{width:b}=Xa(p.current.get(m)),v=y=>{y.id!==m&&(a?.(y.id),u(y.id))},_=g.useCallback((y,w)=>{p.current.set(w,y)},[]);return g.useEffect(()=>{const y=i.findIndex(w=>w.id===m);if(y>=0){const x=i.slice(0,y).reduce((k,S)=>{const C=p.current.get(S.id);if(C){const N=C.getBoundingClientRect().width;k+=N}return k},0);h({transform:`translateX(${x}px)`,width:b})}},[m,b,i]),c.jsxs("div",{className:Zr.container,children:[i.map(y=>c.jsx("div",{ref:w=>_(w,y.id),children:c.jsxs(xe,{size:"small",onClick:()=>v(y),className:M({[Zr.activeButton]:y.id===m}),children:[y.label,y.additionalComponent]})},y.id)),c.jsx("div",{className:Zr.slider,style:f})]})},Du="_card_7h565_5",Ru="_link_7h565_21",Ss={card:Du,link:Ru},Pu=g.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:a,link:i})=>{const l=M(Ss.card,{[Ss.link]:i},r),u=g.useMemo(()=>({backgroundColor:o,...a&&{color:a},...t&&{width:t},...n&&{height:`${n}px`},...s&&{backgroundImage:`url(${s})`}}),[o,n,s,a,t]);return i?c.jsx("a",{className:l,style:u,href:i,children:c.jsx("span",{children:e})}):c.jsx("div",{className:l,style:u,children:c.jsx("span",{children:e})})}),Tu="_carouselWrapper_12142_1",Au="_carousel_12142_1",Iu="_viewport_12142_13",Lu="_slide_12142_19",Wu="_activeSlide_12142_24",$u="_itemContent_12142_28",Fu="_controls_12142_36",Bu="_carouselControl_12142_48",zu="_prevIcon_12142_71",Hu="_nextIcon_12142_72",Yu="_indicators_12142_90",Vu="_activeIndicator_12142_115",We={carouselWrapper:Tu,carousel:Au,viewport:Iu,slide:Lu,activeSlide:Wu,itemContent:$u,controls:Fu,carouselControl:Bu,prevIcon:zu,nextIcon:Hu,indicators:Yu,activeIndicator:Vu},qu=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",Gu=e=>qu(e)?e.items.map((t,n)=>({key:`${t.id}-${n}`,content:e.renderItem(t),caption:t.caption})):g.Children.toArray(e.children).map((t,n)=>({key:g.isValidElement(t)&&t.key!==null&&t.key!==void 0&&t.key!=="."?String(t.key):`slide-${n}`,content:t})),Uu=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},Zu=e=>{const t=Gu(e),n=t.length,r=Uu(e),{className:o,dark:s,enableTouch:a,fade:i,interval:l,keyboard:u=!0,pause:f,ride:h,slide:p,...m}=r,[b,v]=g.useState(0),_=()=>{v(C=>C===n-1?0:C+1)},y=()=>{v(C=>C===0?n-1:C-1)},w=C=>{v(C)},x=n>1,k=g.useMemo(()=>t.map(C=>({key:C.key})),[t]),S=C=>{m.onKeyDown?.(C),!(C.defaultPrevented||!u||!x)&&(C.key==="ArrowLeft"&&y(),C.key==="ArrowRight"&&_())};return n?x?c.jsx("div",{className:We.carouselWrapper,children:c.jsxs("div",{...m,className:[We.carousel,o].filter(Boolean).join(" "),onKeyDown:S,role:"region","aria-roledescription":"carousel",children:[c.jsx("div",{className:We.viewport,children:t.map((C,N)=>c.jsx("div",{className:[We.slide,N===b?We.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":N!==b,children:c.jsx("div",{className:We.itemContent,children:C.content})},C.key))}),c.jsxs("div",{className:We.controls,children:[c.jsx("button",{className:We.carouselControl,type:"button",onClick:y,"aria-label":"Previous slide",children:c.jsx("span",{className:We.prevIcon,"aria-hidden":"true"})}),c.jsx("div",{className:We.indicators,children:k.map((C,N)=>c.jsx("button",{className:N===b?We.activeIndicator:void 0,type:"button",onClick:()=>w(N),"aria-label":`Go to slide ${N+1}`,"aria-current":N===b},C.key))}),c.jsx("button",{className:We.carouselControl,type:"button",onClick:_,"aria-label":"Next slide",children:c.jsx("span",{className:We.nextIcon,"aria-hidden":"true"})})]})]})}):c.jsx("div",{className:We.carouselWrapper,children:t[0].content}):null},Fe=8;function Xu(e,t="top"){const{left:n,right:r,top:o,bottom:s,width:a,height:i}=e,l=n+a/2,u=o+i/2;switch(t){case"top":return{left:l,top:o-Fe,transform:"translate(-50%, -100%)"};case"topLeft":return{left:n,top:o-Fe,transform:"translateY(-100%)"};case"topRight":return{left:r,top:o-Fe,transform:"translate(-100%, -100%)"};case"bottom":return{left:l,top:s+Fe,transform:"translate(-50%, 0)"};case"bottomLeft":return{left:n,top:s+Fe,transform:"translateY(0)"};case"bottomRight":return{left:r,top:s+Fe,transform:"translate(-100%, 0)"};case"left":return{left:n-Fe,top:u,transform:"translate(-100%, -50%)"};case"leftTop":return{left:n-Fe,top:o,transform:"translate(-100%, 0)"};case"leftBottom":return{left:n-Fe,top:s,transform:"translate(-100%, -100%)"};case"right":return{left:r+Fe,top:u,transform:"translate(0, -50%)"};case"rightTop":return{left:r+Fe,top:o,transform:"translate(0, 0)"};case"rightBottom":return{left:r+Fe,top:s,transform:"translate(0, -100%)"};default:return{left:l,top:o-Fe,transform:"translate(-50%, -100%)"}}}const Ku="_overlay_1pnex_1",Qu="_fadeIn_1pnex_1",Ju="_arrow_1pnex_16",ef="_top_1pnex_22",tf="_bottom_1pnex_28",nf="_left_1pnex_34",rf="_right_1pnex_40",Xr={overlay:Ku,fadeIn:Qu,arrow:Ju,top:ef,bottom:tf,left:nf,right:rf};function of(e){return e.startsWith("top")?"bottom":e.startsWith("bottom")?"top":e.startsWith("left")?"right":e.startsWith("right")?"left":"top"}const kr=g.memo(({title:e,content:t,open:n,defaultOpen:r=!1,trigger:o="hover",mouseEnterDelay:s=100,mouseLeaveDelay:a=100,onOpenChange:i,placement:l="top",arrow:u=!0,children:f,overlayClassName:h,getPopupContainer:p=()=>document.body})=>{const m=n!==void 0,[b,v]=g.useState(r),_=m?n:b,y=g.useCallback(j=>{m||v(j),i?.(j)},[m,i]),w=g.useRef(null),[x,k]=g.useState(null),S=g.useRef(null),C=g.useRef(null),N=Array.isArray(o)?o:[o],E=N.includes("hover"),D=N.includes("click"),O=g.useCallback(()=>{S.current&&(clearTimeout(S.current),S.current=null)},[]),T=g.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null)},[]),R=g.useCallback(()=>{E&&(T(),S.current=setTimeout(()=>y(!0),s))},[E,s,y,T]),A=g.useCallback(()=>{E&&(O(),C.current=setTimeout(()=>y(!1),a))},[E,a,y,O]),I=g.useCallback(j=>{D&&(j.preventDefault(),y(!_))},[D,_,y]);g.useEffect(()=>{if(!D||!_||m)return;const j=K=>{const ve=w.current;ve&&!ve.contains(K.target)&&y(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[D,_,m,y]),g.useLayoutEffect(()=>{if(!_||!w.current){k(null);return}const j=w.current.getBoundingClientRect();k(Xu(j,l))},[_,l]),g.useEffect(()=>()=>{O(),T()},[O,T]);const X=typeof document<"u"?p():null,P=of(l),q=e??t,W=_&&q!=null&&q!==""&&x&&X&&Rn.createPortal(c.jsxs("span",{className:M(Xr.overlay,h),style:{left:x.left,top:x.top,transform:x.transform},role:"tooltip",children:[q,u&&c.jsx("span",{className:M(Xr.arrow,Xr[P])})]}),X),G=!m&&(E||D)?{onMouseEnter:R,onMouseLeave:A,onClick:D?I:void 0}:{};return c.jsxs(c.Fragment,{children:[c.jsx("span",{ref:w,...G,children:f}),W]})});kr.displayName="TooltipDark";const sf="_wrapper_15kio_5",af="_trigger_15kio_9",cf="_trigger_iconOnly_15kio_36",lf="_icon_15kio_47",Jn={wrapper:sf,trigger:af,trigger_iconOnly:cf,icon:lf},Ao=g.memo(({children:e,onClick:t,copied:n,tooltipText:r="Скопировано",ariaLabel:o,showIcon:s=!0,iconOnly:a=!1,className:i})=>{const l=g.useCallback(()=>{t()},[t]);return c.jsx("span",{className:Jn.wrapper,children:c.jsx(kr,{open:n,title:r,placement:"top",children:c.jsxs(Cr,{type:"button",variant:null,size:null,className:M(Jn.trigger,a&&Jn.trigger_iconOnly,i),onClick:l,"aria-label":o,"aria-live":"polite",children:[!a&&e,s&&c.jsx(Sa,{className:Jn.icon,"aria-hidden":!0})]})})})});Ao.displayName="CopyTextTrigger";function Ka(e){return typeof document>"u"?null:Rn.createPortal(e,document.body)}function je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function df(e,t){const n=d.createContext(t),r=s=>{const{children:a,...i}=s,l=d.useMemo(()=>i,Object.values(i));return c.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(s){const a=d.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Sr(e,t=[]){let n=[];function r(s,a){const i=d.createContext(a),l=n.length;n=[...n,a];const u=h=>{const{scope:p,children:m,...b}=h,v=p?.[e]?.[l]||i,_=d.useMemo(()=>b,Object.values(b));return c.jsx(v.Provider,{value:_,children:m})};u.displayName=s+"Provider";function f(h,p){const m=p?.[e]?.[l]||i,b=d.useContext(m);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>d.createContext(a));return function(i){const l=i?.[e]||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,uf(o,...t)]}function uf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:u})=>{const h=l(s)[`__scope${u}`];return{...i,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function ff(e){const t=hf(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(pf);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function hf(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=vf(o),i=gf(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mf=Symbol("radix.slottable");function pf(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mf}function gf(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function vf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=_f.reduce((e,t)=>{const n=ff(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function bf(e,t){e&&ya.flushSync(()=>e.dispatchEvent(t))}function rn(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function yf(e,t=globalThis?.document){const n=rn(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var wf="DismissableLayer",_o="dismissableLayer.update",xf="dismissableLayer.pointerDownOutside",Cf="dismissableLayer.focusOutside",Ns,Qa=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=e,u=d.useContext(Qa),[f,h]=d.useState(null),p=f?.ownerDocument??globalThis?.document,[,m]=d.useState({}),b=qe(t,N=>h(N)),v=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(_),w=f?v.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,k=w>=y,S=Nf(N=>{const E=N.target,D=[...u.branches].some(O=>O.contains(E));!k||D||(o?.(N),a?.(N),N.defaultPrevented||i?.())},p),C=Ef(N=>{const E=N.target;[...u.branches].some(O=>O.contains(E))||(s?.(N),a?.(N),N.defaultPrevented||i?.())},p);return yf(N=>{w===u.layers.size-1&&(r?.(N),!N.defaultPrevented&&i&&(N.preventDefault(),i()))},p),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ns=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Es(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ns)}},[f,p,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Es())},[f,u]),d.useEffect(()=>{const N=()=>m({});return document.addEventListener(_o,N),()=>document.removeEventListener(_o,N)},[]),c.jsx(Ie.div,{...l,ref:b,style:{pointerEvents:x?k?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,C.onFocusCapture),onBlurCapture:je(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,S.onPointerDownCapture)})});Nr.displayName=wf;var kf="DismissableLayerBranch",Sf=d.forwardRef((e,t)=>{const n=d.useContext(Qa),r=d.useRef(null),o=qe(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(Ie.div,{...e,ref:o})});Sf.displayName=kf;function Nf(e,t=globalThis?.document){const n=rn(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let l=function(){Ja(xf,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ef(e,t=globalThis?.document){const n=rn(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&Ja(Cf,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Es(){const e=new CustomEvent(_o);document.dispatchEvent(e)}function Ja(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bf(o,s):o.dispatchEvent(s)}var Ot=globalThis?.document?d.useLayoutEffect:()=>{},jf=d[" useId ".trim().toString()]||(()=>{}),Mf=0;function Sn(e){const[t,n]=d.useState(jf());return Ot(()=>{n(r=>r??String(Mf++))},[e]),e||(t?`radix-${t}`:"")}const Of=["top","right","bottom","left"],Dt=Math.min,He=Math.max,gr=Math.round,er=Math.floor,lt=e=>({x:e,y:e}),Df={left:"right",right:"left",bottom:"top",top:"bottom"};function bo(e,t,n){return He(e,Dt(t,n))}function wt(e,t){return typeof e=="function"?e(t):e}function xt(e){return e.split("-")[0]}function ln(e){return e.split("-")[1]}function Io(e){return e==="x"?"y":"x"}function Lo(e){return e==="y"?"height":"width"}function at(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Wo(e){return Io(at(e))}function Rf(e,t,n){n===void 0&&(n=!1);const r=ln(e),o=Wo(e),s=Lo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=vr(a)),[a,vr(a)]}function Pf(e){const t=vr(e);return[yo(e),t,yo(t)]}function yo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const js=["left","right"],Ms=["right","left"],Tf=["top","bottom"],Af=["bottom","top"];function If(e,t,n){switch(e){case"top":case"bottom":return n?t?Ms:js:t?js:Ms;case"left":case"right":return t?Tf:Af;default:return[]}}function Lf(e,t,n,r){const o=ln(e);let s=If(xt(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(yo)))),s}function vr(e){const t=xt(e);return Df[t]+e.slice(t.length)}function Wf(e){return{top:0,right:0,bottom:0,left:0,...e}}function ei(e){return typeof e!="number"?Wf(e):{top:e,right:e,bottom:e,left:e}}function _r(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Os(e,t,n){let{reference:r,floating:o}=e;const s=at(t),a=Wo(t),i=Lo(a),l=xt(t),u=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let m;switch(l){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(ln(t)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}async function $f(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=wt(t,e),b=ei(m),_=i[p?h==="floating"?"reference":"floating":h],y=_r(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:l})),w=h==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),k=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},S=_r(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-S.top+b.top)/k.y,bottom:(S.bottom-y.bottom+b.bottom)/k.y,left:(y.left-S.left+b.left)/k.x,right:(S.right-y.right+b.right)/k.x}}const Ff=50,Bf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:$f},l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=Os(u,r,l),p=r,m=0;const b={};for(let v=0;v<s.length;v++){const _=s[v];if(!_)continue;const{name:y,fn:w}=_,{x,y:k,data:S,reset:C}=await w({x:f,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:b,rects:u,platform:i,elements:{reference:e,floating:t}});f=x??f,h=k??h,b[y]={...b[y],...S},C&&m<Ff&&(m++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:h}=Os(u,p,l)),v=-1)}return{x:f,y:h,placement:p,strategy:o,middlewareData:b}},zf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:u,padding:f=0}=wt(e,t)||{};if(u==null)return{};const h=ei(f),p={x:n,y:r},m=Wo(o),b=Lo(m),v=await a.getDimensions(u),_=m==="y",y=_?"top":"left",w=_?"bottom":"right",x=_?"clientHeight":"clientWidth",k=s.reference[b]+s.reference[m]-p[m]-s.floating[b],S=p[m]-s.reference[m],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let N=C?C[x]:0;(!N||!await(a.isElement==null?void 0:a.isElement(C)))&&(N=i.floating[x]||s.floating[b]);const E=k/2-S/2,D=N/2-v[b]/2-1,O=Dt(h[y],D),T=Dt(h[w],D),R=O,A=N-v[b]-T,I=N/2-v[b]/2+E,X=bo(R,I,A),P=!l.arrow&&ln(o)!=null&&I!==X&&s.reference[b]/2-(I<R?O:T)-v[b]/2<0,q=P?I<R?I-R:I-A:0;return{[m]:p[m]+q,data:{[m]:X,centerOffset:I-X-q,...P&&{alignmentOffset:q}},reset:P}}}),Hf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,..._}=wt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=xt(o),w=at(i),x=xt(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=p||(x||!v?[vr(i)]:Pf(i)),C=b!=="none";!p&&C&&S.push(...Lf(i,v,b,k));const N=[i,...S],E=await l.detectOverflow(t,_),D=[];let O=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(E[y]),h){const I=Rf(o,a,k);D.push(E[I[0]],E[I[1]])}if(O=[...O,{placement:o,overflows:D}],!D.every(I=>I<=0)){var T,R;const I=(((T=s.flip)==null?void 0:T.index)||0)+1,X=N[I];if(X&&(!(h==="alignment"?w!==at(X):!1)||O.every(W=>at(W.placement)===w?W.overflows[0]>0:!0)))return{data:{index:I,overflows:O},reset:{placement:X}};let P=(R=O.filter(q=>q.overflows[0]<=0).sort((q,W)=>q.overflows[1]-W.overflows[1])[0])==null?void 0:R.placement;if(!P)switch(m){case"bestFit":{var A;const q=(A=O.filter(W=>{if(C){const G=at(W.placement);return G===w||G==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(G=>G>0).reduce((G,j)=>G+j,0)]).sort((W,G)=>W[1]-G[1])[0])==null?void 0:A[0];q&&(P=q);break}case"initialPlacement":P=i;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function Ds(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rs(e){return Of.some(t=>e[t]>=0)}const Yf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=wt(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),i=Ds(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Rs(i)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),i=Ds(a,n.floating);return{data:{escapedOffsets:i,escaped:Rs(i)}}}default:return{}}}}},ti=new Set(["left","top"]);async function Vf(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=xt(n),i=ln(n),l=at(n)==="y",u=ti.has(a)?-1:1,f=s&&l?-1:1,h=wt(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return i&&typeof b=="number"&&(m=i==="end"?b*-1:b),l?{x:m*f,y:p*u}:{x:p*u,y:m*f}}const qf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await Vf(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},Gf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:w,y:x}=y;return{x:w,y:x}}},...u}=wt(e,t),f={x:n,y:r},h=await s.detectOverflow(t,u),p=at(xt(o)),m=Io(p);let b=f[m],v=f[p];if(a){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",x=b+h[y],k=b-h[w];b=bo(x,b,k)}if(i){const y=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=v+h[y],k=v-h[w];v=bo(x,v,k)}const _=l.fn({...t,[m]:b,[p]:v});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[m]:a,[p]:i}}}}}},Uf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:u=!0}=wt(e,t),f={x:n,y:r},h=at(o),p=Io(h);let m=f[p],b=f[h];const v=wt(i,t),_=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const x=p==="y"?"height":"width",k=s.reference[p]-s.floating[x]+_.mainAxis,S=s.reference[p]+s.reference[x]-_.mainAxis;m<k?m=k:m>S&&(m=S)}if(u){var y,w;const x=p==="y"?"width":"height",k=ti.has(xt(o)),S=s.reference[h]-s.floating[x]+(k&&((y=a.offset)==null?void 0:y[h])||0)+(k?0:_.crossAxis),C=s.reference[h]+s.reference[x]+(k?0:((w=a.offset)==null?void 0:w[h])||0)-(k?_.crossAxis:0);b<S?b=S:b>C&&(b=C)}return{[p]:m,[h]:b}}}},Zf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...u}=wt(e,t),f=await a.detectOverflow(t,u),h=xt(o),p=ln(o),m=at(o)==="y",{width:b,height:v}=s.floating;let _,y;h==="top"||h==="bottom"?(_=h,y=p===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=h,_=p==="end"?"top":"bottom");const w=v-f.top-f.bottom,x=b-f.left-f.right,k=Dt(v-f[_],w),S=Dt(b-f[y],x),C=!t.middlewareData.shift;let N=k,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=w),C&&!p){const O=He(f.left,0),T=He(f.right,0),R=He(f.top,0),A=He(f.bottom,0);m?E=b-2*(O!==0||T!==0?O+T:He(f.left,f.right)):N=v-2*(R!==0||A!==0?R+A:He(f.top,f.bottom))}await l({...t,availableWidth:E,availableHeight:N});const D=await a.getDimensions(i.floating);return b!==D.width||v!==D.height?{reset:{rects:!0}}:{}}}};function Er(){return typeof window<"u"}function dn(e){return ni(e)?(e.nodeName||"").toLowerCase():"#document"}function Ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(ni(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ni(e){return Er()?e instanceof Node||e instanceof Ye(e).Node:!1}function Ae(e){return Er()?e instanceof Element||e instanceof Ye(e).Element:!1}function kt(e){return Er()?e instanceof HTMLElement||e instanceof Ye(e).HTMLElement:!1}function Ps(e){return!Er()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ye(e).ShadowRoot}function Tn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Xf(e){return/^(table|td|th)$/.test(dn(e))}function jr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Kf=/transform|translate|scale|rotate|perspective|filter/,Qf=/paint|layout|strict|content/,$t=e=>!!e&&e!=="none";let Kr;function $o(e){const t=Ae(e)?et(e):e;return $t(t.transform)||$t(t.translate)||$t(t.scale)||$t(t.rotate)||$t(t.perspective)||!Fo()&&($t(t.backdropFilter)||$t(t.filter))||Kf.test(t.willChange||"")||Qf.test(t.contain||"")}function Jf(e){let t=Rt(e);for(;kt(t)&&!on(t);){if($o(t))return t;if(jr(t))return null;t=Rt(t)}return null}function Fo(){return Kr==null&&(Kr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kr}function on(e){return/^(html|body|#document)$/.test(dn(e))}function et(e){return Ye(e).getComputedStyle(e)}function Mr(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if(dn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ps(e)&&e.host||ut(e);return Ps(t)?t.host:t}function ri(e){const t=Rt(e);return on(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&Tn(t)?t:ri(t)}function Nn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ri(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Ye(o);if(s){const i=wo(a);return t.concat(a,a.visualViewport||[],Tn(o)?o:[],i&&n?Nn(i):[])}else return t.concat(o,Nn(o,[],n))}function wo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oi(e){const t=et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kt(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=gr(n)!==s||gr(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Bo(e){return Ae(e)?e:e.contextElement}function en(e){const t=Bo(e);if(!kt(t))return lt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=oi(t);let a=(s?gr(n.width):n.width)/r,i=(s?gr(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const e1=lt(0);function si(e){const t=Ye(e);return!Fo()||!t.visualViewport?e1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function t1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ye(e)?!1:t}function Ht(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Bo(e);let a=lt(1);t&&(r?Ae(r)&&(a=en(r)):a=en(e));const i=t1(s,n,r)?si(s):lt(0);let l=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,h=o.height/a.y;if(s){const p=Ye(s),m=r&&Ae(r)?Ye(r):r;let b=p,v=wo(b);for(;v&&r&&m!==b;){const _=en(v),y=v.getBoundingClientRect(),w=et(v),x=y.left+(v.clientLeft+parseFloat(w.paddingLeft))*_.x,k=y.top+(v.clientTop+parseFloat(w.paddingTop))*_.y;l*=_.x,u*=_.y,f*=_.x,h*=_.y,l+=x,u+=k,b=Ye(v),v=wo(b)}}return _r({width:f,height:h,x:l,y:u})}function Or(e,t){const n=Mr(e).scrollLeft;return t?t.left+n:Ht(ut(e)).left+n}function ai(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Or(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function n1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=ut(r),i=t?jr(t.floating):!1;if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},u=lt(1);const f=lt(0),h=kt(r);if((h||!h&&!s)&&((dn(r)!=="body"||Tn(a))&&(l=Mr(r)),h)){const m=Ht(r);u=en(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const p=a&&!h&&!s?ai(a,l):lt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function r1(e){return Array.from(e.getClientRects())}function o1(e){const t=ut(e),n=Mr(e),r=e.ownerDocument.body,o=He(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=He(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Or(e);const i=-n.scrollTop;return et(r).direction==="rtl"&&(a+=He(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Ts=25;function s1(e,t){const n=Ye(e),r=ut(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const f=Fo();(!f||f&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const u=Or(r);if(u<=0){const f=r.ownerDocument,h=f.body,p=getComputedStyle(h),m=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(r.clientWidth-h.clientWidth-m);b<=Ts&&(s-=b)}else u<=Ts&&(s+=u);return{width:s,height:a,x:i,y:l}}function a1(e,t){const n=Ht(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=kt(e)?en(e):lt(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:a,height:i,x:l,y:u}}function As(e,t,n){let r;if(t==="viewport")r=s1(e,n);else if(t==="document")r=o1(ut(e));else if(Ae(t))r=a1(t,n);else{const o=si(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _r(r)}function ii(e,t){const n=Rt(e);return n===t||!Ae(n)||on(n)?!1:et(n).position==="fixed"||ii(n,t)}function i1(e,t){const n=t.get(e);if(n)return n;let r=Nn(e,[],!1).filter(i=>Ae(i)&&dn(i)!=="body"),o=null;const s=et(e).position==="fixed";let a=s?Rt(e):e;for(;Ae(a)&&!on(a);){const i=et(a),l=$o(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Tn(a)&&!l&&ii(e,a))?r=r.filter(f=>f!==a):o=i,a=Rt(a)}return t.set(e,r),r}function c1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?jr(t)?[]:i1(t,this._c):[].concat(n),r],i=As(t,a[0],o);let l=i.top,u=i.right,f=i.bottom,h=i.left;for(let p=1;p<a.length;p++){const m=As(t,a[p],o);l=He(m.top,l),u=Dt(m.right,u),f=Dt(m.bottom,f),h=He(m.left,h)}return{width:u-h,height:f-l,x:h,y:l}}function l1(e){const{width:t,height:n}=oi(e);return{width:t,height:n}}function d1(e,t,n){const r=kt(t),o=ut(t),s=n==="fixed",a=Ht(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=lt(0);function u(){l.x=Or(o)}if(r||!r&&!s)if((dn(t)!=="body"||Tn(o))&&(i=Mr(t)),r){const m=Ht(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?ai(o,i):lt(0),h=a.left+i.scrollLeft-l.x-f.x,p=a.top+i.scrollTop-l.y-f.y;return{x:h,y:p,width:a.width,height:a.height}}function Qr(e){return et(e).position==="static"}function Is(e,t){if(!kt(e)||et(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function ci(e,t){const n=Ye(e);if(jr(e))return n;if(!kt(e)){let o=Rt(e);for(;o&&!on(o);){if(Ae(o)&&!Qr(o))return o;o=Rt(o)}return n}let r=Is(e,t);for(;r&&Xf(r)&&Qr(r);)r=Is(r,t);return r&&on(r)&&Qr(r)&&!$o(r)?n:r||Jf(e)||n}const u1=async function(e){const t=this.getOffsetParent||ci,n=this.getDimensions,r=await n(e.floating);return{reference:d1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function f1(e){return et(e).direction==="rtl"}const h1={convertOffsetParentRelativeRectToViewportRelativeRect:n1,getDocumentElement:ut,getClippingRect:c1,getOffsetParent:ci,getElementRects:u1,getClientRects:r1,getDimensions:l1,getScale:en,isElement:Ae,isRTL:f1};function li(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function m1(e,t){let n=null,r;const o=ut(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:f,top:h,width:p,height:m}=u;if(i||t(),!p||!m)return;const b=er(h),v=er(o.clientWidth-(f+p)),_=er(o.clientHeight-(h+m)),y=er(f),x={rootMargin:-b+"px "+-v+"px "+-_+"px "+-y+"px",threshold:He(0,Dt(1,l))||1};let k=!0;function S(C){const N=C[0].intersectionRatio;if(N!==l){if(!k)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!li(u,e.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return a(!0),s}function di(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Bo(e),f=o||s?[...u?Nn(u):[],...t?Nn(t):[]]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const h=u&&i?m1(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),u&&!l&&m.observe(u),t&&m.observe(t));let b,v=l?Ht(e):null;l&&_();function _(){const y=Ht(e);v&&!li(v,y)&&n(),v=y,b=requestAnimationFrame(_)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),h?.(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(b)}}const p1=qf,g1=Gf,v1=Hf,_1=Zf,b1=Yf,Ls=zf,y1=Uf,w1=(e,t,n)=>{const r=new Map,o={platform:h1,...n},s={...o.platform,_c:r};return Bf(e,t,{...o,platform:s})};var x1=typeof document<"u",C1=function(){},ur=x1?g.useLayoutEffect:C1;function br(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!br(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!br(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ui(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ws(e,t){const n=ui(e);return Math.round(t*n)/n}function Jr(e){const t=d.useRef(e);return ur(()=>{t.current=e}),t}function fi(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[f,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=d.useState(r);br(p,r)||m(r);const[b,v]=d.useState(null),[_,y]=d.useState(null),w=d.useCallback(W=>{W!==C.current&&(C.current=W,v(W))},[]),x=d.useCallback(W=>{W!==N.current&&(N.current=W,y(W))},[]),k=s||b,S=a||_,C=d.useRef(null),N=d.useRef(null),E=d.useRef(f),D=l!=null,O=Jr(l),T=Jr(o),R=Jr(u),A=d.useCallback(()=>{if(!C.current||!N.current)return;const W={placement:t,strategy:n,middleware:p};T.current&&(W.platform=T.current),w1(C.current,N.current,W).then(G=>{const j={...G,isPositioned:R.current!==!1};I.current&&!br(E.current,j)&&(E.current=j,ya.flushSync(()=>{h(j)}))})},[p,t,n,T,R]);ur(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,h(W=>({...W,isPositioned:!1})))},[u]);const I=d.useRef(!1);ur(()=>(I.current=!0,()=>{I.current=!1}),[]),ur(()=>{if(k&&(C.current=k),S&&(N.current=S),k&&S){if(O.current)return O.current(k,S,A);A()}},[k,S,A,O,D]);const X=d.useMemo(()=>({reference:C,floating:N,setReference:w,setFloating:x}),[w,x]),P=d.useMemo(()=>({reference:k,floating:S}),[k,S]),q=d.useMemo(()=>{const W={position:n,left:0,top:0};if(!P.floating)return W;const G=Ws(P.floating,f.x),j=Ws(P.floating,f.y);return i?{...W,transform:"translate("+G+"px, "+j+"px)",...ui(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:j}},[n,i,P.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:A,refs:X,elements:P,floatingStyles:q}),[f,A,X,P,q])}const k1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ls({element:r.current,padding:o}).fn(n):{}:r?Ls({element:r,padding:o}).fn(n):{}}}},hi=(e,t)=>{const n=p1(e);return{name:n.name,fn:n.fn,options:[e,t]}},S1=(e,t)=>{const n=g1(e);return{name:n.name,fn:n.fn,options:[e,t]}},N1=(e,t)=>({fn:y1(e).fn,options:[e,t]}),mi=(e,t)=>{const n=v1(e);return{name:n.name,fn:n.fn,options:[e,t]}},pi=(e,t)=>{const n=_1(e);return{name:n.name,fn:n.fn,options:[e,t]}},E1=(e,t)=>{const n=b1(e);return{name:n.name,fn:n.fn,options:[e,t]}},j1=(e,t)=>{const n=k1(e);return{name:n.name,fn:n.fn,options:[e,t]}};var M1="Arrow",gi=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(Ie.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});gi.displayName=M1;var O1=gi;function D1(e){const[t,n]=d.useState(void 0);return Ot(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var zo="Popper",[vi,Dr]=Sr(zo),[R1,_i]=vi(zo),bi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return c.jsx(R1,{scope:t,anchor:r,onAnchorChange:o,children:n})};bi.displayName=zo;var yi="PopperAnchor",wi=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=_i(yi,n),a=d.useRef(null),i=qe(t,a),l=d.useRef(null);return d.useEffect(()=>{const u=l.current;l.current=r?.current||a.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:c.jsx(Ie.div,{...o,ref:i})});wi.displayName=yi;var Ho="PopperContent",[P1,T1]=vi(Ho),xi=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:b,...v}=e,_=_i(Ho,n),[y,w]=d.useState(null),x=qe(t,fe=>w(fe)),[k,S]=d.useState(null),C=D1(k),N=C?.width??0,E=C?.height??0,D=r+(s!=="center"?"-"+s:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},T=Array.isArray(u)?u:[u],R=T.length>0,A={padding:O,boundary:T.filter(I1),altBoundary:R},{refs:I,floatingStyles:X,placement:P,isPositioned:q,middlewareData:W}=fi({strategy:"fixed",placement:D,whileElementsMounted:(...fe)=>di(...fe,{animationFrame:m==="always"}),elements:{reference:_.anchor},middleware:[hi({mainAxis:o+E,alignmentAxis:a}),l&&S1({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?N1():void 0,...A}),l&&mi({...A}),pi({...A,apply:({elements:fe,rects:Me,availableWidth:se,availableHeight:$})=>{const{width:de,height:ke}=Me.reference,Oe=fe.floating.style;Oe.setProperty("--radix-popper-available-width",`${se}px`),Oe.setProperty("--radix-popper-available-height",`${$}px`),Oe.setProperty("--radix-popper-anchor-width",`${de}px`),Oe.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),k&&j1({element:k,padding:i}),L1({arrowWidth:N,arrowHeight:E}),p&&E1({strategy:"referenceHidden",...A})]}),[G,j]=Si(P),K=rn(b);Ot(()=>{q&&K?.()},[q,K]);const ve=W.arrow?.x,V=W.arrow?.y,ne=W.arrow?.centerOffset!==0,[ee,re]=d.useState();return Ot(()=>{y&&re(window.getComputedStyle(y).zIndex)},[y]),c.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(P1,{scope:n,placedSide:G,onArrowChange:S,arrowX:ve,arrowY:V,shouldHideArrow:ne,children:c.jsx(Ie.div,{"data-side":G,"data-align":j,...v,ref:x,style:{...v.style,animation:q?void 0:"none"}})})})});xi.displayName=Ho;var Ci="PopperArrow",A1={top:"bottom",right:"left",bottom:"top",left:"right"},ki=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=T1(Ci,r),a=A1[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(O1,{...o,ref:n,style:{...o.style,display:"block"}})})});ki.displayName=Ci;function I1(e){return e!==null}var L1=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,f]=Si(n),h={start:"0%",center:"50%",end:"100%"}[f],p=(o.arrow?.x??0)+i/2,m=(o.arrow?.y??0)+l/2;let b="",v="";return u==="bottom"?(b=a?h:`${p}px`,v=`${-l}px`):u==="top"?(b=a?h:`${p}px`,v=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,v=a?h:`${m}px`):u==="left"&&(b=`${r.floating.width+l}px`,v=a?h:`${m}px`),{data:{x:b,y:v}}}});function Si(e){const[t,n="center"]=e.split("-");return[t,n]}var Ni=bi,Yo=wi,Ei=xi,ji=ki,W1="Portal",Rr=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=d.useState(!1);Ot(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?Rn.createPortal(c.jsx(Ie.div,{...r,ref:t}),a):null});Rr.displayName=W1;function $1(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Tt=e=>{const{present:t,children:n}=e,r=F1(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=qe(r.ref,B1(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};Tt.displayName="Presence";function F1(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),a=e?"mounted":"unmounted",[i,l]=$1(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=tr(r.current);s.current=i==="mounted"?u:"none"},[i]),Ot(()=>{const u=r.current,f=o.current;if(f!==e){const p=s.current,m=tr(u);e?l("MOUNT"):m==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ot(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=m=>{const v=tr(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(l("ANIMATION_END"),!o.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},p=m=>{m.target===t&&(s.current=tr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function tr(e){return e?.animationName||"none"}function B1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var z1=Symbol("radix.slottable");function H1(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=z1,t}var Y1=d[" useInsertionEffect ".trim().toString()]||Ot;function Vo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=V1({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const h=f.current;h!==i&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const u=d.useCallback(f=>{if(i){const h=q1(f)?f(e):f;h!==e&&a.current?.(h)}else s(f)},[i,e,s,a]);return[l,u]}function V1({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return Y1(()=>{s.current=t},[t]),d.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function q1(e){return typeof e=="function"}var G1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),U1="VisuallyHidden",Mi=d.forwardRef((e,t)=>c.jsx(Ie.span,{...e,ref:t,style:{...G1,...e.style}}));Mi.displayName=U1;var Z1=Mi,[Pr]=Sr("Tooltip",[Dr]),Tr=Dr(),Oi="TooltipProvider",X1=700,xo="tooltip.open",[K1,qo]=Pr(Oi),Di=e=>{const{__scopeTooltip:t,delayDuration:n=X1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=d.useRef(!0),i=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(K1,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:s})};Di.displayName=Oi;var En="Tooltip",[Q1,An]=Pr(En),Ri=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,l=qo(En,e.__scopeTooltip),u=Tr(t),[f,h]=d.useState(null),p=Sn(),m=d.useRef(0),b=a??l.disableHoverableContent,v=i??l.delayDuration,_=d.useRef(!1),[y,w]=Vo({prop:r,defaultProp:o??!1,onChange:N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(xo))):l.onClose(),s?.(N)},caller:En}),x=d.useMemo(()=>y?_.current?"delayed-open":"instant-open":"closed",[y]),k=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,_.current=!1,w(!0)},[w]),S=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w(!1)},[w]),C=d.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{_.current=!0,w(!0),m.current=0},v)},[v,w]);return d.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),c.jsx(Ni,{...u,children:c.jsx(Q1,{scope:t,contentId:p,open:y,stateAttribute:x,trigger:f,onTriggerChange:h,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?C():k()},[l.isOpenDelayedRef,C,k]),onTriggerLeave:d.useCallback(()=>{b?S():(window.clearTimeout(m.current),m.current=0)},[S,b]),onOpen:k,onClose:S,disableHoverableContent:b,children:n})})};Ri.displayName=En;var Co="TooltipTrigger",Pi=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=An(Co,n),s=qo(Co,n),a=Tr(n),i=d.useRef(null),l=qe(t,i,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),h=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(Yo,{asChild:!0,...a,children:c.jsx(Ie.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:je(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:je(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:je(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:je(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:je(e.onBlur,o.onClose),onClick:je(e.onClick,o.onClose)})})});Pi.displayName=Co;var Go="TooltipPortal",[J1,eh]=Pr(Go,{forceMount:void 0}),Ti=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=An(Go,t);return c.jsx(J1,{scope:t,forceMount:n,children:c.jsx(Tt,{present:n||s.open,children:c.jsx(Rr,{asChild:!0,container:o,children:r})})})};Ti.displayName=Go;var sn="TooltipContent",Ai=d.forwardRef((e,t)=>{const n=eh(sn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=An(sn,e.__scopeTooltip);return c.jsx(Tt,{present:r||a.open,children:a.disableHoverableContent?c.jsx(Ii,{side:o,...s,ref:t}):c.jsx(th,{side:o,...s,ref:t})})}),th=d.forwardRef((e,t)=>{const n=An(sn,e.__scopeTooltip),r=qo(sn,e.__scopeTooltip),o=d.useRef(null),s=qe(t,o),[a,i]=d.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:h}=r,p=d.useCallback(()=>{i(null),h(!1)},[h]),m=d.useCallback((b,v)=>{const _=b.currentTarget,y={x:b.clientX,y:b.clientY},w=ah(y,_.getBoundingClientRect()),x=ih(y,w),k=ch(v.getBoundingClientRect()),S=dh([...x,...k]);i(S),h(!0)},[h]);return d.useEffect(()=>()=>p(),[p]),d.useEffect(()=>{if(l&&f){const b=_=>m(_,f),v=_=>m(_,l);return l.addEventListener("pointerleave",b),f.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",v)}}},[l,f,m,p]),d.useEffect(()=>{if(a){const b=v=>{const _=v.target,y={x:v.clientX,y:v.clientY},w=l?.contains(_)||f?.contains(_),x=!lh(y,a);w?p():x&&(p(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,f,a,u,p]),c.jsx(Ii,{...e,ref:s})}),[nh,rh]=Pr(En,{isInside:!1}),oh=H1("TooltipContent"),Ii=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=An(sn,n),u=Tr(n),{onClose:f}=l;return d.useEffect(()=>(document.addEventListener(xo,f),()=>document.removeEventListener(xo,f)),[f]),d.useEffect(()=>{if(l.trigger){const h=p=>{p.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,f]),c.jsx(Nr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:c.jsxs(Ei,{"data-state":l.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(oh,{children:r}),c.jsx(nh,{scope:n,isInside:!0,children:c.jsx(Z1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Ai.displayName=sn;var Li="TooltipArrow",sh=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Tr(n);return rh(Li,n).isInside?null:c.jsx(ji,{...o,...r,ref:t})});sh.displayName=Li;function ah(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ih(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ch(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function lh(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],l=t[a],u=i.x,f=i.y,h=l.x,p=l.y;f>r!=p>r&&n<(h-u)*(r-f)/(p-f)+u&&(o=!o)}return o}function dh(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),uh(t)}function uh(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var fh=Di,hh=Ri,mh=Pi,ph=Ti,Wi=Ai;const gh=fh,vh=hh,_h=mh,$i=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(ph,{children:c.jsx(Wi,{ref:r,sideOffset:t,className:J("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)",e),...n})}));$i.displayName=Wi.displayName;const bh="_anchor_10hp3_5",yh="_tooltip_10hp3_10",$s={anchor:bh,tooltip:yh},Fs=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,wh=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Bs=(e,t)=>typeof e=="number"?e:e?.[t]??0,Uo=({children:e,target:t,placement:n="top",popperClassName:r,isOpen:o,toggle:s,delay:a,autohide:i=!0})=>{const[l,u]=g.useState(!1),[f,h]=g.useState(null),p=o??l,{side:m,align:b}=g.useMemo(()=>wh(n),[n]),v=g.useCallback(()=>{const y=Fs(t);h(y?.getBoundingClientRect()??null)},[t]),_=g.useCallback(y=>{o===void 0&&u(y),s?.()},[o,s]);return g.useEffect(()=>{let y=null,w=null,x=null,k=null;const S=()=>{x&&clearTimeout(x),k&&clearTimeout(k),x=null,k=null},C=()=>{S(),v(),x=setTimeout(()=>_(!0),Bs(a,"show"))},N=()=>{i&&(S(),k=setTimeout(()=>_(!1),Bs(a,"hide")))},E=()=>{y&&(y.removeEventListener("mouseenter",C),y.removeEventListener("mouseleave",N),y.removeEventListener("focus",C),y.removeEventListener("blur",N),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v),y=null)},D=A=>{y=A,v(),A.addEventListener("mouseenter",C),A.addEventListener("mouseleave",N),A.addEventListener("focus",C),A.addEventListener("blur",N),window.addEventListener("scroll",v,!0),window.addEventListener("resize",v)};let O=0;const T=60,R=()=>{const A=Fs(t);if(A){D(A);return}O>=T||(O+=1,w=requestAnimationFrame(R))};return R(),()=>{w!==null&&cancelAnimationFrame(w),S(),E()}},[i,a,_,t,v]),f?c.jsx(gh,{delayDuration:0,children:c.jsxs(vh,{open:p,onOpenChange:_,children:[Ka(c.jsx(_h,{asChild:!0,children:c.jsx("span",{className:$s.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})})),c.jsx($i,{side:m,align:b,className:M($s.tooltip,r),children:e})]})}):null};var eo=0;function Fi(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zs()),document.body.insertAdjacentElement("beforeend",e[1]??zs()),eo++,()=>{eo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),eo--}},[])}function zs(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var to="focusScope.autoFocusOnMount",no="focusScope.autoFocusOnUnmount",Hs={bubbles:!1,cancelable:!0},xh="FocusScope",Zo=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,l]=d.useState(null),u=rn(o),f=rn(s),h=d.useRef(null),p=qe(t,v=>l(v)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let v=function(x){if(m.paused||!i)return;const k=x.target;i.contains(k)?h.current=k:Mt(h.current,{select:!0})},_=function(x){if(m.paused||!i)return;const k=x.relatedTarget;k!==null&&(i.contains(k)||Mt(h.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Mt(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",_);const w=new MutationObserver(y);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",_),w.disconnect()}}},[r,i,m.paused]),d.useEffect(()=>{if(i){Vs.add(m);const v=document.activeElement;if(!i.contains(v)){const y=new CustomEvent(to,Hs);i.addEventListener(to,u),i.dispatchEvent(y),y.defaultPrevented||(Ch(jh(Bi(i)),{select:!0}),document.activeElement===v&&Mt(i))}return()=>{i.removeEventListener(to,u),setTimeout(()=>{const y=new CustomEvent(no,Hs);i.addEventListener(no,f),i.dispatchEvent(y),y.defaultPrevented||Mt(v??document.body,{select:!0}),i.removeEventListener(no,f),Vs.remove(m)},0)}}},[i,u,f,m]);const b=d.useCallback(v=>{if(!n&&!r||m.paused)return;const _=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(_&&y){const w=v.currentTarget,[x,k]=kh(w);x&&k?!v.shiftKey&&y===k?(v.preventDefault(),n&&Mt(x,{select:!0})):v.shiftKey&&y===x&&(v.preventDefault(),n&&Mt(k,{select:!0})):y===w&&v.preventDefault()}},[n,r,m.paused]);return c.jsx(Ie.div,{tabIndex:-1,...a,ref:p,onKeyDown:b})});Zo.displayName=xh;function Ch(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Mt(r,{select:t}),document.activeElement!==n)return}function kh(e){const t=Bi(e),n=Ys(t,e),r=Ys(t.reverse(),e);return[n,r]}function Bi(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ys(e,t){for(const n of e)if(!Sh(n,{upTo:t}))return n}function Sh(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Nh(e){return e instanceof HTMLInputElement&&"select"in e}function Mt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Nh(e)&&t&&e.select()}}var Vs=Eh();function Eh(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qs(e,t),e.unshift(t)},remove(t){e=qs(e,t),e[0]?.resume()}}}function qs(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function jh(e){return e.filter(t=>t.tagName!=="A")}function Mh(e){const t=Oh(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(Rh);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Oh(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=Th(o),i=Ph(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Dh=Symbol("radix.slottable");function Rh(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Dh}function Ph(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Th(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ah=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ut=new WeakMap,nr=new WeakMap,rr={},ro=0,zi=function(e){return e&&(e.host||zi(e.parentNode))},Ih=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=zi(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Lh=function(e,t,n,r){var o=Ih(t,Array.isArray(e)?e:[e]);rr[n]||(rr[n]=new WeakMap);var s=rr[n],a=[],i=new Set,l=new Set(o),u=function(h){!h||i.has(h)||(i.add(h),u(h.parentNode))};o.forEach(u);var f=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(i.has(p))f(p);else try{var m=p.getAttribute(r),b=m!==null&&m!=="false",v=(Ut.get(p)||0)+1,_=(s.get(p)||0)+1;Ut.set(p,v),s.set(p,_),a.push(p),v===1&&b&&nr.set(p,!0),_===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return f(t),i.clear(),ro++,function(){a.forEach(function(h){var p=Ut.get(h)-1,m=s.get(h)-1;Ut.set(h,p),s.set(h,m),p||(nr.has(h)||h.removeAttribute(r),nr.delete(h)),m||h.removeAttribute(n)}),ro--,ro||(Ut=new WeakMap,Ut=new WeakMap,nr=new WeakMap,rr={})}},Hi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ah(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Lh(r,o,n,"aria-hidden")):function(){return null}},st=function(){return st=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},st.apply(this,arguments)};function Yi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Wh(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var fr="right-scroll-bar-position",hr="width-before-scroll-bar",$h="with-scroll-bars-hidden",Fh="--removed-body-scroll-bar-size";function oo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Bh(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var zh=typeof window<"u"?d.useLayoutEffect:d.useEffect,Gs=new WeakMap;function Hh(e,t){var n=Bh(null,function(r){return e.forEach(function(o){return oo(o,r)})});return zh(function(){var r=Gs.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||oo(i,null)}),s.forEach(function(i){o.has(i)||oo(i,a)})}Gs.set(n,e)},[e]),n}function Yh(e){return e}function Vh(e,t){t===void 0&&(t=Yh);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function qh(e){e===void 0&&(e={});var t=Vh(null);return t.options=st({async:!0,ssr:!1},e),t}var Vi=function(e){var t=e.sideCar,n=Yi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,st({},n))};Vi.isSideCarExport=!0;function Gh(e,t){return e.useMedium(t),Vi}var qi=qh(),so=function(){},Ar=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:so,onWheelCapture:so,onTouchMoveCapture:so}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,h=e.shards,p=e.sideCar,m=e.noRelative,b=e.noIsolation,v=e.inert,_=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,x=e.gapMode,k=Yi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,C=Hh([n,t]),N=st(st({},k),o);return d.createElement(d.Fragment,null,f&&d.createElement(S,{sideCar:qi,removeScrollBar:u,shards:h,noRelative:m,noIsolation:b,inert:v,setCallbacks:s,allowPinchZoom:!!_,lockRef:n,gapMode:x}),a?d.cloneElement(d.Children.only(i),st(st({},N),{ref:C})):d.createElement(w,st({},N,{className:l,ref:C}),i))});Ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ar.classNames={fullWidth:hr,zeroRight:fr};var Uh=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Zh(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Uh();return t&&e.setAttribute("nonce",t),e}function Xh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Kh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qh=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Zh())&&(Xh(t,n),Kh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jh=function(){var e=Qh();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Gi=function(){var e=Jh(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},em={left:0,top:0,right:0,gap:0},ao=function(e){return parseInt(e||"",10)||0},tm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ao(n),ao(r),ao(o)]},nm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return em;var t=tm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},rm=Gi(),tn="data-scroll-locked",om=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
-
.`.concat(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),c=require("react/jsx-runtime"),Rn=require("react-dom");function ba(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=ba(g),_a=ba(Rn),Ml=e=>d.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M0.5 8.50634L8.5 0.5L16.5 8.49975",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.5 6.58643V16.4994H14.5V6.56641",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M6.5 16.4998V10.5H10.5",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),Ol=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.09237 4.75028C8.31363 4.75028 8.49345 4.92792 8.49345 5.1465V8.80763C8.49345 9.02622 8.31363 9.2032 8.09237 9.2032H5.6565C5.43524 9.2032 5.2561 9.02622 5.2561 8.80763C5.2561 8.58839 5.43524 8.41141 5.6565 8.41141H7.6913V5.1465C7.6913 4.92792 7.87111 4.75028 8.09237 4.75028ZM1 8C1 11.8599 4.17853 15 8.08502 15C11.4053 15 14.2442 12.7712 14.9895 9.58028C15.0397 9.36763 14.9047 9.155 14.6887 9.10547C14.4775 9.05859 14.2582 9.18933 14.2074 9.40264C13.547 12.2317 11.0296 14.2075 8.08502 14.2075C4.62038 14.2075 1.80149 11.4227 1.80149 8C1.80149 4.5766 4.62038 1.79245 8.08502 1.79245C10.5296 1.79245 12.7502 3.20962 13.7756 5.36839H11.3912C11.17 5.36839 10.9901 5.54537 10.9901 5.76396C10.9901 5.98254 11.17 6.16019 11.3912 6.16019H14.424C14.6453 6.16019 14.8244 5.98254 14.8244 5.76396V2.76849C14.8244 2.54991 14.6453 2.37226 14.424 2.37226C14.2028 2.37226 14.023 2.54991 14.023 2.76849V4.18236C12.7335 2.23226 10.5062 1 8.08502 1C4.17853 1 1 4.14009 1 8Z",fill:"currentColor"})),Dl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5774)"},d.createElement("path",{d:"M8.24567 14.0242H0.666672V0.666992H6.60323L10.5609 4.6247V9.57183",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M6.60417 0.666992V4.6247H10.5619",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M12.638 12.54L13.8254 13.7405L15.0127 12.54",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.07781 12.5403L7.89047 11.3398L6.70312 12.5403",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12.2564 15.1521C11.7 15.4559 11.0599 15.5703 10.4328 15.4781C9.80562 15.3859 9.22551 15.092 8.78019 14.6409C8.38611 14.2414 8.11251 13.7391 7.99061 13.1914C7.8687 12.6437 7.90348 12.0728 8.09094 11.5439",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.45833 9.9274C10.0147 9.62358 10.6548 9.50915 11.2819 9.60138C11.9091 9.69361 12.4892 9.9875 12.9345 10.4386C13.3288 10.8379 13.6028 11.34 13.7252 11.8877C13.8477 12.4353 13.8138 13.0063 13.6272 13.5355",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5774"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Rl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5680)"},d.createElement("path",{d:"M13.9999 6.31067V3.52381H5.79479V2H0.666595V12.2264C0.666595 12.3432 0.713287 12.4551 0.796637 12.5377C0.879986 12.6202 0.993098 12.6666 1.11097 12.6666H8.35888",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M14.2521 6L9.0879 11.1766L8 14L10.8358 12.9333L16 7.75667L14.2521 6Z",stroke:"currentColor",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.33339 11.333L10.6667 12.6663",stroke:"currentColor",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5680"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Pl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.05584 2.58008V5.33656C4.3465 5.33656 4.28125 6.22012 4.28125 6.4379C4.28125 6.65568 4.44608 7.68235 5.15853 7.68235C5.39614 8.66258 5.9937 9.51765 6.83242 10.0779",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.6302 10.0628C10.4691 9.50283 11.0666 8.64767 11.3039 7.66731C12.0102 7.66731 12.1751 6.65932 12.1751 6.43843C12.1751 6.21754 12.2964 5.34953 11.5933 5.33709V2.62109",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.37643 9.79102V10.4669C6.37643 10.9336 6.60665 11.6118 4.04309 12.1003C1.33332 12.6167 1.33333 14.6669 1.33333 14.6669H15.3333C15.3333 14.6669 15.3334 12.6603 12.4338 12.1003C9.94494 11.618 10.1005 10.9336 10.1005 10.4669V9.79102",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M4.59114 11.9824L8.32766 14.6673L12.061 12.0228",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8.3282 3.00033L1.79167 1.60033L8.3282 0.666992L14.8615 1.60033L8.3282 3.00033Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.05725 3.93359L8.32711 4.40026L11.5938 3.93359",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.25781 1.69336V7.20001",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Tl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M6.9329 14H2V9.06713H6.9329V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.9329 6.60059H2V1.66765H6.9329V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.3343 14H9.40144V9.06713H14.3343V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.3343 6.60059H9.40144V1.66765H14.3343V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Al=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5733)"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2984 6.64286C15.2984 10.7453 8.14844 15 8.14844 15C8.14844 15 0.998444 10.7453 0.998444 6.64286C0.998444 6.53654 0.998444 6.2315 0.998444 6.17857C0.998444 3.87061 2.7989 2 5.02032 2C6.28408 2 7.4111 2.60682 8.14755 3.55396C8.88489 2.60682 10.0124 2 11.2766 2C13.498 2 15.2984 3.87061 15.2984 6.17857C15.2984 6.23104 15.2984 6.53607 15.2984 6.64286Z",stroke:"currentColor"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5733"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Il=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5852)"},d.createElement("path",{d:"M4.81389 5.81154C4.79445 6.087 5.00199 6.32606 5.27745 6.3455C5.55291 6.36494 5.79197 6.1574 5.81141 5.88194L5.31265 5.84674L4.81389 5.81154ZM10.6346 4.74381L11.1154 4.6067V4.6067L10.6346 4.74381ZM8.27563 9.0822L7.96537 8.69011L8.27563 9.0822ZM7.09347 11.3614C7.09347 11.6376 7.31733 11.8614 7.59347 11.8614C7.86961 11.8614 8.09347 11.6376 8.09347 11.3614H7.59347H7.09347ZM5.31265 5.84674L5.81141 5.88194C5.90808 4.51228 6.8506 3.80991 7.87427 3.67837C8.94608 3.54065 9.91206 4.03342 10.1537 4.88092L10.6346 4.74381L11.1154 4.6067C10.6897 3.114 9.11102 2.51123 7.74682 2.68653C6.33448 2.868 4.94971 3.88719 4.81389 5.81154L5.31265 5.84674ZM10.6346 4.74381L10.1537 4.88092C10.2697 5.28772 10.347 5.69413 10.1318 6.24186C9.9049 6.81911 9.32895 7.61111 7.96537 8.69011L8.27563 9.0822L8.58589 9.47429C10.01 8.34742 10.7424 7.42216 11.0625 6.60764C11.3942 5.76361 11.2571 5.10376 11.1154 4.6067L10.6346 4.74381ZM8.27563 9.0822L7.96537 8.69011C7.0119 9.44458 7.09347 10.6137 7.09347 11.3614H7.59347H8.09347C8.09347 10.4547 8.08561 9.87017 8.58589 9.47429L8.27563 9.0822Z",fill:"currentColor"}),d.createElement("circle",{cx:7.66097,cy:13.1607,r:.431202,fill:"currentColor"}),d.createElement("path",{d:"M8.17085 15.3418C12.1312 15.3418 15.3418 12.1313 15.3418 8.17095C15.3418 4.21057 12.1312 1 8.17085 1C4.21047 1 1 4.21057 1 8.17095C1 12.1313 4.21047 15.3418 8.17085 15.3418Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5852"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Ll=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"m38.46 11.54l-5.85-5.9a3.9 3.9 0 0 0-2.76-1.14h-19.5a2 2 0 0 0-1.95 2v35.1a2 2 0 0 0 1.95 2h27.3a2 2 0 0 0 2-2V14.3a3.9 3.9 0 0 0-1.19-2.76m-25.08 3.15H29.7m-16.32 7.03h21.24m-21.24 7.03h19.5m-19.5 7.03h12.68"})),Wl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.26562 6.60009V3.33337C5.26562 2.71452 5.51145 2.12104 5.94904 1.68345C6.38663 1.24586 6.98015 1 7.599 1C8.21784 1 8.81132 1.24586 9.24891 1.68345C9.68651 2.12104 9.93237 2.71452 9.93237 3.33337V6.60009",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M13.2002 5.66699H2V15.0005H13.2002V5.66699Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),$l=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5666)"},d.createElement("path",{d:"M12.3924 13.6144L11.0069 7.30241L13.701 4.60825C14.8557 3.45361 15.2406 1.91409 14.8557 1.14433C14.0859 0.75945 12.5464 1.14433 11.3918 2.29897L8.69759 4.99313L2.38557 3.60756C2.00069 3.53058 1.69278 3.68454 1.53883 3.99244L1.3079 4.37732C1.15395 4.7622 1.23093 5.14708 1.53883 5.37801L5.61856 8.07217L4.07904 10.3814H1.76976L1 11.1512L3.30928 12.6907L4.8488 15L5.61856 14.2302V11.921L7.92784 10.3814L10.622 14.4612C10.8529 14.7691 11.2378 14.846 11.6227 14.6921L12.0076 14.5381C12.3155 14.3072 12.4694 13.9993 12.3924 13.6144Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5666"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Fl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5649)"},d.createElement("path",{d:"M11.7265 12.0262C9.54829 11.6097 9.54246 10.9341 9.54246 10.4973V9.8042C9.97361 9.38644 10.3133 8.88369 10.5399 8.32776C10.7665 7.77182 10.875 7.17487 10.8587 6.57475V4.478C10.8587 2.20657 9.24835 1.33301 7.80104 1.33301C6.35374 1.33301 4.74336 2.20657 4.74336 4.478V6.57475C4.72731 7.17345 4.83548 7.76895 5.06102 8.32378C5.28656 8.8786 5.62458 9.38067 6.0538 9.79837V10.4973C6.0538 10.9341 6.0538 11.6301 3.86974 12.0262C3.25845 12.135 2.69243 12.4205 2.24165 12.8475C1.79087 13.2744 1.4751 13.8241 1.33333 14.4286H14.2601C14.1154 13.826 13.7992 13.2783 13.3495 12.8519C12.8998 12.4254 12.336 12.1386 11.7265 12.0262V12.0262Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5649"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Bl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5794)"},d.createElement("path",{d:"M9.12936 11.9944H1.33333C1.33333 11.9944 1.33335 10.4405 3.42691 10.0372C5.22691 9.69028 5.22975 9.14763 5.22975 8.79178V8.43298C4.77582 8.01292 4.45171 7.47165 4.29568 6.87318V6.87318C3.74708 6.87318 3.6166 5.7463 3.6166 5.58024C3.6166 5.41417 3.59592 4.73811 4.15045 4.73811C3.79164 3.31472 3.85386 2.00989 4.83837 2.00989C7.21069 0.370026 10.3629 1.8765 9.20046 4.73811C9.75795 4.73811 9.74011 5.41121 9.74011 5.58024C9.74011 5.74926 9.61273 6.87318 9.06116 6.87318C8.90437 7.4744 8.57795 8.0179 8.12101 8.43892V8.79475C8.12101 9.03791 8.05281 9.51827 9.01063 9.86522",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M11.1147 13.3319C12.343 13.3319 13.3387 12.3361 13.3387 11.1078C13.3387 9.87953 12.343 8.88379 11.1147 8.88379C9.88636 8.88379 8.89062 9.87953 8.89062 11.1078C8.89062 12.3361 9.88636 13.3319 11.1147 13.3319Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M12.6849 12.6797L14.6718 14.6666",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5794"},d.createElement("rect",{width:16,height:16,fill:"white"})))),zl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5697)"},d.createElement("path",{d:"M11.4479 1.33301H13.3353V3.22339",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.66681 7.55537L6.66986 3.99973L9.33659 5.3331L13.3367 1.33301",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12.4479 14.6664V5.77734H14.2257V14.6664",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M8.89062 14.6662V10.2246H10.6684V14.6662",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M5.33333 14.6665V8.8916H7.11411V14.6665",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M1.77864 14.6667V12.0029H3.55646V14.6667",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M14.6699 14.667H1.33333",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5697"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Hl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M4.93759 11.5H1.65C1.47761 11.5 1.31233 11.4285 1.19043 11.3012C1.06853 11.1739 1 11.0014 1 10.8214V2.67857C1 2.4986 1.06853 2.32598 1.19043 2.19873C1.31233 2.07147 1.47761 2 1.65 2H13.35C13.5224 2 13.6877 2.07147 13.8096 2.19873C13.9315 2.32598 14 2.4986 14 2.67857",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M13.9996 10.5448C14.0057 10.7866 13.9466 11.0252 13.8291 11.2326C13.7117 11.44 13.5407 11.6076 13.3365 11.7156L5.60035 14.9065C4.93136 15.2187 4.71622 14.6817 4.71622 14.2821V6.32045C4.70283 6.07729 4.75896 5.83551 4.87725 5.62665C4.99553 5.41778 5.17049 5.25154 5.37932 5.14963L12.8827 2.05555C13.3748 1.86822 13.9967 2.18353 13.9967 2.57068L13.9996 10.5448Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M7.5 10.5C8.01283 10.5 8.42857 10.0523 8.42857 9.5C8.42857 8.94772 8.01283 8.5 7.5 8.5C6.98716 8.5 6.57143 8.94772 6.57143 9.5C6.57143 10.0523 6.98716 10.5 7.5 10.5Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M3.32143 4.5H7.96428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3.32143 7H4.71428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Yl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M472 96h-88V40h-32v56H160V40h-32v56H40a24.03 24.03 0 0 0-24 24v336a24.03 24.03 0 0 0 24 24h432a24.03 24.03 0 0 0 24-24V120a24.03 24.03 0 0 0-24-24m-8 352H48V128h80v40h32v-40h192v40h32v-40h80Z"}),d.createElement("path",{d:"M112 224h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32zm-256 72h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32zm-256 72h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32z"})),Vl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M8 7.5A1.5 1.5 0 0 1 9.5 6h12A1.5 1.5 0 0 1 23 7.5v3a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 8 10.5zm2 .5v2h11V8zM4 5.25A3.25 3.25 0 0 1 7.25 2h16.5A3.25 3.25 0 0 1 27 5.25v21.5A3.25 3.25 0 0 1 23.75 30H7.25A3.25 3.25 0 0 1 4 26.75zM7.25 4C6.56 4 6 4.56 6 5.25v21.5c0 .69.56 1.25 1.25 1.25h16.5c.69 0 1.25-.56 1.25-1.25V5.25C25 4.56 24.44 4 23.75 4zm22 4H28v4h1.25a.75.75 0 0 0 .75-.75v-2.5a.75.75 0 0 0-.75-.75M28 14h1.25a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75H28zm1.25 6H28v4h1.25a.75.75 0 0 0 .75-.75v-2.5a.75.75 0 0 0-.75-.75"})),ql=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8M305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3z"})),Gl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M9.5 1A1.5 1.5 0 0 0 8 2.5v2a1.5 1.5 0 0 0 1 1.414V7a.5.5 0 0 0 .82.384L11.48 6h2.02A1.5 1.5 0 0 0 15 4.5v-2A1.5 1.5 0 0 0 13.5 1zM9 2.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2.2a.5.5 0 0 0-.32.116l-.98.816V5.5a.5.5 0 0 0-.5-.5a.5.5 0 0 1-.5-.5zM3 6a2 2 0 1 1 4 0a2 2 0 0 1-4 0m2-1a1 1 0 1 0 0 2a1 1 0 0 0 0-2M2.5 9h5A1.5 1.5 0 0 1 9 10.5c0 1.116-.459 2.01-1.212 2.615C7.047 13.71 6.053 14 5 14s-2.047-.29-2.788-.885C1.46 12.51 1 11.616 1 10.5A1.5 1.5 0 0 1 2.5 9m5 1h-5a.5.5 0 0 0-.5.5c0 .817.325 1.423.838 1.835C3.364 12.757 4.12 13 5 13s1.636-.243 2.162-.665C7.675 11.923 8 11.317 8 10.5a.5.5 0 0 0-.5-.5"})),Ul=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M1536 640h-512V512h512zm-512 384h512v128h-512zm131 896l128 128H256V0h1536v1283l-128 128V128H384v1792zM941 429L704 666L531 493l90-90l83 83l147-147zm0 512l-237 237l-173-173l90-90l83 83l147-147zm-237 569l147-147l90 90l-237 237l-173-173l90-90zm1325-57l-557 558l-269-270l90-90l179 178l467-466z"})),Zl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M20.039 4.751a1 1 0 0 0 1.922.551l.827-2.884a1 1 0 1 0-1.922-.55zm8.668-1.458a1 1 0 0 1 0 1.414l-3 3a1 1 0 1 1-1.414-1.414l3-3a1 1 0 0 1 1.414 0M26 11.002a1 1 0 0 1 1-1h3a1 1 0 0 1 0 2h-3a1 1 0 0 1-1-1M11.956 5.659a3 3 0 0 1 4.805-.78l10.36 10.36a3 3 0 0 1-.78 4.804l-4.749 2.375a5.5 5.5 0 0 1-9.813 4.906l-2.717 1.359A3 3 0 0 1 5.6 28.12L3.88 26.4a3 3 0 0 1-.562-3.463zm1.62 20.767a3.5 3.5 0 0 0 6.218-3.109zm1.77-20.133a1 1 0 0 0-1.6.26l-8.64 17.279a1 1 0 0 0 .187 1.154l1.72 1.72a1 1 0 0 0 1.155.188l17.279-8.64a1 1 0 0 0 .26-1.601z"})),Xl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:19,height:19,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M17 17a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5m0 0a4.5 4.5 0 0 1 4.5 4.5M17 17a4.5 4.5 0 0 0-4.5 4.5M7 7.5a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5m0 0a4.5 4.5 0 0 1 4.5 4.5M7 7.5A4.5 4.5 0 0 0 2.5 12m1 3.5c0 2.764 2.236 5 5 5l-.5-2m10.5-10c0-2.764-2.236-5-5-5l.5 2"})),Kl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm192 200v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8m-48 396H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8m104.1-115.6c1.8-34.5 16.2-66.8 40.8-91.4c26.2-26.2 62-41 99.1-41c37.4 0 72.6 14.6 99.1 41c3.2 3.2 6.3 6.6 9.2 10.1L769.2 673a8 8 0 0 0 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l.6-95.4a8 8 0 0 0-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7c-.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6M880 744h-48.1c-4.3 0-7.8 3.3-8 7.6c-1.8 34.5-16.2 66.8-40.8 91.4c-26.2 26.2-62 41-99.1 41c-37.4 0-72.6-14.6-99.1-41c-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9a8 8 0 0 0-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-.6 95.4a8 8 0 0 0 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7c.2-4.5-3.5-8.3-8-8.3"})),ya=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40m-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40"}),d.createElement("path",{d:"M894 345c-48.1-66-115.3-110.1-189-130v.1c-17.1-19-36.4-36.5-58-52.1c-163.7-119-393.5-82.7-513 81c-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4c5.3 16.9 23.3 26.2 40.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6c17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408M323 735l-12-5l-99 31l-1-104l-8-9c-84.6-103.2-90.2-251.9-11-361c96.4-132.2 281.2-161.4 413-66c132.2 96.1 161.5 280.6 66 412c-80.1 109.9-223.5 150.5-348 102m505-17l-8 10l1 104l-98-33l-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1C613.7 788.2 680.7 742.2 729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62c72.6 99.6 68.5 235.2-8 330"}),d.createElement("path",{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40"})),xr=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M6.5433 12.0867C9.6048 12.0867 12.0867 9.60488 12.0867 6.54338C12.0867 3.48188 9.6048 1 6.5433 1C3.4818 1 1 3.48188 1 6.54338C1 9.60488 3.4818 12.0867 6.5433 12.0867Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.4727 10.4707L15.9994 16.0007",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Ql=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M19 12.5H6M19 12.5L14.3333 8M19 12.5L14.3333 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),dt=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3285 17.0857 11.7189 17.0989 11.3243 16.7372L5.32428 11.2372C4.91716 10.864 4.88965 10.2314 5.26285 9.82427C5.63604 9.41715 6.26861 9.38965 6.67573 9.76284L11.9699 14.6159L17.2929 9.29289Z",fill:"currentColor"})),Jl=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3285 17.0857 11.7189 17.0989 11.3243 16.7372L5.32428 11.2372C4.91716 10.864 4.88965 10.2314 5.26285 9.82427C5.63604 9.41715 6.26861 9.38965 6.67573 9.76284L11.9699 14.6159L17.2929 9.29289Z",fill:"rgba(0, 109, 240, 0.8)"})),ct=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M13 3L8 8M3 13L8 8M8 8L3 3L13 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Ro=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M8 11.6226L10.8813 15L16 9",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ed=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#FFEEEE"}),d.createElement("path",{d:"M7.5 7.5L16.5 16.5M7.5 16.5L16.5 7.5",stroke:"#D72D40",strokeWidth:1.4,strokeLinecap:"round"})),td=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F4F0"}),d.createElement("path",{d:"M9.89997 17C9.7143 17 9.53632 16.9248 9.40507 16.7909L5.20502 12.505C4.93166 12.226 4.93166 11.7739 5.20502 11.495C5.47837 11.216 5.92165 11.216 6.19483 11.495L9.89997 15.2757L17.8052 7.2092C18.0785 6.93027 18.5218 6.93027 18.795 7.2092C19.0683 7.48813 19.0683 7.94045 18.795 8.21939L10.3949 16.7909C10.2636 16.9248 10.0857 17 9.89997 17Z",fill:"#00A582"})),nd=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F1FF"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1056 8.28604C12.3584 8.28604 12.5639 8.48905 12.5639 8.73886V12.923C12.5639 13.1728 12.3584 13.3751 12.1056 13.3751H9.32172C9.06885 13.3751 8.86411 13.1728 8.86411 12.923C8.86411 12.6724 9.06885 12.4702 9.32172 12.4702H11.6472V8.73886C11.6472 8.48905 11.8527 8.28604 12.1056 8.28604ZM4 12C4 16.4113 7.63261 20 12.0972 20C15.8917 20 19.1362 17.4528 19.988 13.806C20.0453 13.563 19.891 13.32 19.6443 13.2634C19.4029 13.2098 19.1523 13.3592 19.0942 13.603C18.3394 16.8362 15.4624 19.0943 12.0972 19.0943C8.13758 19.0943 4.91599 15.9117 4.91599 12C4.91599 8.08754 8.13758 4.90566 12.0972 4.90566C14.8909 4.90566 17.4288 6.52528 18.6007 8.99245H15.8757C15.6228 8.99245 15.4173 9.19471 15.4173 9.44452C15.4173 9.69433 15.6228 9.89736 15.8757 9.89736H19.3418C19.5946 9.89736 19.7994 9.69433 19.7994 9.44452V6.02113C19.7994 5.77132 19.5946 5.5683 19.3418 5.5683C19.0889 5.5683 18.8834 5.77132 18.8834 6.02113V7.63698C17.4097 5.4083 14.8642 4 12.0972 4C7.63261 4 4 7.58867 4 12Z",fill:"#4573D9"})),rd=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M21.9006 11.9999C21.9006 6.53258 17.4684 2.10042 12.0011 2.10042C6.53372 2.10042 2.10156 6.53258 2.10156 11.9999C2.10156 17.4673 6.53372 21.8994 12.0011 21.8994C17.4684 21.8994 21.9006 17.4673 21.9006 11.9999Z",fill:"#00A582",stroke:"#00A582",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M8 11.6226L10.8813 15L16 9",stroke:"white",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),wa=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"#D72D40",stroke:"#D72D40",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M15.6912 8.31348L8.30859 15.6917",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M15.6947 15.6917L8.31641 8.31348",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),xa=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M11.8617 21.7234C17.3082 21.7234 21.7234 17.3082 21.7234 11.8617C21.7234 6.41523 17.3082 2 11.8617 2C6.41523 2 2 6.41523 2 11.8617C2 17.3082 6.41523 21.7234 11.8617 21.7234Z",fill:"#FFA300",stroke:"#FFA300",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M11.3004 13.9799L11.0046 6.75096C11.0001 6.63834 11.0178 6.52593 11.0567 6.42017C11.0957 6.3144 11.155 6.21731 11.2315 6.1345C11.3079 6.05168 11.3999 5.98475 11.5022 5.93749C11.6046 5.89023 11.7152 5.86359 11.8278 5.85908C11.9404 5.85458 12.0528 5.87228 12.1586 5.91122C12.2644 5.95015 12.3614 6.00959 12.4442 6.08603C12.527 6.16248 12.594 6.25442 12.6413 6.35673C12.6885 6.45905 12.7152 6.56967 12.7197 6.68229C12.7197 6.70373 12.7197 6.72952 12.7197 6.75096L12.4238 13.9799C12.4238 14.1295 12.3644 14.2729 12.2587 14.3787C12.1529 14.4844 12.0095 14.5438 11.86 14.5438C11.7104 14.5438 11.567 14.4844 11.4613 14.3787C11.3555 14.2729 11.2961 14.1295 11.2961 13.9799H11.3004Z",fill:"white"}),d.createElement("circle",{cx:11.8605,cy:16.7795,r:1,fill:"white",stroke:"white",strokeWidth:.572616})),Ca=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M15 3H1V13H15V3Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1 3L8 10.3433L15 3",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.3359 7.89648L15.0026 12.9998",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1 12.9998L5.66667 7.89648",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),od=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M1.61422 14.1333L5.99625 12.4418C6.61289 12.5773 7.2432 12.6457 7.87554 12.6458C11.6739 12.6458 14.7511 10.2623 14.7511 7.32292C14.7511 4.38348 11.6739 2 7.87554 2C4.07718 2 1 4.38348 1 7.32292C1 8.81925 1.79758 10.1707 3.08101 11.1347L1.61422 14.1333Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("circle",{cx:4.98438,cy:7.66211,r:.75,fill:"currentColor"}),d.createElement("circle",{cx:7.875,cy:7.66211,r:.75,fill:"currentColor"}),d.createElement("circle",{cx:10.7656,cy:7.66211,r:.75,fill:"currentColor"})),sd=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M11.5195 9.99817C11.3265 9.87759 11.0947 9.83572 10.8717 9.88121C10.6488 9.92671 10.4519 10.0561 10.3216 10.2426C9.89136 10.7756 9.35845 11.663 7.34409 9.64859C5.32972 7.63423 6.2171 7.1013 6.74759 6.67105C6.93413 6.54079 7.0635 6.34385 7.109 6.12093C7.15449 5.89801 7.11263 5.66612 6.99205 5.47319C6.84537 5.25073 5.90909 3.80596 5.74285 3.56639C5.57662 3.32681 5.35414 2.93568 4.84077 3.00901C4.31202 3.17497 3.84929 3.50384 3.51868 3.9486C3.18807 4.39337 3.00653 4.93127 3 5.48541C3 7.13308 4.29808 9.15233 6.07287 10.9271C7.84766 12.7019 9.86692 14 11.5146 14C12.0687 13.9935 12.6066 13.8119 13.0514 13.4813C13.4962 13.1507 13.825 12.688 13.991 12.1592C14.0643 11.6434 13.6732 11.4258 13.4336 11.2571C13.194 11.0885 11.7419 10.1448 11.5195 9.99817Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),ad=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M29 26H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h6.46l1.71-2.55A1 1 0 0 1 12 4h8a1 1 0 0 1 .83.45L22.54 7H29a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1M4 24h24V9h-6a1 1 0 0 1-.83-.45L19.46 6h-6.92l-1.71 2.55A1 1 0 0 1 10 9H4Z"}),d.createElement("path",{d:"M16 22a6 6 0 1 1 6-6a6 6 0 0 1-6 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4"})),ka=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"#000000",style:{opacity:1},...e},d.createElement("path",{d:"M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9z"})),Sa=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18m.05-13v.1h-.1V8z"})),id=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M18 28h-4a2 2 0 0 1-2-2v-7.59L4.59 11A2 2 0 0 1 4 9.59V6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v3.59a2 2 0 0 1-.59 1.41L20 18.41V26a2 2 0 0 1-2 2M6 6v3.59l8 8V26h4v-8.41l8-8V6Z"})),Na=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9m67.4-174.4L687.8 215l73.3 73.3l-362.7 362.6l-88.9 15.7zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32"})),cd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M20.3 13.43a1 1 0 0 0-1.25.65A7.14 7.14 0 0 1 12.18 19A7.1 7.1 0 0 1 5 12a7.1 7.1 0 0 1 7.18-7a7.26 7.26 0 0 1 4.65 1.67l-2.17-.36a1 1 0 0 0-1.15.83a1 1 0 0 0 .83 1.15l4.24.7h.17a1 1 0 0 0 .34-.06a.3.3 0 0 0 .1-.06a.8.8 0 0 0 .2-.11l.09-.11c0-.05.09-.09.13-.15s0-.1.05-.14a1.3 1.3 0 0 0 .07-.18l.75-4a1 1 0 0 0-2-.38l-.27 1.45A9.2 9.2 0 0 0 12.18 3A9.1 9.1 0 0 0 3 12a9.1 9.1 0 0 0 9.18 9A9.12 9.12 0 0 0 21 14.68a1 1 0 0 0-.7-1.25"})),ld=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64m176.5 585.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1"})),Ea=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M4.5 11.5a3 3 0 0 1 3-3h8.718a4 4 0 0 1 2.325.745l4.914 3.51a4 4 0 0 0 2.325.745H40.5a3 3 0 0 1 3 3v20a3 3 0 0 1-3 3h-33a3 3 0 0 1-3-3z"}),d.createElement("circle",{cx:25.435,cy:25.065,r:5.565}),d.createElement("path",{d:"M21.5 29L17 33.5"})),dd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{d:"M19 3v4m0 14V11m-7-8v12m0 6v-2M5 3v2m0 16V9"}),d.createElement("circle",{cx:19,cy:9,r:2,transform:"rotate(90 19 9)"}),d.createElement("circle",{cx:12,cy:17,r:2,transform:"rotate(90 12 17)"}),d.createElement("circle",{cx:5,cy:7,r:2,transform:"rotate(90 5 7)"})),ud=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:24,height:24,fill:"#000000",style:{opacity:1},...e},d.createElement("path",{d:"M6.84 2.189a1.96 1.96 0 0 0-1.68 0L.286 4.498A.5.5 0 0 0 0 4.976v3.026a.5.5 0 1 0 1 0V5.756l1 .496v2.75a.5.5 0 0 0 .147.354l.025.024l.06.055q.075.072.217.188c.187.153.457.355.794.558c.67.401 1.634.82 2.757.82s2.088-.419 2.757-.82a6.7 6.7 0 0 0 1.012-.746l.06-.055l.023-.024h.002A.5.5 0 0 0 10 9.001v-2.75l1.722-.854a.5.5 0 0 0-.008-.9zm.032 5.615L9 6.748V8.78l-.082.07a6 6 0 0 1-.675.473c-.58.348-1.366.679-2.243.679s-1.662-.33-2.243-.679A6 6 0 0 1 3 8.78V6.748l2.128 1.056c.55.272 1.194.272 1.744 0m-.46-4.711l3.942 1.867l-3.927 1.948a.96.96 0 0 1-.854 0L1.646 4.96l3.942-1.867a.96.96 0 0 1 .824 0M2.149 9.358"})),fd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M1728 1664q26 0 45 19t19 45t-19 45t-45 19H960q-26 0-45-19t-19-45t19-45t45-19zm-128 256q26 0 45 19t19 45t-19 45t-45 19h-512q-26 0-45-19t-19-45t19-45t45-19zm238-512h210v128H537q-10 64-14 128t-7 127t-3 128t-1 129H128v-193q0-81 6-160t17-159H0v-128h172q50-245 151-471t250-427q-146-5-268-61T82 289l-45-46l47-44q104-97 228-147T579 1q156 0 286 58t239 168q77 2 149 24t134 60t113 90t87 115t57 135t20 150v64h-64q-132 0-247-56t-199-159q-76 138-191 227t-269 125q-43 99-76 200t-57 206h289q22-84 69-154t112-122t146-79t167-29q87 0 167 28t145 80t113 121t69 155M1238 380q-6 65-26 132q51 88 134 146t185 74q-10-61-35-115t-63-101t-88-80t-107-56m-126 7q-102 8-192 50T759 547T642 704t-61 189q85-7 161-36t139-78t112-112t81-144q14-33 23-67t15-69M224 247q80 66 177 101t201 35q97 0 187-30t168-88q-80-66-177-101t-201-35q-97 0-187 30t-168 88m318 775q-8 2-16 2t-16 0h-32q-16 0-32-2v-47q-53 118-89 232t-59 230t-32 235t-10 248h128q0-121 8-234t27-223t49-219t74-222m442 386h720q-20-57-56-104t-83-81t-104-52t-117-19q-61 0-117 18t-103 52t-84 81t-56 105"})),ja=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M12 15V3m0 12l-4-4m4 4l4-4M2 17l.621 2.485A2 2 0 0 0 4.561 21h14.877a2 2 0 0 0 1.94-1.515L22 17"}));var Ma=(e=>(e.BLUE_01="#D3E8FA",e.BLUE_02="#4573D9",e.BLUE_03="#4573D9",e.BLUE_04="#4573D9",e.BLUE_05="#001A3D",e.GRAY_01="#F4F7FA",e.GRAY_02="#c8c7cc",e.GRAY_03="#808080",e.GRAY_04="#525252",e.GRAY_05="#2A2A2A",e.GRAY_06="#AEBFDE",e.GRAY_07="#DDE5F5",e.WHITE_01="#FFFFFF",e.BLACK_01="#000000",e.GREEN_01="#C4F2E8",e.GREEN_02="#00A582",e.ORANGE_01="#F9E1D7",e.ORANGE_02="#FF6B2C",e.RED_01="#FFEEEE",e.RED_02="#D72D40",e.YELLOW_01="#FFF1D8",e.YELLOW_02="#FFA300",e))(Ma||{});function hd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qr={exports:{}};var ms;function md(){return ms||(ms=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(s=o(s,r(i)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var i in s)t.call(s,i)&&s[i]&&(a=o(a,i));return a}function o(s,a){return a?s?s+" "+a:s+a:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(qr)),qr.exports}var pd=md();const M=hd(pd),gd="_block_idr7t_5",vd="_subtitle_idr7t_10",bd="_title_idr7t_17",Gr={block:gd,subtitle:vd,title:bd},_d=({id:e,title:t,subtitle:n,children:r,className:o})=>c.jsxs("div",{className:M(Gr.block,o),id:e,children:[t&&typeof t=="string"?c.jsx("div",{className:Gr.title,children:t}):t,n&&c.jsx("div",{className:Gr.subtitle,children:n}),r]});function ps(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ps(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ps(e[o],null)}}}}function qe(...e){return d.useCallback(Pn(...e),e)}var yd=Symbol.for("react.lazy"),mr=d[" use ".trim().toString()];function wd(e){return typeof e=="object"&&e!==null&&"then"in e}function Oa(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===yd&&"_payload"in e&&wd(e._payload)}function Da(e){const t=Cd(e),n=d.forwardRef((r,o)=>{let{children:s,...a}=r;Oa(s)&&typeof mr=="function"&&(s=mr(s._payload));const i=d.Children.toArray(s),l=i.find(Sd);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var xd=Da("Slot");function Cd(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(Oa(o)&&typeof mr=="function"&&(o=mr(o._payload)),d.isValidElement(o)){const a=Ed(o),i=Nd(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kd=Symbol("radix.slottable");function Sd(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kd}function Nd(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ed(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ra(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ra(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pa(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ra(e))&&(r&&(r+=" "),r+=t);return r}const gs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vs=Pa,Ta=(e,t)=>n=>{var r;if(t?.variants==null)return vs(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n?.[u],h=s?.[u];if(f===null)return null;const p=gs(f)||gs(h);return o[u][p]}),i=n&&Object.entries(n).reduce((u,f)=>{let[h,p]=f;return p===void 0||(u[h]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:h,className:p,...m}=f;return Object.entries(m).every(y=>{let[b,v]=y;return Array.isArray(v)?v.includes({...s,...i}[b]):{...s,...i}[b]===v})?[...u,h,p]:u},[]);return vs(e,a,l,n?.class,n?.className)},jd=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Md=(e,t)=>({classGroupId:e,validator:t}),Aa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),pr="-",bs=[],Od="arbitrary..",Dd=e=>{const t=Pd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Rd(a);const i=a.split(pr),l=i[0]===""&&i.length>1?1:0;return Ia(i,l,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const l=r[a],u=n[a];return l?u?jd(u,l):l:u||bs}return n[a]||bs}}},Ia=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=Ia(e,t+1,s);if(u)return u}const a=n.validators;if(a===null)return;const i=t===0?e.join(pr):e.slice(t).join(pr),l=a.length;for(let u=0;u<l;u++){const f=a[u];if(f.validator(i))return f.classGroupId}},Rd=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Od+r:void 0})(),Pd=e=>{const{theme:t,classGroups:n}=e;return Td(n,t)},Td=(e,t)=>{const n=Aa();for(const r in e){const o=e[r];Po(o,n,r,t)}return n},Po=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const a=e[s];Ad(a,t,n,r)}},Ad=(e,t,n,r)=>{if(typeof e=="string"){Id(e,t,n);return}if(typeof e=="function"){Ld(e,t,n,r);return}Wd(e,t,n,r)},Id=(e,t,n)=>{const r=e===""?t:La(t,e);r.classGroupId=n},Ld=(e,t,n,r)=>{if($d(e)){Po(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Md(n,e))},Wd=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let a=0;a<s;a++){const[i,l]=o[a];Po(l,La(t,i),n,r)}},La=(e,t)=>{let n=e;const r=t.split(pr),o=r.length;for(let s=0;s<o;s++){const a=r[s];let i=n.nextPart.get(a);i||(i=Aa(),n.nextPart.set(a,i)),n=i}return n},$d=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Fd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,a)=>{n[s]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return o(s,a),a},set(s,a){s in n?n[s]=a:o(s,a)}}},go="!",_s=":",Bd=[],ys=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),zd=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,l=0,u;const f=o.length;for(let b=0;b<f;b++){const v=o[b];if(a===0&&i===0){if(v===_s){s.push(o.slice(l,b)),l=b+1;continue}if(v==="/"){u=b;continue}}v==="["?a++:v==="]"?a--:v==="("?i++:v===")"&&i--}const h=s.length===0?o:o.slice(l);let p=h,m=!1;h.endsWith(go)?(p=h.slice(0,-1),m=!0):h.startsWith(go)&&(p=h.slice(1),m=!0);const y=u&&u>l?u-l:void 0;return ys(s,m,p,y)};if(t){const o=t+_s,s=r;r=a=>a.startsWith(o)?s(a.slice(o.length)):ys(Bd,!1,a,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Hd=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const a=n[s],i=a[0]==="[",l=t.has(a);i||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},Yd=e=>({cache:Fd(e.cacheSize),parseClassName:zd(e),sortModifiers:Hd(e),...Dd(e)}),Vd=/\s+/,qd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Vd);let l="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:h,modifiers:p,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:b}=n(f);if(h){l=f+(l.length>0?" "+l:l);continue}let v=!!b,_=r(v?y.substring(0,b):y);if(!_){if(!v){l=f+(l.length>0?" "+l:l);continue}if(_=r(y),!_){l=f+(l.length>0?" "+l:l);continue}v=!1}const w=p.length===0?"":p.length===1?p[0]:s(p).join(":"),x=m?w+go:w,k=x+_;if(a.indexOf(k)>-1)continue;a.push(k);const S=o(_,v);for(let C=0;C<S.length;++C){const N=S[C];a.push(x+N)}l=f+(l.length>0?" "+l:l)}return l},Gd=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Wa(n))&&(o&&(o+=" "),o+=r);return o},Wa=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wa(e[r]))&&(n&&(n+=" "),n+=t);return n},Ud=(e,...t)=>{let n,r,o,s;const a=l=>{const u=t.reduce((f,h)=>h(f),e());return n=Yd(u),r=n.cache.get,o=n.cache.set,s=i,i(l)},i=l=>{const u=r(l);if(u)return u;const f=qd(l,n);return o(l,f),f};return s=a,(...l)=>s(Gd(...l))},Zd=[],Ee=e=>{const t=n=>n[e]||Zd;return t.isThemeGetter=!0,t},$a=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Kd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qd=/\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$/,Jd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,St=e=>Xd.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),Nt=e=>!!e&&Number.isInteger(Number(e)),Ur=e=>e.endsWith("%")&&te(e.slice(0,-1)),gt=e=>Kd.test(e),Ba=()=>!0,nu=e=>Qd.test(e)&&!Jd.test(e),To=()=>!1,ru=e=>eu.test(e),ou=e=>tu.test(e),su=e=>!L(e)&&!F(e),au=e=>Pt(e,Ya,To),L=e=>$a.test(e),Wt=e=>Pt(e,Va,nu),ws=e=>Pt(e,mu,te),iu=e=>Pt(e,Ga,Ba),cu=e=>Pt(e,qa,To),xs=e=>Pt(e,za,To),lu=e=>Pt(e,Ha,ou),Xn=e=>Pt(e,Ua,ru),F=e=>Fa.test(e),pn=e=>Vt(e,Va),du=e=>Vt(e,qa),Cs=e=>Vt(e,za),uu=e=>Vt(e,Ya),fu=e=>Vt(e,Ha),Kn=e=>Vt(e,Ua,!0),hu=e=>Vt(e,Ga,!0),Pt=(e,t,n)=>{const r=$a.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vt=(e,t,n=!1)=>{const r=Fa.exec(e);return r?r[1]?t(r[1]):n:!1},za=e=>e==="position"||e==="percentage",Ha=e=>e==="image"||e==="url",Ya=e=>e==="length"||e==="size"||e==="bg-size",Va=e=>e==="length",mu=e=>e==="number",qa=e=>e==="family-name",Ga=e=>e==="number"||e==="weight",Ua=e=>e==="shadow",pu=()=>{const e=Ee("color"),t=Ee("font"),n=Ee("text"),r=Ee("font-weight"),o=Ee("tracking"),s=Ee("leading"),a=Ee("breakpoint"),i=Ee("container"),l=Ee("spacing"),u=Ee("radius"),f=Ee("shadow"),h=Ee("inset-shadow"),p=Ee("text-shadow"),m=Ee("drop-shadow"),y=Ee("blur"),b=Ee("perspective"),v=Ee("aspect"),_=Ee("ease"),w=Ee("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...k(),F,L],C=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],E=()=>[F,L,l],D=()=>[St,"full","auto",...E()],O=()=>[Nt,"none","subgrid",F,L],T=()=>["auto",{span:["full",Nt,F,L]},Nt,F,L],R=()=>[Nt,"auto",F,L],A=()=>["auto","min","max","fr",F,L],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...E()],q=()=>[St,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],W=()=>[St,"screen","full","dvw","lvw","svw","min","max","fit",...E()],G=()=>[St,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],j=()=>[e,F,L],K=()=>[...k(),Cs,xs,{position:[F,L]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",uu,au,{size:[F,L]}],ne=()=>[Ur,pn,Wt],ee=()=>["","none","full",u,F,L],re=()=>["",te,pn,Wt],fe=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[te,Ur,Cs,xs],$=()=>["","none",y,F,L],de=()=>["none",te,F,L],ke=()=>["none",te,F,L],Oe=()=>[te,F,L],ce=()=>[St,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gt],breakpoint:[gt],color:[Ba],container:[gt],"drop-shadow":[gt],ease:["in","out","in-out"],font:[su],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gt],shadow:[gt],spacing:["px",te],text:[gt],"text-shadow":[gt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",St,L,F,v]}],container:["container"],columns:[{columns:[te,L,F,i]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:S()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Nt,"auto",F,L]}],basis:[{basis:[St,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,St,"auto","initial","none",L]}],grow:[{grow:["",te,F,L]}],shrink:[{shrink:["",te,F,L]}],order:[{order:[Nt,"first","last","none",F,L]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...G()]}],"min-block-size":[{"min-block":["auto",...G()]}],"max-block-size":[{"max-block":["none",...G()]}],w:[{w:[i,"screen",...q()]}],"min-w":[{"min-w":[i,"screen","none",...q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,pn,Wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,hu,iu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ur,L]}],"font-family":[{font:[du,cu,t]}],"font-features":[{"font-features":[L]}],"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,F,L]}],"line-clamp":[{"line-clamp":[te,"none",F,ws]}],leading:[{leading:[s,...E()]}],"list-image":[{"list-image":["none",F,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",F,Wt]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[te,"auto",F,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,L]}],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",F,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nt,F,L],radial:["",F,L],conic:[Nt,F,L]},fu,lu]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"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-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":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:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,F,L]}],"outline-w":[{outline:["",te,pn,Wt]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",f,Kn,Xn]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",h,Kn,Xn]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[te,Wt]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",p,Kn,Xn]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[te,F,L]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"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":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[F,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,L]}],filter:[{filter:["","none",F,L]}],blur:[{blur:$()}],brightness:[{brightness:[te,F,L]}],contrast:[{contrast:[te,F,L]}],"drop-shadow":[{"drop-shadow":["","none",m,Kn,Xn]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",te,F,L]}],"hue-rotate":[{"hue-rotate":[te,F,L]}],invert:[{invert:["",te,F,L]}],saturate:[{saturate:[te,F,L]}],sepia:[{sepia:["",te,F,L]}],"backdrop-filter":[{"backdrop-filter":["","none",F,L]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[te,F,L]}],"backdrop-contrast":[{"backdrop-contrast":[te,F,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,F,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,F,L]}],"backdrop-invert":[{"backdrop-invert":["",te,F,L]}],"backdrop-opacity":[{"backdrop-opacity":[te,F,L]}],"backdrop-saturate":[{"backdrop-saturate":[te,F,L]}],"backdrop-sepia":[{"backdrop-sepia":["",te,F,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",F,L]}],ease:[{ease:["linear","initial",_,F,L]}],delay:[{delay:[te,F,L]}],animate:[{animate:["none",w,F,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,F,L]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:ke()}],"scale-x":[{"scale-x":ke()}],"scale-y":[{"scale-y":ke()}],"scale-z":[{"scale-z":ke()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[F,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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",F,L]}],"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":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",F,L]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[te,pn,Wt,ws]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gu=Ud(pu);function J(...e){return gu(Pa(e))}const vo=Ta("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Cr=d.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?xd:"button";return c.jsx(a,{className:J(vo({variant:t,size:n,className:e})),ref:s,...o})});Cr.displayName="Button";const vu="_cssloadSpeedingWheel_akex8_6",bu="_bigSize_akex8_20",_u="_smallSize_akex8_26",yu="_extraSmallSize_akex8_32",Qn={cssloadSpeedingWheel:vu,bigSize:bu,smallSize:_u,extraSmallSize:yu};function wu(e){return e==="medium"?"small":e==="large"?"big":e}const Ue=({marginTop:e,marginBottom:t,marginLeft:n,className:r,size:o="big"})=>{const s=g.useMemo(()=>({marginTop:e,marginBottom:t,marginLeft:n}),[t,n,e]),a=wu(o);return c.jsx("div",{className:r,style:s,children:c.jsx("div",{className:M(Qn.cssloadSpeedingWheel,{[Qn.bigSize]:a==="big",[Qn.smallSize]:a==="small",[Qn.extraSmallSize]:a==="extraSmall"})})})},xu="_button_sby7s_5",Cu="_button__loader_sby7s_190",ku="_button__content_sby7s_197",Gt={button:xu,"button--variant-primary":"_button--variant-primary_sby7s_30","button--variant-primary--disabled":"_button--variant-primary--disabled_sby7s_41","button--variant-default":"_button--variant-default_sby7s_49","button--variant-default--disabled":"_button--variant-default--disabled_sby7s_62","button--variant-secondary":"_button--variant-secondary_sby7s_70","button--variant-secondary--disabled":"_button--variant-secondary--disabled_sby7s_85","button--variant-text":"_button--variant-text_sby7s_93","button--variant-text--disabled":"_button--variant-text--disabled_sby7s_109","button--variant-link":"_button--variant-link_sby7s_117","button--variant-link--disabled":"_button--variant-link--disabled_sby7s_133","button--variant-danger":"_button--variant-danger_sby7s_141","button--variant-danger--disabled":"_button--variant-danger--disabled_sby7s_151","button--size-small":"_button--size-small_sby7s_159","button--size-medium":"_button--size-medium_sby7s_167","button--size-large":"_button--size-large_sby7s_175","button--loading":"_button--loading_sby7s_186",button__loader:Cu,button__content:ku},xe=g.forwardRef(({variant:e="default",size:t="medium",className:n="",loading:r=!1,disabled:o=!1,children:s,type:a="button",...i},l)=>{const u=M(Gt.button,Gt[`button--variant-${e}`],Gt[`button--size-${t}`],{[Gt["button--loading"]]:r,[Gt["button--disabled"]]:o},n);return c.jsxs(Cr,{ref:l,variant:null,size:null,className:u,disabled:o||r,type:a,...i,children:[s&&s,r&&c.jsx("span",{className:Gt.button__loader,children:c.jsx(Ue,{size:"extraSmall"})})]})});xe.displayName="Button";const Za=e=>{const[t,n]=g.useState(0),[r,o]=g.useState(0),s=g.useRef(null);return g.useEffect(()=>{if(!e)return;const i=new ResizeObserver(u=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{for(const f of u)if(f.borderBoxSize){const h=Array.isArray(f.borderBoxSize)?f.borderBoxSize[0]:f.borderBoxSize;n(h.blockSize),o(h.inlineSize)}else n(f.contentRect.height),o(f.contentRect.width)})});i.observe(e);const l=e.getBoundingClientRect().height;return n(l),()=>{i.disconnect()}},[e,n]),g.useMemo(()=>({height:t,width:r}),[t,r])},ks={capture:!0,passive:!0},Su=({triggerRef:e,dropdownHeight:t,offset:n=8,enabled:r=!0,onAnchorFrame:o})=>{const[s,a]=g.useState("bottom"),i=g.useRef(null),l=g.useCallback(()=>{if(!e.current)return"bottom";const f=e.current.getBoundingClientRect(),h=window.innerHeight,p=f.top-n;return h-f.bottom-n>=t?"bottom":p>=t?"top":"bottom"},[e,t,n]),u=g.useCallback(()=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{const f=l();a(f),o?.(f)})},[l,o]);return g.useEffect(()=>{if(!r)return;const f=e.current;if(!f)return;u();const h=new ResizeObserver(()=>{u()});h.observe(f);const p=new MutationObserver(()=>{u()});p.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]});const m=[];let y=f.parentElement;for(;y;){const b=window.getComputedStyle(y),v=b.overflow+b.overflowY+b.overflowX;/(auto|scroll)/.test(v)&&(m.push(y),y.addEventListener("scroll",u)),y=y.parentElement}return window.addEventListener("scroll",u,ks),window.addEventListener("resize",u),window.addEventListener("transitionend",u),window.addEventListener("animationend",u),()=>{i.current&&cancelAnimationFrame(i.current),h.disconnect(),p.disconnect(),window.removeEventListener("scroll",u,ks),window.removeEventListener("resize",u),window.removeEventListener("transitionend",u),window.removeEventListener("animationend",u),m.forEach(b=>{b.removeEventListener("scroll",u)})}},[r,e,u]),s},Nu="_container_1dkro_1",Eu="_activeButton_1dkro_16",ju="_slider_1dkro_22",Zr={container:Nu,activeButton:Eu,slider:ju},Mu=({options:e,value:t,defaultValue:n,data:r,activeButton:o,defaultActiveButton:s,onChange:a})=>{const i=g.useMemo(()=>e?.length?e.map(_=>({id:_.value,label:_.label,additionalComponent:_.additionalComponent})):r??[],[e,r]),[l,u]=g.useState(()=>n??s??i[0]?.id),[f,h]=g.useState({transform:"translateX(0)",width:0}),p=g.useRef(new Map),m=t??o??l,{width:y}=Za(p.current.get(m)),b=_=>{_.id!==m&&(a?.(_.id),u(_.id))},v=g.useCallback((_,w)=>{p.current.set(w,_)},[]);return g.useEffect(()=>{const _=i.findIndex(w=>w.id===m);if(_>=0){const x=i.slice(0,_).reduce((k,S)=>{const C=p.current.get(S.id);if(C){const N=C.getBoundingClientRect().width;k+=N}return k},0);h({transform:`translateX(${x}px)`,width:y})}},[m,y,i]),c.jsxs("div",{className:Zr.container,children:[i.map(_=>c.jsx("div",{ref:w=>v(w,_.id),children:c.jsxs(xe,{size:"small",onClick:()=>b(_),className:M({[Zr.activeButton]:_.id===m}),children:[_.label,_.additionalComponent]})},_.id)),c.jsx("div",{className:Zr.slider,style:f})]})},Ou="_card_7h565_5",Du="_link_7h565_21",Ss={card:Ou,link:Du},Ru=g.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:a,link:i})=>{const l=M(Ss.card,{[Ss.link]:i},r),u=g.useMemo(()=>({backgroundColor:o,...a&&{color:a},...t&&{width:t},...n&&{height:`${n}px`},...s&&{backgroundImage:`url(${s})`}}),[o,n,s,a,t]);return i?c.jsx("a",{className:l,style:u,href:i,children:c.jsx("span",{children:e})}):c.jsx("div",{className:l,style:u,children:c.jsx("span",{children:e})})}),Pu="_carouselWrapper_12142_1",Tu="_carousel_12142_1",Au="_viewport_12142_13",Iu="_slide_12142_19",Lu="_activeSlide_12142_24",Wu="_itemContent_12142_28",$u="_controls_12142_36",Fu="_carouselControl_12142_48",Bu="_prevIcon_12142_71",zu="_nextIcon_12142_72",Hu="_indicators_12142_90",Yu="_activeIndicator_12142_115",We={carouselWrapper:Pu,carousel:Tu,viewport:Au,slide:Iu,activeSlide:Lu,itemContent:Wu,controls:$u,carouselControl:Fu,prevIcon:Bu,nextIcon:zu,indicators:Hu,activeIndicator:Yu},Vu=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",qu=e=>Vu(e)?e.items.map((t,n)=>({key:`${t.id}-${n}`,content:e.renderItem(t),caption:t.caption})):g.Children.toArray(e.children).map((t,n)=>({key:g.isValidElement(t)&&t.key!==null&&t.key!==void 0&&t.key!=="."?String(t.key):`slide-${n}`,content:t})),Gu=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},Uu=e=>{const t=qu(e),n=t.length,r=Gu(e),{className:o,dark:s,enableTouch:a,fade:i,interval:l,keyboard:u=!0,pause:f,ride:h,slide:p,...m}=r,[y,b]=g.useState(0),v=()=>{b(C=>C===n-1?0:C+1)},_=()=>{b(C=>C===0?n-1:C-1)},w=C=>{b(C)},x=n>1,k=g.useMemo(()=>t.map(C=>({key:C.key})),[t]),S=C=>{m.onKeyDown?.(C),!(C.defaultPrevented||!u||!x)&&(C.key==="ArrowLeft"&&_(),C.key==="ArrowRight"&&v())};return n?x?c.jsx("div",{className:We.carouselWrapper,children:c.jsxs("div",{...m,className:[We.carousel,o].filter(Boolean).join(" "),onKeyDown:S,role:"region","aria-roledescription":"carousel",children:[c.jsx("div",{className:We.viewport,children:t.map((C,N)=>c.jsx("div",{className:[We.slide,N===y?We.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":N!==y,children:c.jsx("div",{className:We.itemContent,children:C.content})},C.key))}),c.jsxs("div",{className:We.controls,children:[c.jsx("button",{className:We.carouselControl,type:"button",onClick:_,"aria-label":"Previous slide",children:c.jsx("span",{className:We.prevIcon,"aria-hidden":"true"})}),c.jsx("div",{className:We.indicators,children:k.map((C,N)=>c.jsx("button",{className:N===y?We.activeIndicator:void 0,type:"button",onClick:()=>w(N),"aria-label":`Go to slide ${N+1}`,"aria-current":N===y},C.key))}),c.jsx("button",{className:We.carouselControl,type:"button",onClick:v,"aria-label":"Next slide",children:c.jsx("span",{className:We.nextIcon,"aria-hidden":"true"})})]})]})}):c.jsx("div",{className:We.carouselWrapper,children:t[0].content}):null},Fe=8;function Zu(e,t="top"){const{left:n,right:r,top:o,bottom:s,width:a,height:i}=e,l=n+a/2,u=o+i/2;switch(t){case"top":return{left:l,top:o-Fe,transform:"translate(-50%, -100%)"};case"topLeft":return{left:n,top:o-Fe,transform:"translateY(-100%)"};case"topRight":return{left:r,top:o-Fe,transform:"translate(-100%, -100%)"};case"bottom":return{left:l,top:s+Fe,transform:"translate(-50%, 0)"};case"bottomLeft":return{left:n,top:s+Fe,transform:"translateY(0)"};case"bottomRight":return{left:r,top:s+Fe,transform:"translate(-100%, 0)"};case"left":return{left:n-Fe,top:u,transform:"translate(-100%, -50%)"};case"leftTop":return{left:n-Fe,top:o,transform:"translate(-100%, 0)"};case"leftBottom":return{left:n-Fe,top:s,transform:"translate(-100%, -100%)"};case"right":return{left:r+Fe,top:u,transform:"translate(0, -50%)"};case"rightTop":return{left:r+Fe,top:o,transform:"translate(0, 0)"};case"rightBottom":return{left:r+Fe,top:s,transform:"translate(0, -100%)"};default:return{left:l,top:o-Fe,transform:"translate(-50%, -100%)"}}}const Xu="_overlay_1pnex_1",Ku="_fadeIn_1pnex_1",Qu="_arrow_1pnex_16",Ju="_top_1pnex_22",ef="_bottom_1pnex_28",tf="_left_1pnex_34",nf="_right_1pnex_40",Xr={overlay:Xu,fadeIn:Ku,arrow:Qu,top:Ju,bottom:ef,left:tf,right:nf};function rf(e){return e.startsWith("top")?"bottom":e.startsWith("bottom")?"top":e.startsWith("left")?"right":e.startsWith("right")?"left":"top"}const kr=g.memo(({title:e,content:t,open:n,defaultOpen:r=!1,trigger:o="hover",mouseEnterDelay:s=100,mouseLeaveDelay:a=100,onOpenChange:i,placement:l="top",arrow:u=!0,children:f,overlayClassName:h,getPopupContainer:p=()=>document.body})=>{const m=n!==void 0,[y,b]=g.useState(r),v=m?n:y,_=g.useCallback(j=>{m||b(j),i?.(j)},[m,i]),w=g.useRef(null),[x,k]=g.useState(null),S=g.useRef(null),C=g.useRef(null),N=Array.isArray(o)?o:[o],E=N.includes("hover"),D=N.includes("click"),O=g.useCallback(()=>{S.current&&(clearTimeout(S.current),S.current=null)},[]),T=g.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null)},[]),R=g.useCallback(()=>{E&&(T(),S.current=setTimeout(()=>_(!0),s))},[E,s,_,T]),A=g.useCallback(()=>{E&&(O(),C.current=setTimeout(()=>_(!1),a))},[E,a,_,O]),I=g.useCallback(j=>{D&&(j.preventDefault(),_(!v))},[D,v,_]);g.useEffect(()=>{if(!D||!v||m)return;const j=K=>{const ve=w.current;ve&&!ve.contains(K.target)&&_(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[D,v,m,_]),g.useLayoutEffect(()=>{if(!v||!w.current){k(null);return}const j=w.current.getBoundingClientRect();k(Zu(j,l))},[v,l]),g.useEffect(()=>()=>{O(),T()},[O,T]);const X=typeof document<"u"?p():null,P=rf(l),q=e??t,W=v&&q!=null&&q!==""&&x&&X&&Rn.createPortal(c.jsxs("span",{className:M(Xr.overlay,h),style:{left:x.left,top:x.top,transform:x.transform},role:"tooltip",children:[q,u&&c.jsx("span",{className:M(Xr.arrow,Xr[P])})]}),X),G=!m&&(E||D)?{onMouseEnter:R,onMouseLeave:A,onClick:D?I:void 0}:{};return c.jsxs(c.Fragment,{children:[c.jsx("span",{ref:w,...G,children:f}),W]})});kr.displayName="TooltipDark";const of="_wrapper_15kio_5",sf="_trigger_15kio_9",af="_trigger_iconOnly_15kio_36",cf="_icon_15kio_47",Jn={wrapper:of,trigger:sf,trigger_iconOnly:af,icon:cf},Ao=g.memo(({children:e,onClick:t,copied:n,tooltipText:r="Скопировано",ariaLabel:o,showIcon:s=!0,iconOnly:a=!1,className:i})=>{const l=g.useCallback(()=>{t()},[t]);return c.jsx("span",{className:Jn.wrapper,children:c.jsx(kr,{open:n,title:r,placement:"top",children:c.jsxs(Cr,{type:"button",variant:null,size:null,className:M(Jn.trigger,a&&Jn.trigger_iconOnly,i),onClick:l,"aria-label":o,"aria-live":"polite",children:[!a&&e,s&&c.jsx(ka,{className:Jn.icon,"aria-hidden":!0})]})})})});Ao.displayName="CopyTextTrigger";function Xa(e){return typeof document>"u"?null:Rn.createPortal(e,document.body)}function je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function lf(e,t){const n=d.createContext(t),r=s=>{const{children:a,...i}=s,l=d.useMemo(()=>i,Object.values(i));return c.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(s){const a=d.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Sr(e,t=[]){let n=[];function r(s,a){const i=d.createContext(a),l=n.length;n=[...n,a];const u=h=>{const{scope:p,children:m,...y}=h,b=p?.[e]?.[l]||i,v=d.useMemo(()=>y,Object.values(y));return c.jsx(b.Provider,{value:v,children:m})};u.displayName=s+"Provider";function f(h,p){const m=p?.[e]?.[l]||i,y=d.useContext(m);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>d.createContext(a));return function(i){const l=i?.[e]||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,df(o,...t)]}function df(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:u})=>{const h=l(s)[`__scope${u}`];return{...i,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function uf(e){const t=ff(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(mf);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ff(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=gf(o),i=pf(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hf=Symbol("radix.slottable");function mf(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hf}function pf(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function gf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=vf.reduce((e,t)=>{const n=uf(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function bf(e,t){e&&_a.flushSync(()=>e.dispatchEvent(t))}function rn(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function _f(e,t=globalThis?.document){const n=rn(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var yf="DismissableLayer",bo="dismissableLayer.update",wf="dismissableLayer.pointerDownOutside",xf="dismissableLayer.focusOutside",Ns,Ka=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=e,u=d.useContext(Ka),[f,h]=d.useState(null),p=f?.ownerDocument??globalThis?.document,[,m]=d.useState({}),y=qe(t,N=>h(N)),b=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),_=b.indexOf(v),w=f?b.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,k=w>=_,S=Sf(N=>{const E=N.target,D=[...u.branches].some(O=>O.contains(E));!k||D||(o?.(N),a?.(N),N.defaultPrevented||i?.())},p),C=Nf(N=>{const E=N.target;[...u.branches].some(O=>O.contains(E))||(s?.(N),a?.(N),N.defaultPrevented||i?.())},p);return _f(N=>{w===u.layers.size-1&&(r?.(N),!N.defaultPrevented&&i&&(N.preventDefault(),i()))},p),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ns=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Es(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ns)}},[f,p,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Es())},[f,u]),d.useEffect(()=>{const N=()=>m({});return document.addEventListener(bo,N),()=>document.removeEventListener(bo,N)},[]),c.jsx(Ie.div,{...l,ref:y,style:{pointerEvents:x?k?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,C.onFocusCapture),onBlurCapture:je(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,S.onPointerDownCapture)})});Nr.displayName=yf;var Cf="DismissableLayerBranch",kf=d.forwardRef((e,t)=>{const n=d.useContext(Ka),r=d.useRef(null),o=qe(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(Ie.div,{...e,ref:o})});kf.displayName=Cf;function Sf(e,t=globalThis?.document){const n=rn(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let l=function(){Qa(wf,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Nf(e,t=globalThis?.document){const n=rn(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&Qa(xf,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Es(){const e=new CustomEvent(bo);document.dispatchEvent(e)}function Qa(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bf(o,s):o.dispatchEvent(s)}var Ot=globalThis?.document?d.useLayoutEffect:()=>{},Ef=d[" useId ".trim().toString()]||(()=>{}),jf=0;function Sn(e){const[t,n]=d.useState(Ef());return Ot(()=>{n(r=>r??String(jf++))},[e]),e||(t?`radix-${t}`:"")}const Mf=["top","right","bottom","left"],Dt=Math.min,He=Math.max,gr=Math.round,er=Math.floor,lt=e=>({x:e,y:e}),Of={left:"right",right:"left",bottom:"top",top:"bottom"};function _o(e,t,n){return He(e,Dt(t,n))}function wt(e,t){return typeof e=="function"?e(t):e}function xt(e){return e.split("-")[0]}function ln(e){return e.split("-")[1]}function Io(e){return e==="x"?"y":"x"}function Lo(e){return e==="y"?"height":"width"}function at(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Wo(e){return Io(at(e))}function Df(e,t,n){n===void 0&&(n=!1);const r=ln(e),o=Wo(e),s=Lo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=vr(a)),[a,vr(a)]}function Rf(e){const t=vr(e);return[yo(e),t,yo(t)]}function yo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const js=["left","right"],Ms=["right","left"],Pf=["top","bottom"],Tf=["bottom","top"];function Af(e,t,n){switch(e){case"top":case"bottom":return n?t?Ms:js:t?js:Ms;case"left":case"right":return t?Pf:Tf;default:return[]}}function If(e,t,n,r){const o=ln(e);let s=Af(xt(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(yo)))),s}function vr(e){const t=xt(e);return Of[t]+e.slice(t.length)}function Lf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ja(e){return typeof e!="number"?Lf(e):{top:e,right:e,bottom:e,left:e}}function br(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Os(e,t,n){let{reference:r,floating:o}=e;const s=at(t),a=Wo(t),i=Lo(a),l=xt(t),u=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let m;switch(l){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(ln(t)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}async function Wf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=wt(t,e),y=Ja(m),v=i[p?h==="floating"?"reference":"floating":h],_=br(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:l})),w=h==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),k=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},S=br(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:x,strategy:l}):w);return{top:(_.top-S.top+y.top)/k.y,bottom:(S.bottom-_.bottom+y.bottom)/k.y,left:(_.left-S.left+y.left)/k.x,right:(S.right-_.right+y.right)/k.x}}const $f=50,Ff=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:Wf},l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=Os(u,r,l),p=r,m=0;const y={};for(let b=0;b<s.length;b++){const v=s[b];if(!v)continue;const{name:_,fn:w}=v,{x,y:k,data:S,reset:C}=await w({x:f,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:y,rects:u,platform:i,elements:{reference:e,floating:t}});f=x??f,h=k??h,y[_]={...y[_],...S},C&&m<$f&&(m++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:h}=Os(u,p,l)),b=-1)}return{x:f,y:h,placement:p,strategy:o,middlewareData:y}},Bf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:u,padding:f=0}=wt(e,t)||{};if(u==null)return{};const h=Ja(f),p={x:n,y:r},m=Wo(o),y=Lo(m),b=await a.getDimensions(u),v=m==="y",_=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",k=s.reference[y]+s.reference[m]-p[m]-s.floating[y],S=p[m]-s.reference[m],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let N=C?C[x]:0;(!N||!await(a.isElement==null?void 0:a.isElement(C)))&&(N=i.floating[x]||s.floating[y]);const E=k/2-S/2,D=N/2-b[y]/2-1,O=Dt(h[_],D),T=Dt(h[w],D),R=O,A=N-b[y]-T,I=N/2-b[y]/2+E,X=_o(R,I,A),P=!l.arrow&&ln(o)!=null&&I!==X&&s.reference[y]/2-(I<R?O:T)-b[y]/2<0,q=P?I<R?I-R:I-A:0;return{[m]:p[m]+q,data:{[m]:X,centerOffset:I-X-q,...P&&{alignmentOffset:q}},reset:P}}}),zf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...v}=wt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=xt(o),w=at(i),x=xt(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=p||(x||!b?[vr(i)]:Rf(i)),C=y!=="none";!p&&C&&S.push(...If(i,b,y,k));const N=[i,...S],E=await l.detectOverflow(t,v),D=[];let O=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(E[_]),h){const I=Df(o,a,k);D.push(E[I[0]],E[I[1]])}if(O=[...O,{placement:o,overflows:D}],!D.every(I=>I<=0)){var T,R;const I=(((T=s.flip)==null?void 0:T.index)||0)+1,X=N[I];if(X&&(!(h==="alignment"?w!==at(X):!1)||O.every(W=>at(W.placement)===w?W.overflows[0]>0:!0)))return{data:{index:I,overflows:O},reset:{placement:X}};let P=(R=O.filter(q=>q.overflows[0]<=0).sort((q,W)=>q.overflows[1]-W.overflows[1])[0])==null?void 0:R.placement;if(!P)switch(m){case"bestFit":{var A;const q=(A=O.filter(W=>{if(C){const G=at(W.placement);return G===w||G==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(G=>G>0).reduce((G,j)=>G+j,0)]).sort((W,G)=>W[1]-G[1])[0])==null?void 0:A[0];q&&(P=q);break}case"initialPlacement":P=i;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function Ds(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rs(e){return Mf.some(t=>e[t]>=0)}const Hf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=wt(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),i=Ds(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Rs(i)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),i=Ds(a,n.floating);return{data:{escapedOffsets:i,escaped:Rs(i)}}}default:return{}}}}},ei=new Set(["left","top"]);async function Yf(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=xt(n),i=ln(n),l=at(n)==="y",u=ei.has(a)?-1:1,f=s&&l?-1:1,h=wt(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return i&&typeof y=="number"&&(m=i==="end"?y*-1:y),l?{x:m*f,y:p*u}:{x:p*u,y:m*f}}const Vf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await Yf(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},qf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:_=>{let{x:w,y:x}=_;return{x:w,y:x}}},...u}=wt(e,t),f={x:n,y:r},h=await s.detectOverflow(t,u),p=at(xt(o)),m=Io(p);let y=f[m],b=f[p];if(a){const _=m==="y"?"top":"left",w=m==="y"?"bottom":"right",x=y+h[_],k=y-h[w];y=_o(x,y,k)}if(i){const _=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=b+h[_],k=b-h[w];b=_o(x,b,k)}const v=l.fn({...t,[m]:y,[p]:b});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:a,[p]:i}}}}}},Gf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:u=!0}=wt(e,t),f={x:n,y:r},h=at(o),p=Io(h);let m=f[p],y=f[h];const b=wt(i,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const x=p==="y"?"height":"width",k=s.reference[p]-s.floating[x]+v.mainAxis,S=s.reference[p]+s.reference[x]-v.mainAxis;m<k?m=k:m>S&&(m=S)}if(u){var _,w;const x=p==="y"?"width":"height",k=ei.has(xt(o)),S=s.reference[h]-s.floating[x]+(k&&((_=a.offset)==null?void 0:_[h])||0)+(k?0:v.crossAxis),C=s.reference[h]+s.reference[x]+(k?0:((w=a.offset)==null?void 0:w[h])||0)-(k?v.crossAxis:0);y<S?y=S:y>C&&(y=C)}return{[p]:m,[h]:y}}}},Uf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...u}=wt(e,t),f=await a.detectOverflow(t,u),h=xt(o),p=ln(o),m=at(o)==="y",{width:y,height:b}=s.floating;let v,_;h==="top"||h==="bottom"?(v=h,_=p===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(_=h,v=p==="end"?"top":"bottom");const w=b-f.top-f.bottom,x=y-f.left-f.right,k=Dt(b-f[v],w),S=Dt(y-f[_],x),C=!t.middlewareData.shift;let N=k,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=w),C&&!p){const O=He(f.left,0),T=He(f.right,0),R=He(f.top,0),A=He(f.bottom,0);m?E=y-2*(O!==0||T!==0?O+T:He(f.left,f.right)):N=b-2*(R!==0||A!==0?R+A:He(f.top,f.bottom))}await l({...t,availableWidth:E,availableHeight:N});const D=await a.getDimensions(i.floating);return y!==D.width||b!==D.height?{reset:{rects:!0}}:{}}}};function Er(){return typeof window<"u"}function dn(e){return ti(e)?(e.nodeName||"").toLowerCase():"#document"}function Ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(ti(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ti(e){return Er()?e instanceof Node||e instanceof Ye(e).Node:!1}function Ae(e){return Er()?e instanceof Element||e instanceof Ye(e).Element:!1}function kt(e){return Er()?e instanceof HTMLElement||e instanceof Ye(e).HTMLElement:!1}function Ps(e){return!Er()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ye(e).ShadowRoot}function Tn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Zf(e){return/^(table|td|th)$/.test(dn(e))}function jr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Xf=/transform|translate|scale|rotate|perspective|filter/,Kf=/paint|layout|strict|content/,$t=e=>!!e&&e!=="none";let Kr;function $o(e){const t=Ae(e)?et(e):e;return $t(t.transform)||$t(t.translate)||$t(t.scale)||$t(t.rotate)||$t(t.perspective)||!Fo()&&($t(t.backdropFilter)||$t(t.filter))||Xf.test(t.willChange||"")||Kf.test(t.contain||"")}function Qf(e){let t=Rt(e);for(;kt(t)&&!on(t);){if($o(t))return t;if(jr(t))return null;t=Rt(t)}return null}function Fo(){return Kr==null&&(Kr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kr}function on(e){return/^(html|body|#document)$/.test(dn(e))}function et(e){return Ye(e).getComputedStyle(e)}function Mr(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if(dn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ps(e)&&e.host||ut(e);return Ps(t)?t.host:t}function ni(e){const t=Rt(e);return on(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&Tn(t)?t:ni(t)}function Nn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ni(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Ye(o);if(s){const i=wo(a);return t.concat(a,a.visualViewport||[],Tn(o)?o:[],i&&n?Nn(i):[])}else return t.concat(o,Nn(o,[],n))}function wo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ri(e){const t=et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kt(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=gr(n)!==s||gr(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Bo(e){return Ae(e)?e:e.contextElement}function en(e){const t=Bo(e);if(!kt(t))return lt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ri(t);let a=(s?gr(n.width):n.width)/r,i=(s?gr(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Jf=lt(0);function oi(e){const t=Ye(e);return!Fo()||!t.visualViewport?Jf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function e1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ye(e)?!1:t}function Ht(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Bo(e);let a=lt(1);t&&(r?Ae(r)&&(a=en(r)):a=en(e));const i=e1(s,n,r)?oi(s):lt(0);let l=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,h=o.height/a.y;if(s){const p=Ye(s),m=r&&Ae(r)?Ye(r):r;let y=p,b=wo(y);for(;b&&r&&m!==y;){const v=en(b),_=b.getBoundingClientRect(),w=et(b),x=_.left+(b.clientLeft+parseFloat(w.paddingLeft))*v.x,k=_.top+(b.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,u*=v.y,f*=v.x,h*=v.y,l+=x,u+=k,y=Ye(b),b=wo(y)}}return br({width:f,height:h,x:l,y:u})}function Or(e,t){const n=Mr(e).scrollLeft;return t?t.left+n:Ht(ut(e)).left+n}function si(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Or(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function t1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=ut(r),i=t?jr(t.floating):!1;if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},u=lt(1);const f=lt(0),h=kt(r);if((h||!h&&!s)&&((dn(r)!=="body"||Tn(a))&&(l=Mr(r)),h)){const m=Ht(r);u=en(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const p=a&&!h&&!s?si(a,l):lt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function n1(e){return Array.from(e.getClientRects())}function r1(e){const t=ut(e),n=Mr(e),r=e.ownerDocument.body,o=He(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=He(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Or(e);const i=-n.scrollTop;return et(r).direction==="rtl"&&(a+=He(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Ts=25;function o1(e,t){const n=Ye(e),r=ut(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const f=Fo();(!f||f&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const u=Or(r);if(u<=0){const f=r.ownerDocument,h=f.body,p=getComputedStyle(h),m=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(r.clientWidth-h.clientWidth-m);y<=Ts&&(s-=y)}else u<=Ts&&(s+=u);return{width:s,height:a,x:i,y:l}}function s1(e,t){const n=Ht(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=kt(e)?en(e):lt(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:a,height:i,x:l,y:u}}function As(e,t,n){let r;if(t==="viewport")r=o1(e,n);else if(t==="document")r=r1(ut(e));else if(Ae(t))r=s1(t,n);else{const o=oi(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return br(r)}function ai(e,t){const n=Rt(e);return n===t||!Ae(n)||on(n)?!1:et(n).position==="fixed"||ai(n,t)}function a1(e,t){const n=t.get(e);if(n)return n;let r=Nn(e,[],!1).filter(i=>Ae(i)&&dn(i)!=="body"),o=null;const s=et(e).position==="fixed";let a=s?Rt(e):e;for(;Ae(a)&&!on(a);){const i=et(a),l=$o(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Tn(a)&&!l&&ai(e,a))?r=r.filter(f=>f!==a):o=i,a=Rt(a)}return t.set(e,r),r}function i1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?jr(t)?[]:a1(t,this._c):[].concat(n),r],i=As(t,a[0],o);let l=i.top,u=i.right,f=i.bottom,h=i.left;for(let p=1;p<a.length;p++){const m=As(t,a[p],o);l=He(m.top,l),u=Dt(m.right,u),f=Dt(m.bottom,f),h=He(m.left,h)}return{width:u-h,height:f-l,x:h,y:l}}function c1(e){const{width:t,height:n}=ri(e);return{width:t,height:n}}function l1(e,t,n){const r=kt(t),o=ut(t),s=n==="fixed",a=Ht(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=lt(0);function u(){l.x=Or(o)}if(r||!r&&!s)if((dn(t)!=="body"||Tn(o))&&(i=Mr(t)),r){const m=Ht(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?si(o,i):lt(0),h=a.left+i.scrollLeft-l.x-f.x,p=a.top+i.scrollTop-l.y-f.y;return{x:h,y:p,width:a.width,height:a.height}}function Qr(e){return et(e).position==="static"}function Is(e,t){if(!kt(e)||et(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function ii(e,t){const n=Ye(e);if(jr(e))return n;if(!kt(e)){let o=Rt(e);for(;o&&!on(o);){if(Ae(o)&&!Qr(o))return o;o=Rt(o)}return n}let r=Is(e,t);for(;r&&Zf(r)&&Qr(r);)r=Is(r,t);return r&&on(r)&&Qr(r)&&!$o(r)?n:r||Qf(e)||n}const d1=async function(e){const t=this.getOffsetParent||ii,n=this.getDimensions,r=await n(e.floating);return{reference:l1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function u1(e){return et(e).direction==="rtl"}const f1={convertOffsetParentRelativeRectToViewportRelativeRect:t1,getDocumentElement:ut,getClippingRect:i1,getOffsetParent:ii,getElementRects:d1,getClientRects:n1,getDimensions:c1,getScale:en,isElement:Ae,isRTL:u1};function ci(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function h1(e,t){let n=null,r;const o=ut(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:f,top:h,width:p,height:m}=u;if(i||t(),!p||!m)return;const y=er(h),b=er(o.clientWidth-(f+p)),v=er(o.clientHeight-(h+m)),_=er(f),x={rootMargin:-y+"px "+-b+"px "+-v+"px "+-_+"px",threshold:He(0,Dt(1,l))||1};let k=!0;function S(C){const N=C[0].intersectionRatio;if(N!==l){if(!k)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!ci(u,e.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return a(!0),s}function li(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Bo(e),f=o||s?[...u?Nn(u):[],...t?Nn(t):[]]:[];f.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const h=u&&i?h1(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(_=>{let[w]=_;w&&w.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),u&&!l&&m.observe(u),t&&m.observe(t));let y,b=l?Ht(e):null;l&&v();function v(){const _=Ht(e);b&&!ci(b,_)&&n(),b=_,y=requestAnimationFrame(v)}return n(),()=>{var _;f.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),h?.(),(_=m)==null||_.disconnect(),m=null,l&&cancelAnimationFrame(y)}}const m1=Vf,p1=qf,g1=zf,v1=Uf,b1=Hf,Ls=Bf,_1=Gf,y1=(e,t,n)=>{const r=new Map,o={platform:f1,...n},s={...o.platform,_c:r};return Ff(e,t,{...o,platform:s})};var w1=typeof document<"u",x1=function(){},ur=w1?g.useLayoutEffect:x1;function _r(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_r(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!_r(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function di(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ws(e,t){const n=di(e);return Math.round(t*n)/n}function Jr(e){const t=d.useRef(e);return ur(()=>{t.current=e}),t}function ui(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[f,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=d.useState(r);_r(p,r)||m(r);const[y,b]=d.useState(null),[v,_]=d.useState(null),w=d.useCallback(W=>{W!==C.current&&(C.current=W,b(W))},[]),x=d.useCallback(W=>{W!==N.current&&(N.current=W,_(W))},[]),k=s||y,S=a||v,C=d.useRef(null),N=d.useRef(null),E=d.useRef(f),D=l!=null,O=Jr(l),T=Jr(o),R=Jr(u),A=d.useCallback(()=>{if(!C.current||!N.current)return;const W={placement:t,strategy:n,middleware:p};T.current&&(W.platform=T.current),y1(C.current,N.current,W).then(G=>{const j={...G,isPositioned:R.current!==!1};I.current&&!_r(E.current,j)&&(E.current=j,_a.flushSync(()=>{h(j)}))})},[p,t,n,T,R]);ur(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,h(W=>({...W,isPositioned:!1})))},[u]);const I=d.useRef(!1);ur(()=>(I.current=!0,()=>{I.current=!1}),[]),ur(()=>{if(k&&(C.current=k),S&&(N.current=S),k&&S){if(O.current)return O.current(k,S,A);A()}},[k,S,A,O,D]);const X=d.useMemo(()=>({reference:C,floating:N,setReference:w,setFloating:x}),[w,x]),P=d.useMemo(()=>({reference:k,floating:S}),[k,S]),q=d.useMemo(()=>{const W={position:n,left:0,top:0};if(!P.floating)return W;const G=Ws(P.floating,f.x),j=Ws(P.floating,f.y);return i?{...W,transform:"translate("+G+"px, "+j+"px)",...di(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:j}},[n,i,P.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:A,refs:X,elements:P,floatingStyles:q}),[f,A,X,P,q])}const C1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ls({element:r.current,padding:o}).fn(n):{}:r?Ls({element:r,padding:o}).fn(n):{}}}},fi=(e,t)=>{const n=m1(e);return{name:n.name,fn:n.fn,options:[e,t]}},k1=(e,t)=>{const n=p1(e);return{name:n.name,fn:n.fn,options:[e,t]}},S1=(e,t)=>({fn:_1(e).fn,options:[e,t]}),hi=(e,t)=>{const n=g1(e);return{name:n.name,fn:n.fn,options:[e,t]}},mi=(e,t)=>{const n=v1(e);return{name:n.name,fn:n.fn,options:[e,t]}},N1=(e,t)=>{const n=b1(e);return{name:n.name,fn:n.fn,options:[e,t]}},E1=(e,t)=>{const n=C1(e);return{name:n.name,fn:n.fn,options:[e,t]}};var j1="Arrow",pi=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(Ie.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});pi.displayName=j1;var M1=pi;function O1(e){const[t,n]=d.useState(void 0);return Ot(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var zo="Popper",[gi,Dr]=Sr(zo),[D1,vi]=gi(zo),bi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return c.jsx(D1,{scope:t,anchor:r,onAnchorChange:o,children:n})};bi.displayName=zo;var _i="PopperAnchor",yi=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=vi(_i,n),a=d.useRef(null),i=qe(t,a),l=d.useRef(null);return d.useEffect(()=>{const u=l.current;l.current=r?.current||a.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:c.jsx(Ie.div,{...o,ref:i})});yi.displayName=_i;var Ho="PopperContent",[R1,P1]=gi(Ho),wi=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:y,...b}=e,v=vi(Ho,n),[_,w]=d.useState(null),x=qe(t,fe=>w(fe)),[k,S]=d.useState(null),C=O1(k),N=C?.width??0,E=C?.height??0,D=r+(s!=="center"?"-"+s:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},T=Array.isArray(u)?u:[u],R=T.length>0,A={padding:O,boundary:T.filter(A1),altBoundary:R},{refs:I,floatingStyles:X,placement:P,isPositioned:q,middlewareData:W}=ui({strategy:"fixed",placement:D,whileElementsMounted:(...fe)=>li(...fe,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[fi({mainAxis:o+E,alignmentAxis:a}),l&&k1({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?S1():void 0,...A}),l&&hi({...A}),mi({...A,apply:({elements:fe,rects:Me,availableWidth:se,availableHeight:$})=>{const{width:de,height:ke}=Me.reference,Oe=fe.floating.style;Oe.setProperty("--radix-popper-available-width",`${se}px`),Oe.setProperty("--radix-popper-available-height",`${$}px`),Oe.setProperty("--radix-popper-anchor-width",`${de}px`),Oe.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),k&&E1({element:k,padding:i}),I1({arrowWidth:N,arrowHeight:E}),p&&N1({strategy:"referenceHidden",...A})]}),[G,j]=ki(P),K=rn(y);Ot(()=>{q&&K?.()},[q,K]);const ve=W.arrow?.x,V=W.arrow?.y,ne=W.arrow?.centerOffset!==0,[ee,re]=d.useState();return Ot(()=>{_&&re(window.getComputedStyle(_).zIndex)},[_]),c.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(R1,{scope:n,placedSide:G,onArrowChange:S,arrowX:ve,arrowY:V,shouldHideArrow:ne,children:c.jsx(Ie.div,{"data-side":G,"data-align":j,...b,ref:x,style:{...b.style,animation:q?void 0:"none"}})})})});wi.displayName=Ho;var xi="PopperArrow",T1={top:"bottom",right:"left",bottom:"top",left:"right"},Ci=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=P1(xi,r),a=T1[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(M1,{...o,ref:n,style:{...o.style,display:"block"}})})});Ci.displayName=xi;function A1(e){return e!==null}var I1=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,f]=ki(n),h={start:"0%",center:"50%",end:"100%"}[f],p=(o.arrow?.x??0)+i/2,m=(o.arrow?.y??0)+l/2;let y="",b="";return u==="bottom"?(y=a?h:`${p}px`,b=`${-l}px`):u==="top"?(y=a?h:`${p}px`,b=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,b=a?h:`${m}px`):u==="left"&&(y=`${r.floating.width+l}px`,b=a?h:`${m}px`),{data:{x:y,y:b}}}});function ki(e){const[t,n="center"]=e.split("-");return[t,n]}var Si=bi,Yo=yi,Ni=wi,Ei=Ci,L1="Portal",Rr=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=d.useState(!1);Ot(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?Rn.createPortal(c.jsx(Ie.div,{...r,ref:t}),a):null});Rr.displayName=L1;function W1(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Tt=e=>{const{present:t,children:n}=e,r=$1(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=qe(r.ref,F1(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};Tt.displayName="Presence";function $1(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),a=e?"mounted":"unmounted",[i,l]=W1(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=tr(r.current);s.current=i==="mounted"?u:"none"},[i]),Ot(()=>{const u=r.current,f=o.current;if(f!==e){const p=s.current,m=tr(u);e?l("MOUNT"):m==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ot(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=m=>{const b=tr(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&b&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=m=>{m.target===t&&(s.current=tr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function tr(e){return e?.animationName||"none"}function F1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var B1=Symbol("radix.slottable");function z1(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=B1,t}var H1=d[" useInsertionEffect ".trim().toString()]||Ot;function Vo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=Y1({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const h=f.current;h!==i&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const u=d.useCallback(f=>{if(i){const h=V1(f)?f(e):f;h!==e&&a.current?.(h)}else s(f)},[i,e,s,a]);return[l,u]}function Y1({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return H1(()=>{s.current=t},[t]),d.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function V1(e){return typeof e=="function"}var q1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),G1="VisuallyHidden",ji=d.forwardRef((e,t)=>c.jsx(Ie.span,{...e,ref:t,style:{...q1,...e.style}}));ji.displayName=G1;var U1=ji,[Pr]=Sr("Tooltip",[Dr]),Tr=Dr(),Mi="TooltipProvider",Z1=700,xo="tooltip.open",[X1,qo]=Pr(Mi),Oi=e=>{const{__scopeTooltip:t,delayDuration:n=Z1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=d.useRef(!0),i=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(X1,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:s})};Oi.displayName=Mi;var En="Tooltip",[K1,An]=Pr(En),Di=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,l=qo(En,e.__scopeTooltip),u=Tr(t),[f,h]=d.useState(null),p=Sn(),m=d.useRef(0),y=a??l.disableHoverableContent,b=i??l.delayDuration,v=d.useRef(!1),[_,w]=Vo({prop:r,defaultProp:o??!1,onChange:N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(xo))):l.onClose(),s?.(N)},caller:En}),x=d.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),k=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,w(!0)},[w]),S=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w(!1)},[w]),C=d.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,w(!0),m.current=0},b)},[b,w]);return d.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),c.jsx(Si,{...u,children:c.jsx(K1,{scope:t,contentId:p,open:_,stateAttribute:x,trigger:f,onTriggerChange:h,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?C():k()},[l.isOpenDelayedRef,C,k]),onTriggerLeave:d.useCallback(()=>{y?S():(window.clearTimeout(m.current),m.current=0)},[S,y]),onOpen:k,onClose:S,disableHoverableContent:y,children:n})})};Di.displayName=En;var Co="TooltipTrigger",Ri=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=An(Co,n),s=qo(Co,n),a=Tr(n),i=d.useRef(null),l=qe(t,i,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),h=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(Yo,{asChild:!0,...a,children:c.jsx(Ie.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:je(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:je(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:je(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:je(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:je(e.onBlur,o.onClose),onClick:je(e.onClick,o.onClose)})})});Ri.displayName=Co;var Go="TooltipPortal",[Q1,J1]=Pr(Go,{forceMount:void 0}),Pi=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=An(Go,t);return c.jsx(Q1,{scope:t,forceMount:n,children:c.jsx(Tt,{present:n||s.open,children:c.jsx(Rr,{asChild:!0,container:o,children:r})})})};Pi.displayName=Go;var sn="TooltipContent",Ti=d.forwardRef((e,t)=>{const n=J1(sn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=An(sn,e.__scopeTooltip);return c.jsx(Tt,{present:r||a.open,children:a.disableHoverableContent?c.jsx(Ai,{side:o,...s,ref:t}):c.jsx(eh,{side:o,...s,ref:t})})}),eh=d.forwardRef((e,t)=>{const n=An(sn,e.__scopeTooltip),r=qo(sn,e.__scopeTooltip),o=d.useRef(null),s=qe(t,o),[a,i]=d.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:h}=r,p=d.useCallback(()=>{i(null),h(!1)},[h]),m=d.useCallback((y,b)=>{const v=y.currentTarget,_={x:y.clientX,y:y.clientY},w=sh(_,v.getBoundingClientRect()),x=ah(_,w),k=ih(b.getBoundingClientRect()),S=lh([...x,...k]);i(S),h(!0)},[h]);return d.useEffect(()=>()=>p(),[p]),d.useEffect(()=>{if(l&&f){const y=v=>m(v,f),b=v=>m(v,l);return l.addEventListener("pointerleave",y),f.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",y),f.removeEventListener("pointerleave",b)}}},[l,f,m,p]),d.useEffect(()=>{if(a){const y=b=>{const v=b.target,_={x:b.clientX,y:b.clientY},w=l?.contains(v)||f?.contains(v),x=!ch(_,a);w?p():x&&(p(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,f,a,u,p]),c.jsx(Ai,{...e,ref:s})}),[th,nh]=Pr(En,{isInside:!1}),rh=z1("TooltipContent"),Ai=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=An(sn,n),u=Tr(n),{onClose:f}=l;return d.useEffect(()=>(document.addEventListener(xo,f),()=>document.removeEventListener(xo,f)),[f]),d.useEffect(()=>{if(l.trigger){const h=p=>{p.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,f]),c.jsx(Nr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:c.jsxs(Ni,{"data-state":l.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(rh,{children:r}),c.jsx(th,{scope:n,isInside:!0,children:c.jsx(U1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Ti.displayName=sn;var Ii="TooltipArrow",oh=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Tr(n);return nh(Ii,n).isInside?null:c.jsx(Ei,{...o,...r,ref:t})});oh.displayName=Ii;function sh(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ah(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ih(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ch(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],l=t[a],u=i.x,f=i.y,h=l.x,p=l.y;f>r!=p>r&&n<(h-u)*(r-f)/(p-f)+u&&(o=!o)}return o}function lh(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),dh(t)}function dh(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var uh=Oi,fh=Di,hh=Ri,mh=Pi,Li=Ti;const ph=uh,gh=fh,vh=hh,Wi=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(mh,{children:c.jsx(Li,{ref:r,sideOffset:t,className:J("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)",e),...n})}));Wi.displayName=Li.displayName;const bh="_anchor_10hp3_5",_h="_tooltip_10hp3_10",$s={anchor:bh,tooltip:_h},Fs=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,yh=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Bs=(e,t)=>typeof e=="number"?e:e?.[t]??0,Uo=({children:e,target:t,placement:n="top",popperClassName:r,isOpen:o,toggle:s,delay:a,autohide:i=!0})=>{const[l,u]=g.useState(!1),[f,h]=g.useState(null),p=o??l,{side:m,align:y}=g.useMemo(()=>yh(n),[n]),b=g.useCallback(()=>{const _=Fs(t);h(_?.getBoundingClientRect()??null)},[t]),v=g.useCallback(_=>{o===void 0&&u(_),s?.()},[o,s]);return g.useEffect(()=>{let _=null,w=null,x=null,k=null;const S=()=>{x&&clearTimeout(x),k&&clearTimeout(k),x=null,k=null},C=()=>{S(),b(),x=setTimeout(()=>v(!0),Bs(a,"show"))},N=()=>{i&&(S(),k=setTimeout(()=>v(!1),Bs(a,"hide")))},E=()=>{_&&(_.removeEventListener("mouseenter",C),_.removeEventListener("mouseleave",N),_.removeEventListener("focus",C),_.removeEventListener("blur",N),window.removeEventListener("scroll",b,!0),window.removeEventListener("resize",b),_=null)},D=A=>{_=A,b(),A.addEventListener("mouseenter",C),A.addEventListener("mouseleave",N),A.addEventListener("focus",C),A.addEventListener("blur",N),window.addEventListener("scroll",b,!0),window.addEventListener("resize",b)};let O=0;const T=60,R=()=>{const A=Fs(t);if(A){D(A);return}O>=T||(O+=1,w=requestAnimationFrame(R))};return R(),()=>{w!==null&&cancelAnimationFrame(w),S(),E()}},[i,a,v,t,b]),f?c.jsx(ph,{delayDuration:0,children:c.jsxs(gh,{open:p,onOpenChange:v,children:[Xa(c.jsx(vh,{asChild:!0,children:c.jsx("span",{className:$s.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})})),c.jsx(Wi,{side:m,align:y,className:M($s.tooltip,r),children:e})]})}):null};var eo=0;function $i(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zs()),document.body.insertAdjacentElement("beforeend",e[1]??zs()),eo++,()=>{eo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),eo--}},[])}function zs(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var to="focusScope.autoFocusOnMount",no="focusScope.autoFocusOnUnmount",Hs={bubbles:!1,cancelable:!0},wh="FocusScope",Zo=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,l]=d.useState(null),u=rn(o),f=rn(s),h=d.useRef(null),p=qe(t,b=>l(b)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let b=function(x){if(m.paused||!i)return;const k=x.target;i.contains(k)?h.current=k:Mt(h.current,{select:!0})},v=function(x){if(m.paused||!i)return;const k=x.relatedTarget;k!==null&&(i.contains(k)||Mt(h.current,{select:!0}))},_=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Mt(i)};document.addEventListener("focusin",b),document.addEventListener("focusout",v);const w=new MutationObserver(_);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",v),w.disconnect()}}},[r,i,m.paused]),d.useEffect(()=>{if(i){Vs.add(m);const b=document.activeElement;if(!i.contains(b)){const _=new CustomEvent(to,Hs);i.addEventListener(to,u),i.dispatchEvent(_),_.defaultPrevented||(xh(Eh(Fi(i)),{select:!0}),document.activeElement===b&&Mt(i))}return()=>{i.removeEventListener(to,u),setTimeout(()=>{const _=new CustomEvent(no,Hs);i.addEventListener(no,f),i.dispatchEvent(_),_.defaultPrevented||Mt(b??document.body,{select:!0}),i.removeEventListener(no,f),Vs.remove(m)},0)}}},[i,u,f,m]);const y=d.useCallback(b=>{if(!n&&!r||m.paused)return;const v=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,_=document.activeElement;if(v&&_){const w=b.currentTarget,[x,k]=Ch(w);x&&k?!b.shiftKey&&_===k?(b.preventDefault(),n&&Mt(x,{select:!0})):b.shiftKey&&_===x&&(b.preventDefault(),n&&Mt(k,{select:!0})):_===w&&b.preventDefault()}},[n,r,m.paused]);return c.jsx(Ie.div,{tabIndex:-1,...a,ref:p,onKeyDown:y})});Zo.displayName=wh;function xh(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Mt(r,{select:t}),document.activeElement!==n)return}function Ch(e){const t=Fi(e),n=Ys(t,e),r=Ys(t.reverse(),e);return[n,r]}function Fi(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ys(e,t){for(const n of e)if(!kh(n,{upTo:t}))return n}function kh(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Sh(e){return e instanceof HTMLInputElement&&"select"in e}function Mt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Sh(e)&&t&&e.select()}}var Vs=Nh();function Nh(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qs(e,t),e.unshift(t)},remove(t){e=qs(e,t),e[0]?.resume()}}}function qs(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Eh(e){return e.filter(t=>t.tagName!=="A")}function jh(e){const t=Mh(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(Dh);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Mh(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=Ph(o),i=Rh(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Oh=Symbol("radix.slottable");function Dh(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Oh}function Rh(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ph(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Th=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ut=new WeakMap,nr=new WeakMap,rr={},ro=0,Bi=function(e){return e&&(e.host||Bi(e.parentNode))},Ah=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Bi(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ih=function(e,t,n,r){var o=Ah(t,Array.isArray(e)?e:[e]);rr[n]||(rr[n]=new WeakMap);var s=rr[n],a=[],i=new Set,l=new Set(o),u=function(h){!h||i.has(h)||(i.add(h),u(h.parentNode))};o.forEach(u);var f=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(i.has(p))f(p);else try{var m=p.getAttribute(r),y=m!==null&&m!=="false",b=(Ut.get(p)||0)+1,v=(s.get(p)||0)+1;Ut.set(p,b),s.set(p,v),a.push(p),b===1&&y&&nr.set(p,!0),v===1&&p.setAttribute(n,"true"),y||p.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",p,_)}})};return f(t),i.clear(),ro++,function(){a.forEach(function(h){var p=Ut.get(h)-1,m=s.get(h)-1;Ut.set(h,p),s.set(h,m),p||(nr.has(h)||h.removeAttribute(r),nr.delete(h)),m||h.removeAttribute(n)}),ro--,ro||(Ut=new WeakMap,Ut=new WeakMap,nr=new WeakMap,rr={})}},zi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Th(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ih(r,o,n,"aria-hidden")):function(){return null}},st=function(){return st=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},st.apply(this,arguments)};function Hi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Lh(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var fr="right-scroll-bar-position",hr="width-before-scroll-bar",Wh="with-scroll-bars-hidden",$h="--removed-body-scroll-bar-size";function oo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Fh(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Bh=typeof window<"u"?d.useLayoutEffect:d.useEffect,Gs=new WeakMap;function zh(e,t){var n=Fh(null,function(r){return e.forEach(function(o){return oo(o,r)})});return Bh(function(){var r=Gs.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||oo(i,null)}),s.forEach(function(i){o.has(i)||oo(i,a)})}Gs.set(n,e)},[e]),n}function Hh(e){return e}function Yh(e,t){t===void 0&&(t=Hh);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function Vh(e){e===void 0&&(e={});var t=Yh(null);return t.options=st({async:!0,ssr:!1},e),t}var Yi=function(e){var t=e.sideCar,n=Hi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,st({},n))};Yi.isSideCarExport=!0;function qh(e,t){return e.useMedium(t),Yi}var Vi=Vh(),so=function(){},Ar=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:so,onWheelCapture:so,onTouchMoveCapture:so}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,h=e.shards,p=e.sideCar,m=e.noRelative,y=e.noIsolation,b=e.inert,v=e.allowPinchZoom,_=e.as,w=_===void 0?"div":_,x=e.gapMode,k=Hi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,C=zh([n,t]),N=st(st({},k),o);return d.createElement(d.Fragment,null,f&&d.createElement(S,{sideCar:Vi,removeScrollBar:u,shards:h,noRelative:m,noIsolation:y,inert:b,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:x}),a?d.cloneElement(d.Children.only(i),st(st({},N),{ref:C})):d.createElement(w,st({},N,{className:l,ref:C}),i))});Ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ar.classNames={fullWidth:hr,zeroRight:fr};var Gh=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Uh(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gh();return t&&e.setAttribute("nonce",t),e}function Zh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Kh=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Uh())&&(Zh(t,n),Xh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qh=function(){var e=Kh();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},qi=function(){var e=Qh(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Jh={left:0,top:0,right:0,gap:0},ao=function(e){return parseInt(e||"",10)||0},em=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ao(n),ao(r),ao(o)]},tm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Jh;var t=em(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nm=qi(),tn="data-scroll-locked",rm=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
+
.`.concat(Wh,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(i,"px ").concat(r,`;
|
|
5
5
|
}
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
body[`).concat(tn,`] {
|
|
36
|
-
`).concat(
|
|
36
|
+
`).concat($h,": ").concat(i,`px;
|
|
37
37
|
}
|
|
38
|
-
`)},Us=function(){var e=parseInt(document.body.getAttribute(tn)||"0",10);return isFinite(e)?e:0},
|
|
38
|
+
`)},Us=function(){var e=parseInt(document.body.getAttribute(tn)||"0",10);return isFinite(e)?e:0},om=function(){d.useEffect(function(){return document.body.setAttribute(tn,(Us()+1).toString()),function(){var e=Us()-1;e<=0?document.body.removeAttribute(tn):document.body.setAttribute(tn,e.toString())}},[])},sm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;om();var s=d.useMemo(function(){return tm(o)},[o]);return d.createElement(nm,{styles:rm(s,!t,o,n?"":"!important")})},ko=!1;if(typeof window<"u")try{var or=Object.defineProperty({},"passive",{get:function(){return ko=!0,!0}});window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{ko=!1}var Zt=ko?{passive:!1}:!1,am=function(e){return e.tagName==="TEXTAREA"},Gi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!am(e)&&n[t]==="visible")},im=function(e){return Gi(e,"overflowY")},cm=function(e){return Gi(e,"overflowX")},Zs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ui(e,r);if(o){var s=Zi(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},lm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},dm=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ui=function(e,t){return e==="v"?im(t):cm(t)},Zi=function(e,t){return e==="v"?lm(t):dm(t)},um=function(e,t){return e==="h"&&t==="rtl"?-1:1},fm=function(e,t,n,r,o){var s=um(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,l=t.contains(i),u=!1,f=a>0,h=0,p=0;do{if(!i)break;var m=Zi(e,i),y=m[0],b=m[1],v=m[2],_=b-v-s*y;(y||_)&&Ui(e,i)&&(h+=_,p+=y);var w=i.parentNode;i=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&Math.abs(h)<1||!f&&Math.abs(p)<1)&&(u=!0),u},sr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xs=function(e){return[e.deltaX,e.deltaY]},Ks=function(e){return e&&"current"in e?e.current:e},hm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mm=function(e){return`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},gm=0,Xt=[];function vm(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(gm++)[0],s=d.useState(Gi)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Wh([e.lockRef.current],(e.shards||[]).map(Ks),!0).filter(Boolean);return v.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(v,_){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var y=sr(v),w=n.current,x="deltaX"in v?v.deltaX:w[0]-y[0],k="deltaY"in v?v.deltaY:w[1]-y[1],S,C=v.target,N=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in v&&N==="h"&&C.type==="range")return!1;var E=window.getSelection(),D=E&&E.anchorNode,O=D?D===C||D.contains(C):!1;if(O)return!1;var T=Zs(N,C);if(!T)return!0;if(T?S=N:(S=N==="v"?"h":"v",T=Zs(N,C)),!T)return!1;if(!r.current&&"changedTouches"in v&&(x||k)&&(r.current=S),!S)return!0;var R=r.current||S;return hm(R,_,v,R==="h"?x:k)},[]),l=d.useCallback(function(v){var _=v;if(!(!Xt.length||Xt[Xt.length-1]!==s)){var y="deltaY"in _?Xs(_):sr(_),w=t.current.filter(function(S){return S.name===_.type&&(S.target===_.target||_.target===S.shadowParent)&&mm(S.delta,y)})[0];if(w&&w.should){_.cancelable&&_.preventDefault();return}if(!w){var x=(a.current.shards||[]).map(Ks).filter(Boolean).filter(function(S){return S.contains(_.target)}),k=x.length>0?i(_,x[0]):!a.current.noIsolation;k&&_.cancelable&&_.preventDefault()}}},[]),u=d.useCallback(function(v,_,y,w){var x={name:v,delta:_,target:y,should:w,shadowParent:_m(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(k){return k!==x})},1)},[]),f=d.useCallback(function(v){n.current=sr(v),r.current=void 0},[]),h=d.useCallback(function(v){u(v.type,Xs(v),v.target,i(v,e.lockRef.current))},[]),p=d.useCallback(function(v){u(v.type,sr(v),v.target,i(v,e.lockRef.current))},[]);d.useEffect(function(){return Xt.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Zt),document.addEventListener("touchmove",l,Zt),document.addEventListener("touchstart",f,Zt),function(){Xt=Xt.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,Zt),document.removeEventListener("touchmove",l,Zt),document.removeEventListener("touchstart",f,Zt)}},[]);var m=e.removeScrollBar,b=e.inert;return d.createElement(d.Fragment,null,b?d.createElement(s,{styles:pm(o)}):null,m?d.createElement(am,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _m(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bm=Gh(qi,vm);var Xo=d.forwardRef(function(e,t){return d.createElement(Ar,st({},e,{ref:t,sideCar:bm}))});Xo.classNames=Ar.classNames;var Ir="Popover",[Ki]=Sr(Ir,[Dr]),In=Dr(),[ym,At]=Ki(Ir),Qi=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=In(t),l=d.useRef(null),[u,f]=d.useState(!1),[h,p]=Vo({prop:r,defaultProp:o??!1,onChange:s,caller:Ir});return c.jsx(Ni,{...i,children:c.jsx(ym,{scope:t,contentId:Sn(),triggerRef:l,open:h,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(m=>!m),[p]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>f(!0),[]),onCustomAnchorRemove:d.useCallback(()=>f(!1),[]),modal:a,children:n})})};Qi.displayName=Ir;var Ji="PopoverAnchor",wm=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(Ji,n),s=In(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return d.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(Yo,{...s,...r,ref:t})});wm.displayName=Ji;var ec="PopoverTrigger",tc=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(ec,n),s=In(n),a=qe(t,o.triggerRef),i=c.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ac(o.open),...r,ref:a,onClick:je(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx(Yo,{asChild:!0,...s,children:i})});tc.displayName=ec;var Ko="PopoverPortal",[xm,Cm]=Ki(Ko,{forceMount:void 0}),nc=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=At(Ko,t);return c.jsx(xm,{scope:t,forceMount:n,children:c.jsx(Tt,{present:n||s.open,children:c.jsx(Rr,{asChild:!0,container:o,children:r})})})};nc.displayName=Ko;var an="PopoverContent",rc=d.forwardRef((e,t)=>{const n=Cm(an,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=At(an,e.__scopePopover);return c.jsx(Tt,{present:r||s.open,children:s.modal?c.jsx(Sm,{...o,ref:t}):c.jsx(Nm,{...o,ref:t})})});rc.displayName=an;var km=Mh("PopoverContent.RemoveScroll"),Sm=d.forwardRef((e,t)=>{const n=At(an,e.__scopePopover),r=d.useRef(null),o=qe(t,r),s=d.useRef(!1);return d.useEffect(()=>{const a=r.current;if(a)return Hi(a)},[]),c.jsx(Xo,{as:km,allowPinchZoom:!0,children:c.jsx(oc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,a=>{a.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,u=i.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:je(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Nm=d.forwardRef((e,t)=>{const n=At(an,e.__scopePopover),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(oc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),oc=d.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...h}=e,p=At(an,n),m=In(n);return Fi(),c.jsx(Zo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(Nr,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(Ei,{"data-state":ac(p.open),role:"dialog",id:p.contentId,...m,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),sc="PopoverClose",Em=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(sc,n);return c.jsx(Ie.button,{type:"button",...r,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});Em.displayName=sc;var jm="PopoverArrow",Mm=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=In(n);return c.jsx(ji,{...o,...r,ref:t})});Mm.displayName=jm;function ac(e){return e?"open":"closed"}var Om=Qi,Dm=tc,Rm=nc,ic=rc;const So=Om,No=Dm,Qo=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>c.jsx(Rm,{children:c.jsx(ic,{ref:o,align:t,sideOffset:n,className:J("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin)",e),...r})}));Qo.displayName=ic.displayName;const Pm="_anchor_1p8x5_5",Tm="_triggerWrap_1p8x5_10",Am="_popover_1p8x5_15",io={anchor:Pm,triggerWrap:Tm,popover:Am},Im=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Lm=e=>{const t="trigger"in e&&e.trigger!==void 0,{children:n,placement:r="bottom",className:o,isOpen:s,toggle:a,onOpenChange:i}=e,[l,u]=g.useState(!1),[f,h]=g.useState(null),p=s??l,{side:m,align:b}=g.useMemo(()=>Im(r),[r]),v=g.useCallback(()=>{if(t)return;const w=e.target?.current;h(w?.getBoundingClientRect()??null)},[e.target,t]),_=g.useCallback(w=>{s===void 0&&u(w),i?.(w)},[s,i]);g.useEffect(()=>{if(t)return;const w=e.target?.current;if(!w)return;const x=()=>{v(),s===void 0?u(k=>{const S=!k;return i?.(S),S}):i?.(!s),a?.()};return w.addEventListener("click",x),window.addEventListener("scroll",v,!0),window.addEventListener("resize",v),()=>{w.removeEventListener("click",x),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v)}},[s,i,e.target,a,t,v]);const y=c.jsx(Qo,{side:m,align:b,className:M(io.popover,o),children:n});return t?c.jsxs(So,{open:p,onOpenChange:_,children:[c.jsx(No,{asChild:!0,children:c.jsx("span",{className:io.triggerWrap,children:e.trigger})}),y]}):c.jsxs(So,{open:p,onOpenChange:_,children:[Ka(c.jsx(No,{asChild:!0,children:c.jsx("span",{className:io.anchor,style:f?{left:f.left,top:f.top,width:f.width,height:f.height}:{left:0,top:0,width:0,height:0},"aria-hidden":!0})})),y]})},Wm="_emptyComponent_1wdgn_1",$m="_svgWrapper_1wdgn_11",Fm="_title_1wdgn_23",Bm="_subtitle_1wdgn_28",ar={emptyComponent:Wm,svgWrapper:$m,title:Fm,subtitle:Bm},It=({svg:e=c.jsx(ja,{}),title:t="Нет данных для отображения",description:n,subtitle:r,content:o,className:s})=>{const a=n??r;return c.jsxs("div",{className:M(ar.emptyComponent,s),children:[c.jsx("div",{className:ar.svgWrapper,children:e}),t&&c.jsx("span",{className:ar.title,children:t}),a&&c.jsx("span",{className:ar.subtitle,children:a}),o&&o]})},zm="_container_jimsv_5",Hm="_header_jimsv_10",Ym="_header_icon_jimsv_18",Vm="_iconTransition_jimsv_24",qm="_rotateIcon_jimsv_27",Gm="_content_jimsv_30",Um="_padding_jimsv_35",rt={container:zm,header:Hm,header_icon:Ym,iconTransition:Vm,rotateIcon:qm,content:Gm,padding:Um},cc=({header:e,className:t,content:n,onToggle:r,isOpen:o,defaultOpen:s=!1,id:a,headerClassName:i,contentClassName:l,iconClassName:u})=>{const[f,h]=g.useState(s),p=g.useRef(!1),m=typeof o=="boolean"?o:f,b=g.useRef(null),v=typeof e=="string"?c.jsx("div",{className:rt.header_text,children:c.jsx("span",{children:e})}):e,_=typeof n=="string"?c.jsx("span",{className:rt.content_text,children:n}):n;g.useEffect(()=>{const w=b.current;if(w){if(!p.current){w.style.height=s?"auto":"0px",p.current=!0;return}if(m){w.style.height=`${w.scrollHeight}px`;const x=()=>{w.style.height="auto"};w.addEventListener("transitionend",x,{once:!0})}else w.style.height=`${w.scrollHeight}px`,requestAnimationFrame(()=>{w.style.height="0px"})}},[m,s]);const y=g.useCallback(w=>{w.stopPropagation(),r?r():h(x=>!x)},[r]);return c.jsxs("div",{className:M(rt.container,t),id:a,children:[c.jsxs("div",{className:M(rt.header,i),children:[v,c.jsx("div",{className:M(rt.header_icon,u),onClick:y,children:c.jsx(dt,{className:M(rt.iconArrow,rt.iconTransition,{[rt.rotateIcon]:m})})})]}),c.jsx("div",{className:M(rt.content,l,{[rt.padding]:m}),ref:b,children:_})]})},Zm="_collapsableBlock_1olru_5",Xm="_header_1olru_10",Km="_headerWithInfoTooltip_1olru_16",Qm="_infoIcon_1olru_24",ir={collapsableBlock:Zm,header:Xm,headerWithInfoTooltip:Km,infoIcon:Qm},Jm=d.memo(e=>{const{id:t,header:n,content:r,className:o,infoTooltipContent:s,...a}=e,[i,l]=g.useState(!1),u=()=>l(!i);return c.jsx(cc,{id:t,className:M(ir.collapsableBlock,o),header:s?c.jsxs("div",{className:ir.headerWithInfoTooltip,children:[c.jsx("span",{children:n}),c.jsx(Na,{className:ir.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),c.jsx(Uo,{autohide:!1,delay:{show:0,hide:500},isOpen:i,placement:"left-start",target:"CollapsableBlockNewInfoTooltipIcon",toggle:u,children:s})]}):n,content:r,headerClassName:ir.header,...a})});var ep=typeof document<"u",tp=function(){},Eo=ep?g.useLayoutEffect:tp;const np={...d},rp=np.useInsertionEffect,op=rp||(e=>e());function sp(e){const t=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return op(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const ap={...d};let Qs=!1,ip=0;const Js=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ip++;function cp(){const[e,t]=d.useState(()=>Qs?Js():void 0);return Eo(()=>{e==null&&t(Js())},[]),d.useEffect(()=>{Qs=!0},[]),e}const lp=ap.useId,dp=lp||cp;let jo;process.env.NODE_ENV!=="production"&&(jo=new Set);function up(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=jo)!=null&&e.has(o))){var s;(s=jo)==null||s.add(o),console.error(o)}}function fp(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const hp=d.createContext(null),mp=d.createContext(null),pp=()=>{var e;return((e=d.useContext(hp))==null?void 0:e.id)||null},gp=()=>d.useContext(mp);function vp(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=dp(),s=d.useRef({}),[a]=d.useState(()=>fp()),i=pp()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!Ae(m)&&up("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=d.useState(r.reference),f=sp((m,b,v)=>{s.current.openEvent=m?b:void 0,a.emit("openchange",{open:m,event:b,reason:v,nested:i}),n?.(m,b,v)}),h=d.useMemo(()=>({setPositionReference:u}),[]),p=d.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return d.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:p,events:a,floatingId:o,refs:h}),[t,f,p,a,o,h])}function _p(e){e===void 0&&(e={});const{nodeId:t}=e,n=vp({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,a]=d.useState(null),[i,l]=d.useState(null),f=o?.domReference||s,h=d.useRef(null),p=gp();Eo(()=>{f&&(h.current=f)},[f]);const m=fi({...e,elements:{...o,...i&&{reference:i}}}),b=d.useCallback(x=>{const k=Ae(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;l(k),m.refs.setReference(k)},[m.refs]),v=d.useCallback(x=>{(Ae(x)||x===null)&&(h.current=x,a(x)),(Ae(m.refs.reference.current)||m.refs.reference.current===null||x!==null&&!Ae(x))&&m.refs.setReference(x)},[m.refs]),_=d.useMemo(()=>({...m.refs,setReference:v,setPositionReference:b,domReference:h}),[m.refs,v,b]),y=d.useMemo(()=>({...m.elements,domReference:f}),[m.elements,f]),w=d.useMemo(()=>({...m,...r,refs:_,elements:y,nodeId:t}),[m,_,y,t,r]);return Eo(()=>{r.dataRef.current.floatingContext=w;const x=p?.nodesRef.current.find(k=>k.id===t);x&&(x.context=w)}),d.useMemo(()=>({...m,context:w,refs:_,elements:y}),[m,_,y,w])}const bp="_caption_1dyqk_1",yp="_fadeIn_1dyqk_1",wp="_caption_neutral_1dyqk_16",xp="_caption_error_1dyqk_20",Cp="_caption_success_1dyqk_24",kp="_fullWidth_1dyqk_38",co={caption:bp,fadeIn:yp,caption_neutral:wp,caption_error:xp,caption_success:Cp,fullWidth:kp},Ct=({children:e,isFullWidth:t,variant:n,type:r})=>{const o=n??r??"error";return c.jsx("p",{className:M(co.caption,co[`caption_${o}`],{[co.fullWidth]:t}),children:e})};const lc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const Sp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Np=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const ea=e=>{const t=Np(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Ep={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const jp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const Mp=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},l)=>g.createElement("svg",{ref:l,...Ep,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:lc("lucide",o),...!s&&!jp(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,f])=>g.createElement(u,f)),...Array.isArray(s)?s:[s]]));const Ln=(e,t)=>{const n=g.forwardRef(({className:r,...o},s)=>g.createElement(Mp,{ref:s,iconNode:t,className:lc(`lucide-${Sp(ea(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ea(e),n};const Op=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Dp=Ln("calendar",Op);const Rp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Pp=Ln("chevron-down",Rp);const Tp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ap=Ln("chevron-left",Tp);const Ip=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Lp=Ln("chevron-right",Ip);const Wp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],$p=Ln("circle-question-mark",Wp);var Fp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bp=Fp.reduce((e,t)=>{const n=Ra(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),zp="Label",dc=d.forwardRef((e,t)=>c.jsx(Bp.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));dc.displayName=zp;var uc=dc;const Hp=Aa("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),fc=d.forwardRef(({className:e,...t},n)=>c.jsx(uc,{ref:n,className:J(Hp(),e),...t}));fc.displayName=uc.displayName;const Yp="_label_uh1zg_5",Vp="_label__text_uh1zg_15",qp="_label_inline_uh1zg_18",jn={label:Yp,label__text:Vp,label_inline:qp},Mn=({htmlFor:e,children:t,className:n})=>c.jsx(fc,{htmlFor:e,className:M(jn.label,n),children:typeof t=="string"?c.jsx("div",{className:jn.label__text,children:t}):t}),Gp="_labelRow_1kh14_1",Up="_helpIcon_1kh14_9",Zp="_helpIconSvg_1kh14_33",lo={labelRow:Gp,helpIcon:Up,helpIconSvg:Zp},Lt=({htmlFor:e,children:t,required:n,tooltipContent:r,tooltipPopperClassName:o,className:s,labelClassName:a})=>{const i=g.useRef(null),l=typeof t=="string"&&n?`${t} *`:t;return r?c.jsxs("div",{className:M(lo.labelRow,s),children:[c.jsx(Mn,{className:M(jn.label_inline,a),htmlFor:e,children:l}),c.jsx("button",{ref:i,type:"button",className:lo.helpIcon,"aria-label":"Справка по полю",children:c.jsx($p,{className:lo.helpIconSvg,"aria-hidden":!0})}),c.jsx(Uo,{target:i,popperClassName:o,children:r})]}):c.jsx(Mn,{htmlFor:e,className:s,children:l})},Xp="_wrapper_18vmz_5",Kp="_wrapper_small_18vmz_18",Qp="_iconCross_18vmz_21",Jp="_iconCross_small_18vmz_29",cr={wrapper:Xp,wrapper_small:Kp,iconCross:Qp,iconCross_small:Jp},hc=g.memo(({className:e,children:t,onClick:n,isSmall:r})=>c.jsxs("div",{className:M(cr.wrapper,e,r&&cr.wrapper_small),children:[c.jsx("span",{children:t}),n&&c.jsx(ct,{className:M(cr.iconCross,{[cr.iconCross_small]:r}),onClick:o=>{o.stopPropagation(),n()}})]})),e0="_wrapper_m05hf_5",t0="_container_m05hf_9",n0="_input_m05hf_9",r0="_error_m05hf_21",o0="_disabled_m05hf_24",s0="_tagContainer_m05hf_37",a0="_selectedOptionContainer_m05hf_42",i0="_selectedOption_m05hf_42",c0="_placeHolder_m05hf_54",l0="_iconContainer_m05hf_61",d0="_deleteIcon_m05hf_68",u0="_divider_m05hf_88",f0="_arrowIcon_m05hf_97",h0="_arrowIconExpanded_m05hf_112",m0="_dropdown_m05hf_116",p0="_dropdown_visible_m05hf_127",g0="_dropdown_table_m05hf_131",v0="_dropdownContent_m05hf_134",_0="_dropdownContent_table_m05hf_140",b0="_withSearch_m05hf_152",y0="_search_m05hf_155",w0="_search__icon_m05hf_168",x0="_search__input_m05hf_173",C0="_option_m05hf_203",k0="_option_active_m05hf_209",S0="_option_active_next_active_m05hf_215",N0="_option_active_prev_active_m05hf_219",E0="_tableTemplate_m05hf_246",j0="_tableContainer_m05hf_252",M0="_table_m05hf_246",O0="_activeRow_m05hf_294",D0="_checkboxCell_m05hf_301",R0="_checkbox_m05hf_301",P0="_footerTotal_m05hf_316",ae={wrapper:e0,container:t0,input:n0,error:r0,disabled:o0,tagContainer:s0,selectedOptionContainer:a0,selectedOption:i0,placeHolder:c0,iconContainer:l0,deleteIcon:d0,divider:u0,arrowIcon:f0,arrowIconExpanded:h0,dropdown:m0,dropdown_visible:p0,dropdown_table:g0,dropdownContent:v0,dropdownContent_table:_0,withSearch:b0,search:y0,search__icon:w0,search__input:x0,option:C0,option_active:k0,option_active_next_active:S0,option_active_prev_active:N0,tableTemplate:E0,tableContainer:j0,table:M0,activeRow:O0,checkboxCell:D0,checkbox:R0,footerTotal:P0},T0=6,A0=({value:e,selectedOptionRender:t,tagRender:n,onDelete:r})=>e?Array.isArray(e)?c.jsx("div",{className:ae.tagContainer,children:e.map((o,s)=>n?c.jsx(g.Fragment,{children:n(o)},s):c.jsx(hc,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):c.jsx("span",{className:M(ae.selectedOption,"truncate"),children:t?t(e):e.label}):null,mc=({onSearch:e,searchClassName:t,searchValue:n,isLoading:r,placeholder:o})=>c.jsxs("div",{className:M(ae.search,t),children:[c.jsx(xr,{className:ae.search__icon}),c.jsx("input",{className:ae.search__input,value:n,onChange:s=>e?.(s.target.value),placeholder:o}),r&&c.jsx(Ue,{size:"extraSmall",className:ae.search__spinner})]}),I0=({value:e,options:t,optionClassName:n,optionRender:r,onChange:o,onSearch:s,searchClassName:a,isLoading:i,searchValue:l,searchPlaceholder:u})=>{const f=h=>Array.isArray(e)?e.some(p=>p.value===h.value):e?.value===h.value;return c.jsxs(c.Fragment,{children:[s&&c.jsx(mc,{onSearch:s,searchValue:l,searchClassName:a,isLoading:i,placeholder:u}),t&&t.length?c.jsx("ul",{className:M({[ae.withSearch]:s}),children:t.map((h,p)=>{const m=f(h),b=t[p-1]&&f(t[p-1]),v=t[p+1]&&f(t[p+1]);return c.jsx("li",{className:M(ae.option,{[ae.option_active]:m,[ae.option_active_prev_active]:b,[ae.option_active_next_active]:v},n),onClick:()=>o(h),children:c.jsx("span",{className:"block min-w-0 truncate",children:r?r(h):h.label})},`${h.value}${p}`)})}):!i&&c.jsx(It,{})]})},L0=({value:e,options:t,onChange:n,onDelete:r,onSearch:o,searchClassName:s,isLoading:a,searchValue:i,searchPlaceholder:l,columns:u,total:f,mode:h})=>{const p=_=>Array.isArray(e)?e.some(y=>y.value===_.value):e?.value===_.value,m=(_,y)=>{if(h==="multiple"&&y&&r){r(_);return}n(_)},b=f??t?.length??0,v=u??[];return c.jsxs("div",{className:ae.tableTemplate,children:[o&&c.jsx(mc,{onSearch:o,searchValue:i,searchClassName:s,isLoading:a,placeholder:l}),c.jsx("div",{className:ae.tableContainer,children:t&&t.length?c.jsxs("table",{className:ae.table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{className:ae.checkboxCell,"aria-label":""}),v.map(_=>c.jsx("th",{className:_.className,children:_.title},_.key))]})}),c.jsx("tbody",{children:t.map((_,y)=>{const w=p(_);return c.jsxs("tr",{className:M({[ae.activeRow]:w}),onClick:()=>m(_,w),children:[c.jsx("td",{className:ae.checkboxCell,children:c.jsx("input",{type:"checkbox",className:ae.checkbox,checked:w,readOnly:!0,tabIndex:-1,onClick:x=>x.stopPropagation(),onChange:()=>m(_,w)})}),v.map(x=>c.jsx("td",{className:x.className,children:x.render(_)},x.key))]},`${String(_.value)}${y}`)})})]}):!a&&c.jsx(It,{})}),c.jsxs("div",{className:ae.footerTotal,children:["Всего ",b]})]})},W0=({options:e,value:t,mode:n,placeholder:r,onChange:o,dropdownRender:s,optionRender:a,selectedOptionRender:i,dropdownIcon:l,tagRender:u,dropDownClassName:f,optionClassName:h,inputClassName:p,deleteIconClassName:m,onDelete:b,onClear:v,label:_,tooltipContent:y,tooltipPopperClassName:w,onSearch:x,searchClassName:k,searchPlaceholder:S,isLoading:C,disabled:N,onClose:E,portalTarget:D,error:O,template:T="list",columns:R,total:A})=>{const[I,X]=g.useState(!1),[P,q]=g.useState(!1),W=g.useRef(null),G=g.useRef(null),j=g.useRef(null),[K,ve]=g.useState(""),V=D??(P&&typeof document<"u"?document.body:void 0);g.useEffect(()=>{q(!0)},[]);const ne=g.useCallback(ce=>{ve(ce),x?.(ce)},[x]);g.useEffect(()=>{if(!I)return;const ce=De=>{W.current&&!W.current.contains(De.target)&&(!G.current||!G.current.contains(De.target))&&(ne(""),X(!1),E?.())};return document.addEventListener("mousedown",ce,!0),()=>{document.removeEventListener("mousedown",ce,!0)}},[ne,I,E]);const{refs:ee,floatingStyles:re,update:fe}=_p({strategy:"absolute",placement:"bottom-start",open:I,whileElementsMounted:(ce,De,ht)=>di(ce,De,ht,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[hi(T0),mi({fallbackPlacements:["top-start","bottom-start"]}),pi({apply({rects:ce,elements:De}){const ht=`${Math.round(ce.reference.width)}px`;De.floating.style.width!==ht&&(De.floating.style.width=ht)}})]}),Me=g.useCallback(ce=>{j.current=ce,ee.setReference(ce)},[ee]),se=g.useCallback(ce=>{G.current=ce,ee.setFloating(ce)},[ee]);g.useEffect(()=>{I&&fe()},[I,fe]);const $=g.useCallback(ce=>{o?.(ce),ne(""),E?.(),n==="single"&&X(!1)},[ne,n,o,E]),de=g.useCallback(()=>{const ce=c.jsx("div",{ref:se,className:M(ae.dropdown,{[ae.dropdown_visible]:I,[ae.dropdown_table]:T==="table"},f),style:re,onClick:De=>De.stopPropagation(),children:c.jsx("div",{className:M(ae.dropdownContent,T==="table"&&ae.dropdownContent_table),children:(()=>{const De=T==="table"?c.jsx(L0,{value:t,options:e,onChange:$,onDelete:b,...x&&{onSearch:ne},searchClassName:k,isLoading:C,searchValue:K,searchPlaceholder:S,columns:R,total:A,mode:n}):c.jsx(I0,{value:t,options:e,optionClassName:h,optionRender:a,onChange:$,...x&&{onSearch:ne},searchClassName:k,isLoading:C,searchValue:K,searchPlaceholder:S});return s?s(De):De})()})});return V?Rn.createPortal(ce,V):ce},[f,s,re,$,ne,C,I,x,h,a,e,V,T,R,A,n,b,k,S,K,se,t]),ke=g.useMemo(()=>P?de():null,[P,de]),Oe=Array.isArray(t)?!!t.length:!!t;return c.jsxs("div",{className:ae.wrapper,children:[_&&c.jsx(Lt,{htmlFor:"CustomSelectInput",tooltipContent:y,tooltipPopperClassName:w,children:_}),c.jsxs("div",{className:ae.container,ref:W,children:[c.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:Me,className:M(ae.input,{[ae.disabled]:N},O&&ae.error,p),onClick:()=>{t&&(ne(""),E?.()),X(ce=>!ce)},children:[c.jsx("div",{className:ae.selectedOptionContainer,children:Oe?c.jsx(A0,{value:t,selectedOptionRender:i,tagRender:u,onDelete:b}):c.jsx("span",{className:M(ae.placeHolder,"truncate"),children:r})}),c.jsxs("div",{className:ae.iconContainer,children:[v&&Oe&&c.jsxs(c.Fragment,{children:[c.jsx(xe,{variant:"text",className:M(ae.deleteIcon,m),onClick:ce=>{ce.stopPropagation(),v()},children:c.jsx("span",{children:c.jsx(ct,{})})}),c.jsx("div",{className:ae.divider,children:c.jsx("div",{})})]}),l||c.jsx(xe,{variant:"text",className:M(ae.arrowIcon,{[ae.arrowIconExpanded]:I}),children:c.jsx(dt,{})})]})]}),ke]}),O&&c.jsx(Ct,{children:O})]})};function $0(e){const t=F0(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(z0);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function F0(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=Y0(o),i=H0(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var B0=Symbol("radix.slottable");function z0(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===B0}function H0(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Y0(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Lr="Dialog",[pc]=Sr(Lr),[V0,tt]=pc(Lr),gc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=d.useRef(null),l=d.useRef(null),[u,f]=Vo({prop:r,defaultProp:o??!1,onChange:s,caller:Lr});return c.jsx(V0,{scope:t,triggerRef:i,contentRef:l,contentId:Sn(),titleId:Sn(),descriptionId:Sn(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(h=>!h),[f]),modal:a,children:n})};gc.displayName=Lr;var vc="DialogTrigger",q0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(vc,n),s=qe(t,o.triggerRef);return c.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ts(o.open),...r,ref:s,onClick:je(e.onClick,o.onOpenToggle)})});q0.displayName=vc;var Jo="DialogPortal",[G0,_c]=pc(Jo,{forceMount:void 0}),bc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=tt(Jo,t);return c.jsx(G0,{scope:t,forceMount:n,children:d.Children.map(r,a=>c.jsx(Tt,{present:n||s.open,children:c.jsx(Rr,{asChild:!0,container:o,children:a})}))})};bc.displayName=Jo;var yr="DialogOverlay",yc=d.forwardRef((e,t)=>{const n=_c(yr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tt(yr,e.__scopeDialog);return s.modal?c.jsx(Tt,{present:r||s.open,children:c.jsx(Z0,{...o,ref:t})}):null});yc.displayName=yr;var U0=$0("DialogOverlay.RemoveScroll"),Z0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(yr,n);return c.jsx(Xo,{as:U0,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(Ie.div,{"data-state":ts(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Yt="DialogContent",wc=d.forwardRef((e,t)=>{const n=_c(Yt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tt(Yt,e.__scopeDialog);return c.jsx(Tt,{present:r||s.open,children:s.modal?c.jsx(X0,{...o,ref:t}):c.jsx(K0,{...o,ref:t})})});wc.displayName=Yt;var X0=d.forwardRef((e,t)=>{const n=tt(Yt,e.__scopeDialog),r=d.useRef(null),o=qe(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return Hi(s)},[]),c.jsx(xc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:je(e.onFocusOutside,s=>s.preventDefault())})}),K0=d.forwardRef((e,t)=>{const n=tt(Yt,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(xc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),xc=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=tt(Yt,n),l=d.useRef(null),u=qe(t,l);return Fi(),c.jsxs(c.Fragment,{children:[c.jsx(Zo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(Nr,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ts(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(J0,{titleId:i.titleId}),c.jsx(tg,{contentRef:l,descriptionId:i.descriptionId})]})]})}),es="DialogTitle",Cc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(es,n);return c.jsx(Ie.h2,{id:o.titleId,...r,ref:t})});Cc.displayName=es;var kc="DialogDescription",Sc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(kc,n);return c.jsx(Ie.p,{id:o.descriptionId,...r,ref:t})});Sc.displayName=kc;var Nc="DialogClose",Q0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(Nc,n);return c.jsx(Ie.button,{type:"button",...r,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});Q0.displayName=Nc;function ts(e){return e?"open":"closed"}var Ec="DialogTitleWarning",[P4,jc]=df(Ec,{contentName:Yt,titleName:es,docsSlug:"dialog"}),J0=({titleId:e})=>{const t=jc(Ec),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
41
|
+
`)},pm=0,Xt=[];function gm(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(pm++)[0],s=d.useState(qi)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var b=Lh([e.lockRef.current],(e.shards||[]).map(Ks),!0).filter(Boolean);return b.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(b,v){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!a.current.allowPinchZoom;var _=sr(b),w=n.current,x="deltaX"in b?b.deltaX:w[0]-_[0],k="deltaY"in b?b.deltaY:w[1]-_[1],S,C=b.target,N=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in b&&N==="h"&&C.type==="range")return!1;var E=window.getSelection(),D=E&&E.anchorNode,O=D?D===C||D.contains(C):!1;if(O)return!1;var T=Zs(N,C);if(!T)return!0;if(T?S=N:(S=N==="v"?"h":"v",T=Zs(N,C)),!T)return!1;if(!r.current&&"changedTouches"in b&&(x||k)&&(r.current=S),!S)return!0;var R=r.current||S;return fm(R,v,b,R==="h"?x:k)},[]),l=d.useCallback(function(b){var v=b;if(!(!Xt.length||Xt[Xt.length-1]!==s)){var _="deltaY"in v?Xs(v):sr(v),w=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&hm(S.delta,_)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var x=(a.current.shards||[]).map(Ks).filter(Boolean).filter(function(S){return S.contains(v.target)}),k=x.length>0?i(v,x[0]):!a.current.noIsolation;k&&v.cancelable&&v.preventDefault()}}},[]),u=d.useCallback(function(b,v,_,w){var x={name:b,delta:v,target:_,should:w,shadowParent:vm(_)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(k){return k!==x})},1)},[]),f=d.useCallback(function(b){n.current=sr(b),r.current=void 0},[]),h=d.useCallback(function(b){u(b.type,Xs(b),b.target,i(b,e.lockRef.current))},[]),p=d.useCallback(function(b){u(b.type,sr(b),b.target,i(b,e.lockRef.current))},[]);d.useEffect(function(){return Xt.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Zt),document.addEventListener("touchmove",l,Zt),document.addEventListener("touchstart",f,Zt),function(){Xt=Xt.filter(function(b){return b!==s}),document.removeEventListener("wheel",l,Zt),document.removeEventListener("touchmove",l,Zt),document.removeEventListener("touchstart",f,Zt)}},[]);var m=e.removeScrollBar,y=e.inert;return d.createElement(d.Fragment,null,y?d.createElement(s,{styles:mm(o)}):null,m?d.createElement(sm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bm=qh(Vi,gm);var Xo=d.forwardRef(function(e,t){return d.createElement(Ar,st({},e,{ref:t,sideCar:bm}))});Xo.classNames=Ar.classNames;var Ir="Popover",[Xi]=Sr(Ir,[Dr]),In=Dr(),[_m,At]=Xi(Ir),Ki=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=In(t),l=d.useRef(null),[u,f]=d.useState(!1),[h,p]=Vo({prop:r,defaultProp:o??!1,onChange:s,caller:Ir});return c.jsx(Si,{...i,children:c.jsx(_m,{scope:t,contentId:Sn(),triggerRef:l,open:h,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(m=>!m),[p]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>f(!0),[]),onCustomAnchorRemove:d.useCallback(()=>f(!1),[]),modal:a,children:n})})};Ki.displayName=Ir;var Qi="PopoverAnchor",ym=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(Qi,n),s=In(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return d.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(Yo,{...s,...r,ref:t})});ym.displayName=Qi;var Ji="PopoverTrigger",ec=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(Ji,n),s=In(n),a=qe(t,o.triggerRef),i=c.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sc(o.open),...r,ref:a,onClick:je(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx(Yo,{asChild:!0,...s,children:i})});ec.displayName=Ji;var Ko="PopoverPortal",[wm,xm]=Xi(Ko,{forceMount:void 0}),tc=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=At(Ko,t);return c.jsx(wm,{scope:t,forceMount:n,children:c.jsx(Tt,{present:n||s.open,children:c.jsx(Rr,{asChild:!0,container:o,children:r})})})};tc.displayName=Ko;var an="PopoverContent",nc=d.forwardRef((e,t)=>{const n=xm(an,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=At(an,e.__scopePopover);return c.jsx(Tt,{present:r||s.open,children:s.modal?c.jsx(km,{...o,ref:t}):c.jsx(Sm,{...o,ref:t})})});nc.displayName=an;var Cm=jh("PopoverContent.RemoveScroll"),km=d.forwardRef((e,t)=>{const n=At(an,e.__scopePopover),r=d.useRef(null),o=qe(t,r),s=d.useRef(!1);return d.useEffect(()=>{const a=r.current;if(a)return zi(a)},[]),c.jsx(Xo,{as:Cm,allowPinchZoom:!0,children:c.jsx(rc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,a=>{a.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,u=i.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:je(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Sm=d.forwardRef((e,t)=>{const n=At(an,e.__scopePopover),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(rc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),rc=d.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...h}=e,p=At(an,n),m=In(n);return $i(),c.jsx(Zo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(Nr,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(Ni,{"data-state":sc(p.open),role:"dialog",id:p.contentId,...m,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),oc="PopoverClose",Nm=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(oc,n);return c.jsx(Ie.button,{type:"button",...r,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});Nm.displayName=oc;var Em="PopoverArrow",jm=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=In(n);return c.jsx(Ei,{...o,...r,ref:t})});jm.displayName=Em;function sc(e){return e?"open":"closed"}var Mm=Ki,Om=ec,Dm=tc,ac=nc;const So=Mm,No=Om,Qo=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>c.jsx(Dm,{children:c.jsx(ac,{ref:o,align:t,sideOffset:n,className:J("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin)",e),...r})}));Qo.displayName=ac.displayName;const Rm="_anchor_1p8x5_5",Pm="_triggerWrap_1p8x5_10",Tm="_popover_1p8x5_15",io={anchor:Rm,triggerWrap:Pm,popover:Tm},Am=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Im=e=>{const t="trigger"in e&&e.trigger!==void 0,{children:n,placement:r="bottom",className:o,isOpen:s,toggle:a,onOpenChange:i}=e,[l,u]=g.useState(!1),[f,h]=g.useState(null),p=s??l,{side:m,align:y}=g.useMemo(()=>Am(r),[r]),b=g.useCallback(()=>{if(t)return;const w=e.target?.current;h(w?.getBoundingClientRect()??null)},[e.target,t]),v=g.useCallback(w=>{s===void 0&&u(w),i?.(w)},[s,i]);g.useEffect(()=>{if(t)return;const w=e.target?.current;if(!w)return;const x=()=>{b(),s===void 0?u(k=>{const S=!k;return i?.(S),S}):i?.(!s),a?.()};return w.addEventListener("click",x),window.addEventListener("scroll",b,!0),window.addEventListener("resize",b),()=>{w.removeEventListener("click",x),window.removeEventListener("scroll",b,!0),window.removeEventListener("resize",b)}},[s,i,e.target,a,t,b]);const _=c.jsx(Qo,{side:m,align:y,className:M(io.popover,o),children:n});return t?c.jsxs(So,{open:p,onOpenChange:v,children:[c.jsx(No,{asChild:!0,children:c.jsx("span",{className:io.triggerWrap,children:e.trigger})}),_]}):c.jsxs(So,{open:p,onOpenChange:v,children:[Xa(c.jsx(No,{asChild:!0,children:c.jsx("span",{className:io.anchor,style:f?{left:f.left,top:f.top,width:f.width,height:f.height}:{left:0,top:0,width:0,height:0},"aria-hidden":!0})})),_]})},Lm="_emptyComponent_1wdgn_1",Wm="_svgWrapper_1wdgn_11",$m="_title_1wdgn_23",Fm="_subtitle_1wdgn_28",ar={emptyComponent:Lm,svgWrapper:Wm,title:$m,subtitle:Fm},It=({svg:e=c.jsx(Ea,{}),title:t="Нет данных для отображения",description:n,subtitle:r,content:o,className:s})=>{const a=n??r;return c.jsxs("div",{className:M(ar.emptyComponent,s),children:[c.jsx("div",{className:ar.svgWrapper,children:e}),t&&c.jsx("span",{className:ar.title,children:t}),a&&c.jsx("span",{className:ar.subtitle,children:a}),o&&o]})},Bm="_container_jimsv_5",zm="_header_jimsv_10",Hm="_header_icon_jimsv_18",Ym="_iconTransition_jimsv_24",Vm="_rotateIcon_jimsv_27",qm="_content_jimsv_30",Gm="_padding_jimsv_35",rt={container:Bm,header:zm,header_icon:Hm,iconTransition:Ym,rotateIcon:Vm,content:qm,padding:Gm},ic=({header:e,className:t,content:n,onToggle:r,isOpen:o,defaultOpen:s=!1,id:a,headerClassName:i,contentClassName:l,iconClassName:u})=>{const[f,h]=g.useState(s),p=g.useRef(!1),m=typeof o=="boolean"?o:f,y=g.useRef(null),b=typeof e=="string"?c.jsx("div",{className:rt.header_text,children:c.jsx("span",{children:e})}):e,v=typeof n=="string"?c.jsx("span",{className:rt.content_text,children:n}):n;g.useEffect(()=>{const w=y.current;if(w){if(!p.current){w.style.height=s?"auto":"0px",p.current=!0;return}if(m){w.style.height=`${w.scrollHeight}px`;const x=()=>{w.style.height="auto"};w.addEventListener("transitionend",x,{once:!0})}else w.style.height=`${w.scrollHeight}px`,requestAnimationFrame(()=>{w.style.height="0px"})}},[m,s]);const _=g.useCallback(w=>{w.stopPropagation(),r?r():h(x=>!x)},[r]);return c.jsxs("div",{className:M(rt.container,t),id:a,children:[c.jsxs("div",{className:M(rt.header,i),children:[b,c.jsx("div",{className:M(rt.header_icon,u),onClick:_,children:c.jsx(dt,{className:M(rt.iconArrow,rt.iconTransition,{[rt.rotateIcon]:m})})})]}),c.jsx("div",{className:M(rt.content,l,{[rt.padding]:m}),ref:y,children:v})]})},Um="_collapsableBlock_1olru_5",Zm="_header_1olru_10",Xm="_headerWithInfoTooltip_1olru_16",Km="_infoIcon_1olru_24",ir={collapsableBlock:Um,header:Zm,headerWithInfoTooltip:Xm,infoIcon:Km},Qm=d.memo(e=>{const{id:t,header:n,content:r,className:o,infoTooltipContent:s,...a}=e,[i,l]=g.useState(!1),u=()=>l(!i);return c.jsx(ic,{id:t,className:M(ir.collapsableBlock,o),header:s?c.jsxs("div",{className:ir.headerWithInfoTooltip,children:[c.jsx("span",{children:n}),c.jsx(Sa,{className:ir.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),c.jsx(Uo,{autohide:!1,delay:{show:0,hide:500},isOpen:i,placement:"left-start",target:"CollapsableBlockNewInfoTooltipIcon",toggle:u,children:s})]}):n,content:r,headerClassName:ir.header,...a})});var Jm=typeof document<"u",ep=function(){},Eo=Jm?g.useLayoutEffect:ep;const tp={...d},np=tp.useInsertionEffect,rp=np||(e=>e());function op(e){const t=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rp(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const sp={...d};let Qs=!1,ap=0;const Js=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ap++;function ip(){const[e,t]=d.useState(()=>Qs?Js():void 0);return Eo(()=>{e==null&&t(Js())},[]),d.useEffect(()=>{Qs=!0},[]),e}const cp=sp.useId,lp=cp||ip;let jo;process.env.NODE_ENV!=="production"&&(jo=new Set);function dp(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=jo)!=null&&e.has(o))){var s;(s=jo)==null||s.add(o),console.error(o)}}function up(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const fp=d.createContext(null),hp=d.createContext(null),mp=()=>{var e;return((e=d.useContext(fp))==null?void 0:e.id)||null},pp=()=>d.useContext(hp);function gp(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=lp(),s=d.useRef({}),[a]=d.useState(()=>up()),i=mp()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!Ae(m)&&dp("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=d.useState(r.reference),f=op((m,y,b)=>{s.current.openEvent=m?y:void 0,a.emit("openchange",{open:m,event:y,reason:b,nested:i}),n?.(m,y,b)}),h=d.useMemo(()=>({setPositionReference:u}),[]),p=d.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return d.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:p,events:a,floatingId:o,refs:h}),[t,f,p,a,o,h])}function vp(e){e===void 0&&(e={});const{nodeId:t}=e,n=gp({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,a]=d.useState(null),[i,l]=d.useState(null),f=o?.domReference||s,h=d.useRef(null),p=pp();Eo(()=>{f&&(h.current=f)},[f]);const m=ui({...e,elements:{...o,...i&&{reference:i}}}),y=d.useCallback(x=>{const k=Ae(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;l(k),m.refs.setReference(k)},[m.refs]),b=d.useCallback(x=>{(Ae(x)||x===null)&&(h.current=x,a(x)),(Ae(m.refs.reference.current)||m.refs.reference.current===null||x!==null&&!Ae(x))&&m.refs.setReference(x)},[m.refs]),v=d.useMemo(()=>({...m.refs,setReference:b,setPositionReference:y,domReference:h}),[m.refs,b,y]),_=d.useMemo(()=>({...m.elements,domReference:f}),[m.elements,f]),w=d.useMemo(()=>({...m,...r,refs:v,elements:_,nodeId:t}),[m,v,_,t,r]);return Eo(()=>{r.dataRef.current.floatingContext=w;const x=p?.nodesRef.current.find(k=>k.id===t);x&&(x.context=w)}),d.useMemo(()=>({...m,context:w,refs:v,elements:_}),[m,v,_,w])}const bp="_caption_1dyqk_1",_p="_fadeIn_1dyqk_1",yp="_caption_neutral_1dyqk_16",wp="_caption_error_1dyqk_20",xp="_caption_success_1dyqk_24",Cp="_fullWidth_1dyqk_38",co={caption:bp,fadeIn:_p,caption_neutral:yp,caption_error:wp,caption_success:xp,fullWidth:Cp},Ct=({children:e,isFullWidth:t,variant:n,type:r})=>{const o=n??r??"error";return c.jsx("p",{className:M(co.caption,co[`caption_${o}`],{[co.fullWidth]:t}),children:e})};const cc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const kp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Sp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const ea=e=>{const t=Sp(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Np={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ep=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const jp=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},l)=>g.createElement("svg",{ref:l,...Np,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:cc("lucide",o),...!s&&!Ep(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,f])=>g.createElement(u,f)),...Array.isArray(s)?s:[s]]));const Ln=(e,t)=>{const n=g.forwardRef(({className:r,...o},s)=>g.createElement(jp,{ref:s,iconNode:t,className:cc(`lucide-${kp(ea(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ea(e),n};const Mp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Op=Ln("calendar",Mp);const Dp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Rp=Ln("chevron-down",Dp);const Pp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Tp=Ln("chevron-left",Pp);const Ap=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ip=Ln("chevron-right",Ap);const Lp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Wp=Ln("circle-question-mark",Lp);var $p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fp=$p.reduce((e,t)=>{const n=Da(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Bp="Label",lc=d.forwardRef((e,t)=>c.jsx(Fp.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));lc.displayName=Bp;var dc=lc;const zp=Ta("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),uc=d.forwardRef(({className:e,...t},n)=>c.jsx(dc,{ref:n,className:J(zp(),e),...t}));uc.displayName=dc.displayName;const Hp="_label_uh1zg_5",Yp="_label__text_uh1zg_15",Vp="_label_inline_uh1zg_18",jn={label:Hp,label__text:Yp,label_inline:Vp},Mn=({htmlFor:e,children:t,className:n})=>c.jsx(uc,{htmlFor:e,className:M(jn.label,n),children:typeof t=="string"?c.jsx("div",{className:jn.label__text,children:t}):t}),qp="_labelRow_1kh14_1",Gp="_helpIcon_1kh14_9",Up="_helpIconSvg_1kh14_33",lo={labelRow:qp,helpIcon:Gp,helpIconSvg:Up},Lt=({htmlFor:e,children:t,required:n,tooltipContent:r,tooltipPopperClassName:o,className:s,labelClassName:a})=>{const i=g.useRef(null),l=typeof t=="string"&&n?`${t} *`:t;return r?c.jsxs("div",{className:M(lo.labelRow,s),children:[c.jsx(Mn,{className:M(jn.label_inline,a),htmlFor:e,children:l}),c.jsx("button",{ref:i,type:"button",className:lo.helpIcon,"aria-label":"Справка по полю",children:c.jsx(Wp,{className:lo.helpIconSvg,"aria-hidden":!0})}),c.jsx(Uo,{target:i,popperClassName:o,children:r})]}):c.jsx(Mn,{htmlFor:e,className:s,children:l})},Zp="_wrapper_18vmz_5",Xp="_wrapper_small_18vmz_18",Kp="_iconCross_18vmz_21",Qp="_iconCross_small_18vmz_29",cr={wrapper:Zp,wrapper_small:Xp,iconCross:Kp,iconCross_small:Qp},fc=g.memo(({className:e,children:t,onClick:n,isSmall:r})=>c.jsxs("div",{className:M(cr.wrapper,e,r&&cr.wrapper_small),children:[c.jsx("span",{children:t}),n&&c.jsx(ct,{className:M(cr.iconCross,{[cr.iconCross_small]:r}),onClick:o=>{o.stopPropagation(),n()}})]})),Jp="_wrapper_m05hf_5",e0="_container_m05hf_9",t0="_input_m05hf_9",n0="_error_m05hf_21",r0="_disabled_m05hf_24",o0="_tagContainer_m05hf_37",s0="_selectedOptionContainer_m05hf_42",a0="_selectedOption_m05hf_42",i0="_placeHolder_m05hf_54",c0="_iconContainer_m05hf_61",l0="_deleteIcon_m05hf_68",d0="_divider_m05hf_88",u0="_arrowIcon_m05hf_97",f0="_arrowIconExpanded_m05hf_112",h0="_dropdown_m05hf_116",m0="_dropdown_visible_m05hf_127",p0="_dropdown_table_m05hf_131",g0="_dropdownContent_m05hf_134",v0="_dropdownContent_table_m05hf_140",b0="_withSearch_m05hf_152",_0="_search_m05hf_155",y0="_search__icon_m05hf_168",w0="_search__input_m05hf_173",x0="_option_m05hf_203",C0="_option_active_m05hf_209",k0="_option_active_next_active_m05hf_215",S0="_option_active_prev_active_m05hf_219",N0="_tableTemplate_m05hf_246",E0="_tableContainer_m05hf_252",j0="_table_m05hf_246",M0="_activeRow_m05hf_294",O0="_checkboxCell_m05hf_301",D0="_checkbox_m05hf_301",R0="_footerTotal_m05hf_316",ae={wrapper:Jp,container:e0,input:t0,error:n0,disabled:r0,tagContainer:o0,selectedOptionContainer:s0,selectedOption:a0,placeHolder:i0,iconContainer:c0,deleteIcon:l0,divider:d0,arrowIcon:u0,arrowIconExpanded:f0,dropdown:h0,dropdown_visible:m0,dropdown_table:p0,dropdownContent:g0,dropdownContent_table:v0,withSearch:b0,search:_0,search__icon:y0,search__input:w0,option:x0,option_active:C0,option_active_next_active:k0,option_active_prev_active:S0,tableTemplate:N0,tableContainer:E0,table:j0,activeRow:M0,checkboxCell:O0,checkbox:D0,footerTotal:R0},P0=6,T0=({value:e,selectedOptionRender:t,tagRender:n,onDelete:r})=>e?Array.isArray(e)?c.jsx("div",{className:ae.tagContainer,children:e.map((o,s)=>n?c.jsx(g.Fragment,{children:n(o)},s):c.jsx(fc,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):c.jsx("span",{className:M(ae.selectedOption,"truncate"),children:t?t(e):e.label}):null,hc=({onSearch:e,searchClassName:t,searchValue:n,isLoading:r,placeholder:o})=>c.jsxs("div",{className:M(ae.search,t),children:[c.jsx(xr,{className:ae.search__icon}),c.jsx("input",{className:ae.search__input,value:n,onChange:s=>e?.(s.target.value),placeholder:o}),r&&c.jsx(Ue,{size:"extraSmall",className:ae.search__spinner})]}),A0=({value:e,options:t,optionClassName:n,optionRender:r,onChange:o,onSearch:s,searchClassName:a,isLoading:i,searchValue:l,searchPlaceholder:u})=>{const f=h=>Array.isArray(e)?e.some(p=>p.value===h.value):e?.value===h.value;return c.jsxs(c.Fragment,{children:[s&&c.jsx(hc,{onSearch:s,searchValue:l,searchClassName:a,isLoading:i,placeholder:u}),t&&t.length?c.jsx("ul",{className:M({[ae.withSearch]:s}),children:t.map((h,p)=>{const m=f(h),y=t[p-1]&&f(t[p-1]),b=t[p+1]&&f(t[p+1]);return c.jsx("li",{className:M(ae.option,{[ae.option_active]:m,[ae.option_active_prev_active]:y,[ae.option_active_next_active]:b},n),onClick:()=>o(h),children:c.jsx("span",{className:"block min-w-0 truncate",children:r?r(h):h.label})},`${h.value}${p}`)})}):!i&&c.jsx(It,{})]})},I0=({value:e,options:t,onChange:n,onDelete:r,onSearch:o,searchClassName:s,isLoading:a,searchValue:i,searchPlaceholder:l,columns:u,total:f,mode:h})=>{const p=v=>Array.isArray(e)?e.some(_=>_.value===v.value):e?.value===v.value,m=(v,_)=>{if(h==="multiple"&&_&&r){r(v);return}n(v)},y=f??t?.length??0,b=u??[];return c.jsxs("div",{className:ae.tableTemplate,children:[o&&c.jsx(hc,{onSearch:o,searchValue:i,searchClassName:s,isLoading:a,placeholder:l}),c.jsx("div",{className:ae.tableContainer,children:t&&t.length?c.jsxs("table",{className:ae.table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{className:ae.checkboxCell,"aria-label":""}),b.map(v=>c.jsx("th",{className:v.className,children:v.title},v.key))]})}),c.jsx("tbody",{children:t.map((v,_)=>{const w=p(v);return c.jsxs("tr",{className:M({[ae.activeRow]:w}),onClick:()=>m(v,w),children:[c.jsx("td",{className:ae.checkboxCell,children:c.jsx("input",{type:"checkbox",className:ae.checkbox,checked:w,readOnly:!0,tabIndex:-1,onClick:x=>x.stopPropagation(),onChange:()=>m(v,w)})}),b.map(x=>c.jsx("td",{className:x.className,children:x.render(v)},x.key))]},`${String(v.value)}${_}`)})})]}):!a&&c.jsx(It,{})}),c.jsxs("div",{className:ae.footerTotal,children:["Всего ",y]})]})},L0=({options:e,value:t,mode:n,placeholder:r,onChange:o,dropdownRender:s,optionRender:a,selectedOptionRender:i,dropdownIcon:l,tagRender:u,dropDownClassName:f,optionClassName:h,inputClassName:p,deleteIconClassName:m,onDelete:y,onClear:b,label:v,tooltipContent:_,tooltipPopperClassName:w,onSearch:x,searchClassName:k,searchPlaceholder:S,isLoading:C,disabled:N,onClose:E,portalTarget:D,error:O,template:T="list",columns:R,total:A})=>{const[I,X]=g.useState(!1),[P,q]=g.useState(!1),W=g.useRef(null),G=g.useRef(null),j=g.useRef(null),[K,ve]=g.useState(""),V=D??(P&&typeof document<"u"?document.body:void 0);g.useEffect(()=>{q(!0)},[]);const ne=g.useCallback(ce=>{ve(ce),x?.(ce)},[x]);g.useEffect(()=>{if(!I)return;const ce=De=>{W.current&&!W.current.contains(De.target)&&(!G.current||!G.current.contains(De.target))&&(ne(""),X(!1),E?.())};return document.addEventListener("mousedown",ce,!0),()=>{document.removeEventListener("mousedown",ce,!0)}},[ne,I,E]);const{refs:ee,floatingStyles:re,update:fe}=vp({strategy:"absolute",placement:"bottom-start",open:I,whileElementsMounted:(ce,De,ht)=>li(ce,De,ht,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[fi(P0),hi({fallbackPlacements:["top-start","bottom-start"]}),mi({apply({rects:ce,elements:De}){const ht=`${Math.round(ce.reference.width)}px`;De.floating.style.width!==ht&&(De.floating.style.width=ht)}})]}),Me=g.useCallback(ce=>{j.current=ce,ee.setReference(ce)},[ee]),se=g.useCallback(ce=>{G.current=ce,ee.setFloating(ce)},[ee]);g.useEffect(()=>{I&&fe()},[I,fe]);const $=g.useCallback(ce=>{o?.(ce),ne(""),E?.(),n==="single"&&X(!1)},[ne,n,o,E]),de=g.useCallback(()=>{const ce=c.jsx("div",{ref:se,className:M(ae.dropdown,{[ae.dropdown_visible]:I,[ae.dropdown_table]:T==="table"},f),style:re,onClick:De=>De.stopPropagation(),children:c.jsx("div",{className:M(ae.dropdownContent,T==="table"&&ae.dropdownContent_table),children:(()=>{const De=T==="table"?c.jsx(I0,{value:t,options:e,onChange:$,onDelete:y,...x&&{onSearch:ne},searchClassName:k,isLoading:C,searchValue:K,searchPlaceholder:S,columns:R,total:A,mode:n}):c.jsx(A0,{value:t,options:e,optionClassName:h,optionRender:a,onChange:$,...x&&{onSearch:ne},searchClassName:k,isLoading:C,searchValue:K,searchPlaceholder:S});return s?s(De):De})()})});return V?Rn.createPortal(ce,V):ce},[f,s,re,$,ne,C,I,x,h,a,e,V,T,R,A,n,y,k,S,K,se,t]),ke=g.useMemo(()=>P?de():null,[P,de]),Oe=Array.isArray(t)?!!t.length:!!t;return c.jsxs("div",{className:ae.wrapper,children:[v&&c.jsx(Lt,{htmlFor:"CustomSelectInput",tooltipContent:_,tooltipPopperClassName:w,children:v}),c.jsxs("div",{className:ae.container,ref:W,children:[c.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:Me,className:M(ae.input,{[ae.disabled]:N},O&&ae.error,p),onClick:()=>{t&&(ne(""),E?.()),X(ce=>!ce)},children:[c.jsx("div",{className:ae.selectedOptionContainer,children:Oe?c.jsx(T0,{value:t,selectedOptionRender:i,tagRender:u,onDelete:y}):c.jsx("span",{className:M(ae.placeHolder,"truncate"),children:r})}),c.jsxs("div",{className:ae.iconContainer,children:[b&&Oe&&c.jsxs(c.Fragment,{children:[c.jsx(xe,{variant:"text",className:M(ae.deleteIcon,m),onClick:ce=>{ce.stopPropagation(),b()},children:c.jsx("span",{children:c.jsx(ct,{})})}),c.jsx("div",{className:ae.divider,children:c.jsx("div",{})})]}),l||c.jsx(xe,{variant:"text",className:M(ae.arrowIcon,{[ae.arrowIconExpanded]:I}),children:c.jsx(dt,{})})]})]}),ke]}),O&&c.jsx(Ct,{children:O})]})};function W0(e){const t=$0(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(B0);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function $0(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=H0(o),i=z0(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var F0=Symbol("radix.slottable");function B0(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===F0}function z0(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function H0(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Lr="Dialog",[mc]=Sr(Lr),[Y0,tt]=mc(Lr),pc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=d.useRef(null),l=d.useRef(null),[u,f]=Vo({prop:r,defaultProp:o??!1,onChange:s,caller:Lr});return c.jsx(Y0,{scope:t,triggerRef:i,contentRef:l,contentId:Sn(),titleId:Sn(),descriptionId:Sn(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(h=>!h),[f]),modal:a,children:n})};pc.displayName=Lr;var gc="DialogTrigger",V0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(gc,n),s=qe(t,o.triggerRef);return c.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ts(o.open),...r,ref:s,onClick:je(e.onClick,o.onOpenToggle)})});V0.displayName=gc;var Jo="DialogPortal",[q0,vc]=mc(Jo,{forceMount:void 0}),bc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=tt(Jo,t);return c.jsx(q0,{scope:t,forceMount:n,children:d.Children.map(r,a=>c.jsx(Tt,{present:n||s.open,children:c.jsx(Rr,{asChild:!0,container:o,children:a})}))})};bc.displayName=Jo;var yr="DialogOverlay",_c=d.forwardRef((e,t)=>{const n=vc(yr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tt(yr,e.__scopeDialog);return s.modal?c.jsx(Tt,{present:r||s.open,children:c.jsx(U0,{...o,ref:t})}):null});_c.displayName=yr;var G0=W0("DialogOverlay.RemoveScroll"),U0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(yr,n);return c.jsx(Xo,{as:G0,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(Ie.div,{"data-state":ts(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Yt="DialogContent",yc=d.forwardRef((e,t)=>{const n=vc(Yt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tt(Yt,e.__scopeDialog);return c.jsx(Tt,{present:r||s.open,children:s.modal?c.jsx(Z0,{...o,ref:t}):c.jsx(X0,{...o,ref:t})})});yc.displayName=Yt;var Z0=d.forwardRef((e,t)=>{const n=tt(Yt,e.__scopeDialog),r=d.useRef(null),o=qe(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return zi(s)},[]),c.jsx(wc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:je(e.onFocusOutside,s=>s.preventDefault())})}),X0=d.forwardRef((e,t)=>{const n=tt(Yt,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(wc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),wc=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=tt(Yt,n),l=d.useRef(null),u=qe(t,l);return $i(),c.jsxs(c.Fragment,{children:[c.jsx(Zo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(Nr,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ts(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Q0,{titleId:i.titleId}),c.jsx(eg,{contentRef:l,descriptionId:i.descriptionId})]})]})}),es="DialogTitle",xc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(es,n);return c.jsx(Ie.h2,{id:o.titleId,...r,ref:t})});xc.displayName=es;var Cc="DialogDescription",kc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(Cc,n);return c.jsx(Ie.p,{id:o.descriptionId,...r,ref:t})});kc.displayName=Cc;var Sc="DialogClose",K0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(Sc,n);return c.jsx(Ie.button,{type:"button",...r,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});K0.displayName=Sc;function ts(e){return e?"open":"closed"}var Nc="DialogTitleWarning",[O4,Ec]=lf(Nc,{contentName:Yt,titleName:es,docsSlug:"dialog"}),Q0=({titleId:e})=>{const t=Ec(Nc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
42
42
|
|
|
43
43
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
44
44
|
|
|
45
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},eg="DialogDescriptionWarning",tg=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jc(eg).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ng=gc,rg=bc,Mc=yc,Oc=wc,Dc=Cc,Rc=Sc;const Wr=ng,og=rg,Pc=d.forwardRef(({className:e,...t},n)=>c.jsx(Mc,{ref:n,className:J("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Pc.displayName=Mc.displayName;const Wn=d.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(og,{children:[c.jsx(Pc,{}),c.jsx(Oc,{ref:r,className:J("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:t})]}));Wn.displayName=Oc.displayName;const $n=({className:e,...t})=>c.jsx("div",{className:J("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$n.displayName="DialogHeader";const $r=({className:e,...t})=>c.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$r.displayName="DialogFooter";const Fn=d.forwardRef(({className:e,...t},n)=>c.jsx(Dc,{ref:n,className:J("text-lg font-semibold leading-none tracking-tight",e),...t}));Fn.displayName=Dc.displayName;const sg=d.forwardRef(({className:e,...t},n)=>c.jsx(Rc,{ref:n,className:J("text-sm text-muted-foreground",e),...t}));sg.displayName=Rc.displayName;const ag="_wrapper_1jie0_5",ig="_input_1jie0_9",cg="_error_1jie0_29",lg="_disabled_1jie0_37",dg="_selectedOption_1jie0_43",ug="_placeholder_1jie0_54",fg="_actions_1jie0_58",hg="_clearButton_1jie0_65",mg="_selectButton_1jie0_74",pg="_dialogContent_1jie0_81",gg="_dialogHeader_1jie0_96",vg="_dialogTitle_1jie0_101",_g="_search_1jie0_108",bg="_searchIcon_1jie0_124",yg="_searchInput_1jie0_135",wg="_searchSpinner_1jie0_166",xg="_tableContainer_1jie0_170",Cg="_table_1jie0_170",kg="_activeRow_1jie0_213",Sg="_emptyState_1jie0_220",Ng="_dialogFooter_1jie0_227",Eg="_pagination_1jie0_235",jg="_footerActions_1jie0_236",Mg="_pageInfo_1jie0_255",_e={wrapper:ag,input:ig,error:cg,disabled:lg,selectedOption:dg,placeholder:ug,actions:fg,clearButton:hg,selectButton:mg,dialogContent:pg,dialogHeader:gg,dialogTitle:vg,search:_g,searchIcon:bg,searchInput:yg,searchSpinner:wg,tableContainer:xg,table:Cg,activeRow:kg,emptyState:Sg,dialogFooter:Ng,pagination:Eg,footerActions:jg,pageInfo:Mg},Og=8,Dg=350,ns=({value:e,placeholder:t,loadOptions:n,onChange:r,onClear:o,columns:s,label:a,tooltipContent:i,tooltipPopperClassName:l,title:u="Поиск сотрудника",searchPlaceholder:f="Введите запрос",selectButtonText:h="Выбрать",closeButtonText:p="Закрыть",manualButtonText:m="Добавить вручную",onManualAdd:b,pageSize:v=Og,debounceMs:_=Dg,disabled:y,error:w,className:x,inputClassName:k,selectedOptionRender:S})=>{const[C,N]=g.useState(!1),[E,D]=g.useState(""),[O,T]=g.useState(""),[R,A]=g.useState(1),[I,X]=g.useState([]),[P,q]=g.useState(),[W,G]=g.useState(!1),[j,K]=g.useState(!1),ve=g.useRef(0),V=g.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:$=>$.label},{key:"birthDate",title:"День рождения",render:$=>$.meta?.birthDate??"—"}],[s]),ne=P?Math.max(1,Math.ceil(P/v)):void 0,ee=R>1,re=ne?R<ne:W;g.useEffect(()=>{const $=window.setTimeout(()=>{T(E.trim()),A(1)},_);return()=>window.clearTimeout($)},[_,E]),g.useEffect(()=>{if(!C)return;const $=ve.current+1;ve.current=$,K(!0),n({search:O,page:R,pageSize:v}).then(de=>{ve.current===$&&(X(de.options),q(de.total),G(de.hasNextPage??!1))}).finally(()=>{ve.current===$&&K(!1)})},[O,C,n,R,v]);const fe=g.useCallback($=>{N($),$||(D(""),T(""),A(1))},[]),Me=g.useCallback($=>{r?.($),fe(!1)},[fe,r]),se=e?S?S(e):e.label:t;return c.jsxs("div",{className:M(_e.wrapper,x),children:[a&&c.jsx(Lt,{htmlFor:"DialogSelectInput",tooltipContent:i,tooltipPopperClassName:l,children:a}),c.jsxs("div",{id:"DialogSelectInput",role:"button",tabIndex:y?-1:0,className:M(_e.input,{[_e.disabled]:y,[_e.error]:w},k),onClick:()=>!y&&fe(!0),onKeyDown:$=>{!y&&($.key==="Enter"||$.key===" ")&&($.preventDefault(),fe(!0))},children:[c.jsx("span",{className:M(_e.selectedOption,{[_e.placeholder]:!e}),children:se}),c.jsxs("span",{className:_e.actions,children:[o&&e&&c.jsx(xe,{variant:"text",className:_e.clearButton,"aria-label":"Очистить выбранное значение",onClick:$=>{$.stopPropagation(),o()},children:c.jsx(ct,{})}),c.jsx(xe,{variant:"link",className:_e.selectButton,disabled:y,onClick:$=>{$.stopPropagation(),fe(!0)},children:h})]})]}),c.jsx(Wr,{open:C,onOpenChange:fe,children:c.jsxs(Wn,{className:_e.dialogContent,children:[c.jsx($n,{className:_e.dialogHeader,children:c.jsx(Fn,{className:_e.dialogTitle,children:u})}),c.jsxs("div",{className:_e.search,children:[c.jsx(xr,{className:_e.searchIcon}),c.jsx("input",{className:_e.searchInput,value:E,onChange:$=>D($.target.value),placeholder:f,autoFocus:!0}),j&&c.jsx(Ue,{size:"extraSmall",className:_e.searchSpinner})]}),c.jsxs("div",{className:_e.tableContainer,children:[c.jsxs("table",{className:_e.table,children:[c.jsx("thead",{children:c.jsx("tr",{children:V.map($=>c.jsx("th",{className:$.className,children:$.title},$.key))})}),c.jsx("tbody",{children:I.map($=>{const de=e?.value===$.value;return c.jsx("tr",{className:M({[_e.activeRow]:de}),onClick:()=>Me($),children:V.map(ke=>c.jsx("td",{className:ke.className,children:ke.render($)},ke.key))},String($.value))})})]}),!j&&!I.length&&c.jsx("div",{className:_e.emptyState,children:c.jsx(It,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})})]}),c.jsxs($r,{className:_e.dialogFooter,children:[c.jsxs("div",{className:_e.pagination,children:[c.jsx(xe,{variant:"secondary",size:"small",disabled:!ee||j,onClick:()=>A($=>Math.max(1,$-1)),children:"Назад"}),c.jsxs("span",{className:_e.pageInfo,children:["Страница ",R,ne?` из ${ne}`:""]}),c.jsx(xe,{variant:"secondary",size:"small",disabled:!re||j,onClick:()=>A($=>$+1),children:"Вперёд"})]}),c.jsxs("div",{className:_e.footerActions,children:[b&&c.jsx(xe,{variant:"primary",onClick:b,children:m}),c.jsx(xe,{variant:"secondary",onClick:()=>fe(!1),children:p})]})]})]})}),w&&c.jsx(Ct,{children:w})]})},Rg="_wrapper_17lcj_5",Pg="_input_17lcj_9",Tg="_error_17lcj_29",Ag="_disabled_17lcj_37",Ig="_selectedOption_17lcj_43",Lg="_placeholder_17lcj_54",Wg="_actions_17lcj_58",$g="_clearButton_17lcj_65",Fg="_selectButton_17lcj_74",Bg="_dialogContent_17lcj_81",zg="_dialogHeader_17lcj_96",Hg="_dialogTitle_17lcj_101",Yg="_search_17lcj_108",Vg="_searchIcon_17lcj_124",qg="_searchInput_17lcj_135",Gg="_searchSpinner_17lcj_166",Ug="_treeContainer_17lcj_170",Zg="_row_17lcj_180",Xg="_row_active_17lcj_195",Kg="_nodeLabel_17lcj_198",Qg="_row_match_17lcj_202",Jg="_chevron_17lcj_206",ev="_chevronExpanded_17lcj_231",tv="_chevronPlaceholder_17lcj_235",nv="_nodeSpinner_17lcj_241",rv="_emptyState_17lcj_253",ov="_loadingState_17lcj_260",sv="_dialogFooter_17lcj_267",pe={wrapper:Rg,input:Pg,error:Tg,disabled:Ag,selectedOption:Ig,placeholder:Lg,actions:Wg,clearButton:$g,selectButton:Fg,dialogContent:Bg,dialogHeader:zg,dialogTitle:Hg,search:Yg,searchIcon:Vg,searchInput:qg,searchSpinner:Gg,treeContainer:Ug,row:Zg,row_active:Xg,nodeLabel:Kg,row_match:Qg,chevron:Jg,chevronExpanded:ev,chevronPlaceholder:tv,nodeSpinner:nv,emptyState:rv,loadingState:ov,dialogFooter:sv},av=350,vt="__root__",iv=({value:e,placeholder:t,loadChildren:n,loadNodes:r,searchNodes:o,onChange:s,onClear:a,label:i,tooltipContent:l,tooltipPopperClassName:u,title:f="Выбор элемента",searchPlaceholder:h="Введите запрос",selectButtonText:p="Выбрать",closeButtonText:m="Закрыть",confirmButtonText:b="Выбрать",debounceMs:v=av,disabled:_,error:y,className:w,inputClassName:x,selectedOptionRender:k,nodeRender:S,leafConfirmOnly:C=!1})=>{const N=r??n,[E,D]=g.useState(!1),[O,T]=g.useState(""),[R,A]=g.useState(""),[I,X]=g.useState(()=>new Map),[P,q]=g.useState(()=>new Set),[W,G]=g.useState(()=>new Set),[j,K]=g.useState(()=>new Set),[ve,V]=g.useState(()=>new Set),[ne,ee]=g.useState(!1),[re,fe]=g.useState(null),Me=g.useRef(0),se=g.useRef(0);g.useEffect(()=>{if(!E||I.has(vt))return;const z=Me.current+1;Me.current=z,q(be=>{const me=new Set(be);return me.add(vt),me}),N({parentId:null,search:""}).then(be=>{Me.current===z&&X(me=>{const Se=new Map(me);return Se.set(vt,be.nodes),Se})}).finally(()=>{Me.current===z&&q(be=>{const me=new Set(be);return me.delete(vt),me})})},[E,N,I]),g.useEffect(()=>{const z=window.setTimeout(()=>A(O.trim()),v);return()=>window.clearTimeout(z)},[O,v]),g.useEffect(()=>{if(!E||!o)return;if(!R){V(new Set),K(new Set);return}const z=se.current+1;se.current=z,ee(!0),o(R).then(be=>{if(se.current!==z)return;const me=new Set,Se=new Set,Re=new Map;for(const Ze of be.matches){me.add(Ze.node.value);const Pe=[...Ze.path,Ze.node];for(let Ne=0;Ne<Pe.length-1;Ne++){const mt=Pe[Ne],pt=Pe[Ne+1];Se.add(mt.value);const Xe=mt.value;Re.has(Xe)||Re.set(Xe,new Map),Re.get(Xe).set(pt.value,pt)}if(Pe.length>0){const Ne=Pe[0];Re.has(vt)||Re.set(vt,new Map),Re.get(vt).set(Ne.value,Ne)}}V(me),K(Se),X(Ze=>{const Pe=new Map(Ze);return Re.forEach((Ne,mt)=>{const pt=Pe.get(mt)??[],Xe=new Map;pt.forEach(nt=>Xe.set(nt.value,nt)),Ne.forEach((nt,Zn)=>Xe.set(Zn,nt)),Pe.set(mt,Array.from(Xe.values()))}),Pe})}).finally(()=>{se.current===z&&ee(!1)})},[R,E,o]);const $=g.useCallback(z=>{D(z),z||(T(""),A(""),fe(null),V(new Set),K(new Set))},[]),de=g.useCallback(z=>{const be=z.value;I.has(be)||P.has(be)||(q(me=>{const Se=new Set(me);return Se.add(be),Se}),N({parentId:z.value,search:""}).then(me=>{X(Se=>{const Re=new Map(Se),Ze=Re.get(be)??[],Pe=new Map;return Ze.forEach(Ne=>Pe.set(Ne.value,Ne)),me.nodes.forEach(Ne=>Pe.set(Ne.value,Ne)),Re.set(be,Array.from(Pe.values())),Re})}).finally(()=>{q(me=>{const Se=new Set(me);return Se.delete(be),Se})}))},[I,N,P]),ke=g.useCallback(z=>{G(be=>{const me=new Set(be);return me.has(z.value)?me.delete(z.value):(me.add(z.value),de(z)),me})},[de]),Oe=g.useCallback(z=>{fe(z)},[]),ce=g.useCallback(()=>{C&&(!re||re.hasChildren===!0)||(re&&s?.(re),$(!1))},[$,C,s,re]),De=g.useCallback(z=>W.has(z)||j.has(z),[W,j]),ht=g.useCallback(z=>{if(!R||o)return z;const be=R.toLowerCase();return z.filter(me=>me.label.toLowerCase().includes(be))},[R,o]),Vn=(z,be)=>{const me=z.value,Se=I.get(me),Re=De(z.value),Ze=P.has(me),Pe=re?.value===z.value,Ne=e?.value===z.value,mt=ve.has(z.value),pt=Re&&Se&&Se.length>0,Xe=pt?ht(Se):[];return c.jsxs(g.Fragment,{children:[c.jsxs("div",{className:M(pe.row,{[pe.row_active]:Pe||Ne,[pe.row_match]:mt}),style:{paddingLeft:16+be*20},onClick:()=>Oe(z),children:[z.hasChildren?c.jsx("button",{type:"button",className:M(pe.chevron,{[pe.chevronExpanded]:Re}),onClick:nt=>{nt.stopPropagation(),ke(z)},"aria-label":Re?"Свернуть":"Раскрыть",children:c.jsx(dt,{})}):c.jsx("span",{className:pe.chevronPlaceholder}),c.jsx("span",{className:pe.nodeLabel,children:S?S(z):z.label}),Ze&&c.jsx(Ue,{size:"extraSmall",className:pe.nodeSpinner})]}),pt&&Xe.map(nt=>Vn(nt,be+1))]},String(z.value))},qn=I.get(vt)??[],Gn=ht(qn),qt=P.has(vt),zr=e?k?k(e):e.label:t,Hr=!qt&&!ne&&Gn.length===0,Un=g.useMemo(()=>ne||qt&&!!R,[ne,qt,R]),mn=!re||C&&re.hasChildren===!0;return c.jsxs("div",{className:M(pe.wrapper,w),children:[i&&c.jsx(Lt,{htmlFor:"TreeDialogSelectInput",tooltipContent:l,tooltipPopperClassName:u,children:i}),c.jsxs("div",{id:"TreeDialogSelectInput",role:"button",tabIndex:_?-1:0,className:M(pe.input,{[pe.disabled]:_,[pe.error]:y},x),onClick:()=>!_&&$(!0),onKeyDown:z=>{!_&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),$(!0))},children:[c.jsx("span",{className:M(pe.selectedOption,{[pe.placeholder]:!e}),children:zr}),c.jsxs("span",{className:pe.actions,children:[a&&e&&c.jsx(xe,{variant:"text",className:pe.clearButton,"aria-label":"Очистить выбранное значение",onClick:z=>{z.stopPropagation(),a()},children:c.jsx(ct,{})}),c.jsx(xe,{variant:"link",className:pe.selectButton,disabled:_,onClick:z=>{z.stopPropagation(),$(!0)},children:p})]})]}),c.jsx(Wr,{open:E,onOpenChange:$,children:c.jsxs(Wn,{className:pe.dialogContent,children:[c.jsx($n,{className:pe.dialogHeader,children:c.jsx(Fn,{className:pe.dialogTitle,children:f})}),c.jsxs("div",{className:pe.search,children:[c.jsx(xr,{className:pe.searchIcon}),c.jsx("input",{className:pe.searchInput,value:O,onChange:z=>T(z.target.value),placeholder:h,autoFocus:!0}),Un&&c.jsx(Ue,{size:"extraSmall",className:pe.searchSpinner})]}),c.jsx("div",{className:pe.treeContainer,children:qt&&qn.length===0?c.jsx("div",{className:pe.loadingState,children:c.jsx(Ue,{size:"small"})}):Hr?c.jsx("div",{className:pe.emptyState,children:c.jsx(It,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):Gn.map(z=>Vn(z,0))}),c.jsxs($r,{className:pe.dialogFooter,children:[c.jsx(xe,{variant:"secondary",onClick:()=>$(!1),children:m}),c.jsx(xe,{variant:"primary",disabled:mn,onClick:ce,children:b})]})]})}),y&&c.jsx(Ct,{children:y})]})},cv="_wrapper_1atx7_5",lv="_tabs_1atx7_10",dv="_tabItem_1atx7_20",uv="_active_1atx7_50",fv="_before_1atx7_65",hv="_after_1atx7_66",mv="_panel_1atx7_105",_t={wrapper:cv,tabs:lv,tabItem:dv,active:uv,before:fv,after:hv,panel:mv};function pv(e){return e.map((t,n)=>{if("value"in t&&"label"in t)return{key:t.value,label:t.label,className:t.className,needNotification:t.needNotification,header:t.header};const r=t;return{key:n,label:r.title,className:r.className,needNotification:r.needNotification,header:r.header}})}const gv=d.memo(({className:e,items:t=[],children:n,value:r,onValueChange:o,activeTab:s,onClick:a,tabsClassName:i})=>{const l=g.useMemo(()=>pv(t),[t]),u=g.useMemo(()=>{if(r!==void 0){const f=l.findIndex(h=>h.key===r);return f>=0?f:0}return s??0},[r,s,l]);return c.jsxs("div",{className:M(_t.wrapper,e),children:[c.jsx("div",{className:M(_t.tabs,i),children:l.map((f,h)=>f.label&&c.jsxs("div",{className:M(_t.tabItem,f.className,{[_t.active]:u===h,[_t.first]:h===0,[_t.last]:h===l.length-1}),style:{zIndex:u===h?l.length:h===0?0:l.length-h},onClick:p=>{p.stopPropagation(),o?o(f.key):a?.(h)},children:[u===h&&h!==0&&c.jsx("span",{className:_t.before}),f.label,u===h&&h!==l.length-1&&c.jsx("span",{className:_t.after})]},h))}),c.jsx("div",{className:_t.panel,children:n})]})}),vv="_wrapper_o6afc_1",_v="_wrapper_withLabels_o6afc_8",bv="_column_o6afc_12",yv="_step_o6afc_23",wv="_clickable_o6afc_46",xv="_step_inactive_o6afc_53",Cv="_step_current_o6afc_58",kv="_connector_o6afc_62",Sv="_connector_placeholder_o6afc_71",Nv="_connectorFloating_o6afc_76",Ev="_connector_active_o6afc_85",jv="_labelWrap_o6afc_89",Mv="_label_o6afc_89",Ov="_label_active_o6afc_104",Le={wrapper:vv,wrapper_withLabels:_v,column:bv,step:yv,clickable:wv,step_inactive:xv,step_current:Cv,connector:kv,connector_placeholder:Sv,connectorFloating:Nv,connector_active:Ev,labelWrap:jv,label:Mv,label_active:Ov},Dv=32,ta=Dv/2,Rv=e=>{if(e.length<=2)return e;const t=e[0],r=(e[e.length-1]-t)/(e.length-1);return e.map((o,s)=>t+r*s)},Pv=e=>e.slice(0,-1).map((t,n)=>{const r=t+ta,o=e[n+1]-ta;return{left:r,width:Math.max(0,o-r)}}),Tv=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,className:o})=>{const s=!!n,a=e.some(p=>!!p.label),i=g.useRef(null),l=g.useRef([]),[u,f]=g.useState([]);g.useLayoutEffect(()=>{if(!a||e.length<2){f([]);return}const p=()=>{const b=i.current;if(!b)return;const v=b.getBoundingClientRect(),_=[];for(const w of l.current.slice(0,e.length)){if(!w)return;const x=w.getBoundingClientRect();_.push(x.left-v.left+x.width/2)}const y=Rv(_);f(Pv(y))};if(p(),typeof ResizeObserver>"u")return;const m=new ResizeObserver(p);return i.current&&m.observe(i.current),l.current.forEach(b=>{b&&m.observe(b)}),()=>m.disconnect()},[a,e.length]);const h=(p,m)=>c.jsxs(c.Fragment,{children:[c.jsx("span",{className:M(Le.connector,{[Le.connector_active]:m,[Le.connector_placeholder]:a})}),a?c.jsx("span",{className:M(Le.connectorFloating,{[Le.connector_active]:m}),style:{left:`${u[p]?.left??0}px`,width:`${u[p]?.width??0}px`}}):null]});return c.jsx("div",{ref:i,className:M(Le.wrapper,o,{[Le.wrapper_withLabels]:a}),role:"list",children:e.map((p,m)=>{const b=m<t,v=m===t,_=m<=t,y=m===e.length-1,w=r&&b,x=p.content??(w?c.jsx(Ro,{}):m+1),k=c.jsx("button",{type:"button",ref:S=>{l.current[m]=S},className:M(Le.step,{[Le.step_inactive]:!_,[Le.step_current]:v,[Le.clickable]:s}),disabled:!s,onClick:()=>n?.(m),"aria-current":v?"step":void 0,"aria-label":typeof p.label=="string"?p.label:`Шаг ${m+1}`,children:x});return c.jsxs(g.Fragment,{children:[c.jsxs("div",{className:Le.column,role:"listitem",children:[k,p.label?c.jsx("div",{className:Le.labelWrap,children:c.jsx("span",{className:M(Le.label,{[Le.label_active]:_}),children:p.label})}):null]}),!y&&h(m,m<t)]},m)})})},Av="_container_a8dhq_5",Iv="_tabs_a8dhq_8",Lv="_line_a8dhq_15",Wv="_tabItem_a8dhq_25",$v="_header_a8dhq_38",Fv="_notificationChanges_a8dhq_46",Bv="_tabs_hasAnimatedIndicator_a8dhq_65",zv="_active_a8dhq_68",Et={container:Av,tabs:Iv,line:Lv,tabItem:Wv,header:$v,notificationChanges:Fv,tabs_hasAnimatedIndicator:Bv,active:zv};function Hv(e){return e.map((t,n)=>{if("value"in t&&"label"in t)return{key:t.value,label:t.label,className:t.className,header:t.header};const r=t;return{key:n,label:r.title,className:r.className,header:r.header}})}const Yv=d.memo(({items:e=[],value:t,onValueChange:n,activeTab:r,className:o,tabsClassName:s,changesIndex:a,badgeValue:i,sliderClassName:l,onClick:u})=>{const f=g.useMemo(()=>Hv(e),[e]),h=g.useMemo(()=>{if(t!==void 0){const _=f.findIndex(y=>y.key===t);return _>=0?_:0}return r!==void 0?r:0},[t,r,f]),p=g.useRef(null),m=g.useRef(null),[b,v]=g.useState({left:0,width:0});return g.useEffect(()=>{const _=p.current;if(!_)return;const y=()=>{const k={left:_.offsetLeft||0,width:_.clientWidth||0};v(S=>S.left===k.left&&S.width===k.width?S:k)},w=()=>{m.current!==null&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(()=>{m.current=null,y()})};w();const x=new ResizeObserver(()=>{w()});return x.observe(_),()=>{x.disconnect(),m.current!==null&&(cancelAnimationFrame(m.current),m.current=null)}},[h]),c.jsx("div",{className:M(Et.container,o),children:c.jsxs("div",{className:M(Et.tabs,Et.tabs_hasAnimatedIndicator,s),children:[f.map((_,y)=>_.label&&c.jsxs("div",{ref:h===y?p:void 0,className:M(Et.tabItem,_.className,{[Et.active]:h===y}),onClick:w=>{w.stopPropagation(),n?n(_.key):u?.(y)},children:[_.header&&c.jsx("div",{className:Et.header,children:_.header}),_.label,a===y&&c.jsx("div",{className:Et.notificationChanges,children:i!=null?i>99?"99+":String(i):null})]},y)),c.jsx("div",{className:M(Et.line,l),style:{left:b.left,width:b.width}})]})})}),Vv="_wrapper_1rc3x_5",qv="_container_1rc3x_10",Gv="_input_1rc3x_14",Uv="_error_1rc3x_49",Zv="_disabled_1rc3x_55",gn={wrapper:Vv,container:qv,input:Gv,error:Uv,disabled:Zv},Tc=g.forwardRef(({label:e,error:t,disabled:n,className:r,inputClassName:o,tooltipContent:s,tooltipPopperClassName:a,id:i,...l},u)=>{const f=g.useId(),h=i??f;return c.jsxs("div",{className:M(gn.wrapper,r),children:[e&&c.jsx(Lt,{htmlFor:h,tooltipContent:s,tooltipPopperClassName:a,children:e}),c.jsx("div",{className:gn.container,children:c.jsx("input",{ref:u,id:h,disabled:n,"aria-invalid":t?!0:void 0,className:M(gn.input,{[gn.disabled]:n,[gn.error]:!!t},o),...l})}),t&&c.jsx(Ct,{children:t})]})});Tc.displayName="Input";const Xv="_wrapper_kqfbf_5",Kv="_container_kqfbf_10",Qv="_textarea_kqfbf_14",Jv="_error_kqfbf_50",e2="_disabled_kqfbf_56",vn={wrapper:Xv,container:Kv,textarea:Qv,error:Jv,disabled:e2},Ac=g.forwardRef(({label:e,error:t,hint:n,hintVariant:r,disabled:o,className:s,textareaClassName:a,tooltipContent:i,tooltipPopperClassName:l,id:u,...f},h)=>{const p=g.useId(),m=u??p;return c.jsxs("div",{className:M(vn.wrapper,s),children:[e&&c.jsx(Lt,{htmlFor:m,tooltipContent:i,tooltipPopperClassName:l,children:e}),c.jsx("div",{className:vn.container,children:c.jsx("textarea",{ref:h,id:m,disabled:o,"aria-invalid":t?!0:void 0,className:M(vn.textarea,{[vn.disabled]:o,[vn.error]:!!t},a),...f})}),t&&c.jsx(Ct,{children:t}),!t&&n&&c.jsx(Ct,{variant:r??"neutral",children:n})]})});Ac.displayName="Textarea";function t2(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const n2={},wn={};function zt(e,t){try{const r=(n2[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in wn?wn[r]:na(r,r.split(":"))}catch{if(e in wn)return wn[e];const n=e?.match(r2);return n?na(e,n.slice(1)):NaN}}const r2=/([+-]\d\d):?(\d\d)?/;function na(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return wn[e]=n*60+r>0?n*60+r+o:n*60-r-o}class it extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(zt(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Ic(this),Mo(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new it(...n,t):new it(Date.now(),t)}withTimeZone(t){return new it(+this,t)}getTimezoneOffset(){const t=-zt(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Mo(this),+this}[Symbol.for("constructDateFrom")](t){return new it(+new Date(t),this.timeZone)}}const ra=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!ra.test(e))return;const t=e.replace(ra,"$1UTC");it.prototype[t]&&(e.startsWith("get")?it.prototype[e]=function(){return this.internal[t]()}:(it.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),o2(this),+this},it.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Mo(this),+this}))});function Mo(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-zt(e.timeZone,e)*60))}function o2(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ic(e)}function Ic(e){const t=zt(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),a=o-s,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const u=new Date(+e);u.setUTCSeconds(0);const f=o>0?u.getSeconds():(u.getSeconds()-60)%60,h=Math.round(-(zt(e.timeZone,e)*60))%60;(h||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+h),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+h+f));const p=zt(e.timeZone,e),m=p>0?Math.floor(p):Math.ceil(p),v=-new Date(+e).getTimezoneOffset()-m,_=m!==n,y=v-l;if(_&&y){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+y);const w=zt(e.timeZone,e),x=w>0?Math.floor(w):Math.ceil(w),k=m-x;k&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+k),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+k))}}class Te extends it{static tz(t,...n){return n.length?new Te(...n,t):new Te(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${t2(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Te(+this,t)}[Symbol.for("constructDateFrom")](t){return new Te(+new Date(t),this.timeZone)}}const Lc=6048e5,s2=864e5,oa=Symbol.for("constructDateFrom");function Ce(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&oa in e?e[oa](t):e instanceof Date?new e.constructor(t):new Date(t)}function ge(e,t){return Ce(t||e,e)}function Wc(e,t,n){const r=ge(e,n?.in);return isNaN(t)?Ce(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function $c(e,t,n){const r=ge(e,n?.in);if(isNaN(t))return Ce(e,NaN);if(!t)return r;const o=r.getDate(),s=Ce(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const a=s.getDate();return o>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let a2={};function Bn(){return a2}function cn(e,t){const n=Bn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ge(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function On(e,t){return cn(e,{...t,weekStartsOn:1})}function Fc(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=Ce(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=On(o),a=Ce(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const i=On(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function sa(e){const t=ge(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function un(e,...t){const n=Ce.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Dn(e,t){const n=ge(e,t?.in);return n.setHours(0,0,0,0),n}function rs(e,t,n){const[r,o]=un(n?.in,e,t),s=Dn(r),a=Dn(o),i=+s-sa(s),l=+a-sa(a);return Math.round((i-l)/s2)}function i2(e,t){const n=Fc(e,t),r=Ce(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),On(r)}function c2(e,t,n){return Wc(e,t*7,n)}function l2(e,t,n){return $c(e,t*12,n)}function d2(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ce.bind(null,o));const s=ge(o,r);(!n||n<s||isNaN(+s))&&(n=s)}),Ce(r,n||NaN)}function u2(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ce.bind(null,o));const s=ge(o,r);(!n||n>s||isNaN(+s))&&(n=s)}),Ce(r,n||NaN)}function f2(e,t,n){const[r,o]=un(n?.in,e,t);return+Dn(r)==+Dn(o)}function Bc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function h2(e){return!(!Bc(e)&&typeof e!="number"||isNaN(+ge(e)))}function zc(e,t,n){const[r,o]=un(n?.in,e,t),s=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return s*12+a}function m2(e,t){const n=ge(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Hc(e,t){const[n,r]=un(e,t.start,t.end);return{start:n,end:r}}function p2(e,t){const{start:n,end:r}=Hc(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let i=1;const l=[];for(;+a<=s;)l.push(Ce(n,a)),a.setMonth(a.getMonth()+i);return o?l.reverse():l}function g2(e,t){const n=ge(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function v2(e,t){const n=ge(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Yc(e,t){const n=ge(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _2(e,t){const{start:n,end:r}=Hc(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let i=1;const l=[];for(;+a<=s;)l.push(Ce(n,a)),a.setFullYear(a.getFullYear()+i);return o?l.reverse():l}function Vc(e,t){const n=Bn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ge(e,t?.in),s=o.getDay(),a=(s<r?-7:0)+6-(s-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function b2(e,t){return Vc(e,{...t,weekStartsOn:1})}const y2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},w2=(e,t,n)=>{let r;const o=y2[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function uo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const x2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},C2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},k2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},S2={date:uo({formats:x2,defaultWidth:"full"}),time:uo({formats:C2,defaultWidth:"full"}),dateTime:uo({formats:k2,defaultWidth:"full"})},N2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},E2=(e,t,n,r)=>N2[e];function _n(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):a;o=e.formattingValues[i]||e.formattingValues[a]}else{const a=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const j2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},M2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},O2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},D2={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},R2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},P2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},T2=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},A2={ordinalNumber:T2,era:_n({values:j2,defaultWidth:"wide"}),quarter:_n({values:M2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_n({values:O2,defaultWidth:"wide"}),day:_n({values:D2,defaultWidth:"wide"}),dayPeriod:_n({values:R2,defaultWidth:"wide",formattingValues:P2,defaultFormattingWidth:"wide"})};function bn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?L2(i,h=>h.test(a)):I2(i,h=>h.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(a.length);return{value:u,rest:f}}}function I2(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function L2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function W2(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const i=t.slice(o.length);return{value:a,rest:i}}}const $2=/^(\d+)(th|st|nd|rd)?/i,F2=/\d+/i,B2={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},z2={any:[/^b/i,/^(a|c)/i]},H2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Y2={any:[/1/i,/2/i,/3/i,/4/i]},V2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},q2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},G2={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},U2={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Z2={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},X2={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},K2={ordinalNumber:W2({matchPattern:$2,parsePattern:F2,valueCallback:e=>parseInt(e,10)}),era:bn({matchPatterns:B2,defaultMatchWidth:"wide",parsePatterns:z2,defaultParseWidth:"any"}),quarter:bn({matchPatterns:H2,defaultMatchWidth:"wide",parsePatterns:Y2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:bn({matchPatterns:V2,defaultMatchWidth:"wide",parsePatterns:q2,defaultParseWidth:"any"}),day:bn({matchPatterns:G2,defaultMatchWidth:"wide",parsePatterns:U2,defaultParseWidth:"any"}),dayPeriod:bn({matchPatterns:Z2,defaultMatchWidth:"any",parsePatterns:X2,defaultParseWidth:"any"})},Jt={code:"en-US",formatDistance:w2,formatLong:S2,formatRelative:E2,localize:A2,match:K2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Q2(e,t){const n=ge(e,t?.in);return rs(n,Yc(n))+1}function os(e,t){const n=ge(e,t?.in),r=+On(n)-+i2(n);return Math.round(r/Lc)+1}function qc(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=Bn(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Ce(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const i=cn(a,t),l=Ce(t?.in||e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=cn(l,t);return+n>=+i?r+1:+n>=+u?r:r-1}function J2(e,t){const n=Bn(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=qc(e,t),s=Ce(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),cn(s,t)}function ss(e,t){const n=ge(e,t?.in),r=+cn(n,t)-+J2(n,t);return Math.round(r/Lc)+1}function he(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const jt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return he(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):he(n+1,2)},d(e,t){return he(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return he(e.getHours()%12||12,t.length)},H(e,t){return he(e.getHours(),t.length)},m(e,t){return he(e.getMinutes(),t.length)},s(e,t){return he(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return he(o,t.length)}},Kt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},aa={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return jt.y(e,t)},Y:function(e,t,n,r){const o=qc(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return he(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):he(s,t.length)},R:function(e,t){const n=Fc(e);return he(n,t.length)},u:function(e,t){const n=e.getFullYear();return he(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return he(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return he(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return jt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return he(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=ss(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):he(o,t.length)},I:function(e,t,n){const r=os(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):he(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):jt.d(e,t)},D:function(e,t,n){const r=Q2(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):he(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return he(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return he(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return he(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Kt.noon:r===0?o=Kt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Kt.evening:r>=12?o=Kt.afternoon:r>=4?o=Kt.morning:o=Kt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return jt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):jt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):he(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):he(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):jt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):jt.s(e,t)},S:function(e,t){return jt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return ca(r);case"XXXX":case"XX":return Bt(r);default:return Bt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return ca(r);case"xxxx":case"xx":return Bt(r);default:return Bt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ia(r,":");default:return"GMT"+Bt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ia(r,":");default:return"GMT"+Bt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return he(r,t.length)},T:function(e,t,n){return he(+e,t.length)}};function ia(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+he(s,2)}function ca(e,t){return e%60===0?(e>0?"-":"+")+he(Math.abs(e)/60,2):Bt(e,t)}function Bt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=he(Math.trunc(r/60),2),s=he(r%60,2);return n+o+t+s}const la=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Gc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},e_=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return la(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",la(r,t)).replace("{{time}}",Gc(o,t))},t_={p:Gc,P:e_},n_=/^D+$/,r_=/^Y+$/,o_=["D","DD","YY","YYYY"];function s_(e){return n_.test(e)}function a_(e){return r_.test(e)}function i_(e,t,n){const r=c_(e,t,n);if(console.warn(r),o_.includes(e))throw new RangeError(r)}function c_(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const l_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,u_=/^'([^]*?)'?$/,f_=/''/g,h_=/[a-zA-Z]/;function xn(e,t,n){const r=Bn(),o=n?.locale??r.locale??Jt,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=ge(e,n?.in);if(!h2(i))throw new RangeError("Invalid time value");let l=t.match(d_).map(f=>{const h=f[0];if(h==="p"||h==="P"){const p=t_[h];return p(f,o.formatLong)}return f}).join("").match(l_).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const h=f[0];if(h==="'")return{isToken:!1,value:m_(f)};if(aa[h])return{isToken:!0,value:f};if(h.match(h_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return l.map(f=>{if(!f.isToken)return f.value;const h=f.value;(!n?.useAdditionalWeekYearTokens&&a_(h)||!n?.useAdditionalDayOfYearTokens&&s_(h))&&i_(h,t,String(e));const p=aa[h[0]];return p(i,h,o.localize,u)}).join("")}function m_(e){const t=e.match(u_);return t?t[1].replace(f_,"'"):e}function p_(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=n.getMonth(),s=Ce(n,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function g_(e,t){return ge(e,t?.in).getMonth()}function v_(e,t){return ge(e,t?.in).getFullYear()}function __(e,t){return+ge(e)>+ge(t)}function b_(e,t){return+ge(e)<+ge(t)}function y_(e,t,n){const[r,o]=un(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function w_(e,t,n){const[r,o]=un(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function x_(e,t,n){const r=ge(e,n?.in),o=r.getFullYear(),s=r.getDate(),a=Ce(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const i=p_(a);return r.setMonth(t,Math.min(s,i)),r}function C_(e,t,n){const r=ge(e,n?.in);return isNaN(+r)?Ce(e,NaN):(r.setFullYear(t),r)}const da=5,k_=4;function S_(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),s=t.addDays(o,da*7-1);return t.getMonth(e)===t.getMonth(s)?da:k_}function Uc(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function N_(e,t){const n=Uc(e,t),r=S_(e,t);return t.addDays(n,r*7-1)}const Zc={...Jt,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>xn(a,i,{locale:Jt,...n});let s=o(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>xn(o,s,{locale:Jt,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>xn(a,i,{locale:Jt,...n});let s=o(e,"PPPP");return t?.today&&(s=`Today, ${s}`),s},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>xn(o,s,{locale:Jt,...t}),r(e,"cccc")}}};class Ve{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Te.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,s)=>this.overrides?.newDate?this.overrides.newDate(r,o,s):this.options.timeZone?new Te(r,o,s,this.options.timeZone):new Date(r,o,s),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):Wc(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):$c(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):c2(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):l2(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):rs(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):zc(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):p2(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):_2(r),s=new Set(o.map(i=>this.getYear(i)));if(s.size===o.length)return o;const a=[];return s.forEach(i=>{a.push(new Date(i,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):N_(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):b2(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):m2(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Vc(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):v2(r),this.format=(r,o,s)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):xn(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):os(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):g_(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):v_(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):ss(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):__(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):b_(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Bc(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):f2(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):y_(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):w_(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):d2(r),this.min=r=>this.overrides?.min?this.overrides.min(r):u2(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):x_(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):C_(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Uc(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Dn(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):On(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):g2(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):cn(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Yc(r),this.options={locale:Zc,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&Ve.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,s=n?.code;if(s&&Ve.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}Ve.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const ft=new Ve;class Xc{constructor(t,n,r=ft){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class E_{constructor(t,n){this.date=t,this.weeks=n}}class j_{constructor(t,n){this.days=n,this.weekNumber=t}}function M_(e){return g.createElement("button",{...e})}function O_(e){return g.createElement("span",{...e})}function D_(e){const{size:t=24,orientation:n="left",className:r}=e;return g.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&g.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&g.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&g.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&g.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function R_(e){const{day:t,modifiers:n,...r}=e;return g.createElement("td",{...r})}function P_(e){const{day:t,modifiers:n,...r}=e,o=g.useRef(null);return g.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),g.createElement("button",{ref:o,...r})}var H;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(H||(H={}));var ye;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(ye||(ye={}));var Je;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Je||(Je={}));var ze;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(ze||(ze={}));function T_(e){const{options:t,className:n,components:r,classNames:o,...s}=e,a=[o[H.Dropdown],n].join(" "),i=t?.find(({value:l})=>l===s.value);return g.createElement("span",{"data-disabled":s.disabled,className:o[H.DropdownRoot]},g.createElement(r.Select,{className:a,...s},t?.map(({value:l,label:u,disabled:f})=>g.createElement(r.Option,{key:l,value:l,disabled:f},u))),g.createElement("span",{className:o[H.CaptionLabel],"aria-hidden":!0},i?.label,g.createElement(r.Chevron,{orientation:"down",size:18,className:o[H.Chevron]})))}function A_(e){return g.createElement("div",{...e})}function I_(e){return g.createElement("div",{...e})}function L_(e){const{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r},e.children)}function W_(e){const{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r})}function $_(e){return g.createElement("table",{...e})}function F_(e){return g.createElement("div",{...e})}const Kc=g.createContext(void 0);function zn(){const e=g.useContext(Kc);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function B_(e){const{components:t}=zn();return g.createElement(t.Dropdown,{...e})}function z_(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...s}=e,{components:a,classNames:i,labels:{labelPrevious:l,labelNext:u}}=zn(),f=g.useCallback(p=>{o&&n?.(p)},[o,n]),h=g.useCallback(p=>{r&&t?.(p)},[r,t]);return g.createElement("nav",{...s},g.createElement(a.PreviousMonthButton,{type:"button",className:i[H.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:h},g.createElement(a.Chevron,{disabled:r?void 0:!0,className:i[H.Chevron],orientation:"left"})),g.createElement(a.NextMonthButton,{type:"button",className:i[H.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:f},g.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[H.Chevron]})))}function H_(e){const{components:t}=zn();return g.createElement(t.Button,{...e})}function Y_(e){return g.createElement("option",{...e})}function V_(e){const{components:t}=zn();return g.createElement(t.Button,{...e})}function q_(e){const{rootRef:t,...n}=e;return g.createElement("div",{...n,ref:t})}function G_(e){return g.createElement("select",{...e})}function U_(e){const{week:t,...n}=e;return g.createElement("tr",{...n})}function Z_(e){return g.createElement("th",{...e})}function X_(e){return g.createElement("thead",{"aria-hidden":!0},g.createElement("tr",{...e}))}function K_(e){const{week:t,...n}=e;return g.createElement("th",{...n})}function Q_(e){return g.createElement("th",{...e})}function J_(e){return g.createElement("tbody",{...e})}function eb(e){const{components:t}=zn();return g.createElement(t.Dropdown,{...e})}const tb=Object.freeze(Object.defineProperty({__proto__:null,Button:M_,CaptionLabel:O_,Chevron:D_,Day:R_,DayButton:P_,Dropdown:T_,DropdownNav:A_,Footer:I_,Month:L_,MonthCaption:W_,MonthGrid:$_,Months:F_,MonthsDropdown:B_,Nav:z_,NextMonthButton:H_,Option:Y_,PreviousMonthButton:V_,Root:q_,Select:G_,Week:U_,WeekNumber:K_,WeekNumberHeader:Q_,Weekday:Z_,Weekdays:X_,Weeks:J_,YearsDropdown:eb},Symbol.toStringTag,{value:"Module"}));function bt(e,t,n=!1,r=ft){let{from:o,to:s}=e;const{differenceInCalendarDays:a,isSameDay:i}=r;return o&&s?(a(s,o)<0&&([o,s]=[s,o]),a(t,o)>=(n?1:0)&&a(s,t)>=(n?1:0)):!n&&s?i(s,t):!n&&o?i(o,t):!1}function as(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Fr(e){return!!(e&&typeof e=="object"&&"from"in e)}function is(e){return!!(e&&typeof e=="object"&&"after"in e)}function cs(e){return!!(e&&typeof e=="object"&&"before"in e)}function Qc(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Jc(e,t){return Array.isArray(e)&&e.every(t.isDate)}function yt(e,t,n=ft){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:s,isAfter:a}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(Jc(i,n))return i.some(l=>o(e,l));if(Fr(i))return bt(i,e,!1,n);if(Qc(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(as(i)){const l=s(i.before,e),u=s(i.after,e),f=l>0,h=u<0;return a(i.before,i.after)?h&&f:f||h}return is(i)?s(e,i.after)>0:cs(i)?s(i.before,e)>0:typeof i=="function"?i(e):!1})}function nb(e,t,n,r,o){const{disabled:s,hidden:a,modifiers:i,showOutsideDays:l,broadcastCalendar:u,today:f=o.today()}=t,{isSameDay:h,isSameMonth:p,startOfMonth:m,isBefore:b,endOfMonth:v,isAfter:_}=o,y=n&&m(n),w=r&&v(r),x={[ye.focused]:[],[ye.outside]:[],[ye.disabled]:[],[ye.hidden]:[],[ye.today]:[]},k={};for(const S of e){const{date:C,displayMonth:N}=S,E=!!(N&&!p(C,N)),D=!!(y&&b(C,y)),O=!!(w&&_(C,w)),T=!!(s&&yt(C,s,o)),R=!!(a&&yt(C,a,o))||D||O||!u&&!l&&E||u&&l===!1&&E,A=h(C,f);E&&x.outside.push(S),T&&x.disabled.push(S),R&&x.hidden.push(S),A&&x.today.push(S),i&&Object.keys(i).forEach(I=>{const X=i?.[I];X&&yt(C,X,o)&&(k[I]?k[I].push(S):k[I]=[S])})}return S=>{const C={[ye.focused]:!1,[ye.disabled]:!1,[ye.hidden]:!1,[ye.outside]:!1,[ye.today]:!1},N={};for(const E in x){const D=x[E];C[E]=D.some(O=>O===S)}for(const E in k)N[E]=k[E].some(D=>D===S);return{...C,...N}}}function rb(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[s])=>(n[s]?o.push(n[s]):t[ye[s]]?o.push(t[ye[s]]):t[Je[s]]&&o.push(t[Je[s]]),o),[t[H.Day]])}function ob(e){return{...tb,...e}}function sb(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function ls(){const e={};for(const t in H)e[H[t]]=`rdp-${H[t]}`;for(const t in ye)e[ye[t]]=`rdp-${ye[t]}`;for(const t in Je)e[Je[t]]=`rdp-${Je[t]}`;for(const t in ze)e[ze[t]]=`rdp-${ze[t]}`;return e}function el(e,t,n){return(n??new Ve(t)).formatMonthYear(e)}const ab=el;function ib(e,t,n){return(n??new Ve(t)).format(e,"d")}function cb(e,t=ft){return t.format(e,"LLLL")}function lb(e,t,n){return(n??new Ve(t)).format(e,"cccccc")}function db(e,t=ft){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function ub(){return""}function tl(e,t=ft){return t.format(e,"yyyy")}const fb=tl,hb=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:el,formatDay:ib,formatMonthCaption:ab,formatMonthDropdown:cb,formatWeekNumber:db,formatWeekNumberHeader:ub,formatWeekdayName:lb,formatYearCaption:fb,formatYearDropdown:tl},Symbol.toStringTag,{value:"Module"}));function mb(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...hb,...e}}function ds(e,t,n,r){let o=(r??new Ve(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const pb=ds;function us(e,t,n){return(n??new Ve(t)).formatMonthYear(e)}const gb=us;function nl(e,t,n,r){let o=(r??new Ve(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function rl(e){return"Choose the Month"}function ol(){return""}const vb="Go to the Next Month";function sl(e,t){return vb}function al(e){return"Go to the Previous Month"}function il(e,t,n){return(n??new Ve(t)).format(e,"cccc")}function cl(e,t){return`Week ${e}`}function ll(e){return"Week Number"}function dl(e){return"Choose the Year"}const _b=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:gb,labelDay:pb,labelDayButton:ds,labelGrid:us,labelGridcell:nl,labelMonthDropdown:rl,labelNav:ol,labelNext:sl,labelPrevious:al,labelWeekNumber:cl,labelWeekNumberHeader:ll,labelWeekday:il,labelYearDropdown:dl},Symbol.toStringTag,{value:"Module"})),Ke=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function bb(e,t){const n=t.locale?.labels??{};return{..._b,...e??{},labelDayButton:Ke(ds,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Ke(rl,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Ke(sl,e?.labelNext,n.labelNext),labelPrevious:Ke(al,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Ke(cl,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Ke(dl,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Ke(us,e?.labelGrid,n.labelGrid),labelGridcell:Ke(nl,e?.labelGridcell,n.labelGridcell),labelNav:Ke(ol,e?.labelNav,n.labelNav),labelWeekNumberHeader:Ke(ll,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Ke(il,e?.labelWeekday,n.labelWeekday)}}function yb(e,t,n,r,o){const{startOfMonth:s,startOfYear:a,endOfYear:i,eachMonthOfInterval:l,getMonth:u}=o;return l({start:a(e),end:i(e)}).map(p=>{const m=r.formatMonthDropdown(p,o),b=u(p),v=t&&p<s(t)||n&&p>s(n)||!1;return{value:b,label:m,disabled:v}})}function wb(e,t={},n={}){let r={...t?.[H.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function xb(e,t,n,r){const o=r??e.today(),s=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let i=0;i<7;i++){const l=e.addDays(s,i);a.push(l)}return a}function Cb(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:a,eachYearOfInterval:i,getYear:l}=r,u=s(e),f=a(t),h=i({start:u,end:f});return o&&h.reverse(),h.map(p=>{const m=n.formatYearDropdown(p,r);return{value:l(p),label:m,disabled:!1}})}function kb(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,s=i=>{const l=typeof i=="number"||typeof i=="string"?new Date(i):i;return new Te(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,e)},a=i=>{const l=s(i);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>s(Te.tz(e)),newDate:(i,l,u)=>new Te(i,l,u,12,0,0,e),startOfDay:i=>s(i),startOfWeek:(i,l)=>{const u=s(i),f=l?.weekStartsOn??o,h=(u.getDay()-f+7)%7;return u.setDate(u.getDate()-h),u},startOfISOWeek:i=>{const l=s(i),u=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-u),l},startOfMonth:i=>{const l=s(i);return l.setDate(1),l},startOfYear:i=>{const l=s(i);return l.setMonth(0,1),l},endOfWeek:(i,l)=>{const u=s(i),p=(((l?.weekStartsOn??o)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+p),u},endOfISOWeek:i=>{const l=s(i),u=(7-l.getDay())%7;return l.setDate(l.getDate()+u),l},endOfMonth:i=>{const l=s(i);return l.setMonth(l.getMonth()+1,0),l},endOfYear:i=>{const l=s(i);return l.setMonth(11,31),l},eachMonthOfInterval:i=>{const l=s(i.start),u=s(i.end),f=[],h=new Te(l.getFullYear(),l.getMonth(),1,12,0,0,e),p=u.getFullYear()*12+u.getMonth();for(;h.getFullYear()*12+h.getMonth()<=p;)f.push(new Te(h,e)),h.setMonth(h.getMonth()+1,1);return f},addDays:(i,l)=>{const u=s(i);return u.setDate(u.getDate()+l),u},addWeeks:(i,l)=>{const u=s(i);return u.setDate(u.getDate()+l*7),u},addMonths:(i,l)=>{const u=s(i);return u.setMonth(u.getMonth()+l),u},addYears:(i,l)=>{const u=s(i);return u.setFullYear(u.getFullYear()+l),u},eachYearOfInterval:i=>{const l=s(i.start),u=s(i.end),f=[],h=new Te(l.getFullYear(),0,1,12,0,0,e);for(;h.getFullYear()<=u.getFullYear();)f.push(new Te(h,e)),h.setFullYear(h.getFullYear()+1,0,1);return f},getWeek:(i,l)=>{const u=a(i);return ss(u,{weekStartsOn:l?.weekStartsOn??o,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:i=>{const l=a(i);return os(l)},differenceInCalendarDays:(i,l)=>{const u=a(i),f=a(l);return rs(u,f)},differenceInCalendarMonths:(i,l)=>{const u=a(i),f=a(l);return zc(u,f)}}}const Hn=e=>e instanceof HTMLElement?e:null,fo=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Sb=e=>Hn(e.querySelector("[data-animated-month]")),ho=e=>Hn(e.querySelector("[data-animated-caption]")),mo=e=>Hn(e.querySelector("[data-animated-weeks]")),Nb=e=>Hn(e.querySelector("[data-animated-nav]")),Eb=e=>Hn(e.querySelector("[data-animated-weekdays]"));function jb(e,t,{classNames:n,months:r,focused:o,dateLib:s}){const a=g.useRef(null),i=g.useRef(r),l=g.useRef(!1);g.useLayoutEffect(()=>{const u=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const f=s.isSameMonth(r[0].date,u[0].date),h=s.isAfter(r[0].date,u[0].date),p=h?n[ze.caption_after_enter]:n[ze.caption_before_enter],m=h?n[ze.weeks_after_enter]:n[ze.weeks_before_enter],b=a.current,v=e.current.cloneNode(!0);if(v instanceof HTMLElement?(fo(v).forEach(x=>{if(!(x instanceof HTMLElement))return;const k=Sb(x);k&&x.contains(k)&&x.removeChild(k);const S=ho(x);S&&S.classList.remove(p);const C=mo(x);C&&C.classList.remove(m)}),a.current=v):a.current=null,l.current||f||o)return;const _=b instanceof HTMLElement?fo(b):[],y=fo(e.current);if(y?.every(w=>w instanceof HTMLElement)&&_&&_.every(w=>w instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const w=Nb(e.current);w&&(w.style.zIndex="1"),y.forEach((x,k)=>{const S=_[k];if(!S)return;x.style.position="relative",x.style.overflow="hidden";const C=ho(x);C&&C.classList.add(p);const N=mo(x);N&&N.classList.add(m);const E=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),w&&(w.style.zIndex=""),C&&C.classList.remove(p),N&&N.classList.remove(m),x.style.position="",x.style.overflow="",x.contains(S)&&x.removeChild(S)};S.style.pointerEvents="none",S.style.position="absolute",S.style.overflow="hidden",S.setAttribute("aria-hidden","true");const D=Eb(S);D&&(D.style.opacity="0");const O=ho(S);O&&(O.classList.add(h?n[ze.caption_before_exit]:n[ze.caption_after_exit]),O.addEventListener("animationend",E));const T=mo(S);T&&T.classList.add(h?n[ze.weeks_before_exit]:n[ze.weeks_after_exit]),x.insertBefore(S,x.firstChild)})}})}function Mb(e,t,n,r){const o=e[0],s=e[e.length-1],{ISOWeek:a,fixedWeeks:i,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:f,differenceInCalendarMonths:h,endOfBroadcastWeek:p,endOfISOWeek:m,endOfMonth:b,endOfWeek:v,isAfter:_,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:x}=r,k=l?y(o,r):a?w(o):x(o),S=l?p(s):a?m(b(s)):v(b(s)),C=t&&(l?p(t):a?m(t):v(t)),N=C&&_(S,C)?C:S,E=f(N,k),D=h(s,o)+1,O=[];for(let A=0;A<=E;A++){const I=u(k,A);O.push(I)}const R=(l?35:42)*D;if(i&&O.length<R){const A=R-O.length;for(let I=0;I<A;I++){const X=u(O[O.length-1],1);O.push(X)}}return O}function Ob(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((s,a)=>s.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function Db(e,t,n,r){const{numberOfMonths:o=1}=n,s=[];for(let a=0;a<o;a++){const i=r.addMonths(e,a);if(t&&i>t)break;s.push(i)}return s}function ua(e,t,n,r){const{month:o,defaultMonth:s,today:a=r.today(),numberOfMonths:i=1}=e;let l=o||s||a;const{differenceInCalendarMonths:u,addMonths:f,startOfMonth:h}=r;if(n&&u(n,l)<i-1){const p=-1*(i-1);l=f(n,p)}return t&&u(l,t)<0&&(l=t),h(l)}function Rb(e,t,n,r){const{addDays:o,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:i,endOfWeek:l,getISOWeek:u,getWeek:f,startOfBroadcastWeek:h,startOfISOWeek:p,startOfWeek:m}=r,b=e.reduce((v,_)=>{const y=n.broadcastCalendar?h(_,r):n.ISOWeek?p(_):m(_),w=n.broadcastCalendar?s(_):n.ISOWeek?a(i(_)):l(i(_)),x=t.filter(N=>N>=y&&N<=w),k=n.broadcastCalendar?35:42;if(n.fixedWeeks&&x.length<k){const N=t.filter(E=>{const D=k-x.length;return E>w&&E<=o(w,D)});x.push(...N)}const S=x.reduce((N,E)=>{const D=n.ISOWeek?u(E):f(E),O=N.find(R=>R.weekNumber===D),T=new Xc(E,_,r);return O?O.days.push(T):N.push(new j_(D,[T])),N},[]),C=new E_(_,S);return v.push(C),v},[]);return n.reverseMonths?b.reverse():b}function Pb(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:s,startOfMonth:a,endOfMonth:i,addYears:l,endOfYear:u,newDate:f,today:h}=t,{fromYear:p,toYear:m,fromMonth:b,toMonth:v}=e;!n&&b&&(n=b),!n&&p&&(n=t.newDate(p,0,1)),!r&&v&&(r=v),!r&&m&&(r=f(m,11,31));const _=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):p?n=f(p,0,1):!n&&_&&(n=o(l(e.today??h(),-100))),r?r=i(r):m?r=f(m,11,31):!r&&_&&(r=u(e.today??h())),[n&&s(n),r&&s(r)]}function Tb(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s=1}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:l}=r,u=o?s:1,f=a(e);if(!t)return i(f,u);if(!(l(t,e)<s))return i(f,u)}function Ab(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:l}=r,u=o?s??1:1,f=a(e);if(!t)return i(f,-u);if(!(l(f,t)<=0))return i(f,-u)}function Ib(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Br(e,t){const[n,r]=g.useState(e);return[t===void 0?n:t,r]}function Lb(e,t){const[n,r]=Pb(e,t),{startOfMonth:o,endOfMonth:s}=t,a=ua(e,n,r,t),[i,l]=Br(a,e.month?a:void 0);g.useEffect(()=>{const k=ua(e,n,r,t);l(k)},[e.timeZone]);const{months:u,weeks:f,days:h,previousMonth:p,nextMonth:m}=g.useMemo(()=>{const k=Db(i,r,{numberOfMonths:e.numberOfMonths},t),S=Mb(k,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),C=Rb(k,S,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),N=Ib(C),E=Ob(C),D=Ab(i,n,e,t),O=Tb(i,r,e,t);return{months:C,weeks:N,days:E,previousMonth:D,nextMonth:O}},[t,i.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:b,onMonthChange:v}=e,_=k=>f.some(S=>S.days.some(C=>C.isEqualTo(k))),y=k=>{if(b)return;let S=o(k);n&&S<o(n)&&(S=o(n)),r&&S>o(r)&&(S=o(r)),l(S),v?.(S)};return{months:u,weeks:f,days:h,navStart:n,navEnd:r,previousMonth:p,nextMonth:m,goToMonth:y,goToDay:k=>{_(k)||y(k.date)}}}var ot;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(ot||(ot={}));function fa(e){return!e[ye.disabled]&&!e[ye.hidden]&&!e[ye.outside]}function Wb(e,t,n,r){let o,s=-1;for(const a of e){const i=t(a);fa(i)&&(i[ye.focused]&&s<ot.FocusedModifier?(o=a,s=ot.FocusedModifier):r?.isEqualTo(a)&&s<ot.LastFocused?(o=a,s=ot.LastFocused):n(a.date)&&s<ot.Selected?(o=a,s=ot.Selected):i[ye.today]&&s<ot.Today&&(o=a,s=ot.Today))}return o||(o=e.find(a=>fa(t(a)))),o}function $b(e,t,n,r,o,s,a){const{ISOWeek:i,broadcastCalendar:l}=s,{addDays:u,addMonths:f,addWeeks:h,addYears:p,endOfBroadcastWeek:m,endOfISOWeek:b,endOfWeek:v,max:_,min:y,startOfBroadcastWeek:w,startOfISOWeek:x,startOfWeek:k}=a;let C={day:u,week:h,month:f,year:p,startOfWeek:N=>l?w(N,a):i?x(N):k(N),endOfWeek:N=>l?m(N):i?b(N):v(N)}[e](n,t==="after"?1:-1);return t==="before"&&r?C=_([r,C]):t==="after"&&o&&(C=y([o,C])),C}function ul(e,t,n,r,o,s,a,i=0){if(i>365)return;const l=$b(e,t,n.date,r,o,s,a),u=!!(s.disabled&&yt(l,s.disabled,a)),f=!!(s.hidden&&yt(l,s.hidden,a)),h=l,p=new Xc(l,h,a);return!u&&!f?p:ul(e,t,p,r,o,s,a,i+1)}function Fb(e,t,n,r,o){const{autoFocus:s}=e,[a,i]=g.useState(),l=Wb(t.days,n,r||(()=>!1),a),[u,f]=g.useState(s?l:void 0);return{isFocusTarget:v=>!!l?.isEqualTo(v),setFocused:f,focused:u,blur:()=>{i(u),f(void 0)},moveFocus:(v,_)=>{if(!u)return;const y=ul(v,_,u,t.navStart,t.navEnd,e,o);y&&(e.disableNavigation&&!t.days.some(x=>x.isEqualTo(y))||(t.goToDay(y),f(y)))}}}function Bb(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Br(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t,u=m=>i?.some(b=>l(b,m))??!1,{min:f,max:h}=e;return{selected:i,select:(m,b,v)=>{let _=[...i??[]];if(u(m)){if(i?.length===f||r&&i?.length===1)return;_=i?.filter(y=>!l(y,m))}else i?.length===h?_=[m]:_=[..._,m];return o||a(_),o?.(_,m,b,v),_},isSelected:u}}function zb(e,t,n=0,r=0,o=!1,s=ft){const{from:a,to:i}=t||{},{isSameDay:l,isAfter:u,isBefore:f}=s;let h;if(!a&&!i)h={from:e,to:n>0?void 0:e};else if(a&&!i)l(a,e)?n===0?h={from:a,to:e}:o?h={from:a,to:void 0}:h=void 0:f(e,a)?h={from:e,to:a}:h={from:a,to:e};else if(a&&i)if(l(a,e)&&l(i,e))o?h={from:a,to:i}:h=void 0;else if(l(a,e))h={from:a,to:n>0?void 0:e};else if(l(i,e))h={from:e,to:n>0?void 0:e};else if(f(e,a))h={from:e,to:i};else if(u(e,a))h={from:a,to:e};else if(u(e,i))h={from:a,to:e};else throw new Error("Invalid range");if(h?.from&&h?.to){const p=s.differenceInCalendarDays(h.to,h.from);r>0&&p>r?h={from:e,to:void 0}:n>1&&p<n&&(h={from:e,to:void 0})}return h}function Hb(e,t,n=ft){const r=Array.isArray(t)?t:[t];let o=e.from;const s=n.differenceInCalendarDays(e.to,e.from),a=Math.min(s,6);for(let i=0;i<=a;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function ha(e,t,n=ft){return bt(e,t.from,!1,n)||bt(e,t.to,!1,n)||bt(t,e.from,!1,n)||bt(t,e.to,!1,n)}function Yb(e,t,n=ft){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?bt(e,i,!1,n):Jc(i,n)?i.some(l=>bt(e,l,!1,n)):Fr(i)?i.from&&i.to?ha(e,{from:i.from,to:i.to},n):!1:Qc(i)?Hb(e,i.dayOfWeek,n):as(i)?n.isAfter(i.before,i.after)?ha(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):yt(e.from,i,n)||yt(e.to,i,n):is(i)||cs(i)?yt(e.from,i,n)||yt(e.to,i,n):!1))return!0;const a=r.filter(i=>typeof i=="function");if(a.length){let i=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=l;u++){if(a.some(f=>f(i)))return!0;i=n.addDays(i,1)}}return!1}function Vb(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:o,selected:s,required:a,onSelect:i}=e,[l,u]=Br(s,i?s:void 0),f=i?s:l;return{selected:f,select:(m,b,v)=>{const{min:_,max:y}=e;let w;if(m){const x=f?.from,k=f?.to,S=!!x&&!!k,C=!!x&&!!k&&t.isSameDay(x,k)&&t.isSameDay(m,x);o&&(S||!f?.from)?!a&&C?w=void 0:w={from:m,to:void 0}:w=zb(m,f,_,y,a,t)}return r&&n&&w?.from&&w.to&&Yb({from:w.from,to:w.to},n,t)&&(w.from=m,w.to=void 0),i||u(w),i?.(w,m,b,v),w},isSelected:m=>f&&bt(f,m,!1,t)}}function qb(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Br(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t;return{selected:i,select:(h,p,m)=>{let b=h;return!r&&i&&i&&l(h,i)&&(b=void 0),o||a(b),o?.(b,h,p,m),b},isSelected:h=>i?l(i,h):!1}}function Gb(e,t){const n=qb(e,t),r=Bb(e,t),o=Vb(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function Ge(e,t){return e instanceof Te&&e.timeZone===t?e:new Te(e,t)}function Qt(e,t,n){return Ge(e,t)}function ma(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Qt(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Qt(r,t):r):Fr(e)?{...e,from:e.from?Ge(e.from,t):e.from,to:e.to?Ge(e.to,t):e.to}:as(e)?{before:Qt(e.before,t),after:Qt(e.after,t)}:is(e)?{after:Qt(e.after,t)}:cs(e)?{before:Qt(e.before,t)}:e}function po(e,t,n){return e&&(Array.isArray(e)?e.map(r=>ma(r,t)):ma(e,t))}function Ub(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Ge(t.today,n)),t.month&&(t.month=Ge(t.month,n)),t.defaultMonth&&(t.defaultMonth=Ge(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Ge(t.startMonth,n)),t.endMonth&&(t.endMonth=Ge(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=Ge(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(Q=>Ge(Q,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Ge(t.selected.from,n):t.selected.from,to:t.selected.to?Ge(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=po(t.disabled,n)),t.hidden!==void 0&&(t.hidden=po(t.hidden,n)),t.modifiers)){const Q={};Object.keys(t.modifiers).forEach(ue=>{Q[ue]=po(t.modifiers?.[ue],n)}),t.modifiers=Q}const{components:r,formatters:o,labels:s,dateLib:a,locale:i,classNames:l}=g.useMemo(()=>{const Q={...Zc,...t.locale},ue=t.broadcastCalendar?1:t.weekStartsOn,U=t.noonSafe&&t.timeZone?kb(t.timeZone,{weekStartsOn:ue,locale:Q}):void 0,le=t.dateLib&&U?{...U,...t.dateLib}:t.dateLib??U,$e=new Ve({locale:Q,weekStartsOn:ue,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},le);return{dateLib:$e,components:ob(t.components),formatters:mb(t.formatters),labels:bb(t.labels,$e.options),locale:Q,classNames:{...ls(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:u,mode:f,navLayout:h,numberOfMonths:p=1,onDayBlur:m,onDayClick:b,onDayFocus:v,onDayKeyDown:_,onDayMouseEnter:y,onDayMouseLeave:w,onNextClick:x,onPrevClick:k,showWeekNumber:S,styles:C}=t,{formatCaption:N,formatDay:E,formatMonthDropdown:D,formatWeekNumber:O,formatWeekNumberHeader:T,formatWeekdayName:R,formatYearDropdown:A}=o,I=Lb(t,a),{days:X,months:P,navStart:q,navEnd:W,previousMonth:G,nextMonth:j,goToMonth:K}=I,ve=nb(X,t,q,W,a),{isSelected:V,select:ne,selected:ee}=Gb(t,a)??{},{blur:re,focused:fe,isFocusTarget:Me,moveFocus:se,setFocused:$}=Fb(t,I,ve,V??(()=>!1),a),{labelDayButton:de,labelGridcell:ke,labelGrid:Oe,labelMonthDropdown:ce,labelNav:De,labelPrevious:ht,labelNext:Vn,labelWeekday:qn,labelWeekNumber:Gn,labelWeekNumberHeader:qt,labelYearDropdown:zr}=s,Hr=g.useMemo(()=>xb(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),Un=f!==void 0||b!==void 0,mn=g.useCallback(()=>{G&&(K(G),k?.(G))},[G,K,k]),z=g.useCallback(()=>{j&&(K(j),x?.(j))},[K,j,x]),be=g.useCallback((Q,ue)=>U=>{U.preventDefault(),U.stopPropagation(),$(Q),!ue.disabled&&(ne?.(Q.date,ue,U),b?.(Q.date,ue,U))},[ne,b,$]),me=g.useCallback((Q,ue)=>U=>{$(Q),v?.(Q.date,ue,U)},[v,$]),Se=g.useCallback((Q,ue)=>U=>{re(),m?.(Q.date,ue,U)},[re,m]),Re=g.useCallback((Q,ue)=>U=>{const le={ArrowLeft:[U.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[U.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[U.shiftKey?"year":"week","after"],ArrowUp:[U.shiftKey?"year":"week","before"],PageUp:[U.shiftKey?"year":"month","before"],PageDown:[U.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(le[U.key]){U.preventDefault(),U.stopPropagation();const[$e,ie]=le[U.key];se($e,ie)}_?.(Q.date,ue,U)},[se,_,t.dir]),Ze=g.useCallback((Q,ue)=>U=>{y?.(Q.date,ue,U)},[y]),Pe=g.useCallback((Q,ue)=>U=>{w?.(Q.date,ue,U)},[w]),Ne=g.useCallback(Q=>ue=>{const U=Number(ue.target.value),le=a.setMonth(a.startOfMonth(Q),U);K(le)},[a,K]),mt=g.useCallback(Q=>ue=>{const U=Number(ue.target.value),le=a.setYear(a.startOfMonth(Q),U);K(le)},[a,K]),{className:pt,style:Xe}=g.useMemo(()=>({className:[l[H.Root],t.className].filter(Boolean).join(" "),style:{...C?.[H.Root],...t.style}}),[l,t.className,t.style,C]),nt=sb(t),Zn=g.useRef(null);jb(Zn,!!t.animate,{classNames:l,months:P,focused:fe,dateLib:a});const Nl={dayPickerProps:t,selected:ee,select:ne,isSelected:V,months:P,nextMonth:j,previousMonth:G,goToMonth:K,getModifiers:ve,components:r,classNames:l,styles:C,labels:s,formatters:o};return g.createElement(Kc.Provider,{value:Nl},g.createElement(r.Root,{rootRef:t.animate?Zn:void 0,className:pt,style:Xe,dir:t.dir,id:t.id,lang:t.lang??i.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...nt},g.createElement(r.Months,{className:l[H.Months],style:C?.[H.Months]},!t.hideNavigation&&!h&&g.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[H.Nav],style:C?.[H.Nav],"aria-label":De(),onPreviousClick:mn,onNextClick:z,previousMonth:G,nextMonth:j}),P.map((Q,ue)=>g.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[H.Month],style:C?.[H.Month],key:ue,displayIndex:ue,calendarMonth:Q},h==="around"&&!t.hideNavigation&&ue===0&&g.createElement(r.PreviousMonthButton,{type:"button",className:l[H.PreviousMonthButton],tabIndex:G?void 0:-1,"aria-disabled":G?void 0:!0,"aria-label":ht(G),onClick:mn,"data-animated-button":t.animate?"true":void 0},g.createElement(r.Chevron,{disabled:G?void 0:!0,className:l[H.Chevron],orientation:t.dir==="rtl"?"right":"left"})),g.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[H.MonthCaption],style:C?.[H.MonthCaption],calendarMonth:Q,displayIndex:ue},u?.startsWith("dropdown")?g.createElement(r.DropdownNav,{className:l[H.Dropdowns],style:C?.[H.Dropdowns]},(()=>{const U=u==="dropdown"||u==="dropdown-months"?g.createElement(r.MonthsDropdown,{key:"month",className:l[H.MonthsDropdown],"aria-label":ce(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Ne(Q.date),options:yb(Q.date,q,W,o,a),style:C?.[H.Dropdown],value:a.getMonth(Q.date)}):g.createElement("span",{key:"month"},D(Q.date,a)),le=u==="dropdown"||u==="dropdown-years"?g.createElement(r.YearsDropdown,{key:"year",className:l[H.YearsDropdown],"aria-label":zr(a.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:mt(Q.date),options:Cb(q,W,o,a,!!t.reverseYears),style:C?.[H.Dropdown],value:a.getYear(Q.date)}):g.createElement("span",{key:"year"},A(Q.date,a));return a.getMonthYearOrder()==="year-first"?[le,U]:[U,le]})(),g.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},N(Q.date,a.options,a))):g.createElement(r.CaptionLabel,{className:l[H.CaptionLabel],role:"status","aria-live":"polite"},N(Q.date,a.options,a))),h==="around"&&!t.hideNavigation&&ue===p-1&&g.createElement(r.NextMonthButton,{type:"button",className:l[H.NextMonthButton],tabIndex:j?void 0:-1,"aria-disabled":j?void 0:!0,"aria-label":Vn(j),onClick:z,"data-animated-button":t.animate?"true":void 0},g.createElement(r.Chevron,{disabled:j?void 0:!0,className:l[H.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ue===p-1&&h==="after"&&!t.hideNavigation&&g.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[H.Nav],style:C?.[H.Nav],"aria-label":De(),onPreviousClick:mn,onNextClick:z,previousMonth:G,nextMonth:j}),g.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":Oe(Q.date,a.options,a)||void 0,className:l[H.MonthGrid],style:C?.[H.MonthGrid]},!t.hideWeekdays&&g.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[H.Weekdays],style:C?.[H.Weekdays]},S&&g.createElement(r.WeekNumberHeader,{"aria-label":qt(a.options),className:l[H.WeekNumberHeader],style:C?.[H.WeekNumberHeader],scope:"col"},T()),Hr.map(U=>g.createElement(r.Weekday,{"aria-label":qn(U,a.options,a),className:l[H.Weekday],key:String(U),style:C?.[H.Weekday],scope:"col"},R(U,a.options,a)))),g.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[H.Weeks],style:C?.[H.Weeks]},Q.weeks.map(U=>g.createElement(r.Week,{className:l[H.Week],key:U.weekNumber,style:C?.[H.Week],week:U},S&&g.createElement(r.WeekNumber,{week:U,style:C?.[H.WeekNumber],"aria-label":Gn(U.weekNumber,{locale:i}),className:l[H.WeekNumber],scope:"row",role:"rowheader"},O(U.weekNumber,a)),U.days.map(le=>{const{date:$e}=le,ie=ve(le);if(ie[ye.focused]=!ie.hidden&&!!fe?.isEqualTo(le),ie[Je.selected]=V?.($e)||ie.selected,Fr(ee)){const{from:Yr,to:Vr}=ee;ie[Je.range_start]=!!(Yr&&Vr&&a.isSameDay($e,Yr)),ie[Je.range_end]=!!(Yr&&Vr&&a.isSameDay($e,Vr)),ie[Je.range_middle]=bt(ee,$e,!0,a)}const El=wb(ie,C,t.modifiersStyles),jl=rb(ie,l,t.modifiersClassNames),Ml=!Un&&!ie.hidden?ke($e,ie,a.options,a):void 0;return g.createElement(r.Day,{key:`${le.isoDate}_${le.displayMonthId}`,day:le,modifiers:ie,className:jl.join(" "),style:El,role:"gridcell","aria-selected":ie.selected||void 0,"aria-label":Ml,"data-day":le.isoDate,"data-month":le.outside?le.dateMonthId:void 0,"data-selected":ie.selected||void 0,"data-disabled":ie.disabled||void 0,"data-hidden":ie.hidden||void 0,"data-outside":le.outside||void 0,"data-focused":ie.focused||void 0,"data-today":ie.today||void 0},!ie.hidden&&Un?g.createElement(r.DayButton,{className:l[H.DayButton],style:C?.[H.DayButton],type:"button",day:le,modifiers:ie,disabled:!ie.focused&&ie.disabled||void 0,"aria-disabled":ie.focused&&ie.disabled||void 0,tabIndex:Me(le)?0:-1,"aria-label":de($e,ie,a.options,a),onClick:be(le,ie),onBlur:Se(le,ie),onFocus:me(le,ie),onKeyDown:Re(le,ie),onMouseEnter:Ze(le,ie),onMouseLeave:Pe(le,ie)},E($e,a.options,a)):!ie.hidden&&E(le.date,a.options,a))})))))))),t.footer&&g.createElement(r.Footer,{className:l[H.Footer],style:C?.[H.Footer],role:"status","aria-live":"polite"},t.footer)))}function Zb({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:s,components:a,...i}){const l=ls();return c.jsx(Ub,{showOutsideDays:n,className:J("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...s},classNames:{root:J("w-fit",l.root),months:J("relative flex flex-col gap-4 md:flex-row",l.months),month:J("flex w-full flex-col gap-4",l.month),nav:J("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",l.nav),button_previous:J(vo({variant:o}),"h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50",l.button_previous),button_next:J(vo({variant:o}),"h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50",l.button_next),month_caption:J("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",l.month_caption),dropdowns:J("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",l.dropdowns),dropdown_root:J("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",l.dropdown_root),dropdown:J("bg-popover absolute inset-0 opacity-0",l.dropdown),caption_label:J("select-none font-medium",r==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:J("flex",l.weekdays),weekday:J("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",l.weekday),week:J("mt-2 flex w-full",l.week),week_number_header:J("w-(--cell-size) select-none",l.week_number_header),week_number:J("text-muted-foreground select-none text-[0.8rem]",l.week_number),day:J("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",l.day),range_start:J("bg-accent rounded-l-md",l.range_start),range_middle:J("rounded-none",l.range_middle),range_end:J("bg-accent rounded-r-md",l.range_end),today:J("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:J("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:J("text-muted-foreground opacity-50",l.disabled),hidden:J("invisible",l.hidden),...t},components:{Root:({className:u,rootRef:f,...h})=>c.jsx("div",{"data-slot":"calendar",ref:f,className:J(u),...h}),Chevron:({className:u,orientation:f,...h})=>f==="left"?c.jsx(Ap,{className:J("size-4",u),...h}):f==="right"?c.jsx(Lp,{className:J("size-4",u),...h}):c.jsx(Pp,{className:J("size-4",u),...h}),DayButton:Xb,WeekNumber:({children:u,...f})=>c.jsx("td",{...f,children:c.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:u})}),...a},...i})}function Xb({className:e,day:t,modifiers:n,...r}){const o=ls(),s=d.useRef(null);return d.useEffect(()=>{n.focused&&s.current?.focus()},[n.focused]),c.jsx(Cr,{ref:s,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:J("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",o.day,e),...r})}const nn=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Kb=()=>nn(new Date),wr=e=>String(e).padStart(2,"0"),fl=e=>`${e.getFullYear()}-${wr(e.getMonth()+1)}-${wr(e.getDate())}`,Qb=e=>`${wr(e.getDate())}.${wr(e.getMonth()+1)}.${e.getFullYear()}`,hl=e=>{if(e==null||e==="")return;const t=String(e).trim(),n=/^(\d{4})-(\d{2})-(\d{2})/.exec(t);if(n){const o=Number(n[1]),s=Number(n[2])-1,a=Number(n[3]),i=new Date(o,s,a);return Number.isNaN(i.getTime())?void 0:i}const r=new Date(t);if(!Number.isNaN(r.getTime()))return nn(r)},Jb="_wrapper_zsekf_5",ey="_trigger_zsekf_12",ty="_error_zsekf_41",ny="_triggerValue_zsekf_48",ry="_triggerIcon_zsekf_55",yn={wrapper:Jb,trigger:ey,error:ty,triggerValue:ny,triggerIcon:ry},oy=({label:e,required:t,value:n,onChange:r,minDate:o,error:s,disabled:a,tooltipContent:i,tooltipPopperClassName:l,className:u})=>{const[f,h]=g.useState(!1),p=g.useMemo(()=>hl(n??void 0),[n]),m=g.useMemo(()=>p?Qb(p):"",[p]),b=o?nn(o):void 0;return c.jsxs("div",{className:M(yn.wrapper,u),children:[c.jsx(Lt,{required:t,tooltipContent:i,tooltipPopperClassName:l,children:e}),c.jsxs(So,{open:f,onOpenChange:h,children:[c.jsx(No,{asChild:!0,children:c.jsxs("button",{type:"button",disabled:a,className:M(yn.trigger,{[yn.error]:!!s},!m&&"text-muted-foreground"),children:[c.jsx("span",{className:yn.triggerValue,children:m||"Выберите дату"}),c.jsx(Dp,{className:yn.triggerIcon,"aria-hidden":!0})]})}),c.jsx(Qo,{className:J("w-auto border border-slate-200 bg-white p-0 text-slate-900 shadow-lg"),align:"start",children:c.jsx(Zb,{mode:"single",selected:p,onSelect:v=>{r(v?fl(nn(v)):null),h(!1)},disabled:b?v=>nn(v).getTime()<b.getTime():void 0,initialFocus:!0})})]}),s?c.jsx(Ct,{variant:"error",children:s}):null]})},sy="_wrapper_1e6k1_5",ay="_field_1e6k1_12",iy="_disabled_1e6k1_19",cy="_control_1e6k1_23",ly="_labelWithTooltip_1e6k1_32",dy="_nativeInput_1e6k1_40",uy="_box_1e6k1_52",fy="_error_1e6k1_85",hy="_checkIcon_1e6k1_99",my="_labelText_1e6k1_112",Qe={wrapper:sy,field:ay,disabled:iy,control:cy,labelWithTooltip:ly,nativeInput:dy,box:uy,error:fy,checkIcon:hy,labelText:my},py=()=>c.jsx("svg",{className:Qe.checkIcon,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:c.jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})}),ml=g.forwardRef(({label:e,error:t,disabled:n,className:r,checkboxClassName:o,tooltipContent:s,tooltipPopperClassName:a,id:i,...l},u)=>{const f=g.useId(),h=i??f,p=c.jsxs("div",{className:M(Qe.field,{[Qe.disabled]:n}),children:[c.jsxs("label",{htmlFor:h,className:Qe.control,children:[c.jsx("input",{ref:u,id:h,type:"checkbox",disabled:n,"aria-invalid":t?!0:void 0,className:Qe.nativeInput,...l}),c.jsx("span",{className:M(Qe.box,{[Qe.error]:!!t},o),children:c.jsx(py,{})})]}),e&&s?c.jsx(Lt,{htmlFor:h,tooltipContent:s,tooltipPopperClassName:a,className:Qe.labelWithTooltip,labelClassName:Qe.labelText,children:e}):e?c.jsx(Mn,{htmlFor:h,className:M(jn.label_inline,Qe.labelText),children:e}):null]});return c.jsxs("div",{className:M(Qe.wrapper,r),children:[p,t&&c.jsx(Ct,{children:t})]})});ml.displayName="Checkbox";const gy="_root_1o1n3_1",vy="_header_1o1n3_11",_y="_headerText_1o1n3_21",by="_eyebrow_1o1n3_27",yy="_title_1o1n3_35",wy="_timeline_1o1n3_42",xy="_level_1o1n3_47",Cy="_rail_1o1n3_58",ky="_railLine_1o1n3_65",Sy="_railLine_completed_1o1n3_74",Ny="_railLine_toCurrent_1o1n3_78",Ey="_marker_1o1n3_82",jy="_marker_completed_1o1n3_101",My="_marker_current_1o1n3_107",Oy="_body_1o1n3_120",Dy="_levelHeader_1o1n3_125",Ry="_levelName_1o1n3_132",Py="_levelName_current_1o1n3_141",Ty="_levelName_completed_1o1n3_147",Ay="_iconButton_1o1n3_152",Iy="_iconButton_danger_1o1n3_176",Ly="_stages_1o1n3_182",Wy="_stage_1o1n3_182",$y="_stage_current_1o1n3_199",Fy="_stageHeader_1o1n3_204",By="_stageName_1o1n3_212",zy="_stageActions_1o1n3_220",Hy="_approvers_1o1n3_227",Yy="_approver_1o1n3_227",Vy="_approverMain_1o1n3_242",qy="_approverName_1o1n3_249",Gy="_approverName_pending_1o1n3_255",Uy="_approverName_rejected_1o1n3_259",Zy="_approverName_approved_1o1n3_264",Xy="_approverDate_1o1n3_268",Ky="_rejectReason_1o1n3_273",Qy="_empty_1o1n3_283",Jy="_addStage_1o1n3_300",ew="_addLevel_1o1n3_323",tw="_dialogContent_1o1n3_327",nw="_dialogInput_1o1n3_333",rw="_dialogActions_1o1n3_348",ow="_approverPickerWrap_1o1n3_354",sw="_approverPickerInput_1o1n3_361",Y={root:gy,header:vy,headerText:_y,eyebrow:by,title:yy,timeline:wy,level:xy,rail:Cy,railLine:ky,railLine_completed:Sy,railLine_toCurrent:Ny,marker:Ey,marker_completed:jy,marker_current:My,body:Oy,levelHeader:Dy,levelName:Ry,levelName_current:Py,levelName_completed:Ty,iconButton:Ay,iconButton_danger:Iy,stages:Ly,stage:Wy,stage_current:$y,stageHeader:Fy,stageName:By,stageActions:zy,approvers:Hy,approver:Yy,approverMain:Vy,approverName:qy,approverName_pending:Gy,approverName_rejected:Uy,approverName_approved:Zy,approverDate:Xy,rejectReason:Ky,empty:Qy,addStage:Jy,addLevel:ew,dialogContent:tw,dialogInput:nw,dialogActions:rw,approverPickerWrap:ow,approverPickerInput:sw},lr=({className:e})=>c.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",className:e,"aria-hidden":"true",children:c.jsx("path",{d:"M12 5v14M5 12h14"})});function pa({open:e,title:t,placeholder:n,onSubmit:r,onClose:o}){const[s,a]=g.useState("");g.useEffect(()=>{e||a("")},[e]);const i=()=>{const l=s.trim();l&&(r(l),o())};return c.jsx(Wr,{open:e,onOpenChange:l=>!l&&o(),children:c.jsxs(Wn,{className:"sm:rounded-2xl",children:[c.jsx($n,{children:c.jsx(Fn,{children:t})}),c.jsxs("div",{className:Y.dialogContent,children:[c.jsx("input",{autoFocus:!0,className:Y.dialogInput,placeholder:n,value:s,onChange:l=>a(l.target.value),onKeyDown:l=>{l.key==="Enter"&&i(),l.key==="Escape"&&o()}}),c.jsxs("div",{className:Y.dialogActions,children:[c.jsx(xe,{variant:"secondary",onClick:o,children:"Отмена"}),c.jsx(xe,{variant:"primary",onClick:i,disabled:!s.trim(),children:"Добавить"})]})]})]})})}const aw=({levels:e,editable:t=!1,title:n="Маршрут согласования",eyebrow:r="Workflow",className:o,loadApprovers:s,onAddLevel:a,onRemoveLevel:i,onAddStage:l,onRemoveStage:u,onAddApprover:f,onRemoveApprover:h})=>{const[p,m]=g.useState(!1),[b,v]=g.useState(null);return c.jsxs("div",{className:M(Y.root,o),children:[c.jsx("div",{className:Y.header,children:c.jsxs("div",{className:Y.headerText,children:[c.jsx("span",{className:Y.eyebrow,children:r}),c.jsx("span",{className:Y.title,children:n})]})}),c.jsxs("div",{className:Y.timeline,children:[e.map((_,y)=>{const w=e[y+1],x=M(Y.railLine,{[Y.railLine_completed]:_.status==="completed"&&w?.status==="completed",[Y.railLine_toCurrent]:_.status==="completed"&&w?.status==="current"});return c.jsxs("div",{className:Y.level,children:[c.jsxs("div",{className:Y.rail,children:[y<e.length-1&&c.jsx("span",{className:x}),c.jsx("span",{className:M(Y.marker,{[Y.marker_completed]:_.status==="completed",[Y.marker_current]:_.status==="current"}),children:_.status==="completed"&&c.jsx(Ro,{})})]}),c.jsxs("div",{className:Y.body,children:[c.jsxs("div",{className:Y.levelHeader,children:[c.jsx("span",{className:M(Y.levelName,{[Y.levelName_current]:_.status==="current",[Y.levelName_completed]:_.status==="completed"}),children:_.name}),t&&c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",className:Y.iconButton,onClick:()=>v(_.id),"aria-label":"Добавить этап",title:"Добавить этап",children:c.jsx(lr,{})}),c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>i?.(_.id),"aria-label":"Удалить уровень",title:"Удалить уровень",children:c.jsx(ct,{})})]})]}),_.stages.length>0&&c.jsx("div",{className:Y.stages,children:_.stages.map(k=>c.jsxs("div",{className:M(Y.stage,{[Y.stage_current]:_.status==="current"}),children:[c.jsxs("div",{className:Y.stageHeader,children:[c.jsx("span",{className:Y.stageName,children:k.name}),c.jsx("div",{className:Y.stageActions,children:t&&c.jsxs(c.Fragment,{children:[s?c.jsx(ns,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:S=>f?.(_.id,k.id,S),className:Y.approverPickerWrap,inputClassName:Y.approverPickerInput,selectedOptionRender:()=>c.jsx(lr,{})}):null,c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>u?.(_.id,k.id),"aria-label":"Удалить этап",title:"Удалить этап",children:c.jsx(ct,{})})]})})]}),k.approvers.length===0?c.jsxs("span",{className:Y.empty,children:[c.jsx(Ca,{}),"Согласующий не назначен"]}):c.jsx("div",{className:Y.approvers,children:k.approvers.map(S=>{const C=S.status??"pending";return c.jsxs("div",{className:Y.approver,children:[c.jsxs("div",{className:Y.approverMain,children:[c.jsx("span",{className:M(Y.approverName,{[Y.approverName_pending]:C==="pending",[Y.approverName_approved]:C==="approved",[Y.approverName_rejected]:C==="rejected"}),children:S.fullName}),S.actedAt&&C!=="pending"&&c.jsx("span",{className:Y.approverDate,children:S.actedAt}),C==="rejected"&&S.rejectReason&&c.jsxs("span",{className:Y.rejectReason,children:["Причина: ",S.rejectReason]})]}),t&&c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>h?.(_.id,k.id,S.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:c.jsx(ct,{})})]},S.id)})})]},k.id))}),t&&c.jsxs("button",{type:"button",className:Y.addStage,onClick:()=>v(_.id),children:[c.jsx(lr,{})," Добавить этап"]})]})]},_.id)}),t&&c.jsxs("div",{className:Y.level,children:[c.jsx("div",{className:Y.rail,children:c.jsx("span",{className:M(Y.marker),"aria-hidden":!0})}),c.jsx("div",{className:Y.body,children:c.jsxs("button",{type:"button",className:M(Y.addStage,Y.addLevel),onClick:()=>m(!0),children:[c.jsx(lr,{})," Добавить уровень"]})})]})]}),c.jsx(pa,{open:p,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>m(!1),onSubmit:_=>a?.(_)}),c.jsx(pa,{open:b!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>v(null),onSubmit:_=>b&&l?.(b,_)})]})},iw="_root_bcbvh_5",cw="_card_bcbvh_12",lw="_size_lg_bcbvh_19",dw="_section_bcbvh_23",uw="_sectionHeader_bcbvh_33",fw="_sectionTitle_bcbvh_40",hw="_sectionDescription_bcbvh_50",mw="_fields_bcbvh_58",pw="_fields_2col_bcbvh_66",gw="_field_bcbvh_58",vw="_field_span2_bcbvh_88",_w="_field_interactive_bcbvh_92",bw="_label_bcbvh_96",yw="_value_bcbvh_104",ww="_valueRow_bcbvh_117",xw="_copyTrigger_bcbvh_124",Cw="_copyableValue_bcbvh_130",kw="_hint_bcbvh_135",Sw="_empty_bcbvh_143",Nw="_divider_bcbvh_147",Ew="_loading_bcbvh_154",we={root:iw,card:cw,size_lg:lw,section:dw,sectionHeader:uw,sectionTitle:fw,sectionDescription:hw,fields:mw,fields_2col:pw,field:gw,field_span2:vw,field_interactive:_w,label:bw,value:yw,valueRow:ww,copyTrigger:xw,copyableValue:Cw,hint:kw,empty:Sw,divider:Nw,loading:Ew},jw=e=>e==null||e===""||typeof e=="number"&&Number.isNaN(e),Mw=e=>e==null?"":typeof e=="string"||typeof e=="number"?String(e):"",pl=({label:e,value:t,children:n,hint:r,copyable:o,copyText:s,render:a,hidden:i,span:l,emptyPlaceholder:u="—",className:f})=>{const[h,p]=g.useState(!1),m=g.useCallback(()=>{const _=s??Mw(n??t);!_||typeof navigator>"u"||!navigator.clipboard||navigator.clipboard.writeText(_).then(()=>{p(!0),window.setTimeout(()=>p(!1),1400)})},[s,t,n]);if(i)return null;const b=n??t,v=jw(b)?c.jsx("span",{className:we.empty,children:u}):b;return a?c.jsx(c.Fragment,{children:a({label:e,value:v})}):c.jsxs("div",{className:M(we.field,l===2&&we.field_span2,o&&we.field_interactive,f),children:[c.jsx("div",{className:we.label,children:e}),c.jsxs("div",{className:we.value,children:[c.jsx("div",{className:we.valueRow,children:o?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:we.copyableValue,children:v}),c.jsx("span",{className:we.copyTrigger,children:c.jsx(Ao,{iconOnly:!0,copied:h,onClick:m,ariaLabel:"Скопировать значение"})})]}):v}),r&&c.jsx("div",{className:we.hint,children:r})]})]})},gl=({id:e,title:t,description:n,fields:r,children:o,columns:s=1,className:a})=>{const i=(r??[]).filter(l=>!l.hidden);return c.jsxs("section",{id:e,className:M(we.section,a),children:[(t||n)&&c.jsxs("div",{className:we.sectionHeader,children:[t&&c.jsx("div",{className:we.sectionTitle,children:t}),n&&c.jsx("div",{className:we.sectionDescription,children:n})]}),(i.length>0||o)&&c.jsxs("div",{className:M(we.fields,s===2&&we.fields_2col),children:[i.map((l,u)=>c.jsx(pl,{...l},(typeof l.label=="string"?l.label:null)??`field-${u}`)),o]})]})},Ow=({className:e})=>c.jsx("hr",{className:M(we.divider,e)}),Dw=({sections:e,children:t,variant:n="card",labelWidth:r="14rem",size:o="md",loading:s,emptyState:a,className:i,id:l})=>{const u=typeof r=="number"?`${r}px`:r,f=M(we.root,n==="card"&&we.card,o==="lg"&&we.size_lg,i),h={"--cozy-detail-label-width":u};if(s)return c.jsx("div",{className:f,style:h,id:l,children:c.jsx("div",{className:we.loading,children:c.jsx(Ue,{})})});const p=e&&e.length>0,m=g.Children.count(t)>0;return!p&&!m?c.jsx("div",{className:f,style:h,id:l,children:a??c.jsx(It,{})}):c.jsxs("div",{className:f,style:h,id:l,children:[p&&e.map((b,v)=>c.jsx(gl,{...b},b.id??`section-${v}`)),m&&g.Children.map(t,b=>(g.isValidElement(b),b))]})},Yn=g.memo(Dw);Yn.Section=gl;Yn.Field=pl;Yn.Divider=Ow;Yn.displayName="DetailView";const Rw="_root_1z0dx_1",Pw="_header_1z0dx_14",Tw="_headerText_1z0dx_23",Aw="_eyebrow_1z0dx_29",Iw="_title_1z0dx_37",Lw="_counter_1z0dx_44",Ww="_list_1z0dx_53",$w="_loadOlderBtn_1z0dx_59",Fw="_expandBtn_1z0dx_84",Bw="_item_1z0dx_102",zw="_avatar_1z0dx_109",Hw="_body_1z0dx_125",Yw="_bubble_1z0dx_132",Vw="_actions_1z0dx_144",qw="_bubble_deleted_1z0dx_148",Gw="_meta_1z0dx_154",Uw="_author_1z0dx_162",Zw="_date_1z0dx_168",Xw="_editedTag_1z0dx_173",Kw="_text_1z0dx_179",Qw="_recipients_1z0dx_187",Jw="_attachments_1z0dx_203",ex="_attachment_1z0dx_203",tx="_attachmentName_1z0dx_227",nx="_attachmentSize_1z0dx_234",rx="_attachmentRemove_1z0dx_239",ox="_iconButton_1z0dx_278",sx="_iconButton_danger_1z0dx_302",ax="_children_1z0dx_309",ix="_form_1z0dx_320",cx="_form_root_1z0dx_330",lx="_form_inline_1z0dx_335",dx="_textarea_1z0dx_339",ux="_formRow_1z0dx_359",fx="_formTools_1z0dx_367",hx="_formActions_1z0dx_374",mx="_toolBtn_1z0dx_380",px="_recipientsPickerWrap_1z0dx_403",gx="_recipientsPickerInput_1z0dx_410",vx="_recipientsChips_1z0dx_459",_x="_chip_1z0dx_465",bx="_empty_1z0dx_496",yx="_skeleton_1z0dx_500",wx="_skeletonLine_1z0dx_507",xx="_dialogContent_1z0dx_523",Cx="_dialogActions_1z0dx_531",kx="_branchSpinner_1z0dx_537",Sx="_hiddenInput_1z0dx_543",B={root:Rw,header:Pw,headerText:Tw,eyebrow:Aw,title:Iw,counter:Lw,list:Ww,loadOlderBtn:$w,expandBtn:Fw,item:Bw,avatar:zw,body:Hw,bubble:Yw,actions:Vw,bubble_deleted:qw,meta:Gw,author:Uw,date:Zw,editedTag:Xw,text:Kw,recipients:Qw,attachments:Jw,attachment:ex,attachmentName:tx,attachmentSize:nx,attachmentRemove:rx,iconButton:ox,iconButton_danger:sx,children:ax,form:ix,form_root:cx,form_inline:lx,textarea:dx,formRow:ux,formTools:fx,formActions:hx,toolBtn:mx,recipientsPickerWrap:px,recipientsPickerInput:gx,recipientsChips:vx,chip:_x,empty:bx,skeleton:yx,skeletonLine:wx,dialogContent:xx,dialogActions:Cx,branchSpinner:kx,hiddenInput:Sx},Nx=10,Ex=10*6e4,Cn="__root__",kn=e=>e??Cn;function jx(e){return e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join("")}function vl(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function ga(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=r=>String(r).padStart(2,"0");return`${n(t.getDate())}.${n(t.getMonth()+1)}.${String(t.getFullYear()).slice(2)} ${n(t.getHours())}:${n(t.getMinutes())}`}function dr(e){const t=new Map;for(const n of e)t.set(n.id,n);return Array.from(t.values()).sort((n,r)=>new Date(n.createdAt).getTime()-new Date(r.createdAt).getTime())}function Mx(e,t){const[n,r]=g.useState({}),o=g.useRef({}),s=g.useCallback((m,b)=>{const v=kn(m);r(_=>{const y=_[v]??{items:[],total:0,loadedFrom:0,loading:!1,loaded:!1};return{..._,[v]:b(y)}})},[]),a=g.useCallback(async m=>{const b=kn(m),v=(o.current[b]??0)+1;o.current[b]=v,s(m,x=>({...x,loading:!0}));const _=await t({parentId:m,skip:0,take:e});if(o.current[b]!==v)return;if(_.total<=e){s(m,()=>({items:dr(_.items),total:_.total,loadedFrom:0,loading:!1,loaded:!0}));return}const y=_.total-e,w=await t({parentId:m,skip:y,take:e});o.current[b]===v&&s(m,()=>({items:dr(w.items),total:w.total,loadedFrom:y,loading:!1,loaded:!0}))},[t,e,s]),i=g.useCallback(async m=>{const b=kn(m),v=n[b];if(!v||v.loading||v.loadedFrom<=0)return;const _=Math.min(e,v.loadedFrom),y=v.loadedFrom-_,w=(o.current[b]??0)+1;o.current[b]=w,s(m,k=>({...k,loading:!0}));const x=await t({parentId:m,skip:y,take:_});o.current[b]===w&&s(m,k=>({...k,items:dr([...x.items,...k.items]),total:x.total,loadedFrom:y,loading:!1}))},[n,t,e,s]),l=g.useCallback((m,b)=>{s(m,v=>{const _=dr([...v.items,b]);return{...v,items:_,total:v.total+1,loaded:!0}})},[s]),u=g.useCallback((m,b,v)=>{s(m,_=>({..._,items:_.items.map(y=>y.id===b?v(y):y)}))},[s]),f=g.useCallback((m,b)=>{s(m,v=>({...v,items:v.items.filter(_=>_.id!==b),total:Math.max(0,v.total-1)}))},[s]),h=g.useCallback(m=>{const b=kn(m);o.current[b]=(o.current[b]??0)+1,r(v=>{const _={...v};return delete _[b],_})},[]),p=g.useCallback(()=>{o.current={},r({})},[]);return{branches:n,loadInitial:a,loadOlder:i,appendLocal:l,replaceLocal:u,removeLocal:f,resetBranch:h,resetAll:p}}function _l({open:e,title:t,message:n,confirmText:r="Удалить",cancelText:o="Отмена",danger:s=!0,onConfirm:a,onClose:i}){return c.jsx(Wr,{open:e,onOpenChange:l=>!l&&i(),children:c.jsxs(Wn,{className:"sm:rounded-2xl",children:[c.jsx($n,{children:c.jsx(Fn,{children:t})}),c.jsx("div",{className:B.dialogContent,children:n}),c.jsxs($r,{className:B.dialogActions,children:[c.jsx(xe,{variant:"secondary",onClick:i,children:o}),c.jsx(xe,{variant:s?"danger":"primary",onClick:a,children:r})]})]})})}function Oo({mode:e,initialText:t="",initialAttachments:n=[],initialRecipients:r=[],placeholder:o,submitLabel:s,recipientsSource:a,onUploadAttachment:i,onDeleteAttachment:l,onSubmit:u,onCancel:f,submitting:h}){const[p,m]=g.useState(t),[b,v]=g.useState(n),[_,y]=g.useState(r),[w,x]=g.useState(!1),[k,S]=g.useState(null),C=g.useRef(null),N=async O=>{if(!(!O||!i)){x(!0);try{for(const T of Array.from(O)){const R=await i(T);v(A=>[...A,R])}}finally{x(!1),C.current&&(C.current.value="")}}},E=async()=>{if(!k)return;const O=k;if(S(null),l)try{await l(O)}catch{}v(T=>T.filter(R=>R.id!==O.id))},D=async()=>{const O=p.trim();O&&(await u({text:O,attachments:b,recipients:_}),e!=="edit"&&(m(""),v([]),y([])))};return c.jsxs("div",{className:M(B.form,{[B.form_root]:e==="root",[B.form_inline]:e!=="root"}),children:[c.jsx("textarea",{className:B.textarea,placeholder:o??"Напишите комментарий...",value:p,onChange:O=>m(O.target.value)}),_.length>0&&c.jsx("div",{className:B.recipientsChips,children:_.map(O=>c.jsxs("span",{className:B.chip,children:[O.name,c.jsx("button",{type:"button","aria-label":"Удалить получателя",onClick:()=>y(T=>T.filter(R=>R.id!==O.id)),children:c.jsx(ct,{})})]},O.id))}),b.length>0&&c.jsx("div",{className:B.attachments,children:b.map(O=>c.jsxs("span",{className:B.attachment,children:[c.jsx("span",{className:B.attachmentName,children:O.name}),c.jsx("span",{className:B.attachmentSize,children:vl(O.size)}),c.jsx("button",{type:"button",className:B.attachmentRemove,"aria-label":"Удалить вложение",onClick:()=>S(O),children:c.jsx(ct,{})})]},O.id))}),c.jsxs("div",{className:B.formRow,children:[c.jsxs("div",{className:B.formTools,children:[i&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button",className:B.toolBtn,onClick:()=>C.current?.click(),disabled:w,children:[c.jsx(Ma,{style:{transform:"rotate(180deg)"}}),w?"Загрузка...":"Прикрепить файл"]}),c.jsx("input",{ref:C,type:"file",multiple:!0,className:B.hiddenInput,onChange:O=>N(O.target.files)})]}),a&&c.jsx(ns,{value:null,placeholder:_.length>0?`Ознакомители (${_.length})`:"Ознакомители",title:"Добавить ознакомителя",searchPlaceholder:"Поиск сотрудника",selectButtonText:"",loadOptions:a,onChange:O=>{const T=O.meta,R=T||{id:String(O.value),name:String(O.label)};y(A=>A.some(I=>I.id===R.id)?A:[...A,R])},className:B.recipientsPickerWrap,inputClassName:B.recipientsPickerInput})]}),c.jsxs("div",{className:B.formActions,children:[f&&c.jsx(xe,{variant:"secondary",size:"small",onClick:f,children:"Отмена"}),c.jsx(xe,{variant:"primary",size:"small",onClick:D,loading:h,disabled:!p.trim()||h,children:s??(e==="edit"?"Сохранить":"Отправить")})]})]}),c.jsx(_l,{open:!!k,title:"Удалить вложение?",message:`«${k?.name??""}» будет удалено без возможности восстановления.`,onConfirm:E,onClose:()=>S(null)})]})}function bl({comment:e,ctx:t}){const[n,r]=g.useState(!1),[o,s]=g.useState(!1),[a,i]=g.useState(!1),[l,u]=g.useState(!1),[f,h]=g.useState(!1),p=kn(e.id),m=t.branches[p],b=e.author.id===t.currentUser.id,v=new Date(e.createdAt).getTime(),_=Number.isNaN(v)?!1:Date.now()-v<t.editWindowMs;t.nowTick;const y=!e.deleted&&(e.permissions?.canEdit??(b&&_)),w=!e.deleted&&(e.permissions?.canDelete??b),x=!e.deleted&&(e.permissions?.canReply??t.permissions.canReply??!0),k=async()=>{const N=!n;r(N),N&&!m?.loaded&&await t.loadInitial(e.id)},S=async N=>{h(!0);try{m?.loaded,await t.createReply(e.id,{parentId:e.id,text:N.text,attachments:N.attachments,recipients:N.recipients}),r(!0),s(!1)}finally{h(!1)}},C=async N=>{h(!0);try{await t.editComment(e,{id:e.id,text:N.text,attachments:N.attachments,recipients:N.recipients}),i(!1)}finally{h(!1)}};return c.jsxs("div",{className:B.item,children:[c.jsx("div",{className:B.avatar,"aria-hidden":!0,children:e.author.avatarUrl?c.jsx("img",{src:e.author.avatarUrl,alt:"",style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover"}}):jx(e.author.name)}),c.jsxs("div",{className:B.body,children:[a?c.jsx(Oo,{mode:"edit",initialText:e.text,initialAttachments:e.attachments??[],initialRecipients:e.recipients??[],recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:C,onCancel:()=>i(!1),submitting:f}):c.jsxs("div",{className:M(B.bubble,{[B.bubble_deleted]:e.deleted}),children:[c.jsxs("div",{className:B.meta,children:[c.jsx("span",{className:B.author,children:e.author.name}),c.jsx("span",{className:B.date,children:ga(e.createdAt)}),e.editedAt&&!e.deleted&&c.jsxs("span",{className:B.editedTag,children:["(изм. ",ga(e.editedAt),")"]})]}),c.jsx("div",{className:B.text,children:e.deleted?"Комментарий удалён":e.text}),!e.deleted&&e.attachments&&e.attachments.length>0&&c.jsx("div",{className:B.attachments,children:e.attachments.map(N=>c.jsxs("span",{className:B.attachment,children:[c.jsx("span",{className:B.attachmentName,onClick:()=>t.onDownloadAttachment?.(N),title:N.name,children:N.name}),c.jsx("span",{className:B.attachmentSize,children:vl(N.size)})]},N.id))}),!e.deleted&&e.recipients&&e.recipients.length>0&&c.jsxs("div",{className:B.recipients,title:e.recipients.map(N=>N.name).join(", "),children:[c.jsx(ka,{}),"Уведомлены: ",e.recipients.map(N=>N.name).join(", ")]}),!e.deleted&&c.jsxs("div",{className:B.actions,children:[x&&c.jsx("button",{type:"button",className:B.iconButton,onClick:()=>s(N=>!N),title:"Ответить","aria-label":"Ответить",children:c.jsx(wa,{})}),y&&c.jsx("button",{type:"button",className:B.iconButton,onClick:()=>i(!0),title:"Редактировать","aria-label":"Редактировать",children:c.jsx(Ea,{})}),w&&c.jsx("button",{type:"button",className:M(B.iconButton,B.iconButton_danger),onClick:()=>u(!0),title:"Удалить","aria-label":"Удалить",children:c.jsx(xa,{})})]})]}),e.repliesCount>0&&c.jsxs("button",{type:"button",className:B.expandBtn,onClick:k,children:[c.jsx(dt,{style:{width:12,height:12,transform:n?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"}}),n?"Скрыть ответы":`Показать ответы (${e.repliesCount})`,m?.loading&&c.jsx("span",{className:B.branchSpinner,children:c.jsx(Ue,{size:"extraSmall"})})]}),o&&c.jsx(Oo,{mode:"reply",placeholder:`Ответить ${e.author.name}…`,recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:S,onCancel:()=>s(!1),submitting:f}),n&&m&&c.jsxs("div",{className:B.children,children:[m.loadedFrom>0&&c.jsxs("button",{type:"button",className:B.loadOlderBtn,onClick:()=>t.loadOlder(e.id),disabled:m.loading,children:[m.loading?c.jsx(Ue,{size:"extraSmall"}):c.jsx(dt,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",m.loadedFrom,")"]}),m.items.map(N=>c.jsx(bl,{comment:N,ctx:t},N.id))]})]}),c.jsx(_l,{open:l,title:"Удалить комментарий?",message:"Это действие нельзя отменить.",onConfirm:async()=>{u(!1),await t.deleteComment(e)},onClose:()=>u(!1)})]})}const Ox=g.forwardRef(function({loadComments:t,currentUser:n,recipientsSource:r,onCreate:o,onEdit:s,onDelete:a,onUploadAttachment:i,onDownloadAttachment:l,onDeleteAttachment:u,permissions:f={canCreate:!0,canReply:!0},editWindowMs:h=Ex,pageSize:p=Nx,title:m="Комментарии",eyebrow:b="Discussion",className:v},_){const{branches:y,loadInitial:w,loadOlder:x,appendLocal:k,replaceLocal:S,removeLocal:C,resetBranch:N,resetAll:E}=Mx(p,t),[D,O]=g.useState(!1),[T,R]=g.useState(0);g.useEffect(()=>{const j=window.setInterval(()=>R(K=>K+1),3e4);return()=>window.clearInterval(j)},[]),g.useEffect(()=>{y[Cn]||w(null)},[]),g.useImperativeHandle(_,()=>({refresh:j=>{j===void 0?(E(),w(null)):(N(j),w(j))}}),[w,E,N]);const A=g.useCallback(async(j,K)=>{if(!o)return;const ve=await o(K);if(k(j,ve),j!==null){for(const V of Object.keys(y))if(y[V].items.some(ee=>ee.id===j)){S(V===Cn?null:V,j,ee=>({...ee,repliesCount:ee.repliesCount+1}));break}}},[k,y,o,S]),I=g.useCallback(async(j,K)=>{if(!s)return;const ve=await s(K);S(j.parentId,j.id,()=>ve)},[s,S]),X=g.useCallback(async j=>{if(a){if(await a(j.id),j.repliesCount>0)S(j.parentId,j.id,K=>({...K,deleted:!0,text:"",attachments:[],recipients:[]}));else if(C(j.parentId,j.id),j.parentId!==null){for(const K of Object.keys(y))if(y[K].items.some(V=>V.id===j.parentId)){S(K===Cn?null:K,j.parentId,V=>({...V,repliesCount:Math.max(0,V.repliesCount-1)}));break}}}},[y,a,C,S]),P=y[Cn],q=g.useMemo(()=>({currentUser:n,permissions:f,editWindowMs:h,recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onDownloadAttachment:l,branches:y,loadInitial:w,loadOlder:x,createReply:A,editComment:I,deleteComment:X,nowTick:T}),[y,A,n,X,I,h,w,x,T,u,l,i,f,r]),W=async j=>{O(!0);try{await A(null,{parentId:null,text:j.text,attachments:j.attachments,recipients:j.recipients})}finally{O(!1)}},G=f.canCreate??!0;return c.jsxs("div",{className:M(B.root,v),children:[c.jsxs("div",{className:B.header,children:[c.jsxs("div",{className:B.headerText,children:[c.jsx("span",{className:B.eyebrow,children:b}),c.jsx("span",{className:B.title,children:m})]}),P&&c.jsx("span",{className:B.counter,children:P.total})]}),G&&o&&c.jsx(Oo,{mode:"root",placeholder:"Поделитесь мнением или задайте вопрос...",submitLabel:"Опубликовать",recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onSubmit:W,submitting:D}),!P&&c.jsx("div",{className:B.skeleton,children:[0,1,2].map(j=>c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[c.jsx("div",{className:B.skeletonLine,style:{width:"30%"}}),c.jsx("div",{className:B.skeletonLine,style:{width:"85%"}}),c.jsx("div",{className:B.skeletonLine,style:{width:"60%"}})]},j))}),P&&P.loadedFrom>0&&c.jsxs("button",{type:"button",className:B.loadOlderBtn,onClick:()=>x(null),disabled:P.loading,children:[P.loading?c.jsx(Ue,{size:"extraSmall"}):c.jsx(dt,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",P.loadedFrom,")"]}),P&&P.items.length===0&&!P.loading&&c.jsx("div",{className:B.empty,children:c.jsx(It,{title:"Пока нет комментариев",subtitle:"Будьте первым, кто напишет."})}),P&&P.items.length>0&&c.jsx("div",{className:B.list,children:P.items.map(j=>c.jsx(bl,{comment:j,ctx:q},j.id))})]})}),Dx="_root_q1igz_5",Rx="_collapsed_q1igz_35",Px="_variant_classic_q1igz_40",Tx="_sectionTitle_q1igz_45",Ax="_item_q1igz_54",Ix="_item_active_q1igz_60",Lx="_user_q1igz_74",Wx="_badge_q1igz_77",$x="_footer_q1igz_81",Fx="_variant_transparent_q1igz_87",Bx="_icon_q1igz_115",zx="_iconStub_q1igz_116",Hx="_item_nested_q1igz_143",Yx="_divider_q1igz_153",Vx="_collapseBtn_q1igz_156",qx="_variant_aurora_q1igz_166",Gx="_sectionDot_q1igz_181",Ux="_userName_q1igz_222",Zx="_userRole_q1igz_225",Xx="_avatar_q1igz_228",Kx="_avatarInitials_q1igz_231",Qx="_blob_q1igz_261",Jx="_blob_a_q1igz_270",e3="_blob_b_q1igz_278",t3="_header_q1igz_288",n3="_user_clickable_q1igz_312",r3="_userSlot_q1igz_319",o3="_avatarBadge_q1igz_356",s3="_userText_q1igz_369",a3="_collapseIcon_q1igz_411",i3="_collapseIcon_rot_q1igz_417",c3="_bodyWrap_q1igz_422",l3="_body_q1igz_422",d3="_bodyContent_q1igz_440",u3="_section_q1igz_45",f3="_list_q1igz_456",h3="_itemWrap_q1igz_465",m3="_item_disabled_q1igz_493",p3="_item_scrollEdgeBottom_q1igz_503",g3="_label_q1igz_526",v3="_chev_q1igz_552",_3="_chev_open_q1igz_560",b3="_sub_q1igz_565",y3="_sub_open_q1igz_572",w3="_subList_q1igz_577",x3="_custom_q1igz_621",Z={root:Dx,collapsed:Rx,variant_classic:Px,sectionTitle:Tx,item:Ax,item_active:Ix,user:Lx,badge:Wx,footer:$x,variant_transparent:Fx,icon:Bx,iconStub:zx,item_nested:Hx,divider:Yx,collapseBtn:Vx,variant_aurora:qx,sectionDot:Gx,userName:Ux,userRole:Zx,avatar:Xx,avatarInitials:Kx,blob:Qx,blob_a:Jx,blob_b:e3,header:t3,user_clickable:n3,userSlot:r3,avatarBadge:o3,userText:s3,collapseIcon:a3,collapseIcon_rot:i3,bodyWrap:c3,body:l3,bodyContent:d3,section:u3,list:f3,itemWrap:h3,item_disabled:m3,item_scrollEdgeBottom:p3,label:g3,chev:v3,chev_open:_3,sub:b3,sub_open:y3,subList:w3,custom:x3},Do=new Set,yl=g.createContext({variant:"classic",collapsed:!1,activeId:void 0,setActive:()=>{},edgeBottomIds:Do}),wl=()=>g.useContext(yl),va=(e,t)=>e==null?t:typeof e=="number"?`${e}px`:e,C3=e=>e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join(""),_a=2,k3=24,S3=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},fs=({id:e,label:t,icon:n,href:r,active:o,badge:s,disabled:a,onClick:i,children:l,level:u=0})=>{const f=wl(),h=o??f.activeId===e,p=!!(l&&l.length>0),[m,b]=g.useState(p&&!!l?.some(C=>C.id===f.activeId)),v=g.useCallback(C=>{if(a){C.preventDefault();return}if(p){C.preventDefault(),b(N=>!N);return}f.setActive(e),i?.(C)},[f,a,p,e,i]),_=!f.collapsed&&c.jsx("span",{className:Z.label,children:t}),y=n?c.jsx("span",{className:Z.icon,children:n}):c.jsx("span",{className:Z.iconStub}),w=c.jsxs(c.Fragment,{children:[y,_,!f.collapsed&&s!=null&&c.jsx("span",{className:Z.badge,children:s}),!f.collapsed&&p&&c.jsx("span",{className:M(Z.chev,m&&Z.chev_open),"aria-hidden":!0,children:c.jsx(dt,{width:12,height:12})})]}),x={className:M(Z.item,h&&Z.item_active,a&&Z.item_disabled,u>0&&Z.item_nested,f.edgeBottomIds.has(e)&&Z.item_scrollEdgeBottom),"aria-current":h?"page":void 0,"aria-expanded":p?m:void 0,"data-id":e,onClick:v},k=r&&!p&&!a?c.jsx("a",{href:r,...x,children:w}):c.jsx("button",{type:"button",disabled:a,...x,children:w}),S=f.collapsed?c.jsx(kr,{title:t,placement:"right",children:k}):k;return c.jsxs("li",{className:Z.itemWrap,children:[S,p&&c.jsx("div",{className:M(Z.sub,m&&!f.collapsed&&Z.sub_open),"aria-hidden":!m,children:c.jsx("ul",{className:Z.subList,children:l.map(C=>c.jsx(fs,{...C,level:u+1},C.id))})})]})},xl=({id:e,title:t,items:n,children:r,className:o})=>{const s=wl();return c.jsxs("div",{id:e,className:M(Z.section,o),children:[t&&!s.collapsed&&c.jsx("div",{className:Z.sectionTitle,children:t}),s.collapsed&&t&&c.jsx("div",{className:Z.sectionDot,"aria-hidden":!0}),c.jsxs("ul",{className:Z.list,children:[n?.map(a=>c.jsx(fs,{...a},a.id)),r]})]})},N3=({className:e})=>c.jsx("div",{className:M(Z.divider,e),role:"separator"}),E3=({children:e,className:t})=>c.jsx("div",{className:M(Z.custom,t),children:e}),j3=({user:e,userSlot:t,sections:n,children:r,variant:o="classic",activeId:s,defaultActiveId:a,onActiveChange:i,collapsible:l=!1,collapsed:u,defaultCollapsed:f=!1,onCollapsedChange:h,footer:p,width:m,collapsedWidth:b,className:v})=>{const[_,y]=g.useState(a),w=s!==void 0,x=w?s:_,k=g.useCallback(V=>{w||y(V),i?.(V)},[w,i]),[S,C]=g.useState(f),N=u!==void 0,E=N?!!u:S;g.useEffect(()=>{N||C(f)},[]);const D=g.useCallback(()=>{const V=!E;N||C(V),h?.(V)},[E,N,h]),[O,T]=g.useState(Do),R={"--cozy-sidenav-w":va(m,"280px"),"--cozy-sidenav-w-collapsed":va(b,"76px")},A=n&&n.length>0,I=g.Children.count(r)>0,X=g.Children.count(r),P=g.useRef(null),q=g.useRef(null),W=g.useRef(null),G=g.useCallback(()=>{const V=P.current;if(!V)return;const{scrollTop:ne,scrollHeight:ee,clientHeight:re}=V,fe=ee>re+_a,Me=ne+re<ee-_a;if(!fe||!Me){T(de=>de.size===0?de:Do);return}const se=V.getBoundingClientRect(),$=new Set;V.querySelectorAll(`.${Z.item}[data-id]`).forEach(de=>{const ke=de.dataset.id;if(!ke)return;const Oe=de.getBoundingClientRect();Oe.bottom>se.bottom-k3&&Oe.top<se.bottom&&$.add(ke)}),T(de=>S3(de,$)?de:$)},[]),j=g.useCallback(()=>{W.current!==null&&cancelAnimationFrame(W.current),W.current=requestAnimationFrame(()=>{W.current=null,G()})},[G]);g.useEffect(()=>{const V=q.current;if(!V)return;j();const ne=new ResizeObserver(j);return ne.observe(V),()=>{ne.disconnect(),W.current!==null&&(cancelAnimationFrame(W.current),W.current=null)}},[j,n,X,E,o]);const K=g.useMemo(()=>({variant:o,collapsed:E,activeId:x,setActive:k,edgeBottomIds:O}),[o,E,x,k,O]),ve=()=>{if(t)return c.jsx("div",{className:Z.userSlot,children:t});if(!e)return null;const V=e.initials??C3(e.name),ne=e.onClick?"button":"div";return c.jsxs(ne,{className:M(Z.user,e.onClick&&Z.user_clickable),onClick:e.onClick,type:e.onClick?"button":void 0,children:[c.jsxs("span",{className:Z.avatar,children:[e.avatarUrl?c.jsx("img",{src:e.avatarUrl,alt:""}):c.jsx("span",{className:Z.avatarInitials,children:V||"?"}),e.badge!=null&&c.jsx("span",{className:Z.avatarBadge,children:e.badge})]}),!E&&c.jsxs("span",{className:Z.userText,children:[c.jsx("span",{className:Z.userName,children:e.name}),e.role&&c.jsx("span",{className:Z.userRole,children:e.role})]})]})};return c.jsx(yl.Provider,{value:K,children:c.jsxs("nav",{className:M(Z.root,Z[`variant_${o}`],E&&Z.collapsed,v),style:R,"data-variant":o,children:[o==="aurora"&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:M(Z.blob,Z.blob_a),"aria-hidden":!0}),c.jsx("span",{className:M(Z.blob,Z.blob_b),"aria-hidden":!0})]}),c.jsxs("div",{className:Z.header,children:[ve(),l&&c.jsx("button",{type:"button",className:Z.collapseBtn,onClick:D,"aria-label":E?"Развернуть":"Свернуть",title:E?"Развернуть":"Свернуть",children:c.jsx("span",{className:M(Z.collapseIcon,E&&Z.collapseIcon_rot),"aria-hidden":!0,children:c.jsx(dt,{width:12,height:12})})})]}),c.jsx("div",{className:Z.bodyWrap,children:c.jsx("div",{ref:P,className:Z.body,onScroll:j,children:c.jsxs("div",{ref:q,className:Z.bodyContent,children:[A&&n.map((V,ne)=>c.jsx(xl,{...V},V.id??`s-${ne}`)),I&&g.Children.map(r,V=>(g.isValidElement(V),V))]})})}),p&&c.jsx("div",{className:Z.footer,children:p})]})})},fn=g.memo(j3);fn.Section=xl;fn.Item=fs;fn.Divider=N3;fn.Custom=E3;fn.displayName="SideNav";const M3="_root_2u0l3_5",O3="_size_sm_2u0l3_31",D3="_color_blue_2u0l3_36",R3="_checked_2u0l3_40",P3="_disabled_2u0l3_44",T3="_thumb_2u0l3_49",A3="_thumb_checked_2u0l3_62",I3="_wrapper_2u0l3_66",L3="_field_2u0l3_74",W3="_labelWithTooltip_2u0l3_85",$3="_labelText_2u0l3_93",Be={root:M3,size_sm:O3,color_blue:D3,checked:R3,disabled:P3,thumb:T3,thumb_checked:A3,wrapper:I3,field:L3,labelWithTooltip:W3,labelText:$3},Cl=g.forwardRef(function({checked:t,defaultChecked:n,onChange:r,disabled:o,size:s="md",color:a="green",ariaLabel:i,id:l,className:u,label:f,tooltipContent:h,tooltipPopperClassName:p},m){const b=g.useId(),v=l??b,[_,y]=g.useState(!!n),w=t!==void 0,x=w?!!t:_,k=g.useCallback(()=>{if(o)return;const C=!x;w||y(C),r?.(C)},[o,x,w,r]),S=c.jsx("button",{ref:m,id:v,type:"button",role:"switch","aria-checked":x,"aria-label":f?void 0:i,"aria-disabled":o||void 0,disabled:o,onClick:k,className:M(Be.root,s==="sm"&&Be.size_sm,a==="blue"&&Be.color_blue,x&&Be.checked,o&&Be.disabled,!f&&u),children:c.jsx("span",{className:M(Be.thumb,x&&Be.thumb_checked)})});return f?c.jsx("div",{className:M(Be.wrapper,u),children:c.jsxs("div",{className:M(Be.field,{[Be.disabled]:o}),children:[S,h?c.jsx(Lt,{htmlFor:v,tooltipContent:h,tooltipPopperClassName:p,className:Be.labelWithTooltip,labelClassName:Be.labelText,children:f}):c.jsx(Mn,{htmlFor:v,className:M(jn.label_inline,Be.labelText),children:f})]})}):S});Cl.displayName="Switch";const F3="_root_1e0y6_5",B3="_option_1e0y6_15",z3="_option_disabled_1e0y6_28",H3="_option_active_1e0y6_28",Y3="_size_sm_1e0y6_36",V3="_preview_1e0y6_44",q3="_label_1e0y6_48",Ft={root:F3,option:B3,option_disabled:z3,option_active:H3,size_sm:Y3,preview:V3,label:q3};function G3({value:e,onChange:t,options:n,size:r="md",ariaLabel:o,className:s}){return c.jsx("div",{role:"radiogroup","aria-label":o,className:M(Ft.root,r==="sm"&&Ft.size_sm,s),children:n.map(a=>{const i=a.value===e;return c.jsxs("button",{type:"button",role:"radio","aria-checked":i,"aria-disabled":a.disabled||void 0,disabled:a.disabled,onClick:()=>!a.disabled&&t(a.value),className:M(Ft.option,i&&Ft.option_active,a.disabled&&Ft.option_disabled),children:[c.jsx("span",{className:Ft.preview,children:a.image}),c.jsx("span",{className:Ft.label,children:a.label})]},a.value)})})}const U3="_root_143pe_5",Z3="_layout_card_143pe_13",X3="_variant_elevated_143pe_22",K3="_section_143pe_28",Q3="_layout_plain_143pe_40",J3="_sectionHeader_143pe_65",e4="_sectionHeader_button_143pe_72",t4="_sectionTitleWrap_143pe_81",n4="_sectionTitle_143pe_81",r4="_sectionDescription_143pe_97",o4="_sectionChevron_143pe_105",s4="_sectionChevron_open_143pe_112",a4="_sectionBody_143pe_116",i4="_sectionBody_collapsed_143pe_121",c4="_group_143pe_126",l4="_item_143pe_132",d4="_groupTitle_143pe_139",u4="_density_compact_143pe_169",f4="_item_align_start_143pe_185",h4="_item_interactive_143pe_189",m4="_item_danger_143pe_203",p4="_label_143pe_206",g4="_item_disabled_143pe_213",v4="_iconBadge_143pe_218",_4="_iconSpacer_143pe_240",b4="_body_143pe_245",y4="_labelRow_143pe_252",w4="_description_143pe_267",x4="_badge_143pe_275",C4="_control_143pe_287",k4="_chevron_143pe_302",S4="_externalIcon_143pe_309",N4="_hint_143pe_317",E4="_divider_143pe_332",j4="_loading_143pe_339",oe={root:U3,layout_card:Z3,variant_elevated:X3,section:K3,layout_plain:Q3,sectionHeader:J3,sectionHeader_button:e4,sectionTitleWrap:t4,sectionTitle:n4,sectionDescription:r4,sectionChevron:o4,sectionChevron_open:s4,sectionBody:a4,sectionBody_collapsed:i4,group:c4,item:l4,groupTitle:d4,density_compact:u4,item_align_start:f4,item_interactive:h4,item_danger:m4,label:p4,item_disabled:g4,iconBadge:v4,iconSpacer:_4,body:b4,labelRow:y4,description:w4,badge:x4,control:C4,chevron:k4,externalIcon:S4,hint:N4,divider:E4,loading:j4},M4=()=>c.jsxs("svg",{className:oe.externalIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[c.jsx("path",{d:"M14 3h7v7"}),c.jsx("path",{d:"M10 14L21 3"}),c.jsx("path",{d:"M21 14v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6"})]}),O4=({className:e})=>c.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:c.jsx("polyline",{points:"9 6 15 12 9 18"})}),hs=({icon:e,label:t,description:n,control:r,badge:o,hint:s,href:a,external:i,onClick:l,disabled:u,danger:f,hidden:h,align:p,className:m,render:b})=>{if(h)return null;const v=c.jsxs("div",{className:oe.body,children:[c.jsxs("div",{className:oe.labelRow,children:[c.jsx("span",{className:oe.label,children:t}),o&&c.jsx("span",{className:oe.badge,children:o})]}),n&&c.jsx("div",{className:oe.description,children:n})]}),_=r?c.jsx("div",{className:oe.control,children:r}):null;if(b)return c.jsx(c.Fragment,{children:b({label:v,control:_})});const y=!!(a||l),w=y&&!r,x=M(oe.item,p==="start"&&oe.item_align_start,y&&oe.item_interactive,f&&oe.item_danger,u&&oe.item_disabled,m),k=e?c.jsx("div",{className:oe.iconBadge,children:e}):c.jsx("span",{className:oe.iconSpacer}),S=c.jsxs(c.Fragment,{children:[_,w&&c.jsx(O4,{className:oe.chevron}),!w&&i&&a&&c.jsx(M4,{})]}),C=c.jsxs(c.Fragment,{children:[k,v,c.jsx("div",{className:oe.control,style:!r&&!w?{display:"none"}:void 0,children:S}),s&&c.jsx("div",{className:oe.hint,children:s})]});return a&&!u?c.jsx("a",{href:a,target:i?"_blank":void 0,rel:i?"noreferrer":void 0,onClick:l,className:x,children:C}):l&&!u?c.jsx("button",{type:"button",onClick:l,className:x,children:C}):c.jsx("div",{className:x,children:C})},kl=({title:e,items:t,children:n,className:r})=>{const o=(t??[]).filter(s=>!s.hidden);return c.jsxs("div",{className:M(oe.group,r),children:[e&&c.jsx("div",{className:oe.groupTitle,children:e}),o.map((s,a)=>c.jsx(hs,{...s},s.id??`item-${a}`)),n]})},Sl=({id:e,title:t,description:n,items:r,groups:o,children:s,collapsible:a,defaultOpen:i=!0,className:l})=>{const[u,f]=g.useState(i),h=(r??[]).filter(m=>!m.hidden),p=(t||n)&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oe.sectionTitleWrap,children:[t&&c.jsx("div",{className:oe.sectionTitle,children:t}),n&&c.jsx("div",{className:oe.sectionDescription,children:n})]}),a&&c.jsx(dt,{className:M(oe.sectionChevron,u&&oe.sectionChevron_open)})]});return c.jsxs("section",{id:e,className:M(oe.section,l),children:[p&&a?c.jsx("button",{type:"button",onClick:()=>f(m=>!m),className:M(oe.sectionHeader,oe.sectionHeader_button),"aria-expanded":u,children:p}):p?c.jsx("div",{className:oe.sectionHeader,children:p}):null,c.jsxs("div",{className:M(oe.sectionBody,a&&!u&&oe.sectionBody_collapsed),children:[h.map((m,b)=>c.jsx(hs,{...m},m.id??`item-${b}`)),(o??[]).map((m,b)=>c.jsx(kl,{...m},m.id??`group-${b}`)),s]})]})},D4=({className:e})=>c.jsx("hr",{className:M(oe.divider,e)}),R4=({sections:e,children:t,layout:n="card",density:r="comfortable",variant:o="classic",loading:s,emptyState:a,className:i,id:l})=>{const u=M(oe.root,n==="card"&&o==="classic"&&oe.layout_card,n==="plain"&&oe.layout_plain,o==="elevated"&&oe.variant_elevated,r==="compact"&&oe.density_compact,i);if(s)return c.jsx("div",{className:u,id:l,children:c.jsx("div",{className:oe.loading,children:c.jsx(Ue,{})})});const f=e&&e.length>0,h=g.Children.count(t)>0;return!f&&!h?c.jsx("div",{className:u,id:l,children:a??c.jsx(It,{})}):c.jsxs("div",{className:u,id:l,children:[f&&e.map((p,m)=>c.jsx(Sl,{...p},p.id??`section-${m}`)),h&&g.Children.map(t,p=>(g.isValidElement(p),p))]})},hn=g.memo(R4);hn.Section=Sl;hn.Group=kl;hn.Item=hs;hn.Divider=D4;hn.displayName="SettingsView";exports.ApprovalRoute=aw;exports.ArrowDownBlueIcon=ed;exports.ArrowDownIcon=dt;exports.ArrowRightIcon=Jl;exports.BaseBlock=yd;exports.Button=xe;exports.Calendar=oy;exports.CameraIcon=id;exports.CancelIcon=xa;exports.Card=Pu;exports.Carousel=Zu;exports.ChartIcon=Gl;exports.ChatIcon=wa;exports.CheckGreen=nd;exports.CheckIcon=Ro;exports.Checkbox=ml;exports.ClockFilledIcon=dd;exports.ClockIcon=Dl;exports.CloseRed=td;exports.CollapsableBlock=Jm;exports.Collapse=cc;exports.Colors=Oa;exports.CommentFeed=Ox;exports.CopyIcon=Sa;exports.CopyTextTrigger=Ao;exports.CrossIcon=ct;exports.DetailView=Yn;exports.DialogSelect=ns;exports.DoneIcon=od;exports.DownloadIcon=Ma;exports.EditIcon=Ea;exports.EmptyComponent=It;exports.EmptyIcon=ja;exports.EnvelopIcon=ka;exports.FeedbackIcon=Ul;exports.FileReloadIcon=Rl;exports.FileSync=Ql;exports.FilterIcon=cd;exports.FolderEditIcon=Pl;exports.GraduateIcon=Tl;exports.GridIcon=Al;exports.HeartIcon=Il;exports.HelpIcon=Ll;exports.HistoryBlue=rd;exports.HomeIcon=Ol;exports.ImageSegmented=G3;exports.InfoIcon=Na;exports.Input=Tc;exports.InputCaption=Ct;exports.IslandIcon=hd;exports.Label=Mn;exports.ListIcon=Wl;exports.MarketIcon=$l;exports.MegaphoneIcon=Xl;exports.MessageIcon=sd;exports.NotebookIcon=ql;exports.PhoneIcon=ad;exports.PlaneIcon=Fl;exports.Popover=Lm;exports.ProfileIcon=Bl;exports.ProfileSearchIcon=zl;exports.RadioGroupButton=Ou;exports.ReloadIcon=ld;exports.SchoolIcon=fd;exports.SearchIcon=xr;exports.Select=W0;exports.SettingsIcon=ud;exports.SettingsView=hn;exports.SideNav=fn;exports.Spinner=Ue;exports.Stepper=Tv;exports.Switch=Cl;exports.Tabs=Yv;exports.TabsRounded=gv;exports.Tag=hc;exports.TaskListIcon=Zl;exports.Textarea=Ac;exports.TimesheetIcon=Vl;exports.TooltipDark=kr;exports.TooltipLight=Uo;exports.TreeDialogSelect=iv;exports.TrendUpIcon=Hl;exports.UserSwitchIcon=Kl;exports.WalletIcon=Yl;exports.WarnIcon=Ca;exports.parseYmdToLocalDay=hl;exports.startOfLocalDay=nn;exports.toYmdString=fl;exports.todayLocalDay=Kb;exports.useDropdownPosition=Nu;exports.useMeasureElement=Xa;
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},J0="DialogDescriptionWarning",eg=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ec(J0).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tg=pc,ng=bc,jc=_c,Mc=yc,Oc=xc,Dc=kc;const Wr=tg,rg=ng,Rc=d.forwardRef(({className:e,...t},n)=>c.jsx(jc,{ref:n,className:J("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Rc.displayName=jc.displayName;const Wn=d.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(rg,{children:[c.jsx(Rc,{}),c.jsx(Mc,{ref:r,className:J("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:t})]}));Wn.displayName=Mc.displayName;const $n=({className:e,...t})=>c.jsx("div",{className:J("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$n.displayName="DialogHeader";const $r=({className:e,...t})=>c.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$r.displayName="DialogFooter";const Fn=d.forwardRef(({className:e,...t},n)=>c.jsx(Oc,{ref:n,className:J("text-lg font-semibold leading-none tracking-tight",e),...t}));Fn.displayName=Oc.displayName;const og=d.forwardRef(({className:e,...t},n)=>c.jsx(Dc,{ref:n,className:J("text-sm text-muted-foreground",e),...t}));og.displayName=Dc.displayName;const sg="_wrapper_1jie0_5",ag="_input_1jie0_9",ig="_error_1jie0_29",cg="_disabled_1jie0_37",lg="_selectedOption_1jie0_43",dg="_placeholder_1jie0_54",ug="_actions_1jie0_58",fg="_clearButton_1jie0_65",hg="_selectButton_1jie0_74",mg="_dialogContent_1jie0_81",pg="_dialogHeader_1jie0_96",gg="_dialogTitle_1jie0_101",vg="_search_1jie0_108",bg="_searchIcon_1jie0_124",_g="_searchInput_1jie0_135",yg="_searchSpinner_1jie0_166",wg="_tableContainer_1jie0_170",xg="_table_1jie0_170",Cg="_activeRow_1jie0_213",kg="_emptyState_1jie0_220",Sg="_dialogFooter_1jie0_227",Ng="_pagination_1jie0_235",Eg="_footerActions_1jie0_236",jg="_pageInfo_1jie0_255",be={wrapper:sg,input:ag,error:ig,disabled:cg,selectedOption:lg,placeholder:dg,actions:ug,clearButton:fg,selectButton:hg,dialogContent:mg,dialogHeader:pg,dialogTitle:gg,search:vg,searchIcon:bg,searchInput:_g,searchSpinner:yg,tableContainer:wg,table:xg,activeRow:Cg,emptyState:kg,dialogFooter:Sg,pagination:Ng,footerActions:Eg,pageInfo:jg},Mg=8,Og=350,ns=({value:e,placeholder:t,loadOptions:n,onChange:r,onClear:o,columns:s,label:a,tooltipContent:i,tooltipPopperClassName:l,title:u="Поиск сотрудника",searchPlaceholder:f="Введите запрос",selectButtonText:h="Выбрать",closeButtonText:p="Закрыть",manualButtonText:m="Добавить вручную",onManualAdd:y,pageSize:b=Mg,debounceMs:v=Og,disabled:_,error:w,className:x,inputClassName:k,selectedOptionRender:S})=>{const[C,N]=g.useState(!1),[E,D]=g.useState(""),[O,T]=g.useState(""),[R,A]=g.useState(1),[I,X]=g.useState([]),[P,q]=g.useState(),[W,G]=g.useState(!1),[j,K]=g.useState(!1),ve=g.useRef(0),V=g.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:$=>$.label},{key:"birthDate",title:"День рождения",render:$=>$.meta?.birthDate??"—"}],[s]),ne=P?Math.max(1,Math.ceil(P/b)):void 0,ee=R>1,re=ne?R<ne:W;g.useEffect(()=>{const $=window.setTimeout(()=>{T(E.trim()),A(1)},v);return()=>window.clearTimeout($)},[v,E]),g.useEffect(()=>{if(!C)return;const $=ve.current+1;ve.current=$,K(!0),n({search:O,page:R,pageSize:b}).then(de=>{ve.current===$&&(X(de.options),q(de.total),G(de.hasNextPage??!1))}).finally(()=>{ve.current===$&&K(!1)})},[O,C,n,R,b]);const fe=g.useCallback($=>{N($),$||(D(""),T(""),A(1))},[]),Me=g.useCallback($=>{r?.($),fe(!1)},[fe,r]),se=e?S?S(e):e.label:t;return c.jsxs("div",{className:M(be.wrapper,x),children:[a&&c.jsx(Lt,{htmlFor:"DialogSelectInput",tooltipContent:i,tooltipPopperClassName:l,children:a}),c.jsxs("div",{id:"DialogSelectInput",role:"button",tabIndex:_?-1:0,className:M(be.input,{[be.disabled]:_,[be.error]:w},k),onClick:()=>!_&&fe(!0),onKeyDown:$=>{!_&&($.key==="Enter"||$.key===" ")&&($.preventDefault(),fe(!0))},children:[c.jsx("span",{className:M(be.selectedOption,{[be.placeholder]:!e}),children:se}),c.jsxs("span",{className:be.actions,children:[o&&e&&c.jsx(xe,{variant:"text",className:be.clearButton,"aria-label":"Очистить выбранное значение",onClick:$=>{$.stopPropagation(),o()},children:c.jsx(ct,{})}),c.jsx(xe,{variant:"link",className:be.selectButton,disabled:_,onClick:$=>{$.stopPropagation(),fe(!0)},children:h})]})]}),c.jsx(Wr,{open:C,onOpenChange:fe,children:c.jsxs(Wn,{className:be.dialogContent,children:[c.jsx($n,{className:be.dialogHeader,children:c.jsx(Fn,{className:be.dialogTitle,children:u})}),c.jsxs("div",{className:be.search,children:[c.jsx(xr,{className:be.searchIcon}),c.jsx("input",{className:be.searchInput,value:E,onChange:$=>D($.target.value),placeholder:f,autoFocus:!0}),j&&c.jsx(Ue,{size:"extraSmall",className:be.searchSpinner})]}),c.jsxs("div",{className:be.tableContainer,children:[c.jsxs("table",{className:be.table,children:[c.jsx("thead",{children:c.jsx("tr",{children:V.map($=>c.jsx("th",{className:$.className,children:$.title},$.key))})}),c.jsx("tbody",{children:I.map($=>{const de=e?.value===$.value;return c.jsx("tr",{className:M({[be.activeRow]:de}),onClick:()=>Me($),children:V.map(ke=>c.jsx("td",{className:ke.className,children:ke.render($)},ke.key))},String($.value))})})]}),!j&&!I.length&&c.jsx("div",{className:be.emptyState,children:c.jsx(It,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})})]}),c.jsxs($r,{className:be.dialogFooter,children:[c.jsxs("div",{className:be.pagination,children:[c.jsx(xe,{variant:"secondary",size:"small",disabled:!ee||j,onClick:()=>A($=>Math.max(1,$-1)),children:"Назад"}),c.jsxs("span",{className:be.pageInfo,children:["Страница ",R,ne?` из ${ne}`:""]}),c.jsx(xe,{variant:"secondary",size:"small",disabled:!re||j,onClick:()=>A($=>$+1),children:"Вперёд"})]}),c.jsxs("div",{className:be.footerActions,children:[y&&c.jsx(xe,{variant:"primary",onClick:y,children:m}),c.jsx(xe,{variant:"secondary",onClick:()=>fe(!1),children:p})]})]})]})}),w&&c.jsx(Ct,{children:w})]})},Dg="_wrapper_17lcj_5",Rg="_input_17lcj_9",Pg="_error_17lcj_29",Tg="_disabled_17lcj_37",Ag="_selectedOption_17lcj_43",Ig="_placeholder_17lcj_54",Lg="_actions_17lcj_58",Wg="_clearButton_17lcj_65",$g="_selectButton_17lcj_74",Fg="_dialogContent_17lcj_81",Bg="_dialogHeader_17lcj_96",zg="_dialogTitle_17lcj_101",Hg="_search_17lcj_108",Yg="_searchIcon_17lcj_124",Vg="_searchInput_17lcj_135",qg="_searchSpinner_17lcj_166",Gg="_treeContainer_17lcj_170",Ug="_row_17lcj_180",Zg="_row_active_17lcj_195",Xg="_nodeLabel_17lcj_198",Kg="_row_match_17lcj_202",Qg="_chevron_17lcj_206",Jg="_chevronExpanded_17lcj_231",ev="_chevronPlaceholder_17lcj_235",tv="_nodeSpinner_17lcj_241",nv="_emptyState_17lcj_253",rv="_loadingState_17lcj_260",ov="_dialogFooter_17lcj_267",pe={wrapper:Dg,input:Rg,error:Pg,disabled:Tg,selectedOption:Ag,placeholder:Ig,actions:Lg,clearButton:Wg,selectButton:$g,dialogContent:Fg,dialogHeader:Bg,dialogTitle:zg,search:Hg,searchIcon:Yg,searchInput:Vg,searchSpinner:qg,treeContainer:Gg,row:Ug,row_active:Zg,nodeLabel:Xg,row_match:Kg,chevron:Qg,chevronExpanded:Jg,chevronPlaceholder:ev,nodeSpinner:tv,emptyState:nv,loadingState:rv,dialogFooter:ov},sv=350,vt="__root__",av=({value:e,placeholder:t,loadChildren:n,loadNodes:r,searchNodes:o,onChange:s,onClear:a,label:i,tooltipContent:l,tooltipPopperClassName:u,title:f="Выбор элемента",searchPlaceholder:h="Введите запрос",selectButtonText:p="Выбрать",closeButtonText:m="Закрыть",confirmButtonText:y="Выбрать",debounceMs:b=sv,disabled:v,error:_,className:w,inputClassName:x,selectedOptionRender:k,nodeRender:S,leafConfirmOnly:C=!1})=>{const N=r??n,[E,D]=g.useState(!1),[O,T]=g.useState(""),[R,A]=g.useState(""),[I,X]=g.useState(()=>new Map),[P,q]=g.useState(()=>new Set),[W,G]=g.useState(()=>new Set),[j,K]=g.useState(()=>new Set),[ve,V]=g.useState(()=>new Set),[ne,ee]=g.useState(!1),[re,fe]=g.useState(null),Me=g.useRef(0),se=g.useRef(0);g.useEffect(()=>{if(!E||I.has(vt))return;const z=Me.current+1;Me.current=z,q(_e=>{const me=new Set(_e);return me.add(vt),me}),N({parentId:null,search:""}).then(_e=>{Me.current===z&&X(me=>{const Se=new Map(me);return Se.set(vt,_e.nodes),Se})}).finally(()=>{Me.current===z&&q(_e=>{const me=new Set(_e);return me.delete(vt),me})})},[E,N,I]),g.useEffect(()=>{const z=window.setTimeout(()=>A(O.trim()),b);return()=>window.clearTimeout(z)},[O,b]),g.useEffect(()=>{if(!E||!o)return;if(!R){V(new Set),K(new Set);return}const z=se.current+1;se.current=z,ee(!0),o(R).then(_e=>{if(se.current!==z)return;const me=new Set,Se=new Set,Re=new Map;for(const Ze of _e.matches){me.add(Ze.node.value);const Pe=[...Ze.path,Ze.node];for(let Ne=0;Ne<Pe.length-1;Ne++){const mt=Pe[Ne],pt=Pe[Ne+1];Se.add(mt.value);const Xe=mt.value;Re.has(Xe)||Re.set(Xe,new Map),Re.get(Xe).set(pt.value,pt)}if(Pe.length>0){const Ne=Pe[0];Re.has(vt)||Re.set(vt,new Map),Re.get(vt).set(Ne.value,Ne)}}V(me),K(Se),X(Ze=>{const Pe=new Map(Ze);return Re.forEach((Ne,mt)=>{const pt=Pe.get(mt)??[],Xe=new Map;pt.forEach(nt=>Xe.set(nt.value,nt)),Ne.forEach((nt,Zn)=>Xe.set(Zn,nt)),Pe.set(mt,Array.from(Xe.values()))}),Pe})}).finally(()=>{se.current===z&&ee(!1)})},[R,E,o]);const $=g.useCallback(z=>{D(z),z||(T(""),A(""),fe(null),V(new Set),K(new Set))},[]),de=g.useCallback(z=>{const _e=z.value;I.has(_e)||P.has(_e)||(q(me=>{const Se=new Set(me);return Se.add(_e),Se}),N({parentId:z.value,search:""}).then(me=>{X(Se=>{const Re=new Map(Se),Ze=Re.get(_e)??[],Pe=new Map;return Ze.forEach(Ne=>Pe.set(Ne.value,Ne)),me.nodes.forEach(Ne=>Pe.set(Ne.value,Ne)),Re.set(_e,Array.from(Pe.values())),Re})}).finally(()=>{q(me=>{const Se=new Set(me);return Se.delete(_e),Se})}))},[I,N,P]),ke=g.useCallback(z=>{G(_e=>{const me=new Set(_e);return me.has(z.value)?me.delete(z.value):(me.add(z.value),de(z)),me})},[de]),Oe=g.useCallback(z=>{fe(z)},[]),ce=g.useCallback(()=>{C&&(!re||re.hasChildren===!0)||(re&&s?.(re),$(!1))},[$,C,s,re]),De=g.useCallback(z=>W.has(z)||j.has(z),[W,j]),ht=g.useCallback(z=>{if(!R||o)return z;const _e=R.toLowerCase();return z.filter(me=>me.label.toLowerCase().includes(_e))},[R,o]),Vn=(z,_e)=>{const me=z.value,Se=I.get(me),Re=De(z.value),Ze=P.has(me),Pe=re?.value===z.value,Ne=e?.value===z.value,mt=ve.has(z.value),pt=Re&&Se&&Se.length>0,Xe=pt?ht(Se):[];return c.jsxs(g.Fragment,{children:[c.jsxs("div",{className:M(pe.row,{[pe.row_active]:Pe||Ne,[pe.row_match]:mt}),style:{paddingLeft:16+_e*20},onClick:()=>Oe(z),children:[z.hasChildren?c.jsx("button",{type:"button",className:M(pe.chevron,{[pe.chevronExpanded]:Re}),onClick:nt=>{nt.stopPropagation(),ke(z)},"aria-label":Re?"Свернуть":"Раскрыть",children:c.jsx(dt,{})}):c.jsx("span",{className:pe.chevronPlaceholder}),c.jsx("span",{className:pe.nodeLabel,children:S?S(z):z.label}),Ze&&c.jsx(Ue,{size:"extraSmall",className:pe.nodeSpinner})]}),pt&&Xe.map(nt=>Vn(nt,_e+1))]},String(z.value))},qn=I.get(vt)??[],Gn=ht(qn),qt=P.has(vt),zr=e?k?k(e):e.label:t,Hr=!qt&&!ne&&Gn.length===0,Un=g.useMemo(()=>ne||qt&&!!R,[ne,qt,R]),mn=!re||C&&re.hasChildren===!0;return c.jsxs("div",{className:M(pe.wrapper,w),children:[i&&c.jsx(Lt,{htmlFor:"TreeDialogSelectInput",tooltipContent:l,tooltipPopperClassName:u,children:i}),c.jsxs("div",{id:"TreeDialogSelectInput",role:"button",tabIndex:v?-1:0,className:M(pe.input,{[pe.disabled]:v,[pe.error]:_},x),onClick:()=>!v&&$(!0),onKeyDown:z=>{!v&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),$(!0))},children:[c.jsx("span",{className:M(pe.selectedOption,{[pe.placeholder]:!e}),children:zr}),c.jsxs("span",{className:pe.actions,children:[a&&e&&c.jsx(xe,{variant:"text",className:pe.clearButton,"aria-label":"Очистить выбранное значение",onClick:z=>{z.stopPropagation(),a()},children:c.jsx(ct,{})}),c.jsx(xe,{variant:"link",className:pe.selectButton,disabled:v,onClick:z=>{z.stopPropagation(),$(!0)},children:p})]})]}),c.jsx(Wr,{open:E,onOpenChange:$,children:c.jsxs(Wn,{className:pe.dialogContent,children:[c.jsx($n,{className:pe.dialogHeader,children:c.jsx(Fn,{className:pe.dialogTitle,children:f})}),c.jsxs("div",{className:pe.search,children:[c.jsx(xr,{className:pe.searchIcon}),c.jsx("input",{className:pe.searchInput,value:O,onChange:z=>T(z.target.value),placeholder:h,autoFocus:!0}),Un&&c.jsx(Ue,{size:"extraSmall",className:pe.searchSpinner})]}),c.jsx("div",{className:pe.treeContainer,children:qt&&qn.length===0?c.jsx("div",{className:pe.loadingState,children:c.jsx(Ue,{size:"small"})}):Hr?c.jsx("div",{className:pe.emptyState,children:c.jsx(It,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):Gn.map(z=>Vn(z,0))}),c.jsxs($r,{className:pe.dialogFooter,children:[c.jsx(xe,{variant:"secondary",onClick:()=>$(!1),children:m}),c.jsx(xe,{variant:"primary",disabled:mn,onClick:ce,children:y})]})]})}),_&&c.jsx(Ct,{children:_})]})},iv="_wrapper_1atx7_5",cv="_tabs_1atx7_10",lv="_tabItem_1atx7_20",dv="_active_1atx7_50",uv="_before_1atx7_65",fv="_after_1atx7_66",hv="_panel_1atx7_105",bt={wrapper:iv,tabs:cv,tabItem:lv,active:dv,before:uv,after:fv,panel:hv};function mv(e){return e.map((t,n)=>{if("value"in t&&"label"in t)return{key:t.value,label:t.label,className:t.className,needNotification:t.needNotification,header:t.header};const r=t;return{key:n,label:r.title,className:r.className,needNotification:r.needNotification,header:r.header}})}const pv=d.memo(({className:e,items:t=[],children:n,value:r,onValueChange:o,activeTab:s,onClick:a,tabsClassName:i})=>{const l=g.useMemo(()=>mv(t),[t]),u=g.useMemo(()=>{if(r!==void 0){const f=l.findIndex(h=>h.key===r);return f>=0?f:0}return s??0},[r,s,l]);return c.jsxs("div",{className:M(bt.wrapper,e),children:[c.jsx("div",{className:M(bt.tabs,i),children:l.map((f,h)=>f.label&&c.jsxs("div",{className:M(bt.tabItem,f.className,{[bt.active]:u===h,[bt.first]:h===0,[bt.last]:h===l.length-1}),style:{zIndex:u===h?l.length:h===0?0:l.length-h},onClick:p=>{p.stopPropagation(),o?o(f.key):a?.(h)},children:[u===h&&h!==0&&c.jsx("span",{className:bt.before}),f.label,u===h&&h!==l.length-1&&c.jsx("span",{className:bt.after})]},h))}),c.jsx("div",{className:bt.panel,children:n})]})}),gv="_wrapper_10usc_1",vv="_wrapper_withLabels_10usc_11",bv="_track_10usc_16",_v="_stepWrap_10usc_22",yv="_step_10usc_22",wv="_clickable_10usc_53",xv="_step_inactive_10usc_60",Cv="_step_current_10usc_65",kv="_connector_10usc_69",Sv="_connector_active_10usc_76",Nv="_labelsRow_10usc_80",Ev="_labelAnchor_10usc_87",jv="_labelSpacer_10usc_92",Mv="_label_10usc_80",Ov="_label_active_10usc_117",Le={wrapper:gv,wrapper_withLabels:vv,track:bv,stepWrap:_v,step:yv,clickable:wv,step_inactive:xv,step_current:Cv,connector:kv,connector_active:Sv,labelsRow:Nv,labelAnchor:Ev,labelSpacer:jv,label:Mv,label_active:Ov},Dv=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,labelMaxWidth:o=140,className:s})=>{const a=!!n,i=e.some(v=>!!v.label),l=e.length-1,u=g.useRef(null),f=g.useRef([]),[h,p]=g.useState({left:0,right:0}),m=typeof o=="number"?`${o}px`:o,y=e.flatMap((v,_)=>_===l?["32px"]:["32px","minmax(0, 1fr)"]).join(" "),b=g.useCallback(()=>{if(!i){p({left:0,right:0});return}const v=f.current.find(S=>S!==null)??null,_=[...f.current].reverse().find(S=>S!==null)??null,w=v?.getBoundingClientRect().width??0,x=_?.getBoundingClientRect().width??0,k={left:Math.max(0,w/2-16),right:Math.max(0,x/2-16)};p(S=>Math.abs(S.left-k.left)>.5||Math.abs(S.right-k.right)>.5?k:S)},[i]);return g.useLayoutEffect(()=>{if(b(),!i||typeof ResizeObserver>"u")return;const v=new ResizeObserver(b);return u.current&&v.observe(u.current),f.current.forEach(_=>{_&&v.observe(_)}),()=>v.disconnect()},[i,e,m,b]),c.jsxs("div",{className:M(Le.wrapper,s,{[Le.wrapper_withLabels]:i}),style:{"--stepper-label-max-width":m,"--stepper-safe-pad-left":`${h.left}px`,"--stepper-safe-pad-right":`${h.right}px`},children:[c.jsx("div",{className:Le.track,style:{gridTemplateColumns:y},role:"list",children:e.map((v,_)=>{const w=_<t,x=_===t,k=_<=t,S=_===l,C=r&&w,N=v.content??(C?c.jsx(Ro,{}):_+1),E=c.jsx("button",{type:"button",className:M(Le.step,{[Le.step_inactive]:!k,[Le.step_current]:x,[Le.clickable]:a}),disabled:!a,onClick:()=>n?.(_),"aria-current":x?"step":void 0,"aria-label":typeof v.label=="string"?v.label:`Шаг ${_+1}`,children:N});return c.jsxs(g.Fragment,{children:[c.jsx("div",{className:Le.stepWrap,role:"listitem",children:E}),S?null:c.jsx("span",{className:M(Le.connector,{[Le.connector_active]:_<t})})]},_)})}),i?c.jsx("div",{ref:u,className:Le.labelsRow,style:{gridTemplateColumns:y},"aria-hidden":!0,children:e.map((v,_)=>{const w=_<=t,x=_===l;return v.label||(f.current[_]=null),c.jsxs(g.Fragment,{children:[c.jsx("div",{className:Le.labelAnchor,children:v.label?c.jsx("span",{ref:k=>{f.current[_]=k},className:M(Le.label,{[Le.label_active]:w}),children:v.label}):null}),x?null:c.jsx("span",{className:Le.labelSpacer})]},`label-${_}`)})}):null]})},Rv="_container_a8dhq_5",Pv="_tabs_a8dhq_8",Tv="_line_a8dhq_15",Av="_tabItem_a8dhq_25",Iv="_header_a8dhq_38",Lv="_notificationChanges_a8dhq_46",Wv="_tabs_hasAnimatedIndicator_a8dhq_65",$v="_active_a8dhq_68",Et={container:Rv,tabs:Pv,line:Tv,tabItem:Av,header:Iv,notificationChanges:Lv,tabs_hasAnimatedIndicator:Wv,active:$v};function Fv(e){return e.map((t,n)=>{if("value"in t&&"label"in t)return{key:t.value,label:t.label,className:t.className,header:t.header};const r=t;return{key:n,label:r.title,className:r.className,header:r.header}})}const Bv=d.memo(({items:e=[],value:t,onValueChange:n,activeTab:r,className:o,tabsClassName:s,changesIndex:a,badgeValue:i,sliderClassName:l,onClick:u})=>{const f=g.useMemo(()=>Fv(e),[e]),h=g.useMemo(()=>{if(t!==void 0){const v=f.findIndex(_=>_.key===t);return v>=0?v:0}return r!==void 0?r:0},[t,r,f]),p=g.useRef(null),m=g.useRef(null),[y,b]=g.useState({left:0,width:0});return g.useEffect(()=>{const v=p.current;if(!v)return;const _=()=>{const k={left:v.offsetLeft||0,width:v.clientWidth||0};b(S=>S.left===k.left&&S.width===k.width?S:k)},w=()=>{m.current!==null&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(()=>{m.current=null,_()})};w();const x=new ResizeObserver(()=>{w()});return x.observe(v),()=>{x.disconnect(),m.current!==null&&(cancelAnimationFrame(m.current),m.current=null)}},[h]),c.jsx("div",{className:M(Et.container,o),children:c.jsxs("div",{className:M(Et.tabs,Et.tabs_hasAnimatedIndicator,s),children:[f.map((v,_)=>v.label&&c.jsxs("div",{ref:h===_?p:void 0,className:M(Et.tabItem,v.className,{[Et.active]:h===_}),onClick:w=>{w.stopPropagation(),n?n(v.key):u?.(_)},children:[v.header&&c.jsx("div",{className:Et.header,children:v.header}),v.label,a===_&&c.jsx("div",{className:Et.notificationChanges,children:i!=null?i>99?"99+":String(i):null})]},_)),c.jsx("div",{className:M(Et.line,l),style:{left:y.left,width:y.width}})]})})}),zv="_wrapper_1rc3x_5",Hv="_container_1rc3x_10",Yv="_input_1rc3x_14",Vv="_error_1rc3x_49",qv="_disabled_1rc3x_55",gn={wrapper:zv,container:Hv,input:Yv,error:Vv,disabled:qv},Pc=g.forwardRef(({label:e,error:t,disabled:n,className:r,inputClassName:o,tooltipContent:s,tooltipPopperClassName:a,id:i,...l},u)=>{const f=g.useId(),h=i??f;return c.jsxs("div",{className:M(gn.wrapper,r),children:[e&&c.jsx(Lt,{htmlFor:h,tooltipContent:s,tooltipPopperClassName:a,children:e}),c.jsx("div",{className:gn.container,children:c.jsx("input",{ref:u,id:h,disabled:n,"aria-invalid":t?!0:void 0,className:M(gn.input,{[gn.disabled]:n,[gn.error]:!!t},o),...l})}),t&&c.jsx(Ct,{children:t})]})});Pc.displayName="Input";const Gv="_wrapper_kqfbf_5",Uv="_container_kqfbf_10",Zv="_textarea_kqfbf_14",Xv="_error_kqfbf_50",Kv="_disabled_kqfbf_56",vn={wrapper:Gv,container:Uv,textarea:Zv,error:Xv,disabled:Kv},Tc=g.forwardRef(({label:e,error:t,hint:n,hintVariant:r,disabled:o,className:s,textareaClassName:a,tooltipContent:i,tooltipPopperClassName:l,id:u,...f},h)=>{const p=g.useId(),m=u??p;return c.jsxs("div",{className:M(vn.wrapper,s),children:[e&&c.jsx(Lt,{htmlFor:m,tooltipContent:i,tooltipPopperClassName:l,children:e}),c.jsx("div",{className:vn.container,children:c.jsx("textarea",{ref:h,id:m,disabled:o,"aria-invalid":t?!0:void 0,className:M(vn.textarea,{[vn.disabled]:o,[vn.error]:!!t},a),...f})}),t&&c.jsx(Ct,{children:t}),!t&&n&&c.jsx(Ct,{variant:r??"neutral",children:n})]})});Tc.displayName="Textarea";function Qv(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const Jv={},wn={};function zt(e,t){try{const r=(Jv[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in wn?wn[r]:ta(r,r.split(":"))}catch{if(e in wn)return wn[e];const n=e?.match(e2);return n?ta(e,n.slice(1)):NaN}}const e2=/([+-]\d\d):?(\d\d)?/;function ta(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return wn[e]=n*60+r>0?n*60+r+o:n*60-r-o}class it extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(zt(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Ac(this),Mo(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new it(...n,t):new it(Date.now(),t)}withTimeZone(t){return new it(+this,t)}getTimezoneOffset(){const t=-zt(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Mo(this),+this}[Symbol.for("constructDateFrom")](t){return new it(+new Date(t),this.timeZone)}}const na=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!na.test(e))return;const t=e.replace(na,"$1UTC");it.prototype[t]&&(e.startsWith("get")?it.prototype[e]=function(){return this.internal[t]()}:(it.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),t2(this),+this},it.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Mo(this),+this}))});function Mo(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-zt(e.timeZone,e)*60))}function t2(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ac(e)}function Ac(e){const t=zt(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),a=o-s,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const u=new Date(+e);u.setUTCSeconds(0);const f=o>0?u.getSeconds():(u.getSeconds()-60)%60,h=Math.round(-(zt(e.timeZone,e)*60))%60;(h||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+h),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+h+f));const p=zt(e.timeZone,e),m=p>0?Math.floor(p):Math.ceil(p),b=-new Date(+e).getTimezoneOffset()-m,v=m!==n,_=b-l;if(v&&_){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+_);const w=zt(e.timeZone,e),x=w>0?Math.floor(w):Math.ceil(w),k=m-x;k&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+k),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+k))}}class Te extends it{static tz(t,...n){return n.length?new Te(...n,t):new Te(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Qv(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Te(+this,t)}[Symbol.for("constructDateFrom")](t){return new Te(+new Date(t),this.timeZone)}}const Ic=6048e5,n2=864e5,ra=Symbol.for("constructDateFrom");function Ce(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ra in e?e[ra](t):e instanceof Date?new e.constructor(t):new Date(t)}function ge(e,t){return Ce(t||e,e)}function Lc(e,t,n){const r=ge(e,n?.in);return isNaN(t)?Ce(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Wc(e,t,n){const r=ge(e,n?.in);if(isNaN(t))return Ce(e,NaN);if(!t)return r;const o=r.getDate(),s=Ce(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const a=s.getDate();return o>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let r2={};function Bn(){return r2}function cn(e,t){const n=Bn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ge(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function On(e,t){return cn(e,{...t,weekStartsOn:1})}function $c(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=Ce(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=On(o),a=Ce(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const i=On(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function oa(e){const t=ge(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function un(e,...t){const n=Ce.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Dn(e,t){const n=ge(e,t?.in);return n.setHours(0,0,0,0),n}function rs(e,t,n){const[r,o]=un(n?.in,e,t),s=Dn(r),a=Dn(o),i=+s-oa(s),l=+a-oa(a);return Math.round((i-l)/n2)}function o2(e,t){const n=$c(e,t),r=Ce(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),On(r)}function s2(e,t,n){return Lc(e,t*7,n)}function a2(e,t,n){return Wc(e,t*12,n)}function i2(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ce.bind(null,o));const s=ge(o,r);(!n||n<s||isNaN(+s))&&(n=s)}),Ce(r,n||NaN)}function c2(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ce.bind(null,o));const s=ge(o,r);(!n||n>s||isNaN(+s))&&(n=s)}),Ce(r,n||NaN)}function l2(e,t,n){const[r,o]=un(n?.in,e,t);return+Dn(r)==+Dn(o)}function Fc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function d2(e){return!(!Fc(e)&&typeof e!="number"||isNaN(+ge(e)))}function Bc(e,t,n){const[r,o]=un(n?.in,e,t),s=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return s*12+a}function u2(e,t){const n=ge(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function zc(e,t){const[n,r]=un(e,t.start,t.end);return{start:n,end:r}}function f2(e,t){const{start:n,end:r}=zc(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let i=1;const l=[];for(;+a<=s;)l.push(Ce(n,a)),a.setMonth(a.getMonth()+i);return o?l.reverse():l}function h2(e,t){const n=ge(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function m2(e,t){const n=ge(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Hc(e,t){const n=ge(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function p2(e,t){const{start:n,end:r}=zc(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let i=1;const l=[];for(;+a<=s;)l.push(Ce(n,a)),a.setFullYear(a.getFullYear()+i);return o?l.reverse():l}function Yc(e,t){const n=Bn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ge(e,t?.in),s=o.getDay(),a=(s<r?-7:0)+6-(s-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function g2(e,t){return Yc(e,{...t,weekStartsOn:1})}const v2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},b2=(e,t,n)=>{let r;const o=v2[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function uo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const _2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},y2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},w2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},x2={date:uo({formats:_2,defaultWidth:"full"}),time:uo({formats:y2,defaultWidth:"full"}),dateTime:uo({formats:w2,defaultWidth:"full"})},C2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},k2=(e,t,n,r)=>C2[e];function bn(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):a;o=e.formattingValues[i]||e.formattingValues[a]}else{const a=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const S2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},N2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},E2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},j2={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},M2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},O2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},D2=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},R2={ordinalNumber:D2,era:bn({values:S2,defaultWidth:"wide"}),quarter:bn({values:N2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:bn({values:E2,defaultWidth:"wide"}),day:bn({values:j2,defaultWidth:"wide"}),dayPeriod:bn({values:M2,defaultWidth:"wide",formattingValues:O2,defaultFormattingWidth:"wide"})};function _n(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?T2(i,h=>h.test(a)):P2(i,h=>h.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(a.length);return{value:u,rest:f}}}function P2(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function T2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function A2(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const i=t.slice(o.length);return{value:a,rest:i}}}const I2=/^(\d+)(th|st|nd|rd)?/i,L2=/\d+/i,W2={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$2={any:[/^b/i,/^(a|c)/i]},F2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},B2={any:[/1/i,/2/i,/3/i,/4/i]},z2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},H2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Y2={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},V2={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},q2={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},G2={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},U2={ordinalNumber:A2({matchPattern:I2,parsePattern:L2,valueCallback:e=>parseInt(e,10)}),era:_n({matchPatterns:W2,defaultMatchWidth:"wide",parsePatterns:$2,defaultParseWidth:"any"}),quarter:_n({matchPatterns:F2,defaultMatchWidth:"wide",parsePatterns:B2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:_n({matchPatterns:z2,defaultMatchWidth:"wide",parsePatterns:H2,defaultParseWidth:"any"}),day:_n({matchPatterns:Y2,defaultMatchWidth:"wide",parsePatterns:V2,defaultParseWidth:"any"}),dayPeriod:_n({matchPatterns:q2,defaultMatchWidth:"any",parsePatterns:G2,defaultParseWidth:"any"})},Jt={code:"en-US",formatDistance:b2,formatLong:x2,formatRelative:k2,localize:R2,match:U2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Z2(e,t){const n=ge(e,t?.in);return rs(n,Hc(n))+1}function os(e,t){const n=ge(e,t?.in),r=+On(n)-+o2(n);return Math.round(r/Ic)+1}function Vc(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=Bn(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Ce(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const i=cn(a,t),l=Ce(t?.in||e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=cn(l,t);return+n>=+i?r+1:+n>=+u?r:r-1}function X2(e,t){const n=Bn(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Vc(e,t),s=Ce(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),cn(s,t)}function ss(e,t){const n=ge(e,t?.in),r=+cn(n,t)-+X2(n,t);return Math.round(r/Ic)+1}function he(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const jt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return he(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):he(n+1,2)},d(e,t){return he(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return he(e.getHours()%12||12,t.length)},H(e,t){return he(e.getHours(),t.length)},m(e,t){return he(e.getMinutes(),t.length)},s(e,t){return he(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return he(o,t.length)}},Kt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sa={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return jt.y(e,t)},Y:function(e,t,n,r){const o=Vc(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return he(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):he(s,t.length)},R:function(e,t){const n=$c(e);return he(n,t.length)},u:function(e,t){const n=e.getFullYear();return he(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return he(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return he(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return jt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return he(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=ss(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):he(o,t.length)},I:function(e,t,n){const r=os(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):he(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):jt.d(e,t)},D:function(e,t,n){const r=Z2(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):he(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return he(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return he(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return he(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Kt.noon:r===0?o=Kt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Kt.evening:r>=12?o=Kt.afternoon:r>=4?o=Kt.morning:o=Kt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return jt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):jt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):he(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):he(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):jt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):jt.s(e,t)},S:function(e,t){return jt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return ia(r);case"XXXX":case"XX":return Bt(r);default:return Bt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return ia(r);case"xxxx":case"xx":return Bt(r);default:return Bt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+aa(r,":");default:return"GMT"+Bt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+aa(r,":");default:return"GMT"+Bt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return he(r,t.length)},T:function(e,t,n){return he(+e,t.length)}};function aa(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+he(s,2)}function ia(e,t){return e%60===0?(e>0?"-":"+")+he(Math.abs(e)/60,2):Bt(e,t)}function Bt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=he(Math.trunc(r/60),2),s=he(r%60,2);return n+o+t+s}const ca=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},qc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},K2=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ca(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",ca(r,t)).replace("{{time}}",qc(o,t))},Q2={p:qc,P:K2},J2=/^D+$/,eb=/^Y+$/,tb=["D","DD","YY","YYYY"];function nb(e){return J2.test(e)}function rb(e){return eb.test(e)}function ob(e,t,n){const r=sb(e,t,n);if(console.warn(r),tb.includes(e))throw new RangeError(r)}function sb(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ab=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ib=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cb=/^'([^]*?)'?$/,lb=/''/g,db=/[a-zA-Z]/;function xn(e,t,n){const r=Bn(),o=n?.locale??r.locale??Jt,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=ge(e,n?.in);if(!d2(i))throw new RangeError("Invalid time value");let l=t.match(ib).map(f=>{const h=f[0];if(h==="p"||h==="P"){const p=Q2[h];return p(f,o.formatLong)}return f}).join("").match(ab).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const h=f[0];if(h==="'")return{isToken:!1,value:ub(f)};if(sa[h])return{isToken:!0,value:f};if(h.match(db))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return l.map(f=>{if(!f.isToken)return f.value;const h=f.value;(!n?.useAdditionalWeekYearTokens&&rb(h)||!n?.useAdditionalDayOfYearTokens&&nb(h))&&ob(h,t,String(e));const p=sa[h[0]];return p(i,h,o.localize,u)}).join("")}function ub(e){const t=e.match(cb);return t?t[1].replace(lb,"'"):e}function fb(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=n.getMonth(),s=Ce(n,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function hb(e,t){return ge(e,t?.in).getMonth()}function mb(e,t){return ge(e,t?.in).getFullYear()}function pb(e,t){return+ge(e)>+ge(t)}function gb(e,t){return+ge(e)<+ge(t)}function vb(e,t,n){const[r,o]=un(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function bb(e,t,n){const[r,o]=un(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function _b(e,t,n){const r=ge(e,n?.in),o=r.getFullYear(),s=r.getDate(),a=Ce(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const i=fb(a);return r.setMonth(t,Math.min(s,i)),r}function yb(e,t,n){const r=ge(e,n?.in);return isNaN(+r)?Ce(e,NaN):(r.setFullYear(t),r)}const la=5,wb=4;function xb(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),s=t.addDays(o,la*7-1);return t.getMonth(e)===t.getMonth(s)?la:wb}function Gc(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function Cb(e,t){const n=Gc(e,t),r=xb(e,t);return t.addDays(n,r*7-1)}const Uc={...Jt,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>xn(a,i,{locale:Jt,...n});let s=o(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>xn(o,s,{locale:Jt,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>xn(a,i,{locale:Jt,...n});let s=o(e,"PPPP");return t?.today&&(s=`Today, ${s}`),s},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>xn(o,s,{locale:Jt,...t}),r(e,"cccc")}}};class Ve{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Te.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,s)=>this.overrides?.newDate?this.overrides.newDate(r,o,s):this.options.timeZone?new Te(r,o,s,this.options.timeZone):new Date(r,o,s),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):Lc(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):Wc(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):s2(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):a2(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):rs(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):Bc(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):f2(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):p2(r),s=new Set(o.map(i=>this.getYear(i)));if(s.size===o.length)return o;const a=[];return s.forEach(i=>{a.push(new Date(i,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):Cb(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):g2(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):u2(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Yc(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):m2(r),this.format=(r,o,s)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):xn(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):os(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):hb(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):mb(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):ss(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):pb(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):gb(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Fc(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):l2(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):vb(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):bb(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):i2(r),this.min=r=>this.overrides?.min?this.overrides.min(r):c2(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):_b(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):yb(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Gc(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Dn(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):On(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):h2(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):cn(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Hc(r),this.options={locale:Uc,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&Ve.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,s=n?.code;if(s&&Ve.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}Ve.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const ft=new Ve;class Zc{constructor(t,n,r=ft){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class kb{constructor(t,n){this.date=t,this.weeks=n}}class Sb{constructor(t,n){this.days=n,this.weekNumber=t}}function Nb(e){return g.createElement("button",{...e})}function Eb(e){return g.createElement("span",{...e})}function jb(e){const{size:t=24,orientation:n="left",className:r}=e;return g.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&g.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&g.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&g.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&g.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Mb(e){const{day:t,modifiers:n,...r}=e;return g.createElement("td",{...r})}function Ob(e){const{day:t,modifiers:n,...r}=e,o=g.useRef(null);return g.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),g.createElement("button",{ref:o,...r})}var H;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(H||(H={}));var ye;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(ye||(ye={}));var Je;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Je||(Je={}));var ze;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(ze||(ze={}));function Db(e){const{options:t,className:n,components:r,classNames:o,...s}=e,a=[o[H.Dropdown],n].join(" "),i=t?.find(({value:l})=>l===s.value);return g.createElement("span",{"data-disabled":s.disabled,className:o[H.DropdownRoot]},g.createElement(r.Select,{className:a,...s},t?.map(({value:l,label:u,disabled:f})=>g.createElement(r.Option,{key:l,value:l,disabled:f},u))),g.createElement("span",{className:o[H.CaptionLabel],"aria-hidden":!0},i?.label,g.createElement(r.Chevron,{orientation:"down",size:18,className:o[H.Chevron]})))}function Rb(e){return g.createElement("div",{...e})}function Pb(e){return g.createElement("div",{...e})}function Tb(e){const{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r},e.children)}function Ab(e){const{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r})}function Ib(e){return g.createElement("table",{...e})}function Lb(e){return g.createElement("div",{...e})}const Xc=g.createContext(void 0);function zn(){const e=g.useContext(Xc);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function Wb(e){const{components:t}=zn();return g.createElement(t.Dropdown,{...e})}function $b(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...s}=e,{components:a,classNames:i,labels:{labelPrevious:l,labelNext:u}}=zn(),f=g.useCallback(p=>{o&&n?.(p)},[o,n]),h=g.useCallback(p=>{r&&t?.(p)},[r,t]);return g.createElement("nav",{...s},g.createElement(a.PreviousMonthButton,{type:"button",className:i[H.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:h},g.createElement(a.Chevron,{disabled:r?void 0:!0,className:i[H.Chevron],orientation:"left"})),g.createElement(a.NextMonthButton,{type:"button",className:i[H.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:f},g.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[H.Chevron]})))}function Fb(e){const{components:t}=zn();return g.createElement(t.Button,{...e})}function Bb(e){return g.createElement("option",{...e})}function zb(e){const{components:t}=zn();return g.createElement(t.Button,{...e})}function Hb(e){const{rootRef:t,...n}=e;return g.createElement("div",{...n,ref:t})}function Yb(e){return g.createElement("select",{...e})}function Vb(e){const{week:t,...n}=e;return g.createElement("tr",{...n})}function qb(e){return g.createElement("th",{...e})}function Gb(e){return g.createElement("thead",{"aria-hidden":!0},g.createElement("tr",{...e}))}function Ub(e){const{week:t,...n}=e;return g.createElement("th",{...n})}function Zb(e){return g.createElement("th",{...e})}function Xb(e){return g.createElement("tbody",{...e})}function Kb(e){const{components:t}=zn();return g.createElement(t.Dropdown,{...e})}const Qb=Object.freeze(Object.defineProperty({__proto__:null,Button:Nb,CaptionLabel:Eb,Chevron:jb,Day:Mb,DayButton:Ob,Dropdown:Db,DropdownNav:Rb,Footer:Pb,Month:Tb,MonthCaption:Ab,MonthGrid:Ib,Months:Lb,MonthsDropdown:Wb,Nav:$b,NextMonthButton:Fb,Option:Bb,PreviousMonthButton:zb,Root:Hb,Select:Yb,Week:Vb,WeekNumber:Ub,WeekNumberHeader:Zb,Weekday:qb,Weekdays:Gb,Weeks:Xb,YearsDropdown:Kb},Symbol.toStringTag,{value:"Module"}));function _t(e,t,n=!1,r=ft){let{from:o,to:s}=e;const{differenceInCalendarDays:a,isSameDay:i}=r;return o&&s?(a(s,o)<0&&([o,s]=[s,o]),a(t,o)>=(n?1:0)&&a(s,t)>=(n?1:0)):!n&&s?i(s,t):!n&&o?i(o,t):!1}function as(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Fr(e){return!!(e&&typeof e=="object"&&"from"in e)}function is(e){return!!(e&&typeof e=="object"&&"after"in e)}function cs(e){return!!(e&&typeof e=="object"&&"before"in e)}function Kc(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Qc(e,t){return Array.isArray(e)&&e.every(t.isDate)}function yt(e,t,n=ft){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:s,isAfter:a}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(Qc(i,n))return i.some(l=>o(e,l));if(Fr(i))return _t(i,e,!1,n);if(Kc(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(as(i)){const l=s(i.before,e),u=s(i.after,e),f=l>0,h=u<0;return a(i.before,i.after)?h&&f:f||h}return is(i)?s(e,i.after)>0:cs(i)?s(i.before,e)>0:typeof i=="function"?i(e):!1})}function Jb(e,t,n,r,o){const{disabled:s,hidden:a,modifiers:i,showOutsideDays:l,broadcastCalendar:u,today:f=o.today()}=t,{isSameDay:h,isSameMonth:p,startOfMonth:m,isBefore:y,endOfMonth:b,isAfter:v}=o,_=n&&m(n),w=r&&b(r),x={[ye.focused]:[],[ye.outside]:[],[ye.disabled]:[],[ye.hidden]:[],[ye.today]:[]},k={};for(const S of e){const{date:C,displayMonth:N}=S,E=!!(N&&!p(C,N)),D=!!(_&&y(C,_)),O=!!(w&&v(C,w)),T=!!(s&&yt(C,s,o)),R=!!(a&&yt(C,a,o))||D||O||!u&&!l&&E||u&&l===!1&&E,A=h(C,f);E&&x.outside.push(S),T&&x.disabled.push(S),R&&x.hidden.push(S),A&&x.today.push(S),i&&Object.keys(i).forEach(I=>{const X=i?.[I];X&&yt(C,X,o)&&(k[I]?k[I].push(S):k[I]=[S])})}return S=>{const C={[ye.focused]:!1,[ye.disabled]:!1,[ye.hidden]:!1,[ye.outside]:!1,[ye.today]:!1},N={};for(const E in x){const D=x[E];C[E]=D.some(O=>O===S)}for(const E in k)N[E]=k[E].some(D=>D===S);return{...C,...N}}}function e_(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[s])=>(n[s]?o.push(n[s]):t[ye[s]]?o.push(t[ye[s]]):t[Je[s]]&&o.push(t[Je[s]]),o),[t[H.Day]])}function t_(e){return{...Qb,...e}}function n_(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function ls(){const e={};for(const t in H)e[H[t]]=`rdp-${H[t]}`;for(const t in ye)e[ye[t]]=`rdp-${ye[t]}`;for(const t in Je)e[Je[t]]=`rdp-${Je[t]}`;for(const t in ze)e[ze[t]]=`rdp-${ze[t]}`;return e}function Jc(e,t,n){return(n??new Ve(t)).formatMonthYear(e)}const r_=Jc;function o_(e,t,n){return(n??new Ve(t)).format(e,"d")}function s_(e,t=ft){return t.format(e,"LLLL")}function a_(e,t,n){return(n??new Ve(t)).format(e,"cccccc")}function i_(e,t=ft){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function c_(){return""}function el(e,t=ft){return t.format(e,"yyyy")}const l_=el,d_=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Jc,formatDay:o_,formatMonthCaption:r_,formatMonthDropdown:s_,formatWeekNumber:i_,formatWeekNumberHeader:c_,formatWeekdayName:a_,formatYearCaption:l_,formatYearDropdown:el},Symbol.toStringTag,{value:"Module"}));function u_(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...d_,...e}}function ds(e,t,n,r){let o=(r??new Ve(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const f_=ds;function us(e,t,n){return(n??new Ve(t)).formatMonthYear(e)}const h_=us;function tl(e,t,n,r){let o=(r??new Ve(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function nl(e){return"Choose the Month"}function rl(){return""}const m_="Go to the Next Month";function ol(e,t){return m_}function sl(e){return"Go to the Previous Month"}function al(e,t,n){return(n??new Ve(t)).format(e,"cccc")}function il(e,t){return`Week ${e}`}function cl(e){return"Week Number"}function ll(e){return"Choose the Year"}const p_=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:h_,labelDay:f_,labelDayButton:ds,labelGrid:us,labelGridcell:tl,labelMonthDropdown:nl,labelNav:rl,labelNext:ol,labelPrevious:sl,labelWeekNumber:il,labelWeekNumberHeader:cl,labelWeekday:al,labelYearDropdown:ll},Symbol.toStringTag,{value:"Module"})),Ke=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function g_(e,t){const n=t.locale?.labels??{};return{...p_,...e??{},labelDayButton:Ke(ds,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Ke(nl,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Ke(ol,e?.labelNext,n.labelNext),labelPrevious:Ke(sl,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Ke(il,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Ke(ll,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Ke(us,e?.labelGrid,n.labelGrid),labelGridcell:Ke(tl,e?.labelGridcell,n.labelGridcell),labelNav:Ke(rl,e?.labelNav,n.labelNav),labelWeekNumberHeader:Ke(cl,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Ke(al,e?.labelWeekday,n.labelWeekday)}}function v_(e,t,n,r,o){const{startOfMonth:s,startOfYear:a,endOfYear:i,eachMonthOfInterval:l,getMonth:u}=o;return l({start:a(e),end:i(e)}).map(p=>{const m=r.formatMonthDropdown(p,o),y=u(p),b=t&&p<s(t)||n&&p>s(n)||!1;return{value:y,label:m,disabled:b}})}function b_(e,t={},n={}){let r={...t?.[H.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function __(e,t,n,r){const o=r??e.today(),s=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let i=0;i<7;i++){const l=e.addDays(s,i);a.push(l)}return a}function y_(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:a,eachYearOfInterval:i,getYear:l}=r,u=s(e),f=a(t),h=i({start:u,end:f});return o&&h.reverse(),h.map(p=>{const m=n.formatYearDropdown(p,r);return{value:l(p),label:m,disabled:!1}})}function w_(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,s=i=>{const l=typeof i=="number"||typeof i=="string"?new Date(i):i;return new Te(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,e)},a=i=>{const l=s(i);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>s(Te.tz(e)),newDate:(i,l,u)=>new Te(i,l,u,12,0,0,e),startOfDay:i=>s(i),startOfWeek:(i,l)=>{const u=s(i),f=l?.weekStartsOn??o,h=(u.getDay()-f+7)%7;return u.setDate(u.getDate()-h),u},startOfISOWeek:i=>{const l=s(i),u=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-u),l},startOfMonth:i=>{const l=s(i);return l.setDate(1),l},startOfYear:i=>{const l=s(i);return l.setMonth(0,1),l},endOfWeek:(i,l)=>{const u=s(i),p=(((l?.weekStartsOn??o)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+p),u},endOfISOWeek:i=>{const l=s(i),u=(7-l.getDay())%7;return l.setDate(l.getDate()+u),l},endOfMonth:i=>{const l=s(i);return l.setMonth(l.getMonth()+1,0),l},endOfYear:i=>{const l=s(i);return l.setMonth(11,31),l},eachMonthOfInterval:i=>{const l=s(i.start),u=s(i.end),f=[],h=new Te(l.getFullYear(),l.getMonth(),1,12,0,0,e),p=u.getFullYear()*12+u.getMonth();for(;h.getFullYear()*12+h.getMonth()<=p;)f.push(new Te(h,e)),h.setMonth(h.getMonth()+1,1);return f},addDays:(i,l)=>{const u=s(i);return u.setDate(u.getDate()+l),u},addWeeks:(i,l)=>{const u=s(i);return u.setDate(u.getDate()+l*7),u},addMonths:(i,l)=>{const u=s(i);return u.setMonth(u.getMonth()+l),u},addYears:(i,l)=>{const u=s(i);return u.setFullYear(u.getFullYear()+l),u},eachYearOfInterval:i=>{const l=s(i.start),u=s(i.end),f=[],h=new Te(l.getFullYear(),0,1,12,0,0,e);for(;h.getFullYear()<=u.getFullYear();)f.push(new Te(h,e)),h.setFullYear(h.getFullYear()+1,0,1);return f},getWeek:(i,l)=>{const u=a(i);return ss(u,{weekStartsOn:l?.weekStartsOn??o,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:i=>{const l=a(i);return os(l)},differenceInCalendarDays:(i,l)=>{const u=a(i),f=a(l);return rs(u,f)},differenceInCalendarMonths:(i,l)=>{const u=a(i),f=a(l);return Bc(u,f)}}}const Hn=e=>e instanceof HTMLElement?e:null,fo=e=>[...e.querySelectorAll("[data-animated-month]")??[]],x_=e=>Hn(e.querySelector("[data-animated-month]")),ho=e=>Hn(e.querySelector("[data-animated-caption]")),mo=e=>Hn(e.querySelector("[data-animated-weeks]")),C_=e=>Hn(e.querySelector("[data-animated-nav]")),k_=e=>Hn(e.querySelector("[data-animated-weekdays]"));function S_(e,t,{classNames:n,months:r,focused:o,dateLib:s}){const a=g.useRef(null),i=g.useRef(r),l=g.useRef(!1);g.useLayoutEffect(()=>{const u=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const f=s.isSameMonth(r[0].date,u[0].date),h=s.isAfter(r[0].date,u[0].date),p=h?n[ze.caption_after_enter]:n[ze.caption_before_enter],m=h?n[ze.weeks_after_enter]:n[ze.weeks_before_enter],y=a.current,b=e.current.cloneNode(!0);if(b instanceof HTMLElement?(fo(b).forEach(x=>{if(!(x instanceof HTMLElement))return;const k=x_(x);k&&x.contains(k)&&x.removeChild(k);const S=ho(x);S&&S.classList.remove(p);const C=mo(x);C&&C.classList.remove(m)}),a.current=b):a.current=null,l.current||f||o)return;const v=y instanceof HTMLElement?fo(y):[],_=fo(e.current);if(_?.every(w=>w instanceof HTMLElement)&&v&&v.every(w=>w instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const w=C_(e.current);w&&(w.style.zIndex="1"),_.forEach((x,k)=>{const S=v[k];if(!S)return;x.style.position="relative",x.style.overflow="hidden";const C=ho(x);C&&C.classList.add(p);const N=mo(x);N&&N.classList.add(m);const E=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),w&&(w.style.zIndex=""),C&&C.classList.remove(p),N&&N.classList.remove(m),x.style.position="",x.style.overflow="",x.contains(S)&&x.removeChild(S)};S.style.pointerEvents="none",S.style.position="absolute",S.style.overflow="hidden",S.setAttribute("aria-hidden","true");const D=k_(S);D&&(D.style.opacity="0");const O=ho(S);O&&(O.classList.add(h?n[ze.caption_before_exit]:n[ze.caption_after_exit]),O.addEventListener("animationend",E));const T=mo(S);T&&T.classList.add(h?n[ze.weeks_before_exit]:n[ze.weeks_after_exit]),x.insertBefore(S,x.firstChild)})}})}function N_(e,t,n,r){const o=e[0],s=e[e.length-1],{ISOWeek:a,fixedWeeks:i,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:f,differenceInCalendarMonths:h,endOfBroadcastWeek:p,endOfISOWeek:m,endOfMonth:y,endOfWeek:b,isAfter:v,startOfBroadcastWeek:_,startOfISOWeek:w,startOfWeek:x}=r,k=l?_(o,r):a?w(o):x(o),S=l?p(s):a?m(y(s)):b(y(s)),C=t&&(l?p(t):a?m(t):b(t)),N=C&&v(S,C)?C:S,E=f(N,k),D=h(s,o)+1,O=[];for(let A=0;A<=E;A++){const I=u(k,A);O.push(I)}const R=(l?35:42)*D;if(i&&O.length<R){const A=R-O.length;for(let I=0;I<A;I++){const X=u(O[O.length-1],1);O.push(X)}}return O}function E_(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((s,a)=>s.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function j_(e,t,n,r){const{numberOfMonths:o=1}=n,s=[];for(let a=0;a<o;a++){const i=r.addMonths(e,a);if(t&&i>t)break;s.push(i)}return s}function da(e,t,n,r){const{month:o,defaultMonth:s,today:a=r.today(),numberOfMonths:i=1}=e;let l=o||s||a;const{differenceInCalendarMonths:u,addMonths:f,startOfMonth:h}=r;if(n&&u(n,l)<i-1){const p=-1*(i-1);l=f(n,p)}return t&&u(l,t)<0&&(l=t),h(l)}function M_(e,t,n,r){const{addDays:o,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:i,endOfWeek:l,getISOWeek:u,getWeek:f,startOfBroadcastWeek:h,startOfISOWeek:p,startOfWeek:m}=r,y=e.reduce((b,v)=>{const _=n.broadcastCalendar?h(v,r):n.ISOWeek?p(v):m(v),w=n.broadcastCalendar?s(v):n.ISOWeek?a(i(v)):l(i(v)),x=t.filter(N=>N>=_&&N<=w),k=n.broadcastCalendar?35:42;if(n.fixedWeeks&&x.length<k){const N=t.filter(E=>{const D=k-x.length;return E>w&&E<=o(w,D)});x.push(...N)}const S=x.reduce((N,E)=>{const D=n.ISOWeek?u(E):f(E),O=N.find(R=>R.weekNumber===D),T=new Zc(E,v,r);return O?O.days.push(T):N.push(new Sb(D,[T])),N},[]),C=new kb(v,S);return b.push(C),b},[]);return n.reverseMonths?y.reverse():y}function O_(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:s,startOfMonth:a,endOfMonth:i,addYears:l,endOfYear:u,newDate:f,today:h}=t,{fromYear:p,toYear:m,fromMonth:y,toMonth:b}=e;!n&&y&&(n=y),!n&&p&&(n=t.newDate(p,0,1)),!r&&b&&(r=b),!r&&m&&(r=f(m,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):p?n=f(p,0,1):!n&&v&&(n=o(l(e.today??h(),-100))),r?r=i(r):m?r=f(m,11,31):!r&&v&&(r=u(e.today??h())),[n&&s(n),r&&s(r)]}function D_(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s=1}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:l}=r,u=o?s:1,f=a(e);if(!t)return i(f,u);if(!(l(t,e)<s))return i(f,u)}function R_(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:l}=r,u=o?s??1:1,f=a(e);if(!t)return i(f,-u);if(!(l(f,t)<=0))return i(f,-u)}function P_(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Br(e,t){const[n,r]=g.useState(e);return[t===void 0?n:t,r]}function T_(e,t){const[n,r]=O_(e,t),{startOfMonth:o,endOfMonth:s}=t,a=da(e,n,r,t),[i,l]=Br(a,e.month?a:void 0);g.useEffect(()=>{const k=da(e,n,r,t);l(k)},[e.timeZone]);const{months:u,weeks:f,days:h,previousMonth:p,nextMonth:m}=g.useMemo(()=>{const k=j_(i,r,{numberOfMonths:e.numberOfMonths},t),S=N_(k,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),C=M_(k,S,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),N=P_(C),E=E_(C),D=R_(i,n,e,t),O=D_(i,r,e,t);return{months:C,weeks:N,days:E,previousMonth:D,nextMonth:O}},[t,i.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:y,onMonthChange:b}=e,v=k=>f.some(S=>S.days.some(C=>C.isEqualTo(k))),_=k=>{if(y)return;let S=o(k);n&&S<o(n)&&(S=o(n)),r&&S>o(r)&&(S=o(r)),l(S),b?.(S)};return{months:u,weeks:f,days:h,navStart:n,navEnd:r,previousMonth:p,nextMonth:m,goToMonth:_,goToDay:k=>{v(k)||_(k.date)}}}var ot;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(ot||(ot={}));function ua(e){return!e[ye.disabled]&&!e[ye.hidden]&&!e[ye.outside]}function A_(e,t,n,r){let o,s=-1;for(const a of e){const i=t(a);ua(i)&&(i[ye.focused]&&s<ot.FocusedModifier?(o=a,s=ot.FocusedModifier):r?.isEqualTo(a)&&s<ot.LastFocused?(o=a,s=ot.LastFocused):n(a.date)&&s<ot.Selected?(o=a,s=ot.Selected):i[ye.today]&&s<ot.Today&&(o=a,s=ot.Today))}return o||(o=e.find(a=>ua(t(a)))),o}function I_(e,t,n,r,o,s,a){const{ISOWeek:i,broadcastCalendar:l}=s,{addDays:u,addMonths:f,addWeeks:h,addYears:p,endOfBroadcastWeek:m,endOfISOWeek:y,endOfWeek:b,max:v,min:_,startOfBroadcastWeek:w,startOfISOWeek:x,startOfWeek:k}=a;let C={day:u,week:h,month:f,year:p,startOfWeek:N=>l?w(N,a):i?x(N):k(N),endOfWeek:N=>l?m(N):i?y(N):b(N)}[e](n,t==="after"?1:-1);return t==="before"&&r?C=v([r,C]):t==="after"&&o&&(C=_([o,C])),C}function dl(e,t,n,r,o,s,a,i=0){if(i>365)return;const l=I_(e,t,n.date,r,o,s,a),u=!!(s.disabled&&yt(l,s.disabled,a)),f=!!(s.hidden&&yt(l,s.hidden,a)),h=l,p=new Zc(l,h,a);return!u&&!f?p:dl(e,t,p,r,o,s,a,i+1)}function L_(e,t,n,r,o){const{autoFocus:s}=e,[a,i]=g.useState(),l=A_(t.days,n,r||(()=>!1),a),[u,f]=g.useState(s?l:void 0);return{isFocusTarget:b=>!!l?.isEqualTo(b),setFocused:f,focused:u,blur:()=>{i(u),f(void 0)},moveFocus:(b,v)=>{if(!u)return;const _=dl(b,v,u,t.navStart,t.navEnd,e,o);_&&(e.disableNavigation&&!t.days.some(x=>x.isEqualTo(_))||(t.goToDay(_),f(_)))}}}function W_(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Br(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t,u=m=>i?.some(y=>l(y,m))??!1,{min:f,max:h}=e;return{selected:i,select:(m,y,b)=>{let v=[...i??[]];if(u(m)){if(i?.length===f||r&&i?.length===1)return;v=i?.filter(_=>!l(_,m))}else i?.length===h?v=[m]:v=[...v,m];return o||a(v),o?.(v,m,y,b),v},isSelected:u}}function $_(e,t,n=0,r=0,o=!1,s=ft){const{from:a,to:i}=t||{},{isSameDay:l,isAfter:u,isBefore:f}=s;let h;if(!a&&!i)h={from:e,to:n>0?void 0:e};else if(a&&!i)l(a,e)?n===0?h={from:a,to:e}:o?h={from:a,to:void 0}:h=void 0:f(e,a)?h={from:e,to:a}:h={from:a,to:e};else if(a&&i)if(l(a,e)&&l(i,e))o?h={from:a,to:i}:h=void 0;else if(l(a,e))h={from:a,to:n>0?void 0:e};else if(l(i,e))h={from:e,to:n>0?void 0:e};else if(f(e,a))h={from:e,to:i};else if(u(e,a))h={from:a,to:e};else if(u(e,i))h={from:a,to:e};else throw new Error("Invalid range");if(h?.from&&h?.to){const p=s.differenceInCalendarDays(h.to,h.from);r>0&&p>r?h={from:e,to:void 0}:n>1&&p<n&&(h={from:e,to:void 0})}return h}function F_(e,t,n=ft){const r=Array.isArray(t)?t:[t];let o=e.from;const s=n.differenceInCalendarDays(e.to,e.from),a=Math.min(s,6);for(let i=0;i<=a;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function fa(e,t,n=ft){return _t(e,t.from,!1,n)||_t(e,t.to,!1,n)||_t(t,e.from,!1,n)||_t(t,e.to,!1,n)}function B_(e,t,n=ft){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?_t(e,i,!1,n):Qc(i,n)?i.some(l=>_t(e,l,!1,n)):Fr(i)?i.from&&i.to?fa(e,{from:i.from,to:i.to},n):!1:Kc(i)?F_(e,i.dayOfWeek,n):as(i)?n.isAfter(i.before,i.after)?fa(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):yt(e.from,i,n)||yt(e.to,i,n):is(i)||cs(i)?yt(e.from,i,n)||yt(e.to,i,n):!1))return!0;const a=r.filter(i=>typeof i=="function");if(a.length){let i=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=l;u++){if(a.some(f=>f(i)))return!0;i=n.addDays(i,1)}}return!1}function z_(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:o,selected:s,required:a,onSelect:i}=e,[l,u]=Br(s,i?s:void 0),f=i?s:l;return{selected:f,select:(m,y,b)=>{const{min:v,max:_}=e;let w;if(m){const x=f?.from,k=f?.to,S=!!x&&!!k,C=!!x&&!!k&&t.isSameDay(x,k)&&t.isSameDay(m,x);o&&(S||!f?.from)?!a&&C?w=void 0:w={from:m,to:void 0}:w=$_(m,f,v,_,a,t)}return r&&n&&w?.from&&w.to&&B_({from:w.from,to:w.to},n,t)&&(w.from=m,w.to=void 0),i||u(w),i?.(w,m,y,b),w},isSelected:m=>f&&_t(f,m,!1,t)}}function H_(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Br(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t;return{selected:i,select:(h,p,m)=>{let y=h;return!r&&i&&i&&l(h,i)&&(y=void 0),o||a(y),o?.(y,h,p,m),y},isSelected:h=>i?l(i,h):!1}}function Y_(e,t){const n=H_(e,t),r=W_(e,t),o=z_(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function Ge(e,t){return e instanceof Te&&e.timeZone===t?e:new Te(e,t)}function Qt(e,t,n){return Ge(e,t)}function ha(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Qt(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Qt(r,t):r):Fr(e)?{...e,from:e.from?Ge(e.from,t):e.from,to:e.to?Ge(e.to,t):e.to}:as(e)?{before:Qt(e.before,t),after:Qt(e.after,t)}:is(e)?{after:Qt(e.after,t)}:cs(e)?{before:Qt(e.before,t)}:e}function po(e,t,n){return e&&(Array.isArray(e)?e.map(r=>ha(r,t)):ha(e,t))}function V_(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Ge(t.today,n)),t.month&&(t.month=Ge(t.month,n)),t.defaultMonth&&(t.defaultMonth=Ge(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Ge(t.startMonth,n)),t.endMonth&&(t.endMonth=Ge(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=Ge(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(Q=>Ge(Q,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Ge(t.selected.from,n):t.selected.from,to:t.selected.to?Ge(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=po(t.disabled,n)),t.hidden!==void 0&&(t.hidden=po(t.hidden,n)),t.modifiers)){const Q={};Object.keys(t.modifiers).forEach(ue=>{Q[ue]=po(t.modifiers?.[ue],n)}),t.modifiers=Q}const{components:r,formatters:o,labels:s,dateLib:a,locale:i,classNames:l}=g.useMemo(()=>{const Q={...Uc,...t.locale},ue=t.broadcastCalendar?1:t.weekStartsOn,U=t.noonSafe&&t.timeZone?w_(t.timeZone,{weekStartsOn:ue,locale:Q}):void 0,le=t.dateLib&&U?{...U,...t.dateLib}:t.dateLib??U,$e=new Ve({locale:Q,weekStartsOn:ue,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},le);return{dateLib:$e,components:t_(t.components),formatters:u_(t.formatters),labels:g_(t.labels,$e.options),locale:Q,classNames:{...ls(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:u,mode:f,navLayout:h,numberOfMonths:p=1,onDayBlur:m,onDayClick:y,onDayFocus:b,onDayKeyDown:v,onDayMouseEnter:_,onDayMouseLeave:w,onNextClick:x,onPrevClick:k,showWeekNumber:S,styles:C}=t,{formatCaption:N,formatDay:E,formatMonthDropdown:D,formatWeekNumber:O,formatWeekNumberHeader:T,formatWeekdayName:R,formatYearDropdown:A}=o,I=T_(t,a),{days:X,months:P,navStart:q,navEnd:W,previousMonth:G,nextMonth:j,goToMonth:K}=I,ve=Jb(X,t,q,W,a),{isSelected:V,select:ne,selected:ee}=Y_(t,a)??{},{blur:re,focused:fe,isFocusTarget:Me,moveFocus:se,setFocused:$}=L_(t,I,ve,V??(()=>!1),a),{labelDayButton:de,labelGridcell:ke,labelGrid:Oe,labelMonthDropdown:ce,labelNav:De,labelPrevious:ht,labelNext:Vn,labelWeekday:qn,labelWeekNumber:Gn,labelWeekNumberHeader:qt,labelYearDropdown:zr}=s,Hr=g.useMemo(()=>__(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),Un=f!==void 0||y!==void 0,mn=g.useCallback(()=>{G&&(K(G),k?.(G))},[G,K,k]),z=g.useCallback(()=>{j&&(K(j),x?.(j))},[K,j,x]),_e=g.useCallback((Q,ue)=>U=>{U.preventDefault(),U.stopPropagation(),$(Q),!ue.disabled&&(ne?.(Q.date,ue,U),y?.(Q.date,ue,U))},[ne,y,$]),me=g.useCallback((Q,ue)=>U=>{$(Q),b?.(Q.date,ue,U)},[b,$]),Se=g.useCallback((Q,ue)=>U=>{re(),m?.(Q.date,ue,U)},[re,m]),Re=g.useCallback((Q,ue)=>U=>{const le={ArrowLeft:[U.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[U.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[U.shiftKey?"year":"week","after"],ArrowUp:[U.shiftKey?"year":"week","before"],PageUp:[U.shiftKey?"year":"month","before"],PageDown:[U.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(le[U.key]){U.preventDefault(),U.stopPropagation();const[$e,ie]=le[U.key];se($e,ie)}v?.(Q.date,ue,U)},[se,v,t.dir]),Ze=g.useCallback((Q,ue)=>U=>{_?.(Q.date,ue,U)},[_]),Pe=g.useCallback((Q,ue)=>U=>{w?.(Q.date,ue,U)},[w]),Ne=g.useCallback(Q=>ue=>{const U=Number(ue.target.value),le=a.setMonth(a.startOfMonth(Q),U);K(le)},[a,K]),mt=g.useCallback(Q=>ue=>{const U=Number(ue.target.value),le=a.setYear(a.startOfMonth(Q),U);K(le)},[a,K]),{className:pt,style:Xe}=g.useMemo(()=>({className:[l[H.Root],t.className].filter(Boolean).join(" "),style:{...C?.[H.Root],...t.style}}),[l,t.className,t.style,C]),nt=n_(t),Zn=g.useRef(null);S_(Zn,!!t.animate,{classNames:l,months:P,focused:fe,dateLib:a});const Sl={dayPickerProps:t,selected:ee,select:ne,isSelected:V,months:P,nextMonth:j,previousMonth:G,goToMonth:K,getModifiers:ve,components:r,classNames:l,styles:C,labels:s,formatters:o};return g.createElement(Xc.Provider,{value:Sl},g.createElement(r.Root,{rootRef:t.animate?Zn:void 0,className:pt,style:Xe,dir:t.dir,id:t.id,lang:t.lang??i.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...nt},g.createElement(r.Months,{className:l[H.Months],style:C?.[H.Months]},!t.hideNavigation&&!h&&g.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[H.Nav],style:C?.[H.Nav],"aria-label":De(),onPreviousClick:mn,onNextClick:z,previousMonth:G,nextMonth:j}),P.map((Q,ue)=>g.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[H.Month],style:C?.[H.Month],key:ue,displayIndex:ue,calendarMonth:Q},h==="around"&&!t.hideNavigation&&ue===0&&g.createElement(r.PreviousMonthButton,{type:"button",className:l[H.PreviousMonthButton],tabIndex:G?void 0:-1,"aria-disabled":G?void 0:!0,"aria-label":ht(G),onClick:mn,"data-animated-button":t.animate?"true":void 0},g.createElement(r.Chevron,{disabled:G?void 0:!0,className:l[H.Chevron],orientation:t.dir==="rtl"?"right":"left"})),g.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[H.MonthCaption],style:C?.[H.MonthCaption],calendarMonth:Q,displayIndex:ue},u?.startsWith("dropdown")?g.createElement(r.DropdownNav,{className:l[H.Dropdowns],style:C?.[H.Dropdowns]},(()=>{const U=u==="dropdown"||u==="dropdown-months"?g.createElement(r.MonthsDropdown,{key:"month",className:l[H.MonthsDropdown],"aria-label":ce(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Ne(Q.date),options:v_(Q.date,q,W,o,a),style:C?.[H.Dropdown],value:a.getMonth(Q.date)}):g.createElement("span",{key:"month"},D(Q.date,a)),le=u==="dropdown"||u==="dropdown-years"?g.createElement(r.YearsDropdown,{key:"year",className:l[H.YearsDropdown],"aria-label":zr(a.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:mt(Q.date),options:y_(q,W,o,a,!!t.reverseYears),style:C?.[H.Dropdown],value:a.getYear(Q.date)}):g.createElement("span",{key:"year"},A(Q.date,a));return a.getMonthYearOrder()==="year-first"?[le,U]:[U,le]})(),g.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},N(Q.date,a.options,a))):g.createElement(r.CaptionLabel,{className:l[H.CaptionLabel],role:"status","aria-live":"polite"},N(Q.date,a.options,a))),h==="around"&&!t.hideNavigation&&ue===p-1&&g.createElement(r.NextMonthButton,{type:"button",className:l[H.NextMonthButton],tabIndex:j?void 0:-1,"aria-disabled":j?void 0:!0,"aria-label":Vn(j),onClick:z,"data-animated-button":t.animate?"true":void 0},g.createElement(r.Chevron,{disabled:j?void 0:!0,className:l[H.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ue===p-1&&h==="after"&&!t.hideNavigation&&g.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[H.Nav],style:C?.[H.Nav],"aria-label":De(),onPreviousClick:mn,onNextClick:z,previousMonth:G,nextMonth:j}),g.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":Oe(Q.date,a.options,a)||void 0,className:l[H.MonthGrid],style:C?.[H.MonthGrid]},!t.hideWeekdays&&g.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[H.Weekdays],style:C?.[H.Weekdays]},S&&g.createElement(r.WeekNumberHeader,{"aria-label":qt(a.options),className:l[H.WeekNumberHeader],style:C?.[H.WeekNumberHeader],scope:"col"},T()),Hr.map(U=>g.createElement(r.Weekday,{"aria-label":qn(U,a.options,a),className:l[H.Weekday],key:String(U),style:C?.[H.Weekday],scope:"col"},R(U,a.options,a)))),g.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[H.Weeks],style:C?.[H.Weeks]},Q.weeks.map(U=>g.createElement(r.Week,{className:l[H.Week],key:U.weekNumber,style:C?.[H.Week],week:U},S&&g.createElement(r.WeekNumber,{week:U,style:C?.[H.WeekNumber],"aria-label":Gn(U.weekNumber,{locale:i}),className:l[H.WeekNumber],scope:"row",role:"rowheader"},O(U.weekNumber,a)),U.days.map(le=>{const{date:$e}=le,ie=ve(le);if(ie[ye.focused]=!ie.hidden&&!!fe?.isEqualTo(le),ie[Je.selected]=V?.($e)||ie.selected,Fr(ee)){const{from:Yr,to:Vr}=ee;ie[Je.range_start]=!!(Yr&&Vr&&a.isSameDay($e,Yr)),ie[Je.range_end]=!!(Yr&&Vr&&a.isSameDay($e,Vr)),ie[Je.range_middle]=_t(ee,$e,!0,a)}const Nl=b_(ie,C,t.modifiersStyles),El=e_(ie,l,t.modifiersClassNames),jl=!Un&&!ie.hidden?ke($e,ie,a.options,a):void 0;return g.createElement(r.Day,{key:`${le.isoDate}_${le.displayMonthId}`,day:le,modifiers:ie,className:El.join(" "),style:Nl,role:"gridcell","aria-selected":ie.selected||void 0,"aria-label":jl,"data-day":le.isoDate,"data-month":le.outside?le.dateMonthId:void 0,"data-selected":ie.selected||void 0,"data-disabled":ie.disabled||void 0,"data-hidden":ie.hidden||void 0,"data-outside":le.outside||void 0,"data-focused":ie.focused||void 0,"data-today":ie.today||void 0},!ie.hidden&&Un?g.createElement(r.DayButton,{className:l[H.DayButton],style:C?.[H.DayButton],type:"button",day:le,modifiers:ie,disabled:!ie.focused&&ie.disabled||void 0,"aria-disabled":ie.focused&&ie.disabled||void 0,tabIndex:Me(le)?0:-1,"aria-label":de($e,ie,a.options,a),onClick:_e(le,ie),onBlur:Se(le,ie),onFocus:me(le,ie),onKeyDown:Re(le,ie),onMouseEnter:Ze(le,ie),onMouseLeave:Pe(le,ie)},E($e,a.options,a)):!ie.hidden&&E(le.date,a.options,a))})))))))),t.footer&&g.createElement(r.Footer,{className:l[H.Footer],style:C?.[H.Footer],role:"status","aria-live":"polite"},t.footer)))}function q_({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:s,components:a,...i}){const l=ls();return c.jsx(V_,{showOutsideDays:n,className:J("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...s},classNames:{root:J("w-fit",l.root),months:J("relative flex flex-col gap-4 md:flex-row",l.months),month:J("flex w-full flex-col gap-4",l.month),nav:J("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",l.nav),button_previous:J(vo({variant:o}),"h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50",l.button_previous),button_next:J(vo({variant:o}),"h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50",l.button_next),month_caption:J("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",l.month_caption),dropdowns:J("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",l.dropdowns),dropdown_root:J("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",l.dropdown_root),dropdown:J("bg-popover absolute inset-0 opacity-0",l.dropdown),caption_label:J("select-none font-medium",r==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:J("flex",l.weekdays),weekday:J("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",l.weekday),week:J("mt-2 flex w-full",l.week),week_number_header:J("w-(--cell-size) select-none",l.week_number_header),week_number:J("text-muted-foreground select-none text-[0.8rem]",l.week_number),day:J("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",l.day),range_start:J("bg-accent rounded-l-md",l.range_start),range_middle:J("rounded-none",l.range_middle),range_end:J("bg-accent rounded-r-md",l.range_end),today:J("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:J("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:J("text-muted-foreground opacity-50",l.disabled),hidden:J("invisible",l.hidden),...t},components:{Root:({className:u,rootRef:f,...h})=>c.jsx("div",{"data-slot":"calendar",ref:f,className:J(u),...h}),Chevron:({className:u,orientation:f,...h})=>f==="left"?c.jsx(Tp,{className:J("size-4",u),...h}):f==="right"?c.jsx(Ip,{className:J("size-4",u),...h}):c.jsx(Rp,{className:J("size-4",u),...h}),DayButton:G_,WeekNumber:({children:u,...f})=>c.jsx("td",{...f,children:c.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:u})}),...a},...i})}function G_({className:e,day:t,modifiers:n,...r}){const o=ls(),s=d.useRef(null);return d.useEffect(()=>{n.focused&&s.current?.focus()},[n.focused]),c.jsx(Cr,{ref:s,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:J("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",o.day,e),...r})}const nn=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),U_=()=>nn(new Date),wr=e=>String(e).padStart(2,"0"),ul=e=>`${e.getFullYear()}-${wr(e.getMonth()+1)}-${wr(e.getDate())}`,Z_=e=>`${wr(e.getDate())}.${wr(e.getMonth()+1)}.${e.getFullYear()}`,fl=e=>{if(e==null||e==="")return;const t=String(e).trim(),n=/^(\d{4})-(\d{2})-(\d{2})/.exec(t);if(n){const o=Number(n[1]),s=Number(n[2])-1,a=Number(n[3]),i=new Date(o,s,a);return Number.isNaN(i.getTime())?void 0:i}const r=new Date(t);if(!Number.isNaN(r.getTime()))return nn(r)},X_="_wrapper_zsekf_5",K_="_trigger_zsekf_12",Q_="_error_zsekf_41",J_="_triggerValue_zsekf_48",ey="_triggerIcon_zsekf_55",yn={wrapper:X_,trigger:K_,error:Q_,triggerValue:J_,triggerIcon:ey},ty=({label:e,required:t,value:n,onChange:r,minDate:o,error:s,disabled:a,tooltipContent:i,tooltipPopperClassName:l,className:u})=>{const[f,h]=g.useState(!1),p=g.useMemo(()=>fl(n??void 0),[n]),m=g.useMemo(()=>p?Z_(p):"",[p]),y=o?nn(o):void 0;return c.jsxs("div",{className:M(yn.wrapper,u),children:[c.jsx(Lt,{required:t,tooltipContent:i,tooltipPopperClassName:l,children:e}),c.jsxs(So,{open:f,onOpenChange:h,children:[c.jsx(No,{asChild:!0,children:c.jsxs("button",{type:"button",disabled:a,className:M(yn.trigger,{[yn.error]:!!s},!m&&"text-muted-foreground"),children:[c.jsx("span",{className:yn.triggerValue,children:m||"Выберите дату"}),c.jsx(Op,{className:yn.triggerIcon,"aria-hidden":!0})]})}),c.jsx(Qo,{className:J("w-auto border border-slate-200 bg-white p-0 text-slate-900 shadow-lg"),align:"start",children:c.jsx(q_,{mode:"single",selected:p,onSelect:b=>{r(b?ul(nn(b)):null),h(!1)},disabled:y?b=>nn(b).getTime()<y.getTime():void 0,initialFocus:!0})})]}),s?c.jsx(Ct,{variant:"error",children:s}):null]})},ny="_wrapper_1e6k1_5",ry="_field_1e6k1_12",oy="_disabled_1e6k1_19",sy="_control_1e6k1_23",ay="_labelWithTooltip_1e6k1_32",iy="_nativeInput_1e6k1_40",cy="_box_1e6k1_52",ly="_error_1e6k1_85",dy="_checkIcon_1e6k1_99",uy="_labelText_1e6k1_112",Qe={wrapper:ny,field:ry,disabled:oy,control:sy,labelWithTooltip:ay,nativeInput:iy,box:cy,error:ly,checkIcon:dy,labelText:uy},fy=()=>c.jsx("svg",{className:Qe.checkIcon,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:c.jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})}),hl=g.forwardRef(({label:e,error:t,disabled:n,className:r,checkboxClassName:o,tooltipContent:s,tooltipPopperClassName:a,id:i,...l},u)=>{const f=g.useId(),h=i??f,p=c.jsxs("div",{className:M(Qe.field,{[Qe.disabled]:n}),children:[c.jsxs("label",{htmlFor:h,className:Qe.control,children:[c.jsx("input",{ref:u,id:h,type:"checkbox",disabled:n,"aria-invalid":t?!0:void 0,className:Qe.nativeInput,...l}),c.jsx("span",{className:M(Qe.box,{[Qe.error]:!!t},o),children:c.jsx(fy,{})})]}),e&&s?c.jsx(Lt,{htmlFor:h,tooltipContent:s,tooltipPopperClassName:a,className:Qe.labelWithTooltip,labelClassName:Qe.labelText,children:e}):e?c.jsx(Mn,{htmlFor:h,className:M(jn.label_inline,Qe.labelText),children:e}):null]});return c.jsxs("div",{className:M(Qe.wrapper,r),children:[p,t&&c.jsx(Ct,{children:t})]})});hl.displayName="Checkbox";const hy="_root_1o1n3_1",my="_header_1o1n3_11",py="_headerText_1o1n3_21",gy="_eyebrow_1o1n3_27",vy="_title_1o1n3_35",by="_timeline_1o1n3_42",_y="_level_1o1n3_47",yy="_rail_1o1n3_58",wy="_railLine_1o1n3_65",xy="_railLine_completed_1o1n3_74",Cy="_railLine_toCurrent_1o1n3_78",ky="_marker_1o1n3_82",Sy="_marker_completed_1o1n3_101",Ny="_marker_current_1o1n3_107",Ey="_body_1o1n3_120",jy="_levelHeader_1o1n3_125",My="_levelName_1o1n3_132",Oy="_levelName_current_1o1n3_141",Dy="_levelName_completed_1o1n3_147",Ry="_iconButton_1o1n3_152",Py="_iconButton_danger_1o1n3_176",Ty="_stages_1o1n3_182",Ay="_stage_1o1n3_182",Iy="_stage_current_1o1n3_199",Ly="_stageHeader_1o1n3_204",Wy="_stageName_1o1n3_212",$y="_stageActions_1o1n3_220",Fy="_approvers_1o1n3_227",By="_approver_1o1n3_227",zy="_approverMain_1o1n3_242",Hy="_approverName_1o1n3_249",Yy="_approverName_pending_1o1n3_255",Vy="_approverName_rejected_1o1n3_259",qy="_approverName_approved_1o1n3_264",Gy="_approverDate_1o1n3_268",Uy="_rejectReason_1o1n3_273",Zy="_empty_1o1n3_283",Xy="_addStage_1o1n3_300",Ky="_addLevel_1o1n3_323",Qy="_dialogContent_1o1n3_327",Jy="_dialogInput_1o1n3_333",ew="_dialogActions_1o1n3_348",tw="_approverPickerWrap_1o1n3_354",nw="_approverPickerInput_1o1n3_361",Y={root:hy,header:my,headerText:py,eyebrow:gy,title:vy,timeline:by,level:_y,rail:yy,railLine:wy,railLine_completed:xy,railLine_toCurrent:Cy,marker:ky,marker_completed:Sy,marker_current:Ny,body:Ey,levelHeader:jy,levelName:My,levelName_current:Oy,levelName_completed:Dy,iconButton:Ry,iconButton_danger:Py,stages:Ty,stage:Ay,stage_current:Iy,stageHeader:Ly,stageName:Wy,stageActions:$y,approvers:Fy,approver:By,approverMain:zy,approverName:Hy,approverName_pending:Yy,approverName_rejected:Vy,approverName_approved:qy,approverDate:Gy,rejectReason:Uy,empty:Zy,addStage:Xy,addLevel:Ky,dialogContent:Qy,dialogInput:Jy,dialogActions:ew,approverPickerWrap:tw,approverPickerInput:nw},lr=({className:e})=>c.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",className:e,"aria-hidden":"true",children:c.jsx("path",{d:"M12 5v14M5 12h14"})});function ma({open:e,title:t,placeholder:n,onSubmit:r,onClose:o}){const[s,a]=g.useState("");g.useEffect(()=>{e||a("")},[e]);const i=()=>{const l=s.trim();l&&(r(l),o())};return c.jsx(Wr,{open:e,onOpenChange:l=>!l&&o(),children:c.jsxs(Wn,{className:"sm:rounded-2xl",children:[c.jsx($n,{children:c.jsx(Fn,{children:t})}),c.jsxs("div",{className:Y.dialogContent,children:[c.jsx("input",{autoFocus:!0,className:Y.dialogInput,placeholder:n,value:s,onChange:l=>a(l.target.value),onKeyDown:l=>{l.key==="Enter"&&i(),l.key==="Escape"&&o()}}),c.jsxs("div",{className:Y.dialogActions,children:[c.jsx(xe,{variant:"secondary",onClick:o,children:"Отмена"}),c.jsx(xe,{variant:"primary",onClick:i,disabled:!s.trim(),children:"Добавить"})]})]})]})})}const rw=({levels:e,editable:t=!1,title:n="Маршрут согласования",eyebrow:r="Workflow",className:o,loadApprovers:s,onAddLevel:a,onRemoveLevel:i,onAddStage:l,onRemoveStage:u,onAddApprover:f,onRemoveApprover:h})=>{const[p,m]=g.useState(!1),[y,b]=g.useState(null);return c.jsxs("div",{className:M(Y.root,o),children:[c.jsx("div",{className:Y.header,children:c.jsxs("div",{className:Y.headerText,children:[c.jsx("span",{className:Y.eyebrow,children:r}),c.jsx("span",{className:Y.title,children:n})]})}),c.jsxs("div",{className:Y.timeline,children:[e.map((v,_)=>{const w=e[_+1],x=M(Y.railLine,{[Y.railLine_completed]:v.status==="completed"&&w?.status==="completed",[Y.railLine_toCurrent]:v.status==="completed"&&w?.status==="current"});return c.jsxs("div",{className:Y.level,children:[c.jsxs("div",{className:Y.rail,children:[_<e.length-1&&c.jsx("span",{className:x}),c.jsx("span",{className:M(Y.marker,{[Y.marker_completed]:v.status==="completed",[Y.marker_current]:v.status==="current"}),children:v.status==="completed"&&c.jsx(Ro,{})})]}),c.jsxs("div",{className:Y.body,children:[c.jsxs("div",{className:Y.levelHeader,children:[c.jsx("span",{className:M(Y.levelName,{[Y.levelName_current]:v.status==="current",[Y.levelName_completed]:v.status==="completed"}),children:v.name}),t&&c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",className:Y.iconButton,onClick:()=>b(v.id),"aria-label":"Добавить этап",title:"Добавить этап",children:c.jsx(lr,{})}),c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>i?.(v.id),"aria-label":"Удалить уровень",title:"Удалить уровень",children:c.jsx(ct,{})})]})]}),v.stages.length>0&&c.jsx("div",{className:Y.stages,children:v.stages.map(k=>c.jsxs("div",{className:M(Y.stage,{[Y.stage_current]:v.status==="current"}),children:[c.jsxs("div",{className:Y.stageHeader,children:[c.jsx("span",{className:Y.stageName,children:k.name}),c.jsx("div",{className:Y.stageActions,children:t&&c.jsxs(c.Fragment,{children:[s?c.jsx(ns,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:S=>f?.(v.id,k.id,S),className:Y.approverPickerWrap,inputClassName:Y.approverPickerInput,selectedOptionRender:()=>c.jsx(lr,{})}):null,c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>u?.(v.id,k.id),"aria-label":"Удалить этап",title:"Удалить этап",children:c.jsx(ct,{})})]})})]}),k.approvers.length===0?c.jsxs("span",{className:Y.empty,children:[c.jsx(xa,{}),"Согласующий не назначен"]}):c.jsx("div",{className:Y.approvers,children:k.approvers.map(S=>{const C=S.status??"pending";return c.jsxs("div",{className:Y.approver,children:[c.jsxs("div",{className:Y.approverMain,children:[c.jsx("span",{className:M(Y.approverName,{[Y.approverName_pending]:C==="pending",[Y.approverName_approved]:C==="approved",[Y.approverName_rejected]:C==="rejected"}),children:S.fullName}),S.actedAt&&C!=="pending"&&c.jsx("span",{className:Y.approverDate,children:S.actedAt}),C==="rejected"&&S.rejectReason&&c.jsxs("span",{className:Y.rejectReason,children:["Причина: ",S.rejectReason]})]}),t&&c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>h?.(v.id,k.id,S.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:c.jsx(ct,{})})]},S.id)})})]},k.id))}),t&&c.jsxs("button",{type:"button",className:Y.addStage,onClick:()=>b(v.id),children:[c.jsx(lr,{})," Добавить этап"]})]})]},v.id)}),t&&c.jsxs("div",{className:Y.level,children:[c.jsx("div",{className:Y.rail,children:c.jsx("span",{className:M(Y.marker),"aria-hidden":!0})}),c.jsx("div",{className:Y.body,children:c.jsxs("button",{type:"button",className:M(Y.addStage,Y.addLevel),onClick:()=>m(!0),children:[c.jsx(lr,{})," Добавить уровень"]})})]})]}),c.jsx(ma,{open:p,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>m(!1),onSubmit:v=>a?.(v)}),c.jsx(ma,{open:y!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>b(null),onSubmit:v=>y&&l?.(y,v)})]})},ow="_root_bcbvh_5",sw="_card_bcbvh_12",aw="_size_lg_bcbvh_19",iw="_section_bcbvh_23",cw="_sectionHeader_bcbvh_33",lw="_sectionTitle_bcbvh_40",dw="_sectionDescription_bcbvh_50",uw="_fields_bcbvh_58",fw="_fields_2col_bcbvh_66",hw="_field_bcbvh_58",mw="_field_span2_bcbvh_88",pw="_field_interactive_bcbvh_92",gw="_label_bcbvh_96",vw="_value_bcbvh_104",bw="_valueRow_bcbvh_117",_w="_copyTrigger_bcbvh_124",yw="_copyableValue_bcbvh_130",ww="_hint_bcbvh_135",xw="_empty_bcbvh_143",Cw="_divider_bcbvh_147",kw="_loading_bcbvh_154",we={root:ow,card:sw,size_lg:aw,section:iw,sectionHeader:cw,sectionTitle:lw,sectionDescription:dw,fields:uw,fields_2col:fw,field:hw,field_span2:mw,field_interactive:pw,label:gw,value:vw,valueRow:bw,copyTrigger:_w,copyableValue:yw,hint:ww,empty:xw,divider:Cw,loading:kw},Sw=e=>e==null||e===""||typeof e=="number"&&Number.isNaN(e),Nw=e=>e==null?"":typeof e=="string"||typeof e=="number"?String(e):"",ml=({label:e,value:t,children:n,hint:r,copyable:o,copyText:s,render:a,hidden:i,span:l,emptyPlaceholder:u="—",className:f})=>{const[h,p]=g.useState(!1),m=g.useCallback(()=>{const v=s??Nw(n??t);!v||typeof navigator>"u"||!navigator.clipboard||navigator.clipboard.writeText(v).then(()=>{p(!0),window.setTimeout(()=>p(!1),1400)})},[s,t,n]);if(i)return null;const y=n??t,b=Sw(y)?c.jsx("span",{className:we.empty,children:u}):y;return a?c.jsx(c.Fragment,{children:a({label:e,value:b})}):c.jsxs("div",{className:M(we.field,l===2&&we.field_span2,o&&we.field_interactive,f),children:[c.jsx("div",{className:we.label,children:e}),c.jsxs("div",{className:we.value,children:[c.jsx("div",{className:we.valueRow,children:o?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:we.copyableValue,children:b}),c.jsx("span",{className:we.copyTrigger,children:c.jsx(Ao,{iconOnly:!0,copied:h,onClick:m,ariaLabel:"Скопировать значение"})})]}):b}),r&&c.jsx("div",{className:we.hint,children:r})]})]})},pl=({id:e,title:t,description:n,fields:r,children:o,columns:s=1,className:a})=>{const i=(r??[]).filter(l=>!l.hidden);return c.jsxs("section",{id:e,className:M(we.section,a),children:[(t||n)&&c.jsxs("div",{className:we.sectionHeader,children:[t&&c.jsx("div",{className:we.sectionTitle,children:t}),n&&c.jsx("div",{className:we.sectionDescription,children:n})]}),(i.length>0||o)&&c.jsxs("div",{className:M(we.fields,s===2&&we.fields_2col),children:[i.map((l,u)=>c.jsx(ml,{...l},(typeof l.label=="string"?l.label:null)??`field-${u}`)),o]})]})},Ew=({className:e})=>c.jsx("hr",{className:M(we.divider,e)}),jw=({sections:e,children:t,variant:n="card",labelWidth:r="14rem",size:o="md",loading:s,emptyState:a,className:i,id:l})=>{const u=typeof r=="number"?`${r}px`:r,f=M(we.root,n==="card"&&we.card,o==="lg"&&we.size_lg,i),h={"--cozy-detail-label-width":u};if(s)return c.jsx("div",{className:f,style:h,id:l,children:c.jsx("div",{className:we.loading,children:c.jsx(Ue,{})})});const p=e&&e.length>0,m=g.Children.count(t)>0;return!p&&!m?c.jsx("div",{className:f,style:h,id:l,children:a??c.jsx(It,{})}):c.jsxs("div",{className:f,style:h,id:l,children:[p&&e.map((y,b)=>c.jsx(pl,{...y},y.id??`section-${b}`)),m&&g.Children.map(t,y=>(g.isValidElement(y),y))]})},Yn=g.memo(jw);Yn.Section=pl;Yn.Field=ml;Yn.Divider=Ew;Yn.displayName="DetailView";const Mw="_root_1z0dx_1",Ow="_header_1z0dx_14",Dw="_headerText_1z0dx_23",Rw="_eyebrow_1z0dx_29",Pw="_title_1z0dx_37",Tw="_counter_1z0dx_44",Aw="_list_1z0dx_53",Iw="_loadOlderBtn_1z0dx_59",Lw="_expandBtn_1z0dx_84",Ww="_item_1z0dx_102",$w="_avatar_1z0dx_109",Fw="_body_1z0dx_125",Bw="_bubble_1z0dx_132",zw="_actions_1z0dx_144",Hw="_bubble_deleted_1z0dx_148",Yw="_meta_1z0dx_154",Vw="_author_1z0dx_162",qw="_date_1z0dx_168",Gw="_editedTag_1z0dx_173",Uw="_text_1z0dx_179",Zw="_recipients_1z0dx_187",Xw="_attachments_1z0dx_203",Kw="_attachment_1z0dx_203",Qw="_attachmentName_1z0dx_227",Jw="_attachmentSize_1z0dx_234",ex="_attachmentRemove_1z0dx_239",tx="_iconButton_1z0dx_278",nx="_iconButton_danger_1z0dx_302",rx="_children_1z0dx_309",ox="_form_1z0dx_320",sx="_form_root_1z0dx_330",ax="_form_inline_1z0dx_335",ix="_textarea_1z0dx_339",cx="_formRow_1z0dx_359",lx="_formTools_1z0dx_367",dx="_formActions_1z0dx_374",ux="_toolBtn_1z0dx_380",fx="_recipientsPickerWrap_1z0dx_403",hx="_recipientsPickerInput_1z0dx_410",mx="_recipientsChips_1z0dx_459",px="_chip_1z0dx_465",gx="_empty_1z0dx_496",vx="_skeleton_1z0dx_500",bx="_skeletonLine_1z0dx_507",_x="_dialogContent_1z0dx_523",yx="_dialogActions_1z0dx_531",wx="_branchSpinner_1z0dx_537",xx="_hiddenInput_1z0dx_543",B={root:Mw,header:Ow,headerText:Dw,eyebrow:Rw,title:Pw,counter:Tw,list:Aw,loadOlderBtn:Iw,expandBtn:Lw,item:Ww,avatar:$w,body:Fw,bubble:Bw,actions:zw,bubble_deleted:Hw,meta:Yw,author:Vw,date:qw,editedTag:Gw,text:Uw,recipients:Zw,attachments:Xw,attachment:Kw,attachmentName:Qw,attachmentSize:Jw,attachmentRemove:ex,iconButton:tx,iconButton_danger:nx,children:rx,form:ox,form_root:sx,form_inline:ax,textarea:ix,formRow:cx,formTools:lx,formActions:dx,toolBtn:ux,recipientsPickerWrap:fx,recipientsPickerInput:hx,recipientsChips:mx,chip:px,empty:gx,skeleton:vx,skeletonLine:bx,dialogContent:_x,dialogActions:yx,branchSpinner:wx,hiddenInput:xx},Cx=10,kx=10*6e4,Cn="__root__",kn=e=>e??Cn;function Sx(e){return e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join("")}function gl(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function pa(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=r=>String(r).padStart(2,"0");return`${n(t.getDate())}.${n(t.getMonth()+1)}.${String(t.getFullYear()).slice(2)} ${n(t.getHours())}:${n(t.getMinutes())}`}function dr(e){const t=new Map;for(const n of e)t.set(n.id,n);return Array.from(t.values()).sort((n,r)=>new Date(n.createdAt).getTime()-new Date(r.createdAt).getTime())}function Nx(e,t){const[n,r]=g.useState({}),o=g.useRef({}),s=g.useCallback((m,y)=>{const b=kn(m);r(v=>{const _=v[b]??{items:[],total:0,loadedFrom:0,loading:!1,loaded:!1};return{...v,[b]:y(_)}})},[]),a=g.useCallback(async m=>{const y=kn(m),b=(o.current[y]??0)+1;o.current[y]=b,s(m,x=>({...x,loading:!0}));const v=await t({parentId:m,skip:0,take:e});if(o.current[y]!==b)return;if(v.total<=e){s(m,()=>({items:dr(v.items),total:v.total,loadedFrom:0,loading:!1,loaded:!0}));return}const _=v.total-e,w=await t({parentId:m,skip:_,take:e});o.current[y]===b&&s(m,()=>({items:dr(w.items),total:w.total,loadedFrom:_,loading:!1,loaded:!0}))},[t,e,s]),i=g.useCallback(async m=>{const y=kn(m),b=n[y];if(!b||b.loading||b.loadedFrom<=0)return;const v=Math.min(e,b.loadedFrom),_=b.loadedFrom-v,w=(o.current[y]??0)+1;o.current[y]=w,s(m,k=>({...k,loading:!0}));const x=await t({parentId:m,skip:_,take:v});o.current[y]===w&&s(m,k=>({...k,items:dr([...x.items,...k.items]),total:x.total,loadedFrom:_,loading:!1}))},[n,t,e,s]),l=g.useCallback((m,y)=>{s(m,b=>{const v=dr([...b.items,y]);return{...b,items:v,total:b.total+1,loaded:!0}})},[s]),u=g.useCallback((m,y,b)=>{s(m,v=>({...v,items:v.items.map(_=>_.id===y?b(_):_)}))},[s]),f=g.useCallback((m,y)=>{s(m,b=>({...b,items:b.items.filter(v=>v.id!==y),total:Math.max(0,b.total-1)}))},[s]),h=g.useCallback(m=>{const y=kn(m);o.current[y]=(o.current[y]??0)+1,r(b=>{const v={...b};return delete v[y],v})},[]),p=g.useCallback(()=>{o.current={},r({})},[]);return{branches:n,loadInitial:a,loadOlder:i,appendLocal:l,replaceLocal:u,removeLocal:f,resetBranch:h,resetAll:p}}function vl({open:e,title:t,message:n,confirmText:r="Удалить",cancelText:o="Отмена",danger:s=!0,onConfirm:a,onClose:i}){return c.jsx(Wr,{open:e,onOpenChange:l=>!l&&i(),children:c.jsxs(Wn,{className:"sm:rounded-2xl",children:[c.jsx($n,{children:c.jsx(Fn,{children:t})}),c.jsx("div",{className:B.dialogContent,children:n}),c.jsxs($r,{className:B.dialogActions,children:[c.jsx(xe,{variant:"secondary",onClick:i,children:o}),c.jsx(xe,{variant:s?"danger":"primary",onClick:a,children:r})]})]})})}function Oo({mode:e,initialText:t="",initialAttachments:n=[],initialRecipients:r=[],placeholder:o,submitLabel:s,recipientsSource:a,onUploadAttachment:i,onDeleteAttachment:l,onSubmit:u,onCancel:f,submitting:h}){const[p,m]=g.useState(t),[y,b]=g.useState(n),[v,_]=g.useState(r),[w,x]=g.useState(!1),[k,S]=g.useState(null),C=g.useRef(null),N=async O=>{if(!(!O||!i)){x(!0);try{for(const T of Array.from(O)){const R=await i(T);b(A=>[...A,R])}}finally{x(!1),C.current&&(C.current.value="")}}},E=async()=>{if(!k)return;const O=k;if(S(null),l)try{await l(O)}catch{}b(T=>T.filter(R=>R.id!==O.id))},D=async()=>{const O=p.trim();O&&(await u({text:O,attachments:y,recipients:v}),e!=="edit"&&(m(""),b([]),_([])))};return c.jsxs("div",{className:M(B.form,{[B.form_root]:e==="root",[B.form_inline]:e!=="root"}),children:[c.jsx("textarea",{className:B.textarea,placeholder:o??"Напишите комментарий...",value:p,onChange:O=>m(O.target.value)}),v.length>0&&c.jsx("div",{className:B.recipientsChips,children:v.map(O=>c.jsxs("span",{className:B.chip,children:[O.name,c.jsx("button",{type:"button","aria-label":"Удалить получателя",onClick:()=>_(T=>T.filter(R=>R.id!==O.id)),children:c.jsx(ct,{})})]},O.id))}),y.length>0&&c.jsx("div",{className:B.attachments,children:y.map(O=>c.jsxs("span",{className:B.attachment,children:[c.jsx("span",{className:B.attachmentName,children:O.name}),c.jsx("span",{className:B.attachmentSize,children:gl(O.size)}),c.jsx("button",{type:"button",className:B.attachmentRemove,"aria-label":"Удалить вложение",onClick:()=>S(O),children:c.jsx(ct,{})})]},O.id))}),c.jsxs("div",{className:B.formRow,children:[c.jsxs("div",{className:B.formTools,children:[i&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button",className:B.toolBtn,onClick:()=>C.current?.click(),disabled:w,children:[c.jsx(ja,{style:{transform:"rotate(180deg)"}}),w?"Загрузка...":"Прикрепить файл"]}),c.jsx("input",{ref:C,type:"file",multiple:!0,className:B.hiddenInput,onChange:O=>N(O.target.files)})]}),a&&c.jsx(ns,{value:null,placeholder:v.length>0?`Ознакомители (${v.length})`:"Ознакомители",title:"Добавить ознакомителя",searchPlaceholder:"Поиск сотрудника",selectButtonText:"",loadOptions:a,onChange:O=>{const T=O.meta,R=T||{id:String(O.value),name:String(O.label)};_(A=>A.some(I=>I.id===R.id)?A:[...A,R])},className:B.recipientsPickerWrap,inputClassName:B.recipientsPickerInput})]}),c.jsxs("div",{className:B.formActions,children:[f&&c.jsx(xe,{variant:"secondary",size:"small",onClick:f,children:"Отмена"}),c.jsx(xe,{variant:"primary",size:"small",onClick:D,loading:h,disabled:!p.trim()||h,children:s??(e==="edit"?"Сохранить":"Отправить")})]})]}),c.jsx(vl,{open:!!k,title:"Удалить вложение?",message:`«${k?.name??""}» будет удалено без возможности восстановления.`,onConfirm:E,onClose:()=>S(null)})]})}function bl({comment:e,ctx:t}){const[n,r]=g.useState(!1),[o,s]=g.useState(!1),[a,i]=g.useState(!1),[l,u]=g.useState(!1),[f,h]=g.useState(!1),p=kn(e.id),m=t.branches[p],y=e.author.id===t.currentUser.id,b=new Date(e.createdAt).getTime(),v=Number.isNaN(b)?!1:Date.now()-b<t.editWindowMs;t.nowTick;const _=!e.deleted&&(e.permissions?.canEdit??(y&&v)),w=!e.deleted&&(e.permissions?.canDelete??y),x=!e.deleted&&(e.permissions?.canReply??t.permissions.canReply??!0),k=async()=>{const N=!n;r(N),N&&!m?.loaded&&await t.loadInitial(e.id)},S=async N=>{h(!0);try{m?.loaded,await t.createReply(e.id,{parentId:e.id,text:N.text,attachments:N.attachments,recipients:N.recipients}),r(!0),s(!1)}finally{h(!1)}},C=async N=>{h(!0);try{await t.editComment(e,{id:e.id,text:N.text,attachments:N.attachments,recipients:N.recipients}),i(!1)}finally{h(!1)}};return c.jsxs("div",{className:B.item,children:[c.jsx("div",{className:B.avatar,"aria-hidden":!0,children:e.author.avatarUrl?c.jsx("img",{src:e.author.avatarUrl,alt:"",style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover"}}):Sx(e.author.name)}),c.jsxs("div",{className:B.body,children:[a?c.jsx(Oo,{mode:"edit",initialText:e.text,initialAttachments:e.attachments??[],initialRecipients:e.recipients??[],recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:C,onCancel:()=>i(!1),submitting:f}):c.jsxs("div",{className:M(B.bubble,{[B.bubble_deleted]:e.deleted}),children:[c.jsxs("div",{className:B.meta,children:[c.jsx("span",{className:B.author,children:e.author.name}),c.jsx("span",{className:B.date,children:pa(e.createdAt)}),e.editedAt&&!e.deleted&&c.jsxs("span",{className:B.editedTag,children:["(изм. ",pa(e.editedAt),")"]})]}),c.jsx("div",{className:B.text,children:e.deleted?"Комментарий удалён":e.text}),!e.deleted&&e.attachments&&e.attachments.length>0&&c.jsx("div",{className:B.attachments,children:e.attachments.map(N=>c.jsxs("span",{className:B.attachment,children:[c.jsx("span",{className:B.attachmentName,onClick:()=>t.onDownloadAttachment?.(N),title:N.name,children:N.name}),c.jsx("span",{className:B.attachmentSize,children:gl(N.size)})]},N.id))}),!e.deleted&&e.recipients&&e.recipients.length>0&&c.jsxs("div",{className:B.recipients,title:e.recipients.map(N=>N.name).join(", "),children:[c.jsx(Ca,{}),"Уведомлены: ",e.recipients.map(N=>N.name).join(", ")]}),!e.deleted&&c.jsxs("div",{className:B.actions,children:[x&&c.jsx("button",{type:"button",className:B.iconButton,onClick:()=>s(N=>!N),title:"Ответить","aria-label":"Ответить",children:c.jsx(ya,{})}),_&&c.jsx("button",{type:"button",className:B.iconButton,onClick:()=>i(!0),title:"Редактировать","aria-label":"Редактировать",children:c.jsx(Na,{})}),w&&c.jsx("button",{type:"button",className:M(B.iconButton,B.iconButton_danger),onClick:()=>u(!0),title:"Удалить","aria-label":"Удалить",children:c.jsx(wa,{})})]})]}),e.repliesCount>0&&c.jsxs("button",{type:"button",className:B.expandBtn,onClick:k,children:[c.jsx(dt,{style:{width:12,height:12,transform:n?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"}}),n?"Скрыть ответы":`Показать ответы (${e.repliesCount})`,m?.loading&&c.jsx("span",{className:B.branchSpinner,children:c.jsx(Ue,{size:"extraSmall"})})]}),o&&c.jsx(Oo,{mode:"reply",placeholder:`Ответить ${e.author.name}…`,recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:S,onCancel:()=>s(!1),submitting:f}),n&&m&&c.jsxs("div",{className:B.children,children:[m.loadedFrom>0&&c.jsxs("button",{type:"button",className:B.loadOlderBtn,onClick:()=>t.loadOlder(e.id),disabled:m.loading,children:[m.loading?c.jsx(Ue,{size:"extraSmall"}):c.jsx(dt,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",m.loadedFrom,")"]}),m.items.map(N=>c.jsx(bl,{comment:N,ctx:t},N.id))]})]}),c.jsx(vl,{open:l,title:"Удалить комментарий?",message:"Это действие нельзя отменить.",onConfirm:async()=>{u(!1),await t.deleteComment(e)},onClose:()=>u(!1)})]})}const Ex=g.forwardRef(function({loadComments:t,currentUser:n,recipientsSource:r,onCreate:o,onEdit:s,onDelete:a,onUploadAttachment:i,onDownloadAttachment:l,onDeleteAttachment:u,permissions:f={canCreate:!0,canReply:!0},editWindowMs:h=kx,pageSize:p=Cx,title:m="Комментарии",eyebrow:y="Discussion",className:b},v){const{branches:_,loadInitial:w,loadOlder:x,appendLocal:k,replaceLocal:S,removeLocal:C,resetBranch:N,resetAll:E}=Nx(p,t),[D,O]=g.useState(!1),[T,R]=g.useState(0);g.useEffect(()=>{const j=window.setInterval(()=>R(K=>K+1),3e4);return()=>window.clearInterval(j)},[]),g.useEffect(()=>{_[Cn]||w(null)},[]),g.useImperativeHandle(v,()=>({refresh:j=>{j===void 0?(E(),w(null)):(N(j),w(j))}}),[w,E,N]);const A=g.useCallback(async(j,K)=>{if(!o)return;const ve=await o(K);if(k(j,ve),j!==null){for(const V of Object.keys(_))if(_[V].items.some(ee=>ee.id===j)){S(V===Cn?null:V,j,ee=>({...ee,repliesCount:ee.repliesCount+1}));break}}},[k,_,o,S]),I=g.useCallback(async(j,K)=>{if(!s)return;const ve=await s(K);S(j.parentId,j.id,()=>ve)},[s,S]),X=g.useCallback(async j=>{if(a){if(await a(j.id),j.repliesCount>0)S(j.parentId,j.id,K=>({...K,deleted:!0,text:"",attachments:[],recipients:[]}));else if(C(j.parentId,j.id),j.parentId!==null){for(const K of Object.keys(_))if(_[K].items.some(V=>V.id===j.parentId)){S(K===Cn?null:K,j.parentId,V=>({...V,repliesCount:Math.max(0,V.repliesCount-1)}));break}}}},[_,a,C,S]),P=_[Cn],q=g.useMemo(()=>({currentUser:n,permissions:f,editWindowMs:h,recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onDownloadAttachment:l,branches:_,loadInitial:w,loadOlder:x,createReply:A,editComment:I,deleteComment:X,nowTick:T}),[_,A,n,X,I,h,w,x,T,u,l,i,f,r]),W=async j=>{O(!0);try{await A(null,{parentId:null,text:j.text,attachments:j.attachments,recipients:j.recipients})}finally{O(!1)}},G=f.canCreate??!0;return c.jsxs("div",{className:M(B.root,b),children:[c.jsxs("div",{className:B.header,children:[c.jsxs("div",{className:B.headerText,children:[c.jsx("span",{className:B.eyebrow,children:y}),c.jsx("span",{className:B.title,children:m})]}),P&&c.jsx("span",{className:B.counter,children:P.total})]}),G&&o&&c.jsx(Oo,{mode:"root",placeholder:"Поделитесь мнением или задайте вопрос...",submitLabel:"Опубликовать",recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onSubmit:W,submitting:D}),!P&&c.jsx("div",{className:B.skeleton,children:[0,1,2].map(j=>c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[c.jsx("div",{className:B.skeletonLine,style:{width:"30%"}}),c.jsx("div",{className:B.skeletonLine,style:{width:"85%"}}),c.jsx("div",{className:B.skeletonLine,style:{width:"60%"}})]},j))}),P&&P.loadedFrom>0&&c.jsxs("button",{type:"button",className:B.loadOlderBtn,onClick:()=>x(null),disabled:P.loading,children:[P.loading?c.jsx(Ue,{size:"extraSmall"}):c.jsx(dt,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",P.loadedFrom,")"]}),P&&P.items.length===0&&!P.loading&&c.jsx("div",{className:B.empty,children:c.jsx(It,{title:"Пока нет комментариев",subtitle:"Будьте первым, кто напишет."})}),P&&P.items.length>0&&c.jsx("div",{className:B.list,children:P.items.map(j=>c.jsx(bl,{comment:j,ctx:q},j.id))})]})}),jx="_root_q1igz_5",Mx="_collapsed_q1igz_35",Ox="_variant_classic_q1igz_40",Dx="_sectionTitle_q1igz_45",Rx="_item_q1igz_54",Px="_item_active_q1igz_60",Tx="_user_q1igz_74",Ax="_badge_q1igz_77",Ix="_footer_q1igz_81",Lx="_variant_transparent_q1igz_87",Wx="_icon_q1igz_115",$x="_iconStub_q1igz_116",Fx="_item_nested_q1igz_143",Bx="_divider_q1igz_153",zx="_collapseBtn_q1igz_156",Hx="_variant_aurora_q1igz_166",Yx="_sectionDot_q1igz_181",Vx="_userName_q1igz_222",qx="_userRole_q1igz_225",Gx="_avatar_q1igz_228",Ux="_avatarInitials_q1igz_231",Zx="_blob_q1igz_261",Xx="_blob_a_q1igz_270",Kx="_blob_b_q1igz_278",Qx="_header_q1igz_288",Jx="_user_clickable_q1igz_312",e3="_userSlot_q1igz_319",t3="_avatarBadge_q1igz_356",n3="_userText_q1igz_369",r3="_collapseIcon_q1igz_411",o3="_collapseIcon_rot_q1igz_417",s3="_bodyWrap_q1igz_422",a3="_body_q1igz_422",i3="_bodyContent_q1igz_440",c3="_section_q1igz_45",l3="_list_q1igz_456",d3="_itemWrap_q1igz_465",u3="_item_disabled_q1igz_493",f3="_item_scrollEdgeBottom_q1igz_503",h3="_label_q1igz_526",m3="_chev_q1igz_552",p3="_chev_open_q1igz_560",g3="_sub_q1igz_565",v3="_sub_open_q1igz_572",b3="_subList_q1igz_577",_3="_custom_q1igz_621",Z={root:jx,collapsed:Mx,variant_classic:Ox,sectionTitle:Dx,item:Rx,item_active:Px,user:Tx,badge:Ax,footer:Ix,variant_transparent:Lx,icon:Wx,iconStub:$x,item_nested:Fx,divider:Bx,collapseBtn:zx,variant_aurora:Hx,sectionDot:Yx,userName:Vx,userRole:qx,avatar:Gx,avatarInitials:Ux,blob:Zx,blob_a:Xx,blob_b:Kx,header:Qx,user_clickable:Jx,userSlot:e3,avatarBadge:t3,userText:n3,collapseIcon:r3,collapseIcon_rot:o3,bodyWrap:s3,body:a3,bodyContent:i3,section:c3,list:l3,itemWrap:d3,item_disabled:u3,item_scrollEdgeBottom:f3,label:h3,chev:m3,chev_open:p3,sub:g3,sub_open:v3,subList:b3,custom:_3},Do=new Set,_l=g.createContext({variant:"classic",collapsed:!1,activeId:void 0,setActive:()=>{},edgeBottomIds:Do}),yl=()=>g.useContext(_l),ga=(e,t)=>e==null?t:typeof e=="number"?`${e}px`:e,y3=e=>e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join(""),va=2,w3=24,x3=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},fs=({id:e,label:t,icon:n,href:r,active:o,badge:s,disabled:a,onClick:i,children:l,level:u=0})=>{const f=yl(),h=o??f.activeId===e,p=!!(l&&l.length>0),[m,y]=g.useState(p&&!!l?.some(C=>C.id===f.activeId)),b=g.useCallback(C=>{if(a){C.preventDefault();return}if(p){C.preventDefault(),y(N=>!N);return}f.setActive(e),i?.(C)},[f,a,p,e,i]),v=!f.collapsed&&c.jsx("span",{className:Z.label,children:t}),_=n?c.jsx("span",{className:Z.icon,children:n}):c.jsx("span",{className:Z.iconStub}),w=c.jsxs(c.Fragment,{children:[_,v,!f.collapsed&&s!=null&&c.jsx("span",{className:Z.badge,children:s}),!f.collapsed&&p&&c.jsx("span",{className:M(Z.chev,m&&Z.chev_open),"aria-hidden":!0,children:c.jsx(dt,{width:12,height:12})})]}),x={className:M(Z.item,h&&Z.item_active,a&&Z.item_disabled,u>0&&Z.item_nested,f.edgeBottomIds.has(e)&&Z.item_scrollEdgeBottom),"aria-current":h?"page":void 0,"aria-expanded":p?m:void 0,"data-id":e,onClick:b},k=r&&!p&&!a?c.jsx("a",{href:r,...x,children:w}):c.jsx("button",{type:"button",disabled:a,...x,children:w}),S=f.collapsed?c.jsx(kr,{title:t,placement:"right",children:k}):k;return c.jsxs("li",{className:Z.itemWrap,children:[S,p&&c.jsx("div",{className:M(Z.sub,m&&!f.collapsed&&Z.sub_open),"aria-hidden":!m,children:c.jsx("ul",{className:Z.subList,children:l.map(C=>c.jsx(fs,{...C,level:u+1},C.id))})})]})},wl=({id:e,title:t,items:n,children:r,className:o})=>{const s=yl();return c.jsxs("div",{id:e,className:M(Z.section,o),children:[t&&!s.collapsed&&c.jsx("div",{className:Z.sectionTitle,children:t}),s.collapsed&&t&&c.jsx("div",{className:Z.sectionDot,"aria-hidden":!0}),c.jsxs("ul",{className:Z.list,children:[n?.map(a=>c.jsx(fs,{...a},a.id)),r]})]})},C3=({className:e})=>c.jsx("div",{className:M(Z.divider,e),role:"separator"}),k3=({children:e,className:t})=>c.jsx("div",{className:M(Z.custom,t),children:e}),S3=({user:e,userSlot:t,sections:n,children:r,variant:o="classic",activeId:s,defaultActiveId:a,onActiveChange:i,collapsible:l=!1,collapsed:u,defaultCollapsed:f=!1,onCollapsedChange:h,footer:p,width:m,collapsedWidth:y,className:b})=>{const[v,_]=g.useState(a),w=s!==void 0,x=w?s:v,k=g.useCallback(V=>{w||_(V),i?.(V)},[w,i]),[S,C]=g.useState(f),N=u!==void 0,E=N?!!u:S;g.useEffect(()=>{N||C(f)},[]);const D=g.useCallback(()=>{const V=!E;N||C(V),h?.(V)},[E,N,h]),[O,T]=g.useState(Do),R={"--cozy-sidenav-w":ga(m,"280px"),"--cozy-sidenav-w-collapsed":ga(y,"76px")},A=n&&n.length>0,I=g.Children.count(r)>0,X=g.Children.count(r),P=g.useRef(null),q=g.useRef(null),W=g.useRef(null),G=g.useCallback(()=>{const V=P.current;if(!V)return;const{scrollTop:ne,scrollHeight:ee,clientHeight:re}=V,fe=ee>re+va,Me=ne+re<ee-va;if(!fe||!Me){T(de=>de.size===0?de:Do);return}const se=V.getBoundingClientRect(),$=new Set;V.querySelectorAll(`.${Z.item}[data-id]`).forEach(de=>{const ke=de.dataset.id;if(!ke)return;const Oe=de.getBoundingClientRect();Oe.bottom>se.bottom-w3&&Oe.top<se.bottom&&$.add(ke)}),T(de=>x3(de,$)?de:$)},[]),j=g.useCallback(()=>{W.current!==null&&cancelAnimationFrame(W.current),W.current=requestAnimationFrame(()=>{W.current=null,G()})},[G]);g.useEffect(()=>{const V=q.current;if(!V)return;j();const ne=new ResizeObserver(j);return ne.observe(V),()=>{ne.disconnect(),W.current!==null&&(cancelAnimationFrame(W.current),W.current=null)}},[j,n,X,E,o]);const K=g.useMemo(()=>({variant:o,collapsed:E,activeId:x,setActive:k,edgeBottomIds:O}),[o,E,x,k,O]),ve=()=>{if(t)return c.jsx("div",{className:Z.userSlot,children:t});if(!e)return null;const V=e.initials??y3(e.name),ne=e.onClick?"button":"div";return c.jsxs(ne,{className:M(Z.user,e.onClick&&Z.user_clickable),onClick:e.onClick,type:e.onClick?"button":void 0,children:[c.jsxs("span",{className:Z.avatar,children:[e.avatarUrl?c.jsx("img",{src:e.avatarUrl,alt:""}):c.jsx("span",{className:Z.avatarInitials,children:V||"?"}),e.badge!=null&&c.jsx("span",{className:Z.avatarBadge,children:e.badge})]}),!E&&c.jsxs("span",{className:Z.userText,children:[c.jsx("span",{className:Z.userName,children:e.name}),e.role&&c.jsx("span",{className:Z.userRole,children:e.role})]})]})};return c.jsx(_l.Provider,{value:K,children:c.jsxs("nav",{className:M(Z.root,Z[`variant_${o}`],E&&Z.collapsed,b),style:R,"data-variant":o,children:[o==="aurora"&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:M(Z.blob,Z.blob_a),"aria-hidden":!0}),c.jsx("span",{className:M(Z.blob,Z.blob_b),"aria-hidden":!0})]}),c.jsxs("div",{className:Z.header,children:[ve(),l&&c.jsx("button",{type:"button",className:Z.collapseBtn,onClick:D,"aria-label":E?"Развернуть":"Свернуть",title:E?"Развернуть":"Свернуть",children:c.jsx("span",{className:M(Z.collapseIcon,E&&Z.collapseIcon_rot),"aria-hidden":!0,children:c.jsx(dt,{width:12,height:12})})})]}),c.jsx("div",{className:Z.bodyWrap,children:c.jsx("div",{ref:P,className:Z.body,onScroll:j,children:c.jsxs("div",{ref:q,className:Z.bodyContent,children:[A&&n.map((V,ne)=>c.jsx(wl,{...V},V.id??`s-${ne}`)),I&&g.Children.map(r,V=>(g.isValidElement(V),V))]})})}),p&&c.jsx("div",{className:Z.footer,children:p})]})})},fn=g.memo(S3);fn.Section=wl;fn.Item=fs;fn.Divider=C3;fn.Custom=k3;fn.displayName="SideNav";const N3="_root_2u0l3_5",E3="_size_sm_2u0l3_31",j3="_color_blue_2u0l3_36",M3="_checked_2u0l3_40",O3="_disabled_2u0l3_44",D3="_thumb_2u0l3_49",R3="_thumb_checked_2u0l3_62",P3="_wrapper_2u0l3_66",T3="_field_2u0l3_74",A3="_labelWithTooltip_2u0l3_85",I3="_labelText_2u0l3_93",Be={root:N3,size_sm:E3,color_blue:j3,checked:M3,disabled:O3,thumb:D3,thumb_checked:R3,wrapper:P3,field:T3,labelWithTooltip:A3,labelText:I3},xl=g.forwardRef(function({checked:t,defaultChecked:n,onChange:r,disabled:o,size:s="md",color:a="green",ariaLabel:i,id:l,className:u,label:f,tooltipContent:h,tooltipPopperClassName:p},m){const y=g.useId(),b=l??y,[v,_]=g.useState(!!n),w=t!==void 0,x=w?!!t:v,k=g.useCallback(()=>{if(o)return;const C=!x;w||_(C),r?.(C)},[o,x,w,r]),S=c.jsx("button",{ref:m,id:b,type:"button",role:"switch","aria-checked":x,"aria-label":f?void 0:i,"aria-disabled":o||void 0,disabled:o,onClick:k,className:M(Be.root,s==="sm"&&Be.size_sm,a==="blue"&&Be.color_blue,x&&Be.checked,o&&Be.disabled,!f&&u),children:c.jsx("span",{className:M(Be.thumb,x&&Be.thumb_checked)})});return f?c.jsx("div",{className:M(Be.wrapper,u),children:c.jsxs("div",{className:M(Be.field,{[Be.disabled]:o}),children:[S,h?c.jsx(Lt,{htmlFor:b,tooltipContent:h,tooltipPopperClassName:p,className:Be.labelWithTooltip,labelClassName:Be.labelText,children:f}):c.jsx(Mn,{htmlFor:b,className:M(jn.label_inline,Be.labelText),children:f})]})}):S});xl.displayName="Switch";const L3="_root_1e0y6_5",W3="_option_1e0y6_15",$3="_option_disabled_1e0y6_28",F3="_option_active_1e0y6_28",B3="_size_sm_1e0y6_36",z3="_preview_1e0y6_44",H3="_label_1e0y6_48",Ft={root:L3,option:W3,option_disabled:$3,option_active:F3,size_sm:B3,preview:z3,label:H3};function Y3({value:e,onChange:t,options:n,size:r="md",ariaLabel:o,className:s}){return c.jsx("div",{role:"radiogroup","aria-label":o,className:M(Ft.root,r==="sm"&&Ft.size_sm,s),children:n.map(a=>{const i=a.value===e;return c.jsxs("button",{type:"button",role:"radio","aria-checked":i,"aria-disabled":a.disabled||void 0,disabled:a.disabled,onClick:()=>!a.disabled&&t(a.value),className:M(Ft.option,i&&Ft.option_active,a.disabled&&Ft.option_disabled),children:[c.jsx("span",{className:Ft.preview,children:a.image}),c.jsx("span",{className:Ft.label,children:a.label})]},a.value)})})}const V3="_root_143pe_5",q3="_layout_card_143pe_13",G3="_variant_elevated_143pe_22",U3="_section_143pe_28",Z3="_layout_plain_143pe_40",X3="_sectionHeader_143pe_65",K3="_sectionHeader_button_143pe_72",Q3="_sectionTitleWrap_143pe_81",J3="_sectionTitle_143pe_81",e4="_sectionDescription_143pe_97",t4="_sectionChevron_143pe_105",n4="_sectionChevron_open_143pe_112",r4="_sectionBody_143pe_116",o4="_sectionBody_collapsed_143pe_121",s4="_group_143pe_126",a4="_item_143pe_132",i4="_groupTitle_143pe_139",c4="_density_compact_143pe_169",l4="_item_align_start_143pe_185",d4="_item_interactive_143pe_189",u4="_item_danger_143pe_203",f4="_label_143pe_206",h4="_item_disabled_143pe_213",m4="_iconBadge_143pe_218",p4="_iconSpacer_143pe_240",g4="_body_143pe_245",v4="_labelRow_143pe_252",b4="_description_143pe_267",_4="_badge_143pe_275",y4="_control_143pe_287",w4="_chevron_143pe_302",x4="_externalIcon_143pe_309",C4="_hint_143pe_317",k4="_divider_143pe_332",S4="_loading_143pe_339",oe={root:V3,layout_card:q3,variant_elevated:G3,section:U3,layout_plain:Z3,sectionHeader:X3,sectionHeader_button:K3,sectionTitleWrap:Q3,sectionTitle:J3,sectionDescription:e4,sectionChevron:t4,sectionChevron_open:n4,sectionBody:r4,sectionBody_collapsed:o4,group:s4,item:a4,groupTitle:i4,density_compact:c4,item_align_start:l4,item_interactive:d4,item_danger:u4,label:f4,item_disabled:h4,iconBadge:m4,iconSpacer:p4,body:g4,labelRow:v4,description:b4,badge:_4,control:y4,chevron:w4,externalIcon:x4,hint:C4,divider:k4,loading:S4},N4=()=>c.jsxs("svg",{className:oe.externalIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[c.jsx("path",{d:"M14 3h7v7"}),c.jsx("path",{d:"M10 14L21 3"}),c.jsx("path",{d:"M21 14v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6"})]}),E4=({className:e})=>c.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:c.jsx("polyline",{points:"9 6 15 12 9 18"})}),hs=({icon:e,label:t,description:n,control:r,badge:o,hint:s,href:a,external:i,onClick:l,disabled:u,danger:f,hidden:h,align:p,className:m,render:y})=>{if(h)return null;const b=c.jsxs("div",{className:oe.body,children:[c.jsxs("div",{className:oe.labelRow,children:[c.jsx("span",{className:oe.label,children:t}),o&&c.jsx("span",{className:oe.badge,children:o})]}),n&&c.jsx("div",{className:oe.description,children:n})]}),v=r?c.jsx("div",{className:oe.control,children:r}):null;if(y)return c.jsx(c.Fragment,{children:y({label:b,control:v})});const _=!!(a||l),w=_&&!r,x=M(oe.item,p==="start"&&oe.item_align_start,_&&oe.item_interactive,f&&oe.item_danger,u&&oe.item_disabled,m),k=e?c.jsx("div",{className:oe.iconBadge,children:e}):c.jsx("span",{className:oe.iconSpacer}),S=c.jsxs(c.Fragment,{children:[v,w&&c.jsx(E4,{className:oe.chevron}),!w&&i&&a&&c.jsx(N4,{})]}),C=c.jsxs(c.Fragment,{children:[k,b,c.jsx("div",{className:oe.control,style:!r&&!w?{display:"none"}:void 0,children:S}),s&&c.jsx("div",{className:oe.hint,children:s})]});return a&&!u?c.jsx("a",{href:a,target:i?"_blank":void 0,rel:i?"noreferrer":void 0,onClick:l,className:x,children:C}):l&&!u?c.jsx("button",{type:"button",onClick:l,className:x,children:C}):c.jsx("div",{className:x,children:C})},Cl=({title:e,items:t,children:n,className:r})=>{const o=(t??[]).filter(s=>!s.hidden);return c.jsxs("div",{className:M(oe.group,r),children:[e&&c.jsx("div",{className:oe.groupTitle,children:e}),o.map((s,a)=>c.jsx(hs,{...s},s.id??`item-${a}`)),n]})},kl=({id:e,title:t,description:n,items:r,groups:o,children:s,collapsible:a,defaultOpen:i=!0,className:l})=>{const[u,f]=g.useState(i),h=(r??[]).filter(m=>!m.hidden),p=(t||n)&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oe.sectionTitleWrap,children:[t&&c.jsx("div",{className:oe.sectionTitle,children:t}),n&&c.jsx("div",{className:oe.sectionDescription,children:n})]}),a&&c.jsx(dt,{className:M(oe.sectionChevron,u&&oe.sectionChevron_open)})]});return c.jsxs("section",{id:e,className:M(oe.section,l),children:[p&&a?c.jsx("button",{type:"button",onClick:()=>f(m=>!m),className:M(oe.sectionHeader,oe.sectionHeader_button),"aria-expanded":u,children:p}):p?c.jsx("div",{className:oe.sectionHeader,children:p}):null,c.jsxs("div",{className:M(oe.sectionBody,a&&!u&&oe.sectionBody_collapsed),children:[h.map((m,y)=>c.jsx(hs,{...m},m.id??`item-${y}`)),(o??[]).map((m,y)=>c.jsx(Cl,{...m},m.id??`group-${y}`)),s]})]})},j4=({className:e})=>c.jsx("hr",{className:M(oe.divider,e)}),M4=({sections:e,children:t,layout:n="card",density:r="comfortable",variant:o="classic",loading:s,emptyState:a,className:i,id:l})=>{const u=M(oe.root,n==="card"&&o==="classic"&&oe.layout_card,n==="plain"&&oe.layout_plain,o==="elevated"&&oe.variant_elevated,r==="compact"&&oe.density_compact,i);if(s)return c.jsx("div",{className:u,id:l,children:c.jsx("div",{className:oe.loading,children:c.jsx(Ue,{})})});const f=e&&e.length>0,h=g.Children.count(t)>0;return!f&&!h?c.jsx("div",{className:u,id:l,children:a??c.jsx(It,{})}):c.jsxs("div",{className:u,id:l,children:[f&&e.map((p,m)=>c.jsx(kl,{...p},p.id??`section-${m}`)),h&&g.Children.map(t,p=>(g.isValidElement(p),p))]})},hn=g.memo(M4);hn.Section=kl;hn.Group=Cl;hn.Item=hs;hn.Divider=j4;hn.displayName="SettingsView";exports.ApprovalRoute=rw;exports.ArrowDownBlueIcon=Jl;exports.ArrowDownIcon=dt;exports.ArrowRightIcon=Ql;exports.BaseBlock=_d;exports.Button=xe;exports.Calendar=ty;exports.CameraIcon=ad;exports.CancelIcon=wa;exports.Card=Ru;exports.Carousel=Uu;exports.ChartIcon=ql;exports.ChatIcon=ya;exports.CheckGreen=td;exports.CheckIcon=Ro;exports.Checkbox=hl;exports.ClockFilledIcon=ld;exports.ClockIcon=Ol;exports.CloseRed=ed;exports.CollapsableBlock=Qm;exports.Collapse=ic;exports.Colors=Ma;exports.CommentFeed=Ex;exports.CopyIcon=ka;exports.CopyTextTrigger=Ao;exports.CrossIcon=ct;exports.DetailView=Yn;exports.DialogSelect=ns;exports.DoneIcon=rd;exports.DownloadIcon=ja;exports.EditIcon=Na;exports.EmptyComponent=It;exports.EmptyIcon=Ea;exports.EnvelopIcon=Ca;exports.FeedbackIcon=Gl;exports.FileReloadIcon=Dl;exports.FileSync=Kl;exports.FilterIcon=id;exports.FolderEditIcon=Rl;exports.GraduateIcon=Pl;exports.GridIcon=Tl;exports.HeartIcon=Al;exports.HelpIcon=Il;exports.HistoryBlue=nd;exports.HomeIcon=Ml;exports.ImageSegmented=Y3;exports.InfoIcon=Sa;exports.Input=Pc;exports.InputCaption=Ct;exports.IslandIcon=fd;exports.Label=Mn;exports.ListIcon=Ll;exports.MarketIcon=Wl;exports.MegaphoneIcon=Zl;exports.MessageIcon=od;exports.NotebookIcon=Vl;exports.PhoneIcon=sd;exports.PlaneIcon=$l;exports.Popover=Im;exports.ProfileIcon=Fl;exports.ProfileSearchIcon=Bl;exports.RadioGroupButton=Mu;exports.ReloadIcon=cd;exports.SchoolIcon=ud;exports.SearchIcon=xr;exports.Select=L0;exports.SettingsIcon=dd;exports.SettingsView=hn;exports.SideNav=fn;exports.Spinner=Ue;exports.Stepper=Dv;exports.Switch=xl;exports.Tabs=Bv;exports.TabsRounded=pv;exports.Tag=fc;exports.TaskListIcon=Ul;exports.Textarea=Tc;exports.TimesheetIcon=Yl;exports.TooltipDark=kr;exports.TooltipLight=Uo;exports.TreeDialogSelect=av;exports.TrendUpIcon=zl;exports.UserSwitchIcon=Xl;exports.WalletIcon=Hl;exports.WarnIcon=xa;exports.parseYmdToLocalDay=fl;exports.startOfLocalDay=nn;exports.toYmdString=ul;exports.todayLocalDay=U_;exports.useDropdownPosition=Su;exports.useMeasureElement=Za;
|
|
46
46
|
//# sourceMappingURL=ui-library.cjs.js.map
|