@fluidattacks/design 3.27.2 → 3.27.3

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.
Files changed (167) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/alert/index.js +1 -1
  5. package/dist/components/avatar/index.js +1 -1
  6. package/dist/components/button/index.js +1 -1
  7. package/dist/components/card/card-header/index.js +1 -1
  8. package/dist/components/card/card-with-image/index.js +1 -1
  9. package/dist/components/card/card-with-input/index.js +1 -1
  10. package/dist/components/card/card-with-options/index.js +1 -1
  11. package/dist/components/card/card-with-selector/index.js +1 -1
  12. package/dist/components/card/card-with-switch/index.js +1 -1
  13. package/dist/components/card/index.js +1 -1
  14. package/dist/components/card-container/index.js +1 -1
  15. package/dist/components/carousel/index.js +1 -1
  16. package/dist/components/checkbox/index.js +1 -1
  17. package/dist/components/cloud-image/index.js +1 -1
  18. package/dist/components/code-snippet/index.js +1 -1
  19. package/dist/components/code-snippet/location-code/index.js +1 -1
  20. package/dist/components/colors/index.js +1 -1
  21. package/dist/components/conditions-dialog/index.js +1 -1
  22. package/dist/components/confirm-dialog/index.js +1 -1
  23. package/dist/components/container/index.js +1 -1
  24. package/dist/components/copy-button/index.js +1 -1
  25. package/dist/components/divider/index.js +1 -1
  26. package/dist/components/dropdown/index.js +1 -1
  27. package/dist/components/empty-state/empty-button/index.js +1 -1
  28. package/dist/components/empty-state/index.js +1 -1
  29. package/dist/components/file-preview/index.js +1 -1
  30. package/dist/components/form/index.js +1 -1
  31. package/dist/components/form/inner-form/index.js +1 -1
  32. package/dist/components/grid-container/index.js +1 -1
  33. package/dist/components/group-selector/index.js +1 -1
  34. package/dist/components/group-selector/option-container/index.js +1 -1
  35. package/dist/components/icon/index.js +1 -1
  36. package/dist/components/icon-button/index.js +1 -1
  37. package/dist/components/indicator-card/index.js +1 -1
  38. package/dist/components/info-sidebar/index.js +1 -1
  39. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  40. package/dist/components/inputs/fields/combobox/index.js +1 -1
  41. package/dist/components/inputs/fields/combobox/index.stories.d.ts +2 -3
  42. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  43. package/dist/components/inputs/fields/combobox/types.d.ts +1 -0
  44. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  45. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  46. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  47. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  48. package/dist/components/inputs/fields/date/index.js +1 -1
  49. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  50. package/dist/components/inputs/fields/date-range/index.js +1 -1
  51. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  52. package/dist/components/inputs/fields/date-time/index.js +1 -1
  53. package/dist/components/inputs/fields/editable/index.js +1 -1
  54. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  55. package/dist/components/inputs/fields/input-array/index.js +1 -1
  56. package/dist/components/inputs/fields/input-file/index.js +1 -1
  57. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  58. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  59. package/dist/components/inputs/fields/number/index.js +1 -1
  60. package/dist/components/inputs/fields/number-range/index.js +1 -1
  61. package/dist/components/inputs/fields/phone/index.js +1 -1
  62. package/dist/components/inputs/fields/text-area/index.js +1 -1
  63. package/dist/components/inputs/fields/text-input/index.js +1 -1
  64. package/dist/components/inputs/index.js +1 -1
  65. package/dist/components/inputs/label/index.js +1 -1
  66. package/dist/components/inputs/outline-container/index.js +1 -1
  67. package/dist/components/inputs/utils/action-button/index.js +1 -1
  68. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  69. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  70. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  71. package/dist/components/inputs/utils/dialog/index.js +1 -1
  72. package/dist/components/inputs/utils/number-field/index.js +1 -1
  73. package/dist/components/inputs/utils/popover/index.js +1 -1
  74. package/dist/components/layout/categories/buttons/index.js +1 -1
  75. package/dist/components/layout/categories/column/index.js +1 -1
  76. package/dist/components/layout/categories/gap/index.js +1 -1
  77. package/dist/components/layout/categories/row/index.js +1 -1
  78. package/dist/components/layout/index.js +1 -1
  79. package/dist/components/link/index.js +1 -1
  80. package/dist/components/list-item/index.js +1 -1
  81. package/dist/components/little-flag/index.js +1 -1
  82. package/dist/components/loading/index.js +1 -1
  83. package/dist/components/logo/index.js +1 -1
  84. package/dist/components/lottie/index.js +1 -1
  85. package/dist/components/menu/index.js +1 -1
  86. package/dist/components/message-banner/index.js +1 -1
  87. package/dist/components/modal/columns-modal/index.js +1 -1
  88. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  89. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  90. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  91. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  92. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  93. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  94. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  95. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  96. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  97. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  98. package/dist/components/modal/filters-modal/index.js +1 -1
  99. package/dist/components/modal/footer/index.js +1 -1
  100. package/dist/components/modal/header/index.js +1 -1
  101. package/dist/components/modal/index.js +1 -1
  102. package/dist/components/modal/modal-confirm/index.js +1 -1
  103. package/dist/components/notification/index.js +1 -1
  104. package/dist/components/notification-sign/index.js +1 -1
  105. package/dist/components/number-input/index.js +1 -1
  106. package/dist/components/oauth-selector/index.js +1 -1
  107. package/dist/components/oauth-selector/option-container/index.js +1 -1
  108. package/dist/components/pop-up/description/index.js +1 -1
  109. package/dist/components/pop-up/index.js +1 -1
  110. package/dist/components/premium-feature/index.js +1 -1
  111. package/dist/components/priority-score/index.js +1 -1
  112. package/dist/components/progress-bar/index.js +1 -1
  113. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  114. package/dist/components/progress-indicator/index.js +1 -1
  115. package/dist/components/progress-indicator/step/index.js +1 -1
  116. package/dist/components/radio-button/index.js +1 -1
  117. package/dist/components/scroll-button/index.js +1 -1
  118. package/dist/components/search/index.js +1 -1
  119. package/dist/components/severity-badge/index.js +1 -1
  120. package/dist/components/severity-overview/badge/index.js +1 -1
  121. package/dist/components/severity-overview/index.js +1 -1
  122. package/dist/components/show-on-hover/index.js +1 -1
  123. package/dist/components/slide-out-menu/index.js +1 -1
  124. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  125. package/dist/components/slider/index.js +1 -1
  126. package/dist/components/slider/thumb/index.js +1 -1
  127. package/dist/components/step-lapse/index.js +1 -1
  128. package/dist/components/table/context/index.js +1 -1
  129. package/dist/components/table/export-csv/index.js +1 -1
  130. package/dist/components/table/index.js +1 -1
  131. package/dist/components/table/pagination/pagination-control/index.js +1 -1
  132. package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
  133. package/dist/components/table/pagination/pagination-size/index.js +1 -1
  134. package/dist/components/table/sort-icon/index.js +1 -1
  135. package/dist/components/table/table-body/index.js +1 -1
  136. package/dist/components/table/table-column-toggle/index.js +1 -1
  137. package/dist/components/table/table-content/head/index.js +1 -1
  138. package/dist/components/table/table-content/index.js +1 -1
  139. package/dist/components/table/table-footer/footer-content/index.js +1 -1
  140. package/dist/components/table/table-footer/index.js +1 -1
  141. package/dist/components/table/table-options/caption-content/index.js +1 -1
  142. package/dist/components/table/table-options/controls-content/index.js +1 -1
  143. package/dist/components/table/table-options/highlighted-content/index.js +1 -1
  144. package/dist/components/table/table-options/index.js +1 -1
  145. package/dist/components/table/wrapper/index.js +1 -1
  146. package/dist/components/table-button/index.js +1 -1
  147. package/dist/components/tabs/index.js +1 -1
  148. package/dist/components/tabs/tab/index.js +1 -1
  149. package/dist/components/tag/index.js +1 -1
  150. package/dist/components/timeline/card/index.js +1 -1
  151. package/dist/components/timeline/index.js +1 -1
  152. package/dist/components/toggle/index.js +1 -1
  153. package/dist/components/tooltip/index.js +1 -1
  154. package/dist/components/tour/index.js +1 -1
  155. package/dist/components/typography/heading/index.js +1 -1
  156. package/dist/components/typography/index.js +1 -1
  157. package/dist/components/typography/span/index.js +1 -1
  158. package/dist/components/typography/text/index.js +1 -1
  159. package/dist/{components-C_rb5tcr.mjs → components-BAuFm1mN.mjs} +1247 -1222
  160. package/dist/components-DXkxVFLn.js +3188 -0
  161. package/dist/hooks/index.js +1 -1
  162. package/dist/index.js +1 -1
  163. package/dist/{vendor-C4aloG3g.mjs → vendor-C3KgSuPd.mjs} +17385 -18549
  164. package/dist/vendor-DE_IQw9t.js +164 -0
  165. package/package.json +4 -4
  166. package/dist/components-CZYbMm7C.js +0 -3164
  167. package/dist/vendor-p_HN3CLJ.js +0 -223
@@ -0,0 +1,164 @@
1
+ "use strict";require('./assets/vendor.css');var zB=Object.defineProperty;var WB=(e,t,n)=>t in e?zB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zc=(e,t,n)=>WB(e,typeof t!="symbol"?t+"":t,n);const I=require("react"),Qa=require("react/jsx-runtime"),kp=require("react-dom");function u2(e){if(e&&typeof e=="object"&&"default"in e)return 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 fe=u2(I),Os=u2(kp);function Op(){return typeof window<"u"}function Jl(e){return l2(e)?(e.nodeName||"").toLowerCase():"#document"}function ii(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ts(e){var t;return(t=(l2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function l2(e){return Op()?e instanceof Node||e instanceof ii(e).Node:!1}function er(e){return Op()?e instanceof Element||e instanceof ii(e).Element:!1}function Yi(e){return Op()?e instanceof HTMLElement||e instanceof ii(e).HTMLElement:!1}function ob(e){return!Op()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ii(e).ShadowRoot}const HB=new Set(["inline","contents"]);function Xf(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=va(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!HB.has(i)}const GB=new Set(["table","td","th"]);function YB(e){return GB.has(Jl(e))}const ZB=[":popover-open",":modal"];function Ip(e){return ZB.some(t=>{try{return e.matches(t)}catch{return!1}})}const XB=["transform","translate","scale","rotate","perspective"],JB=["transform","translate","scale","rotate","perspective","filter"],QB=["paint","layout","strict","content"];function K1(e){const t=U1(),n=er(e)?va(e):e;return XB.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||JB.some(r=>(n.willChange||"").includes(r))||QB.some(r=>(n.contain||"").includes(r))}function eN(e){let t=bo(e);for(;Yi(t)&&!Vl(t);){if(K1(t))return t;if(Ip(t))return null;t=bo(t)}return null}function U1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tN=new Set(["html","body","#document"]);function Vl(e){return tN.has(Jl(e))}function va(e){return ii(e).getComputedStyle(e)}function Lp(e){return er(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bo(e){if(Jl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ob(e)&&e.host||ts(e);return ob(t)?t.host:t}function c2(e){const t=bo(e);return Vl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yi(t)&&Xf(t)?t:c2(t)}function Tf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=c2(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=ii(i);if(a){const u=ub(s);return t.concat(s,s.visualViewport||[],Xf(i)?i:[],u&&n?Tf(u):[])}return t.concat(i,Tf(i,[],n))}function ub(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Wh=Math.min,mu=Math.max,Hh=Math.round,rh=Math.floor,Ya=e=>({x:e,y:e}),nN={left:"right",right:"left",bottom:"top",top:"bottom"},rN={start:"end",end:"start"};function Xx(e,t,n){return mu(e,Wh(t,n))}function Vp(e,t){return typeof e=="function"?e(t):e}function $u(e){return e.split("-")[0]}function Bp(e){return e.split("-")[1]}function f2(e){return e==="x"?"y":"x"}function d2(e){return e==="y"?"height":"width"}const iN=new Set(["top","bottom"]);function ho(e){return iN.has($u(e))?"y":"x"}function h2(e){return f2(ho(e))}function aN(e,t,n){n===void 0&&(n=!1);const r=Bp(e),i=h2(e),a=d2(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Gh(s)),[s,Gh(s)]}function sN(e){const t=Gh(e);return[lb(e),t,lb(t)]}function lb(e){return e.replace(/start|end/g,t=>rN[t])}const Jx=["left","right"],Qx=["right","left"],oN=["top","bottom"],uN=["bottom","top"];function lN(e,t,n){switch(e){case"top":case"bottom":return n?t?Qx:Jx:t?Jx:Qx;case"left":case"right":return t?oN:uN;default:return[]}}function cN(e,t,n,r){const i=Bp(e);let a=lN($u(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(lb)))),a}function Gh(e){return e.replace(/left|right|bottom|top/g,t=>nN[t])}function fN(e){return{top:0,right:0,bottom:0,left:0,...e}}function dN(e){return typeof e!="number"?fN(e):{top:e,right:e,bottom:e,left:e}}function Yh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function hN(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function pN(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function mN(){return/apple/i.test(navigator.vendor)}function gN(){return hN().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function vN(){return pN().includes("jsdom/")}const ew="data-floating-ui-focusable",yN="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function tw(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function cb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ob(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function bN(e){return"composedPath"in e?e.composedPath()[0]:e.target}function of(e){return(e==null?void 0:e.ownerDocument)||document}function $N(e){return Yi(e)&&e.matches(yN)}function xN(e){if(!e||vN())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function wN(e){return e?e.hasAttribute(ew)?e:e.querySelector("["+ew+"]")||e:null}function fb(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var CN=typeof document<"u",EN=function(){},Bl=CN?I.useLayoutEffect:EN;const SN={...fe};function ih(e){const t=fe.useRef(e);return Bl(()=>{t.current=e}),t}const DN=SN.useInsertionEffect,AN=DN||(e=>e());function uf(e){const t=fe.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return AN(()=>{t.current=e}),fe.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function nw(e,t,n){let{reference:r,floating:i}=e;const a=ho(t),s=h2(t),u=d2(s),f=$u(t),d=a==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[u]/2-i[u]/2;let b;switch(f){case"top":b={x:h,y:r.y-i.height};break;case"bottom":b={x:h,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch(Bp(t)){case"start":b[s]-=g*(n&&d?-1:1);break;case"end":b[s]+=g*(n&&d?-1:1);break}return b}const TN=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,u=a.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=nw(d,r,f),g=r,b={},w=0;for(let x=0;x<u.length;x++){const{name:A,fn:C}=u[x],{x:E,y:S,data:R,reset:_}=await C({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:d,platform:s,elements:{reference:e,floating:t}});h=E??h,m=S??m,b={...b,[A]:{...b[A],...R}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(g=_.placement),_.rects&&(d=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:h,y:m}=nw(d,g,f)),x=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function p2(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:u,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=Vp(t,e),w=dN(b),A=u[g?m==="floating"?"reference":"floating":m],C=Yh(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(A)))==null||n?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:d,rootBoundary:h,strategy:f})),E=m==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),R=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},_=Yh(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:E,offsetParent:S,strategy:f}):E);return{top:(C.top-_.top+w.top)/R.y,bottom:(_.bottom-C.bottom+w.bottom)/R.y,left:(C.left-_.left+w.left)/R.x,right:(_.right-C.right+w.right)/R.x}}const PN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:u,platform:f,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...A}=Vp(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const C=$u(i),E=ho(u),S=$u(u)===u,R=await(f.isRTL==null?void 0:f.isRTL(d.floating)),_=g||(S||!x?[Gh(u)]:sN(u)),F=w!=="none";!g&&F&&_.push(...cN(u,x,w,R));const z=[u,..._],ie=await p2(t,A),ge=[];let oe=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&ge.push(ie[C]),m){const U=aN(i,s,R);ge.push(ie[U[0]],ie[U[1]])}if(oe=[...oe,{placement:i,overflows:ge}],!ge.every(U=>U<=0)){var O,we;const U=(((O=a.flip)==null?void 0:O.index)||0)+1,ee=z[U];if(ee&&(!(m==="alignment"?E!==ho(ee):!1)||oe.every(N=>ho(N.placement)===E?N.overflows[0]>0:!0)))return{data:{index:U,overflows:oe},reset:{placement:ee}};let K=(we=oe.filter(k=>k.overflows[0]<=0).sort((k,N)=>k.overflows[1]-N.overflows[1])[0])==null?void 0:we.placement;if(!K)switch(b){case"bestFit":{var Se;const k=(Se=oe.filter(N=>{if(F){const te=ho(N.placement);return te===E||te==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(te=>te>0).reduce((te,j)=>te+j,0)]).sort((N,te)=>N[1]-te[1])[0])==null?void 0:Se[0];k&&(K=k);break}case"initialPlacement":K=u;break}if(i!==K)return{reset:{placement:K}}}return{}}}},_N=new Set(["left","top"]);async function MN(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=$u(n),u=Bp(n),f=ho(n)==="y",d=_N.has(s)?-1:1,h=a&&f?-1:1,m=Vp(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof w=="number"&&(b=u==="end"?w*-1:w),f?{x:b*h,y:g*d}:{x:g*d,y:b*h}}const FN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:u}=t,f=await MN(t,e);return s===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:a+f.y,data:{...f,placement:s}}}}},RN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:u={fn:A=>{let{x:C,y:E}=A;return{x:C,y:E}}},...f}=Vp(e,t),d={x:n,y:r},h=await p2(t,f),m=ho($u(i)),g=f2(m);let b=d[g],w=d[m];if(a){const A=g==="y"?"top":"left",C=g==="y"?"bottom":"right",E=b+h[A],S=b-h[C];b=Xx(E,b,S)}if(s){const A=m==="y"?"top":"left",C=m==="y"?"bottom":"right",E=w+h[A],S=w-h[C];w=Xx(E,w,S)}const x=u.fn({...t,[g]:b,[m]:w});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:a,[m]:s}}}}}};function m2(e){const t=va(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Yi(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=Hh(n)!==a||Hh(r)!==s;return u&&(n=a,r=s),{width:n,height:r,$:u}}function q1(e){return er(e)?e:e.contextElement}function Al(e){const t=q1(e);if(!Yi(t))return Ya(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=m2(t);let s=(a?Hh(n.width):n.width)/r,u=(a?Hh(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const kN=Ya(0);function g2(e){const t=ii(e);return!U1()||!t.visualViewport?kN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ON(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ii(e)?!1:t}function xu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=q1(e);let s=Ya(1);t&&(r?er(r)&&(s=Al(r)):s=Al(e));const u=ON(a,n,r)?g2(a):Ya(0);let f=(i.left+u.x)/s.x,d=(i.top+u.y)/s.y,h=i.width/s.x,m=i.height/s.y;if(a){const g=ii(a),b=r&&er(r)?ii(r):r;let w=g,x=ub(w);for(;x&&r&&b!==w;){const A=Al(x),C=x.getBoundingClientRect(),E=va(x),S=C.left+(x.clientLeft+parseFloat(E.paddingLeft))*A.x,R=C.top+(x.clientTop+parseFloat(E.paddingTop))*A.y;f*=A.x,d*=A.y,h*=A.x,m*=A.y,f+=S,d+=R,w=ii(x),x=ub(w)}}return Yh({width:h,height:m,x:f,y:d})}function z1(e,t){const n=Lp(e).scrollLeft;return t?t.left+n:xu(ts(e)).left+n}function v2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:z1(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function IN(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=ts(r),u=t?Ip(t.floating):!1;if(r===s||u&&a)return n;let f={scrollLeft:0,scrollTop:0},d=Ya(1);const h=Ya(0),m=Yi(r);if((m||!m&&!a)&&((Jl(r)!=="body"||Xf(s))&&(f=Lp(r)),Yi(r))){const b=xu(r);d=Al(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=s&&!m&&!a?v2(s,f,!0):Ya(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-f.scrollTop*d.y+h.y+g.y}}function LN(e){return Array.from(e.getClientRects())}function VN(e){const t=ts(e),n=Lp(e),r=e.ownerDocument.body,i=mu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=mu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+z1(e);const u=-n.scrollTop;return va(r).direction==="rtl"&&(s+=mu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:u}}function BN(e,t){const n=ii(e),r=ts(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,u=0,f=0;if(i){a=i.width,s=i.height;const d=U1();(!d||d&&t==="fixed")&&(u=i.offsetLeft,f=i.offsetTop)}return{width:a,height:s,x:u,y:f}}const NN=new Set(["absolute","fixed"]);function jN(e,t){const n=xu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Yi(e)?Al(e):Ya(1),s=e.clientWidth*a.x,u=e.clientHeight*a.y,f=i*a.x,d=r*a.y;return{width:s,height:u,x:f,y:d}}function rw(e,t,n){let r;if(t==="viewport")r=BN(e,n);else if(t==="document")r=VN(ts(e));else if(er(t))r=jN(t,n);else{const i=g2(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Yh(r)}function y2(e,t){const n=bo(e);return n===t||!er(n)||Vl(n)?!1:va(n).position==="fixed"||y2(n,t)}function KN(e,t){const n=t.get(e);if(n)return n;let r=Tf(e,[],!1).filter(u=>er(u)&&Jl(u)!=="body"),i=null;const a=va(e).position==="fixed";let s=a?bo(e):e;for(;er(s)&&!Vl(s);){const u=va(s),f=K1(s);!f&&u.position==="fixed"&&(i=null),(a?!f&&!i:!f&&u.position==="static"&&!!i&&NN.has(i.position)||Xf(s)&&!f&&y2(e,s))?r=r.filter(h=>h!==s):i=u,s=bo(s)}return t.set(e,r),r}function UN(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Ip(t)?[]:KN(t,this._c):[].concat(n),r],u=s[0],f=s.reduce((d,h)=>{const m=rw(t,h,i);return d.top=mu(m.top,d.top),d.right=Wh(m.right,d.right),d.bottom=Wh(m.bottom,d.bottom),d.left=mu(m.left,d.left),d},rw(t,u,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function qN(e){const{width:t,height:n}=m2(e);return{width:t,height:n}}function zN(e,t,n){const r=Yi(t),i=ts(t),a=n==="fixed",s=xu(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const f=Ya(0);function d(){f.x=z1(i)}if(r||!r&&!a)if((Jl(t)!=="body"||Xf(i))&&(u=Lp(t)),r){const b=xu(t,!0,a,t);f.x=b.x+t.clientLeft,f.y=b.y+t.clientTop}else i&&d();a&&!r&&i&&d();const h=i&&!r&&!a?v2(i,u):Ya(0),m=s.left+u.scrollLeft-f.x-h.x,g=s.top+u.scrollTop-f.y-h.y;return{x:m,y:g,width:s.width,height:s.height}}function Cg(e){return va(e).position==="static"}function iw(e,t){if(!Yi(e)||va(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ts(e)===n&&(n=n.ownerDocument.body),n}function b2(e,t){const n=ii(e);if(Ip(e))return n;if(!Yi(e)){let i=bo(e);for(;i&&!Vl(i);){if(er(i)&&!Cg(i))return i;i=bo(i)}return n}let r=iw(e,t);for(;r&&YB(r)&&Cg(r);)r=iw(r,t);return r&&Vl(r)&&Cg(r)&&!K1(r)?n:r||eN(e)||n}const WN=async function(e){const t=this.getOffsetParent||b2,n=this.getDimensions,r=await n(e.floating);return{reference:zN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function HN(e){return va(e).direction==="rtl"}const GN={convertOffsetParentRelativeRectToViewportRelativeRect:IN,getDocumentElement:ts,getClippingRect:UN,getOffsetParent:b2,getElementRects:WN,getClientRects:LN,getDimensions:qN,getScale:Al,isElement:er,isRTL:HN};function $2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YN(e,t){let n=null,r;const i=ts(e);function a(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function s(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),a();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=d;if(u||t(),!g||!b)return;const w=rh(m),x=rh(i.clientWidth-(h+g)),A=rh(i.clientHeight-(m+b)),C=rh(h),S={rootMargin:-w+"px "+-x+"px "+-A+"px "+-C+"px",threshold:mu(0,Wh(1,f))||1};let R=!0;function _(F){const z=F[0].intersectionRatio;if(z!==f){if(!R)return s();z?s(!1,z):r=setTimeout(()=>{s(!1,1e-7)},1e3)}z===1&&!$2(d,e.getBoundingClientRect())&&s(),R=!1}try{n=new IntersectionObserver(_,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,S)}n.observe(e)}return s(!0),a}function ZN(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=q1(e),h=i||a?[...d?Tf(d):[],...Tf(t)]:[];h.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),a&&C.addEventListener("resize",n)});const m=d&&u?YN(d,n):null;let g=-1,b=null;s&&(b=new ResizeObserver(C=>{let[E]=C;E&&E.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var S;(S=b)==null||S.observe(t)})),n()}),d&&!f&&b.observe(d),b.observe(t));let w,x=f?xu(e):null;f&&A();function A(){const C=xu(e);x&&!$2(x,C)&&n(),x=C,w=requestAnimationFrame(A)}return n(),()=>{var C;h.forEach(E=>{i&&E.removeEventListener("scroll",n),a&&E.removeEventListener("resize",n)}),m==null||m(),(C=b)==null||C.disconnect(),b=null,f&&cancelAnimationFrame(w)}}const XN=FN,JN=RN,QN=PN,ej=(e,t,n)=>{const r=new Map,i={platform:GN,...n},a={...i.platform,_c:r};return TN(e,t,{...i,platform:a})};var tj=typeof document<"u",nj=function(){},Sh=tj?I.useLayoutEffect:nj;function Zh(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,i;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(!Zh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Zh(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function x2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function aw(e,t){const n=x2(e);return Math.round(t*n)/n}function Eg(e){const t=fe.useRef(e);return Sh(()=>{t.current=e}),t}function w2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:f,open:d}=e,[h,m]=fe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=fe.useState(r);Zh(g,r)||b(r);const[w,x]=fe.useState(null),[A,C]=fe.useState(null),E=fe.useCallback(N=>{N!==F.current&&(F.current=N,x(N))},[]),S=fe.useCallback(N=>{N!==z.current&&(z.current=N,C(N))},[]),R=a||w,_=s||A,F=fe.useRef(null),z=fe.useRef(null),ie=fe.useRef(h),ge=f!=null,oe=Eg(f),O=Eg(i),we=Eg(d),Se=fe.useCallback(()=>{if(!F.current||!z.current)return;const N={placement:t,strategy:n,middleware:g};O.current&&(N.platform=O.current),ej(F.current,z.current,N).then(te=>{const j={...te,isPositioned:we.current!==!1};U.current&&!Zh(ie.current,j)&&(ie.current=j,Os.flushSync(()=>{m(j)}))})},[g,t,n,O,we]);Sh(()=>{d===!1&&ie.current.isPositioned&&(ie.current.isPositioned=!1,m(N=>({...N,isPositioned:!1})))},[d]);const U=fe.useRef(!1);Sh(()=>(U.current=!0,()=>{U.current=!1}),[]),Sh(()=>{if(R&&(F.current=R),_&&(z.current=_),R&&_){if(oe.current)return oe.current(R,_,Se);Se()}},[R,_,Se,oe,ge]);const ee=fe.useMemo(()=>({reference:F,floating:z,setReference:E,setFloating:S}),[E,S]),K=fe.useMemo(()=>({reference:R,floating:_}),[R,_]),k=fe.useMemo(()=>{const N={position:n,left:0,top:0};if(!K.floating)return N;const te=aw(K.floating,h.x),j=aw(K.floating,h.y);return u?{...N,transform:"translate("+te+"px, "+j+"px)",...x2(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:j}},[n,u,K.floating,h.x,h.y]);return fe.useMemo(()=>({...h,update:Se,refs:ee,elements:K,floatingStyles:k}),[h,Se,ee,K,k])}const rj=(e,t)=>({...XN(e),options:[e,t]}),ij=(e,t)=>({...JN(e),options:[e,t]}),aj=(e,t)=>({...QN(e),options:[e,t]}),sj="data-floating-ui-focusable",sw="active",ow="selected",oj={...fe};let uw=!1,uj=0;const lw=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+uj++;function lj(){const[e,t]=fe.useState(()=>uw?lw():void 0);return Bl(()=>{e==null&&t(lw())},[]),fe.useEffect(()=>{uw=!0},[]),e}const cj=oj.useId,C2=cj||lj;let db;process.env.NODE_ENV!=="production"&&(db=new Set);function fj(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=db)!=null&&e.has(i))){var a;(a=db)==null||a.add(i),console.error(i)}}function dj(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(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 hj=fe.createContext(null),pj=fe.createContext(null),W1=()=>{var e;return((e=fe.useContext(hj))==null?void 0:e.id)||null},E2=()=>fe.useContext(pj);function S2(e){return"data-floating-ui-"+e}function Ii(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const cw=S2("safe-polygon");function Sg(e,t,n){if(n&&!fb(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function Dg(e){return typeof e=="function"?e():e}function mj(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:s}=e,{enabled:u=!0,delay:f=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=E2(),w=W1(),x=ih(d),A=ih(f),C=ih(n),E=ih(m),S=fe.useRef(),R=fe.useRef(-1),_=fe.useRef(),F=fe.useRef(-1),z=fe.useRef(!0),ie=fe.useRef(!1),ge=fe.useRef(()=>{}),oe=fe.useRef(!1),O=uf(()=>{var k;const N=(k=i.current.openEvent)==null?void 0:k.type;return(N==null?void 0:N.includes("mouse"))&&N!=="mousedown"});fe.useEffect(()=>{if(!u)return;function k(N){let{open:te}=N;te||(Ii(R),Ii(F),z.current=!0,oe.current=!1)}return a.on("openchange",k),()=>{a.off("openchange",k)}},[u,a]),fe.useEffect(()=>{if(!u||!x.current||!n)return;function k(te){O()&&r(!1,te,"hover")}const N=of(s.floating).documentElement;return N.addEventListener("mouseleave",k),()=>{N.removeEventListener("mouseleave",k)}},[s.floating,n,r,u,x,O]);const we=fe.useCallback(function(k,N,te){N===void 0&&(N=!0),te===void 0&&(te="hover");const j=Sg(A.current,"close",S.current);j&&!_.current?(Ii(R),R.current=window.setTimeout(()=>r(!1,k,te),j)):N&&(Ii(R),r(!1,k,te))},[A,r]),Se=uf(()=>{ge.current(),_.current=void 0}),U=uf(()=>{if(ie.current){const k=of(s.floating).body;k.style.pointerEvents="",k.removeAttribute(cw),ie.current=!1}}),ee=uf(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);fe.useEffect(()=>{if(!u)return;function k(ue){if(Ii(R),z.current=!1,h&&!fb(S.current)||Dg(E.current)>0&&!Sg(A.current,"open"))return;const Ae=Sg(A.current,"open",S.current);Ae?R.current=window.setTimeout(()=>{C.current||r(!0,ue,"hover")},Ae):n||r(!0,ue,"hover")}function N(ue){if(ee()){U();return}ge.current();const Ae=of(s.floating);if(Ii(F),oe.current=!1,x.current&&i.current.floatingContext){n||Ii(R),_.current=x.current({...i.current.floatingContext,tree:b,x:ue.clientX,y:ue.clientY,onClose(){U(),Se(),ee()||we(ue,!0,"safe-polygon")}});const Le=_.current;Ae.addEventListener("mousemove",Le),ge.current=()=>{Ae.removeEventListener("mousemove",Le)};return}(S.current==="touch"?!cb(s.floating,ue.relatedTarget):!0)&&we(ue)}function te(ue){ee()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:b,x:ue.clientX,y:ue.clientY,onClose(){U(),Se(),ee()||we(ue)}})(ue))}function j(){Ii(R)}function ce(ue){ee()||we(ue,!1)}if(er(s.domReference)){const ue=s.domReference,Ae=s.floating;return n&&ue.addEventListener("mouseleave",te),g&&ue.addEventListener("mousemove",k,{once:!0}),ue.addEventListener("mouseenter",k),ue.addEventListener("mouseleave",N),Ae&&(Ae.addEventListener("mouseleave",te),Ae.addEventListener("mouseenter",j),Ae.addEventListener("mouseleave",ce)),()=>{n&&ue.removeEventListener("mouseleave",te),g&&ue.removeEventListener("mousemove",k),ue.removeEventListener("mouseenter",k),ue.removeEventListener("mouseleave",N),Ae&&(Ae.removeEventListener("mouseleave",te),Ae.removeEventListener("mouseenter",j),Ae.removeEventListener("mouseleave",ce))}}},[s,u,e,h,g,we,Se,U,r,n,C,b,A,x,i,ee,E]),Bl(()=>{var k;if(u&&n&&(k=x.current)!=null&&(k=k.__options)!=null&&k.blockPointerEvents&&O()){ie.current=!0;const te=s.floating;if(er(s.domReference)&&te){var N;const j=of(s.floating).body;j.setAttribute(cw,"");const ce=s.domReference,ue=b==null||(N=b.nodesRef.current.find(Ae=>Ae.id===w))==null||(N=N.context)==null?void 0:N.elements.floating;return ue&&(ue.style.pointerEvents=""),j.style.pointerEvents="none",ce.style.pointerEvents="auto",te.style.pointerEvents="auto",()=>{j.style.pointerEvents="",ce.style.pointerEvents="",te.style.pointerEvents=""}}}},[u,n,w,s,b,x,O]),Bl(()=>{n||(S.current=void 0,oe.current=!1,Se(),U())},[n,Se,U]),fe.useEffect(()=>()=>{Se(),Ii(R),Ii(F),U()},[u,s.domReference,Se,U]);const K=fe.useMemo(()=>{function k(N){S.current=N.pointerType}return{onPointerDown:k,onPointerEnter:k,onMouseMove(N){const{nativeEvent:te}=N;function j(){!z.current&&!C.current&&r(!0,te,"hover")}h&&!fb(S.current)||n||Dg(E.current)===0||oe.current&&N.movementX**2+N.movementY**2<2||(Ii(F),S.current==="touch"?j():(oe.current=!0,F.current=window.setTimeout(j,Dg(E.current))))}}},[h,r,n,C,E]);return fe.useMemo(()=>u?{reference:K}:{},[u,K])}function gj(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=C2(),a=fe.useRef({}),[s]=fe.useState(()=>dj()),u=W1()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!er(b)&&fj("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[f,d]=fe.useState(r.reference),h=uf((b,w,x)=>{a.current.openEvent=b?w:void 0,s.emit("openchange",{open:b,event:w,reason:x,nested:u}),n==null||n(b,w,x)}),m=fe.useMemo(()=>({setPositionReference:d}),[]),g=fe.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return fe.useMemo(()=>({dataRef:a,open:t,onOpenChange:h,elements:g,events:s,floatingId:i,refs:m}),[t,h,g,s,i,m])}function vj(e){e===void 0&&(e={});const{nodeId:t}=e,n=gj({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,s]=fe.useState(null),[u,f]=fe.useState(null),h=(i==null?void 0:i.domReference)||a,m=fe.useRef(null),g=E2();Bl(()=>{h&&(m.current=h)},[h]);const b=w2({...e,elements:{...i,...u&&{reference:u}}}),w=fe.useCallback(S=>{const R=er(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;f(R),b.refs.setReference(R)},[b.refs]),x=fe.useCallback(S=>{(er(S)||S===null)&&(m.current=S,s(S)),(er(b.refs.reference.current)||b.refs.reference.current===null||S!==null&&!er(S))&&b.refs.setReference(S)},[b.refs]),A=fe.useMemo(()=>({...b.refs,setReference:x,setPositionReference:w,domReference:m}),[b.refs,x,w]),C=fe.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),E=fe.useMemo(()=>({...b,...r,refs:A,elements:C,nodeId:t}),[b,A,C,t,r]);return Bl(()=>{r.dataRef.current.floatingContext=E;const S=g==null?void 0:g.nodesRef.current.find(R=>R.id===t);S&&(S.context=E)}),fe.useMemo(()=>({...b,context:E,refs:A,elements:C}),[b,A,C,E])}function Ag(){return gN()&&mN()}function yj(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:s}=e,{enabled:u=!0,visibleOnly:f=!0}=t,d=fe.useRef(!1),h=fe.useRef(-1),m=fe.useRef(!0);fe.useEffect(()=>{if(!u)return;const b=ii(s.domReference);function w(){!n&&Yi(s.domReference)&&s.domReference===tw(of(s.domReference))&&(d.current=!0)}function x(){m.current=!0}function A(){m.current=!1}return b.addEventListener("blur",w),Ag()&&(b.addEventListener("keydown",x,!0),b.addEventListener("pointerdown",A,!0)),()=>{b.removeEventListener("blur",w),Ag()&&(b.removeEventListener("keydown",x,!0),b.removeEventListener("pointerdown",A,!0))}},[s.domReference,n,u]),fe.useEffect(()=>{if(!u)return;function b(w){let{reason:x}=w;(x==="reference-press"||x==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,u]),fe.useEffect(()=>()=>{Ii(h)},[]);const g=fe.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const w=bN(b.nativeEvent);if(f&&er(w)){if(Ag()&&!b.relatedTarget){if(!m.current&&!$N(w))return}else if(!xN(w))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const w=b.relatedTarget,x=b.nativeEvent,A=er(w)&&w.hasAttribute(S2("focus-guard"))&&w.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var C;const E=tw(s.domReference?s.domReference.ownerDocument:document);!w&&E===s.domReference||cb((C=a.current.floatingContext)==null?void 0:C.refs.floating.current,E)||cb(s.domReference,E)||A||r(!1,x,"focus")})}}),[a,s.domReference,r,f]);return fe.useMemo(()=>u?{reference:g}:{},[u,g])}function Tg(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[sw]:s,[ow]:u,...f}=e;a=f}return{...n==="floating"&&{tabIndex:-1,[sj]:""},...a,...t.map(s=>{const u=s?s[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((s,u)=>(u&&Object.entries(u).forEach(f=>{let[d,h]=f;if(!(i&&[sw,ow].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),s[d]=function(){for(var g,b=arguments.length,w=new Array(b),x=0;x<b;x++)w[x]=arguments[x];return(g=r.get(d))==null?void 0:g.map(A=>A(...w)).find(A=>A!==void 0)}}}else s[d]=h}),s),{})}}function bj(e){e===void 0&&(e=[]);const t=e.map(u=>u==null?void 0:u.reference),n=e.map(u=>u==null?void 0:u.floating),r=e.map(u=>u==null?void 0:u.item),i=fe.useCallback(u=>Tg(u,e,"reference"),t),a=fe.useCallback(u=>Tg(u,e,"floating"),n),s=fe.useCallback(u=>Tg(u,e,"item"),r);return fe.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s}),[i,a,s])}const $j=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function xj(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:a,floatingId:s}=e,{enabled:u=!0,role:f="dialog"}=t,d=C2(),h=((n=a.domReference)==null?void 0:n.id)||d,m=fe.useMemo(()=>{var E;return((E=wN(a.floating))==null?void 0:E.id)||s},[a.floating,s]),g=(r=$j.get(f))!=null?r:f,w=W1()!=null,x=fe.useMemo(()=>g==="tooltip"||f==="label"?{["aria-"+(f==="label"?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":i?m:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:h},...g==="menu"&&w&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[g,m,w,i,h,f]),A=fe.useMemo(()=>{const E={id:m,...g&&{role:g}};return g==="tooltip"||f==="label"?E:{...E,...g==="menu"&&{"aria-labelledby":h}}},[g,m,h,f]),C=fe.useCallback(E=>{let{active:S,selected:R}=E;const _={role:"option",...S&&{id:m+"-fui-option"}};switch(f){case"select":case"combobox":return{..._,"aria-selected":R}}return{}},[m,f]);return fe.useMemo(()=>u?{reference:x,floating:A,item:C}:{},[u,x,A,C])}var Ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lf={exports:{}};/**
2
+ * @license
3
+ * Lodash <https://lodash.com/>
4
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
+ * Released under MIT license <https://lodash.com/license>
6
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
+ */var wj=lf.exports,fw;function Cj(){return fw||(fw=1,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,b=4,w=1,x=2,A=1,C=2,E=4,S=8,R=16,_=32,F=64,z=128,ie=256,ge=512,oe=30,O="...",we=800,Se=16,U=1,ee=2,K=3,k=1/0,N=9007199254740991,te=17976931348623157e292,j=NaN,ce=4294967295,ue=ce-1,Ae=ce>>>1,_e=[["ary",z],["bind",A],["bindKey",C],["curry",S],["curryRight",R],["flip",ge],["partial",_],["partialRight",F],["rearg",ie]],Le="[object Arguments]",Ye="[object Array]",Qe="[object AsyncFunction]",Ue="[object Boolean]",Ge="[object Date]",Ie="[object DOMException]",Ne="[object Error]",Te="[object Function]",He="[object GeneratorFunction]",ht="[object Map]",Ht="[object Number]",$t="[object Null]",_t="[object Object]",qr="[object Promise]",Qt="[object Proxy]",be="[object RegExp]",De="[object Set]",Me="[object String]",Xe="[object Symbol]",tt="[object Undefined]",Je="[object WeakMap]",gt="[object WeakSet]",Rt="[object ArrayBuffer]",xt="[object DataView]",gn="[object Float32Array]",yr="[object Float64Array]",Ut="[object Int8Array]",Pt="[object Int16Array]",It="[object Int32Array]",qt="[object Uint8Array]",fr="[object Uint8ClampedArray]",zr="[object Uint16Array]",si="[object Uint32Array]",Tr=/\b__p \+= '';/g,Ea=/\b(__p \+=) '' \+/g,Ao=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,oi=/[&<>"']/g,is=RegExp(bt.source),vc=RegExp(oi.source),ku=/<%-([\s\S]+?)%>/g,yc=/<%([\s\S]+?)%>/g,Ou=/<%=([\s\S]+?)%>/g,To=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Iu=/^\w*$/,Xi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ji=/[\\^$.*+?()[\]{}|]/g,yt=RegExp(Ji.source),Cn=/^\s+/,as=/\s/,Lu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,br=/\{\n\/\* \[wrapped with (.+)\] \*/,Vu=/,? & /,Bu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,bc=/[()=,{}\[\]\/\s]/,Wr=/\\(\\)?/g,at=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cn=/\w*$/,Qi=/^[-+]0x[0-9a-f]+$/i,ui=/^0b[01]+$/i,Yn=/^\[object .+?Constructor\]$/,Po=/^0o[0-7]+$/i,Sa=/^(?:0|[1-9]\d*)$/,li=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kn=/($^)/,Ws=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",$c="\\u0300-\\u036f",Nu="\\ufe20-\\ufe2f",xc="\\u20d0-\\u20ff",_o=$c+Nu+xc,ss="\\u2700-\\u27bf",ju="a-z\\xdf-\\xf6\\xf8-\\xff",Mo="\\xac\\xb1\\xd7\\xf7",wc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cc="\\u2000-\\u206f",Ec=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ku="A-Z\\xc0-\\xd6\\xd8-\\xde",Fo="\\ufe0e\\ufe0f",Ro=Mo+wc+Cc+Ec,os="['’]",Uu="["+jt+"]",qu="["+Ro+"]",Pr="["+_o+"]",dr="\\d+",_r="["+ss+"]",Da="["+ju+"]",Hs="[^"+jt+Ro+dr+ss+ju+Ku+"]",hr="\\ud83c[\\udffb-\\udfff]",us="(?:"+Pr+"|"+hr+")",ls="[^"+jt+"]",Ci="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",rr="["+Ku+"]",Ei="\\u200d",ko="(?:"+Da+"|"+Hs+")",zu="(?:"+rr+"|"+Hs+")",dn="(?:"+os+"(?:d|ll|m|re|s|t|ve))?",Oo="(?:"+os+"(?:D|LL|M|RE|S|T|VE))?",cs=us+"?",Io="["+Fo+"]?",Wu="(?:"+Ei+"(?:"+[ls,Ci,ci].join("|")+")"+Io+cs+")*",Mr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Aa=Io+cs+Wu,Ta="(?:"+[_r,Ci,ci].join("|")+")"+Aa,fs="(?:"+[ls+Pr+"?",Pr,Ci,ci,Uu].join("|")+")",ea=RegExp(os,"g"),ds=RegExp(Pr,"g"),Gs=RegExp(hr+"(?="+hr+")|"+fs+Aa,"g"),Hu=RegExp([rr+"?"+Da+"+"+dn+"(?="+[qu,rr,"$"].join("|")+")",zu+"+"+Oo+"(?="+[qu,rr+ko,"$"].join("|")+")",rr+"?"+ko+"+"+dn,rr+"+"+Oo,Lo,Mr,dr,Ta].join("|"),"g"),Sc=RegExp("["+Ei+jt+_o+Fo+"]"),hs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dc=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ps=-1,Gt={};Gt[gn]=Gt[yr]=Gt[Ut]=Gt[Pt]=Gt[It]=Gt[qt]=Gt[fr]=Gt[zr]=Gt[si]=!0,Gt[Le]=Gt[Ye]=Gt[Rt]=Gt[Ue]=Gt[xt]=Gt[Ge]=Gt[Ne]=Gt[Te]=Gt[ht]=Gt[Ht]=Gt[_t]=Gt[be]=Gt[De]=Gt[Me]=Gt[Je]=!1;var en={};en[Le]=en[Ye]=en[Rt]=en[xt]=en[Ue]=en[Ge]=en[gn]=en[yr]=en[Ut]=en[Pt]=en[It]=en[ht]=en[Ht]=en[_t]=en[be]=en[De]=en[Me]=en[Xe]=en[qt]=en[fr]=en[zr]=en[si]=!0,en[Ne]=en[Te]=en[Je]=!1;var ae={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Fe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ze={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vn=parseFloat,tr=parseInt,ir=typeof Ui=="object"&&Ui&&Ui.Object===Object&&Ui,Bn=typeof self=="object"&&self&&self.Object===Object&&self,En=ir||Bn||Function("return this")(),Si=t&&!t.nodeType&&t,Di=Si&&!0&&e&&!e.nodeType&&e,Vo=Di&&Di.exports===Si,Ys=Vo&&ir.process,ar=function(){try{var M=Di&&Di.require&&Di.require("util").types;return M||Ys&&Ys.binding&&Ys.binding("util")}catch{}}(),ms=ar&&ar.isArrayBuffer,Td=ar&&ar.isDate,Pd=ar&&ar.isMap,Ac=ar&&ar.isRegExp,Zs=ar&&ar.isSet,ta=ar&&ar.isTypedArray;function On(M,Q,G){switch(G.length){case 0:return M.call(Q);case 1:return M.call(Q,G[0]);case 2:return M.call(Q,G[0],G[1]);case 3:return M.call(Q,G[0],G[1],G[2])}return M.apply(Q,G)}function Pa(M,Q,G,he){for(var de=-1,W=M==null?0:M.length;++de<W;){var Y=M[de];Q(he,Y,G(Y),M)}return he}function fn(M,Q){for(var G=-1,he=M==null?0:M.length;++G<he&&Q(M[G],G,M)!==!1;);return M}function sr(M,Q){for(var G=M==null?0:M.length;G--&&Q(M[G],G,M)!==!1;);return M}function gs(M,Q){for(var G=-1,he=M==null?0:M.length;++G<he;)if(!Q(M[G],G,M))return!1;return!0}function $r(M,Q){for(var G=-1,he=M==null?0:M.length,de=0,W=[];++G<he;){var Y=M[G];Q(Y,G,M)&&(W[de++]=Y)}return W}function _a(M,Q){var G=M==null?0:M.length;return!!G&&vs(M,Q,0)>-1}function Gu(M,Q,G){for(var he=-1,de=M==null?0:M.length;++he<de;)if(G(Q,M[he]))return!0;return!1}function un(M,Q){for(var G=-1,he=M==null?0:M.length,de=Array(he);++G<he;)de[G]=Q(M[G],G,M);return de}function na(M,Q){for(var G=-1,he=Q.length,de=M.length;++G<he;)M[de+G]=Q[G];return M}function Yu(M,Q,G,he){var de=-1,W=M==null?0:M.length;for(he&&W&&(G=M[++de]);++de<W;)G=Q(G,M[de],de,M);return G}function Bo(M,Q,G,he){var de=M==null?0:M.length;for(he&&de&&(G=M[--de]);de--;)G=Q(G,M[de],de,M);return G}function Ma(M,Q){for(var G=-1,he=M==null?0:M.length;++G<he;)if(Q(M[G],G,M))return!0;return!1}var No=Zu("length");function jo(M){return M.split("")}function Tm(M){return M.match(Bu)||[]}function Tc(M,Q,G){var he;return G(M,function(de,W,Y){if(Q(de,W,Y))return he=W,!1}),he}function Ko(M,Q,G,he){for(var de=M.length,W=G+(he?1:-1);he?W--:++W<de;)if(Q(M[W],W,M))return W;return-1}function vs(M,Q,G){return Q===Q?p(M,Q,G):Ko(M,Pc,G)}function _d(M,Q,G,he){for(var de=G-1,W=M.length;++de<W;)if(he(M[de],Q))return de;return-1}function Pc(M){return M!==M}function Uo(M,Q){var G=M==null?0:M.length;return G?Fa(M,Q)/G:j}function Zu(M){return function(Q){return Q==null?n:Q[M]}}function Xu(M){return function(Q){return M==null?n:M[Q]}}function _c(M,Q,G,he,de){return de(M,function(W,Y,L){G=he?(he=!1,W):Q(G,W,Y,L)}),G}function qo(M,Q){var G=M.length;for(M.sort(Q);G--;)M[G]=M[G].value;return M}function Fa(M,Q){for(var G,he=-1,de=M.length;++he<de;){var W=Q(M[he]);W!==n&&(G=G===n?W:G+W)}return G}function Ju(M,Q){for(var G=-1,he=Array(M);++G<M;)he[G]=Q(G);return he}function Pm(M,Q){return un(Q,function(G){return[G,M[G]]})}function Md(M){return M&&M.slice(0,P(M)+1).replace(Cn,"")}function xr(M){return function(Q){return M(Q)}}function Mc(M,Q){return un(Q,function(G){return M[G]})}function hn(M,Q){return M.has(Q)}function Qu(M,Q){for(var G=-1,he=M.length;++G<he&&vs(Q,M[G],0)>-1;);return G}function or(M,Q){for(var G=M.length;G--&&vs(Q,M[G],0)>-1;);return G}function _m(M,Q){for(var G=M.length,he=0;G--;)M[G]===Q&&++he;return he}var Mm=Xu(ae),ys=Xu(Fe);function fi(M){return"\\"+pt[M]}function Fm(M,Q){return M==null?n:M[Q]}function wr(M){return Sc.test(M)}function Fc(M){return hs.test(M)}function Ra(M){for(var Q,G=[];!(Q=M.next()).done;)G.push(Q.value);return G}function In(M){var Q=-1,G=Array(M.size);return M.forEach(function(he,de){G[++Q]=[de,he]}),G}function Ai(M,Q){return function(G){return M(Q(G))}}function Hr(M,Q){for(var G=-1,he=M.length,de=0,W=[];++G<he;){var Y=M[G];(Y===Q||Y===h)&&(M[G]=h,W[de++]=G)}return W}function Xs(M){var Q=-1,G=Array(M.size);return M.forEach(function(he){G[++Q]=he}),G}function l(M){var Q=-1,G=Array(M.size);return M.forEach(function(he){G[++Q]=[he,he]}),G}function p(M,Q,G){for(var he=G-1,de=M.length;++he<de;)if(M[he]===Q)return he;return-1}function v(M,Q,G){for(var he=G+1;he--;)if(M[he]===Q)return he;return he}function $(M){return wr(M)?me(M):No(M)}function T(M){return wr(M)?J(M):jo(M)}function P(M){for(var Q=M.length;Q--&&as.test(M.charAt(Q)););return Q}var q=Xu(ze);function me(M){for(var Q=Gs.lastIndex=0;Gs.test(M);)++Q;return Q}function J(M){return M.match(Gs)||[]}function $e(M){return M.match(Hu)||[]}var Ce=function M(Q){Q=Q==null?En:Re.defaults(En.Object(),Q,Re.pick(En,Dc));var G=Q.Array,he=Q.Date,de=Q.Error,W=Q.Function,Y=Q.Math,L=Q.Object,B=Q.RegExp,H=Q.String,ne=Q.TypeError,se=G.prototype,pe=W.prototype,Oe=L.prototype,nt=Q["__core-js_shared__"],et=pe.toString,Be=Oe.hasOwnProperty,ot=0,ct=function(){var o=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Ve=Oe.toString,xe=et.call(L),le=En._,X=B("^"+et.call(Be).replace(Ji,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=Vo?Q.Buffer:n,je=Q.Symbol,ke=Q.Uint8Array,lt=ve?ve.allocUnsafe:n,At=Ai(L.getPrototypeOf,L),Ct=L.create,yn=Oe.propertyIsEnumerable,zt=se.splice,ur=je?je.isConcatSpreadable:n,Zn=je?je.iterator:n,Ln=je?je.toStringTag:n,Nn=function(){try{var o=Yo(L,"defineProperty");return o({},"",{}),o}catch{}}(),jn=Q.clearTimeout!==En.clearTimeout&&Q.clearTimeout,pr=he&&he.now!==En.Date.now&&he.now,ft=Q.setTimeout!==En.setTimeout&&Q.setTimeout,ln=Y.ceil,Gr=Y.floor,Ti=L.getOwnPropertySymbols,ra=ve?ve.isBuffer:n,di=Q.isFinite,ia=se.join,aa=Ai(L.keys,L),Yt=Y.max,bn=Y.min,ka=he.now,hi=Q.parseInt,sa=Y.random,pi=se.reverse,oa=Yo(Q,"DataView"),Oa=Yo(Q,"Map"),Js=Yo(Q,"Promise"),el=Yo(Q,"Set"),Rc=Yo(Q,"WeakMap"),kc=Yo(L,"create"),Fd=Rc&&new Rc,tl={},QO=Zo(oa),eI=Zo(Oa),tI=Zo(Js),nI=Zo(el),rI=Zo(Rc),Rd=je?je.prototype:n,Oc=Rd?Rd.valueOf:n,m$=Rd?Rd.toString:n;function Z(o){if(Vn(o)&&!Mt(o)&&!(o instanceof Kt)){if(o instanceof Pi)return o;if(Be.call(o,"__wrapped__"))return gx(o)}return new Pi(o)}var nl=function(){function o(){}return function(c){if(!Tn(c))return{};if(Ct)return Ct(c);o.prototype=c;var y=new o;return o.prototype=n,y}}();function kd(){}function Pi(o,c){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}Z.templateSettings={escape:ku,evaluate:yc,interpolate:Ou,variable:"",imports:{_:Z}},Z.prototype=kd.prototype,Z.prototype.constructor=Z,Pi.prototype=nl(kd.prototype),Pi.prototype.constructor=Pi;function Kt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ce,this.__views__=[]}function iI(){var o=new Kt(this.__wrapped__);return o.__actions__=Yr(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Yr(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Yr(this.__views__),o}function aI(){if(this.__filtered__){var o=new Kt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function sI(){var o=this.__wrapped__.value(),c=this.__dir__,y=Mt(o),D=c<0,V=y?o.length:0,re=y9(0,V,this.__views__),ye=re.start,Ee=re.end,Pe=Ee-ye,qe=D?Ee:ye-1,We=this.__iteratees__,Ze=We.length,st=0,vt=bn(Pe,this.__takeCount__);if(!y||!D&&V==Pe&&vt==Pe)return B$(o,this.__actions__);var Et=[];e:for(;Pe--&&st<vt;){qe+=c;for(var Lt=-1,St=o[qe];++Lt<Ze;){var Bt=We[Lt],Wt=Bt.iteratee,vi=Bt.type,kr=Wt(St);if(vi==ee)St=kr;else if(!kr){if(vi==U)continue e;break e}}Et[st++]=St}return Et}Kt.prototype=nl(kd.prototype),Kt.prototype.constructor=Kt;function zo(o){var c=-1,y=o==null?0:o.length;for(this.clear();++c<y;){var D=o[c];this.set(D[0],D[1])}}function oI(){this.__data__=kc?kc(null):{},this.size=0}function uI(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}function lI(o){var c=this.__data__;if(kc){var y=c[o];return y===f?n:y}return Be.call(c,o)?c[o]:n}function cI(o){var c=this.__data__;return kc?c[o]!==n:Be.call(c,o)}function fI(o,c){var y=this.__data__;return this.size+=this.has(o)?0:1,y[o]=kc&&c===n?f:c,this}zo.prototype.clear=oI,zo.prototype.delete=uI,zo.prototype.get=lI,zo.prototype.has=cI,zo.prototype.set=fI;function bs(o){var c=-1,y=o==null?0:o.length;for(this.clear();++c<y;){var D=o[c];this.set(D[0],D[1])}}function dI(){this.__data__=[],this.size=0}function hI(o){var c=this.__data__,y=Od(c,o);if(y<0)return!1;var D=c.length-1;return y==D?c.pop():zt.call(c,y,1),--this.size,!0}function pI(o){var c=this.__data__,y=Od(c,o);return y<0?n:c[y][1]}function mI(o){return Od(this.__data__,o)>-1}function gI(o,c){var y=this.__data__,D=Od(y,o);return D<0?(++this.size,y.push([o,c])):y[D][1]=c,this}bs.prototype.clear=dI,bs.prototype.delete=hI,bs.prototype.get=pI,bs.prototype.has=mI,bs.prototype.set=gI;function $s(o){var c=-1,y=o==null?0:o.length;for(this.clear();++c<y;){var D=o[c];this.set(D[0],D[1])}}function vI(){this.size=0,this.__data__={hash:new zo,map:new(Oa||bs),string:new zo}}function yI(o){var c=Hd(this,o).delete(o);return this.size-=c?1:0,c}function bI(o){return Hd(this,o).get(o)}function $I(o){return Hd(this,o).has(o)}function xI(o,c){var y=Hd(this,o),D=y.size;return y.set(o,c),this.size+=y.size==D?0:1,this}$s.prototype.clear=vI,$s.prototype.delete=yI,$s.prototype.get=bI,$s.prototype.has=$I,$s.prototype.set=xI;function Wo(o){var c=-1,y=o==null?0:o.length;for(this.__data__=new $s;++c<y;)this.add(o[c])}function wI(o){return this.__data__.set(o,f),this}function CI(o){return this.__data__.has(o)}Wo.prototype.add=Wo.prototype.push=wI,Wo.prototype.has=CI;function ua(o){var c=this.__data__=new bs(o);this.size=c.size}function EI(){this.__data__=new bs,this.size=0}function SI(o){var c=this.__data__,y=c.delete(o);return this.size=c.size,y}function DI(o){return this.__data__.get(o)}function AI(o){return this.__data__.has(o)}function TI(o,c){var y=this.__data__;if(y instanceof bs){var D=y.__data__;if(!Oa||D.length<i-1)return D.push([o,c]),this.size=++y.size,this;y=this.__data__=new $s(D)}return y.set(o,c),this.size=y.size,this}ua.prototype.clear=EI,ua.prototype.delete=SI,ua.prototype.get=DI,ua.prototype.has=AI,ua.prototype.set=TI;function g$(o,c){var y=Mt(o),D=!y&&Xo(o),V=!y&&!D&&ro(o),re=!y&&!D&&!V&&sl(o),ye=y||D||V||re,Ee=ye?Ju(o.length,H):[],Pe=Ee.length;for(var qe in o)(c||Be.call(o,qe))&&!(ye&&(qe=="length"||V&&(qe=="offset"||qe=="parent")||re&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||Es(qe,Pe)))&&Ee.push(qe);return Ee}function v$(o){var c=o.length;return c?o[Um(0,c-1)]:n}function PI(o,c){return Gd(Yr(o),Ho(c,0,o.length))}function _I(o){return Gd(Yr(o))}function Rm(o,c,y){(y!==n&&!la(o[c],y)||y===n&&!(c in o))&&xs(o,c,y)}function Ic(o,c,y){var D=o[c];(!(Be.call(o,c)&&la(D,y))||y===n&&!(c in o))&&xs(o,c,y)}function Od(o,c){for(var y=o.length;y--;)if(la(o[y][0],c))return y;return-1}function MI(o,c,y,D){return Qs(o,function(V,re,ye){c(D,V,y(V),ye)}),D}function y$(o,c){return o&&La(c,lr(c),o)}function FI(o,c){return o&&La(c,Xr(c),o)}function xs(o,c,y){c=="__proto__"&&Nn?Nn(o,c,{configurable:!0,enumerable:!0,value:y,writable:!0}):o[c]=y}function km(o,c){for(var y=-1,D=c.length,V=G(D),re=o==null;++y<D;)V[y]=re?n:pg(o,c[y]);return V}function Ho(o,c,y){return o===o&&(y!==n&&(o=o<=y?o:y),c!==n&&(o=o>=c?o:c)),o}function _i(o,c,y,D,V,re){var ye,Ee=c&m,Pe=c&g,qe=c&b;if(y&&(ye=V?y(o,D,V,re):y(o)),ye!==n)return ye;if(!Tn(o))return o;var We=Mt(o);if(We){if(ye=$9(o),!Ee)return Yr(o,ye)}else{var Ze=Cr(o),st=Ze==Te||Ze==He;if(ro(o))return K$(o,Ee);if(Ze==_t||Ze==Le||st&&!V){if(ye=Pe||st?{}:ox(o),!Ee)return Pe?l9(o,FI(ye,o)):u9(o,y$(ye,o))}else{if(!en[Ze])return V?o:{};ye=x9(o,Ze,Ee)}}re||(re=new ua);var vt=re.get(o);if(vt)return vt;re.set(o,ye),Ix(o)?o.forEach(function(St){ye.add(_i(St,c,y,St,o,re))}):kx(o)&&o.forEach(function(St,Bt){ye.set(Bt,_i(St,c,y,Bt,o,re))});var Et=qe?Pe?eg:Qm:Pe?Xr:lr,Lt=We?n:Et(o);return fn(Lt||o,function(St,Bt){Lt&&(Bt=St,St=o[Bt]),Ic(ye,Bt,_i(St,c,y,Bt,o,re))}),ye}function RI(o){var c=lr(o);return function(y){return b$(y,o,c)}}function b$(o,c,y){var D=y.length;if(o==null)return!D;for(o=L(o);D--;){var V=y[D],re=c[V],ye=o[V];if(ye===n&&!(V in o)||!re(ye))return!1}return!0}function $$(o,c,y){if(typeof o!="function")throw new ne(s);return Uc(function(){o.apply(n,y)},c)}function Lc(o,c,y,D){var V=-1,re=_a,ye=!0,Ee=o.length,Pe=[],qe=c.length;if(!Ee)return Pe;y&&(c=un(c,xr(y))),D?(re=Gu,ye=!1):c.length>=i&&(re=hn,ye=!1,c=new Wo(c));e:for(;++V<Ee;){var We=o[V],Ze=y==null?We:y(We);if(We=D||We!==0?We:0,ye&&Ze===Ze){for(var st=qe;st--;)if(c[st]===Ze)continue e;Pe.push(We)}else re(c,Ze,D)||Pe.push(We)}return Pe}var Qs=H$(Ia),x$=H$(Im,!0);function kI(o,c){var y=!0;return Qs(o,function(D,V,re){return y=!!c(D,V,re),y}),y}function Id(o,c,y){for(var D=-1,V=o.length;++D<V;){var re=o[D],ye=c(re);if(ye!=null&&(Ee===n?ye===ye&&!gi(ye):y(ye,Ee)))var Ee=ye,Pe=re}return Pe}function OI(o,c,y,D){var V=o.length;for(y=kt(y),y<0&&(y=-y>V?0:V+y),D=D===n||D>V?V:kt(D),D<0&&(D+=V),D=y>D?0:Vx(D);y<D;)o[y++]=c;return o}function w$(o,c){var y=[];return Qs(o,function(D,V,re){c(D,V,re)&&y.push(D)}),y}function mr(o,c,y,D,V){var re=-1,ye=o.length;for(y||(y=C9),V||(V=[]);++re<ye;){var Ee=o[re];c>0&&y(Ee)?c>1?mr(Ee,c-1,y,D,V):na(V,Ee):D||(V[V.length]=Ee)}return V}var Om=G$(),C$=G$(!0);function Ia(o,c){return o&&Om(o,c,lr)}function Im(o,c){return o&&C$(o,c,lr)}function Ld(o,c){return $r(c,function(y){return Ss(o[y])})}function Go(o,c){c=to(c,o);for(var y=0,D=c.length;o!=null&&y<D;)o=o[Va(c[y++])];return y&&y==D?o:n}function E$(o,c,y){var D=c(o);return Mt(o)?D:na(D,y(o))}function Fr(o){return o==null?o===n?tt:$t:Ln&&Ln in L(o)?v9(o):_9(o)}function Lm(o,c){return o>c}function II(o,c){return o!=null&&Be.call(o,c)}function LI(o,c){return o!=null&&c in L(o)}function VI(o,c,y){return o>=bn(c,y)&&o<Yt(c,y)}function Vm(o,c,y){for(var D=y?Gu:_a,V=o[0].length,re=o.length,ye=re,Ee=G(re),Pe=1/0,qe=[];ye--;){var We=o[ye];ye&&c&&(We=un(We,xr(c))),Pe=bn(We.length,Pe),Ee[ye]=!y&&(c||V>=120&&We.length>=120)?new Wo(ye&&We):n}We=o[0];var Ze=-1,st=Ee[0];e:for(;++Ze<V&&qe.length<Pe;){var vt=We[Ze],Et=c?c(vt):vt;if(vt=y||vt!==0?vt:0,!(st?hn(st,Et):D(qe,Et,y))){for(ye=re;--ye;){var Lt=Ee[ye];if(!(Lt?hn(Lt,Et):D(o[ye],Et,y)))continue e}st&&st.push(Et),qe.push(vt)}}return qe}function BI(o,c,y,D){return Ia(o,function(V,re,ye){c(D,y(V),re,ye)}),D}function Vc(o,c,y){c=to(c,o),o=fx(o,c);var D=o==null?o:o[Va(Fi(c))];return D==null?n:On(D,o,y)}function S$(o){return Vn(o)&&Fr(o)==Le}function NI(o){return Vn(o)&&Fr(o)==Rt}function jI(o){return Vn(o)&&Fr(o)==Ge}function Bc(o,c,y,D,V){return o===c?!0:o==null||c==null||!Vn(o)&&!Vn(c)?o!==o&&c!==c:KI(o,c,y,D,Bc,V)}function KI(o,c,y,D,V,re){var ye=Mt(o),Ee=Mt(c),Pe=ye?Ye:Cr(o),qe=Ee?Ye:Cr(c);Pe=Pe==Le?_t:Pe,qe=qe==Le?_t:qe;var We=Pe==_t,Ze=qe==_t,st=Pe==qe;if(st&&ro(o)){if(!ro(c))return!1;ye=!0,We=!1}if(st&&!We)return re||(re=new ua),ye||sl(o)?ix(o,c,y,D,V,re):m9(o,c,Pe,y,D,V,re);if(!(y&w)){var vt=We&&Be.call(o,"__wrapped__"),Et=Ze&&Be.call(c,"__wrapped__");if(vt||Et){var Lt=vt?o.value():o,St=Et?c.value():c;return re||(re=new ua),V(Lt,St,y,D,re)}}return st?(re||(re=new ua),g9(o,c,y,D,V,re)):!1}function UI(o){return Vn(o)&&Cr(o)==ht}function Bm(o,c,y,D){var V=y.length,re=V,ye=!D;if(o==null)return!re;for(o=L(o);V--;){var Ee=y[V];if(ye&&Ee[2]?Ee[1]!==o[Ee[0]]:!(Ee[0]in o))return!1}for(;++V<re;){Ee=y[V];var Pe=Ee[0],qe=o[Pe],We=Ee[1];if(ye&&Ee[2]){if(qe===n&&!(Pe in o))return!1}else{var Ze=new ua;if(D)var st=D(qe,We,Pe,o,c,Ze);if(!(st===n?Bc(We,qe,w|x,D,Ze):st))return!1}}return!0}function D$(o){if(!Tn(o)||S9(o))return!1;var c=Ss(o)?X:Yn;return c.test(Zo(o))}function qI(o){return Vn(o)&&Fr(o)==be}function zI(o){return Vn(o)&&Cr(o)==De}function WI(o){return Vn(o)&&eh(o.length)&&!!Gt[Fr(o)]}function A$(o){return typeof o=="function"?o:o==null?Jr:typeof o=="object"?Mt(o)?_$(o[0],o[1]):P$(o):Yx(o)}function Nm(o){if(!Kc(o))return aa(o);var c=[];for(var y in L(o))Be.call(o,y)&&y!="constructor"&&c.push(y);return c}function HI(o){if(!Tn(o))return P9(o);var c=Kc(o),y=[];for(var D in o)D=="constructor"&&(c||!Be.call(o,D))||y.push(D);return y}function jm(o,c){return o<c}function T$(o,c){var y=-1,D=Zr(o)?G(o.length):[];return Qs(o,function(V,re,ye){D[++y]=c(V,re,ye)}),D}function P$(o){var c=ng(o);return c.length==1&&c[0][2]?lx(c[0][0],c[0][1]):function(y){return y===o||Bm(y,o,c)}}function _$(o,c){return ig(o)&&ux(c)?lx(Va(o),c):function(y){var D=pg(y,o);return D===n&&D===c?mg(y,o):Bc(c,D,w|x)}}function Vd(o,c,y,D,V){o!==c&&Om(c,function(re,ye){if(V||(V=new ua),Tn(re))GI(o,c,ye,y,Vd,D,V);else{var Ee=D?D(sg(o,ye),re,ye+"",o,c,V):n;Ee===n&&(Ee=re),Rm(o,ye,Ee)}},Xr)}function GI(o,c,y,D,V,re,ye){var Ee=sg(o,y),Pe=sg(c,y),qe=ye.get(Pe);if(qe){Rm(o,y,qe);return}var We=re?re(Ee,Pe,y+"",o,c,ye):n,Ze=We===n;if(Ze){var st=Mt(Pe),vt=!st&&ro(Pe),Et=!st&&!vt&&sl(Pe);We=Pe,st||vt||Et?Mt(Ee)?We=Ee:Kn(Ee)?We=Yr(Ee):vt?(Ze=!1,We=K$(Pe,!0)):Et?(Ze=!1,We=U$(Pe,!0)):We=[]:qc(Pe)||Xo(Pe)?(We=Ee,Xo(Ee)?We=Bx(Ee):(!Tn(Ee)||Ss(Ee))&&(We=ox(Pe))):Ze=!1}Ze&&(ye.set(Pe,We),V(We,Pe,D,re,ye),ye.delete(Pe)),Rm(o,y,We)}function M$(o,c){var y=o.length;if(y)return c+=c<0?y:0,Es(c,y)?o[c]:n}function F$(o,c,y){c.length?c=un(c,function(re){return Mt(re)?function(ye){return Go(ye,re.length===1?re[0]:re)}:re}):c=[Jr];var D=-1;c=un(c,xr(wt()));var V=T$(o,function(re,ye,Ee){var Pe=un(c,function(qe){return qe(re)});return{criteria:Pe,index:++D,value:re}});return qo(V,function(re,ye){return o9(re,ye,y)})}function YI(o,c){return R$(o,c,function(y,D){return mg(o,D)})}function R$(o,c,y){for(var D=-1,V=c.length,re={};++D<V;){var ye=c[D],Ee=Go(o,ye);y(Ee,ye)&&Nc(re,to(ye,o),Ee)}return re}function ZI(o){return function(c){return Go(c,o)}}function Km(o,c,y,D){var V=D?_d:vs,re=-1,ye=c.length,Ee=o;for(o===c&&(c=Yr(c)),y&&(Ee=un(o,xr(y)));++re<ye;)for(var Pe=0,qe=c[re],We=y?y(qe):qe;(Pe=V(Ee,We,Pe,D))>-1;)Ee!==o&&zt.call(Ee,Pe,1),zt.call(o,Pe,1);return o}function k$(o,c){for(var y=o?c.length:0,D=y-1;y--;){var V=c[y];if(y==D||V!==re){var re=V;Es(V)?zt.call(o,V,1):Wm(o,V)}}return o}function Um(o,c){return o+Gr(sa()*(c-o+1))}function XI(o,c,y,D){for(var V=-1,re=Yt(ln((c-o)/(y||1)),0),ye=G(re);re--;)ye[D?re:++V]=o,o+=y;return ye}function qm(o,c){var y="";if(!o||c<1||c>N)return y;do c%2&&(y+=o),c=Gr(c/2),c&&(o+=o);while(c);return y}function Vt(o,c){return og(cx(o,c,Jr),o+"")}function JI(o){return v$(ol(o))}function QI(o,c){var y=ol(o);return Gd(y,Ho(c,0,y.length))}function Nc(o,c,y,D){if(!Tn(o))return o;c=to(c,o);for(var V=-1,re=c.length,ye=re-1,Ee=o;Ee!=null&&++V<re;){var Pe=Va(c[V]),qe=y;if(Pe==="__proto__"||Pe==="constructor"||Pe==="prototype")return o;if(V!=ye){var We=Ee[Pe];qe=D?D(We,Pe,Ee):n,qe===n&&(qe=Tn(We)?We:Es(c[V+1])?[]:{})}Ic(Ee,Pe,qe),Ee=Ee[Pe]}return o}var O$=Fd?function(o,c){return Fd.set(o,c),o}:Jr,e9=Nn?function(o,c){return Nn(o,"toString",{configurable:!0,enumerable:!1,value:vg(c),writable:!0})}:Jr;function t9(o){return Gd(ol(o))}function Mi(o,c,y){var D=-1,V=o.length;c<0&&(c=-c>V?0:V+c),y=y>V?V:y,y<0&&(y+=V),V=c>y?0:y-c>>>0,c>>>=0;for(var re=G(V);++D<V;)re[D]=o[D+c];return re}function n9(o,c){var y;return Qs(o,function(D,V,re){return y=c(D,V,re),!y}),!!y}function Bd(o,c,y){var D=0,V=o==null?D:o.length;if(typeof c=="number"&&c===c&&V<=Ae){for(;D<V;){var re=D+V>>>1,ye=o[re];ye!==null&&!gi(ye)&&(y?ye<=c:ye<c)?D=re+1:V=re}return V}return zm(o,c,Jr,y)}function zm(o,c,y,D){var V=0,re=o==null?0:o.length;if(re===0)return 0;c=y(c);for(var ye=c!==c,Ee=c===null,Pe=gi(c),qe=c===n;V<re;){var We=Gr((V+re)/2),Ze=y(o[We]),st=Ze!==n,vt=Ze===null,Et=Ze===Ze,Lt=gi(Ze);if(ye)var St=D||Et;else qe?St=Et&&(D||st):Ee?St=Et&&st&&(D||!vt):Pe?St=Et&&st&&!vt&&(D||!Lt):vt||Lt?St=!1:St=D?Ze<=c:Ze<c;St?V=We+1:re=We}return bn(re,ue)}function I$(o,c){for(var y=-1,D=o.length,V=0,re=[];++y<D;){var ye=o[y],Ee=c?c(ye):ye;if(!y||!la(Ee,Pe)){var Pe=Ee;re[V++]=ye===0?0:ye}}return re}function L$(o){return typeof o=="number"?o:gi(o)?j:+o}function mi(o){if(typeof o=="string")return o;if(Mt(o))return un(o,mi)+"";if(gi(o))return m$?m$.call(o):"";var c=o+"";return c=="0"&&1/o==-k?"-0":c}function eo(o,c,y){var D=-1,V=_a,re=o.length,ye=!0,Ee=[],Pe=Ee;if(y)ye=!1,V=Gu;else if(re>=i){var qe=c?null:h9(o);if(qe)return Xs(qe);ye=!1,V=hn,Pe=new Wo}else Pe=c?[]:Ee;e:for(;++D<re;){var We=o[D],Ze=c?c(We):We;if(We=y||We!==0?We:0,ye&&Ze===Ze){for(var st=Pe.length;st--;)if(Pe[st]===Ze)continue e;c&&Pe.push(Ze),Ee.push(We)}else V(Pe,Ze,y)||(Pe!==Ee&&Pe.push(Ze),Ee.push(We))}return Ee}function Wm(o,c){return c=to(c,o),o=fx(o,c),o==null||delete o[Va(Fi(c))]}function V$(o,c,y,D){return Nc(o,c,y(Go(o,c)),D)}function Nd(o,c,y,D){for(var V=o.length,re=D?V:-1;(D?re--:++re<V)&&c(o[re],re,o););return y?Mi(o,D?0:re,D?re+1:V):Mi(o,D?re+1:0,D?V:re)}function B$(o,c){var y=o;return y instanceof Kt&&(y=y.value()),Yu(c,function(D,V){return V.func.apply(V.thisArg,na([D],V.args))},y)}function Hm(o,c,y){var D=o.length;if(D<2)return D?eo(o[0]):[];for(var V=-1,re=G(D);++V<D;)for(var ye=o[V],Ee=-1;++Ee<D;)Ee!=V&&(re[V]=Lc(re[V]||ye,o[Ee],c,y));return eo(mr(re,1),c,y)}function N$(o,c,y){for(var D=-1,V=o.length,re=c.length,ye={};++D<V;){var Ee=D<re?c[D]:n;y(ye,o[D],Ee)}return ye}function Gm(o){return Kn(o)?o:[]}function Ym(o){return typeof o=="function"?o:Jr}function to(o,c){return Mt(o)?o:ig(o,c)?[o]:mx(an(o))}var r9=Vt;function no(o,c,y){var D=o.length;return y=y===n?D:y,!c&&y>=D?o:Mi(o,c,y)}var j$=jn||function(o){return En.clearTimeout(o)};function K$(o,c){if(c)return o.slice();var y=o.length,D=lt?lt(y):new o.constructor(y);return o.copy(D),D}function Zm(o){var c=new o.constructor(o.byteLength);return new ke(c).set(new ke(o)),c}function i9(o,c){var y=c?Zm(o.buffer):o.buffer;return new o.constructor(y,o.byteOffset,o.byteLength)}function a9(o){var c=new o.constructor(o.source,cn.exec(o));return c.lastIndex=o.lastIndex,c}function s9(o){return Oc?L(Oc.call(o)):{}}function U$(o,c){var y=c?Zm(o.buffer):o.buffer;return new o.constructor(y,o.byteOffset,o.length)}function q$(o,c){if(o!==c){var y=o!==n,D=o===null,V=o===o,re=gi(o),ye=c!==n,Ee=c===null,Pe=c===c,qe=gi(c);if(!Ee&&!qe&&!re&&o>c||re&&ye&&Pe&&!Ee&&!qe||D&&ye&&Pe||!y&&Pe||!V)return 1;if(!D&&!re&&!qe&&o<c||qe&&y&&V&&!D&&!re||Ee&&y&&V||!ye&&V||!Pe)return-1}return 0}function o9(o,c,y){for(var D=-1,V=o.criteria,re=c.criteria,ye=V.length,Ee=y.length;++D<ye;){var Pe=q$(V[D],re[D]);if(Pe){if(D>=Ee)return Pe;var qe=y[D];return Pe*(qe=="desc"?-1:1)}}return o.index-c.index}function z$(o,c,y,D){for(var V=-1,re=o.length,ye=y.length,Ee=-1,Pe=c.length,qe=Yt(re-ye,0),We=G(Pe+qe),Ze=!D;++Ee<Pe;)We[Ee]=c[Ee];for(;++V<ye;)(Ze||V<re)&&(We[y[V]]=o[V]);for(;qe--;)We[Ee++]=o[V++];return We}function W$(o,c,y,D){for(var V=-1,re=o.length,ye=-1,Ee=y.length,Pe=-1,qe=c.length,We=Yt(re-Ee,0),Ze=G(We+qe),st=!D;++V<We;)Ze[V]=o[V];for(var vt=V;++Pe<qe;)Ze[vt+Pe]=c[Pe];for(;++ye<Ee;)(st||V<re)&&(Ze[vt+y[ye]]=o[V++]);return Ze}function Yr(o,c){var y=-1,D=o.length;for(c||(c=G(D));++y<D;)c[y]=o[y];return c}function La(o,c,y,D){var V=!y;y||(y={});for(var re=-1,ye=c.length;++re<ye;){var Ee=c[re],Pe=D?D(y[Ee],o[Ee],Ee,y,o):n;Pe===n&&(Pe=o[Ee]),V?xs(y,Ee,Pe):Ic(y,Ee,Pe)}return y}function u9(o,c){return La(o,rg(o),c)}function l9(o,c){return La(o,ax(o),c)}function jd(o,c){return function(y,D){var V=Mt(y)?Pa:MI,re=c?c():{};return V(y,o,wt(D,2),re)}}function rl(o){return Vt(function(c,y){var D=-1,V=y.length,re=V>1?y[V-1]:n,ye=V>2?y[2]:n;for(re=o.length>3&&typeof re=="function"?(V--,re):n,ye&&Rr(y[0],y[1],ye)&&(re=V<3?n:re,V=1),c=L(c);++D<V;){var Ee=y[D];Ee&&o(c,Ee,D,re)}return c})}function H$(o,c){return function(y,D){if(y==null)return y;if(!Zr(y))return o(y,D);for(var V=y.length,re=c?V:-1,ye=L(y);(c?re--:++re<V)&&D(ye[re],re,ye)!==!1;);return y}}function G$(o){return function(c,y,D){for(var V=-1,re=L(c),ye=D(c),Ee=ye.length;Ee--;){var Pe=ye[o?Ee:++V];if(y(re[Pe],Pe,re)===!1)break}return c}}function c9(o,c,y){var D=c&A,V=jc(o);function re(){var ye=this&&this!==En&&this instanceof re?V:o;return ye.apply(D?y:this,arguments)}return re}function Y$(o){return function(c){c=an(c);var y=wr(c)?T(c):n,D=y?y[0]:c.charAt(0),V=y?no(y,1).join(""):c.slice(1);return D[o]()+V}}function il(o){return function(c){return Yu(Hx(Wx(c).replace(ea,"")),o,"")}}function jc(o){return function(){var c=arguments;switch(c.length){case 0:return new o;case 1:return new o(c[0]);case 2:return new o(c[0],c[1]);case 3:return new o(c[0],c[1],c[2]);case 4:return new o(c[0],c[1],c[2],c[3]);case 5:return new o(c[0],c[1],c[2],c[3],c[4]);case 6:return new o(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new o(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var y=nl(o.prototype),D=o.apply(y,c);return Tn(D)?D:y}}function f9(o,c,y){var D=jc(o);function V(){for(var re=arguments.length,ye=G(re),Ee=re,Pe=al(V);Ee--;)ye[Ee]=arguments[Ee];var qe=re<3&&ye[0]!==Pe&&ye[re-1]!==Pe?[]:Hr(ye,Pe);if(re-=qe.length,re<y)return ex(o,c,Kd,V.placeholder,n,ye,qe,n,n,y-re);var We=this&&this!==En&&this instanceof V?D:o;return On(We,this,ye)}return V}function Z$(o){return function(c,y,D){var V=L(c);if(!Zr(c)){var re=wt(y,3);c=lr(c),y=function(Ee){return re(V[Ee],Ee,V)}}var ye=o(c,y,D);return ye>-1?V[re?c[ye]:ye]:n}}function X$(o){return Cs(function(c){var y=c.length,D=y,V=Pi.prototype.thru;for(o&&c.reverse();D--;){var re=c[D];if(typeof re!="function")throw new ne(s);if(V&&!ye&&Wd(re)=="wrapper")var ye=new Pi([],!0)}for(D=ye?D:y;++D<y;){re=c[D];var Ee=Wd(re),Pe=Ee=="wrapper"?tg(re):n;Pe&&ag(Pe[0])&&Pe[1]==(z|S|_|ie)&&!Pe[4].length&&Pe[9]==1?ye=ye[Wd(Pe[0])].apply(ye,Pe[3]):ye=re.length==1&&ag(re)?ye[Ee]():ye.thru(re)}return function(){var qe=arguments,We=qe[0];if(ye&&qe.length==1&&Mt(We))return ye.plant(We).value();for(var Ze=0,st=y?c[Ze].apply(this,qe):We;++Ze<y;)st=c[Ze].call(this,st);return st}})}function Kd(o,c,y,D,V,re,ye,Ee,Pe,qe){var We=c&z,Ze=c&A,st=c&C,vt=c&(S|R),Et=c&ge,Lt=st?n:jc(o);function St(){for(var Bt=arguments.length,Wt=G(Bt),vi=Bt;vi--;)Wt[vi]=arguments[vi];if(vt)var kr=al(St),yi=_m(Wt,kr);if(D&&(Wt=z$(Wt,D,V,vt)),re&&(Wt=W$(Wt,re,ye,vt)),Bt-=yi,vt&&Bt<qe){var Un=Hr(Wt,kr);return ex(o,c,Kd,St.placeholder,y,Wt,Un,Ee,Pe,qe-Bt)}var ca=Ze?y:this,As=st?ca[o]:o;return Bt=Wt.length,Ee?Wt=M9(Wt,Ee):Et&&Bt>1&&Wt.reverse(),We&&Pe<Bt&&(Wt.length=Pe),this&&this!==En&&this instanceof St&&(As=Lt||jc(As)),As.apply(ca,Wt)}return St}function J$(o,c){return function(y,D){return BI(y,o,c(D),{})}}function Ud(o,c){return function(y,D){var V;if(y===n&&D===n)return c;if(y!==n&&(V=y),D!==n){if(V===n)return D;typeof y=="string"||typeof D=="string"?(y=mi(y),D=mi(D)):(y=L$(y),D=L$(D)),V=o(y,D)}return V}}function Xm(o){return Cs(function(c){return c=un(c,xr(wt())),Vt(function(y){var D=this;return o(c,function(V){return On(V,D,y)})})})}function qd(o,c){c=c===n?" ":mi(c);var y=c.length;if(y<2)return y?qm(c,o):c;var D=qm(c,ln(o/$(c)));return wr(c)?no(T(D),0,o).join(""):D.slice(0,o)}function d9(o,c,y,D){var V=c&A,re=jc(o);function ye(){for(var Ee=-1,Pe=arguments.length,qe=-1,We=D.length,Ze=G(We+Pe),st=this&&this!==En&&this instanceof ye?re:o;++qe<We;)Ze[qe]=D[qe];for(;Pe--;)Ze[qe++]=arguments[++Ee];return On(st,V?y:this,Ze)}return ye}function Q$(o){return function(c,y,D){return D&&typeof D!="number"&&Rr(c,y,D)&&(y=D=n),c=Ds(c),y===n?(y=c,c=0):y=Ds(y),D=D===n?c<y?1:-1:Ds(D),XI(c,y,D,o)}}function zd(o){return function(c,y){return typeof c=="string"&&typeof y=="string"||(c=Ri(c),y=Ri(y)),o(c,y)}}function ex(o,c,y,D,V,re,ye,Ee,Pe,qe){var We=c&S,Ze=We?ye:n,st=We?n:ye,vt=We?re:n,Et=We?n:re;c|=We?_:F,c&=~(We?F:_),c&E||(c&=-4);var Lt=[o,c,V,vt,Ze,Et,st,Ee,Pe,qe],St=y.apply(n,Lt);return ag(o)&&dx(St,Lt),St.placeholder=D,hx(St,o,c)}function Jm(o){var c=Y[o];return function(y,D){if(y=Ri(y),D=D==null?0:bn(kt(D),292),D&&di(y)){var V=(an(y)+"e").split("e"),re=c(V[0]+"e"+(+V[1]+D));return V=(an(re)+"e").split("e"),+(V[0]+"e"+(+V[1]-D))}return c(y)}}var h9=el&&1/Xs(new el([,-0]))[1]==k?function(o){return new el(o)}:$g;function tx(o){return function(c){var y=Cr(c);return y==ht?In(c):y==De?l(c):Pm(c,o(c))}}function ws(o,c,y,D,V,re,ye,Ee){var Pe=c&C;if(!Pe&&typeof o!="function")throw new ne(s);var qe=D?D.length:0;if(qe||(c&=-97,D=V=n),ye=ye===n?ye:Yt(kt(ye),0),Ee=Ee===n?Ee:kt(Ee),qe-=V?V.length:0,c&F){var We=D,Ze=V;D=V=n}var st=Pe?n:tg(o),vt=[o,c,y,D,V,We,Ze,re,ye,Ee];if(st&&T9(vt,st),o=vt[0],c=vt[1],y=vt[2],D=vt[3],V=vt[4],Ee=vt[9]=vt[9]===n?Pe?0:o.length:Yt(vt[9]-qe,0),!Ee&&c&(S|R)&&(c&=-25),!c||c==A)var Et=c9(o,c,y);else c==S||c==R?Et=f9(o,c,Ee):(c==_||c==(A|_))&&!V.length?Et=d9(o,c,y,D):Et=Kd.apply(n,vt);var Lt=st?O$:dx;return hx(Lt(Et,vt),o,c)}function nx(o,c,y,D){return o===n||la(o,Oe[y])&&!Be.call(D,y)?c:o}function rx(o,c,y,D,V,re){return Tn(o)&&Tn(c)&&(re.set(c,o),Vd(o,c,n,rx,re),re.delete(c)),o}function p9(o){return qc(o)?n:o}function ix(o,c,y,D,V,re){var ye=y&w,Ee=o.length,Pe=c.length;if(Ee!=Pe&&!(ye&&Pe>Ee))return!1;var qe=re.get(o),We=re.get(c);if(qe&&We)return qe==c&&We==o;var Ze=-1,st=!0,vt=y&x?new Wo:n;for(re.set(o,c),re.set(c,o);++Ze<Ee;){var Et=o[Ze],Lt=c[Ze];if(D)var St=ye?D(Lt,Et,Ze,c,o,re):D(Et,Lt,Ze,o,c,re);if(St!==n){if(St)continue;st=!1;break}if(vt){if(!Ma(c,function(Bt,Wt){if(!hn(vt,Wt)&&(Et===Bt||V(Et,Bt,y,D,re)))return vt.push(Wt)})){st=!1;break}}else if(!(Et===Lt||V(Et,Lt,y,D,re))){st=!1;break}}return re.delete(o),re.delete(c),st}function m9(o,c,y,D,V,re,ye){switch(y){case xt:if(o.byteLength!=c.byteLength||o.byteOffset!=c.byteOffset)return!1;o=o.buffer,c=c.buffer;case Rt:return!(o.byteLength!=c.byteLength||!re(new ke(o),new ke(c)));case Ue:case Ge:case Ht:return la(+o,+c);case Ne:return o.name==c.name&&o.message==c.message;case be:case Me:return o==c+"";case ht:var Ee=In;case De:var Pe=D&w;if(Ee||(Ee=Xs),o.size!=c.size&&!Pe)return!1;var qe=ye.get(o);if(qe)return qe==c;D|=x,ye.set(o,c);var We=ix(Ee(o),Ee(c),D,V,re,ye);return ye.delete(o),We;case Xe:if(Oc)return Oc.call(o)==Oc.call(c)}return!1}function g9(o,c,y,D,V,re){var ye=y&w,Ee=Qm(o),Pe=Ee.length,qe=Qm(c),We=qe.length;if(Pe!=We&&!ye)return!1;for(var Ze=Pe;Ze--;){var st=Ee[Ze];if(!(ye?st in c:Be.call(c,st)))return!1}var vt=re.get(o),Et=re.get(c);if(vt&&Et)return vt==c&&Et==o;var Lt=!0;re.set(o,c),re.set(c,o);for(var St=ye;++Ze<Pe;){st=Ee[Ze];var Bt=o[st],Wt=c[st];if(D)var vi=ye?D(Wt,Bt,st,c,o,re):D(Bt,Wt,st,o,c,re);if(!(vi===n?Bt===Wt||V(Bt,Wt,y,D,re):vi)){Lt=!1;break}St||(St=st=="constructor")}if(Lt&&!St){var kr=o.constructor,yi=c.constructor;kr!=yi&&"constructor"in o&&"constructor"in c&&!(typeof kr=="function"&&kr instanceof kr&&typeof yi=="function"&&yi instanceof yi)&&(Lt=!1)}return re.delete(o),re.delete(c),Lt}function Cs(o){return og(cx(o,n,bx),o+"")}function Qm(o){return E$(o,lr,rg)}function eg(o){return E$(o,Xr,ax)}var tg=Fd?function(o){return Fd.get(o)}:$g;function Wd(o){for(var c=o.name+"",y=tl[c],D=Be.call(tl,c)?y.length:0;D--;){var V=y[D],re=V.func;if(re==null||re==o)return V.name}return c}function al(o){var c=Be.call(Z,"placeholder")?Z:o;return c.placeholder}function wt(){var o=Z.iteratee||yg;return o=o===yg?A$:o,arguments.length?o(arguments[0],arguments[1]):o}function Hd(o,c){var y=o.__data__;return E9(c)?y[typeof c=="string"?"string":"hash"]:y.map}function ng(o){for(var c=lr(o),y=c.length;y--;){var D=c[y],V=o[D];c[y]=[D,V,ux(V)]}return c}function Yo(o,c){var y=Fm(o,c);return D$(y)?y:n}function v9(o){var c=Be.call(o,Ln),y=o[Ln];try{o[Ln]=n;var D=!0}catch{}var V=Ve.call(o);return D&&(c?o[Ln]=y:delete o[Ln]),V}var rg=Ti?function(o){return o==null?[]:(o=L(o),$r(Ti(o),function(c){return yn.call(o,c)}))}:xg,ax=Ti?function(o){for(var c=[];o;)na(c,rg(o)),o=At(o);return c}:xg,Cr=Fr;(oa&&Cr(new oa(new ArrayBuffer(1)))!=xt||Oa&&Cr(new Oa)!=ht||Js&&Cr(Js.resolve())!=qr||el&&Cr(new el)!=De||Rc&&Cr(new Rc)!=Je)&&(Cr=function(o){var c=Fr(o),y=c==_t?o.constructor:n,D=y?Zo(y):"";if(D)switch(D){case QO:return xt;case eI:return ht;case tI:return qr;case nI:return De;case rI:return Je}return c});function y9(o,c,y){for(var D=-1,V=y.length;++D<V;){var re=y[D],ye=re.size;switch(re.type){case"drop":o+=ye;break;case"dropRight":c-=ye;break;case"take":c=bn(c,o+ye);break;case"takeRight":o=Yt(o,c-ye);break}}return{start:o,end:c}}function b9(o){var c=o.match(br);return c?c[1].split(Vu):[]}function sx(o,c,y){c=to(c,o);for(var D=-1,V=c.length,re=!1;++D<V;){var ye=Va(c[D]);if(!(re=o!=null&&y(o,ye)))break;o=o[ye]}return re||++D!=V?re:(V=o==null?0:o.length,!!V&&eh(V)&&Es(ye,V)&&(Mt(o)||Xo(o)))}function $9(o){var c=o.length,y=new o.constructor(c);return c&&typeof o[0]=="string"&&Be.call(o,"index")&&(y.index=o.index,y.input=o.input),y}function ox(o){return typeof o.constructor=="function"&&!Kc(o)?nl(At(o)):{}}function x9(o,c,y){var D=o.constructor;switch(c){case Rt:return Zm(o);case Ue:case Ge:return new D(+o);case xt:return i9(o,y);case gn:case yr:case Ut:case Pt:case It:case qt:case fr:case zr:case si:return U$(o,y);case ht:return new D;case Ht:case Me:return new D(o);case be:return a9(o);case De:return new D;case Xe:return s9(o)}}function w9(o,c){var y=c.length;if(!y)return o;var D=y-1;return c[D]=(y>1?"& ":"")+c[D],c=c.join(y>2?", ":" "),o.replace(Lu,`{
9
+ /* [wrapped with `+c+`] */
10
+ `)}function C9(o){return Mt(o)||Xo(o)||!!(ur&&o&&o[ur])}function Es(o,c){var y=typeof o;return c=c??N,!!c&&(y=="number"||y!="symbol"&&Sa.test(o))&&o>-1&&o%1==0&&o<c}function Rr(o,c,y){if(!Tn(y))return!1;var D=typeof c;return(D=="number"?Zr(y)&&Es(c,y.length):D=="string"&&c in y)?la(y[c],o):!1}function ig(o,c){if(Mt(o))return!1;var y=typeof o;return y=="number"||y=="symbol"||y=="boolean"||o==null||gi(o)?!0:Iu.test(o)||!To.test(o)||c!=null&&o in L(c)}function E9(o){var c=typeof o;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?o!=="__proto__":o===null}function ag(o){var c=Wd(o),y=Z[c];if(typeof y!="function"||!(c in Kt.prototype))return!1;if(o===y)return!0;var D=tg(y);return!!D&&o===D[0]}function S9(o){return!!ct&&ct in o}var D9=nt?Ss:wg;function Kc(o){var c=o&&o.constructor,y=typeof c=="function"&&c.prototype||Oe;return o===y}function ux(o){return o===o&&!Tn(o)}function lx(o,c){return function(y){return y==null?!1:y[o]===c&&(c!==n||o in L(y))}}function A9(o){var c=Jd(o,function(D){return y.size===d&&y.clear(),D}),y=c.cache;return c}function T9(o,c){var y=o[1],D=c[1],V=y|D,re=V<(A|C|z),ye=D==z&&y==S||D==z&&y==ie&&o[7].length<=c[8]||D==(z|ie)&&c[7].length<=c[8]&&y==S;if(!(re||ye))return o;D&A&&(o[2]=c[2],V|=y&A?0:E);var Ee=c[3];if(Ee){var Pe=o[3];o[3]=Pe?z$(Pe,Ee,c[4]):Ee,o[4]=Pe?Hr(o[3],h):c[4]}return Ee=c[5],Ee&&(Pe=o[5],o[5]=Pe?W$(Pe,Ee,c[6]):Ee,o[6]=Pe?Hr(o[5],h):c[6]),Ee=c[7],Ee&&(o[7]=Ee),D&z&&(o[8]=o[8]==null?c[8]:bn(o[8],c[8])),o[9]==null&&(o[9]=c[9]),o[0]=c[0],o[1]=V,o}function P9(o){var c=[];if(o!=null)for(var y in L(o))c.push(y);return c}function _9(o){return Ve.call(o)}function cx(o,c,y){return c=Yt(c===n?o.length-1:c,0),function(){for(var D=arguments,V=-1,re=Yt(D.length-c,0),ye=G(re);++V<re;)ye[V]=D[c+V];V=-1;for(var Ee=G(c+1);++V<c;)Ee[V]=D[V];return Ee[c]=y(ye),On(o,this,Ee)}}function fx(o,c){return c.length<2?o:Go(o,Mi(c,0,-1))}function M9(o,c){for(var y=o.length,D=bn(c.length,y),V=Yr(o);D--;){var re=c[D];o[D]=Es(re,y)?V[re]:n}return o}function sg(o,c){if(!(c==="constructor"&&typeof o[c]=="function")&&c!="__proto__")return o[c]}var dx=px(O$),Uc=ft||function(o,c){return En.setTimeout(o,c)},og=px(e9);function hx(o,c,y){var D=c+"";return og(o,w9(D,F9(b9(D),y)))}function px(o){var c=0,y=0;return function(){var D=ka(),V=Se-(D-y);if(y=D,V>0){if(++c>=we)return arguments[0]}else c=0;return o.apply(n,arguments)}}function Gd(o,c){var y=-1,D=o.length,V=D-1;for(c=c===n?D:c;++y<c;){var re=Um(y,V),ye=o[re];o[re]=o[y],o[y]=ye}return o.length=c,o}var mx=A9(function(o){var c=[];return o.charCodeAt(0)===46&&c.push(""),o.replace(Xi,function(y,D,V,re){c.push(V?re.replace(Wr,"$1"):D||y)}),c});function Va(o){if(typeof o=="string"||gi(o))return o;var c=o+"";return c=="0"&&1/o==-k?"-0":c}function Zo(o){if(o!=null){try{return et.call(o)}catch{}try{return o+""}catch{}}return""}function F9(o,c){return fn(_e,function(y){var D="_."+y[0];c&y[1]&&!_a(o,D)&&o.push(D)}),o.sort()}function gx(o){if(o instanceof Kt)return o.clone();var c=new Pi(o.__wrapped__,o.__chain__);return c.__actions__=Yr(o.__actions__),c.__index__=o.__index__,c.__values__=o.__values__,c}function R9(o,c,y){(y?Rr(o,c,y):c===n)?c=1:c=Yt(kt(c),0);var D=o==null?0:o.length;if(!D||c<1)return[];for(var V=0,re=0,ye=G(ln(D/c));V<D;)ye[re++]=Mi(o,V,V+=c);return ye}function k9(o){for(var c=-1,y=o==null?0:o.length,D=0,V=[];++c<y;){var re=o[c];re&&(V[D++]=re)}return V}function O9(){var o=arguments.length;if(!o)return[];for(var c=G(o-1),y=arguments[0],D=o;D--;)c[D-1]=arguments[D];return na(Mt(y)?Yr(y):[y],mr(c,1))}var I9=Vt(function(o,c){return Kn(o)?Lc(o,mr(c,1,Kn,!0)):[]}),L9=Vt(function(o,c){var y=Fi(c);return Kn(y)&&(y=n),Kn(o)?Lc(o,mr(c,1,Kn,!0),wt(y,2)):[]}),V9=Vt(function(o,c){var y=Fi(c);return Kn(y)&&(y=n),Kn(o)?Lc(o,mr(c,1,Kn,!0),n,y):[]});function B9(o,c,y){var D=o==null?0:o.length;return D?(c=y||c===n?1:kt(c),Mi(o,c<0?0:c,D)):[]}function N9(o,c,y){var D=o==null?0:o.length;return D?(c=y||c===n?1:kt(c),c=D-c,Mi(o,0,c<0?0:c)):[]}function j9(o,c){return o&&o.length?Nd(o,wt(c,3),!0,!0):[]}function K9(o,c){return o&&o.length?Nd(o,wt(c,3),!0):[]}function U9(o,c,y,D){var V=o==null?0:o.length;return V?(y&&typeof y!="number"&&Rr(o,c,y)&&(y=0,D=V),OI(o,c,y,D)):[]}function vx(o,c,y){var D=o==null?0:o.length;if(!D)return-1;var V=y==null?0:kt(y);return V<0&&(V=Yt(D+V,0)),Ko(o,wt(c,3),V)}function yx(o,c,y){var D=o==null?0:o.length;if(!D)return-1;var V=D-1;return y!==n&&(V=kt(y),V=y<0?Yt(D+V,0):bn(V,D-1)),Ko(o,wt(c,3),V,!0)}function bx(o){var c=o==null?0:o.length;return c?mr(o,1):[]}function q9(o){var c=o==null?0:o.length;return c?mr(o,k):[]}function z9(o,c){var y=o==null?0:o.length;return y?(c=c===n?1:kt(c),mr(o,c)):[]}function W9(o){for(var c=-1,y=o==null?0:o.length,D={};++c<y;){var V=o[c];D[V[0]]=V[1]}return D}function $x(o){return o&&o.length?o[0]:n}function H9(o,c,y){var D=o==null?0:o.length;if(!D)return-1;var V=y==null?0:kt(y);return V<0&&(V=Yt(D+V,0)),vs(o,c,V)}function G9(o){var c=o==null?0:o.length;return c?Mi(o,0,-1):[]}var Y9=Vt(function(o){var c=un(o,Gm);return c.length&&c[0]===o[0]?Vm(c):[]}),Z9=Vt(function(o){var c=Fi(o),y=un(o,Gm);return c===Fi(y)?c=n:y.pop(),y.length&&y[0]===o[0]?Vm(y,wt(c,2)):[]}),X9=Vt(function(o){var c=Fi(o),y=un(o,Gm);return c=typeof c=="function"?c:n,c&&y.pop(),y.length&&y[0]===o[0]?Vm(y,n,c):[]});function J9(o,c){return o==null?"":ia.call(o,c)}function Fi(o){var c=o==null?0:o.length;return c?o[c-1]:n}function Q9(o,c,y){var D=o==null?0:o.length;if(!D)return-1;var V=D;return y!==n&&(V=kt(y),V=V<0?Yt(D+V,0):bn(V,D-1)),c===c?v(o,c,V):Ko(o,Pc,V,!0)}function eL(o,c){return o&&o.length?M$(o,kt(c)):n}var tL=Vt(xx);function xx(o,c){return o&&o.length&&c&&c.length?Km(o,c):o}function nL(o,c,y){return o&&o.length&&c&&c.length?Km(o,c,wt(y,2)):o}function rL(o,c,y){return o&&o.length&&c&&c.length?Km(o,c,n,y):o}var iL=Cs(function(o,c){var y=o==null?0:o.length,D=km(o,c);return k$(o,un(c,function(V){return Es(V,y)?+V:V}).sort(q$)),D});function aL(o,c){var y=[];if(!(o&&o.length))return y;var D=-1,V=[],re=o.length;for(c=wt(c,3);++D<re;){var ye=o[D];c(ye,D,o)&&(y.push(ye),V.push(D))}return k$(o,V),y}function ug(o){return o==null?o:pi.call(o)}function sL(o,c,y){var D=o==null?0:o.length;return D?(y&&typeof y!="number"&&Rr(o,c,y)?(c=0,y=D):(c=c==null?0:kt(c),y=y===n?D:kt(y)),Mi(o,c,y)):[]}function oL(o,c){return Bd(o,c)}function uL(o,c,y){return zm(o,c,wt(y,2))}function lL(o,c){var y=o==null?0:o.length;if(y){var D=Bd(o,c);if(D<y&&la(o[D],c))return D}return-1}function cL(o,c){return Bd(o,c,!0)}function fL(o,c,y){return zm(o,c,wt(y,2),!0)}function dL(o,c){var y=o==null?0:o.length;if(y){var D=Bd(o,c,!0)-1;if(la(o[D],c))return D}return-1}function hL(o){return o&&o.length?I$(o):[]}function pL(o,c){return o&&o.length?I$(o,wt(c,2)):[]}function mL(o){var c=o==null?0:o.length;return c?Mi(o,1,c):[]}function gL(o,c,y){return o&&o.length?(c=y||c===n?1:kt(c),Mi(o,0,c<0?0:c)):[]}function vL(o,c,y){var D=o==null?0:o.length;return D?(c=y||c===n?1:kt(c),c=D-c,Mi(o,c<0?0:c,D)):[]}function yL(o,c){return o&&o.length?Nd(o,wt(c,3),!1,!0):[]}function bL(o,c){return o&&o.length?Nd(o,wt(c,3)):[]}var $L=Vt(function(o){return eo(mr(o,1,Kn,!0))}),xL=Vt(function(o){var c=Fi(o);return Kn(c)&&(c=n),eo(mr(o,1,Kn,!0),wt(c,2))}),wL=Vt(function(o){var c=Fi(o);return c=typeof c=="function"?c:n,eo(mr(o,1,Kn,!0),n,c)});function CL(o){return o&&o.length?eo(o):[]}function EL(o,c){return o&&o.length?eo(o,wt(c,2)):[]}function SL(o,c){return c=typeof c=="function"?c:n,o&&o.length?eo(o,n,c):[]}function lg(o){if(!(o&&o.length))return[];var c=0;return o=$r(o,function(y){if(Kn(y))return c=Yt(y.length,c),!0}),Ju(c,function(y){return un(o,Zu(y))})}function wx(o,c){if(!(o&&o.length))return[];var y=lg(o);return c==null?y:un(y,function(D){return On(c,n,D)})}var DL=Vt(function(o,c){return Kn(o)?Lc(o,c):[]}),AL=Vt(function(o){return Hm($r(o,Kn))}),TL=Vt(function(o){var c=Fi(o);return Kn(c)&&(c=n),Hm($r(o,Kn),wt(c,2))}),PL=Vt(function(o){var c=Fi(o);return c=typeof c=="function"?c:n,Hm($r(o,Kn),n,c)}),_L=Vt(lg);function ML(o,c){return N$(o||[],c||[],Ic)}function FL(o,c){return N$(o||[],c||[],Nc)}var RL=Vt(function(o){var c=o.length,y=c>1?o[c-1]:n;return y=typeof y=="function"?(o.pop(),y):n,wx(o,y)});function Cx(o){var c=Z(o);return c.__chain__=!0,c}function kL(o,c){return c(o),o}function Yd(o,c){return c(o)}var OL=Cs(function(o){var c=o.length,y=c?o[0]:0,D=this.__wrapped__,V=function(re){return km(re,o)};return c>1||this.__actions__.length||!(D instanceof Kt)||!Es(y)?this.thru(V):(D=D.slice(y,+y+(c?1:0)),D.__actions__.push({func:Yd,args:[V],thisArg:n}),new Pi(D,this.__chain__).thru(function(re){return c&&!re.length&&re.push(n),re}))});function IL(){return Cx(this)}function LL(){return new Pi(this.value(),this.__chain__)}function VL(){this.__values__===n&&(this.__values__=Lx(this.value()));var o=this.__index__>=this.__values__.length,c=o?n:this.__values__[this.__index__++];return{done:o,value:c}}function BL(){return this}function NL(o){for(var c,y=this;y instanceof kd;){var D=gx(y);D.__index__=0,D.__values__=n,c?V.__wrapped__=D:c=D;var V=D;y=y.__wrapped__}return V.__wrapped__=o,c}function jL(){var o=this.__wrapped__;if(o instanceof Kt){var c=o;return this.__actions__.length&&(c=new Kt(this)),c=c.reverse(),c.__actions__.push({func:Yd,args:[ug],thisArg:n}),new Pi(c,this.__chain__)}return this.thru(ug)}function KL(){return B$(this.__wrapped__,this.__actions__)}var UL=jd(function(o,c,y){Be.call(o,y)?++o[y]:xs(o,y,1)});function qL(o,c,y){var D=Mt(o)?gs:kI;return y&&Rr(o,c,y)&&(c=n),D(o,wt(c,3))}function zL(o,c){var y=Mt(o)?$r:w$;return y(o,wt(c,3))}var WL=Z$(vx),HL=Z$(yx);function GL(o,c){return mr(Zd(o,c),1)}function YL(o,c){return mr(Zd(o,c),k)}function ZL(o,c,y){return y=y===n?1:kt(y),mr(Zd(o,c),y)}function Ex(o,c){var y=Mt(o)?fn:Qs;return y(o,wt(c,3))}function Sx(o,c){var y=Mt(o)?sr:x$;return y(o,wt(c,3))}var XL=jd(function(o,c,y){Be.call(o,y)?o[y].push(c):xs(o,y,[c])});function JL(o,c,y,D){o=Zr(o)?o:ol(o),y=y&&!D?kt(y):0;var V=o.length;return y<0&&(y=Yt(V+y,0)),th(o)?y<=V&&o.indexOf(c,y)>-1:!!V&&vs(o,c,y)>-1}var QL=Vt(function(o,c,y){var D=-1,V=typeof c=="function",re=Zr(o)?G(o.length):[];return Qs(o,function(ye){re[++D]=V?On(c,ye,y):Vc(ye,c,y)}),re}),e8=jd(function(o,c,y){xs(o,y,c)});function Zd(o,c){var y=Mt(o)?un:T$;return y(o,wt(c,3))}function t8(o,c,y,D){return o==null?[]:(Mt(c)||(c=c==null?[]:[c]),y=D?n:y,Mt(y)||(y=y==null?[]:[y]),F$(o,c,y))}var n8=jd(function(o,c,y){o[y?0:1].push(c)},function(){return[[],[]]});function r8(o,c,y){var D=Mt(o)?Yu:_c,V=arguments.length<3;return D(o,wt(c,4),y,V,Qs)}function i8(o,c,y){var D=Mt(o)?Bo:_c,V=arguments.length<3;return D(o,wt(c,4),y,V,x$)}function a8(o,c){var y=Mt(o)?$r:w$;return y(o,Qd(wt(c,3)))}function s8(o){var c=Mt(o)?v$:JI;return c(o)}function o8(o,c,y){(y?Rr(o,c,y):c===n)?c=1:c=kt(c);var D=Mt(o)?PI:QI;return D(o,c)}function u8(o){var c=Mt(o)?_I:t9;return c(o)}function l8(o){if(o==null)return 0;if(Zr(o))return th(o)?$(o):o.length;var c=Cr(o);return c==ht||c==De?o.size:Nm(o).length}function c8(o,c,y){var D=Mt(o)?Ma:n9;return y&&Rr(o,c,y)&&(c=n),D(o,wt(c,3))}var f8=Vt(function(o,c){if(o==null)return[];var y=c.length;return y>1&&Rr(o,c[0],c[1])?c=[]:y>2&&Rr(c[0],c[1],c[2])&&(c=[c[0]]),F$(o,mr(c,1),[])}),Xd=pr||function(){return En.Date.now()};function d8(o,c){if(typeof c!="function")throw new ne(s);return o=kt(o),function(){if(--o<1)return c.apply(this,arguments)}}function Dx(o,c,y){return c=y?n:c,c=o&&c==null?o.length:c,ws(o,z,n,n,n,n,c)}function Ax(o,c){var y;if(typeof c!="function")throw new ne(s);return o=kt(o),function(){return--o>0&&(y=c.apply(this,arguments)),o<=1&&(c=n),y}}var cg=Vt(function(o,c,y){var D=A;if(y.length){var V=Hr(y,al(cg));D|=_}return ws(o,D,c,y,V)}),Tx=Vt(function(o,c,y){var D=A|C;if(y.length){var V=Hr(y,al(Tx));D|=_}return ws(c,D,o,y,V)});function Px(o,c,y){c=y?n:c;var D=ws(o,S,n,n,n,n,n,c);return D.placeholder=Px.placeholder,D}function _x(o,c,y){c=y?n:c;var D=ws(o,R,n,n,n,n,n,c);return D.placeholder=_x.placeholder,D}function Mx(o,c,y){var D,V,re,ye,Ee,Pe,qe=0,We=!1,Ze=!1,st=!0;if(typeof o!="function")throw new ne(s);c=Ri(c)||0,Tn(y)&&(We=!!y.leading,Ze="maxWait"in y,re=Ze?Yt(Ri(y.maxWait)||0,c):re,st="trailing"in y?!!y.trailing:st);function vt(Un){var ca=D,As=V;return D=V=n,qe=Un,ye=o.apply(As,ca),ye}function Et(Un){return qe=Un,Ee=Uc(Bt,c),We?vt(Un):ye}function Lt(Un){var ca=Un-Pe,As=Un-qe,Zx=c-ca;return Ze?bn(Zx,re-As):Zx}function St(Un){var ca=Un-Pe,As=Un-qe;return Pe===n||ca>=c||ca<0||Ze&&As>=re}function Bt(){var Un=Xd();if(St(Un))return Wt(Un);Ee=Uc(Bt,Lt(Un))}function Wt(Un){return Ee=n,st&&D?vt(Un):(D=V=n,ye)}function vi(){Ee!==n&&j$(Ee),qe=0,D=Pe=V=Ee=n}function kr(){return Ee===n?ye:Wt(Xd())}function yi(){var Un=Xd(),ca=St(Un);if(D=arguments,V=this,Pe=Un,ca){if(Ee===n)return Et(Pe);if(Ze)return j$(Ee),Ee=Uc(Bt,c),vt(Pe)}return Ee===n&&(Ee=Uc(Bt,c)),ye}return yi.cancel=vi,yi.flush=kr,yi}var h8=Vt(function(o,c){return $$(o,1,c)}),p8=Vt(function(o,c,y){return $$(o,Ri(c)||0,y)});function m8(o){return ws(o,ge)}function Jd(o,c){if(typeof o!="function"||c!=null&&typeof c!="function")throw new ne(s);var y=function(){var D=arguments,V=c?c.apply(this,D):D[0],re=y.cache;if(re.has(V))return re.get(V);var ye=o.apply(this,D);return y.cache=re.set(V,ye)||re,ye};return y.cache=new(Jd.Cache||$s),y}Jd.Cache=$s;function Qd(o){if(typeof o!="function")throw new ne(s);return function(){var c=arguments;switch(c.length){case 0:return!o.call(this);case 1:return!o.call(this,c[0]);case 2:return!o.call(this,c[0],c[1]);case 3:return!o.call(this,c[0],c[1],c[2])}return!o.apply(this,c)}}function g8(o){return Ax(2,o)}var v8=r9(function(o,c){c=c.length==1&&Mt(c[0])?un(c[0],xr(wt())):un(mr(c,1),xr(wt()));var y=c.length;return Vt(function(D){for(var V=-1,re=bn(D.length,y);++V<re;)D[V]=c[V].call(this,D[V]);return On(o,this,D)})}),fg=Vt(function(o,c){var y=Hr(c,al(fg));return ws(o,_,n,c,y)}),Fx=Vt(function(o,c){var y=Hr(c,al(Fx));return ws(o,F,n,c,y)}),y8=Cs(function(o,c){return ws(o,ie,n,n,n,c)});function b8(o,c){if(typeof o!="function")throw new ne(s);return c=c===n?c:kt(c),Vt(o,c)}function $8(o,c){if(typeof o!="function")throw new ne(s);return c=c==null?0:Yt(kt(c),0),Vt(function(y){var D=y[c],V=no(y,0,c);return D&&na(V,D),On(o,this,V)})}function x8(o,c,y){var D=!0,V=!0;if(typeof o!="function")throw new ne(s);return Tn(y)&&(D="leading"in y?!!y.leading:D,V="trailing"in y?!!y.trailing:V),Mx(o,c,{leading:D,maxWait:c,trailing:V})}function w8(o){return Dx(o,1)}function C8(o,c){return fg(Ym(c),o)}function E8(){if(!arguments.length)return[];var o=arguments[0];return Mt(o)?o:[o]}function S8(o){return _i(o,b)}function D8(o,c){return c=typeof c=="function"?c:n,_i(o,b,c)}function A8(o){return _i(o,m|b)}function T8(o,c){return c=typeof c=="function"?c:n,_i(o,m|b,c)}function P8(o,c){return c==null||b$(o,c,lr(c))}function la(o,c){return o===c||o!==o&&c!==c}var _8=zd(Lm),M8=zd(function(o,c){return o>=c}),Xo=S$(function(){return arguments}())?S$:function(o){return Vn(o)&&Be.call(o,"callee")&&!yn.call(o,"callee")},Mt=G.isArray,F8=ms?xr(ms):NI;function Zr(o){return o!=null&&eh(o.length)&&!Ss(o)}function Kn(o){return Vn(o)&&Zr(o)}function R8(o){return o===!0||o===!1||Vn(o)&&Fr(o)==Ue}var ro=ra||wg,k8=Td?xr(Td):jI;function O8(o){return Vn(o)&&o.nodeType===1&&!qc(o)}function I8(o){if(o==null)return!0;if(Zr(o)&&(Mt(o)||typeof o=="string"||typeof o.splice=="function"||ro(o)||sl(o)||Xo(o)))return!o.length;var c=Cr(o);if(c==ht||c==De)return!o.size;if(Kc(o))return!Nm(o).length;for(var y in o)if(Be.call(o,y))return!1;return!0}function L8(o,c){return Bc(o,c)}function V8(o,c,y){y=typeof y=="function"?y:n;var D=y?y(o,c):n;return D===n?Bc(o,c,n,y):!!D}function dg(o){if(!Vn(o))return!1;var c=Fr(o);return c==Ne||c==Ie||typeof o.message=="string"&&typeof o.name=="string"&&!qc(o)}function B8(o){return typeof o=="number"&&di(o)}function Ss(o){if(!Tn(o))return!1;var c=Fr(o);return c==Te||c==He||c==Qe||c==Qt}function Rx(o){return typeof o=="number"&&o==kt(o)}function eh(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=N}function Tn(o){var c=typeof o;return o!=null&&(c=="object"||c=="function")}function Vn(o){return o!=null&&typeof o=="object"}var kx=Pd?xr(Pd):UI;function N8(o,c){return o===c||Bm(o,c,ng(c))}function j8(o,c,y){return y=typeof y=="function"?y:n,Bm(o,c,ng(c),y)}function K8(o){return Ox(o)&&o!=+o}function U8(o){if(D9(o))throw new de(a);return D$(o)}function q8(o){return o===null}function z8(o){return o==null}function Ox(o){return typeof o=="number"||Vn(o)&&Fr(o)==Ht}function qc(o){if(!Vn(o)||Fr(o)!=_t)return!1;var c=At(o);if(c===null)return!0;var y=Be.call(c,"constructor")&&c.constructor;return typeof y=="function"&&y instanceof y&&et.call(y)==xe}var hg=Ac?xr(Ac):qI;function W8(o){return Rx(o)&&o>=-N&&o<=N}var Ix=Zs?xr(Zs):zI;function th(o){return typeof o=="string"||!Mt(o)&&Vn(o)&&Fr(o)==Me}function gi(o){return typeof o=="symbol"||Vn(o)&&Fr(o)==Xe}var sl=ta?xr(ta):WI;function H8(o){return o===n}function G8(o){return Vn(o)&&Cr(o)==Je}function Y8(o){return Vn(o)&&Fr(o)==gt}var Z8=zd(jm),X8=zd(function(o,c){return o<=c});function Lx(o){if(!o)return[];if(Zr(o))return th(o)?T(o):Yr(o);if(Zn&&o[Zn])return Ra(o[Zn]());var c=Cr(o),y=c==ht?In:c==De?Xs:ol;return y(o)}function Ds(o){if(!o)return o===0?o:0;if(o=Ri(o),o===k||o===-k){var c=o<0?-1:1;return c*te}return o===o?o:0}function kt(o){var c=Ds(o),y=c%1;return c===c?y?c-y:c:0}function Vx(o){return o?Ho(kt(o),0,ce):0}function Ri(o){if(typeof o=="number")return o;if(gi(o))return j;if(Tn(o)){var c=typeof o.valueOf=="function"?o.valueOf():o;o=Tn(c)?c+"":c}if(typeof o!="string")return o===0?o:+o;o=Md(o);var y=ui.test(o);return y||Po.test(o)?tr(o.slice(2),y?2:8):Qi.test(o)?j:+o}function Bx(o){return La(o,Xr(o))}function J8(o){return o?Ho(kt(o),-N,N):o===0?o:0}function an(o){return o==null?"":mi(o)}var Q8=rl(function(o,c){if(Kc(c)||Zr(c)){La(c,lr(c),o);return}for(var y in c)Be.call(c,y)&&Ic(o,y,c[y])}),Nx=rl(function(o,c){La(c,Xr(c),o)}),nh=rl(function(o,c,y,D){La(c,Xr(c),o,D)}),eV=rl(function(o,c,y,D){La(c,lr(c),o,D)}),tV=Cs(km);function nV(o,c){var y=nl(o);return c==null?y:y$(y,c)}var rV=Vt(function(o,c){o=L(o);var y=-1,D=c.length,V=D>2?c[2]:n;for(V&&Rr(c[0],c[1],V)&&(D=1);++y<D;)for(var re=c[y],ye=Xr(re),Ee=-1,Pe=ye.length;++Ee<Pe;){var qe=ye[Ee],We=o[qe];(We===n||la(We,Oe[qe])&&!Be.call(o,qe))&&(o[qe]=re[qe])}return o}),iV=Vt(function(o){return o.push(n,rx),On(jx,n,o)});function aV(o,c){return Tc(o,wt(c,3),Ia)}function sV(o,c){return Tc(o,wt(c,3),Im)}function oV(o,c){return o==null?o:Om(o,wt(c,3),Xr)}function uV(o,c){return o==null?o:C$(o,wt(c,3),Xr)}function lV(o,c){return o&&Ia(o,wt(c,3))}function cV(o,c){return o&&Im(o,wt(c,3))}function fV(o){return o==null?[]:Ld(o,lr(o))}function dV(o){return o==null?[]:Ld(o,Xr(o))}function pg(o,c,y){var D=o==null?n:Go(o,c);return D===n?y:D}function hV(o,c){return o!=null&&sx(o,c,II)}function mg(o,c){return o!=null&&sx(o,c,LI)}var pV=J$(function(o,c,y){c!=null&&typeof c.toString!="function"&&(c=Ve.call(c)),o[c]=y},vg(Jr)),mV=J$(function(o,c,y){c!=null&&typeof c.toString!="function"&&(c=Ve.call(c)),Be.call(o,c)?o[c].push(y):o[c]=[y]},wt),gV=Vt(Vc);function lr(o){return Zr(o)?g$(o):Nm(o)}function Xr(o){return Zr(o)?g$(o,!0):HI(o)}function vV(o,c){var y={};return c=wt(c,3),Ia(o,function(D,V,re){xs(y,c(D,V,re),D)}),y}function yV(o,c){var y={};return c=wt(c,3),Ia(o,function(D,V,re){xs(y,V,c(D,V,re))}),y}var bV=rl(function(o,c,y){Vd(o,c,y)}),jx=rl(function(o,c,y,D){Vd(o,c,y,D)}),$V=Cs(function(o,c){var y={};if(o==null)return y;var D=!1;c=un(c,function(re){return re=to(re,o),D||(D=re.length>1),re}),La(o,eg(o),y),D&&(y=_i(y,m|g|b,p9));for(var V=c.length;V--;)Wm(y,c[V]);return y});function xV(o,c){return Kx(o,Qd(wt(c)))}var wV=Cs(function(o,c){return o==null?{}:YI(o,c)});function Kx(o,c){if(o==null)return{};var y=un(eg(o),function(D){return[D]});return c=wt(c),R$(o,y,function(D,V){return c(D,V[0])})}function CV(o,c,y){c=to(c,o);var D=-1,V=c.length;for(V||(V=1,o=n);++D<V;){var re=o==null?n:o[Va(c[D])];re===n&&(D=V,re=y),o=Ss(re)?re.call(o):re}return o}function EV(o,c,y){return o==null?o:Nc(o,c,y)}function SV(o,c,y,D){return D=typeof D=="function"?D:n,o==null?o:Nc(o,c,y,D)}var Ux=tx(lr),qx=tx(Xr);function DV(o,c,y){var D=Mt(o),V=D||ro(o)||sl(o);if(c=wt(c,4),y==null){var re=o&&o.constructor;V?y=D?new re:[]:Tn(o)?y=Ss(re)?nl(At(o)):{}:y={}}return(V?fn:Ia)(o,function(ye,Ee,Pe){return c(y,ye,Ee,Pe)}),y}function AV(o,c){return o==null?!0:Wm(o,c)}function TV(o,c,y){return o==null?o:V$(o,c,Ym(y))}function PV(o,c,y,D){return D=typeof D=="function"?D:n,o==null?o:V$(o,c,Ym(y),D)}function ol(o){return o==null?[]:Mc(o,lr(o))}function _V(o){return o==null?[]:Mc(o,Xr(o))}function MV(o,c,y){return y===n&&(y=c,c=n),y!==n&&(y=Ri(y),y=y===y?y:0),c!==n&&(c=Ri(c),c=c===c?c:0),Ho(Ri(o),c,y)}function FV(o,c,y){return c=Ds(c),y===n?(y=c,c=0):y=Ds(y),o=Ri(o),VI(o,c,y)}function RV(o,c,y){if(y&&typeof y!="boolean"&&Rr(o,c,y)&&(c=y=n),y===n&&(typeof c=="boolean"?(y=c,c=n):typeof o=="boolean"&&(y=o,o=n)),o===n&&c===n?(o=0,c=1):(o=Ds(o),c===n?(c=o,o=0):c=Ds(c)),o>c){var D=o;o=c,c=D}if(y||o%1||c%1){var V=sa();return bn(o+V*(c-o+vn("1e-"+((V+"").length-1))),c)}return Um(o,c)}var kV=il(function(o,c,y){return c=c.toLowerCase(),o+(y?zx(c):c)});function zx(o){return gg(an(o).toLowerCase())}function Wx(o){return o=an(o),o&&o.replace(li,Mm).replace(ds,"")}function OV(o,c,y){o=an(o),c=mi(c);var D=o.length;y=y===n?D:Ho(kt(y),0,D);var V=y;return y-=c.length,y>=0&&o.slice(y,V)==c}function IV(o){return o=an(o),o&&vc.test(o)?o.replace(oi,ys):o}function LV(o){return o=an(o),o&&yt.test(o)?o.replace(Ji,"\\$&"):o}var VV=il(function(o,c,y){return o+(y?"-":"")+c.toLowerCase()}),BV=il(function(o,c,y){return o+(y?" ":"")+c.toLowerCase()}),NV=Y$("toLowerCase");function jV(o,c,y){o=an(o),c=kt(c);var D=c?$(o):0;if(!c||D>=c)return o;var V=(c-D)/2;return qd(Gr(V),y)+o+qd(ln(V),y)}function KV(o,c,y){o=an(o),c=kt(c);var D=c?$(o):0;return c&&D<c?o+qd(c-D,y):o}function UV(o,c,y){o=an(o),c=kt(c);var D=c?$(o):0;return c&&D<c?qd(c-D,y)+o:o}function qV(o,c,y){return y||c==null?c=0:c&&(c=+c),hi(an(o).replace(Cn,""),c||0)}function zV(o,c,y){return(y?Rr(o,c,y):c===n)?c=1:c=kt(c),qm(an(o),c)}function WV(){var o=arguments,c=an(o[0]);return o.length<3?c:c.replace(o[1],o[2])}var HV=il(function(o,c,y){return o+(y?"_":"")+c.toLowerCase()});function GV(o,c,y){return y&&typeof y!="number"&&Rr(o,c,y)&&(c=y=n),y=y===n?ce:y>>>0,y?(o=an(o),o&&(typeof c=="string"||c!=null&&!hg(c))&&(c=mi(c),!c&&wr(o))?no(T(o),0,y):o.split(c,y)):[]}var YV=il(function(o,c,y){return o+(y?" ":"")+gg(c)});function ZV(o,c,y){return o=an(o),y=y==null?0:Ho(kt(y),0,o.length),c=mi(c),o.slice(y,y+c.length)==c}function XV(o,c,y){var D=Z.templateSettings;y&&Rr(o,c,y)&&(c=n),o=an(o),c=nh({},c,D,nx);var V=nh({},c.imports,D.imports,nx),re=lr(V),ye=Mc(V,re),Ee,Pe,qe=0,We=c.interpolate||kn,Ze="__p += '",st=B((c.escape||kn).source+"|"+We.source+"|"+(We===Ou?at:kn).source+"|"+(c.evaluate||kn).source+"|$","g"),vt="//# sourceURL="+(Be.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ps+"]")+`
11
+ `;o.replace(st,function(St,Bt,Wt,vi,kr,yi){return Wt||(Wt=vi),Ze+=o.slice(qe,yi).replace(Ws,fi),Bt&&(Ee=!0,Ze+=`' +
12
+ __e(`+Bt+`) +
13
+ '`),kr&&(Pe=!0,Ze+=`';
14
+ `+kr+`;
15
+ __p += '`),Wt&&(Ze+=`' +
16
+ ((__t = (`+Wt+`)) == null ? '' : __t) +
17
+ '`),qe=yi+St.length,St}),Ze+=`';
18
+ `;var Et=Be.call(c,"variable")&&c.variable;if(!Et)Ze=`with (obj) {
19
+ `+Ze+`
20
+ }
21
+ `;else if(bc.test(Et))throw new de(u);Ze=(Pe?Ze.replace(Tr,""):Ze).replace(Ea,"$1").replace(Ao,"$1;"),Ze="function("+(Et||"obj")+`) {
22
+ `+(Et?"":`obj || (obj = {});
23
+ `)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(Pe?`, __j = Array.prototype.join;
24
+ function print() { __p += __j.call(arguments, '') }
25
+ `:`;
26
+ `)+Ze+`return __p
27
+ }`;var Lt=Gx(function(){return W(re,vt+"return "+Ze).apply(n,ye)});if(Lt.source=Ze,dg(Lt))throw Lt;return Lt}function JV(o){return an(o).toLowerCase()}function QV(o){return an(o).toUpperCase()}function eB(o,c,y){if(o=an(o),o&&(y||c===n))return Md(o);if(!o||!(c=mi(c)))return o;var D=T(o),V=T(c),re=Qu(D,V),ye=or(D,V)+1;return no(D,re,ye).join("")}function tB(o,c,y){if(o=an(o),o&&(y||c===n))return o.slice(0,P(o)+1);if(!o||!(c=mi(c)))return o;var D=T(o),V=or(D,T(c))+1;return no(D,0,V).join("")}function nB(o,c,y){if(o=an(o),o&&(y||c===n))return o.replace(Cn,"");if(!o||!(c=mi(c)))return o;var D=T(o),V=Qu(D,T(c));return no(D,V).join("")}function rB(o,c){var y=oe,D=O;if(Tn(c)){var V="separator"in c?c.separator:V;y="length"in c?kt(c.length):y,D="omission"in c?mi(c.omission):D}o=an(o);var re=o.length;if(wr(o)){var ye=T(o);re=ye.length}if(y>=re)return o;var Ee=y-$(D);if(Ee<1)return D;var Pe=ye?no(ye,0,Ee).join(""):o.slice(0,Ee);if(V===n)return Pe+D;if(ye&&(Ee+=Pe.length-Ee),hg(V)){if(o.slice(Ee).search(V)){var qe,We=Pe;for(V.global||(V=B(V.source,an(cn.exec(V))+"g")),V.lastIndex=0;qe=V.exec(We);)var Ze=qe.index;Pe=Pe.slice(0,Ze===n?Ee:Ze)}}else if(o.indexOf(mi(V),Ee)!=Ee){var st=Pe.lastIndexOf(V);st>-1&&(Pe=Pe.slice(0,st))}return Pe+D}function iB(o){return o=an(o),o&&is.test(o)?o.replace(bt,q):o}var aB=il(function(o,c,y){return o+(y?" ":"")+c.toUpperCase()}),gg=Y$("toUpperCase");function Hx(o,c,y){return o=an(o),c=y?n:c,c===n?Fc(o)?$e(o):Tm(o):o.match(c)||[]}var Gx=Vt(function(o,c){try{return On(o,n,c)}catch(y){return dg(y)?y:new de(y)}}),sB=Cs(function(o,c){return fn(c,function(y){y=Va(y),xs(o,y,cg(o[y],o))}),o});function oB(o){var c=o==null?0:o.length,y=wt();return o=c?un(o,function(D){if(typeof D[1]!="function")throw new ne(s);return[y(D[0]),D[1]]}):[],Vt(function(D){for(var V=-1;++V<c;){var re=o[V];if(On(re[0],this,D))return On(re[1],this,D)}})}function uB(o){return RI(_i(o,m))}function vg(o){return function(){return o}}function lB(o,c){return o==null||o!==o?c:o}var cB=X$(),fB=X$(!0);function Jr(o){return o}function yg(o){return A$(typeof o=="function"?o:_i(o,m))}function dB(o){return P$(_i(o,m))}function hB(o,c){return _$(o,_i(c,m))}var pB=Vt(function(o,c){return function(y){return Vc(y,o,c)}}),mB=Vt(function(o,c){return function(y){return Vc(o,y,c)}});function bg(o,c,y){var D=lr(c),V=Ld(c,D);y==null&&!(Tn(c)&&(V.length||!D.length))&&(y=c,c=o,o=this,V=Ld(c,lr(c)));var re=!(Tn(y)&&"chain"in y)||!!y.chain,ye=Ss(o);return fn(V,function(Ee){var Pe=c[Ee];o[Ee]=Pe,ye&&(o.prototype[Ee]=function(){var qe=this.__chain__;if(re||qe){var We=o(this.__wrapped__),Ze=We.__actions__=Yr(this.__actions__);return Ze.push({func:Pe,args:arguments,thisArg:o}),We.__chain__=qe,We}return Pe.apply(o,na([this.value()],arguments))})}),o}function gB(){return En._===this&&(En._=le),this}function $g(){}function vB(o){return o=kt(o),Vt(function(c){return M$(c,o)})}var yB=Xm(un),bB=Xm(gs),$B=Xm(Ma);function Yx(o){return ig(o)?Zu(Va(o)):ZI(o)}function xB(o){return function(c){return o==null?n:Go(o,c)}}var wB=Q$(),CB=Q$(!0);function xg(){return[]}function wg(){return!1}function EB(){return{}}function SB(){return""}function DB(){return!0}function AB(o,c){if(o=kt(o),o<1||o>N)return[];var y=ce,D=bn(o,ce);c=wt(c),o-=ce;for(var V=Ju(D,c);++y<o;)c(y);return V}function TB(o){return Mt(o)?un(o,Va):gi(o)?[o]:Yr(mx(an(o)))}function PB(o){var c=++ot;return an(o)+c}var _B=Ud(function(o,c){return o+c},0),MB=Jm("ceil"),FB=Ud(function(o,c){return o/c},1),RB=Jm("floor");function kB(o){return o&&o.length?Id(o,Jr,Lm):n}function OB(o,c){return o&&o.length?Id(o,wt(c,2),Lm):n}function IB(o){return Uo(o,Jr)}function LB(o,c){return Uo(o,wt(c,2))}function VB(o){return o&&o.length?Id(o,Jr,jm):n}function BB(o,c){return o&&o.length?Id(o,wt(c,2),jm):n}var NB=Ud(function(o,c){return o*c},1),jB=Jm("round"),KB=Ud(function(o,c){return o-c},0);function UB(o){return o&&o.length?Fa(o,Jr):0}function qB(o,c){return o&&o.length?Fa(o,wt(c,2)):0}return Z.after=d8,Z.ary=Dx,Z.assign=Q8,Z.assignIn=Nx,Z.assignInWith=nh,Z.assignWith=eV,Z.at=tV,Z.before=Ax,Z.bind=cg,Z.bindAll=sB,Z.bindKey=Tx,Z.castArray=E8,Z.chain=Cx,Z.chunk=R9,Z.compact=k9,Z.concat=O9,Z.cond=oB,Z.conforms=uB,Z.constant=vg,Z.countBy=UL,Z.create=nV,Z.curry=Px,Z.curryRight=_x,Z.debounce=Mx,Z.defaults=rV,Z.defaultsDeep=iV,Z.defer=h8,Z.delay=p8,Z.difference=I9,Z.differenceBy=L9,Z.differenceWith=V9,Z.drop=B9,Z.dropRight=N9,Z.dropRightWhile=j9,Z.dropWhile=K9,Z.fill=U9,Z.filter=zL,Z.flatMap=GL,Z.flatMapDeep=YL,Z.flatMapDepth=ZL,Z.flatten=bx,Z.flattenDeep=q9,Z.flattenDepth=z9,Z.flip=m8,Z.flow=cB,Z.flowRight=fB,Z.fromPairs=W9,Z.functions=fV,Z.functionsIn=dV,Z.groupBy=XL,Z.initial=G9,Z.intersection=Y9,Z.intersectionBy=Z9,Z.intersectionWith=X9,Z.invert=pV,Z.invertBy=mV,Z.invokeMap=QL,Z.iteratee=yg,Z.keyBy=e8,Z.keys=lr,Z.keysIn=Xr,Z.map=Zd,Z.mapKeys=vV,Z.mapValues=yV,Z.matches=dB,Z.matchesProperty=hB,Z.memoize=Jd,Z.merge=bV,Z.mergeWith=jx,Z.method=pB,Z.methodOf=mB,Z.mixin=bg,Z.negate=Qd,Z.nthArg=vB,Z.omit=$V,Z.omitBy=xV,Z.once=g8,Z.orderBy=t8,Z.over=yB,Z.overArgs=v8,Z.overEvery=bB,Z.overSome=$B,Z.partial=fg,Z.partialRight=Fx,Z.partition=n8,Z.pick=wV,Z.pickBy=Kx,Z.property=Yx,Z.propertyOf=xB,Z.pull=tL,Z.pullAll=xx,Z.pullAllBy=nL,Z.pullAllWith=rL,Z.pullAt=iL,Z.range=wB,Z.rangeRight=CB,Z.rearg=y8,Z.reject=a8,Z.remove=aL,Z.rest=b8,Z.reverse=ug,Z.sampleSize=o8,Z.set=EV,Z.setWith=SV,Z.shuffle=u8,Z.slice=sL,Z.sortBy=f8,Z.sortedUniq=hL,Z.sortedUniqBy=pL,Z.split=GV,Z.spread=$8,Z.tail=mL,Z.take=gL,Z.takeRight=vL,Z.takeRightWhile=yL,Z.takeWhile=bL,Z.tap=kL,Z.throttle=x8,Z.thru=Yd,Z.toArray=Lx,Z.toPairs=Ux,Z.toPairsIn=qx,Z.toPath=TB,Z.toPlainObject=Bx,Z.transform=DV,Z.unary=w8,Z.union=$L,Z.unionBy=xL,Z.unionWith=wL,Z.uniq=CL,Z.uniqBy=EL,Z.uniqWith=SL,Z.unset=AV,Z.unzip=lg,Z.unzipWith=wx,Z.update=TV,Z.updateWith=PV,Z.values=ol,Z.valuesIn=_V,Z.without=DL,Z.words=Hx,Z.wrap=C8,Z.xor=AL,Z.xorBy=TL,Z.xorWith=PL,Z.zip=_L,Z.zipObject=ML,Z.zipObjectDeep=FL,Z.zipWith=RL,Z.entries=Ux,Z.entriesIn=qx,Z.extend=Nx,Z.extendWith=nh,bg(Z,Z),Z.add=_B,Z.attempt=Gx,Z.camelCase=kV,Z.capitalize=zx,Z.ceil=MB,Z.clamp=MV,Z.clone=S8,Z.cloneDeep=A8,Z.cloneDeepWith=T8,Z.cloneWith=D8,Z.conformsTo=P8,Z.deburr=Wx,Z.defaultTo=lB,Z.divide=FB,Z.endsWith=OV,Z.eq=la,Z.escape=IV,Z.escapeRegExp=LV,Z.every=qL,Z.find=WL,Z.findIndex=vx,Z.findKey=aV,Z.findLast=HL,Z.findLastIndex=yx,Z.findLastKey=sV,Z.floor=RB,Z.forEach=Ex,Z.forEachRight=Sx,Z.forIn=oV,Z.forInRight=uV,Z.forOwn=lV,Z.forOwnRight=cV,Z.get=pg,Z.gt=_8,Z.gte=M8,Z.has=hV,Z.hasIn=mg,Z.head=$x,Z.identity=Jr,Z.includes=JL,Z.indexOf=H9,Z.inRange=FV,Z.invoke=gV,Z.isArguments=Xo,Z.isArray=Mt,Z.isArrayBuffer=F8,Z.isArrayLike=Zr,Z.isArrayLikeObject=Kn,Z.isBoolean=R8,Z.isBuffer=ro,Z.isDate=k8,Z.isElement=O8,Z.isEmpty=I8,Z.isEqual=L8,Z.isEqualWith=V8,Z.isError=dg,Z.isFinite=B8,Z.isFunction=Ss,Z.isInteger=Rx,Z.isLength=eh,Z.isMap=kx,Z.isMatch=N8,Z.isMatchWith=j8,Z.isNaN=K8,Z.isNative=U8,Z.isNil=z8,Z.isNull=q8,Z.isNumber=Ox,Z.isObject=Tn,Z.isObjectLike=Vn,Z.isPlainObject=qc,Z.isRegExp=hg,Z.isSafeInteger=W8,Z.isSet=Ix,Z.isString=th,Z.isSymbol=gi,Z.isTypedArray=sl,Z.isUndefined=H8,Z.isWeakMap=G8,Z.isWeakSet=Y8,Z.join=J9,Z.kebabCase=VV,Z.last=Fi,Z.lastIndexOf=Q9,Z.lowerCase=BV,Z.lowerFirst=NV,Z.lt=Z8,Z.lte=X8,Z.max=kB,Z.maxBy=OB,Z.mean=IB,Z.meanBy=LB,Z.min=VB,Z.minBy=BB,Z.stubArray=xg,Z.stubFalse=wg,Z.stubObject=EB,Z.stubString=SB,Z.stubTrue=DB,Z.multiply=NB,Z.nth=eL,Z.noConflict=gB,Z.noop=$g,Z.now=Xd,Z.pad=jV,Z.padEnd=KV,Z.padStart=UV,Z.parseInt=qV,Z.random=RV,Z.reduce=r8,Z.reduceRight=i8,Z.repeat=zV,Z.replace=WV,Z.result=CV,Z.round=jB,Z.runInContext=M,Z.sample=s8,Z.size=l8,Z.snakeCase=HV,Z.some=c8,Z.sortedIndex=oL,Z.sortedIndexBy=uL,Z.sortedIndexOf=lL,Z.sortedLastIndex=cL,Z.sortedLastIndexBy=fL,Z.sortedLastIndexOf=dL,Z.startCase=YV,Z.startsWith=ZV,Z.subtract=KB,Z.sum=UB,Z.sumBy=qB,Z.template=XV,Z.times=AB,Z.toFinite=Ds,Z.toInteger=kt,Z.toLength=Vx,Z.toLower=JV,Z.toNumber=Ri,Z.toSafeInteger=J8,Z.toString=an,Z.toUpper=QV,Z.trim=eB,Z.trimEnd=tB,Z.trimStart=nB,Z.truncate=rB,Z.unescape=iB,Z.uniqueId=PB,Z.upperCase=aB,Z.upperFirst=gg,Z.each=Ex,Z.eachRight=Sx,Z.first=$x,bg(Z,function(){var o={};return Ia(Z,function(c,y){Be.call(Z.prototype,y)||(o[y]=c)}),o}(),{chain:!1}),Z.VERSION=r,fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){Z[o].placeholder=Z}),fn(["drop","take"],function(o,c){Kt.prototype[o]=function(y){y=y===n?1:Yt(kt(y),0);var D=this.__filtered__&&!c?new Kt(this):this.clone();return D.__filtered__?D.__takeCount__=bn(y,D.__takeCount__):D.__views__.push({size:bn(y,ce),type:o+(D.__dir__<0?"Right":"")}),D},Kt.prototype[o+"Right"]=function(y){return this.reverse()[o](y).reverse()}}),fn(["filter","map","takeWhile"],function(o,c){var y=c+1,D=y==U||y==K;Kt.prototype[o]=function(V){var re=this.clone();return re.__iteratees__.push({iteratee:wt(V,3),type:y}),re.__filtered__=re.__filtered__||D,re}}),fn(["head","last"],function(o,c){var y="take"+(c?"Right":"");Kt.prototype[o]=function(){return this[y](1).value()[0]}}),fn(["initial","tail"],function(o,c){var y="drop"+(c?"":"Right");Kt.prototype[o]=function(){return this.__filtered__?new Kt(this):this[y](1)}}),Kt.prototype.compact=function(){return this.filter(Jr)},Kt.prototype.find=function(o){return this.filter(o).head()},Kt.prototype.findLast=function(o){return this.reverse().find(o)},Kt.prototype.invokeMap=Vt(function(o,c){return typeof o=="function"?new Kt(this):this.map(function(y){return Vc(y,o,c)})}),Kt.prototype.reject=function(o){return this.filter(Qd(wt(o)))},Kt.prototype.slice=function(o,c){o=kt(o);var y=this;return y.__filtered__&&(o>0||c<0)?new Kt(y):(o<0?y=y.takeRight(-o):o&&(y=y.drop(o)),c!==n&&(c=kt(c),y=c<0?y.dropRight(-c):y.take(c-o)),y)},Kt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Kt.prototype.toArray=function(){return this.take(ce)},Ia(Kt.prototype,function(o,c){var y=/^(?:filter|find|map|reject)|While$/.test(c),D=/^(?:head|last)$/.test(c),V=Z[D?"take"+(c=="last"?"Right":""):c],re=D||/^find/.test(c);V&&(Z.prototype[c]=function(){var ye=this.__wrapped__,Ee=D?[1]:arguments,Pe=ye instanceof Kt,qe=Ee[0],We=Pe||Mt(ye),Ze=function(Bt){var Wt=V.apply(Z,na([Bt],Ee));return D&&st?Wt[0]:Wt};We&&y&&typeof qe=="function"&&qe.length!=1&&(Pe=We=!1);var st=this.__chain__,vt=!!this.__actions__.length,Et=re&&!st,Lt=Pe&&!vt;if(!re&&We){ye=Lt?ye:new Kt(this);var St=o.apply(ye,Ee);return St.__actions__.push({func:Yd,args:[Ze],thisArg:n}),new Pi(St,st)}return Et&&Lt?o.apply(this,Ee):(St=this.thru(Ze),Et?D?St.value()[0]:St.value():St)})}),fn(["pop","push","shift","sort","splice","unshift"],function(o){var c=se[o],y=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",D=/^(?:pop|shift)$/.test(o);Z.prototype[o]=function(){var V=arguments;if(D&&!this.__chain__){var re=this.value();return c.apply(Mt(re)?re:[],V)}return this[y](function(ye){return c.apply(Mt(ye)?ye:[],V)})}}),Ia(Kt.prototype,function(o,c){var y=Z[c];if(y){var D=y.name+"";Be.call(tl,D)||(tl[D]=[]),tl[D].push({name:c,func:y})}}),tl[Kd(n,C).name]=[{name:"wrapper",func:n}],Kt.prototype.clone=iI,Kt.prototype.reverse=aI,Kt.prototype.value=sI,Z.prototype.at=OL,Z.prototype.chain=IL,Z.prototype.commit=LL,Z.prototype.next=VL,Z.prototype.plant=NL,Z.prototype.reverse=jL,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=KL,Z.prototype.first=Z.prototype.head,Zn&&(Z.prototype[Zn]=BL),Z},Re=Ce();Di?((Di.exports=Re)._=Re,Si._=Re):En._=Re}).call(wj)}(lf,lf.exports)),lf.exports}var D2=Cj();const Ej=ai(D2);var Jf=e=>e.type==="checkbox",au=e=>e instanceof Date,Ir=e=>e==null;const A2=e=>typeof e=="object";var Hn=e=>!Ir(e)&&!Array.isArray(e)&&A2(e)&&!au(e),T2=e=>Hn(e)&&e.target?Jf(e.target)?e.target.checked:e.target.value:e,Sj=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,P2=(e,t)=>e.has(Sj(t)),Dj=e=>{const t=e.constructor&&e.constructor.prototype;return Hn(t)&&t.hasOwnProperty("isPrototypeOf")},H1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function $n(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(H1&&(e instanceof Blob||r))&&(n||Hn(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!Dj(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=$n(e[i]));else return e;return t}var Np=e=>/^\w*$/.test(e),xn=e=>e===void 0,jp=e=>Array.isArray(e)?e.filter(Boolean):[],G1=e=>jp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),it=(e,t,n)=>{if(!t||!Hn(e))return n;const r=(Np(t)?[t]:G1(t)).reduce((i,a)=>Ir(i)?i:i[a],e);return xn(r)||r===e?xn(e[t])?n:e[t]:r},$i=e=>typeof e=="boolean",nn=(e,t,n)=>{let r=-1;const i=Np(t)?[t]:G1(t),a=i.length,s=a-1;for(;++r<a;){const u=i[r];let f=n;if(r!==s){const d=e[u];f=Hn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=f,e=e[u]}};const Xh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ki={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ts={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Y1=fe.default.createContext(null);Y1.displayName="HookFormContext";const Qf=()=>fe.default.useContext(Y1),Aj=e=>{const{children:t,...n}=e;return fe.default.createElement(Y1.Provider,{value:n},t)};var _2=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Ki.all&&(t._proxyFormState[s]=!r||Ki.all),n&&(n[s]=!0),e[s]}});return i};const Kp=typeof window<"u"?fe.default.useLayoutEffect:fe.default.useEffect;function Tj(e){const t=Qf(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,u]=fe.default.useState(n._formState),f=fe.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Kp(()=>n._subscribe({name:i,formState:f.current,exact:a,callback:d=>{!r&&u({...n._formState,...d})}}),[i,r,a]),fe.default.useEffect(()=>{f.current.isValid&&n._setValid(!0)},[n]),fe.default.useMemo(()=>_2(s,n,f.current,!1),[s,n])}var Ua=e=>typeof e=="string",M2=(e,t,n,r,i)=>Ua(e)?(r&&t.watch.add(e),it(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),it(n,a))):(r&&(t.watchAll=!0),n),hb=e=>Ir(e)||!A2(e);function _s(e,t,n=new WeakSet){if(hb(e)||hb(t))return e===t;if(au(e)&&au(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!i.includes(a))return!1;if(a!=="ref"){const u=t[a];if(au(s)&&au(u)||Hn(s)&&Hn(u)||Array.isArray(s)&&Array.isArray(u)?!_s(s,u,n):s!==u)return!1}}return!0}function F2(e){const t=Qf(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s,compute:u}=e||{},f=fe.default.useRef(i),d=fe.default.useRef(u),h=fe.default.useRef(void 0);d.current=u;const m=fe.default.useMemo(()=>n._getWatch(r,f.current),[n,r]),[g,b]=fe.default.useState(d.current?d.current(m):m);return Kp(()=>n._subscribe({name:r,formState:{values:!0},exact:s,callback:w=>{if(!a){const x=M2(r,n._names,w.values||n._formValues,!1,f.current);if(d.current){const A=d.current(x);_s(A,h.current)||(b(A),h.current=A)}else b(x)}}}),[n,a,r,s]),fe.default.useEffect(()=>n._removeUnmounted()),g}function R2(e){const t=Qf(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a,defaultValue:s}=e,u=P2(i._names.array,n),f=fe.default.useMemo(()=>it(i._formValues,n,it(i._defaultValues,n,s)),[i,n,s]),d=F2({control:i,name:n,defaultValue:f,exact:!0}),h=Tj({control:i,name:n,exact:!0}),m=fe.default.useRef(e),g=fe.default.useRef(i.register(n,{...e.rules,value:d,...$i(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const b=fe.default.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!it(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!it(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!it(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!it(h.validatingFields,n)},error:{enumerable:!0,get:()=>it(h.errors,n)}}),[h,n]),w=fe.default.useCallback(E=>g.current.onChange({target:{value:T2(E),name:n},type:Xh.CHANGE}),[n]),x=fe.default.useCallback(()=>g.current.onBlur({target:{value:it(i._formValues,n),name:n},type:Xh.BLUR}),[n,i._formValues]),A=fe.default.useCallback(E=>{const S=it(i._fields,n);S&&E&&(S._f.ref={focus:()=>E.focus&&E.focus(),select:()=>E.select&&E.select(),setCustomValidity:R=>E.setCustomValidity(R),reportValidity:()=>E.reportValidity()})},[i._fields,n]),C=fe.default.useMemo(()=>({name:n,value:d,...$i(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:w,onBlur:x,ref:A}),[n,r,h.disabled,w,x,A,d]);return fe.default.useEffect(()=>{const E=i._options.shouldUnregister||a;i.register(n,{...m.current.rules,...$i(m.current.disabled)?{disabled:m.current.disabled}:{}});const S=(R,_)=>{const F=it(i._fields,R);F&&F._f&&(F._f.mount=_)};if(S(n,!0),E){const R=$n(it(i._options.defaultValues,n));nn(i._defaultValues,n,R),xn(it(i._formValues,n))&&nn(i._formValues,n,R)}return!u&&i.register(n),()=>{(u?E&&!i._state.action:E)?i.unregister(n):S(n,!1)}},[n,i,u,a]),fe.default.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),fe.default.useMemo(()=>({field:C,formState:h,fieldState:b}),[C,h,b])}const Pj=e=>e.render(R2(e));var k2=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ti=e=>Array.isArray(e)?e:[e],dw=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},Or=e=>Hn(e)&&!Object.keys(e).length,Z1=e=>e.type==="file",pa=e=>typeof e=="function",Jh=e=>{if(!H1)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},O2=e=>e.type==="select-multiple",X1=e=>e.type==="radio",_j=e=>X1(e)||Jf(e),Pg=e=>Jh(e)&&e.isConnected;function Mj(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=xn(e)?r++:e[t[r++]];return e}function Fj(e){for(const t in e)if(e.hasOwnProperty(t)&&!xn(e[t]))return!1;return!0}function zn(e,t){const n=Array.isArray(t)?t:Np(t)?[t]:G1(t),r=n.length===1?e:Mj(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Hn(r)&&Or(r)||Array.isArray(r)&&Fj(r))&&zn(e,n.slice(0,-1)),e}var I2=e=>{for(const t in e)if(pa(e[t]))return!0;return!1};function Qh(e,t={}){const n=Array.isArray(e);if(Hn(e)||n)for(const r in e)Array.isArray(e[r])||Hn(e[r])&&!I2(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Qh(e[r],t[r])):Ir(e[r])||(t[r]=!0);return t}function L2(e,t,n){const r=Array.isArray(e);if(Hn(e)||r)for(const i in e)Array.isArray(e[i])||Hn(e[i])&&!I2(e[i])?xn(t)||hb(n[i])?n[i]=Array.isArray(e[i])?Qh(e[i],[]):{...Qh(e[i])}:L2(e[i],Ir(t)?{}:t[i],n[i]):n[i]=!_s(e[i],t[i]);return n}var Wc=(e,t)=>L2(e,t,Qh(t));const hw={value:!1,isValid:!1},pw={value:!0,isValid:!0};var V2=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!xn(e[0].attributes.value)?xn(e[0].value)||e[0].value===""?pw:{value:e[0].value,isValid:!0}:pw:hw}return hw},B2=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>xn(e)?e:t?e===""?NaN:e&&+e:n&&Ua(e)?new Date(e):r?r(e):e;const mw={isValid:!1,value:null};var N2=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,mw):mw;function gw(e){const t=e.ref;return Z1(t)?t.files:X1(t)?N2(e.refs).value:O2(t)?[...t.selectedOptions].map(({value:n})=>n):Jf(t)?V2(e.refs).value:B2(xn(t.value)?e.ref.value:t.value,e)}var Rj=(e,t,n,r)=>{const i={};for(const a of e){const s=it(t,a);s&&nn(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ep=e=>e instanceof RegExp,Hc=e=>xn(e)?e:ep(e)?e.source:Hn(e)?ep(e.value)?e.value.source:e.value:e,ml=e=>({isOnSubmit:!e||e===Ki.onSubmit,isOnBlur:e===Ki.onBlur,isOnChange:e===Ki.onChange,isOnAll:e===Ki.all,isOnTouch:e===Ki.onTouched});const vw="AsyncFunction";var kj=e=>!!e&&!!e.validate&&!!(pa(e.validate)&&e.validate.constructor.name===vw||Hn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===vw)),Oj=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),pb=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Tl=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=it(e,i);if(a){const{_f:s,...u}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(Tl(u,t))break}else if(Hn(u)&&Tl(u,t))break}}};function yw(e,t,n){const r=it(e,n);if(r||Np(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=it(t,a),u=it(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(u&&u.type)return{name:a,error:u};if(u&&u.root&&u.root.type)return{name:`${a}.root`,error:u.root};i.pop()}return{name:n}}var Ij=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Or(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||Ki.all))},Lj=(e,t,n)=>!e||!t||e===t||ti(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Vj=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Bj=(e,t)=>!jp(it(e,t)).length&&zn(e,t),j2=(e,t,n)=>{const r=ti(it(e,n));return nn(r,"root",t[n]),nn(e,n,r),e},Dh=e=>Ua(e);function bw(e,t,n="validate"){if(Dh(e)||Array.isArray(e)&&e.every(Dh)||$i(e)&&!e)return{type:n,message:Dh(e)?e:"",ref:t}}var ul=e=>Hn(e)&&!ep(e)?e:{value:e,message:""},mb=async(e,t,n,r,i,a)=>{const{ref:s,refs:u,required:f,maxLength:d,minLength:h,min:m,max:g,pattern:b,validate:w,name:x,valueAsNumber:A,mount:C}=e._f,E=it(n,x);if(!C||t.has(x))return{};const S=u?u[0]:s,R=we=>{i&&S.reportValidity&&(S.setCustomValidity($i(we)?"":we||""),S.reportValidity())},_={},F=X1(s),z=Jf(s),ie=F||z,ge=(A||Z1(s))&&xn(s.value)&&xn(E)||Jh(s)&&s.value===""||E===""||Array.isArray(E)&&!E.length,oe=k2.bind(null,x,r,_),O=(we,Se,U,ee=Ts.maxLength,K=Ts.minLength)=>{const k=we?Se:U;_[x]={type:we?ee:K,message:k,ref:s,...oe(we?ee:K,k)}};if(a?!Array.isArray(E)||!E.length:f&&(!ie&&(ge||Ir(E))||$i(E)&&!E||z&&!V2(u).isValid||F&&!N2(u).isValid)){const{value:we,message:Se}=Dh(f)?{value:!!f,message:f}:ul(f);if(we&&(_[x]={type:Ts.required,message:Se,ref:S,...oe(Ts.required,Se)},!r))return R(Se),_}if(!ge&&(!Ir(m)||!Ir(g))){let we,Se;const U=ul(g),ee=ul(m);if(!Ir(E)&&!isNaN(E)){const K=s.valueAsNumber||E&&+E;Ir(U.value)||(we=K>U.value),Ir(ee.value)||(Se=K<ee.value)}else{const K=s.valueAsDate||new Date(E),k=j=>new Date(new Date().toDateString()+" "+j),N=s.type=="time",te=s.type=="week";Ua(U.value)&&E&&(we=N?k(E)>k(U.value):te?E>U.value:K>new Date(U.value)),Ua(ee.value)&&E&&(Se=N?k(E)<k(ee.value):te?E<ee.value:K<new Date(ee.value))}if((we||Se)&&(O(!!we,U.message,ee.message,Ts.max,Ts.min),!r))return R(_[x].message),_}if((d||h)&&!ge&&(Ua(E)||a&&Array.isArray(E))){const we=ul(d),Se=ul(h),U=!Ir(we.value)&&E.length>+we.value,ee=!Ir(Se.value)&&E.length<+Se.value;if((U||ee)&&(O(U,we.message,Se.message),!r))return R(_[x].message),_}if(b&&!ge&&Ua(E)){const{value:we,message:Se}=ul(b);if(ep(we)&&!E.match(we)&&(_[x]={type:Ts.pattern,message:Se,ref:s,...oe(Ts.pattern,Se)},!r))return R(Se),_}if(w){if(pa(w)){const we=await w(E,n),Se=bw(we,S);if(Se&&(_[x]={...Se,...oe(Ts.validate,Se.message)},!r))return R(Se.message),_}else if(Hn(w)){let we={};for(const Se in w){if(!Or(we)&&!r)break;const U=bw(await w[Se](E,n),S,Se);U&&(we={...U,...oe(Se,U.message)},R(U.message),r&&(_[x]=we))}if(!Or(we)&&(_[x]={ref:S,...we},!r))return _}}return R(!0),_};const Nj={mode:Ki.onSubmit,reValidateMode:Ki.onChange,shouldFocusError:!0};function jj(e={}){let t={...Nj,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:pa(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Hn(t.defaultValues)||Hn(t.values)?$n(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:$n(i),s={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,d=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...h};const g={array:dw(),state:dw()},b=t.criteriaMode===Ki.all,w=be=>De=>{clearTimeout(d),d=setTimeout(be,De)},x=async be=>{if(!t.disabled&&(h.isValid||m.isValid||be)){const De=t.resolver?Or((await z()).errors):await ge(r,!0);De!==n.isValid&&g.state.next({isValid:De})}},A=(be,De)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((be||Array.from(u.mount)).forEach(Me=>{Me&&(De?nn(n.validatingFields,Me,De):zn(n.validatingFields,Me))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Or(n.validatingFields)}))},C=(be,De=[],Me,Xe,tt=!0,Je=!0)=>{if(Xe&&Me&&!t.disabled){if(s.action=!0,Je&&Array.isArray(it(r,be))){const gt=Me(it(r,be),Xe.argA,Xe.argB);tt&&nn(r,be,gt)}if(Je&&Array.isArray(it(n.errors,be))){const gt=Me(it(n.errors,be),Xe.argA,Xe.argB);tt&&nn(n.errors,be,gt),Bj(n.errors,be)}if((h.touchedFields||m.touchedFields)&&Je&&Array.isArray(it(n.touchedFields,be))){const gt=Me(it(n.touchedFields,be),Xe.argA,Xe.argB);tt&&nn(n.touchedFields,be,gt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=Wc(i,a)),g.state.next({name:be,isDirty:O(be,De),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else nn(a,be,De)},E=(be,De)=>{nn(n.errors,be,De),g.state.next({errors:n.errors})},S=be=>{n.errors=be,g.state.next({errors:n.errors,isValid:!1})},R=(be,De,Me,Xe)=>{const tt=it(r,be);if(tt){const Je=it(a,be,xn(Me)?it(i,be):Me);xn(Je)||Xe&&Xe.defaultChecked||De?nn(a,be,De?Je:gw(tt._f)):U(be,Je),s.mount&&x()}},_=(be,De,Me,Xe,tt)=>{let Je=!1,gt=!1;const Rt={name:be};if(!t.disabled){if(!Me||Xe){(h.isDirty||m.isDirty)&&(gt=n.isDirty,n.isDirty=Rt.isDirty=O(),Je=gt!==Rt.isDirty);const xt=_s(it(i,be),De);gt=!!it(n.dirtyFields,be),xt?zn(n.dirtyFields,be):nn(n.dirtyFields,be,!0),Rt.dirtyFields=n.dirtyFields,Je=Je||(h.dirtyFields||m.dirtyFields)&&gt!==!xt}if(Me){const xt=it(n.touchedFields,be);xt||(nn(n.touchedFields,be,Me),Rt.touchedFields=n.touchedFields,Je=Je||(h.touchedFields||m.touchedFields)&&xt!==Me)}Je&&tt&&g.state.next(Rt)}return Je?Rt:{}},F=(be,De,Me,Xe)=>{const tt=it(n.errors,be),Je=(h.isValid||m.isValid)&&$i(De)&&n.isValid!==De;if(t.delayError&&Me?(f=w(()=>E(be,Me)),f(t.delayError)):(clearTimeout(d),f=null,Me?nn(n.errors,be,Me):zn(n.errors,be)),(Me?!_s(tt,Me):tt)||!Or(Xe)||Je){const gt={...Xe,...Je&&$i(De)?{isValid:De}:{},errors:n.errors,name:be};n={...n,...gt},g.state.next(gt)}},z=async be=>{A(be,!0);const De=await t.resolver(a,t.context,Rj(be||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return A(be),De},ie=async be=>{const{errors:De}=await z(be);if(be)for(const Me of be){const Xe=it(De,Me);Xe?nn(n.errors,Me,Xe):zn(n.errors,Me)}else n.errors=De;return De},ge=async(be,De,Me={valid:!0})=>{for(const Xe in be){const tt=be[Xe];if(tt){const{_f:Je,...gt}=tt;if(Je){const Rt=u.array.has(Je.name),xt=tt._f&&kj(tt._f);xt&&h.validatingFields&&A([Xe],!0);const gn=await mb(tt,u.disabled,a,b,t.shouldUseNativeValidation&&!De,Rt);if(xt&&h.validatingFields&&A([Xe]),gn[Je.name]&&(Me.valid=!1,De))break;!De&&(it(gn,Je.name)?Rt?j2(n.errors,gn,Je.name):nn(n.errors,Je.name,gn[Je.name]):zn(n.errors,Je.name))}!Or(gt)&&await ge(gt,De,Me)}}return Me.valid},oe=()=>{for(const be of u.unMount){const De=it(r,be);De&&(De._f.refs?De._f.refs.every(Me=>!Pg(Me)):!Pg(De._f.ref))&&Qe(be)}u.unMount=new Set},O=(be,De)=>!t.disabled&&(be&&De&&nn(a,be,De),!_s(j(),i)),we=(be,De,Me)=>M2(be,u,{...s.mount?a:xn(De)?i:Ua(be)?{[be]:De}:De},Me,De),Se=be=>jp(it(s.mount?a:i,be,t.shouldUnregister?it(i,be,[]):[])),U=(be,De,Me={})=>{const Xe=it(r,be);let tt=De;if(Xe){const Je=Xe._f;Je&&(!Je.disabled&&nn(a,be,B2(De,Je)),tt=Jh(Je.ref)&&Ir(De)?"":De,O2(Je.ref)?[...Je.ref.options].forEach(gt=>gt.selected=tt.includes(gt.value)):Je.refs?Jf(Je.ref)?Je.refs.forEach(gt=>{(!gt.defaultChecked||!gt.disabled)&&(Array.isArray(tt)?gt.checked=!!tt.find(Rt=>Rt===gt.value):gt.checked=tt===gt.value||!!tt)}):Je.refs.forEach(gt=>gt.checked=gt.value===tt):Z1(Je.ref)?Je.ref.value="":(Je.ref.value=tt,Je.ref.type||g.state.next({name:be,values:$n(a)})))}(Me.shouldDirty||Me.shouldTouch)&&_(be,tt,Me.shouldTouch,Me.shouldDirty,!0),Me.shouldValidate&&te(be)},ee=(be,De,Me)=>{for(const Xe in De){if(!De.hasOwnProperty(Xe))return;const tt=De[Xe],Je=be+"."+Xe,gt=it(r,Je);(u.array.has(be)||Hn(tt)||gt&&!gt._f)&&!au(tt)?ee(Je,tt,Me):U(Je,tt,Me)}},K=(be,De,Me={})=>{const Xe=it(r,be),tt=u.array.has(be),Je=$n(De);nn(a,be,Je),tt?(g.array.next({name:be,values:$n(a)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&Me.shouldDirty&&g.state.next({name:be,dirtyFields:Wc(i,a),isDirty:O(be,Je)})):Xe&&!Xe._f&&!Ir(Je)?ee(be,Je,Me):U(be,Je,Me),pb(be,u)&&g.state.next({...n,name:be}),g.state.next({name:s.mount?be:void 0,values:$n(a)})},k=async be=>{s.mount=!0;const De=be.target;let Me=De.name,Xe=!0;const tt=it(r,Me),Je=xt=>{Xe=Number.isNaN(xt)||au(xt)&&isNaN(xt.getTime())||_s(xt,it(a,Me,xt))},gt=ml(t.mode),Rt=ml(t.reValidateMode);if(tt){let xt,gn;const yr=De.type?gw(tt._f):T2(be),Ut=be.type===Xh.BLUR||be.type===Xh.FOCUS_OUT,Pt=!Oj(tt._f)&&!t.resolver&&!it(n.errors,Me)&&!tt._f.deps||Vj(Ut,it(n.touchedFields,Me),n.isSubmitted,Rt,gt),It=pb(Me,u,Ut);nn(a,Me,yr),Ut?(!De||!De.readOnly)&&(tt._f.onBlur&&tt._f.onBlur(be),f&&f(0)):tt._f.onChange&&tt._f.onChange(be);const qt=_(Me,yr,Ut),fr=!Or(qt)||It;if(!Ut&&g.state.next({name:Me,type:be.type,values:$n(a)}),Pt)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?Ut&&x():Ut||x()),fr&&g.state.next({name:Me,...It?{}:qt});if(!Ut&&It&&g.state.next({...n}),t.resolver){const{errors:zr}=await z([Me]);if(Je(yr),Xe){const si=yw(n.errors,r,Me),Tr=yw(zr,r,si.name||Me);xt=Tr.error,Me=Tr.name,gn=Or(zr)}}else A([Me],!0),xt=(await mb(tt,u.disabled,a,b,t.shouldUseNativeValidation))[Me],A([Me]),Je(yr),Xe&&(xt?gn=!1:(h.isValid||m.isValid)&&(gn=await ge(r,!0)));Xe&&(tt._f.deps&&te(tt._f.deps),F(Me,gn,xt,qt))}},N=(be,De)=>{if(it(n.errors,De)&&be.focus)return be.focus(),1},te=async(be,De={})=>{let Me,Xe;const tt=ti(be);if(t.resolver){const Je=await ie(xn(be)?be:tt);Me=Or(Je),Xe=be?!tt.some(gt=>it(Je,gt)):Me}else be?(Xe=(await Promise.all(tt.map(async Je=>{const gt=it(r,Je);return await ge(gt&&gt._f?{[Je]:gt}:gt)}))).every(Boolean),!(!Xe&&!n.isValid)&&x()):Xe=Me=await ge(r);return g.state.next({...!Ua(be)||(h.isValid||m.isValid)&&Me!==n.isValid?{}:{name:be},...t.resolver||!be?{isValid:Me}:{},errors:n.errors}),De.shouldFocus&&!Xe&&Tl(r,N,be?tt:u.mount),Xe},j=be=>{const De={...s.mount?a:i};return xn(be)?De:Ua(be)?it(De,be):be.map(Me=>it(De,Me))},ce=(be,De)=>({invalid:!!it((De||n).errors,be),isDirty:!!it((De||n).dirtyFields,be),error:it((De||n).errors,be),isValidating:!!it(n.validatingFields,be),isTouched:!!it((De||n).touchedFields,be)}),ue=be=>{be&&ti(be).forEach(De=>zn(n.errors,De)),g.state.next({errors:be?n.errors:{}})},Ae=(be,De,Me)=>{const Xe=(it(r,be,{_f:{}})._f||{}).ref,tt=it(n.errors,be)||{},{ref:Je,message:gt,type:Rt,...xt}=tt;nn(n.errors,be,{...xt,...De,ref:Xe}),g.state.next({name:be,errors:n.errors,isValid:!1}),Me&&Me.shouldFocus&&Xe&&Xe.focus&&Xe.focus()},_e=(be,De)=>pa(be)?g.state.subscribe({next:Me=>"values"in Me&&be(we(void 0,De),Me)}):we(be,De,!0),Le=be=>g.state.subscribe({next:De=>{Lj(be.name,De.name,be.exact)&&Ij(De,be.formState||h,_t,be.reRenderRoot)&&be.callback({values:{...a},...n,...De,defaultValues:i})}}).unsubscribe,Ye=be=>(s.mount=!0,m={...m,...be.formState},Le({...be,formState:m})),Qe=(be,De={})=>{for(const Me of be?ti(be):u.mount)u.mount.delete(Me),u.array.delete(Me),De.keepValue||(zn(r,Me),zn(a,Me)),!De.keepError&&zn(n.errors,Me),!De.keepDirty&&zn(n.dirtyFields,Me),!De.keepTouched&&zn(n.touchedFields,Me),!De.keepIsValidating&&zn(n.validatingFields,Me),!t.shouldUnregister&&!De.keepDefaultValue&&zn(i,Me);g.state.next({values:$n(a)}),g.state.next({...n,...De.keepDirty?{isDirty:O()}:{}}),!De.keepIsValid&&x()},Ue=({disabled:be,name:De})=>{($i(be)&&s.mount||be||u.disabled.has(De))&&(be?u.disabled.add(De):u.disabled.delete(De))},Ge=(be,De={})=>{let Me=it(r,be);const Xe=$i(De.disabled)||$i(t.disabled);return nn(r,be,{...Me||{},_f:{...Me&&Me._f?Me._f:{ref:{name:be}},name:be,mount:!0,...De}}),u.mount.add(be),Me?Ue({disabled:$i(De.disabled)?De.disabled:t.disabled,name:be}):R(be,!0,De.value),{...Xe?{disabled:De.disabled||t.disabled}:{},...t.progressive?{required:!!De.required,min:Hc(De.min),max:Hc(De.max),minLength:Hc(De.minLength),maxLength:Hc(De.maxLength),pattern:Hc(De.pattern)}:{},name:be,onChange:k,onBlur:k,ref:tt=>{if(tt){Ge(be,De),Me=it(r,be);const Je=xn(tt.value)&&tt.querySelectorAll&&tt.querySelectorAll("input,select,textarea")[0]||tt,gt=_j(Je),Rt=Me._f.refs||[];if(gt?Rt.find(xt=>xt===Je):Je===Me._f.ref)return;nn(r,be,{_f:{...Me._f,...gt?{refs:[...Rt.filter(Pg),Je,...Array.isArray(it(i,be))?[{}]:[]],ref:{type:Je.type,name:be}}:{ref:Je}}}),R(be,!1,void 0,Je)}else Me=it(r,be,{}),Me._f&&(Me._f.mount=!1),(t.shouldUnregister||De.shouldUnregister)&&!(P2(u.array,be)&&s.action)&&u.unMount.add(be)}}},Ie=()=>t.shouldFocusError&&Tl(r,N,u.mount),Ne=be=>{$i(be)&&(g.state.next({disabled:be}),Tl(r,(De,Me)=>{const Xe=it(r,Me);Xe&&(De.disabled=Xe._f.disabled||be,Array.isArray(Xe._f.refs)&&Xe._f.refs.forEach(tt=>{tt.disabled=Xe._f.disabled||be}))},0,!1))},Te=(be,De)=>async Me=>{let Xe;Me&&(Me.preventDefault&&Me.preventDefault(),Me.persist&&Me.persist());let tt=$n(a);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Je,values:gt}=await z();n.errors=Je,tt=$n(gt)}else await ge(r);if(u.disabled.size)for(const Je of u.disabled)zn(tt,Je);if(zn(n.errors,"root"),Or(n.errors)){g.state.next({errors:{}});try{await be(tt,Me)}catch(Je){Xe=Je}}else De&&await De({...n.errors},Me),Ie(),setTimeout(Ie);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Or(n.errors)&&!Xe,submitCount:n.submitCount+1,errors:n.errors}),Xe)throw Xe},He=(be,De={})=>{it(r,be)&&(xn(De.defaultValue)?K(be,$n(it(i,be))):(K(be,De.defaultValue),nn(i,be,$n(De.defaultValue))),De.keepTouched||zn(n.touchedFields,be),De.keepDirty||(zn(n.dirtyFields,be),n.isDirty=De.defaultValue?O(be,$n(it(i,be))):O()),De.keepError||(zn(n.errors,be),h.isValid&&x()),g.state.next({...n}))},ht=(be,De={})=>{const Me=be?$n(be):i,Xe=$n(Me),tt=Or(be),Je=tt?i:Xe;if(De.keepDefaultValues||(i=Me),!De.keepValues){if(De.keepDirtyValues){const gt=new Set([...u.mount,...Object.keys(Wc(i,a))]);for(const Rt of Array.from(gt))it(n.dirtyFields,Rt)?nn(Je,Rt,it(a,Rt)):K(Rt,it(Je,Rt))}else{if(H1&&xn(be))for(const gt of u.mount){const Rt=it(r,gt);if(Rt&&Rt._f){const xt=Array.isArray(Rt._f.refs)?Rt._f.refs[0]:Rt._f.ref;if(Jh(xt)){const gn=xt.closest("form");if(gn){gn.reset();break}}}}if(De.keepFieldsRef)for(const gt of u.mount)K(gt,it(Je,gt));else r={}}a=t.shouldUnregister?De.keepDefaultValues?$n(i):{}:$n(Je),g.array.next({values:{...Je}}),g.state.next({values:{...Je}})}u={mount:De.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!h.isValid||!!De.keepIsValid||!!De.keepDirtyValues,s.watch=!!t.shouldUnregister,g.state.next({submitCount:De.keepSubmitCount?n.submitCount:0,isDirty:tt?!1:De.keepDirty?n.isDirty:!!(De.keepDefaultValues&&!_s(be,i)),isSubmitted:De.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:tt?{}:De.keepDirtyValues?De.keepDefaultValues&&a?Wc(i,a):n.dirtyFields:De.keepDefaultValues&&be?Wc(i,be):De.keepDirty?n.dirtyFields:{},touchedFields:De.keepTouched?n.touchedFields:{},errors:De.keepErrors?n.errors:{},isSubmitSuccessful:De.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ht=(be,De)=>ht(pa(be)?be(a):be,De),$t=(be,De={})=>{const Me=it(r,be),Xe=Me&&Me._f;if(Xe){const tt=Xe.refs?Xe.refs[0]:Xe.ref;tt.focus&&(tt.focus(),De.shouldSelect&&pa(tt.select)&&tt.select())}},_t=be=>{n={...n,...be}},Qt={control:{register:Ge,unregister:Qe,getFieldState:ce,handleSubmit:Te,setError:Ae,_subscribe:Le,_runSchema:z,_focusError:Ie,_getWatch:we,_getDirty:O,_setValid:x,_setFieldArray:C,_setDisabledField:Ue,_setErrors:S,_getFieldArray:Se,_reset:ht,_resetDefaultValues:()=>pa(t.defaultValues)&&t.defaultValues().then(be=>{Ht(be,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:oe,_disableForm:Ne,_subjects:g,_proxyFormState:h,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(be){s=be},get _defaultValues(){return i},get _names(){return u},set _names(be){u=be},get _formState(){return n},get _options(){return t},set _options(be){t={...t,...be}}},subscribe:Ye,trigger:te,register:Ge,handleSubmit:Te,watch:_e,setValue:K,getValues:j,reset:Ht,resetField:He,clearErrors:ue,unregister:Qe,setError:Ae,setFocus:$t,getFieldState:ce};return{...Qt,formControl:Qt}}var io=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},_g=(e,t,n={})=>n.shouldFocus||xn(n.shouldFocus)?n.focusName||`${e}.${xn(n.focusIndex)?t:n.focusIndex}.`:"",Mg=(e,t)=>[...e,...ti(t)],Fg=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Rg(e,t,n){return[...e.slice(0,t),...ti(n),...e.slice(t)]}var kg=(e,t,n)=>Array.isArray(e)?(xn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],Og=(e,t)=>[...ti(t),...ti(e)];function Kj(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return jp(r).length?r:[]}var Ig=(e,t)=>xn(t)?[]:Kj(e,ti(t).sort((n,r)=>n-r)),Lg=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},$w=(e,t,n)=>(e[t]=n,e);function Uj(e){const t=Qf(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:a,rules:s}=e,[u,f]=fe.default.useState(n._getFieldArray(r)),d=fe.default.useRef(n._getFieldArray(r).map(io)),h=fe.default.useRef(u),m=fe.default.useRef(!1);h.current=u,n._names.array.add(r),fe.default.useMemo(()=>s&&n.register(r,s),[n,s,r]),Kp(()=>n._subjects.array.subscribe({next:({values:_,name:F})=>{if(F===r||!F){const z=it(_,r);Array.isArray(z)&&(f(z),d.current=z.map(io))}}}).unsubscribe,[n,r]);const g=fe.default.useCallback(_=>{m.current=!0,n._setFieldArray(r,_)},[n,r]),b=(_,F)=>{const z=ti($n(_)),ie=Mg(n._getFieldArray(r),z);n._names.focus=_g(r,ie.length-1,F),d.current=Mg(d.current,z.map(io)),g(ie),f(ie),n._setFieldArray(r,ie,Mg,{argA:Fg(_)})},w=(_,F)=>{const z=ti($n(_)),ie=Og(n._getFieldArray(r),z);n._names.focus=_g(r,0,F),d.current=Og(d.current,z.map(io)),g(ie),f(ie),n._setFieldArray(r,ie,Og,{argA:Fg(_)})},x=_=>{const F=Ig(n._getFieldArray(r),_);d.current=Ig(d.current,_),g(F),f(F),!Array.isArray(it(n._fields,r))&&nn(n._fields,r,void 0),n._setFieldArray(r,F,Ig,{argA:_})},A=(_,F,z)=>{const ie=ti($n(F)),ge=Rg(n._getFieldArray(r),_,ie);n._names.focus=_g(r,_,z),d.current=Rg(d.current,_,ie.map(io)),g(ge),f(ge),n._setFieldArray(r,ge,Rg,{argA:_,argB:Fg(F)})},C=(_,F)=>{const z=n._getFieldArray(r);Lg(z,_,F),Lg(d.current,_,F),g(z),f(z),n._setFieldArray(r,z,Lg,{argA:_,argB:F},!1)},E=(_,F)=>{const z=n._getFieldArray(r);kg(z,_,F),kg(d.current,_,F),g(z),f(z),n._setFieldArray(r,z,kg,{argA:_,argB:F},!1)},S=(_,F)=>{const z=$n(F),ie=$w(n._getFieldArray(r),_,z);d.current=[...ie].map((ge,oe)=>!ge||oe===_?io():d.current[oe]),g(ie),f([...ie]),n._setFieldArray(r,ie,$w,{argA:_,argB:z},!0,!1)},R=_=>{const F=ti($n(_));d.current=F.map(io),g([...F]),f([...F]),n._setFieldArray(r,[...F],z=>z,{},!0,!1)};return fe.default.useEffect(()=>{if(n._state.action=!1,pb(r,n._names)&&n._subjects.state.next({...n._formState}),m.current&&(!ml(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!ml(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(_=>{const F=it(_.errors,r),z=it(n._formState.errors,r);(z?!F&&z.type||F&&(z.type!==F.type||z.message!==F.message):F&&F.type)&&(F?nn(n._formState.errors,r,F):zn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const _=it(n._fields,r);_&&_._f&&!(ml(n._options.reValidateMode).isOnSubmit&&ml(n._options.mode).isOnSubmit)&&mb(_,n._names.disabled,n._formValues,n._options.criteriaMode===Ki.all,n._options.shouldUseNativeValidation,!0).then(F=>!Or(F)&&n._subjects.state.next({errors:j2(n._formState.errors,F,r)}))}n._subjects.state.next({name:r,values:$n(n._formValues)}),n._names.focus&&Tl(n._fields,(_,F)=>{if(n._names.focus&&F.startsWith(n._names.focus)&&_.focus)return _.focus(),1}),n._names.focus="",n._setValid(),m.current=!1},[u,r,n]),fe.default.useEffect(()=>(!it(n._formValues,r)&&n._setFieldArray(r),()=>{const _=(F,z)=>{const ie=it(n._fields,F);ie&&ie._f&&(ie._f.mount=z)};n._options.shouldUnregister||a?n.unregister(r):_(r,!1)}),[r,n,i,a]),{swap:fe.default.useCallback(C,[g,r,n]),move:fe.default.useCallback(E,[g,r,n]),prepend:fe.default.useCallback(w,[g,r,n]),append:fe.default.useCallback(b,[g,r,n]),remove:fe.default.useCallback(x,[g,r,n]),insert:fe.default.useCallback(A,[g,r,n]),update:fe.default.useCallback(S,[g,r,n]),replace:fe.default.useCallback(R,[g,r,n]),fields:fe.default.useMemo(()=>u.map((_,F)=>({..._,[i]:d.current[F]||io()})),[u,i])}}function qj(e={}){const t=fe.default.useRef(void 0),n=fe.default.useRef(void 0),[r,i]=fe.default.useState({isDirty:!1,isValidating:!1,isLoading:pa(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:pa(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!pa(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...u}=jj(e);t.current={...u,formState:r}}const a=t.current.control;return a._options=e,Kp(()=>{const s=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(u=>({...u,isReady:!0})),a._formState.isReady=!0,s},[a]),fe.default.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),fe.default.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),fe.default.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),fe.default.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),fe.default.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),fe.default.useEffect(()=>{e.values&&!_s(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[a,e.values]),fe.default.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=_2(r,a),t.current}const mn=typeof document<"u"?fe.default.useLayoutEffect:()=>{};var Vg;const zj=(Vg=fe.default.useInsertionEffect)!==null&&Vg!==void 0?Vg:mn;function Mn(e){const t=I.useRef(null);return zj(()=>{t.current=e},[e]),I.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function Wj(e){let[t,n]=I.useState(e),r=I.useRef(null),i=Mn(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():n(s.value)});mn(()=>{r.current&&i()});let a=Mn(s=>{r.current=s(t),i()});return[t,a]}const tp={prefix:String(Math.round(Math.random()*1e10)),current:0},K2=fe.default.createContext(tp),Hj=fe.default.createContext(!1);let Gj=!!(typeof window<"u"&&window.document&&window.document.createElement),Bg=new WeakMap;function Yj(e=!1){let t=I.useContext(K2),n=I.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=fe.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let s=Bg.get(a);s==null?Bg.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,Bg.delete(a))}n.current=++t.current}return n.current}function Zj(e){let t=I.useContext(K2);t===tp&&!Gj&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Yj(!!e),r=t===tp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function Xj(e){let t=fe.default.useId(),[n]=I.useState(J1()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${tp.prefix}`;return e||`${r}-${t}`}const Jj=typeof fe.default.useId=="function"?Xj:Zj;function Qj(){return!1}function eK(){return!0}function tK(e){return()=>{}}function J1(){return typeof fe.default.useSyncExternalStore=="function"?fe.default.useSyncExternalStore(tK,Qj,eK):I.useContext(Hj)}let nK=!!(typeof window<"u"&&window.document&&window.document.createElement),Pl=new Map,cf;typeof FinalizationRegistry<"u"&&(cf=new FinalizationRegistry(e=>{Pl.delete(e)}));function jr(e){let[t,n]=I.useState(e),r=I.useRef(null),i=Jj(t),a=I.useRef(null);if(cf&&cf.register(a,i),nK){const s=Pl.get(i);s&&!s.includes(r)?s.push(r):Pl.set(i,[r])}return mn(()=>{let s=i;return()=>{cf&&cf.unregister(a),Pl.delete(s)}},[i]),I.useEffect(()=>{let s=r.current;return s&&n(s),()=>{s&&(r.current=null)}}),i}function rK(e,t){if(e===t)return e;let n=Pl.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Pl.get(t);return r?(r.forEach(i=>i.current=e),e):t}function Nl(e=[]){let t=jr(),[n,r]=Wj(t),i=I.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return mn(i,[t,i,...e]),n}function $o(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Xt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},es=e=>e&&"window"in e&&e.window===e?e:Xt(e).defaultView||window;function iK(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function aK(e){return iK(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let sK=!1;function Up(){return sK}function Sn(e,t){if(!Up())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:aK(n)?n=n.host:n=n.parentNode}return!1}const nr=(e=document)=>{var t;if(!Up())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function tn(e){return Up()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class oK{get currentNode(){return this._currentNode}set currentNode(t){if(!Sn(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=r,u=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});n.push(u),u.currentNode=i,this._currentSetFor.add(u),r=i=s.host}else r=r.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return Sn(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let a=this.nextNode();return a&&(this.currentNode=a),a}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let a;if(typeof this.filter=="function"?a=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(a=this.filter.acceptNode(n)),a===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let s=this.lastChild();return s&&(this.currentNode=s),s}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const f=s.shadowRoot;if(f){const d=this._doc.createTreeWalker(f,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var u;if(typeof this.filter=="function")return this.filter(s);if(!((u=this.filter)===null||u===void 0)&&u.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const a=n.shadowRoot;if(a){const s=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function uK(e,t,n,r){return Up()?new oK(e,t,n,r):e.createTreeWalker(t,n,r)}function U2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=U2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function lK(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=U2(e))&&(r&&(r+=" "),r+=t);return r}function Jt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],s=r[i];typeof a=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=$o(a,s):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[i]=lK(a,s):i==="id"&&a&&s?t.id=rK(a,s):t[i]=s!==void 0?s:a}}return t}const cK=new Set(["id"]),fK=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),dK=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),hK=new Set(["dir","lang","hidden","inert","translate"]),xw=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),pK=/^(data-.*)$/;function Us(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:s}=t,u={};for(const f in e)Object.prototype.hasOwnProperty.call(e,f)&&(cK.has(f)||n&&fK.has(f)||r&&dK.has(f)||i&&hK.has(f)||a&&xw.has(f)||f.endsWith("Capture")&&xw.has(f.slice(0,-7))||s!=null&&s.has(f)||pK.test(f))&&(u[f]=e[f]);return u}function xi(e){if(mK())e.focus({preventScroll:!0});else{let t=gK(e);e.focus(),vK(t)}}let ah=null;function mK(){if(ah==null){ah=!1;try{document.createElement("div").focus({get preventScroll(){return ah=!0,!0}})}catch{}}return ah}function gK(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function vK(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function qp(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Q1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function qs(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Vs=qs(function(){return Q1(/^Mac/i)}),yK=qs(function(){return Q1(/^iPhone/i)}),q2=qs(function(){return Q1(/^iPad/i)||Vs()&&navigator.maxTouchPoints>1}),ed=qs(function(){return yK()||q2()}),Ah=qs(function(){return Vs()||ed()}),e4=qs(function(){return qp(/AppleWebKit/i)&&!z2()}),z2=qs(function(){return qp(/Chrome/i)}),t4=qs(function(){return qp(/Android/i)}),bK=qs(function(){return qp(/Firefox/i)}),$K=I.createContext({isNative:!0,open:wK,useHref:e=>e});function zp(){return I.useContext($K)}function wu(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:s,altKey:u,shiftKey:f}=t;bK()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Vs()?a=!0:s=!0);let d=e4()&&Vs()&&!q2()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:u,shiftKey:f}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:u,shiftKey:f,bubbles:!0,cancelable:!0});wu.isOpening=n,xi(e),e.dispatchEvent(d),wu.isOpening=!1}wu.isOpening=!1;function xK(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function wK(e,t){xK(e,n=>wu(n,t))}function CK(e){let t=zp();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let co=new Map,gb=new Set;function ww(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=co.get(r.target);i||(i=new Set,co.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=co.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),co.delete(r.target)),co.size===0)){for(let a of gb)a();gb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?ww():document.addEventListener("DOMContentLoaded",ww));function EK(){for(const[e]of co)"isConnected"in e&&!e.isConnected&&co.delete(e)}function W2(e){requestAnimationFrame(()=>{EK(),co.size===0?e():gb.add(e)})}function Eo(){let e=I.useRef(new Map),t=I.useCallback((i,a,s,u)=>{let f=u!=null&&u.once?(...d)=>{e.current.delete(s),s(...d)}:s;e.current.set(s,{type:a,eventTarget:i,fn:f,options:u}),i.addEventListener(a,f,u)},[]),n=I.useCallback((i,a,s,u)=>{var f;let d=((f=e.current.get(s))===null||f===void 0?void 0:f.fn)||s;i.removeEventListener(a,d,u),e.current.delete(s)},[]),r=I.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return I.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function jl(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=jr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function vb(e,t){const n=I.useRef(!0),r=I.useRef(null);I.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),I.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((a,s)=>!Object.is(a,i[s])))&&e(),r.current=t},t)}function Cw(e,t){const n=I.useRef(!0),r=I.useRef(null);mn(()=>(n.current=!0,()=>{n.current=!1}),[]),mn(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function SK(){return typeof window.ResizeObserver<"u"}function Ew(e){const{ref:t,box:n,onResize:r}=e;I.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(SK()){const a=new window.ResizeObserver(s=>{s.length&&r()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function H2(e,t){mn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Pf(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Wp(e,t){let n=e;for(Pf(n,t)&&(n=n.parentElement);n&&!Pf(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function DK(e,t){const n=[];for(;e&&e!==document.documentElement;)Pf(e,t)&&n.push(e),e=e.parentElement;return n}let AK=0;const Ng=new Map;function td(e){let[t,n]=I.useState();return mn(()=>{if(!e)return;let r=Ng.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${AK++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},Ng.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Ng.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function qa(e,t,n,r){let i=Mn(n),a=n==null;I.useEffect(()=>{if(a||!e.current)return;let s=e.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[e,t,r,a,i])}function G2(e,t){let n=Sw(e,t,"left"),r=Sw(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,u=e.scrollTop,{borderTopWidth:f,borderLeftWidth:d,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),w=s+parseInt(d,10),x=u+parseInt(f,10),A=w+e.clientWidth,C=x+e.clientHeight,E=parseInt(h,10)||0,S=parseInt(g,10)||0,R=parseInt(m,10)||0,_=parseInt(b,10)||0;n<=s+_?s=n-parseInt(d,10)-_:n+i>A-R&&(s+=n+i-A+R),r<=x+E?u=r-parseInt(f,10)-E:r+a>C-S&&(u+=r+a-C+S),e.scrollLeft=s,e.scrollTop=u}function Sw(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function np(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let f=DK(e);for(let d of f)G2(d,e)}else{var n;let{left:f,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:m}=e.getBoundingClientRect();if(Math.abs(f-h)>1||Math.abs(d-m)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function yb(e){return e.mozInputSource===0&&e.isTrusted?!0:t4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function TK(e){return!t4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Y2(e,t){let n=I.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function n4(e,t,n){let r=Mn(()=>{n&&n(t)});I.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",r),()=>{a==null||a.removeEventListener("reset",r)}},[e,r])}const PK="react-aria-clear-focus",_K="react-aria-focus";function hl(e){return Vs()?e.metaKey:e.ctrlKey}const MK=typeof Element<"u"&&"checkVisibility"in Element.prototype;function FK(e){const t=es(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:s,visibility:u}=a(e);i=s!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function RK(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function r4(e,t){return MK?e.checkVisibility():e.nodeName!=="#comment"&&FK(e)&&RK(e,t)&&(!e.parentElement||r4(e.parentElement,e))}const i4=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],kK=i4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";i4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const OK=i4.join(':not([hidden]):not([tabindex="-1"]),');function Z2(e){return e.matches(kK)&&r4(e)&&!X2(e)}function IK(e){return e.matches(OK)&&r4(e)&&!X2(e)}function X2(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function wi(e,t,n){let[r,i]=I.useState(e||t),a=I.useRef(e!==void 0),s=e!==void 0;I.useEffect(()=>{let d=a.current;d!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let u=s?e:r,f=I.useCallback((d,...h)=>{let m=(g,...b)=>{n&&(Object.is(u,g)||n(g,...b)),s||(u=g)};typeof d=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...w)=>{let x=d(s?u:b,...w);return m(x,...h),s?b:x})):(s||i(d),m(d,...h))},[s,u,n]);return[u,f]}function Kl(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function sh(e,t){let n=e,r=0,i=t.toString(),a=i.toLowerCase().indexOf("e-");if(a>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+a;else{let s=i.indexOf(".");s>=0&&(r=i.length-s)}if(r>0){let s=Math.pow(10,r);n=Math.round(n*s)/s}return n}function Gc(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=sh(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(sh(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(sh((n-t)/r,r))*r),a=sh(a,r),a}function a4(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function J2(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Q2(e){let t=I.useRef({isFocused:!1,observer:null});mn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Mn(r=>{e==null||e(r)});return I.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=s=>{if(t.current.isFocused=!1,i.disabled){let u=a4(s);n(u)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let rp=!1;function Dw(e){for(;e&&!Z2(e);)e=e.parentElement;let t=es(e),n=t.document.activeElement;if(!n||n===e)return;rp=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},a=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,xi(n),f()))},s=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},u=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,xi(n),f()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",u,!0),t.addEventListener("focus",s,!0);let f=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",u,!0),t.removeEventListener("focus",s,!0),rp=!1,r=!1},d=requestAnimationFrame(f);return f}let gl="default",bb="",Th=new WeakMap;function $b(e){if(ed()){if(gl==="default"){const t=Xt(e);bb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}gl="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Th.set(e,e.style[t]),e.style[t]="none"}}function Ph(e){if(ed()){if(gl!=="disabled")return;gl="restoring",setTimeout(()=>{W2(()=>{if(gl==="restoring"){const t=Xt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=bb||""),bb="",gl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Th.has(e)){let t=Th.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Th.delete(e)}}const s4=fe.default.createContext({register:()=>{}});s4.displayName="PressResponderContext";function LK(e,t){return t.get?t.get.call(e):t.value}function eP(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function VK(e,t){var n=eP(e,t,"get");return LK(e,n)}function BK(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function nd(e,t,n){BK(e,t),t.set(e,n)}function NK(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Aw(e,t,n){var r=eP(e,t,"set");return NK(e,r,n),n}function jK(e){let t=I.useContext(s4);if(t){let{register:n,...r}=t;e=Jt(r,e),n()}return H2(t,e.ref),e}var oh=new WeakMap;class uh{continuePropagation(){Aw(this,oh,!1)}get shouldStopPropagation(){return VK(this,oh)}constructor(t,n,r,i){nd(this,oh,{writable:!0,value:void 0}),Aw(this,oh,!0);var a;let s=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const u=s==null?void 0:s.getBoundingClientRect();let f,d=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),u&&(h!=null&&m!=null?(f=h-u.left,d=m-u.top):(f=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=f,this.y=d}}const Tw=Symbol("linkClicked"),Pw="react-aria-pressable-style",_w="data-react-aria-pressable";function rd(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:s,isDisabled:u,isPressed:f,preventFocusOnPress:d,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...b}=jK(e),[w,x]=I.useState(!1),A=I.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:C,removeAllGlobalListeners:E}=Eo(),S=Mn((O,we)=>{let Se=A.current;if(u||Se.didFirePressStart)return!1;let U=!0;if(Se.isTriggeringEvent=!0,r){let ee=new uh("pressstart",we,O);r(ee),U=ee.shouldStopPropagation}return n&&n(!0),Se.isTriggeringEvent=!1,Se.didFirePressStart=!0,x(!0),U}),R=Mn((O,we,Se=!0)=>{let U=A.current;if(!U.didFirePressStart)return!1;U.didFirePressStart=!1,U.isTriggeringEvent=!0;let ee=!0;if(i){let K=new uh("pressend",we,O);i(K),ee=K.shouldStopPropagation}if(n&&n(!1),x(!1),t&&Se&&!u){let K=new uh("press",we,O);t(K),ee&&(ee=K.shouldStopPropagation)}return U.isTriggeringEvent=!1,ee}),_=Mn((O,we)=>{let Se=A.current;if(u)return!1;if(a){Se.isTriggeringEvent=!0;let U=new uh("pressup",we,O);return a(U),Se.isTriggeringEvent=!1,U.shouldStopPropagation}return!0}),F=Mn(O=>{let we=A.current;if(we.isPressed&&we.target){we.didFirePressStart&&we.pointerType!=null&&R(Jo(we.target,O),we.pointerType,!1),we.isPressed=!1,we.isOverTarget=!1,we.activePointerId=null,we.pointerType=null,E(),m||Ph(we.target);for(let Se of we.disposables)Se();we.disposables=[]}}),z=Mn(O=>{h&&F(O)}),ie=Mn(O=>{s==null||s(O)}),ge=Mn((O,we)=>{if(s){let Se=new MouseEvent("click",O);J2(Se,we),s(a4(Se))}}),oe=I.useMemo(()=>{let O=A.current,we={onKeyDown(U){if(jg(U.nativeEvent,U.currentTarget)&&Sn(U.currentTarget,tn(U.nativeEvent))){var ee;Rw(tn(U.nativeEvent),U.key)&&U.preventDefault();let K=!0;if(!O.isPressed&&!U.repeat){O.target=U.currentTarget,O.isPressed=!0,O.pointerType="keyboard",K=S(U,"keyboard");let k=U.currentTarget,N=te=>{jg(te,k)&&!te.repeat&&Sn(k,tn(te))&&O.target&&_(Jo(O.target,te),"keyboard")};C(Xt(U.currentTarget),"keyup",$o(N,Se),!0)}K&&U.stopPropagation(),U.metaKey&&Vs()&&((ee=O.metaKeyEvents)===null||ee===void 0||ee.set(U.key,U.nativeEvent))}else U.key==="Meta"&&(O.metaKeyEvents=new Map)},onClick(U){if(!(U&&!Sn(U.currentTarget,tn(U.nativeEvent)))&&U&&U.button===0&&!O.isTriggeringEvent&&!wu.isOpening){let ee=!0;if(u&&U.preventDefault(),!O.ignoreEmulatedMouseEvents&&!O.isPressed&&(O.pointerType==="virtual"||yb(U.nativeEvent))){let K=S(U,"virtual"),k=_(U,"virtual"),N=R(U,"virtual");ie(U),ee=K&&k&&N}else if(O.isPressed&&O.pointerType!=="keyboard"){let K=O.pointerType||U.nativeEvent.pointerType||"virtual",k=_(Jo(U.currentTarget,U),K),N=R(Jo(U.currentTarget,U),K,!0);ee=k&&N,O.isOverTarget=!1,ie(U),F(U)}O.ignoreEmulatedMouseEvents=!1,ee&&U.stopPropagation()}}},Se=U=>{var ee;if(O.isPressed&&O.target&&jg(U,O.target)){var K;Rw(tn(U),U.key)&&U.preventDefault();let N=tn(U),te=Sn(O.target,tn(U));R(Jo(O.target,U),"keyboard",te),te&&ge(U,O.target),E(),U.key!=="Enter"&&o4(O.target)&&Sn(O.target,N)&&!U[Tw]&&(U[Tw]=!0,wu(O.target,U,!1)),O.isPressed=!1,(K=O.metaKeyEvents)===null||K===void 0||K.delete(U.key)}else if(U.key==="Meta"&&(!((ee=O.metaKeyEvents)===null||ee===void 0)&&ee.size)){var k;let N=O.metaKeyEvents;O.metaKeyEvents=void 0;for(let te of N.values())(k=O.target)===null||k===void 0||k.dispatchEvent(new KeyboardEvent("keyup",te))}};if(typeof PointerEvent<"u"){we.onPointerDown=K=>{if(K.button!==0||!Sn(K.currentTarget,tn(K.nativeEvent)))return;if(TK(K.nativeEvent)){O.pointerType="virtual";return}O.pointerType=K.pointerType;let k=!0;if(!O.isPressed){O.isPressed=!0,O.isOverTarget=!0,O.activePointerId=K.pointerId,O.target=K.currentTarget,m||$b(O.target),k=S(K,O.pointerType);let N=tn(K.nativeEvent);"releasePointerCapture"in N&&N.releasePointerCapture(K.pointerId),C(Xt(K.currentTarget),"pointerup",U,!1),C(Xt(K.currentTarget),"pointercancel",ee,!1)}k&&K.stopPropagation()},we.onMouseDown=K=>{if(Sn(K.currentTarget,tn(K.nativeEvent))&&K.button===0){if(d){let k=Dw(K.target);k&&O.disposables.push(k)}K.stopPropagation()}},we.onPointerUp=K=>{!Sn(K.currentTarget,tn(K.nativeEvent))||O.pointerType==="virtual"||K.button===0&&!O.isPressed&&_(K,O.pointerType||K.pointerType)},we.onPointerEnter=K=>{K.pointerId===O.activePointerId&&O.target&&!O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!0,S(Jo(O.target,K),O.pointerType))},we.onPointerLeave=K=>{K.pointerId===O.activePointerId&&O.target&&O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!1,R(Jo(O.target,K),O.pointerType,!1),z(K))};let U=K=>{if(K.pointerId===O.activePointerId&&O.isPressed&&K.button===0&&O.target){if(Sn(O.target,tn(K))&&O.pointerType!=null){let k=!1,N=setTimeout(()=>{O.isPressed&&O.target instanceof HTMLElement&&(k?F(K):(xi(O.target),O.target.click()))},80);C(K.currentTarget,"click",()=>k=!0,!0),O.disposables.push(()=>clearTimeout(N))}else F(K);O.isOverTarget=!1}},ee=K=>{F(K)};we.onDragStart=K=>{Sn(K.currentTarget,tn(K.nativeEvent))&&F(K)}}else if(process.env.NODE_ENV==="test"){we.onMouseDown=K=>{if(K.button!==0||!Sn(K.currentTarget,tn(K.nativeEvent)))return;if(O.ignoreEmulatedMouseEvents){K.stopPropagation();return}if(O.isPressed=!0,O.isOverTarget=!0,O.target=K.currentTarget,O.pointerType=yb(K.nativeEvent)?"virtual":"mouse",kp.flushSync(()=>S(K,O.pointerType))&&K.stopPropagation(),d){let N=Dw(K.target);N&&O.disposables.push(N)}C(Xt(K.currentTarget),"mouseup",U,!1)},we.onMouseEnter=K=>{if(!Sn(K.currentTarget,tn(K.nativeEvent)))return;let k=!0;O.isPressed&&!O.ignoreEmulatedMouseEvents&&O.pointerType!=null&&(O.isOverTarget=!0,k=S(K,O.pointerType)),k&&K.stopPropagation()},we.onMouseLeave=K=>{if(!Sn(K.currentTarget,tn(K.nativeEvent)))return;let k=!0;O.isPressed&&!O.ignoreEmulatedMouseEvents&&O.pointerType!=null&&(O.isOverTarget=!1,k=R(K,O.pointerType,!1),z(K)),k&&K.stopPropagation()},we.onMouseUp=K=>{Sn(K.currentTarget,tn(K.nativeEvent))&&!O.ignoreEmulatedMouseEvents&&K.button===0&&!O.isPressed&&_(K,O.pointerType||"mouse")};let U=K=>{if(K.button===0){if(O.ignoreEmulatedMouseEvents){O.ignoreEmulatedMouseEvents=!1;return}O.target&&O.target.contains(K.target)&&O.pointerType!=null||F(K),O.isOverTarget=!1}};we.onTouchStart=K=>{if(!Sn(K.currentTarget,tn(K.nativeEvent)))return;let k=KK(K.nativeEvent);if(!k)return;O.activePointerId=k.identifier,O.ignoreEmulatedMouseEvents=!0,O.isOverTarget=!0,O.isPressed=!0,O.target=K.currentTarget,O.pointerType="touch",m||$b(O.target),S(ao(O.target,K),O.pointerType)&&K.stopPropagation(),C(es(K.currentTarget),"scroll",ee,!0)},we.onTouchMove=K=>{if(!Sn(K.currentTarget,tn(K.nativeEvent)))return;if(!O.isPressed){K.stopPropagation();return}let k=Mw(K.nativeEvent,O.activePointerId),N=!0;k&&Fw(k,K.currentTarget)?!O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!0,N=S(ao(O.target,K),O.pointerType)):O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!1,N=R(ao(O.target,K),O.pointerType,!1),z(ao(O.target,K))),N&&K.stopPropagation()},we.onTouchEnd=K=>{if(!Sn(K.currentTarget,tn(K.nativeEvent)))return;if(!O.isPressed){K.stopPropagation();return}let k=Mw(K.nativeEvent,O.activePointerId),N=!0;k&&Fw(k,K.currentTarget)&&O.pointerType!=null?(_(ao(O.target,K),O.pointerType),N=R(ao(O.target,K),O.pointerType),ge(K.nativeEvent,O.target)):O.isOverTarget&&O.pointerType!=null&&(N=R(ao(O.target,K),O.pointerType,!1)),N&&K.stopPropagation(),O.isPressed=!1,O.activePointerId=null,O.isOverTarget=!1,O.ignoreEmulatedMouseEvents=!0,O.target&&!m&&Ph(O.target),E()},we.onTouchCancel=K=>{Sn(K.currentTarget,tn(K.nativeEvent))&&(K.stopPropagation(),O.isPressed&&F(ao(O.target,K)))};let ee=K=>{O.isPressed&&Sn(tn(K),O.target)&&F({currentTarget:O.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};we.onDragStart=K=>{Sn(K.currentTarget,tn(K.nativeEvent))&&F(K)}}return we},[C,u,d,E,m,F,z,R,S,_,ie,ge]);return I.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const O=Xt(g.current);if(!O||!O.head||O.getElementById(Pw))return;const we=O.createElement("style");we.id=Pw,we.textContent=`
28
+ @layer {
29
+ [${_w}] {
30
+ touch-action: pan-x pan-y pinch-zoom;
31
+ }
32
+ }
33
+ `.trim(),O.head.prepend(we)},[g]),I.useEffect(()=>{let O=A.current;return()=>{var we;m||Ph((we=O.target)!==null&&we!==void 0?we:void 0);for(let Se of O.disposables)Se();O.disposables=[]}},[m]),{isPressed:f||w,pressProps:Jt(b,oe,{[_w]:!0})}}function o4(e){return e.tagName==="A"&&e.hasAttribute("href")}function jg(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof es(i).HTMLInputElement&&!tP(i,n)||i instanceof es(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&o4(i))&&n!=="Enter")}function KK(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Mw(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function ao(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Jo(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function UK(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function qK(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Fw(e,t){let n=t.getBoundingClientRect(),r=UK(e);return qK(n,r)}function zK(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!o4(e)}function Rw(e,t){return e instanceof HTMLInputElement?!tP(e,t):zK(e)}const WK=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function tP(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":WK.has(e.type)}let Pu=null,HK=new Set,bf=new Map,Cu=!1,xb=!1;function Hp(e,t){for(let n of HK)n(e,t)}function GK(e){return!(e.metaKey||!Vs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ip(e){Cu=!0,GK(e)&&(Pu="keyboard",Hp("keyboard",e))}function Ni(e){Pu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Cu=!0,Hp("pointer",e))}function nP(e){yb(e)&&(Cu=!0,Pu="virtual")}function rP(e){e.target===window||e.target===document||rp||!e.isTrusted||(!Cu&&!xb&&(Pu="virtual",Hp("virtual",e)),Cu=!1,xb=!1)}function iP(){rp||(Cu=!1,xb=!0)}function kw(e){if(typeof window>"u"||typeof document>"u"||bf.get(es(e)))return;const t=es(e),n=Xt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Cu=!0,r.apply(this,arguments)},n.addEventListener("keydown",ip,!0),n.addEventListener("keyup",ip,!0),n.addEventListener("click",nP,!0),t.addEventListener("focus",rP,!0),t.addEventListener("blur",iP,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ni,!0),n.addEventListener("pointermove",Ni,!0),n.addEventListener("pointerup",Ni,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Ni,!0),n.addEventListener("mousemove",Ni,!0),n.addEventListener("mouseup",Ni,!0)),t.addEventListener("beforeunload",()=>{aP(e)},{once:!0}),bf.set(t,{focus:r})}const aP=(e,t)=>{const n=es(e),r=Xt(e);t&&r.removeEventListener("DOMContentLoaded",t),bf.has(n)&&(n.HTMLElement.prototype.focus=bf.get(n).focus,r.removeEventListener("keydown",ip,!0),r.removeEventListener("keyup",ip,!0),r.removeEventListener("click",nP,!0),n.removeEventListener("focus",rP,!0),n.removeEventListener("blur",iP,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ni,!0),r.removeEventListener("pointermove",Ni,!0),r.removeEventListener("pointerup",Ni,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Ni,!0),r.removeEventListener("mousemove",Ni,!0),r.removeEventListener("mouseup",Ni,!0)),bf.delete(n))};function YK(e){const t=Xt(e);let n;return t.readyState!=="loading"?kw(e):(n=()=>{kw(e)},t.addEventListener("DOMContentLoaded",n)),()=>aP(e,n)}typeof document<"u"&&YK();function Ow(){return Pu!=="pointer"}function _f(){return Pu}function sP(e){Pu=e,Hp(e,null)}function Eu(e){const t=Xt(e),n=nr(t);if(_f()==="virtual"){let r=n;W2(()=>{nr(t)===r&&e.isConnected&&xi(e)})}else xi(e)}function ZK(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=I.useCallback(f=>{if(f.target===f.currentTarget)return r&&r(f),i&&i(!1),!0},[r,i]),s=Q2(a),u=I.useCallback(f=>{const d=Xt(f.target),h=d?nr(d):nr();f.target===f.currentTarget&&h===tn(f.nativeEvent)&&(n&&n(f),i&&i(!0),s(f))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?a:void 0}}}function Iw(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function oP(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Iw(e.onKeyDown),onKeyUp:Iw(e.onKeyUp)}}}let XK=fe.default.createContext(null);function JK(e){let t=I.useContext(XK)||{};H2(t,e);let{ref:n,...r}=t;return r}function u4(e,t){let{focusProps:n}=ZK(e),{keyboardProps:r}=oP(e),i=Jt(n,r),a=JK(t),s=e.isDisabled?{}:a,u=I.useRef(e.autoFocus);I.useEffect(()=>{u.current&&t.current&&Eu(t.current),u.current=!1},[t]);let f=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(f=void 0),{focusableProps:Jt({...i,tabIndex:f},s)}}function QK({children:e}){let t=I.useMemo(()=>({register:()=>{}}),[]);return fe.default.createElement(s4.Provider,{value:t},e)}function Ql(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=I.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:u}=Eo(),f=I.useCallback(m=>{m.currentTarget.contains(m.target)&&a.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(a.current.isFocusWithin=!1,u(),n&&n(m),i&&i(!1))},[n,i,a,u]),d=Q2(f),h=I.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=Xt(m.target),b=nr(g);if(!a.current.isFocusWithin&&b===tn(m.nativeEvent)){r&&r(m),i&&i(!0),a.current.isFocusWithin=!0,d(m);let w=m.currentTarget;s(g,"focus",x=>{if(a.current.isFocusWithin&&!Sn(w,x.target)){let A=new g.defaultView.FocusEvent("blur",{relatedTarget:x.target});J2(A,w);let C=a4(A);f(C)}},{capture:!0})}},[r,i,d,s,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:f}}}let ap=!1,lh=0;function wb(){ap=!0,setTimeout(()=>{ap=!1},50)}function Lw(e){e.pointerType==="touch"&&wb()}function eU(){if(!(typeof document>"u"))return lh===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Lw):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",wb)),lh++,()=>{lh--,!(lh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Lw):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",wb))}}function tU(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,s]=I.useState(!1),u=I.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;I.useEffect(eU,[]);let{addGlobalListener:f,removeAllGlobalListeners:d}=Eo(),{hoverProps:h,triggerHoverEnd:m}=I.useMemo(()=>{let g=(x,A)=>{if(u.pointerType=A,i||A==="touch"||u.isHovered||!x.currentTarget.contains(x.target))return;u.isHovered=!0;let C=x.currentTarget;u.target=C,f(Xt(x.target),"pointerover",E=>{u.isHovered&&u.target&&!Sn(u.target,E.target)&&b(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:C,pointerType:A}),n&&n(!0),s(!0)},b=(x,A)=>{let C=u.target;u.pointerType="",u.target=null,!(A==="touch"||!u.isHovered||!C)&&(u.isHovered=!1,d(),r&&r({type:"hoverend",target:C,pointerType:A}),n&&n(!1),s(!1))},w={};return typeof PointerEvent<"u"?(w.onPointerEnter=x=>{ap&&x.pointerType==="mouse"||g(x,x.pointerType)},w.onPointerLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,x.pointerType)}):process.env.NODE_ENV==="test"&&(w.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},w.onMouseEnter=x=>{!u.ignoreEmulatedMouseEvents&&!ap&&g(x,"mouse"),u.ignoreEmulatedMouseEvents=!1},w.onMouseLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,"mouse")}),{hoverProps:w,triggerHoverEnd:b}},[t,n,r,i,u,f,d]);return I.useEffect(()=>{i&&m({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:h,isHovered:a}}function nU(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=I.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Mn(f=>{n&&ch(f,t)&&(i&&i(f),a.current.isPointerDown=!0)}),u=Mn(f=>{n&&n(f)});I.useEffect(()=>{let f=a.current;if(r)return;const d=t.current,h=Xt(d);if(typeof PointerEvent<"u"){let m=g=>{f.isPointerDown&&ch(g,t)&&u(g),f.isPointerDown=!1};return h.addEventListener("pointerdown",s,!0),h.addEventListener("click",m,!0),()=>{h.removeEventListener("pointerdown",s,!0),h.removeEventListener("click",m,!0)}}else if(process.env.NODE_ENV==="test"){let m=b=>{f.ignoreEmulatedMouseEvents?f.ignoreEmulatedMouseEvents=!1:f.isPointerDown&&ch(b,t)&&u(b),f.isPointerDown=!1},g=b=>{f.ignoreEmulatedMouseEvents=!0,f.isPointerDown&&ch(b,t)&&u(b),f.isPointerDown=!1};return h.addEventListener("mousedown",s,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",s,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",s,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",s,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,s,u])}function ch(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function uP(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=I.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:s}=Eo(),u=Mn((h,m,g,b)=>{g===0&&b===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey})),n==null||n({type:"move",pointerType:m,deltaX:g,deltaY:b,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))}),f=Mn((h,m)=>{Ph(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:I.useMemo(()=>{let h={},m=()=>{$b(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=C=>{if(C.button===0){var E,S,R,_;u(C,"mouse",C.pageX-((R=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageX)!==null&&R!==void 0?R:0),C.pageY-((_=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&_!==void 0?_:0)),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY}}},w=C=>{C.button===0&&(f(C,"mouse"),s(window,"mousemove",b,!1),s(window,"mouseup",w,!1))};h.onMouseDown=C=>{C.button===0&&(m(),C.stopPropagation(),C.preventDefault(),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY},a(window,"mousemove",b,!1),a(window,"mouseup",w,!1))};let x=C=>{let E=[...C.changedTouches].findIndex(({identifier:z})=>z===i.current.id);if(E>=0){var S,R;let{pageX:z,pageY:ie}=C.changedTouches[E];var _,F;u(C,"touch",z-((_=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageX)!==null&&_!==void 0?_:0),ie-((F=(R=i.current.lastPosition)===null||R===void 0?void 0:R.pageY)!==null&&F!==void 0?F:0)),i.current.lastPosition={pageX:z,pageY:ie}}},A=C=>{[...C.changedTouches].findIndex(({identifier:S})=>S===i.current.id)>=0&&(f(C,"touch"),i.current.id=null,s(window,"touchmove",x),s(window,"touchend",A),s(window,"touchcancel",A))};h.onTouchStart=C=>{if(C.changedTouches.length===0||i.current.id!=null)return;let{pageX:E,pageY:S,identifier:R}=C.changedTouches[0];m(),C.stopPropagation(),C.preventDefault(),i.current.lastPosition={pageX:E,pageY:S},i.current.id=R,a(window,"touchmove",x,!1),a(window,"touchend",A,!1),a(window,"touchcancel",A,!1)}}else{let b=x=>{if(x.pointerId===i.current.id){var A,C;let R=x.pointerType||"mouse";var E,S;u(x,R,x.pageX-((E=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&E!==void 0?E:0),x.pageY-((S=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageY)!==null&&S!==void 0?S:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},w=x=>{if(x.pointerId===i.current.id){let A=x.pointerType||"mouse";f(x,A),i.current.id=null,s(window,"pointermove",b,!1),s(window,"pointerup",w,!1),s(window,"pointercancel",w,!1)}};h.onPointerDown=x=>{x.button===0&&i.current.id==null&&(m(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},i.current.id=x.pointerId,a(window,"pointermove",b,!1),a(window,"pointerup",w,!1),a(window,"pointercancel",w,!1))}}let g=(b,w,x)=>{m(),u(b,"keyboard",w,x),f(b,"keyboard")};return h.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),g(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),g(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),g(b,0,1);break}},h},[i,a,s,u,f])}}const rU=500;function lP(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=rU,accessibilityDescription:s}=e;const u=I.useRef(void 0);let{addGlobalListener:f,removeGlobalListener:d}=Eo(),{pressProps:h}=rd({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),u.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Xt(g.target).activeElement!==g.target&&xi(g.target),i&&i({...g,type:"longpress"}),u.current=void 0},a),g.pointerType==="touch")){let b=w=>{w.preventDefault()};f(g.target,"contextmenu",b,{once:!0}),f(window,"pointerup",()=>{setTimeout(()=>{d(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){u.current&&clearTimeout(u.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=td(i&&!t?s:void 0);return{longPressProps:Jt(h,m)}}const iU=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),aU=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function sU(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return iU.has(n.script)}let t=e.split("-")[0];return aU.has(t)}const oU=Symbol.for("react-aria.i18n.locale");function cP(){let e=typeof window<"u"&&window[oU]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:sU(e)?"rtl":"ltr"}}let Cb=cP(),ff=new Set;function Vw(){Cb=cP();for(let e of ff)e(Cb)}function uU(){let e=J1(),[t,n]=I.useState(Cb);return I.useEffect(()=>(ff.size===0&&window.addEventListener("languagechange",Vw),ff.add(n),()=>{ff.delete(n),ff.size===0&&window.removeEventListener("languagechange",Vw)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const lU=fe.default.createContext(null);function Ar(){let e=uU();return I.useContext(lU)||e}const cU=Symbol.for("react-aria.i18n.locale"),fU=Symbol.for("react-aria.i18n.strings");let ll;class So{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=dU(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[cU];if(ll===void 0){let i=window[fU];if(!i)return null;ll={};for(let a in i)ll[a]=new So({[n]:i[a]},n)}let r=ll==null?void 0:ll[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function dU(e,t,n="en-US"){if(t[e])return t[e];let r=hU(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function hU(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Bw=new Map,Nw=new Map;class fP{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,s=Bw.get(a);s||(s=new Intl.PluralRules(this.locale,{type:r}),Bw.set(a,s));let u=s.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=Nw.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Nw.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const jw=new WeakMap;function pU(e){let t=jw.get(e);return t||(t=new So(e),jw.set(e,t)),t}function dP(e,t){return t&&So.getGlobalDictionaryForPackage(t)||pU(e)}function ns(e,t){let{locale:n}=Ar(),r=dP(e,t);return I.useMemo(()=>new fP(n,r),[n,r])}function _l(e,t){return e-t*Math.floor(e/t)}const hP=1721426;function su(e,t,n,r){t=id(e,t);let i=t-1,a=-2;return n<=2?a=0:po(t)&&(a=-1),hP-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function po(e){return e%4===0&&(e%100!==0||e%400===0)}function id(e,t){return e==="BC"?1-t:t}function Gp(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const mU={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Ur{fromJulianDay(t){let n=t,r=n-hP,i=Math.floor(r/146097),a=_l(r,146097),s=Math.floor(a/36524),u=_l(a,36524),f=Math.floor(u/1461),d=_l(u,1461),h=Math.floor(d/365),m=i*400+s*100+f*4+h+(s!==4&&h!==4?1:0),[g,b]=Gp(m),w=n-su(g,b,1,1),x=2;n<su(g,b,3,1)?x=0:po(b)&&(x=1);let A=Math.floor(((w+x)*12+373)/367),C=n-su(g,b,A,1)+1;return new Gn(g,b,A,C)}toJulianDay(t){return su(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return mU[po(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return po(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const gU={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Qn(e,t){return t=Fn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Eb(e,t){return Yp(e.calendar,t.calendar)&&Qn(e,t)}function Yp(e,t){var n,r,i,a;return(a=(i=(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&i!==void 0?i:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&a!==void 0?a:e.identifier===t.identifier}function pP(e,t){return Qn(e,Zp(t))}const vU={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function l4(e,t,n){let r=e.calendar.toJulianDay(e),i=n?vU[n]:CU(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function mP(e){return Fs(Date.now(),e)}function Zp(e){return Kr(mP(e))}function gP(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function vP(e,t){return Kw(e)-Kw(t)}function Kw(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Kg=null;function ad(){return Kg==null&&(Kg=new Intl.DateTimeFormat().resolvedOptions().timeZone),Kg}function sd(e){return e.subtract({days:e.day-1})}function Sb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function yU(e){return sd(e.subtract({months:e.month-1}))}function bU(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function $U(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Mf(e,t,n){let r=l4(e,t,n);return e.subtract({days:r})}function xU(e,t,n){return Mf(e,t,n).add({days:6})}const Uw=new Map;function wU(e){if(Intl.Locale){let n=Uw.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Uw.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function CU(e){let t=wU(e);return t&&gU[t]||0}function yP(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((l4(sd(e),t,n)+r)/7)}function c4(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function f4(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Ul(e){e=Fn(e,new Ur);let t=id(e.era,e.year);return bP(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function bP(e,t,n,r,i,a,s){let u=new Date;return u.setUTCHours(r,i,a,s),u.setUTCFullYear(e,t-1,n),u.getTime()}function Db(e,t){if(t==="UTC")return 0;if(e>0&&t===ad())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:s,second:u}=$P(e,t);return bP(n,r,i,a,s,u,0)-Math.floor(e/1e3)*1e3}const qw=new Map;function $P(e,t){let n=qw.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),qw.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const zw=864e5;function EU(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>SU(e,t,a))}function SU(e,t,n){let r=$P(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Ms(e,t,n="compatible"){let r=ya(e);if(t==="UTC")return Ul(r);if(t===ad()&&n==="compatible"){r=Fn(r,new Ur);let f=new Date,d=id(r.era,r.year);return f.setFullYear(d,r.month-1,r.day),f.setHours(r.hour,r.minute,r.second,r.millisecond),f.getTime()}let i=Ul(r),a=Db(i-zw,t),s=Db(i+zw,t),u=EU(r,t,i-a,i-s);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-s);case"compatible":case"later":return Math.max(i-a,i-s);case"reject":throw new RangeError("No such absolute time found")}}function xP(e,t,n="compatible"){return new Date(Ms(e,t,n))}function Fs(e,t){let n=Db(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,s=r.getUTCDate(),u=r.getUTCHours(),f=r.getUTCMinutes(),d=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new kf(i<1?"BC":"AD",i<1?-i+1:i,a,s,t,n,u,f,d,h)}function Kr(e){return new Gn(e.calendar,e.era,e.year,e.month,e.day)}function ya(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new Rf(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function Ww(e){return new od(e.hour,e.minute,e.second,e.millisecond)}function Fn(e,t){if(Yp(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Su(r),r}function wP(e,t,n){if(e instanceof kf)return e.timeZone===t?e:AU(e,t);let r=Ms(e,t,n);return Fs(r,t)}function DU(e){let t=Ul(e)-e.offset;return new Date(t)}function AU(e,t){let n=Ul(e)-e.offset;return Fn(Fs(n,t),e.calendar)}const Yc=36e5;function Xp(e,t){let n=e.copy(),r="hour"in n?DP(n,t):0;Ab(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Tb(n),CP(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,TU(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,s;let f=(a=(s=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(s,n);n.year=i,n.month=f?1:n.calendar.getMonthsInYear(n),n.day=f?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Ab(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Tb(e){for(;e.month<1;)Ab(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ab(e,1)}function TU(e){for(;e.day<1;)e.month--,Tb(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Tb(e)}function CP(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Su(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),CP(e)}function d4(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function EP(e,t){return Xp(e,d4(t))}function h4(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Su(n),n}function Ff(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),SP(n),n}function PU(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=fh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=fh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=fh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=fh(e.hour,24),t}function SP(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function fh(e,t){let n=e%t;return n<0&&(n+=t),n}function DP(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,PU(e)}function AP(e,t){let n=e.copy();return DP(n,t),n}function _U(e,t){return AP(e,d4(t))}function p4(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),f=u.indexOf(e.era);if(f<0)throw new Error("Invalid era: "+e.era);f=Rs(f,n,0,u.length-1,r==null?void 0:r.round),i.era=u[f],Su(i);break}case"year":var a,s;!((a=(s=i.calendar).isInverseEra)===null||a===void 0)&&a.call(s,i)&&(n=-n),i.year=Rs(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Rs(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Rs(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Su(i),i}function m4(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,s=0,u=23;if((r==null?void 0:r.hourCycle)===12){let f=a>=12;s=f?12:0,u=f?23:11}i.hour=Rs(a,n,s,u,r==null?void 0:r.round);break}case"minute":i.minute=Rs(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Rs(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Rs(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Rs(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function TP(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Xp(ya(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Ms(i,e.timeZone)}else n=Ul(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Fs(n,e.timeZone);return Fn(r,e.calendar)}function MU(e,t){return TP(e,d4(t))}function FU(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let w=e.hour>=12;i=w?12:0,a=w?23:11}let s=ya(e),u=Fn(Ff(s,{hour:i}),new Ur),f=[Ms(u,e.timeZone,"earlier"),Ms(u,e.timeZone,"later")].filter(w=>Fs(w,e.timeZone).day===u.day)[0],d=Fn(Ff(s,{hour:a}),new Ur),h=[Ms(d,e.timeZone,"earlier"),Ms(d,e.timeZone,"later")].filter(w=>Fs(w,e.timeZone).day===d.day).pop(),m=Ul(e)-e.offset,g=Math.floor(m/Yc),b=m%Yc;return m=Rs(g,n,Math.floor(f/Yc),Math.floor(h/Yc),r==null?void 0:r.round)*Yc+b,Fn(Fs(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return m4(e,t,n,r);case"era":case"year":case"month":case"day":{let i=p4(ya(e),t,n,r),a=Ms(i,e.timeZone);return Fn(Fs(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function RU(e,t,n){let r=ya(e),i=Ff(h4(r,t),t);if(i.compare(r)===0)return e;let a=Ms(i,e.timeZone,n);return Fn(Fs(a,e.timeZone),e.calendar)}const kU=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,OU=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function IU(e){let t=e.match(kU);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Gn(Na(t[1],0,9999),Na(t[2],1,12),1);return n.day=Na(t[3],1,n.calendar.getDaysInMonth(n)),n}function LU(e){let t=e.match(OU);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Na(t[1],-9999,9999),r=n<1?"BC":"AD",i=new Rf(r,n<1?-n+1:n,Na(t[2],1,12),1,t[4]?Na(t[4],0,23):0,t[5]?Na(t[5],0,59):0,t[6]?Na(t[6],0,59):0,t[7]?Na(t[7],0,1/0)*1e3:0);return i.day=Na(t[3],0,i.calendar.getDaysInMonth(i)),i}function Na(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function PP(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function _P(e){let t=Fn(e,new Ur),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function MP(e){return`${_P(e)}T${PP(e)}`}function VU(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function BU(e){return`${MP(e)}${VU(e.offset)}[${e.timeZone}]`}function g4(e){let t=typeof e[0]=="object"?e.shift():new Ur,n;if(typeof e[0]=="string")n=e.shift();else{let s=t.getEras();n=s[s.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var NU=new WeakMap;class Gn{copy(){return this.era?new Gn(this.calendar,this.era,this.year,this.month,this.day):new Gn(this.calendar,this.year,this.month,this.day)}add(t){return Xp(this,t)}subtract(t){return EP(this,t)}set(t){return h4(this,t)}cycle(t,n,r){return p4(this,t,n,r)}toDate(t){return xP(this,t)}toString(){return _P(this)}compare(t){return gP(this,t)}constructor(...t){nd(this,NU,{writable:!0,value:void 0});let[n,r,i,a,s]=g4(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,Su(this)}}var jU=new WeakMap;class od{copy(){return new od(this.hour,this.minute,this.second,this.millisecond)}add(t){return AP(this,t)}subtract(t){return _U(this,t)}set(t){return Ff(this,t)}cycle(t,n,r){return m4(this,t,n,r)}toString(){return PP(this)}compare(t){return vP(this,t)}constructor(t=0,n=0,r=0,i=0){nd(this,jU,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,SP(this)}}var KU=new WeakMap;class Rf{copy(){return this.era?new Rf(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Rf(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Xp(this,t)}subtract(t){return EP(this,t)}set(t){return h4(Ff(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return p4(this,t,n,r);default:return m4(this,t,n,r)}}toDate(t,n){return xP(this,t,n)}toString(){return MP(this)}compare(t){let n=gP(this,t);return n===0?vP(this,ya(t)):n}constructor(...t){nd(this,KU,{writable:!0,value:void 0});let[n,r,i,a,s]=g4(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Su(this)}}var UU=new WeakMap;class kf{copy(){return this.era?new kf(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new kf(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return TP(this,t)}subtract(t){return MU(this,t)}set(t,n){return RU(this,t,n)}cycle(t,n,r){return FU(this,t,n,r)}toDate(){return DU(this)}toString(){return BU(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-wP(t,this.timeZone).toDate().getTime()}constructor(...t){nd(this,UU,{writable:!0,value:void 0});let[n,r,i,a,s]=g4(t),u=t.shift(),f=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.timeZone=u,this.offset=f,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Su(this)}}const Ml=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],qU=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],_h=[1867,1911,1925,1988,2018],lo=["meiji","taisho","showa","heisei","reiwa"];function Hw(e){const t=Ml.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Ml.length-1:t===0?0:t-1}function Ug(e){let t=_h[lo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Gn(e.year+t,e.month,e.day)}class zU extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=Hw(n);return new Gn(this,lo[r],n.year-_h[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Ug(t))}balanceDate(t){let n=Ug(t),r=Hw(n);lo[r]!==t.era&&(t.era=lo[r],t.year=n.year-_h[r]),this.constrainDate(t)}constrainDate(t){let n=lo.indexOf(t.era),r=qU[n];if(r!=null){let[i,a,s]=r,u=i-_h[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(s,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Ml[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return lo}getYearsInEra(t){let n=lo.indexOf(t.era),r=Ml[n],i=Ml[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Ug(t))}getMinimumMonthInYear(t){let n=Gw(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Gw(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Gw(e){if(e.year===1){let t=lo.indexOf(e.era);return Ml[t]}}const FP=-543;class WU extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=id(n.era,n.year);return new Gn(this,r-FP,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Yw(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Yw(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Yw(e){let[t,n]=Gp(e.year+FP);return new Gn(t,n,e.month,e.day)}const sp=1911;function RP(e){return e.era==="minguo"?e.year+sp:1-e.year+sp}function Zw(e){let t=e-sp;return t>0?["minguo",t]:["before_minguo",1-t]}class HU extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=id(n.era,n.year),[i,a]=Zw(r);return new Gn(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Xw(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=Zw(RP(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Xw(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-sp}constructor(...t){super(...t),this.identifier="roc"}}function Xw(e){let[t,n]=Gp(RP(e));return new Gn(t,n,e.month,e.day)}const Jw=1948320,Qw=[0,31,62,93,124,155,186,216,246,276,306,336];class GU{fromJulianDay(t){let n=t-Jw,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,s=a<216?Math.floor(a/31):Math.floor((a-6)/30),u=a-Qw[s]+1;return new Gn(this,r,s+1,u)}toJulianDay(t){let n=Jw-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Qw[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||_l(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const qg=78,eC=80;class YU extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-qg,i=t-su(n.era,n.year,1,1),a;i<eC?(r--,a=po(n.year-1)?31:30,i+=a+155+90+10):(a=po(n.year)?31:30,i-=eC);let s,u;if(i<a)s=1,u=i+1;else{let f=i-a;f<155?(s=Math.floor(f/31)+2,u=f%31+1):(f-=155,s=Math.floor(f/30)+7,u=f%30+1)}return new Gn(this,r,s,u)}toJulianDay(t){let n=t.year+qg,[r,i]=Gp(n),a,s;return po(i)?(a=31,s=su(r,i,3,21)):(a=30,s=su(r,i,3,22)),t.month===1?s+t.day-1:(s+=a+Math.min(t.month-2,5)*31,t.month>=8&&(s+=(t.month-7)*30),s+=t.day-1,s)}getDaysInMonth(t){return t.month===1&&po(t.year+qg)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const op=1948440,tC=1948439,Bi=1300,cl=1600,ZU=460322;function up(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function kP(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+up(t,r,1,1)))/29.5)+1),a=n-up(t,r,i,1)+1;return new Gn(e,r,i,a)}function nC(e){return(14+11*e)%30<11}class v4{fromJulianDay(t){return kP(this,op,t)}toJulianDay(t){return up(op,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&nC(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return nC(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class XU extends v4{fromJulianDay(t){return kP(this,tC,t)}toJulianDay(t){return up(tC,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const JU="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Pb,Fl;function Mh(e){return ZU+Fl[e-Bi]}function df(e,t){let n=e-Bi,r=1<<11-(t-1);return(Pb[n]&r)===0?29:30}function rC(e,t){let n=Mh(e);for(let r=1;r<t;r++)n+=df(e,r);return n}function iC(e){return Fl[e+1-Bi]-Fl[e-Bi]}class QU extends v4{fromJulianDay(t){let n=t-op,r=Mh(Bi),i=Mh(cl);if(n<r||n>i)return super.fromJulianDay(t);{let a=Bi-1,s=1,u=1;for(;u>0;){a++,u=n-Mh(a)+1;let f=iC(a);if(u===f){s=12;break}else if(u<f){let d=df(a,s);for(s=1;u>d;)u-=d,s++,d=df(a,s);break}}return new Gn(this,a,s,n-rC(a,s)+1)}}toJulianDay(t){return t.year<Bi||t.year>cl?super.toJulianDay(t):op+rC(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Bi||t.year>cl?super.getDaysInMonth(t):df(t.year,t.month)}getDaysInYear(t){return t.year<Bi||t.year>cl?super.getDaysInYear(t):iC(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Pb||(Pb=new Uint16Array(Uint8Array.from(atob(JU),t=>t.charCodeAt(0)).buffer)),!Fl){Fl=new Uint32Array(cl-Bi+1);let t=0;for(let n=Bi;n<=cl;n++){Fl[n-Bi]=t;for(let r=1;r<=12;r++)t+=df(n,r)}}}}const aC=347997,OP=1080,IP=24*OP,eq=29,tq=12*OP+793,nq=eq*IP+tq;function ru(e){return _l(e*7+1,19)<7}function Fh(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return _l(3*(r+1),7)<3&&(r+=1),r}function rq(e){let t=Fh(e-1),n=Fh(e);return Fh(e+1)-n===356?2:n-t===382?1:0}function $f(e){return Fh(e)+rq(e)}function LP(e){return $f(e+1)-$f(e)}function iq(e){let t=LP(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function dh(e,t){if(t>=6&&!ru(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=iq(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?ru(e)?30:0:30}class aq{fromJulianDay(t){let n=t-aC,r=n*IP/nq,i=Math.floor((19*r+234)/235)+1,a=$f(i),s=Math.floor(n-a);for(;s<1;)i--,a=$f(i),s=Math.floor(n-a);let u=1,f=0;for(;f<s;)f+=dh(i,u),u++;u--,f-=dh(i,u);let d=s-f;return new Gn(this,i,u,d)}toJulianDay(t){let n=$f(t.year);for(let r=1;r<t.month;r++)n+=dh(t.year,r);return n+t.day+aC}getDaysInMonth(t){return dh(t.year,t.month)}getMonthsInYear(t){return ru(t.year)?13:12}getDaysInYear(t){return LP(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(ru(n.year)&&!ru(t.year)&&n.month>6?t.month--:!ru(n.year)&&ru(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const _b=1723856,sC=1824665,Mb=5500;function lp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function y4(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-lp(e,n,1,1))/30),i=t+1-lp(e,n,r,1);return[n,r,i]}function VP(e){return Math.floor(e%4/3)}function BP(e,t){return t%13!==0?30:VP(e)+5}class b4{fromJulianDay(t){let[n,r,i]=y4(_b,t),a="AM";return n<=0&&(a="AA",n+=Mb),new Gn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Mb),lp(_b,n,t.month,t.day)}getDaysInMonth(t){return BP(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+VP(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class sq extends b4{fromJulianDay(t){let[n,r,i]=y4(_b,t);return n+=Mb,new Gn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class oq extends b4{fromJulianDay(t){let[n,r,i]=y4(sC,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Gn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),lp(sC,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),BP(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function uq(e){switch(e){case"buddhist":return new WU;case"ethiopic":return new b4;case"ethioaa":return new sq;case"coptic":return new oq;case"hebrew":return new aq;case"indian":return new YU;case"islamic-civil":return new v4;case"islamic-tbla":return new XU;case"islamic-umalqura":return new QU;case"japanese":return new zU;case"persian":return new GU;case"roc":return new HU;case"gregory":default:return new Ur}}let zg=new Map;class qi{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return fq()&&(this.resolvedHourCycle||(this.resolvedHourCycle=dq(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=NP(t,n),this.options=n}}const lq={true:{ja:"h11"},false:{}};function NP(e,t={}){if(typeof t.hour12=="boolean"&&cq()){t={...t};let i=lq[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(zg.has(n))return zg.get(n);let r=new Intl.DateTimeFormat(e,t);return zg.set(n,r),r}let Wg=null;function cq(){return Wg==null&&(Wg=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Wg}let Hg=null;function fq(){return Hg==null&&(Hg=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Hg}function dq(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=NP(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function za(e){e=Y2(e??{},hq);let{locale:t}=Ar();return I.useMemo(()=>new qi(t,e),[t,e])}function hq(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let Gg=new Map,Fb=!1;try{Fb=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let cp=!1;try{cp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const jP={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class KP{format(t){let n="";if(!Fb&&this.options.signDisplay!=null?n=mq(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!cp){var r;let{unit:i,unitDisplay:a="short",locale:s}=this.resolvedOptions();if(!i)return n;let u=(r=jP[i])===null||r===void 0?void 0:r[a];n+=u[s]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Fb&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!cp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=pq(t,n),this.options=n}}function pq(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!cp){var r;let{unit:s,unitDisplay:u="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=jP[s])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,u)=>s[0]<u[0]?-1:1).join():"");if(Gg.has(i))return Gg.get(i);let a=new Intl.NumberFormat(e,t);return Gg.set(i,a),a}function mq(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),s=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(s,"+").replace("!!!",a)}else return e.format(n)}}const gq=new RegExp("^.*\\(.*\\).*$"),vq=["latn","arab","hanidec","deva","beng","fullwide"];class UP{parse(t){return Yg(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Yg(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Yg(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const oC=new Map;function Yg(e,t,n){let r=uC(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of vq)if(i!==r.options.numberingSystem){let a=uC(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function uC(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=oC.get(n);return r||(r=new yq(e,t),oC.set(n,r)),r}class yq{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Zc(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,s>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new UP(this.locale,s).parse(new KP(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&gq.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Zc(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Zc(t," ",this.symbols.group),t=Zc(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Zc(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=$q(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const lC=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),bq=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $q(e,t,n,r){var i,a,s,u;let f=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=f.formatToParts(-10000.111),h=f.formatToParts(10000.111),m=bq.map(oe=>f.formatToParts(oe));var g;let b=(g=(i=d.find(oe=>oe.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",w=(a=h.find(oe=>oe.type==="plusSign"))===null||a===void 0?void 0:a.value;!w&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(w="+");let A=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(oe=>oe.type==="decimal"))===null||s===void 0?void 0:s.value,C=(u=d.find(oe=>oe.type==="group"))===null||u===void 0?void 0:u.value,E=d.filter(oe=>!lC.has(oe.type)).map(oe=>cC(oe.value)),S=m.flatMap(oe=>oe.filter(O=>!lC.has(O.type)).map(O=>cC(O.value))),R=[...new Set([...E,...S])].sort((oe,O)=>O.length-oe.length),_=R.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${R.join("|")}|[\\p{White_Space}]`,"gu"),F=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),z=new Map(F.map((oe,O)=>[oe,O])),ie=new RegExp(`[${F.join("")}]`,"g");return{minusSign:b,plusSign:w,decimal:A,group:C,literals:_,numeral:ie,index:oe=>String(z.get(oe))}}function Zc(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function cC(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xq(e={}){let{locale:t}=Ar();return I.useMemo(()=>new KP(t,e),[t,e])}let Zg=new Map;function qP(e){let{locale:t}=Ar(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Zg.has(n))return Zg.get(n);let r=new Intl.Collator(t,e);return Zg.set(n,r),r}function zP(e){let t=qP({usage:"search",...e}),n=I.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(0,s.length),s)===0),[t]),r=I.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(-s.length),s)===0),[t]),i=I.useCallback((a,s)=>{if(s.length===0)return!0;a=a.normalize("NFC"),s=s.normalize("NFC");let u=0,f=s.length;for(;u+f<=a.length;u++){let d=a.slice(u,u+f);if(t.compare(s,d)===0)return!0}return!1},[t]);return I.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function wq(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:s,onPressUp:u,onPressChange:f,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:w,type:x="button"}=e,A;n==="button"?A={type:x,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:A={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?x:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?w:void 0};let{pressProps:C,isPressed:E}=rd({onPressStart:a,onPressEnd:s,onPressChange:f,onPress:i,onPressUp:u,onClick:m,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:S}=u4(e,t);h&&(S.tabIndex=r?-1:S.tabIndex);let R=Jt(S,C,Us(e,{labelable:!0}));return{isPressed:E,buttonProps:Jt(A,R,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}const fC=fe.default.createContext(null),Rb="react-aria-focus-scope-restore";let pn=null;function Cq(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=I.useRef(null),s=I.useRef(null),u=I.useRef([]),{parentNode:f}=I.useContext(fC)||{},d=I.useMemo(()=>new Ob({scopeRef:u}),[u]);mn(()=>{let g=f||Xn.root;if(Xn.getTreeNode(g.scopeRef)&&pn&&!fp(pn,g.scopeRef)){let b=Xn.getTreeNode(pn);b&&(g=b)}g.addChild(d),Xn.addNode(d)},[d,f]),mn(()=>{let g=Xn.getTreeNode(u);g&&(g.contain=!!n)},[n]),mn(()=>{var g;let b=(g=a.current)===null||g===void 0?void 0:g.nextSibling,w=[],x=A=>A.stopPropagation();for(;b&&b!==s.current;)w.push(b),b.addEventListener(Rb,x),b=b.nextSibling;return u.current=w,()=>{for(let A of w)A.removeEventListener(Rb,x)}},[t]),Pq(u,r,n),Dq(u,n),_q(u,r,n),Tq(u,i),I.useEffect(()=>{const g=nr(Xt(u.current?u.current[0]:void 0));let b=null;if(Zi(g,u.current)){for(let w of Xn.traverse())w.scopeRef&&Zi(g,w.scopeRef.current)&&(b=w);b===Xn.getTreeNode(u)&&(pn=b.scopeRef)}},[u]),mn(()=>()=>{var g,b,w;let x=(w=(b=Xn.getTreeNode(u))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&w!==void 0?w:null;(u===pn||fp(u,pn))&&(!x||Xn.getTreeNode(x))&&(pn=x),Xn.removeTreeNode(u)},[u]);let h=I.useMemo(()=>Eq(u),[]),m=I.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return fe.default.createElement(fC.Provider,{value:m},fe.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,fe.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function Eq(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t;var u;let f=r||nr(Xt((u=n[0])!==null&&u!==void 0?u:void 0)),d=n[0].previousElementSibling,h=ou(n),m=Lr(h,{tabbable:i,accept:s},n);m.currentNode=Zi(f,n)?f:d;let g=m.nextNode();return!g&&a&&(m.currentNode=d,g=m.nextNode()),g&&ei(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t;var u;let f=r||nr(Xt((u=n[0])!==null&&u!==void 0?u:void 0)),d=n[n.length-1].nextElementSibling,h=ou(n),m=Lr(h,{tabbable:i,accept:s},n);m.currentNode=Zi(f,n)?f:d;let g=m.previousNode();return!g&&a&&(m.currentNode=d,g=m.previousNode()),g&&ei(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=ou(n),s=Lr(a,{tabbable:r,accept:i},n);s.currentNode=n[0].previousElementSibling;let u=s.nextNode();return u&&ei(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=ou(n),s=Lr(a,{tabbable:r,accept:i},n);s.currentNode=n[n.length-1].nextElementSibling;let u=s.previousNode();return u&&ei(u,!0),u}}}function ou(e){return e[0].parentElement}function hf(e){let t=Xn.getTreeNode(pn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Sq(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Xt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var n,r;let a=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...a??[]]}return t?!t.some(a=>a.checked):!1}function Dq(e,t){let n=I.useRef(void 0),r=I.useRef(void 0);mn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=Xt(i?i[0]:void 0);let s=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!hf(e)||d.isComposing)return;let h=nr(a),m=e.current;if(!m||!Zi(h,m))return;let g=ou(m),b=Lr(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let w=d.shiftKey?b.previousNode():b.nextNode();w||(b.currentNode=d.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,w=d.shiftKey?b.previousNode():b.nextNode()),d.preventDefault(),w&&ei(w,!0)},u=d=>{(!pn||fp(pn,e))&&Zi(tn(d),e.current)?(pn=e,n.current=tn(d)):hf(e)&&!mo(tn(d),e)?n.current?n.current.focus():pn&&pn.current&&kb(pn.current):hf(e)&&(n.current=tn(d))},f=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=_f(),m=(h==="virtual"||h===null)&&t4()&&z2(),g=nr(a);if(!m&&g&&hf(e)&&!mo(g,e)){pn=e;let w=tn(d);if(w&&w.isConnected){var b;n.current=w,(b=n.current)===null||b===void 0||b.focus()}else pn.current&&kb(pn.current)}})};return a.addEventListener("keydown",s,!1),a.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",f,!1)),()=>{a.removeEventListener("keydown",s,!1),a.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",f,!1))}},[e,t]),mn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function WP(e){return mo(e)}function Zi(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function mo(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Xn.traverse(Xn.getTreeNode(t)))if(n&&Zi(e,n.current))return!0;return!1}function Aq(e){return mo(e,pn)}function fp(e,t){var n;let r=(n=Xn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ei(e,t=!1){if(e!=null&&!t)try{Eu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function HP(e,t=!0){let n=e[0].previousElementSibling,r=ou(e),i=Lr(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=ou(e),i=Lr(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function kb(e,t=!0){ei(HP(e,t))}function Tq(e,t){const n=fe.default.useRef(t);I.useEffect(()=>{if(n.current){pn=e;const r=Xt(e.current?e.current[0]:void 0);!Zi(nr(r),pn.current)&&e.current&&kb(e.current)}n.current=!1},[e])}function Pq(e,t,n){mn(()=>{if(t||n)return;let r=e.current;const i=Xt(r?r[0]:void 0);let a=s=>{let u=tn(s);Zi(u,e.current)?pn=e:WP(u)||(pn=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,t,n])}function dC(e){let t=Xn.getTreeNode(pn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function _q(e,t,n){const r=I.useRef(typeof document<"u"?nr(Xt(e.current?e.current[0]:void 0)):null);mn(()=>{let i=e.current;const a=Xt(i?i[0]:void 0);if(!t||n)return;let s=()=>{(!pn||fp(pn,e))&&Zi(nr(a),e.current)&&(pn=e)};return a.addEventListener("focusin",s,!1),i==null||i.forEach(u=>u.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",s,!1))}},[e,n]),mn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!hf(e)||s.isComposing)return;let u=i.activeElement;if(!mo(u,e)||!dC(e))return;let f=Xn.getTreeNode(e);if(!f)return;let d=f.nodeToRestore,h=Lr(i.body,{tabbable:!0});h.currentNode=u;let m=s.shiftKey?h.previousNode():h.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,f.nodeToRestore=void 0),(!m||!mo(m,e))&&d){h.currentNode=d;do m=s.shiftKey?h.previousNode():h.nextNode();while(mo(m,e));s.preventDefault(),s.stopPropagation(),m?ei(m,!0):WP(d)?ei(d,!0):u.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),mn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=Xn.getTreeNode(e);if(a){var s;return a.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let u=Xn.getTreeNode(e);if(!u)return;let f=u.nodeToRestore,d=nr(i);if(t&&f&&(d&&mo(d,e)||d===i.body&&dC(e))){let h=Xn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){hC(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&Xn.getTreeNode(m.scopeRef)){let g=HP(m.scopeRef.current,!0);hC(g);return}m=m.parent}}})}}}},[e,t])}function hC(e){e.dispatchEvent(new CustomEvent(Rb,{bubbles:!0,cancelable:!0}))&&ei(e)}function Lr(e,t,n){let r=t!=null&&t.tabbable?IK:Z2,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,a=Xt(i),s=uK(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(u){var f;return!(t==null||(f=t.from)===null||f===void 0)&&f.contains(u)||t!=null&&t.tabbable&&u.tagName==="INPUT"&&u.getAttribute("type")==="radio"&&(!Sq(u)||s.currentNode.tagName==="INPUT"&&s.currentNode.type==="radio"&&s.currentNode.name===u.name)?NodeFilter.FILTER_REJECT:r(u)&&(!n||Zi(u,n))&&(!(t!=null&&t.accept)||t.accept(u))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(s.currentNode=t.from),s}function Jp(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:u=t.accept}=n,f=i||nr(Xt(r)),d=Lr(r,{tabbable:a,accept:u});r.contains(f)&&(d.currentNode=f);let h=d.nextNode();return!h&&s&&(d.currentNode=r,h=d.nextNode()),h&&ei(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:u=t.accept}=n,f=i||nr(Xt(r)),d=Lr(r,{tabbable:a,accept:u});if(r.contains(f))d.currentNode=f;else{let m=Xg(d);return m&&ei(m,!0),m??null}let h=d.previousNode();if(!h&&s){d.currentNode=r;let m=Xg(d);if(!m)return null;h=m}return h&&ei(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,u=Lr(r,{tabbable:i,accept:a}).nextNode();return u&&ei(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=Lr(r,{tabbable:i,accept:a}),u=Xg(s);return u&&ei(u,!0),u??null}}}function Xg(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class $4{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new Ob({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Zi(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new $4;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Ob({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ob{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Xn=new $4;function GP(e){let t=Fq(Xt(e));t!==e&&(t&&Mq(t,e),e&&x4(e,t))}function Mq(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function x4(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function Fq(e){let t=nr(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var YP={};YP={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var ZP={};ZP={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var XP={};XP={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var JP={};JP={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var QP={};QP={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var e5={};e5={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var t5={};t5={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var n5={};n5={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var r5={};r5={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var i5={};i5={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var a5={};a5={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var s5={};s5={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var o5={};o5={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var u5={};u5={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var l5={};l5={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var c5={};c5={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var f5={};f5={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var d5={};d5={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var h5={};h5={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var p5={};p5={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var m5={};m5={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var g5={};g5={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var v5={};v5={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var y5={};y5={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var b5={};b5={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var $5={};$5={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var x5={};x5={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var w5={};w5={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var C5={};C5={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var E5={};E5={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var S5={};S5={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var D5={};D5={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var A5={};A5={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var T5={};T5={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var ud={};ud={"ar-AE":YP,"bg-BG":ZP,"cs-CZ":XP,"da-DK":JP,"de-DE":QP,"el-GR":e5,"en-US":t5,"es-ES":n5,"et-EE":r5,"fi-FI":i5,"fr-FR":a5,"he-IL":s5,"hr-HR":o5,"hu-HU":u5,"it-IT":l5,"ja-JP":c5,"ko-KR":f5,"lt-LT":d5,"lv-LV":h5,"nb-NO":p5,"nl-NL":m5,"pl-PL":g5,"pt-BR":v5,"pt-PT":y5,"ro-RO":b5,"ru-RU":$5,"sk-SK":x5,"sl-SI":w5,"sr-SP":C5,"sv-SE":E5,"tr-TR":S5,"uk-UA":D5,"zh-CN":A5,"zh-TW":T5};function P5(e){return e&&e.__esModule?e.default:e}const w4=new WeakMap;function Of(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function Rq(e){let t=ns(P5(ud),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let a=za({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Of(n)||Of(r),timeZone:e.timeZone}),s="anchorDate"in e?e.anchorDate:null;return I.useMemo(()=>{if(!s&&n&&r)if(Qn(n,r)){let u=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Lb(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,s,e.timeZone,t,a])}function Ib(e,t,n,r){let i=ns(P5(ud),"@react-aria/calendar"),a=Of(e)||Of(t),s=za({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),u=za({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return I.useMemo(()=>{if(Qn(e,sd(e))){let f=e,d=t;if(e.calendar.getFormattableMonth&&(f=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),Qn(t,Sb(e)))return s.format(f.toDate(n));if(Qn(t,Sb(t)))return r?Lb(s,i,f,d,n):s.formatRange(f.toDate(n),d.toDate(n))}return r?Lb(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,s,u,i,n,r])}function Lb(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),s=-1;for(let d=0;d<a.length;d++){let h=a[d];if(h.source==="shared"&&h.type==="literal")s=d;else if(h.source==="endRange")break}let u="",f="";for(let d=0;d<a.length;d++)d<s?u+=a[d].value:d>s&&(f+=a[d].value);return t.format("dateRange",{startDate:u,endDate:f})}const _5=7e3;let Li=null;function Rl(e,t="assertive",n=_5){Li?Li.announce(e,t,n):(Li=new Oq,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Li.announce(e,t,n):setTimeout(()=>{Li!=null&&Li.isAttached()&&(Li==null||Li.announce(e,t,n))},100))}function kq(e){Li&&Li.clear(e)}class Oq{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=_5){var i,a;if(!this.node)return;let s=document.createElement("div");typeof t=="object"?(s.setAttribute("role","img"),s.setAttribute("aria-labelledby",t["aria-labelledby"])):s.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(s):(a=this.politeLog)===null||a===void 0||a.appendChild(s),t!==""&&setTimeout(()=>{s.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function Iq(e){return e&&e.__esModule?e.default:e}function M5(e,t){let n=ns(Iq(ud),"@react-aria/calendar"),r=Us(e),i=Ib(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=Ib(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);vb(()=>{t.isFocused||Rl(a)},[a]);let s=Rq(t);vb(()=>{s&&Rl(s,"polite",4e3)},[s]);let u=Nl([!!e.errorMessage,e.isInvalid,e.validationState]);w4.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:s});let[f,d]=I.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&f&&(d(!1),t.setFocused(!0));let[m,g]=I.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let w=jl({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Jt(r,w,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:u},title:i}}function Lq(e,t){return M5(e,t)}function Vq(e,t,n){let r=M5(e,t),i=I.useRef(!1),a=I.useRef(typeof window<"u"?window:null);return qa(a,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),qa(a,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let f=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(f)||!f.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},qa(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function Bq(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=Ar(),s=x=>{switch(x.key){case"Enter":case" ":x.preventDefault(),t.selectFocusedDate();break;case"PageUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousSection(x.shiftKey);break;case"PageDown":x.preventDefault(),x.stopPropagation(),t.focusNextSection(x.shiftKey);break;case"End":x.preventDefault(),x.stopPropagation(),t.focusSectionEnd();break;case"Home":x.preventDefault(),x.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":x.preventDefault(),x.stopPropagation(),a==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":x.preventDefault(),x.stopPropagation(),a==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":x.preventDefault(),x.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(x.preventDefault(),t.setAnchorDate(null));break}},u=Ib(n,r,t.timeZone,!0),{ariaLabel:f,ariaLabelledBy:d}=w4.get(t),h=jl({"aria-label":[f,u].filter(Boolean).join(", "),"aria-labelledby":d}),m=za({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=Ar(),b=I.useMemo(()=>{let x=Mf(Zp(t.timeZone),g,i);return[...new Array(7).keys()].map(A=>{let E=x.add({days:A}).toDate(t.timeZone);return m.format(E)})},[g,t.timeZone,m,i]),w=yP(n,g,i);return{gridProps:Jt(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:s,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b,weeksInMonth:w}}function Nq(e){return e&&e.__esModule?e.default:e}function jq(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:s}=w4.get(t),u=ns(Nq(ud),"@react-aria/calendar"),f=za({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Of(r),timeZone:t.timeZone}),d=t.isSelected(r),h=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r);let m=t.isCellUnavailable(r),g=!i&&!m,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&Qn(t.value,r));b&&(d=!0),r=Y2(r,Eb);let w=I.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),x=pP(r,t.timeZone),A=I.useMemo(()=>{let O="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Qn(r,t.value.start)||Qn(r,t.value.end))&&(O=s+", "),O+=f.format(w),x?O=u.format(d?"todayDateSelected":"todayDate",{date:O}):d&&(O=u.format("dateSelected",{date:O})),t.minValue&&Qn(r,t.minValue)?O+=", "+u.format("minimumDate"):t.maxValue&&Qn(r,t.maxValue)&&(O+=", "+u.format("maximumDate")),O},[f,w,u,d,x,r,t,s]),C="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?C=u.format("finishRangeSelectionPrompt"):C=u.format("startRangeSelectionPrompt"));let E=td(C),S=I.useRef(!1),R=I.useRef(!1),_=I.useRef(void 0),{pressProps:F,isPressed:z}=rd({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(O){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(O.pointerType==="mouse"||O.pointerType==="touch")){if(t.highlightedRange&&!b){if(Qn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),R.current=!0;return}else if(Qn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),R.current=!0;return}}let we=()=>{t.setDragging(!0),_.current=void 0,t.selectDate(r),t.setFocusedDate(r),S.current=!0};O.pointerType==="touch"?_.current=setTimeout(we,200):we()}},onPressEnd(){R.current=!1,S.current=!1,clearTimeout(_.current),_.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(O){if(!t.isReadOnly&&("anchorDate"in t&&_.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(R.current)t.setAnchorDate(r);else if(t.anchorDate&&!S.current)t.selectDate(r),t.setFocusedDate(r);else if(O.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let we=r.add({days:1});t.isInvalid(we)&&(we=r.subtract({days:1})),t.isInvalid(we)||t.setFocusedDate(we)}else O.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),ie;i||(ie=Qn(r,t.focusedDate)?0:-1),I.useEffect(()=>{h&&n.current&&(xi(n.current),_f()!=="pointer"&&document.activeElement===n.current&&np(n.current,{containingElement:Wp(n.current)}))},[h,n]);let ge=za({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),oe=I.useMemo(()=>ge.formatToParts(w).find(O=>O.type==="day").value,[ge,w]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:Jt(F,{onFocus(){i||t.setFocusedDate(r)},tabIndex:ie,role:"button","aria-disabled":!g||void 0,"aria-label":A,"aria-invalid":b||void 0,"aria-describedby":[b?a:void 0,E["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(O){"highlightDate"in t&&(O.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(O){"releasePointerCapture"in O.target&&O.target.releasePointerCapture(O.pointerId)},onContextMenu(O){O.preventDefault()}}),isPressed:z,isFocused:h,isSelected:d,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:oe}}const Qp={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},F5={...Qp,customError:!0,valid:!1},iu={isInvalid:!1,validationDetails:Qp,validationErrors:[]},Kq=I.createContext({}),ql="__formValidationState"+Date.now();function ld(e){if(e[ql]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[ql];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return Uq(e)}function Uq(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:s,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let f=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:F5}:null,d=I.useMemo(()=>{if(!s||i==null)return null;let oe=qq(s,i);return pC(oe)},[s,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let h=I.useContext(Kq),m=I.useMemo(()=>r?Array.isArray(r)?r.flatMap(oe=>Vb(h[oe])):Vb(h[r]):[],[h,r]),[g,b]=I.useState(h),[w,x]=I.useState(!1);h!==g&&(b(h),x(!1));let A=I.useMemo(()=>pC(w?[]:m),[w,m]),C=I.useRef(iu),[E,S]=I.useState(iu),R=I.useRef(iu),_=()=>{if(!F)return;z(!1);let oe=d||a||C.current;Jg(oe,R.current)||(R.current=oe,S(oe))},[F,z]=I.useState(!1);return I.useEffect(_),{realtimeValidation:f||A||d||a||iu,displayValidation:u==="native"?f||A||E:f||A||d||a||E,updateValidation(oe){u==="aria"&&!Jg(E,oe)?S(oe):C.current=oe},resetValidation(){let oe=iu;Jg(oe,R.current)||(R.current=oe,S(oe)),u==="native"&&z(!1),x(!0)},commitValidation(){u==="native"&&z(!0),x(!0)}}}function Vb(e){return e?Array.isArray(e)?e:[e]:[]}function qq(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Vb(n)}return[]}function pC(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:F5}:null}function Jg(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function dp(...e){let t=new Set,n=!1,r={...Qp};for(let s of e){var i,a;for(let u of s.validationErrors)t.add(u);n||(n=s.isInvalid);for(let u in r)(i=r)[a=u]||(i[a]=s.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function R5(e,t,n){let{validationBehavior:r,focus:i}=e;mn(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Wq(n.current))}});let a=I.useRef(!1),s=Mn(()=>{a.current||t.resetValidation()}),u=Mn(d=>{var h;t.displayValidation.isInvalid||t.commitValidation();let m=n==null||(h=n.current)===null||h===void 0?void 0:h.form;if(!d.defaultPrevented&&n&&m&&Hq(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),sP("keyboard")}d.preventDefault()}),f=Mn(()=>{t.commitValidation()});I.useEffect(()=>{let d=n==null?void 0:n.current;if(!d)return;let h=d.form,m=h==null?void 0:h.reset;return h&&(h.reset=()=>{a.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,m==null||m.call(h),a.current=!1}),d.addEventListener("invalid",u),d.addEventListener("change",f),h==null||h.addEventListener("reset",s),()=>{d.removeEventListener("invalid",u),d.removeEventListener("change",f),h==null||h.removeEventListener("reset",s),h&&(h.reset=m)}},[n,u,f,s,r])}function zq(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function Wq(e){return{isInvalid:!e.validity.valid,validationDetails:zq(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Hq(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function em(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=jr(t);let s=jr(),u={};n?(r=r?`${s} ${r}`:s,u={id:s,htmlFor:a==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let f=jl({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:f}}function tm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:s}=em(e),u=Nl([!!t,!!n,r,i]),f=Nl([!!t,!!n,r,i]);return s=Jt(s,{"aria-describedby":[u,f,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:u},errorMessageProps:{id:f}}}const Gq=0,Yq=100,Zq=1;function Xq(e){const{isDisabled:t=!1,minValue:n=Gq,maxValue:r=Yq,numberFormatter:i,step:a=Zq,orientation:s="horizontal"}=e;let u=I.useMemo(()=>{let ue=(r-n)/10;return ue=Gc(ue,0,ue+a,a),Math.max(ue,a)},[a,r,n]),f=I.useCallback(ue=>ue==null?void 0:ue.map((Ae,_e)=>{let Le=_e===0?n:ue[_e-1],Ye=_e===ue.length-1?r:ue[_e+1];return Gc(Ae,Le,Ye,a)}),[n,r,a]),d=I.useMemo(()=>f(gC(e.value)),[e.value,f]),h=I.useMemo(()=>{var ue;return f((ue=gC(e.defaultValue))!==null&&ue!==void 0?ue:[n])},[e.defaultValue,n,f]),m=vC(e.value,e.defaultValue,e.onChange),g=vC(e.value,e.defaultValue,e.onChangeEnd);const[b,w]=wi(d,h,m);let[x]=I.useState(b);const[A,C]=I.useState(new Array(b.length).fill(!1)),E=I.useRef(new Array(b.length).fill(!0)),[S,R]=I.useState(void 0),_=I.useRef(b),F=I.useRef(A);let z=ue=>{_.current=ue,w(ue)},ie=ue=>{F.current=ue,C(ue)};function ge(ue){return(ue-n)/(r-n)}function oe(ue){return ue===0?n:b[ue-1]}function O(ue){return ue===b.length-1?r:b[ue+1]}function we(ue){return E.current[ue]}function Se(ue,Ae){E.current[ue]=Ae}function U(ue,Ae){if(t||!we(ue))return;const _e=oe(ue),Le=O(ue);Ae=Gc(Ae,_e,Le,a);let Ye=mC(_.current,ue,Ae);z(Ye)}function ee(ue,Ae){if(t||!we(ue))return;Ae&&(_.current=b);const _e=F.current[ue];F.current=mC(F.current,ue,Ae),ie(F.current),g&&_e&&!F.current.some(Boolean)&&g(_.current)}function K(ue){return i.format(ue)}function k(ue,Ae){U(ue,te(Ae))}function N(ue){return Math.round((ue-n)/a)*a+n}function te(ue){const Ae=ue*(r-n)+n;return Kl(N(Ae),n,r)}function j(ue,Ae=1){let _e=Math.max(Ae,a);U(ue,Gc(b[ue]+_e,n,r,a))}function ce(ue,Ae=1){let _e=Math.max(Ae,a);U(ue,Gc(b[ue]-_e,n,r,a))}return{values:b,defaultValues:e.defaultValue!==void 0?h:x,getThumbValue:ue=>b[ue],setThumbValue:U,setThumbPercent:k,isThumbDragging:ue=>A[ue],setThumbDragging:ee,focusedThumb:S,setFocusedThumb:R,getThumbPercent:ue=>ge(b[ue]),getValuePercent:ge,getThumbValueLabel:ue=>K(b[ue]),getFormattedValue:K,getThumbMinValue:oe,getThumbMaxValue:O,getPercentValue:te,isThumbEditable:we,setThumbEditable:Se,incrementThumb:j,decrementThumb:ce,step:a,pageSize:u,orientation:s,isDisabled:t}}function mC(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function gC(e){if(e!=null)return Array.isArray(e)?e:[e]}function vC(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const yC={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Jq(e={}){let{style:t,isFocusable:n}=e,[r,i]=I.useState(!1),{focusWithinProps:a}=Ql({isDisabled:!n,onFocusWithinChange:u=>i(u)}),s=I.useMemo(()=>r?t:t?{...yC,...t}:yC,[r]);return{visuallyHiddenProps:{...a,style:s}}}function Qq(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:s}=Jq(e);return fe.default.createElement(n,Jt(a,s),t)}const C4=new WeakMap;function Bb(e,t){let n=C4.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function ez(e,t,n){let{labelProps:r,fieldProps:i}=em(e),a=e.orientation==="vertical";var s;C4.set(t,{id:(s=r.id)!==null&&s!==void 0?s:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Ar(),{addGlobalListener:f,removeGlobalListener:d}=Eo();const h=I.useRef(null),m=u==="rtl",g=I.useRef(null),{moveProps:b}=uP({onMoveStart(){g.current=null},onMove({deltaX:C,deltaY:E}){if(!n.current)return;let{height:S,width:R}=n.current.getBoundingClientRect(),_=a?S:R;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*_);let F=a?E:C;if((a||m)&&(F=-F),g.current+=F,h.current!=null&&n.current){const z=Kl(g.current/_,0,1);t.setThumbPercent(h.current,z)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let w=I.useRef(void 0),x=(C,E,S,R)=>{if(n.current&&!e.isDisabled&&t.values.every((_,F)=>!t.isThumbDragging(F))){let{height:_,width:F,top:z,left:ie}=n.current.getBoundingClientRect(),ge=a?_:F,Se=((a?R:S)-(a?z:ie))/ge;(u==="rtl"||a)&&(Se=1-Se);let U=t.getPercentValue(Se),ee,K=t.values.findIndex(k=>U-k<0);if(K===0)ee=K;else if(K===-1)ee=t.values.length-1;else{let k=t.values[K-1],N=t.values[K];Math.abs(k-U)<Math.abs(N-U)?ee=K-1:ee=K}ee>=0&&t.isThumbEditable(ee)?(C.preventDefault(),h.current=ee,t.setFocusedThumb(ee),w.current=E,t.setThumbDragging(h.current,!0),t.setThumbValue(ee,U),f(window,"mouseup",A,!1),f(window,"touchend",A,!1),f(window,"pointerup",A,!1)):h.current=null}},A=C=>{var E,S;((S=C.pointerId)!==null&&S!==void 0?S:(E=C.changedTouches)===null||E===void 0?void 0:E[0].identifier)===w.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),d(window,"mouseup",A,!1),d(window,"touchend",A,!1),d(window,"pointerup",A,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var C;(C=document.getElementById(Bb(t,0)))===null||C===void 0||C.focus(),sP("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Jt({onMouseDown(C){C.button!==0||C.altKey||C.ctrlKey||C.metaKey||x(C,void 0,C.clientX,C.clientY)},onPointerDown(C){C.pointerType==="mouse"&&(C.button!==0||C.altKey||C.ctrlKey||C.metaKey)||x(C,C.pointerId,C.clientX,C.clientY)},onTouchStart(C){x(C,C.changedTouches[0].identifier,C.changedTouches[0].clientX,C.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((C,E)=>Bb(t,E)).join(" "),"aria-live":"off"}}}function tz(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:s,inputRef:u,orientation:f=t.orientation,name:d,form:h}=e,m=e.isDisabled||t.isDisabled,g=f==="vertical",{direction:b}=Ar(),{addGlobalListener:w,removeGlobalListener:x}=Eo(),A=C4.get(t);var C;const{labelProps:E,fieldProps:S}=em({...e,id:Bb(t,n),"aria-labelledby":`${A.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),R=t.values[n],_=I.useCallback(()=>{u.current&&xi(u.current)},[u]),F=t.focusedThumb===n;I.useEffect(()=>{F&&_()},[F,_]);let z=b==="rtl",ie=I.useRef(null),{keyboardProps:ge}=oP({onKeyDown(k){let{getThumbMaxValue:N,getThumbMinValue:te,decrementThumb:j,incrementThumb:ce,setThumbValue:ue,setThumbDragging:Ae,pageSize:_e}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(k.key)){k.continuePropagation();return}switch(k.preventDefault(),Ae(n,!0),k.key){case"PageUp":ce(n,_e);break;case"PageDown":j(n,_e);break;case"Home":ue(n,te(n));break;case"End":ue(n,N(n));break}Ae(n,!1)}}),{moveProps:oe}=uP({onMoveStart(){ie.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:k,deltaY:N,pointerType:te,shiftKey:j}){const{getThumbPercent:ce,setThumbPercent:ue,decrementThumb:Ae,incrementThumb:_e,step:Le,pageSize:Ye}=t;if(!s.current)return;let{width:Qe,height:Ue}=s.current.getBoundingClientRect(),Ge=g?Ue:Qe;if(ie.current==null&&(ie.current=ce(n)*Ge),te==="keyboard")k>0&&z||k<0&&!z||N>0?Ae(n,j?Ye:Le):_e(n,j?Ye:Le);else{let Ie=g?N:k;(g||z)&&(Ie=-Ie),ie.current+=Ie,ue(n,Kl(ie.current/Ge,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!m);const{focusableProps:O}=u4(Jt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let we=I.useRef(void 0),Se=k=>{_(),we.current=k,t.setThumbDragging(n,!0),w(window,"mouseup",U,!1),w(window,"touchend",U,!1),w(window,"pointerup",U,!1)},U=k=>{var N,te;((te=k.pointerId)!==null&&te!==void 0?te:(N=k.changedTouches)===null||N===void 0?void 0:N[0].identifier)===we.current&&(_(),t.setThumbDragging(n,!1),x(window,"mouseup",U,!1),x(window,"touchend",U,!1),x(window,"pointerup",U,!1))},ee=t.getThumbPercent(n);(g||b==="rtl")&&(ee=1-ee);let K=m?{}:Jt(ge,oe,{onMouseDown:k=>{k.button!==0||k.altKey||k.ctrlKey||k.metaKey||Se()},onPointerDown:k=>{k.button!==0||k.altKey||k.ctrlKey||k.metaKey||Se(k.pointerId)},onTouchStart:k=>{Se(k.changedTouches[0].identifier)}});return n4(u,t.defaultValues[n],k=>{t.setThumbValue(n,k)}),{inputProps:Jt(O,S,{type:"range",tabIndex:m?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:R,name:d,form:h,disabled:m,"aria-orientation":f,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[A["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[A["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:k=>{t.setThumbValue(n,parseFloat(k.target.value))}}),thumbProps:{...K,style:{position:"absolute",[g?"top":"left"]:`${ee*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:E,isDragging:t.isThumbDragging(n),isDisabled:m,isFocused:F}}function nz(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:s="text",validationBehavior:u="aria"}=e,[f,d]=wi(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=u4(e,t),m=ld({...e,value:f}),{isInvalid:g,validationErrors:b,validationDetails:w}=m.displayValidation,{labelProps:x,fieldProps:A,descriptionProps:C,errorMessageProps:E}=tm({...e,isInvalid:g,errorMessage:e.errorMessage||b}),S=Us(e,{labelable:!0});const R={type:s,pattern:e.pattern};let[_]=I.useState(f);var F;return n4(t,(F=e.defaultValue)!==null&&F!==void 0?F:_,d),R5(e,m,t),I.useEffect(()=>{if(t.current instanceof es(t.current).HTMLTextAreaElement){let z=t.current;Object.defineProperty(z,"defaultValue",{get:()=>z.value,set:()=>{},configurable:!0})}},[t]),{labelProps:x,inputProps:Jt(S,n==="input"?R:void 0,{disabled:r,readOnly:a,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:f,onChange:z=>d(z.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(fe.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...A}),descriptionProps:C,errorMessageProps:E,isInvalid:g,validationErrors:b,validationDetails:w}}var k5={};k5={Empty:"فارغ"};var O5={};O5={Empty:"Изпразни"};var I5={};I5={Empty:"Prázdné"};var L5={};L5={Empty:"Tom"};var V5={};V5={Empty:"Leer"};var B5={};B5={Empty:"Άδειο"};var N5={};N5={Empty:"Empty"};var j5={};j5={Empty:"Vacío"};var K5={};K5={Empty:"Tühjenda"};var U5={};U5={Empty:"Tyhjä"};var q5={};q5={Empty:"Vide"};var z5={};z5={Empty:"ריק"};var W5={};W5={Empty:"Prazno"};var H5={};H5={Empty:"Üres"};var G5={};G5={Empty:"Vuoto"};var Y5={};Y5={Empty:"空"};var Z5={};Z5={Empty:"비어 있음"};var X5={};X5={Empty:"Tuščias"};var J5={};J5={Empty:"Tukšs"};var Q5={};Q5={Empty:"Tom"};var e_={};e_={Empty:"Leeg"};var t_={};t_={Empty:"Pusty"};var n_={};n_={Empty:"Vazio"};var r_={};r_={Empty:"Vazio"};var i_={};i_={Empty:"Gol"};var a_={};a_={Empty:"Не заполнено"};var s_={};s_={Empty:"Prázdne"};var o_={};o_={Empty:"Prazen"};var u_={};u_={Empty:"Prazno"};var l_={};l_={Empty:"Tomt"};var c_={};c_={Empty:"Boş"};var f_={};f_={Empty:"Пусто"};var d_={};d_={Empty:"空"};var h_={};h_={Empty:"空白"};var p_={};p_={"ar-AE":k5,"bg-BG":O5,"cs-CZ":I5,"da-DK":L5,"de-DE":V5,"el-GR":B5,"en-US":N5,"es-ES":j5,"et-EE":K5,"fi-FI":U5,"fr-FR":q5,"he-IL":z5,"hr-HR":W5,"hu-HU":H5,"it-IT":G5,"ja-JP":Y5,"ko-KR":Z5,"lt-LT":X5,"lv-LV":J5,"nb-NO":Q5,"nl-NL":e_,"pl-PL":t_,"pt-BR":n_,"pt-PT":r_,"ro-RO":i_,"ru-RU":a_,"sk-SK":s_,"sl-SI":o_,"sr-SP":u_,"sv-SE":l_,"tr-TR":c_,"uk-UA":f_,"zh-CN":d_,"zh-TW":h_};function rz(e){return e&&e.__esModule?e.default:e}function iz(e){const t=I.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:s,isReadOnly:u,isRequired:f,onIncrement:d,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:w}=e;const x=ns(rz(p_),"@react-aria/spinbutton"),A=()=>clearTimeout(t.current);I.useEffect(()=>()=>A(),[]);let C=O=>{if(!(O.ctrlKey||O.metaKey||O.shiftKey||O.altKey||u||O.nativeEvent.isComposing))switch(O.key){case"PageUp":if(h){O.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":d&&(O.preventDefault(),d==null||d());break;case"PageDown":if(g){O.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(O.preventDefault(),m==null||m());break;case"Home":b&&(O.preventDefault(),b==null||b());break;case"End":w&&(O.preventDefault(),w==null||w());break}},E=I.useRef(!1),S=()=>{E.current=!0},R=()=>{E.current=!1},_=r===""?x.format("Empty"):(r||`${n}`).replace("-","−");I.useEffect(()=>{E.current&&(kq("assertive"),Rl(_,"assertive"))},[_]);const F=Mn(O=>{A(),d==null||d(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&F(60)},O)}),z=Mn(O=>{A(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&z(60)},O)});let ie=O=>{O.preventDefault()},{addGlobalListener:ge,removeAllGlobalListeners:oe}=Eo();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":_,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":s||void 0,"aria-readonly":u||void 0,"aria-required":f||void 0,onKeyDown:C,onFocus:S,onBlur:R},incrementButtonProps:{onPressStart:()=>{F(400),ge(window,"contextmenu",ie)},onPressEnd:()=>{A(),oe()},onFocus:S,onBlur:R},decrementButtonProps:{onPressStart:()=>{z(400),ge(window,"contextmenu",ie)},onPressEnd:()=>{A(),oe()},onFocus:S,onBlur:R}}}var m_={};m_={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var g_={};g_={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var v_={};v_={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var y_={};y_={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var b_={};b_={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var $_={};$_={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var x_={};x_={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var w_={};w_={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var C_={};C_={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var E_={};E_={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var S_={};S_={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var D_={};D_={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var A_={};A_={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var T_={};T_={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var P_={};P_={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var __={};__={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var M_={};M_={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var F_={};F_={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var R_={};R_={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var k_={};k_={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var O_={};O_={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var I_={};I_={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var L_={};L_={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var V_={};V_={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var B_={};B_={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var N_={};N_={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var j_={};j_={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var K_={};K_={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var U_={};U_={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var q_={};q_={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var z_={};z_={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var W_={};W_={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var H_={};H_={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var G_={};G_={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var Y_={};Y_={"ar-AE":m_,"bg-BG":g_,"cs-CZ":v_,"da-DK":y_,"de-DE":b_,"el-GR":$_,"en-US":x_,"es-ES":w_,"et-EE":C_,"fi-FI":E_,"fr-FR":S_,"he-IL":D_,"hr-HR":A_,"hu-HU":T_,"it-IT":P_,"ja-JP":__,"ko-KR":M_,"lt-LT":F_,"lv-LV":R_,"nb-NO":k_,"nl-NL":O_,"pl-PL":I_,"pt-BR":L_,"pt-PT":V_,"ro-RO":B_,"ru-RU":N_,"sk-SK":j_,"sl-SI":K_,"sr-SP":U_,"sv-SE":q_,"tr-TR":z_,"uk-UA":W_,"zh-CN":H_,"zh-TW":G_};const Wa={top:"top",bottom:"top",left:"left",right:"left"},hp={top:"bottom",bottom:"top",left:"right",right:"left"},az={top:"left",left:"top"},Nb={top:"height",left:"width"},Z_={width:"totalWidth",height:"totalHeight"},hh={};let cr=typeof document<"u"?window.visualViewport:null;function bC(e){let t=0,n=0,r=0,i=0,a=0,s=0,u={};var f;let d=((f=cr==null?void 0:cr.scale)!==null&&f!==void 0?f:1)>1;if(e.tagName==="BODY"){let w=document.documentElement;r=w.clientWidth,i=w.clientHeight;var h;t=(h=cr==null?void 0:cr.width)!==null&&h!==void 0?h:r;var m;n=(m=cr==null?void 0:cr.height)!==null&&m!==void 0?m:i,u.top=w.scrollTop||e.scrollTop,u.left=w.scrollLeft||e.scrollLeft,cr&&(a=cr.offsetTop,s=cr.offsetLeft)}else({width:t,height:n,top:a,left:s}=kl(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(e4()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var g;a=(g=cr==null?void 0:cr.pageTop)!==null&&g!==void 0?g:0;var b;s=(b=cr==null?void 0:cr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:a,left:s}}function sz(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function $C(e,t,n,r,i,a,s){var u;let f=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Nb[e]],h=r.scroll[Wa[e]]+a,m=d+r.scroll[Wa[e]]-a,g=t-f+s[e]-r[Wa[e]],b=t-f+n+s[e]-r[Wa[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function oz(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function xC(e){if(hh[e])return hh[e];let[t,n]=e.split(" "),r=Wa[t]||"right",i=az[r];Wa[n]||(n="center");let a=Nb[r],s=Nb[i];return hh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:s},hh[e]}function Qg(e,t,n,r,i,a,s,u,f,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:w,crossSize:x}=r,A={};var C;A[b]=(C=e[b])!==null&&C!==void 0?C:0;var E,S,R,_;m==="center"?A[b]+=(((E=e[x])!==null&&E!==void 0?E:0)-((S=n[x])!==null&&S!==void 0?S:0))/2:m!==b&&(A[b]+=((R=e[x])!==null&&R!==void 0?R:0)-((_=n[x])!==null&&_!==void 0?_:0)),A[b]+=a;const F=e[b]-n[x]+f+d,z=e[b]+e[x]-f-d;if(A[b]=Kl(A[b],F,z),h===g){const ie=u?s[w]:t[Z_[w]];A[hp[g]]=Math.floor(ie-e[g]+i)}else A[g]=Math.floor(e[g]+e[w]+i);return A}function uz(e,t,n,r,i,a,s,u){const f=r?n.height:t[Z_.height];var d;let h=e.top!=null?n.top+e.top:n.top+(f-((d=e.bottom)!==null&&d!==void 0?d:0)-s);var m,g,b,w,x,A;let C=u!=="top"?Math.max(0,t.height+t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0)-h-(((g=i.top)!==null&&g!==void 0?g:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+a)):Math.max(0,h+s-(t.top+((w=t.scroll.top)!==null&&w!==void 0?w:0))-(((x=i.top)!==null&&x!==void 0?x:0)+((A=i.bottom)!==null&&A!==void 0?A:0)+a));return Math.min(t.height-a*2,C)}function wC(e,t,n,r,i,a){let{placement:s,axis:u,size:f}=a;var d,h;if(s===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((h=r[u])!==null&&h!==void 0?h:0)-r[hp[u]]-i);var m;return Math.max(0,e[f]+e[u]+e.scroll[u]-t[u]-n[u]-n[f]-((m=r[u])!==null&&m!==void 0?m:0)-r[hp[u]]-i)}function lz(e,t,n,r,i,a,s,u,f,d,h,m,g,b,w,x){let A=xC(e),{size:C,crossAxis:E,crossSize:S,placement:R,crossPlacement:_}=A,F=Qg(t,u,n,A,h,m,d,g,w,x),z=h,ie=wC(u,d,t,i,a+h,A);if(s&&r[C]>ie){let _e=xC(`${hp[R]} ${_}`),Le=Qg(t,u,n,_e,h,m,d,g,w,x);wC(u,d,t,i,a+h,_e)>ie&&(A=_e,F=Le,z=h)}let ge="bottom";A.axis==="top"?A.placement==="top"?ge="top":A.placement==="bottom"&&(ge="bottom"):A.crossAxis==="top"&&(A.crossPlacement==="top"?ge="bottom":A.crossPlacement==="bottom"&&(ge="top"));let oe=$C(E,F[E],n[S],u,f,a,d);F[E]+=oe;let O=uz(F,u,d,g,i,a,n.height,ge);b&&b<O&&(O=b),n.height=Math.min(n.height,O),F=Qg(t,u,n,A,z,m,d,g,w,x),oe=$C(E,F[E],n[S],u,f,a,d),F[E]+=oe;let we={},Se=t[E]+.5*t[S]-F[E]-i[Wa[E]];const U=w/2+x;var ee,K,k,N;const te=Wa[E]==="left"?((ee=i.left)!==null&&ee!==void 0?ee:0)+((K=i.right)!==null&&K!==void 0?K:0):((k=i.top)!==null&&k!==void 0?k:0)+((N=i.bottom)!==null&&N!==void 0?N:0),j=n[S]-te-w/2-x,ce=t[E]+w/2-(F[E]+i[Wa[E]]),ue=t[E]+t[S]-w/2-(F[E]+i[Wa[E]]),Ae=Kl(Se,ce,ue);return we[E]=Kl(Ae,U,j),{position:F,maxHeight:O,arrowOffsetLeft:we.left,arrowOffsetTop:we.top,placement:A.placement}}function cz(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:s,boundaryElement:u,offset:f,crossOffset:d,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?fz(r):document.documentElement,w=b===document.documentElement;const x=window.getComputedStyle(b).position;let A=!!x&&x!=="static",C=w?kl(n):CC(n,b);if(!w){let{marginTop:we,marginLeft:Se}=window.getComputedStyle(n);C.top+=parseInt(we,10)||0,C.left+=parseInt(Se,10)||0}let E=kl(r),S=oz(r);var R,_;E.width+=((R=S.left)!==null&&R!==void 0?R:0)+((_=S.right)!==null&&_!==void 0?_:0);var F,z;E.height+=((F=S.top)!==null&&F!==void 0?F:0)+((z=S.bottom)!==null&&z!==void 0?z:0);let ie=sz(i),ge=bC(u),oe=bC(b),O=u.tagName==="BODY"?kl(b):CC(b,u);return b.tagName==="HTML"&&u.tagName==="BODY"&&(oe.scroll.top=0,oe.scroll.left=0),lz(t,C,E,ie,S,a,s,ge,oe,O,f,d,A,h,m,g)}function kl(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:s,clientTop:u,clientLeft:f}=document.documentElement;return{top:t+a-u,left:n+s-f,width:r,height:i}}function CC(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:a,width:s,height:u}=e.getBoundingClientRect();r={top:i,left:a,width:s,height:u}}else{r=kl(e);let i=kl(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function fz(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!EC(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!EC(t);)t=t.parentElement;return t||document.documentElement}function EC(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const X_=new WeakMap;function dz(e){let{triggerRef:t,isOpen:n,onClose:r}=e;I.useEffect(()=>{if(!n||r===null)return;let i=a=>{let s=a.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let u=r||X_.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let qn=typeof document<"u"?window.visualViewport:null;function hz(e){let{direction:t}=Ar(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:a=i,placement:s="bottom",containerPadding:u=12,shouldFlip:f=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:h=0,crossOffset:m=0,shouldUpdatePosition:g=!0,isOpen:b=!0,onClose:w,maxHeight:x,arrowBoundaryOffset:A=0}=e,[C,E]=I.useState(null),S=[g,s,i.current,r.current,a.current,u,f,d,h,m,b,t,x,A,n],R=I.useRef(qn==null?void 0:qn.scale);I.useEffect(()=>{b&&(R.current=qn==null?void 0:qn.scale)},[b]);let _=I.useCallback(()=>{if(g===!1||!b||!i.current||!r.current||!d||(qn==null?void 0:qn.scale)!==R.current)return;let oe=null;if(a.current&&a.current.contains(document.activeElement)){var O;let N=(O=document.activeElement)===null||O===void 0?void 0:O.getBoundingClientRect(),te=a.current.getBoundingClientRect();var we;if(oe={type:"top",offset:((we=N==null?void 0:N.top)!==null&&we!==void 0?we:0)-te.top},oe.offset>te.height/2){oe.type="bottom";var Se;oe.offset=((Se=N==null?void 0:N.bottom)!==null&&Se!==void 0?Se:0)-te.bottom}}let U=i.current;if(!x&&i.current){var ee;U.style.top="0px",U.style.bottom="";var K;U.style.maxHeight=((K=(ee=window.visualViewport)===null||ee===void 0?void 0:ee.height)!==null&&K!==void 0?K:window.innerHeight)+"px"}let k=cz({placement:mz(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:a.current||i.current,padding:u,shouldFlip:f,boundaryElement:d,offset:h,crossOffset:m,maxHeight:x,arrowSize:n,arrowBoundaryOffset:A});if(k.position){if(U.style.top="",U.style.bottom="",U.style.left="",U.style.right="",Object.keys(k.position).forEach(N=>U.style[N]=k.position[N]+"px"),U.style.maxHeight=k.maxHeight!=null?k.maxHeight+"px":"",oe&&document.activeElement&&a.current){let N=document.activeElement.getBoundingClientRect(),te=a.current.getBoundingClientRect(),j=N[oe.type]-te[oe.type];a.current.scrollTop+=j-oe.offset}E(k)}},S);mn(_,S),pz(_),Ew({ref:i,onResize:_}),Ew({ref:r,onResize:_});let F=I.useRef(!1);mn(()=>{let oe,O=()=>{F.current=!0,clearTimeout(oe),oe=setTimeout(()=>{F.current=!1},500),_()},we=()=>{F.current&&O()};return qn==null||qn.addEventListener("resize",O),qn==null||qn.addEventListener("scroll",we),()=>{qn==null||qn.removeEventListener("resize",O),qn==null||qn.removeEventListener("scroll",we)}},[_]);let z=I.useCallback(()=>{F.current||w==null||w()},[w,F]);dz({triggerRef:r,isOpen:b,onClose:w&&z});var ie,ge;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...C==null?void 0:C.position,maxHeight:(ie=C==null?void 0:C.maxHeight)!==null&&ie!==void 0?ie:"100vh"}},placement:(ge=C==null?void 0:C.placement)!==null&&ge!==void 0?ge:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:_}}function pz(e){mn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function mz(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Ba=[];function gz(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:u}=e;I.useEffect(()=>{if(i&&!Ba.includes(t))return Ba.push(t),()=>{let w=Ba.indexOf(t);w>=0&&Ba.splice(w,1)}},[i,t]);let f=()=>{Ba[Ba.length-1]===t&&n&&n()},d=w=>{(!u||u(w.target))&&Ba[Ba.length-1]===t&&(w.stopPropagation(),w.preventDefault())},h=w=>{(!u||u(w.target))&&(Ba[Ba.length-1]===t&&(w.stopPropagation(),w.preventDefault()),f())},m=w=>{w.key==="Escape"&&!s&&!w.nativeEvent.isComposing&&(w.stopPropagation(),w.preventDefault(),f())};nU({ref:t,onInteractOutside:a&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=Ql({isDisabled:!r,onBlurWithin:w=>{!w.relatedTarget||Aq(w.relatedTarget)||(!u||u(w.relatedTarget))&&(n==null||n())}}),b=w=>{w.target===w.currentTarget&&w.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function vz(e,t,n){let{type:r}=e,{isOpen:i}=t;I.useEffect(()=>{n&&n.current&&X_.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let s=jr();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}const ev=typeof document<"u"&&window.visualViewport,yz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ph=0,tv;function bz(e={}){let{isDisabled:t}=e;mn(()=>{if(!t)return ph++,ph===1&&(ed()?tv=xz():tv=$z()),()=>{ph--,ph===0&&tv()}},[t])}function $z(){let e=window.innerWidth-document.documentElement.clientWidth;return $o(e>0&&("scrollbarGutter"in document.documentElement.style?uu(document.documentElement,"scrollbarGutter","stable"):uu(document.documentElement,"paddingRight",`${e}px`)),uu(document.documentElement,"overflow","hidden"))}function xz(){let e,t,n=d=>{e=Wp(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=uu(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=()=>{t&&t()},a=d=>{let h=d.target;wz(h)&&(u(),h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",ev&&(ev.height<window.innerHeight?requestAnimationFrame(()=>{SC(h)}):ev.addEventListener("resize",()=>SC(h),{once:!0}))}))},s=null,u=()=>{if(s)return;let d=()=>{window.scrollTo(0,0)},h=window.pageXOffset,m=window.pageYOffset;s=$o(Xc(window,"scroll",d),uu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),uu(document.documentElement,"overflow","hidden"),uu(document.body,"marginTop",`-${m}px`),()=>{window.scrollTo(h,m)}),window.scrollTo(0,0)},f=$o(Xc(document,"touchstart",n,{passive:!1,capture:!0}),Xc(document,"touchmove",r,{passive:!1,capture:!0}),Xc(document,"touchend",i,{passive:!1,capture:!0}),Xc(document,"focus",a,!0));return()=>{t==null||t(),s==null||s(),f()}}function uu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Xc(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function SC(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Wp(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,a=n.getBoundingClientRect().top;a>i+n.clientHeight&&(r.scrollTop+=a-i)}n=r.parentElement}}function wz(e){return e instanceof HTMLInputElement&&!yz.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Cz=I.createContext({});function Ez(){var e;return(e=I.useContext(Cz))!==null&&e!==void 0?e:{}}const Sz=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Jc=new WeakMap,Qr=[];function J_(e,t){let n=es(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var i;let a=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,s=(r==null?void 0:r.shouldUseInert)&&Sz,u=new Set(e),f=new Set,d=x=>s&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",h=(x,A)=>{s&&x instanceof n.HTMLElement?x.inert=A:A?x.setAttribute("aria-hidden","true"):x.removeAttribute("aria-hidden")},m=x=>{for(let S of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))u.add(S);let A=S=>{if(f.has(S)||u.has(S)||S.parentElement&&f.has(S.parentElement)&&S.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let R of u)if(S.contains(R))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},C=document.createTreeWalker(x,NodeFilter.SHOW_ELEMENT,{acceptNode:A}),E=A(x);if(E===NodeFilter.FILTER_ACCEPT&&g(x),E!==NodeFilter.FILTER_REJECT){let S=C.nextNode();for(;S!=null;)g(S),S=C.nextNode()}},g=x=>{var A;let C=(A=Jc.get(x))!==null&&A!==void 0?A:0;d(x)&&C===0||(C===0&&h(x,!0),f.add(x),Jc.set(x,C+1))};Qr.length&&Qr[Qr.length-1].disconnect(),m(a);let b=new MutationObserver(x=>{for(let A of x)if(A.type==="childList"&&![...u,...f].some(C=>C.contains(A.target)))for(let C of A.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&(C.dataset.liveAnnouncer==="true"||C.dataset.reactAriaTopLayer==="true")?u.add(C):C instanceof Element&&m(C)});b.observe(a,{childList:!0,subtree:!0});let w={visibleNodes:u,hiddenNodes:f,observe(){b.observe(a,{childList:!0,subtree:!0})},disconnect(){b.disconnect()}};return Qr.push(w),()=>{b.disconnect();for(let x of f){let A=Jc.get(x);A!=null&&(A===1?(h(x,!1),Jc.delete(x)):Jc.set(x,A-1))}w===Qr[Qr.length-1]?(Qr.pop(),Qr.length&&Qr[Qr.length-1].observe()):Qr.splice(Qr.indexOf(w),1)}}function Dz(e){let t=Qr[Qr.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function Az(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:u,...f}=e,d=f.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=gz({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||d,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:u},i??r),{overlayProps:g,arrowProps:b,placement:w}=hz({...f,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!d?t.close:null});return bz({isDisabled:a||!t.isOpen}),I.useEffect(()=>{if(t.isOpen&&r.current){var x,A;return a?Dz((x=i==null?void 0:i.current)!==null&&x!==void 0?x:r.current):J_([(A=i==null?void 0:i.current)!==null&&A!==void 0?A:r.current],{shouldUseInert:!0})}},[a,t.isOpen,r,i]),{popoverProps:Jt(h,g),arrowProps:b,underlayProps:m,placement:w}}const Q_=fe.default.createContext(null);function Tz(e){let t=J1(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=I.useState(!1),s=I.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:u}=Ez();if(!e.portalContainer&&u&&(n=u()),!n)return null;let f=e.children;return e.disableFocusManagement||(f=fe.default.createElement(Cq,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},f)),f=fe.default.createElement(Q_.Provider,{value:s},fe.default.createElement(QK,null,f)),Os.default.createPortal(f,n)}function Pz(){let e=I.useContext(Q_),t=e==null?void 0:e.setContain;mn(()=>{t==null||t(!0)},[t])}const nm=new WeakMap;function _z(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function e6(e,t){let n=nm.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${_z(t)}`}function jb(e){return Ah()?e.altKey:e.ctrlKey}function Rh(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,a=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return a&&(i=`[data-collection="${CSS.escape(a)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const t6=new WeakMap;function Mz(e){let t=jr();return t6.set(e,t),t}function Fz(e){return t6.get(e)}const Rz=1e3;function kz(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=I.useRef({search:"",timeout:void 0}).current,a=s=>{let u=Oz(s.key);if(!(!u||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||i.search.length===0&&u===" ")){if(u===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let f=t.getKeyForSearch(i.search,n.focusedKey);f==null&&(f=t.getKeyForSearch(i.search)),f!=null&&(n.setFocusedKey(f),r&&r(f))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Rz)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function Oz(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function n6(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:s=!1,disallowSelectAll:u=!1,escapeKeyBehavior:f="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:b,scrollRef:w=r,linkBehavior:x="action"}=e,{direction:A}=Ar(),C=zp(),E=k=>{var N;if(k.altKey&&k.key==="Tab"&&k.preventDefault(),!(!((N=r.current)===null||N===void 0)&&N.contains(k.target)))return;const te=(Te,He)=>{if(Te!=null){if(t.isLink(Te)&&x==="selection"&&d&&!jb(k)){kp.flushSync(()=>{t.setFocusedKey(Te,He)});let ht=Rh(r,Te),Ht=t.getItemProps(Te);ht&&C.open(ht,k,Ht.href,Ht.routerOptions);return}if(t.setFocusedKey(Te,He),t.isLink(Te)&&x==="override")return;k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&!jb(k)&&t.replaceSelection(Te)}};switch(k.key){case"ArrowDown":if(n.getKeyBelow){var j,ce,ue;let Te=t.focusedKey!=null?(j=n.getKeyBelow)===null||j===void 0?void 0:j.call(n,t.focusedKey):(ce=n.getFirstKey)===null||ce===void 0?void 0:ce.call(n);Te==null&&a&&(Te=(ue=n.getFirstKey)===null||ue===void 0?void 0:ue.call(n,t.focusedKey)),Te!=null&&(k.preventDefault(),te(Te))}break;case"ArrowUp":if(n.getKeyAbove){var Ae,_e,Le;let Te=t.focusedKey!=null?(Ae=n.getKeyAbove)===null||Ae===void 0?void 0:Ae.call(n,t.focusedKey):(_e=n.getLastKey)===null||_e===void 0?void 0:_e.call(n);Te==null&&a&&(Te=(Le=n.getLastKey)===null||Le===void 0?void 0:Le.call(n,t.focusedKey)),Te!=null&&(k.preventDefault(),te(Te))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ye,Qe,Ue;let Te=t.focusedKey!=null?(Ye=n.getKeyLeftOf)===null||Ye===void 0?void 0:Ye.call(n,t.focusedKey):null;Te==null&&a&&(Te=A==="rtl"?(Qe=n.getFirstKey)===null||Qe===void 0?void 0:Qe.call(n,t.focusedKey):(Ue=n.getLastKey)===null||Ue===void 0?void 0:Ue.call(n,t.focusedKey)),Te!=null&&(k.preventDefault(),te(Te,A==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Ge,Ie,Ne;let Te=t.focusedKey!=null?(Ge=n.getKeyRightOf)===null||Ge===void 0?void 0:Ge.call(n,t.focusedKey):null;Te==null&&a&&(Te=A==="rtl"?(Ie=n.getLastKey)===null||Ie===void 0?void 0:Ie.call(n,t.focusedKey):(Ne=n.getFirstKey)===null||Ne===void 0?void 0:Ne.call(n,t.focusedKey)),Te!=null&&(k.preventDefault(),te(Te,A==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&k.shiftKey)return;k.preventDefault();let Te=n.getFirstKey(t.focusedKey,hl(k));t.setFocusedKey(Te),Te!=null&&(hl(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&t.replaceSelection(Te))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&k.shiftKey)return;k.preventDefault();let Te=n.getLastKey(t.focusedKey,hl(k));t.setFocusedKey(Te),Te!=null&&(hl(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&t.replaceSelection(Te))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Te=n.getKeyPageBelow(t.focusedKey);Te!=null&&(k.preventDefault(),te(Te))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Te=n.getKeyPageAbove(t.focusedKey);Te!=null&&(k.preventDefault(),te(Te))}break;case"a":hl(k)&&t.selectionMode==="multiple"&&u!==!0&&(k.preventDefault(),t.selectAll());break;case"Escape":f==="clearSelection"&&!s&&t.selectedKeys.size!==0&&(k.stopPropagation(),k.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(k.shiftKey)r.current.focus();else{let Te=Lr(r.current,{tabbable:!0}),He,ht;do ht=Te.lastChild(),ht&&(He=ht);while(ht);He&&!He.contains(document.activeElement)&&xi(He)}break}}},S=I.useRef({top:0,left:0});qa(w,"scroll",b?void 0:()=>{var k,N,te,j;S.current={top:(te=(k=w.current)===null||k===void 0?void 0:k.scrollTop)!==null&&te!==void 0?te:0,left:(j=(N=w.current)===null||N===void 0?void 0:N.scrollLeft)!==null&&j!==void 0?j:0}});let R=k=>{if(t.isFocused){k.currentTarget.contains(k.target)||t.setFocused(!1);return}if(k.currentTarget.contains(k.target)){if(t.setFocused(!0),t.focusedKey==null){var N,te;let ue=_e=>{_e!=null&&(t.setFocusedKey(_e),d&&!t.isSelected(_e)&&t.replaceSelection(_e))},Ae=k.relatedTarget;var j,ce;Ae&&k.currentTarget.compareDocumentPosition(Ae)&Node.DOCUMENT_POSITION_FOLLOWING?ue((j=t.lastSelectedKey)!==null&&j!==void 0?j:(N=n.getLastKey)===null||N===void 0?void 0:N.call(n)):ue((ce=t.firstSelectedKey)!==null&&ce!==void 0?ce:(te=n.getFirstKey)===null||te===void 0?void 0:te.call(n))}else!b&&w.current&&(w.current.scrollTop=S.current.top,w.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&w.current){let ue=Rh(r,t.focusedKey);ue instanceof HTMLElement&&(!ue.contains(document.activeElement)&&!m&&xi(ue),_f()==="keyboard"&&np(ue,{containingElement:r.current}))}}},_=k=>{k.currentTarget.contains(k.relatedTarget)||t.setFocused(!1)},F=I.useRef(!1);qa(r,_K,m?k=>{let{detail:N}=k;k.stopPropagation(),t.setFocused(!0),(N==null?void 0:N.focusStrategy)==="first"&&(F.current=!0)}:void 0);let z=Mn(()=>{var k,N;let te=(N=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n))!==null&&N!==void 0?N:null;if(te==null){let j=nr();GP(r.current),x4(j,null),t.collection.size>0&&(F.current=!1)}else t.setFocusedKey(te),F.current=!1});Cw(()=>{F.current&&z()},[t.collection,z]);let ie=Mn(()=>{t.collection.size>0&&(F.current=!1)});Cw(()=>{ie()},[t.focusedKey,ie]),qa(r,PK,m?k=>{var N;k.stopPropagation(),t.setFocused(!1),!((N=k.detail)===null||N===void 0)&&N.clearFocusKey&&t.setFocusedKey(null)}:void 0);const ge=I.useRef(i),oe=I.useRef(!1);I.useEffect(()=>{if(ge.current){var k,N;let ce=null;var te;i==="first"&&(ce=(te=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n))!==null&&te!==void 0?te:null);var j;i==="last"&&(ce=(j=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n))!==null&&j!==void 0?j:null);let ue=t.selectedKeys;if(ue.size){for(let Ae of ue)if(t.canSelectItem(Ae)){ce=Ae;break}}t.setFocused(!0),t.setFocusedKey(ce),ce==null&&!m&&r.current&&Eu(r.current),t.collection.size>0&&(ge.current=!1,oe.current=!0)}});let O=I.useRef(t.focusedKey),we=I.useRef(null);I.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==O.current||oe.current)&&w.current&&r.current){let k=_f(),N=Rh(r,t.focusedKey);if(!(N instanceof HTMLElement))return;(k==="keyboard"||oe.current)&&(we.current&&cancelAnimationFrame(we.current),we.current=requestAnimationFrame(()=>{w.current&&(G2(w.current,N),k!=="virtual"&&np(N,{containingElement:r.current}))}))}!m&&t.isFocused&&t.focusedKey==null&&O.current!=null&&r.current&&Eu(r.current),O.current=t.focusedKey,oe.current=!1}),I.useEffect(()=>()=>{we.current&&cancelAnimationFrame(we.current)},[]),qa(r,"react-aria-focus-scope-restore",k=>{k.preventDefault(),t.setFocused(!0)});let Se={onKeyDown:E,onFocus:R,onBlur:_,onMouseDown(k){w.current===k.target&&k.preventDefault()}},{typeSelectProps:U}=kz({keyboardDelegate:n,selectionManager:t});h||(Se=Jt(U,Se));let ee;m||(ee=t.focusedKey==null?0:-1);let K=Mz(t.collection);return{collectionProps:Jt(Se,{tabIndex:ee,"data-collection":K})}}function Iz(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:s,focus:u,isDisabled:f,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=zp();t=jr(t);let b=te=>{if(te.pointerType==="keyboard"&&jb(te))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let j=n.getItemProps(r);g.open(i.current,te,j.href,j.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(m==="override"||m==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):te&&te.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||te&&(hl(te)||te.pointerType==="touch"||te.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};I.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(s?GP(i.current):u?u():document.activeElement!==i.current&&i.current&&Eu(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,s]),f=f||n.isDisabled(r);let w={};!s&&!f?w={tabIndex:r===n.focusedKey?0:-1,onFocus(te){te.target===i.current&&n.setFocusedKey(r)}}:f&&(w.onMouseDown=te=>{te.preventDefault()});let x=n.isLink(r)&&m==="override",A=n.isLink(r)&&m!=="selection"&&m!=="none",C=!f&&n.canSelectItem(r)&&!x,E=(d||A)&&!f,S=E&&(n.selectionBehavior==="replace"?!C:!C||n.isEmpty),R=E&&C&&n.selectionBehavior==="replace",_=S||R,F=I.useRef(null),z=_&&C,ie=I.useRef(!1),ge=I.useRef(!1),oe=n.getItemProps(r),O=te=>{d&&d(),A&&i.current&&g.open(i.current,te,oe.href,oe.routerOptions)},we={ref:i};if(a?(we.onPressStart=te=>{F.current=te.pointerType,ie.current=z,te.pointerType==="keyboard"&&(!_||AC())&&b(te)},h?(we.onPressUp=S?void 0:te=>{te.pointerType==="mouse"&&C&&b(te)},we.onPress=S?O:te=>{te.pointerType!=="keyboard"&&te.pointerType!=="mouse"&&C&&b(te)}):we.onPress=te=>{if(S||R&&te.pointerType!=="mouse"){if(te.pointerType==="keyboard"&&!DC())return;O(te)}else te.pointerType!=="keyboard"&&C&&b(te)}):(we.onPressStart=te=>{F.current=te.pointerType,ie.current=z,ge.current=S,C&&(te.pointerType==="mouse"&&!S||te.pointerType==="keyboard"&&(!E||AC()))&&b(te)},we.onPress=te=>{(te.pointerType==="touch"||te.pointerType==="pen"||te.pointerType==="virtual"||te.pointerType==="keyboard"&&_&&DC()||te.pointerType==="mouse"&&ge.current)&&(_?O(te):C&&b(te))}),w["data-collection"]=Fz(n.collection),w["data-key"]=r,we.preventFocusOnPress=s,s&&(we=Jt(we,{onPressStart(te){te.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(te){te.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),oe)for(let te of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])oe[te]&&(we[te]=$o(we[te],oe[te]));let{pressProps:Se,isPressed:U}=rd(we),ee=R?te=>{F.current==="mouse"&&(te.stopPropagation(),te.preventDefault(),O(te))}:void 0,{longPressProps:K}=lP({isDisabled:!z,onLongPress(te){te.pointerType==="touch"&&(b(te),n.setSelectionBehavior("toggle"))}}),k=te=>{F.current==="touch"&&ie.current&&te.preventDefault()},N=m!=="none"&&n.isLink(r)?te=>{wu.isOpening||te.preventDefault()}:void 0;return{itemProps:Jt(w,C||S||s&&!f?Se:{},z?K:{},{onDoubleClick:ee,onDragStartCapture:k,onClick:N,id:t},s?{onMouseDown:te=>te.preventDefault()}:void 0),isPressed:U,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:f,allowsSelection:C,hasAction:_}}function DC(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function AC(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class TC{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Rh(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-i.left+n.scrollLeft,y:a.top-i.top+n.scrollTop,width:a.width,height:a.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,a;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(a=t==null?void 0:t.offsetHeight)!==null&&a!==void 0?a:0}}constructor(t){this.ref=t}}class r6{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let s=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(s,a)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Pf(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Pf(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i);if(!a)return null;let s=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(s,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new TC(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new TC(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Lz(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:s}=e,u=qP({usage:"search",sensitivity:"base"}),f=t.disabledBehavior,d=I.useMemo(()=>a||new r6({collection:n,disabledKeys:r,disabledBehavior:f,ref:i,collator:u,layoutDelegate:s}),[a,s,n,r,i,u,f]),{collectionProps:h}=n6({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:h}}function Vz(e,t,n){let r=Us(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:s}=Lz({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:u}=Ql({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),f=jr(e.id);nm.set(t,{id:f,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:d,fieldProps:h}=em({...e,id:f,labelElementType:"span"});return{labelProps:d,listBoxProps:Jt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Jt(h,s)})}}function i6(e){return null}i6.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,s=t.title||t.children,u=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:u,"aria-label":t["aria-label"],hasChildNodes:Bz(t),*childNodes(){if(r)for(let f of r)yield{type:"item",value:f};else if(i){let f=[];fe.default.Children.forEach(a,d=>{f.push({type:"item",element:d})}),yield*f}}}};function Bz(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&fe.default.Children.count(e.children)>0)}let Nz=i6;class jz{build(t,n){return this.context=n,PC(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(fe.default.isValidElement(n)&&n.type===fe.default.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];fe.default.Children.forEach(n,s=>{s&&i.push(s)});let a=0;for(let s of i){let u=this.getFullNode({element:s,index:a},{});for(let f of u)a++,yield f}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var s;let u=(s=a.key)!==null&&s!==void 0?s:a.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(fe.default.isValidElement(t.element)&&t.element.type===fe.default.Fragment){let A=[];fe.default.Children.forEach(t.element.props.children,E=>{A.push(E)});var a;let C=(a=t.index)!==null&&a!==void 0?a:0;for(const E of A)yield*this.getFullNode({element:E,index:C++},n,r,i);return}let s=t.element;if(!s&&t.value&&n&&n.renderer){let A=this.cache.get(t.value);if(A&&(!A.shouldInvalidate||!A.shouldInvalidate(this.context))){A.index=t.index,A.parentKey=i?i.key:null,yield A;return}s=n.renderer(t.value)}if(fe.default.isValidElement(s)){let A=s.type;if(typeof A!="function"&&typeof A.getCollectionNode!="function"){let R=s.type;throw new Error(`Unknown element <${R}> in collection.`)}let C=A.getCollectionNode(s.props,this.context);var u;let E=(u=t.index)!==null&&u!==void 0?u:0,S=C.next();for(;!S.done&&S.value;){let R=S.value;t.index=E;var f;let _=(f=R.key)!==null&&f!==void 0?f:null;_==null&&(_=R.element?null:this.getKey(s,t,n,r));let z=[...this.getFullNode({...R,key:_,index:E,wrapper:Kz(t.wrapper,R.wrapper)},this.getChildState(n,R),r?`${r}${s.key}`:s.key,i)];for(let ie of z){var d,h;ie.value=(h=(d=R.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,ie.value&&this.cache.set(ie.value,ie);var m;if(t.type&&ie.type!==t.type)throw new Error(`Unsupported type <${nv(ie.type)}> in <${nv((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${nv(t.type)}> is supported.`);E++,yield ie}S=C.next(z)}return}if(t.key==null||t.type==null)return;let g=this;var b,w;let x={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(w=t.textValue)!==null&&w!==void 0?w:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:PC(function*(){if(!t.hasChildNodes||!t.childNodes)return;let A=0;for(let C of t.childNodes()){C.key!=null&&(C.key=`${x.key}${C.key}`);let E=g.getFullNode({...C,index:A},g.getChildState(n,C),x.key,x);for(let S of E)A++,yield S}})};yield x}constructor(){this.cache=new WeakMap}}function PC(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Kz(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function nv(e){return e[0].toUpperCase()+e.slice(1)}function Uz(e,t,n){let r=I.useMemo(()=>new jz,[]),{children:i,items:a,collection:s}=e;return I.useMemo(()=>{if(s)return s;let f=r.build({children:i,items:a},n);return t(f)},[r,i,a,s,n,t])}function rm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function qz(e){return zz(e)}function zz(e,t){for(let n of e)return n}function rv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[..._C(e,t),t],i=[..._C(e,n),n],a=r.slice(0,i.length).findIndex((s,u)=>s!==i[u]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(s=>s===n)>=0?1:(i.findIndex(s=>s===t)>=0,-1)}function _C(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const MC=new WeakMap;function a6(e){let t=MC.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(rm(a,e)):a.type==="item"&&n++};return r(e),MC.set(e,n),n}function Wz(e,t,n){var r,i;let{key:a}=e,s=nm.get(t);var u;let f=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(a);var d;let h=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(a);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:s==null?void 0:s.shouldSelectOnPressUp;var b;let w=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:s==null?void 0:s.shouldFocusOnHover;var x;let A=(x=e.shouldUseVirtualFocus)!==null&&x!==void 0?x:s==null?void 0:s.shouldUseVirtualFocus;var C;let E=(C=e.isVirtualized)!==null&&C!==void 0?C:s==null?void 0:s.isVirtualized,S=Nl(),R=Nl(),_={role:"option","aria-disabled":f||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};Vs()&&e4()||(_["aria-label"]=e["aria-label"],_["aria-labelledby"]=S,_["aria-describedby"]=R);let F=t.collection.getItem(a);if(E){let k=Number(F==null?void 0:F.index);_["aria-posinset"]=Number.isNaN(k)?void 0:k+1,_["aria-setsize"]=a6(t.collection)}let z=s!=null&&s.onAction?()=>{var k;return s==null||(k=s.onAction)===null||k===void 0?void 0:k.call(s,a)}:void 0,ie=e6(t,a),{itemProps:ge,isPressed:oe,isFocused:O,hasAction:we,allowsSelection:Se}=Iz({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&w,isVirtualized:E,shouldUseVirtualFocus:A,isDisabled:f,onAction:z||!(F==null||(r=F.props)===null||r===void 0)&&r.onAction?$o(F==null||(i=F.props)===null||i===void 0?void 0:i.onAction,z):void 0,linkBehavior:s==null?void 0:s.linkBehavior,id:ie}),{hoverProps:U}=tU({isDisabled:f||!w,onHoverStart(){Ow()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),ee=Us(F==null?void 0:F.props);delete ee.id;let K=CK(F==null?void 0:F.props);return{optionProps:{..._,...Jt(ee,ge,U,K),id:ie},labelProps:{id:S},descriptionProps:{id:R},isFocused:O,isFocusVisible:O&&t.selectionManager.isFocused&&Ow(),isSelected:h,isDisabled:f,isPressed:oe,allowsSelection:Se,hasAction:we}}var s6={};s6={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var o6={};o6={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var u6={};u6={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var l6={};l6={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var c6={};c6={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var f6={};f6={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var d6={};d6={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var h6={};h6={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var p6={};p6={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var m6={};m6={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var g6={};g6={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var v6={};v6={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var y6={};y6={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var b6={};b6={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var $6={};$6={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var x6={};x6={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var w6={};w6={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var C6={};C6={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var E6={};E6={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var S6={};S6={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var D6={};D6={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var A6={};A6={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var T6={};T6={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var P6={};P6={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var _6={};_6={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var M6={};M6={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var F6={};F6={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var R6={};R6={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var k6={};k6={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var O6={};O6={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var I6={};I6={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var L6={};L6={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var V6={};V6={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var B6={};B6={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var N6={};N6={"ar-AE":s6,"bg-BG":o6,"cs-CZ":u6,"da-DK":l6,"de-DE":c6,"el-GR":f6,"en-US":d6,"es-ES":h6,"et-EE":p6,"fi-FI":m6,"fr-FR":g6,"he-IL":v6,"hr-HR":y6,"hu-HU":b6,"it-IT":$6,"ja-JP":x6,"ko-KR":w6,"lt-LT":C6,"lv-LV":E6,"nb-NO":S6,"nl-NL":D6,"pl-PL":A6,"pt-BR":T6,"pt-PT":P6,"ro-RO":_6,"ru-RU":M6,"sk-SK":F6,"sl-SI":R6,"sr-SP":k6,"sv-SE":O6,"tr-TR":I6,"uk-UA":L6,"zh-CN":V6,"zh-TW":B6};function Hz(e){return e&&e.__esModule?e.default:e}function Gz(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,s=jr(),{triggerProps:u,overlayProps:f}=vz({type:r},t,n),d=b=>{if(!i&&!(a==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(a==="longPress"||b.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},h=ns(Hz(N6),"@react-aria/menu"),{longPressProps:m}=lP({isDisabled:i||a!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={preventFocusOnPress:!0,onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&(xi(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&(xi(b.target),t.toggle())}};return delete u.onPress,{menuTriggerProps:{...u,...a==="press"?g:m,id:s,onKeyDown:d},menuProps:{...f,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function Yz(e){return e&&e.__esModule?e.default:e}function Zz(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:s,layoutDelegate:u,shouldFocusWrap:f,isReadOnly:d,isDisabled:h}=e,m=I.useRef(null);n=n??m;let g=ns(Yz(Y_),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:w}=Gz({type:"listbox",isDisabled:h||d},t,n);nm.set(t,{id:w.id});let{collection:x}=t,{disabledKeys:A}=t.selectionManager,C=I.useMemo(()=>s||new r6({collection:x,disabledKeys:A,ref:a,layoutDelegate:u}),[s,u,x,A,a]),{collectionProps:E}=n6({selectionManager:t.selectionManager,keyboardDelegate:C,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:f,ref:i,isVirtualized:!0}),S=zp(),R=Ne=>{if(!Ne.nativeEvent.isComposing)switch(Ne.key){case"Enter":case"Tab":if(t.isOpen&&Ne.key==="Enter"&&Ne.preventDefault(),t.isOpen&&a.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let Te=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(Ne.key==="Enter"&&Te instanceof HTMLAnchorElement){let He=t.collection.getItem(t.selectionManager.focusedKey);He&&S.open(Te,Ne,He.props.href,He.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ne.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},_=Ne=>{var Te;let He=(n==null?void 0:n.current)&&n.current===Ne.relatedTarget,ht=(Te=r.current)===null||Te===void 0?void 0:Te.contains(Ne.relatedTarget);He||ht||(e.onBlur&&e.onBlur(Ne),t.setFocused(!1))},F=Ne=>{t.isFocused||(e.onFocus&&e.onFocus(Ne),t.setFocused(!0))},{isInvalid:z,validationErrors:ie,validationDetails:ge}=t.displayValidation,{labelProps:oe,inputProps:O,descriptionProps:we,errorMessageProps:Se}=nz({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:$o(t.isOpen&&E.onKeyDown,R,e.onKeyDown),onBlur:_,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:F,autoComplete:"off",validate:void 0,[ql]:t},i),U=Ne=>{if(Ne.pointerType==="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(null,"manual")}},ee=Ne=>{if(Ne.pointerType!=="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(Ne.pointerType==="keyboard"||Ne.pointerType==="virtual"?"first":null,"manual")}},K=jl({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||oe.id}),k=jl({id:w.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||oe.id}),N=I.useRef(0),te=Ne=>{if(h||d)return;if(Ne.timeStamp-N.current<500){var Te;Ne.preventDefault(),(Te=i.current)===null||Te===void 0||Te.focus();return}let He=Ne.target.getBoundingClientRect(),ht=Ne.changedTouches[0],Ht=Math.ceil(He.left+.5*He.width),$t=Math.ceil(He.top+.5*He.height);if(ht.clientX===Ht&&ht.clientY===$t){var _t;Ne.preventDefault(),(_t=i.current)===null||_t===void 0||_t.focus(),t.toggle(null,"manual"),N.current=Ne.timeStamp}},j=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var ce;let ue=(ce=j==null?void 0:j.parentKey)!==null&&ce!==void 0?ce:null;var Ae;let _e=(Ae=t.selectionManager.focusedKey)!==null&&Ae!==void 0?Ae:null,Le=I.useRef(ue),Ye=I.useRef(_e);I.useEffect(()=>{if(Ah()&&j!=null&&_e!=null&&_e!==Ye.current){let Te=t.selectionManager.isSelected(_e),He=ue!=null?t.collection.getItem(ue):null,ht=(He==null?void 0:He["aria-label"])||(typeof(He==null?void 0:He.rendered)=="string"?He.rendered:"")||"";var Ne;let Ht=g.format("focusAnnouncement",{isGroupChange:(Ne=He&&ue!==Le.current)!==null&&Ne!==void 0?Ne:!1,groupTitle:ht,groupCount:He?[...rm(He,t.collection)].length:0,optionText:j["aria-label"]||j.textValue||"",isSelected:Te});Rl(Ht)}Le.current=ue,Ye.current=_e});let Qe=a6(t.collection),Ue=I.useRef(Qe),Ge=I.useRef(t.isOpen);I.useEffect(()=>{let Ne=t.isOpen!==Ge.current&&(t.selectionManager.focusedKey==null||Ah());if(t.isOpen&&(Ne||Qe!==Ue.current)){let Te=g.format("countAnnouncement",{optionCount:Qe});Rl(Te)}Ue.current=Qe,Ge.current=t.isOpen});let Ie=I.useRef(t.selectedKey);return I.useEffect(()=>{if(Ah()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Ie.current){let Ne=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Te=g.format("selectedAnnouncement",{optionText:Ne});Rl(Te)}Ie.current=t.selectedKey}),I.useEffect(()=>{if(t.isOpen)return J_([i.current,r.current].filter(Ne=>Ne!=null))},[t.isOpen,i,r]),vb(()=>{!j&&i.current&&nr(Xt(i.current))===i.current&&x4(i.current,null)},[j]),{labelProps:oe,buttonProps:{...b,...K,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:U,onPressStart:ee,isDisabled:h||d},inputProps:Jt(O,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?w.id:void 0,"aria-autocomplete":"list","aria-activedescendant":j?e6(t,j.key):void 0,onTouchEnd:te,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Jt(w,k,{autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:we,errorMessageProps:Se,isInvalid:z,validationErrors:ie,validationDetails:ge}}var j6={};j6={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var K6={};K6={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var U6={};U6={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var q6={};q6={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var z6={};z6={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var W6={};W6={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var H6={};H6={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var G6={};G6={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var Y6={};Y6={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var Z6={};Z6={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var X6={};X6={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var J6={};J6={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var Q6={};Q6={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var eM={};eM={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var tM={};tM={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var nM={};nM={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var rM={};rM={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var iM={};iM={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var aM={};aM={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var sM={};sM={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var oM={};oM={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var uM={};uM={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var lM={};lM={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var cM={};cM={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var fM={};fM={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var dM={};dM={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var hM={};hM={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var pM={};pM={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var mM={};mM={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var gM={};gM={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var vM={};vM={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var yM={};yM={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var bM={};bM={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var $M={};$M={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var cd={};cd={"ar-AE":j6,"bg-BG":K6,"cs-CZ":U6,"da-DK":q6,"de-DE":z6,"el-GR":W6,"en-US":H6,"es-ES":G6,"et-EE":Y6,"fi-FI":Z6,"fr-FR":X6,"he-IL":J6,"hr-HR":Q6,"hu-HU":eM,"it-IT":tM,"ja-JP":nM,"ko-KR":rM,"lt-LT":iM,"lv-LV":aM,"nb-NO":sM,"nl-NL":oM,"pl-PL":uM,"pt-BR":lM,"pt-PT":cM,"ro-RO":fM,"ru-RU":dM,"sk-SK":hM,"sl-SI":pM,"sr-SP":mM,"sv-SE":gM,"tr-TR":vM,"uk-UA":yM,"zh-CN":bM,"zh-TW":$M};function E4(e,t,n){let{direction:r}=Ar(),i=I.useMemo(()=>Jp(t),[t]),a=f=>{if(f.currentTarget.contains(f.target)&&(f.altKey&&(f.key==="ArrowDown"||f.key==="ArrowUp")&&"setOpen"in e&&(f.preventDefault(),f.stopPropagation(),e.setOpen(!0)),!n))switch(f.key){case"ArrowLeft":if(f.preventDefault(),f.stopPropagation(),r==="rtl"){if(t.current){let d=f.target,h=FC(t.current,d.getBoundingClientRect().left,-1);h&&h.focus()}}else i.focusPrevious();break;case"ArrowRight":if(f.preventDefault(),f.stopPropagation(),r==="rtl"){if(t.current){let d=f.target,h=FC(t.current,d.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},s=()=>{var f;if(!t.current)return;let d=(f=window.event)===null||f===void 0?void 0:f.target,h=Lr(t.current,{tabbable:!0});if(d&&(h.currentNode=d,d=h.previousNode()),!d){let m;do m=h.lastChild(),m&&(d=m);while(m)}for(;d!=null&&d.hasAttribute("data-placeholder");){let m=h.previousNode();if(m&&m.hasAttribute("data-placeholder"))d=m;else break}d&&d.focus()},{pressProps:u}=rd({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(f){f.pointerType==="mouse"&&s()},onPress(f){(f.pointerType==="touch"||f.pointerType==="pen")&&s()}});return Jt(u,{onKeyDown:a})}function FC(e,t,n){let r=Lr(e,{tabbable:!0}),i=r.nextNode(),a=null,s=1/0;for(;i;){let f=i.getBoundingClientRect().left-t,d=Math.abs(f);Math.sign(f)===n&&d<s&&(a=i,s=d),i=r.nextNode()}return a}function Xz(e){return e&&e.__esModule?e.default:e}const xM=new WeakMap,xf="__role_"+Date.now(),wM="__focusManager_"+Date.now();function CM(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:s}=t.displayValidation,{labelProps:u,fieldProps:f,descriptionProps:d,errorMessageProps:h}=tm({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),m=I.useRef(null),{focusWithinProps:g}=Ql({...e,onFocusWithin(oe){var O;m.current=t.value,(O=e.onFocus)===null||O===void 0||O.call(e,oe)},onBlurWithin:oe=>{var O;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(O=e.onBlur)===null||O===void 0||O.call(e,oe)},onFocusWithinChange:e.onFocusChange}),b=ns(Xz(cd),"@react-aria/datepicker"),w=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",x=t.maxGranularity==="hour"?"time":"date",A=t.value?b.format(w,{[x]:t.formatValue({month:"long"})}):"",C=td(A),E=e[xf]==="presentation"?f["aria-describedby"]:[C["aria-describedby"],f["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=e[wM],R=I.useMemo(()=>S||Jp(n),[S,n]),_=E4(t,n,e[xf]==="presentation");xM.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:E,focusManager:R});let F=I.useRef(e.autoFocus),z;e[xf]==="presentation"?z={role:"presentation"}:z=Jt(f,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":E}),I.useEffect(()=>{F.current&&R.focusFirst(),F.current=!1},[R]),n4(e.inputRef,t.defaultValue,t.setValue),R5({...e,focus(){R.focusFirst()}},t,e.inputRef);let ie={type:"hidden",name:e.name,form:e.form,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(ie.type="text",ie.hidden=!0,ie.required=e.isRequired,ie.onChange=()=>{});let ge=Us(e);return{labelProps:{...u,onClick:()=>{R.focusFirst()}},fieldProps:Jt(ge,z,_,g,{onKeyDown(oe){e.onKeyDown&&e.onKeyDown(oe)},onKeyUp(oe){e.onKeyUp&&e.onKeyUp(oe)},style:{unicodeBidi:"isolate"}}),inputProps:ie,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:a,validationDetails:s}}function Jz(e,t,n){var r;let i=CM(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function Qz(e){return e&&e.__esModule?e.default:e}function eW(e,t,n){let r=jr(),i=jr(),a=jr(),s=ns(Qz(cd),"@react-aria/datepicker"),{isInvalid:u,validationErrors:f,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=tm({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||f}),w=E4(t,n),x=m["aria-labelledby"]||m.id,{locale:A}=Ar(),C=t.formatValue(A,{month:"long"}),E=C?s.format("selectedDateDescription",{date:C}):"",S=td(E),R=[S["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,_=Us(e),F=I.useMemo(()=>Jp(n),[n]),z=I.useRef(!1),{focusWithinProps:ie}=Ql({...e,isDisabled:t.isOpen,onBlurWithin:ge=>{let oe=document.getElementById(i);if(!(oe!=null&&oe.contains(ge.relatedTarget))){var O,we;z.current=!1,(O=e.onBlur)===null||O===void 0||O.call(e,ge),(we=e.onFocusChange)===null||we===void 0||we.call(e,!1)}},onFocusWithin:ge=>{if(!z.current){var oe,O;z.current=!0,(oe=e.onFocus)===null||oe===void 0||oe.call(e,ge),(O=e.onFocusChange)===null||O===void 0||O.call(e,!0)}}});return{groupProps:Jt(_,w,m,S,ie,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":x,"aria-describedby":R,onKeyDown(ge){t.isOpen||e.onKeyDown&&e.onKeyDown(ge)},onKeyUp(ge){t.isOpen||e.onKeyUp&&e.onKeyUp(ge)}}),labelProps:{...h,onClick:()=>{F.focusFirst()}},fieldProps:{...m,id:a,[xf]:"presentation","aria-describedby":R,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[ql]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:g,errorMessageProps:b,buttonProps:{...S,id:r,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${r} ${x}`,"aria-describedby":R,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${x}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:f,validationDetails:d}}function tW(e){return e&&e.__esModule?e.default:e}function nW(){let{locale:e}=Ar(),t=dP(tW(cd),"@react-aria/datepicker");return I.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new rW(e,t)}},[e,t])}class rW{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function iW(e,t,n){let r=I.useRef(""),{locale:i,direction:a}=Ar(),s=nW(),{ariaLabel:u,ariaLabelledBy:f,ariaDescribedBy:d,focusManager:h}=xM.get(t),m=e.isPlaceholder?"":e.text,g=I.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=za({month:"long",timeZone:g.timeZone}),w=za({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if(e.type==="month"&&!e.isPlaceholder){let j=b.format(t.dateValue);m=j!==m?`${m} – ${j}`:j}else e.type==="hour"&&!e.isPlaceholder&&(m=w.format(t.dateValue));let{spinButtonProps:x}=iz({value:e.value,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),A=I.useMemo(()=>new UP(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&h.focusPrevious(),A.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let j=e.text.slice(0,-1),ce=A.parse(j);j=ce===0?"":j,j.length===0||ce===0?t.clearSegment(e.type):t.setSegment(e.type,ce),r.current=j}else e.type==="dayPeriod"&&t.clearSegment(e.type)},E=j=>{if(j.key==="a"&&(Vs()?j.metaKey:j.ctrlKey)&&j.preventDefault(),!(j.ctrlKey||j.metaKey||j.shiftKey||j.altKey))switch(j.key){case"Backspace":case"Delete":j.preventDefault(),j.stopPropagation(),C();break}},{startsWith:S}=zP({sensitivity:"base"}),R=za({hour:"numeric",hour12:!0}),_=I.useMemo(()=>{let j=new Date;return j.setHours(0),R.formatToParts(j).find(ce=>ce.type==="dayPeriod").value},[R]),F=I.useMemo(()=>{let j=new Date;return j.setHours(12),R.formatToParts(j).find(ce=>ce.type==="dayPeriod").value},[R]),z=za({year:"numeric",era:"narrow",timeZone:"UTC"}),ie=I.useMemo(()=>{if(e.type!=="era")return[];let j=Fn(new Gn(1,1,1),t.calendar),ce=t.calendar.getEras().map(Ae=>{let _e=j.set({year:1,month:1,day:1,era:Ae}).toDate("UTC"),Ye=z.formatToParts(_e).find(Qe=>Qe.type==="era").value;return{era:Ae,formatted:Ye}}),ue=aW(ce.map(Ae=>Ae.formatted));if(ue)for(let Ae of ce)Ae.formatted=Ae.formatted.slice(ue);return ce},[z,t.calendar,e.type]),ge=j=>{if(t.isDisabled||t.isReadOnly)return;let ce=r.current+j;switch(e.type){case"dayPeriod":if(S(_,j))t.setSegment("dayPeriod",0);else if(S(F,j))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let ue=ie.find(Ae=>S(Ae.formatted,j));ue&&(t.setSegment("era",ue.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!A.isValidPartialNumber(ce))return;let ue=A.parse(ce),Ae=ue,_e=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":ue>11&&(Ae=A.parse(j));break;case"h12":_e=!1,ue>12&&(Ae=A.parse(j));break}e.value!==void 0&&e.value>=12&&ue>1&&(ue+=12)}else e.maxValue!==void 0&&ue>e.maxValue&&(Ae=A.parse(j));if(isNaN(ue))return;let Le=Ae!==0||_e;Le&&t.setSegment(e.type,Ae),e.maxValue!==void 0&&(+(ue+"0")>e.maxValue||ce.length>=String(e.maxValue).length)?(r.current="",Le&&h.focusNext()):Le&&(r.current=ce);break}}},oe=()=>{r.current="",n.current&&np(n.current,{containingElement:Wp(n.current)});let j=window.getSelection();j==null||j.collapse(n.current)},O=I.useRef(typeof document<"u"?document:null);qa(O,"selectionchange",()=>{var j;let ce=window.getSelection();ce!=null&&ce.anchorNode&&(!((j=n.current)===null||j===void 0)&&j.contains(ce==null?void 0:ce.anchorNode))&&ce.collapse(n.current)});let we=I.useRef("");qa(n,"beforeinput",j=>{if(n.current)switch(j.preventDefault(),j.inputType){case"deleteContentBackward":case"deleteContentForward":A.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":we.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:j.data!=null&&ge(j.data);break}}),qa(n,"input",j=>{let{inputType:ce,data:ue}=j;switch(ce){case"insertCompositionText":n.current&&(n.current.textContent=we.current),ue!=null&&(S(_,ue)||S(F,ue))&&ge(ue);break}}),mn(()=>{let j=n.current;return()=>{document.activeElement===j&&(h.focusPrevious()||h.focusNext())}},[n,h]);let Se=ed()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},U=I.useMemo(()=>t.segments.find(j=>j.isEditable),[t.segments]);e!==U&&!t.isInvalid&&(d=void 0);let ee=jr(),K=!t.isDisabled&&!t.isReadOnly&&e.isEditable,k=e.type==="literal"?"":s.of(e.type),N=jl({"aria-label":`${k}${u?`, ${u}`:""}${f?", ":""}`,"aria-labelledby":f});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let te={caretColor:"transparent"};if(a==="rtl"){te.unicodeBidi="embed";let j=g[e.type];(j==="numeric"||j==="2-digit")&&(te.direction="ltr")}return{segmentProps:Jt(x,N,{id:ee,...Se,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:K,suppressContentEditableWarning:K,spellCheck:K?"false":void 0,autoCorrect:K?"off":void 0,[parseInt(fe.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:K?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!K?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:E,onFocus:oe,style:te,onPointerDown(j){j.stopPropagation()},onMouseDown(j){j.stopPropagation()}})}}function aW(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function sW(e){return e&&e.__esModule?e.default:e}function oW(e,t,n){var r,i,a,s,u;let f=ns(sW(cd),"@react-aria/datepicker"),{isInvalid:d,validationErrors:h,validationDetails:m}=t.displayValidation,{labelProps:g,fieldProps:b,descriptionProps:w,errorMessageProps:x}=tm({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||h}),A=b["aria-labelledby"]||b.id,{locale:C}=Ar(),E=t.formatValue(C,{month:"long"}),S=E?f.format("selectedRangeDescription",{startDate:E.start,endDate:E.end}):"",R=td(S),_={"aria-label":f.format("startDate"),"aria-labelledby":A},F={"aria-label":f.format("endDate"),"aria-labelledby":A},z=jr(),ie=jr(),ge=E4(t,n),oe=[R["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")||void 0,O=I.useMemo(()=>Jp(n,{accept:j=>j.id!==z}),[n,z]),we={[wM]:O,[xf]:"presentation","aria-describedby":oe,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},Se=Us(e),U=I.useRef(!1),{focusWithinProps:ee}=Ql({...e,isDisabled:t.isOpen,onBlurWithin:j=>{let ce=document.getElementById(ie);if(!(ce!=null&&ce.contains(j.relatedTarget))){var ue,Ae;U.current=!1,(ue=e.onBlur)===null||ue===void 0||ue.call(e,j),(Ae=e.onFocusChange)===null||Ae===void 0||Ae.call(e,!1)}},onFocusWithin:j=>{if(!U.current){var ce,ue;U.current=!0,(ce=e.onFocus)===null||ce===void 0||ce.call(e,j),(ue=e.onFocusChange)===null||ue===void 0||ue.call(e,!0)}}}),K=I.useRef(iu),k=I.useRef(iu);var N,te;return{groupProps:Jt(Se,ge,b,R,ee,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":oe,onKeyDown(j){t.isOpen||e.onKeyDown&&e.onKeyDown(j)},onKeyUp(j){t.isOpen||e.onKeyUp&&e.onKeyUp(j)}}),labelProps:{...g,onClick:()=>{O.focusFirst()}},buttonProps:{...R,id:z,"aria-haspopup":"dialog","aria-label":f.format("calendar"),"aria-labelledby":`${z} ${A}`,"aria-describedby":oe,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:ie,"aria-labelledby":`${z} ${A}`},startFieldProps:{..._,...we,value:(N=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&N!==void 0?N:null,defaultValue:(i=t.defaultValue)===null||i===void 0?void 0:i.start,onChange:j=>t.setDateTime("start",j),autoFocus:e.autoFocus,name:e.startName,form:e.form,[ql]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(j){K.current=j,t.updateValidation(dp(j,k.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...F,...we,value:(te=(a=t.value)===null||a===void 0?void 0:a.end)!==null&&te!==void 0?te:null,defaultValue:(s=t.defaultValue)===null||s===void 0?void 0:s.end,onChange:j=>t.setDateTime("end",j),name:e.endName,form:e.form,[ql]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(j){k.current=j,t.updateValidation(dp(K.current,j))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:w,errorMessageProps:x,calendarProps:{autoFocus:!0,value:!((u=t.dateRange)===null||u===void 0)&&u.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:d,validationErrors:h,validationDetails:m}}function uW(e,t){let{role:n="dialog"}=e,r=Nl();r=e["aria-label"]?void 0:r;let i=I.useRef(!1);return I.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Eu(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),Eu(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),Pz(),{dialogProps:{...Us(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function Ol(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Kb(e,t,n,r,i){let a={};for(let u in t)a[u]=Math.floor(t[u]/2),a[u]>0&&t[u]%2===0&&a[u]--;let s=lu(e,t,n).subtract(a);return If(e,s,t,n,r,i)}function lu(e,t,n,r,i){let a=e;return t.years?a=yU(e):t.months?a=sd(e):t.weeks&&(a=Mf(e,n)),If(e,a,t,n,r,i)}function Ub(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let s=lu(e,t,n).subtract(a);return If(e,s,t,n,r,i)}function If(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let s=f4(t,lu(Kr(i),n,r));s&&(t=s)}if(a&&e.compare(a)<=0){let s=c4(t,Ub(Kr(a),n,r));s&&(t=s)}return t}function so(e,t,n){if(t){let r=f4(e,Kr(t));r&&(e=r)}if(n){let r=c4(e,Kr(n));r&&(e=r)}return e}function EM(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function SM(e){let t=I.useMemo(()=>new qi(e.locale),[e.locale]),n=I.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:s,maxValue:u,selectionAlignment:f,isDateUnavailable:d,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=I.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[w,x]=wi(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),A=I.useMemo(()=>w?Fn(Kr(w),g):null,[w,g]),C=I.useMemo(()=>w&&"timeZone"in w?w.timeZone:n.timeZone,[w,n.timeZone]),E=I.useMemo(()=>e.focusedValue?so(Fn(Kr(e.focusedValue),g),s,u):void 0,[e.focusedValue,g,s,u]),S=I.useMemo(()=>so(e.defaultFocusedValue?Fn(Kr(e.defaultFocusedValue),g):A||Fn(Zp(C),g),s,u),[e.defaultFocusedValue,A,C,g,s,u]),[R,_]=wi(E,S,e.onFocusChange),[F,z]=I.useState(()=>{switch(f){case"start":return lu(R,a,r,s,u);case"end":return Ub(R,a,r,s,u);case"center":default:return Kb(R,a,r,s,u)}}),[ie,ge]=I.useState(e.autoFocus||!1),oe=I.useMemo(()=>{let ce={...a};return ce.days?ce.days--:ce.days=-1,F.add(ce)},[F,a]),[O,we]=I.useState(g);if(!Yp(g,O)){let ce=Fn(R,g);z(Kb(ce,a,r,s,u)),_(ce),we(g)}Ol(R,s,u)?_(so(R,s,u)):R.compare(F)<0?z(Ub(R,a,r,s,u)):R.compare(oe)>0&&z(lu(R,a,r,s,u));function Se(ce){ce=so(ce,s,u),_(ce)}function U(ce){if(!e.isDisabled&&!e.isReadOnly){let ue=ce;if(ue===null){x(null);return}if(ue=so(ue,s,u),ue=EM(ue,F,d),!ue)return;ue=Fn(ue,(w==null?void 0:w.calendar)||new Ur),w&&"hour"in w?x(w.set(ue)):x(ue)}}let ee=I.useMemo(()=>A?d&&d(A)?!0:Ol(A,s,u):!1,[A,d,s,u]),K=e.isInvalid||e.validationState==="invalid"||ee,k=K?"invalid":null,N=I.useMemo(()=>h==="visible"?a:iv(a),[h,a]);var te,j;return{isDisabled:(te=e.isDisabled)!==null&&te!==void 0?te:!1,isReadOnly:(j=e.isReadOnly)!==null&&j!==void 0?j:!1,value:A,setValue:U,visibleRange:{start:F,end:oe},minValue:s,maxValue:u,focusedDate:R,timeZone:C,validationState:k,isValueInvalid:K,setFocusedDate(ce){Se(ce),ge(!0)},focusNextDay(){Se(R.add({days:1}))},focusPreviousDay(){Se(R.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&Se(R.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&Se(R.subtract({weeks:1}))},focusNextPage(){let ce=F.add(N);_(so(R.add(N),s,u)),z(lu(If(R,ce,N,r,s,u),N,r))},focusPreviousPage(){let ce=F.subtract(N);_(so(R.subtract(N),s,u)),z(lu(If(R,ce,N,r,s,u),N,r))},focusSectionStart(){a.days?Se(F):a.weeks?Se(Mf(R,r)):(a.months||a.years)&&Se(sd(R))},focusSectionEnd(){a.days?Se(oe):a.weeks?Se(xU(R,r)):(a.months||a.years)&&Se(Sb(R))},focusNextSection(ce){if(!ce&&!a.days){Se(R.add(iv(a)));return}a.days?this.focusNextPage():a.weeks?Se(R.add({months:1})):(a.months||a.years)&&Se(R.add({years:1}))},focusPreviousSection(ce){if(!ce&&!a.days){Se(R.subtract(iv(a)));return}a.days?this.focusPreviousPage():a.weeks?Se(R.subtract({months:1})):(a.months||a.years)&&Se(R.subtract({years:1}))},selectFocusedDate(){d&&d(R)||U(R)},selectDate(ce){U(ce)},isFocused:ie,setFocused:ge,isInvalid(ce){return Ol(ce,s,u)},isSelected(ce){return A!=null&&Qn(ce,A)&&!this.isCellDisabled(ce)&&!this.isCellUnavailable(ce)},isCellFocused(ce){return ie&&R&&Qn(ce,R)},isCellDisabled(ce){return e.isDisabled||ce.compare(F)<0||ce.compare(oe)>0||this.isInvalid(ce)},isCellUnavailable(ce){return e.isDateUnavailable?e.isDateUnavailable(ce):!1},isPreviousVisibleRangeInvalid(){let ce=F.subtract({days:1});return Qn(ce,F)||this.isInvalid(ce)},isNextVisibleRangeInvalid(){let ce=oe.add({days:1});return Qn(ce,oe)||this.isInvalid(ce)},getDatesInWeek(ce,ue=F){let Ae=ue.add({weeks:ce}),_e=[];Ae=Mf(Ae,r,m);let Le=l4(Ae,r,m);for(let Ye=0;Ye<Le;Ye++)_e.push(null);for(;_e.length<7;){_e.push(Ae);let Ye=Ae.add({days:1});if(Qn(Ae,Ye))break;Ae=Ye}for(;_e.length<7;)_e.push(null);return _e}}}function iv(e){let t={...e};for(let n in e)t[n]=1;return t}function lW(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:s={months:1},minValue:u,maxValue:f,...d}=e,[h,m]=wi(t,n||null,r),[g,b]=I.useState(null),w="center";if(h&&h.start&&h.end){let N=Kb(Kr(h.start),s,a,u,f).add(s).subtract({days:1});h.end.compare(N)>0&&(w="start")}let x=I.useRef(null),[A,C]=I.useState(null),E=I.useMemo(()=>f4(u,A==null?void 0:A.start),[u,A]),S=I.useMemo(()=>c4(f,A==null?void 0:A.end),[f,A]),R=SM({...d,value:h&&h.start,createCalendar:i,locale:a,visibleDuration:s,minValue:E,maxValue:S,selectionAlignment:w}),_=k=>{if(k&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const N=kC(k,R,-1),te=kC(k,R,1);x.current={start:N,end:te},C(x.current)}else x.current=null,C(null)},[F,z]=I.useState(R.visibleRange);(!Eb(R.visibleRange.start,F.start)||!Eb(R.visibleRange.end,F.end))&&(_(g),z(R.visibleRange));let ie=k=>{k?(b(k),_(k)):(b(null),_(null))},ge=g?av(g,R.focusedDate):h&&av(h.start,h.end),oe=k=>{if(e.isReadOnly)return;const N=so(k,E,S),te=EM(N,R.visibleRange.start,e.isDateUnavailable);if(te)if(!g)ie(te);else{let j=av(g,te);j&&m({start:RC(j.start,h==null?void 0:h.start),end:RC(j.end,h==null?void 0:h.end)}),ie(null)}},[O,we]=I.useState(!1),{isDateUnavailable:Se}=e,U=I.useMemo(()=>!h||g?!1:Se&&(Se(h.start)||Se(h.end))?!0:Ol(h.start,u,f)||Ol(h.end,u,f),[Se,h,g,u,f]),ee=e.isInvalid||e.validationState==="invalid"||U;return{...R,value:h,setValue:m,anchorDate:g,setAnchorDate:ie,highlightedRange:ge,validationState:ee?"invalid":null,isValueInvalid:ee,selectFocusedDate(){oe(R.focusedDate)},selectDate:oe,highlightDate(k){g&&R.setFocusedDate(k)},isSelected(k){return!!(ge&&k.compare(ge.start)>=0&&k.compare(ge.end)<=0&&!R.isCellDisabled(k)&&!R.isCellUnavailable(k))},isInvalid(k){var N,te;return R.isInvalid(k)||Ol(k,(N=x.current)===null||N===void 0?void 0:N.start,(te=x.current)===null||te===void 0?void 0:te.end)},isDragging:O,setDragging:we}}function av(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Kr(e),end:Kr(t)})}function RC(e,t){return e=Fn(e,(t==null?void 0:t.calendar)||new Ur),t&&"hour"in t?t.set(e):e}function kC(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class qb{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let u of s.childNodes)n(u)};for(let s of t)n(s);let r=null,i=0;for(let[s,u]of this.keyMap)r?(r.nextKey=s,u.prevKey=r.key):(this.firstKey=s,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var a;this.lastKey=(a=r==null?void 0:r.key)!==null&&a!==void 0?a:null}}class da extends Set{constructor(t,n,r){super(t),t instanceof da?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function cW(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function fW(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,s=I.useRef(!1),[,u]=I.useState(!1),f=I.useRef(null),d=I.useRef(null),[,h]=I.useState(null),m=I.useMemo(()=>OC(e.selectedKeys),[e.selectedKeys]),g=I.useMemo(()=>OC(e.defaultSelectedKeys,new da),[e.defaultSelectedKeys]),[b,w]=wi(m,g,e.onSelectionChange),x=I.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[A,C]=I.useState(i);i==="replace"&&A==="toggle"&&typeof b=="object"&&b.size===0&&C("replace");let E=I.useRef(i);return I.useEffect(()=>{i!==E.current&&(C(i),E.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:A,setSelectionBehavior:C,get isFocused(){return s.current},setFocused(S){s.current=S,u(S)},get focusedKey(){return f.current},get childFocusStrategy(){return d.current},setFocusedKey(S,R="first"){f.current=S,d.current=R,h(S)},selectedKeys:b,setSelectedKeys(S){(r||!cW(S,b))&&w(S)},disabledKeys:x,disabledBehavior:a}}function OC(e,t){return e?e==="all"?"all":new da(e):t}class S4{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&rv(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&rv(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new da([n],n,n);else{let s=this.state.selectedKeys;var i;let u=(i=s.anchorKey)!==null&&i!==void 0?i:n;r=new da(s,u,n);var a;for(let f of this.getKeyRange(u,(a=s.currentKey)!==null&&a!==void 0?a:n))r.delete(f);for(let f of this.getKeyRange(n,u))this.canSelectItem(f)&&r.add(f)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?rv(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],a=t;for(;a!=null;){let s=this.collection.getItem(a);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&i.push(a),a===n)return i;a=this.collection.getKeyAfter(a)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new da(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new da([n],n,n):new da;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new da;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let s=this.collection.getItem(r);(s==null?void 0:s.type)==="item"&&t.push(r);var a;s!=null&&s.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&n((a=(i=qz(rm(s,this.collection)))===null||i===void 0?void 0:i.key)!==null&&a!==void 0?a:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new da)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new S4(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function dW(e){let{filter:t,layoutDelegate:n}=e,r=fW(e),i=I.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=I.useCallback(d=>t?new qb(t(d)):new qb(d),[t]),s=I.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=Uz(e,a,s),f=I.useMemo(()=>new S4(u,r,{layoutDelegate:n}),[u,r,n]);return hW(u,f),{collection:u,disabledKeys:i,selectionManager:f}}function hW(e,t){const n=I.useRef(null);I.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const h=n.current.getItem(t.focusedKey),m=[...n.current.getKeys()].map(C=>{const E=n.current.getItem(C);return(E==null?void 0:E.type)==="item"?E:null}).filter(C=>C!==null),g=[...e.getKeys()].map(C=>{const E=e.getItem(C);return(E==null?void 0:E.type)==="item"?E:null}).filter(C=>C!==null);var r,i;const b=((r=m==null?void 0:m.length)!==null&&r!==void 0?r:0)-((i=g==null?void 0:g.length)!==null&&i!==void 0?i:0);var a,s,u;let w=Math.min(b>1?Math.max(((a=h==null?void 0:h.index)!==null&&a!==void 0?a:0)-b+1,0):(s=h==null?void 0:h.index)!==null&&s!==void 0?s:0,((u=g==null?void 0:g.length)!==null&&u!==void 0?u:0)-1),x=null,A=!1;for(;w>=0;){if(!t.isDisabled(g[w].key)){x=g[w];break}if(w<g.length-1&&!A)w++;else{A=!0;var f,d;w>((f=h==null?void 0:h.index)!==null&&f!==void 0?f:0)&&(w=(d=h==null?void 0:h.index)!==null&&d!==void 0?d:0),w--}}t.setFocusedKey(x?x.key:null)}n.current=e},[e,t])}function pW(e){var t;let[n,r]=wi(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=I.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:s,selectionManager:u}=dW({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var h;let m=(h=d.values().next().value)!==null&&h!==void 0?h:null;m===n&&e.onSelectionChange&&e.onSelectionChange(m),r(m)}}),f=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:s,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:f}}function D4(e){let[t,n]=wi(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=I.useCallback(()=>{n(!0)},[n]),i=I.useCallback(()=>{n(!1)},[n]),a=I.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function mW(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[u,f]=I.useState(!1),[d,h]=I.useState(!1),[m,g]=I.useState(null),b=De=>{e.onSelectionChange&&e.onSelectionChange(De),De===C&&(Ae(),j())};var w;let{collection:x,selectionManager:A,selectedKey:C,setSelectedKey:E,selectedItem:S,disabledKeys:R}=pW({...e,onSelectionChange:b,items:(w=e.items)!==null&&w!==void 0?w:e.defaultItems}),[_,F]=wi(e.inputValue,IC(e.defaultInputValue,C,x)||"",e.onInputChange),[z]=I.useState(C),[ie]=I.useState(_),ge=x,oe=I.useMemo(()=>e.items!=null||!n?x:gW(x,_,n),[x,_,n,e.items]),[O,we]=I.useState(oe),Se=I.useRef("focus"),ee=D4({...e,onOpenChange:De=>{e.onOpenChange&&e.onOpenChange(De,De?Se.current:void 0),A.setFocused(De),De||A.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),K=(De=null,Me)=>{let Xe=Me==="manual"||Me==="focus"&&r==="focus";(i||oe.size>0||Xe&&ge.size>0||e.items)&&(Xe&&!ee.isOpen&&e.items===void 0&&f(!0),Se.current=Me,g(De),ee.open())},k=(De=null,Me)=>{let Xe=Me==="manual"||Me==="focus"&&r==="focus";!(i||oe.size>0||Xe&&ge.size>0||e.items)&&!ee.isOpen||(Xe&&!ee.isOpen&&e.items===void 0&&f(!0),ee.isOpen||(Se.current=Me),te(De))},N=I.useCallback(()=>{we(u?ge:oe)},[u,ge,oe]),te=I.useCallback((De=null)=>{ee.isOpen&&N(),g(De),ee.toggle()},[ee,N]),j=I.useCallback(()=>{ee.isOpen&&(N(),ee.close())},[ee,N]),[ce,ue]=I.useState(_),Ae=()=>{var De,Me;let Xe=C!=null&&(Me=(De=x.getItem(C))===null||De===void 0?void 0:De.textValue)!==null&&Me!==void 0?Me:"";ue(Xe),F(Xe)};var _e,Le;let Ye=I.useRef((Le=(_e=e.selectedKey)!==null&&_e!==void 0?_e:e.defaultSelectedKey)!==null&&Le!==void 0?Le:null);var Qe;let Ue=I.useRef(C!=null&&(Qe=(t=x.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&Qe!==void 0?Qe:"");I.useEffect(()=>{var De;d&&(oe.size>0||i)&&!ee.isOpen&&_!==ce&&r!=="manual"&&K(null,"input"),!u&&!i&&ee.isOpen&&oe.size===0&&j(),C!=null&&C!==Ye.current&&j(),_!==ce&&(A.setFocusedKey(null),f(!1),_===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&E(null)),C!==Ye.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Ae():ce!==_&&ue(_);var Me;let Xe=C!=null&&(Me=(De=x.getItem(C))===null||De===void 0?void 0:De.textValue)!==null&&Me!==void 0?Me:"";!d&&C!=null&&e.inputValue===void 0&&C===Ye.current&&Ue.current!==Xe&&(ue(Xe),F(Xe)),Ye.current=C,Ue.current=Xe});let Ge=ld({...e,value:I.useMemo(()=>({inputValue:_,selectedKey:C}),[_,C])}),Ie=()=>{a&&C==null?Ne():Te()},Ne=()=>{Ye.current=null,E(null),j()},Te=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var De,Me;(De=e.onSelectionChange)===null||De===void 0||De.call(e,C);var Xe;let tt=C!=null&&(Xe=(Me=x.getItem(C))===null||Me===void 0?void 0:Me.textValue)!==null&&Xe!==void 0?Xe:"";ue(tt),j()}else Ae(),j()};const He=()=>{if(a){var De,Me;const Xe=C!=null&&(Me=(De=x.getItem(C))===null||De===void 0?void 0:De.textValue)!==null&&Me!==void 0?Me:"";_===Xe?Te():Ne()}else Te()};let ht=()=>{ee.isOpen&&A.focusedKey!=null?C===A.focusedKey?Te():E(A.focusedKey):He()},Ht=I.useRef(_),$t=De=>{De?(Ht.current=_,r==="focus"&&!e.isReadOnly&&K(null,"focus")):(s&&He(),_!==Ht.current&&Ge.commitValidation()),h(De)},_t=I.useMemo(()=>ee.isOpen?u?ge:oe:O,[ee.isOpen,ge,oe,u,O]);var qr;let Qt=(qr=e.defaultSelectedKey)!==null&&qr!==void 0?qr:z;var be;return{...Ge,...ee,focusStrategy:m,toggle:k,open:K,close:He,selectionManager:A,selectedKey:C,defaultSelectedKey:Qt,setSelectedKey:E,disabledKeys:R,isFocused:d,setFocused:$t,selectedItem:S,collection:_t,inputValue:_,defaultInputValue:(be=IC(e.defaultInputValue,Qt,x))!==null&&be!==void 0?be:ie,setInputValue:F,commit:ht,revert:Ie}}function gW(e,t,n){return new qb(DM(e,e,t,n))}function DM(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let s=DM(e,rm(a,e),n,r);[...s].some(u=>u.type==="item")&&i.push({...a,childNodes:s})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}function IC(e,t,n){if(e==null){var r,i;if(t!=null)return(i=(r=n.getItem(t))===null||r===void 0?void 0:r.textValue)!==null&&i!==void 0?i:""}return e}var AM={};AM={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var TM={};TM={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var PM={};PM={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var _M={};_M={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var MM={};MM={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var FM={};FM={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var RM={};RM={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var kM={};kM={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var OM={};OM={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var IM={};IM={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var LM={};LM={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var VM={};VM={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var BM={};BM={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var NM={};NM={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var jM={};jM={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var KM={};KM={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var UM={};UM={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var qM={};qM={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var zM={};zM={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var WM={};WM={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var HM={};HM={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var GM={};GM={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var YM={};YM={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var ZM={};ZM={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var XM={};XM={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var JM={};JM={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var QM={};QM={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var eF={};eF={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var tF={};tF={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var nF={};nF={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var rF={};rF={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var iF={};iF={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var aF={};aF={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var sF={};sF={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var oF={};oF={"ar-AE":AM,"bg-BG":TM,"cs-CZ":PM,"da-DK":_M,"de-DE":MM,"el-GR":FM,"en-US":RM,"es-ES":kM,"et-EE":OM,"fi-FI":IM,"fr-FR":LM,"he-IL":VM,"hr-HR":BM,"hu-HU":NM,"it-IT":jM,"ja-JP":KM,"ko-KR":UM,"lt-LT":qM,"lv-LV":zM,"nb-NO":WM,"nl-NL":HM,"pl-PL":GM,"pt-BR":YM,"pt-PT":ZM,"ro-RO":XM,"ru-RU":JM,"sk-SK":QM,"sl-SI":eF,"sr-SP":tF,"sv-SE":nF,"tr-TR":rF,"uk-UA":iF,"zh-CN":aF,"zh-TW":sF};function vW(e){return e&&e.__esModule?e.default:e}const uF=new So(vW(oF));function lF(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function pp(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,s=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,f=a||s||u,d=[];if(f){let h=lF(),m=So.getGlobalDictionaryForPackage("@react-stately/datepicker")||uF,g=new fP(h,m),b=new qi(h,Is({},i)),w=b.resolvedOptions().timeZone;s&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate(w))})),a&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate(w))})),u&&d.push(g.format("unavailableDate"))}return{isInvalid:f,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:s,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!f}}}function yW(e,t,n,r,i){var a;let s=pp((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var u;let f=pp((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=dp(s,f);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=So.getGlobalDictionaryForPackage("@react-stately/datepicker")||uF;d=dp(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",lF())],validationDetails:{...Qp,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const bW={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},$W={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Is(e,t){e={...t.shouldForceLeadingZeros?$W:bW,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let s=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");s<0&&(s=0);let u=i.indexOf(r);if(u<0&&(u=2),s>u)throw new Error("maxGranularity must be greater than granularity");let f=i.slice(s,u+1).reduce((h,m)=>(h[m]=e[m],h),{});return t.hourCycle!=null&&(f.hour12=t.hourCycle===12),f.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(f.timeZoneName="short"),t.showEra&&s===0&&(f.era="short"),f}function vl(e){return e&&"hour"in e?e:new od}function cF(e,t){if(e===null)return null;if(e)return Fn(e,t)}function Qc(e,t,n,r){if(e)return cF(e,n);let i=Fn(mP(r??ad()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Kr(i):r?i:ya(i)}function A4(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=I.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let s=e?n:i[1];return[t,s]}function xW(e){let t=D4(e),[n,r]=wi(e.value,e.defaultValue||null,e.onChange),[i]=I.useState(n),a=n||e.placeholderValue||null,[s,u]=A4(a,e.granularity),f=n!=null?n.toDate(u??"UTC"):null,d=s==="hour"||s==="minute"||s==="second";var h;let m=(h=e.shouldCloseOnSelect)!==null&&h!==void 0?h:!0,[g,b]=I.useState(null),[w,x]=I.useState(null);if(n&&(g=n,"hour"in n&&(w=n)),a&&!(s in a))throw new Error("Invalid granularity "+s+" for value "+a.toString());let A=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=I.useMemo(()=>({granularity:s,timeZone:u,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:A}),[s,e.hourCycle,e.shouldForceLeadingZeros,u,e.hideTimeZone,A]),{minValue:E,maxValue:S,isDateUnavailable:R}=e,_=I.useMemo(()=>pp(n,E,S,R,C),[n,E,S,R,C]),F=ld({...e,value:n,builtinValidation:_}),z=F.displayValidation.isInvalid,ie=e.validationState||(z?"invalid":null),ge=(Se,U)=>{r("timeZone"in U?U.set(Kr(Se)):ya(Se,U)),b(null),x(null),F.commitValidation()},oe=Se=>{let U=typeof m=="function"?m():m;d?w||U?ge(Se,w||vl(e.defaultValue||e.placeholderValue)):b(Se):(r(Se),F.commitValidation()),U&&t.setOpen(!1)},O=Se=>{g&&Se?ge(g,Se):x(Se)};var we;return{...F,value:n,defaultValue:(we=e.defaultValue)!==null&&we!==void 0?we:i,setValue:r,dateValue:g,timeValue:w,setDateValue:oe,setTimeValue:O,granularity:s,hasTime:d,...t,setOpen(Se){!Se&&!n&&g&&d&&ge(g,w||vl(e.defaultValue||e.placeholderValue)),t.setOpen(Se)},validationState:ie,isInvalid:z,formatValue(Se,U){if(!f)return"";let ee=Is(U,C);return new qi(Se,ee).format(f)},getDateFormatter(Se,U){let ee={...C,...U},K=Is({},ee);return new qi(Se,K)}}}const wW=new So({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function CW(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?wW.getStringForLocale(e,n):"––"}const kh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},LC={year:5,month:2,day:7,hour:2,minute:15,second:15},fF={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function dF(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:s=!1,minValue:u,maxValue:f,isDateUnavailable:d}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=A4(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let w=I.useMemo(()=>new qi(t),[t]),x=I.useMemo(()=>n(w.resolvedOptions().calendar),[n,w]);var A;let[C,E]=wi(e.value,(A=e.defaultValue)!==null&&A!==void 0?A:null,e.onChange),[S]=I.useState(C),R=I.useMemo(()=>{var Ie;return(Ie=cF(C,x))!==null&&Ie!==void 0?Ie:null},[C,x]),[_,F]=I.useState(()=>Qc(e.placeholderValue,m,x,g)),z=R||_,ie=x.identifier==="gregory"&&z.era==="BC",ge=I.useMemo(()=>{var Ie;return{granularity:m,maxGranularity:(Ie=e.maxGranularity)!==null&&Ie!==void 0?Ie:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:ie,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,ie]),oe=I.useMemo(()=>Is({},ge),[ge]),O=I.useMemo(()=>new qi(t,oe),[t,oe]),we=I.useMemo(()=>O.resolvedOptions(),[O]),Se=I.useMemo(()=>O.formatToParts(new Date).filter(Ie=>kh[Ie.type]).reduce((Ie,Ne)=>(Ie[fF[Ne.type]||Ne.type]=!0,Ie),{}),[O]),[U,ee]=I.useState(()=>e.value||e.defaultValue?{...Se}:{}),K=I.useRef(null),k=I.useRef(x);I.useEffect(()=>{Yp(x,k.current)||(k.current=x,F(Ie=>Object.keys(U).length>0?Fn(Ie,x):Qc(e.placeholderValue,m,x,g)))},[x,m,U,g,e.placeholderValue]),C&&Object.keys(U).length<Object.keys(Se).length&&(U={...Se},ee(U)),C==null&&Object.keys(U).length===Object.keys(Se).length&&(U={},ee(U),F(Qc(e.placeholderValue,m,x,g)));let N=R&&Object.keys(U).length>=Object.keys(Se).length?R:_,te=Ie=>{if(e.isDisabled||e.isReadOnly)return;let Ne=Object.keys(U),Te=Object.keys(Se);Ie==null?(E(null),F(Qc(e.placeholderValue,m,x,g)),ee({})):Ne.length===0&&K.current==null||Ne.length>=Te.length||Ne.length===Te.length-1&&Se.dayPeriod&&!U.dayPeriod&&K.current!=="dayPeriod"?(Ne.length===0&&(U={...Se},ee(U)),Ie=Fn(Ie,(h==null?void 0:h.calendar)||new Ur),E(Ie)):F(Ie),K.current=null},j=I.useMemo(()=>N.toDate(b),[N,b]),ce=I.useMemo(()=>EW(j,U,O,we,N,x,t,m),[j,U,O,we,N,x,t,m]);Se.era&&U.year&&!U.era?(U.era=!0,ee({...U})):!Se.era&&U.era&&(delete U.era,ee({...U}));let ue=Ie=>{U[Ie]=!0,Ie==="year"&&Se.era&&(U.era=!0),ee({...U})},Ae=(Ie,Ne)=>{if(U[Ie])te(SW(N,Ie,Ne,we));else{ue(Ie);let Te=Object.keys(U),He=Object.keys(Se);(Te.length>=He.length||Te.length===He.length-1&&Se.dayPeriod&&!U.dayPeriod)&&te(N)}},_e=I.useMemo(()=>pp(C,u,f,d,ge),[C,u,f,d,ge]),Le=ld({...e,value:C,builtinValidation:_e}),Ye=Le.displayValidation.isInvalid,Qe=e.validationState||(Ye?"invalid":null);var Ue,Ge;return{...Le,value:R,defaultValue:(Ue=e.defaultValue)!==null&&Ue!==void 0?Ue:S,dateValue:j,calendar:x,setValue:te,segments:ce,dateFormatter:O,validationState:Qe,isInvalid:Ye,granularity:m,maxGranularity:(Ge=e.maxGranularity)!==null&&Ge!==void 0?Ge:"year",isDisabled:i,isReadOnly:a,isRequired:s,increment(Ie){Ae(Ie,1)},decrement(Ie){Ae(Ie,-1)},incrementPage(Ie){Ae(Ie,LC[Ie]||1)},decrementPage(Ie){Ae(Ie,-(LC[Ie]||1))},setSegment(Ie,Ne){ue(Ie),te(DW(N,Ie,Ne,we))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let Ie=Object.keys(U),Ne=Object.keys(Se);Ie.length===Ne.length-1&&Se.dayPeriod&&!U.dayPeriod&&(U={...Se},ee(U),te(N.copy()))},clearSegment(Ie){delete U[Ie],K.current=Ie,ee({...U});let Ne=Qc(e.placeholderValue,m,x,g),Te=N;if(Ie==="dayPeriod"&&"hour"in N&&"hour"in Ne){let He=N.hour>=12,ht=Ne.hour>=12;He&&!ht?Te=N.set({hour:N.hour-12}):!He&&ht&&(Te=N.set({hour:N.hour+12}))}else Ie==="hour"&&"hour"in N&&N.hour>=12&&U.dayPeriod?Te=N.set({hour:Ne.hour+12}):Ie in N&&(Te=N.set({[Ie]:Ne[Ie]}));E(null),te(Te)},formatValue(Ie){if(!R)return"";let Ne=Is(Ie,ge);return new qi(t,Ne).format(j)},getDateFormatter(Ie,Ne){let Te={...ge,...Ne},He=Is({},Te);return new qi(Ie,He)}}}function EW(e,t,n,r,i,a,s,u){let f=["hour","minute","second"],d=n.formatToParts(e),h=[];for(let m of d){let g=fF[m.type]||m.type,b=kh[g];g==="era"&&a.getEras().length===1&&(b=!1);let w=kh[g]&&!t[g],x=kh[g]?CW(g,m.value,s):null,A={type:g,text:w?x:m.value,...mh(i,g,r),isPlaceholder:w,placeholder:x,isEditable:b};g==="hour"?(h.push({type:"literal",text:"⁦",...mh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(A),g===u&&h.push({type:"literal",text:"⁩",...mh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):f.includes(g)&&g===u?(h.push(A),h.push({type:"literal",text:"⁩",...mh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(A)}return h}function mh(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:bU(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:$U(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function SW(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return e.set({hour:a?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function DW(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return n>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function AW(e){var t,n;let r=D4(e),[i,a]=wi(e.value,e.defaultValue||null,e.onChange),[s]=I.useState(i),[u,f]=I.useState(()=>i||{start:null,end:null});i==null&&u.start&&u.end&&(u={start:null,end:null},f(u));let d=i||u,h=N=>{d=N||{start:null,end:null},f(d),Qo(d)?a(d):a(null)},m=(d==null?void 0:d.start)||(d==null?void 0:d.end)||e.placeholderValue||null,[g,b]=A4(m,e.granularity),w=g==="hour"||g==="minute"||g==="second";var x;let A=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[C,E]=I.useState(null),[S,R]=I.useState(null);d&&Qo(d)&&(C=d,"hour"in d.start&&(S=d));let _=(N,te)=>{h({start:"timeZone"in te.start?te.start.set(Kr(N.start)):ya(N.start,te.start),end:"timeZone"in te.end?te.end.set(Kr(N.end)):ya(N.end,te.end)}),E(null),R(null),U.commitValidation()},F=N=>{let te=typeof A=="function"?A():A;w?Qo(N)&&(te||S!=null&&S.start&&(S!=null&&S.end))?_(N,{start:(S==null?void 0:S.start)||vl(e.placeholderValue),end:(S==null?void 0:S.end)||vl(e.placeholderValue)}):E(N):Qo(N)?(h(N),U.commitValidation()):E(N),te&&r.setOpen(!1)},z=N=>{Qo(C)&&Qo(N)?_(C,N):R(N)},ie=(d==null||(t=d.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&d.start.era==="BC"||(d==null||(n=d.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&d.end.era==="BC",ge=I.useMemo(()=>({granularity:g,timeZone:b,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:ie}),[g,e.hourCycle,e.shouldForceLeadingZeros,b,e.hideTimeZone,ie]),{minValue:oe,maxValue:O,isDateUnavailable:we}=e,Se=I.useMemo(()=>yW(d,oe,O,we,ge),[d,oe,O,we,ge]),U=ld({...e,value:i,name:I.useMemo(()=>[e.startName,e.endName].filter(N=>N!=null),[e.startName,e.endName]),builtinValidation:Se}),ee=U.displayValidation.isInvalid,K=e.validationState||(ee?"invalid":null);var k;return{...U,value:d,defaultValue:(k=e.defaultValue)!==null&&k!==void 0?k:s,setValue:h,dateRange:C,timeRange:S,granularity:g,hasTime:w,setDate(N,te){var j,ce;F(N==="start"?{start:te,end:(j=C==null?void 0:C.end)!==null&&j!==void 0?j:null}:{start:(ce=C==null?void 0:C.start)!==null&&ce!==void 0?ce:null,end:te})},setTime(N,te){var j,ce;z(N==="start"?{start:te,end:(j=S==null?void 0:S.end)!==null&&j!==void 0?j:null}:{start:(ce=S==null?void 0:S.start)!==null&&ce!==void 0?ce:null,end:te})},setDateTime(N,te){var j,ce;h(N==="start"?{start:te,end:(j=d==null?void 0:d.end)!==null&&j!==void 0?j:null}:{start:(ce=d==null?void 0:d.start)!==null&&ce!==void 0?ce:null,end:te})},setDateRange:F,setTimeRange:z,...r,setOpen(N){!N&&!(d!=null&&d.start&&(d!=null&&d.end))&&Qo(C)&&w&&_(C,{start:(S==null?void 0:S.start)||vl(e.placeholderValue),end:(S==null?void 0:S.end)||vl(e.placeholderValue)}),r.setOpen(N)},validationState:K,isInvalid:ee,formatValue(N,te){if(!d||!d.start||!d.end)return null;let j="timeZone"in d.start?d.start.timeZone:void 0,ce=e.granularity||(d.start&&"minute"in d.start?"minute":"day"),ue="timeZone"in d.end?d.end.timeZone:void 0,Ae=e.granularity||(d.end&&"minute"in d.end?"minute":"day"),_e=Is(te,{granularity:ce,timeZone:j,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:d.start.calendar.identifier==="gregory"&&d.start.era==="BC"||d.end.calendar.identifier==="gregory"&&d.end.era==="BC"}),Le=d.start.toDate(j||"UTC"),Ye=d.end.toDate(ue||"UTC"),Qe=new qi(N,_e),Ue;if(j===ue&&ce===Ae&&d.start.compare(d.end)!==0){try{let Ge=Qe.formatRangeToParts(Le,Ye),Ie=-1;for(let He=0;He<Ge.length;He++){let ht=Ge[He];if(ht.source==="shared"&&ht.type==="literal")Ie=He;else if(ht.source==="endRange")break}let Ne="",Te="";for(let He=0;He<Ge.length;He++)He<Ie?Ne+=Ge[He].value:He>Ie&&(Te+=Ge[He].value);return{start:Ne,end:Te}}catch{}Ue=Qe}else{let Ge=Is(te,{granularity:Ae,timeZone:ue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ue=new qi(N,Ge)}return{start:Qe.format(Le),end:Ue.format(Ye)}},getDateFormatter(N,te){let j={...ge,...te},ce=Is({},j);return new qi(N,ce)}}}function Qo(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function TW(e){let{placeholderValue:t=new od,minValue:n,maxValue:r,defaultValue:i,granularity:a,validate:s}=e,[u,f]=wi(e.value,i??null,e.onChange),d=u||t,h=d&&"day"in d?d:void 0,m=i&&"timeZone"in i?i.timeZone:void 0,g=I.useMemo(()=>{let R=d&&"timeZone"in d?d.timeZone:void 0;return(R||m)&&t?wP(fl(t),R||m):fl(t)},[t,d,m]),b=I.useMemo(()=>fl(n,h),[n,h]),w=I.useMemo(()=>fl(r,h),[r,h]),x=I.useMemo(()=>u&&"day"in u?Ww(u):u,[u]),A=I.useMemo(()=>u==null?null:fl(u),[u]),C=I.useMemo(()=>i==null?null:fl(i),[i]);return{...dF({...e,value:A,defaultValue:C,minValue:b,maxValue:w,onChange:R=>{f(h||m?R:R&&Ww(R))},granularity:a||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Ur,validate:I.useCallback(()=>s==null?void 0:s(u),[s,u])}),timeValue:x}}function fl(e,t=Zp(ad())){return e?"day"in e?e:ya(t,e):null}var sv,VC;function PW(){if(VC)return sv;VC=1;function e(){this.__data__=[],this.size=0}return sv=e,sv}var ov,BC;function T4(){if(BC)return ov;BC=1;function e(t,n){return t===n||t!==t&&n!==n}return ov=e,ov}var uv,NC;function im(){if(NC)return uv;NC=1;var e=T4();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return uv=t,uv}var lv,jC;function _W(){if(jC)return lv;jC=1;var e=im(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,s=e(a,i);if(s<0)return!1;var u=a.length-1;return s==u?a.pop():n.call(a,s,1),--this.size,!0}return lv=r,lv}var cv,KC;function MW(){if(KC)return cv;KC=1;var e=im();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return cv=t,cv}var fv,UC;function FW(){if(UC)return fv;UC=1;var e=im();function t(n){return e(this.__data__,n)>-1}return fv=t,fv}var dv,qC;function RW(){if(qC)return dv;qC=1;var e=im();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return dv=t,dv}var hv,zC;function am(){if(zC)return hv;zC=1;var e=PW(),t=_W(),n=MW(),r=FW(),i=RW();function a(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var d=s[u];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,hv=a,hv}var pv,WC;function kW(){if(WC)return pv;WC=1;var e=am();function t(){this.__data__=new e,this.size=0}return pv=t,pv}var mv,HC;function OW(){if(HC)return mv;HC=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return mv=e,mv}var gv,GC;function IW(){if(GC)return gv;GC=1;function e(t){return this.__data__.get(t)}return gv=e,gv}var vv,YC;function LW(){if(YC)return vv;YC=1;function e(t){return this.__data__.has(t)}return vv=e,vv}var yv,ZC;function hF(){if(ZC)return yv;ZC=1;var e=typeof Ui=="object"&&Ui&&Ui.Object===Object&&Ui;return yv=e,yv}var bv,XC;function zs(){if(XC)return bv;XC=1;var e=hF(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return bv=n,bv}var $v,JC;function sm(){if(JC)return $v;JC=1;var e=zs(),t=e.Symbol;return $v=t,$v}var xv,QC;function VW(){if(QC)return xv;QC=1;var e=sm(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(s){var u=n.call(s,i),f=s[i];try{s[i]=void 0;var d=!0}catch{}var h=r.call(s);return d&&(u?s[i]=f:delete s[i]),h}return xv=a,xv}var wv,eE;function BW(){if(eE)return wv;eE=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return wv=n,wv}var Cv,tE;function ec(){if(tE)return Cv;tE=1;var e=sm(),t=VW(),n=BW(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function s(u){return u==null?u===void 0?i:r:a&&a in Object(u)?t(u):n(u)}return Cv=s,Cv}var Ev,nE;function tc(){if(nE)return Ev;nE=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Ev=e,Ev}var Sv,rE;function P4(){if(rE)return Sv;rE=1;var e=ec(),t=tc(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function s(u){if(!t(u))return!1;var f=e(u);return f==r||f==i||f==n||f==a}return Sv=s,Sv}var Dv,iE;function NW(){if(iE)return Dv;iE=1;var e=zs(),t=e["__core-js_shared__"];return Dv=t,Dv}var Av,aE;function jW(){if(aE)return Av;aE=1;var e=NW(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return Av=n,Av}var Tv,sE;function pF(){if(sE)return Tv;sE=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Tv=n,Tv}var Pv,oE;function KW(){if(oE)return Pv;oE=1;var e=P4(),t=jW(),n=tc(),r=pF(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,f=s.toString,d=u.hasOwnProperty,h=RegExp("^"+f.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var b=e(g)?h:a;return b.test(r(g))}return Pv=m,Pv}var _v,uE;function UW(){if(uE)return _v;uE=1;function e(t,n){return t==null?void 0:t[n]}return _v=e,_v}var Mv,lE;function nc(){if(lE)return Mv;lE=1;var e=KW(),t=UW();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return Mv=n,Mv}var Fv,cE;function _4(){if(cE)return Fv;cE=1;var e=nc(),t=zs(),n=e(t,"Map");return Fv=n,Fv}var Rv,fE;function om(){if(fE)return Rv;fE=1;var e=nc(),t=e(Object,"create");return Rv=t,Rv}var kv,dE;function qW(){if(dE)return kv;dE=1;var e=om();function t(){this.__data__=e?e(null):{},this.size=0}return kv=t,kv}var Ov,hE;function zW(){if(hE)return Ov;hE=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Ov=e,Ov}var Iv,pE;function WW(){if(pE)return Iv;pE=1;var e=om(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var s=this.__data__;if(e){var u=s[a];return u===t?void 0:u}return r.call(s,a)?s[a]:void 0}return Iv=i,Iv}var Lv,mE;function HW(){if(mE)return Lv;mE=1;var e=om(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return Lv=r,Lv}var Vv,gE;function GW(){if(gE)return Vv;gE=1;var e=om(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return Vv=n,Vv}var Bv,vE;function YW(){if(vE)return Bv;vE=1;var e=qW(),t=zW(),n=WW(),r=HW(),i=GW();function a(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var d=s[u];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,Bv=a,Bv}var Nv,yE;function ZW(){if(yE)return Nv;yE=1;var e=YW(),t=am(),n=_4();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Nv=r,Nv}var jv,bE;function XW(){if(bE)return jv;bE=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return jv=e,jv}var Kv,$E;function um(){if($E)return Kv;$E=1;var e=XW();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Kv=t,Kv}var Uv,xE;function JW(){if(xE)return Uv;xE=1;var e=um();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Uv=t,Uv}var qv,wE;function QW(){if(wE)return qv;wE=1;var e=um();function t(n){return e(this,n).get(n)}return qv=t,qv}var zv,CE;function eH(){if(CE)return zv;CE=1;var e=um();function t(n){return e(this,n).has(n)}return zv=t,zv}var Wv,EE;function tH(){if(EE)return Wv;EE=1;var e=um();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return Wv=t,Wv}var Hv,SE;function M4(){if(SE)return Hv;SE=1;var e=ZW(),t=JW(),n=QW(),r=eH(),i=tH();function a(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var d=s[u];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,Hv=a,Hv}var Gv,DE;function nH(){if(DE)return Gv;DE=1;var e=am(),t=_4(),n=M4(),r=200;function i(a,s){var u=this.__data__;if(u instanceof e){var f=u.__data__;if(!t||f.length<r-1)return f.push([a,s]),this.size=++u.size,this;u=this.__data__=new n(f)}return u.set(a,s),this.size=u.size,this}return Gv=i,Gv}var Yv,AE;function mF(){if(AE)return Yv;AE=1;var e=am(),t=kW(),n=OW(),r=IW(),i=LW(),a=nH();function s(u){var f=this.__data__=new e(u);this.size=f.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=a,Yv=s,Yv}var Zv,TE;function rH(){if(TE)return Zv;TE=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Zv=t,Zv}var Xv,PE;function iH(){if(PE)return Xv;PE=1;function e(t){return this.__data__.has(t)}return Xv=e,Xv}var Jv,_E;function aH(){if(_E)return Jv;_E=1;var e=M4(),t=rH(),n=iH();function r(i){var a=-1,s=i==null?0:i.length;for(this.__data__=new e;++a<s;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Jv=r,Jv}var Qv,ME;function gF(){if(ME)return Qv;ME=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return Qv=e,Qv}var ey,FE;function sH(){if(FE)return ey;FE=1;function e(t,n){return t.has(n)}return ey=e,ey}var ty,RE;function vF(){if(RE)return ty;RE=1;var e=aH(),t=gF(),n=sH(),r=1,i=2;function a(s,u,f,d,h,m){var g=f&r,b=s.length,w=u.length;if(b!=w&&!(g&&w>b))return!1;var x=m.get(s),A=m.get(u);if(x&&A)return x==u&&A==s;var C=-1,E=!0,S=f&i?new e:void 0;for(m.set(s,u),m.set(u,s);++C<b;){var R=s[C],_=u[C];if(d)var F=g?d(_,R,C,u,s,m):d(R,_,C,s,u,m);if(F!==void 0){if(F)continue;E=!1;break}if(S){if(!t(u,function(z,ie){if(!n(S,ie)&&(R===z||h(R,z,f,d,m)))return S.push(ie)})){E=!1;break}}else if(!(R===_||h(R,_,f,d,m))){E=!1;break}}return m.delete(s),m.delete(u),E}return ty=a,ty}var ny,kE;function oH(){if(kE)return ny;kE=1;var e=zs(),t=e.Uint8Array;return ny=t,ny}var ry,OE;function uH(){if(OE)return ry;OE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return ry=e,ry}var iy,IE;function lH(){if(IE)return iy;IE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return iy=e,iy}var ay,LE;function cH(){if(LE)return ay;LE=1;var e=sm(),t=oH(),n=T4(),r=vF(),i=uH(),a=lH(),s=1,u=2,f="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",w="[object Set]",x="[object String]",A="[object Symbol]",C="[object ArrayBuffer]",E="[object DataView]",S=e?e.prototype:void 0,R=S?S.valueOf:void 0;function _(F,z,ie,ge,oe,O,we){switch(ie){case E:if(F.byteLength!=z.byteLength||F.byteOffset!=z.byteOffset)return!1;F=F.buffer,z=z.buffer;case C:return!(F.byteLength!=z.byteLength||!O(new t(F),new t(z)));case f:case d:case g:return n(+F,+z);case h:return F.name==z.name&&F.message==z.message;case b:case x:return F==z+"";case m:var Se=i;case w:var U=ge&s;if(Se||(Se=a),F.size!=z.size&&!U)return!1;var ee=we.get(F);if(ee)return ee==z;ge|=u,we.set(F,z);var K=r(Se(F),Se(z),ge,oe,O,we);return we.delete(F),K;case A:if(R)return R.call(F)==R.call(z)}return!1}return ay=_,ay}var sy,VE;function fH(){if(VE)return sy;VE=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return sy=e,sy}var oy,BE;function rs(){if(BE)return oy;BE=1;var e=Array.isArray;return oy=e,oy}var uy,NE;function dH(){if(NE)return uy;NE=1;var e=fH(),t=rs();function n(r,i,a){var s=i(r);return t(r)?s:e(s,a(r))}return uy=n,uy}var ly,jE;function hH(){if(jE)return ly;jE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,s=[];++r<i;){var u=t[r];n(u,r,t)&&(s[a++]=u)}return s}return ly=e,ly}var cy,KE;function pH(){if(KE)return cy;KE=1;function e(){return[]}return cy=e,cy}var fy,UE;function mH(){if(UE)return fy;UE=1;var e=hH(),t=pH(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(u){return r.call(s,u)}))}:t;return fy=a,fy}var dy,qE;function gH(){if(qE)return dy;qE=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return dy=e,dy}var hy,zE;function rc(){if(zE)return hy;zE=1;function e(t){return t!=null&&typeof t=="object"}return hy=e,hy}var py,WE;function vH(){if(WE)return py;WE=1;var e=ec(),t=rc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return py=r,py}var my,HE;function yF(){if(HE)return my;HE=1;var e=vH(),t=rc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(s){return t(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return my=a,my}var pf={exports:{}},gy,GE;function yH(){if(GE)return gy;GE=1;function e(){return!1}return gy=e,gy}pf.exports;var YE;function F4(){return YE||(YE=1,function(e,t){var n=zs(),r=yH(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,u=s?n.Buffer:void 0,f=u?u.isBuffer:void 0,d=f||r;e.exports=d}(pf,pf.exports)),pf.exports}var vy,ZE;function R4(){if(ZE)return vy;ZE=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return vy=n,vy}var yy,XE;function k4(){if(XE)return yy;XE=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return yy=t,yy}var by,JE;function bH(){if(JE)return by;JE=1;var e=ec(),t=k4(),n=rc(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",s="[object Date]",u="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",w="[object String]",x="[object WeakMap]",A="[object ArrayBuffer]",C="[object DataView]",E="[object Float32Array]",S="[object Float64Array]",R="[object Int8Array]",_="[object Int16Array]",F="[object Int32Array]",z="[object Uint8Array]",ie="[object Uint8ClampedArray]",ge="[object Uint16Array]",oe="[object Uint32Array]",O={};O[E]=O[S]=O[R]=O[_]=O[F]=O[z]=O[ie]=O[ge]=O[oe]=!0,O[r]=O[i]=O[A]=O[a]=O[C]=O[s]=O[u]=O[f]=O[d]=O[h]=O[m]=O[g]=O[b]=O[w]=O[x]=!1;function we(Se){return n(Se)&&t(Se.length)&&!!O[e(Se)]}return by=we,by}var $y,QE;function $H(){if(QE)return $y;QE=1;function e(t){return function(n){return t(n)}}return $y=e,$y}var mf={exports:{}};mf.exports;var eS;function xH(){return eS||(eS=1,function(e,t){var n=hF(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a&&n.process,u=function(){try{var f=i&&i.require&&i.require("util").types;return f||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u}(mf,mf.exports)),mf.exports}var xy,tS;function O4(){if(tS)return xy;tS=1;var e=bH(),t=$H(),n=xH(),r=n&&n.isTypedArray,i=r?t(r):e;return xy=i,xy}var wy,nS;function wH(){if(nS)return wy;nS=1;var e=gH(),t=yF(),n=rs(),r=F4(),i=R4(),a=O4(),s=Object.prototype,u=s.hasOwnProperty;function f(d,h){var m=n(d),g=!m&&t(d),b=!m&&!g&&r(d),w=!m&&!g&&!b&&a(d),x=m||g||b||w,A=x?e(d.length,String):[],C=A.length;for(var E in d)(h||u.call(d,E))&&!(x&&(E=="length"||b&&(E=="offset"||E=="parent")||w&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||i(E,C)))&&A.push(E);return A}return wy=f,wy}var Cy,rS;function CH(){if(rS)return Cy;rS=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Cy=t,Cy}var Ey,iS;function bF(){if(iS)return Ey;iS=1;function e(t,n){return function(r){return t(n(r))}}return Ey=e,Ey}var Sy,aS;function EH(){if(aS)return Sy;aS=1;var e=bF(),t=e(Object.keys,Object);return Sy=t,Sy}var Dy,sS;function SH(){if(sS)return Dy;sS=1;var e=CH(),t=EH(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var s=[];for(var u in Object(a))r.call(a,u)&&u!="constructor"&&s.push(u);return s}return Dy=i,Dy}var Ay,oS;function I4(){if(oS)return Ay;oS=1;var e=P4(),t=k4();function n(r){return r!=null&&t(r.length)&&!e(r)}return Ay=n,Ay}var Ty,uS;function L4(){if(uS)return Ty;uS=1;var e=wH(),t=SH(),n=I4();function r(i){return n(i)?e(i):t(i)}return Ty=r,Ty}var Py,lS;function DH(){if(lS)return Py;lS=1;var e=dH(),t=mH(),n=L4();function r(i){return e(i,n,t)}return Py=r,Py}var _y,cS;function AH(){if(cS)return _y;cS=1;var e=DH(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,s,u,f,d,h){var m=u&t,g=e(a),b=g.length,w=e(s),x=w.length;if(b!=x&&!m)return!1;for(var A=b;A--;){var C=g[A];if(!(m?C in s:r.call(s,C)))return!1}var E=h.get(a),S=h.get(s);if(E&&S)return E==s&&S==a;var R=!0;h.set(a,s),h.set(s,a);for(var _=m;++A<b;){C=g[A];var F=a[C],z=s[C];if(f)var ie=m?f(z,F,C,s,a,h):f(F,z,C,a,s,h);if(!(ie===void 0?F===z||d(F,z,u,f,h):ie)){R=!1;break}_||(_=C=="constructor")}if(R&&!_){var ge=a.constructor,oe=s.constructor;ge!=oe&&"constructor"in a&&"constructor"in s&&!(typeof ge=="function"&&ge instanceof ge&&typeof oe=="function"&&oe instanceof oe)&&(R=!1)}return h.delete(a),h.delete(s),R}return _y=i,_y}var My,fS;function TH(){if(fS)return My;fS=1;var e=nc(),t=zs(),n=e(t,"DataView");return My=n,My}var Fy,dS;function PH(){if(dS)return Fy;dS=1;var e=nc(),t=zs(),n=e(t,"Promise");return Fy=n,Fy}var Ry,hS;function _H(){if(hS)return Ry;hS=1;var e=nc(),t=zs(),n=e(t,"Set");return Ry=n,Ry}var ky,pS;function MH(){if(pS)return ky;pS=1;var e=nc(),t=zs(),n=e(t,"WeakMap");return ky=n,ky}var Oy,mS;function FH(){if(mS)return Oy;mS=1;var e=TH(),t=_4(),n=PH(),r=_H(),i=MH(),a=ec(),s=pF(),u="[object Map]",f="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=s(e),w=s(t),x=s(n),A=s(r),C=s(i),E=a;return(e&&E(new e(new ArrayBuffer(1)))!=g||t&&E(new t)!=u||n&&E(n.resolve())!=d||r&&E(new r)!=h||i&&E(new i)!=m)&&(E=function(S){var R=a(S),_=R==f?S.constructor:void 0,F=_?s(_):"";if(F)switch(F){case b:return g;case w:return u;case x:return d;case A:return h;case C:return m}return R}),Oy=E,Oy}var Iy,gS;function RH(){if(gS)return Iy;gS=1;var e=mF(),t=vF(),n=cH(),r=AH(),i=FH(),a=rs(),s=F4(),u=O4(),f=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function w(x,A,C,E,S,R){var _=a(x),F=a(A),z=_?h:i(x),ie=F?h:i(A);z=z==d?m:z,ie=ie==d?m:ie;var ge=z==m,oe=ie==m,O=z==ie;if(O&&s(x)){if(!s(A))return!1;_=!0,ge=!1}if(O&&!ge)return R||(R=new e),_||u(x)?t(x,A,C,E,S,R):n(x,A,z,C,E,S,R);if(!(C&f)){var we=ge&&b.call(x,"__wrapped__"),Se=oe&&b.call(A,"__wrapped__");if(we||Se){var U=we?x.value():x,ee=Se?A.value():A;return R||(R=new e),S(U,ee,C,E,R)}}return O?(R||(R=new e),r(x,A,C,E,S,R)):!1}return Iy=w,Iy}var Ly,vS;function V4(){if(vS)return Ly;vS=1;var e=RH(),t=rc();function n(r,i,a,s,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,s,n,u)}return Ly=n,Ly}var Vy,yS;function kH(){if(yS)return Vy;yS=1;var e=V4();function t(n,r){return e(n,r)}return Vy=t,Vy}var OH=kH();const IH=ai(OH);var Oh={exports:{}},LH=Oh.exports,bS;function VH(){return bS||(bS=1,function(e,t){(function(n,r){e.exports=r()})(LH,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",u="minute",f="hour",d="day",h="week",m="month",g="quarter",b="year",w="date",x="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var ee=["th","st","nd","rd"],K=U%100;return"["+U+(ee[(K-20)%10]||ee[K]||ee[0])+"]"}},S=function(U,ee,K){var k=String(U);return!k||k.length>=ee?U:""+Array(ee+1-k.length).join(K)+U},R={s:S,z:function(U){var ee=-U.utcOffset(),K=Math.abs(ee),k=Math.floor(K/60),N=K%60;return(ee<=0?"+":"-")+S(k,2,"0")+":"+S(N,2,"0")},m:function U(ee,K){if(ee.date()<K.date())return-U(K,ee);var k=12*(K.year()-ee.year())+(K.month()-ee.month()),N=ee.clone().add(k,m),te=K-N<0,j=ee.clone().add(k+(te?-1:1),m);return+(-(k+(K-N)/(te?N-j:j-N))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:m,y:b,w:h,d,D:w,h:f,m:u,s,ms:a,Q:g}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},_="en",F={};F[_]=E;var z="$isDayjsObject",ie=function(U){return U instanceof we||!(!U||!U[z])},ge=function U(ee,K,k){var N;if(!ee)return _;if(typeof ee=="string"){var te=ee.toLowerCase();F[te]&&(N=te),K&&(F[te]=K,N=te);var j=ee.split("-");if(!N&&j.length>1)return U(j[0])}else{var ce=ee.name;F[ce]=ee,N=ce}return!k&&N&&(_=N),N||!k&&_},oe=function(U,ee){if(ie(U))return U.clone();var K=typeof ee=="object"?ee:{};return K.date=U,K.args=arguments,new we(K)},O=R;O.l=ge,O.i=ie,O.w=function(U,ee){return oe(U,{locale:ee.$L,utc:ee.$u,x:ee.$x,$offset:ee.$offset})};var we=function(){function U(K){this.$L=ge(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[z]=!0}var ee=U.prototype;return ee.parse=function(K){this.$d=function(k){var N=k.date,te=k.utc;if(N===null)return new Date(NaN);if(O.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var j=N.match(A);if(j){var ce=j[2]-1||0,ue=(j[7]||"0").substring(0,3);return te?new Date(Date.UTC(j[1],ce,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ue)):new Date(j[1],ce,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ue)}}return new Date(N)}(K),this.init()},ee.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},ee.$utils=function(){return O},ee.isValid=function(){return this.$d.toString()!==x},ee.isSame=function(K,k){var N=oe(K);return this.startOf(k)<=N&&N<=this.endOf(k)},ee.isAfter=function(K,k){return oe(K)<this.startOf(k)},ee.isBefore=function(K,k){return this.endOf(k)<oe(K)},ee.$g=function(K,k,N){return O.u(K)?this[k]:this.set(N,K)},ee.unix=function(){return Math.floor(this.valueOf()/1e3)},ee.valueOf=function(){return this.$d.getTime()},ee.startOf=function(K,k){var N=this,te=!!O.u(k)||k,j=O.p(K),ce=function(Ge,Ie){var Ne=O.w(N.$u?Date.UTC(N.$y,Ie,Ge):new Date(N.$y,Ie,Ge),N);return te?Ne:Ne.endOf(d)},ue=function(Ge,Ie){return O.w(N.toDate()[Ge].apply(N.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(Ie)),N)},Ae=this.$W,_e=this.$M,Le=this.$D,Ye="set"+(this.$u?"UTC":"");switch(j){case b:return te?ce(1,0):ce(31,11);case m:return te?ce(1,_e):ce(0,_e+1);case h:var Qe=this.$locale().weekStart||0,Ue=(Ae<Qe?Ae+7:Ae)-Qe;return ce(te?Le-Ue:Le+(6-Ue),_e);case d:case w:return ue(Ye+"Hours",0);case f:return ue(Ye+"Minutes",1);case u:return ue(Ye+"Seconds",2);case s:return ue(Ye+"Milliseconds",3);default:return this.clone()}},ee.endOf=function(K){return this.startOf(K,!1)},ee.$set=function(K,k){var N,te=O.p(K),j="set"+(this.$u?"UTC":""),ce=(N={},N[d]=j+"Date",N[w]=j+"Date",N[m]=j+"Month",N[b]=j+"FullYear",N[f]=j+"Hours",N[u]=j+"Minutes",N[s]=j+"Seconds",N[a]=j+"Milliseconds",N)[te],ue=te===d?this.$D+(k-this.$W):k;if(te===m||te===b){var Ae=this.clone().set(w,1);Ae.$d[ce](ue),Ae.init(),this.$d=Ae.set(w,Math.min(this.$D,Ae.daysInMonth())).$d}else ce&&this.$d[ce](ue);return this.init(),this},ee.set=function(K,k){return this.clone().$set(K,k)},ee.get=function(K){return this[O.p(K)]()},ee.add=function(K,k){var N,te=this;K=Number(K);var j=O.p(k),ce=function(_e){var Le=oe(te);return O.w(Le.date(Le.date()+Math.round(_e*K)),te)};if(j===m)return this.set(m,this.$M+K);if(j===b)return this.set(b,this.$y+K);if(j===d)return ce(1);if(j===h)return ce(7);var ue=(N={},N[u]=r,N[f]=i,N[s]=n,N)[j]||1,Ae=this.$d.getTime()+K*ue;return O.w(Ae,this)},ee.subtract=function(K,k){return this.add(-1*K,k)},ee.format=function(K){var k=this,N=this.$locale();if(!this.isValid())return N.invalidDate||x;var te=K||"YYYY-MM-DDTHH:mm:ssZ",j=O.z(this),ce=this.$H,ue=this.$m,Ae=this.$M,_e=N.weekdays,Le=N.months,Ye=N.meridiem,Qe=function(Ie,Ne,Te,He){return Ie&&(Ie[Ne]||Ie(k,te))||Te[Ne].slice(0,He)},Ue=function(Ie){return O.s(ce%12||12,Ie,"0")},Ge=Ye||function(Ie,Ne,Te){var He=Ie<12?"AM":"PM";return Te?He.toLowerCase():He};return te.replace(C,function(Ie,Ne){return Ne||function(Te){switch(Te){case"YY":return String(k.$y).slice(-2);case"YYYY":return O.s(k.$y,4,"0");case"M":return Ae+1;case"MM":return O.s(Ae+1,2,"0");case"MMM":return Qe(N.monthsShort,Ae,Le,3);case"MMMM":return Qe(Le,Ae);case"D":return k.$D;case"DD":return O.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Qe(N.weekdaysMin,k.$W,_e,2);case"ddd":return Qe(N.weekdaysShort,k.$W,_e,3);case"dddd":return _e[k.$W];case"H":return String(ce);case"HH":return O.s(ce,2,"0");case"h":return Ue(1);case"hh":return Ue(2);case"a":return Ge(ce,ue,!0);case"A":return Ge(ce,ue,!1);case"m":return String(ue);case"mm":return O.s(ue,2,"0");case"s":return String(k.$s);case"ss":return O.s(k.$s,2,"0");case"SSS":return O.s(k.$ms,3,"0");case"Z":return j}return null}(Ie)||j.replace(":","")})},ee.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ee.diff=function(K,k,N){var te,j=this,ce=O.p(k),ue=oe(K),Ae=(ue.utcOffset()-this.utcOffset())*r,_e=this-ue,Le=function(){return O.m(j,ue)};switch(ce){case b:te=Le()/12;break;case m:te=Le();break;case g:te=Le()/3;break;case h:te=(_e-Ae)/6048e5;break;case d:te=(_e-Ae)/864e5;break;case f:te=_e/i;break;case u:te=_e/r;break;case s:te=_e/n;break;default:te=_e}return N?te:O.a(te)},ee.daysInMonth=function(){return this.endOf(m).$D},ee.$locale=function(){return F[this.$L]},ee.locale=function(K,k){if(!K)return this.$L;var N=this.clone(),te=ge(K,k,!0);return te&&(N.$L=te),N},ee.clone=function(){return O.w(this.$d,this)},ee.toDate=function(){return new Date(this.valueOf())},ee.toJSON=function(){return this.isValid()?this.toISOString():null},ee.toISOString=function(){return this.$d.toISOString()},ee.toString=function(){return this.$d.toUTCString()},U}(),Se=we.prototype;return oe.prototype=Se,[["$ms",a],["$s",s],["$m",u],["$H",f],["$W",d],["$M",m],["$y",b],["$D",w]].forEach(function(U){Se[U[1]]=function(ee){return this.$g(ee,U[0],U[1])}}),oe.extend=function(U,ee){return U.$i||(U(ee,we,oe),U.$i=!0),oe},oe.locale=ge,oe.isDayjs=ie,oe.unix=function(U){return oe(1e3*U)},oe.en=F[_],oe.Ls=F,oe.p={},oe})}(Oh)),Oh.exports}var $F=VH();const BH=ai($F);var By,$S;function NH(){if($S)return By;$S=1;var e=ec(),t=rc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return By=r,By}var jH=NH();const KH=ai(jH);var _u=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],UH="react-international-phone-",xF=(...e)=>e.filter(t=>!!t).join(" ").trim(),qH=(...e)=>xF(...e).split(" ").map(t=>`${UH}${t}`).join(" "),Dr=({addPrefix:e,rawClassNames:t})=>xF(qH(...e),...t),zH=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let a=e.slice(0,r),s=e.slice(r),u=a,f=0;for(let d of t.split("")){if(f>=s.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=s[f],f+=1):u+=d}return u},pl=e=>e?/^\d+$/.test(e):!1,lm=e=>e.replace(/\D/g,""),WH=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.top-r.top,s=r.bottom-i.bottom;a>=0&&s>=0||(Math.abs(a)<Math.abs(s)?e.scrollTop+=a:e.scrollTop-=s),e.style.display=n},HH=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),GH=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,a=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=lm(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return a(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return a(`${t.prefix}${i}`)}let s=()=>{let d=t.dialCode.length,h=i.slice(0,d),m=i.slice(d);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:u,phoneRightSide:f}=s();return u=`${t.prefix}${u}${t.charAfterDialCode}`,f=zH({value:f,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&f.length===0}),t.disableDialCodeAndPrefix&&(u=""),a(`${u}${f}`)},YH=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:a})=>{if(r<i)return i;if(!e)return n.length;let s=null;for(let h=r-1;h>=0;h-=1)if(pl(t[h])){s=h;break}if(s===null){for(let h=0;h<t.length;h+=1)if(pl(n[h]))return h;return t.length}let u=0;for(let h=0;h<s;h+=1)pl(t[h])&&(u+=1);let f=0,d=0;for(let h=0;h<n.length&&(f+=1,pl(n[h])&&(d+=1),!(d>=u+1));h+=1);if(a!=="backward")for(;!pl(n[f])&&f<n.length;)f+=1;return f},Ih=({phone:e,prefix:t})=>e?`${t}${lm(e)}`:"";function zb({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:s,forceDialCode:u,disableDialCodeAndPrefix:f,defaultMask:d,countryGuessingEnabled:h,disableFormatting:m}){let g=e;f&&(g=g.startsWith(`${a}`)?g:`${a}${t.dialCode}${g}`);let b=h?iG({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,w=(b==null?void 0:b.country)??t,x=GH(g,{prefix:a,mask:nG({phone:g,country:w,defaultMask:d,disableFormatting:m}),maskChar:wF,dialCode:w.dialCode,trimNonDigitsEnd:r,charAfterDialCode:s,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:f}),A=h&&!(b!=null&&b.fullDialCodeMatch)?t:w;return{phone:Ih({phone:f?`${A.dialCode}${x}`:x,prefix:a}),inputValue:x,country:A}}var ZH=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},XH=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:s,disableDialCodeAndPrefix:u,countryGuessingEnabled:f,defaultMask:d,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,w=ZH(b),x=!!(b!=null&&b.startsWith("insertFrom")),A=b==="insertText",C=(g==null?void 0:g.data)||void 0,E=e.target.value,S=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:Ih({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(A&&!pl(C)&&E!==i)return{inputValue:r,phone:Ih({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:S-((C==null?void 0:C.length)??0),country:t};if(s&&!E.startsWith(`${i}${t.dialCode}`)&&!x){let ie=E?r:`${i}${t.dialCode}${a}`;return{inputValue:ie,phone:Ih({phone:ie,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:R,inputValue:_,country:F}=zb({value:E,country:t,trimNonDigitsEnd:w==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:f,countries:m,prefix:i,charAfterDialCode:a,forceDialCode:s,disableDialCodeAndPrefix:u,disableFormatting:h,defaultMask:d}),z=YH({cursorPositionAfterInput:S,phoneBeforeInput:r,phoneAfterInput:E,phoneAfterFormatted:_,leftOffset:s?i.length+t.dialCode.length+a.length:0,deletion:w});return{phone:R,inputValue:_,cursorPosition:z,country:F}},JH=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},QH=()=>{let e=I.useRef(),t=I.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},eG={size:20,overrideLastItemDebounceMS:-1};function tG(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...eG,...t},[a,s]=I.useState(e),[u,f]=I.useState([a]),[d,h]=I.useState(0),m=QH();return[a,(g,b)=>{if(typeof g=="object"&&typeof a=="object"&&JH(g,a)||g===a)return;let w=r>0,x=m.check(),A=w&&x!==void 0?x>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!A)f(C=>[...C.slice(0,d),g]);else{let C=u.length>=n;f(E=>[...E.slice(C?1:0,d+1),g]),C||h(E=>E+1)}s(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=u[d-1];return s(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=u.length)return{success:!1};let g=u[d+1];return s(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var wF=".",ki={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:_u},CF=({defaultCountry:e=ki.defaultCountry,value:t=ki.value,countries:n=ki.countries,prefix:r=ki.prefix,defaultMask:i=ki.defaultMask,charAfterDialCode:a=ki.charAfterDialCode,historySaveDebounceMS:s=ki.historySaveDebounceMS,disableCountryGuess:u=ki.disableCountryGuess,disableDialCodePrefill:f=ki.disableDialCodePrefill,forceDialCode:d=ki.forceDialCode,disableDialCodeAndPrefix:h=ki.disableDialCodeAndPrefix,disableFormatting:m=ki.disableFormatting,onChange:g,inputRef:b})=>{let w={countries:n,prefix:r,charAfterDialCode:a,forceDialCode:h?!1:d,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:m},x=I.useRef(null),A=b||x,C=U=>{Promise.resolve().then(()=>{var ee;typeof window>"u"||A.current!==(document==null?void 0:document.activeElement)||((ee=A.current)==null||ee.setSelectionRange(U,U))})},[{phone:E,inputValue:S,country:R},_,F,z]=tG(()=>{let U=yl({value:e,field:"iso2",countries:n});U||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let ee=U||yl({value:"us",field:"iso2",countries:n}),{phone:K,inputValue:k,country:N}=zb({value:t,country:ee,insertDialCodeOnEmpty:!f,...w});return C(k.length),{phone:K,inputValue:k,country:N.iso2}},{overrideLastItemDebounceMS:s,onChange:({inputValue:U,phone:ee,country:K})=>{if(!g)return;let k=ie(K);g({phone:ee,inputValue:U,country:k})}}),ie=I.useCallback(U=>yl({value:U,field:"iso2",countries:n}),[n]),ge=I.useMemo(()=>ie(R),[R,ie]);I.useEffect(()=>{let U=A.current;if(!U)return;let ee=K=>{if(!K.key)return;let k=K.ctrlKey,N=K.metaKey,te=K.shiftKey;if(K.key.toLowerCase()==="z"){if(HH()){if(!N)return}else if(!k)return;te?z():F()}};return U.addEventListener("keydown",ee),()=>{U.removeEventListener("keydown",ee)}},[A,F,z]);let oe=U=>{U.preventDefault();let{phone:ee,inputValue:K,country:k,cursorPosition:N}=XH(U,{country:ge,phoneBeforeInput:S,insertDialCodeOnEmpty:!1,...w});return _({inputValue:K,phone:ee,country:k.iso2}),C(N),t},O=(U,ee={focusOnInput:!1})=>{let K=yl({value:U,field:"iso2",countries:n});if(!K){console.error(`[react-international-phone]: can not find a country with "${U}" iso2 code`);return}let k=h?"":`${r}${K.dialCode}${a}`;_({inputValue:k,phone:`${r}${K.dialCode}`,country:K.iso2}),ee.focusOnInput&&Promise.resolve().then(()=>{var N;(N=A.current)==null||N.focus()})},[we,Se]=I.useState(!1);return I.useEffect(()=>{if(!we){Se(!0),t!==E&&(g==null||g({inputValue:S,phone:E,country:ge}));return}if(t===E)return;let{phone:U,inputValue:ee,country:K}=zb({value:t,country:ge,insertDialCodeOnEmpty:!f,...w});_({phone:U,inputValue:ee,country:K.iso2})},[t]),{phone:E,inputValue:S,country:ge,setCountry:O,handlePhoneValueChange:oe,inputRef:A}},nG=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=u=>r?u.replace(new RegExp(`[^${wF}]`,"g"),""):u;if(!i)return a(n);if(typeof i=="string")return a(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),a(n);let s=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let f=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return f.test(lm(d))});return a(s?i[s]:i.default)},ha=e=>{let[t,n,r,i,a,s]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:s}},rG=e=>`Field "${e}" is not supported`,yl=({field:e,value:t,countries:n=_u})=>{if(["priority"].includes(e))throw new Error(rG(e));let r=n.find(i=>{let a=ha(i);return t===a[e]});if(r)return ha(r)},iG=({phone:e,countries:t=_u,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=lm(e);if(!i)return r;let a=r,s=({country:f,fullDialCodeMatch:d})=>{var g,b;let h=f.dialCode===((g=a.country)==null?void 0:g.dialCode),m=(f.priority??0)<(((b=a.country)==null?void 0:b.priority)??0);(!h||m)&&(a={country:f,fullDialCodeMatch:d})};for(let f of t){let d=ha(f),{dialCode:h,areaCodes:m}=d;if(i.startsWith(h)){let g=a.country?Number(h)>=Number(a.country.dialCode):!0;if(m){let b=i.substring(h.length);for(let w of m)if(b.startsWith(w))return{country:d,fullDialCodeMatch:!0}}(g||h===i||!a.fullDialCodeMatch)&&s({country:d,fullDialCodeMatch:!0})}a.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!a.country||Number(h)<=Number(a.country.dialCode))&&s({country:d,fullDialCodeMatch:!1})}if(n){let f=yl({value:n,field:"iso2",countries:t});if(!f)return a;let d=f?(h=>{if(!(h!=null&&h.areaCodes))return!1;let m=i.substring(h.dialCode.length);return h.areaCodes.some(g=>g.startsWith(m))})(f):!1;a&&((u=a.country)==null?void 0:u.dialCode)===f.dialCode&&a.country!==f&&a.fullDialCodeMatch&&(!f.areaCodes||d)&&(a={country:f,fullDialCodeMatch:!0})}return a},aG=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},sG="abcdefghijklmnopqrstuvwxyz",oG="1f1e6",xS=sG.split("").reduce((e,t,n)=>({...e,[t]:aG(oG,n)}),{}),uG=e=>[xS[e[0]],xS[e[1]]].join("-"),B4=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:a,style:s,...u})=>{if(!e)return fe.default.createElement("img",{className:Dr({addPrefix:["flag-emoji"],rawClassNames:[a]}),width:t,height:t,...u});let f=()=>{if(n)return n;let d=uG(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return fe.default.createElement("img",{className:Dr({addPrefix:["flag-emoji"],rawClassNames:[a]}),src:f(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...s},alt:"",...u})},lG=1e3,cG=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=_u,preferredCountries:i=[],flags:a,onSelect:s,onClose:u,...f})=>{let d=I.useRef(null),h=I.useRef(),m=I.useMemo(()=>{if(!i||!i.length)return r;let F=[],z=[...r];for(let ie of i){let ge=z.findIndex(oe=>ha(oe).iso2===ie);if(ge!==-1){let oe=z.splice(ge,1)[0];F.push(oe)}}return F.concat(z)},[r,i]),g=I.useRef({updatedAt:void 0,value:""}),b=F=>{let z=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>lG;g.current={value:z?F:`${g.current.value}${F}`,updatedAt:new Date};let ie=m.findIndex(ge=>ha(ge).name.toLowerCase().startsWith(g.current.value));ie!==-1&&A(ie)},w=I.useCallback(F=>m.findIndex(z=>ha(z).iso2===F),[m]),[x,A]=I.useState(w(n)),C=()=>{h.current!==n&&A(w(n))},E=I.useCallback(F=>{A(w(F.iso2)),s==null||s(F)},[s,w]),S=F=>{let z=m.length-1,ie=ge=>F==="prev"?ge-1:F==="next"?ge+1:F==="last"?z:0;A(ge=>{let oe=ie(ge);return oe<0?0:oe>z?z:oe})},R=F=>{if(F.stopPropagation(),F.key==="Enter"){F.preventDefault();let z=ha(m[x]);E(z);return}if(F.key==="Escape"){u==null||u();return}if(F.key==="ArrowUp"){F.preventDefault(),S("prev");return}if(F.key==="ArrowDown"){F.preventDefault(),S("next");return}if(F.key==="PageUp"){F.preventDefault(),S("first");return}if(F.key==="PageDown"){F.preventDefault(),S("last");return}F.key===" "&&F.preventDefault(),F.key.length===1&&!F.altKey&&!F.ctrlKey&&!F.metaKey&&b(F.key.toLocaleLowerCase())},_=I.useCallback(()=>{if(!d.current||x===void 0)return;let F=ha(m[x]).iso2;if(F===h.current)return;let z=d.current.querySelector(`[data-country="${F}"]`);z&&(WH(d.current,z),h.current=F)},[x,m]);return I.useEffect(()=>{_()},[x,_]),I.useEffect(()=>{d.current&&(e?d.current.focus():C())},[e]),I.useEffect(()=>{C()},[n]),fe.default.createElement("ul",{ref:d,role:"listbox",className:Dr({addPrefix:["country-selector-dropdown"],rawClassNames:[f.className]}),style:{display:e?"block":"none",...f.style},onKeyDown:R,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${ha(m[x]).iso2}-option`},m.map((F,z)=>{let ie=ha(F),ge=ie.iso2===n,oe=z===x,O=i.includes(ie.iso2),we=z===i.length-1,Se=a==null?void 0:a.find(U=>U.iso2===ie.iso2);return fe.default.createElement(fe.default.Fragment,{key:ie.iso2},fe.default.createElement("li",{"data-country":ie.iso2,role:"option","aria-selected":ge,"aria-label":`${ie.name} ${t}${ie.dialCode}`,id:`react-international-phone__${ie.iso2}-option`,className:Dr({addPrefix:["country-selector-dropdown__list-item",O&&"country-selector-dropdown__list-item--preferred",ge&&"country-selector-dropdown__list-item--selected",oe&&"country-selector-dropdown__list-item--focused"],rawClassNames:[f.listItemClassName,O&&f.listItemPreferredClassName,ge&&f.listItemSelectedClassName,oe&&f.listItemFocusedClassName]}),onClick:()=>E(ie),style:f.listItemStyle,title:ie.name},fe.default.createElement(B4,{iso2:ie.iso2,src:Se==null?void 0:Se.src,className:Dr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[f.listItemFlagClassName]}),style:f.listItemFlagStyle}),fe.default.createElement("span",{className:Dr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[f.listItemCountryNameClassName]}),style:f.listItemCountryNameStyle},ie.name),fe.default.createElement("span",{className:Dr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[f.listItemDialCodeClassName]}),style:f.listItemDialCodeStyle},t,ie.dialCode)),we?fe.default.createElement("hr",{className:Dr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[f.preferredListDividerClassName]}),style:f.preferredListDividerStyle}):null)}))},fG=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=_u,preferredCountries:a=[],flags:s,renderButtonWrapper:u,...f})=>{let[d,h]=I.useState(!1),m=I.useMemo(()=>{if(e)return yl({value:e,field:"iso2",countries:i})},[i,e]),g=I.useRef(null),b=x=>{x.key&&["ArrowUp","ArrowDown"].includes(x.key)&&(x.preventDefault(),h(!0))},w=()=>{var C;let x={title:m==null?void 0:m.name,onClick:()=>h(E=>!E),onMouseDown:E=>E.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},A=fe.default.createElement("div",{className:Dr({addPrefix:["country-selector-button__button-content"],rawClassNames:[f.buttonContentWrapperClassName]}),style:f.buttonContentWrapperStyle},fe.default.createElement(B4,{iso2:e,src:(C=s==null?void 0:s.find(E=>E.iso2===e))==null?void 0:C.src,className:Dr({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[f.flagClassName]}),style:{visibility:e?"visible":"hidden",...f.flagStyle}}),!r&&fe.default.createElement("div",{className:Dr({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[f.dropdownArrowClassName]}),style:f.dropdownArrowStyle}));return u?u({children:A,rootProps:x}):fe.default.createElement("button",{...x,type:"button",className:Dr({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[f.buttonClassName]}),"data-country":e,style:f.buttonStyle},A)};return fe.default.createElement("div",{className:Dr({addPrefix:["country-selector"],rawClassNames:[f.className]}),style:f.style,ref:g},w(),fe.default.createElement(cG,{show:d,countries:i,preferredCountries:a,flags:s,onSelect:x=>{h(!1),t==null||t(x)},selectedCountry:e,onClose:()=>{h(!1)},...f.dropdownStyleProps}))},dG=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>fe.default.createElement("div",{className:Dr({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);I.forwardRef(({value:e,onChange:t,countries:n=_u,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:a,disableFocusAfterCountrySelect:s,flags:u,style:f,className:d,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:w,placeholder:x,disabled:A,name:C,onFocus:E,onBlur:S,required:R,autoFocus:_,...F},z)=>{let{phone:ie,inputValue:ge,inputRef:oe,country:O,setCountry:we,handlePhoneValueChange:Se}=CF({value:e,countries:n,...F,onChange:ee=>{t==null||t(ee.phone,{country:ee.country,inputValue:ee.inputValue})}}),U=F.disableDialCodeAndPrefix&&a&&(O==null?void 0:O.dialCode);return I.useImperativeHandle(z,()=>oe.current?Object.assign(oe.current,{setCountry:we,state:{phone:ie,inputValue:ge,country:O}}):null,[oe,we,ie,ge,O]),fe.default.createElement("div",{ref:z,className:Dr({addPrefix:["input-container"],rawClassNames:[d]}),style:f},fe.default.createElement(fG,{onSelect:ee=>we(ee.iso2,{focusOnInput:!s}),flags:u,selectedCountry:O.iso2,countries:n,preferredCountries:r,disabled:A,hideDropdown:i,...g}),U&&fe.default.createElement(dG,{dialCode:O.dialCode,prefix:F.prefix??"+",disabled:A,...b}),fe.default.createElement("input",{onChange:Se,value:ge,type:"tel",ref:oe,className:Dr({addPrefix:["input",A&&"input--disabled"],rawClassNames:[m]}),placeholder:x,disabled:A,style:h,name:C,onFocus:E,onBlur:S,autoFocus:_,required:R,...w}))});var go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wb={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",u="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",w="[object Object]",x="[object Promise]",A="[object RegExp]",C="[object Set]",E="[object String]",S="[object Symbol]",R="[object WeakMap]",_="[object ArrayBuffer]",F="[object DataView]",z="[object Float32Array]",ie="[object Float64Array]",ge="[object Int8Array]",oe="[object Int16Array]",O="[object Int32Array]",we="[object Uint8Array]",Se="[object Uint8ClampedArray]",U="[object Uint16Array]",ee="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,k=/\w*$/,N=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,j={};j[a]=j[s]=j[_]=j[F]=j[u]=j[f]=j[z]=j[ie]=j[ge]=j[oe]=j[O]=j[g]=j[b]=j[w]=j[A]=j[C]=j[E]=j[S]=j[we]=j[Se]=j[U]=j[ee]=!0,j[d]=j[h]=j[R]=!1;var ce=typeof go=="object"&&go&&go.Object===Object&&go,ue=typeof self=="object"&&self&&self.Object===Object&&self,Ae=ce||ue||Function("return this")(),_e=t&&!t.nodeType&&t,Le=_e&&!0&&e&&!e.nodeType&&e,Ye=Le&&Le.exports===_e;function Qe(ae,Fe){return ae.set(Fe[0],Fe[1]),ae}function Ue(ae,Fe){return ae.add(Fe),ae}function Ge(ae,Fe){for(var ze=-1,pt=ae?ae.length:0;++ze<pt&&Fe(ae[ze],ze,ae)!==!1;);return ae}function Ie(ae,Fe){for(var ze=-1,pt=Fe.length,vn=ae.length;++ze<pt;)ae[vn+ze]=Fe[ze];return ae}function Ne(ae,Fe,ze,pt){for(var vn=-1,tr=ae?ae.length:0;++vn<tr;)ze=Fe(ze,ae[vn],vn,ae);return ze}function Te(ae,Fe){for(var ze=-1,pt=Array(ae);++ze<ae;)pt[ze]=Fe(ze);return pt}function He(ae,Fe){return ae==null?void 0:ae[Fe]}function ht(ae){var Fe=!1;if(ae!=null&&typeof ae.toString!="function")try{Fe=!!(ae+"")}catch{}return Fe}function Ht(ae){var Fe=-1,ze=Array(ae.size);return ae.forEach(function(pt,vn){ze[++Fe]=[vn,pt]}),ze}function $t(ae,Fe){return function(ze){return ae(Fe(ze))}}function _t(ae){var Fe=-1,ze=Array(ae.size);return ae.forEach(function(pt){ze[++Fe]=pt}),ze}var qr=Array.prototype,Qt=Function.prototype,be=Object.prototype,De=Ae["__core-js_shared__"],Me=function(){var ae=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return ae?"Symbol(src)_1."+ae:""}(),Xe=Qt.toString,tt=be.hasOwnProperty,Je=be.toString,gt=RegExp("^"+Xe.call(tt).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Ye?Ae.Buffer:void 0,xt=Ae.Symbol,gn=Ae.Uint8Array,yr=$t(Object.getPrototypeOf,Object),Ut=Object.create,Pt=be.propertyIsEnumerable,It=qr.splice,qt=Object.getOwnPropertySymbols,fr=Rt?Rt.isBuffer:void 0,zr=$t(Object.keys,Object),si=ci(Ae,"DataView"),Tr=ci(Ae,"Map"),Ea=ci(Ae,"Promise"),Ao=ci(Ae,"Set"),bt=ci(Ae,"WeakMap"),oi=ci(Object,"create"),is=Mr(si),vc=Mr(Tr),ku=Mr(Ea),yc=Mr(Ao),Ou=Mr(bt),To=xt?xt.prototype:void 0,Iu=To?To.valueOf:void 0;function Xi(ae){var Fe=-1,ze=ae?ae.length:0;for(this.clear();++Fe<ze;){var pt=ae[Fe];this.set(pt[0],pt[1])}}function Ji(){this.__data__=oi?oi(null):{}}function yt(ae){return this.has(ae)&&delete this.__data__[ae]}function Cn(ae){var Fe=this.__data__;if(oi){var ze=Fe[ae];return ze===r?void 0:ze}return tt.call(Fe,ae)?Fe[ae]:void 0}function as(ae){var Fe=this.__data__;return oi?Fe[ae]!==void 0:tt.call(Fe,ae)}function Lu(ae,Fe){var ze=this.__data__;return ze[ae]=oi&&Fe===void 0?r:Fe,this}Xi.prototype.clear=Ji,Xi.prototype.delete=yt,Xi.prototype.get=Cn,Xi.prototype.has=as,Xi.prototype.set=Lu;function br(ae){var Fe=-1,ze=ae?ae.length:0;for(this.clear();++Fe<ze;){var pt=ae[Fe];this.set(pt[0],pt[1])}}function Vu(){this.__data__=[]}function Bu(ae){var Fe=this.__data__,ze=ss(Fe,ae);if(ze<0)return!1;var pt=Fe.length-1;return ze==pt?Fe.pop():It.call(Fe,ze,1),!0}function bc(ae){var Fe=this.__data__,ze=ss(Fe,ae);return ze<0?void 0:Fe[ze][1]}function Wr(ae){return ss(this.__data__,ae)>-1}function at(ae,Fe){var ze=this.__data__,pt=ss(ze,ae);return pt<0?ze.push([ae,Fe]):ze[pt][1]=Fe,this}br.prototype.clear=Vu,br.prototype.delete=Bu,br.prototype.get=bc,br.prototype.has=Wr,br.prototype.set=at;function cn(ae){var Fe=-1,ze=ae?ae.length:0;for(this.clear();++Fe<ze;){var pt=ae[Fe];this.set(pt[0],pt[1])}}function Qi(){this.__data__={hash:new Xi,map:new(Tr||br),string:new Xi}}function ui(ae){return Ci(this,ae).delete(ae)}function Yn(ae){return Ci(this,ae).get(ae)}function Po(ae){return Ci(this,ae).has(ae)}function Sa(ae,Fe){return Ci(this,ae).set(ae,Fe),this}cn.prototype.clear=Qi,cn.prototype.delete=ui,cn.prototype.get=Yn,cn.prototype.has=Po,cn.prototype.set=Sa;function li(ae){this.__data__=new br(ae)}function kn(){this.__data__=new br}function Ws(ae){return this.__data__.delete(ae)}function jt(ae){return this.__data__.get(ae)}function $c(ae){return this.__data__.has(ae)}function Nu(ae,Fe){var ze=this.__data__;if(ze instanceof br){var pt=ze.__data__;if(!Tr||pt.length<n-1)return pt.push([ae,Fe]),this;ze=this.__data__=new cn(pt)}return ze.set(ae,Fe),this}li.prototype.clear=kn,li.prototype.delete=Ws,li.prototype.get=jt,li.prototype.has=$c,li.prototype.set=Nu;function xc(ae,Fe){var ze=fs(ae)||Ta(ae)?Te(ae.length,String):[],pt=ze.length,vn=!!pt;for(var tr in ae)tt.call(ae,tr)&&!(vn&&(tr=="length"||Oo(tr,pt)))&&ze.push(tr);return ze}function _o(ae,Fe,ze){var pt=ae[Fe];(!(tt.call(ae,Fe)&&Aa(pt,ze))||ze===void 0&&!(Fe in ae))&&(ae[Fe]=ze)}function ss(ae,Fe){for(var ze=ae.length;ze--;)if(Aa(ae[ze][0],Fe))return ze;return-1}function ju(ae,Fe){return ae&&hr(Fe,ps(Fe),ae)}function Mo(ae,Fe,ze,pt,vn,tr,ir){var Bn;if(pt&&(Bn=tr?pt(ae,vn,tr,ir):pt(ae)),Bn!==void 0)return Bn;if(!hs(ae))return ae;var En=fs(ae);if(En){if(Bn=ko(ae),!Fe)return Hs(ae,Bn)}else{var Si=Ei(ae),Di=Si==h||Si==m;if(Gs(ae))return Ro(ae,Fe);if(Si==w||Si==a||Di&&!tr){if(ht(ae))return tr?ae:{};if(Bn=zu(Di?{}:ae),!Fe)return us(ae,ju(Bn,ae))}else{if(!j[Si])return tr?ae:{};Bn=dn(ae,Si,Mo,Fe)}}ir||(ir=new li);var Vo=ir.get(ae);if(Vo)return Vo;if(ir.set(ae,Bn),!En)var Ys=ze?ls(ae):ps(ae);return Ge(Ys||ae,function(ar,ms){Ys&&(ms=ar,ar=ae[ms]),_o(Bn,ms,Mo(ar,Fe,ze,pt,ms,ae,ir))}),Bn}function wc(ae){return hs(ae)?Ut(ae):{}}function Cc(ae,Fe,ze){var pt=Fe(ae);return fs(ae)?pt:Ie(pt,ze(ae))}function Ec(ae){return Je.call(ae)}function Ku(ae){if(!hs(ae)||Io(ae))return!1;var Fe=Hu(ae)||ht(ae)?gt:N;return Fe.test(Mr(ae))}function Fo(ae){if(!Wu(ae))return zr(ae);var Fe=[];for(var ze in Object(ae))tt.call(ae,ze)&&ze!="constructor"&&Fe.push(ze);return Fe}function Ro(ae,Fe){if(Fe)return ae.slice();var ze=new ae.constructor(ae.length);return ae.copy(ze),ze}function os(ae){var Fe=new ae.constructor(ae.byteLength);return new gn(Fe).set(new gn(ae)),Fe}function Uu(ae,Fe){var ze=Fe?os(ae.buffer):ae.buffer;return new ae.constructor(ze,ae.byteOffset,ae.byteLength)}function qu(ae,Fe,ze){var pt=Fe?ze(Ht(ae),!0):Ht(ae);return Ne(pt,Qe,new ae.constructor)}function Pr(ae){var Fe=new ae.constructor(ae.source,k.exec(ae));return Fe.lastIndex=ae.lastIndex,Fe}function dr(ae,Fe,ze){var pt=Fe?ze(_t(ae),!0):_t(ae);return Ne(pt,Ue,new ae.constructor)}function _r(ae){return Iu?Object(Iu.call(ae)):{}}function Da(ae,Fe){var ze=Fe?os(ae.buffer):ae.buffer;return new ae.constructor(ze,ae.byteOffset,ae.length)}function Hs(ae,Fe){var ze=-1,pt=ae.length;for(Fe||(Fe=Array(pt));++ze<pt;)Fe[ze]=ae[ze];return Fe}function hr(ae,Fe,ze,pt){ze||(ze={});for(var vn=-1,tr=Fe.length;++vn<tr;){var ir=Fe[vn],Bn=void 0;_o(ze,ir,Bn===void 0?ae[ir]:Bn)}return ze}function us(ae,Fe){return hr(ae,rr(ae),Fe)}function ls(ae){return Cc(ae,ps,rr)}function Ci(ae,Fe){var ze=ae.__data__;return cs(Fe)?ze[typeof Fe=="string"?"string":"hash"]:ze.map}function ci(ae,Fe){var ze=He(ae,Fe);return Ku(ze)?ze:void 0}var rr=qt?$t(qt,Object):Gt,Ei=Ec;(si&&Ei(new si(new ArrayBuffer(1)))!=F||Tr&&Ei(new Tr)!=g||Ea&&Ei(Ea.resolve())!=x||Ao&&Ei(new Ao)!=C||bt&&Ei(new bt)!=R)&&(Ei=function(ae){var Fe=Je.call(ae),ze=Fe==w?ae.constructor:void 0,pt=ze?Mr(ze):void 0;if(pt)switch(pt){case is:return F;case vc:return g;case ku:return x;case yc:return C;case Ou:return R}return Fe});function ko(ae){var Fe=ae.length,ze=ae.constructor(Fe);return Fe&&typeof ae[0]=="string"&&tt.call(ae,"index")&&(ze.index=ae.index,ze.input=ae.input),ze}function zu(ae){return typeof ae.constructor=="function"&&!Wu(ae)?wc(yr(ae)):{}}function dn(ae,Fe,ze,pt){var vn=ae.constructor;switch(Fe){case _:return os(ae);case u:case f:return new vn(+ae);case F:return Uu(ae,pt);case z:case ie:case ge:case oe:case O:case we:case Se:case U:case ee:return Da(ae,pt);case g:return qu(ae,pt,ze);case b:case E:return new vn(ae);case A:return Pr(ae);case C:return dr(ae,pt,ze);case S:return _r(ae)}}function Oo(ae,Fe){return Fe=Fe??i,!!Fe&&(typeof ae=="number"||te.test(ae))&&ae>-1&&ae%1==0&&ae<Fe}function cs(ae){var Fe=typeof ae;return Fe=="string"||Fe=="number"||Fe=="symbol"||Fe=="boolean"?ae!=="__proto__":ae===null}function Io(ae){return!!Me&&Me in ae}function Wu(ae){var Fe=ae&&ae.constructor,ze=typeof Fe=="function"&&Fe.prototype||be;return ae===ze}function Mr(ae){if(ae!=null){try{return Xe.call(ae)}catch{}try{return ae+""}catch{}}return""}function Lo(ae){return Mo(ae,!0,!0)}function Aa(ae,Fe){return ae===Fe||ae!==ae&&Fe!==Fe}function Ta(ae){return ds(ae)&&tt.call(ae,"callee")&&(!Pt.call(ae,"callee")||Je.call(ae)==a)}var fs=Array.isArray;function ea(ae){return ae!=null&&Sc(ae.length)&&!Hu(ae)}function ds(ae){return Dc(ae)&&ea(ae)}var Gs=fr||en;function Hu(ae){var Fe=hs(ae)?Je.call(ae):"";return Fe==h||Fe==m}function Sc(ae){return typeof ae=="number"&&ae>-1&&ae%1==0&&ae<=i}function hs(ae){var Fe=typeof ae;return!!ae&&(Fe=="object"||Fe=="function")}function Dc(ae){return!!ae&&typeof ae=="object"}function ps(ae){return ea(ae)?xc(ae):Fo(ae)}function Gt(){return[]}function en(){return!1}e.exports=Lo})(Wb,Wb.exports);var vo=Wb.exports,Hb=function(){return Hb=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Hb.apply(this,arguments)};function hG(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(h){try{d(r.next(h))}catch(m){s(m)}}function f(h){try{d(r.throw(h))}catch(m){s(m)}}function d(h){h.done?a(h.value):i(h.value).then(u,f)}d((r=r.apply(e,[])).next())})}function pG(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=u(0),s.throw=u(1),s.return=u(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(d){return function(h){return f([d,h])}}function f(d){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){n.label=d[1];break}if(d[0]===6&&n.label<a[1]){n.label=a[1],a=d;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(d);break}a[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(h){d=[6,h],i=0}finally{r=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function mp(e,t,n,r,i){return hG(this,void 0,void 0,function(){var a,s;return pG(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];s=0,u.label=1;case 1:return s<n.length?[4,n[s](e,t,r,i,n)]:[3,4];case 2:if(a=u.sent(),a==="canceled")return[3,4];u.label=3;case 3:return s++,[3,1];case 4:return a!=="canceled"?[2,a]:[2]}})})}var Gb=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Hb({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},mG=function(){function e(t,n,r,i){var a=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var s=vo(n);mp(t,s,r,this.htmlPluginState,i).then(function(u){if(a.isMounted){a.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var f=Gb(i,u);a.imgElement.setAttribute("src",s.toURL(f))}})}return e.prototype.update=function(t,n,r){var i=this,a=vo(t);mp(this.imgElement,a,n,this.htmlPluginState).then(function(s){if(i.isMounted){var u=Gb(r,s);i.imgElement.setAttribute("src",a.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Rn=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},gG=class extends Error{constructor(t="Unsupported"){super(t)}};function N4(e){return new gG(e)}function vG(){return this._qualifierModel||{error:N4(`unsupported qualifier ${this.constructor.name}`)}}let yG=class{constructor(){this._qualifierModel={}}toJson(){return vG.apply(this)}},Ot=class extends yG{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Rn?this.qualifierValue=n:(this.qualifierValue=new Rn,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Hi=class extends Ot{constructor(t,n){let r;n?r=new Rn([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function bG(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function $G(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:N4(`unsupported action ${this.constructor.name}`)}}let xG=class{constructor(){this._actionModel={}}toJson(){return $G.apply(this)}},xa=class extends xG{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),bG(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Hi(r)):this.qualifiers.set(n,new Ot(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Hi(t)):t instanceof Hi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class j4 extends xa{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class cm extends j4{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Ot("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Ot("h",t)),this}static fromJson(t){const n=new cm;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function wG(){return new cm}function EF(){return new j4("faces")}function CG(){return new j4("ocr_text")}class EG extends xa{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Ot("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ot("e",`blur_region${t}`)),this.addQualifier(new Ot("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ot("e",`blur_faces${t}`))):this.addQualifier(new Ot("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(EF()),r&&r.regionType==="ocr_text"&&i.region(CG()),r&&r.regionType==="custom"&&i.region(cm.fromJson(r)),i}}function Mu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const SF={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},SG={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},DF={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},AF={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},DG={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},TF={444:"CHROMA_444",420:"CHROMA_420"},AG={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},TG=Mu(TF);Mu(AG);const PG=Mu(SF),_G=Mu(SG),PF=Mu(DF);Mu(AF);Mu(DG);class _F extends xa{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=PF[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Rn([t,`${n}`]).setDelimiter(":"):r=new Rn(t),new Ot("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,a=DF[n]||n;return new this(a,r||i)}}class MG extends _F{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=PF[t]||t,n&&this.setLevel(n)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const n=this.createEffectQualifier(this.effectType,t);return this.addQualifier(n),this}}function fm(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class FG extends xa{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new Rn(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Rn(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Rn(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Rn(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Rn(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Ot("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:a,detailLevel:s,numOfColors:u}=t,f=new this;return r&&f.paths(r),i&&f.cornersLevel(i),a&&f.despeckleLevel(a),s&&f.detailsLevel(s),u&&f.numOfColors(u),f}}class RG extends MG{level(t){return this._actionModel.level=t,this.setLevel(t)}}class kG extends xa{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Ot("e",new Rn("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Ot("e",new Rn(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Ot("e",new Rn(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,a=new this;return r==="xray"&&a.xray(),r==="stripes"&&i&&a.stripesStrength(i),a}}class OG extends RG{color(t){return this._actionModel.color=t,this.addQualifier(new Ot("co",new Rn(fm(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,a=new this(n,r);return i&&a.color(i),a}}class IG extends xa{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Ot("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ot("e",`pixelate_region${t}`)),this.addQualifier(new Ot("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ot("e",`pixelate_faces${t}`))):this.addQualifier(new Ot("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(EF()),n&&n.regionType==="custom"&&i.region(wG()),i}}const LG=e=>KG(encodeURIComponent,NG,jG)(e),VG=/[!'()*~_.-]/g,BG={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},NG=e=>e.replace(VG,t=>{var n;return(n=BG[t])!==null&&n!==void 0?n:t}),jG=e=>e.replace(/%20/g," "),KG=(...e)=>t=>e.reduce((n,r)=>r(n),t);function UG(e){return new EG(e)}function qG(){return new _F("grayscale")}function wS(e){return new OG("colorize",e)}function zG(){return new FG}function WG(){return new kG}function HG(e){return new IG(e)}let GG=class extends xa{constructor(t){super(),this._actionModel={},this.addQualifier(new Ot("b",new Rn(fm(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},CS=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:N4(`unsupported action ${this.constructor.name}`)}}};function YG(e){const t=e;return"error"in t&&!!t.error}function ZG(){return new Hi("ignore_aspect_ratio")}function XG(){return new Hi("lossy")}function JG(){return new Hi("preserve_transparency")}function QG(e){return new Hi("progressive",e)}function eY(){return new Hi("region_relative")}function tY(){return new Hi("relative")}let K4=class extends Rn{constructor(t){super(t),this.val=t}getValue(){return this.val}},MF=class extends xa{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof K4?i=n.getValue():i=n,this._actionModel.actionType=_G[t],this._actionModel[r]=i,this.addQualifier(new Ot(t,n))}},nY=class extends Hi{constructor(t){super("progressive",t)}},Yb=class extends MF{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(XG()),this}progressive(t){return t instanceof nY?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(QG(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(JG()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let s;return n?s=new this("f",n):s=new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),r&&s.lossy(),a&&s.preserveTransparency(),s}},dm=class FF{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new CS(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof FF?this.actions=this.actions.concat(t.actions):this.actions.push(new CS(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new Yb("q",t)),this}format(t){return this.addAction(new Yb("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new GG(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new xa;let r=t;return typeof t=="string"&&(r=new Hi(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(YG(r))return r;t.push(r)}return{actions:t}}};function ES(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class rY extends Rn{}class iY extends xa{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=PG[t]||t,this.addQualifier(new Ot("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Ot("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Ot("w",t))}aspectRatio(t){if(t instanceof rY)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Ot("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=ES(t),this.addQualifier(new Ot("ar",ES(t)));if(t instanceof Hi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(tY())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(eY())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:a}=t,{aspectRatio:s,width:u,height:f}=r,d=SF[n]||n,h=new this(d,u,f);return s&&h.aspectRatio(s==="ignore_aspect_ratio"?ZG():s),i&&h.relative(),a&&h.regionRelative(),h}}class U4 extends Ot{constructor(t){super("g",new Rn(t))}}class RF extends U4{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class kF extends U4{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class OF extends U4{constructor(t){super(t)}}function aY(e){return new OF(e)}function IF(...e){const t=[...e];return new kF(t)}function LF(){return new RF}class zl extends Rn{constructor(t){super(),this.name=t}toString(){return this.name}}function sY(){return new zl("ocr_text")}function oY(e){return e&&`${e}`.split(":")[0]==="auto"}function uY(e){const t=q4(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function q4(e){return`${e}`.replace("g_","")}function lY(e){return{compass:q4(e),gravityType:"direction"}}function cY(e){return q4(e)==="ocr_text"}function fY(){return{gravityType:"ocr"}}function dY(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function hY(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function VF(e){let t;const n=e==="auto"?new RF:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(hY)}}function pY(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(a=>`${a}`)};if(t){const a=n[n.length-1].values.slice(1),s=LF().autoFocus(...a);i.fallbackGravity=VF(s)}return i}function mY(e){const n=e.split(":").map(r=>new zl(r));return new kF(n)}function gY(e){return uY(e)?lY(e):cY(e)?fY():oY(e)||dY(e)?VF(e):pY(typeof e=="string"?mY(e):e)}class z4 extends Rn{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof zl?t:new zl(t);return new z4(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class BF extends Rn{constructor(t){super(),this.val=t}toString(){return this.val}}function vY(e){return e.gravityType==="direction"}function yY(e){return e.gravityType==="ocr"}function bY(e){return e.gravityType==="auto"}function $Y(e){const{object:t,weight:n,avoid:r}=e,i=new z4(new zl(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function NF(e){const n=(e.autoFocus||[]).map($Y);return LF().autoFocus(...n)}function xY(e){const t=(e.focusOnObjects||[]).map(r=>new zl(r)),n=IF(...t);if(e.fallbackGravity){const r=NF(e.fallbackGravity);n.fallbackGravity(r)}return n}function wY(e){return vY(e)?new OF(new BF(e.compass)):yY(e)?IF(sY()):bY(e)?NF(e):xY(e)}class W4 extends iY{gravity(t){this._actionModel.gravity=gY(t);const n=typeof t=="string"?new Ot("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(wY(t.gravity)),n}}class fd extends Ot{constructor(t){super("b"),t&&this.addValue(t)}}const jF=100,CY=0;class EY extends fd{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${jF}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var KF=EY;class H4 extends fd{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>fm(n)),this}}class UF extends H4{toString(){return`
34
+ b_auto:border
35
+ ${this._contrast?"_contrast":""}
36
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
37
+ `.replace(/\s+/g,"")}}class qF extends H4{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class zF extends qF{toString(){return`
38
+ b_auto:border_gradient
39
+ ${this._contrast?"_contrast":""}
40
+ ${this._gradientColors?`:${this._gradientColors}`:""}
41
+ ${this._gradientDirection?`:${this._gradientDirection}`:""}
42
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
43
+ `.replace(/\s+/g,"")}}class WF extends qF{toString(){return`
44
+ b_auto:predominant_gradient
45
+ ${this._contrast?"_contrast":""}
46
+ ${this._gradientColors?`:${this._gradientColors}`:""}
47
+ ${this._gradientDirection?`:${this._gradientDirection}`:""}
48
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
49
+ `.replace(/\s+/g,"")}}class HF extends H4{toString(){return`
50
+ b_auto:predominant
51
+ ${this._contrast?"_contrast":""}
52
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
53
+ `.replace(/\s+/g,"")}}class GF extends fd{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){try{this._prompt=decodeURIComponent(t)}catch{this._prompt=t}return this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${LG(this._prompt)}`:""}`}}function YF(e){return`${e}`.replace("b_","")}function SY(){return{backgroundType:"auto"}}function DY(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||t===0)&&(r.intensity=t),(n||n===0)&&(r.brightness=n),r}function G4(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function AY(e){return Object.assign(Object.assign({},G4(e)),{backgroundType:"border"})}function ZF(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=G4(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function TY(e){return Object.assign(Object.assign({},ZF(e)),{backgroundType:"borderGradient"})}function PY(e){return{backgroundType:"color",color:YF(e)}}function _Y(e){return Object.assign(Object.assign({},G4(e)),{backgroundType:"predominant"})}function MY(e){return Object.assign(Object.assign({},ZF(e)),{backgroundType:"predominantGradient"})}function FY(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function RY(e){return YF(e)==="auto"?SY():e instanceof KF?DY(e):e instanceof UF?AY(e):e instanceof zF?TY(e):e instanceof HF?_Y(e):e instanceof WF?MY(e):e instanceof GF?FY(e):PY(e)}function kY(){return new K4("svg")}function Y4(){return new K4("auto")}function XF(){return new UF}function JF(){return new fd("auto")}function QF(){return new zF}function eR(){return new WF}function tR(){return new HF}function nR(e){return new fd(fm(e))}function OY(){return new KF}function rR(){return new GF}const iR={auto:JF,border:XF,borderGradient:QF,predominantGradient:eR,predominant:tR,color:nR,blurred:OY,generativeFill:rR};function IY(e){const{brightness:t,intensity:n}=e,r=iR.blurred();return r.brightness(t??CY),r.intensity(n??jF),r}function SS(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:a}=t;return i&&e.contrast(),a&&e.palette(...a),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function DS(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function LY(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function VY(e){const{backgroundType:t}=e;switch(t){case"auto":return JF();case"blurred":return IY(e);case"border":return DS(XF(),e);case"borderGradient":return SS(QF(),e);case"predominant":return DS(tR(),e);case"predominantGradient":return SS(eR(),e);case"generativeFill":return LY(rR(),e);default:return nR(e.color)}}class BY extends W4{background(t){return this._actionModel.background=RY(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(VY(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class NY extends W4{x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Ot("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class jY extends W4{x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function KY(e,t){return new NY("crop",e,t)}function UY(e,t){return new jY("fill",e,t)}function qY(e,t){return new BY("pad",e,t)}class zY extends MF{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=TF[t];const n=new Rn([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Ot("q",n))}quantization(t){this._actionModel.quantization=t;const n=new Rn([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Ot("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,a=AF[n]||n,s=new this(a);if(r){const u=TG[r.toUpperCase()];u&&s.chromaSubSampling(+u)}return i&&s.quantization(i),s}}function hm(e){return new Yb("f",e)}function pm(e){return new zY(e)}function WY(){return new BF("north_east")}wS(70).color("black"),wS(40).color("white"),qG(),WG();var HY=new dm().effect(zG()).delivery(pm("auto")).delivery(hm(kY())),GY=new dm().effect(HG()).delivery(pm("auto")).delivery(hm(Y4())),YY=new dm().effect(UG(2e3)).delivery(pm("auto")).delivery(hm(Y4())),ZY=new dm().resize(qY("iw_div_2").aspectRatio(1).background(iR.auto())).resize(KY(1,1).gravity(aY(WY()))).resize(UY().height("ih").width("iw")).delivery(pm("auto")).delivery(hm(Y4())),AS={vectorize:HY,pixelate:GY,blur:YY,"predominant-color":ZY},TS="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",PS={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},_S="?_a=",XY=function(){function e(t,n,r,i,a,s,u){var f=this;this.mimeType="video",this.mimeSubTypes=PS,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=vo(n);mp(t,n,i,this.htmlPluginState).then(function(){f.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),f.setVideoAttributes(a,s),f.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(a){r.appendSourceTag(vo(t),a)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var a=i.type,s=i.codecs,u=i.transcode;return r.appendSourceTag(vo(t).transcode(u),a,r.buildMimeType(a,s))})},e.prototype.appendSourceTag=function(t,n,r){var i,a=document.createElement("source"),s=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;s&&t.format(n);var u=t.toURL(),f=u.split(_S),d=f[1]?"".concat(_S).concat(f[1]):"",h=s?"":".".concat(n);a.src="".concat(f[0]).concat(h).concat(d),a.type=r||"video/".concat(PS[n]||n),this.videoElement.appendChild(a)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=vo(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var a=0,s=Object.entries(t);a<s.length;a++){var u=s[a],f=u[0],d=u[1];d&&this.videoElement.setAttribute(f,f==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,a){var s=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);mp(this.videoElement,t,r,this.htmlPluginState).then(function(){s.setVideoAttributes(i,a),s.handleSourceToVideo(t,n),s.videoElement.load()})}},e}(),JY=typeof go=="object"&&go&&go.Object===Object&&go,QY=typeof self=="object"&&self&&self.Object===Object&&self;JY||QY||Function("return this")();function Z4(){return typeof window<"u"}function eZ(e){return e instanceof HTMLImageElement}function tZ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,a=i===void 0?.1:i;return nZ.bind(null,r,a)}function nZ(e,t,n,r,i,a){return e===void 0&&(e="0px"),t===void 0&&(t=.1),Z4()?new Promise(function(s){var u=function(){return s({lazyload:!0})},f=iZ(n,u,e,t);i.cleanupCallbacks.push(function(){f(),s("canceled")})}):!1}function rZ(){return window&&"IntersectionObserver"in window}function iZ(e,t,n,r){try{if(!rZ())return t(),function(){};var i=new IntersectionObserver(function(a){a.forEach(function(s){s.isIntersecting&&(i.unobserve(s.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function aZ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return sZ.bind(null,r)}function sZ(e,t,n,r,i,a){AS[e]||(e="vectorize");var s=AS[e].actions,u=vo(n);if(s.forEach(function(d){u.addAction(d)}),!Z4())return n.transformation=u.transformation,!0;if(eZ(t)){u.transformation.actions.forEach(function(d,h){d instanceof xa&&d.getActionTag()==="responsive"&&delete u.transformation.actions[h]});var f=Gb(i,{placeholder:!0});return t.src=u.toURL(f),t.onerror=function(){t.src=TS},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=TS,d("canceled")});var h=new Image;h.src=n.toURL(f),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function oZ(e,t,n){var r=vo(t);if(e)for(var i=0;i<e.length;i++){var a=e[i](null,r);if(!a)break}return r.toURL(n?{trackedAnalytics:n}:null)}function gp(e){e.cleanupCallbacks.forEach(function(t){t()})}/*! *****************************************************************************
54
+ Copyright (c) Microsoft Corporation.
55
+
56
+ Permission to use, copy, modify, and/or distribute this software for any
57
+ purpose with or without fee is hereby granted.
58
+
59
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
60
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
61
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
62
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
63
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
64
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
65
+ PERFORMANCE OF THIS SOFTWARE.
66
+ ***************************************************************************** */var Zb=function(e,t){return Zb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Zb(e,t)};function aR(e,t){Zb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Lf=function(){return Lf=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Lf.apply(this,arguments)};function sR(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Ny={sdkSemver:"1.14.3",techVersion:fe.default.version,sdkCode:"J"},uZ=function(e){aR(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=fe.default.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new mG(this.imageRef.current,this.props.cldImg,this.props.plugins,Ny)},t.prototype.componentDidUpdate=function(){gp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Ny)},t.prototype.componentWillUnmount=function(){gp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=sR(n,["cldImg","plugins"]);if(Z4())return fe.default.createElement("img",Lf({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=oZ(this.props.plugins,this.props.cldImg,Ny);return fe.default.createElement("img",Lf({},r,{src:i}))},t}(fe.default.Component),lZ=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){aR(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=I.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new XY(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){gp(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){gp(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return lZ.forEach(function(i){i in n.props&&(r[i]=n.props[i])}),r},t.prototype.attachRef=function(n){this.videoRef.current=n;var r=this.props.innerRef;r&&(r instanceof Function?r(n):r.current=n)},t.prototype.render=function(){var n=this.props;n.cldVid,n.cldPoster,n.plugins,n.sources,n.innerRef,n.useFetchFormat;var r=sR(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return fe.default.createElement("video",Lf({},r,{ref:this.attachRef}))},t})(I.Component);function cZ(e){return!(typeof e!="object"||e instanceof Array)}class fZ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return cZ(t)?(Object.keys(t).forEach(i=>{n.indexOf(i)>=0?r[i]=t[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r):Object.create({})}}const MS=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class X4 extends fZ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,MS);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,MS);return new X4(Object.assign({},this,n))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class Vf{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}}class dZ extends Error{constructor(t="Unsupported"){super(t)}}function J4(e){return new dZ(e)}function hZ(){return this._qualifierModel||{error:J4(`unsupported qualifier ${this.constructor.name}`)}}class pZ{constructor(){this._qualifierModel={}}toJson(){return hZ.apply(this)}}class mm extends pZ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Vf?this.qualifierValue=n:(this.qualifierValue=new Vf,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class yo extends mm{constructor(t,n){let r;n?r=new Vf([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function mZ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function gZ(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:J4(`unsupported action ${this.constructor.name}`)}}class vZ{constructor(){this._actionModel={}}toJson(){return gZ.apply(this)}}class Q4 extends vZ{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),mZ(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new yo(r)):this.qualifiers.set(n,new mm(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new yo(t)):t instanceof yo&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function yZ(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class bZ extends Q4{constructor(t){super(),this._actionModel={},this.addQualifier(new mm("b",new Vf(yZ(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class FS{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:J4(`unsupported action ${this.constructor.name}`)}}}function $Z(e){const t=e;return"error"in t&&!!t.error}function xZ(){return new yo("lossy")}function wZ(){return new yo("preserve_transparency")}function CZ(e){return new yo("progressive",e)}class EZ extends Vf{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Fu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const SZ={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},DZ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},AZ={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},TZ={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},PZ={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},_Z={444:"CHROMA_444",420:"CHROMA_420"},MZ={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Fu(_Z);Fu(MZ);Fu(SZ);const FZ=Fu(DZ);Fu(AZ);Fu(TZ);Fu(PZ);class RZ extends Q4{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof EZ?i=n.getValue():i=n,this._actionModel.actionType=FZ[t],this._actionModel[r]=i,this.addQualifier(new mm(t,n))}}class kZ extends yo{constructor(t){super("progressive",t)}}class vp extends RZ{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(xZ()),this}progressive(t){return t instanceof kZ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(CZ(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(wZ()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let s;return n?s=new this("f",n):s=new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),r&&s.lossy(),a&&s.preserveTransparency(),s}}class gm{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new FS(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof gm?this.actions=this.actions.concat(t.actions):this.actions.push(new FS(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new vp("q",t)),this}format(t){return this.addAction(new vp("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new bZ(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Q4;let r=t;return typeof t=="string"&&(r=new yo(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if($Z(r))return r;t.push(r)}return{actions:t}}}class OZ extends gm{}class IZ extends gm{}function LZ(e){return e.match(/^https?:\//)}function VZ(e){return e.indexOf("/")<0}function BZ(e){return e.match(/^v[0-9]+/)}function NZ(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,a=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!a&&r?`https://${e}-res.cloudinary.com`:n&&!a?`https://res.cloudinary.com/${e}`:n&&a&&r?`https://${a}`:n&&a?`https://${a}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function jZ(e){return e||"image"}function KZ(e){return e||"upload"}function UZ(e,t,n){const r=n!==!1;return t?`v${t}`:BZ(e)||LZ(e)||VZ(e)?"":r?"v1":""}function e3(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=qZ(i,r/i.length)),i.slice(0,r)+String(e))}function qZ(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const zZ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yp={};let RS=0;zZ.split("").forEach(e=>{let t=RS.toString(2);t=e3(t,6,"0"),yp[t]=e,RS++});function WZ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function HZ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const n=+t;if(isNaN(n)||n<0)throw"Invalid version number provided";return e3(t,2,"0")}).join(".")}function kS(e){let t="";const r=e.split(".").length*6,i=WZ(e),a=HZ(i);let u=parseInt(a.split(".").join("")).toString(2);if(u=e3(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(f=>{t+=yp[f]}),t}function GZ(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}const YZ="1.21.0";function ZZ(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),a=r.padStart(6,"0"),s=i.padStart(6,"0");return yp[a]+yp[s]}function XZ(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function JZ(e){const t={techVersion:XZ(),sdkCode:"T",sdkSemver:YZ.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function OS(e){const t=JZ(e),n=GZ(t);try{const r=QZ(n.techVersion),i=kS(n.sdkSemver),a=kS(r),s=ZZ(n.osVersion),u=n.feature,f=n.sdkCode,{product:d,osType:h}=n;return`D${d}${f}${i}${a}${h}${s}${u}`}catch{return"E"}}function QZ(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const IS={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class eX{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new X4(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,n=this.suffix&&this.suffix.indexOf("/")>=0;if(t||n)throw"`suffix`` should not include . or /"}getResourceType(){const t=jZ(this.assetType),n=KZ(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,a=IS[`${t}/${n}`],s=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(s){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(IS).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=NZ(this.cloudName,this.urlConfig),i=t?t.toString():"",a=UZ(this.publicID,this.version,this.urlConfig.forceVersion),s=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,a,s.replace(/,/g,"%2C"),this.suffix].filter(f=>f).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),a,encodeURI(s).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),f=this.urlConfig.analytics!==!1&&!s.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);f&&h.set("_a",OS(n)),d=h.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",f&&(d+=`${d.length>0?"&":""}_a=${OS(n)}`);return d?`${u}?${d}`:u}}}class oR extends eX{constructor(t,n,r,i){super(t,n,r),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new vp("q",t)),this}format(t){return this.addAction(new vp("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class tX extends oR{constructor(t,n,r){super(t,n,r,new OZ)}}class nX extends oR{constructor(t,n,r){super(t,n,r,new IZ),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class rX{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new tX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new nX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var jy,LS;function iX(){if(LS)return jy;LS=1;var e=mF(),t=V4(),n=1,r=2;function i(a,s,u,f){var d=u.length,h=d,m=!f;if(a==null)return!h;for(a=Object(a);d--;){var g=u[d];if(m&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++d<h;){g=u[d];var b=g[0],w=a[b],x=g[1];if(m&&g[2]){if(w===void 0&&!(b in a))return!1}else{var A=new e;if(f)var C=f(w,x,b,a,s,A);if(!(C===void 0?t(x,w,n|r,f,A):C))return!1}}return!0}return jy=i,jy}var Ky,VS;function uR(){if(VS)return Ky;VS=1;var e=tc();function t(n){return n===n&&!e(n)}return Ky=t,Ky}var Uy,BS;function aX(){if(BS)return Uy;BS=1;var e=uR(),t=L4();function n(r){for(var i=t(r),a=i.length;a--;){var s=i[a],u=r[s];i[a]=[s,u,e(u)]}return i}return Uy=n,Uy}var qy,NS;function lR(){if(NS)return qy;NS=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return qy=e,qy}var zy,jS;function sX(){if(jS)return zy;jS=1;var e=iX(),t=aX(),n=lR();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===i||e(s,i,a)}}return zy=r,zy}var Wy,KS;function t3(){if(KS)return Wy;KS=1;var e=ec(),t=rc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Wy=r,Wy}var Hy,US;function n3(){if(US)return Hy;US=1;var e=rs(),t=t3(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,s){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return Hy=i,Hy}var Gy,qS;function oX(){if(qS)return Gy;qS=1;var e=M4(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var s=arguments,u=i?i.apply(this,s):s[0],f=a.cache;if(f.has(u))return f.get(u);var d=r.apply(this,s);return a.cache=f.set(u,d)||f,d};return a.cache=new(n.Cache||e),a}return n.Cache=e,Gy=n,Gy}var Yy,zS;function uX(){if(zS)return Yy;zS=1;var e=oX(),t=500;function n(r){var i=e(r,function(s){return a.size===t&&a.clear(),s}),a=i.cache;return i}return Yy=n,Yy}var Zy,WS;function lX(){if(WS)return Zy;WS=1;var e=uX(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(s,u,f,d){a.push(f?d.replace(n,"$1"):u||s)}),a});return Zy=r,Zy}var Xy,HS;function cX(){if(HS)return Xy;HS=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return Xy=e,Xy}var Jy,GS;function fX(){if(GS)return Jy;GS=1;var e=sm(),t=cX(),n=rs(),r=t3(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function s(u){if(typeof u=="string")return u;if(n(u))return t(u,s)+"";if(r(u))return a?a.call(u):"";var f=u+"";return f=="0"&&1/u==-1/0?"-0":f}return Jy=s,Jy}var Qy,YS;function dX(){if(YS)return Qy;YS=1;var e=fX();function t(n){return n==null?"":e(n)}return Qy=t,Qy}var e0,ZS;function cR(){if(ZS)return e0;ZS=1;var e=rs(),t=n3(),n=lX(),r=dX();function i(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return e0=i,e0}var t0,XS;function vm(){if(XS)return t0;XS=1;var e=t3();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return t0=t,t0}var n0,JS;function fR(){if(JS)return n0;JS=1;var e=cR(),t=vm();function n(r,i){i=e(i,r);for(var a=0,s=i.length;r!=null&&a<s;)r=r[t(i[a++])];return a&&a==s?r:void 0}return n0=n,n0}var r0,QS;function hX(){if(QS)return r0;QS=1;var e=fR();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return r0=t,r0}var i0,eD;function pX(){if(eD)return i0;eD=1;function e(t,n){return t!=null&&n in Object(t)}return i0=e,i0}var a0,tD;function mX(){if(tD)return a0;tD=1;var e=cR(),t=yF(),n=rs(),r=R4(),i=k4(),a=vm();function s(u,f,d){f=e(f,u);for(var h=-1,m=f.length,g=!1;++h<m;){var b=a(f[h]);if(!(g=u!=null&&d(u,b)))break;u=u[b]}return g||++h!=m?g:(m=u==null?0:u.length,!!m&&i(m)&&r(b,m)&&(n(u)||t(u)))}return a0=s,a0}var s0,nD;function gX(){if(nD)return s0;nD=1;var e=pX(),t=mX();function n(r,i){return r!=null&&t(r,i,e)}return s0=n,s0}var o0,rD;function vX(){if(rD)return o0;rD=1;var e=V4(),t=hX(),n=gX(),r=n3(),i=uR(),a=lR(),s=vm(),u=1,f=2;function d(h,m){return r(h)&&i(m)?a(s(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,u|f)}}return o0=d,o0}var u0,iD;function yX(){if(iD)return u0;iD=1;function e(t){return t}return u0=e,u0}var l0,aD;function bX(){if(aD)return l0;aD=1;function e(t){return function(n){return n==null?void 0:n[t]}}return l0=e,l0}var c0,sD;function $X(){if(sD)return c0;sD=1;var e=fR();function t(n){return function(r){return e(r,n)}}return c0=t,c0}var f0,oD;function xX(){if(oD)return f0;oD=1;var e=bX(),t=$X(),n=n3(),r=vm();function i(a){return n(a)?e(r(a)):t(a)}return f0=i,f0}var d0,uD;function dR(){if(uD)return d0;uD=1;var e=sX(),t=vX(),n=yX(),r=rs(),i=xX();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return d0=a,d0}var h0,lD;function wX(){if(lD)return h0;lD=1;function e(t){return function(n,r,i){for(var a=-1,s=Object(n),u=i(n),f=u.length;f--;){var d=u[t?f:++a];if(r(s[d],d,s)===!1)break}return n}}return h0=e,h0}var p0,cD;function CX(){if(cD)return p0;cD=1;var e=wX(),t=e();return p0=t,p0}var m0,fD;function hR(){if(fD)return m0;fD=1;var e=CX(),t=L4();function n(r,i){return r&&e(r,i,t)}return m0=n,m0}var g0,dD;function EX(){if(dD)return g0;dD=1;var e=I4();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var s=i.length,u=r?s:-1,f=Object(i);(r?u--:++u<s)&&a(f[u],u,f)!==!1;);return i}}return g0=t,g0}var v0,hD;function SX(){if(hD)return v0;hD=1;var e=hR(),t=EX(),n=t(e);return v0=n,v0}var y0,pD;function DX(){if(pD)return y0;pD=1;var e=SX();function t(n,r){var i;return e(n,function(a,s,u){return i=r(a,s,u),!i}),!!i}return y0=t,y0}var b0,mD;function AX(){if(mD)return b0;mD=1;var e=T4(),t=I4(),n=R4(),r=tc();function i(a,s,u){if(!r(u))return!1;var f=typeof s;return(f=="number"?t(u)&&n(s,u.length):f=="string"&&s in u)?e(u[s],a):!1}return b0=i,b0}var $0,gD;function TX(){if(gD)return $0;gD=1;var e=gF(),t=dR(),n=DX(),r=rs(),i=AX();function a(s,u,f){var d=r(s)?e:n;return f&&i(s,u,f)&&(u=void 0),d(s,t(u,3))}return $0=a,$0}var PX=TX();const _X=ai(PX);var x0={exports:{}},vD;function MX(){return vD||(vD=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
67
+ * Prism: Lightweight, robust, elegant syntax highlighting
68
+ *
69
+ * @license MIT <https://opensource.org/licenses/MIT>
70
+ * @author Lea Verou <https://lea.verou.me>
71
+ * @namespace
72
+ * @public
73
+ */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,s={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function E(S){return S instanceof f?new f(S.type,E(S.content),S.alias):Array.isArray(S)?S.map(E):S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(E){return Object.prototype.toString.call(E).slice(8,-1)},objId:function(E){return E.__id||Object.defineProperty(E,"__id",{value:++a}),E.__id},clone:function E(S,R){R=R||{};var _,F;switch(u.util.type(S)){case"Object":if(F=u.util.objId(S),R[F])return R[F];_={},R[F]=_;for(var z in S)S.hasOwnProperty(z)&&(_[z]=E(S[z],R));return _;case"Array":return F=u.util.objId(S),R[F]?R[F]:(_=[],R[F]=_,S.forEach(function(ie,ge){_[ge]=E(ie,R)}),_);default:return S}},getLanguage:function(E){for(;E;){var S=i.exec(E.className);if(S)return S[1].toLowerCase();E=E.parentElement}return"none"},setLanguage:function(E,S){E.className=E.className.replace(RegExp(i,"gi"),""),E.classList.add("language-"+S)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(_){var E=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(E){var S=document.getElementsByTagName("script");for(var R in S)if(S[R].src==E)return S[R]}return null}},isActive:function(E,S,R){for(var _="no-"+S;E;){var F=E.classList;if(F.contains(S))return!0;if(F.contains(_))return!1;E=E.parentElement}return!!R}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(E,S){var R=u.util.clone(u.languages[E]);for(var _ in S)R[_]=S[_];return R},insertBefore:function(E,S,R,_){_=_||u.languages;var F=_[E],z={};for(var ie in F)if(F.hasOwnProperty(ie)){if(ie==S)for(var ge in R)R.hasOwnProperty(ge)&&(z[ge]=R[ge]);R.hasOwnProperty(ie)||(z[ie]=F[ie])}var oe=_[E];return _[E]=z,u.languages.DFS(u.languages,function(O,we){we===oe&&O!=E&&(this[O]=z)}),z},DFS:function E(S,R,_,F){F=F||{};var z=u.util.objId;for(var ie in S)if(S.hasOwnProperty(ie)){R.call(S,ie,S[ie],_||ie);var ge=S[ie],oe=u.util.type(ge);oe==="Object"&&!F[z(ge)]?(F[z(ge)]=!0,E(ge,R,null,F)):oe==="Array"&&!F[z(ge)]&&(F[z(ge)]=!0,E(ge,R,ie,F))}}},plugins:{},highlightAll:function(E,S){u.highlightAllUnder(document,E,S)},highlightAllUnder:function(E,S,R){var _={callback:R,container:E,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),u.hooks.run("before-all-elements-highlight",_);for(var F=0,z;z=_.elements[F++];)u.highlightElement(z,S===!0,_.callback)},highlightElement:function(E,S,R){var _=u.util.getLanguage(E),F=u.languages[_];u.util.setLanguage(E,_);var z=E.parentElement;z&&z.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(z,_);var ie=E.textContent,ge={element:E,language:_,grammar:F,code:ie};function oe(we){ge.highlightedCode=we,u.hooks.run("before-insert",ge),ge.element.innerHTML=ge.highlightedCode,u.hooks.run("after-highlight",ge),u.hooks.run("complete",ge),R&&R.call(ge.element)}if(u.hooks.run("before-sanity-check",ge),z=ge.element.parentElement,z&&z.nodeName.toLowerCase()==="pre"&&!z.hasAttribute("tabindex")&&z.setAttribute("tabindex","0"),!ge.code){u.hooks.run("complete",ge),R&&R.call(ge.element);return}if(u.hooks.run("before-highlight",ge),!ge.grammar){oe(u.util.encode(ge.code));return}if(S&&r.Worker){var O=new Worker(u.filename);O.onmessage=function(we){oe(we.data)},O.postMessage(JSON.stringify({language:ge.language,code:ge.code,immediateClose:!0}))}else oe(u.highlight(ge.code,ge.grammar,ge.language))},highlight:function(E,S,R){var _={code:E,grammar:S,language:R};if(u.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=u.tokenize(_.code,_.grammar),u.hooks.run("after-tokenize",_),f.stringify(u.util.encode(_.tokens),_.language)},tokenize:function(E,S){var R=S.rest;if(R){for(var _ in R)S[_]=R[_];delete S.rest}var F=new m;return g(F,F.head,E),h(E,F,S,F.head,0),w(F)},hooks:{all:{},add:function(E,S){var R=u.hooks.all;R[E]=R[E]||[],R[E].push(S)},run:function(E,S){var R=u.hooks.all[E];if(!(!R||!R.length))for(var _=0,F;F=R[_++];)F(S)}},Token:f};r.Prism=u;function f(E,S,R,_){this.type=E,this.content=S,this.alias=R,this.length=(_||"").length|0}f.stringify=function E(S,R){if(typeof S=="string")return S;if(Array.isArray(S)){var _="";return S.forEach(function(oe){_+=E(oe,R)}),_}var F={type:S.type,content:E(S.content,R),tag:"span",classes:["token",S.type],attributes:{},language:R},z=S.alias;z&&(Array.isArray(z)?Array.prototype.push.apply(F.classes,z):F.classes.push(z)),u.hooks.run("wrap",F);var ie="";for(var ge in F.attributes)ie+=" "+ge+'="'+(F.attributes[ge]||"").replace(/"/g,"&quot;")+'"';return"<"+F.tag+' class="'+F.classes.join(" ")+'"'+ie+">"+F.content+"</"+F.tag+">"};function d(E,S,R,_){E.lastIndex=S;var F=E.exec(R);if(F&&_&&F[1]){var z=F[1].length;F.index+=z,F[0]=F[0].slice(z)}return F}function h(E,S,R,_,F,z){for(var ie in R)if(!(!R.hasOwnProperty(ie)||!R[ie])){var ge=R[ie];ge=Array.isArray(ge)?ge:[ge];for(var oe=0;oe<ge.length;++oe){if(z&&z.cause==ie+","+oe)return;var O=ge[oe],we=O.inside,Se=!!O.lookbehind,U=!!O.greedy,ee=O.alias;if(U&&!O.pattern.global){var K=O.pattern.toString().match(/[imsuy]*$/)[0];O.pattern=RegExp(O.pattern.source,K+"g")}for(var k=O.pattern||O,N=_.next,te=F;N!==S.tail&&!(z&&te>=z.reach);te+=N.value.length,N=N.next){var j=N.value;if(S.length>E.length)return;if(!(j instanceof f)){var ce=1,ue;if(U){if(ue=d(k,te,E,Se),!ue||ue.index>=E.length)break;var Ye=ue.index,Ae=ue.index+ue[0].length,_e=te;for(_e+=N.value.length;Ye>=_e;)N=N.next,_e+=N.value.length;if(_e-=N.value.length,te=_e,N.value instanceof f)continue;for(var Le=N;Le!==S.tail&&(_e<Ae||typeof Le.value=="string");Le=Le.next)ce++,_e+=Le.value.length;ce--,j=E.slice(te,_e),ue.index-=te}else if(ue=d(k,0,j,Se),!ue)continue;var Ye=ue.index,Qe=ue[0],Ue=j.slice(0,Ye),Ge=j.slice(Ye+Qe.length),Ie=te+j.length;z&&Ie>z.reach&&(z.reach=Ie);var Ne=N.prev;Ue&&(Ne=g(S,Ne,Ue),te+=Ue.length),b(S,Ne,ce);var Te=new f(ie,we?u.tokenize(Qe,we):Qe,ee,Qe);if(N=g(S,Ne,Te),Ge&&g(S,N,Ge),ce>1){var He={cause:ie+","+oe,reach:Ie};h(E,S,R,N.prev,te,He),z&&He.reach>z.reach&&(z.reach=He.reach)}}}}}}function m(){var E={value:null,prev:null,next:null},S={value:null,prev:E,next:null};E.next=S,this.head=E,this.tail=S,this.length=0}function g(E,S,R){var _=S.next,F={value:R,prev:S,next:_};return S.next=F,_.prev=F,E.length++,F}function b(E,S,R){for(var _=S.next,F=0;F<R&&_!==E.tail;F++)_=_.next;S.next=_,_.prev=S,E.length-=F}function w(E){for(var S=[],R=E.head.next;R!==E.tail;)S.push(R.value),R=R.next;return S}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(E){var S=JSON.parse(E.data),R=S.language,_=S.code,F=S.immediateClose;r.postMessage(u.highlight(_,u.languages[R],R)),F&&r.close()},!1)),u;var x=u.util.currentScript();x&&(u.filename=x.src,x.hasAttribute("data-manual")&&(u.manual=!0));function A(){u.manual||u.highlightAll()}if(!u.manual){var C=document.readyState;C==="loading"||C==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",A):window.requestAnimationFrame?window.requestAnimationFrame(A):window.setTimeout(A,16)}return u}(t);e.exports&&(e.exports=n),typeof Ui<"u"&&(Ui.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,a){var s={};s["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};u["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var f={};f[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",f)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var a=r.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(x,A){return"✖ Error "+x+" while fetching file: "+A},a="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",f="loading",d="loaded",h="failed",m="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+f+'"])';function g(x,A,C){var E=new XMLHttpRequest;E.open("GET",x,!0),E.onreadystatechange=function(){E.readyState==4&&(E.status<400&&E.responseText?A(E.responseText):E.status>=400?C(i(E.status,E.statusText)):C(a))},E.send(null)}function b(x){var A=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(A){var C=Number(A[1]),E=A[2],S=A[3];return E?S?[C,Number(S)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function(x){x.selector+=", "+m}),n.hooks.add("before-sanity-check",function(x){var A=x.element;if(A.matches(m)){x.code="",A.setAttribute(u,f);var C=A.appendChild(document.createElement("CODE"));C.textContent=r;var E=A.getAttribute("data-src"),S=x.language;if(S==="none"){var R=(/\.(\w+)$/.exec(E)||[,"none"])[1];S=s[R]||R}n.util.setLanguage(C,S),n.util.setLanguage(A,S);var _=n.plugins.autoloader;_&&_.loadLanguages(S),g(E,function(F){A.setAttribute(u,d);var z=b(A.getAttribute("data-range"));if(z){var ie=F.split(/\r\n?|\n/g),ge=z[0],oe=z[1]==null?ie.length:z[1];ge<0&&(ge+=ie.length),ge=Math.max(0,Math.min(ge-1,ie.length)),oe<0&&(oe+=ie.length),oe=Math.max(0,Math.min(oe,ie.length)),F=ie.slice(ge,oe).join(`
74
+ `),A.hasAttribute("data-start")||A.setAttribute("data-start",String(ge+1))}C.textContent=F,n.highlightElement(C)},function(F){A.setAttribute(u,h),C.textContent=F})}}),n.plugins.fileHighlight={highlight:function(A){for(var C=(A||document).querySelectorAll(m),E=0,S;S=C[E++];)n.highlightElement(S)}};var w=!1;n.fileHighlight=function(){w||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),w=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(x0)),x0.exports}var FX=MX();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function a(g){g()}var s=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function u(g,b){var w=getComputedStyle(g),x=getComputedStyle(b);function A(C){return+C.substr(0,C.length-2)}return b.offsetTop+A(x.borderTopWidth)+A(x.paddingTop)-A(w.paddingTop)}function f(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(b,w,x){w=typeof w=="string"?w:b.getAttribute("data-line")||"";var A=w.replace(/\s+/g,"").split(",").filter(Boolean),C=+b.getAttribute("data-line-offset")||0,E=s()?parseInt:parseFloat,S=E(getComputedStyle(b).lineHeight),R=Prism.util.isActive(b,e),_=b.querySelector("code"),F=R?b:_||b,z=[],ie=_.textContent.match(n),ge=ie?ie.length+1:1,oe=!_||F==_?0:u(b,_);A.forEach(function(Se){var U=Se.split("-"),ee=+U[0],K=+U[1]||ee;if(K=Math.min(ge+C,K),!(K<ee)){var k=b.querySelector('.line-highlight[data-range="'+Se+'"]')||document.createElement("div");if(z.push(function(){k.setAttribute("aria-hidden","true"),k.setAttribute("data-range",Se),k.className=(x||"")+" line-highlight"}),R&&Prism.plugins.lineNumbers){var N=Prism.plugins.lineNumbers.getLine(b,ee),te=Prism.plugins.lineNumbers.getLine(b,K);if(N){var j=N.offsetTop+oe+"px";z.push(function(){k.style.top=j})}if(te){var ce=te.offsetTop-N.offsetTop+te.offsetHeight+"px";z.push(function(){k.style.height=ce})}}else z.push(function(){k.setAttribute("data-start",String(ee)),K>ee&&k.setAttribute("data-end",String(K)),k.style.top=(ee-C-1)*S+oe+"px",k.textContent=new Array(K-ee+2).join(`
75
+ `)});z.push(function(){k.style.width=b.scrollWidth+"px"}),z.push(function(){F.appendChild(k)})}});var O=b.id;if(R&&Prism.util.isActive(b,t)&&O){i(b,t)||z.push(function(){b.classList.add(t)});var we=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(Se,U){var ee=U+we;Se.onclick=function(){var K=O+"."+ee;d=!1,location.hash=K,setTimeout(function(){d=!0},1)}})}return function(){z.forEach(a)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(C){C.parentNode.removeChild(C)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var w=g.slice(0,g.lastIndexOf(".")),x=document.getElementById(w);if(x){x.hasAttribute("data-line")||x.setAttribute("data-line","");var A=Prism.plugins.lineHighlight.highlightLines(x,b,"temporary ");A(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(f(b)){var w=0;r(".line-highlight",b).forEach(function(x){w+=x.textContent.length,x.parentNode.removeChild(x)}),w&&/^(?: \n)+$/.test(g.code.slice(-w))&&(g.code=g.code.slice(0,-w))}}),Prism.hooks.add("complete",function g(b){var w=b.element.parentElement;if(f(w)){clearTimeout(m);var x=Prism.plugins.lineNumbers,A=b.plugins&&b.plugins.lineNumbers;if(i(w,e)&&x&&!A)Prism.hooks.add("line-numbers",g);else{var C=Prism.plugins.lineHighlight.highlightLines(w);C(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(f).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(a)})})();const pR=I.createContext({});function dd(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const r3=typeof window<"u",mR=r3?I.useLayoutEffect:I.useEffect,i3=I.createContext(null);function a3(e,t){e.indexOf(t)===-1&&e.push(t)}function s3(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function RX([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(i,0,a)}return e}const Bs=(e,t,n)=>n>t?t:n<e?e:n;function Xb(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let ic=()=>{},ba=()=>{};process.env.NODE_ENV!=="production"&&(ic=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Xb(t,n))},ba=(e,t,n)=>{if(!e)throw new Error(Xb(t,n))});const Ns={},gR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function vR(e){return typeof e=="object"&&e!==null}const yR=e=>/^0[^.\s]+$/u.test(e);function o3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Gi=e=>e,kX=(e,t)=>n=>t(e(n)),hd=(...e)=>e.reduce(kX),Bf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let u3=class{constructor(){this.subscriptions=[]}add(t){return a3(this.subscriptions,t),()=>s3(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const ga=e=>e*1e3,Za=e=>e/1e3;function bR(e,t){return t?e*(1e3/t):0}const yD=new Set;function l3(e,t,n){e||yD.has(t)||(console.warn(Xb(t,n)),yD.add(t))}const $R=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,OX=1e-7,IX=12;function LX(e,t,n,r,i){let a,s,u=0;do s=t+(n-t)/2,a=$R(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>OX&&++u<IX);return s}function pd(e,t,n,r){if(e===t&&n===r)return Gi;const i=a=>LX(a,0,1,e,n);return a=>a===0||a===1?a:$R(i(a),t,r)}const xR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wR=e=>t=>1-e(1-t),CR=pd(.33,1.53,.69,.99),c3=wR(CR),ER=xR(c3),SR=e=>(e*=2)<1?.5*c3(e):.5*(2-Math.pow(2,-10*(e-1))),f3=e=>1-Math.sin(Math.acos(e)),DR=wR(f3),AR=xR(f3),VX=pd(.42,0,1,1),BX=pd(0,0,.58,1),TR=pd(.42,0,.58,1),NX=e=>Array.isArray(e)&&typeof e[0]!="number",PR=e=>Array.isArray(e)&&typeof e[0]=="number",bD={linear:Gi,easeIn:VX,easeInOut:TR,easeOut:BX,circIn:f3,circInOut:AR,circOut:DR,backIn:c3,backInOut:ER,backOut:CR,anticipate:SR},jX=e=>typeof e=="string",$D=e=>{if(PR(e)){ba(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return pd(t,n,r,i)}else if(jX(e))return ba(bD[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),bD[e];return e},gh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function KX(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function f(h){s.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const w=g&&i?n:r;return m&&s.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(u=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(f),n.clear(),i=!1,a&&(a=!1,d.process(h))}};return d}const UX=40;function _R(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=gh.reduce((S,R)=>(S[R]=KX(a),S),{}),{setup:u,read:f,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=s,x=()=>{const S=Ns.useManualTiming?i.timestamp:performance.now();n=!1,Ns.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,UX),1)),i.timestamp=S,i.isProcessing=!0,u.process(i),f.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:gh.reduce((S,R)=>{const _=s[R];return S[R]=(F,z=!1,ie=!1)=>(n||A(),_.schedule(F,z,ie)),S},{}),cancel:S=>{for(let R=0;R<gh.length;R++)s[gh[R]].cancel(S)},state:i,steps:s}}const{schedule:wn,cancel:js,state:gr,steps:w0}=_R(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gi,!0);let Lh;function qX(){Lh=void 0}const ni={now:()=>(Lh===void 0&&ni.set(gr.isProcessing||Ns.useManualTiming?gr.timestamp:performance.now()),Lh),set:e=>{Lh=e,queueMicrotask(qX)}},MR=e=>t=>typeof t=="string"&&t.startsWith(e),d3=MR("--"),zX=MR("var(--"),h3=e=>zX(e)?WX.test(e.split("/*")[0].trim()):!1,WX=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ac={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Nf={...ac,transform:e=>Bs(0,1,e)},vh={...ac,default:1},wf=e=>Math.round(e*1e5)/1e5,p3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function HX(e){return e==null}const GX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m3=(e,t)=>n=>!!(typeof n=="string"&&GX.test(n)&&n.startsWith(e)||t&&!HX(n)&&Object.prototype.hasOwnProperty.call(n,t)),FR=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,u]=r.match(p3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},YX=e=>Bs(0,255,e),C0={...ac,transform:e=>Math.round(YX(e))},cu={test:m3("rgb","red"),parse:FR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+C0.transform(e)+", "+C0.transform(t)+", "+C0.transform(n)+", "+wf(Nf.transform(r))+")"};function ZX(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Jb={test:m3("#"),parse:ZX,transform:cu.transform},md=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oo=md("deg"),Xa=md("%"),Dt=md("px"),XX=md("vh"),JX=md("vw"),xD={...Xa,parse:e=>Xa.parse(e)/100,transform:e=>Xa.transform(e*100)},bl={test:m3("hsl","hue"),parse:FR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xa.transform(wf(t))+", "+Xa.transform(wf(n))+", "+wf(Nf.transform(r))+")"},Jn={test:e=>cu.test(e)||Jb.test(e)||bl.test(e),parse:e=>cu.test(e)?cu.parse(e):bl.test(e)?bl.parse(e):Jb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cu.transform(e):bl.transform(e),getAnimatableNone:e=>{const t=Jn.parse(e);return t.alpha=0,Jn.transform(t)}},QX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function eJ(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(p3))==null?void 0:t.length)||0)+(((n=e.match(QX))==null?void 0:n.length)||0)>0}const RR="number",kR="color",tJ="var",nJ="var(",wD="${}",rJ=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function jf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(rJ,f=>(Jn.test(f)?(r.color.push(a),i.push(kR),n.push(Jn.parse(f))):f.startsWith(nJ)?(r.var.push(a),i.push(tJ),n.push(f)):(r.number.push(a),i.push(RR),n.push(parseFloat(f))),++a,wD)).split(wD);return{values:n,split:u,indexes:r,types:i}}function OR(e){return jf(e).values}function IR(e){const{split:t,types:n}=jf(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const u=n[s];u===RR?a+=wf(i[s]):u===kR?a+=Jn.transform(i[s]):a+=i[s]}return a}}const iJ=e=>typeof e=="number"?0:Jn.test(e)?Jn.getAnimatableNone(e):e;function aJ(e){const t=OR(e);return IR(e)(t.map(iJ))}const xo={test:eJ,parse:OR,createTransformer:IR,getAnimatableNone:aJ};function E0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sJ({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;i=E0(f,u,e+1/3),a=E0(f,u,e),s=E0(f,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function bp(e,t){return n=>n>0?t:e}const An=(e,t,n)=>e+(t-e)*n,S0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},oJ=[Jb,cu,bl],uJ=e=>oJ.find(t=>t.test(e));function CD(e){const t=uJ(e);if(ic(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===bl&&(n=sJ(n)),n}const ED=(e,t)=>{const n=CD(e),r=CD(t);if(!n||!r)return bp(e,t);const i={...n};return a=>(i.red=S0(n.red,r.red,a),i.green=S0(n.green,r.green,a),i.blue=S0(n.blue,r.blue,a),i.alpha=An(n.alpha,r.alpha,a),cu.transform(i))},Qb=new Set(["none","hidden"]);function lJ(e,t){return Qb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function cJ(e,t){return n=>An(e,t,n)}function g3(e){return typeof e=="number"?cJ:typeof e=="string"?h3(e)?bp:Jn.test(e)?ED:hJ:Array.isArray(e)?LR:typeof e=="object"?Jn.test(e)?ED:fJ:bp}function LR(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>g3(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function fJ(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=g3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function dJ(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],u=e.values[s]??0;n[i]=u,r[a]++}return n}const hJ=(e,t)=>{const n=xo.createTransformer(t),r=jf(e),i=jf(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Qb.has(e)&&!i.values.length||Qb.has(t)&&!r.values.length?lJ(e,t):hd(LR(dJ(r,i),i.values),n):(ic(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),bp(e,t))};function VR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?An(e,t,n):g3(e)(e,t)}const pJ=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wn.update(t,n),stop:()=>js(t),now:()=>gr.isProcessing?gr.timestamp:ni.now()}},BR=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},$p=2e4;function v3(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<$p;)t+=n,r=e.next(t);return t>=$p?1/0:t}function mJ(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(v3(r),$p);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Za(i)}}const gJ=5;function NR(e,t,n){const r=Math.max(t-gJ,0);return bR(n-e(r),t-r)}const Pn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},D0=.001;function vJ({duration:e=Pn.duration,bounce:t=Pn.bounce,velocity:n=Pn.velocity,mass:r=Pn.mass}){let i,a;ic(e<=ga(Pn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Bs(Pn.minDamping,Pn.maxDamping,s),e=Bs(Pn.minDuration,Pn.maxDuration,Za(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=e1(d,s),w=Math.exp(-m);return D0-g/b*w},a=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,w=Math.exp(-m),x=e1(Math.pow(d,2),s);return(-i(d)+D0>0?-1:1)*((g-b)*w)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-D0+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,f=bJ(i,a,u);if(e=ga(e),isNaN(f))return{stiffness:Pn.stiffness,damping:Pn.damping,duration:e};{const d=Math.pow(f,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const yJ=12;function bJ(e,t,n){let r=n;for(let i=1;i<yJ;i++)r=r-e(r)/t(r);return r}function e1(e,t){return e*Math.sqrt(1-t*t)}const $J=["duration","bounce"],xJ=["stiffness","damping","mass"];function SD(e,t){return t.some(n=>e[n]!==void 0)}function wJ(e){let t={velocity:Pn.velocity,stiffness:Pn.stiffness,damping:Pn.damping,mass:Pn.mass,isResolvedFromDuration:!1,...e};if(!SD(e,xJ)&&SD(e,$J))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Bs(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Pn.mass,stiffness:i,damping:a}}else{const n=vJ(e);t={...t,...n,mass:Pn.mass},t.isResolvedFromDuration=!0}return t}function xp(e=Pn.visualDuration,t=Pn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:f,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=wJ({...n,velocity:-Za(n.velocity||0)}),w=g||0,x=d/(2*Math.sqrt(f*h)),A=s-a,C=Za(Math.sqrt(f/h)),E=Math.abs(A)<5;r||(r=E?Pn.restSpeed.granular:Pn.restSpeed.default),i||(i=E?Pn.restDelta.granular:Pn.restDelta.default);let S;if(x<1){const _=e1(C,x);S=F=>{const z=Math.exp(-x*C*F);return s-z*((w+x*C*A)/_*Math.sin(_*F)+A*Math.cos(_*F))}}else if(x===1)S=_=>s-Math.exp(-C*_)*(A+(w+C*A)*_);else{const _=C*Math.sqrt(x*x-1);S=F=>{const z=Math.exp(-x*C*F),ie=Math.min(_*F,300);return s-z*((w+x*C*A)*Math.sinh(ie)+_*A*Math.cosh(ie))/_}}const R={calculatedDuration:b&&m||null,next:_=>{const F=S(_);if(b)u.done=_>=m;else{let z=_===0?w:0;x<1&&(z=_===0?ga(w):NR(S,_,F));const ie=Math.abs(z)<=r,ge=Math.abs(s-F)<=i;u.done=ie&&ge}return u.value=u.done?s:F,u},toString:()=>{const _=Math.min(v3(R),$p),F=BR(z=>R.next(_*z).value,_,30);return _+"ms "+F},toTransition:()=>{}};return R}xp.applyToOptions=e=>{const t=mJ(e,100,xp);return e.ease=t.ease,e.duration=ga(t.duration),e.type="keyframes",e};function t1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:u,max:f,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=ie=>u!==void 0&&ie<u||f!==void 0&&ie>f,w=ie=>u===void 0?f:f===void 0||Math.abs(u-ie)<Math.abs(f-ie)?u:f;let x=n*t;const A=m+x,C=s===void 0?A:s(A);C!==A&&(x=C-m);const E=ie=>-x*Math.exp(-ie/r),S=ie=>C+E(ie),R=ie=>{const ge=E(ie),oe=S(ie);g.done=Math.abs(ge)<=d,g.value=g.done?C:oe};let _,F;const z=ie=>{b(g.value)&&(_=ie,F=xp({keyframes:[g.value,w(g.value)],velocity:NR(S,ie,g.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return z(0),{calculatedDuration:null,next:ie=>{let ge=!1;return!F&&_===void 0&&(ge=!0,R(ie),z(ie)),_!==void 0&&ie>=_?F.next(ie-_):(!ge&&R(ie),g)}}}function CJ(e,t,n){const r=[],i=n||Ns.mix||VR,a=e.length-1;for(let s=0;s<a;s++){let u=i(e[s],e[s+1]);if(t){const f=Array.isArray(t)?t[s]||Gi:t;u=hd(f,u)}r.push(u)}return r}function jR(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(ba(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=CJ(t,r,i),f=u.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Bf(e[m],e[m+1],h);return u[m](g)};return n?h=>d(Bs(e[0],e[a-1],h)):d}function EJ(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Bf(0,t,r);e.push(An(n,1,i))}}function SJ(e){const t=[0];return EJ(t,e.length-1),t}function DJ(e,t){return e.map(n=>n*t)}function AJ(e,t){return e.map(()=>t||TR).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=NX(r)?r.map($D):$D(r),a={done:!1,value:t[0]},s=DJ(n&&n.length===t.length?n:SJ(t),e),u=jR(s,t,{ease:Array.isArray(i)?i:AJ(t,i)});return{calculatedDuration:e,next:f=>(a.value=u(f),a.done=f>=e,a)}}const TJ=e=>e!==null;function y3(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(TJ),u=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!u||r===void 0?a[u]:r}const PJ={decay:t1,inertia:t1,tween:$l,keyframes:$l,spring:xp};function KR(e){typeof e.type=="string"&&(e.type=PJ[e.type])}let b3=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}};const _J=e=>e/100;let $3=class extends b3{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ni.now()&&this.tick(ni.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;KR(t);const{type:n=$l,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:u}=t;const f=n||$l;process.env.NODE_ENV!=="production"&&f!==$l&&ba(u.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${u}`,"spring-two-frames"),f!==$l&&typeof u[0]!="number"&&(this.mixKeyframes=hd(_J,VR(u[0],u[1])),u=[0,100]);const d=f({...t,keyframes:u});a==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...u].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=v3(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:u,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:w,onUpdate:x,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?C<0:C>i;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,R=r;if(m){const ie=Math.min(this.currentTime,i)/u;let ge=Math.floor(ie),oe=ie%1;!oe&&ie>=1&&(oe=1),oe===1&&ge--,ge=Math.min(ge,m+1),!!(ge%2)&&(g==="reverse"?(oe=1-oe,b&&(oe-=b/u)):g==="mirror"&&(R=s)),S=Bs(0,1,oe)*u}const _=E?{done:!1,value:h[0]}:R.next(S);a&&(_.value=a(_.value));let{done:F}=_;!E&&f!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return z&&w!==t1&&(_.value=y3(h,this.options,A,this.speed)),x&&x(_.value),z&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Za(this.calculatedDuration)}get time(){return Za(this.currentTime)}set time(t){var n;t=ga(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ni.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Za(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=pJ,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ni.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}};function MJ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const fu=e=>e*180/Math.PI,n1=e=>{const t=fu(Math.atan2(e[1],e[0]));return r1(t)},FJ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:n1,rotateZ:n1,skewX:e=>fu(Math.atan(e[1])),skewY:e=>fu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},r1=e=>(e=e%360,e<0&&(e+=360),e),DD=n1,AD=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),TD=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),RJ={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:AD,scaleY:TD,scale:e=>(AD(e)+TD(e))/2,rotateX:e=>r1(fu(Math.atan2(e[6],e[5]))),rotateY:e=>r1(fu(Math.atan2(-e[2],e[0]))),rotateZ:DD,rotate:DD,skewX:e=>fu(Math.atan(e[4])),skewY:e=>fu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function i1(e){return e.includes("scale")?1:0}function a1(e,t){if(!e||e==="none")return i1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=RJ,i=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=FJ,i=u}if(!i)return i1(t);const a=r[t],s=i[1].split(",").map(OJ);return typeof a=="function"?a(s):s[a]}const kJ=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return a1(n,t)};function OJ(e){return parseFloat(e.trim())}const sc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oc=new Set(sc),PD=e=>e===ac||e===Dt,IJ=new Set(["x","y","z"]),LJ=sc.filter(e=>!IJ.has(e));function VJ(e){const t=[];return LJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const gu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>a1(t,"x"),y:(e,{transform:t})=>a1(t,"y")};gu.translateX=gu.x;gu.translateY=gu.y;const vu=new Set;let s1=!1,o1=!1,u1=!1;function UR(){if(o1){const e=Array.from(vu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=VJ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var u;(u=r.getValue(a))==null||u.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}o1=!1,s1=!1,vu.forEach(e=>e.complete(u1)),vu.clear()}function qR(){vu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(o1=!0)})}function BJ(){u1=!0,qR(),UR(),u1=!1}let x3=class{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(vu.add(this),s1||(s1=!0,wn.read(qR),wn.resolveKeyframes(UR))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,s);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}MJ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),vu.delete(this)}cancel(){this.state==="scheduled"&&(vu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const NJ=e=>e.startsWith("--");function jJ(e,t,n){NJ(t)?e.style.setProperty(t,n):e.style[t]=n}const KJ=o3(()=>window.ScrollTimeline!==void 0),UJ={};function qJ(e,t){const n=o3(e);return()=>UJ[t]??n()}const zR=qJ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,_D={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gf([0,.65,.55,1]),circOut:gf([.55,0,1,.45]),backIn:gf([.31,.01,.66,-.59]),backOut:gf([.33,1.53,.69,.99])};function WR(e,t){if(e)return typeof e=="function"?zR()?BR(e,t):"ease-out":PR(e)?gf(e):Array.isArray(e)?e.map(n=>WR(n,t)||_D.easeOut):_D[e]}function zJ(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:u="easeOut",times:f}={},d=void 0){const h={[t]:n};f&&(h.offset=f);const m=WR(u,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function HR(e){return typeof e=="function"&&"applyToOptions"in e}function WJ({type:e,...t}){return HR(e)&&zR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let HJ=class extends b3{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:u,onComplete:f}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,ba(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=WJ(t);this.animation=zJ(n,r,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=y3(i,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(h):jJ(n,r,h),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Za(Number(t))}get time(){return Za(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ga(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&KJ()?(this.animation.timeline=t,Gi):n(this)}};const GR={anticipate:SR,backInOut:ER,circInOut:AR};function GJ(e){return e in GR}function YJ(e){typeof e.ease=="string"&&GJ(e.ease)&&(e.ease=GR[e.ease])}const MD=10;let ZJ=class extends HJ{constructor(t){YJ(t),KR(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new $3({...s,autoplay:!1}),f=ga(this.finishedTime??this.time);n.setWithVelocity(u.sample(f-MD).value,u.sample(f).value,MD),u.stop()}};const FD=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xo.test(e)||e==="0")&&!e.startsWith("url("));function XJ(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function JJ(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=FD(i,t),u=FD(a,t);return ic(s===u,`You are trying to animate ${t} from "${i}" to "${a}". "${s?a:i}" is not an animatable value.`,"value-not-animatable"),!s||!u?!1:XJ(e)||(n==="spring"||HR(n))&&r}function l1(e){e.duration=0,e.type}const QJ=new Set(["opacity","clipPath","filter","transform"]),eQ=o3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function tQ(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:d}=t.owner.getProps();return eQ()&&n&&QJ.has(n)&&(n!=="transform"||!d)&&!f&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const nQ=40;let rQ=class extends b3{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:u,name:f,motionValue:d,element:h,...m}){var w;super(),this.stop=()=>{var x,A;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=ni.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:f,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||x3;this.keyframeResolver=new b(u,(x,A,C)=>this.onKeyframesResolved(x,A,g,!C),f,d,h),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:u,delay:f,isHandoff:d,onUpdate:h}=r;this.resolvedAt=ni.now(),JJ(t,a,s,u)||((Ns.instantAnimations||!f)&&(h==null||h(y3(t,r,n))),t[0]=t[t.length-1],l1(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>nQ?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&tQ(g)?new ZJ({...g,element:g.motionValue.owner.current}):new $3(g);b.finished.then(()=>this.notifyFinished()).catch(Gi),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),BJ()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}};const iQ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function aQ(e){const t=iQ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const sQ=4;function YR(e,t,n=1){ba(n<=sQ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=aQ(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return gR(s)?parseFloat(s):s}return h3(i)?YR(i,t,n+1):i}function w3(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ZR=new Set(["width","height","top","left","right","bottom",...sc]),oQ={test:e=>e==="auto",parse:e=>e},XR=e=>t=>t.test(e),JR=[ac,Dt,Xa,oo,JX,XX,oQ],RD=e=>JR.find(XR(e));function uQ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yR(e):!0}const lQ=new Set(["brightness","contrast","saturate","opacity"]);function cQ(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(p3)||[];if(!r)return e;const i=n.replace(r,"");let a=lQ.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const fQ=/\b([a-z-]*)\(.*?\)/gu,c1={...xo,getAnimatableNone:e=>{const t=e.match(fQ);return t?t.map(cQ).join(" "):e}},kD={...ac,transform:Math.round},dQ={rotate:oo,rotateX:oo,rotateY:oo,rotateZ:oo,scale:vh,scaleX:vh,scaleY:vh,scaleZ:vh,skew:oo,skewX:oo,skewY:oo,distance:Dt,translateX:Dt,translateY:Dt,translateZ:Dt,x:Dt,y:Dt,z:Dt,perspective:Dt,transformPerspective:Dt,opacity:Nf,originX:xD,originY:xD,originZ:Dt},C3={borderWidth:Dt,borderTopWidth:Dt,borderRightWidth:Dt,borderBottomWidth:Dt,borderLeftWidth:Dt,borderRadius:Dt,radius:Dt,borderTopLeftRadius:Dt,borderTopRightRadius:Dt,borderBottomRightRadius:Dt,borderBottomLeftRadius:Dt,width:Dt,maxWidth:Dt,height:Dt,maxHeight:Dt,top:Dt,right:Dt,bottom:Dt,left:Dt,padding:Dt,paddingTop:Dt,paddingRight:Dt,paddingBottom:Dt,paddingLeft:Dt,margin:Dt,marginTop:Dt,marginRight:Dt,marginBottom:Dt,marginLeft:Dt,backgroundPositionX:Dt,backgroundPositionY:Dt,...dQ,zIndex:kD,fillOpacity:Nf,strokeOpacity:Nf,numOctaves:kD},hQ={...C3,color:Jn,backgroundColor:Jn,outlineColor:Jn,fill:Jn,stroke:Jn,borderColor:Jn,borderTopColor:Jn,borderRightColor:Jn,borderBottomColor:Jn,borderLeftColor:Jn,filter:c1,WebkitFilter:c1},QR=e=>hQ[e];function e7(e,t){let n=QR(e);return n!==c1&&(n=xo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const pQ=new Set(["auto","none","0"]);function mQ(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!pQ.has(a)&&jf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=e7(n,i)}let gQ=class extends x3{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let d=t[f];if(typeof d=="string"&&(d=d.trim(),h3(d))){const h=YR(d,n.current);h!==void 0&&(t[f]=h),f===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ZR.has(r)||t.length!==2)return;const[i,a]=t,s=RD(i),u=RD(a);if(s!==u)if(PD(s)&&PD(u))for(let f=0;f<t.length;f++){const d=t[f];typeof d=="string"&&(t[f]=parseFloat(d))}else gu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||uQ(t[i]))&&r.push(i);r.length&&mQ(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var u;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=gu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(u=this.removedTransforms)!=null&&u.length&&this.removedTransforms.forEach(([f,d])=>{t.getValue(f).set(d)}),this.resolveNoneKeyframes()}};function vQ(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const t7=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function yQ(e){return vR(e)&&"offsetHeight"in e}const OD=30,bQ=e=>!isNaN(parseFloat(e)),Cf={current:void 0};let $Q=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=ni.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ni.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&l3(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new u3);const r=this.events[t].add(n);return t==="change"?()=>{r(),wn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Cf.current&&Cf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ni.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>OD)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,OD);return bR(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Du(e,t){return new $Q(e,t)}const{schedule:E3}=_R(queueMicrotask,!1),fa={x:!1,y:!1};function n7(){return fa.x||fa.y}function xQ(e){return e==="x"||e==="y"?fa[e]?null:(fa[e]=!0,()=>{fa[e]=!1}):fa.x||fa.y?null:(fa.x=fa.y=!0,()=>{fa.x=fa.y=!1})}function r7(e,t){const n=vQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ID(e){return!(e.pointerType==="touch"||n7())}function wQ(e,t,n={}){const[r,i,a]=r7(e,n),s=u=>{if(!ID(u))return;const{target:f}=u,d=t(f,u);if(typeof d!="function"||!f)return;const h=m=>{ID(m)&&(d(m),f.removeEventListener("pointerleave",h))};f.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",s,i)}),a}const i7=(e,t)=>t?e===t?!0:i7(e,t.parentElement):!1,S3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,CQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function EQ(e){return CQ.has(e.tagName)||e.tabIndex!==-1}const Vh=new WeakSet;function LD(e){return t=>{t.key==="Enter"&&e(t)}}function A0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const SQ=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=LD(()=>{if(Vh.has(n))return;A0(n,"down");const i=LD(()=>{A0(n,"up")}),a=()=>A0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function VD(e){return S3(e)&&!n7()}function DQ(e,t,n={}){const[r,i,a]=r7(e,n),s=u=>{const f=u.currentTarget;if(!VD(u))return;Vh.add(f);const d=t(f,u),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Vh.has(f)&&Vh.delete(f),VD(b)&&typeof d=="function"&&d(b,{success:w})},m=b=>{h(b,f===window||f===document||n.useGlobalTarget||i7(f,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",s,i),yQ(u)&&(u.addEventListener("focus",d=>SQ(d,i)),!EQ(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),a}function a7(e){return vR(e)&&"ownerSVGElement"in e}function AQ(e){return a7(e)&&e.tagName==="svg"}function TQ(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],s=e[3+n],u=jR(i,a,s);return t?u(r):u}const vr=e=>!!(e&&e.getVelocity),PQ=[...JR,Jn,xo],_Q=e=>PQ.find(XR(e)),D3=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function MQ(e=!0){const t=I.useContext(i3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=I.useId();I.useEffect(()=>{if(e)return i(a)},[e]);const s=I.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const s7=I.createContext({strict:!1}),BD={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Wl={};for(const e in BD)Wl[e]={isEnabled:t=>BD[e].some(n=>!!t[n])};function FQ(e){for(const t in e)Wl[t]={...Wl[t],...e[t]}}const RQ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function wp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||RQ.has(e)}let o7=e=>!wp(e);function kQ(e){typeof e=="function"&&(o7=t=>t.startsWith("on")?!wp(t):e(t))}try{kQ(require("@emotion/is-prop-valid").default)}catch{}function OQ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(o7(i)||n===!0&&wp(i)||!t&&!wp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ym=I.createContext({});function bm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Kf(e){return typeof e=="string"||Array.isArray(e)}const A3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],T3=["initial",...A3];function $m(e){return bm(e.animate)||T3.some(t=>Kf(e[t]))}function u7(e){return!!($m(e)||e.variants)}function IQ(e,t){if($m(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Kf(n)?n:void 0,animate:Kf(r)?r:void 0}}return e.inherit!==!1?t:{}}function LQ(e){const{initial:t,animate:n}=IQ(e,I.useContext(ym));return I.useMemo(()=>({initial:t,animate:n}),[ND(t),ND(n)])}function ND(e){return Array.isArray(e)?e.join(" "):e}const Uf={};function VQ(e){for(const t in e)Uf[t]=e[t],d3(t)&&(Uf[t].isCSSVariable=!0)}function l7(e,{layout:t,layoutId:n}){return oc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uf[e]||e==="opacity")}const BQ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NQ=sc.length;function jQ(e,t,n){let r="",i=!0;for(let a=0;a<NQ;a++){const s=sc[a],u=e[s];if(u===void 0)continue;let f=!0;if(typeof u=="number"?f=u===(s.startsWith("scale")?1:0):f=parseFloat(u)===0,!f||n){const d=t7(u,C3[s]);if(!f){i=!1;const h=BQ[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function P3(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,u=!1;for(const f in t){const d=t[f];if(oc.has(f)){s=!0;continue}else if(d3(f)){i[f]=d;continue}else{const h=t7(d,C3[f]);f.startsWith("origin")?(u=!0,a[f]=h):r[f]=h}}if(t.transform||(s||n?r.transform=jQ(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${f} ${d} ${h}`}}const _3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function c7(e,t,n){for(const r in t)!vr(t[r])&&!l7(r,n)&&(e[r]=t[r])}function KQ({transformTemplate:e},t){return I.useMemo(()=>{const n=_3();return P3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function UQ(e,t){const n=e.style||{},r={};return c7(r,n,e),Object.assign(r,KQ(e,t)),r}function qQ(e,t){const n={},r=UQ(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const zQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},WQ={offset:"strokeDashoffset",array:"strokeDasharray"};function HQ(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?zQ:WQ;e[a.offset]=Dt.transform(-r);const s=Dt.transform(t),u=Dt.transform(n);e[a.array]=`${s} ${u}`}function f7(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...u},f,d,h){if(P3(e,u,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&HQ(m,i,a,s,!1)}const d7=()=>({..._3(),attrs:{}}),h7=e=>typeof e=="string"&&e.toLowerCase()==="svg";function GQ(e,t,n,r){const i=I.useMemo(()=>{const a=d7();return f7(a,t,h7(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};c7(a,e.style,e),i.style={...a,...i.style}}return i}const YQ=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function M3(e){return typeof e!="string"||e.includes("-")?!1:!!(YQ.indexOf(e)>-1||/[A-Z]/u.test(e))}function ZQ(e,t,n,{latestValues:r},i,a=!1){const u=(M3(e)?GQ:qQ)(t,r,i,e),f=OQ(t,typeof e=="string",a),d=e!==I.Fragment?{...f,...u,ref:n}:{},{children:h}=t,m=I.useMemo(()=>vr(h)?h.get():h,[h]);return I.createElement(e,{...d,children:m})}function jD(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function F3(e,t,n,r){if(typeof t=="function"){const[i,a]=jD(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=jD(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Bh(e){return vr(e)?e.get():e}function XQ({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:JQ(n,r,i,e),renderState:t()}}function JQ(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=Bh(a[g]);let{initial:s,animate:u}=e;const f=$m(e),d=u7(e);t&&d&&!f&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?u:s;if(m&&typeof m!="boolean"&&!bm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=F3(e,g[b]);if(w){const{transitionEnd:x,transition:A,...C}=w;for(const E in C){let S=C[E];if(Array.isArray(S)){const R=h?S.length-1:0;S=S[R]}S!==null&&(i[E]=S)}for(const E in x)i[E]=x[E]}}}return i}const p7=e=>(t,n)=>{const r=I.useContext(ym),i=I.useContext(i3),a=()=>XQ(e,t,r,i);return n?a():dd(a)};function R3(e,t,n){var a;const{style:r}=e,i={};for(const s in r)(vr(r[s])||t.style&&vr(t.style[s])||l7(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const QQ=p7({scrapeMotionValuesFromProps:R3,createRenderState:_3});function m7(e,t,n){const r=R3(e,t,n);for(const i in e)if(vr(e[i])||vr(t[i])){const a=sc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const eee=p7({scrapeMotionValuesFromProps:m7,createRenderState:d7}),tee=Symbol.for("motionComponentSymbol");function xl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nee(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xl(n)&&(n.current=r))},[t])}const k3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ree="framerAppearId",g7="data-"+k3(ree),v7=I.createContext({});function iee(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(ym),s=I.useContext(s7),u=I.useContext(i3),f=I.useContext(D3).reducedMotion,d=I.useRef(null);r=r||s.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:f}));const h=d.current,m=I.useContext(v7);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&aee(d.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,u)});const b=n[g7],w=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return mR(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),w.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,b)}),w.current=!1),h.enteringChildren=void 0)}),h}function aee(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:u,layoutScroll:f,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:y7(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||u&&xl(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:f,layoutRoot:d})}function y7(e){if(e)return e.options.allowProjection!==!1?e.projection:y7(e.parent)}function T0(e,{forwardMotionProps:t=!1}={},n,r){n&&FQ(n);const i=M3(e)?eee:QQ;function a(u,f){let d;const h={...I.useContext(D3),...u,layoutId:see(u)},{isStatic:m}=h,g=LQ(u),b=i(u,m);if(!m&&r3){oee(h,n);const w=uee(h);d=w.MeasureLayout,g.visualElement=iee(e,b,h,r,w.ProjectionNode)}return Qa.jsxs(ym.Provider,{value:g,children:[d&&g.visualElement?Qa.jsx(d,{visualElement:g.visualElement,...h}):null,ZQ(e,u,nee(b,g.visualElement,f),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=I.forwardRef(a);return s[tee]=e,s}function see({layoutId:e}){const t=I.useContext(pR).id;return t&&e!==void 0?t+"-"+e:e}function oee(e,t){const n=I.useContext(s7).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ic(!1,r,"lazy-strict-mode"):ba(!1,r,"lazy-strict-mode")}}function uee(e){const{drag:t,layout:n}=Wl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function lee(e,t){if(typeof Proxy>"u")return T0;const n=new Map,r=(a,s)=>T0(a,s,e,t),i=(a,s)=>(process.env.NODE_ENV!=="production"&&l3(!1,"motion() is deprecated. Use motion.create() instead."),r(a,s));return new Proxy(i,{get:(a,s)=>s==="create"?r:(n.has(s)||n.set(s,T0(s,void 0,e,t)),n.get(s))})}function b7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function cee({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fee(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function P0(e){return e===void 0||e===1}function f1({scale:e,scaleX:t,scaleY:n}){return!P0(e)||!P0(t)||!P0(n)}function nu(e){return f1(e)||$7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $7(e){return KD(e.x)||KD(e.y)}function KD(e){return e&&e!=="0%"}function Cp(e,t,n){const r=e-n,i=t*r;return n+i}function UD(e,t,n,r,i){return i!==void 0&&(e=Cp(e,i,r)),Cp(e,n,r)+t}function d1(e,t=0,n=1,r,i){e.min=UD(e.min,t,n,r,i),e.max=UD(e.max,t,n,r,i)}function x7(e,{x:t,y:n}){d1(e.x,t.translate,t.scale,t.originPoint),d1(e.y,n.translate,n.scale,n.originPoint)}const qD=.999999999999,zD=1.0000000000001;function dee(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let u=0;u<i;u++){a=n[u],s=a.projectionDelta;const{visualElement:f}=a.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Cl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,x7(e,s)),r&&nu(a.latestValues)&&Cl(e,a.latestValues))}t.x<zD&&t.x>qD&&(t.x=1),t.y<zD&&t.y>qD&&(t.y=1)}function wl(e,t){e.min=e.min+t,e.max=e.max+t}function WD(e,t,n,r,i=.5){const a=An(e.min,e.max,i);d1(e,t,n,a,r)}function Cl(e,t){WD(e.x,t.x,t.scaleX,t.scale,t.originX),WD(e.y,t.y,t.scaleY,t.scale,t.originY)}function w7(e,t){return b7(fee(e.getBoundingClientRect(),t))}function hee(e,t,n){const r=w7(e,n),{scroll:i}=t;return i&&(wl(r.x,i.offset.x),wl(r.y,i.offset.y)),r}const HD=()=>({translate:0,scale:1,origin:0,originPoint:0}),El=()=>({x:HD(),y:HD()}),GD=()=>({min:0,max:0}),Wn=()=>({x:GD(),y:GD()}),h1={current:null},C7={current:!1};function pee(){if(C7.current=!0,!!r3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>h1.current=e.matches;e.addEventListener("change",t),t()}else h1.current=!1}const mee=new WeakMap;function gee(e,t,n){for(const r in t){const i=t[r],a=n[r];if(vr(i))e.addValue(r,i);else if(vr(a))e.addValue(r,Du(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Du(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const YD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let vee=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=x3,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=ni.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,wn.render(this.render,!1,!0))};const{latestValues:f,renderState:d}=s;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=$m(n),this.isVariantNode=u7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];f[g]!==void 0&&vr(b)&&b.set(f[g])}}mount(t){var n;this.current=t,mee.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),C7.current||pee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:h1.current,process.env.NODE_ENV!=="production"&&l3(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),js(this.notifyUpdate),js(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=oc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&wn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Wl){const n=Wl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<YD.length;r++){const i=YD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=gee(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Du(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(gR(r)||yR(r))?r=parseFloat(r):!_Q(r)&&xo.test(n)&&(r=e7(t,n)),this.setBaseTarget(t,vr(r)?r.get():r)),vr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=F3(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!vr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new u3),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){E3.render(this.render)}},E7=class extends vee{constructor(){super(...arguments),this.KeyframeResolver=gQ}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;vr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function S7(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i==null||i.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function yee(e){return window.getComputedStyle(e)}let bee=class extends E7{constructor(){super(...arguments),this.type="html",this.renderInstance=S7}readValueFromInstance(t,n){var r;if(oc.has(n))return(r=this.projection)!=null&&r.isProjecting?i1(n):kJ(t,n);{const i=yee(t),a=(d3(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w7(t,n)}build(t,n,r){P3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return R3(t,n,r)}};const D7=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function $ee(e,t,n,r){S7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(D7.has(i)?i:k3(i),t.attrs[i])}let xee=class extends E7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(oc.has(n)){const r=QR(n);return r&&r.default||0}return n=D7.has(n)?n:k3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return m7(t,n,r)}build(t,n,r){f7(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){$ee(t,n,r,i)}mount(t){this.isSVGTag=h7(t.tagName),super.mount(t)}};const wee=(e,t)=>M3(e)?new xee(t):new bee(t,{allowProjection:e!==I.Fragment});function Il(e,t,n){const r=e.getProps();return F3(r,t,n!==void 0?n:r.custom,e)}const p1=e=>Array.isArray(e);function Cee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Du(n))}function Eee(e){return p1(e)?e[e.length-1]||0:e}function See(e,t){const n=Il(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const u=Eee(a[s]);Cee(e,s,u)}}function Dee(e){return!!(vr(e)&&e.add)}function m1(e,t){const n=e.getValue("willChange");if(Dee(n))return n.add(t);if(!n&&Ns.WillChange){const r=new Ns.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function A7(e){return e.props[g7]}const Aee=e=>e!==null;function Tee(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Aee),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Pee={type:"spring",stiffness:500,damping:25,restSpeed:10},_ee=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Mee={type:"keyframes",duration:.8},Fee={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ree=(e,{keyframes:t})=>t.length>2?Mee:oc.has(e)?e.startsWith("scale")?_ee(t[1]):Pee:Fee;function kee({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:u,from:f,elapsed:d,...h}){return!!Object.keys(h).length}const O3=(e,t,n,r={},i,a)=>s=>{const u=w3(r,e)||{},f=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ga(f);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};kee(u)||Object.assign(h,Ree(e,h)),h.duration&&(h.duration=ga(h.duration)),h.repeatDelay&&(h.repeatDelay=ga(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(l1(h),h.delay===0&&(m=!0)),(Ns.instantAnimations||Ns.skipAnimations)&&(m=!0,l1(h),h.delay=0),h.allowFlatten=!u.type&&!u.ease,m&&!a&&t.get()!==void 0){const g=Tee(h.keyframes,u);if(g!==void 0){wn.update(()=>{h.onUpdate(g),h.onComplete()});return}}return u.isSync?new $3(h):new rQ(h)};function Oee({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function T7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...u}=t;r&&(a=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in u){const m=e.getValue(h,e.latestValues[h]??null),g=u[h];if(g===void 0||d&&Oee(d,h))continue;const b={delay:n,...w3(a||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===w&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const C=A7(e);if(C){const E=window.MotionHandoffAnimation(C,h,wn);E!==null&&(b.startTime=E,x=!0)}}m1(e,h),m.start(O3(h,m,g,e.shouldReduceMotion&&ZR.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&f.push(A)}return s&&Promise.all(f).then(()=>{wn.update(()=>{s&&See(e,s)})}),f}function P7(e,t,n,r=0,i=1){const a=Array.from(e).sort((d,h)=>d.sortNodePosition(h)).indexOf(t),s=e.size,u=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:u-a*r}function g1(e,t,n={}){var f;const r=Il(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(T7(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return Iee(e,t,d,h,m,g,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[d,h]=u==="beforeChildren"?[a,s]:[s,a];return d().then(()=>h())}else return Promise.all([a(),s(n.delay)])}function Iee(e,t,n=0,r=0,i=0,a=1,s){const u=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),u.push(g1(f,t,{...s,delay:n+(typeof r=="function"?0:r)+P7(e.variantChildren,f,r,i,a)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(u)}function Lee(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>g1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=g1(e,t,n);else{const i=typeof t=="function"?Il(e,t,n.custom):t;r=Promise.all(T7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function _7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Vee=T3.length;function M7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?M7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Vee;n++){const r=T3[n],i=e.props[r];(Kf(i)||i===!1)&&(t[r]=i)}return t}const Bee=[...A3].reverse(),Nee=A3.length;function jee(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Lee(e,n,r)))}function Kee(e){let t=jee(e),n=ZD(),r=!0;const i=f=>(d,h)=>{var g;const m=Il(e,h,f==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...x}=m;d={...d,...x,...w}}return d};function a(f){t=f(e)}function s(f){const{props:d}=e,h=M7(e.parent)||{},m=[],g=new Set;let b={},w=1/0;for(let A=0;A<Nee;A++){const C=Bee[A],E=n[C],S=d[C]!==void 0?d[C]:h[C],R=Kf(S),_=C===f?E.isActive:null;_===!1&&(w=A);let F=S===h[C]&&S!==d[C]&&R;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&_===null||!S&&!E.prevProp||bm(S)||typeof S=="boolean")continue;const z=Uee(E.prevProp,S);let ie=z||C===f&&E.isActive&&!F&&R||A>w&&R,ge=!1;const oe=Array.isArray(S)?S:[S];let O=oe.reduce(i(C),{});_===!1&&(O={});const{prevResolvedValues:we={}}=E,Se={...we,...O},U=k=>{ie=!0,g.has(k)&&(ge=!0,g.delete(k)),E.needsAnimating[k]=!0;const N=e.getValue(k);N&&(N.liveStyle=!1)};for(const k in Se){const N=O[k],te=we[k];if(b.hasOwnProperty(k))continue;let j=!1;p1(N)&&p1(te)?j=!_7(N,te):j=N!==te,j?N!=null?U(k):g.add(k):N!==void 0&&g.has(k)?U(k):E.protectedKeys[k]=!0}E.prevProp=S,E.prevResolvedValues=O,E.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(ie=!1);const ee=F&&z;ie&&(!ee||ge)&&m.push(...oe.map(k=>{const N={type:C};if(typeof k=="string"&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:te}=e,j=Il(te,k);if(te.enteringChildren&&j){const{delayChildren:ce}=j.transition||{};N.delay=P7(te.enteringChildren,e,ce)}}return{animation:k,options:N}}))}if(g.size){const A={};if(typeof d.initial!="boolean"){const C=Il(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(A.transition=C.transition)}g.forEach(C=>{const E=e.getBaseTarget(C),S=e.getValue(C);S&&(S.liveStyle=!0),A[C]=E??null}),m.push({animation:A})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function u(f,d){var m;if(n[f].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(f,d)}),n[f].isActive=d;const h=s(f);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:s,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=ZD(),r=!0}}}function Uee(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_7(t,e):!1}function eu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ZD(){return{animate:eu(!0),whileInView:eu(),whileHover:eu(),whileTap:eu(),whileDrag:eu(),whileFocus:eu(),exit:eu()}}let Do=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},qee=class extends Do{constructor(t){super(t),t.animationState||(t.animationState=Kee(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();bm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}},zee=0,Wee=class extends Do{constructor(){super(...arguments),this.id=zee++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};const Hee={animation:{Feature:qee},exit:{Feature:Wee}};function qf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gd(e){return{point:{x:e.pageX,y:e.pageY}}}const Gee=e=>t=>S3(t)&&e(t,gd(t));function Ef(e,t,n,r){return qf(e,t,Gee(n),r)}const F7=1e-4,Yee=1-F7,Zee=1+F7,R7=.01,Xee=0-R7,Jee=0+R7;function Vr(e){return e.max-e.min}function Qee(e,t,n){return Math.abs(e-t)<=n}function XD(e,t,n,r=.5){e.origin=r,e.originPoint=An(t.min,t.max,e.origin),e.scale=Vr(n)/Vr(t),e.translate=An(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Yee&&e.scale<=Zee||isNaN(e.scale))&&(e.scale=1),(e.translate>=Xee&&e.translate<=Jee||isNaN(e.translate))&&(e.translate=0)}function Sf(e,t,n,r){XD(e.x,t.x,n.x,r?r.originX:void 0),XD(e.y,t.y,n.y,r?r.originY:void 0)}function JD(e,t,n){e.min=n.min+t.min,e.max=e.min+Vr(t)}function ete(e,t,n){JD(e.x,t.x,n.x),JD(e.y,t.y,n.y)}function QD(e,t,n){e.min=t.min-n.min,e.max=e.min+Vr(t)}function Df(e,t,n){QD(e.x,t.x,n.x),QD(e.y,t.y,n.y)}function Vi(e){return[e("x"),e("y")]}const k7=({current:e})=>e?e.ownerDocument.defaultView:null,eA=(e,t)=>Math.abs(e-t);function tte(e,t){const n=eA(e.x,t.x),r=eA(e.y,t.y);return Math.sqrt(n**2+r**2)}class O7{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=M0(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,w=tte(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!w)return;const{point:x}=g,{timestamp:A}=gr;this.history.push({...x,timestamp:A});const{onStart:C,onMove:E}=this.handlers;b||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=_0(b,this.transformPagePoint),wn.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:w,onSessionEnd:x,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=M0(g.type==="pointercancel"?this.lastMoveEventInfo:_0(b,this.transformPagePoint),this.history);this.startEvent&&w&&w(g,C),x&&x(g,C)},!S3(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const u=gd(t),f=_0(u,this.transformPagePoint),{point:d}=f,{timestamp:h}=gr;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,M0(f,this.history)),this.removeListeners=hd(Ef(this.contextWindow,"pointermove",this.handlePointerMove),Ef(this.contextWindow,"pointerup",this.handlePointerUp),Ef(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),js(this.updatePoint)}}function _0(e,t){return t?{point:t(e.point)}:e}function tA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function M0({point:e},t){return{point:e,delta:tA(e,I7(t)),offset:tA(e,nte(t)),velocity:rte(t,.1)}}function nte(e){return e[0]}function I7(e){return e[e.length-1]}function rte(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=I7(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ga(t)));)n--;if(!r)return{x:0,y:0};const a=Za(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ite(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?An(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?An(n,e,r.max):Math.min(e,n)),e}function nA(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ate(e,{top:t,left:n,bottom:r,right:i}){return{x:nA(e.x,n,i),y:nA(e.y,t,r)}}function rA(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ste(e,t){return{x:rA(e.x,t.x),y:rA(e.y,t.y)}}function ote(e,t){let n=.5;const r=Vr(e),i=Vr(t);return i>r?n=Bf(t.min,t.max-r,e.min):r>i&&(n=Bf(e.min,e.max-i,t.min)),Bs(0,1,n)}function ute(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const v1=.35;function lte(e=v1){return e===!1?e=0:e===!0&&(e=v1),{x:iA(e,"left","right"),y:iA(e,"top","bottom")}}function iA(e,t,n){return{min:aA(e,t),max:aA(e,n)}}function aA(e,t){return typeof e=="number"?e:e[t]||0}const cte=new WeakMap;class fte{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gd(m).point)},s=(m,g)=>{const{drag:b,dragPropagation:w,onDragStart:x}=this.getProps();if(b&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xQ(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vi(C=>{let E=this.getAxisMotionValue(C).get()||0;if(Xa.test(E)){const{projection:S}=this.visualElement;if(S&&S.layout){const R=S.layout.layoutBox[C];R&&(E=Vr(R)*(parseFloat(E)/100))}}this.originPoint[C]=E}),x&&wn.postRender(()=>x(m,g)),m1(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},u=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:w,onDirectionLock:x,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:C}=g;if(w&&this.currentDirection===null){this.currentDirection=dte(C),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",g.point,C),this.updateAxis("y",g.point,C),this.visualElement.render(),A&&A(m,g)},f=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Vi(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)==null?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new O7(t,{onSessionStart:a,onStart:s,onMove:u,onSessionEnd:f,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:k7(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:u}=this.getProps();u&&wn.postRender(()=>u(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!yh(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=ite(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,i=this.constraints;t&&xl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=ate(r.layoutBox,t):this.constraints=!1,this.elastic=lte(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Vi(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=ute(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xl(t))return!1;const r=t.current;ba(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=hee(r,i.root,this.visualElement.getTransformPagePoint());let s=ste(i.layout.layoutBox,a);if(n){const u=n(cee(s));this.hasMutatedConstraints=!!u,u&&(s=b7(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},d=Vi(h=>{if(!yh(h,n,this.currentDirection))return;let m=f&&f[h]||{};s&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,w={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,w)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return m1(this.visualElement,t),r.start(O3(t,r,0,n,this.visualElement,!1))}stopAnimation(){Vi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Vi(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Vi(n=>{const{drag:r}=this.getProps();if(!yh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[n];a.set(t[n]-An(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Vi(s=>{const u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){const f=u.get();i[s]=ote({min:f,max:f},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Vi(s=>{if(!yh(s,t,null))return;const u=this.getAxisMotionValue(s),{min:f,max:d}=this.constraints[s];u.set(An(f,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;cte.set(this.visualElement,this);const t=this.visualElement.current,n=Ef(t,"pointerdown",f=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();xl(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),wn.read(r);const s=qf(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d})=>{this.isDragging&&d&&(Vi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=f[h].translate,m.set(m.get()+f[h].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=v1,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:u}}}function yh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dte(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class hte extends Do{constructor(t){super(t),this.removeGroupControls=Gi,this.removeListeners=Gi,this.controls=new fte(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gi}unmount(){this.removeGroupControls(),this.removeListeners()}}const sA=e=>(t,n)=>{e&&wn.postRender(()=>e(t,n))};class pte extends Do{constructor(){super(...arguments),this.removePointerDownListener=Gi}onPointerDown(t){this.session=new O7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:k7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:sA(t),onStart:sA(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&wn.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ef(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Nh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function oA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ef={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Dt.test(e))e=parseFloat(e);else return e;const n=oA(e,t.target.x),r=oA(e,t.target.y);return`${n}% ${r}%`}},mte={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=xo.parse(e);if(i.length>5)return r;const a=xo.createTransformer(e),s=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;i[0+s]/=u,i[1+s]/=f;const d=An(u,f,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),a(i)}};let F0=!1;class gte extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;VQ(vte),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),F0&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Nh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,F0=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||wn.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),E3.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;F0=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function L7(e){const[t,n]=MQ(),r=I.useContext(pR);return Qa.jsx(gte,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(v7),isPresent:t,safeToRemove:n})}const vte={borderRadius:{...ef,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ef,borderTopRightRadius:ef,borderBottomLeftRadius:ef,borderBottomRightRadius:ef,boxShadow:mte};function yte(e,t,n){const r=vr(e)?e:Du(e);return r.start(O3("",r,t,n)),r.animation}const bte=(e,t)=>e.depth-t.depth;class $te{constructor(){this.children=[],this.isDirty=!1}add(t){a3(this.children,t),this.isDirty=!0}remove(t){s3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bte),this.isDirty=!1,this.children.forEach(t)}}function xte(e,t){const n=ni.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(js(r),e(a-t))};return wn.setup(r,!0),()=>js(r)}const V7=["TopLeft","TopRight","BottomLeft","BottomRight"],wte=V7.length,uA=e=>typeof e=="string"?parseFloat(e):e,lA=e=>typeof e=="number"||Dt.test(e);function Cte(e,t,n,r,i,a){i?(e.opacity=An(0,n.opacity??1,Ete(r)),e.opacityExit=An(t.opacity??1,0,Ste(r))):a&&(e.opacity=An(t.opacity??1,n.opacity??1,r));for(let s=0;s<wte;s++){const u=`border${V7[s]}Radius`;let f=cA(t,u),d=cA(n,u);if(f===void 0&&d===void 0)continue;f||(f=0),d||(d=0),f===0||d===0||lA(f)===lA(d)?(e[u]=Math.max(An(uA(f),uA(d),r),0),(Xa.test(d)||Xa.test(f))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=An(t.rotate||0,n.rotate||0,r))}function cA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Ete=B7(0,.5,DR),Ste=B7(.5,.95,Gi);function B7(e,t,n){return r=>r<e?0:r>t?1:n(Bf(e,t,r))}function fA(e,t){e.min=t.min,e.max=t.max}function Oi(e,t){fA(e.x,t.x),fA(e.y,t.y)}function dA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function hA(e,t,n,r,i){return e-=t,e=Cp(e,1/n,r),i!==void 0&&(e=Cp(e,1/i,r)),e}function Dte(e,t=0,n=1,r=.5,i,a=e,s=e){if(Xa.test(t)&&(t=parseFloat(t),t=An(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=An(a.min,a.max,r);e===a&&(u-=t),e.min=hA(e.min,t,n,u,i),e.max=hA(e.max,t,n,u,i)}function pA(e,t,[n,r,i],a,s){Dte(e,t[n],t[r],t[i],t.scale,a,s)}const Ate=["x","scaleX","originX"],Tte=["y","scaleY","originY"];function mA(e,t,n,r){pA(e.x,t,Ate,n?n.x:void 0,r?r.x:void 0),pA(e.y,t,Tte,n?n.y:void 0,r?r.y:void 0)}function gA(e){return e.translate===0&&e.scale===1}function N7(e){return gA(e.x)&&gA(e.y)}function vA(e,t){return e.min===t.min&&e.max===t.max}function Pte(e,t){return vA(e.x,t.x)&&vA(e.y,t.y)}function yA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function j7(e,t){return yA(e.x,t.x)&&yA(e.y,t.y)}function bA(e){return Vr(e.x)/Vr(e.y)}function $A(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _te{constructor(){this.members=[]}add(t){a3(this.members,t),t.scheduleRender()}remove(t){if(s3(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Mte(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:w}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),w&&(r+=`skewY(${w}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(r+=`scale(${u}, ${f})`),r||"none"}const R0=["","X","Y","Z"],Fte=1e3;let Rte=0;function k0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function K7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=A7(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",wn,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&K7(r)}function U7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=Rte++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Ite),this.nodes.forEach(Nte),this.nodes.forEach(jte),this.nodes.forEach(Lte)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new $te)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new u3),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const f=this.eventHandlers.get(s);f&&f.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=a7(s)&&!AQ(s),this.instance=s;const{layoutId:u,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||u)&&(this.isLayoutDirty=!0),e){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;wn.read(()=>{m=window.innerWidth}),e(s,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=xte(g,250),Nh.hasAnimatedSinceResize&&(Nh.hasAnimatedSinceResize=!1,this.nodes.forEach(CA)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||Wte,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=d.getProps(),C=!this.targetLayout||!j7(this.targetLayout,b),E=!m&&g;if(this.options.layoutRoot||this.resumeFrom||E||m&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...w3(w,"layout"),onPlay:x,onComplete:A};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(h,E)}else m||CA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),js(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Kte),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&K7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(xA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(wA);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Bte),this.nodes.forEach(kte),this.nodes.forEach(Ote)):this.nodes.forEach(wA),this.clearAllSnapshots();const u=ni.now();gr.delta=Bs(0,1e3/60,u-gr.timestamp),gr.timestamp=u,gr.isProcessing=!0,w0.update.process(gr),w0.preRender.process(gr),w0.render.process(gr),gr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,E3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vte),this.sharedNodes.forEach(Ute)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vr(this.snapshot.measuredBox.x)&&!Vr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!N7(this.projectionDelta),f=this.getTransformTemplate(),d=f?f(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;s&&this.instance&&(u||nu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return s&&(f=this.removeTransform(f)),Hte(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:s}=this.options;if(!s)return Wn();const u=s.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(Gte))){const{scroll:h}=this.root;h&&(wl(u.x,h.offset.x),wl(u.y,h.offset.y))}return u}removeElementScroll(s){var f;const u=Wn();if(Oi(u,s),(f=this.scroll)!=null&&f.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Oi(u,s),wl(u.x,m.offset.x),wl(u.y,m.offset.y))}return u}applyTransform(s,u=!1){const f=Wn();Oi(f,s);for(let d=0;d<this.path.length;d++){const h=this.path[d];!u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Cl(f,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),nu(h.latestValues)&&Cl(f,h.latestValues)}return nu(this.latestValues)&&Cl(f,this.latestValues),f}removeTransform(s){const u=Wn();Oi(u,s);for(let f=0;f<this.path.length;f++){const d=this.path[f];if(!d.instance||!nu(d.latestValues))continue;f1(d.latestValues)&&d.updateSnapshot();const h=Wn(),m=d.measurePageBox();Oi(h,m),mA(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return nu(this.latestValues)&&mA(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==gr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var g;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(s||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=gr.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Df(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Oi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wn(),this.targetWithTransforms=Wn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ete(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Oi(this.target,this.layout.layoutBox),x7(this.target,this.targetDelta)):Oi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Df(this.relativeTargetOrigin,this.target,b.target),Oi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||f1(this.parent.latestValues)||$7(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var w;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let f=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===gr.timestamp&&(f=!1),f)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;Oi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;dee(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Wn());const{target:b}=s;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dA(this.prevProjectionDelta.x,this.projectionDelta.x),dA(this.prevProjectionDelta.y,this.projectionDelta.y)),Sf(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!$A(this.projectionDelta.x,this.prevProjectionDelta.x)||!$A(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var u;if((u=this.options.visualElement)==null||u.scheduleRender(),s){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=El(),this.projectionDelta=El(),this.projectionDeltaWithTransform=El()}setAnimationOrigin(s,u=!1){const f=this.snapshot,d=f?f.latestValues:{},h={...this.latestValues},m=El();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const g=Wn(),b=f?f.source:void 0,w=this.layout?this.layout.source:void 0,x=b!==w,A=this.getStack(),C=!A||A.members.length<=1,E=!!(x&&!C&&this.options.crossfade===!0&&!this.path.some(zte));this.animationProgress=0;let S;this.mixTargetDelta=R=>{const _=R/1e3;EA(m.x,s.x,_),EA(m.y,s.y,_),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Df(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qte(this.relativeTarget,this.relativeTargetOrigin,g,_),S&&Pte(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Wn()),Oi(S,this.relativeTarget)),x&&(this.animationValues=h,Cte(h,d,this.latestValues,_,E,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var u,f,d;this.notifyListeners("animationStart"),(u=this.currentAnimation)==null||u.stop(),(d=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||d.stop(),this.pendingAnimation&&(js(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wn.update(()=>{Nh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Du(0)),this.currentAnimation=yte(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),s.onUpdate&&s.onUpdate(h)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fte),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:f,layout:d,latestValues:h}=s;if(!(!u||!f||!d)){if(this!==s&&this.layout&&d&&q7(this.options.animationType,this.layout.layoutBox,d.layoutBox)){f=this.target||Wn();const m=Vr(this.layout.layoutBox.x);f.x.min=s.target.x.min,f.x.max=f.x.min+m;const g=Vr(this.layout.layoutBox.y);f.y.min=s.target.y.min,f.y.max=f.y.min+g}Oi(u,f),Cl(u,h),Sf(this.projectionDeltaWithTransform,this.layoutCorrected,u,h)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new _te),this.sharedNodes.get(s).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var u;const{layoutId:s}=this.options;return s?((u=this.getStack())==null?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:s}=this.options;return s?(u=this.getStack())==null?void 0:u.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:f}={}){const d=this.getStack();d&&d.promote(this,f),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:f}=s;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const d={};f.z&&k0("z",s,d,this.animationValues);for(let h=0;h<R0.length;h++)k0(`rotate${R0[h]}`,s,d,this.animationValues),k0(`skew${R0[h]}`,s,d,this.animationValues);s.render();for(const h in d)s.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);s.scheduleRender()}applyProjectionStyles(s,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Bh(u==null?void 0:u.pointerEvents)||"",s.transform=f?f(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Bh(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!nu(this.latestValues)&&(s.transform=f?f({},""):"none",this.hasProjected=!1);return}s.visibility="";const h=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=Mte(this.projectionDeltaWithTransform,this.treeScale,h);f&&(m=f(h,m)),s.transform=m;const{x:g,y:b}=this.projectionDelta;s.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,d.animationValues?s.opacity=d===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:s.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const w in Uf){if(h[w]===void 0)continue;const{correct:x,applyTo:A,isCSSVariable:C}=Uf[w],E=m==="none"?h[w]:x(h[w],d);if(A){const S=A.length;for(let R=0;R<S;R++)s[A[R]]=E}else C?this.options.visualElement.renderState.vars[w]=E:s[w]=E}this.options.layoutId&&(s.pointerEvents=d===this?Bh(u==null?void 0:u.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)==null?void 0:u.stop()}),this.root.nodes.forEach(xA),this.root.sharedNodes.clear()}}}function kte(e){e.updateLayout()}function Ote(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?Vi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Vr(g);g.min=r[m].min,g.max=g.min+b}):q7(a,t.layoutBox,r)&&Vi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Vr(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const u=El();Sf(u,r,t.layoutBox);const f=El();s?Sf(f,e.applyTransform(i,!0),t.measuredBox):Sf(f,r,t.layoutBox);const d=!N7(u);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const w=Wn();Df(w,t.layoutBox,g.layoutBox);const x=Wn();Df(x,r,b.layoutBox),j7(w,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=w,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Ite(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Lte(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vte(e){e.clearSnapshot()}function xA(e){e.clearMeasurements()}function wA(e){e.isLayoutDirty=!1}function Bte(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function CA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Nte(e){e.resolveTargetDelta()}function jte(e){e.calcProjection()}function Kte(e){e.resetSkewAndRotation()}function Ute(e){e.removeLeadSnapshot()}function EA(e,t,n){e.translate=An(t.translate,0,n),e.scale=An(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function SA(e,t,n,r){e.min=An(t.min,n.min,r),e.max=An(t.max,n.max,r)}function qte(e,t,n,r){SA(e.x,t.x,n.x,r),SA(e.y,t.y,n.y,r)}function zte(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Wte={duration:.45,ease:[.4,0,.1,1]},DA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),AA=DA("applewebkit/")&&!DA("chrome/")?Math.round:Gi;function TA(e){e.min=AA(e.min),e.max=AA(e.max)}function Hte(e){TA(e.x),TA(e.y)}function q7(e,t,n){return e==="position"||e==="preserve-aspect"&&!Qee(bA(t),bA(n),.2)}function Gte(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Yte=U7({attachResizeListener:(e,t)=>qf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),O0={current:void 0},z7=U7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!O0.current){const e=new Yte({});e.mount(window),e.setOptions({layoutScroll:!0}),O0.current=e}return O0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Zte={pan:{Feature:pte},drag:{Feature:hte,ProjectionNode:z7,MeasureLayout:L7}};function PA(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&wn.postRender(()=>a(t,gd(t)))}let Xte=class extends Do{mount(){const{current:t}=this.node;t&&(this.unmount=wQ(t,(n,r)=>(PA(this.node,r,"Start"),i=>PA(this.node,i,"End"))))}unmount(){}},Jte=class extends Do{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hd(qf(this.node.current,"focus",()=>this.onFocus()),qf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function _A(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&wn.postRender(()=>a(t,gd(t)))}let Qte=class extends Do{mount(){const{current:t}=this.node;t&&(this.unmount=DQ(t,(n,r)=>(_A(this.node,r,"Start"),(i,{success:a})=>_A(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const y1=new WeakMap,I0=new WeakMap,ene=e=>{const t=y1.get(e.target);t&&t(e)},tne=e=>{e.forEach(ene)};function nne({root:e,...t}){const n=e||document;I0.has(n)||I0.set(n,{});const r=I0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(tne,{root:e,...t})),r[i]}function rne(e,t,n){const r=nne(t);return y1.set(e,n),r.observe(e),()=>{y1.delete(e),r.unobserve(e)}}const ine={some:0,all:1};let ane=class extends Do{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:ine[i]},u=f=>{const{isIntersecting:d}=f;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(f)};return rne(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(sne(t,n))&&this.startObserver()}unmount(){}};function sne({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const one={inView:{Feature:ane},tap:{Feature:Qte},focus:{Feature:Jte},hover:{Feature:Xte}},une={layout:{ProjectionNode:z7,MeasureLayout:L7}},lne={...Hee,...one,...Zte,...une},W7=lee(lne,wee);function H7(e){const t=dd(()=>Du(e)),{isStatic:n}=I.useContext(D3);if(n){const[,r]=I.useState(e);I.useEffect(()=>t.on("change",r),[])}return t}function G7(e,t){const n=H7(t()),r=()=>n.set(t());return r(),mR(()=>{const i=()=>wn.preRender(r,!1,!0),a=e.map(s=>s.on("change",i));return()=>{a.forEach(s=>s()),js(r)}}),n}function cne(e){Cf.current=[],e();const t=G7(Cf.current,e);return Cf.current=void 0,t}function fne(e,t,n,r){if(typeof e=="function")return cne(e);const i=typeof t=="function"?t:TQ(t,n,r);return Array.isArray(e)?MA(e,i):MA([e],([a])=>i(a))}function MA(e,t){const n=dd(()=>[]);return G7(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const Y7=I.createContext(null);function dne(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const a=r>0?1:-1,s=e[i+a];if(!s)return e;const u=e[i],f=s.layout,d=An(f.min,f.max,.5);return a===1&&u.layout.max+n>d||a===-1&&u.layout.min+n<d?RX(e,i,i+a):e}function hne({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},s){const u=dd(()=>W7[t]),f=[],d=I.useRef(!1);ba(!!i,"Reorder.Group must be provided a values prop","reorder-values");const h={axis:n,registerItem:(m,g)=>{const b=f.findIndex(w=>m===w.value);b!==-1?f[b].layout=g[n]:f.push({value:m,layout:g[n]}),f.sort(gne)},updateOrder:(m,g,b)=>{if(d.current)return;const w=dne(f,m,g,b);f!==w&&(d.current=!0,r(w.map(mne).filter(x=>i.indexOf(x)!==-1)))}};return I.useEffect(()=>{d.current=!1}),Qa.jsx(u,{...a,ref:s,ignoreStrict:!0,children:Qa.jsx(Y7.Provider,{value:h,children:e})})}const pne=I.forwardRef(hne);function mne(e){return e.value}function gne(e,t){return e.layout.min-t.layout.min}function FA(e,t=0){return vr(e)?e:H7(t)}function vne({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...s},u){const f=dd(()=>W7[r]),d=I.useContext(Y7),h={x:FA(t.x),y:FA(t.y)},m=fne([h.x,h.y],([x,A])=>x||A?1:"unset");ba(!!d,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:b,updateOrder:w}=d;return Qa.jsx(f,{drag:g,...s,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:a,onDrag:(x,A)=>{const{velocity:C}=A;C[g]&&w(n,h[g].get(),C[g]),i&&i(x,A)},onLayoutMeasure:x=>b(n,x),ref:u,ignoreStrict:!0,children:e})}const yne=I.forwardRef(vne);var jh={exports:{}},bne=jh.exports,RA;function $ne(){return RA||(RA=1,function(e,t){(function(n,r){e.exports=r()})(bne,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var s=i.prototype,u=s.format;a.en.formats=n,s.format=function(f){f===void 0&&(f="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,w,x){var A=x&&x.toUpperCase();return w||g[x]||n[x]||g[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,E,S){return E||S.slice(1)})})}(f,d===void 0?{}:d);return u.call(this,h)}}})}(jh)),jh.exports}var xne=$ne();const wne=ai(xne),kA=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Z7=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?kA(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>kA(i,n,e))}},Cne=(e,t)=>{t.shouldUseNativeValidation&&Z7(e,t);const n={};for(const r in e){const i=it(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Ene(t.names||Object.keys(e),r)){const s=Object.assign({},it(n,r));nn(s,"root",a),nn(n,r,s)}else nn(n,r,a)}return n},Ene=(e,t)=>{const n=OA(t);return e.some(r=>OA(r).match(`^${n}\\.\\d+`))};function OA(e){return e.replace(/\]|\[/g,"")}function Sne(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(s,u){try{var f=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return a.shouldUseNativeValidation&&Z7({},a),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return u(d)}return f&&f.then?f.then(void 0,u):f}(0,function(s){if(!s.inner)throw s;return{values:{},errors:Cne((u=s,f=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(u.inner||[]).reduce(function(d,h){if(d[h.path]||(d[h.path]={message:h.message,type:h.type}),f){var m=d[h.path].types,g=m&&m[h.type];d[h.path]=k2(h.path,f,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),a)};var u,f}))}catch(s){return Promise.reject(s)}}}var vf={exports:{}},Dne=vf.exports,IA;function Ane(){return IA||(IA=1,function(e,t){(function(n,r){r(t,fe.default)})(Dne,function(n,r){function i(U){return U&&typeof U=="object"&&"default"in U?U:{default:U}}var a=i(r),s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ui<"u"?Ui:typeof self<"u"?self:{},u={exports:{}};(function(U,ee){typeof document<"u"&&typeof navigator<"u"&&function(K,k){U.exports=k()}(s,function(){var K="http://www.w3.org/2000/svg",k="",N=!1,te=-999999,j=function(p){N=!!p},ce=function(){return N},ue=function(p){k=p},Ae=function(){return k};function _e(l){return document.createElement(l)}function Le(l,p){var v,$=l.length,T;for(v=0;v<$;v+=1){T=l[v].prototype;for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(p.prototype[P]=T[P])}}function Ye(l){function p(){}return p.prototype=l,p}var Qe=function(){function l(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return l.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].pause()},resume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].resume()},setRate:function(v){var $,T=this.audios.length;for($=0;$<T;$+=1)this.audios[$].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new l}}(),Ue=function(){function l(v,$){var T=0,P=[],q;switch(v){case"int16":case"uint8c":q=1;break;default:q=1.1;break}for(T=0;T<$;T+=1)P.push(q);return P}function p(v,$){return v==="float32"?new Float32Array($):v==="int16"?new Int16Array($):v==="uint8c"?new Uint8ClampedArray($):l(v,$)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:l}();function Ge(l){return Array.apply(null,{length:l})}var Ie=!0,Ne=null,Te="",He=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ht=Math.pow,Ht=Math.sqrt,$t=Math.floor,_t=Math.min,qr=150,Qt=Math.PI/180,be=.5519;function De(l,p,v,$){this.type=l,this.currentTime=p,this.totalTime=v,this.direction=$<0?-1:1}function Me(l,p){this.type=l,this.direction=p<0?-1:1}function Xe(l,p,v,$){this.type=l,this.currentLoop=v,this.totalLoops=p,this.direction=$<0?-1:1}function tt(l,p,v){this.type=l,this.firstFrame=p,this.totalFrames=v}function Je(l,p){this.type=l,this.target=p}function gt(l,p){this.type="renderFrameError",this.nativeError=l,this.currentTime=p}function Rt(l){this.type="configError",this.nativeError=l}var xt=function(){var l=0;return function(){return l+=1,Te+"__lottie_element_"+l}}();function gn(l,p,v){var $,T,P,q,me,J,$e,Ce;switch(q=Math.floor(l*6),me=l*6-q,J=v*(1-p),$e=v*(1-me*p),Ce=v*(1-(1-me)*p),q%6){case 0:$=v,T=Ce,P=J;break;case 1:$=$e,T=v,P=J;break;case 2:$=J,T=v,P=Ce;break;case 3:$=J,T=$e,P=v;break;case 4:$=Ce,T=J,P=v;break;case 5:$=v,T=J,P=$e;break}return[$,T,P]}function yr(l,p,v){var $=Math.max(l,p,v),T=Math.min(l,p,v),P=$-T,q,me=$===0?0:P/$,J=$/255;switch($){case T:q=0;break;case l:q=p-v+P*(p<v?6:0),q/=6*P;break;case p:q=v-l+P*2,q/=6*P;break;case v:q=l-p+P*4,q/=6*P;break}return[q,me,J]}function Ut(l,p){var v=yr(l[0]*255,l[1]*255,l[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),gn(v[0],v[1],v[2])}function Pt(l,p){var v=yr(l[0]*255,l[1]*255,l[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),gn(v[0],v[1],v[2])}function It(l,p){var v=yr(l[0]*255,l[1]*255,l[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),gn(v[0],v[1],v[2])}(function(){var l=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),l[p]=v.length===1?"0"+v:v;return function($,T,P){return $<0&&($=0),T<0&&(T=0),P<0&&(P=0),"#"+l[$]+l[T]+l[P]}})();var qt=function(p){Ie=!!p},fr=function(){return Ie},zr=function(p){Ne=p},si=function(){return Ne},Tr=function(p){qr=p},Ea=function(){return qr},Ao=function(p){Te=p};function bt(l){return document.createElementNS(K,l)}function oi(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oi=function(v){return typeof v}:oi=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},oi(l)}var is=function(){var l=1,p=[],v,$,T={onmessage:function(){},postMessage:function(Q){v({data:Q})}},P={postMessage:function(Q){T.onmessage({data:Q})}};function q(M){if(window.Worker&&window.Blob&&ce()){var Q=new Blob(["var _workerSelf = self; self.onmessage = ",M.toString()],{type:"text/javascript"}),G=URL.createObjectURL(Q);return new Worker(G)}return v=M,T}function me(){$||($=q(function(Q){function G(){function de(Ve,xe){var le,X,ve=Ve.length,je,ke,lt,At;for(X=0;X<ve;X+=1)if(le=Ve[X],"ks"in le&&!le.completed){if(le.completed=!0,le.hasMask){var Ct=le.masksProperties;for(ke=Ct.length,je=0;je<ke;je+=1)if(Ct[je].pt.k.i)H(Ct[je].pt.k);else for(At=Ct[je].pt.k.length,lt=0;lt<At;lt+=1)Ct[je].pt.k[lt].s&&H(Ct[je].pt.k[lt].s[0]),Ct[je].pt.k[lt].e&&H(Ct[je].pt.k[lt].e[0])}le.ty===0?(le.layers=L(le.refId,xe),de(le.layers,xe)):le.ty===4?B(le.shapes):le.ty===5&&ot(le)}}function W(Ve,xe){if(Ve){var le=0,X=Ve.length;for(le=0;le<X;le+=1)Ve[le].t===1&&(Ve[le].data.layers=L(Ve[le].data.refId,xe),de(Ve[le].data.layers,xe))}}function Y(Ve,xe){for(var le=0,X=xe.length;le<X;){if(xe[le].id===Ve)return xe[le];le+=1}return null}function L(Ve,xe){var le=Y(Ve,xe);return le?le.layers.__used?JSON.parse(JSON.stringify(le.layers)):(le.layers.__used=!0,le.layers):null}function B(Ve){var xe,le=Ve.length,X,ve;for(xe=le-1;xe>=0;xe-=1)if(Ve[xe].ty==="sh")if(Ve[xe].ks.k.i)H(Ve[xe].ks.k);else for(ve=Ve[xe].ks.k.length,X=0;X<ve;X+=1)Ve[xe].ks.k[X].s&&H(Ve[xe].ks.k[X].s[0]),Ve[xe].ks.k[X].e&&H(Ve[xe].ks.k[X].e[0]);else Ve[xe].ty==="gr"&&B(Ve[xe].it)}function H(Ve){var xe,le=Ve.i.length;for(xe=0;xe<le;xe+=1)Ve.i[xe][0]+=Ve.v[xe][0],Ve.i[xe][1]+=Ve.v[xe][1],Ve.o[xe][0]+=Ve.v[xe][0],Ve.o[xe][1]+=Ve.v[xe][1]}function ne(Ve,xe){var le=xe?xe.split("."):[100,100,100];return Ve[0]>le[0]?!0:le[0]>Ve[0]?!1:Ve[1]>le[1]?!0:le[1]>Ve[1]?!1:Ve[2]>le[2]?!0:le[2]>Ve[2]?!1:null}var se=function(){var Ve=[4,4,14];function xe(X){var ve=X.t.d;X.t.d={k:[{s:ve,t:0}]}}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===5&&xe(X[ve])}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),pe=function(){var Ve=[4,7,99];return function(xe){if(xe.chars&&!ne(Ve,xe.v)){var le,X=xe.chars.length;for(le=0;le<X;le+=1){var ve=xe.chars[le];ve.data&&ve.data.shapes&&(B(ve.data.shapes),ve.data.ip=0,ve.data.op=99999,ve.data.st=0,ve.data.sr=1,ve.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xe.chars[le].t||(ve.data.shapes.push({ty:"no"}),ve.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Oe=function(){var Ve=[5,7,15];function xe(X){var ve=X.t.p;typeof ve.a=="number"&&(ve.a={a:0,k:ve.a}),typeof ve.p=="number"&&(ve.p={a:0,k:ve.p}),typeof ve.r=="number"&&(ve.r={a:0,k:ve.r})}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===5&&xe(X[ve])}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),nt=function(){var Ve=[4,1,9];function xe(X){var ve,je=X.length,ke,lt;for(ve=0;ve<je;ve+=1)if(X[ve].ty==="gr")xe(X[ve].it);else if(X[ve].ty==="fl"||X[ve].ty==="st")if(X[ve].c.k&&X[ve].c.k[0].i)for(lt=X[ve].c.k.length,ke=0;ke<lt;ke+=1)X[ve].c.k[ke].s&&(X[ve].c.k[ke].s[0]/=255,X[ve].c.k[ke].s[1]/=255,X[ve].c.k[ke].s[2]/=255,X[ve].c.k[ke].s[3]/=255),X[ve].c.k[ke].e&&(X[ve].c.k[ke].e[0]/=255,X[ve].c.k[ke].e[1]/=255,X[ve].c.k[ke].e[2]/=255,X[ve].c.k[ke].e[3]/=255);else X[ve].c.k[0]/=255,X[ve].c.k[1]/=255,X[ve].c.k[2]/=255,X[ve].c.k[3]/=255}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===4&&xe(X[ve].shapes)}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),et=function(){var Ve=[4,4,18];function xe(X){var ve,je=X.length,ke,lt;for(ve=je-1;ve>=0;ve-=1)if(X[ve].ty==="sh")if(X[ve].ks.k.i)X[ve].ks.k.c=X[ve].closed;else for(lt=X[ve].ks.k.length,ke=0;ke<lt;ke+=1)X[ve].ks.k[ke].s&&(X[ve].ks.k[ke].s[0].c=X[ve].closed),X[ve].ks.k[ke].e&&(X[ve].ks.k[ke].e[0].c=X[ve].closed);else X[ve].ty==="gr"&&xe(X[ve].it)}function le(X){var ve,je,ke=X.length,lt,At,Ct,yn;for(je=0;je<ke;je+=1){if(ve=X[je],ve.hasMask){var zt=ve.masksProperties;for(At=zt.length,lt=0;lt<At;lt+=1)if(zt[lt].pt.k.i)zt[lt].pt.k.c=zt[lt].cl;else for(yn=zt[lt].pt.k.length,Ct=0;Ct<yn;Ct+=1)zt[lt].pt.k[Ct].s&&(zt[lt].pt.k[Ct].s[0].c=zt[lt].cl),zt[lt].pt.k[Ct].e&&(zt[lt].pt.k[Ct].e[0].c=zt[lt].cl)}ve.ty===4&&xe(ve.shapes)}}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}();function Be(Ve){Ve.__complete||(nt(Ve),se(Ve),pe(Ve),Oe(Ve),et(Ve),de(Ve.layers,Ve.assets),W(Ve.chars,Ve.assets),Ve.__complete=!0)}function ot(Ve){Ve.t.a.length===0&&"m"in Ve.t.p}var ct={};return ct.completeData=Be,ct.checkColors=nt,ct.checkChars=pe,ct.checkPathProperties=Oe,ct.checkShapes=et,ct.completeLayers=de,ct}if(P.dataManager||(P.dataManager=G()),P.assetLoader||(P.assetLoader=function(){function de(Y){var L=Y.getResponseHeader("content-type");return L&&Y.responseType==="json"&&L.indexOf("json")!==-1||Y.response&&oi(Y.response)==="object"?Y.response:Y.response&&typeof Y.response=="string"?JSON.parse(Y.response):Y.responseText?JSON.parse(Y.responseText):null}function W(Y,L,B,H){var ne,se=new XMLHttpRequest;try{se.responseType="json"}catch{}se.onreadystatechange=function(){if(se.readyState===4)if(se.status===200)ne=de(se),B(ne);else try{ne=de(se),B(ne)}catch(pe){H&&H(pe)}};try{se.open(["G","E","T"].join(""),Y,!0)}catch{se.open(["G","E","T"].join(""),L+"/"+Y,!0)}se.send()}return{load:W}}()),Q.data.type==="loadAnimation")P.assetLoader.load(Q.data.path,Q.data.fullPath,function(de){P.dataManager.completeData(de),P.postMessage({id:Q.data.id,payload:de,status:"success"})},function(){P.postMessage({id:Q.data.id,status:"error"})});else if(Q.data.type==="complete"){var he=Q.data.animation;P.dataManager.completeData(he),P.postMessage({id:Q.data.id,payload:he,status:"success"})}else Q.data.type==="loadData"&&P.assetLoader.load(Q.data.path,Q.data.fullPath,function(de){P.postMessage({id:Q.data.id,payload:de,status:"success"})},function(){P.postMessage({id:Q.data.id,status:"error"})})}),$.onmessage=function(M){var Q=M.data,G=Q.id,he=p[G];p[G]=null,Q.status==="success"?he.onComplete(Q.payload):he.onError&&he.onError()})}function J(M,Q){l+=1;var G="processId_"+l;return p[G]={onComplete:M,onError:Q},G}function $e(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"loadAnimation",path:M,fullPath:window.location.origin+window.location.pathname,id:he})}function Ce(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"loadData",path:M,fullPath:window.location.origin+window.location.pathname,id:he})}function Re(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"complete",animation:M,id:he})}return{loadAnimation:$e,loadData:Ce,completeAnimation:Re}}(),vc=function(){var l=function(){var W=_e("canvas");W.width=1,W.height=1;var Y=W.getContext("2d");return Y.fillStyle="rgba(0,0,0,0)",Y.fillRect(0,0,1,1),W}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function $(W,Y,L){var B="";if(W.e)B=W.p;else if(Y){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),B=Y+H}else B=L,B+=W.u?W.u:"",B+=W.p;return B}function T(W){var Y=0,L=setInterval((function(){var B=W.getBBox();(B.width||Y>500)&&(this._imageLoaded(),clearInterval(L)),Y+=1}).bind(this),50)}function P(W){var Y=$(W,this.assetsPath,this.path),L=bt("image");He?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){B.img=l,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Y),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var B={img:L,assetData:W};return B}function q(W){var Y=$(W,this.assetsPath,this.path),L=_e("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){B.img=l,this._imageLoaded()}).bind(this),!1),L.src=Y;var B={img:L,assetData:W};return B}function me(W){var Y={assetData:W},L=$(W,this.assetsPath,this.path);return is.loadData(L,(function(B){Y.img=B,this._footageLoaded()}).bind(this),(function(){Y.img={},this._footageLoaded()}).bind(this)),Y}function J(W,Y){this.imagesLoadedCb=Y;var L,B=W.length;for(L=0;L<B;L+=1)W[L].layers||(!W[L].t||W[L].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(W[L]))):W[L].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[L]))))}function $e(W){this.path=W||""}function Ce(W){this.assetsPath=W||""}function Re(W){for(var Y=0,L=this.images.length;Y<L;){if(this.images[Y].assetData===W)return this.images[Y].img;Y+=1}return null}function M(){this.imagesLoadedCb=null,this.images.length=0}function Q(){return this.totalImages===this.loadedAssets}function G(){return this.totalFootages===this.loadedFootagesCount}function he(W,Y){W==="svg"?(this._elementHelper=Y,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function de(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=T.bind(this),this.createFootageData=me.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return de.prototype={loadAssets:J,setAssetsPath:Ce,setPath:$e,loadedImages:Q,loadedFootages:G,destroy:M,getAsset:Re,createImgData:q,createImageData:P,imageLoaded:p,footageLoaded:v,setCacheType:he},de}();function ku(){}ku.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var $=this._cbs[p],T=0;T<$.length;T+=1)$[T](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var $=0,T=this._cbs[p].length;$<T;)this._cbs[p][$]===v&&(this._cbs[p].splice($,1),$-=1,T-=1),$+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var yc=function(){function l(p){for(var v=p.split(`\r
76
+ `),$={},T,P=0,q=0;q<v.length;q+=1)T=v[q].split(":"),T.length===2&&($[T[0]]=T[1].trim(),P+=1);if(P===0)throw new Error;return $}return function(p){for(var v=[],$=0;$<p.length;$+=1){var T=p[$],P={time:T.tm,duration:T.dr};try{P.payload=JSON.parse(p[$].cm)}catch{try{P.payload=l(p[$].cm)}catch{P.payload={name:p[$].cm}}}v.push(P)}return v}}(),Ou=function(){function l(p){this.compositions.push(p)}return function(){function p(v){for(var $=0,T=this.compositions.length;$<T;){if(this.compositions[$].data&&this.compositions[$].data.nm===v)return this.compositions[$].prepareFrame&&this.compositions[$].data.xt&&this.compositions[$].prepareFrame(this.currentFrame),this.compositions[$].compInterface;$+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=l,p}}(),To={},Iu=function(p,v){To[p]=v};function Xi(l){return To[l]}function Ji(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ji=function(v){return typeof v}:Ji=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Ji(l)}var yt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=xt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=fr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Ou(),this.imagePreloader=new vc,this.audioController=Qe(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new De("drawnFrame",0,0,0)};Le([ku],yt),yt.prototype.setParams=function(l){(l.wrapper||l.container)&&(this.wrapper=l.wrapper||l.container);var p="svg";l.animType?p=l.animType:l.renderer&&(p=l.renderer);var v=Xi(p);this.renderer=new v(this,l.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,l.loop===""||l.loop===null||l.loop===void 0||l.loop===!0?this.loop=!0:l.loop===!1?this.loop=!1:this.loop=parseInt(l.loop,10),this.autoplay="autoplay"in l?l.autoplay:!0,this.name=l.name?l.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(l,"autoloadSegments")?l.autoloadSegments:!0,this.assetsPath=l.assetsPath,this.initialSegment=l.initialSegment,l.audioFactory&&this.audioController.setAudioFactory(l.audioFactory),l.animationData?this.setupAnimation(l.animationData):l.path&&(l.path.lastIndexOf("\\")!==-1?this.path=l.path.substr(0,l.path.lastIndexOf("\\")+1):this.path=l.path.substr(0,l.path.lastIndexOf("/")+1),this.fileName=l.path.substr(l.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),is.loadAnimation(l.path,this.configAnimation,this.onSetupError))},yt.prototype.onSetupError=function(){this.trigger("data_failed")},yt.prototype.setupAnimation=function(l){is.completeAnimation(l,this.configAnimation)},yt.prototype.setData=function(l,p){p&&Ji(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:l,animationData:p},$=l.attributes;v.path=$.getNamedItem("data-animation-path")?$.getNamedItem("data-animation-path").value:$.getNamedItem("data-bm-path")?$.getNamedItem("data-bm-path").value:$.getNamedItem("bm-path")?$.getNamedItem("bm-path").value:"",v.animType=$.getNamedItem("data-anim-type")?$.getNamedItem("data-anim-type").value:$.getNamedItem("data-bm-type")?$.getNamedItem("data-bm-type").value:$.getNamedItem("bm-type")?$.getNamedItem("bm-type").value:$.getNamedItem("data-bm-renderer")?$.getNamedItem("data-bm-renderer").value:$.getNamedItem("bm-renderer")?$.getNamedItem("bm-renderer").value:"canvas";var T=$.getNamedItem("data-anim-loop")?$.getNamedItem("data-anim-loop").value:$.getNamedItem("data-bm-loop")?$.getNamedItem("data-bm-loop").value:$.getNamedItem("bm-loop")?$.getNamedItem("bm-loop").value:"";T==="false"?v.loop=!1:T==="true"?v.loop=!0:T!==""&&(v.loop=parseInt(T,10));var P=$.getNamedItem("data-anim-autoplay")?$.getNamedItem("data-anim-autoplay").value:$.getNamedItem("data-bm-autoplay")?$.getNamedItem("data-bm-autoplay").value:$.getNamedItem("bm-autoplay")?$.getNamedItem("bm-autoplay").value:!0;v.autoplay=P!=="false",v.name=$.getNamedItem("data-name")?$.getNamedItem("data-name").value:$.getNamedItem("data-bm-name")?$.getNamedItem("data-bm-name").value:$.getNamedItem("bm-name")?$.getNamedItem("bm-name").value:"";var q=$.getNamedItem("data-anim-prerender")?$.getNamedItem("data-anim-prerender").value:$.getNamedItem("data-bm-prerender")?$.getNamedItem("data-bm-prerender").value:$.getNamedItem("bm-prerender")?$.getNamedItem("bm-prerender").value:"";q==="false"&&(v.prerender=!1),this.setParams(v)},yt.prototype.includeLayers=function(l){l.op>this.animationData.op&&(this.animationData.op=l.op,this.totalFrames=Math.floor(l.op-this.animationData.ip));var p=this.animationData.layers,v,$=p.length,T=l.layers,P,q=T.length;for(P=0;P<q;P+=1)for(v=0;v<$;){if(p[v].id===T[P].id){p[v]=T[P];break}v+=1}if((l.chars||l.fonts)&&(this.renderer.globalData.fontManager.addChars(l.chars),this.renderer.globalData.fontManager.addFonts(l.fonts,this.renderer.globalData.defs)),l.assets)for($=l.assets.length,v=0;v<$;v+=1)this.animationData.assets.push(l.assets[v]);this.animationData.__complete=!1,is.completeAnimation(this.animationData,this.onSegmentComplete)},yt.prototype.onSegmentComplete=function(l){this.animationData=l;var p=si();p&&p.initExpressions(this),this.loadNextSegment()},yt.prototype.loadNextSegment=function(){var l=this.animationData.segments;if(!l||l.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=l.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,is.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},yt.prototype.loadSegments=function(){var l=this.animationData.segments;l||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},yt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},yt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},yt.prototype.configAnimation=function(l){if(this.renderer)try{this.animationData=l,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(l),l.assets||(l.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(l.assets),this.markers=yc(l.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},yt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},yt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var l=si();l&&l.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},yt.prototype.resize=function(l,p){var v=typeof l=="number"?l:void 0,$=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,$)},yt.prototype.setSubframe=function(l){this.isSubframeEnabled=!!l},yt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},yt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(l){this.triggerRenderFrameError(l)}},yt.prototype.play=function(l){l&&this.name!==l||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},yt.prototype.pause=function(l){l&&this.name!==l||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},yt.prototype.togglePause=function(l){l&&this.name!==l||(this.isPaused===!0?this.play():this.pause())},yt.prototype.stop=function(l){l&&this.name!==l||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},yt.prototype.getMarkerData=function(l){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===l)return p;return null},yt.prototype.goToAndStop=function(l,p,v){if(!(v&&this.name!==v)){var $=Number(l);if(isNaN($)){var T=this.getMarkerData(l);T&&this.goToAndStop(T.time,!0)}else p?this.setCurrentRawFrameValue(l):this.setCurrentRawFrameValue(l*this.frameModifier);this.pause()}},yt.prototype.goToAndPlay=function(l,p,v){if(!(v&&this.name!==v)){var $=Number(l);if(isNaN($)){var T=this.getMarkerData(l);T&&(T.duration?this.playSegments([T.time,T.time+T.duration],!0):this.goToAndStop(T.time,!0))}else this.goToAndStop($,p,v);this.play()}},yt.prototype.advanceTime=function(l){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+l*this.frameModifier,v=!1;p>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(p>this.totalFrames?p%this.totalFrames:0)||(v=!0,p=this.totalFrames-1):p>=this.totalFrames?(this.playCount+=1,this.checkSegments(p%this.totalFrames)||(this.setCurrentRawFrameValue(p%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(p):p<0?this.checkSegments(p%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+p%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(v=!0,p=0)):this.setCurrentRawFrameValue(p),v&&(this.setCurrentRawFrameValue(p),this.pause(),this.trigger("complete"))}},yt.prototype.adjustSegment=function(l,p){this.playCount=0,l[1]<l[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=l[0]-l[1],this.timeCompleted=this.totalFrames,this.firstFrame=l[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):l[1]>l[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=l[1]-l[0],this.timeCompleted=this.totalFrames,this.firstFrame=l[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},yt.prototype.setSegment=function(l,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<l?v=l:this.currentRawFrame+this.firstFrame>p&&(v=p-l)),this.firstFrame=l,this.totalFrames=p-l,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},yt.prototype.playSegments=function(l,p){if(p&&(this.segments.length=0),Ji(l[0])==="object"){var v,$=l.length;for(v=0;v<$;v+=1)this.segments.push(l[v])}else this.segments.push(l);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},yt.prototype.resetSegments=function(l){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),l&&this.checkSegments(0)},yt.prototype.checkSegments=function(l){return this.segments.length?(this.adjustSegment(this.segments.shift(),l),!0):!1},yt.prototype.destroy=function(l){l&&this.name!==l||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},yt.prototype.setCurrentRawFrameValue=function(l){this.currentRawFrame=l,this.gotoFrame()},yt.prototype.setSpeed=function(l){this.playSpeed=l,this.updaFrameModifier()},yt.prototype.setDirection=function(l){this.playDirection=l<0?-1:1,this.updaFrameModifier()},yt.prototype.setLoop=function(l){this.loop=l},yt.prototype.setVolume=function(l,p){p&&this.name!==p||this.audioController.setVolume(l)},yt.prototype.getVolume=function(){return this.audioController.getVolume()},yt.prototype.mute=function(l){l&&this.name!==l||this.audioController.mute()},yt.prototype.unmute=function(l){l&&this.name!==l||this.audioController.unmute()},yt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},yt.prototype.getPath=function(){return this.path},yt.prototype.getAssetsPath=function(l){var p="";if(l.e)p=l.p;else if(this.assetsPath){var v=l.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=l.u?l.u:"",p+=l.p;return p},yt.prototype.getAssetData=function(l){for(var p=0,v=this.assets.length;p<v;){if(l===this.assets[p].id)return this.assets[p];p+=1}return null},yt.prototype.hide=function(){this.renderer.hide()},yt.prototype.show=function(){this.renderer.show()},yt.prototype.getDuration=function(l){return l?this.totalFrames:this.totalFrames/this.frameRate},yt.prototype.updateDocumentData=function(l,p,v){try{var $=this.renderer.getElementByPath(l);$.updateDocumentData(p,v)}catch{}},yt.prototype.trigger=function(l){if(this._cbs&&this._cbs[l])switch(l){case"enterFrame":this.triggerEvent(l,new De(l,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(l,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(l,new Xe(l,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(l,new Me(l,this.frameMult));break;case"segmentStart":this.triggerEvent(l,new tt(l,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(l,new Je(l,this));break;default:this.triggerEvent(l)}l==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new De(l,this.currentFrame,this.totalFrames,this.frameMult)),l==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Xe(l,this.loop,this.playCount,this.frameMult)),l==="complete"&&this.onComplete&&this.onComplete.call(this,new Me(l,this.frameMult)),l==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new tt(l,this.firstFrame,this.totalFrames)),l==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Je(l,this))},yt.prototype.triggerRenderFrameError=function(l){var p=new gt(l,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},yt.prototype.triggerConfigError=function(l){var p=new Rt(l,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var Cn=function(){var l={},p=[],v=0,$=0,T=0,P=!0,q=!1;function me(xe){for(var le=0,X=xe.target;le<$;)p[le].animation===X&&(p.splice(le,1),le-=1,$-=1,X.isPaused||Re()),le+=1}function J(xe,le){if(!xe)return null;for(var X=0;X<$;){if(p[X].elem===xe&&p[X].elem!==null)return p[X].animation;X+=1}var ve=new yt;return M(ve,xe),ve.setData(xe,le),ve}function $e(){var xe,le=p.length,X=[];for(xe=0;xe<le;xe+=1)X.push(p[xe].animation);return X}function Ce(){T+=1,nt()}function Re(){T-=1}function M(xe,le){xe.addEventListener("destroy",me),xe.addEventListener("_active",Ce),xe.addEventListener("_idle",Re),p.push({elem:le,animation:xe}),$+=1}function Q(xe){var le=new yt;return M(le,null),le.setParams(xe),le}function G(xe,le){var X;for(X=0;X<$;X+=1)p[X].animation.setSpeed(xe,le)}function he(xe,le){var X;for(X=0;X<$;X+=1)p[X].animation.setDirection(xe,le)}function de(xe){var le;for(le=0;le<$;le+=1)p[le].animation.play(xe)}function W(xe){var le=xe-v,X;for(X=0;X<$;X+=1)p[X].animation.advanceTime(le);v=xe,T&&!q?window.requestAnimationFrame(W):P=!0}function Y(xe){v=xe,window.requestAnimationFrame(W)}function L(xe){var le;for(le=0;le<$;le+=1)p[le].animation.pause(xe)}function B(xe,le,X){var ve;for(ve=0;ve<$;ve+=1)p[ve].animation.goToAndStop(xe,le,X)}function H(xe){var le;for(le=0;le<$;le+=1)p[le].animation.stop(xe)}function ne(xe){var le;for(le=0;le<$;le+=1)p[le].animation.togglePause(xe)}function se(xe){var le;for(le=$-1;le>=0;le-=1)p[le].animation.destroy(xe)}function pe(xe,le,X){var ve=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),je,ke=ve.length;for(je=0;je<ke;je+=1)X&&ve[je].setAttribute("data-bm-type",X),J(ve[je],xe);if(le&&ke===0){X||(X="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var At=_e("div");At.style.width="100%",At.style.height="100%",At.setAttribute("data-bm-type",X),lt.appendChild(At),J(At,xe)}}function Oe(){var xe;for(xe=0;xe<$;xe+=1)p[xe].animation.resize()}function nt(){!q&&T&&P&&(window.requestAnimationFrame(Y),P=!1)}function et(){q=!0}function Be(){q=!1,nt()}function ot(xe,le){var X;for(X=0;X<$;X+=1)p[X].animation.setVolume(xe,le)}function ct(xe){var le;for(le=0;le<$;le+=1)p[le].animation.mute(xe)}function Ve(xe){var le;for(le=0;le<$;le+=1)p[le].animation.unmute(xe)}return l.registerAnimation=J,l.loadAnimation=Q,l.setSpeed=G,l.setDirection=he,l.play=de,l.pause=L,l.stop=H,l.togglePause=ne,l.searchAnimations=pe,l.resize=Oe,l.goToAndStop=B,l.destroy=se,l.freeze=et,l.unfreeze=Be,l.setVolume=ot,l.mute=ct,l.unmute=Ve,l.getRegisteredAnimations=$e,l}(),as=function(){var l={};l.getBezierEasing=v;var p={};function v(Y,L,B,H,ne){var se=ne||("bez_"+Y+"_"+L+"_"+B+"_"+H).replace(/\./g,"p");if(p[se])return p[se];var pe=new W([Y,L,B,H]);return p[se]=pe,pe}var $=4,T=.001,P=1e-7,q=10,me=11,J=1/(me-1),$e=typeof Float32Array=="function";function Ce(Y,L){return 1-3*L+3*Y}function Re(Y,L){return 3*L-6*Y}function M(Y){return 3*Y}function Q(Y,L,B){return((Ce(L,B)*Y+Re(L,B))*Y+M(L))*Y}function G(Y,L,B){return 3*Ce(L,B)*Y*Y+2*Re(L,B)*Y+M(L)}function he(Y,L,B,H,ne){var se,pe,Oe=0;do pe=L+(B-L)/2,se=Q(pe,H,ne)-Y,se>0?B=pe:L=pe;while(Math.abs(se)>P&&++Oe<q);return pe}function de(Y,L,B,H){for(var ne=0;ne<$;++ne){var se=G(L,B,H);if(se===0)return L;var pe=Q(L,B,H)-Y;L-=pe/se}return L}function W(Y){this._p=Y,this._mSampleValues=$e?new Float32Array(me):new Array(me),this._precomputed=!1,this.get=this.get.bind(this)}return W.prototype={get:function(L){var B=this._p[0],H=this._p[1],ne=this._p[2],se=this._p[3];return this._precomputed||this._precompute(),B===H&&ne===se?L:L===0?0:L===1?1:Q(this._getTForX(L),H,se)},_precompute:function(){var L=this._p[0],B=this._p[1],H=this._p[2],ne=this._p[3];this._precomputed=!0,(L!==B||H!==ne)&&this._calcSampleValues()},_calcSampleValues:function(){for(var L=this._p[0],B=this._p[2],H=0;H<me;++H)this._mSampleValues[H]=Q(H*J,L,B)},_getTForX:function(L){for(var B=this._p[0],H=this._p[2],ne=this._mSampleValues,se=0,pe=1,Oe=me-1;pe!==Oe&&ne[pe]<=L;++pe)se+=J;--pe;var nt=(L-ne[pe])/(ne[pe+1]-ne[pe]),et=se+nt*J,Be=G(et,B,H);return Be>=T?de(L,et,B,H):Be===0?et:he(L,se,se+J,B,H)}},l}(),Lu=function(){function l(p){return p.concat(Ge(p.length))}return{double:l}}(),br=function(){return function(l,p,v){var $=0,T=l,P=Ge(T),q={newElement:me,release:J};function me(){var $e;return $?($-=1,$e=P[$]):$e=p(),$e}function J($e){$===T&&(P=Lu.double(P),T*=2),v&&v($e),P[$]=$e,$+=1}return q}}(),Vu=function(){function l(){return{addedLength:0,percents:Ue("float32",Ea()),lengths:Ue("float32",Ea())}}return br(8,l)}(),Bu=function(){function l(){return{lengths:[],totalLength:0}}function p(v){var $,T=v.lengths.length;for($=0;$<T;$+=1)Vu.release(v.lengths[$]);v.lengths.length=0}return br(8,l,p)}();function bc(){var l=Math;function p(M,Q,G,he,de,W){var Y=M*he+Q*de+G*W-de*he-W*M-G*Q;return Y>-.001&&Y<.001}function v(M,Q,G,he,de,W,Y,L,B){if(G===0&&W===0&&B===0)return p(M,Q,he,de,Y,L);var H=l.sqrt(l.pow(he-M,2)+l.pow(de-Q,2)+l.pow(W-G,2)),ne=l.sqrt(l.pow(Y-M,2)+l.pow(L-Q,2)+l.pow(B-G,2)),se=l.sqrt(l.pow(Y-he,2)+l.pow(L-de,2)+l.pow(B-W,2)),pe;return H>ne?H>se?pe=H-ne-se:pe=se-ne-H:se>ne?pe=se-ne-H:pe=ne-H-se,pe>-1e-4&&pe<1e-4}var $=function(){return function(M,Q,G,he){var de=Ea(),W,Y,L,B,H,ne=0,se,pe=[],Oe=[],nt=Vu.newElement();for(L=G.length,W=0;W<de;W+=1){for(H=W/(de-1),se=0,Y=0;Y<L;Y+=1)B=ht(1-H,3)*M[Y]+3*ht(1-H,2)*H*G[Y]+3*(1-H)*ht(H,2)*he[Y]+ht(H,3)*Q[Y],pe[Y]=B,Oe[Y]!==null&&(se+=ht(pe[Y]-Oe[Y],2)),Oe[Y]=pe[Y];se&&(se=Ht(se),ne+=se),nt.percents[W]=H,nt.lengths[W]=ne}return nt.addedLength=ne,nt}}();function T(M){var Q=Bu.newElement(),G=M.c,he=M.v,de=M.o,W=M.i,Y,L=M._length,B=Q.lengths,H=0;for(Y=0;Y<L-1;Y+=1)B[Y]=$(he[Y],he[Y+1],de[Y],W[Y+1]),H+=B[Y].addedLength;return G&&L&&(B[Y]=$(he[Y],he[0],de[Y],W[0]),H+=B[Y].addedLength),Q.totalLength=H,Q}function P(M){this.segmentLength=0,this.points=new Array(M)}function q(M,Q){this.partialLength=M,this.point=Q}var me=function(){var M={};return function(Q,G,he,de){var W=(Q[0]+"_"+Q[1]+"_"+G[0]+"_"+G[1]+"_"+he[0]+"_"+he[1]+"_"+de[0]+"_"+de[1]).replace(/\./g,"p");if(!M[W]){var Y=Ea(),L,B,H,ne,se,pe=0,Oe,nt,et=null;Q.length===2&&(Q[0]!==G[0]||Q[1]!==G[1])&&p(Q[0],Q[1],G[0],G[1],Q[0]+he[0],Q[1]+he[1])&&p(Q[0],Q[1],G[0],G[1],G[0]+de[0],G[1]+de[1])&&(Y=2);var Be=new P(Y);for(H=he.length,L=0;L<Y;L+=1){for(nt=Ge(H),se=L/(Y-1),Oe=0,B=0;B<H;B+=1)ne=ht(1-se,3)*Q[B]+3*ht(1-se,2)*se*(Q[B]+he[B])+3*(1-se)*ht(se,2)*(G[B]+de[B])+ht(se,3)*G[B],nt[B]=ne,et!==null&&(Oe+=ht(nt[B]-et[B],2));Oe=Ht(Oe),pe+=Oe,Be.points[L]=new q(Oe,nt),et=nt}Be.segmentLength=pe,M[W]=Be}return M[W]}}();function J(M,Q){var G=Q.percents,he=Q.lengths,de=G.length,W=$t((de-1)*M),Y=M*Q.addedLength,L=0;if(W===de-1||W===0||Y===he[W])return G[W];for(var B=he[W]>Y?-1:1,H=!0;H;)if(he[W]<=Y&&he[W+1]>Y?(L=(Y-he[W])/(he[W+1]-he[W]),H=!1):W+=B,W<0||W>=de-1){if(W===de-1)return G[W];H=!1}return G[W]+(G[W+1]-G[W])*L}function $e(M,Q,G,he,de,W){var Y=J(de,W),L=1-Y,B=l.round((L*L*L*M[0]+(Y*L*L+L*Y*L+L*L*Y)*G[0]+(Y*Y*L+L*Y*Y+Y*L*Y)*he[0]+Y*Y*Y*Q[0])*1e3)/1e3,H=l.round((L*L*L*M[1]+(Y*L*L+L*Y*L+L*L*Y)*G[1]+(Y*Y*L+L*Y*Y+Y*L*Y)*he[1]+Y*Y*Y*Q[1])*1e3)/1e3;return[B,H]}var Ce=Ue("float32",8);function Re(M,Q,G,he,de,W,Y){de<0?de=0:de>1&&(de=1);var L=J(de,Y);W=W>1?1:W;var B=J(W,Y),H,ne=M.length,se=1-L,pe=1-B,Oe=se*se*se,nt=L*se*se*3,et=L*L*se*3,Be=L*L*L,ot=se*se*pe,ct=L*se*pe+se*L*pe+se*se*B,Ve=L*L*pe+se*L*B+L*se*B,xe=L*L*B,le=se*pe*pe,X=L*pe*pe+se*B*pe+se*pe*B,ve=L*B*pe+se*B*B+L*pe*B,je=L*B*B,ke=pe*pe*pe,lt=B*pe*pe+pe*B*pe+pe*pe*B,At=B*B*pe+pe*B*B+B*pe*B,Ct=B*B*B;for(H=0;H<ne;H+=1)Ce[H*4]=l.round((Oe*M[H]+nt*G[H]+et*he[H]+Be*Q[H])*1e3)/1e3,Ce[H*4+1]=l.round((ot*M[H]+ct*G[H]+Ve*he[H]+xe*Q[H])*1e3)/1e3,Ce[H*4+2]=l.round((le*M[H]+X*G[H]+ve*he[H]+je*Q[H])*1e3)/1e3,Ce[H*4+3]=l.round((ke*M[H]+lt*G[H]+At*he[H]+Ct*Q[H])*1e3)/1e3;return Ce}return{getSegmentsLength:T,getNewSegment:Re,getPointInSegment:$e,buildBezierData:me,pointOnLine2D:p,pointOnLine3D:v}}var Wr=bc(),at=function(){var l=te,p=Math.abs;function v(de,W){var Y=this.offsetTime,L;this.propType==="multidimensional"&&(L=Ue("float32",this.pv.length));for(var B=W.lastIndex,H=B,ne=this.keyframes.length-1,se=!0,pe,Oe,nt;se;){if(pe=this.keyframes[H],Oe=this.keyframes[H+1],H===ne-1&&de>=Oe.t-Y){pe.h&&(pe=Oe),B=0;break}if(Oe.t-Y>de){B=H;break}H<ne-1?H+=1:(B=0,se=!1)}nt=this.keyframesMetadata[H]||{};var et,Be,ot,ct,Ve,xe,le=Oe.t-Y,X=pe.t-Y,ve;if(pe.to){nt.bezierData||(nt.bezierData=Wr.buildBezierData(pe.s,Oe.s||pe.e,pe.to,pe.ti));var je=nt.bezierData;if(de>=le||de<X){var ke=de>=le?je.points.length-1:0;for(Be=je.points[ke].point.length,et=0;et<Be;et+=1)L[et]=je.points[ke].point[et]}else{nt.__fnct?xe=nt.__fnct:(xe=as.getBezierEasing(pe.o.x,pe.o.y,pe.i.x,pe.i.y,pe.n).get,nt.__fnct=xe),ot=xe((de-X)/(le-X));var lt=je.segmentLength*ot,At,Ct=W.lastFrame<de&&W._lastKeyframeIndex===H?W._lastAddedLength:0;for(Ve=W.lastFrame<de&&W._lastKeyframeIndex===H?W._lastPoint:0,se=!0,ct=je.points.length;se;){if(Ct+=je.points[Ve].partialLength,lt===0||ot===0||Ve===je.points.length-1){for(Be=je.points[Ve].point.length,et=0;et<Be;et+=1)L[et]=je.points[Ve].point[et];break}else if(lt>=Ct&&lt<Ct+je.points[Ve+1].partialLength){for(At=(lt-Ct)/je.points[Ve+1].partialLength,Be=je.points[Ve].point.length,et=0;et<Be;et+=1)L[et]=je.points[Ve].point[et]+(je.points[Ve+1].point[et]-je.points[Ve].point[et])*At;break}Ve<ct-1?Ve+=1:se=!1}W._lastPoint=Ve,W._lastAddedLength=Ct-je.points[Ve].partialLength,W._lastKeyframeIndex=H}}else{var yn,zt,ur,Zn,Ln;if(ne=pe.s.length,ve=Oe.s||pe.e,this.sh&&pe.h!==1)if(de>=le)L[0]=ve[0],L[1]=ve[1],L[2]=ve[2];else if(de<=X)L[0]=pe.s[0],L[1]=pe.s[1],L[2]=pe.s[2];else{var Nn=P(pe.s),jn=P(ve),pr=(de-X)/(le-X);T(L,$(Nn,jn,pr))}else for(H=0;H<ne;H+=1)pe.h!==1&&(de>=le?ot=1:de<X?ot=0:(pe.o.x.constructor===Array?(nt.__fnct||(nt.__fnct=[]),nt.__fnct[H]?xe=nt.__fnct[H]:(yn=pe.o.x[H]===void 0?pe.o.x[0]:pe.o.x[H],zt=pe.o.y[H]===void 0?pe.o.y[0]:pe.o.y[H],ur=pe.i.x[H]===void 0?pe.i.x[0]:pe.i.x[H],Zn=pe.i.y[H]===void 0?pe.i.y[0]:pe.i.y[H],xe=as.getBezierEasing(yn,zt,ur,Zn).get,nt.__fnct[H]=xe)):nt.__fnct?xe=nt.__fnct:(yn=pe.o.x,zt=pe.o.y,ur=pe.i.x,Zn=pe.i.y,xe=as.getBezierEasing(yn,zt,ur,Zn).get,pe.keyframeMetadata=xe),ot=xe((de-X)/(le-X)))),ve=Oe.s||pe.e,Ln=pe.h===1?pe.s[H]:pe.s[H]+(ve[H]-pe.s[H])*ot,this.propType==="multidimensional"?L[H]=Ln:L=Ln}return W.lastIndex=B,L}function $(de,W,Y){var L=[],B=de[0],H=de[1],ne=de[2],se=de[3],pe=W[0],Oe=W[1],nt=W[2],et=W[3],Be,ot,ct,Ve,xe;return ot=B*pe+H*Oe+ne*nt+se*et,ot<0&&(ot=-ot,pe=-pe,Oe=-Oe,nt=-nt,et=-et),1-ot>1e-6?(Be=Math.acos(ot),ct=Math.sin(Be),Ve=Math.sin((1-Y)*Be)/ct,xe=Math.sin(Y*Be)/ct):(Ve=1-Y,xe=Y),L[0]=Ve*B+xe*pe,L[1]=Ve*H+xe*Oe,L[2]=Ve*ne+xe*nt,L[3]=Ve*se+xe*et,L}function T(de,W){var Y=W[0],L=W[1],B=W[2],H=W[3],ne=Math.atan2(2*L*H-2*Y*B,1-2*L*L-2*B*B),se=Math.asin(2*Y*L+2*B*H),pe=Math.atan2(2*Y*H-2*L*B,1-2*Y*Y-2*B*B);de[0]=ne/Qt,de[1]=se/Qt,de[2]=pe/Qt}function P(de){var W=de[0]*Qt,Y=de[1]*Qt,L=de[2]*Qt,B=Math.cos(W/2),H=Math.cos(Y/2),ne=Math.cos(L/2),se=Math.sin(W/2),pe=Math.sin(Y/2),Oe=Math.sin(L/2),nt=B*H*ne-se*pe*Oe,et=se*pe*ne+B*H*Oe,Be=se*H*ne+B*pe*Oe,ot=B*pe*ne-se*H*Oe;return[et,Be,ot,nt]}function q(){var de=this.comp.renderedFrame-this.offsetTime,W=this.keyframes[0].t-this.offsetTime,Y=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(de===this._caching.lastFrame||this._caching.lastFrame!==l&&(this._caching.lastFrame>=Y&&de>=Y||this._caching.lastFrame<W&&de<W))){this._caching.lastFrame>=de&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var L=this.interpolateValue(de,this._caching);this.pv=L}return this._caching.lastFrame=de,this.pv}function me(de){var W;if(this.propType==="unidimensional")W=de*this.mult,p(this.v-W)>1e-5&&(this.v=W,this._mdf=!0);else for(var Y=0,L=this.v.length;Y<L;)W=de[Y]*this.mult,p(this.v[Y]-W)>1e-5&&(this.v[Y]=W,this._mdf=!0),Y+=1}function J(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var de,W=this.effectsSequence.length,Y=this.kf?this.pv:this.data.k;for(de=0;de<W;de+=1)Y=this.effectsSequence[de](Y);this.setVValue(Y),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function $e(de){this.effectsSequence.push(de),this.container.addDynamicProperty(this)}function Ce(de,W,Y,L){this.propType="unidimensional",this.mult=Y||1,this.data=W,this.v=Y?W.k*Y:W.k,this.pv=W.k,this._mdf=!1,this.elem=de,this.container=L,this.comp=de.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=J,this.setVValue=me,this.addEffect=$e}function Re(de,W,Y,L){this.propType="multidimensional",this.mult=Y||1,this.data=W,this._mdf=!1,this.elem=de,this.container=L,this.comp=de.comp,this.k=!1,this.kf=!1,this.frameId=-1;var B,H=W.k.length;for(this.v=Ue("float32",H),this.pv=Ue("float32",H),this.vel=Ue("float32",H),B=0;B<H;B+=1)this.v[B]=W.k[B]*this.mult,this.pv[B]=W.k[B];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=J,this.setVValue=me,this.addEffect=$e}function M(de,W,Y,L){this.propType="unidimensional",this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=de.data.st,this.frameId=-1,this._caching={lastFrame:l,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=W,this.mult=Y||1,this.elem=de,this.container=L,this.comp=de.comp,this.v=l,this.pv=l,this._isFirstFrame=!0,this.getValue=J,this.setVValue=me,this.interpolateValue=v,this.effectsSequence=[q.bind(this)],this.addEffect=$e}function Q(de,W,Y,L){this.propType="multidimensional";var B,H=W.k.length,ne,se,pe,Oe;for(B=0;B<H-1;B+=1)W.k[B].to&&W.k[B].s&&W.k[B+1]&&W.k[B+1].s&&(ne=W.k[B].s,se=W.k[B+1].s,pe=W.k[B].to,Oe=W.k[B].ti,(ne.length===2&&!(ne[0]===se[0]&&ne[1]===se[1])&&Wr.pointOnLine2D(ne[0],ne[1],se[0],se[1],ne[0]+pe[0],ne[1]+pe[1])&&Wr.pointOnLine2D(ne[0],ne[1],se[0],se[1],se[0]+Oe[0],se[1]+Oe[1])||ne.length===3&&!(ne[0]===se[0]&&ne[1]===se[1]&&ne[2]===se[2])&&Wr.pointOnLine3D(ne[0],ne[1],ne[2],se[0],se[1],se[2],ne[0]+pe[0],ne[1]+pe[1],ne[2]+pe[2])&&Wr.pointOnLine3D(ne[0],ne[1],ne[2],se[0],se[1],se[2],se[0]+Oe[0],se[1]+Oe[1],se[2]+Oe[2]))&&(W.k[B].to=null,W.k[B].ti=null),ne[0]===se[0]&&ne[1]===se[1]&&pe[0]===0&&pe[1]===0&&Oe[0]===0&&Oe[1]===0&&(ne.length===2||ne[2]===se[2]&&pe[2]===0&&Oe[2]===0)&&(W.k[B].to=null,W.k[B].ti=null));this.effectsSequence=[q.bind(this)],this.data=W,this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=de.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Y||1,this.elem=de,this.container=L,this.comp=de.comp,this.getValue=J,this.setVValue=me,this.interpolateValue=v,this.frameId=-1;var nt=W.k[0].s.length;for(this.v=Ue("float32",nt),this.pv=Ue("float32",nt),B=0;B<nt;B+=1)this.v[B]=l,this.pv[B]=l;this._caching={lastFrame:l,lastIndex:0,value:Ue("float32",nt)},this.addEffect=$e}function G(de,W,Y,L,B){var H;if(!W.k.length)H=new Ce(de,W,L,B);else if(typeof W.k[0]=="number")H=new Re(de,W,L,B);else switch(Y){case 0:H=new M(de,W,L,B);break;case 1:H=new Q(de,W,L,B);break}return H.effectsSequence.length&&B.addDynamicProperty(H),H}var he={getProp:G};return he}();function cn(){}cn.prototype={addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&(this.dynamicProperties.push(p),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var p,v=this.dynamicProperties.length;for(p=0;p<v;p+=1)this.dynamicProperties[p].getValue(),this.dynamicProperties[p]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(p){this.container=p,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Qi=function(){function l(){return Ue("float32",2)}return br(8,l)}();function ui(){this.c=!1,this._length=0,this._maxLength=8,this.v=Ge(this._maxLength),this.o=Ge(this._maxLength),this.i=Ge(this._maxLength)}ui.prototype.setPathData=function(l,p){this.c=l,this.setLength(p);for(var v=0;v<p;)this.v[v]=Qi.newElement(),this.o[v]=Qi.newElement(),this.i[v]=Qi.newElement(),v+=1},ui.prototype.setLength=function(l){for(;this._maxLength<l;)this.doubleArrayLength();this._length=l},ui.prototype.doubleArrayLength=function(){this.v=this.v.concat(Ge(this._maxLength)),this.i=this.i.concat(Ge(this._maxLength)),this.o=this.o.concat(Ge(this._maxLength)),this._maxLength*=2},ui.prototype.setXYAt=function(l,p,v,$,T){var P;switch(this._length=Math.max(this._length,$+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":P=this.v;break;case"i":P=this.i;break;case"o":P=this.o;break;default:P=[];break}(!P[$]||P[$]&&!T)&&(P[$]=Qi.newElement()),P[$][0]=l,P[$][1]=p},ui.prototype.setTripleAt=function(l,p,v,$,T,P,q,me){this.setXYAt(l,p,"v",q,me),this.setXYAt(v,$,"o",q,me),this.setXYAt(T,P,"i",q,me)},ui.prototype.reverse=function(){var l=new ui;l.setPathData(this.c,this._length);var p=this.v,v=this.o,$=this.i,T=0;this.c&&(l.setTripleAt(p[0][0],p[0][1],$[0][0],$[0][1],v[0][0],v[0][1],0,!1),T=1);var P=this._length-1,q=this._length,me;for(me=T;me<q;me+=1)l.setTripleAt(p[P][0],p[P][1],$[P][0],$[P][1],v[P][0],v[P][1],me,!1),P-=1;return l},ui.prototype.length=function(){return this._length};var Yn=function(){function l(){return new ui}function p(T){var P=T._length,q;for(q=0;q<P;q+=1)Qi.release(T.v[q]),Qi.release(T.i[q]),Qi.release(T.o[q]),T.v[q]=null,T.i[q]=null,T.o[q]=null;T._length=0,T.c=!1}function v(T){var P=$.newElement(),q,me=T._length===void 0?T.v.length:T._length;for(P.setLength(me),P.c=T.c,q=0;q<me;q+=1)P.setTripleAt(T.v[q][0],T.v[q][1],T.o[q][0],T.o[q][1],T.i[q][0],T.i[q][1],q);return P}var $=br(4,l,p);return $.clone=v,$}();function Po(){this._length=0,this._maxLength=4,this.shapes=Ge(this._maxLength)}Po.prototype.addShape=function(l){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ge(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=l,this._length+=1},Po.prototype.releaseShapes=function(){var l;for(l=0;l<this._length;l+=1)Yn.release(this.shapes[l]);this._length=0};var Sa=function(){var l={newShapeCollection:T,release:P},p=0,v=4,$=Ge(v);function T(){var q;return p?(p-=1,q=$[p]):q=new Po,q}function P(q){var me,J=q._length;for(me=0;me<J;me+=1)Yn.release(q.shapes[me]);q._length=0,p===v&&($=Lu.double($),v*=2),$[p]=q,p+=1}return l}(),li=function(){var l=-999999;function p(W,Y,L){var B=L.lastIndex,H,ne,se,pe,Oe,nt,et,Be,ot,ct=this.keyframes;if(W<ct[0].t-this.offsetTime)H=ct[0].s[0],se=!0,B=0;else if(W>=ct[ct.length-1].t-this.offsetTime)H=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],se=!0;else{for(var Ve=B,xe=ct.length-1,le=!0,X,ve,je;le&&(X=ct[Ve],ve=ct[Ve+1],!(ve.t-this.offsetTime>W));)Ve<xe-1?Ve+=1:le=!1;if(je=this.keyframesMetadata[Ve]||{},se=X.h===1,B=Ve,!se){if(W>=ve.t-this.offsetTime)Be=1;else if(W<X.t-this.offsetTime)Be=0;else{var ke;je.__fnct?ke=je.__fnct:(ke=as.getBezierEasing(X.o.x,X.o.y,X.i.x,X.i.y).get,je.__fnct=ke),Be=ke((W-(X.t-this.offsetTime))/(ve.t-this.offsetTime-(X.t-this.offsetTime)))}ne=ve.s?ve.s[0]:X.e[0]}H=X.s[0]}for(nt=Y._length,et=H.i[0].length,L.lastIndex=B,pe=0;pe<nt;pe+=1)for(Oe=0;Oe<et;Oe+=1)ot=se?H.i[pe][Oe]:H.i[pe][Oe]+(ne.i[pe][Oe]-H.i[pe][Oe])*Be,Y.i[pe][Oe]=ot,ot=se?H.o[pe][Oe]:H.o[pe][Oe]+(ne.o[pe][Oe]-H.o[pe][Oe])*Be,Y.o[pe][Oe]=ot,ot=se?H.v[pe][Oe]:H.v[pe][Oe]+(ne.v[pe][Oe]-H.v[pe][Oe])*Be,Y.v[pe][Oe]=ot}function v(){var W=this.comp.renderedFrame-this.offsetTime,Y=this.keyframes[0].t-this.offsetTime,L=this.keyframes[this.keyframes.length-1].t-this.offsetTime,B=this._caching.lastFrame;return B!==l&&(B<Y&&W<Y||B>L&&W>L)||(this._caching.lastIndex=B<W?this._caching.lastIndex:0,this.interpolateShape(W,this.pv,this._caching)),this._caching.lastFrame=W,this.pv}function $(){this.paths=this.localShapeCollection}function T(W,Y){if(W._length!==Y._length||W.c!==Y.c)return!1;var L,B=W._length;for(L=0;L<B;L+=1)if(W.v[L][0]!==Y.v[L][0]||W.v[L][1]!==Y.v[L][1]||W.o[L][0]!==Y.o[L][0]||W.o[L][1]!==Y.o[L][1]||W.i[L][0]!==Y.i[L][0]||W.i[L][1]!==Y.i[L][1])return!1;return!0}function P(W){T(this.v,W)||(this.v=Yn.clone(W),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function q(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var W;this.kf?W=this.pv:this.data.ks?W=this.data.ks.k:W=this.data.pt.k;var Y,L=this.effectsSequence.length;for(Y=0;Y<L;Y+=1)W=this.effectsSequence[Y](W);this.setVValue(W),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function me(W,Y,L){this.propType="shape",this.comp=W.comp,this.container=W,this.elem=W,this.data=Y,this.k=!1,this.kf=!1,this._mdf=!1;var B=L===3?Y.pt.k:Y.ks.k;this.v=Yn.clone(B),this.pv=Yn.clone(this.v),this.localShapeCollection=Sa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=$,this.effectsSequence=[]}function J(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}me.prototype.interpolateShape=p,me.prototype.getValue=q,me.prototype.setVValue=P,me.prototype.addEffect=J;function $e(W,Y,L){this.propType="shape",this.comp=W.comp,this.elem=W,this.container=W,this.offsetTime=W.data.st,this.keyframes=L===3?Y.pt.k:Y.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var B=this.keyframes[0].s[0].i.length;this.v=Yn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,B),this.pv=Yn.clone(this.v),this.localShapeCollection=Sa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=l,this.reset=$,this._caching={lastFrame:l,lastIndex:0},this.effectsSequence=[v.bind(this)]}$e.prototype.getValue=q,$e.prototype.interpolateShape=p,$e.prototype.setVValue=P,$e.prototype.addEffect=J;var Ce=function(){var W=be;function Y(L,B){this.v=Yn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Sa.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=B.d,this.elem=L,this.comp=L.comp,this.frameId=-1,this.initDynamicPropertyContainer(L),this.p=at.getProp(L,B.p,1,0,this),this.s=at.getProp(L,B.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Y.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var B=this.p.v[0],H=this.p.v[1],ne=this.s.v[0]/2,se=this.s.v[1]/2,pe=this.d!==3,Oe=this.v;Oe.v[0][0]=B,Oe.v[0][1]=H-se,Oe.v[1][0]=pe?B+ne:B-ne,Oe.v[1][1]=H,Oe.v[2][0]=B,Oe.v[2][1]=H+se,Oe.v[3][0]=pe?B-ne:B+ne,Oe.v[3][1]=H,Oe.i[0][0]=pe?B-ne*W:B+ne*W,Oe.i[0][1]=H-se,Oe.i[1][0]=pe?B+ne:B-ne,Oe.i[1][1]=H-se*W,Oe.i[2][0]=pe?B+ne*W:B-ne*W,Oe.i[2][1]=H+se,Oe.i[3][0]=pe?B-ne:B+ne,Oe.i[3][1]=H+se*W,Oe.o[0][0]=pe?B+ne*W:B-ne*W,Oe.o[0][1]=H-se,Oe.o[1][0]=pe?B+ne:B-ne,Oe.o[1][1]=H+se*W,Oe.o[2][0]=pe?B-ne*W:B+ne*W,Oe.o[2][1]=H+se,Oe.o[3][0]=pe?B-ne:B+ne,Oe.o[3][1]=H-se*W}},Le([cn],Y),Y}(),Re=function(){function W(Y,L){this.v=Yn.newElement(),this.v.setPathData(!0,0),this.elem=Y,this.comp=Y.comp,this.data=L,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Y),L.sy===1?(this.ir=at.getProp(Y,L.ir,0,0,this),this.is=at.getProp(Y,L.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(Y,L.pt,0,0,this),this.p=at.getProp(Y,L.p,1,0,this),this.r=at.getProp(Y,L.r,0,Qt,this),this.or=at.getProp(Y,L.or,0,0,this),this.os=at.getProp(Y,L.os,0,.01,this),this.localShapeCollection=Sa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return W.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var L=Math.floor(this.pt.v)*2,B=Math.PI*2/L,H=!0,ne=this.or.v,se=this.ir.v,pe=this.os.v,Oe=this.is.v,nt=2*Math.PI*ne/(L*2),et=2*Math.PI*se/(L*2),Be,ot,ct,Ve,xe=-Math.PI/2;xe+=this.r.v;var le=this.data.d===3?-1:1;for(this.v._length=0,Be=0;Be<L;Be+=1){ot=H?ne:se,ct=H?pe:Oe,Ve=H?nt:et;var X=ot*Math.cos(xe),ve=ot*Math.sin(xe),je=X===0&&ve===0?0:ve/Math.sqrt(X*X+ve*ve),ke=X===0&&ve===0?0:-X/Math.sqrt(X*X+ve*ve);X+=+this.p.v[0],ve+=+this.p.v[1],this.v.setTripleAt(X,ve,X-je*Ve*ct*le,ve-ke*Ve*ct*le,X+je*Ve*ct*le,ve+ke*Ve*ct*le,Be,!0),H=!H,xe+=B*le}},convertPolygonToPath:function(){var L=Math.floor(this.pt.v),B=Math.PI*2/L,H=this.or.v,ne=this.os.v,se=2*Math.PI*H/(L*4),pe,Oe=-Math.PI*.5,nt=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,pe=0;pe<L;pe+=1){var et=H*Math.cos(Oe),Be=H*Math.sin(Oe),ot=et===0&&Be===0?0:Be/Math.sqrt(et*et+Be*Be),ct=et===0&&Be===0?0:-et/Math.sqrt(et*et+Be*Be);et+=+this.p.v[0],Be+=+this.p.v[1],this.v.setTripleAt(et,Be,et-ot*se*ne*nt,Be-ct*se*ne*nt,et+ot*se*ne*nt,Be+ct*se*ne*nt,pe,!0),Oe+=B*nt}this.paths.length=0,this.paths[0]=this.v}},Le([cn],W),W}(),M=function(){function W(Y,L){this.v=Yn.newElement(),this.v.c=!0,this.localShapeCollection=Sa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Y,this.comp=Y.comp,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Y),this.p=at.getProp(Y,L.p,1,0,this),this.s=at.getProp(Y,L.s,1,0,this),this.r=at.getProp(Y,L.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return W.prototype={convertRectToPath:function(){var L=this.p.v[0],B=this.p.v[1],H=this.s.v[0]/2,ne=this.s.v[1]/2,se=_t(H,ne,this.r.v),pe=se*(1-be);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(L+H,B-ne+se,L+H,B-ne+se,L+H,B-ne+pe,0,!0),this.v.setTripleAt(L+H,B+ne-se,L+H,B+ne-pe,L+H,B+ne-se,1,!0),se!==0?(this.v.setTripleAt(L+H-se,B+ne,L+H-se,B+ne,L+H-pe,B+ne,2,!0),this.v.setTripleAt(L-H+se,B+ne,L-H+pe,B+ne,L-H+se,B+ne,3,!0),this.v.setTripleAt(L-H,B+ne-se,L-H,B+ne-se,L-H,B+ne-pe,4,!0),this.v.setTripleAt(L-H,B-ne+se,L-H,B-ne+pe,L-H,B-ne+se,5,!0),this.v.setTripleAt(L-H+se,B-ne,L-H+se,B-ne,L-H+pe,B-ne,6,!0),this.v.setTripleAt(L+H-se,B-ne,L+H-pe,B-ne,L+H-se,B-ne,7,!0)):(this.v.setTripleAt(L-H,B+ne,L-H+pe,B+ne,L-H,B+ne,2),this.v.setTripleAt(L-H,B-ne,L-H,B-ne+pe,L-H,B-ne,3))):(this.v.setTripleAt(L+H,B-ne+se,L+H,B-ne+pe,L+H,B-ne+se,0,!0),se!==0?(this.v.setTripleAt(L+H-se,B-ne,L+H-se,B-ne,L+H-pe,B-ne,1,!0),this.v.setTripleAt(L-H+se,B-ne,L-H+pe,B-ne,L-H+se,B-ne,2,!0),this.v.setTripleAt(L-H,B-ne+se,L-H,B-ne+se,L-H,B-ne+pe,3,!0),this.v.setTripleAt(L-H,B+ne-se,L-H,B+ne-pe,L-H,B+ne-se,4,!0),this.v.setTripleAt(L-H+se,B+ne,L-H+se,B+ne,L-H+pe,B+ne,5,!0),this.v.setTripleAt(L+H-se,B+ne,L+H-pe,B+ne,L+H-se,B+ne,6,!0),this.v.setTripleAt(L+H,B+ne-se,L+H,B+ne-se,L+H,B+ne-pe,7,!0)):(this.v.setTripleAt(L-H,B-ne,L-H+pe,B-ne,L-H,B-ne,1,!0),this.v.setTripleAt(L-H,B+ne,L-H,B+ne-pe,L-H,B+ne,2,!0),this.v.setTripleAt(L+H,B+ne,L+H-pe,B+ne,L+H,B+ne,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:$},Le([cn],W),W}();function Q(W,Y,L){var B;if(L===3||L===4){var H=L===3?Y.pt:Y.ks,ne=H.k;ne.length?B=new $e(W,Y,L):B=new me(W,Y,L)}else L===5?B=new M(W,Y):L===6?B=new Ce(W,Y):L===7&&(B=new Re(W,Y));return B.k&&W.addDynamicProperty(B),B}function G(){return me}function he(){return $e}var de={};return de.getShapeProp=Q,de.getConstructorFunction=G,de.getKeyframedConstructorFunction=he,de}();/*!
77
+ Transformation Matrix v2.0
78
+ (c) Epistemex 2014-2015
79
+ www.epistemex.com
80
+ By Ken Fyrstenberg
81
+ Contributions by leeoniya.
82
+ License: MIT, header required.
83
+ */var kn=function(){var l=Math.cos,p=Math.sin,v=Math.tan,$=Math.round;function T(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function P(le){if(le===0)return this;var X=l(le),ve=p(le);return this._t(X,-ve,0,0,ve,X,0,0,0,0,1,0,0,0,0,1)}function q(le){if(le===0)return this;var X=l(le),ve=p(le);return this._t(1,0,0,0,0,X,-ve,0,0,ve,X,0,0,0,0,1)}function me(le){if(le===0)return this;var X=l(le),ve=p(le);return this._t(X,0,ve,0,0,1,0,0,-ve,0,X,0,0,0,0,1)}function J(le){if(le===0)return this;var X=l(le),ve=p(le);return this._t(X,-ve,0,0,ve,X,0,0,0,0,1,0,0,0,0,1)}function $e(le,X){return this._t(1,X,le,1,0,0)}function Ce(le,X){return this.shear(v(le),v(X))}function Re(le,X){var ve=l(X),je=p(X);return this._t(ve,je,0,0,-je,ve,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,v(le),1,0,0,0,0,1,0,0,0,0,1)._t(ve,-je,0,0,je,ve,0,0,0,0,1,0,0,0,0,1)}function M(le,X,ve){return!ve&&ve!==0&&(ve=1),le===1&&X===1&&ve===1?this:this._t(le,0,0,0,0,X,0,0,0,0,ve,0,0,0,0,1)}function Q(le,X,ve,je,ke,lt,At,Ct,yn,zt,ur,Zn,Ln,Nn,jn,pr){return this.props[0]=le,this.props[1]=X,this.props[2]=ve,this.props[3]=je,this.props[4]=ke,this.props[5]=lt,this.props[6]=At,this.props[7]=Ct,this.props[8]=yn,this.props[9]=zt,this.props[10]=ur,this.props[11]=Zn,this.props[12]=Ln,this.props[13]=Nn,this.props[14]=jn,this.props[15]=pr,this}function G(le,X,ve){return ve=ve||0,le!==0||X!==0||ve!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,le,X,ve,1):this}function he(le,X,ve,je,ke,lt,At,Ct,yn,zt,ur,Zn,Ln,Nn,jn,pr){var ft=this.props;if(le===1&&X===0&&ve===0&&je===0&&ke===0&&lt===1&&At===0&&Ct===0&&yn===0&&zt===0&&ur===1&&Zn===0)return ft[12]=ft[12]*le+ft[15]*Ln,ft[13]=ft[13]*lt+ft[15]*Nn,ft[14]=ft[14]*ur+ft[15]*jn,ft[15]*=pr,this._identityCalculated=!1,this;var ln=ft[0],Gr=ft[1],Ti=ft[2],ra=ft[3],di=ft[4],ia=ft[5],aa=ft[6],Yt=ft[7],bn=ft[8],ka=ft[9],hi=ft[10],sa=ft[11],pi=ft[12],oa=ft[13],Oa=ft[14],Js=ft[15];return ft[0]=ln*le+Gr*ke+Ti*yn+ra*Ln,ft[1]=ln*X+Gr*lt+Ti*zt+ra*Nn,ft[2]=ln*ve+Gr*At+Ti*ur+ra*jn,ft[3]=ln*je+Gr*Ct+Ti*Zn+ra*pr,ft[4]=di*le+ia*ke+aa*yn+Yt*Ln,ft[5]=di*X+ia*lt+aa*zt+Yt*Nn,ft[6]=di*ve+ia*At+aa*ur+Yt*jn,ft[7]=di*je+ia*Ct+aa*Zn+Yt*pr,ft[8]=bn*le+ka*ke+hi*yn+sa*Ln,ft[9]=bn*X+ka*lt+hi*zt+sa*Nn,ft[10]=bn*ve+ka*At+hi*ur+sa*jn,ft[11]=bn*je+ka*Ct+hi*Zn+sa*pr,ft[12]=pi*le+oa*ke+Oa*yn+Js*Ln,ft[13]=pi*X+oa*lt+Oa*zt+Js*Nn,ft[14]=pi*ve+oa*At+Oa*ur+Js*jn,ft[15]=pi*je+oa*Ct+Oa*Zn+Js*pr,this._identityCalculated=!1,this}function de(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function W(le){for(var X=0;X<16;){if(le.props[X]!==this.props[X])return!1;X+=1}return!0}function Y(le){var X;for(X=0;X<16;X+=1)le.props[X]=this.props[X];return le}function L(le){var X;for(X=0;X<16;X+=1)this.props[X]=le[X]}function B(le,X,ve){return{x:le*this.props[0]+X*this.props[4]+ve*this.props[8]+this.props[12],y:le*this.props[1]+X*this.props[5]+ve*this.props[9]+this.props[13],z:le*this.props[2]+X*this.props[6]+ve*this.props[10]+this.props[14]}}function H(le,X,ve){return le*this.props[0]+X*this.props[4]+ve*this.props[8]+this.props[12]}function ne(le,X,ve){return le*this.props[1]+X*this.props[5]+ve*this.props[9]+this.props[13]}function se(le,X,ve){return le*this.props[2]+X*this.props[6]+ve*this.props[10]+this.props[14]}function pe(){var le=this.props[0]*this.props[5]-this.props[1]*this.props[4],X=this.props[5]/le,ve=-this.props[1]/le,je=-this.props[4]/le,ke=this.props[0]/le,lt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/le,At=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/le,Ct=new kn;return Ct.props[0]=X,Ct.props[1]=ve,Ct.props[4]=je,Ct.props[5]=ke,Ct.props[12]=lt,Ct.props[13]=At,Ct}function Oe(le){var X=this.getInverseMatrix();return X.applyToPointArray(le[0],le[1],le[2]||0)}function nt(le){var X,ve=le.length,je=[];for(X=0;X<ve;X+=1)je[X]=Oe(le[X]);return je}function et(le,X,ve){var je=Ue("float32",6);if(this.isIdentity())je[0]=le[0],je[1]=le[1],je[2]=X[0],je[3]=X[1],je[4]=ve[0],je[5]=ve[1];else{var ke=this.props[0],lt=this.props[1],At=this.props[4],Ct=this.props[5],yn=this.props[12],zt=this.props[13];je[0]=le[0]*ke+le[1]*At+yn,je[1]=le[0]*lt+le[1]*Ct+zt,je[2]=X[0]*ke+X[1]*At+yn,je[3]=X[0]*lt+X[1]*Ct+zt,je[4]=ve[0]*ke+ve[1]*At+yn,je[5]=ve[0]*lt+ve[1]*Ct+zt}return je}function Be(le,X,ve){var je;return this.isIdentity()?je=[le,X,ve]:je=[le*this.props[0]+X*this.props[4]+ve*this.props[8]+this.props[12],le*this.props[1]+X*this.props[5]+ve*this.props[9]+this.props[13],le*this.props[2]+X*this.props[6]+ve*this.props[10]+this.props[14]],je}function ot(le,X){if(this.isIdentity())return le+","+X;var ve=this.props;return Math.round((le*ve[0]+X*ve[4]+ve[12])*100)/100+","+Math.round((le*ve[1]+X*ve[5]+ve[13])*100)/100}function ct(){for(var le=0,X=this.props,ve="matrix3d(",je=1e4;le<16;)ve+=$(X[le]*je)/je,ve+=le===15?")":",",le+=1;return ve}function Ve(le){var X=1e4;return le<1e-6&&le>0||le>-1e-6&&le<0?$(le*X)/X:le}function xe(){var le=this.props,X=Ve(le[0]),ve=Ve(le[1]),je=Ve(le[4]),ke=Ve(le[5]),lt=Ve(le[12]),At=Ve(le[13]);return"matrix("+X+","+ve+","+je+","+ke+","+lt+","+At+")"}return function(){this.reset=T,this.rotate=P,this.rotateX=q,this.rotateY=me,this.rotateZ=J,this.skew=Ce,this.skewFromAxis=Re,this.shear=$e,this.scale=M,this.setTransform=Q,this.translate=G,this.transform=he,this.applyToPoint=B,this.applyToX=H,this.applyToY=ne,this.applyToZ=se,this.applyToPointArray=Be,this.applyToTriplePoints=et,this.applyToPointStringified=ot,this.toCSS=ct,this.to2dCSS=xe,this.clone=Y,this.cloneFromProps=L,this.equals=W,this.inversePoints=nt,this.inversePoint=Oe,this.getInverseMatrix=pe,this._t=this.transform,this.isIdentity=de,this._identity=!0,this._identityCalculated=!1,this.props=Ue("float32",16),this.reset()}}();function Ws(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ws=function(v){return typeof v}:Ws=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Ws(l)}var jt={};function $c(l){ue(l)}function Nu(){Cn.searchAnimations()}function xc(l){qt(l)}function _o(l){Ao(l)}function ss(l){return Cn.loadAnimation(l)}function ju(l){if(typeof l=="string")switch(l){case"high":Tr(200);break;default:case"medium":Tr(50);break;case"low":Tr(10);break}else!isNaN(l)&&l>1&&Tr(l)}function Mo(){return typeof navigator<"u"}function wc(l,p){l==="expressions"&&zr(p)}function Cc(l){switch(l){case"propertyFactory":return at;case"shapePropertyFactory":return li;case"matrix":return kn;default:return null}}jt.play=Cn.play,jt.pause=Cn.pause,jt.setLocationHref=$c,jt.togglePause=Cn.togglePause,jt.setSpeed=Cn.setSpeed,jt.setDirection=Cn.setDirection,jt.stop=Cn.stop,jt.searchAnimations=Nu,jt.registerAnimation=Cn.registerAnimation,jt.loadAnimation=ss,jt.setSubframeRendering=xc,jt.resize=Cn.resize,jt.goToAndStop=Cn.goToAndStop,jt.destroy=Cn.destroy,jt.setQuality=ju,jt.inBrowser=Mo,jt.installPlugin=wc,jt.freeze=Cn.freeze,jt.unfreeze=Cn.unfreeze,jt.setVolume=Cn.setVolume,jt.mute=Cn.mute,jt.unmute=Cn.unmute,jt.getRegisteredAnimations=Cn.getRegisteredAnimations,jt.useWebWorker=j,jt.setIDPrefix=_o,jt.__getFactory=Cc,jt.version="5.10.2";function Ec(){document.readyState==="complete"&&(clearInterval(qu),Nu())}function Ku(l){for(var p=Fo.split("&"),v=0;v<p.length;v+=1){var $=p[v].split("=");if(decodeURIComponent($[0])==l)return decodeURIComponent($[1])}return null}var Fo="";{var Ro=document.getElementsByTagName("script"),os=Ro.length-1,Uu=Ro[os]||{src:""};Fo=Uu.src?Uu.src.replace(/^[^\?]+\??/,""):"",Ku("renderer")}var qu=setInterval(Ec,100);try{Ws(ee)!=="object"&&(window.bodymovin=jt)}catch{}var Pr=function(){var l={},p={};l.registerModifier=v,l.getModifier=$;function v(T,P){p[T]||(p[T]=P)}function $(T,P,q){return new p[T](P,q)}return l}();function dr(){}dr.prototype.initModifierProperties=function(){},dr.prototype.addShapeToModifier=function(){},dr.prototype.addShape=function(l){if(!this.closed){l.sh.container.addDynamicProperty(l.sh);var p={shape:l.sh,data:l,localShapeCollection:Sa.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&l.setAsAnimated()}},dr.prototype.init=function(l,p){this.shapes=[],this.elem=l,this.initDynamicPropertyContainer(l),this.initModifierProperties(l,p),this.frameId=te,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},dr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Le([cn],dr);function _r(){}Le([dr],_r),_r.prototype.initModifierProperties=function(l,p){this.s=at.getProp(l,p.s,0,.01,this),this.e=at.getProp(l,p.e,0,.01,this),this.o=at.getProp(l,p.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=p.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},_r.prototype.addShapeToModifier=function(l){l.pathsData=[]},_r.prototype.calculateShapeEdges=function(l,p,v,$,T){var P=[];p<=1?P.push({s:l,e:p}):l>=1?P.push({s:l-1,e:p-1}):(P.push({s:l,e:1}),P.push({s:0,e:p-1}));var q=[],me,J=P.length,$e;for(me=0;me<J;me+=1)if($e=P[me],!($e.e*T<$||$e.s*T>$+v)){var Ce,Re;$e.s*T<=$?Ce=0:Ce=($e.s*T-$)/v,$e.e*T>=$+v?Re=1:Re=($e.e*T-$)/v,q.push([Ce,Re])}return q.length||q.push([0,0]),q},_r.prototype.releasePathsData=function(l){var p,v=l.length;for(p=0;p<v;p+=1)Bu.release(l[p]);return l.length=0,l},_r.prototype.processShapes=function(l){var p,v;if(this._mdf||l){var $=this.o.v%360/360;if($<0&&($+=1),this.s.v>1?p=1+$:this.s.v<0?p=0+$:p=this.s.v+$,this.e.v>1?v=1+$:this.e.v<0?v=0+$:v=this.e.v+$,p>v){var T=p;p=v,v=T}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var P,q,me=this.shapes.length,J,$e,Ce,Re,M,Q=0;if(v===p)for(q=0;q<me;q+=1)this.shapes[q].localShapeCollection.releaseShapes(),this.shapes[q].shape._mdf=!0,this.shapes[q].shape.paths=this.shapes[q].localShapeCollection,this._mdf&&(this.shapes[q].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(q=0;q<me;q+=1)this.shapes[q].pathsData.length=0,this.shapes[q].shape._mdf=!0}else{var G=[],he,de;for(q=0;q<me;q+=1)if(he=this.shapes[q],!he.shape._mdf&&!this._mdf&&!l&&this.m!==2)he.shape.paths=he.localShapeCollection;else{if(P=he.shape.paths,$e=P._length,M=0,!he.shape._mdf&&he.pathsData.length)M=he.totalShapeLength;else{for(Ce=this.releasePathsData(he.pathsData),J=0;J<$e;J+=1)Re=Wr.getSegmentsLength(P.shapes[J]),Ce.push(Re),M+=Re.totalLength;he.totalShapeLength=M,he.pathsData=Ce}Q+=M,he.shape._mdf=!0}var W=p,Y=v,L=0,B;for(q=me-1;q>=0;q-=1)if(he=this.shapes[q],he.shape._mdf){for(de=he.localShapeCollection,de.releaseShapes(),this.m===2&&me>1?(B=this.calculateShapeEdges(p,v,he.totalShapeLength,L,Q),L+=he.totalShapeLength):B=[[W,Y]],$e=B.length,J=0;J<$e;J+=1){W=B[J][0],Y=B[J][1],G.length=0,Y<=1?G.push({s:he.totalShapeLength*W,e:he.totalShapeLength*Y}):W>=1?G.push({s:he.totalShapeLength*(W-1),e:he.totalShapeLength*(Y-1)}):(G.push({s:he.totalShapeLength*W,e:he.totalShapeLength}),G.push({s:0,e:he.totalShapeLength*(Y-1)}));var H=this.addShapes(he,G[0]);if(G[0].s!==G[0].e){if(G.length>1){var ne=he.shape.paths.shapes[he.shape.paths._length-1];if(ne.c){var se=H.pop();this.addPaths(H,de),H=this.addShapes(he,G[1],se)}else this.addPaths(H,de),H=this.addShapes(he,G[1])}this.addPaths(H,de)}}he.shape.paths=de}}},_r.prototype.addPaths=function(l,p){var v,$=l.length;for(v=0;v<$;v+=1)p.addShape(l[v])},_r.prototype.addSegment=function(l,p,v,$,T,P,q){T.setXYAt(p[0],p[1],"o",P),T.setXYAt(v[0],v[1],"i",P+1),q&&T.setXYAt(l[0],l[1],"v",P),T.setXYAt($[0],$[1],"v",P+1)},_r.prototype.addSegmentFromArray=function(l,p,v,$){p.setXYAt(l[1],l[5],"o",v),p.setXYAt(l[2],l[6],"i",v+1),$&&p.setXYAt(l[0],l[4],"v",v),p.setXYAt(l[3],l[7],"v",v+1)},_r.prototype.addShapes=function(l,p,v){var $=l.pathsData,T=l.shape.paths.shapes,P,q=l.shape.paths._length,me,J,$e=0,Ce,Re,M,Q,G=[],he,de=!0;for(v?(Re=v._length,he=v._length):(v=Yn.newElement(),Re=0,he=0),G.push(v),P=0;P<q;P+=1){for(M=$[P].lengths,v.c=T[P].c,J=T[P].c?M.length:M.length+1,me=1;me<J;me+=1)if(Ce=M[me-1],$e+Ce.addedLength<p.s)$e+=Ce.addedLength,v.c=!1;else if($e>p.e){v.c=!1;break}else p.s<=$e&&p.e>=$e+Ce.addedLength?(this.addSegment(T[P].v[me-1],T[P].o[me-1],T[P].i[me],T[P].v[me],v,Re,de),de=!1):(Q=Wr.getNewSegment(T[P].v[me-1],T[P].v[me],T[P].o[me-1],T[P].i[me],(p.s-$e)/Ce.addedLength,(p.e-$e)/Ce.addedLength,M[me-1]),this.addSegmentFromArray(Q,v,Re,de),de=!1,v.c=!1),$e+=Ce.addedLength,Re+=1;if(T[P].c&&M.length){if(Ce=M[me-1],$e<=p.e){var W=M[me-1].addedLength;p.s<=$e&&p.e>=$e+W?(this.addSegment(T[P].v[me-1],T[P].o[me-1],T[P].i[0],T[P].v[0],v,Re,de),de=!1):(Q=Wr.getNewSegment(T[P].v[me-1],T[P].v[0],T[P].o[me-1],T[P].i[0],(p.s-$e)/W,(p.e-$e)/W,M[me-1]),this.addSegmentFromArray(Q,v,Re,de),de=!1,v.c=!1)}else v.c=!1;$e+=Ce.addedLength,Re+=1}if(v._length&&(v.setXYAt(v.v[he][0],v.v[he][1],"i",he),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),$e>p.e)break;P<q-1&&(v=Yn.newElement(),de=!0,G.push(v),Re=0)}return G};function Da(){}Le([dr],Da),Da.prototype.initModifierProperties=function(l,p){this.getValue=this.processKeys,this.amount=at.getProp(l,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Da.prototype.processPath=function(l,p){var v=p/100,$=[0,0],T=l._length,P=0;for(P=0;P<T;P+=1)$[0]+=l.v[P][0],$[1]+=l.v[P][1];$[0]/=T,$[1]/=T;var q=Yn.newElement();q.c=l.c;var me,J,$e,Ce,Re,M;for(P=0;P<T;P+=1)me=l.v[P][0]+($[0]-l.v[P][0])*v,J=l.v[P][1]+($[1]-l.v[P][1])*v,$e=l.o[P][0]+($[0]-l.o[P][0])*-v,Ce=l.o[P][1]+($[1]-l.o[P][1])*-v,Re=l.i[P][0]+($[0]-l.i[P][0])*-v,M=l.i[P][1]+($[1]-l.i[P][1])*-v,q.setTripleAt(me,J,$e,Ce,Re,M,P);return q},Da.prototype.processShapes=function(l){var p,v,$=this.shapes.length,T,P,q=this.amount.v;if(q!==0){var me,J;for(v=0;v<$;v+=1){if(me=this.shapes[v],J=me.localShapeCollection,!(!me.shape._mdf&&!this._mdf&&!l))for(J.releaseShapes(),me.shape._mdf=!0,p=me.shape.paths.shapes,P=me.shape.paths._length,T=0;T<P;T+=1)J.addShape(this.processPath(p[T],q));me.shape.paths=me.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Hs=function(){var l=[0,0];function p(J){var $e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||$e,this.a&&J.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&J.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&J.skewFromAxis(-this.sk.v,this.sa.v),this.r?J.rotate(-this.r.v):J.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?J.translate(this.px.v,this.py.v,-this.pz.v):J.translate(this.px.v,this.py.v,0):J.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function v(J){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||J){var $e;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Ce,Re;if($e=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Ce=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/$e,0),Re=this.p.getValueAtTime(this.p.keyframes[0].t/$e,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Ce=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/$e,0),Re=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/$e,0)):(Ce=this.p.pv,Re=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/$e,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Ce=[],Re=[];var M=this.px,Q=this.py;M._caching.lastFrame+M.offsetTime<=M.keyframes[0].t?(Ce[0]=M.getValueAtTime((M.keyframes[0].t+.01)/$e,0),Ce[1]=Q.getValueAtTime((Q.keyframes[0].t+.01)/$e,0),Re[0]=M.getValueAtTime(M.keyframes[0].t/$e,0),Re[1]=Q.getValueAtTime(Q.keyframes[0].t/$e,0)):M._caching.lastFrame+M.offsetTime>=M.keyframes[M.keyframes.length-1].t?(Ce[0]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/$e,0),Ce[1]=Q.getValueAtTime(Q.keyframes[Q.keyframes.length-1].t/$e,0),Re[0]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/$e,0),Re[1]=Q.getValueAtTime((Q.keyframes[Q.keyframes.length-1].t-.01)/$e,0)):(Ce=[M.pv,Q.pv],Re[0]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/$e,M.offsetTime),Re[1]=Q.getValueAtTime((Q._caching.lastFrame+Q.offsetTime-.01)/$e,Q.offsetTime))}else Re=l,Ce=Re;this.v.rotate(-Math.atan2(Ce[1]-Re[1],Ce[0]-Re[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function $(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function T(){}function P(J){this._addDynamicProperty(J),this.elem.addDynamicProperty(J),this._isDirty=!0}function q(J,$e,Ce){if(this.elem=J,this.frameId=-1,this.propType="transform",this.data=$e,this.v=new kn,this.pre=new kn,this.appliedTransformations=0,this.initDynamicPropertyContainer(Ce||J),$e.p&&$e.p.s?(this.px=at.getProp(J,$e.p.x,0,0,this),this.py=at.getProp(J,$e.p.y,0,0,this),$e.p.z&&(this.pz=at.getProp(J,$e.p.z,0,0,this))):this.p=at.getProp(J,$e.p||{k:[0,0,0]},1,0,this),$e.rx){if(this.rx=at.getProp(J,$e.rx,0,Qt,this),this.ry=at.getProp(J,$e.ry,0,Qt,this),this.rz=at.getProp(J,$e.rz,0,Qt,this),$e.or.k[0].ti){var Re,M=$e.or.k.length;for(Re=0;Re<M;Re+=1)$e.or.k[Re].to=null,$e.or.k[Re].ti=null}this.or=at.getProp(J,$e.or,1,Qt,this),this.or.sh=!0}else this.r=at.getProp(J,$e.r||{k:0},0,Qt,this);$e.sk&&(this.sk=at.getProp(J,$e.sk,0,Qt,this),this.sa=at.getProp(J,$e.sa,0,Qt,this)),this.a=at.getProp(J,$e.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(J,$e.s||{k:[100,100,100]},1,.01,this),$e.o?this.o=at.getProp(J,$e.o,0,.01,J):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}q.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:$,autoOrient:T},Le([cn],q),q.prototype.addDynamicProperty=P,q.prototype._addDynamicProperty=cn.prototype.addDynamicProperty;function me(J,$e,Ce){return new q(J,$e,Ce)}return{getTransformProperty:me}}();function hr(){}Le([dr],hr),hr.prototype.initModifierProperties=function(l,p){this.getValue=this.processKeys,this.c=at.getProp(l,p.c,0,null,this),this.o=at.getProp(l,p.o,0,null,this),this.tr=Hs.getTransformProperty(l,p.tr,this),this.so=at.getProp(l,p.tr.so,0,.01,this),this.eo=at.getProp(l,p.tr.eo,0,.01,this),this.data=p,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new kn,this.rMatrix=new kn,this.sMatrix=new kn,this.tMatrix=new kn,this.matrix=new kn},hr.prototype.applyTransforms=function(l,p,v,$,T,P){var q=P?-1:1,me=$.s.v[0]+(1-$.s.v[0])*(1-T),J=$.s.v[1]+(1-$.s.v[1])*(1-T);l.translate($.p.v[0]*q*T,$.p.v[1]*q*T,$.p.v[2]),p.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),p.rotate(-$.r.v*q*T),p.translate($.a.v[0],$.a.v[1],$.a.v[2]),v.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),v.scale(P?1/me:me,P?1/J:J),v.translate($.a.v[0],$.a.v[1],$.a.v[2])},hr.prototype.init=function(l,p,v,$){for(this.elem=l,this.arr=p,this.pos=v,this.elemsData=$,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(l),this.initModifierProperties(l,p[v]);v>0;)v-=1,this._elements.unshift(p[v]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},hr.prototype.resetElements=function(l){var p,v=l.length;for(p=0;p<v;p+=1)l[p]._processed=!1,l[p].ty==="gr"&&this.resetElements(l[p].it)},hr.prototype.cloneElements=function(l){var p=JSON.parse(JSON.stringify(l));return this.resetElements(p),p},hr.prototype.changeGroupRender=function(l,p){var v,$=l.length;for(v=0;v<$;v+=1)l[v]._render=p,l[v].ty==="gr"&&this.changeGroupRender(l[v].it,p)},hr.prototype.processShapes=function(l){var p,v,$,T,P,q=!1;if(this._mdf||l){var me=Math.ceil(this.c.v);if(this._groups.length<me){for(;this._groups.length<me;){var J={it:this.cloneElements(this._elements),ty:"gr"};J.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,J),this._groups.splice(0,0,J),this._currentCopies+=1}this.elem.reloadShapes(),q=!0}P=0;var $e;for($=0;$<=this._groups.length-1;$+=1){if($e=P<me,this._groups[$]._render=$e,this.changeGroupRender(this._groups[$].it,$e),!$e){var Ce=this.elemsData[$].it,Re=Ce[Ce.length-1];Re.transform.op.v!==0?(Re.transform.op._mdf=!0,Re.transform.op.v=0):Re.transform.op._mdf=!1}P+=1}this._currentCopies=me;var M=this.o.v,Q=M%1,G=M>0?Math.floor(M):Math.ceil(M),he=this.pMatrix.props,de=this.rMatrix.props,W=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Y=0;if(M>0){for(;Y<G;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Y+=1;Q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Q,!1),Y+=Q)}else if(M<0){for(;Y>G;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Y-=1;Q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Q,!0),Y-=Q)}$=this.data.m===1?0:this._currentCopies-1,T=this.data.m===1?1:-1,P=this._currentCopies;for(var L,B;P;){if(p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,B=v.length,p[p.length-1].transform.mProps._mdf=!0,p[p.length-1].transform.op._mdf=!0,p[p.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*($/(this._currentCopies-1)),Y!==0){for(($!==0&&T===1||$!==this._currentCopies-1&&T===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(de[0],de[1],de[2],de[3],de[4],de[5],de[6],de[7],de[8],de[9],de[10],de[11],de[12],de[13],de[14],de[15]),this.matrix.transform(W[0],W[1],W[2],W[3],W[4],W[5],W[6],W[7],W[8],W[9],W[10],W[11],W[12],W[13],W[14],W[15]),this.matrix.transform(he[0],he[1],he[2],he[3],he[4],he[5],he[6],he[7],he[8],he[9],he[10],he[11],he[12],he[13],he[14],he[15]),L=0;L<B;L+=1)v[L]=this.matrix.props[L];this.matrix.reset()}else for(this.matrix.reset(),L=0;L<B;L+=1)v[L]=this.matrix.props[L];Y+=1,P-=1,$+=T}}else for(P=this._currentCopies,$=0,T=1;P;)p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,p[p.length-1].transform.mProps._mdf=!1,p[p.length-1].transform.op._mdf=!1,P-=1,$+=T;return q},hr.prototype.addShape=function(){};function us(){}Le([dr],us),us.prototype.initModifierProperties=function(l,p){this.getValue=this.processKeys,this.rd=at.getProp(l,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},us.prototype.processPath=function(l,p){var v=Yn.newElement();v.c=l.c;var $,T=l._length,P,q,me,J,$e,Ce,Re=0,M,Q,G,he,de,W;for($=0;$<T;$+=1)P=l.v[$],me=l.o[$],q=l.i[$],P[0]===me[0]&&P[1]===me[1]&&P[0]===q[0]&&P[1]===q[1]?($===0||$===T-1)&&!l.c?(v.setTripleAt(P[0],P[1],me[0],me[1],q[0],q[1],Re),Re+=1):($===0?J=l.v[T-1]:J=l.v[$-1],$e=Math.sqrt(Math.pow(P[0]-J[0],2)+Math.pow(P[1]-J[1],2)),Ce=$e?Math.min($e/2,p)/$e:0,de=P[0]+(J[0]-P[0])*Ce,M=de,W=P[1]-(P[1]-J[1])*Ce,Q=W,G=M-(M-P[0])*be,he=Q-(Q-P[1])*be,v.setTripleAt(M,Q,G,he,de,W,Re),Re+=1,$===T-1?J=l.v[0]:J=l.v[$+1],$e=Math.sqrt(Math.pow(P[0]-J[0],2)+Math.pow(P[1]-J[1],2)),Ce=$e?Math.min($e/2,p)/$e:0,G=P[0]+(J[0]-P[0])*Ce,M=G,he=P[1]+(J[1]-P[1])*Ce,Q=he,de=M-(M-P[0])*be,W=Q-(Q-P[1])*be,v.setTripleAt(M,Q,G,he,de,W,Re),Re+=1):(v.setTripleAt(l.v[$][0],l.v[$][1],l.o[$][0],l.o[$][1],l.i[$][0],l.i[$][1],Re),Re+=1);return v},us.prototype.processShapes=function(l){var p,v,$=this.shapes.length,T,P,q=this.rd.v;if(q!==0){var me,J;for(v=0;v<$;v+=1){if(me=this.shapes[v],J=me.localShapeCollection,!(!me.shape._mdf&&!this._mdf&&!l))for(J.releaseShapes(),me.shape._mdf=!0,p=me.shape.paths.shapes,P=me.shape.paths._length,T=0;T<P;T+=1)J.addShape(this.processPath(p[T],q));me.shape.paths=me.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ls(l,p){return Math.abs(l-p)*1e5<=Math.min(Math.abs(l),Math.abs(p))}function Ci(l){return Math.abs(l)<=1e-5}function ci(l,p,v){return l*(1-v)+p*v}function rr(l,p,v){return[ci(l[0],p[0],v),ci(l[1],p[1],v)]}function Ei(l,p,v){if(l===0)return[];var $=p*p-4*l*v;if($<0)return[];var T=-p/(2*l);if($===0)return[T];var P=Math.sqrt($)/(2*l);return[T-P,T+P]}function ko(l,p,v,$){return[-l+3*p-3*v+$,3*l-6*p+3*v,-3*l+3*p,l]}function zu(l){return new dn(l,l,l,l,!1)}function dn(l,p,v,$,T){T&&ea(l,p)&&(p=rr(l,$,1/3)),T&&ea(v,$)&&(v=rr(l,$,2/3));var P=ko(l[0],p[0],v[0],$[0]),q=ko(l[1],p[1],v[1],$[1]);this.a=[P[0],q[0]],this.b=[P[1],q[1]],this.c=[P[2],q[2]],this.d=[P[3],q[3]],this.points=[l,p,v,$]}dn.prototype.point=function(l){return[((this.a[0]*l+this.b[0])*l+this.c[0])*l+this.d[0],((this.a[1]*l+this.b[1])*l+this.c[1])*l+this.d[1]]},dn.prototype.derivative=function(l){return[(3*l*this.a[0]+2*this.b[0])*l+this.c[0],(3*l*this.a[1]+2*this.b[1])*l+this.c[1]]},dn.prototype.tangentAngle=function(l){var p=this.derivative(l);return Math.atan2(p[1],p[0])},dn.prototype.normalAngle=function(l){var p=this.derivative(l);return Math.atan2(p[0],p[1])},dn.prototype.inflectionPoints=function(){var l=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Ci(l))return[];var p=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/l,v=p*p-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/l;if(v<0)return[];var $=Math.sqrt(v);return Ci($)?$>0&&$<1?[p]:[]:[p-$,p+$].filter(function(T){return T>0&&T<1})},dn.prototype.split=function(l){if(l<=0)return[zu(this.points[0]),this];if(l>=1)return[this,zu(this.points[this.points.length-1])];var p=rr(this.points[0],this.points[1],l),v=rr(this.points[1],this.points[2],l),$=rr(this.points[2],this.points[3],l),T=rr(p,v,l),P=rr(v,$,l),q=rr(T,P,l);return[new dn(this.points[0],p,T,q,!0),new dn(q,P,$,this.points[3],!0)]};function Oo(l,p){var v=l.points[0][p],$=l.points[l.points.length-1][p];if(v>$){var T=$;$=v,v=T}for(var P=Ei(3*l.a[p],2*l.b[p],l.c[p]),q=0;q<P.length;q+=1)if(P[q]>0&&P[q]<1){var me=l.point(P[q])[p];me<v?v=me:me>$&&($=me)}return{min:v,max:$}}dn.prototype.bounds=function(){return{x:Oo(this,0),y:Oo(this,1)}},dn.prototype.boundingBox=function(){var l=this.bounds();return{left:l.x.min,right:l.x.max,top:l.y.min,bottom:l.y.max,width:l.x.max-l.x.min,height:l.y.max-l.y.min,cx:(l.x.max+l.x.min)/2,cy:(l.y.max+l.y.min)/2}};function cs(l,p,v){var $=l.boundingBox();return{cx:$.cx,cy:$.cy,width:$.width,height:$.height,bez:l,t:(p+v)/2,t1:p,t2:v}}function Io(l){var p=l.bez.split(.5);return[cs(p[0],l.t1,l.t),cs(p[1],l.t,l.t2)]}function Wu(l,p){return Math.abs(l.cx-p.cx)*2<l.width+p.width&&Math.abs(l.cy-p.cy)*2<l.height+p.height}function Mr(l,p,v,$,T,P){if(Wu(l,p)){if(v>=P||l.width<=$&&l.height<=$&&p.width<=$&&p.height<=$){T.push([l.t,p.t]);return}var q=Io(l),me=Io(p);Mr(q[0],me[0],v+1,$,T,P),Mr(q[0],me[1],v+1,$,T,P),Mr(q[1],me[0],v+1,$,T,P),Mr(q[1],me[1],v+1,$,T,P)}}dn.prototype.intersections=function(l,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var $=[];return Mr(cs(this,0,1),cs(l,0,1),0,p,$,v),$},dn.shapeSegment=function(l,p){var v=(p+1)%l.length();return new dn(l.v[p],l.o[p],l.i[v],l.v[v],!0)},dn.shapeSegmentInverted=function(l,p){var v=(p+1)%l.length();return new dn(l.v[v],l.i[v],l.o[p],l.v[p],!0)};function Lo(l,p){return[l[1]*p[2]-l[2]*p[1],l[2]*p[0]-l[0]*p[2],l[0]*p[1]-l[1]*p[0]]}function Aa(l,p,v,$){var T=[l[0],l[1],1],P=[p[0],p[1],1],q=[v[0],v[1],1],me=[$[0],$[1],1],J=Lo(Lo(T,P),Lo(q,me));return Ci(J[2])?null:[J[0]/J[2],J[1]/J[2]]}function Ta(l,p,v){return[l[0]+Math.cos(p)*v,l[1]-Math.sin(p)*v]}function fs(l,p){return Math.hypot(l[0]-p[0],l[1]-p[1])}function ea(l,p){return ls(l[0],p[0])&&ls(l[1],p[1])}function ds(){}Le([dr],ds),ds.prototype.initModifierProperties=function(l,p){this.getValue=this.processKeys,this.amplitude=at.getProp(l,p.s,0,null,this),this.frequency=at.getProp(l,p.r,0,null,this),this.pointsType=at.getProp(l,p.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Gs(l,p,v,$,T,P,q){var me=v-Math.PI/2,J=v+Math.PI/2,$e=p[0]+Math.cos(v)*$*T,Ce=p[1]-Math.sin(v)*$*T;l.setTripleAt($e,Ce,$e+Math.cos(me)*P,Ce-Math.sin(me)*P,$e+Math.cos(J)*q,Ce-Math.sin(J)*q,l.length())}function Hu(l,p){var v=[p[0]-l[0],p[1]-l[1]],$=-Math.PI*.5,T=[Math.cos($)*v[0]-Math.sin($)*v[1],Math.sin($)*v[0]+Math.cos($)*v[1]];return T}function Sc(l,p){var v=p===0?l.length()-1:p-1,$=(p+1)%l.length(),T=l.v[v],P=l.v[$],q=Hu(T,P);return Math.atan2(0,1)-Math.atan2(q[1],q[0])}function hs(l,p,v,$,T,P,q){var me=Sc(p,v),J=p.v[v%p._length],$e=p.v[v===0?p._length-1:v-1],Ce=p.v[(v+1)%p._length],Re=P===2?Math.sqrt(Math.pow(J[0]-$e[0],2)+Math.pow(J[1]-$e[1],2)):0,M=P===2?Math.sqrt(Math.pow(J[0]-Ce[0],2)+Math.pow(J[1]-Ce[1],2)):0;Gs(l,p.v[v%p._length],me,q,$,M/((T+1)*2),Re/((T+1)*2))}function Dc(l,p,v,$,T,P){for(var q=0;q<$;q+=1){var me=(q+1)/($+1),J=T===2?Math.sqrt(Math.pow(p.points[3][0]-p.points[0][0],2)+Math.pow(p.points[3][1]-p.points[0][1],2)):0,$e=p.normalAngle(me),Ce=p.point(me);Gs(l,Ce,$e,P,v,J/(($+1)*2),J/(($+1)*2)),P=-P}return P}ds.prototype.processPath=function(l,p,v,$){var T=l._length,P=Yn.newElement();if(P.c=l.c,l.c||(T-=1),T===0)return P;var q=-1,me=dn.shapeSegment(l,0);hs(P,l,0,p,v,$,q);for(var J=0;J<T;J+=1)q=Dc(P,me,p,v,$,-q),J===T-1&&!l.c?me=null:me=dn.shapeSegment(l,(J+1)%T),hs(P,l,J+1,p,v,$,q);return P},ds.prototype.processShapes=function(l){var p,v,$=this.shapes.length,T,P,q=this.amplitude.v,me=Math.max(0,Math.round(this.frequency.v)),J=this.pointsType.v;if(q!==0){var $e,Ce;for(v=0;v<$;v+=1){if($e=this.shapes[v],Ce=$e.localShapeCollection,!(!$e.shape._mdf&&!this._mdf&&!l))for(Ce.releaseShapes(),$e.shape._mdf=!0,p=$e.shape.paths.shapes,P=$e.shape.paths._length,T=0;T<P;T+=1)Ce.addShape(this.processPath(p[T],q,me,J));$e.shape.paths=$e.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ps(l,p,v){var $=Math.atan2(p[0]-l[0],p[1]-l[1]);return[Ta(l,$,v),Ta(p,$,v)]}function Gt(l,p){var v,$,T,P,q,me,J;J=ps(l.points[0],l.points[1],p),v=J[0],$=J[1],J=ps(l.points[1],l.points[2],p),T=J[0],P=J[1],J=ps(l.points[2],l.points[3],p),q=J[0],me=J[1];var $e=Aa(v,$,T,P);$e===null&&($e=$);var Ce=Aa(q,me,T,P);return Ce===null&&(Ce=q),new dn(v,$e,Ce,me)}function en(l,p,v,$,T){var P=p.points[3],q=v.points[0];if($===3||ea(P,q))return P;if($===2){var me=-p.tangentAngle(1),J=-v.tangentAngle(0)+Math.PI,$e=Aa(P,Ta(P,me+Math.PI/2,100),q,Ta(q,me+Math.PI/2,100)),Ce=$e?fs($e,P):fs(P,q)/2,Re=Ta(P,me,2*Ce*be);return l.setXYAt(Re[0],Re[1],"o",l.length()-1),Re=Ta(q,J,2*Ce*be),l.setTripleAt(q[0],q[1],q[0],q[1],Re[0],Re[1],l.length()),q}var M=ea(P,p.points[2])?p.points[0]:p.points[2],Q=ea(q,v.points[1])?v.points[3]:v.points[1],G=Aa(M,P,q,Q);return G&&fs(G,P)<T?(l.setTripleAt(G[0],G[1],G[0],G[1],G[0],G[1],l.length()),G):P}function ae(l,p){var v=l.intersections(p);return v.length&&ls(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Fe(l,p){var v=l.slice(),$=p.slice(),T=ae(l[l.length-1],p[0]);return T&&(v[l.length-1]=l[l.length-1].split(T[0])[0],$[0]=p[0].split(T[1])[1]),l.length>1&&p.length>1&&(T=ae(l[0],p[p.length-1]),T)?[[l[0].split(T[0])[0]],[p[p.length-1].split(T[1])[1]]]:[v,$]}function ze(l){for(var p,v=1;v<l.length;v+=1)p=Fe(l[v-1],l[v]),l[v-1]=p[0],l[v]=p[1];return l.length>1&&(p=Fe(l[l.length-1],l[0]),l[l.length-1]=p[0],l[0]=p[1]),l}function pt(l,p){var v=l.inflectionPoints(),$,T,P,q;if(v.length===0)return[Gt(l,p)];if(v.length===1||ls(v[1],1))return P=l.split(v[0]),$=P[0],T=P[1],[Gt($,p),Gt(T,p)];P=l.split(v[0]),$=P[0];var me=(v[1]-v[0])/(1-v[0]);return P=P[1].split(me),q=P[0],T=P[1],[Gt($,p),Gt(q,p),Gt(T,p)]}function vn(){}Le([dr],vn),vn.prototype.initModifierProperties=function(l,p){this.getValue=this.processKeys,this.amount=at.getProp(l,p.a,0,null,this),this.miterLimit=at.getProp(l,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},vn.prototype.processPath=function(l,p,v,$){var T=Yn.newElement();T.c=l.c;var P=l.length();l.c||(P-=1);var q,me,J,$e=[];for(q=0;q<P;q+=1)J=dn.shapeSegment(l,q),$e.push(pt(J,p));if(!l.c)for(q=P-1;q>=0;q-=1)J=dn.shapeSegmentInverted(l,q),$e.push(pt(J,p));$e=ze($e);var Ce=null,Re=null;for(q=0;q<$e.length;q+=1){var M=$e[q];for(Re&&(Ce=en(T,Re,M[0],v,$)),Re=M[M.length-1],me=0;me<M.length;me+=1)J=M[me],Ce&&ea(J.points[0],Ce)?T.setXYAt(J.points[1][0],J.points[1][1],"o",T.length()-1):T.setTripleAt(J.points[0][0],J.points[0][1],J.points[1][0],J.points[1][1],J.points[0][0],J.points[0][1],T.length()),T.setTripleAt(J.points[3][0],J.points[3][1],J.points[3][0],J.points[3][1],J.points[2][0],J.points[2][1],T.length()),Ce=J.points[3]}return $e.length&&en(T,Re,$e[0][0],v,$),T},vn.prototype.processShapes=function(l){var p,v,$=this.shapes.length,T,P,q=this.amount.v,me=this.miterLimit.v,J=this.lineJoin;if(q!==0){var $e,Ce;for(v=0;v<$;v+=1){if($e=this.shapes[v],Ce=$e.localShapeCollection,!(!$e.shape._mdf&&!this._mdf&&!l))for(Ce.releaseShapes(),$e.shape._mdf=!0,p=$e.shape.paths.shapes,P=$e.shape.paths._length,T=0;T<P;T+=1)Ce.addShape(this.processPath(p[T],q,J,me));$e.shape.paths=$e.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function tr(l){for(var p=l.fStyle?l.fStyle.split(" "):[],v="normal",$="normal",T=p.length,P,q=0;q<T;q+=1)switch(P=p[q].toLowerCase(),P){case"italic":$="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200";break}return{style:$,weight:l.fWeight||v}}var ir=function(){var l=5e3,p={w:0,size:0,shapes:[],data:{shapes:[]}},v=[];v=v.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var $=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],T=[65039,8205];function P(B){var H=B.split(","),ne,se=H.length,pe=[];for(ne=0;ne<se;ne+=1)H[ne]!=="sans-serif"&&H[ne]!=="monospace"&&pe.push(H[ne]);return pe.join(",")}function q(B,H){var ne=_e("span");ne.setAttribute("aria-hidden",!0),ne.style.fontFamily=H;var se=_e("span");se.innerText="giItT1WQy@!-/#",ne.style.position="absolute",ne.style.left="-10000px",ne.style.top="-10000px",ne.style.fontSize="300px",ne.style.fontVariant="normal",ne.style.fontStyle="normal",ne.style.fontWeight="normal",ne.style.letterSpacing="0",ne.appendChild(se),document.body.appendChild(ne);var pe=se.offsetWidth;return se.style.fontFamily=P(B)+", "+H,{node:se,w:pe,parent:ne}}function me(){var B,H=this.fonts.length,ne,se,pe=H;for(B=0;B<H;B+=1)this.fonts[B].loaded?pe-=1:this.fonts[B].fOrigin==="n"||this.fonts[B].origin===0?this.fonts[B].loaded=!0:(ne=this.fonts[B].monoCase.node,se=this.fonts[B].monoCase.w,ne.offsetWidth!==se?(pe-=1,this.fonts[B].loaded=!0):(ne=this.fonts[B].sansCase.node,se=this.fonts[B].sansCase.w,ne.offsetWidth!==se&&(pe-=1,this.fonts[B].loaded=!0)),this.fonts[B].loaded&&(this.fonts[B].sansCase.parent.parentNode.removeChild(this.fonts[B].sansCase.parent),this.fonts[B].monoCase.parent.parentNode.removeChild(this.fonts[B].monoCase.parent)));pe!==0&&Date.now()-this.initTime<l?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function J(B,H){var ne=document.body&&H?"svg":"canvas",se,pe=tr(B);if(ne==="svg"){var Oe=bt("text");Oe.style.fontSize="100px",Oe.setAttribute("font-family",B.fFamily),Oe.setAttribute("font-style",pe.style),Oe.setAttribute("font-weight",pe.weight),Oe.textContent="1",B.fClass?(Oe.style.fontFamily="inherit",Oe.setAttribute("class",B.fClass)):Oe.style.fontFamily=B.fFamily,H.appendChild(Oe),se=Oe}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=pe.style+" "+pe.weight+" 100px "+B.fFamily,se=nt}function et(Be){return ne==="svg"?(se.textContent=Be,se.getComputedTextLength()):se.measureText(Be).width}return{measureText:et}}function $e(B,H){if(!B){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=B.list;return}if(!document.body){this.isLoaded=!0,B.list.forEach(function(xe){xe.helper=J(xe),xe.cache={}}),this.fonts=B.list;return}var ne=B.list,se,pe=ne.length,Oe=pe;for(se=0;se<pe;se+=1){var nt=!0,et,Be;if(ne[se].loaded=!1,ne[se].monoCase=q(ne[se].fFamily,"monospace"),ne[se].sansCase=q(ne[se].fFamily,"sans-serif"),!ne[se].fPath)ne[se].loaded=!0,Oe-=1;else if(ne[se].fOrigin==="p"||ne[se].origin===3){if(et=document.querySelectorAll('style[f-forigin="p"][f-family="'+ne[se].fFamily+'"], style[f-origin="3"][f-family="'+ne[se].fFamily+'"]'),et.length>0&&(nt=!1),nt){var ot=_e("style");ot.setAttribute("f-forigin",ne[se].fOrigin),ot.setAttribute("f-origin",ne[se].origin),ot.setAttribute("f-family",ne[se].fFamily),ot.type="text/css",ot.innerText="@font-face {font-family: "+ne[se].fFamily+"; font-style: normal; src: url('"+ne[se].fPath+"');}",H.appendChild(ot)}}else if(ne[se].fOrigin==="g"||ne[se].origin===1){for(et=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Be=0;Be<et.length;Be+=1)et[Be].href.indexOf(ne[se].fPath)!==-1&&(nt=!1);if(nt){var ct=_e("link");ct.setAttribute("f-forigin",ne[se].fOrigin),ct.setAttribute("f-origin",ne[se].origin),ct.type="text/css",ct.rel="stylesheet",ct.href=ne[se].fPath,document.body.appendChild(ct)}}else if(ne[se].fOrigin==="t"||ne[se].origin===2){for(et=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Be=0;Be<et.length;Be+=1)ne[se].fPath===et[Be].src&&(nt=!1);if(nt){var Ve=_e("link");Ve.setAttribute("f-forigin",ne[se].fOrigin),Ve.setAttribute("f-origin",ne[se].origin),Ve.setAttribute("rel","stylesheet"),Ve.setAttribute("href",ne[se].fPath),H.appendChild(Ve)}}ne[se].helper=J(ne[se],H),ne[se].cache={},this.fonts.push(ne[se])}Oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ce(B){if(B){this.chars||(this.chars=[]);var H,ne=B.length,se,pe=this.chars.length,Oe;for(H=0;H<ne;H+=1){for(se=0,Oe=!1;se<pe;)this.chars[se].style===B[H].style&&this.chars[se].fFamily===B[H].fFamily&&this.chars[se].ch===B[H].ch&&(Oe=!0),se+=1;Oe||(this.chars.push(B[H]),pe+=1)}}}function Re(B,H,ne){for(var se=0,pe=this.chars.length;se<pe;){if(this.chars[se].ch===B&&this.chars[se].style===H&&this.chars[se].fFamily===ne)return this.chars[se];se+=1}return(typeof B=="string"&&B.charCodeAt(0)!==13||!B)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",B,H,ne)),p}function M(B,H,ne){var se=this.getFontByName(H),pe=B.charCodeAt(0);if(!se.cache[pe+1]){var Oe=se.helper;if(B===" "){var nt=Oe.measureText("|"+B+"|"),et=Oe.measureText("||");se.cache[pe+1]=(nt-et)/100}else se.cache[pe+1]=Oe.measureText(B)/100}return se.cache[pe+1]*ne}function Q(B){for(var H=0,ne=this.fonts.length;H<ne;){if(this.fonts[H].fName===B)return this.fonts[H];H+=1}return this.fonts[0]}function G(B,H){var ne=B.toString(16)+H.toString(16);return $.indexOf(ne)!==-1}function he(B,H){return H?B===T[0]&&H===T[1]:B===T[1]}function de(B){return v.indexOf(B)!==-1}function W(){this.isLoaded=!0}var Y=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Y.isModifier=G,Y.isZeroWidthJoiner=he,Y.isCombinedCharacter=de;var L={addChars:Ce,addFonts:$e,getCharData:Re,getFontByName:Q,measureText:M,checkLoadedFonts:me,setIsLoaded:W};return Y.prototype=L,Y}();function Bn(){}Bn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(p){this.renderableComponents.indexOf(p)===-1&&this.renderableComponents.push(p)},removeRenderableComponent:function(p){this.renderableComponents.indexOf(p)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(p),1)},prepareRenderableFrame:function(p){this.checkLayerLimits(p)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(p){this.data.ip-this.data.st<=p&&this.data.op-this.data.st>p?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var p,v=this.renderableComponents.length;for(p=0;p<v;p+=1)this.renderableComponents[p].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var En=function(){var l={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(p){return l[p]||""}}();function Si(l,p,v){this.p=at.getProp(p,l.v,0,0,v)}function Di(l,p,v){this.p=at.getProp(p,l.v,0,0,v)}function Vo(l,p,v){this.p=at.getProp(p,l.v,1,0,v)}function Ys(l,p,v){this.p=at.getProp(p,l.v,1,0,v)}function ar(l,p,v){this.p=at.getProp(p,l.v,0,0,v)}function ms(l,p,v){this.p=at.getProp(p,l.v,0,0,v)}function Td(l,p,v){this.p=at.getProp(p,l.v,0,0,v)}function Pd(){this.p={}}function Ac(l,p){var v=l.ef||[];this.effectElements=[];var $,T=v.length,P;for($=0;$<T;$+=1)P=new Zs(v[$],p),this.effectElements.push(P)}function Zs(l,p){this.init(l,p)}Le([cn],Zs),Zs.prototype.getValue=Zs.prototype.iterateDynamicProperties,Zs.prototype.init=function(l,p){this.data=l,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,$=this.data.ef.length,T,P=this.data.ef;for(v=0;v<$;v+=1){switch(T=null,P[v].ty){case 0:T=new Si(P[v],p,this);break;case 1:T=new Di(P[v],p,this);break;case 2:T=new Vo(P[v],p,this);break;case 3:T=new Ys(P[v],p,this);break;case 4:case 7:T=new Td(P[v],p,this);break;case 10:T=new ar(P[v],p,this);break;case 11:T=new ms(P[v],p,this);break;case 5:T=new Ac(P[v],p);break;default:T=new Pd(P[v]);break}T&&this.effectElements.push(T)}};function ta(){}ta.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var p=0,v=this.data.masksProperties.length;p<v;){if(this.data.masksProperties[p].mode!=="n"&&this.data.masksProperties[p].cl!==!1)return!0;p+=1}return!1},initExpressions:function(){},setBlendMode:function(){var p=En(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,$){this.globalData=v,this.comp=$,this.data=p,this.layerId=xt(),this.data.sr||(this.data.sr=1),this.effectsManager=new Ac(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function On(){}On.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var $,T=this.dynamicProperties.length;for($=0;$<T;$+=1)(v||this._isParent&&this.dynamicProperties[$].propType==="transform")&&(this.dynamicProperties[$].getValue(),this.dynamicProperties[$]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Pa(l,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(l.refId),this.footageData=p.imageLoader.getAsset(this.assetData),this.initBaseData(l,p,v)}Pa.prototype.prepareFrame=function(){},Le([Bn,ta,On],Pa),Pa.prototype.getBaseElement=function(){return null},Pa.prototype.renderFrame=function(){},Pa.prototype.destroy=function(){},Pa.prototype.initExpressions=function(){},Pa.prototype.getFootageData=function(){return this.footageData};function fn(l,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(l.refId),this.initBaseData(l,p,v),this._isPlaying=!1,this._canPlay=!1;var $=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio($),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=l.tm?at.getProp(this,l.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,l.au&&l.au.lv?l.au.lv:{k:[100]},1,.01,this)}fn.prototype.prepareFrame=function(l){if(this.prepareRenderableFrame(l,!0),this.prepareProperties(l,!0),this.tm._placeholder)this._currentTime=l/this.data.sr;else{var p=this.tm.v;this._currentTime=p}this._volume=this.lv.v[0];var v=this._volume*this._volumeMultiplier;this._previousVolume!==v&&(this._previousVolume=v,this.audio.volume(v))},Le([Bn,ta,On],fn),fn.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},fn.prototype.show=function(){},fn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},fn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},fn.prototype.resume=function(){this._canPlay=!0},fn.prototype.setRate=function(l){this.audio.rate(l)},fn.prototype.volume=function(l){this._volumeMultiplier=l,this._previousVolume=l*this._volume,this.audio.volume(this._previousVolume)},fn.prototype.getBaseElement=function(){return null},fn.prototype.destroy=function(){},fn.prototype.sourceRectAtTime=function(){},fn.prototype.initExpressions=function(){};function sr(){}sr.prototype.checkLayers=function(l){var p,v=this.layers.length,$;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||($=this.layers[p],$.ip-$.st<=l-this.layers[p].st&&$.op-$.st>l-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},sr.prototype.createItem=function(l){switch(l.ty){case 2:return this.createImage(l);case 0:return this.createComp(l);case 1:return this.createSolid(l);case 3:return this.createNull(l);case 4:return this.createShape(l);case 5:return this.createText(l);case 6:return this.createAudio(l);case 13:return this.createCamera(l);case 15:return this.createFootage(l);default:return this.createNull(l)}},sr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},sr.prototype.createAudio=function(l){return new fn(l,this.globalData,this)},sr.prototype.createFootage=function(l){return new Pa(l,this.globalData,this)},sr.prototype.buildAllItems=function(){var l,p=this.layers.length;for(l=0;l<p;l+=1)this.buildItem(l);this.checkPendingElements()},sr.prototype.includeLayers=function(l){this.completeLayers=!1;var p,v=l.length,$,T=this.layers.length;for(p=0;p<v;p+=1)for($=0;$<T;){if(this.layers[$].id===l[p].id){this.layers[$]=l[p];break}$+=1}},sr.prototype.setProjectInterface=function(l){this.globalData.projectInterface=l},sr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},sr.prototype.buildElementParenting=function(l,p,v){for(var $=this.elements,T=this.layers,P=0,q=T.length;P<q;)T[P].ind==p&&(!$[P]||$[P]===!0?(this.buildItem(P),this.addPendingElement(l)):(v.push($[P]),$[P].setAsParent(),T[P].parent!==void 0?this.buildElementParenting(l,T[P].parent,v):l.setHierarchy(v))),P+=1},sr.prototype.addPendingElement=function(l){this.pendingElements.push(l)},sr.prototype.searchExtraCompositions=function(l){var p,v=l.length;for(p=0;p<v;p+=1)if(l[p].xt){var $=this.createComp(l[p]);$.initExpressions(),this.globalData.projectInterface.registerComposition($)}},sr.prototype.getElementById=function(l){var p,v=this.elements.length;for(p=0;p<v;p+=1)if(this.elements[p].data.ind===l)return this.elements[p];return null},sr.prototype.getElementByPath=function(l){var p=l.shift(),v;if(typeof p=="number")v=this.elements[p];else{var $,T=this.elements.length;for($=0;$<T;$+=1)if(this.elements[$].data.nm===p){v=this.elements[$];break}}return l.length===0?v:v.getElementByPath(l)},sr.prototype.setupGlobalData=function(l,p){this.globalData.fontManager=new ir,this.globalData.fontManager.addChars(l.chars),this.globalData.fontManager.addFonts(l.fonts,p),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=l.fr,this.globalData.nm=l.nm,this.globalData.compSize={w:l.w,h:l.h}};function gs(){}gs.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Hs.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new kn},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var p,v=this.finalTransform.mat,$=0,T=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;$<T;){if(this.hierarchy[$].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}$+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),$=0;$<T;$+=1)p=this.hierarchy[$].finalTransform.mProp.v.props,v.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])}},globalToLocal:function(p){var v=[];v.push(this.finalTransform);for(var $=!0,T=this.comp;$;)T.finalTransform?(T.data.hasMask&&v.splice(0,0,T.finalTransform),T=T.comp):$=!1;var P,q=v.length,me;for(P=0;P<q;P+=1)me=v[P].mat.applyToPointArray(0,0,0),p=[p[0]-me[0],p[1]-me[1],0];return p},mHelper:new kn};function $r(l,p,v){this.data=l,this.element=p,this.globalData=v,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var $=this.globalData.defs,T,P=this.masksProperties?this.masksProperties.length:0;this.viewData=Ge(P),this.solidPath="";var q,me=this.masksProperties,J=0,$e=[],Ce,Re,M=xt(),Q,G,he,de,W="clipPath",Y="clip-path";for(T=0;T<P;T+=1)if((me[T].mode!=="a"&&me[T].mode!=="n"||me[T].inv||me[T].o.k!==100||me[T].o.x)&&(W="mask",Y="mask"),(me[T].mode==="s"||me[T].mode==="i")&&J===0?(Q=bt("rect"),Q.setAttribute("fill","#ffffff"),Q.setAttribute("width",this.element.comp.data.w||0),Q.setAttribute("height",this.element.comp.data.h||0),$e.push(Q)):Q=null,q=bt("path"),me[T].mode==="n")this.viewData[T]={op:at.getProp(this.element,me[T].o,0,.01,this.element),prop:li.getShapeProp(this.element,me[T],3),elem:q,lastPath:""},$.appendChild(q);else{J+=1,q.setAttribute("fill",me[T].mode==="s"?"#000000":"#ffffff"),q.setAttribute("clip-rule","nonzero");var L;if(me[T].x.k!==0?(W="mask",Y="mask",de=at.getProp(this.element,me[T].x,0,null,this.element),L=xt(),G=bt("filter"),G.setAttribute("id",L),he=bt("feMorphology"),he.setAttribute("operator","erode"),he.setAttribute("in","SourceGraphic"),he.setAttribute("radius","0"),G.appendChild(he),$.appendChild(G),q.setAttribute("stroke",me[T].mode==="s"?"#000000":"#ffffff")):(he=null,de=null),this.storedData[T]={elem:q,x:de,expan:he,lastPath:"",lastOperator:"",filterId:L,lastRadius:0},me[T].mode==="i"){Re=$e.length;var B=bt("g");for(Ce=0;Ce<Re;Ce+=1)B.appendChild($e[Ce]);var H=bt("mask");H.setAttribute("mask-type","alpha"),H.setAttribute("id",M+"_"+J),H.appendChild(q),$.appendChild(H),B.setAttribute("mask","url("+Ae()+"#"+M+"_"+J+")"),$e.length=0,$e.push(B)}else $e.push(q);me[T].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[T]={elem:q,lastPath:"",op:at.getProp(this.element,me[T].o,0,.01,this.element),prop:li.getShapeProp(this.element,me[T],3),invRect:Q},this.viewData[T].prop.k||this.drawPath(me[T],this.viewData[T].prop.v,this.viewData[T])}for(this.maskElement=bt(W),P=$e.length,T=0;T<P;T+=1)this.maskElement.appendChild($e[T]);J>0&&(this.maskElement.setAttribute("id",M),this.element.maskedElement.setAttribute(Y,"url("+Ae()+"#"+M+")"),$.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}$r.prototype.getMaskProperty=function(l){return this.viewData[l].prop},$r.prototype.renderFrame=function(l){var p=this.element.finalTransform.mat,v,$=this.masksProperties.length;for(v=0;v<$;v+=1)if((this.viewData[v].prop._mdf||l)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||l)&&this.viewData[v].elem.setAttribute("fill-opacity",this.viewData[v].op.v),this.masksProperties[v].mode!=="n"&&(this.viewData[v].invRect&&(this.element.finalTransform.mProp._mdf||l)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||l))){var T=this.storedData[v].expan;this.storedData[v].x.v<0?(this.storedData[v].lastOperator!=="erode"&&(this.storedData[v].lastOperator="erode",this.storedData[v].elem.setAttribute("filter","url("+Ae()+"#"+this.storedData[v].filterId+")")),T.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},$r.prototype.getMaskelement=function(){return this.maskElement},$r.prototype.createLayerSolidPath=function(){var l="M0,0 ";return l+=" h"+this.globalData.compSize.w,l+=" v"+this.globalData.compSize.h,l+=" h-"+this.globalData.compSize.w,l+=" v-"+this.globalData.compSize.h+" ",l},$r.prototype.drawPath=function(l,p,v){var $=" M"+p.v[0][0]+","+p.v[0][1],T,P;for(P=p._length,T=1;T<P;T+=1)$+=" C"+p.o[T-1][0]+","+p.o[T-1][1]+" "+p.i[T][0]+","+p.i[T][1]+" "+p.v[T][0]+","+p.v[T][1];if(p.c&&P>1&&($+=" C"+p.o[T-1][0]+","+p.o[T-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==$){var q="";v.elem&&(p.c&&(q=l.inv?this.solidPath+$:$),v.elem.setAttribute("d",q)),v.lastPath=$}},$r.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var _a=function(){var l={};l.createFilter=p,l.createAlphaToLuminanceFilter=v;function p($,T){var P=bt("filter");return P.setAttribute("id",$),T!==!0&&(P.setAttribute("filterUnits","objectBoundingBox"),P.setAttribute("x","0%"),P.setAttribute("y","0%"),P.setAttribute("width","100%"),P.setAttribute("height","100%")),P}function v(){var $=bt("feColorMatrix");return $.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),$}return l}(),Gu=function(){var l={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(l.maskType=!1),/firefox/i.test(navigator.userAgent)&&(l.svgLumaHidden=!1),l}(),un={},na="filter_result_";function Yu(l){var p,v="SourceGraphic",$=l.data.ef?l.data.ef.length:0,T=xt(),P=_a.createFilter(T,!0),q=0;this.filters=[];var me;for(p=0;p<$;p+=1){me=null;var J=l.data.ef[p].ty;if(un[J]){var $e=un[J].effect;me=new $e(P,l.effectsManager.effectElements[p],l,na+q,v),v=na+q,un[J].countsAsEffect&&(q+=1)}me&&this.filters.push(me)}q&&(l.globalData.defs.appendChild(P),l.layerElement.setAttribute("filter","url("+Ae()+"#"+T+")")),this.filters.length&&l.addRenderableComponent(this)}Yu.prototype.renderFrame=function(l){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(l)};function Bo(){}Bo.prototype={initRendererElement:function(){this.layerElement=bt("g")},createContainerElements:function(){this.matteElement=bt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=bt("g");v.setAttribute("id",this.layerId),v.appendChild(this.layerElement),p=v,this.globalData.defs.appendChild(v)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),p=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var $=bt("clipPath"),T=bt("path");T.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var P=xt();if($.setAttribute("id",P),$.appendChild(T),this.globalData.defs.appendChild($),this.checkMasks()){var q=bt("g");q.setAttribute("clip-path","url("+Ae()+"#"+P+")"),q.appendChild(this.layerElement),this.transformedElement=q,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Ae()+"#"+P+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new $r(this.data,this,this.globalData),this.renderableEffectsManager=new Yu(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,$,T,P,q;if(p===1||p===3){var me=bt("mask");me.setAttribute("id",v),me.setAttribute("mask-type",p===3?"luminance":"alpha"),P=bt("use"),P.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),me.appendChild(P),this.globalData.defs.appendChild(me),!Gu.maskType&&p===1&&(me.setAttribute("mask-type","luminance"),$=xt(),T=_a.createFilter($),this.globalData.defs.appendChild(T),T.appendChild(_a.createAlphaToLuminanceFilter()),q=bt("g"),q.appendChild(P),me.appendChild(q),q.setAttribute("filter","url("+Ae()+"#"+$+")"))}else if(p===2){var J=bt("mask");J.setAttribute("id",v),J.setAttribute("mask-type","alpha");var $e=bt("g");J.appendChild($e),$=xt(),T=_a.createFilter($);var Ce=bt("feComponentTransfer");Ce.setAttribute("in","SourceGraphic"),T.appendChild(Ce);var Re=bt("feFuncA");Re.setAttribute("type","table"),Re.setAttribute("tableValues","1.0 0.0"),Ce.appendChild(Re),this.globalData.defs.appendChild(T);var M=bt("rect");M.setAttribute("width",this.comp.data.w),M.setAttribute("height",this.comp.data.h),M.setAttribute("x","0"),M.setAttribute("y","0"),M.setAttribute("fill","#ffffff"),M.setAttribute("opacity","0"),$e.setAttribute("filter","url("+Ae()+"#"+$+")"),$e.appendChild(M),P=bt("use"),P.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),$e.appendChild(P),Gu.maskType||(J.setAttribute("mask-type","luminance"),T.appendChild(_a.createAlphaToLuminanceFilter()),q=bt("g"),$e.appendChild(M),q.appendChild(this.layerElement),$e.appendChild(q)),this.globalData.defs.appendChild(J)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+Ae()+"#"+p+")")}};function Ma(){}Ma.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(p){this.hierarchy=p},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function No(){}(function(){var l={initElement:function(v,$,T){this.initFrame(),this.initBaseData(v,$,T),this.initTransform(v,$,T),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var v=this.baseElement||this.layerElement;v.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var v=this.baseElement||this.layerElement;v.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(v){this._mdf=!1,this.prepareRenderableFrame(v),this.prepareProperties(v,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Le([Bn,Ye(l)],No)})();function jo(l,p,v){this.assetData=p.getAssetData(l.refId),this.initElement(l,p,v),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}Le([ta,gs,Bo,Ma,On,No],jo),jo.prototype.createContent=function(){var l=this.globalData.getAssetsPath(this.assetData);this.innerElem=bt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",l),this.layerElement.appendChild(this.innerElem)},jo.prototype.sourceRectAtTime=function(){return this.sourceRect};function Tm(l,p){this.elem=l,this.pos=p}function Tc(){}Tc.prototype={addShapeToModifiers:function(p){var v,$=this.shapeModifiers.length;for(v=0;v<$;v+=1)this.shapeModifiers[v].addShape(p)},isShapeInAnimatedModifiers:function(p){for(var v=0,$=this.shapeModifiers.length;v<$;)if(this.shapeModifiers[v].isAnimatedWithShape(p))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var p,v=this.shapes.length;for(p=0;p<v;p+=1)this.shapes[p].sh.reset();v=this.shapeModifiers.length;var $;for(p=v-1;p>=0&&($=this.shapeModifiers[p].processShapes(this._isFirstFrame),!$);p-=1);}},searchProcessedElement:function(p){for(var v=this.processedElements,$=0,T=v.length;$<T;){if(v[$].elem===p)return v[$].pos;$+=1}return 0},addProcessedElement:function(p,v){for(var $=this.processedElements,T=$.length;T;)if(T-=1,$[T].elem===p){$[T].pos=v;return}$.push(new Tm(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var Ko={1:"butt",2:"round",3:"square"},vs={1:"miter",2:"round",3:"bevel"};function _d(l,p,v){this.caches=[],this.styles=[],this.transformers=l,this.lStr="",this.sh=v,this.lvl=p,this._isAnimated=!!v.k;for(var $=0,T=l.length;$<T;){if(l[$].mProps.dynamicProperties.length){this._isAnimated=!0;break}$+=1}}_d.prototype.setAsAnimated=function(){this._isAnimated=!0};function Pc(l,p){this.data=l,this.type=l.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=l.hd===!0,this.pElem=bt("path"),this.msElem=null}Pc.prototype.reset=function(){this.d="",this._mdf=!1};function Uo(l,p,v,$){this.elem=l,this.frameId=-1,this.dataProps=Ge(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=Ue("float32",p.length?p.length-1:0),this.dashoffset=Ue("float32",1),this.initDynamicPropertyContainer($);var T,P=p.length||0,q;for(T=0;T<P;T+=1)q=at.getProp(l,p[T].v,0,0,this),this.k=q.k||this.k,this.dataProps[T]={n:p[T].n,p:q};this.k||this.getValue(!0),this._isAnimated=this.k}Uo.prototype.getValue=function(l){if(!(this.elem.globalData.frameId===this.frameId&&!l)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||l,this._mdf)){var p=0,v=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),p=0;p<v;p+=1)this.dataProps[p].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[p].p.v:this.dashArray[p]=this.dataProps[p].p.v:this.dashoffset[0]=this.dataProps[p].p.v}},Le([cn],Uo);function Zu(l,p,v){this.initDynamicPropertyContainer(l),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(l,p.o,0,.01,this),this.w=at.getProp(l,p.w,0,null,this),this.d=new Uo(l,p.d||{},"svg",this),this.c=at.getProp(l,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Le([cn],Zu);function Xu(l,p,v){this.initDynamicPropertyContainer(l),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(l,p.o,0,.01,this),this.c=at.getProp(l,p.c,1,255,this),this.style=v}Le([cn],Xu);function _c(l,p,v){this.initDynamicPropertyContainer(l),this.getValue=this.iterateDynamicProperties,this.style=v}Le([cn],_c);function qo(l,p,v){this.data=p,this.c=Ue("uint8c",p.p*4);var $=p.k.k[0].s?p.k.k[0].s.length-p.p*4:p.k.k.length-p.p*4;this.o=Ue("float32",$),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=$,this.initDynamicPropertyContainer(v),this.prop=at.getProp(l,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}qo.prototype.comparePoints=function(l,p){for(var v=0,$=this.o.length/2,T;v<$;){if(T=Math.abs(l[v*4]-l[p*4+v*2]),T>.01)return!1;v+=1}return!0},qo.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var l=0,p=this.data.k.k.length;l<p;){if(!this.comparePoints(this.data.k.k[l].s,this.data.p))return!1;l+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},qo.prototype.getValue=function(l){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||l){var p,v=this.data.p*4,$,T;for(p=0;p<v;p+=1)$=p%4===0?100:255,T=Math.round(this.prop.v[p]*$),this.c[p]!==T&&(this.c[p]=T,this._cmdf=!l);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)$=p%2===0?100:1,T=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==T&&(this.o[p-this.data.p*4]=T,this._omdf=!l);this._mdf=!l}},Le([cn],qo);function Fa(l,p,v){this.initDynamicPropertyContainer(l),this.getValue=this.iterateDynamicProperties,this.initGradientData(l,p,v)}Fa.prototype.initGradientData=function(l,p,v){this.o=at.getProp(l,p.o,0,.01,this),this.s=at.getProp(l,p.s,1,null,this),this.e=at.getProp(l,p.e,1,null,this),this.h=at.getProp(l,p.h||{k:0},0,.01,this),this.a=at.getProp(l,p.a||{k:0},0,Qt,this),this.g=new qo(l,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},Fa.prototype.setGradientData=function(l,p){var v=xt(),$=bt(p.t===1?"linearGradient":"radialGradient");$.setAttribute("id",v),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse");var T=[],P,q,me;for(me=p.g.p*4,q=0;q<me;q+=4)P=bt("stop"),$.appendChild(P),T.push(P);l.setAttribute(p.ty==="gf"?"fill":"stroke","url("+Ae()+"#"+v+")"),this.gf=$,this.cst=T},Fa.prototype.setGradientOpacity=function(l,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,$,T,P=bt("mask"),q=bt("path");P.appendChild(q);var me=xt(),J=xt();P.setAttribute("id",J);var $e=bt(l.t===1?"linearGradient":"radialGradient");$e.setAttribute("id",me),$e.setAttribute("spreadMethod","pad"),$e.setAttribute("gradientUnits","userSpaceOnUse"),T=l.g.k.k[0].s?l.g.k.k[0].s.length:l.g.k.k.length;var Ce=this.stops;for($=l.g.p*4;$<T;$+=2)v=bt("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),$e.appendChild(v),Ce.push(v);q.setAttribute(l.ty==="gf"?"fill":"stroke","url("+Ae()+"#"+me+")"),l.ty==="gs"&&(q.setAttribute("stroke-linecap",Ko[l.lc||2]),q.setAttribute("stroke-linejoin",vs[l.lj||2]),l.lj===1&&q.setAttribute("stroke-miterlimit",l.ml)),this.of=$e,this.ms=P,this.ost=Ce,this.maskId=J,p.msElem=q}},Le([cn],Fa);function Ju(l,p,v){this.initDynamicPropertyContainer(l),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(l,p.w,0,null,this),this.d=new Uo(l,p.d||{},"svg",this),this.initGradientData(l,p,v),this._isAnimated=!!this._isAnimated}Le([Fa,cn],Ju);function Pm(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function Md(l,p,v){this.transform={mProps:l,op:p,container:v},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var xr=function(p,v,$,T){if(v===0)return"";var P=p.o,q=p.i,me=p.v,J,$e=" M"+T.applyToPointStringified(me[0][0],me[0][1]);for(J=1;J<v;J+=1)$e+=" C"+T.applyToPointStringified(P[J-1][0],P[J-1][1])+" "+T.applyToPointStringified(q[J][0],q[J][1])+" "+T.applyToPointStringified(me[J][0],me[J][1]);return $&&v&&($e+=" C"+T.applyToPointStringified(P[J-1][0],P[J-1][1])+" "+T.applyToPointStringified(q[0][0],q[0][1])+" "+T.applyToPointStringified(me[0][0],me[0][1]),$e+="z"),$e},Mc=function(){var l=new kn,p=new kn,v={createRenderFunction:$};function $(Re){switch(Re.ty){case"fl":return me;case"gf":return $e;case"gs":return J;case"st":return Ce;case"sh":case"el":case"rc":case"sr":return q;case"tr":return T;case"no":return P;default:return null}}function T(Re,M,Q){(Q||M.transform.op._mdf)&&M.transform.container.setAttribute("opacity",M.transform.op.v),(Q||M.transform.mProps._mdf)&&M.transform.container.setAttribute("transform",M.transform.mProps.v.to2dCSS())}function P(){}function q(Re,M,Q){var G,he,de,W,Y,L,B=M.styles.length,H=M.lvl,ne,se,pe,Oe,nt;for(L=0;L<B;L+=1){if(W=M.sh._mdf||Q,M.styles[L].lvl<H){for(se=p.reset(),Oe=H-M.styles[L].lvl,nt=M.transformers.length-1;!W&&Oe>0;)W=M.transformers[nt].mProps._mdf||W,Oe-=1,nt-=1;if(W)for(Oe=H-M.styles[L].lvl,nt=M.transformers.length-1;Oe>0;)pe=M.transformers[nt].mProps.v.props,se.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5],pe[6],pe[7],pe[8],pe[9],pe[10],pe[11],pe[12],pe[13],pe[14],pe[15]),Oe-=1,nt-=1}else se=l;if(ne=M.sh.paths,he=ne._length,W){for(de="",G=0;G<he;G+=1)Y=ne.shapes[G],Y&&Y._length&&(de+=xr(Y,Y._length,Y.c,se));M.caches[L]=de}else de=M.caches[L];M.styles[L].d+=Re.hd===!0?"":de,M.styles[L]._mdf=W||M.styles[L]._mdf}}function me(Re,M,Q){var G=M.style;(M.c._mdf||Q)&&G.pElem.setAttribute("fill","rgb("+$t(M.c.v[0])+","+$t(M.c.v[1])+","+$t(M.c.v[2])+")"),(M.o._mdf||Q)&&G.pElem.setAttribute("fill-opacity",M.o.v)}function J(Re,M,Q){$e(Re,M,Q),Ce(Re,M,Q)}function $e(Re,M,Q){var G=M.gf,he=M.g._hasOpacity,de=M.s.v,W=M.e.v;if(M.o._mdf||Q){var Y=Re.ty==="gf"?"fill-opacity":"stroke-opacity";M.style.pElem.setAttribute(Y,M.o.v)}if(M.s._mdf||Q){var L=Re.t===1?"x1":"cx",B=L==="x1"?"y1":"cy";G.setAttribute(L,de[0]),G.setAttribute(B,de[1]),he&&!M.g._collapsable&&(M.of.setAttribute(L,de[0]),M.of.setAttribute(B,de[1]))}var H,ne,se,pe;if(M.g._cmdf||Q){H=M.cst;var Oe=M.g.c;for(se=H.length,ne=0;ne<se;ne+=1)pe=H[ne],pe.setAttribute("offset",Oe[ne*4]+"%"),pe.setAttribute("stop-color","rgb("+Oe[ne*4+1]+","+Oe[ne*4+2]+","+Oe[ne*4+3]+")")}if(he&&(M.g._omdf||Q)){var nt=M.g.o;for(M.g._collapsable?H=M.cst:H=M.ost,se=H.length,ne=0;ne<se;ne+=1)pe=H[ne],M.g._collapsable||pe.setAttribute("offset",nt[ne*2]+"%"),pe.setAttribute("stop-opacity",nt[ne*2+1])}if(Re.t===1)(M.e._mdf||Q)&&(G.setAttribute("x2",W[0]),G.setAttribute("y2",W[1]),he&&!M.g._collapsable&&(M.of.setAttribute("x2",W[0]),M.of.setAttribute("y2",W[1])));else{var et;if((M.s._mdf||M.e._mdf||Q)&&(et=Math.sqrt(Math.pow(de[0]-W[0],2)+Math.pow(de[1]-W[1],2)),G.setAttribute("r",et),he&&!M.g._collapsable&&M.of.setAttribute("r",et)),M.e._mdf||M.h._mdf||M.a._mdf||Q){et||(et=Math.sqrt(Math.pow(de[0]-W[0],2)+Math.pow(de[1]-W[1],2)));var Be=Math.atan2(W[1]-de[1],W[0]-de[0]),ot=M.h.v;ot>=1?ot=.99:ot<=-1&&(ot=-.99);var ct=et*ot,Ve=Math.cos(Be+M.a.v)*ct+de[0],xe=Math.sin(Be+M.a.v)*ct+de[1];G.setAttribute("fx",Ve),G.setAttribute("fy",xe),he&&!M.g._collapsable&&(M.of.setAttribute("fx",Ve),M.of.setAttribute("fy",xe))}}}function Ce(Re,M,Q){var G=M.style,he=M.d;he&&(he._mdf||Q)&&he.dashStr&&(G.pElem.setAttribute("stroke-dasharray",he.dashStr),G.pElem.setAttribute("stroke-dashoffset",he.dashoffset[0])),M.c&&(M.c._mdf||Q)&&G.pElem.setAttribute("stroke","rgb("+$t(M.c.v[0])+","+$t(M.c.v[1])+","+$t(M.c.v[2])+")"),(M.o._mdf||Q)&&G.pElem.setAttribute("stroke-opacity",M.o.v),(M.w._mdf||Q)&&(G.pElem.setAttribute("stroke-width",M.w.v),G.msElem&&G.msElem.setAttribute("stroke-width",M.w.v))}return v}();function hn(l,p,v){this.shapes=[],this.shapesData=l.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(l,p,v),this.prevViewData=[]}Le([ta,gs,Bo,Tc,Ma,On,No],hn),hn.prototype.initSecondaryElement=function(){},hn.prototype.identityMatrix=new kn,hn.prototype.buildExpressionInterface=function(){},hn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},hn.prototype.filterUniqueShapes=function(){var l,p=this.shapes.length,v,$,T=this.stylesList.length,P,q=[],me=!1;for($=0;$<T;$+=1){for(P=this.stylesList[$],me=!1,q.length=0,l=0;l<p;l+=1)v=this.shapes[l],v.styles.indexOf(P)!==-1&&(q.push(v),me=v._isAnimated||me);q.length>1&&me&&this.setShapesAsAnimated(q)}},hn.prototype.setShapesAsAnimated=function(l){var p,v=l.length;for(p=0;p<v;p+=1)l[p].setAsAnimated()},hn.prototype.createStyleElement=function(l,p){var v,$=new Pc(l,p),T=$.pElem;if(l.ty==="st")v=new Zu(this,l,$);else if(l.ty==="fl")v=new Xu(this,l,$);else if(l.ty==="gf"||l.ty==="gs"){var P=l.ty==="gf"?Fa:Ju;v=new P(this,l,$),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),T.setAttribute("mask","url("+Ae()+"#"+v.maskId+")"))}else l.ty==="no"&&(v=new _c(this,l,$));return(l.ty==="st"||l.ty==="gs")&&(T.setAttribute("stroke-linecap",Ko[l.lc||2]),T.setAttribute("stroke-linejoin",vs[l.lj||2]),T.setAttribute("fill-opacity","0"),l.lj===1&&T.setAttribute("stroke-miterlimit",l.ml)),l.r===2&&T.setAttribute("fill-rule","evenodd"),l.ln&&T.setAttribute("id",l.ln),l.cl&&T.setAttribute("class",l.cl),l.bm&&(T.style["mix-blend-mode"]=En(l.bm)),this.stylesList.push($),this.addToAnimatedContents(l,v),v},hn.prototype.createGroupElement=function(l){var p=new Pm;return l.ln&&p.gr.setAttribute("id",l.ln),l.cl&&p.gr.setAttribute("class",l.cl),l.bm&&(p.gr.style["mix-blend-mode"]=En(l.bm)),p},hn.prototype.createTransformElement=function(l,p){var v=Hs.getTransformProperty(this,l,this),$=new Md(v,v.o,p);return this.addToAnimatedContents(l,$),$},hn.prototype.createShapeElement=function(l,p,v){var $=4;l.ty==="rc"?$=5:l.ty==="el"?$=6:l.ty==="sr"&&($=7);var T=li.getShapeProp(this,l,$,this),P=new _d(p,v,T);return this.shapes.push(P),this.addShapeToModifiers(P),this.addToAnimatedContents(l,P),P},hn.prototype.addToAnimatedContents=function(l,p){for(var v=0,$=this.animatedContents.length;v<$;){if(this.animatedContents[v].element===p)return;v+=1}this.animatedContents.push({fn:Mc.createRenderFunction(l),element:p,data:l})},hn.prototype.setElementStyles=function(l){var p=l.styles,v,$=this.stylesList.length;for(v=0;v<$;v+=1)this.stylesList[v].closed||p.push(this.stylesList[v])},hn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var l,p=this.itemsData.length;for(l=0;l<p;l+=1)this.prevViewData[l]=this.itemsData[l];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),p=this.dynamicProperties.length,l=0;l<p;l+=1)this.dynamicProperties[l].getValue();this.renderModifiers()},hn.prototype.searchShapes=function(l,p,v,$,T,P,q){var me=[].concat(P),J,$e=l.length-1,Ce,Re,M=[],Q=[],G,he,de;for(J=$e;J>=0;J-=1){if(de=this.searchProcessedElement(l[J]),de?p[J]=v[de-1]:l[J]._render=q,l[J].ty==="fl"||l[J].ty==="st"||l[J].ty==="gf"||l[J].ty==="gs"||l[J].ty==="no")de?p[J].style.closed=!1:p[J]=this.createStyleElement(l[J],T),l[J]._render&&p[J].style.pElem.parentNode!==$&&$.appendChild(p[J].style.pElem),M.push(p[J].style);else if(l[J].ty==="gr"){if(!de)p[J]=this.createGroupElement(l[J]);else for(Re=p[J].it.length,Ce=0;Ce<Re;Ce+=1)p[J].prevViewData[Ce]=p[J].it[Ce];this.searchShapes(l[J].it,p[J].it,p[J].prevViewData,p[J].gr,T+1,me,q),l[J]._render&&p[J].gr.parentNode!==$&&$.appendChild(p[J].gr)}else l[J].ty==="tr"?(de||(p[J]=this.createTransformElement(l[J],$)),G=p[J].transform,me.push(G)):l[J].ty==="sh"||l[J].ty==="rc"||l[J].ty==="el"||l[J].ty==="sr"?(de||(p[J]=this.createShapeElement(l[J],me,T)),this.setElementStyles(p[J])):l[J].ty==="tm"||l[J].ty==="rd"||l[J].ty==="ms"||l[J].ty==="pb"||l[J].ty==="zz"||l[J].ty==="op"?(de?(he=p[J],he.closed=!1):(he=Pr.getModifier(l[J].ty),he.init(this,l[J]),p[J]=he,this.shapeModifiers.push(he)),Q.push(he)):l[J].ty==="rp"&&(de?(he=p[J],he.closed=!0):(he=Pr.getModifier(l[J].ty),p[J]=he,he.init(this,l,J,p),this.shapeModifiers.push(he),q=!1),Q.push(he));this.addProcessedElement(l[J],J+1)}for($e=M.length,J=0;J<$e;J+=1)M[J].closed=!0;for($e=Q.length,J=0;J<$e;J+=1)Q[J].closed=!0},hn.prototype.renderInnerContent=function(){this.renderModifiers();var l,p=this.stylesList.length;for(l=0;l<p;l+=1)this.stylesList[l].reset();for(this.renderShape(),l=0;l<p;l+=1)(this.stylesList[l]._mdf||this._isFirstFrame)&&(this.stylesList[l].msElem&&(this.stylesList[l].msElem.setAttribute("d",this.stylesList[l].d),this.stylesList[l].d="M0 0"+this.stylesList[l].d),this.stylesList[l].pElem.setAttribute("d",this.stylesList[l].d||"M0 0"))},hn.prototype.renderShape=function(){var l,p=this.animatedContents.length,v;for(l=0;l<p;l+=1)v=this.animatedContents[l],(this._isFirstFrame||v.element._isAnimated)&&v.data!==!0&&v.fn(v.data,v.element,this._isFirstFrame)},hn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Qu(l,p,v,$,T,P){this.o=l,this.sw=p,this.sc=v,this.fc=$,this.m=T,this.p=P,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!$,m:!0,p:!0}}Qu.prototype.update=function(l,p,v,$,T,P){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var q=!1;return this.o!==l&&(this.o=l,this._mdf.o=!0,q=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,q=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,q=!0),this.fc!==$&&(this.fc=$,this._mdf.fc=!0,q=!0),this.m!==T&&(this.m=T,this._mdf.m=!0,q=!0),P.length&&(this.p[0]!==P[0]||this.p[1]!==P[1]||this.p[4]!==P[4]||this.p[5]!==P[5]||this.p[12]!==P[12]||this.p[13]!==P[13])&&(this.p=P,this._mdf.p=!0,q=!0),q};function or(l,p){this._frameId=te,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=p,this.elem=l,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}or.prototype.defaultBoxWidth=[0,0],or.prototype.copyData=function(l,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(l[v]=p[v]);return l},or.prototype.setCurrentData=function(l){l.__complete||this.completeTextData(l),this.currentData=l,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},or.prototype.searchProperty=function(){return this.searchKeyframes()},or.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},or.prototype.addEffect=function(l){this.effectsSequence.push(l),this.elem.addDynamicProperty(this)},or.prototype.getValue=function(l){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!l)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var p=this.currentData,v=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var $,T=this.effectsSequence.length,P=l||this.data.d.k[this.keysIndex].s;for($=0;$<T;$+=1)v!==this.keysIndex?P=this.effectsSequence[$](P,P.t):P=this.effectsSequence[$](this.currentData,P.t);p!==P&&this.setCurrentData(P),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},or.prototype.getKeyframeValue=function(){for(var l=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,$=l.length;v<=$-1&&!(v===$-1||l[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},or.prototype.buildFinalText=function(l){for(var p=[],v=0,$=l.length,T,P,q=!1;v<$;)T=l.charCodeAt(v),ir.isCombinedCharacter(T)?p[p.length-1]+=l.charAt(v):T>=55296&&T<=56319?(P=l.charCodeAt(v+1),P>=56320&&P<=57343?(q||ir.isModifier(T,P)?(p[p.length-1]+=l.substr(v,2),q=!1):p.push(l.substr(v,2)),v+=1):p.push(l.charAt(v))):T>56319?(P=l.charCodeAt(v+1),ir.isZeroWidthJoiner(T,P)?(q=!0,p[p.length-1]+=l.substr(v,2),v+=1):p.push(l.charAt(v))):ir.isZeroWidthJoiner(T)?(p[p.length-1]+=l.charAt(v),q=!0):p.push(l.charAt(v)),v+=1;return p},or.prototype.completeTextData=function(l){l.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,$=[],T,P,q,me=0,J,$e=v.m.g,Ce=0,Re=0,M=0,Q=[],G=0,he=0,de,W,Y=p.getFontByName(l.f),L,B=0,H=tr(Y);l.fWeight=H.weight,l.fStyle=H.style,l.finalSize=l.s,l.finalText=this.buildFinalText(l.t),P=l.finalText.length,l.finalLineHeight=l.lh;var ne=l.tr/1e3*l.finalSize,se;if(l.sz)for(var pe=!0,Oe=l.sz[0],nt=l.sz[1],et,Be;pe;){Be=this.buildFinalText(l.t),et=0,G=0,P=Be.length,ne=l.tr/1e3*l.finalSize;var ot=-1;for(T=0;T<P;T+=1)se=Be[T].charCodeAt(0),q=!1,Be[T]===" "?ot=T:(se===13||se===3)&&(G=0,q=!0,et+=l.finalLineHeight||l.finalSize*1.2),p.chars?(L=p.getCharData(Be[T],Y.fStyle,Y.fFamily),B=q?0:L.w*l.finalSize/100):B=p.measureText(Be[T],l.f,l.finalSize),G+B>Oe&&Be[T]!==" "?(ot===-1?P+=1:T=ot,et+=l.finalLineHeight||l.finalSize*1.2,Be.splice(T,ot===T?1:0,"\r"),ot=-1,G=0):(G+=B,G+=ne);et+=Y.ascent*l.finalSize/100,this.canResize&&l.finalSize>this.minimumFontSize&&nt<et?(l.finalSize-=1,l.finalLineHeight=l.finalSize*l.lh/l.s):(l.finalText=Be,P=l.finalText.length,pe=!1)}G=-ne,B=0;var ct=0,Ve;for(T=0;T<P;T+=1)if(q=!1,Ve=l.finalText[T],se=Ve.charCodeAt(0),se===13||se===3?(ct=0,Q.push(G),he=G>he?G:he,G=-2*ne,J="",q=!0,M+=1):J=Ve,p.chars?(L=p.getCharData(Ve,Y.fStyle,p.getFontByName(l.f).fFamily),B=q?0:L.w*l.finalSize/100):B=p.measureText(J,l.f,l.finalSize),Ve===" "?ct+=B+ne:(G+=B+ne+ct,ct=0),$.push({l:B,an:B,add:Ce,n:q,anIndexes:[],val:J,line:M,animatorJustifyOffset:0}),$e==2){if(Ce+=B,J===""||J===" "||T===P-1){for((J===""||J===" ")&&(Ce-=B);Re<=T;)$[Re].an=Ce,$[Re].ind=me,$[Re].extra=B,Re+=1;me+=1,Ce=0}}else if($e==3){if(Ce+=B,J===""||T===P-1){for(J===""&&(Ce-=B);Re<=T;)$[Re].an=Ce,$[Re].ind=me,$[Re].extra=B,Re+=1;Ce=0,me+=1}}else $[me].ind=me,$[me].extra=0,me+=1;if(l.l=$,he=G>he?G:he,Q.push(G),l.sz)l.boxWidth=l.sz[0],l.justifyOffset=0;else switch(l.boxWidth=he,l.j){case 1:l.justifyOffset=-l.boxWidth;break;case 2:l.justifyOffset=-l.boxWidth/2;break;default:l.justifyOffset=0}l.lineWidths=Q;var xe=v.a,le,X;W=xe.length;var ve,je,ke=[];for(de=0;de<W;de+=1){for(le=xe[de],le.a.sc&&(l.strokeColorAnim=!0),le.a.sw&&(l.strokeWidthAnim=!0),(le.a.fc||le.a.fh||le.a.fs||le.a.fb)&&(l.fillColorAnim=!0),je=0,ve=le.s.b,T=0;T<P;T+=1)X=$[T],X.anIndexes[de]=je,(ve==1&&X.val!==""||ve==2&&X.val!==""&&X.val!==" "||ve==3&&(X.n||X.val==" "||T==P-1)||ve==4&&(X.n||T==P-1))&&(le.s.rn===1&&ke.push(je),je+=1);v.a[de].s.totalChars=je;var lt=-1,At;if(le.s.rn===1)for(T=0;T<P;T+=1)X=$[T],lt!=X.anIndexes[de]&&(lt=X.anIndexes[de],At=ke.splice(Math.floor(Math.random()*ke.length),1)[0]),X.anIndexes[de]=At}l.yOffset=l.finalLineHeight||l.finalSize*1.2,l.ls=l.ls||0,l.ascent=Y.ascent*l.finalSize/100},or.prototype.updateDocumentData=function(l,p){p=p===void 0?this.keysIndex:p;var v=this.copyData({},this.data.d.k[p].s);v=this.copyData(v,l),this.data.d.k[p].s=v,this.recalculate(p),this.elem.addDynamicProperty(this)},or.prototype.recalculate=function(l){var p=this.data.d.k[l].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},or.prototype.canResizeFont=function(l){this.canResize=l,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},or.prototype.setMinimumFontSize=function(l){this.minimumFontSize=Math.floor(l)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var _m=function(){var l=Math.max,p=Math.min,v=Math.floor;function $(P,q){this._currentTextLength=-1,this.k=!1,this.data=q,this.elem=P,this.comp=P.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(P),this.s=at.getProp(P,q.s||{k:0},0,0,this),"e"in q?this.e=at.getProp(P,q.e,0,0,this):this.e={v:100},this.o=at.getProp(P,q.o||{k:0},0,0,this),this.xe=at.getProp(P,q.xe||{k:0},0,0,this),this.ne=at.getProp(P,q.ne||{k:0},0,0,this),this.sm=at.getProp(P,q.sm||{k:100},0,0,this),this.a=at.getProp(P,q.a,0,.01,this),this.dynamicProperties.length||this.getValue()}$.prototype={getMult:function(q){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var me=0,J=0,$e=1,Ce=1;this.ne.v>0?me=this.ne.v/100:J=-this.ne.v/100,this.xe.v>0?$e=1-this.xe.v/100:Ce=1+this.xe.v/100;var Re=as.getBezierEasing(me,J,$e,Ce).get,M=0,Q=this.finalS,G=this.finalE,he=this.data.sh;if(he===2)G===Q?M=q>=G?1:0:M=l(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),M=Re(M);else if(he===3)G===Q?M=q>=G?0:1:M=1-l(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),M=Re(M);else if(he===4)G===Q?M=0:(M=l(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),M<.5?M*=2:M=1-2*(M-.5)),M=Re(M);else if(he===5){if(G===Q)M=0;else{var de=G-Q;q=p(l(0,q+.5-Q),G-Q);var W=-de/2+q,Y=de/2;M=Math.sqrt(1-W*W/(Y*Y))}M=Re(M)}else he===6?(G===Q?M=0:(q=p(l(0,q+.5-Q),G-Q),M=(1+Math.cos(Math.PI+Math.PI*2*q/(G-Q)))/2),M=Re(M)):(q>=v(Q)&&(q-Q<0?M=l(0,p(p(G,1)-(Q-q),1)):M=l(0,p(G-q,1))),M=Re(M));if(this.sm.v!==100){var L=this.sm.v*.01;L===0&&(L=1e-8);var B=.5-L*.5;M<B?M=0:(M=(M-B)/L,M>1&&(M=1))}return M*this.a.v},getValue:function(q){this.iterateDynamicProperties(),this._mdf=q||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,q&&this.data.r===2&&(this.e.v=this._currentTextLength);var me=this.data.r===2?1:100/this.data.totalChars,J=this.o.v/me,$e=this.s.v/me+J,Ce=this.e.v/me+J;if($e>Ce){var Re=$e;$e=Ce,Ce=Re}this.finalS=$e,this.finalE=Ce}},Le([cn],$);function T(P,q,me){return new $(P,q)}return{getTextSelectorProp:T}}();function Mm(l,p,v){var $={propType:!1},T=at.getProp,P=p.a;this.a={r:P.r?T(l,P.r,0,Qt,v):$,rx:P.rx?T(l,P.rx,0,Qt,v):$,ry:P.ry?T(l,P.ry,0,Qt,v):$,sk:P.sk?T(l,P.sk,0,Qt,v):$,sa:P.sa?T(l,P.sa,0,Qt,v):$,s:P.s?T(l,P.s,1,.01,v):$,a:P.a?T(l,P.a,1,0,v):$,o:P.o?T(l,P.o,0,.01,v):$,p:P.p?T(l,P.p,1,0,v):$,sw:P.sw?T(l,P.sw,0,0,v):$,sc:P.sc?T(l,P.sc,1,0,v):$,fc:P.fc?T(l,P.fc,1,0,v):$,fh:P.fh?T(l,P.fh,0,0,v):$,fs:P.fs?T(l,P.fs,0,.01,v):$,fb:P.fb?T(l,P.fb,0,.01,v):$,t:P.t?T(l,P.t,0,0,v):$},this.s=_m.getTextSelectorProp(l,p.s,v),this.s.t=p.s.t}function ys(l,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=l,this._renderType=p,this._elem=v,this._animatorsData=Ge(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}ys.prototype.searchProperties=function(){var l,p=this._textData.a.length,v,$=at.getProp;for(l=0;l<p;l+=1)v=this._textData.a[l],this._animatorsData[l]=new Mm(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:$(this._elem,this._textData.p.a,0,0,this),f:$(this._elem,this._textData.p.f,0,0,this),l:$(this._elem,this._textData.p.l,0,0,this),r:$(this._elem,this._textData.p.r,0,0,this),p:$(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=$(this._elem,this._textData.m.a,1,0,this)},ys.prototype.getMeasures=function(l,p){if(this.lettersChangedFlag=p,!(!this._mdf&&!this._isFirstFrame&&!p&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var v=this._moreOptions.alignment.v,$=this._animatorsData,T=this._textData,P=this.mHelper,q=this._renderType,me=this.renderedLetters.length,J,$e,Ce,Re,M=l.l,Q,G,he,de,W,Y,L,B,H,ne,se,pe,Oe,nt,et;if(this._hasMaskedPath){if(et=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Be=et.v;this._pathData.r.v&&(Be=Be.reverse()),Q={tLength:0,segments:[]},Re=Be._length-1;var ot;for(pe=0,Ce=0;Ce<Re;Ce+=1)ot=Wr.buildBezierData(Be.v[Ce],Be.v[Ce+1],[Be.o[Ce][0]-Be.v[Ce][0],Be.o[Ce][1]-Be.v[Ce][1]],[Be.i[Ce+1][0]-Be.v[Ce+1][0],Be.i[Ce+1][1]-Be.v[Ce+1][1]]),Q.tLength+=ot.segmentLength,Q.segments.push(ot),pe+=ot.segmentLength;Ce=Re,et.v.c&&(ot=Wr.buildBezierData(Be.v[Ce],Be.v[0],[Be.o[Ce][0]-Be.v[Ce][0],Be.o[Ce][1]-Be.v[Ce][1]],[Be.i[0][0]-Be.v[0][0],Be.i[0][1]-Be.v[0][1]]),Q.tLength+=ot.segmentLength,Q.segments.push(ot),pe+=ot.segmentLength),this._pathData.pi=Q}if(Q=this._pathData.pi,G=this._pathData.f.v,L=0,Y=1,de=0,W=!0,ne=Q.segments,G<0&&et.v.c)for(Q.tLength<Math.abs(G)&&(G=-Math.abs(G)%Q.tLength),L=ne.length-1,H=ne[L].points,Y=H.length-1;G<0;)G+=H[Y].partialLength,Y-=1,Y<0&&(L-=1,H=ne[L].points,Y=H.length-1);H=ne[L].points,B=H[Y-1],he=H[Y],se=he.partialLength}Re=M.length,J=0,$e=0;var ct=l.finalSize*1.2*.714,Ve=!0,xe,le,X,ve,je;ve=$.length;var ke,lt=-1,At,Ct,yn,zt=G,ur=L,Zn=Y,Ln=-1,Nn,jn,pr,ft,ln,Gr,Ti,ra,di="",ia=this.defaultPropsArray,aa;if(l.j===2||l.j===1){var Yt=0,bn=0,ka=l.j===2?-.5:-1,hi=0,sa=!0;for(Ce=0;Ce<Re;Ce+=1)if(M[Ce].n){for(Yt&&(Yt+=bn);hi<Ce;)M[hi].animatorJustifyOffset=Yt,hi+=1;Yt=0,sa=!0}else{for(X=0;X<ve;X+=1)xe=$[X].a,xe.t.propType&&(sa&&l.j===2&&(bn+=xe.t.v*ka),le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),ke.length?Yt+=xe.t.v*ke[0]*ka:Yt+=xe.t.v*ke*ka);sa=!1}for(Yt&&(Yt+=bn);hi<Ce;)M[hi].animatorJustifyOffset=Yt,hi+=1}for(Ce=0;Ce<Re;Ce+=1){if(P.reset(),Nn=1,M[Ce].n)J=0,$e+=l.yOffset,$e+=Ve?1:0,G=zt,Ve=!1,this._hasMaskedPath&&(L=ur,Y=Zn,H=ne[L].points,B=H[Y-1],he=H[Y],se=he.partialLength,de=0),di="",ra="",Gr="",aa="",ia=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Ln!==M[Ce].line){switch(l.j){case 1:G+=pe-l.lineWidths[M[Ce].line];break;case 2:G+=(pe-l.lineWidths[M[Ce].line])/2;break}Ln=M[Ce].line}lt!==M[Ce].ind&&(M[lt]&&(G+=M[lt].extra),G+=M[Ce].an/2,lt=M[Ce].ind),G+=v[0]*M[Ce].an*.005;var pi=0;for(X=0;X<ve;X+=1)xe=$[X].a,xe.p.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),ke.length?pi+=xe.p.v[0]*ke[0]:pi+=xe.p.v[0]*ke),xe.a.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),ke.length?pi+=xe.a.v[0]*ke[0]:pi+=xe.a.v[0]*ke);for(W=!0,this._pathData.a.v&&(G=M[0].an*.5+(pe-this._pathData.f.v-M[0].an*.5-M[M.length-1].an*.5)*lt/(Re-1),G+=this._pathData.f.v);W;)de+se>=G+pi||!H?(Oe=(G+pi-de)/he.partialLength,Ct=B.point[0]+(he.point[0]-B.point[0])*Oe,yn=B.point[1]+(he.point[1]-B.point[1])*Oe,P.translate(-v[0]*M[Ce].an*.005,-(v[1]*ct)*.01),W=!1):H&&(de+=he.partialLength,Y+=1,Y>=H.length&&(Y=0,L+=1,ne[L]?H=ne[L].points:et.v.c?(Y=0,L=0,H=ne[L].points):(de-=he.partialLength,H=null)),H&&(B=he,he=H[Y],se=he.partialLength));At=M[Ce].an/2-M[Ce].add,P.translate(-At,0,0)}else At=M[Ce].an/2-M[Ce].add,P.translate(-At,0,0),P.translate(-v[0]*M[Ce].an*.005,-v[1]*ct*.01,0);for(X=0;X<ve;X+=1)xe=$[X].a,xe.t.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),(J!==0||l.j!==0)&&(this._hasMaskedPath?ke.length?G+=xe.t.v*ke[0]:G+=xe.t.v*ke:ke.length?J+=xe.t.v*ke[0]:J+=xe.t.v*ke));for(l.strokeWidthAnim&&(pr=l.sw||0),l.strokeColorAnim&&(l.sc?jn=[l.sc[0],l.sc[1],l.sc[2]]:jn=[0,0,0]),l.fillColorAnim&&l.fc&&(ft=[l.fc[0],l.fc[1],l.fc[2]]),X=0;X<ve;X+=1)xe=$[X].a,xe.a.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),ke.length?P.translate(-xe.a.v[0]*ke[0],-xe.a.v[1]*ke[1],xe.a.v[2]*ke[2]):P.translate(-xe.a.v[0]*ke,-xe.a.v[1]*ke,xe.a.v[2]*ke));for(X=0;X<ve;X+=1)xe=$[X].a,xe.s.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),ke.length?P.scale(1+(xe.s.v[0]-1)*ke[0],1+(xe.s.v[1]-1)*ke[1],1):P.scale(1+(xe.s.v[0]-1)*ke,1+(xe.s.v[1]-1)*ke,1));for(X=0;X<ve;X+=1){if(xe=$[X].a,le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),xe.sk.propType&&(ke.length?P.skewFromAxis(-xe.sk.v*ke[0],xe.sa.v*ke[1]):P.skewFromAxis(-xe.sk.v*ke,xe.sa.v*ke)),xe.r.propType&&(ke.length?P.rotateZ(-xe.r.v*ke[2]):P.rotateZ(-xe.r.v*ke)),xe.ry.propType&&(ke.length?P.rotateY(xe.ry.v*ke[1]):P.rotateY(xe.ry.v*ke)),xe.rx.propType&&(ke.length?P.rotateX(xe.rx.v*ke[0]):P.rotateX(xe.rx.v*ke)),xe.o.propType&&(ke.length?Nn+=(xe.o.v*ke[0]-Nn)*ke[0]:Nn+=(xe.o.v*ke-Nn)*ke),l.strokeWidthAnim&&xe.sw.propType&&(ke.length?pr+=xe.sw.v*ke[0]:pr+=xe.sw.v*ke),l.strokeColorAnim&&xe.sc.propType)for(ln=0;ln<3;ln+=1)ke.length?jn[ln]+=(xe.sc.v[ln]-jn[ln])*ke[0]:jn[ln]+=(xe.sc.v[ln]-jn[ln])*ke;if(l.fillColorAnim&&l.fc){if(xe.fc.propType)for(ln=0;ln<3;ln+=1)ke.length?ft[ln]+=(xe.fc.v[ln]-ft[ln])*ke[0]:ft[ln]+=(xe.fc.v[ln]-ft[ln])*ke;xe.fh.propType&&(ke.length?ft=It(ft,xe.fh.v*ke[0]):ft=It(ft,xe.fh.v*ke)),xe.fs.propType&&(ke.length?ft=Ut(ft,xe.fs.v*ke[0]):ft=Ut(ft,xe.fs.v*ke)),xe.fb.propType&&(ke.length?ft=Pt(ft,xe.fb.v*ke[0]):ft=Pt(ft,xe.fb.v*ke))}}for(X=0;X<ve;X+=1)xe=$[X].a,xe.p.propType&&(le=$[X].s,ke=le.getMult(M[Ce].anIndexes[X],T.a[X].s.totalChars),this._hasMaskedPath?ke.length?P.translate(0,xe.p.v[1]*ke[0],-xe.p.v[2]*ke[1]):P.translate(0,xe.p.v[1]*ke,-xe.p.v[2]*ke):ke.length?P.translate(xe.p.v[0]*ke[0],xe.p.v[1]*ke[1],-xe.p.v[2]*ke[2]):P.translate(xe.p.v[0]*ke,xe.p.v[1]*ke,-xe.p.v[2]*ke));if(l.strokeWidthAnim&&(Gr=pr<0?0:pr),l.strokeColorAnim&&(Ti="rgb("+Math.round(jn[0]*255)+","+Math.round(jn[1]*255)+","+Math.round(jn[2]*255)+")"),l.fillColorAnim&&l.fc&&(ra="rgb("+Math.round(ft[0]*255)+","+Math.round(ft[1]*255)+","+Math.round(ft[2]*255)+")"),this._hasMaskedPath){if(P.translate(0,-l.ls),P.translate(0,v[1]*ct*.01+$e,0),this._pathData.p.v){nt=(he.point[1]-B.point[1])/(he.point[0]-B.point[0]);var oa=Math.atan(nt)*180/Math.PI;he.point[0]<B.point[0]&&(oa+=180),P.rotate(-oa*Math.PI/180)}P.translate(Ct,yn,0),G-=v[0]*M[Ce].an*.005,M[Ce+1]&&lt!==M[Ce+1].ind&&(G+=M[Ce].an/2,G+=l.tr*.001*l.finalSize)}else{switch(P.translate(J,$e,0),l.ps&&P.translate(l.ps[0],l.ps[1]+l.ascent,0),l.j){case 1:P.translate(M[Ce].animatorJustifyOffset+l.justifyOffset+(l.boxWidth-l.lineWidths[M[Ce].line]),0,0);break;case 2:P.translate(M[Ce].animatorJustifyOffset+l.justifyOffset+(l.boxWidth-l.lineWidths[M[Ce].line])/2,0,0);break}P.translate(0,-l.ls),P.translate(At,0,0),P.translate(v[0]*M[Ce].an*.005,v[1]*ct*.01,0),J+=M[Ce].l+l.tr*.001*l.finalSize}q==="html"?di=P.toCSS():q==="svg"?di=P.to2dCSS():ia=[P.props[0],P.props[1],P.props[2],P.props[3],P.props[4],P.props[5],P.props[6],P.props[7],P.props[8],P.props[9],P.props[10],P.props[11],P.props[12],P.props[13],P.props[14],P.props[15]],aa=Nn}me<=Ce?(je=new Qu(aa,Gr,Ti,ra,di,ia),this.renderedLetters.push(je),me+=1,this.lettersChangedFlag=!0):(je=this.renderedLetters[Ce],this.lettersChangedFlag=je.update(aa,Gr,Ti,ra,di,ia)||this.lettersChangedFlag)}}},ys.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},ys.prototype.mHelper=new kn,ys.prototype.defaultPropsArray=[],Le([cn],ys);function fi(){}fi.prototype.initElement=function(l,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(l,p,v),this.textProperty=new or(this,l.t,this.dynamicProperties),this.textAnimator=new ys(l.t,this.renderType,this),this.initTransform(l,p,v),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},fi.prototype.prepareFrame=function(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},fi.prototype.createPathShape=function(l,p){var v,$=p.length,T,P="";for(v=0;v<$;v+=1)p[v].ty==="sh"&&(T=p[v].ks.k,P+=xr(T,T.i.length,!0,l));return P},fi.prototype.updateDocumentData=function(l,p){this.textProperty.updateDocumentData(l,p)},fi.prototype.canResizeFont=function(l){this.textProperty.canResizeFont(l)},fi.prototype.setMinimumFontSize=function(l){this.textProperty.setMinimumFontSize(l)},fi.prototype.applyTextPropertiesToMatrix=function(l,p,v,$,T){switch(l.ps&&p.translate(l.ps[0],l.ps[1]+l.ascent,0),p.translate(0,-l.ls,0),l.j){case 1:p.translate(l.justifyOffset+(l.boxWidth-l.lineWidths[v]),0,0);break;case 2:p.translate(l.justifyOffset+(l.boxWidth-l.lineWidths[v])/2,0,0);break}p.translate($,T,0)},fi.prototype.buildColor=function(l){return"rgb("+Math.round(l[0]*255)+","+Math.round(l[1]*255)+","+Math.round(l[2]*255)+")"},fi.prototype.emptyProp=new Qu,fi.prototype.destroy=function(){};var Fm={shapes:[]};function wr(l,p,v){this.textSpans=[],this.renderType="svg",this.initElement(l,p,v)}Le([ta,gs,Bo,Ma,On,No,fi],wr),wr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=bt("text"))},wr.prototype.buildTextContents=function(l){for(var p=0,v=l.length,$=[],T="";p<v;)l[p]==="\r"||l[p]===""?($.push(T),T=""):T+=l[p],p+=1;return $.push(T),$},wr.prototype.buildShapeData=function(l,p){if(l.shapes&&l.shapes.length){var v=l.shapes[0];if(v.it){var $=v.it[v.it.length-1];$.s&&($.s.k[0]=p,$.s.k[1]=p)}}return l},wr.prototype.buildNewText=function(){this.addDynamicProperty(this);var l,p,v=this.textProperty.currentData;this.renderedLetters=Ge(v?v.l.length:0),v.fc?this.layerElement.setAttribute("fill",this.buildColor(v.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),v.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(v.sc)),this.layerElement.setAttribute("stroke-width",v.sw)),this.layerElement.setAttribute("font-size",v.finalSize);var $=this.globalData.fontManager.getFontByName(v.f);if($.fClass)this.layerElement.setAttribute("class",$.fClass);else{this.layerElement.setAttribute("font-family",$.fFamily);var T=v.fWeight,P=v.fStyle;this.layerElement.setAttribute("font-style",P),this.layerElement.setAttribute("font-weight",T)}this.layerElement.setAttribute("aria-label",v.t);var q=v.l||[],me=!!this.globalData.fontManager.chars;p=q.length;var J,$e=this.mHelper,Ce="",Re=this.data.singleShape,M=0,Q=0,G=!0,he=v.tr*.001*v.finalSize;if(Re&&!me&&!v.sz){var de=this.textContainer,W="start";switch(v.j){case 1:W="end";break;case 2:W="middle";break;default:W="start";break}de.setAttribute("text-anchor",W),de.setAttribute("letter-spacing",he);var Y=this.buildTextContents(v.finalText);for(p=Y.length,Q=v.ps?v.ps[1]+v.ascent:0,l=0;l<p;l+=1)J=this.textSpans[l].span||bt("tspan"),J.textContent=Y[l],J.setAttribute("x",0),J.setAttribute("y",Q),J.style.display="inherit",de.appendChild(J),this.textSpans[l]||(this.textSpans[l]={span:null,glyph:null}),this.textSpans[l].span=J,Q+=v.finalLineHeight;this.layerElement.appendChild(de)}else{var L=this.textSpans.length,B;for(l=0;l<p;l+=1){if(this.textSpans[l]||(this.textSpans[l]={span:null,childSpan:null,glyph:null}),!me||!Re||l===0){if(J=L>l?this.textSpans[l].span:bt(me?"g":"text"),L<=l){if(J.setAttribute("stroke-linecap","butt"),J.setAttribute("stroke-linejoin","round"),J.setAttribute("stroke-miterlimit","4"),this.textSpans[l].span=J,me){var H=bt("g");J.appendChild(H),this.textSpans[l].childSpan=H}this.textSpans[l].span=J,this.layerElement.appendChild(J)}J.style.display="inherit"}if($e.reset(),Re&&(q[l].n&&(M=-he,Q+=v.yOffset,Q+=G?1:0,G=!1),this.applyTextPropertiesToMatrix(v,$e,q[l].line,M,Q),M+=q[l].l||0,M+=he),me){B=this.globalData.fontManager.getCharData(v.finalText[l],$.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var ne;if(B.t===1)ne=new Hr(B.data,this.globalData,this);else{var se=Fm;B.data&&B.data.shapes&&(se=this.buildShapeData(B.data,v.finalSize)),ne=new hn(se,this.globalData,this)}if(this.textSpans[l].glyph){var pe=this.textSpans[l].glyph;this.textSpans[l].childSpan.removeChild(pe.layerElement),pe.destroy()}this.textSpans[l].glyph=ne,ne._debug=!0,ne.prepareFrame(0),ne.renderFrame(),this.textSpans[l].childSpan.appendChild(ne.layerElement),B.t===1&&this.textSpans[l].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Re&&J.setAttribute("transform","translate("+$e.props[12]+","+$e.props[13]+")"),J.textContent=q[l].val,J.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Re&&J&&J.setAttribute("d",Ce)}for(;l<this.textSpans.length;)this.textSpans[l].span.style.display="none",l+=1;this._sizeChanged=!0},wr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var l=this.layerElement.getBBox();this.bbox={top:l.y,left:l.x,width:l.width,height:l.height}}return this.bbox},wr.prototype.getValue=function(){var l,p=this.textSpans.length,v;for(this.renderedFrame=this.comp.renderedFrame,l=0;l<p;l+=1)v=this.textSpans[l].glyph,v&&(v.prepareFrame(this.comp.renderedFrame-this.data.st),v._mdf&&(this._mdf=!0))},wr.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var l,p,v=this.textAnimator.renderedLetters,$=this.textProperty.currentData.l;p=$.length;var T,P,q;for(l=0;l<p;l+=1)$[l].n||(T=v[l],P=this.textSpans[l].span,q=this.textSpans[l].glyph,q&&q.renderFrame(),T._mdf.m&&P.setAttribute("transform",T.m),T._mdf.o&&P.setAttribute("opacity",T.o),T._mdf.sw&&P.setAttribute("stroke-width",T.sw),T._mdf.sc&&P.setAttribute("stroke",T.sc),T._mdf.fc&&P.setAttribute("fill",T.fc))}};function Fc(l,p,v){this.initElement(l,p,v)}Le([jo],Fc),Fc.prototype.createContent=function(){var l=bt("rect");l.setAttribute("width",this.data.sw),l.setAttribute("height",this.data.sh),l.setAttribute("fill",this.data.sc),this.layerElement.appendChild(l)};function Ra(l,p,v){this.initFrame(),this.initBaseData(l,p,v),this.initFrame(),this.initTransform(l,p,v),this.initHierarchy()}Ra.prototype.prepareFrame=function(l){this.prepareProperties(l,!0)},Ra.prototype.renderFrame=function(){},Ra.prototype.getBaseElement=function(){return null},Ra.prototype.destroy=function(){},Ra.prototype.sourceRectAtTime=function(){},Ra.prototype.hide=function(){},Le([ta,gs,Ma,On],Ra);function In(){}Le([sr],In),In.prototype.createNull=function(l){return new Ra(l,this.globalData,this)},In.prototype.createShape=function(l){return new hn(l,this.globalData,this)},In.prototype.createText=function(l){return new wr(l,this.globalData,this)},In.prototype.createImage=function(l){return new jo(l,this.globalData,this)},In.prototype.createSolid=function(l){return new Fc(l,this.globalData,this)},In.prototype.configAnimation=function(l){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+l.w+" "+l.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",l.w),this.svgElement.setAttribute("height",l.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var p=this.globalData.defs;this.setupGlobalData(l,p),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=l;var v=bt("clipPath"),$=bt("rect");$.setAttribute("width",l.w),$.setAttribute("height",l.h),$.setAttribute("x",0),$.setAttribute("y",0);var T=xt();v.setAttribute("id",T),v.appendChild($),this.layerElement.setAttribute("clip-path","url("+Ae()+"#"+T+")"),p.appendChild(v),this.layers=l.layers,this.elements=Ge(l.layers.length)},In.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var l,p=this.layers?this.layers.length:0;for(l=0;l<p;l+=1)this.elements[l]&&this.elements[l].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},In.prototype.updateContainerSize=function(){},In.prototype.findIndexByInd=function(l){var p=0,v=this.layers.length;for(p=0;p<v;p+=1)if(this.layers[p].ind===l)return p;return-1},In.prototype.buildItem=function(l){var p=this.elements;if(!(p[l]||this.layers[l].ty===99)){p[l]=!0;var v=this.createItem(this.layers[l]);if(p[l]=v,si()&&(this.layers[l].ty===0&&this.globalData.projectInterface.registerComposition(v),v.initExpressions()),this.appendElementInPos(v,l),this.layers[l].tt){var $="tp"in this.layers[l]?this.findIndexByInd(this.layers[l].tp):l-1;if($===-1)return;if(!this.elements[$]||this.elements[$]===!0)this.buildItem($),this.addPendingElement(v);else{var T=p[$],P=T.getMatte(this.layers[l].tt);v.setMatte(P)}}}},In.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var l=this.pendingElements.pop();if(l.checkParenting(),l.data.tt)for(var p=0,v=this.elements.length;p<v;){if(this.elements[p]===l){var $="tp"in l.data?this.findIndexByInd(l.data.tp):p-1,T=this.elements[$],P=T.getMatte(this.layers[p].tt);l.setMatte(P);break}p+=1}}},In.prototype.renderFrame=function(l){if(!(this.renderedFrame===l||this.destroyed)){l===null?l=this.renderedFrame:this.renderedFrame=l,this.globalData.frameNum=l,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=l,this.globalData._mdf=!1;var p,v=this.layers.length;for(this.completeLayers||this.checkLayers(l),p=v-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&this.elements[p].prepareFrame(l-this.layers[p].st);if(this.globalData._mdf)for(p=0;p<v;p+=1)(this.completeLayers||this.elements[p])&&this.elements[p].renderFrame()}},In.prototype.appendElementInPos=function(l,p){var v=l.getBaseElement();if(v){for(var $=0,T;$<p;)this.elements[$]&&this.elements[$]!==!0&&this.elements[$].getBaseElement()&&(T=this.elements[$].getBaseElement()),$+=1;T?this.layerElement.insertBefore(v,T):this.layerElement.appendChild(v)}},In.prototype.hide=function(){this.layerElement.style.display="none"},In.prototype.show=function(){this.layerElement.style.display="block"};function Ai(){}Le([ta,gs,Ma,On,No],Ai),Ai.prototype.initElement=function(l,p,v){this.initFrame(),this.initBaseData(l,p,v),this.initTransform(l,p,v),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!p.progressiveLoad)&&this.buildAllItems(),this.hide()},Ai.prototype.prepareFrame=function(l){if(this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=l/this.data.sr;else{var p=this.tm.v;p===this.data.op&&(p=this.data.op-1),this.renderedFrame=p}var v,$=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=$-1;v>=0;v-=1)(this.completeLayers||this.elements[v])&&(this.elements[v].prepareFrame(this.renderedFrame-this.layers[v].st),this.elements[v]._mdf&&(this._mdf=!0))}},Ai.prototype.renderInnerContent=function(){var l,p=this.layers.length;for(l=0;l<p;l+=1)(this.completeLayers||this.elements[l])&&this.elements[l].renderFrame()},Ai.prototype.setElements=function(l){this.elements=l},Ai.prototype.getElements=function(){return this.elements},Ai.prototype.destroyElements=function(){var l,p=this.layers.length;for(l=0;l<p;l+=1)this.elements[l]&&this.elements[l].destroy()},Ai.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Hr(l,p,v){this.layers=l.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Ge(this.layers.length):[],this.initElement(l,p,v),this.tm=l.tm?at.getProp(this,l.tm,0,p.frameRate,this):{_placeholder:!0}}Le([In,Ai,Bo],Hr),Hr.prototype.createComp=function(l){return new Hr(l,this.globalData,this)};function Xs(l,p){this.animationItem=l,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var v="";if(p&&p.title){var $=bt("title"),T=xt();$.setAttribute("id",T),$.textContent=p.title,this.svgElement.appendChild($),v+=T}if(p&&p.description){var P=bt("desc"),q=xt();P.setAttribute("id",q),P.textContent=p.description,this.svgElement.appendChild(P),v+=" "+q}v&&this.svgElement.setAttribute("aria-labelledby",v);var me=bt("defs");this.svgElement.appendChild(me);var J=bt("g");this.svgElement.appendChild(J),this.layerElement=J,this.renderConfig={preserveAspectRatio:p&&p.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:p&&p.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:p&&p.contentVisibility||"visible",progressiveLoad:p&&p.progressiveLoad||!1,hideOnTransparent:!(p&&p.hideOnTransparent===!1),viewBoxOnly:p&&p.viewBoxOnly||!1,viewBoxSize:p&&p.viewBoxSize||!1,className:p&&p.className||"",id:p&&p.id||"",focusable:p&&p.focusable,filterSize:{width:p&&p.filterSize&&p.filterSize.width||"100%",height:p&&p.filterSize&&p.filterSize.height||"100%",x:p&&p.filterSize&&p.filterSize.x||"0%",y:p&&p.filterSize&&p.filterSize.y||"0%"},width:p&&p.width,height:p&&p.height,runExpressions:!p||p.runExpressions===void 0||p.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:me,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Le([In],Xs),Xs.prototype.createComp=function(l){return new Hr(l,this.globalData,this)},Iu("svg",Xs),Pr.registerModifier("tm",_r),Pr.registerModifier("pb",Da),Pr.registerModifier("rp",hr),Pr.registerModifier("rd",us),Pr.registerModifier("zz",ds),Pr.registerModifier("op",vn),jt})})(u,u.exports);var f=u.exports;function d(U,ee){var K=U==null?null:typeof Symbol<"u"&&U[Symbol.iterator]||U["@@iterator"];if(K!=null){var k,N,te,j,ce=[],ue=!0,Ae=!1;try{if(te=(K=K.call(U)).next,ee!==0)for(;!(ue=(k=te.call(K)).done)&&(ce.push(k.value),ce.length!==ee);ue=!0);}catch(_e){Ae=!0,N=_e}finally{try{if(!ue&&K.return!=null&&(j=K.return(),Object(j)!==j))return}finally{if(Ae)throw N}}return ce}}function h(U,ee){var K=Object.keys(U);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(U);ee&&(k=k.filter(function(N){return Object.getOwnPropertyDescriptor(U,N).enumerable})),K.push.apply(K,k)}return K}function m(U){for(var ee=1;ee<arguments.length;ee++){var K=arguments[ee]!=null?arguments[ee]:{};ee%2?h(Object(K),!0).forEach(function(k){g(U,k,K[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(K)):h(Object(K)).forEach(function(k){Object.defineProperty(U,k,Object.getOwnPropertyDescriptor(K,k))})}return U}function g(U,ee,K){return ee=_(ee),ee in U?Object.defineProperty(U,ee,{value:K,enumerable:!0,configurable:!0,writable:!0}):U[ee]=K,U}function b(U,ee){if(U==null)return{};var K={},k=Object.keys(U),N,te;for(te=0;te<k.length;te++)N=k[te],!(ee.indexOf(N)>=0)&&(K[N]=U[N]);return K}function w(U,ee){if(U==null)return{};var K=b(U,ee),k,N;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(U);for(N=0;N<te.length;N++)k=te[N],!(ee.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(U,k)&&(K[k]=U[k])}return K}function x(U,ee){return A(U)||d(U,ee)||C(U,ee)||S()}function A(U){if(Array.isArray(U))return U}function C(U,ee){if(U){if(typeof U=="string")return E(U,ee);var K=Object.prototype.toString.call(U).slice(8,-1);if(K==="Object"&&U.constructor&&(K=U.constructor.name),K==="Map"||K==="Set")return Array.from(U);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return E(U,ee)}}function E(U,ee){(ee==null||ee>U.length)&&(ee=U.length);for(var K=0,k=new Array(ee);K<ee;K++)k[K]=U[K];return k}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
84
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(U,ee){if(typeof U!="object"||U===null)return U;var K=U[Symbol.toPrimitive];if(K!==void 0){var k=K.call(U,ee);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ee==="string"?String:Number)(U)}function _(U){var ee=R(U,"string");return typeof ee=="symbol"?ee:String(ee)}var F=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],z=function(ee,K){var k=ee.animationData,N=ee.loop,te=ee.autoplay,j=ee.initialSegment,ce=ee.onComplete,ue=ee.onLoopComplete,Ae=ee.onEnterFrame,_e=ee.onSegmentStart,Le=ee.onConfigReady,Ye=ee.onDataReady,Qe=ee.onDataFailed,Ue=ee.onLoadedImages,Ge=ee.onDOMLoaded,Ie=ee.onDestroy;ee.lottieRef,ee.renderer,ee.name,ee.assetsPath,ee.rendererSettings;var Ne=w(ee,F),Te=r.useState(!1),He=x(Te,2),ht=He[0],Ht=He[1],$t=r.useRef(),_t=r.useRef(null),qr=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.play()},Qt=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.stop()},be=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.pause()},De=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setSpeed(Pt)},Me=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.goToAndPlay(Pt,It)},Xe=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.goToAndStop(Pt,It)},tt=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setDirection(Pt)},Je=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.playSegments(Pt,It)},gt=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setSubframe(Pt)},Rt=function(Pt){var It;return(It=$t.current)===null||It===void 0?void 0:It.getDuration(Pt)},xt=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.destroy(),$t.current=void 0},gn=function(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},It;if(_t.current){(It=$t.current)===null||It===void 0||It.destroy();var qt=m(m(m({},ee),Pt),{},{container:_t.current});return $t.current=f.loadAnimation(qt),Ht(!!$t.current),function(){var fr;(fr=$t.current)===null||fr===void 0||fr.destroy(),$t.current=void 0}}};r.useEffect(function(){var Ut=gn();return function(){return Ut==null?void 0:Ut()}},[k,N]),r.useEffect(function(){$t.current&&($t.current.autoplay=!!te)},[te]),r.useEffect(function(){if($t.current){if(!j){$t.current.resetSegments(!0);return}!Array.isArray(j)||!j.length||(($t.current.currentRawFrame<j[0]||$t.current.currentRawFrame>j[1])&&($t.current.currentRawFrame=j[0]),$t.current.setSegment(j[0],j[1]))}},[j]),r.useEffect(function(){var Ut=[{name:"complete",handler:ce},{name:"loopComplete",handler:ue},{name:"enterFrame",handler:Ae},{name:"segmentStart",handler:_e},{name:"config_ready",handler:Le},{name:"data_ready",handler:Ye},{name:"data_failed",handler:Qe},{name:"loaded_images",handler:Ue},{name:"DOMLoaded",handler:Ge},{name:"destroy",handler:Ie}],Pt=Ut.filter(function(qt){return qt.handler!=null});if(Pt.length){var It=Pt.map(function(qt){var fr;return(fr=$t.current)===null||fr===void 0||fr.addEventListener(qt.name,qt.handler),function(){var zr;(zr=$t.current)===null||zr===void 0||zr.removeEventListener(qt.name,qt.handler)}});return function(){It.forEach(function(qt){return qt()})}}},[ce,ue,Ae,_e,Le,Ye,Qe,Ue,Ge,Ie]);var yr=a.default.createElement("div",m({style:K,ref:_t},Ne));return{View:yr,play:qr,stop:Qt,pause:be,setSpeed:De,goToAndStop:Xe,goToAndPlay:Me,setDirection:tt,playSegments:Je,setSubframe:gt,getDuration:Rt,destroy:xt,animationContainerRef:_t,animationLoaded:ht,animationItem:$t.current}};function ie(U){var ee=U.getBoundingClientRect(),K=ee.top,k=ee.height,N=window.innerHeight-K,te=window.innerHeight+k;return N/te}function ge(U,ee,K){var k=U.getBoundingClientRect(),N=k.top,te=k.left,j=k.width,ce=k.height,ue=(ee-te)/j,Ae=(K-N)/ce;return{x:ue,y:Ae}}var oe=function(ee){var K=ee.wrapperRef,k=ee.animationItem,N=ee.mode,te=ee.actions;r.useEffect(function(){var j=K.current;if(!(!j||!k||!te.length)){k.stop();var ce=function(){var _e=null,Le=function(){var Qe=ie(j),Ue=te.find(function(Ie){var Ne=Ie.visibility;return Ne&&Qe>=Ne[0]&&Qe<=Ne[1]});if(Ue){if(Ue.type==="seek"&&Ue.visibility&&Ue.frames.length===2){var Ge=Ue.frames[0]+Math.ceil((Qe-Ue.visibility[0])/(Ue.visibility[1]-Ue.visibility[0])*Ue.frames[1]);//! goToAndStop must be relative to the start of the current segment
85
+ k.goToAndStop(Ge-k.firstFrame-1,!0)}Ue.type==="loop"&&(_e===null||_e!==Ue.frames||k.isPaused)&&(k.playSegments(Ue.frames,!0),_e=Ue.frames),Ue.type==="play"&&k.isPaused&&(k.resetSegments(!0),k.play()),Ue.type==="stop"&&k.goToAndStop(Ue.frames[0]-k.firstFrame-1,!0)}};return document.addEventListener("scroll",Le),function(){document.removeEventListener("scroll",Le)}},ue=function(){var _e=function(Ue,Ge){var Ie=Ue,Ne=Ge;if(Ie!==-1&&Ne!==-1){var Te=ge(j,Ie,Ne);Ie=Te.x,Ne=Te.y}var He=te.find(function($t){var _t=$t.position;return _t&&Array.isArray(_t.x)&&Array.isArray(_t.y)?Ie>=_t.x[0]&&Ie<=_t.x[1]&&Ne>=_t.y[0]&&Ne<=_t.y[1]:_t&&!Number.isNaN(_t.x)&&!Number.isNaN(_t.y)?Ie===_t.x&&Ne===_t.y:!1});if(He){if(He.type==="seek"&&He.position&&Array.isArray(He.position.x)&&Array.isArray(He.position.y)&&He.frames.length===2){var ht=(Ie-He.position.x[0])/(He.position.x[1]-He.position.x[0]),Ht=(Ne-He.position.y[0])/(He.position.y[1]-He.position.y[0]);k.playSegments(He.frames,!0),k.goToAndStop(Math.ceil((ht+Ht)/2*(He.frames[1]-He.frames[0])),!0)}He.type==="loop"&&k.playSegments(He.frames,!0),He.type==="play"&&(k.isPaused&&k.resetSegments(!1),k.playSegments(He.frames)),He.type==="stop"&&k.goToAndStop(He.frames[0],!0)}},Le=function(Ue){_e(Ue.clientX,Ue.clientY)},Ye=function(){_e(-1,-1)};return j.addEventListener("mousemove",Le),j.addEventListener("mouseout",Ye),function(){j.removeEventListener("mousemove",Le),j.removeEventListener("mouseout",Ye)}};switch(N){case"scroll":return ce();case"cursor":return ue()}}},[N,k])},O=function(ee){var K=ee.actions,k=ee.mode,N=ee.lottieObj,te=N.animationItem,j=N.View,ce=N.animationContainerRef;return oe({actions:K,animationItem:te,mode:k,wrapperRef:ce}),j},we=["style","interactivity"],Se=function(ee){var K,k,N,te=ee.style,j=ee.interactivity,ce=w(ee,we),ue=z(ce,te),Ae=ue.View,_e=ue.play,Le=ue.stop,Ye=ue.pause,Qe=ue.setSpeed,Ue=ue.goToAndStop,Ge=ue.goToAndPlay,Ie=ue.setDirection,Ne=ue.playSegments,Te=ue.setSubframe,He=ue.getDuration,ht=ue.destroy,Ht=ue.animationContainerRef,$t=ue.animationLoaded,_t=ue.animationItem;return r.useEffect(function(){ee.lottieRef&&(ee.lottieRef.current={play:_e,stop:Le,pause:Ye,setSpeed:Qe,goToAndPlay:Ge,goToAndStop:Ue,setDirection:Ie,playSegments:Ne,setSubframe:Te,getDuration:He,destroy:ht,animationContainerRef:Ht,animationLoaded:$t,animationItem:_t})},[(K=ee.lottieRef)===null||K===void 0?void 0:K.current]),O({lottieObj:{View:Ae,play:_e,stop:Le,pause:Ye,setSpeed:Qe,goToAndStop:Ue,goToAndPlay:Ge,setDirection:Ie,playSegments:Ne,setSubframe:Te,getDuration:He,destroy:ht,animationContainerRef:Ht,animationLoaded:$t,animationItem:_t},actions:(k=j==null?void 0:j.actions)!==null&&k!==void 0?k:[],mode:(N=j==null?void 0:j.mode)!==null&&N!==void 0?N:"scroll"})};n.LottiePlayer=f,n.default=Se,n.useLottie=z,n.useLottieInteractivity=O,Object.defineProperty(n,"__esModule",{value:!0})})}(vf,vf.exports)),vf.exports}var Tne=Ane();const Pne=ai(Tne),_ne=I.createContext({});function Mne(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const I3=typeof window<"u",Fne=I3?I.useLayoutEffect:I.useEffect,X7=I.createContext(null),J7=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Rne(e){return typeof e=="object"&&e!==null}function Q7(e){return Rne(e)&&"offsetHeight"in e}const bh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kne(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function f(h){s.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const w=g&&i?n:r;return m&&s.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(u=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(f),n.clear(),i=!1,a&&(a=!1,d.process(h))}};return d}const Ks={},One=40;function ek(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=bh.reduce((S,R)=>(S[R]=kne(a),S),{}),{setup:u,read:f,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=s,x=()=>{const S=Ks.useManualTiming?i.timestamp:performance.now();n=!1,Ks.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,One),1)),i.timestamp=S,i.isProcessing=!0,u.process(i),f.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:bh.reduce((S,R)=>{const _=s[R];return S[R]=(F,z=!1,ie=!1)=>(n||A(),_.schedule(F,z,ie)),S},{}),cancel:S=>{for(let R=0;R<bh.length;R++)s[bh[R]].cancel(S)},state:i,steps:s}}const uc=e=>e,{schedule:$a,cancel:b1,state:Ep}=ek(typeof requestAnimationFrame<"u"?requestAnimationFrame:uc,!0),L3=I.createContext({strict:!1}),LA={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Hl={};for(const e in LA)Hl[e]={isEnabled:t=>LA[e].some(n=>!!t[n])};function VA(e){for(const t in e)Hl[t]={...Hl[t],...e[t]}}function Ine({children:e,features:t,strict:n=!1}){const[,r]=I.useState(!L0(t)),i=I.useRef(void 0);if(!L0(t)){const{renderer:a,...s}=t;i.current=a,VA(s)}return I.useEffect(()=>{L0(t)&&t().then(({renderer:a,...s})=>{VA(s),i.current=a,r(!0)})},[]),Qa.jsx(L3.Provider,{value:{renderer:i.current,strict:n},children:e})}function L0(e){return typeof e=="function"}const Lne=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Sp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Lne.has(e)}let tk=e=>!Sp(e);function Vne(e){e&&(tk=t=>t.startsWith("on")?!Sp(t):e(t))}try{Vne(require("@emotion/is-prop-valid").default)}catch{}function Bne(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(tk(i)||n===!0&&Sp(i)||!t&&!Sp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const BA=new Set;function V3(e,t,n){e||BA.has(t)||(console.warn(t),BA.add(t))}function Nne(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&V3(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const xm=I.createContext({});function wm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function zf(e){return typeof e=="string"||Array.isArray(e)}const B3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],N3=["initial",...B3];function Cm(e){return wm(e.animate)||N3.some(t=>zf(e[t]))}function nk(e){return!!(Cm(e)||e.variants)}function jne(e,t){if(Cm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||zf(n)?n:void 0,animate:zf(r)?r:void 0}}return e.inherit!==!1?t:{}}function Kne(e){const{initial:t,animate:n}=jne(e,I.useContext(xm));return I.useMemo(()=>({initial:t,animate:n}),[NA(t),NA(n)])}function NA(e){return Array.isArray(e)?e.join(" "):e}const Une=Symbol.for("motionComponentSymbol");function rk(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qne(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):rk(n)&&(n.current=r))},[t])}const j3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zne="framerAppearId",ik="data-"+j3(zne),Wne=I.createContext({}),{schedule:Hne}=ek(queueMicrotask,!1);function Gne(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(xm),s=I.useContext(L3),u=I.useContext(X7),f=I.useContext(J7).reducedMotion,d=I.useRef(null);r=r||s.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:f}));const h=d.current,m=I.useContext(Wne);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Yne(d.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,u)});const b=n[ik],w=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return Fne(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Hne.render(h.render),w.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,b)}),w.current=!1))}),h}function Yne(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:u,layoutScroll:f,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ak(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||u&&rk(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:f,layoutRoot:d})}function ak(e){if(e)return e.options.allowProjection!==!1?e.projection:ak(e.parent)}let vd=()=>{},Au=()=>{};process.env.NODE_ENV!=="production"&&(vd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Au=(e,t)=>{if(!e)throw new Error(t)});function Zne({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function a(u,f){let d;const h={...I.useContext(J7),...u,layoutId:Xne(u)},{isStatic:m}=h,g=Kne(u),b=r(u,m);if(!m&&I3){Jne(h,e);const w=Qne(h);d=w.MeasureLayout,g.visualElement=Gne(i,b,h,t,w.ProjectionNode)}return Qa.jsxs(xm.Provider,{value:g,children:[d&&g.visualElement?Qa.jsx(d,{visualElement:g.visualElement,...h}):null,n(i,u,qne(b,g.visualElement,f),b,m,g.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const s=I.forwardRef(a);return s[Une]=i,s}function Xne({layoutId:e}){const t=I.useContext(_ne).id;return t&&e!==void 0?t+"-"+e:e}function Jne(e,t){I.useContext(L3).strict,process.env.NODE_ENV}function Qne(e){const{drag:t,layout:n}=Hl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const sk=e=>t=>typeof t=="string"&&t.startsWith(e),ok=sk("--"),ere=sk("var(--"),K3=e=>ere(e)?tre.test(e.split("/*")[0].trim()):!1,tre=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,nre={},lc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],cc=new Set(lc);function uk(e,{layout:t,layoutId:n}){return cc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!nre[e]||e==="opacity")}const lk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Tu=(e,t,n)=>n>t?t:n<e?e:n,fc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wf={...fc,transform:e=>Tu(0,1,e)},$h={...fc,default:1},jA={...fc,transform:Math.round},yd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),uo=yd("deg"),Ll=yd("%"),Tt=yd("px"),rre=yd("vh"),ire=yd("vw"),KA={...Ll,parse:e=>Ll.parse(e)/100,transform:e=>Ll.transform(e*100)},are={rotate:uo,rotateX:uo,rotateY:uo,rotateZ:uo,scale:$h,scaleX:$h,scaleY:$h,scaleZ:$h,skew:uo,skewX:uo,skewY:uo,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:Wf,originX:KA,originY:KA,originZ:Tt},U3={borderWidth:Tt,borderTopWidth:Tt,borderRightWidth:Tt,borderBottomWidth:Tt,borderLeftWidth:Tt,borderRadius:Tt,radius:Tt,borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomRightRadius:Tt,borderBottomLeftRadius:Tt,width:Tt,maxWidth:Tt,height:Tt,maxHeight:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,backgroundPositionX:Tt,backgroundPositionY:Tt,...are,zIndex:jA,fillOpacity:Wf,strokeOpacity:Wf,numOctaves:jA},sre={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ore=lc.length;function ure(e,t,n){let r="",i=!0;for(let a=0;a<ore;a++){const s=lc[a],u=e[s];if(u===void 0)continue;let f=!0;if(typeof u=="number"?f=u===(s.startsWith("scale")?1:0):f=parseFloat(u)===0,!f||n){const d=lk(u,U3[s]);if(!f){i=!1;const h=sre[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function q3(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,u=!1;for(const f in t){const d=t[f];if(cc.has(f)){s=!0;continue}else if(ok(f)){i[f]=d;continue}else{const h=lk(d,U3[f]);f.startsWith("origin")?(u=!0,a[f]=h):r[f]=h}}if(t.transform||(s||n?r.transform=ure(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${f} ${d} ${h}`}}const z3=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Br=e=>!!(e&&e.getVelocity);function ck(e,t,n){for(const r in t)!Br(t[r])&&!uk(r,n)&&(e[r]=t[r])}function lre({transformTemplate:e},t){return I.useMemo(()=>{const n=z3();return q3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cre(e,t){const n=e.style||{},r={};return ck(r,n,e),Object.assign(r,lre(e,t)),r}function fre(e,t){const n={},r=cre(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const dre={offset:"stroke-dashoffset",array:"stroke-dasharray"},hre={offset:"strokeDashoffset",array:"strokeDasharray"};function pre(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?dre:hre;e[a.offset]=Tt.transform(-r);const s=Tt.transform(t),u=Tt.transform(n);e[a.array]=`${s} ${u}`}function fk(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...u},f,d,h){if(q3(e,u,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&pre(m,i,a,s,!1)}const dk=()=>({...z3(),attrs:{}}),hk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mre(e,t,n,r){const i=I.useMemo(()=>{const a=dk();return fk(a,t,hk(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};ck(a,e.style,e),i.style={...a,...i.style}}return i}const gre=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function W3(e){return typeof e!="string"||e.includes("-")?!1:!!(gre.indexOf(e)>-1||/[A-Z]/u.test(e))}function vre(e=!1){return(n,r,i,{latestValues:a},s)=>{const f=(W3(n)?mre:fre)(r,a,s,n),d=Bne(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...f,ref:i}:{},{children:m}=r,g=I.useMemo(()=>Br(m)?m.get():m,[m]);return I.createElement(n,{...h,children:g})}}function UA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function H3(e,t,n,r){if(typeof t=="function"){const[i,a]=UA(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=UA(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function yre(e){return Br(e)?e.get():e}function bre({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:$re(n,r,i,e),renderState:t()}}const pk=e=>(t,n)=>{const r=I.useContext(xm),i=I.useContext(X7),a=()=>bre(e,t,r,i);return n?a():Mne(a)};function $re(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=yre(a[g]);let{initial:s,animate:u}=e;const f=Cm(e),d=nk(e);t&&d&&!f&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?u:s;if(m&&typeof m!="boolean"&&!wm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=H3(e,g[b]);if(w){const{transitionEnd:x,transition:A,...C}=w;for(const E in C){let S=C[E];if(Array.isArray(S)){const R=h?S.length-1:0;S=S[R]}S!==null&&(i[E]=S)}for(const E in x)i[E]=x[E]}}}return i}function G3(e,t,n){var a;const{style:r}=e,i={};for(const s in r)(Br(r[s])||t.style&&Br(t.style[s])||uk(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const xre={useVisualState:pk({scrapeMotionValuesFromProps:G3,createRenderState:z3})};function mk(e,t,n){const r=G3(e,t,n);for(const i in e)if(Br(e[i])||Br(t[i])){const a=lc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const wre={useVisualState:pk({scrapeMotionValuesFromProps:mk,createRenderState:dk})};function Cre(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...W3(r)?wre:xre,preloadedFeatures:e,useRender:vre(i),createVisualElement:t,Component:r};return Zne(s)}}const Ere=Cre(),Sre=Nne(Ere);function Hf(e,t,n){const r=e.getProps();return H3(r,t,n!==void 0?n:r.custom,e)}const $1=e=>Array.isArray(e);let Kh;function Dre(){Kh=void 0}const zi={now:()=>(Kh===void 0&&zi.set(Ep.isProcessing||Ks.useManualTiming?Ep.timestamp:performance.now()),Kh),set:e=>{Kh=e,queueMicrotask(Dre)}};function Are(e,t){e.indexOf(t)===-1&&e.push(t)}function Tre(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class gk{constructor(){this.subscriptions=[]}add(t){return Are(this.subscriptions,t),()=>Tre(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function vk(e,t){return t?e*(1e3/t):0}const qA=30,Pre=e=>!isNaN(parseFloat(e));class _re{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var s,u;const a=zi.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty();i&&((u=this.events.renderRequest)==null||u.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=zi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Pre(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&V3(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new gk);const r=this.events[t].add(n);return t==="change"?()=>{r(),$a.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=zi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>qA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qA);return vk(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Dp(e,t){return new _re(e,t)}function Mre(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dp(n))}function Fre(e){return $1(e)?e[e.length-1]||0:e}function Rre(e,t){const n=Hf(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const u=Fre(a[s]);Mre(e,s,u)}}function kre(e){return!!(Br(e)&&e.add)}function Ore(e,t){const n=e.getValue("willChange");if(kre(n))return n.add(t);if(!n&&Ks.WillChange){const r=new Ks.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ire(e){return e.props[ik]}const Lre=e=>e!==null;function Vre(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Lre),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Bre={type:"spring",stiffness:500,damping:25,restSpeed:10},Nre=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jre={type:"keyframes",duration:.8},Kre={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ure=(e,{keyframes:t})=>t.length>2?jre:cc.has(e)?e.startsWith("scale")?Nre(t[1]):Bre:Kre;function qre({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:u,from:f,elapsed:d,...h}){return!!Object.keys(h).length}function yk(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Ja=e=>e*1e3,Ls=e=>e/1e3,Af=e=>Math.round(e*1e5)/1e5,Y3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zre(e){return e==null}const Wre=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Z3=(e,t)=>n=>!!(typeof n=="string"&&Wre.test(n)&&n.startsWith(e)||t&&!zre(n)&&Object.prototype.hasOwnProperty.call(n,t)),bk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,u]=r.match(Y3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},Hre=e=>Tu(0,255,e),V0={...fc,transform:e=>Math.round(Hre(e))},du={test:Z3("rgb","red"),parse:bk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+V0.transform(e)+", "+V0.transform(t)+", "+V0.transform(n)+", "+Af(Wf.transform(r))+")"};function Gre(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const x1={test:Z3("#"),parse:Gre,transform:du.transform},Sl={test:Z3("hsl","hue"),parse:bk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ll.transform(Af(t))+", "+Ll.transform(Af(n))+", "+Af(Wf.transform(r))+")"},Er={test:e=>du.test(e)||x1.test(e)||Sl.test(e),parse:e=>du.test(e)?du.parse(e):Sl.test(e)?Sl.parse(e):x1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?du.transform(e):Sl.transform(e)},Yre=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Zre(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Y3))==null?void 0:t.length)||0)+(((n=e.match(Yre))==null?void 0:n.length)||0)>0}const $k="number",xk="color",Xre="var",Jre="var(",zA="${}",Qre=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(Qre,f=>(Er.test(f)?(r.color.push(a),i.push(xk),n.push(Er.parse(f))):f.startsWith(Jre)?(r.var.push(a),i.push(Xre),n.push(f)):(r.number.push(a),i.push($k),n.push(parseFloat(f))),++a,zA)).split(zA);return{values:n,split:u,indexes:r,types:i}}function wk(e){return Gf(e).values}function Ck(e){const{split:t,types:n}=Gf(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const u=n[s];u===$k?a+=Af(i[s]):u===xk?a+=Er.transform(i[s]):a+=i[s]}return a}}const eie=e=>typeof e=="number"?0:e;function tie(e){const t=wk(e);return Ck(e)(t.map(eie))}const dc={test:Zre,parse:wk,createTransformer:Ck,getAnimatableNone:tie};function B0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nie({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;i=B0(f,u,e+1/3),a=B0(f,u,e),s=B0(f,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Ap(e,t){return n=>n>0?t:e}const Em=(e,t,n)=>e+(t-e)*n,N0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},rie=[x1,du,Sl],iie=e=>rie.find(t=>t.test(e));function WA(e){const t=iie(e);if(vd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Sl&&(n=nie(n)),n}const HA=(e,t)=>{const n=WA(e),r=WA(t);if(!n||!r)return Ap(e,t);const i={...n};return a=>(i.red=N0(n.red,r.red,a),i.green=N0(n.green,r.green,a),i.blue=N0(n.blue,r.blue,a),i.alpha=Em(n.alpha,r.alpha,a),du.transform(i))},w1=new Set(["none","hidden"]);function aie(e,t){return w1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}const sie=(e,t)=>n=>t(e(n)),Sm=(...e)=>e.reduce(sie);function oie(e,t){return n=>Em(e,t,n)}function X3(e){return typeof e=="number"?oie:typeof e=="string"?K3(e)?Ap:Er.test(e)?HA:cie:Array.isArray(e)?Ek:typeof e=="object"?Er.test(e)?HA:uie:Ap}function Ek(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>X3(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function uie(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=X3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function lie(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],u=e.values[s]??0;n[i]=u,r[a]++}return n}const cie=(e,t)=>{const n=dc.createTransformer(t),r=Gf(e),i=Gf(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?w1.has(e)&&!i.values.length||w1.has(t)&&!r.values.length?aie(e,t):Sm(Ek(lie(r,i),i.values),n):(vd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ap(e,t))};function Sk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Em(e,t,n):X3(e)(e,t)}const fie=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>$a.update(t,n),stop:()=>b1(t),now:()=>Ep.isProcessing?Ep.timestamp:zi.now()}},Dk=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(a/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Tp=2e4;function J3(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Tp;)t+=n,r=e.next(t);return t>=Tp?1/0:t}function die(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(J3(r),Tp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Ls(i)}}const hie=5;function Ak(e,t,n){const r=Math.max(t-hie,0);return vk(n-e(r),t-r)}const _n={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},j0=.001;function pie({duration:e=_n.duration,bounce:t=_n.bounce,velocity:n=_n.velocity,mass:r=_n.mass}){let i,a;vd(e<=Ja(_n.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=Tu(_n.minDamping,_n.maxDamping,s),e=Tu(_n.minDuration,_n.maxDuration,Ls(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=C1(d,s),w=Math.exp(-m);return j0-g/b*w},a=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,w=Math.exp(-m),x=C1(Math.pow(d,2),s);return(-i(d)+j0>0?-1:1)*((g-b)*w)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-j0+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,f=gie(i,a,u);if(e=Ja(e),isNaN(f))return{stiffness:_n.stiffness,damping:_n.damping,duration:e};{const d=Math.pow(f,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const mie=12;function gie(e,t,n){let r=n;for(let i=1;i<mie;i++)r=r-e(r)/t(r);return r}function C1(e,t){return e*Math.sqrt(1-t*t)}const vie=["duration","bounce"],yie=["stiffness","damping","mass"];function GA(e,t){return t.some(n=>e[n]!==void 0)}function bie(e){let t={velocity:_n.velocity,stiffness:_n.stiffness,damping:_n.damping,mass:_n.mass,isResolvedFromDuration:!1,...e};if(!GA(e,yie)&&GA(e,vie))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Tu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:_n.mass,stiffness:i,damping:a}}else{const n=pie(e);t={...t,...n,mass:_n.mass},t.isResolvedFromDuration=!0}return t}function Pp(e=_n.visualDuration,t=_n.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:f,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=bie({...n,velocity:-Ls(n.velocity||0)}),w=g||0,x=d/(2*Math.sqrt(f*h)),A=s-a,C=Ls(Math.sqrt(f/h)),E=Math.abs(A)<5;r||(r=E?_n.restSpeed.granular:_n.restSpeed.default),i||(i=E?_n.restDelta.granular:_n.restDelta.default);let S;if(x<1){const _=C1(C,x);S=F=>{const z=Math.exp(-x*C*F);return s-z*((w+x*C*A)/_*Math.sin(_*F)+A*Math.cos(_*F))}}else if(x===1)S=_=>s-Math.exp(-C*_)*(A+(w+C*A)*_);else{const _=C*Math.sqrt(x*x-1);S=F=>{const z=Math.exp(-x*C*F),ie=Math.min(_*F,300);return s-z*((w+x*C*A)*Math.sinh(ie)+_*A*Math.cosh(ie))/_}}const R={calculatedDuration:b&&m||null,next:_=>{const F=S(_);if(b)u.done=_>=m;else{let z=_===0?w:0;x<1&&(z=_===0?Ja(w):Ak(S,_,F));const ie=Math.abs(z)<=r,ge=Math.abs(s-F)<=i;u.done=ie&&ge}return u.value=u.done?s:F,u},toString:()=>{const _=Math.min(J3(R),Tp),F=Dk(z=>R.next(_*z).value,_,30);return _+"ms "+F},toTransition:()=>{}};return R}Pp.applyToOptions=e=>{const t=die(e,100,Pp);return e.ease=t.ease,e.duration=Ja(t.duration),e.type="keyframes",e};function E1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:u,max:f,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=ie=>u!==void 0&&ie<u||f!==void 0&&ie>f,w=ie=>u===void 0?f:f===void 0||Math.abs(u-ie)<Math.abs(f-ie)?u:f;let x=n*t;const A=m+x,C=s===void 0?A:s(A);C!==A&&(x=C-m);const E=ie=>-x*Math.exp(-ie/r),S=ie=>C+E(ie),R=ie=>{const ge=E(ie),oe=S(ie);g.done=Math.abs(ge)<=d,g.value=g.done?C:oe};let _,F;const z=ie=>{b(g.value)&&(_=ie,F=Pp({keyframes:[g.value,w(g.value)],velocity:Ak(S,ie,g.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return z(0),{calculatedDuration:null,next:ie=>{let ge=!1;return!F&&_===void 0&&(ge=!0,R(ie),z(ie)),_!==void 0&&ie>=_?F.next(ie-_):(!ge&&R(ie),g)}}}const Tk=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function $ie(e,t,n){const r=[],i=n||Ks.mix||Sk,a=e.length-1;for(let s=0;s<a;s++){let u=i(e[s],e[s+1]);if(t){const f=Array.isArray(t)?t[s]||uc:t;u=Sm(f,u)}r.push(u)}return r}function xie(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Au(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=$ie(t,r,i),f=u.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Tk(e[m],e[m+1],h);return u[m](g)};return n?h=>d(Tu(e[0],e[a-1],h)):d}function wie(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Tk(0,t,r);e.push(Em(n,1,i))}}function Cie(e){const t=[0];return wie(t,e.length-1),t}function Eie(e,t){return e.map(n=>n*t)}const Pk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Sie=1e-7,Die=12;function Aie(e,t,n,r,i){let a,s,u=0;do s=t+(n-t)/2,a=Pk(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>Sie&&++u<Die);return s}function bd(e,t,n,r){if(e===t&&n===r)return uc;const i=a=>Aie(a,0,1,e,n);return a=>a===0||a===1?a:Pk(i(a),t,r)}const Tie=bd(.42,0,1,1),Pie=bd(0,0,.58,1),_k=bd(.42,0,.58,1),_ie=e=>Array.isArray(e)&&typeof e[0]!="number",Mk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fk=e=>t=>1-e(1-t),Rk=bd(.33,1.53,.69,.99),Q3=Fk(Rk),kk=Mk(Q3),Ok=e=>(e*=2)<1?.5*Q3(e):.5*(2-Math.pow(2,-10*(e-1))),e$=e=>1-Math.sin(Math.acos(e)),Mie=Fk(e$),Ik=Mk(e$),Lk=e=>Array.isArray(e)&&typeof e[0]=="number",YA={linear:uc,easeIn:Tie,easeInOut:_k,easeOut:Pie,circIn:e$,circInOut:Ik,circOut:Mie,backIn:Q3,backInOut:kk,backOut:Rk,anticipate:Ok},Fie=e=>typeof e=="string",ZA=e=>{if(Lk(e)){Au(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return bd(t,n,r,i)}else if(Fie(e))return Au(YA[e]!==void 0,`Invalid easing type '${e}'`),YA[e];return e};function Rie(e,t){return e.map(()=>t||_k).splice(0,e.length-1)}function Dl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=_ie(r)?r.map(ZA):ZA(r),a={done:!1,value:t[0]},s=Eie(n&&n.length===t.length?n:Cie(t),e),u=xie(s,t,{ease:Array.isArray(i)?i:Rie(t,i)});return{calculatedDuration:e,next:f=>(a.value=u(f),a.done=f>=e,a)}}const kie=e=>e!==null;function t$(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(kie),u=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!u||r===void 0?a[u]:r}const Oie={decay:E1,inertia:E1,tween:Dl,keyframes:Dl,spring:Pp};function Vk(e){typeof e.type=="string"&&(e.type=Oie[e.type])}class n${constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Iie=e=>e/100;class r$ extends n${constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==zi.now()&&this.tick(zi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Vk(t);const{type:n=Dl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:u}=t;const f=n||Dl;process.env.NODE_ENV!=="production"&&f!==Dl&&Au(u.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${u}`),f!==Dl&&typeof u[0]!="number"&&(this.mixKeyframes=Sm(Iie,Sk(u[0],u[1])),u=[0,100]);const d=f({...t,keyframes:u});a==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...u].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=J3(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:u,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:w,onUpdate:x,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?C<0:C>i;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,R=r;if(m){const ie=Math.min(this.currentTime,i)/u;let ge=Math.floor(ie),oe=ie%1;!oe&&ie>=1&&(oe=1),oe===1&&ge--,ge=Math.min(ge,m+1),!!(ge%2)&&(g==="reverse"?(oe=1-oe,b&&(oe-=b/u)):g==="mirror"&&(R=s)),S=Tu(0,1,oe)*u}const _=E?{done:!1,value:h[0]}:R.next(S);a&&(_.value=a(_.value));let{done:F}=_;!E&&f!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return z&&w!==E1&&(_.value=t$(h,this.options,A,this.speed)),x&&x(_.value),z&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Ls(this.calculatedDuration)}get time(){return Ls(this.currentTime)}set time(t){var n;t=Ja(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(zi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ls(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=fie,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(zi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Lie(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const hu=e=>e*180/Math.PI,S1=e=>{const t=hu(Math.atan2(e[1],e[0]));return D1(t)},Vie={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:S1,rotateZ:S1,skewX:e=>hu(Math.atan(e[1])),skewY:e=>hu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},D1=e=>(e=e%360,e<0&&(e+=360),e),XA=S1,JA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),QA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Bie={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:JA,scaleY:QA,scale:e=>(JA(e)+QA(e))/2,rotateX:e=>D1(hu(Math.atan2(e[6],e[5]))),rotateY:e=>D1(hu(Math.atan2(-e[2],e[0]))),rotateZ:XA,rotate:XA,skewX:e=>hu(Math.atan(e[4])),skewY:e=>hu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function A1(e){return e.includes("scale")?1:0}function T1(e,t){if(!e||e==="none")return A1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Bie,i=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Vie,i=u}if(!i)return A1(t);const a=r[t],s=i[1].split(",").map(jie);return typeof a=="function"?a(s):s[a]}const Nie=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return T1(n,t)};function jie(e){return parseFloat(e.trim())}const eT=e=>e===fc||e===Tt,Kie=new Set(["x","y","z"]),Uie=lc.filter(e=>!Kie.has(e));function qie(e){const t=[];return Uie.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const yu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>T1(t,"x"),y:(e,{transform:t})=>T1(t,"y")};yu.translateX=yu.x;yu.translateY=yu.y;const bu=new Set;let P1=!1,_1=!1,M1=!1;function Bk(){if(_1){const e=Array.from(bu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=qie(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var u;(u=r.getValue(a))==null||u.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}_1=!1,P1=!1,bu.forEach(e=>e.complete(M1)),bu.clear()}function Nk(){bu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_1=!0)})}function zie(){M1=!0,Nk(),Bk(),M1=!1}class i${constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(bu.add(this),P1||(P1=!0,$a.read(Nk),$a.resolveKeyframes(Bk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,s);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}Lie(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),bu.delete(this)}cancel(){this.state==="scheduled"&&(bu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Wie=e=>e.startsWith("--");function Hie(e,t,n){Wie(t)?e.style.setProperty(t,n):e.style[t]=n}function a$(e){let t;return()=>(t===void 0&&(t=e()),t)}const Gie=a$(()=>window.ScrollTimeline!==void 0),Yie={};function Zie(e,t){const n=a$(e);return()=>Yie[t]??n()}const jk=Zie(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),yf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yf([0,.65,.55,1]),circOut:yf([.55,0,1,.45]),backIn:yf([.31,.01,.66,-.59]),backOut:yf([.33,1.53,.69,.99])};function Kk(e,t){if(e)return typeof e=="function"?jk()?Dk(e,t):"ease-out":Lk(e)?yf(e):Array.isArray(e)?e.map(n=>Kk(n,t)||tT.easeOut):tT[e]}function Xie(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:u="easeOut",times:f}={},d=void 0){const h={[t]:n};f&&(h.offset=f);const m=Kk(u,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function Uk(e){return typeof e=="function"&&"applyToOptions"in e}function Jie({type:e,...t}){return Uk(e)&&jk()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Qie extends n${constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:u,onComplete:f}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,Au(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const d=Jie(t);this.animation=Xie(n,r,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=t$(i,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(h):Hie(n,r,h),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ls(Number(t))}get time(){return Ls(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ja(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Gie()?(this.animation.timeline=t,uc):n(this)}}const qk={anticipate:Ok,backInOut:kk,circInOut:Ik};function eae(e){return e in qk}function tae(e){typeof e.ease=="string"&&eae(e.ease)&&(e.ease=qk[e.ease])}const nT=10;class nae extends Qie{constructor(t){tae(t),Vk(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new r$({...s,autoplay:!1}),f=Ja(this.finishedTime??this.time);n.setWithVelocity(u.sample(f-nT).value,u.sample(f).value,nT),u.stop()}}const rT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(dc.test(e)||e==="0")&&!e.startsWith("url("));function rae(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function iae(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=rT(i,t),u=rT(a,t);return vd(s===u,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!s||!u?!1:rae(e)||(n==="spring"||Uk(n))&&r}const aae=new Set(["opacity","clipPath","filter","transform"]),sae=a$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oae(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!Q7((d=t==null?void 0:t.owner)==null?void 0:d.current))return!1;const{onUpdate:u,transformTemplate:f}=t.owner.getProps();return sae()&&n&&aae.has(n)&&(n!=="transform"||!f)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const uae=40;class lae extends n${constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:u,name:f,motionValue:d,element:h,...m}){var w;super(),this.stop=()=>{var x,A;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=zi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:f,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||i$;this.keyframeResolver=new b(u,(x,A,C)=>this.onKeyframesResolved(x,A,g,!C),f,d,h),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:u,delay:f,isHandoff:d,onUpdate:h}=r;this.resolvedAt=zi.now(),iae(t,a,s,u)||((Ks.instantAnimations||!f)&&(h==null||h(t$(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>uae?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&oae(g)?new nae({...g,element:g.motionValue.owner.current}):new r$(g);b.finished.then(()=>this.notifyFinished()).catch(uc),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),zie()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const cae=(e,t,n,r={},i,a)=>s=>{const u=yk(r,e)||{},f=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ja(f);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};qre(u)||Object.assign(h,Ure(e,h)),h.duration&&(h.duration=Ja(h.duration)),h.repeatDelay&&(h.repeatDelay=Ja(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),(Ks.instantAnimations||Ks.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!u.type&&!u.ease,m&&!a&&t.get()!==void 0){const g=Vre(h.keyframes,u);if(g!==void 0){$a.update(()=>{h.onUpdate(g),h.onComplete()});return}}return u.isSync?new r$(h):new lae(h)},zk=new Set(["width","height","top","left","right","bottom",...lc]);function fae({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Wk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...u}=t;r&&(a=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in u){const m=e.getValue(h,e.latestValues[h]??null),g=u[h];if(g===void 0||d&&fae(d,h))continue;const b={delay:n,...yk(a||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===w&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const C=Ire(e);if(C){const E=window.MotionHandoffAnimation(C,h,$a);E!==null&&(b.startTime=E,x=!0)}}Ore(e,h),m.start(cae(h,m,g,e.shouldReduceMotion&&zk.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&f.push(A)}return s&&Promise.all(f).then(()=>{$a.update(()=>{s&&Rre(e,s)})}),f}function F1(e,t,n={}){var f;const r=Hf(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Wk(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return dae(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[d,h]=u==="beforeChildren"?[a,s]:[s,a];return d().then(()=>h())}else return Promise.all([a(),s(n.delay)])}function dae(e,t,n=0,r=0,i=1,a){const s=[],u=(e.variantChildren.size-1)*r,f=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(hae).forEach((d,h)=>{d.notify("AnimationStart",t),s.push(F1(d,t,{...a,delay:n+f(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function hae(e,t){return e.sortNodePosition(t)}function pae(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>F1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=F1(e,t,n);else{const i=typeof t=="function"?Hf(e,t,n.custom):t;r=Promise.all(Wk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Hk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const mae=N3.length;function Gk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Gk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<mae;n++){const r=N3[n],i=e.props[r];(zf(i)||i===!1)&&(t[r]=i)}return t}const gae=[...B3].reverse(),vae=B3.length;function yae(e){return t=>Promise.all(t.map(({animation:n,options:r})=>pae(e,n,r)))}function bae(e){let t=yae(e),n=iT(),r=!0;const i=f=>(d,h)=>{var g;const m=Hf(e,h,f==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...x}=m;d={...d,...x,...w}}return d};function a(f){t=f(e)}function s(f){const{props:d}=e,h=Gk(e.parent)||{},m=[],g=new Set;let b={},w=1/0;for(let A=0;A<vae;A++){const C=gae[A],E=n[C],S=d[C]!==void 0?d[C]:h[C],R=zf(S),_=C===f?E.isActive:null;_===!1&&(w=A);let F=S===h[C]&&S!==d[C]&&R;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&_===null||!S&&!E.prevProp||wm(S)||typeof S=="boolean")continue;const z=$ae(E.prevProp,S);let ie=z||C===f&&E.isActive&&!F&&R||A>w&&R,ge=!1;const oe=Array.isArray(S)?S:[S];let O=oe.reduce(i(C),{});_===!1&&(O={});const{prevResolvedValues:we={}}=E,Se={...we,...O},U=k=>{ie=!0,g.has(k)&&(ge=!0,g.delete(k)),E.needsAnimating[k]=!0;const N=e.getValue(k);N&&(N.liveStyle=!1)};for(const k in Se){const N=O[k],te=we[k];if(b.hasOwnProperty(k))continue;let j=!1;$1(N)&&$1(te)?j=!Hk(N,te):j=N!==te,j?N!=null?U(k):g.add(k):N!==void 0&&g.has(k)?U(k):E.protectedKeys[k]=!0}E.prevProp=S,E.prevResolvedValues=O,E.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(ie=!1),ie&&(!(F&&z)||ge)&&m.push(...oe.map(k=>({animation:k,options:{type:C}})))}if(g.size){const A={};if(typeof d.initial!="boolean"){const C=Hf(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(A.transition=C.transition)}g.forEach(C=>{const E=e.getBaseTarget(C),S=e.getValue(C);S&&(S.liveStyle=!0),A[C]=E??null}),m.push({animation:A})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function u(f,d){var m;if(n[f].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(f,d)}),n[f].isActive=d;const h=s(f);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:s,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=iT(),r=!0}}}function $ae(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Hk(t,e):!1}function tu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iT(){return{animate:tu(!0),whileInView:tu(),whileHover:tu(),whileTap:tu(),whileDrag:tu(),whileFocus:tu(),exit:tu()}}class hc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class xae extends hc{constructor(t){super(t),t.animationState||(t.animationState=bae(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let wae=0;class Cae extends hc{constructor(){super(...arguments),this.id=wae++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Eae={animation:{Feature:xae},exit:{Feature:Cae}};function aT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Sae=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Yk(e){return{point:{x:e.pageX,y:e.pageY}}}function Dae({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Aae(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const sT=()=>({min:0,max:0}),Zk=()=>({x:sT(),y:sT()});function Tae(e,t){return Dae(Aae(e.getBoundingClientRect(),t))}const Pae={y:!1};function _ae(){return Pae.y}function Mae(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Xk(e,t){const n=Mae(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function oT(e){return!(e.pointerType==="touch"||_ae())}function Fae(e,t,n={}){const[r,i,a]=Xk(e,n),s=u=>{if(!oT(u))return;const{target:f}=u,d=t(f,u);if(typeof d!="function"||!f)return;const h=m=>{oT(m)&&(d(m),f.removeEventListener("pointerleave",h))};f.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",s,i)}),a}function uT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&$a.postRender(()=>a(t,Yk(t)))}class Rae extends hc{mount(){const{current:t}=this.node;t&&(this.unmount=Fae(t,(n,r)=>(uT(this.node,r,"Start"),i=>uT(this.node,i,"End"))))}unmount(){}}class kae extends hc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Sm(aT(this.node.current,"focus",()=>this.onFocus()),aT(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Jk=(e,t)=>t?e===t?!0:Jk(e,t.parentElement):!1,Oae=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Iae(e){return Oae.has(e.tagName)||e.tabIndex!==-1}const Uh=new WeakSet;function lT(e){return t=>{t.key==="Enter"&&e(t)}}function K0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Lae=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=lT(()=>{if(Uh.has(n))return;K0(n,"down");const i=lT(()=>{K0(n,"up")}),a=()=>K0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function cT(e){return Sae(e)&&!0}function Vae(e,t,n={}){const[r,i,a]=Xk(e,n),s=u=>{const f=u.currentTarget;if(!cT(u))return;Uh.add(f);const d=t(f,u),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Uh.has(f)&&Uh.delete(f),cT(b)&&typeof d=="function"&&d(b,{success:w})},m=b=>{h(b,f===window||f===document||n.useGlobalTarget||Jk(f,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",s,i),Q7(u)&&(u.addEventListener("focus",d=>Lae(d,i)),!Iae(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),a}function fT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&$a.postRender(()=>a(t,Yk(t)))}class Bae extends hc{mount(){const{current:t}=this.node;t&&(this.unmount=Vae(t,(n,r)=>(fT(this.node,r,"Start"),(i,{success:a})=>fT(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const R1=new WeakMap,U0=new WeakMap,Nae=e=>{const t=R1.get(e.target);t&&t(e)},jae=e=>{e.forEach(Nae)};function Kae({root:e,...t}){const n=e||document;U0.has(n)||U0.set(n,{});const r=U0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(jae,{root:e,...t})),r[i]}function Uae(e,t,n){const r=Kae(t);return R1.set(e,n),r.observe(e),()=>{R1.delete(e),r.unobserve(e)}}const qae={some:0,all:1};class zae extends hc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:qae[i]},u=f=>{const{isIntersecting:d}=f;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(f)};return Uae(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Wae(t,n))&&this.startObserver()}unmount(){}}function Wae({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Hae={inView:{Feature:zae},tap:{Feature:Bae},focus:{Feature:kae},hover:{Feature:Rae}},k1={current:null},Qk={current:!1};function Gae(){if(Qk.current=!0,!!I3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>k1.current=e.matches;e.addListener(t),t()}else k1.current=!1}const Yae=new WeakMap;function Zae(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Br(i))e.addValue(r,i);else if(Br(a))e.addValue(r,Dp(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Dp(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const eO=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tO=e=>/^0[^.\s]+$/u.test(e),Xae={test:e=>e==="auto",parse:e=>e},nO=e=>t=>t.test(e),rO=[fc,Tt,Ll,uo,ire,rre,Xae],dT=e=>rO.find(nO(e)),Jae=[...rO,Er,dc],Qae=e=>Jae.find(nO(e)),ese=new Set(["brightness","contrast","saturate","opacity"]);function tse(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Y3)||[];if(!r)return e;const i=n.replace(r,"");let a=ese.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const nse=/\b([a-z-]*)\(.*?\)/gu,O1={...dc,getAnimatableNone:e=>{const t=e.match(nse);return t?t.map(tse).join(" "):e}},rse={...U3,color:Er,backgroundColor:Er,outlineColor:Er,fill:Er,stroke:Er,borderColor:Er,borderTopColor:Er,borderRightColor:Er,borderBottomColor:Er,borderLeftColor:Er,filter:O1,WebkitFilter:O1},iO=e=>rse[e];function aO(e,t){let n=iO(e);return n!==O1&&(n=dc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ise{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=i$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=zi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,$a.render(this.render,!1,!0))};const{latestValues:f,renderState:d}=s;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=Cm(n),this.isVariantNode=nk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];f[g]!==void 0&&Br(b)&&b.set(f[g],!1)}}mount(t){this.current=t,Yae.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Qk.current||Gae(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:k1.current,process.env.NODE_ENV!=="production"&&V3(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),b1(this.notifyUpdate),b1(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=cc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&$a.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hl){const n=Hl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Zk()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<hT.length;r++){const i=hT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Zae(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Dp(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(eO(r)||tO(r))?r=parseFloat(r):!Qae(r)&&dc.test(n)&&(r=aO(t,n)),this.setBaseTarget(t,Br(r)?r.get():r)),Br(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=H3(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Br(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new gk),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}const ase=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sse(e){const t=ase.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ose=4;function sO(e,t,n=1){Au(n<=ose,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=sse(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return eO(s)?parseFloat(s):s}return K3(i)?sO(i,t,n+1):i}function use(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||tO(e):!0}const lse=new Set(["auto","none","0"]);function cse(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!lse.has(a)&&Gf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=aO(n,i)}class fse extends i${constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let d=t[f];if(typeof d=="string"&&(d=d.trim(),K3(d))){const h=sO(d,n.current);h!==void 0&&(t[f]=h),f===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!zk.has(r)||t.length!==2)return;const[i,a]=t,s=dT(i),u=dT(a);if(s!==u)if(eT(s)&&eT(u))for(let f=0;f<t.length;f++){const d=t[f];typeof d=="string"&&(t[f]=parseFloat(d))}else yu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||use(t[i]))&&r.push(i);r.length&&cse(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=yu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var u;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=yu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(u=this.removedTransforms)!=null&&u.length&&this.removedTransforms.forEach(([f,d])=>{t.getValue(f).set(d)}),this.resolveNoneKeyframes()}}class oO extends ise{constructor(){super(...arguments),this.KeyframeResolver=fse}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Br(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function uO(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}function dse(e){return window.getComputedStyle(e)}class hse extends oO{constructor(){super(...arguments),this.type="html",this.renderInstance=uO}readValueFromInstance(t,n){var r;if(cc.has(n))return(r=this.projection)!=null&&r.isProjecting?A1(n):Nie(t,n);{const i=dse(t),a=(ok(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Tae(t,n)}build(t,n,r){q3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return G3(t,n,r)}}const lO=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function pse(e,t,n,r){uO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(lO.has(i)?i:j3(i),t.attrs[i])}class mse extends oO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Zk}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(cc.has(n)){const r=iO(n);return r&&r.default||0}return n=lO.has(n)?n:j3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return mk(t,n,r)}build(t,n,r){fk(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){pse(t,n,r,i)}mount(t){this.isSVGTag=hk(t.tagName),super.mount(t)}}const gse=(e,t)=>W3(e)?new mse(t):new hse(t,{allowProjection:e!==I.Fragment}),vse={renderer:gse,...Eae,...Hae},yse=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cO=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),bse=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),$se=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,n)=>new Set([...t,...n]),[])),xse=(e,t)=>{t=t||$se(e);let n=t,r=t;cO(t)&&(n=t.map(a=>a.label),r=t.map(a=>a.key));const i=e.map(a=>r.map(s=>wse(s,a)));return[n,...i]},wse=(e,t)=>{const n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,i,a,s){const u=r[i];if(u==null)s.splice(1);else return u},t);return n===void 0?e in t?t[e]:"":n},Cse=e=>typeof e>"u"||e===null?"":e,fO=(e,t=",",n='"')=>e.filter(r=>r).map(r=>r.map(i=>Cse(i)).map(i=>`${n}${i}${n}`).join(t)).join(`
86
+ `),Ese=(e,t,n,r)=>fO(t?[t,...e]:e,n,r),Sse=(e,t,n,r)=>fO(xse(e,t),n,r),Dse=(e,t,n,r)=>t?`${t.join(n)}
87
+ ${e}`:e.replace(/"/g,'""'),dO=(e,t,n,r)=>{if(cO(e))return Sse(e,t,n,r);if(bse(e))return Ese(e,t,n,r);if(typeof e=="string")return Dse(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},hO=(e,t,n,r,i)=>{const a=dO(e,n,r,i),s=yse()?"application/csv":"text/csv",u=new Blob([t?"\uFEFF":"",a],{type:s}),f=`data:${s};charset=utf-8,${t?"\uFEFF":""}${a}`,d=window.URL||window.webkitURL;return typeof d.createObjectURL>"u"?f:d.createObjectURL(u)};var xh={exports:{}},wh={exports:{}},sn={};/** @license React v16.13.1
88
+ * react-is.production.min.js
89
+ *
90
+ * Copyright (c) Facebook, Inc. and its affiliates.
91
+ *
92
+ * This source code is licensed under the MIT license found in the
93
+ * LICENSE file in the root directory of this source tree.
94
+ */var pT;function Ase(){if(pT)return sn;pT=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var F=_.$$typeof;switch(F){case t:switch(_=_.type,_){case f:case d:case r:case a:case i:case m:return _;default:switch(_=_&&_.$$typeof,_){case u:case h:case w:case b:case s:return _;default:return F}}case n:return F}}}function R(_){return S(_)===d}return sn.AsyncMode=f,sn.ConcurrentMode=d,sn.ContextConsumer=u,sn.ContextProvider=s,sn.Element=t,sn.ForwardRef=h,sn.Fragment=r,sn.Lazy=w,sn.Memo=b,sn.Portal=n,sn.Profiler=a,sn.StrictMode=i,sn.Suspense=m,sn.isAsyncMode=function(_){return R(_)||S(_)===f},sn.isConcurrentMode=R,sn.isContextConsumer=function(_){return S(_)===u},sn.isContextProvider=function(_){return S(_)===s},sn.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},sn.isForwardRef=function(_){return S(_)===h},sn.isFragment=function(_){return S(_)===r},sn.isLazy=function(_){return S(_)===w},sn.isMemo=function(_){return S(_)===b},sn.isPortal=function(_){return S(_)===n},sn.isProfiler=function(_){return S(_)===a},sn.isStrictMode=function(_){return S(_)===i},sn.isSuspense=function(_){return S(_)===m},sn.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===d||_===a||_===i||_===m||_===g||typeof _=="object"&&_!==null&&(_.$$typeof===w||_.$$typeof===b||_.$$typeof===s||_.$$typeof===u||_.$$typeof===h||_.$$typeof===A||_.$$typeof===C||_.$$typeof===E||_.$$typeof===x)},sn.typeOf=S,sn}var on={};/** @license React v16.13.1
95
+ * react-is.development.js
96
+ *
97
+ * Copyright (c) Facebook, Inc. and its affiliates.
98
+ *
99
+ * This source code is licensed under the MIT license found in the
100
+ * LICENSE file in the root directory of this source tree.
101
+ */var mT;function Tse(){return mT||(mT=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function S(Te){return typeof Te=="string"||typeof Te=="function"||Te===r||Te===d||Te===a||Te===i||Te===m||Te===g||typeof Te=="object"&&Te!==null&&(Te.$$typeof===w||Te.$$typeof===b||Te.$$typeof===s||Te.$$typeof===u||Te.$$typeof===h||Te.$$typeof===A||Te.$$typeof===C||Te.$$typeof===E||Te.$$typeof===x)}function R(Te){if(typeof Te=="object"&&Te!==null){var He=Te.$$typeof;switch(He){case t:var ht=Te.type;switch(ht){case f:case d:case r:case a:case i:case m:return ht;default:var Ht=ht&&ht.$$typeof;switch(Ht){case u:case h:case w:case b:case s:return Ht;default:return He}}case n:return He}}}var _=f,F=d,z=u,ie=s,ge=t,oe=h,O=r,we=w,Se=b,U=n,ee=a,K=i,k=m,N=!1;function te(Te){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(Te)||R(Te)===f}function j(Te){return R(Te)===d}function ce(Te){return R(Te)===u}function ue(Te){return R(Te)===s}function Ae(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===t}function _e(Te){return R(Te)===h}function Le(Te){return R(Te)===r}function Ye(Te){return R(Te)===w}function Qe(Te){return R(Te)===b}function Ue(Te){return R(Te)===n}function Ge(Te){return R(Te)===a}function Ie(Te){return R(Te)===i}function Ne(Te){return R(Te)===m}on.AsyncMode=_,on.ConcurrentMode=F,on.ContextConsumer=z,on.ContextProvider=ie,on.Element=ge,on.ForwardRef=oe,on.Fragment=O,on.Lazy=we,on.Memo=Se,on.Portal=U,on.Profiler=ee,on.StrictMode=K,on.Suspense=k,on.isAsyncMode=te,on.isConcurrentMode=j,on.isContextConsumer=ce,on.isContextProvider=ue,on.isElement=Ae,on.isForwardRef=_e,on.isFragment=Le,on.isLazy=Ye,on.isMemo=Qe,on.isPortal=Ue,on.isProfiler=Ge,on.isStrictMode=Ie,on.isSuspense=Ne,on.isValidElementType=S,on.typeOf=R}()),on}var gT;function pO(){return gT||(gT=1,process.env.NODE_ENV==="production"?wh.exports=Ase():wh.exports=Tse()),wh.exports}/*
102
+ object-assign
103
+ (c) Sindre Sorhus
104
+ @license MIT
105
+ */var q0,vT;function Pse(){if(vT)return q0;vT=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var f=Object.getOwnPropertyNames(s).map(function(h){return s[h]});if(f.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return q0=i()?Object.assign:function(a,s){for(var u,f=r(a),d,h=1;h<arguments.length;h++){u=Object(arguments[h]);for(var m in u)t.call(u,m)&&(f[m]=u[m]);if(e){d=e(u);for(var g=0;g<d.length;g++)n.call(u,d[g])&&(f[d[g]]=u[d[g]])}}return f},q0}var z0,yT;function s$(){if(yT)return z0;yT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return z0=e,z0}var W0,bT;function mO(){return bT||(bT=1,W0=Function.call.bind(Object.prototype.hasOwnProperty)),W0}var H0,$T;function _se(){if($T)return H0;$T=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=s$(),n={},r=mO();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(a,s,u,f,d){if(process.env.NODE_ENV!=="production"){for(var h in a)if(r(a,h)){var m;try{if(typeof a[h]!="function"){var g=Error((f||"React class")+": "+u+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=a[h](s,h,f,u,null,t)}catch(w){m=w}if(m&&!(m instanceof Error)&&e((f||"React class")+": type specification of "+u+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var b=d?d():"";e("Failed "+u+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},H0=i,H0}var G0,xT;function Mse(){if(xT)return G0;xT=1;var e=pO(),t=Pse(),n=s$(),r=mO(),i=_se(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var f="Warning: "+u;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function s(){return null}return G0=function(u,f){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(j){var ce=j&&(d&&j[d]||j[h]);if(typeof ce=="function")return ce}var g="<<anonymous>>",b={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:E(),arrayOf:S,element:R(),elementType:_(),instanceOf:F,node:oe(),objectOf:ie,oneOf:z,oneOfType:ge,shape:we,exact:Se};function w(j,ce){return j===ce?j!==0||1/j===1/ce:j!==j&&ce!==ce}function x(j,ce){this.message=j,this.data=ce&&typeof ce=="object"?ce:{},this.stack=""}x.prototype=Error.prototype;function A(j){if(process.env.NODE_ENV!=="production")var ce={},ue=0;function Ae(Le,Ye,Qe,Ue,Ge,Ie,Ne){if(Ue=Ue||g,Ie=Ie||Qe,Ne!==n){if(f){var Te=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Te.name="Invariant Violation",Te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var He=Ue+":"+Qe;!ce[He]&&ue<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ie+"` prop on `"+Ue+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ce[He]=!0,ue++)}}return Ye[Qe]==null?Le?Ye[Qe]===null?new x("The "+Ge+" `"+Ie+"` is marked as required "+("in `"+Ue+"`, but its value is `null`.")):new x("The "+Ge+" `"+Ie+"` is marked as required in "+("`"+Ue+"`, but its value is `undefined`.")):null:j(Ye,Qe,Ue,Ge,Ie)}var _e=Ae.bind(null,!1);return _e.isRequired=Ae.bind(null,!0),_e}function C(j){function ce(ue,Ae,_e,Le,Ye,Qe){var Ue=ue[Ae],Ge=K(Ue);if(Ge!==j){var Ie=k(Ue);return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ie+"` supplied to `"+_e+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return A(ce)}function E(){return A(s)}function S(j){function ce(ue,Ae,_e,Le,Ye){if(typeof j!="function")return new x("Property `"+Ye+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Qe=ue[Ae];if(!Array.isArray(Qe)){var Ue=K(Qe);return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ue+"` supplied to `"+_e+"`, expected an array."))}for(var Ge=0;Ge<Qe.length;Ge++){var Ie=j(Qe,Ge,_e,Le,Ye+"["+Ge+"]",n);if(Ie instanceof Error)return Ie}return null}return A(ce)}function R(){function j(ce,ue,Ae,_e,Le){var Ye=ce[ue];if(!u(Ye)){var Qe=K(Ye);return new x("Invalid "+_e+" `"+Le+"` of type "+("`"+Qe+"` supplied to `"+Ae+"`, expected a single ReactElement."))}return null}return A(j)}function _(){function j(ce,ue,Ae,_e,Le){var Ye=ce[ue];if(!e.isValidElementType(Ye)){var Qe=K(Ye);return new x("Invalid "+_e+" `"+Le+"` of type "+("`"+Qe+"` supplied to `"+Ae+"`, expected a single ReactElement type."))}return null}return A(j)}function F(j){function ce(ue,Ae,_e,Le,Ye){if(!(ue[Ae]instanceof j)){var Qe=j.name||g,Ue=te(ue[Ae]);return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ue+"` supplied to `"+_e+"`, expected ")+("instance of `"+Qe+"`."))}return null}return A(ce)}function z(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function ce(ue,Ae,_e,Le,Ye){for(var Qe=ue[Ae],Ue=0;Ue<j.length;Ue++)if(w(Qe,j[Ue]))return null;var Ge=JSON.stringify(j,function(Ne,Te){var He=k(Te);return He==="symbol"?String(Te):Te});return new x("Invalid "+Le+" `"+Ye+"` of value `"+String(Qe)+"` "+("supplied to `"+_e+"`, expected one of "+Ge+"."))}return A(ce)}function ie(j){function ce(ue,Ae,_e,Le,Ye){if(typeof j!="function")return new x("Property `"+Ye+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Qe=ue[Ae],Ue=K(Qe);if(Ue!=="object")return new x("Invalid "+Le+" `"+Ye+"` of type "+("`"+Ue+"` supplied to `"+_e+"`, expected an object."));for(var Ge in Qe)if(r(Qe,Ge)){var Ie=j(Qe,Ge,_e,Le,Ye+"."+Ge,n);if(Ie instanceof Error)return Ie}return null}return A(ce)}function ge(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var ce=0;ce<j.length;ce++){var ue=j[ce];if(typeof ue!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(ue)+" at index "+ce+"."),s}function Ae(_e,Le,Ye,Qe,Ue){for(var Ge=[],Ie=0;Ie<j.length;Ie++){var Ne=j[Ie],Te=Ne(_e,Le,Ye,Qe,Ue,n);if(Te==null)return null;Te.data&&r(Te.data,"expectedType")&&Ge.push(Te.data.expectedType)}var He=Ge.length>0?", expected one of type ["+Ge.join(", ")+"]":"";return new x("Invalid "+Qe+" `"+Ue+"` supplied to "+("`"+Ye+"`"+He+"."))}return A(Ae)}function oe(){function j(ce,ue,Ae,_e,Le){return U(ce[ue])?null:new x("Invalid "+_e+" `"+Le+"` supplied to "+("`"+Ae+"`, expected a ReactNode."))}return A(j)}function O(j,ce,ue,Ae,_e){return new x((j||"React class")+": "+ce+" type `"+ue+"."+Ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function we(j){function ce(ue,Ae,_e,Le,Ye){var Qe=ue[Ae],Ue=K(Qe);if(Ue!=="object")return new x("Invalid "+Le+" `"+Ye+"` of type `"+Ue+"` "+("supplied to `"+_e+"`, expected `object`."));for(var Ge in j){var Ie=j[Ge];if(typeof Ie!="function")return O(_e,Le,Ye,Ge,k(Ie));var Ne=Ie(Qe,Ge,_e,Le,Ye+"."+Ge,n);if(Ne)return Ne}return null}return A(ce)}function Se(j){function ce(ue,Ae,_e,Le,Ye){var Qe=ue[Ae],Ue=K(Qe);if(Ue!=="object")return new x("Invalid "+Le+" `"+Ye+"` of type `"+Ue+"` "+("supplied to `"+_e+"`, expected `object`."));var Ge=t({},ue[Ae],j);for(var Ie in Ge){var Ne=j[Ie];if(r(j,Ie)&&typeof Ne!="function")return O(_e,Le,Ye,Ie,k(Ne));if(!Ne)return new x("Invalid "+Le+" `"+Ye+"` key `"+Ie+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(ue[Ae],null," ")+`
106
+ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var Te=Ne(Qe,Ie,_e,Le,Ye+"."+Ie,n);if(Te)return Te}return null}return A(ce)}function U(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(U);if(j===null||u(j))return!0;var ce=m(j);if(ce){var ue=ce.call(j),Ae;if(ce!==j.entries){for(;!(Ae=ue.next()).done;)if(!U(Ae.value))return!1}else for(;!(Ae=ue.next()).done;){var _e=Ae.value;if(_e&&!U(_e[1]))return!1}}else return!1;return!0;default:return!1}}function ee(j,ce){return j==="symbol"?!0:ce?ce["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ce instanceof Symbol:!1}function K(j){var ce=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":ee(ce,j)?"symbol":ce}function k(j){if(typeof j>"u"||j===null)return""+j;var ce=K(j);if(ce==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return ce}function N(j){var ce=k(j);switch(ce){case"array":case"object":return"an "+ce;case"boolean":case"date":case"regexp":return"a "+ce;default:return ce}}function te(j){return!j.constructor||!j.constructor.name?g:j.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},G0}var Y0,wT;function Fse(){if(wT)return Y0;wT=1;var e=s$();function t(){}function n(){}return n.resetWarningCache=t,Y0=function(){function r(s,u,f,d,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Y0}var CT;function Rse(){if(CT)return xh.exports;if(CT=1,process.env.NODE_ENV!=="production"){var e=pO(),t=!0;xh.exports=Mse()(e.isElement,t)}else xh.exports=Fse()();return xh.exports}var bi=Rse();const rt=ai(bi),gO={data:bi.oneOfType([bi.string,bi.array,bi.func]).isRequired,headers:bi.array,target:bi.string,separator:bi.string,filename:bi.string,uFEFF:bi.bool,onClick:bi.func,asyncOnClick:bi.bool,enclosingCharacter:bi.string},vO={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},kse={target:"_blank"};class ET extends fe.default.Component{constructor(t){super(t),this.state={}}buildURI(){return hO(...arguments)}componentDidMount(){const{data:t,headers:n,separator:r,enclosingCharacter:i,uFEFF:a,target:s,specs:u,replace:f}=this.props;this.state.page=window.open(this.buildURI(t,a,n,r,i),s,u,f)}getWindow(){return this.state.page}render(){return null}}zc(ET,"defaultProps",Object.assign(vO,kse)),zc(ET,"propTypes",gO);var Eh;let Ose=(Eh=class extends fe.default.Component{constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return hO(...arguments)}handleLegacy(t,n=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:r,headers:i,separator:a,filename:s,enclosingCharacter:u,uFEFF:f}=this.props,d=n&&typeof r=="function"?r():r;let h=new Blob([f?"\uFEFF":"",dO(d,i,a,u)]);return window.navigator.msSaveBlob(h,s),!1}}handleAsyncClick(t){const n=r=>{if(r===!1){t.preventDefault();return}this.handleLegacy(t,!0)};this.props.onClick(t,n)}handleSyncClick(t){if(this.props.onClick(t)===!1){t.preventDefault();return}this.handleLegacy(t)}handleClick(){return t=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(t):this.handleSyncClick(t);this.handleLegacy(t)}}render(){const{data:t,headers:n,separator:r,filename:i,uFEFF:a,children:s,onClick:u,asyncOnClick:f,enclosingCharacter:d,...h}=this.props,g=typeof window>"u"?"":this.buildURI(t,a,n,r,d);return Qa.jsx("a",{download:i,...h,ref:b=>this.link=b,target:"_self",href:g,onClick:this.handleClick(),children:s})}},zc(Eh,"defaultProps",vO),zc(Eh,"propTypes",gO),Eh);const Ise=Ose;var Z0,ST;function Lse(){if(ST)return Z0;ST=1;function e(t){return t==null}return Z0=e,Z0}var Vse=Lse();const Bse=ai(Vse);/**
107
+ * react-table
108
+ *
109
+ * Copyright (c) TanStack
110
+ *
111
+ * This source code is licensed under the MIT license found in the
112
+ * LICENSE.md file in the root directory of this source tree.
113
+ *
114
+ * @license MIT
115
+ */function Nse(e,t){return e?jse(e)?fe.createElement(e,t):e:null}function jse(e){return Kse(e)||typeof e=="function"||Use(e)}function Kse(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Use(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var X0,DT;function qse(){if(DT)return X0;DT=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return X0=e,X0}var J0,AT;function zse(){if(AT)return J0;AT=1;var e=tc(),t=Object.create,n=function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var a=new r;return r.prototype=void 0,a}}();return J0=n,J0}var Q0,TT;function Wse(){if(TT)return Q0;TT=1;var e=bF(),t=e(Object.getPrototypeOf,Object);return Q0=t,Q0}var eb,PT;function Hse(){if(PT)return eb;PT=1;var e=qse(),t=zse(),n=hR(),r=dR(),i=Wse(),a=rs(),s=F4(),u=P4(),f=tc(),d=O4();function h(m,g,b){var w=a(m),x=w||s(m)||d(m);if(g=r(g,4),b==null){var A=m&&m.constructor;x?b=w?new A:[]:f(m)?b=u(A)?t(i(m)):{}:b={}}return(x?e:n)(m,function(C,E,S){return g(b,C,E,S)}),b}return eb=h,eb}var Gse=Hse();const Yse=ai(Gse);function yO(e){return t=>typeof t===e}var Zse=yO("function"),Xse=e=>e===null,_T=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",MT=e=>!Jse(e)&&!Xse(e)&&(Zse(e)||typeof e=="object"),Jse=yO("undefined");function Qse(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Nr(e[r],t[r]))return!1;return!0}function eoe(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function toe(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!Nr(n[1],t.get(n[0])))return!1;return!0}function noe(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function Nr(e,t){if(e===t)return!0;if(e&&MT(e)&&t&&MT(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Qse(e,t);if(e instanceof Map&&t instanceof Map)return toe(e,t);if(e instanceof Set&&t instanceof Set)return noe(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return eoe(e,t);if(_T(e)&&_T(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!Nr(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var roe=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ioe=["bigint","boolean","null","number","string","symbol","undefined"];function Dm(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(aoe(t))return t}function wa(e){return t=>Dm(t)===e}function aoe(e){return roe.includes(e)}function pc(e){return t=>typeof t===e}function soe(e){return ioe.includes(e)}var ooe=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ut(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ut.array(e))return"Array";if(ut.plainFunction(e))return"Function";const t=Dm(e);return t||"Object"}ut.array=Array.isArray;ut.arrayOf=(e,t)=>!ut.array(e)&&!ut.function(t)?!1:e.every(n=>t(n));ut.asyncGeneratorFunction=e=>Dm(e)==="AsyncGeneratorFunction";ut.asyncFunction=wa("AsyncFunction");ut.bigint=pc("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=wa("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&ooe.every(t=>t in e);ut.empty=e=>ut.string(e)&&e.length===0||ut.array(e)&&e.length===0||ut.object(e)&&!ut.map(e)&&!ut.set(e)&&Object.keys(e).length===0||ut.set(e)&&e.size===0||ut.map(e)&&e.size===0;ut.error=wa("Error");ut.function=pc("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=wa("GeneratorFunction");ut.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;ut.iterable=e=>!ut.nullOrUndefined(e)&&ut.function(e[Symbol.iterator]);ut.map=wa("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>pc("number")(e)&&!ut.nan(e);ut.numericString=e=>ut.string(e)&&e.length>0&&!Number.isNaN(Number(e));ut.object=e=>!ut.nullOrUndefined(e)&&(ut.function(e)||typeof e=="object");ut.oneOf=(e,t)=>ut.array(e)?e.indexOf(t)>-1:!1;ut.plainFunction=wa("Function");ut.plainObject=e=>{if(Dm(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||soe(typeof e);ut.promise=wa("Promise");ut.propertyOf=(e,t,n)=>{if(!ut.object(e)||!t)return!1;const r=e[t];return ut.function(n)?n(r):ut.defined(r)};ut.regexp=wa("RegExp");ut.set=wa("Set");ut.string=pc("string");ut.symbol=pc("symbol");ut.undefined=pc("undefined");ut.weakMap=wa("WeakMap");ut.weakSet=wa("WeakSet");var dt=ut;function uoe(...e){return e.every(t=>dt.string(t)||dt.array(t)||dt.plainObject(t))}function loe(e,t,n){return bO(e,t)?[e,t].every(dt.array)?!e.some(IT(n))&&t.some(IT(n)):[e,t].every(dt.plainObject)?!Object.entries(e).some(OT(n))&&Object.entries(t).some(OT(n)):t===n:!1}function FT(e,t,n){const{actual:r,key:i,previous:a,type:s}=n,u=Ha(e,i),f=Ha(t,i);let d=[u,f].every(dt.number)&&(s==="increased"?u<f:u>f);return dt.undefined(r)||(d=d&&f===r),dt.undefined(a)||(d=d&&u===a),d}function RT(e,t,n){const{key:r,type:i,value:a}=n,s=Ha(e,r),u=Ha(t,r),f=i==="added"?s:u,d=i==="added"?u:s;if(!dt.nullOrUndefined(a)){if(dt.defined(f)){if(dt.array(f)||dt.plainObject(f))return loe(f,d,a)}else return Nr(d,a);return!1}return[s,u].every(dt.array)?!d.every(o$(f)):[s,u].every(dt.plainObject)?coe(Object.keys(f),Object.keys(d)):![s,u].every(h=>dt.primitive(h)&&dt.defined(h))&&(i==="added"?!dt.defined(s)&&dt.defined(u):dt.defined(s)&&!dt.defined(u))}function kT(e,t,{key:n}={}){let r=Ha(e,n),i=Ha(t,n);if(!bO(r,i))throw new TypeError("Inputs have different types");if(!uoe(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(dt.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function OT(e){return([t,n])=>dt.array(e)?Nr(e,n)||e.some(r=>Nr(r,n)||dt.array(n)&&o$(n)(r)):dt.plainObject(e)&&e[t]?!!e[t]&&Nr(e[t],n):Nr(e,n)}function coe(e,t){return t.some(n=>!e.includes(n))}function IT(e){return t=>dt.array(e)?e.some(n=>Nr(n,t)||dt.array(t)&&o$(t)(n)):Nr(e,t)}function tf(e,t){return dt.array(e)?e.some(n=>Nr(n,t)):Nr(e,t)}function o$(e){return t=>e.some(n=>Nr(n,t))}function bO(...e){return e.every(dt.array)||e.every(dt.number)||e.every(dt.plainObject)||e.every(dt.string)}function Ha(e,t){return dt.plainObject(e)||dt.array(e)?dt.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):dt.number(t)?e[t]:e:e}function _p(e,t){if([e,t].some(dt.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>dt.plainObject(h)||dt.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return RT(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=Ha(e,h),w=Ha(t,h),x=dt.defined(m),A=dt.defined(g);if(x||A){const C=A?tf(g,b):!tf(m,b),E=tf(m,w);return C&&E}return[b,w].every(dt.array)||[b,w].every(dt.plainObject)?!Nr(b,w):b!==w}catch{return!1}},changedFrom:(h,m,g)=>{if(!dt.defined(h))return!1;try{const b=Ha(e,h),w=Ha(t,h),x=dt.defined(g);return tf(m,b)&&(x?tf(g,w):!x)}catch{return!1}},decreased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return FT(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=kT(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=kT(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return FT(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return RT(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var tb,LT;function foe(){if(LT)return tb;LT=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;tb={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=s);var b=r(),w=d[u],x=m.ease||a,A=isNaN(m.duration)?350:+m.duration,C=!1;return w===h?g(e,d[u]):requestAnimationFrame(S),E;function E(){C=!0}function S(R){if(C)return g(t,d[u]);var _=r(),F=n(1,(_-b)/A),z=x(F);d[u]=z*(h-w)+w,F<1?requestAnimationFrame(S):requestAnimationFrame(function(){g(null,d[u])})}}}function a(u){return .5*(1-Math.cos(Math.PI*u))}function s(){}return tb}var doe=foe();const hoe=ai(doe);var qh={exports:{}},poe=qh.exports,VT;function moe(){return VT||(VT=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(poe,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(qh)),qh.exports}var goe=moe();const $O=ai(goe);var nb,BT;function voe(){if(BT)return nb;BT=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,nb=n,nb}var yoe=voe();const NT=ai(yoe);var rb,jT;function boe(){if(jT)return rb;jT=1;var e=function(E){return t(E)&&!n(E)};function t(C){return!!C&&typeof C=="object"}function n(C){var E=Object.prototype.toString.call(C);return E==="[object RegExp]"||E==="[object Date]"||a(C)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(C){return C.$$typeof===i}function s(C){return Array.isArray(C)?[]:{}}function u(C,E){return E.clone!==!1&&E.isMergeableObject(C)?x(s(C),C,E):C}function f(C,E,S){return C.concat(E).map(function(R){return u(R,S)})}function d(C,E){if(!E.customMerge)return x;var S=E.customMerge(C);return typeof S=="function"?S:x}function h(C){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(C).filter(function(E){return Object.propertyIsEnumerable.call(C,E)}):[]}function m(C){return Object.keys(C).concat(h(C))}function g(C,E){try{return E in C}catch{return!1}}function b(C,E){return g(C,E)&&!(Object.hasOwnProperty.call(C,E)&&Object.propertyIsEnumerable.call(C,E))}function w(C,E,S){var R={};return S.isMergeableObject(C)&&m(C).forEach(function(_){R[_]=u(C[_],S)}),m(E).forEach(function(_){b(C,_)||(g(C,_)&&S.isMergeableObject(E[_])?R[_]=d(_,S)(C[_],E[_],S):R[_]=u(E[_],S))}),R}function x(C,E,S){S=S||{},S.arrayMerge=S.arrayMerge||f,S.isMergeableObject=S.isMergeableObject||e,S.cloneUnlessOtherwiseSpecified=u;var R=Array.isArray(E),_=Array.isArray(C),F=R===_;return F?R?S.arrayMerge(C,E,S):w(C,E,S):u(E,S)}x.all=function(E,S){if(!Array.isArray(E))throw new Error("first argument should be an array");return E.reduce(function(R,_){return x(R,_,S)},{})};var A=x;return rb=A,rb}var $oe=boe();const ma=ai($oe);/**!
116
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
117
+ * @version 1.16.1
118
+ * @license
119
+ * Copyright (c) 2016 Federico Zivolo and contributors
120
+ *
121
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
122
+ * of this software and associated documentation files (the "Software"), to deal
123
+ * in the Software without restriction, including without limitation the rights
124
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
125
+ * copies of the Software, and to permit persons to whom the Software is
126
+ * furnished to do so, subject to the following conditions:
127
+ *
128
+ * The above copyright notice and this permission notice shall be included in all
129
+ * copies or substantial portions of the Software.
130
+ *
131
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
132
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
133
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
134
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
135
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
136
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
137
+ * SOFTWARE.
138
+ */var $d=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",xoe=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if($d&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function woe(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Coe(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},xoe))}}var Eoe=$d&&window.Promise,Soe=Eoe?woe:Coe;function xO(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Ru(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function u$(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function xd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ru(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:xd(u$(e))}function wO(e){return e&&e.referenceNode?e.referenceNode:e}var KT=$d&&!!(window.MSInputMethodContext&&document.documentMode),UT=$d&&/MSIE 10/.test(navigator.userAgent);function mc(e){return e===11?KT:e===10?UT:KT||UT}function Gl(e){if(!e)return document.documentElement;for(var t=mc(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Ru(n,"position")==="static"?Gl(n):n}function Doe(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Gl(e.firstElementChild)===e}function I1(e){return e.parentNode!==null?I1(e.parentNode):e}function Mp(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var s=a.commonAncestorContainer;if(e!==s&&t!==s||r.contains(i))return Doe(s)?s:Gl(s);var u=I1(e);return u.host?Mp(u.host,t):Mp(e,I1(t).host)}function Yl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function Aoe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Yl(t,"top"),i=Yl(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function qT(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function zT(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],mc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function CO(e){var t=e.body,n=e.documentElement,r=mc(10)&&getComputedStyle(n);return{height:zT("Height",t,n,r),width:zT("Width",t,n,r)}}var Toe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Poe=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Zl=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function wo(e){return Wi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function L1(e){var t={};try{if(mc(10)){t=e.getBoundingClientRect();var n=Yl(e,"top"),r=Yl(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName==="HTML"?CO(e.ownerDocument):{},s=a.width||e.clientWidth||i.width,u=a.height||e.clientHeight||i.height,f=e.offsetWidth-s,d=e.offsetHeight-u;if(f||d){var h=Ru(e);f-=qT(h,"x"),d-=qT(h,"y"),i.width-=f,i.height-=d}return wo(i)}function l$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=mc(10),i=t.nodeName==="HTML",a=L1(e),s=L1(t),u=xd(e),f=Ru(t),d=parseFloat(f.borderTopWidth),h=parseFloat(f.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var m=wo({top:a.top-s.top-d,left:a.left-s.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(f.marginTop),b=parseFloat(f.marginLeft);m.top-=d-g,m.bottom-=d-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(m=Aoe(m,t)),m}function _oe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=l$(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:Yl(n),u=t?0:Yl(n,"left"),f={top:s-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:a};return wo(f)}function EO(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ru(e,"position")==="fixed")return!0;var n=u$(e);return n?EO(n):!1}function SO(e){if(!e||!e.parentElement||mc())return document.documentElement;for(var t=e.parentElement;t&&Ru(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function c$(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},s=i?SO(e):Mp(e,wO(t));if(r==="viewport")a=_oe(s,i);else{var u=void 0;r==="scrollParent"?(u=xd(u$(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var f=l$(u,s,i);if(u.nodeName==="HTML"&&!EO(s)){var d=CO(e.ownerDocument),h=d.height,m=d.width;a.top+=f.top-f.marginTop,a.bottom=h+f.top,a.left+=f.left-f.marginLeft,a.right=m+f.left}else a=f}n=n||0;var g=typeof n=="number";return a.left+=g?n:n.left||0,a.top+=g?n:n.top||0,a.right-=g?n:n.right||0,a.bottom-=g?n:n.bottom||0,a}function Moe(e){var t=e.width,n=e.height;return t*n}function DO(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var s=c$(n,r,a,i),u={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},f=Object.keys(u).map(function(g){return Wi({key:g},u[g],{area:Moe(u[g])})}).sort(function(g,b){return b.area-g.area}),d=f.filter(function(g){var b=g.width,w=g.height;return b>=n.clientWidth&&w>=n.clientHeight}),h=d.length>0?d[0].key:f[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function AO(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?SO(t):Mp(t,wO(n));return l$(n,i,r)}function TO(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+r};return a}function Fp(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function PO(e,t,n){n=n.split("-")[0];var r=TO(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,s=a?"top":"left",u=a?"left":"top",f=a?"height":"width",d=a?"width":"height";return i[s]=t[s]+t[f]/2-r[f]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[Fp(u)],i}function wd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Foe(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=wd(e,function(i){return i[t]===n});return e.indexOf(r)}function _O(e,t,n){var r=n===void 0?e:e.slice(0,Foe(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&xO(a)&&(t.offsets.popper=wo(t.offsets.popper),t.offsets.reference=wo(t.offsets.reference),t=a(t,i))}),t}function Roe(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=AO(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=DO(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=PO(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=_O(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function MO(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function f$(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],a=i?""+i+n:e;if(typeof document.body.style[a]<"u")return a}return null}function koe(){return this.state.isDestroyed=!0,MO(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[f$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function FO(e){var t=e.ownerDocument;return t?t.defaultView:window}function RO(e,t,n,r){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||RO(xd(a.parentNode),t,n,r),r.push(a)}function Ooe(e,t,n,r){n.updateBound=r,FO(e).addEventListener("resize",n.updateBound,{passive:!0});var i=xd(e);return RO(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Ioe(){this.state.eventsEnabled||(this.state=Ooe(this.reference,this.options,this.state,this.scheduleUpdate))}function Loe(e,t){return FO(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function Voe(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Loe(this.reference,this.state))}function d$(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function V1(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&d$(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Boe(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Noe(e){return V1(e.instance.popper,e.styles),Boe(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&V1(e.arrowElement,e.arrowStyles),e}function joe(e,t,n,r,i){var a=AO(i,t,e,n.positionFixed),s=DO(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),V1(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Koe(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,s=Math.floor,u=function(C){return C},f=a(i.width),d=a(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=f%2===d%2,b=f%2===1&&d%2===1,w=t?h||m||g?a:s:u,x=t?a:u;return{left:w(b&&!m&&t?r.left-1:r.left),top:x(r.top),bottom:x(r.bottom),right:w(r.right)}}var Uoe=$d&&/Firefox/i.test(navigator.userAgent);function qoe(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=wd(e.instance.modifiers,function(S){return S.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=a!==void 0?a:t.gpuAcceleration,u=Gl(e.instance.popper),f=L1(u),d={position:i.position},h=Koe(e,window.devicePixelRatio<2||!Uoe),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=f$("transform"),w=void 0,x=void 0;if(m==="bottom"?u.nodeName==="HTML"?x=-u.clientHeight+h.bottom:x=-f.height+h.bottom:x=h.top,g==="right"?u.nodeName==="HTML"?w=-u.clientWidth+h.right:w=-f.width+h.right:w=h.left,s&&b)d[b]="translate3d("+w+"px, "+x+"px, 0)",d[m]=0,d[g]=0,d.willChange="transform";else{var A=m==="bottom"?-1:1,C=g==="right"?-1:1;d[m]=x*A,d[g]=w*C,d.willChange=m+", "+g}var E={"x-placement":e.placement};return e.attributes=Wi({},E,e.attributes),e.styles=Wi({},d,e.styles),e.arrowStyles=Wi({},e.offsets.arrow,e.arrowStyles),e}function kO(e,t,n){var r=wd(e,function(u){var f=u.name;return f===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.order<r.order});if(!i){var a="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function zoe(e,t){var n;if(!kO(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,s=a.popper,u=a.reference,f=["left","right"].indexOf(i)!==-1,d=f?"height":"width",h=f?"Top":"Left",m=h.toLowerCase(),g=f?"left":"top",b=f?"bottom":"right",w=TO(r)[d];u[b]-w<s[m]&&(e.offsets.popper[m]-=s[m]-(u[b]-w)),u[m]+w>s[b]&&(e.offsets.popper[m]+=u[m]+w-s[b]),e.offsets.popper=wo(e.offsets.popper);var x=u[m]+u[d]/2-w/2,A=Ru(e.instance.popper),C=parseFloat(A["margin"+h]),E=parseFloat(A["border"+h+"Width"]),S=x-e.offsets.popper[m]-C-E;return S=Math.max(Math.min(s[d]-w,S),0),e.arrowElement=r,e.offsets.arrow=(n={},Zl(n,m,Math.round(S)),Zl(n,g,""),n),e}function Woe(e){return e==="end"?"start":e==="start"?"end":e}var OO=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ib=OO.slice(3);function WT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ib.indexOf(e),r=ib.slice(n+1).concat(ib.slice(0,n));return t?r.reverse():r}var ab={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Hoe(e,t){if(MO(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=c$(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Fp(r),a=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case ab.FLIP:s=[r,i];break;case ab.CLOCKWISE:s=WT(r);break;case ab.COUNTERCLOCKWISE:s=WT(r,!0);break;default:s=t.behavior}return s.forEach(function(u,f){if(r!==u||s.length===f+1)return e;r=e.placement.split("-")[0],i=Fp(r);var d=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(d.right)>m(h.left)||r==="right"&&m(d.left)<m(h.right)||r==="top"&&m(d.bottom)>m(h.top)||r==="bottom"&&m(d.top)<m(h.bottom),b=m(d.left)<m(n.left),w=m(d.right)>m(n.right),x=m(d.top)<m(n.top),A=m(d.bottom)>m(n.bottom),C=r==="left"&&b||r==="right"&&w||r==="top"&&x||r==="bottom"&&A,E=["top","bottom"].indexOf(r)!==-1,S=!!t.flipVariations&&(E&&a==="start"&&b||E&&a==="end"&&w||!E&&a==="start"&&x||!E&&a==="end"&&A),R=!!t.flipVariationsByContent&&(E&&a==="start"&&w||E&&a==="end"&&b||!E&&a==="start"&&A||!E&&a==="end"&&x),_=S||R;(g||C||_)&&(e.flipped=!0,(g||C)&&(r=s[f+1]),_&&(a=Woe(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Wi({},e.offsets.popper,PO(e.instance.popper,e.offsets.reference,e.placement)),e=_O(e.instance.modifiers,e,"flip"))}),e}function Goe(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,s=["top","bottom"].indexOf(i)!==-1,u=s?"right":"bottom",f=s?"left":"top",d=s?"width":"height";return n[u]<a(r[f])&&(e.offsets.popper[f]=a(r[f])-n[d]),n[f]>a(r[u])&&(e.offsets.popper[f]=a(r[u])),e}function Yoe(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],s=i[2];if(!a)return e;if(s.indexOf("%")===0){var u=void 0;switch(s){case"%p":u=n;break;case"%":case"%r":default:u=r}var f=wo(u);return f[t]/100*a}else if(s==="vh"||s==="vw"){var d=void 0;return s==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*a}else return a}function Zoe(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,s=e.split(/(\+|\-)/).map(function(h){return h.trim()}),u=s.indexOf(wd(s,function(h){return h.search(/,|\s/)!==-1}));s[u]&&s[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var f=/\s*,\s*|\s+/,d=u!==-1?[s.slice(0,u).concat([s[u].split(f)[0]]),[s[u].split(f)[1]].concat(s.slice(u+1))]:[s];return d=d.map(function(h,m){var g=(m===1?!a:a)?"height":"width",b=!1;return h.reduce(function(w,x){return w[w.length-1]===""&&["+","-"].indexOf(x)!==-1?(w[w.length-1]=x,b=!0,w):b?(w[w.length-1]+=x,b=!1,w):w.concat(x)},[]).map(function(w){return Yoe(w,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){d$(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function Xoe(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,s=i.reference,u=r.split("-")[0],f=void 0;return d$(+n)?f=[+n,0]:f=Zoe(n,a,s,u),u==="left"?(a.top+=f[0],a.left-=f[1]):u==="right"?(a.top+=f[0],a.left+=f[1]):u==="top"?(a.left+=f[0],a.top-=f[1]):u==="bottom"&&(a.left+=f[0],a.top+=f[1]),e.popper=a,e}function Joe(e,t){var n=t.boundariesElement||Gl(e.instance.popper);e.instance.reference===n&&(n=Gl(n));var r=f$("transform"),i=e.instance.popper.style,a=i.top,s=i.left,u=i[r];i.top="",i.left="",i[r]="";var f=c$(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=s,i[r]=u,t.boundaries=f;var d=t.priority,h=e.offsets.popper,m={primary:function(b){var w=h[b];return h[b]<f[b]&&!t.escapeWithReference&&(w=Math.max(h[b],f[b])),Zl({},b,w)},secondary:function(b){var w=b==="right"?"left":"top",x=h[w];return h[b]>f[b]&&!t.escapeWithReference&&(x=Math.min(h[w],f[b]-(b==="right"?h.width:h.height))),Zl({},w,x)}};return d.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Wi({},h,m[b](g))}),e.offsets.popper=h,e}function Qoe(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,s=i.popper,u=["bottom","top"].indexOf(n)!==-1,f=u?"left":"top",d=u?"width":"height",h={start:Zl({},f,a[f]),end:Zl({},f,a[f]+a[d]-s[d])};e.offsets.popper=Wi({},s,h[r])}return e}function eue(e){if(!kO(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=wd(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function tue(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,s=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[s?"left":"top"]=a[n]-(u?i[s?"width":"height"]:0),e.placement=Fp(t),e.offsets.popper=wo(i),e}var nue={shift:{order:100,enabled:!0,fn:Qoe},offset:{order:200,enabled:!0,fn:Xoe,offset:0},preventOverflow:{order:300,enabled:!0,fn:Joe,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Goe},arrow:{order:500,enabled:!0,fn:zoe,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Hoe,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:tue},hide:{order:800,enabled:!0,fn:eue},computeStyle:{order:850,enabled:!0,fn:qoe,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Noe,onLoad:joe,gpuAcceleration:void 0}},rue={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:nue},Yf=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Toe(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Soe(this.update.bind(this)),this.options=Wi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Wi({},e.Defaults.modifiers,i.modifiers)).forEach(function(s){r.options.modifiers[s]=Wi({},e.Defaults.modifiers[s]||{},i.modifiers?i.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return Wi({name:s},r.options.modifiers[s])}).sort(function(s,u){return s.order-u.order}),this.modifiers.forEach(function(s){s.enabled&&xO(s.onLoad)&&s.onLoad(r.reference,r.popper,r.options,s,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Poe(e,[{key:"update",value:function(){return Roe.call(this)}},{key:"destroy",value:function(){return koe.call(this)}},{key:"enableEventListeners",value:function(){return Ioe.call(this)}},{key:"disableEventListeners",value:function(){return Voe.call(this)}}]),e}();Yf.Utils=(typeof window<"u"?window:global).PopperUtils;Yf.placements=OO;Yf.Defaults=rue;var iue=["innerHTML","ownerDocument","style","attributes","nodeValue"],aue=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],sue=["bigint","boolean","null","number","string","symbol","undefined"];function Am(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(oue(t))return t}function Ca(e){return function(t){return Am(t)===e}}function oue(e){return aue.includes(e)}function gc(e){return function(t){return typeof t===e}}function uue(e){return sue.includes(e)}function Ke(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Ke.array(e))return"Array";if(Ke.plainFunction(e))return"Function";var t=Am(e);return t||"Object"}Ke.array=Array.isArray;Ke.arrayOf=function(e,t){return!Ke.array(e)&&!Ke.function(t)?!1:e.every(function(n){return t(n)})};Ke.asyncGeneratorFunction=function(e){return Am(e)==="AsyncGeneratorFunction"};Ke.asyncFunction=Ca("AsyncFunction");Ke.bigint=gc("bigint");Ke.boolean=function(e){return e===!0||e===!1};Ke.date=Ca("Date");Ke.defined=function(e){return!Ke.undefined(e)};Ke.domElement=function(e){return Ke.object(e)&&!Ke.plainObject(e)&&e.nodeType===1&&Ke.string(e.nodeName)&&iue.every(function(t){return t in e})};Ke.empty=function(e){return Ke.string(e)&&e.length===0||Ke.array(e)&&e.length===0||Ke.object(e)&&!Ke.map(e)&&!Ke.set(e)&&Object.keys(e).length===0||Ke.set(e)&&e.size===0||Ke.map(e)&&e.size===0};Ke.error=Ca("Error");Ke.function=gc("function");Ke.generator=function(e){return Ke.iterable(e)&&Ke.function(e.next)&&Ke.function(e.throw)};Ke.generatorFunction=Ca("GeneratorFunction");Ke.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};Ke.iterable=function(e){return!Ke.nullOrUndefined(e)&&Ke.function(e[Symbol.iterator])};Ke.map=Ca("Map");Ke.nan=function(e){return Number.isNaN(e)};Ke.null=function(e){return e===null};Ke.nullOrUndefined=function(e){return Ke.null(e)||Ke.undefined(e)};Ke.number=function(e){return gc("number")(e)&&!Ke.nan(e)};Ke.numericString=function(e){return Ke.string(e)&&e.length>0&&!Number.isNaN(Number(e))};Ke.object=function(e){return!Ke.nullOrUndefined(e)&&(Ke.function(e)||typeof e=="object")};Ke.oneOf=function(e,t){return Ke.array(e)?e.indexOf(t)>-1:!1};Ke.plainFunction=Ca("Function");Ke.plainObject=function(e){if(Am(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Ke.primitive=function(e){return Ke.null(e)||uue(typeof e)};Ke.promise=Ca("Promise");Ke.propertyOf=function(e,t,n){if(!Ke.object(e)||!t)return!1;var r=e[t];return Ke.function(n)?n(r):Ke.defined(r)};Ke.regexp=Ca("RegExp");Ke.set=Ca("Set");Ke.string=gc("string");Ke.symbol=gc("symbol");Ke.undefined=gc("undefined");Ke.weakMap=Ca("WeakMap");Ke.weakSet=Ca("WeakSet");function IO(e){return function(t){return typeof t===e}}var lue=IO("function"),cue=function(e){return e===null},HT=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},GT=function(e){return!fue(e)&&!cue(e)&&(lue(e)||typeof e=="object")},fue=IO("undefined"),B1=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function due(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!ri(e[r],t[r]))return!1;return!0}function hue(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function pue(e,t){var n,r,i,a;if(e.size!==t.size)return!1;try{for(var s=B1(e.entries()),u=s.next();!u.done;u=s.next()){var f=u.value;if(!t.has(f[0]))return!1}}catch(m){n={error:m}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var d=B1(e.entries()),h=d.next();!h.done;h=d.next()){var f=h.value;if(!ri(f[1],t.get(f[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}return!0}function mue(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=B1(e.entries()),a=i.next();!a.done;a=i.next()){var s=a.value;if(!t.has(s[0]))return!1}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function ri(e,t){if(e===t)return!0;if(e&&GT(e)&&t&&GT(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return due(e,t);if(e instanceof Map&&t instanceof Map)return pue(e,t);if(e instanceof Set&&t instanceof Set)return mue(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return hue(e,t);if(HT(e)&&HT(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!ri(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function gue(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return Ke.string(n)||Ke.array(n)||Ke.plainObject(n)})}function vue(e,t,n){return LO(e,t)?[e,t].every(Ke.array)?!e.some(QT(n))&&t.some(QT(n)):[e,t].every(Ke.plainObject)?!Object.entries(e).some(JT(n))&&Object.entries(t).some(JT(n)):t===n:!1}function YT(e,t,n){var r=n.actual,i=n.key,a=n.previous,s=n.type,u=Ga(e,i),f=Ga(t,i),d=[u,f].every(Ke.number)&&(s==="increased"?u<f:u>f);return Ke.undefined(r)||(d=d&&f===r),Ke.undefined(a)||(d=d&&u===a),d}function ZT(e,t,n){var r=n.key,i=n.type,a=n.value,s=Ga(e,r),u=Ga(t,r),f=i==="added"?s:u,d=i==="added"?u:s;if(!Ke.nullOrUndefined(a)){if(Ke.defined(f)){if(Ke.array(f)||Ke.plainObject(f))return vue(f,d,a)}else return ri(d,a);return!1}return[s,u].every(Ke.array)?!d.every(h$(f)):[s,u].every(Ke.plainObject)?yue(Object.keys(f),Object.keys(d)):![s,u].every(function(h){return Ke.primitive(h)&&Ke.defined(h)})&&(i==="added"?!Ke.defined(s)&&Ke.defined(u):Ke.defined(s)&&!Ke.defined(u))}function XT(e,t,n){var r=n===void 0?{}:n,i=r.key,a=Ga(e,i),s=Ga(t,i);if(!LO(a,s))throw new TypeError("Inputs have different types");if(!gue(a,s))throw new TypeError("Inputs don't have length");return[a,s].every(Ke.plainObject)&&(a=Object.keys(a),s=Object.keys(s)),[a,s]}function JT(e){return function(t){var n=t[0],r=t[1];return Ke.array(e)?ri(e,r)||e.some(function(i){return ri(i,r)||Ke.array(r)&&h$(r)(i)}):Ke.plainObject(e)&&e[n]?!!e[n]&&ri(e[n],r):ri(e,r)}}function yue(e,t){return t.some(function(n){return!e.includes(n)})}function QT(e){return function(t){return Ke.array(e)?e.some(function(n){return ri(n,t)||Ke.array(t)&&h$(t)(n)}):ri(e,t)}}function nf(e,t){return Ke.array(e)?e.some(function(n){return ri(n,t)}):ri(e,t)}function h$(e){return function(t){return e.some(function(n){return ri(n,t)})}}function LO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(Ke.array)||e.every(Ke.number)||e.every(Ke.plainObject)||e.every(Ke.string)}function Ga(e,t){if(Ke.plainObject(e)||Ke.array(e)){if(Ke.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return Ke.number(t)?e[t]:e}return e}function bue(e,t){if([e,t].some(Ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return Ke.plainObject(m)||Ke.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return ZT(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var w=Ga(e,m),x=Ga(t,m),A=Ke.defined(g),C=Ke.defined(b);if(A||C){var E=C?nf(b,w):!nf(g,w),S=nf(g,x);return E&&S}return[w,x].every(Ke.array)||[w,x].every(Ke.plainObject)?!ri(w,x):w!==x}catch{return!1}},i=function(m,g,b){if(!Ke.defined(m))return!1;try{var w=Ga(e,m),x=Ga(t,m),A=Ke.defined(b);return nf(g,w)&&(A?nf(b,x):!A)}catch{return!1}},a=function(m,g){return Ke.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},s=function(m,g,b){if(!Ke.defined(m))return!1;try{return YT(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},u=function(m){try{var g=XT(e,t,{key:m}),b=g[0],w=g[1];return!!b.length&&!w.length}catch{return!1}},f=function(m){try{var g=XT(e,t,{key:m}),b=g[0],w=g[1];return!b.length&&!!w.length}catch{return!1}},d=function(m,g,b){if(!Ke.defined(m))return!1;try{return YT(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return ZT(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:a,decreased:s,emptied:u,filled:f,increased:d,removed:h}}function e2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e2(Object(n),!0).forEach(function(r){Sr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BO(r.key),r)}}function Ed(e,t,n){return t&&$ue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sr(e,t,n){return t=BO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N1(e,t)}function Rp(e){return Rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rp(e)}function N1(e,t){return N1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},N1(e,t)}function xue(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wue(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function VO(e,t){if(e==null)return{};var n=wue(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ps(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cue(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ps(e)}function Dd(e){var t=xue();return function(){var r=Rp(e),i;if(t){var a=Rp(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Cue(this,i)}}function Eue(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BO(e){var t=Eue(e,"string");return typeof t=="symbol"?t:String(t)}var Sue={flip:{padding:20},preventOverflow:{padding:10}},Due="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Aue="The error message is optional, but must be a string if provided.";function Tue(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Pue(e,t){return Object.hasOwnProperty.call(e,t)}function _ue(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Mue(e,t){if(typeof e!="function")throw new TypeError(Due);if(t&&typeof t!="string")throw new TypeError(Aue)}function t2(e,t,n){return Mue(e,n),function(r,i,a){for(var s=arguments.length,u=new Array(s>3?s-3:0),f=3;f<s;f++)u[f-3]=arguments[f];return Tue(t,r,i,a)?Pue(r,i)?e.apply(void 0,[r,i,a].concat(u)):_ue(r,i,a):e.apply(void 0,[r,i,a].concat(u))}}var Zt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},rf=Os.default.createPortal!==void 0;function ja(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function sb(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Ch(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,a=e.debug,s=a===void 0?!1:a,u=i?console.warn||console.error:console.log;s&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(f){Ke.plainObject(f)&&f.key?u.apply(console,[f.key,f.value]):u.apply(console,[f])}):u.apply(console,[n]),console.groupEnd())}function Fue(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Rue(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function kue(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(s){n(s),Rue(e,t,i)},Fue(e,t,i,r)}function n2(){}var NO=function(e){Sd(n,e);var t=Dd(n);function n(){return Cd(this,n),t.apply(this,arguments)}return Ed(n,[{key:"componentDidMount",value:function(){ja()&&(this.node||this.appendNode(),rf||this.renderPortal())}},{key:"componentDidUpdate",value:function(){ja()&&(rf||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!ja()||!this.node||(rf||Os.default.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,a=i.id,s=i.zIndex;this.node||(this.node=document.createElement("div"),a&&(this.node.id=a),s&&(this.node.style.zIndex=s),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!ja())return null;var i=this.props,a=i.children,s=i.setRef;if(this.node||this.appendNode(),rf)return Os.default.createPortal(a,this.node);var u=Os.default.unstable_renderSubtreeIntoContainer(this,a.length>1?fe.default.createElement("div",null,a):a[0],this.node);return s(u),null}},{key:"renderReact16",value:function(){var i=this.props,a=i.hasChildren,s=i.placement,u=i.target;return a?this.renderPortal():u||s==="center"?this.renderPortal():null}},{key:"render",value:function(){return rf?this.renderReact16():null}}]),n}(fe.default.Component);Sr(NO,"propTypes",{children:rt.oneOfType([rt.element,rt.array]),hasChildren:rt.bool,id:rt.oneOfType([rt.string,rt.number]),placement:rt.string,setRef:rt.func.isRequired,target:rt.oneOfType([rt.object,rt.string]),zIndex:rt.number});var jO=function(e){Sd(n,e);var t=Dd(n);function n(){return Cd(this,n),t.apply(this,arguments)}return Ed(n,[{key:"parentStyle",get:function(){var i=this.props,a=i.placement,s=i.styles,u=s.arrow.length,f={pointerEvents:"none",position:"absolute",width:"100%"};return a.startsWith("top")?(f.bottom=0,f.left=0,f.right=0,f.height=u):a.startsWith("bottom")?(f.left=0,f.right=0,f.top=0,f.height=u):a.startsWith("left")?(f.right=0,f.top=0,f.bottom=0):a.startsWith("right")&&(f.left=0,f.top=0),f}},{key:"render",value:function(){var i=this.props,a=i.placement,s=i.setArrowRef,u=i.styles,f=u.arrow,d=f.color,h=f.display,m=f.length,g=f.margin,b=f.position,w=f.spread,x={display:h,position:b},A,C=w,E=m;return a.startsWith("top")?(A="0,0 ".concat(C/2,",").concat(E," ").concat(C,",0"),x.bottom=0,x.marginLeft=g,x.marginRight=g):a.startsWith("bottom")?(A="".concat(C,",").concat(E," ").concat(C/2,",0 0,").concat(E),x.top=0,x.marginLeft=g,x.marginRight=g):a.startsWith("left")?(E=w,C=m,A="0,0 ".concat(C,",").concat(E/2," 0,").concat(E),x.right=0,x.marginTop=g,x.marginBottom=g):a.startsWith("right")&&(E=w,C=m,A="".concat(C,",").concat(E," ").concat(C,",0 0,").concat(E/2),x.left=0,x.marginTop=g,x.marginBottom=g),fe.default.createElement("div",{className:"__floater__arrow",style:this.parentStyle},fe.default.createElement("span",{ref:s,style:x},fe.default.createElement("svg",{width:C,height:E,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},fe.default.createElement("polygon",{points:A,fill:d}))))}}]),n}(fe.default.Component);Sr(jO,"propTypes",{placement:rt.string.isRequired,setArrowRef:rt.func.isRequired,styles:rt.object.isRequired});var Oue=["color","height","width"];function KO(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,a=n.width,s=VO(n,Oue);return fe.default.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},fe.default.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},fe.default.createElement("g",null,fe.default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}KO.propTypes={handleClick:rt.func.isRequired,styles:rt.object.isRequired};function UO(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,u=e.title,f=e.styles,d={content:fe.default.isValidElement(t)?t:fe.default.createElement("div",{className:"__floater__content",style:f.content},t)};return u&&(d.title=fe.default.isValidElement(u)?u:fe.default.createElement("div",{className:"__floater__title",style:f.title},u)),n&&(d.footer=fe.default.isValidElement(n)?n:fe.default.createElement("div",{className:"__floater__footer",style:f.footer},n)),(s||a)&&!Ke.boolean(i)&&(d.close=fe.default.createElement(KO,{styles:f.close,handleClick:r})),fe.default.createElement("div",{className:"__floater__container",style:f.container},d.close,d.title,d.content,d.footer)}UO.propTypes={content:rt.node.isRequired,footer:rt.node,handleClick:rt.func.isRequired,open:rt.bool,positionWrapper:rt.bool.isRequired,showCloseButton:rt.bool.isRequired,styles:rt.object.isRequired,title:rt.node};var qO=function(e){Sd(n,e);var t=Dd(n);function n(){return Cd(this,n),t.apply(this,arguments)}return Ed(n,[{key:"style",get:function(){var i=this.props,a=i.disableAnimation,s=i.component,u=i.placement,f=i.hideArrow,d=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,w=h.floaterClosing,x=h.floaterOpening,A=h.floaterWithAnimation,C=h.floaterWithComponent,E={};return f||(u.startsWith("top")?E.padding="0 0 ".concat(m,"px"):u.startsWith("bottom")?E.padding="".concat(m,"px 0 0"):u.startsWith("left")?E.padding="0 ".concat(m,"px 0 0"):u.startsWith("right")&&(E.padding="0 0 0 ".concat(m,"px"))),[Zt.OPENING,Zt.OPEN].indexOf(d)!==-1&&(E=Dn(Dn({},E),x)),d===Zt.CLOSING&&(E=Dn(Dn({},E),w)),d===Zt.OPEN&&!a&&(E=Dn(Dn({},E),A)),u==="center"&&(E=Dn(Dn({},E),b)),s&&(E=Dn(Dn({},E),C)),Dn(Dn({},g),E)}},{key:"render",value:function(){var i=this.props,a=i.component,s=i.handleClick,u=i.hideArrow,f=i.setFloaterRef,d=i.status,h={},m=["__floater"];return a?fe.default.isValidElement(a)?h.content=fe.default.cloneElement(a,{closeFn:s}):h.content=a({closeFn:s}):h.content=fe.default.createElement(UO,this.props),d===Zt.OPEN&&m.push("__floater__open"),u||(h.arrow=fe.default.createElement(jO,this.props)),fe.default.createElement("div",{ref:f,className:m.join(" "),style:this.style},fe.default.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(fe.default.Component);Sr(qO,"propTypes",{component:rt.oneOfType([rt.func,rt.element]),content:rt.node,disableAnimation:rt.bool.isRequired,footer:rt.node,handleClick:rt.func.isRequired,hideArrow:rt.bool.isRequired,open:rt.bool,placement:rt.string.isRequired,positionWrapper:rt.bool.isRequired,setArrowRef:rt.func.isRequired,setFloaterRef:rt.func.isRequired,showCloseButton:rt.bool,status:rt.string.isRequired,styles:rt.object.isRequired,title:rt.node});var zO=function(e){Sd(n,e);var t=Dd(n);function n(){return Cd(this,n),t.apply(this,arguments)}return Ed(n,[{key:"render",value:function(){var i=this.props,a=i.children,s=i.handleClick,u=i.handleMouseEnter,f=i.handleMouseLeave,d=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(a)if(fe.default.Children.count(a)===1)if(!fe.default.isValidElement(a))b=fe.default.createElement("span",null,a);else{var w=Ke.function(a.type)?"innerRef":"ref";b=fe.default.cloneElement(fe.default.Children.only(a),Sr({},w,d))}else b=a;return b?fe.default.createElement("span",{ref:h,style:Dn(Dn({},g),m),onClick:s,onMouseEnter:u,onMouseLeave:f},b):null}}]),n}(fe.default.Component);Sr(zO,"propTypes",{children:rt.node,handleClick:rt.func.isRequired,handleMouseEnter:rt.func.isRequired,handleMouseLeave:rt.func.isRequired,setChildRef:rt.func.isRequired,setWrapperRef:rt.func.isRequired,style:rt.object,styles:rt.object.isRequired});var Iue={zIndex:100};function Lue(e){var t=ma(Iue,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var Vue=["arrow","flip","offset"],Bue=["position","top","right","bottom","left"],p$=function(e){Sd(n,e);var t=Dd(n);function n(r){var i;return Cd(this,n),i=t.call(this,r),Sr(Ps(i),"setArrowRef",function(a){i.arrowRef=a}),Sr(Ps(i),"setChildRef",function(a){i.childRef=a}),Sr(Ps(i),"setFloaterRef",function(a){i.floaterRef=a}),Sr(Ps(i),"setWrapperRef",function(a){i.wrapperRef=a}),Sr(Ps(i),"handleTransitionEnd",function(){var a=i.state.status,s=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:a===Zt.OPENING?Zt.OPEN:Zt.IDLE},function(){var u=i.state.status;s(u===Zt.OPEN?"open":"close",i.props)})}),Sr(Ps(i),"handleClick",function(){var a=i.props,s=a.event,u=a.open;if(!Ke.boolean(u)){var f=i.state,d=f.positionWrapper,h=f.status;(i.event==="click"||i.event==="hover"&&d)&&(Ch({title:"click",data:[{event:s,status:h===Zt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Sr(Ps(i),"handleMouseEnter",function(){var a=i.props,s=a.event,u=a.open;if(!(Ke.boolean(u)||sb())){var f=i.state.status;i.event==="hover"&&f===Zt.IDLE&&(Ch({title:"mouseEnter",data:[{key:"originalEvent",value:s}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Sr(Ps(i),"handleMouseLeave",function(){var a=i.props,s=a.event,u=a.eventDelay,f=a.open;if(!(Ke.boolean(f)||sb())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(Ch({title:"mouseLeave",data:[{key:"originalEvent",value:s}],debug:i.debug}),u?[Zt.OPENING,Zt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(Zt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Zt.INIT,statusWrapper:Zt.INIT},i._isMounted=!1,i.hasMounted=!1,ja()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Ed(n,[{key:"componentDidMount",value:function(){if(ja()){var i=this.state.positionWrapper,a=this.props,s=a.children,u=a.open,f=a.target;this._isMounted=!0,Ch({title:"init",data:{hasChildren:!!s,hasTarget:!!f,isControlled:Ke.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!s&&f&&Ke.boolean(u)}}},{key:"componentDidUpdate",value:function(i,a){if(ja()){var s=this.props,u=s.autoOpen,f=s.open,d=s.target,h=s.wrapperOptions,m=bue(a,this.state),g=m.changedFrom,b=m.changed;if(i.open!==f){var w;Ke.boolean(f)&&(w=f?Zt.OPENING:Zt.CLOSING),this.toggle(w)}(i.wrapperOptions.position!==h.position||i.target!==d)&&this.changeWrapperPosition(this.props),b("status",Zt.IDLE)&&f?this.toggle(Zt.OPEN):g("status",Zt.INIT,Zt.IDLE)&&u&&this.toggle(Zt.OPEN),this.popper&&b("status",Zt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Zt.OPENING)||b("status",Zt.CLOSING))&&kue(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){ja()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,s=this.state.positionWrapper,u=this.props,f=u.disableFlip,d=u.getPopper,h=u.hideArrow,m=u.offset,g=u.placement,b=u.wrapperOptions,w=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Zt.IDLE});else if(a&&this.floaterRef){var x=this.options,A=x.arrow,C=x.flip,E=x.offset,S=VO(x,Vue);new Yf(a,this.floaterRef,{placement:g,modifiers:Dn({arrow:Dn({enabled:!h,element:this.arrowRef},A),flip:Dn({enabled:!f,behavior:w},C),offset:Dn({offset:"0, ".concat(m,"px")},E)},S),onCreate:function(F){var z;if(i.popper=F,!((z=i.floaterRef)!==null&&z!==void 0&&z.isConnected)){i.setState({needsUpdate:!0});return}d(F,"floater"),i._isMounted&&i.setState({currentPlacement:F.placement,status:Zt.IDLE}),g!==F.placement&&setTimeout(function(){F.instance.update()},1)},onUpdate:function(F){i.popper=F;var z=i.state.currentPlacement;i._isMounted&&F.placement!==z&&i.setState({currentPlacement:F.placement})}})}if(s){var R=Ke.undefined(b.offset)?0:b.offset;new Yf(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(R,"px")},flip:{enabled:!1}},onCreate:function(F){i.wrapperPopper=F,i._isMounted&&i.setState({statusWrapper:Zt.IDLE}),d(F,"wrapper"),g!==F.placement&&setTimeout(function(){F.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var a;(a=i.floaterRef)!==null&&a!==void 0&&a.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var a=i.target,s=i.wrapperOptions;this.setState({positionWrapper:s.position&&!!a})}},{key:"toggle",value:function(i){var a=this.state.status,s=a===Zt.OPEN?Zt.CLOSING:Zt.OPENING;Ke.undefined(i)||(s=i),this.setState({status:s})}},{key:"debug",get:function(){var i=this.props.debug;return i||ja()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,a=i.disableHoverToClick,s=i.event;return s==="hover"&&sb()&&!a?"click":s}},{key:"options",get:function(){var i=this.props.options;return ma(Sue,i||{})}},{key:"styles",get:function(){var i=this,a=this.state,s=a.status,u=a.positionWrapper,f=a.statusWrapper,d=this.props.styles,h=ma(Lue(d),d);if(u){var m;[Zt.IDLE].indexOf(s)===-1||[Zt.IDLE].indexOf(f)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Dn(Dn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Dn(Dn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},u||(Bue.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Dn(Dn({},h.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return h}},{key:"target",get:function(){if(!ja())return null;var i=this.props.target;return i?Ke.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,a=i.currentPlacement,s=i.positionWrapper,u=i.status,f=this.props,d=f.children,h=f.component,m=f.content,g=f.disableAnimation,b=f.footer,w=f.hideArrow,x=f.id,A=f.open,C=f.showCloseButton,E=f.style,S=f.target,R=f.title,_=fe.default.createElement(zO,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:E,styles:this.styles.wrapper},d),F={};return s?F.wrapperInPortal=_:F.wrapperAsChildren=_,fe.default.createElement("span",null,fe.default.createElement(NO,{hasChildren:!!d,id:x,placement:a,setRef:this.setFloaterRef,target:S,zIndex:this.styles.options.zIndex},fe.default.createElement(qO,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:w||a==="center",open:A,placement:a,positionWrapper:s,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:C,status:u,styles:this.styles,title:R}),F.wrapperInPortal),F.wrapperAsChildren)}}]),n}(fe.default.Component);Sr(p$,"propTypes",{autoOpen:rt.bool,callback:rt.func,children:rt.node,component:t2(rt.oneOfType([rt.func,rt.element]),function(e){return!e.content}),content:t2(rt.node,function(e){return!e.component}),debug:rt.bool,disableAnimation:rt.bool,disableFlip:rt.bool,disableHoverToClick:rt.bool,event:rt.oneOf(["hover","click"]),eventDelay:rt.number,footer:rt.node,getPopper:rt.func,hideArrow:rt.bool,id:rt.oneOfType([rt.string,rt.number]),offset:rt.number,open:rt.bool,options:rt.object,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:rt.bool,style:rt.object,styles:rt.object,target:rt.oneOfType([rt.object,rt.string]),title:rt.node,wrapperOptions:rt.shape({offset:rt.number,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:rt.bool})});Sr(p$,"defaultProps",{autoOpen:!1,callback:n2,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:n2,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Nue=Object.defineProperty,jue=(e,t,n)=>t in e?Nue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>jue(e,typeof t!="symbol"?t+"":t,n),rn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ji={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Ft={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Nt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function fo(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function WO(e){return e?e.getBoundingClientRect():null}function Kue(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((a,s)=>a-s),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function ks(e){if(typeof e=="string")try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV!=="production"&&console.error(t),null}return e}function Uue(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Zf(e,t,n){if(!e)return pu();const r=$O(e);if(r){if(r.isSameNode(pu()))return n?document:pu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",pu()}return r}function Ad(e,t){if(!e)return!1;const n=Zf(e,t);return n?!n.isSameNode(pu()):!1}function que(e){return e.offsetParent!==document.body}function Xl(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Uue(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Xl(e.parentNode,t):!1}function zue(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function Wue(e,t,n){var r,i,a;const s=WO(e),u=Zf(e,n),f=Ad(e,n),d=Xl(e);let h=0,m=(r=s==null?void 0:s.top)!=null?r:0;if(f&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(a=u==null?void 0:u.scrollTop)!=null?a:0;m=g-b}else u instanceof HTMLElement&&(h=u.scrollTop,!f&&!Xl(e)&&(m+=h),u.isSameNode(pu())||(m+=pu().scrollTop));return Math.floor(m-t)}function Hue(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:a=0}=(r=$O(e))!=null?r:{};let s=e.getBoundingClientRect().top+a;i&&(Ad(e,n)||que(e))&&(s-=i);const u=Math.floor(s-t);return u<0?0:u}function pu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Gue(e,t){const{duration:n,element:r}=t;return new Promise((i,a)=>{const{scrollTop:s}=r,u=e>s?e-s:s-e;hoe.top(r,e,{duration:u<100?50:n},f=>f&&f.message!=="Element already at target scroll position"?a(f):i())})}var af=kp.createPortal!==void 0;function HO(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function zh(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ka(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let a=NT(e);if(a)(a.includes("{step}")||a.includes("{steps}"))&&r&&i&&(a=a.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(I.isValidElement(e)&&!Object.values(e.props).length&&zh(e.type)==="function"){const s=e.type({});a=Ka(s,t)}else a=NT(n);return a}function Yue(e,t){return!dt.plainObject(e)||!dt.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Zue(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,a,s,u)=>a+a+s+s+u+u),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function r2(e){return e.disableBeacon||e.placement==="center"}function i2(){return!["chrome","safari","firefox","opera"].includes(HO())}function Co({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(a=>{dt.plainObject(a)&&a.key?i.apply(console,[a.key,a.value]):i.apply(console,[a])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function Xue(e){return Object.keys(e)}function GO(e,...t){if(!dt.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function Jue(e,...t){if(!dt.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function j1(e,t,n){const r=a=>a.replace("{step}",String(t)).replace("{steps}",String(n));if(zh(e)==="string")return r(e);if(!I.isValidElement(e))return e;const{children:i}=e.props;if(zh(i)==="string"&&i.includes("{step}"))return I.cloneElement(e,{children:r(i)});if(Array.isArray(i))return I.cloneElement(e,{children:i.map(a=>typeof a=="string"?r(a):j1(a,t,n))});if(zh(e.type)==="function"&&!Object.values(e.props).length){const a=e.type({});return j1(a,t,n)}return e}function Que(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:a,target:s}=e;return!a.disableScrolling&&(!t||i||n===Ft.TOOLTIP)&&a.placement!=="center"&&(!a.isFixed||!Xl(s))&&r!==n&&[Ft.BEACON,Ft.TOOLTIP].includes(n)}var ele={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},YO={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},tle={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:YO,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},nle={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},rle={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},sf={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},a2={borderRadius:4,position:"absolute"};function ile(e,t){var n,r,i,a,s;const{floaterProps:u,styles:f}=e,d=ma((n=t.floaterProps)!=null?n:{},u??{}),h=ma(f??{},(r=t.styles)!=null?r:{}),m=ma(rle,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const w={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},x={beacon:{...sf,display:g?"none":"inline-block",height:m.beaconSize,position:"relative",width:m.beaconSize,zIndex:m.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:m.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Zue(m.primaryColor).join(",")}, 0.2)`,border:`2px solid ${m.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:m.backgroundColor,borderRadius:5,boxSizing:"border-box",color:m.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:b},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...sf,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...sf,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...sf,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...sf,color:m.textColor,fontSize:14},overlay:{...w,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...w},overlayLegacyCenter:{...w,backgroundColor:m.overlayColor},spotlight:{...a2,backgroundColor:"gray"},spotlightLegacy:{...a2,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(s=(a=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:a.color)!=null?s:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return ma(x,h)}function ale(e){return Jue(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function dl(e,t){var n,r,i,a,s,u;const f=t??{},d=ma.all([tle,ale(e),f],{isMergeableObject:dt.plainObject}),h=ile(e,d),m=Ad(ks(d.target),d.disableScrollParentFix),g=ma.all([ele,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=ma((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(s=(a=e.spotlightPadding)!=null?a:d.spotlightPadding)!=null?s:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:ma.all([YO,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:g,styles:GO(h,"floaterStyles")}}function ZO(e,t=!1){return dt.plainObject(e)?e.target?!0:(Co({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Co({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function s2(e,t=!1){return dt.array(e)?e.every(n=>ZO(n,t)):(Co({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var XO={action:"init",controlled:!1,index:0,lifecycle:Ft.INIT,origin:null,size:0,status:Nt.IDLE},o2=Xue(GO(XO,"controlled","size")),sle=class{constructor(e){mt(this,"beaconPopper"),mt(this,"tooltipPopper"),mt(this,"data",new Map),mt(this,"listener"),mt(this,"store",new Map),mt(this,"addListener",i=>{this.listener=i}),mt(this,"setSteps",i=>{const{size:a,status:s}=this.getState(),u={size:i.length,status:s};this.data.set("steps",i),s===Nt.WAITING&&!a&&i.length&&(u.status=Nt.RUNNING),this.setState(u)}),mt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),mt(this,"setPopper",(i,a)=>{i==="beacon"?this.beaconPopper=a:this.tooltipPopper=a}),mt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),mt(this,"close",(i=null)=>{const{index:a,status:s}=this.getState();s===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.CLOSE,index:a+1,origin:i})})}),mt(this,"go",i=>{const{controlled:a,status:s}=this.getState();if(a||s!==Nt.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:rn.GO,index:i}),status:u?s:Nt.FINISHED})}),mt(this,"info",()=>this.getState()),mt(this,"next",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState(this.getNextState({action:rn.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.UPDATE,lifecycle:Ft.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:a}=this.getState();a||this.setState({...this.getNextState({action:rn.RESET,index:0}),status:i?Nt.RUNNING:Nt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({action:rn.SKIP,lifecycle:Ft.INIT,status:Nt.SKIPPED})}),mt(this,"start",i=>{const{index:a,size:s}=this.getState();this.setState({...this.getNextState({action:rn.START,index:dt.number(i)?i:a},!0),status:s?Nt.RUNNING:Nt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:a,status:s}=this.getState();[Nt.FINISHED,Nt.SKIPPED].includes(s)||this.setState({...this.getNextState({action:rn.STOP,index:a+(i?1:0)}),status:Nt.PAUSED})}),mt(this,"update",i=>{var a,s;if(!Yue(i,o2))throw new Error(`State is not valid. Valid keys: ${o2.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(a=i.action)!=null?a:rn.UPDATE,origin:(s=i.origin)!=null?s:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:rn.INIT,controlled:dt.number(n),continuous:t,index:dt.number(n)?n:0,lifecycle:Ft.INIT,origin:null,status:r.length?Nt.READY:Nt.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...XO}}getNextState(e,t=!1){var n,r,i,a,s;const{action:u,controlled:f,index:d,size:h,status:m}=this.getState(),g=dt.number(e.index)?e.index:d,b=f&&!t?d:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:u,controlled:f,index:b,lifecycle:(r=e.lifecycle)!=null?r:Ft.INIT,origin:(i=e.origin)!=null?i:null,size:(a=e.size)!=null?a:h,status:b===h?Nt.FINISHED:(s=e.status)!=null?s:m}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:a,origin:s=null,size:u,status:f}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",a),this.store.set("origin",s),this.store.set("size",u),this.store.set("status",f),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function ole(e){return new sle(e)}function ule({styles:e}){return fe.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var lle=ule,cle=class extends fe.Component{constructor(){super(...arguments),mt(this,"isActive",!1),mt(this,"resizeTimeout"),mt(this,"scrollTimeout"),mt(this,"scrollParent"),mt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),mt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Ft.INIT,Ft.BEACON,Ft.COMPLETE,Ft.ERROR];return t||(e?r.includes(n):n!==Ft.TOOLTIP)}),mt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:a,width:s}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,f=i==="fixed"?e.clientX:e.pageX,d=u>=a&&u<=a+n,m=f>=r&&f<=r+s&&d;m!==t&&this.updateState({mouseOverSpotlight:m})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=ks(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else Xl(t,"sticky")&&this.updateState({})}),mt(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=ks(r);this.scrollParent=Zf(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&Ad(i,!0)&&Co({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:a}=this.props,{changed:s}=_p(e,this.props);if(s("target")||s("disableScrollParentFix")){const u=ks(a);this.scrollParent=Zf(u??document.body,n,!0)}s("lifecycle",Ft.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(i&&r===Ft.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Ft.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return i2()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Kue(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:a,spotlightPadding:s=0,styles:u,target:f}=this.props,d=ks(f),h=WO(d),m=Xl(d),g=Wue(d,s,i);return{...i2()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+s*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-s),opacity:r?1:0,pointerEvents:a?"none":"auto",position:m?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=h==null?void 0:h.width)!=null?n:0)+s*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:a}=this;if(r())return null;let s=n!=="center"&&e&&fe.createElement(lle,{styles:a});if(HO()==="safari"){const{mixBlendMode:u,zIndex:f,...d}=i;s=fe.createElement("div",{style:{...d}},s),delete i.backgroundColor}return fe.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},s)}},fle=class extends fe.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;fo()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),af||this.renderReact15())}componentDidUpdate(){fo()&&(af||this.renderReact15())}componentWillUnmount(){!fo()||!this.node||(af||Os.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!fo())return;const{children:e}=this.props;this.node&&Os.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!fo()||!af)return null;const{children:e}=this.props;return this.node?Os.createPortal(e,this.node):null}render(){return af?this.renderReact16():null}},dle=class{constructor(e,t){if(mt(this,"element"),mt(this,"options"),mt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),mt(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),mt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),mt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),mt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let a=document.activeElement?r.indexOf(document.activeElement):0;a===-1||!i&&a+1===r.length?a=0:i&&a===0?a=r.length-1:a+=i?-1:1,r[a].focus()}),mt(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),mt(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),mt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),mt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),mt(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},hle=class extends fe.Component{constructor(e){if(super(e),mt(this,"beacon",null),mt(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
139
+ @keyframes joyride-beacon-inner {
140
+ 20% {
141
+ opacity: 0.9;
142
+ }
143
+
144
+ 90% {
145
+ opacity: 0.7;
146
+ }
147
+ }
148
+
149
+ @keyframes joyride-beacon-outer {
150
+ 0% {
151
+ transform: scale(1);
152
+ }
153
+
154
+ 45% {
155
+ opacity: 0.7;
156
+ transform: scale(0.75);
157
+ }
158
+
159
+ 100% {
160
+ opacity: 0.9;
161
+ transform: scale(1);
162
+ }
163
+ }
164
+ `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(dt.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{dt.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:a,size:s,step:u,styles:f}=this.props,d=Ka(i.open),h={"aria-label":d,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=fe.createElement(g,{continuous:t,index:n,isLastStep:r,size:s,step:u,...h})}else m=fe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:f.beacon,type:"button",...h},fe.createElement("span",{style:f.beaconInner}),fe.createElement("span",{style:f.beaconOuter}));return m}};function ple({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return fe.default.createElement("button",{style:a,type:"button",...t},fe.default.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},fe.default.createElement("g",null,fe.default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var mle=ple;function gle(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:s,step:u,tooltipProps:f}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:w,title:x}=u,A={};return A.primary=fe.createElement("button",{"data-test-id":"button-primary",style:w.buttonNext,type:"button",...a}),b&&!i&&(A.skip=fe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:w.buttonSkip,type:"button",...s})),!h&&r>0&&(A.back=fe.createElement("button",{"data-test-id":"button-back",style:w.buttonBack,type:"button",...t})),A.close=!m&&fe.createElement(mle,{"data-test-id":"button-close",styles:w.buttonClose,...n}),fe.createElement("div",{key:"JoyrideTooltip","aria-label":Ka(x??d),className:"react-joyride__tooltip",style:w.tooltip,...f},fe.createElement("div",{style:w.tooltipContainer},x&&fe.createElement("h1",{"aria-label":Ka(x),style:w.tooltipTitle},x),fe.createElement("div",{style:w.tooltipContent},d)),!g&&fe.createElement("div",{style:w.tooltipFooter},fe.createElement("div",{style:w.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var vle=gle,yle=class extends fe.Component{constructor(){super(...arguments),mt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),mt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),mt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),mt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),mt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{back:s,close:u,last:f,next:d,nextLabelWithProgress:h,skip:m}=a.locale,g=Ka(s),b=Ka(u),w=Ka(f),x=Ka(d),A=Ka(m);let C=u,E=b;if(e){if(C=d,E=x,a.showProgress&&!n){const S=Ka(h,{step:t+1,steps:i});C=j1(h,t+1,i),E=S}n&&(C=f,E=w)}return{backProps:{"aria-label":g,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":E,children:C,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:E},skipProps:{"aria-label":A,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:A},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{beaconComponent:s,tooltipComponent:u,...f}=a;let d;if(u){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:f,setTooltipRef:r},m=u;d=fe.createElement(m,{...h})}else d=fe.createElement(vle,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return d}},ble=class extends fe.Component{constructor(){super(...arguments),mt(this,"scope",null),mt(this,"tooltip",null),mt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Ft.TOOLTIP})}),mt(this,"setTooltipRef",e=>{this.tooltip=e}),mt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:a,store:s}=this.props;t==="wrapper"?s.setPopper("beacon",e):s.setPopper("tooltip",e),s.getPopper("beacon")&&(s.getPopper("tooltip")||a.placement==="center")&&i===Ft.INIT&&s.update({action:r,lifecycle:Ft.READY}),(n=a.floaterProps)!=null&&n.getPopper&&a.floaterProps.getPopper(e,t)}),mt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:a}=this.props;return fe.createElement(yle,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:a,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;Co({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:a,debug:s,helpers:u,index:f,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:w,changedFrom:x}=_p(e,this.props),A=u.info(),C=i&&n!==rn.CLOSE&&(f>0||n===rn.PREV),E=w("action")||w("index")||w("lifecycle")||w("status"),S=x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),R=w("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE]),_=a&&f===e.index;if(R&&(S||_)&&r({...A,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:ji.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&w("index")&&n!==rn.START&&d===Ft.INIT&&b.update({lifecycle:Ft.READY}),E){const F=ks(g.target),z=!!F;z&&zue(F)?(x("status",Nt.READY,Nt.RUNNING)||x("lifecycle",Ft.INIT,Ft.READY))&&r({...A,step:g,type:ji.STEP_BEFORE}):(console.warn(z?"Target not visible":"Target not mounted",g),r({...A,type:ji.TARGET_NOT_FOUND,step:g}),a||b.update({index:f+(n===rn.PREV?-1:1)}))}x("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:r2(g)||C?Ft.TOOLTIP:Ft.BEACON}),w("index")&&Co({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:s}),w("lifecycle",Ft.BEACON)&&r({...A,step:g,type:ji.BEACON}),w("lifecycle",Ft.TOOLTIP)&&(r({...A,step:g,type:ji.TOOLTIP}),h&&this.tooltip&&(this.scope=new dle(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return r2(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:s}=this.props,u=ks(s.target);return!ZO(s)||!dt.domElement(u)?null:fe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},fe.createElement(p$,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},fe.createElement(hle,{beaconComponent:s.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:s.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:s,styles:s.styles})))}},JO=class extends fe.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",s=>{const{callback:u}=this.props;dt.function(u)&&u(s)}),mt(this,"handleKeyboard",s=>{const{index:u,lifecycle:f}=this.state,{steps:d}=this.props,h=d[u];f===Ft.TOOLTIP&&s.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:s}=this.state,{steps:u}=this.props;dl(this.props,u[s]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",s=>{this.setState(s)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=ole({...e,controlled:r&&dt.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;Co({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),a(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!fo())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;s2(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!fo())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:s,run:u,stepIndex:f,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:w,stop:x,update:A}=this.store,{changed:C}=_p(e,this.props),{changed:E,changedFrom:S}=_p(t,this.state),R=dl(this.props,d[i]),_=!Nr(m,d),F=dt.number(f)&&C("stepIndex"),z=ks(R.target);if(_&&(s2(d,s)?b(d):console.warn("Steps are not valid",d)),C("run")&&(u?w(f):x()),F){let oe=dt.number(h)&&h<f?rn.NEXT:rn.PREV;n===rn.STOP&&(oe=rn.START),[Nt.FINISHED,Nt.SKIPPED].includes(a)||A({action:n===rn.CLOSE?rn.CLOSE:oe,index:f,lifecycle:Ft.INIT})}!r&&a===Nt.RUNNING&&i===0&&!z&&(this.store.update({index:i+1}),this.callback({...this.state,type:ji.TARGET_NOT_FOUND,step:R}));const ie={...this.state,index:i,step:R};if(E("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE])&&E("status",Nt.PAUSED)){const oe=dl(this.props,d[t.index]);this.callback({...ie,index:t.index,lifecycle:Ft.COMPLETE,step:oe,type:ji.STEP_AFTER})}if(E("status",[Nt.FINISHED,Nt.SKIPPED])){const oe=dl(this.props,d[t.index]);r||this.callback({...ie,index:t.index,lifecycle:Ft.COMPLETE,step:oe,type:ji.STEP_AFTER}),this.callback({...ie,type:ji.TOUR_END,step:oe,index:t.index}),g()}else S("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...ie,type:ji.TOUR_START}):(E("status")||E("action",rn.RESET))&&this.callback({...ie,type:ji.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:a=!1,scrollDuration:s,scrollOffset:u=20,scrollToFirstStep:f=!1,steps:d}=this.props,h=dl(this.props,d[t]),m=ks(h.target),g=Que({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:f,step:h,target:m});if(r===Nt.RUNNING&&g){const b=Ad(m,a),w=Zf(m,a);let x=Math.floor(Hue(m,u,a))||0;Co({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),C=this.store.getPopper("tooltip");if(n===Ft.BEACON&&A){const{offsets:E,placement:S}=A;!["bottom"].includes(S)&&!b&&(x=Math.floor(E.popper.top-u))}else if(n===Ft.TOOLTIP&&C){const{flipped:E,offsets:S,placement:R}=C;["top","right","left"].includes(R)&&!E&&!b?x=Math.floor(S.popper.top-u):x-=h.spotlightPadding}x=x>=0?x:0,r===Nt.RUNNING&&Gue(x,{element:w,duration:s}).then(()=>{setTimeout(()=>{var E;(E=this.store.getPopper("tooltip"))==null||E.instance.update()},10)})}}render(){if(!fo())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:s=!1,steps:u}=this.props,f=n===Nt.RUNNING,d={};if(f&&u[e]){const h=dl(this.props,u[e]);d.step=fe.createElement(ble,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!h.disableScrolling&&(e!==0||s),step:h,store:this.store}),d.overlay=fe.createElement(fle,{id:"react-joyride-portal"},fe.createElement(cle,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return fe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};mt(JO,"defaultProps",nle);var $le=JO;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=SM;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=pP;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=ad;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=yP;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=Qn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=Jz;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=CM;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Ar;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=Xq;exports.$293f70390ea03370$export$497855f14858aa34=Wz;exports.$32489daedd52963e$export$1315d136e6f7581=iW;exports.$337b884510726a0d$export$c6fdb837b070b4ff=Tz;exports.$36a0ac60f04457c5$export$136073280381448e=jq;exports.$3c0fc76039f1c516$export$60e84778edff6d26=dF;exports.$40df3f8667284809$export$d55e7ee900f34e93=uW;exports.$46a4342aab3d8076$export$87e0539f600c24e5=Vq;exports.$47b897dc8cdb026b$export$8d15029008292ae=tz;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=Qq;exports.$6057a3d2a53a12fd$export$42df105a73306d51=eW;exports.$64244302c3013299$export$dd0bbc9b26defe37=uq;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=wq;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=oW;exports.$93c38a5e28be6249$export$e50a61c1de9f574=AW;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=Lq;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=lW;exports.$a916eb452884faea$export$b7a616150fdb9f44=xq;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=mW;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=xW;exports.$bb77f239b46e8c72$export$3274cf84b703fff=zP;exports.$bcca50147b47f54d$export$56b2c08e277f365=ez;exports.$c132121280ec012d$export$50eacbbf140a3141=Vz;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=Nz;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=Zz;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=Bq;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=TW;exports.$f2f8a6077418541e$export$542a6fd13ac93354=Az;exports.$fae977aafc393c5c$export$588937bcd60ade55=LU;exports.$fae977aafc393c5c$export$6b862160d295c8e=IU;exports.ACTIONS=rn;exports.AdvancedImage=uZ;exports.CSVLink=Ise;exports.Cloudinary=rX;exports.Controller=Pj;exports.EVENTS=ji;exports.FormProvider=Aj;exports.LazyMotion=Ine;exports.Lottie=Pne;exports.M=ha;exports.ReorderGroup=pne;exports.ReorderItem=yne;exports.STATUS=Nt;exports._=Ej;exports._$1=_u;exports.autoUpdate=ZN;exports.components_default=$le;exports.dayjs=BH;exports.dayjs_minExports=$F;exports.domAnimation=vse;exports.ee=CF;exports.flexRender=Nse;exports.flip=aj;exports.isEqual=IH;exports.isNil=Bse;exports.isNumber=KH;exports.lazyload=tZ;exports.localizedFormat=wne;exports.lodashExports=D2;exports.m=Sre;exports.o=Sne;exports.offset=rj;exports.placeholder=aZ;exports.prismExports=FX;exports.q=B4;exports.shift=ij;exports.some=_X;exports.transform=Yse;exports.useController=R2;exports.useFieldArray=Uj;exports.useFloating=vj;exports.useFloating$1=w2;exports.useFocus=yj;exports.useForm=qj;exports.useFormContext=Qf;exports.useHover=mj;exports.useInteractions=bj;exports.useRole=xj;exports.useWatch=F2;