@fluidattacks/design 3.3.3 → 3.4.0

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 (130) hide show
  1. package/dist/components/@core/index.js +1 -17
  2. package/dist/components/accordion/accordion-content/index.js +1 -5
  3. package/dist/components/accordion/index.js +1 -7
  4. package/dist/components/alert/index.js +1 -6
  5. package/dist/components/button/index.js +1 -6
  6. package/dist/components/card/card-header/index.js +1 -6
  7. package/dist/components/card/card-with-image/index.js +1 -7
  8. package/dist/components/card/card-with-input/index.js +1 -8
  9. package/dist/components/card/card-with-selector/index.js +1 -6
  10. package/dist/components/card/card-with-switch/index.js +1 -6
  11. package/dist/components/card/index.js +1 -8
  12. package/dist/components/carousel/index.js +1 -7
  13. package/dist/components/checkbox/index.js +1 -6
  14. package/dist/components/cloud-image/index.js +1 -8
  15. package/dist/components/code-snippet/index.js +1 -8
  16. package/dist/components/code-snippet/location-code/index.js +1 -9
  17. package/dist/components/colors/index.js +1 -9
  18. package/dist/components/confirm-dialog/index.js +1 -7
  19. package/dist/components/container/index.js +1 -6
  20. package/dist/components/content-card/category-tag/index.js +1 -6
  21. package/dist/components/content-card/event-date/index.js +1 -7
  22. package/dist/components/content-card/index.js +1 -6
  23. package/dist/components/content-card-carousel/index.js +1 -6
  24. package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -7
  25. package/dist/components/divider/index.js +1 -6
  26. package/dist/components/empty-state/empty-button/index.js +1 -5
  27. package/dist/components/empty-state/index.js +1 -5
  28. package/dist/components/file-preview/index.js +1 -5
  29. package/dist/components/form/index.js +1 -6
  30. package/dist/components/grid-container/index.js +1 -6
  31. package/dist/components/group-selector/index.js +1 -8
  32. package/dist/components/group-selector/option-container/index.js +1 -8
  33. package/dist/components/icon/index.js +1 -6
  34. package/dist/components/icon-button/index.js +1 -6
  35. package/dist/components/indicator-card/index.js +1 -7
  36. package/dist/components/info-sidebar/index.js +1 -6
  37. package/dist/components/inputs/fields/combobox/index.js +1 -9
  38. package/dist/components/inputs/fields/combobox/option/index.js +1 -7
  39. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -9
  40. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -7
  41. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -6
  42. package/dist/components/inputs/fields/date/calendar/index.js +1 -8
  43. package/dist/components/inputs/fields/date/index.js +1 -10
  44. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -9
  45. package/dist/components/inputs/fields/date-range/index.js +1 -8
  46. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -9
  47. package/dist/components/inputs/fields/date-time/index.js +1 -8
  48. package/dist/components/inputs/fields/editable/index.js +1 -6
  49. package/dist/components/inputs/fields/input/index.js +1 -7
  50. package/dist/components/inputs/fields/input-file/index.js +1 -8
  51. package/dist/components/inputs/fields/input-tags/index.js +1 -6
  52. package/dist/components/inputs/fields/number/index.js +1 -6
  53. package/dist/components/inputs/fields/number-range/index.js +1 -6
  54. package/dist/components/inputs/fields/phone/index.js +1 -9
  55. package/dist/components/inputs/fields/text-area/index.js +1 -7
  56. package/dist/components/inputs/index.js +1 -16
  57. package/dist/components/inputs/label/index.js +1 -7
  58. package/dist/components/inputs/outline-container/index.js +1 -6
  59. package/dist/components/inputs/utils/action-button/index.js +1 -6
  60. package/dist/components/inputs/utils/calendar-button/index.js +1 -7
  61. package/dist/components/inputs/utils/date-selector/index.js +1 -5
  62. package/dist/components/inputs/utils/date-time-field/index.js +1 -12
  63. package/dist/components/inputs/utils/dialog/index.js +1 -7
  64. package/dist/components/inputs/utils/number-field/index.js +1 -7
  65. package/dist/components/inputs/utils/popover/index.js +1 -7
  66. package/dist/components/interactive-card/icon/index.js +1 -5
  67. package/dist/components/interactive-card/index.js +1 -6
  68. package/dist/components/language-selector/index.js +1 -6
  69. package/dist/components/language-selector/item-list/index.js +1 -5
  70. package/dist/components/link/index.js +1 -5
  71. package/dist/components/list-item/index.js +1 -8
  72. package/dist/components/little-flag/index.js +1 -5
  73. package/dist/components/loading/index.js +1 -6
  74. package/dist/components/logo/index.js +1 -5
  75. package/dist/components/logo-carousel/index.js +1 -6
  76. package/dist/components/lottie/index.js +1 -5
  77. package/dist/components/menu/index.js +1 -8
  78. package/dist/components/message-banner/index.js +1 -7
  79. package/dist/components/modal/index.js +1 -8
  80. package/dist/components/modal/modal-confirm/index.js +1 -5
  81. package/dist/components/modal/modal-footer/index.js +1 -7
  82. package/dist/components/modal/modal-header/index.js +1 -8
  83. package/dist/components/notification/index.js +1 -7
  84. package/dist/components/notification-sign/index.js +1 -6
  85. package/dist/components/number-input/index.js +1 -7
  86. package/dist/components/oauth-selector/index.js +1 -8
  87. package/dist/components/oauth-selector/option-container/index.js +1 -6
  88. package/dist/components/plan-card/index.js +1 -5
  89. package/dist/components/plan-card/recommended-tag/index.js +1 -5
  90. package/dist/components/pop-up/description/index.js +1 -7
  91. package/dist/components/pop-up/index.js +1 -9
  92. package/dist/components/premium-feature/index.js +1 -6
  93. package/dist/components/priority-score/index.js +1 -6
  94. package/dist/components/progress/index.js +1 -7
  95. package/dist/components/progress-bar/index.js +1 -5
  96. package/dist/components/radio-button/index.js +1 -6
  97. package/dist/components/scroll-button/index.js +1 -6
  98. package/dist/components/search/index.js +1 -9
  99. package/dist/components/search-bar/index.js +1 -6
  100. package/dist/components/search-bar/item-searching/index.js +1 -5
  101. package/dist/components/severity-badge/index.js +1 -6
  102. package/dist/components/severity-overview/badge/index.js +1 -6
  103. package/dist/components/severity-overview/index.js +1 -5
  104. package/dist/components/show-on-hover/index.js +1 -5
  105. package/dist/components/slide-out-menu/index.js +1 -9
  106. package/dist/components/slide-out-menu/menu-item/index.js +1 -6
  107. package/dist/components/slider/index.js +1 -9
  108. package/dist/components/slider/thumb/index.js +1 -7
  109. package/dist/components/step-lapse/index.js +1 -6
  110. package/dist/components/table-button/index.js +1 -6
  111. package/dist/components/tabs/fixed-tabs/index.js +1 -5
  112. package/dist/components/tabs/index.js +1 -8
  113. package/dist/components/tabs/tab/index.js +1 -5
  114. package/dist/components/tag/index.js +1 -6
  115. package/dist/components/timeline/card/index.js +1 -6
  116. package/dist/components/timeline/index.js +1 -6
  117. package/dist/components/toggle/index.js +1 -6
  118. package/dist/components/toggle-buttons/index.js +1 -6
  119. package/dist/components/tooltip/index.js +1 -10
  120. package/dist/components/tour/index.js +1 -9
  121. package/dist/components/typography/heading/index.js +1 -6
  122. package/dist/components/typography/index.js +1 -6
  123. package/dist/components/typography/span/index.js +1 -6
  124. package/dist/components/typography/text/index.js +1 -6
  125. package/dist/components/web-form/index.js +1 -6
  126. package/dist/components-C5lsYMUE.js +3174 -0
  127. package/dist/hooks/index.js +1 -9
  128. package/dist/index.js +1 -114
  129. package/dist/vendor-Dv7Zxa-7.js +132 -0
  130. package/package.json +1 -1
@@ -0,0 +1,132 @@
1
+ "use strict";require('./assets/vendor.css');const w=require("react"),er=require("react-dom"),Zo=require("react/jsx-runtime");function Qu(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 ie=Qu(w),Ei=Qu(er),rr=Math.min,kn=Math.max,Ai=Math.round,yi=Math.floor,tn=e=>({x:e,y:e}),pp={left:"right",right:"left",bottom:"top",top:"bottom"},hp={start:"end",end:"start"};function es(e,t,n){return kn(e,rr(t,n))}function qr(e,t){return typeof e=="function"?e(t):e}function Ln(e){return e.split("-")[0]}function Hr(e){return e.split("-")[1]}function Ju(e){return e==="x"?"y":"x"}function $s(e){return e==="y"?"height":"width"}function ir(e){return["top","bottom"].includes(Ln(e))?"y":"x"}function js(e){return Ju(ir(e))}function mp(e,t,n){n===void 0&&(n=!1);const r=Hr(e),i=js(e),o=$s(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Pi(s)),[s,Pi(s)]}function yp(e){const t=Pi(e);return[ts(e),t,ts(t)]}function ts(e){return e.replace(/start|end/g,t=>hp[t])}function gp(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function vp(e,t,n,r){const i=Hr(e);let o=gp(Ln(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(ts)))),o}function Pi(e){return e.replace(/left|right|bottom|top/g,t=>pp[t])}function bp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xu(e){return typeof e!="number"?bp(e):{top:e,right:e,bottom:e,left:e}}function Ri(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 Xa(e,t,n){let{reference:r,floating:i}=e;const o=ir(t),s=js(t),a=$s(s),l=Ln(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let p;switch(l){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Hr(t)){case"start":p[s]-=d*(n&&u?-1:1);break;case"end":p[s]+=d*(n&&u?-1:1);break}return p}const wp=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=Xa(u,r,l),d=r,p={},y=0;for(let g=0;g<a.length;g++){const{name:E,fn:v}=a[g],{x:b,y:T,data:R,reset:S}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=b??c,f=T??f,p={...p,[E]:{...p[E],...R}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:c,y:f}=Xa(u,d,l)),g=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function Zu(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=qr(t,e),y=Xu(p),E=a[d?f==="floating"?"reference":"floating":f],v=Ri(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(E)))==null||n?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),b=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),R=await(o.isElement==null?void 0:o.isElement(T))?await(o.getScale==null?void 0:o.getScale(T))||{x:1,y:1}:{x:1,y:1},S=Ri(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:T,strategy:l}):b);return{top:(v.top-S.top+y.top)/R.y,bottom:(S.bottom-v.bottom+y.bottom)/R.y,left:(v.left-S.left+y.left)/R.x,right:(S.right-v.right+y.right)/R.x}}const Sp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=qr(e,t)||{};if(u==null)return{};const f=Xu(c),d={x:n,y:r},p=js(i),y=$s(p),g=await s.getDimensions(u),E=p==="y",v=E?"top":"left",b=E?"bottom":"right",T=E?"clientHeight":"clientWidth",R=o.reference[y]+o.reference[p]-d[p]-o.floating[y],S=d[p]-o.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let M=O?O[T]:0;(!M||!await(s.isElement==null?void 0:s.isElement(O)))&&(M=a.floating[T]||o.floating[y]);const L=R/2-S/2,K=M/2-g[y]/2-1,U=rr(f[v],K),se=rr(f[b],K),be=U,ye=M-g[y]-se,B=M/2-g[y]/2+L,Q=es(be,B,ye),V=!l.arrow&&Hr(i)!=null&&B!==Q&&o.reference[y]/2-(B<be?U:se)-g[y]/2<0,F=V?B<be?B-be:B-ye:0;return{[p]:d[p]+F,data:{[p]:Q,centerOffset:B-Q-F,...V&&{alignmentOffset:F}},reset:V}}}),Ep=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...E}=qr(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=Ln(i),b=ir(a),T=Ln(a)===a,R=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=d||(T||!g?[Pi(a)]:yp(a)),O=y!=="none";!d&&O&&S.push(...vp(a,g,y,R));const M=[a,...S],L=await Zu(t,E),K=[];let U=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&K.push(L[v]),f){const B=mp(i,s,R);K.push(L[B[0]],L[B[1]])}if(U=[...U,{placement:i,overflows:K}],!K.every(B=>B<=0)){var se,be;const B=(((se=o.flip)==null?void 0:se.index)||0)+1,Q=M[B];if(Q)return{data:{index:B,overflows:U},reset:{placement:Q}};let V=(be=U.filter(F=>F.overflows[0]<=0).sort((F,z)=>F.overflows[1]-z.overflows[1])[0])==null?void 0:be.placement;if(!V)switch(p){case"bestFit":{var ye;const F=(ye=U.filter(z=>{if(O){const pe=ir(z.placement);return pe===b||pe==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(pe=>pe>0).reduce((pe,x)=>pe+x,0)]).sort((z,pe)=>z[1]-pe[1])[0])==null?void 0:ye[0];F&&(V=F);break}case"initialPlacement":V=a;break}if(i!==V)return{reset:{placement:V}}}return{}}}};async function Cp(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Ln(n),a=Hr(n),l=ir(n)==="y",u=["left","top"].includes(s)?-1:1,c=o&&l?-1:1,f=qr(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof y=="number"&&(p=a==="end"?y*-1:y),l?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const Tp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await Cp(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},_p=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:E=>{let{x:v,y:b}=E;return{x:v,y:b}}},...l}=qr(e,t),u={x:n,y:r},c=await Zu(t,l),f=ir(Ln(i)),d=Ju(f);let p=u[d],y=u[f];if(o){const E=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=p+c[E],T=p-c[v];p=es(b,p,T)}if(s){const E=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=y+c[E],T=y-c[v];y=es(b,y,T)}const g=a.fn({...t,[d]:p,[f]:y});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[d]:o,[f]:s}}}}}};function Ki(){return typeof window<"u"}function pr(e){return ec(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rn(e){var t;return(t=(ec(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ec(e){return Ki()?e instanceof Node||e instanceof St(e).Node:!1}function Wt(e){return Ki()?e instanceof Element||e instanceof St(e).Element:!1}function nn(e){return Ki()?e instanceof HTMLElement||e instanceof St(e).HTMLElement:!1}function Za(e){return!Ki()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}function Gr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Op(e){return["table","td","th"].includes(pr(e))}function Yi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Vs(e){const t=Fs(),n=Wt(e)?Ut(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function xp(e){let t=En(e);for(;nn(t)&&!or(t);){if(Vs(t))return t;if(Yi(t))return null;t=En(t)}return null}function Fs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function or(e){return["html","body","#document"].includes(pr(e))}function Ut(e){return St(e).getComputedStyle(e)}function Qi(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function En(e){if(pr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Za(e)&&e.host||rn(e);return Za(t)?t.host:t}function tc(e){const t=En(e);return or(t)?e.ownerDocument?e.ownerDocument.body:e.body:nn(t)&&Gr(t)?t:tc(t)}function Dr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=tc(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=St(i);if(o){const a=ns(s);return t.concat(s,s.visualViewport||[],Gr(i)?i:[],a&&n?Dr(a):[])}return t.concat(i,Dr(i,[],n))}function ns(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nc(e){const t=Ut(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=nn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Ai(n)!==o||Ai(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Bs(e){return Wt(e)?e:e.contextElement}function tr(e){const t=Bs(e);if(!nn(t))return tn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=nc(t);let s=(o?Ai(n.width):n.width)/r,a=(o?Ai(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ap=tn(0);function rc(e){const t=St(e);return!Fs()||!t.visualViewport?Ap:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==St(e)?!1:t}function Nn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Bs(e);let s=tn(1);t&&(r?Wt(r)&&(s=tr(r)):s=tr(e));const a=Pp(o,n,r)?rc(o):tn(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){const d=St(o),p=r&&Wt(r)?St(r):r;let y=d,g=ns(y);for(;g&&r&&p!==y;){const E=tr(g),v=g.getBoundingClientRect(),b=Ut(g),T=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*E.x,R=v.top+(g.clientTop+parseFloat(b.paddingTop))*E.y;l*=E.x,u*=E.y,c*=E.x,f*=E.y,l+=T,u+=R,y=St(g),g=ns(y)}}return Ri({width:c,height:f,x:l,y:u})}function Ws(e,t){const n=Qi(e).scrollLeft;return t?t.left+n:Nn(rn(e)).left+n}function ic(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Ws(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Rp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=rn(r),a=t?Yi(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=tn(1);const c=tn(0),f=nn(r);if((f||!f&&!o)&&((pr(r)!=="body"||Gr(s))&&(l=Qi(r)),nn(r))){const p=Nn(r);u=tr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=s&&!f&&!o?ic(s,l,!0):tn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function Mp(e){return Array.from(e.getClientRects())}function kp(e){const t=rn(e),n=Qi(e),r=e.ownerDocument.body,i=kn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=kn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ws(e);const a=-n.scrollTop;return Ut(r).direction==="rtl"&&(s+=kn(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Ip(e,t){const n=St(e),r=rn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=Fs();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function Lp(e,t){const n=Nn(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=nn(e)?tr(e):tn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function el(e,t,n){let r;if(t==="viewport")r=Ip(e,n);else if(t==="document")r=kp(rn(e));else if(Wt(t))r=Lp(t,n);else{const i=rc(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ri(r)}function oc(e,t){const n=En(e);return n===t||!Wt(n)||or(n)?!1:Ut(n).position==="fixed"||oc(n,t)}function Np(e,t){const n=t.get(e);if(n)return n;let r=Dr(e,[],!1).filter(a=>Wt(a)&&pr(a)!=="body"),i=null;const o=Ut(e).position==="fixed";let s=o?En(e):e;for(;Wt(s)&&!or(s);){const a=Ut(s),l=Vs(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Gr(s)&&!l&&oc(e,s))?r=r.filter(c=>c!==s):i=a,s=En(s)}return t.set(e,r),r}function Dp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Yi(t)?[]:Np(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const f=el(t,c,i);return u.top=kn(f.top,u.top),u.right=rr(f.right,u.right),u.bottom=rr(f.bottom,u.bottom),u.left=kn(f.left,u.left),u},el(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function $p(e){const{width:t,height:n}=nc(e);return{width:t,height:n}}function jp(e,t,n){const r=nn(t),i=rn(t),o=n==="fixed",s=Nn(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=tn(0);if(r||!r&&!o)if((pr(t)!=="body"||Gr(i))&&(a=Qi(t)),r){const d=Nn(t,!0,o,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&(l.x=Ws(i));const u=i&&!r&&!o?ic(i,a):tn(0),c=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:c,y:f,width:s.width,height:s.height}}function Po(e){return Ut(e).position==="static"}function tl(e,t){if(!nn(e)||Ut(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return rn(e)===n&&(n=n.ownerDocument.body),n}function sc(e,t){const n=St(e);if(Yi(e))return n;if(!nn(e)){let i=En(e);for(;i&&!or(i);){if(Wt(i)&&!Po(i))return i;i=En(i)}return n}let r=tl(e,t);for(;r&&Op(r)&&Po(r);)r=tl(r,t);return r&&or(r)&&Po(r)&&!Vs(r)?n:r||xp(e)||n}const Vp=async function(e){const t=this.getOffsetParent||sc,n=this.getDimensions,r=await n(e.floating);return{reference:jp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fp(e){return Ut(e).direction==="rtl"}const Bp={convertOffsetParentRelativeRectToViewportRelativeRect:Rp,getDocumentElement:rn,getClippingRect:Dp,getOffsetParent:sc,getElementRects:Vp,getClientRects:Mp,getDimensions:$p,getScale:tr,isElement:Wt,isRTL:Fp};function ac(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wp(e,t){let n=null,r;const i=rn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(a||t(),!d||!p)return;const y=yi(f),g=yi(i.clientWidth-(c+d)),E=yi(i.clientHeight-(f+p)),v=yi(c),T={rootMargin:-y+"px "+-g+"px "+-E+"px "+-v+"px",threshold:kn(0,rr(1,l))||1};let R=!0;function S(O){const M=O[0].intersectionRatio;if(M!==l){if(!R)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!ac(u,e.getBoundingClientRect())&&s(),R=!1}try{n=new IntersectionObserver(S,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,T)}n.observe(e)}return s(!0),o}function lc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Bs(e),c=i||o?[...u?Dr(u):[],...Dr(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const f=u&&a?Wp(u,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(v=>{let[b]=v;b&&b.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var T;(T=p)==null||T.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let y,g=l?Nn(e):null;l&&E();function E(){const v=Nn(e);g&&!ac(g,v)&&n(),g=v,y=requestAnimationFrame(E)}return n(),()=>{var v;c.forEach(b=>{i&&b.removeEventListener("scroll",n),o&&b.removeEventListener("resize",n)}),f==null||f(),(v=p)==null||v.disconnect(),p=null,l&&cancelAnimationFrame(y)}}const uc=Tp,Up=_p,cc=Ep,zp=Sp,rs=(e,t,n)=>{const r=new Map,i={platform:Bp,...n},o={...i.platform,_c:r};return wp(e,t,{...i,platform:o})};var Ci=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Mi(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(!Mi(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 o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Mi(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function fc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nl(e,t){const n=fc(e);return Math.round(t*n)/n}function Ro(e){const t=ie.useRef(e);return Ci(()=>{t.current=e}),t}function qp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=ie.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=ie.useState(r);Mi(d,r)||p(r);const[y,g]=ie.useState(null),[E,v]=ie.useState(null),b=ie.useCallback(z=>{z!==O.current&&(O.current=z,g(z))},[]),T=ie.useCallback(z=>{z!==M.current&&(M.current=z,v(z))},[]),R=o||y,S=s||E,O=ie.useRef(null),M=ie.useRef(null),L=ie.useRef(c),K=l!=null,U=Ro(l),se=Ro(i),be=Ro(u),ye=ie.useCallback(()=>{if(!O.current||!M.current)return;const z={placement:t,strategy:n,middleware:d};se.current&&(z.platform=se.current),rs(O.current,M.current,z).then(pe=>{const x={...pe,isPositioned:be.current!==!1};B.current&&!Mi(L.current,x)&&(L.current=x,Ei.flushSync(()=>{f(x)}))})},[d,t,n,se,be]);Ci(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,f(z=>({...z,isPositioned:!1})))},[u]);const B=ie.useRef(!1);Ci(()=>(B.current=!0,()=>{B.current=!1}),[]),Ci(()=>{if(R&&(O.current=R),S&&(M.current=S),R&&S){if(U.current)return U.current(R,S,ye);ye()}},[R,S,ye,U,K]);const Q=ie.useMemo(()=>({reference:O,floating:M,setReference:b,setFloating:T}),[b,T]),V=ie.useMemo(()=>({reference:R,floating:S}),[R,S]),F=ie.useMemo(()=>{const z={position:n,left:0,top:0};if(!V.floating)return z;const pe=nl(V.floating,c.x),x=nl(V.floating,c.y);return a?{...z,transform:"translate("+pe+"px, "+x+"px)",...fc(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:pe,top:x}},[n,a,V.floating,c.x,c.y]);return ie.useMemo(()=>({...c,update:ye,refs:Q,elements:V,floatingStyles:F}),[c,ye,Q,V,F])}const Hp=(e,t)=>({...uc(e),options:[e,t]}),Gp=(e,t)=>({...cc(e),options:[e,t]});function hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mo={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */var rl;function Kp(){return rl||(rl=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)t.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Mo)),Mo.exports}var Yp=Kp();const is=hr(Yp);/*
6
+ * React Tooltip
7
+ * {@link https://github.com/ReactTooltip/react-tooltip}
8
+ * @copyright ReactTooltip Team
9
+ * @license MIT
10
+ */const Qp="react-tooltip-core-styles",Jp="react-tooltip-base-styles",il={core:!1,base:!1};function ol({css:e,id:t=Jp,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||il[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:process.env)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=Qp),r||(r={});const{insertAt:s}=r;if(document.getElementById(t))return;const a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css",s==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),il[n]=!0}const sl=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:s=[uc(Number(i)),cc({fallbackAxisSideDirection:"start"}),Up({padding:5})],border:a})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const l=s;return n?(l.push(zp({element:n,padding:5})),rs(e,t,{placement:r,strategy:o,middleware:l}).then(({x:u,y:c,placement:f,middlewareData:d})=>{var p,y;const g={left:`${u}px`,top:`${c}px`,border:a},{x:E,y:v}=(p=d.arrow)!==null&&p!==void 0?p:{x:0,y:0},b=(y={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&y!==void 0?y:"bottom",T=a&&{borderBottom:a,borderRight:a};let R=0;if(a){const S=`${a}`.match(/(\d+)px/);R=S!=null&&S[1]?Number(S[1]):1}return{tooltipStyles:g,tooltipArrowStyles:{left:E!=null?`${E}px`:"",top:v!=null?`${v}px`:"",right:"",bottom:"",...T,[b]:`-${4+R}px`},place:f}})):rs(e,t,{placement:"bottom",strategy:o,middleware:l}).then(({x:u,y:c,placement:f})=>({tooltipStyles:{left:`${u}px`,top:`${c}px`},tooltipArrowStyles:{},place:f}))},al=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),ll=(e,t,n)=>{let r=null;const i=function(...o){const s=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(s,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},ul=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",os=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>os(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ul(e)||!ul(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>os(e[i],t[i]))},Xp=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},cl=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Xp(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Zp=typeof window<"u"?w.useLayoutEffect:w.useEffect,Rt=e=>{e.current&&(clearTimeout(e.current),e.current=null)},eh="DEFAULT_TOOLTIP_ID",th={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},nh=w.createContext({getTooltipData:()=>th});function dc(e=eh){return w.useContext(nh).getTooltipData(e)}var Kn={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},ko={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const rh=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:s,place:a="top",offset:l=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:f="absolute",middlewares:d,wrapper:p,delayShow:y=0,delayHide:g=0,float:E=!1,hidden:v=!1,noArrow:b=!1,clickable:T=!1,closeOnEsc:R=!1,closeOnScroll:S=!1,closeOnResize:O=!1,openEvents:M,closeEvents:L,globalCloseEvents:K,imperativeModeOnly:U,style:se,position:be,afterShow:ye,afterHide:B,disableTooltip:Q,content:V,contentWrapperRef:F,isOpen:z,defaultIsOpen:pe=!1,setIsOpen:x,activeAnchor:N,setActiveAnchor:oe,border:W,opacity:ee,arrowColor:he,role:le="tooltip"})=>{var ue;const X=w.useRef(null),fe=w.useRef(null),ne=w.useRef(null),Pe=w.useRef(null),$=w.useRef(null),[Le,Xe]=w.useState({tooltipStyles:{},tooltipArrowStyles:{},place:a}),[$e,Kt]=w.useState(!1),[Ze,Ct]=w.useState(!1),[Re,pt]=w.useState(null),ht=w.useRef(!1),Nt=w.useRef(null),{anchorRefs:Dt,setActiveAnchor:et}=dc(t),mt=w.useRef(!1),[Tt,_t]=w.useState([]),Ot=w.useRef(!1),$t=c||u.includes("click"),on=$t||(M==null?void 0:M.click)||(M==null?void 0:M.dblclick)||(M==null?void 0:M.mousedown),tt=M?{...M}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!M&&$t&&Object.assign(tt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Yt=L?{...L}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!L&&$t&&Object.assign(Yt,{mouseleave:!1,blur:!1,mouseout:!1});const nt=K?{...K}:{escape:R||!1,scroll:S||!1,resize:O||!1,clickOutsideAnchor:on||!1};U&&(Object.assign(tt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Yt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(nt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Zp(()=>(Ot.current=!0,()=>{Ot.current=!1}),[]);const ke=j=>{Ot.current&&(j&&Ct(!0),setTimeout(()=>{Ot.current&&(x==null||x(j),z===void 0&&Kt(j))},10))};w.useEffect(()=>{if(z===void 0)return()=>null;z&&Ct(!0);const j=setTimeout(()=>{Kt(z)},10);return()=>{clearTimeout(j)}},[z]),w.useEffect(()=>{if($e!==ht.current)if(Rt($),ht.current=$e,$e)ye==null||ye();else{const j=(te=>{const ce=te.match(/^([\d.]+)(ms|s)$/);if(!ce)return 0;const[,je,qe]=ce;return Number(je)*(qe==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));$.current=setTimeout(()=>{Ct(!1),pt(null),B==null||B()},j+25)}},[$e]);const sn=j=>{Xe(te=>os(te,j)?te:j)},an=(j=y)=>{Rt(ne),Ze?ke(!0):ne.current=setTimeout(()=>{ke(!0)},j)},yt=(j=g)=>{Rt(Pe),Pe.current=setTimeout(()=>{mt.current||ke(!1)},j)},gt=j=>{var te;if(!j)return;const ce=(te=j.currentTarget)!==null&&te!==void 0?te:j.target;if(!(ce!=null&&ce.isConnected))return oe(null),void et({current:null});y?an():ke(!0),oe(ce),et({current:ce}),Rt(Pe)},rt=()=>{T?yt(g||100):g?yt():ke(!1),Rt(ne)},vt=({x:j,y:te})=>{var ce;const je={getBoundingClientRect:()=>({x:j,y:te,width:0,height:0,top:te,left:j,right:j,bottom:te})};sl({place:(ce=Re==null?void 0:Re.place)!==null&&ce!==void 0?ce:a,offset:l,elementReference:je,tooltipReference:X.current,tooltipArrowReference:fe.current,strategy:f,middlewares:d,border:W}).then(qe=>{sn(qe)})},bt=j=>{if(!j)return;const te=j,ce={x:te.clientX,y:te.clientY};vt(ce),Nt.current=ce},it=j=>{var te;if(!$e)return;const ce=j.target;ce.isConnected&&(!((te=X.current)===null||te===void 0)&&te.contains(ce)||[document.querySelector(`[id='${o}']`),...Tt].some(je=>je==null?void 0:je.contains(ce))||(ke(!1),Rt(ne)))},Qt=ll(gt,50),Ne=ll(rt,50),Ke=j=>{Ne.cancel(),Qt(j)},Z=()=>{Qt.cancel(),Ne()},ve=w.useCallback(()=>{var j,te;const ce=(j=Re==null?void 0:Re.position)!==null&&j!==void 0?j:be;ce?vt(ce):E?Nt.current&&vt(Nt.current):N!=null&&N.isConnected&&sl({place:(te=Re==null?void 0:Re.place)!==null&&te!==void 0?te:a,offset:l,elementReference:N,tooltipReference:X.current,tooltipArrowReference:fe.current,strategy:f,middlewares:d,border:W}).then(je=>{Ot.current&&sn(je)})},[$e,N,V,se,a,Re==null?void 0:Re.place,l,f,be,Re==null?void 0:Re.position,E]);w.useEffect(()=>{var j,te;const ce=new Set(Dt);Tt.forEach(Ce=>{Q!=null&&Q(Ce)||ce.add({current:Ce})});const je=document.querySelector(`[id='${o}']`);je&&!(Q!=null&&Q(je))&&ce.add({current:je});const qe=()=>{ke(!1)},lt=cl(N),Ve=cl(X.current);nt.scroll&&(window.addEventListener("scroll",qe),lt==null||lt.addEventListener("scroll",qe),Ve==null||Ve.addEventListener("scroll",qe));let He=null;nt.resize?window.addEventListener("resize",qe):N&&X.current&&(He=lc(N,X.current,ve,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Ie=Ce=>{Ce.key==="Escape"&&ke(!1)};nt.escape&&window.addEventListener("keydown",Ie),nt.clickOutsideAnchor&&window.addEventListener("click",it);const Me=[],ln=Ce=>{$e&&(Ce==null?void 0:Ce.target)===N||gt(Ce)},Cr=Ce=>{$e&&(Ce==null?void 0:Ce.target)===N&&rt()},jt=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Un=["click","dblclick","mousedown","mouseup"];Object.entries(tt).forEach(([Ce,wt])=>{wt&&(jt.includes(Ce)?Me.push({event:Ce,listener:Ke}):Un.includes(Ce)&&Me.push({event:Ce,listener:ln}))}),Object.entries(Yt).forEach(([Ce,wt])=>{wt&&(jt.includes(Ce)?Me.push({event:Ce,listener:Z}):Un.includes(Ce)&&Me.push({event:Ce,listener:Cr}))}),E&&Me.push({event:"pointermove",listener:bt});const zn=()=>{mt.current=!0},qn=()=>{mt.current=!1,rt()};return T&&!on&&((j=X.current)===null||j===void 0||j.addEventListener("mouseenter",zn),(te=X.current)===null||te===void 0||te.addEventListener("mouseleave",qn)),Me.forEach(({event:Ce,listener:wt})=>{ce.forEach(At=>{var Vt;(Vt=At.current)===null||Vt===void 0||Vt.addEventListener(Ce,wt)})}),()=>{var Ce,wt;nt.scroll&&(window.removeEventListener("scroll",qe),lt==null||lt.removeEventListener("scroll",qe),Ve==null||Ve.removeEventListener("scroll",qe)),nt.resize?window.removeEventListener("resize",qe):He==null||He(),nt.clickOutsideAnchor&&window.removeEventListener("click",it),nt.escape&&window.removeEventListener("keydown",Ie),T&&!on&&((Ce=X.current)===null||Ce===void 0||Ce.removeEventListener("mouseenter",zn),(wt=X.current)===null||wt===void 0||wt.removeEventListener("mouseleave",qn)),Me.forEach(({event:At,listener:Vt})=>{ce.forEach(Hn=>{var On;(On=Hn.current)===null||On===void 0||On.removeEventListener(At,Vt)})})}},[N,ve,Ze,Dt,Tt,M,L,K,$t,y,g]),w.useEffect(()=>{var j,te;let ce=(te=(j=Re==null?void 0:Re.anchorSelect)!==null&&j!==void 0?j:s)!==null&&te!==void 0?te:"";!ce&&t&&(ce=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const je=new MutationObserver(qe=>{const lt=[],Ve=[];qe.forEach(He=>{if(He.type==="attributes"&&He.attributeName==="data-tooltip-id"&&(He.target.getAttribute("data-tooltip-id")===t?lt.push(He.target):He.oldValue===t&&Ve.push(He.target)),He.type==="childList"){if(N){const Ie=[...He.removedNodes].filter(Me=>Me.nodeType===1);if(ce)try{Ve.push(...Ie.filter(Me=>Me.matches(ce))),Ve.push(...Ie.flatMap(Me=>[...Me.querySelectorAll(ce)]))}catch{}Ie.some(Me=>{var ln;return!!(!((ln=Me==null?void 0:Me.contains)===null||ln===void 0)&&ln.call(Me,N))&&(Ct(!1),ke(!1),oe(null),Rt(ne),Rt(Pe),!0)})}if(ce)try{const Ie=[...He.addedNodes].filter(Me=>Me.nodeType===1);lt.push(...Ie.filter(Me=>Me.matches(ce))),lt.push(...Ie.flatMap(Me=>[...Me.querySelectorAll(ce)]))}catch{}}}),(lt.length||Ve.length)&&_t(He=>[...He.filter(Ie=>!Ve.includes(Ie)),...lt])});return je.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{je.disconnect()}},[t,s,Re==null?void 0:Re.anchorSelect,N]),w.useEffect(()=>{ve()},[ve]),w.useEffect(()=>{if(!(F!=null&&F.current))return()=>null;const j=new ResizeObserver(()=>{setTimeout(()=>ve())});return j.observe(F.current),()=>{j.disconnect()}},[V,F==null?void 0:F.current]),w.useEffect(()=>{var j;const te=document.querySelector(`[id='${o}']`),ce=[...Tt,te];N&&ce.includes(N)||oe((j=Tt[0])!==null&&j!==void 0?j:te)},[o,Tt,N]),w.useEffect(()=>(pe&&ke(!0),()=>{Rt(ne),Rt(Pe)}),[]),w.useEffect(()=>{var j;let te=(j=Re==null?void 0:Re.anchorSelect)!==null&&j!==void 0?j:s;if(!te&&t&&(te=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),te)try{const ce=Array.from(document.querySelectorAll(te));_t(ce)}catch{_t([])}},[t,s,Re==null?void 0:Re.anchorSelect]),w.useEffect(()=>{ne.current&&(Rt(ne),an(y))},[y]);const ze=(ue=Re==null?void 0:Re.content)!==null&&ue!==void 0?ue:V,xt=$e&&Object.keys(Le.tooltipStyles).length>0;return w.useImperativeHandle(e,()=>({open:j=>{if(j!=null&&j.anchorSelect)try{document.querySelector(j.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${j.anchorSelect}" is not a valid CSS selector`)}pt(j??null),j!=null&&j.delay?an(j.delay):ke(!0)},close:j=>{j!=null&&j.delay?yt(j.delay):ke(!1)},activeAnchor:N,place:Le.place,isOpen:!!(Ze&&!v&&ze&&xt)})),Ze&&!v&&ze?w.createElement(p,{id:t,role:le,className:is("react-tooltip",Kn.tooltip,ko.tooltip,ko[i],n,`react-tooltip__place-${Le.place}`,Kn[xt?"show":"closing"],xt?"react-tooltip__show":"react-tooltip__closing",f==="fixed"&&Kn.fixed,T&&Kn.clickable),onTransitionEnd:j=>{Rt($),$e||j.propertyName!=="opacity"||(Ct(!1),pt(null),B==null||B())},style:{...se,...Le.tooltipStyles,opacity:ee!==void 0&&xt?ee:void 0},ref:X},ze,w.createElement(p,{className:is("react-tooltip-arrow",Kn.arrow,ko.arrow,r,b&&Kn.noArrow),style:{...Le.tooltipArrowStyles,background:he?`linear-gradient(to right bottom, transparent 50%, ${he} 50%)`:void 0},ref:fe})):null},ih=({content:e})=>w.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),oh=w.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:s,classNameArrow:a,variant:l="dark",place:u="top",offset:c=10,wrapper:f="div",children:d=null,events:p=["hover"],openOnClick:y=!1,positionStrategy:g="absolute",middlewares:E,delayShow:v=0,delayHide:b=0,float:T=!1,hidden:R=!1,noArrow:S=!1,clickable:O=!1,closeOnEsc:M=!1,closeOnScroll:L=!1,closeOnResize:K=!1,openEvents:U,closeEvents:se,globalCloseEvents:be,imperativeModeOnly:ye=!1,style:B,position:Q,isOpen:V,defaultIsOpen:F=!1,disableStyleInjection:z=!1,border:pe,opacity:x,arrowColor:N,setIsOpen:oe,afterShow:W,afterHide:ee,disableTooltip:he,role:le="tooltip"},ue)=>{const[X,fe]=w.useState(r),[ne,Pe]=w.useState(i),[$,Le]=w.useState(u),[Xe,$e]=w.useState(l),[Kt,Ze]=w.useState(c),[Ct,Re]=w.useState(v),[pt,ht]=w.useState(b),[Nt,Dt]=w.useState(T),[et,mt]=w.useState(R),[Tt,_t]=w.useState(f),[Ot,$t]=w.useState(p),[on,tt]=w.useState(g),[Yt,nt]=w.useState(null),[ke,sn]=w.useState(null),an=w.useRef(z),{anchorRefs:yt,activeAnchor:gt}=dc(e),rt=Ne=>Ne==null?void 0:Ne.getAttributeNames().reduce((Ke,Z)=>{var ve;return Z.startsWith("data-tooltip-")&&(Ke[Z.replace(/^data-tooltip-/,"")]=(ve=Ne==null?void 0:Ne.getAttribute(Z))!==null&&ve!==void 0?ve:null),Ke},{}),vt=Ne=>{const Ke={place:Z=>{var ve;Le((ve=Z)!==null&&ve!==void 0?ve:u)},content:Z=>{fe(Z??r)},html:Z=>{Pe(Z??i)},variant:Z=>{var ve;$e((ve=Z)!==null&&ve!==void 0?ve:l)},offset:Z=>{Ze(Z===null?c:Number(Z))},wrapper:Z=>{var ve;_t((ve=Z)!==null&&ve!==void 0?ve:f)},events:Z=>{const ve=Z==null?void 0:Z.split(" ");$t(ve??p)},"position-strategy":Z=>{var ve;tt((ve=Z)!==null&&ve!==void 0?ve:g)},"delay-show":Z=>{Re(Z===null?v:Number(Z))},"delay-hide":Z=>{ht(Z===null?b:Number(Z))},float:Z=>{Dt(Z===null?T:Z==="true")},hidden:Z=>{mt(Z===null?R:Z==="true")},"class-name":Z=>{nt(Z)}};Object.values(Ke).forEach(Z=>Z(null)),Object.entries(Ne).forEach(([Z,ve])=>{var ze;(ze=Ke[Z])===null||ze===void 0||ze.call(Ke,ve)})};w.useEffect(()=>{fe(r)},[r]),w.useEffect(()=>{Pe(i)},[i]),w.useEffect(()=>{Le(u)},[u]),w.useEffect(()=>{$e(l)},[l]),w.useEffect(()=>{Ze(c)},[c]),w.useEffect(()=>{Re(v)},[v]),w.useEffect(()=>{ht(b)},[b]),w.useEffect(()=>{Dt(T)},[T]),w.useEffect(()=>{mt(R)},[R]),w.useEffect(()=>{tt(g)},[g]),w.useEffect(()=>{an.current!==z&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[z]),w.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:z==="core",disableBase:z}}))},[]),w.useEffect(()=>{var Ne;const Ke=new Set(yt);let Z=n;if(!Z&&e&&(Z=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Z)try{document.querySelectorAll(Z).forEach(te=>{Ke.add({current:te})})}catch{console.warn(`[react-tooltip] "${Z}" is not a valid CSS selector`)}const ve=document.querySelector(`[id='${t}']`);if(ve&&Ke.add({current:ve}),!Ke.size)return()=>null;const ze=(Ne=ke??ve)!==null&&Ne!==void 0?Ne:gt.current,xt=new MutationObserver(te=>{te.forEach(ce=>{var je;if(!ze||ce.type!=="attributes"||!(!((je=ce.attributeName)===null||je===void 0)&&je.startsWith("data-tooltip-")))return;const qe=rt(ze);vt(qe)})}),j={attributes:!0,childList:!1,subtree:!1};if(ze){const te=rt(ze);vt(te),xt.observe(ze,j)}return()=>{xt.disconnect()}},[yt,gt,ke,t,n]),w.useEffect(()=>{B!=null&&B.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),pe&&!al("border",`${pe}`)&&console.warn(`[react-tooltip] "${pe}" is not a valid \`border\`.`),B!=null&&B.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),x&&!al("opacity",`${x}`)&&console.warn(`[react-tooltip] "${x}" is not a valid \`opacity\`.`)},[]);let bt=d;const it=w.useRef(null);if(o){const Ne=o({content:(ke==null?void 0:ke.getAttribute("data-tooltip-content"))||X||null,activeAnchor:ke});bt=Ne?w.createElement("div",{ref:it,className:"react-tooltip-content-wrapper"},Ne):null}else X&&(bt=X);ne&&(bt=w.createElement(ih,{content:ne}));const Qt={forwardRef:ue,id:e,anchorId:t,anchorSelect:n,className:is(s,Yt),classNameArrow:a,content:bt,contentWrapperRef:it,place:$,variant:Xe,offset:Kt,wrapper:Tt,events:Ot,openOnClick:y,positionStrategy:on,middlewares:E,delayShow:Ct,delayHide:pt,float:Nt,hidden:et,noArrow:S,clickable:O,closeOnEsc:M,closeOnScroll:L,closeOnResize:K,openEvents:U,closeEvents:se,globalCloseEvents:be,imperativeModeOnly:ye,style:B,position:Q,isOpen:V,defaultIsOpen:F,border:pe,opacity:x,arrowColor:N,setIsOpen:oe,afterShow:W,afterHide:ee,disableTooltip:he,activeAnchor:ke,setActiveAnchor:Ne=>sn(Ne),role:le};return w.createElement(rh,{...Qt})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||ol({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||ol({css:`
11
+ .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});var jn=[["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"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["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"],["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"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["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"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],sh="react-international-phone-",pc=(...e)=>e.filter(t=>!!t).join(" ").trim(),ah=(...e)=>pc(...e).split(" ").map(t=>`${sh}${t}`).join(" "),Je=({addPrefix:e,rawClassNames:t})=>pc(ah(...e),...t),lh=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),s=e.slice(r),a=o,l=0;for(let u of t.split("")){if(l>=s.length){if(!i&&u!==n){a+=u;continue}break}u===n?(a+=s[l],l+=1):a+=u}return a},Qn=e=>e?/^\d+$/.test(e):!1,Ji=e=>e.replace(/\D/g,""),uh=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,s=r.bottom-i.bottom;o>=0&&s>=0||(Math.abs(o)<Math.abs(s)?e.scrollTop+=o:e.scrollTop-=s),e.style.display=n},ch=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),fh=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=u=>t.trimNonDigitsEnd?u.trim():u;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=Ji(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let s=()=>{let u=t.dialCode.length,c=i.slice(0,u),f=i.slice(u);return{phoneLeftSide:c,phoneRightSide:f}},{phoneLeftSide:a,phoneRightSide:l}=s();return a=`${t.prefix}${a}${t.charAfterDialCode}`,l=lh({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(a=""),o(`${a}${l}`)},dh=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let s=null;for(let c=r-1;c>=0;c-=1)if(Qn(t[c])){s=c;break}if(s===null){for(let c=0;c<t.length;c+=1)if(Qn(n[c]))return c;return t.length}let a=0;for(let c=0;c<s;c+=1)Qn(t[c])&&(a+=1);let l=0,u=0;for(let c=0;c<n.length&&(l+=1,Qn(n[c])&&(u+=1),!(u>=a+1));c+=1);if(o!=="backward")for(;!Qn(n[l])&&l<n.length;)l+=1;return l},Ti=({phone:e,prefix:t})=>e?`${t}${Ji(e)}`:"";function ss({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:s,forceDialCode:a,disableDialCodeAndPrefix:l,defaultMask:u,countryGuessingEnabled:c,disableFormatting:f}){let d=e;l&&(d=d.startsWith(`${o}`)?d:`${o}${t.dialCode}${d}`);let p=c?Sh({phone:d,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,y=(p==null?void 0:p.country)??t,g=fh(d,{prefix:o,mask:bh({phone:d,country:y,defaultMask:u,disableFormatting:f}),maskChar:hc,dialCode:y.dialCode,trimNonDigitsEnd:r,charAfterDialCode:s,forceDialCode:a,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),E=c&&!(p!=null&&p.fullDialCodeMatch)?t:y;return{phone:Ti({phone:l?`${E.dialCode}${g}`:g,prefix:o}),inputValue:g,country:E}}var ph=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},hh=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:a,countryGuessingEnabled:l,defaultMask:u,disableFormatting:c,countries:f})=>{let d=e.nativeEvent,p=d.inputType,y=ph(p),g=!!(p!=null&&p.startsWith("insertFrom")),E=p==="insertText",v=(d==null?void 0:d.data)||void 0,b=e.target.value,T=e.target.selectionStart??0;if(p!=null&&p.includes("history"))return{inputValue:r,phone:Ti({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(E&&!Qn(v)&&b!==i)return{inputValue:r,phone:Ti({phone:a?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:T-((v==null?void 0:v.length)??0),country:t};if(s&&!b.startsWith(`${i}${t.dialCode}`)&&!g){let L=b?r:`${i}${t.dialCode}${o}`;return{inputValue:L,phone:Ti({phone:L,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:R,inputValue:S,country:O}=ss({value:b,country:t,trimNonDigitsEnd:y==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:f,prefix:i,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:a,disableFormatting:c,defaultMask:u}),M=dh({cursorPositionAfterInput:T,phoneBeforeInput:r,phoneAfterInput:b,phoneAfterFormatted:S,leftOffset:s?i.length+t.dialCode.length+o.length:0,deletion:y});return{phone:R,inputValue:S,cursorPosition:M,country:O}},mh=(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},yh=()=>{let e=w.useRef(),t=w.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}}},gh={size:20,overrideLastItemDebounceMS:-1};function vh(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...gh,...t},[o,s]=w.useState(e),[a,l]=w.useState([o]),[u,c]=w.useState(0),f=yh();return[o,(d,p)=>{if(typeof d=="object"&&typeof o=="object"&&mh(d,o)||d===o)return;let y=r>0,g=f.check(),E=y&&g!==void 0?g>r:!0;if((p==null?void 0:p.overrideLastItem)!==void 0?p.overrideLastItem:!E)l(v=>[...v.slice(0,u),d]);else{let v=a.length>=n;l(b=>[...b.slice(v?1:0,u+1),d]),v||c(b=>b+1)}s(d),i==null||i(d)},()=>{if(u<=0)return{success:!1};let d=a[u-1];return s(d),c(p=>p-1),i==null||i(d),{success:!0,value:d}},()=>{if(u+1>=a.length)return{success:!1};let d=a[u+1];return s(d),c(p=>p+1),i==null||i(d),{success:!0,value:d}}]}var hc=".",Mt={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:jn,preferredCountries:[]},mc=({defaultCountry:e=Mt.defaultCountry,value:t=Mt.value,countries:n=Mt.countries,prefix:r=Mt.prefix,defaultMask:i=Mt.defaultMask,charAfterDialCode:o=Mt.charAfterDialCode,historySaveDebounceMS:s=Mt.historySaveDebounceMS,disableCountryGuess:a=Mt.disableCountryGuess,disableDialCodePrefill:l=Mt.disableDialCodePrefill,forceDialCode:u=Mt.forceDialCode,disableDialCodeAndPrefix:c=Mt.disableDialCodeAndPrefix,disableFormatting:f=Mt.disableFormatting,onChange:d,inputRef:p})=>{let y={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:c?!1:u,disableDialCodeAndPrefix:c,defaultMask:i,countryGuessingEnabled:!a,disableFormatting:f},g=w.useRef(null),E=p||g,v=B=>{Promise.resolve().then(()=>{var Q;typeof window>"u"||E.current!==(document==null?void 0:document.activeElement)||((Q=E.current)==null||Q.setSelectionRange(B,B))})},[{phone:b,inputValue:T,country:R},S,O,M]=vh(()=>{let B=Jn({value:e,field:"iso2",countries:n});B||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let Q=B||Jn({value:"us",field:"iso2",countries:n}),{phone:V,inputValue:F,country:z}=ss({value:t,country:Q,insertDialCodeOnEmpty:!l,...y});return v(F.length),{phone:V,inputValue:F,country:z.iso2}},{overrideLastItemDebounceMS:s,onChange:({inputValue:B,phone:Q,country:V})=>{if(!d)return;let F=L(V);d({phone:Q,inputValue:B,country:F})}}),L=w.useCallback(B=>Jn({value:B,field:"iso2",countries:n}),[n]),K=w.useMemo(()=>L(R),[R,L]);w.useEffect(()=>{let B=E.current;if(!B)return;let Q=V=>{if(!V.key)return;let F=V.ctrlKey,z=V.metaKey,pe=V.shiftKey;if(V.key.toLowerCase()==="z"){if(ch()){if(!z)return}else if(!F)return;pe?M():O()}};return B.addEventListener("keydown",Q),()=>{B.removeEventListener("keydown",Q)}},[E,O,M]);let U=B=>{B.preventDefault();let{phone:Q,inputValue:V,country:F,cursorPosition:z}=hh(B,{country:K,phoneBeforeInput:T,insertDialCodeOnEmpty:!1,...y});return S({inputValue:V,phone:Q,country:F.iso2}),v(z),t},se=(B,Q={focusOnInput:!1})=>{let V=Jn({value:B,field:"iso2",countries:n});if(!V){console.error(`[react-international-phone]: can not find a country with "${B}" iso2 code`);return}let F=c?"":`${r}${V.dialCode}${o}`;S({inputValue:F,phone:`${r}${V.dialCode}`,country:V.iso2}),Q.focusOnInput&&Promise.resolve().then(()=>{var z;(z=E.current)==null||z.focus()})},[be,ye]=w.useState(!1);return w.useEffect(()=>{if(!be){ye(!0),t!==b&&(d==null||d({inputValue:T,phone:b,country:K}));return}if(t===b)return;let{phone:B,inputValue:Q,country:V}=ss({value:t,country:K,insertDialCodeOnEmpty:!l,...y});S({phone:B,inputValue:Q,country:V.iso2})},[t]),{phone:b,inputValue:T,country:K,setCountry:se,handlePhoneValueChange:U,inputRef:E}},bh=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=a=>r?a.replace(new RegExp(`[^${hc}]`,"g"),""):a;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let s=Object.keys(i).find(a=>{if(a==="default")return!1;if(!(a.charAt(0)==="/"&&a.charAt(a.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${a}" for ${t.iso2} is not valid`),!1;let l=new RegExp(a.substring(1,a.length-1)),u=e.replace(t.dialCode,"");return l.test(Ji(u))});return o(s?i[s]:i.default)},Ft=e=>{let[t,n,r,i,o,s]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:s}},wh=e=>`Field "${e}" is not supported`,Jn=({field:e,value:t,countries:n=jn})=>{if(["priority"].includes(e))throw new Error(wh(e));let r=n.find(i=>{let o=Ft(i);return t===o[e]});if(r)return Ft(r)},Sh=({phone:e,countries:t=jn,currentCountryIso2:n})=>{var a;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Ji(e);if(!i)return r;let o=r,s=({country:l,fullDialCodeMatch:u})=>{var d,p;let c=l.dialCode===((d=o.country)==null?void 0:d.dialCode),f=(l.priority??0)<(((p=o.country)==null?void 0:p.priority)??0);(!c||f)&&(o={country:l,fullDialCodeMatch:u})};for(let l of t){let u=Ft(l),{dialCode:c,areaCodes:f}=u;if(i.startsWith(c)){let d=o.country?Number(c)>=Number(o.country.dialCode):!0;if(f){let p=i.substring(c.length);for(let y of f)if(p.startsWith(y))return{country:u,fullDialCodeMatch:!0}}(d||c===i||!o.fullDialCodeMatch)&&s({country:u,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<c.length&&c.startsWith(i)&&(!o.country||Number(c)<=Number(o.country.dialCode))&&s({country:u,fullDialCodeMatch:!1})}if(n){let l=Jn({value:n,field:"iso2",countries:t});if(!l)return o;let u=l?(c=>{if(!(c!=null&&c.areaCodes))return!1;let f=i.substring(c.dialCode.length);return c.areaCodes.some(d=>d.startsWith(f))})(l):!1;o&&((a=o.country)==null?void 0:a.dialCode)===l.dialCode&&o.country!==l&&o.fullDialCodeMatch&&(!l.areaCodes||u)&&(o={country:l,fullDialCodeMatch:!0})}return o},Eh=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},Ch="abcdefghijklmnopqrstuvwxyz",Th="1f1e6",fl=Ch.split("").reduce((e,t,n)=>({...e,[t]:Eh(Th,n)}),{}),_h=e=>[fl[e[0]],fl[e[1]]].join("-"),Us=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:s,...a})=>{if(!e)return w.createElement("img",{className:Je({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...a});let l=()=>{if(n)return n;let u=_h(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${u}.svg`};return w.createElement("img",{className:Je({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...s},alt:"",...a})},Oh=1e3,xh=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=jn,preferredCountries:i=[],flags:o,onSelect:s,onClose:a,...l})=>{let u=w.useRef(null),c=w.useRef(),f=w.useMemo(()=>{if(!i||!i.length)return r;let O=[],M=[...r];for(let L of i){let K=M.findIndex(U=>Ft(U).iso2===L);if(K!==-1){let U=M.splice(K,1)[0];O.push(U)}}return O.concat(M)},[r,i]),d=w.useRef({updatedAt:void 0,value:""}),p=O=>{let M=d.current.updatedAt&&new Date().getTime()-d.current.updatedAt.getTime()>Oh;d.current={value:M?O:`${d.current.value}${O}`,updatedAt:new Date};let L=f.findIndex(K=>Ft(K).name.toLowerCase().startsWith(d.current.value));L!==-1&&E(L)},y=w.useCallback(O=>f.findIndex(M=>Ft(M).iso2===O),[f]),[g,E]=w.useState(y(n)),v=()=>{c.current!==n&&E(y(n))},b=w.useCallback(O=>{E(y(O.iso2)),s==null||s(O)},[s,y]),T=O=>{let M=f.length-1,L=K=>O==="prev"?K-1:O==="next"?K+1:O==="last"?M:0;E(K=>{let U=L(K);return U<0?0:U>M?M:U})},R=O=>{if(O.stopPropagation(),O.key==="Enter"){O.preventDefault();let M=Ft(f[g]);b(M);return}if(O.key==="Escape"){a==null||a();return}if(O.key==="ArrowUp"){O.preventDefault(),T("prev");return}if(O.key==="ArrowDown"){O.preventDefault(),T("next");return}if(O.key==="PageUp"){O.preventDefault(),T("first");return}if(O.key==="PageDown"){O.preventDefault(),T("last");return}O.key===" "&&O.preventDefault(),O.key.length===1&&!O.altKey&&!O.ctrlKey&&!O.metaKey&&p(O.key.toLocaleLowerCase())},S=w.useCallback(()=>{if(!u.current||g===void 0)return;let O=Ft(f[g]).iso2;if(O===c.current)return;let M=u.current.querySelector(`[data-country="${O}"]`);M&&(uh(u.current,M),c.current=O)},[g,f]);return w.useEffect(()=>{S()},[g,S]),w.useEffect(()=>{u.current&&(e?u.current.focus():v())},[e]),w.useEffect(()=>{v()},[n]),w.createElement("ul",{ref:u,role:"listbox",className:Je({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:R,onBlur:a,tabIndex:-1,"aria-activedescendant":`react-international-phone__${Ft(f[g]).iso2}-option`},f.map((O,M)=>{let L=Ft(O),K=L.iso2===n,U=M===g,se=i.includes(L.iso2),be=M===i.length-1,ye=o==null?void 0:o.find(B=>B.iso2===L.iso2);return w.createElement(w.Fragment,{key:L.iso2},w.createElement("li",{"data-country":L.iso2,role:"option","aria-selected":K,"aria-label":`${L.name} ${t}${L.dialCode}`,id:`react-international-phone__${L.iso2}-option`,className:Je({addPrefix:["country-selector-dropdown__list-item",se&&"country-selector-dropdown__list-item--preferred",K&&"country-selector-dropdown__list-item--selected",U&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>b(L),style:l.listItemStyle,title:L.name},w.createElement(Us,{iso2:L.iso2,src:ye==null?void 0:ye.src,className:Je({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),w.createElement("span",{className:Je({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},L.name),w.createElement("span",{className:Je({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,L.dialCode)),be?w.createElement("hr",{className:Je({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},Ah=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=jn,preferredCountries:o=[],flags:s,renderButtonWrapper:a,...l})=>{let[u,c]=w.useState(!1),f=w.useMemo(()=>{if(e)return Jn({value:e,field:"iso2",countries:i})},[i,e]),d=w.useRef(null),p=g=>{g.key&&["ArrowUp","ArrowDown"].includes(g.key)&&(g.preventDefault(),c(!0))},y=()=>{var v;let g={title:f==null?void 0:f.name,onClick:()=>c(b=>!b),onMouseDown:b=>b.preventDefault(),onKeyDown:p,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":u},E=w.createElement("div",{className:Je({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},w.createElement(Us,{iso2:e,src:(v=s==null?void 0:s.find(b=>b.iso2===e))==null?void 0:v.src,className:Je({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&w.createElement("div",{className:Je({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",u&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return a?a({children:E,rootProps:g}):w.createElement("button",{...g,type:"button",className:Je({addPrefix:["country-selector-button",u&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},E)};return w.createElement("div",{className:Je({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:d},y(),w.createElement(xh,{show:u,countries:i,preferredCountries:o,flags:s,onSelect:g=>{c(!1),t==null||t(g)},selectedCountry:e,onClose:()=>{c(!1)},...l.dropdownStyleProps}))},Ph=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>w.createElement("div",{className:Je({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);w.forwardRef(({value:e,onChange:t,countries:n=jn,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:s,flags:a,style:l,className:u,inputStyle:c,inputClassName:f,countrySelectorStyleProps:d,dialCodePreviewStyleProps:p,inputProps:y,placeholder:g,disabled:E,name:v,onFocus:b,onBlur:T,required:R,autoFocus:S,...O},M)=>{let{phone:L,inputValue:K,inputRef:U,country:se,setCountry:be,handlePhoneValueChange:ye}=mc({value:e,countries:n,...O,onChange:Q=>{t==null||t(Q.phone,{country:Q.country,inputValue:Q.inputValue})}}),B=O.disableDialCodeAndPrefix&&o&&(se==null?void 0:se.dialCode);return w.useImperativeHandle(M,()=>U.current?Object.assign(U.current,{setCountry:be,state:{phone:L,inputValue:K,country:se}}):null,[U,be,L,K,se]),w.createElement("div",{ref:M,className:Je({addPrefix:["input-container"],rawClassNames:[u]}),style:l},w.createElement(Ah,{onSelect:Q=>be(Q.iso2,{focusOnInput:!s}),flags:a,selectedCountry:se.iso2,countries:n,preferredCountries:r,disabled:E,hideDropdown:i,...d}),B&&w.createElement(Ph,{dialCode:se.dialCode,prefix:O.prefix??"+",disabled:E,...p}),w.createElement("input",{onChange:ye,value:K,type:"tel",ref:U,className:Je({addPrefix:["input",E&&"input--disabled"],rawClassNames:[f]}),placeholder:g,disabled:E,style:c,name:v,onFocus:b,onBlur:T,autoFocus:S,required:R,...y}))});var gn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},as={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",f="[object GeneratorFunction]",d="[object Map]",p="[object Number]",y="[object Object]",g="[object Promise]",E="[object RegExp]",v="[object Set]",b="[object String]",T="[object Symbol]",R="[object WeakMap]",S="[object ArrayBuffer]",O="[object DataView]",M="[object Float32Array]",L="[object Float64Array]",K="[object Int8Array]",U="[object Int16Array]",se="[object Int32Array]",be="[object Uint8Array]",ye="[object Uint8ClampedArray]",B="[object Uint16Array]",Q="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,F=/\w*$/,z=/^\[object .+?Constructor\]$/,pe=/^(?:0|[1-9]\d*)$/,x={};x[o]=x[s]=x[S]=x[O]=x[a]=x[l]=x[M]=x[L]=x[K]=x[U]=x[se]=x[d]=x[p]=x[y]=x[E]=x[v]=x[b]=x[T]=x[be]=x[ye]=x[B]=x[Q]=!0,x[u]=x[c]=x[R]=!1;var N=typeof gn=="object"&&gn&&gn.Object===Object&&gn,oe=typeof self=="object"&&self&&self.Object===Object&&self,W=N||oe||Function("return this")(),ee=t&&!t.nodeType&&t,he=ee&&!0&&e&&!e.nodeType&&e,le=he&&he.exports===ee;function ue(m,_){return m.set(_[0],_[1]),m}function X(m,_){return m.add(_),m}function fe(m,_){for(var k=-1,J=m?m.length:0;++k<J&&_(m[k],k,m)!==!1;);return m}function ne(m,_){for(var k=-1,J=_.length,Ge=m.length;++k<J;)m[Ge+k]=_[k];return m}function Pe(m,_,k,J){for(var Ge=-1,ct=m?m.length:0;++Ge<ct;)k=_(k,m[Ge],Ge,m);return k}function $(m,_){for(var k=-1,J=Array(m);++k<m;)J[k]=_(k);return J}function Le(m,_){return m==null?void 0:m[_]}function Xe(m){var _=!1;if(m!=null&&typeof m.toString!="function")try{_=!!(m+"")}catch{}return _}function $e(m){var _=-1,k=Array(m.size);return m.forEach(function(J,Ge){k[++_]=[Ge,J]}),k}function Kt(m,_){return function(k){return m(_(k))}}function Ze(m){var _=-1,k=Array(m.size);return m.forEach(function(J){k[++_]=J}),k}var Ct=Array.prototype,Re=Function.prototype,pt=Object.prototype,ht=W["__core-js_shared__"],Nt=function(){var m=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),Dt=Re.toString,et=pt.hasOwnProperty,mt=pt.toString,Tt=RegExp("^"+Dt.call(et).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=le?W.Buffer:void 0,Ot=W.Symbol,$t=W.Uint8Array,on=Kt(Object.getPrototypeOf,Object),tt=Object.create,Yt=pt.propertyIsEnumerable,nt=Ct.splice,ke=Object.getOwnPropertySymbols,sn=_t?_t.isBuffer:void 0,an=Kt(Object.keys,Object),yt=de(W,"DataView"),gt=de(W,"Map"),rt=de(W,"Promise"),vt=de(W,"Set"),bt=de(W,"WeakMap"),it=de(Object,"create"),Qt=An(yt),Ne=An(gt),Ke=An(rt),Z=An(vt),ve=An(bt),ze=Ot?Ot.prototype:void 0,xt=ze?ze.valueOf:void 0;function j(m){var _=-1,k=m?m.length:0;for(this.clear();++_<k;){var J=m[_];this.set(J[0],J[1])}}function te(){this.__data__=it?it(null):{}}function ce(m){return this.has(m)&&delete this.__data__[m]}function je(m){var _=this.__data__;if(it){var k=_[m];return k===r?void 0:k}return et.call(_,m)?_[m]:void 0}function qe(m){var _=this.__data__;return it?_[m]!==void 0:et.call(_,m)}function lt(m,_){var k=this.__data__;return k[m]=it&&_===void 0?r:_,this}j.prototype.clear=te,j.prototype.delete=ce,j.prototype.get=je,j.prototype.has=qe,j.prototype.set=lt;function Ve(m){var _=-1,k=m?m.length:0;for(this.clear();++_<k;){var J=m[_];this.set(J[0],J[1])}}function He(){this.__data__=[]}function Ie(m){var _=this.__data__,k=xn(_,m);if(k<0)return!1;var J=_.length-1;return k==J?_.pop():nt.call(_,k,1),!0}function Me(m){var _=this.__data__,k=xn(_,m);return k<0?void 0:_[k][1]}function ln(m){return xn(this.__data__,m)>-1}function Cr(m,_){var k=this.__data__,J=xn(k,m);return J<0?k.push([m,_]):k[J][1]=_,this}Ve.prototype.clear=He,Ve.prototype.delete=Ie,Ve.prototype.get=Me,Ve.prototype.has=ln,Ve.prototype.set=Cr;function jt(m){var _=-1,k=m?m.length:0;for(this.clear();++_<k;){var J=m[_];this.set(J[0],J[1])}}function Un(){this.__data__={hash:new j,map:new(gt||Ve),string:new j}}function zn(m){return re(this,m).delete(m)}function qn(m){return re(this,m).get(m)}function Ce(m){return re(this,m).has(m)}function wt(m,_){return re(this,m).set(m,_),this}jt.prototype.clear=Un,jt.prototype.delete=zn,jt.prototype.get=qn,jt.prototype.has=Ce,jt.prototype.set=wt;function At(m){this.__data__=new Ve(m)}function Vt(){this.__data__=new Ve}function Hn(m){return this.__data__.delete(m)}function On(m){return this.__data__.get(m)}function yo(m){return this.__data__.has(m)}function li(m,_){var k=this.__data__;if(k instanceof Ve){var J=k.__data__;if(!gt||J.length<n-1)return J.push([m,_]),this;k=this.__data__=new jt(J)}return k.set(m,_),this}At.prototype.clear=Vt,At.prototype.delete=Hn,At.prototype.get=On,At.prototype.has=yo,At.prototype.set=li;function go(m,_){var k=Oo(m)||sp(m)?$(m.length,String):[],J=k.length,Ge=!!J;for(var ct in m)et.call(m,ct)&&!(Ge&&(ct=="length"||Pt(ct,J)))&&k.push(ct);return k}function Tr(m,_,k){var J=m[_];(!(et.call(m,_)&&qa(J,k))||k===void 0&&!(_ in m))&&(m[_]=k)}function xn(m,_){for(var k=m.length;k--;)if(qa(m[k][0],_))return k;return-1}function ui(m,_){return m&&I(_,xo(_),m)}function _r(m,_,k,J,Ge,ct,cn){var ft;if(J&&(ft=ct?J(m,Ge,ct,cn):J(m)),ft!==void 0)return ft;if(!hi(m))return m;var Ka=Oo(m);if(Ka){if(ft=ut(m),!_)return A(m,ft)}else{var Gn=Ue(m),Ya=Gn==c||Gn==f;if(lp(m))return wo(m,_);if(Gn==y||Gn==o||Ya&&!ct){if(Xe(m))return ct?m:{};if(ft=ot(Ya?{}:m),!_)return H(m,ui(ft,m))}else{if(!x[Gn])return ct?m:{};ft=un(m,Gn,_r,_)}}cn||(cn=new At);var Qa=cn.get(m);if(Qa)return Qa;if(cn.set(m,ft),!Ka)var Ja=k?we(m):xo(m);return fe(Ja||m,function(Ao,mi){Ja&&(mi=Ao,Ao=m[mi]),Tr(ft,mi,_r(Ao,_,k,J,mi,m,cn))}),ft}function ci(m){return hi(m)?tt(m):{}}function fi(m,_,k){var J=_(m);return Oo(m)?J:ne(J,k(m))}function vo(m){return mt.call(m)}function bo(m){if(!hi(m)||pi(m))return!1;var _=Ga(m)||Xe(m)?Tt:z;return _.test(An(m))}function di(m){if(!xr(m))return an(m);var _=[];for(var k in Object(m))et.call(m,k)&&k!="constructor"&&_.push(k);return _}function wo(m,_){if(_)return m.slice();var k=new m.constructor(m.length);return m.copy(k),k}function Or(m){var _=new m.constructor(m.byteLength);return new $t(_).set(new $t(m)),_}function So(m,_){var k=_?Or(m.buffer):m.buffer;return new m.constructor(k,m.byteOffset,m.byteLength)}function Eo(m,_,k){var J=_?k($e(m),!0):$e(m);return Pe(J,ue,new m.constructor)}function Co(m){var _=new m.constructor(m.source,F.exec(m));return _.lastIndex=m.lastIndex,_}function To(m,_,k){var J=_?k(Ze(m),!0):Ze(m);return Pe(J,X,new m.constructor)}function h(m){return xt?Object(xt.call(m)):{}}function C(m,_){var k=_?Or(m.buffer):m.buffer;return new m.constructor(k,m.byteOffset,m.length)}function A(m,_){var k=-1,J=m.length;for(_||(_=Array(J));++k<J;)_[k]=m[k];return _}function I(m,_,k,J){k||(k={});for(var Ge=-1,ct=_.length;++Ge<ct;){var cn=_[Ge],ft=void 0;Tr(k,cn,ft===void 0?m[cn]:ft)}return k}function H(m,_){return I(m,We(m),_)}function we(m){return fi(m,xo,We)}function re(m,_){var k=m.__data__;return _o(_)?k[typeof _=="string"?"string":"hash"]:k.map}function de(m,_){var k=Le(m,_);return bo(k)?k:void 0}var We=ke?Kt(ke,Object):fp,Ue=vo;(yt&&Ue(new yt(new ArrayBuffer(1)))!=O||gt&&Ue(new gt)!=d||rt&&Ue(rt.resolve())!=g||vt&&Ue(new vt)!=v||bt&&Ue(new bt)!=R)&&(Ue=function(m){var _=mt.call(m),k=_==y?m.constructor:void 0,J=k?An(k):void 0;if(J)switch(J){case Qt:return O;case Ne:return d;case Ke:return g;case Z:return v;case ve:return R}return _});function ut(m){var _=m.length,k=m.constructor(_);return _&&typeof m[0]=="string"&&et.call(m,"index")&&(k.index=m.index,k.input=m.input),k}function ot(m){return typeof m.constructor=="function"&&!xr(m)?ci(on(m)):{}}function un(m,_,k,J){var Ge=m.constructor;switch(_){case S:return Or(m);case a:case l:return new Ge(+m);case O:return So(m,J);case M:case L:case K:case U:case se:case be:case ye:case B:case Q:return C(m,J);case d:return Eo(m,J,k);case p:case b:return new Ge(m);case E:return Co(m);case v:return To(m,J,k);case T:return h(m)}}function Pt(m,_){return _=_??i,!!_&&(typeof m=="number"||pe.test(m))&&m>-1&&m%1==0&&m<_}function _o(m){var _=typeof m;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?m!=="__proto__":m===null}function pi(m){return!!Nt&&Nt in m}function xr(m){var _=m&&m.constructor,k=typeof _=="function"&&_.prototype||pt;return m===k}function An(m){if(m!=null){try{return Dt.call(m)}catch{}try{return m+""}catch{}}return""}function op(m){return _r(m,!0,!0)}function qa(m,_){return m===_||m!==m&&_!==_}function sp(m){return ap(m)&&et.call(m,"callee")&&(!Yt.call(m,"callee")||mt.call(m)==o)}var Oo=Array.isArray;function Ha(m){return m!=null&&up(m.length)&&!Ga(m)}function ap(m){return cp(m)&&Ha(m)}var lp=sn||dp;function Ga(m){var _=hi(m)?mt.call(m):"";return _==c||_==f}function up(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=i}function hi(m){var _=typeof m;return!!m&&(_=="object"||_=="function")}function cp(m){return!!m&&typeof m=="object"}function xo(m){return Ha(m)?go(m):di(m)}function fp(){return[]}function dp(){return!1}e.exports=op})(as,as.exports);var vn=as.exports,ls=function(){return ls=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ls.apply(this,arguments)};function Rh(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,[])).next())})}function Mh(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ki(e,t,n,r,i){return Rh(this,void 0,void 0,function(){var o,s;return Mh(this,function(a){switch(a.label){case 0:if(n===void 0)return[2];s=0,a.label=1;case 1:return s<n.length?[4,n[s](e,t,r,i,n)]:[3,4];case 2:if(o=a.sent(),o==="canceled")return[3,4];a.label=3;case 3:return s++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var us=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:ls({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},kh=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var s=vn(n);ki(t,s,r,this.htmlPluginState,i).then(function(a){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(u){u()});var l=us(i,a);o.imgElement.setAttribute("src",s.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,o=vn(t);ki(this.imgElement,o,n,this.htmlPluginState).then(function(s){if(i.isMounted){var a=us(r,s);i.imgElement.setAttribute("src",o.toURL(a))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Be=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}},Ih=class extends Error{constructor(t="Unsupported"){super(t)}};function zs(e){return new Ih(e)}function Lh(){return this._qualifierModel||{error:zs(`unsupported qualifier ${this.constructor.name}`)}}let Nh=class{constructor(){this._qualifierModel={}}toJson(){return Lh.apply(this)}},ge=class extends Nh{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Be?this.qualifierValue=n:(this.qualifierValue=new Be,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}},Lt=class extends ge{constructor(t,n){let r;n?r=new Be([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function Dh(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function $h(){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:zs(`unsupported action ${this.constructor.name}`)}}let jh=class{constructor(){this._actionModel={}}toJson(){return $h.apply(this)}},zt=class extends jh{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(),Dh(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 Lt(r)):this.qualifiers.set(n,new ge(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Lt(t)):t instanceof Lt&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class qs extends zt{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Xi extends qs{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new ge("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new ge("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new ge("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new ge("h",t)),this}static fromJson(t){const n=new Xi;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 Vh(){return new Xi}function yc(){return new qs("faces")}function Fh(){return new qs("ocr_text")}class Bh extends zt{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 ge("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new ge("e",`blur_region${t}`)),this.addQualifier(new ge("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new ge("e",`blur_faces${t}`))):this.addQualifier(new ge("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(yc()),r&&r.regionType==="ocr_text"&&i.region(Fh()),r&&r.regionType==="custom"&&i.region(Xi.fromJson(r)),i}}function Vn(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const gc={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},Wh={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},vc={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},bc={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},Uh={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},wc={444:"CHROMA_444",420:"CHROMA_420"},zh={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},qh=Vn(wc);Vn(zh);const Hh=Vn(gc),Gh=Vn(Wh),Sc=Vn(vc);Vn(bc);Vn(Uh);class Ec extends zt{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=Sc[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Be([t,`${n}`]).setDelimiter(":"):r=new Be(t),new ge("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=vc[n]||n;return new this(o,r||i)}}class Kh extends Ec{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=Sc[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 Zi(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class Yh extends zt{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 Be(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Be(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Be(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Be(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Be(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new ge("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:s,numOfColors:a}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),o&&l.despeckleLevel(o),s&&l.detailsLevel(s),a&&l.numOfColors(a),l}}class Qh extends Kh{level(t){return this._actionModel.level=t,this.setLevel(t)}}class Jh extends zt{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new ge("e",new Be("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new ge("e",new Be(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new ge("e",new Be(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class Xh extends Qh{color(t){return this._actionModel.color=t,this.addQualifier(new ge("co",new Be(Zi(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class Zh extends zt{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 ge("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new ge("e",`pixelate_region${t}`)),this.addQualifier(new ge("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new ge("e",`pixelate_faces${t}`))):this.addQualifier(new ge("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(yc()),n&&n.regionType==="custom"&&i.region(Vh()),i}}function em(e){return new Bh(e)}function tm(){return new Ec("grayscale")}function dl(e){return new Xh("colorize",e)}function nm(){return new Yh}function rm(){return new Jh}function im(e){return new Zh(e)}let om=class extends zt{constructor(t){super(),this._actionModel={},this.addQualifier(new ge("b",new Be(Zi(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},pl=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:zs(`unsupported action ${this.constructor.name}`)}}};function sm(e){const t=e;return"error"in t&&!!t.error}function am(){return new Lt("ignore_aspect_ratio")}function lm(){return new Lt("lossy")}function um(){return new Lt("preserve_transparency")}function cm(e){return new Lt("progressive",e)}function fm(){return new Lt("region_relative")}function dm(){return new Lt("relative")}let Hs=class extends Be{constructor(t){super(t),this.val=t}getValue(){return this.val}},Cc=class extends zt{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof Hs?i=n.getValue():i=n,this._actionModel.actionType=Gh[t],this._actionModel[r]=i,this.addQualifier(new ge(t,n))}},pm=class extends Lt{constructor(t){super("progressive",t)}},cs=class extends Cc{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(lm()),this}progressive(t){return t instanceof pm?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(cm(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(um()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=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(),o&&s.preserveTransparency(),s}},eo=class Tc{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 pl(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Tc?this.actions=this.actions.concat(t.actions):this.actions.push(new pl(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 cs("q",t)),this}format(t){return this.addAction(new cs("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 om(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new zt;let r=t;return typeof t=="string"&&(r=new Lt(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(sm(r))return r;t.push(r)}return{actions:t}}};function hl(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 hm extends Be{}class mm extends zt{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=Hh[t]||t,this.addQualifier(new ge("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new ge("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new ge("w",t))}aspectRatio(t){if(t instanceof hm)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new ge("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=hl(t),this.addQualifier(new ge("ar",hl(t)));if(t instanceof Lt)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(dm())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(fm())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:s,width:a,height:l}=r,u=gc[n]||n,c=new this(u,a,l);return s&&c.aspectRatio(s==="ignore_aspect_ratio"?am():s),i&&c.relative(),o&&c.regionRelative(),c}}class Gs extends ge{constructor(t){super("g",new Be(t))}}class _c extends Gs{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class Oc extends Gs{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class xc extends Gs{constructor(t){super(t)}}function ym(e){return new xc(e)}function Ac(...e){const t=[...e];return new Oc(t)}function Pc(){return new _c}class sr extends Be{constructor(t){super(),this.name=t}toString(){return this.name}}function gm(){return new sr("ocr_text")}function vm(e){return e&&`${e}`.split(":")[0]==="auto"}function bm(e){const t=Ks(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Ks(e){return`${e}`.replace("g_","")}function wm(e){return{compass:Ks(e),gravityType:"direction"}}function Sm(e){return Ks(e)==="ocr_text"}function Em(){return{gravityType:"ocr"}}function Cm(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function Tm(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 Rc(e){let t;const n=e==="auto"?new _c: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(Tm)}}function _m(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(o=>`${o}`)};if(t){const o=n[n.length-1].values.slice(1),s=Pc().autoFocus(...o);i.fallbackGravity=Rc(s)}return i}function Om(e){const n=e.split(":").map(r=>new sr(r));return new Oc(n)}function xm(e){return bm(e)?wm(e):Sm(e)?Em():vm(e)||Cm(e)?Rc(e):_m(typeof e=="string"?Om(e):e)}class Ys extends Be{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof sr?t:new sr(t);return new Ys(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 Mc extends Be{constructor(t){super(),this.val=t}toString(){return this.val}}function Am(e){return e.gravityType==="direction"}function Pm(e){return e.gravityType==="ocr"}function Rm(e){return e.gravityType==="auto"}function Mm(e){const{object:t,weight:n,avoid:r}=e,i=new Ys(new sr(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function kc(e){const n=(e.autoFocus||[]).map(Mm);return Pc().autoFocus(...n)}function km(e){const t=(e.focusOnObjects||[]).map(r=>new sr(r)),n=Ac(...t);if(e.fallbackGravity){const r=kc(e.fallbackGravity);n.fallbackGravity(r)}return n}function Im(e){return Am(e)?new xc(new Mc(e.compass)):Pm(e)?Ac(gm()):Rm(e)?kc(e):km(e)}class Qs extends mm{gravity(t){this._actionModel.gravity=xm(t);const n=typeof t=="string"?new ge("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(Im(t.gravity)),n}}class Kr extends ge{constructor(t){super("b"),t&&this.addValue(t)}}const Ic=100,Lm=0;class Nm extends Kr{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}`:`:${Ic}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var Lc=Nm;class Js extends Kr{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Zi(n)),this}}class Nc extends Js{toString(){return`
12
+ b_auto:border
13
+ ${this._contrast?"_contrast":""}
14
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
15
+ `.replace(/\s+/g,"")}}class Dc extends Js{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class $c extends Dc{toString(){return`
16
+ b_auto:border_gradient
17
+ ${this._contrast?"_contrast":""}
18
+ ${this._gradientColors?`:${this._gradientColors}`:""}
19
+ ${this._gradientDirection?`:${this._gradientDirection}`:""}
20
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
21
+ `.replace(/\s+/g,"")}}class jc extends Dc{toString(){return`
22
+ b_auto:predominant_gradient
23
+ ${this._contrast?"_contrast":""}
24
+ ${this._gradientColors?`:${this._gradientColors}`:""}
25
+ ${this._gradientDirection?`:${this._gradientDirection}`:""}
26
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
27
+ `.replace(/\s+/g,"")}}class Vc extends Js{toString(){return`
28
+ b_auto:predominant
29
+ ${this._contrast?"_contrast":""}
30
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
31
+ `.replace(/\s+/g,"")}}class Fc extends Kr{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${this._prompt}`:""}`}}function Bc(e){return`${e}`.replace("b_","")}function Dm(){return{backgroundType:"auto"}}function $m(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 Xs(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function jm(e){return Object.assign(Object.assign({},Xs(e)),{backgroundType:"border"})}function Wc(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=Xs(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function Vm(e){return Object.assign(Object.assign({},Wc(e)),{backgroundType:"borderGradient"})}function Fm(e){return{backgroundType:"color",color:Bc(e)}}function Bm(e){return Object.assign(Object.assign({},Xs(e)),{backgroundType:"predominant"})}function Wm(e){return Object.assign(Object.assign({},Wc(e)),{backgroundType:"predominantGradient"})}function Um(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function zm(e){return Bc(e)==="auto"?Dm():e instanceof Lc?$m(e):e instanceof Nc?jm(e):e instanceof $c?Vm(e):e instanceof Vc?Bm(e):e instanceof jc?Wm(e):e instanceof Fc?Um(e):Fm(e)}function qm(){return new Hs("svg")}function Zs(){return new Hs("auto")}function Uc(){return new Nc}function zc(){return new Kr("auto")}function qc(){return new $c}function Hc(){return new jc}function Gc(){return new Vc}function Kc(e){return new Kr(Zi(e))}function Hm(){return new Lc}function Yc(){return new Fc}const Qc={auto:zc,border:Uc,borderGradient:qc,predominantGradient:Hc,predominant:Gc,color:Kc,blurred:Hm,generativeFill:Yc};function Gm(e){const{brightness:t,intensity:n}=e,r=Qc.blurred();return r.brightness(t??Lm),r.intensity(n??Ic),r}function ml(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function yl(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function Km(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function Ym(e){const{backgroundType:t}=e;switch(t){case"auto":return zc();case"blurred":return Gm(e);case"border":return yl(Uc(),e);case"borderGradient":return ml(qc(),e);case"predominant":return yl(Gc(),e);case"predominantGradient":return ml(Hc(),e);case"generativeFill":return Km(Yc(),e);default:return Kc(e.color)}}class Qm extends Qs{background(t){return this._actionModel.background=zm(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new ge("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new ge("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(Ym(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class Jm extends Qs{x(t){return this._actionModel.x=t,this.addQualifier(new ge("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new ge("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new ge("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 Xm extends Qs{x(t){return this._actionModel.x=t,this.addQualifier(new ge("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new ge("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 Zm(e,t){return new Jm("crop",e,t)}function ey(e,t){return new Xm("fill",e,t)}function ty(e,t){return new Qm("pad",e,t)}class ny extends Cc{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=wc[t];const n=new Be([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new ge("q",n))}quantization(t){this._actionModel.quantization=t;const n=new Be([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new ge("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=bc[n]||n,s=new this(o);if(r){const a=qh[r.toUpperCase()];a&&s.chromaSubSampling(+a)}return i&&s.quantization(i),s}}function to(e){return new cs("f",e)}function no(e){return new ny(e)}function ry(){return new Mc("north_east")}dl(70).color("black"),dl(40).color("white"),tm(),rm();var iy=new eo().effect(nm()).delivery(no("auto")).delivery(to(qm())),oy=new eo().effect(im()).delivery(no("auto")).delivery(to(Zs())),sy=new eo().effect(em(2e3)).delivery(no("auto")).delivery(to(Zs())),ay=new eo().resize(ty("iw_div_2").aspectRatio(1).background(Qc.auto())).resize(Zm(1,1).gravity(ym(ry()))).resize(ey().height("ih").width("iw")).delivery(no("auto")).delivery(to(Zs())),gl={vectorize:iy,pixelate:oy,blur:sy,"predominant-color":ay},vl="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",bl={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},wl="?_a=",ly=function(){function e(t,n,r,i,o,s,a){var l=this;this.mimeType="video",this.mimeSubTypes=bl,this.videoElement=t,this.originalVideo=n,this.videoOptions=a,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var u=vn(n);ki(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(c){c()}),l.setVideoAttributes(o,s),l.handleSourceToVideo(u,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(o){r.appendSourceTag(vn(t),o)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var o=i.type,s=i.codecs,a=i.transcode;return r.appendSourceTag(vn(t).transcode(a),o,r.buildMimeType(o,s))})},e.prototype.appendSourceTag=function(t,n,r){var i,o=document.createElement("source"),s=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;s&&t.format(n);var a=t.toURL(),l=a.split(wl),u=l[1]?"".concat(wl).concat(l[1]):"",c=s?"":".".concat(n);o.src="".concat(l[0]).concat(c).concat(u),o.type=r||"video/".concat(bl[n]||n),this.videoElement.appendChild(o)},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=vn(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 o=0,s=Object.entries(t);o<s.length;o++){var a=s[o],l=a[0],u=a[1];u&&this.videoElement.setAttribute(l,l==="poster"?u:"")}},e.prototype.update=function(t,n,r,i,o){var s=this;if(t!==this.originalVideo){for(var a=this.videoElement.getElementsByTagName("SOURCE");a[0];)a[0].parentNode.removeChild(a[0]);ki(this.videoElement,t,r,this.htmlPluginState).then(function(){s.setVideoAttributes(i,o),s.handleSourceToVideo(t,n),s.videoElement.load()})}},e}(),uy=typeof gn=="object"&&gn&&gn.Object===Object&&gn,cy=typeof self=="object"&&self&&self.Object===Object&&self;uy||cy||Function("return this")();function ea(){return typeof window<"u"}function fy(e){return e instanceof HTMLImageElement}function dy(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return py.bind(null,r,o)}function py(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),ea()?new Promise(function(s){var a=function(){return s({lazyload:!0})},l=my(n,a,e,t);i.cleanupCallbacks.push(function(){l(),s("canceled")})}):!1}function hy(){return window&&"IntersectionObserver"in window}function my(e,t,n,r){try{if(!hy())return t(),function(){};var i=new IntersectionObserver(function(o){o.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 yy(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return gy.bind(null,r)}function gy(e,t,n,r,i,o){gl[e]||(e="vectorize");var s=gl[e].actions,a=vn(n);if(s.forEach(function(u){a.addAction(u)}),!ea())return n.transformation=a.transformation,!0;if(fy(t)){a.transformation.actions.forEach(function(u,c){u instanceof zt&&u.getActionTag()==="responsive"&&delete a.transformation.actions[c]});var l=us(i,{placeholder:!0});return t.src=a.toURL(l),t.onerror=function(){t.src=vl},new Promise(function(u){t.onload=function(){u()}}).then(function(){return new Promise(function(u){r.cleanupCallbacks.push(function(){t.src=vl,u("canceled")});var c=new Image;c.src=n.toURL(l),c.onload=function(){u({placeholder:!0})},c.onerror=function(){u({placeholder:!0})}})})}}function vy(e,t,n){var r=vn(t);if(e)for(var i=0;i<e.length;i++){var o=e[i](null,r);if(!o)break}return r.toURL({trackedAnalytics:n})}function Ii(e){e.cleanupCallbacks.forEach(function(t){t()})}var fs=function(e,t){return fs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},fs(e,t)};function Jc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fs(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var $r=function(){return $r=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},$r.apply(this,arguments)};function Xc(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 jr={exports:{}},Ae={};/*
32
+ object-assign
33
+ (c) Sindre Sorhus
34
+ @license MIT
35
+ */var Sl=Object.getOwnPropertySymbols,by=Object.prototype.hasOwnProperty,wy=Object.prototype.propertyIsEnumerable;function Sy(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Ey(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Zc=Ey()?Object.assign:function(e,t){for(var n,r=Sy(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var s in n)by.call(n,s)&&(r[s]=n[s]);if(Sl){i=Sl(n);for(var a=0;a<i.length;a++)wy.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r};/** @license React v16.14.0
36
+ * react.production.min.js
37
+ *
38
+ * Copyright (c) Facebook, Inc. and its affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var ta=Zc,qt=typeof Symbol=="function"&&Symbol.for,Yr=qt?Symbol.for("react.element"):60103,Cy=qt?Symbol.for("react.portal"):60106,Ty=qt?Symbol.for("react.fragment"):60107,_y=qt?Symbol.for("react.strict_mode"):60108,Oy=qt?Symbol.for("react.profiler"):60114,xy=qt?Symbol.for("react.provider"):60109,Ay=qt?Symbol.for("react.context"):60110,Py=qt?Symbol.for("react.forward_ref"):60112,Ry=qt?Symbol.for("react.suspense"):60113,My=qt?Symbol.for("react.memo"):60115,ky=qt?Symbol.for("react.lazy"):60116,El=typeof Symbol=="function"&&Symbol.iterator;function Qr(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ef={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tf={};function mr(e,t,n){this.props=e,this.context=t,this.refs=tf,this.updater=n||ef}mr.prototype.isReactComponent={};mr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Qr(85));this.updater.enqueueSetState(this,e,t,"setState")};mr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nf(){}nf.prototype=mr.prototype;function na(e,t,n){this.props=e,this.context=t,this.refs=tf,this.updater=n||ef}var ra=na.prototype=new nf;ra.constructor=na;ta(ra,mr.prototype);ra.isPureReactComponent=!0;var ia={current:null},rf=Object.prototype.hasOwnProperty,of={key:!0,ref:!0,__self:!0,__source:!0};function sf(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)rf.call(t,r)&&!of.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Yr,type:e,key:o,ref:s,props:i,_owner:ia.current}}function Iy(e,t){return{$$typeof:Yr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function oa(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yr}function Ly(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var af=/\/+/g,Li=[];function lf(e,t,n,r){if(Li.length){var i=Li.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function uf(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>Li.length&&Li.push(e)}function ds(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Yr:case Cy:o=!0}}if(o)return n(r,e,t===""?"."+Io(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var a=t+Io(i,s);o+=ds(i,a,n,r)}else if(e===null||typeof e!="object"?a=null:(a=El&&e[El]||e["@@iterator"],a=typeof a=="function"?a:null),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=t+Io(i,s++),o+=ds(i,a,n,r);else if(i==="object")throw n=""+e,Error(Qr(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function ps(e,t,n){return e==null?0:ds(e,"",t,n)}function Io(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ly(e.key):t.toString(36)}function Ny(e,t){e.func.call(e.context,t,e.count++)}function Dy(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?hs(e,r,n,function(o){return o}):e!=null&&(oa(e)&&(e=Iy(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(af,"$&/")+"/")+n)),r.push(e))}function hs(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(af,"$&/")+"/"),t=lf(t,o,r,i),ps(e,Dy,t),uf(t)}var cf={current:null};function hn(){var e=cf.current;if(e===null)throw Error(Qr(321));return e}var $y={ReactCurrentDispatcher:cf,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:ia,IsSomeRendererActing:{current:!1},assign:ta};Ae.Children={map:function(e,t,n){if(e==null)return e;var r=[];return hs(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=lf(null,null,t,n),ps(e,Ny,t),uf(t)},count:function(e){return ps(e,function(){return null},null)},toArray:function(e){var t=[];return hs(e,t,null,function(n){return n}),t},only:function(e){if(!oa(e))throw Error(Qr(143));return e}};Ae.Component=mr;Ae.Fragment=Ty;Ae.Profiler=Oy;Ae.PureComponent=na;Ae.StrictMode=_y;Ae.Suspense=Ry;Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$y;Ae.cloneElement=function(e,t,n){if(e==null)throw Error(Qr(267,e));var r=ta({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=ia.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)rf.call(t,l)&&!of.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Yr,type:e.type,key:i,ref:o,props:r,_owner:s}};Ae.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Ay,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:xy,_context:e},e.Consumer=e};Ae.createElement=sf;Ae.createFactory=function(e){var t=sf.bind(null,e);return t.type=e,t};Ae.createRef=function(){return{current:null}};Ae.forwardRef=function(e){return{$$typeof:Py,render:e}};Ae.isValidElement=oa;Ae.lazy=function(e){return{$$typeof:ky,_ctor:e,_status:-1,_result:null}};Ae.memo=function(e,t){return{$$typeof:My,type:e,compare:t===void 0?null:t}};Ae.useCallback=function(e,t){return hn().useCallback(e,t)};Ae.useContext=function(e,t){return hn().useContext(e,t)};Ae.useDebugValue=function(){};Ae.useEffect=function(e,t){return hn().useEffect(e,t)};Ae.useImperativeHandle=function(e,t,n){return hn().useImperativeHandle(e,t,n)};Ae.useLayoutEffect=function(e,t){return hn().useLayoutEffect(e,t)};Ae.useMemo=function(e,t){return hn().useMemo(e,t)};Ae.useReducer=function(e,t,n){return hn().useReducer(e,t,n)};Ae.useRef=function(e){return hn().useRef(e)};Ae.useState=function(e){return hn().useState(e)};Ae.version="16.14.0";var xe={},jy="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Vy=jy,Fy=Function.call.bind(Object.prototype.hasOwnProperty),ms=function(){};if(process.env.NODE_ENV!=="production"){var By=Vy,ys={},Wy=Fy;ms=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function ff(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(Wy(e,o)){var s;try{if(typeof e[o]!="function"){var a=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw a.name="Invariant Violation",a}s=e[o](t,o,r,n,null,By)}catch(u){s=u}if(s&&!(s instanceof Error)&&ms((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in ys)){ys[s.message]=!0;var l=i?i():"";ms("Failed "+n+" type: "+s.message+(l??""))}}}}ff.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(ys={})};var Uy=ff;/** @license React v16.14.0
43
+ * react.development.js
44
+ *
45
+ * Copyright (c) Facebook, Inc. and its affiliates.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE file in the root directory of this source tree.
49
+ */process.env.NODE_ENV!=="production"&&function(){var e=Zc,t=Uy,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,E=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,T=r?Symbol.for("react.responder"):60118,R=r?Symbol.for("react.scope"):60119,S=typeof Symbol=="function"&&Symbol.iterator,O="@@iterator";function M(h){if(h===null||typeof h!="object")return null;var C=S&&h[S]||h[O];return typeof C=="function"?C:null}var L={current:null},K={suspense:null},U={current:null},se=/^(.*)[\\\/]/;function be(h,C,A){var I="";if(C){var H=C.fileName,we=H.replace(se,"");if(/^index\./.test(we)){var re=H.match(se);if(re){var de=re[1];if(de){var We=de.replace(se,"");we=We+"/"+we}}}I=" (at "+we+":"+C.lineNumber+")"}else A&&(I=" (created by "+A+")");return`
50
+ in `+(h||"Unknown")+I}var ye=1;function B(h){return h._status===ye?h._result:null}function Q(h,C,A){var I=C.displayName||C.name||"";return h.displayName||(I!==""?A+"("+I+")":A)}function V(h){if(h==null)return null;if(typeof h.tag=="number"&&W("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case s:return"Fragment";case o:return"Portal";case l:return"Profiler";case a:return"StrictMode";case p:return"Suspense";case y:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case c:return"Context.Consumer";case u:return"Context.Provider";case d:return Q(h,h.render,"ForwardRef");case g:return V(h.type);case v:return V(h.render);case E:{var C=h,A=B(C);if(A)return V(A);break}}return null}var F={},z=null;function pe(h){z=h}F.getCurrentStack=null,F.getStackAddendum=function(){var h="";if(z){var C=V(z.type),A=z._owner;h+=be(C,z._source,A&&V(A.type))}var I=F.getCurrentStack;return I&&(h+=I()||""),h};var x={current:!1},N={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:K,ReactCurrentOwner:U,IsSomeRendererActing:x,assign:e};e(N,{ReactDebugCurrentFrame:F,ReactComponentTreeHook:{}});function oe(h){{for(var C=arguments.length,A=new Array(C>1?C-1:0),I=1;I<C;I++)A[I-1]=arguments[I];ee("warn",h,A)}}function W(h){{for(var C=arguments.length,A=new Array(C>1?C-1:0),I=1;I<C;I++)A[I-1]=arguments[I];ee("error",h,A)}}function ee(h,C,A){{var I=A.length>0&&typeof A[A.length-1]=="string"&&A[A.length-1].indexOf(`
51
+ in`)===0;if(!I){var H=N.ReactDebugCurrentFrame,we=H.getStackAddendum();we!==""&&(C+="%s",A=A.concat([we]))}var re=A.map(function(Ue){return""+Ue});re.unshift("Warning: "+C),Function.prototype.apply.call(console[h],console,re);try{var de=0,We="Warning: "+C.replace(/%s/g,function(){return A[de++]});throw new Error(We)}catch{}}}var he={};function le(h,C){{var A=h.constructor,I=A&&(A.displayName||A.name)||"ReactClass",H=I+"."+C;if(he[H])return;W("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",C,I),he[H]=!0}}var ue={isMounted:function(h){return!1},enqueueForceUpdate:function(h,C,A){le(h,"forceUpdate")},enqueueReplaceState:function(h,C,A,I){le(h,"replaceState")},enqueueSetState:function(h,C,A,I){le(h,"setState")}},X={};Object.freeze(X);function fe(h,C,A){this.props=h,this.context=C,this.refs=X,this.updater=A||ue}fe.prototype.isReactComponent={},fe.prototype.setState=function(h,C){if(!(typeof h=="object"||typeof h=="function"||h==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,h,C,"setState")},fe.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};{var ne={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Pe=function(h,C){Object.defineProperty(fe.prototype,h,{get:function(){oe("%s(...) is deprecated in plain JavaScript React classes. %s",C[0],C[1])}})};for(var $ in ne)ne.hasOwnProperty($)&&Pe($,ne[$])}function Le(){}Le.prototype=fe.prototype;function Xe(h,C,A){this.props=h,this.context=C,this.refs=X,this.updater=A||ue}var $e=Xe.prototype=new Le;$e.constructor=Xe,e($e,fe.prototype),$e.isPureReactComponent=!0;function Kt(){var h={current:null};return Object.seal(h),h}var Ze=Object.prototype.hasOwnProperty,Ct={key:!0,ref:!0,__self:!0,__source:!0},Re,pt,ht;ht={};function Nt(h){if(Ze.call(h,"ref")){var C=Object.getOwnPropertyDescriptor(h,"ref").get;if(C&&C.isReactWarning)return!1}return h.ref!==void 0}function Dt(h){if(Ze.call(h,"key")){var C=Object.getOwnPropertyDescriptor(h,"key").get;if(C&&C.isReactWarning)return!1}return h.key!==void 0}function et(h,C){var A=function(){Re||(Re=!0,W("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",C))};A.isReactWarning=!0,Object.defineProperty(h,"key",{get:A,configurable:!0})}function mt(h,C){var A=function(){pt||(pt=!0,W("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",C))};A.isReactWarning=!0,Object.defineProperty(h,"ref",{get:A,configurable:!0})}function Tt(h){if(typeof h.ref=="string"&&U.current&&h.__self&&U.current.stateNode!==h.__self){var C=V(U.current.type);ht[C]||(W('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',V(U.current.type),h.ref),ht[C]=!0)}}var _t=function(h,C,A,I,H,we,re){var de={$$typeof:i,type:h,key:C,ref:A,props:re,_owner:we};return de._store={},Object.defineProperty(de._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(de,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(de,"_source",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.freeze&&(Object.freeze(de.props),Object.freeze(de)),de};function Ot(h,C,A){var I,H={},we=null,re=null,de=null,We=null;if(C!=null){Nt(C)&&(re=C.ref,Tt(C)),Dt(C)&&(we=""+C.key),de=C.__self===void 0?null:C.__self,We=C.__source===void 0?null:C.__source;for(I in C)Ze.call(C,I)&&!Ct.hasOwnProperty(I)&&(H[I]=C[I])}var Ue=arguments.length-2;if(Ue===1)H.children=A;else if(Ue>1){for(var ut=Array(Ue),ot=0;ot<Ue;ot++)ut[ot]=arguments[ot+2];Object.freeze&&Object.freeze(ut),H.children=ut}if(h&&h.defaultProps){var un=h.defaultProps;for(I in un)H[I]===void 0&&(H[I]=un[I])}if(we||re){var Pt=typeof h=="function"?h.displayName||h.name||"Unknown":h;we&&et(H,Pt),re&&mt(H,Pt)}return _t(h,we,re,de,We,U.current,H)}function $t(h,C){var A=_t(h.type,C,h.ref,h._self,h._source,h._owner,h.props);return A}function on(h,C,A){if(h==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+h+".");var I,H=e({},h.props),we=h.key,re=h.ref,de=h._self,We=h._source,Ue=h._owner;if(C!=null){Nt(C)&&(re=C.ref,Ue=U.current),Dt(C)&&(we=""+C.key);var ut;h.type&&h.type.defaultProps&&(ut=h.type.defaultProps);for(I in C)Ze.call(C,I)&&!Ct.hasOwnProperty(I)&&(C[I]===void 0&&ut!==void 0?H[I]=ut[I]:H[I]=C[I])}var ot=arguments.length-2;if(ot===1)H.children=A;else if(ot>1){for(var un=Array(ot),Pt=0;Pt<ot;Pt++)un[Pt]=arguments[Pt+2];H.children=un}return _t(h.type,we,re,de,We,Ue,H)}function tt(h){return typeof h=="object"&&h!==null&&h.$$typeof===i}var Yt=".",nt=":";function ke(h){var C=/[=:]/g,A={"=":"=0",":":"=2"},I=(""+h).replace(C,function(H){return A[H]});return"$"+I}var sn=!1,an=/\/+/g;function yt(h){return(""+h).replace(an,"$&/")}var gt=10,rt=[];function vt(h,C,A,I){if(rt.length){var H=rt.pop();return H.result=h,H.keyPrefix=C,H.func=A,H.context=I,H.count=0,H}else return{result:h,keyPrefix:C,func:A,context:I,count:0}}function bt(h){h.result=null,h.keyPrefix=null,h.func=null,h.context=null,h.count=0,rt.length<gt&&rt.push(h)}function it(h,C,A,I){var H=typeof h;(H==="undefined"||H==="boolean")&&(h=null);var we=!1;if(h===null)we=!0;else switch(H){case"string":case"number":we=!0;break;case"object":switch(h.$$typeof){case i:case o:we=!0}}if(we)return A(I,h,C===""?Yt+Ne(h,0):C),1;var re,de,We=0,Ue=C===""?Yt:C+nt;if(Array.isArray(h))for(var ut=0;ut<h.length;ut++)re=h[ut],de=Ue+Ne(re,ut),We+=it(re,de,A,I);else{var ot=M(h);if(typeof ot=="function"){ot===h.entries&&(sn||oe("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),sn=!0);for(var un=ot.call(h),Pt,_o=0;!(Pt=un.next()).done;)re=Pt.value,de=Ue+Ne(re,_o++),We+=it(re,de,A,I)}else if(H==="object"){var pi="";pi=" If you meant to render a collection of children, use an array instead."+F.getStackAddendum();var xr=""+h;throw Error("Objects are not valid as a React child (found: "+(xr==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":xr)+")."+pi)}}return We}function Qt(h,C,A){return h==null?0:it(h,"",C,A)}function Ne(h,C){return typeof h=="object"&&h!==null&&h.key!=null?ke(h.key):C.toString(36)}function Ke(h,C,A){var I=h.func,H=h.context;I.call(H,C,h.count++)}function Z(h,C,A){if(h==null)return h;var I=vt(null,null,C,A);Qt(h,Ke,I),bt(I)}function ve(h,C,A){var I=h.result,H=h.keyPrefix,we=h.func,re=h.context,de=we.call(re,C,h.count++);Array.isArray(de)?ze(de,I,A,function(We){return We}):de!=null&&(tt(de)&&(de=$t(de,H+(de.key&&(!C||C.key!==de.key)?yt(de.key)+"/":"")+A)),I.push(de))}function ze(h,C,A,I,H){var we="";A!=null&&(we=yt(A)+"/");var re=vt(C,we,I,H);Qt(h,ve,re),bt(re)}function xt(h,C,A){if(h==null)return h;var I=[];return ze(h,I,null,C,A),I}function j(h){return Qt(h,function(){return null},null)}function te(h){var C=[];return ze(h,C,null,function(A){return A}),C}function ce(h){if(!tt(h))throw Error("React.Children.only expected to receive a single React element child.");return h}function je(h,C){C===void 0?C=null:C!==null&&typeof C!="function"&&W("createContext: Expected the optional second argument to be a function. Instead received: %s",C);var A={$$typeof:c,_calculateChangedBits:C,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null};A.Provider={$$typeof:u,_context:A};var I=!1,H=!1;{var we={$$typeof:c,_context:A,_calculateChangedBits:A._calculateChangedBits};Object.defineProperties(we,{Provider:{get:function(){return H||(H=!0,W("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),A.Provider},set:function(re){A.Provider=re}},_currentValue:{get:function(){return A._currentValue},set:function(re){A._currentValue=re}},_currentValue2:{get:function(){return A._currentValue2},set:function(re){A._currentValue2=re}},_threadCount:{get:function(){return A._threadCount},set:function(re){A._threadCount=re}},Consumer:{get:function(){return I||(I=!0,W("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),A.Consumer}}}),A.Consumer=we}return A._currentRenderer=null,A._currentRenderer2=null,A}function qe(h){var C={$$typeof:E,_ctor:h,_status:-1,_result:null};{var A,I;Object.defineProperties(C,{defaultProps:{configurable:!0,get:function(){return A},set:function(H){W("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),A=H,Object.defineProperty(C,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return I},set:function(H){W("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),I=H,Object.defineProperty(C,"propTypes",{enumerable:!0})}}})}return C}function lt(h){return h!=null&&h.$$typeof===g?W("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof h!="function"?W("forwardRef requires a render function but was given %s.",h===null?"null":typeof h):h.length!==0&&h.length!==2&&W("forwardRef render functions accept exactly two parameters: props and ref. %s",h.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),h!=null&&(h.defaultProps!=null||h.propTypes!=null)&&W("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:d,render:h}}function Ve(h){return typeof h=="string"||typeof h=="function"||h===s||h===f||h===l||h===a||h===p||h===y||typeof h=="object"&&h!==null&&(h.$$typeof===E||h.$$typeof===g||h.$$typeof===u||h.$$typeof===c||h.$$typeof===d||h.$$typeof===b||h.$$typeof===T||h.$$typeof===R||h.$$typeof===v)}function He(h,C){return Ve(h)||W("memo: The first argument must be a component. Instead received: %s",h===null?"null":typeof h),{$$typeof:g,type:h,compare:C===void 0?null:C}}function Ie(){var h=L.current;if(h===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
52
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
53
+ 2. You might be breaking the Rules of Hooks
54
+ 3. You might have more than one copy of React in the same app
55
+ See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return h}function Me(h,C){var A=Ie();if(C!==void 0&&W("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",C,typeof C=="number"&&Array.isArray(arguments[2])?`
56
+
57
+ Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),h._context!==void 0){var I=h._context;I.Consumer===h?W("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):I.Provider===h&&W("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return A.useContext(h,C)}function ln(h){var C=Ie();return C.useState(h)}function Cr(h,C,A){var I=Ie();return I.useReducer(h,C,A)}function jt(h){var C=Ie();return C.useRef(h)}function Un(h,C){var A=Ie();return A.useEffect(h,C)}function zn(h,C){var A=Ie();return A.useLayoutEffect(h,C)}function qn(h,C){var A=Ie();return A.useCallback(h,C)}function Ce(h,C){var A=Ie();return A.useMemo(h,C)}function wt(h,C,A){var I=Ie();return I.useImperativeHandle(h,C,A)}function At(h,C){{var A=Ie();return A.useDebugValue(h,C)}}var Vt;Vt=!1;function Hn(){if(U.current){var h=V(U.current.type);if(h)return`
58
+
59
+ Check the render method of \``+h+"`."}return""}function On(h){if(h!==void 0){var C=h.fileName.replace(/^.*[\\\/]/,""),A=h.lineNumber;return`
60
+
61
+ Check your code at `+C+":"+A+"."}return""}function yo(h){return h!=null?On(h.__source):""}var li={};function go(h){var C=Hn();if(!C){var A=typeof h=="string"?h:h.displayName||h.name;A&&(C=`
62
+
63
+ Check the top-level render call using <`+A+">.")}return C}function Tr(h,C){if(!(!h._store||h._store.validated||h.key!=null)){h._store.validated=!0;var A=go(C);if(!li[A]){li[A]=!0;var I="";h&&h._owner&&h._owner!==U.current&&(I=" It was passed a child from "+V(h._owner.type)+"."),pe(h),W('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',A,I),pe(null)}}}function xn(h,C){if(typeof h=="object"){if(Array.isArray(h))for(var A=0;A<h.length;A++){var I=h[A];tt(I)&&Tr(I,C)}else if(tt(h))h._store&&(h._store.validated=!0);else if(h){var H=M(h);if(typeof H=="function"&&H!==h.entries)for(var we=H.call(h),re;!(re=we.next()).done;)tt(re.value)&&Tr(re.value,C)}}}function ui(h){{var C=h.type;if(C==null||typeof C=="string")return;var A=V(C),I;if(typeof C=="function")I=C.propTypes;else if(typeof C=="object"&&(C.$$typeof===d||C.$$typeof===g))I=C.propTypes;else return;I?(pe(h),t(I,h.props,"prop",A,F.getStackAddendum),pe(null)):C.PropTypes!==void 0&&!Vt&&(Vt=!0,W("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")),typeof C.getDefaultProps=="function"&&!C.getDefaultProps.isReactClassApproved&&W("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _r(h){{pe(h);for(var C=Object.keys(h.props),A=0;A<C.length;A++){var I=C[A];if(I!=="children"&&I!=="key"){W("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I);break}}h.ref!==null&&W("Invalid attribute `ref` supplied to `React.Fragment`."),pe(null)}}function ci(h,C,A){var I=Ve(h);if(!I){var H="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(H+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var we=yo(C);we?H+=we:H+=Hn();var re;h===null?re="null":Array.isArray(h)?re="array":h!==void 0&&h.$$typeof===i?(re="<"+(V(h.type)||"Unknown")+" />",H=" Did you accidentally export a JSX literal instead of a component?"):re=typeof h,W("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",re,H)}var de=Ot.apply(this,arguments);if(de==null)return de;if(I)for(var We=2;We<arguments.length;We++)xn(arguments[We],h);return h===s?_r(de):ui(de),de}var fi=!1;function vo(h){var C=ci.bind(null,h);return C.type=h,fi||(fi=!0,oe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(C,"type",{enumerable:!1,get:function(){return oe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:h}),h}}),C}function bo(h,C,A){for(var I=on.apply(this,arguments),H=2;H<arguments.length;H++)xn(arguments[H],I.type);return ui(I),I}try{var di=Object.freeze({}),wo=new Map([[di,null]]),Or=new Set([di]);wo.set(0,0),Or.add(0)}catch{}var So=ci,Eo=bo,Co=vo,To={map:xt,forEach:Z,count:j,toArray:te,only:ce};xe.Children=To,xe.Component=fe,xe.Fragment=s,xe.Profiler=l,xe.PureComponent=Xe,xe.StrictMode=a,xe.Suspense=p,xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,xe.cloneElement=Eo,xe.createContext=je,xe.createElement=So,xe.createFactory=Co,xe.createRef=Kt,xe.forwardRef=lt,xe.isValidElement=tt,xe.lazy=qe,xe.memo=He,xe.useCallback=qn,xe.useContext=Me,xe.useDebugValue=At,xe.useEffect=Un,xe.useImperativeHandle=wt,xe.useLayoutEffect=zn,xe.useMemo=Ce,xe.useReducer=Cr,xe.useRef=jt,xe.useState=ln,xe.version=n}();process.env.NODE_ENV==="production"?jr.exports=Ae:jr.exports=xe;var Xn=jr.exports,Lo={sdkSemver:"1.13.1",techVersion:Xn.version,sdkCode:"J"},zy=function(e){Jc(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=Xn.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new kh(this.imageRef.current,this.props.cldImg,this.props.plugins,Lo)},t.prototype.componentDidUpdate=function(){Ii(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Lo)},t.prototype.componentWillUnmount=function(){Ii(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=Xc(n,["cldImg","plugins"]);if(ea())return Xn.createElement("img",$r({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=vy(this.props.plugins,this.props.cldImg,Lo);return Xn.createElement("img",$r({},r,{src:i}))},t}(Xn.Component),qy=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){Jc(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=jr.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new ly(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(){Ii(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Ii(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return qy.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=Xc(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Xn.createElement("video",$r({},r,{ref:this.attachRef}))},t})(jr.exports.Component);function Hy(e){return!(typeof e!="object"||e instanceof Array)}class Gy{filterOutNonSupportedKeys(t,n){const r=Object.create({});return Hy(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 Cl=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class sa extends Gy{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,Cl);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,Cl);return new sa(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 Vr{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 Ky extends Error{constructor(t="Unsupported"){super(t)}}function aa(e){return new Ky(e)}function Yy(){return this._qualifierModel||{error:aa(`unsupported qualifier ${this.constructor.name}`)}}class Qy{constructor(){this._qualifierModel={}}toJson(){return Yy.apply(this)}}class ro extends Qy{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Vr?this.qualifierValue=n:(this.qualifierValue=new Vr,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 bn extends ro{constructor(t,n){let r;n?r=new Vr([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function Jy(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function Xy(){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:aa(`unsupported action ${this.constructor.name}`)}}class Zy{constructor(){this._actionModel={}}toJson(){return Xy.apply(this)}}class la extends Zy{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(),Jy(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 bn(r)):this.qualifiers.set(n,new ro(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new bn(t)):t instanceof bn&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function eg(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class tg extends la{constructor(t){super(),this._actionModel={},this.addQualifier(new ro("b",new Vr(eg(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class Tl{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:aa(`unsupported action ${this.constructor.name}`)}}}function ng(e){const t=e;return"error"in t&&!!t.error}function rg(){return new bn("lossy")}function ig(){return new bn("preserve_transparency")}function og(e){return new bn("progressive",e)}class sg extends Vr{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Fn(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const ag={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},lg={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},ug={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},cg={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},fg={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},dg={444:"CHROMA_444",420:"CHROMA_420"},pg={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Fn(dg);Fn(pg);Fn(ag);const hg=Fn(lg);Fn(ug);Fn(cg);Fn(fg);class mg extends la{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof sg?i=n.getValue():i=n,this._actionModel.actionType=hg[t],this._actionModel[r]=i,this.addQualifier(new ro(t,n))}}class yg extends bn{constructor(t){super("progressive",t)}}class Ni extends mg{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(rg()),this}progressive(t){return t instanceof yg?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(og(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(ig()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=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(),o&&s.preserveTransparency(),s}}class io{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 Tl(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof io?this.actions=this.actions.concat(t.actions):this.actions.push(new Tl(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 Ni("q",t)),this}format(t){return this.addAction(new Ni("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 tg(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new la;let r=t;return typeof t=="string"&&(r=new bn(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(ng(r))return r;t.push(r)}return{actions:t}}}class gg extends io{}class vg extends io{}function bg(e){return e.match(/^https?:\//)}function wg(e){return e.indexOf("/")<0}function Sg(e){return e.match(/^v[0-9]+/)}function Eg(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,o=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!o&&r?`https://${e}-res.cloudinary.com`:n&&!o?`https://res.cloudinary.com/${e}`:n&&o&&r?`https://${o}`:n&&o?`https://${o}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function Cg(e){return e||"image"}function Tg(e){return e||"upload"}function _g(e,t,n){const r=n!==!1;return t?`v${t}`:Sg(e)||bg(e)||wg(e)?"":r?"v1":""}function ua(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=Og(i,r/i.length)),i.slice(0,r)+String(e))}function Og(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const xg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Di={};let _l=0;xg.split("").forEach(e=>{let t=_l.toString(2);t=ua(t,6,"0"),Di[t]=e,_l++});function Ag(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function Pg(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 ua(t,2,"0")}).join(".")}function Ol(e){let t="";const r=e.split(".").length*6,i=Ag(e),o=Pg(i);let a=parseInt(o.split(".").join("")).toString(2);if(a=ua(a,r,"0"),a.length%6!==0)throw"Version must be smaller than 43.21.26)";return a.match(/.{1,6}/g).forEach(l=>{t+=Di[l]}),t}function Rg(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 Mg="1.21.0";function kg(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),s=i.padStart(6,"0");return Di[o]+Di[s]}function Ig(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function Lg(e){const t={techVersion:Ig(),sdkCode:"T",sdkSemver:Mg.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 xl(e){const t=Lg(e),n=Rg(t);try{const r=Ng(n.techVersion),i=Ol(n.sdkSemver),o=Ol(r),s=kg(n.osVersion),a=n.feature,l=n.sdkCode,{product:u,osType:c}=n;return`D${u}${l}${i}${o}${c}${s}${a}`}catch{return"E"}}function Ng(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const Al={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class Dg{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new sa(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=Cg(this.assetType),n=Tg(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=Al[`${t}/${n}`],s=this.urlConfig.useRootPath,a=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(a&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(Al).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=Eg(this.cloudName,this.urlConfig),i=t?t.toString():"",o=_g(this.publicID,this.version,this.urlConfig.forceVersion),s=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,o,s.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const a=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(s).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(c=>c).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!s.includes("?");let u="";if(typeof this.urlConfig.queryParams=="object")try{const c=new URLSearchParams(this.urlConfig.queryParams);l&&c.set("_a",xl(n)),u=c.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 u=this.urlConfig.queryParams||"",l&&(u+=`${u.length>0?"&":""}_a=${xl(n)}`);return u?`${a}?${u}`:a}}}class df extends Dg{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 Ni("q",t)),this}format(t){return this.addAction(new Ni("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 $g extends df{constructor(t,n,r){super(t,n,r,new gg)}}class jg extends df{constructor(t,n,r){super(t,n,r,new vg),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class Vg{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new $g(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new jg(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(d,p){return Array.prototype.slice.call((p||document).querySelectorAll(d))}function i(d,p){return d.classList.contains(p)}function o(d){d()}var s=function(){var d;return function(){if(typeof d>"u"){var p=document.createElement("div");p.style.fontSize="13px",p.style.lineHeight="1.5",p.style.padding="0",p.style.border="0",p.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(p),d=p.offsetHeight===38,document.body.removeChild(p)}return d}}();function a(d,p){var y=getComputedStyle(d),g=getComputedStyle(p);function E(v){return+v.substr(0,v.length-2)}return p.offsetTop+E(g.borderTopWidth)+E(g.paddingTop)-E(y.paddingTop)}function l(d){return!d||!/pre/i.test(d.nodeName)?!1:!!(d.hasAttribute("data-line")||d.id&&Prism.util.isActive(d,t))}var u=!0;Prism.plugins.lineHighlight={highlightLines:function(p,y,g){y=typeof y=="string"?y:p.getAttribute("data-line")||"";var E=y.replace(/\s+/g,"").split(",").filter(Boolean),v=+p.getAttribute("data-line-offset")||0,b=s()?parseInt:parseFloat,T=b(getComputedStyle(p).lineHeight),R=Prism.util.isActive(p,e),S=p.querySelector("code"),O=R?p:S||p,M=[],L=S.textContent.match(n),K=L?L.length+1:1,U=!S||O==S?0:a(p,S);E.forEach(function(ye){var B=ye.split("-"),Q=+B[0],V=+B[1]||Q;if(V=Math.min(K+v,V),!(V<Q)){var F=p.querySelector('.line-highlight[data-range="'+ye+'"]')||document.createElement("div");if(M.push(function(){F.setAttribute("aria-hidden","true"),F.setAttribute("data-range",ye),F.className=(g||"")+" line-highlight"}),R&&Prism.plugins.lineNumbers){var z=Prism.plugins.lineNumbers.getLine(p,Q),pe=Prism.plugins.lineNumbers.getLine(p,V);if(z){var x=z.offsetTop+U+"px";M.push(function(){F.style.top=x})}if(pe){var N=pe.offsetTop-z.offsetTop+pe.offsetHeight+"px";M.push(function(){F.style.height=N})}}else M.push(function(){F.setAttribute("data-start",String(Q)),V>Q&&F.setAttribute("data-end",String(V)),F.style.top=(Q-v-1)*T+U+"px",F.textContent=new Array(V-Q+2).join(`
64
+ `)});M.push(function(){F.style.width=p.scrollWidth+"px"}),M.push(function(){O.appendChild(F)})}});var se=p.id;if(R&&Prism.util.isActive(p,t)&&se){i(p,t)||M.push(function(){p.classList.add(t)});var be=parseInt(p.getAttribute("data-start")||"1");r(".line-numbers-rows > span",p).forEach(function(ye,B){var Q=B+be;ye.onclick=function(){var V=se+"."+Q;u=!1,location.hash=V,setTimeout(function(){u=!0},1)}})}return function(){M.forEach(o)}}};function c(){var d=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(v){v.parentNode.removeChild(v)});var p=(d.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!p||document.getElementById(d))){var y=d.slice(0,d.lastIndexOf(".")),g=document.getElementById(y);if(g){g.hasAttribute("data-line")||g.setAttribute("data-line","");var E=Prism.plugins.lineHighlight.highlightLines(g,p,"temporary ");E(),u&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var f=0;Prism.hooks.add("before-sanity-check",function(d){var p=d.element.parentElement;if(l(p)){var y=0;r(".line-highlight",p).forEach(function(g){y+=g.textContent.length,g.parentNode.removeChild(g)}),y&&/^(?: \n)+$/.test(d.code.slice(-y))&&(d.code=d.code.slice(0,-y))}}),Prism.hooks.add("complete",function d(p){var y=p.element.parentElement;if(l(y)){clearTimeout(f);var g=Prism.plugins.lineNumbers,E=p.plugins&&p.plugins.lineNumbers;if(i(y,e)&&g&&!E)Prism.hooks.add("line-numbers",d);else{var v=Prism.plugins.lineHighlight.highlightLines(y);v(),f=setTimeout(c,1)}}}),window.addEventListener("hashchange",c),window.addEventListener("resize",function(){var d=r("pre").filter(l).map(function(p){return Prism.plugins.lineHighlight.highlightLines(p)});d.forEach(o)})})();const Pl=new Set;function oo(e,t,n){e||Pl.has(t)||(console.warn(t),Pl.add(t))}function Fg(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&oo(!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))})}function so(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const gs=e=>Array.isArray(e);function pf(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}function Fr(e){return typeof e=="string"||Array.isArray(e)}function Rl(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ca(e,t,n,r){if(typeof t=="function"){const[i,o]=Rl(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Rl(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function ao(e,t,n){const r=e.getProps();return ca(r,t,n!==void 0?n:r.custom,e)}const fa=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],da=["initial",...fa],Jr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bn=new Set(Jr),pn=e=>e*1e3,wn=e=>e/1e3,Bg={type:"spring",stiffness:500,damping:25,restSpeed:10},Wg=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ug={type:"keyframes",duration:.8},zg={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qg=(e,{keyframes:t})=>t.length>2?Ug:Bn.has(e)?e.startsWith("scale")?Wg(t[1]):Bg:zg;function hf(e,t){return e?e[t]||e.default||e:void 0}const Hg={skipAnimations:!1,useManualTiming:!1},Gg=e=>e!==null;function lo(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Gg),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Cn=e=>e;let yr=Cn,Dn=Cn;process.env.NODE_ENV!=="production"&&(yr=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Dn=(e,t)=>{if(!e)throw new Error(t)});function Kg(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,f=!1)=>{const p=f&&r?t:n;return c&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const gi=["read","resolveKeyframes","update","preRender","render","postRender"],Yg=40;function mf(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=gi.reduce((v,b)=>(v[b]=Kg(o),v),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:d}=s,p=()=>{const v=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,Yg),1),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},y=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:gi.reduce((v,b)=>{const T=s[b];return v[b]=(R,S=!1,O=!1)=>(n||y(),T.schedule(R,S,O)),v},{}),cancel:v=>{for(let b=0;b<gi.length;b++)s[gi[b]].cancel(v)},state:i,steps:s}}const{schedule:Et,cancel:vs,state:$i,steps:lC}=mf(typeof requestAnimationFrame<"u"?requestAnimationFrame:Cn,!0),yf=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Qg=1e-7,Jg=12;function Xg(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=yf(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Qg&&++a<Jg);return s}function Xr(e,t,n,r){if(e===t&&n===r)return Cn;const i=o=>Xg(o,0,1,e,n);return o=>o===0||o===1?o:yf(i(o),t,r)}const gf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vf=e=>t=>1-e(1-t),bf=Xr(.33,1.53,.69,.99),pa=vf(bf),wf=gf(pa),Sf=e=>(e*=2)<1?.5*pa(e):.5*(2-Math.pow(2,-10*(e-1))),ha=e=>1-Math.sin(Math.acos(e)),Zg=vf(ha),Ef=gf(ha),Cf=e=>/^0[^.\s]+$/u.test(e);function ev(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Cf(e):!0}const Tf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),_f=e=>t=>typeof t=="string"&&t.startsWith(e),Of=_f("--"),tv=_f("var(--"),ma=e=>tv(e)?nv.test(e.split("/*")[0].trim()):!1,nv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,rv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function iv(e){const t=rv.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ov=4;function xf(e,t,n=1){Dn(n<=ov,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=iv(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Tf(s)?parseFloat(s):s}return ma(i)?xf(i,t,n+1):i}const $n=(e,t,n)=>n>t?t:n<e?e:n,gr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Br={...gr,transform:e=>$n(0,1,e)},vi={...gr,default:1},Zr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),mn=Zr("deg"),nr=Zr("%"),ae=Zr("px"),sv=Zr("vh"),av=Zr("vw"),Ml={...nr,parse:e=>nr.parse(e)/100,transform:e=>nr.transform(e*100)},lv=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),kl=e=>e===gr||e===ae,Il=(e,t)=>parseFloat(e.split(", ")[t]),Ll=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Il(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Il(o[1],e):0}},uv=new Set(["x","y","z"]),cv=Jr.filter(e=>!uv.has(e));function fv(e){const t=[];return cv.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ar={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:Ll(4,13),y:Ll(5,14)};ar.translateX=ar.x;ar.translateY=ar.y;const Af=e=>t=>t.test(e),dv={test:e=>e==="auto",parse:e=>e},Pf=[gr,ae,nr,mn,av,sv,dv],Nl=e=>Pf.find(Af(e)),In=new Set;let bs=!1,ws=!1;function Rf(){if(ws){const e=Array.from(In).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=fv(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(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ws=!1,bs=!1,In.forEach(e=>e.complete()),In.clear()}function Mf(){In.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ws=!0)})}function pv(){Mf(),Rf()}class ya{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(In.add(this),bs||(bs=!0,Et.read(Mf),Et.resolveKeyframes(Rf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),In.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,In.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Nr=e=>Math.round(e*1e5)/1e5,ga=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hv(e){return e==null}const mv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,va=(e,t)=>n=>!!(typeof n=="string"&&mv.test(n)&&n.startsWith(e)||t&&!hv(n)&&Object.prototype.hasOwnProperty.call(n,t)),kf=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(ga);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},yv=e=>$n(0,255,e),No={...gr,transform:e=>Math.round(yv(e))},Rn={test:va("rgb","red"),parse:kf("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+No.transform(e)+", "+No.transform(t)+", "+No.transform(n)+", "+Nr(Br.transform(r))+")"};function gv(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 Ss={test:va("#"),parse:gv,transform:Rn.transform},Zn={test:va("hsl","hue"),parse:kf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nr.transform(Nr(t))+", "+nr.transform(Nr(n))+", "+Nr(Br.transform(r))+")"},Ye={test:e=>Rn.test(e)||Ss.test(e)||Zn.test(e),parse:e=>Rn.test(e)?Rn.parse(e):Zn.test(e)?Zn.parse(e):Ss.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Rn.transform(e):Zn.transform(e)},vv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bv(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ga))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(vv))===null||n===void 0?void 0:n.length)||0)>0}const If="number",Lf="color",wv="var",Sv="var(",Dl="${}",Ev=/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 Wr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(Ev,l=>(Ye.test(l)?(r.color.push(o),i.push(Lf),n.push(Ye.parse(l))):l.startsWith(Sv)?(r.var.push(o),i.push(wv),n.push(l)):(r.number.push(o),i.push(If),n.push(parseFloat(l))),++o,Dl)).split(Dl);return{values:n,split:a,indexes:r,types:i}}function Nf(e){return Wr(e).values}function Df(e){const{split:t,types:n}=Wr(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===If?o+=Nr(i[s]):a===Lf?o+=Ye.transform(i[s]):o+=i[s]}return o}}const Cv=e=>typeof e=="number"?0:e;function Tv(e){const t=Nf(e);return Df(e)(t.map(Cv))}const vr={test:bv,parse:Nf,createTransformer:Df,getAnimatableNone:Tv},_v=new Set(["brightness","contrast","saturate","opacity"]);function Ov(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ga)||[];if(!r)return e;const i=n.replace(r,"");let o=_v.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const xv=/\b([a-z-]*)\(.*?\)/gu,Es={...vr,getAnimatableNone:e=>{const t=e.match(xv);return t?t.map(Ov).join(" "):e}},Av={borderWidth:ae,borderTopWidth:ae,borderRightWidth:ae,borderBottomWidth:ae,borderLeftWidth:ae,borderRadius:ae,radius:ae,borderTopLeftRadius:ae,borderTopRightRadius:ae,borderBottomRightRadius:ae,borderBottomLeftRadius:ae,width:ae,maxWidth:ae,height:ae,maxHeight:ae,top:ae,right:ae,bottom:ae,left:ae,padding:ae,paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae,margin:ae,marginTop:ae,marginRight:ae,marginBottom:ae,marginLeft:ae,backgroundPositionX:ae,backgroundPositionY:ae},Pv={rotate:mn,rotateX:mn,rotateY:mn,rotateZ:mn,scale:vi,scaleX:vi,scaleY:vi,scaleZ:vi,skew:mn,skewX:mn,skewY:mn,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:Br,originX:Ml,originY:Ml,originZ:ae},$l={...gr,transform:Math.round},ba={...Av,...Pv,zIndex:$l,size:ae,fillOpacity:Br,strokeOpacity:Br,numOctaves:$l},Rv={...ba,color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,filter:Es,WebkitFilter:Es},wa=e=>Rv[e];function $f(e,t){let n=wa(e);return n!==Es&&(n=vr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Mv=new Set(["auto","none","0"]);function kv(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Mv.has(o)&&Wr(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=$f(n,i)}class jf extends ya{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),ma(u))){const c=xf(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!lv.has(r)||t.length!==2)return;const[i,o]=t,s=Nl(i),a=Nl(o);if(s!==a)if(kl(s)&&kl(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)ev(t[i])&&r.push(i);r.length&&kv(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=ar[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 t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,a=i[s];i[s]=ar[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Sa(e){return typeof e=="function"}let _i;function Iv(){_i=void 0}const Sn={now:()=>(_i===void 0&&Sn.set($i.isProcessing||Hg.useManualTiming?$i.timestamp:performance.now()),_i),set:e=>{_i=e,queueMicrotask(Iv)}},jl=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(vr.test(e)||e==="0")&&!e.startsWith("url("));function Lv(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 Nv(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=jl(i,t),a=jl(o,t);return yr(s===a,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!s||!a?!1:Lv(e)||(n==="spring"||Sa(n))&&r}const Dv=40;class Vf{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Sn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Dv?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&pv(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Sn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Nv(t,r,i,o))if(s)this.options.duration=0;else{l==null||l(lo(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ea=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ff=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ea(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function Bf(e,t){return t?e*(1e3/t):0}const $v=5;function Wf(e,t,n){const r=Math.max(t-$v,0);return Bf(n-e(r),t-r)}const Fe={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},Vl=.001;function jv({duration:e=Fe.duration,bounce:t=Fe.bounce,velocity:n=Fe.velocity,mass:r=Fe.mass}){let i,o;yr(e<=pn(Fe.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=$n(Fe.minDamping,Fe.maxDamping,s),e=$n(Fe.minDuration,Fe.maxDuration,wn(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,p=Cs(u,s),y=Math.exp(-f);return Vl-d/p*y},o=u=>{const f=u*s*e,d=f*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),g=Cs(Math.pow(u,2),s);return(-i(u)+Vl>0?-1:1)*((d-p)*y)/g}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-.001+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=Fv(i,o,a);if(e=pn(e),isNaN(l))return{stiffness:Fe.stiffness,damping:Fe.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Vv=12;function Fv(e,t,n){let r=n;for(let i=1;i<Vv;i++)r=r-e(r)/t(r);return r}function Cs(e,t){return e*Math.sqrt(1-t*t)}const Ts=2e4;function Uf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ts;)t+=n,r=e.next(t);return t>=Ts?1/0:t}const Bv=["duration","bounce"],Wv=["stiffness","damping","mass"];function Fl(e,t){return t.some(n=>e[n]!==void 0)}function Uv(e){let t={velocity:Fe.velocity,stiffness:Fe.stiffness,damping:Fe.damping,mass:Fe.mass,isResolvedFromDuration:!1,...e};if(!Fl(e,Wv)&&Fl(e,Bv))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*$n(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Fe.mass,stiffness:i,damping:o}}else{const n=jv(e);t={...t,...n,mass:Fe.mass},t.isResolvedFromDuration=!0}return t}function zf(e=Fe.visualDuration,t=Fe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:p}=Uv({...n,velocity:-wn(n.velocity||0)}),y=d||0,g=u/(2*Math.sqrt(l*c)),E=s-o,v=wn(Math.sqrt(l/c)),b=Math.abs(E)<5;r||(r=b?Fe.restSpeed.granular:Fe.restSpeed.default),i||(i=b?Fe.restDelta.granular:Fe.restDelta.default);let T;if(g<1){const S=Cs(v,g);T=O=>{const M=Math.exp(-g*v*O);return s-M*((y+g*v*E)/S*Math.sin(S*O)+E*Math.cos(S*O))}}else if(g===1)T=S=>s-Math.exp(-v*S)*(E+(y+v*E)*S);else{const S=v*Math.sqrt(g*g-1);T=O=>{const M=Math.exp(-g*v*O),L=Math.min(S*O,300);return s-M*((y+g*v*E)*Math.sinh(L)+S*E*Math.cosh(L))/S}}const R={calculatedDuration:p&&f||null,next:S=>{const O=T(S);if(p)a.done=S>=f;else{let M=0;g<1&&(M=S===0?pn(y):Wf(T,S,O));const L=Math.abs(M)<=r,K=Math.abs(s-O)<=i;a.done=L&&K}return a.value=a.done?s:O,a},toString:()=>{const S=Math.min(Uf(R),Ts),O=Ff(M=>R.next(S*M).value,S,30);return S+"ms "+O}};return R}function Bl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},p=L=>a!==void 0&&L<a||l!==void 0&&L>l,y=L=>a===void 0?l:l===void 0||Math.abs(a-L)<Math.abs(l-L)?a:l;let g=n*t;const E=f+g,v=s===void 0?E:s(E);v!==E&&(g=v-f);const b=L=>-g*Math.exp(-L/r),T=L=>v+b(L),R=L=>{const K=b(L),U=T(L);d.done=Math.abs(K)<=u,d.value=d.done?v:U};let S,O;const M=L=>{p(d.value)&&(S=L,O=zf({keyframes:[d.value,y(d.value)],velocity:Wf(T,L,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return M(0),{calculatedDuration:null,next:L=>{let K=!1;return!O&&S===void 0&&(K=!0,R(L),M(L)),S!==void 0&&L>=S?O.next(L-S):(!K&&R(L),d)}}}const zv=Xr(.42,0,1,1),qv=Xr(0,0,.58,1),qf=Xr(.42,0,.58,1),Hv=e=>Array.isArray(e)&&typeof e[0]!="number",Ca=e=>Array.isArray(e)&&typeof e[0]=="number",Wl={linear:Cn,easeIn:zv,easeInOut:qf,easeOut:qv,circIn:ha,circInOut:Ef,circOut:Zg,backIn:pa,backInOut:wf,backOut:bf,anticipate:Sf},Ul=e=>{if(Ca(e)){Dn(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Xr(t,n,r,i)}else if(typeof e=="string")return Dn(Wl[e]!==void 0,`Invalid easing type '${e}'`),Wl[e];return e},Gv=(e,t)=>n=>t(e(n)),uo=(...e)=>e.reduce(Gv),co=(e,t,n)=>e+(t-e)*n;function Do(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 Kv({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Do(l,a,e+1/3),o=Do(l,a,e),s=Do(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function ji(e,t){return n=>n>0?t:e}const $o=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Yv=[Ss,Rn,Zn],Qv=e=>Yv.find(t=>t.test(e));function zl(e){const t=Qv(e);if(yr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Zn&&(n=Kv(n)),n}const ql=(e,t)=>{const n=zl(e),r=zl(t);if(!n||!r)return ji(e,t);const i={...n};return o=>(i.red=$o(n.red,r.red,o),i.green=$o(n.green,r.green,o),i.blue=$o(n.blue,r.blue,o),i.alpha=co(n.alpha,r.alpha,o),Rn.transform(i))},_s=new Set(["none","hidden"]);function Jv(e,t){return _s.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Xv(e,t){return n=>co(e,t,n)}function Ta(e){return typeof e=="number"?Xv:typeof e=="string"?ma(e)?ji:Ye.test(e)?ql:tb:Array.isArray(e)?Hf:typeof e=="object"?Ye.test(e)?ql:Zv:ji}function Hf(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Ta(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Zv(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ta(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function eb(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const tb=(e,t)=>{const n=vr.createTransformer(t),r=Wr(e),i=Wr(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?_s.has(e)&&!i.values.length||_s.has(t)&&!r.values.length?Jv(e,t):uo(Hf(eb(r,i),i.values),n):(yr(!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.`),ji(e,t))};function Gf(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?co(e,t,n):Ta(e)(e,t)}function nb(e,t,n){const r=[],i=n||Gf,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Cn:t;a=uo(l,a)}r.push(a)}return r}function rb(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Dn(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=nb(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const f=Ea(e[c],e[c+1],u);return s[c](f)};return n?u=>l($n(e[0],e[o-1],u)):l}function ib(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ea(0,t,r);e.push(co(n,1,i))}}function ob(e){const t=[0];return ib(t,e.length-1),t}function sb(e,t){return e.map(n=>n*t)}function ab(e,t){return e.map(()=>t||qf).splice(0,e.length-1)}function Vi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Hv(r)?r.map(Ul):Ul(r),o={done:!1,value:t[0]},s=sb(n&&n.length===t.length?n:ob(t),e),a=rb(s,t,{ease:Array.isArray(i)?i:ab(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const lb=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Et.update(t,!0),stop:()=>vs(t),now:()=>$i.isProcessing?$i.timestamp:Sn.now()}},ub={decay:Bl,inertia:Bl,tween:Vi,keyframes:Vi,spring:zf},cb=e=>e/100;class _a extends Vf{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||ya,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(o,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,a=Sa(n)?n:ub[n]||Vi;let l,u;a!==Vi&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Dn(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=uo(cb,Gf(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});o==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Uf(c));const{calculatedDuration:f}=c,d=f+i,p=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:L}=this.options;return{done:!0,value:L[L.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:p,repeatType:y,repeatDelay:g,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-d*(this.speed>=0?1:-1),b=this.speed>=0?v<0:v>c;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let T=this.currentTime,R=o;if(p){const L=Math.min(this.currentTime,c)/f;let K=Math.floor(L),U=L%1;!U&&L>=1&&(U=1),U===1&&K--,K=Math.min(K,p+1),!!(K%2)&&(y==="reverse"?(U=1-U,g&&(U-=g/f)):y==="mirror"&&(R=s)),T=$n(0,1,U)*f}const S=b?{done:!1,value:l[0]}:R.next(T);a&&(S.value=a(S.value));let{done:O}=S;!b&&u!==null&&(O=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return M&&i!==void 0&&(S.value=lo(l,this.options,i)),E&&E(S.value),M&&this.finish(),S}get duration(){const{resolved:t}=this;return t?wn(t.calculatedDuration):0}get time(){return wn(this.currentTime)}set time(t){t=pn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=wn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=lb,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const fb=new Set(["opacity","clipPath","filter","transform"]);function Oa(e){let t;return()=>(t===void 0&&(t=e()),t)}const db={linearEasing:void 0};function pb(e,t){const n=Oa(e);return()=>{var r;return(r=db[t])!==null&&r!==void 0?r:n()}}const Fi=pb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Kf(e){return!!(typeof e=="function"&&Fi()||!e||typeof e=="string"&&(e in Os||Fi())||Ca(e)||Array.isArray(e)&&e.every(Kf))}const Ir=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Os={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ir([0,.65,.55,1]),circOut:Ir([.55,0,1,.45]),backIn:Ir([.31,.01,.66,-.59]),backOut:Ir([.33,1.53,.69,.99])};function Yf(e,t){if(e)return typeof e=="function"&&Fi()?Ff(e,t):Ca(e)?Ir(e):Array.isArray(e)?e.map(n=>Yf(n,t)||Os.easeOut):Os[e]}function hb(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Yf(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Hl(e,t){e.timeline=t,e.onfinish=null}const mb=Oa(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Bi=10,yb=2e4;function gb(e){return Sa(e.type)||e.type==="spring"||!Kf(e.ease)}function vb(e,t){const n=new _a({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<yb;)r=n.sample(o),i.push(r.value),o+=Bi;return{times:void 0,keyframes:i,duration:o-Bi,ease:"linear"}}const Qf={anticipate:Sf,backInOut:wf,circInOut:Ef};function bb(e){return e in Qf}class Gl extends Vf{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new jf(o,(s,a)=>this.onKeyframesResolved(s,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&Fi()&&bb(s)&&(s=Qf[s]),gb(this.options)){const{onComplete:d,onUpdate:p,motionValue:y,element:g,...E}=this.options,v=vb(t,E);t=v.keyframes,t.length===1&&(t[1]=t[0]),i=v.duration,o=v.times,s=v.ease,a="keyframes"}const f=hb(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:s});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(Hl(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:d}=this.options;l.set(lo(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:i,times:o,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return wn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=pn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Cn;const{animation:r}=n;Hl(r,t)}return Cn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...p}=this.options,y=new _a({...p,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),g=pn(this.time);u.setWithVelocity(y.sample(g-Bi).value,y.sample(g).value,Bi)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:a}=t;return mb()&&r&&fb.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}const wb=Oa(()=>window.ScrollTimeline!==void 0);class Sb{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>wb()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Eb({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Cb=(e,t,n,r={},i,o)=>s=>{const a=hf(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-pn(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};Eb(a)||(c={...c,...qg(e,c)}),c.duration&&(c.duration=pn(c.duration)),c.repeatDelay&&(c.repeatDelay=pn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=lo(c.keyframes,a);if(d!==void 0)return Et.update(()=>{c.onUpdate(d),c.onComplete()}),new Sb([])}return!o&&Gl.supports(c)?new Gl(c):new _a(c)},Tb=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),_b=e=>gs(e)?e[e.length-1]||0:e;function Ob(e,t){e.indexOf(t)===-1&&e.push(t)}function xb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Jf{constructor(){this.subscriptions=[]}add(t){return Ob(this.subscriptions,t),()=>xb(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 o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Kl=30,Ab=e=>!isNaN(parseFloat(e));class Pb{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Sn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Sn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ab(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&oo(!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 Jf);const r=this.events[t].add(n);return t==="change"?()=>{r(),Et.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()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Sn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Kl)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Kl);return Bf(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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Wi(e,t){return new Pb(e,t)}function Rb(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Wi(n))}function Mb(e,t){const n=ao(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=_b(o[s]);Rb(e,s,a)}}const xa=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kb="framerAppearId",Xf="data-"+xa(kb);function Ib(e){return e.props[Xf]}const st=e=>!!(e&&e.getVelocity);function Lb(e){return!!(st(e)&&e.add)}function Nb(e,t){const n=e.getValue("willChange");if(Lb(n))return n.add(t)}function Db({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Zf(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const d=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),p=l[f];if(p===void 0||c&&Db(c,f))continue;const y={delay:n,...hf(s||{},f)};let g=!1;if(window.MotionHandoffAnimation){const v=Ib(e);if(v){const b=window.MotionHandoffAnimation(v,f,Et);b!==null&&(y.startTime=b,g=!0)}}Nb(e,f),d.start(Cb(f,d,p,e.shouldReduceMotion&&Bn.has(f)?{type:!1}:y,e,g));const E=d.animation;E&&u.push(E)}return a&&Promise.all(u).then(()=>{Et.update(()=>{a&&Mb(e,a)})}),u}function xs(e,t,n={}){var r;const i=ao(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(Zf(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return $b(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function $b(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(jb).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(xs(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function jb(e,t){return e.sortNodePosition(t)}function Vb(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>xs(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=xs(e,t,n);else{const i=typeof t=="function"?ao(e,t,n.custom):t;r=Promise.all(Zf(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Fb=da.length;function ed(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ed(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Fb;n++){const r=da[n],i=e.props[r];(Fr(i)||i===!1)&&(t[r]=i)}return t}const Bb=[...fa].reverse(),Wb=fa.length;function Ub(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Vb(e,n,r)))}function zb(e){let t=Ub(e),n=Yl(),r=!0;const i=l=>(u,c)=>{var f;const d=ao(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:p,transitionEnd:y,...g}=d;u={...u,...g,...y}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=ed(e.parent)||{},f=[],d=new Set;let p={},y=1/0;for(let E=0;E<Wb;E++){const v=Bb[E],b=n[v],T=u[v]!==void 0?u[v]:c[v],R=Fr(T),S=v===l?b.isActive:null;S===!1&&(y=E);let O=T===c[v]&&T!==u[v]&&R;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),b.protectedKeys={...p},!b.isActive&&S===null||!T&&!b.prevProp||so(T)||typeof T=="boolean")continue;const M=qb(b.prevProp,T);let L=M||v===l&&b.isActive&&!O&&R||E>y&&R,K=!1;const U=Array.isArray(T)?T:[T];let se=U.reduce(i(v),{});S===!1&&(se={});const{prevResolvedValues:be={}}=b,ye={...be,...se},B=F=>{L=!0,d.has(F)&&(K=!0,d.delete(F)),b.needsAnimating[F]=!0;const z=e.getValue(F);z&&(z.liveStyle=!1)};for(const F in ye){const z=se[F],pe=be[F];if(p.hasOwnProperty(F))continue;let x=!1;gs(z)&&gs(pe)?x=!pf(z,pe):x=z!==pe,x?z!=null?B(F):d.add(F):z!==void 0&&d.has(F)?B(F):b.protectedKeys[F]=!0}b.prevProp=T,b.prevResolvedValues=se,b.isActive&&(p={...p,...se}),r&&e.blockInitialAnimation&&(L=!1),L&&(!(O&&M)||K)&&f.push(...U.map(F=>({animation:F,options:{type:v}})))}if(d.size){const E={};d.forEach(v=>{const b=e.getBaseTarget(v),T=e.getValue(v);T&&(T.liveStyle=!0),E[v]=b??null}),f.push({animation:E})}let g=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Yl(),r=!0}}}function qb(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!pf(t,e):!1}function Pn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yl(){return{animate:Pn(!0),whileInView:Pn(),whileHover:Pn(),whileTap:Pn(),whileDrag:Pn(),whileFocus:Pn(),exit:Pn()}}class br{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Hb extends br{constructor(t){super(t),t.animationState||(t.animationState=zb(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();so(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===void 0||t.call(this)}}let Gb=0;class Kb extends br{constructor(){super(...arguments),this.id=Gb++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Yb={animation:{Feature:Hb},exit:{Feature:Kb}},Qb={x:!1,y:!1};function Jb(){return Qb.y}const Xb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function td(e){return{point:{x:e.pageX,y:e.pageY}}}function Ql(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function nd(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Jl=()=>({min:0,max:0}),rd=()=>({x:Jl(),y:Jl()});function Zb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ew(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 tw(e,t){return Zb(ew(e.getBoundingClientRect(),t))}const id=w.createContext(null),nw=w.createContext({}),rw=w.createContext({}),iw={},{schedule:ow,cancel:uC}=mf(queueMicrotask,!1);function sw(e){const t=st(e)?e.get():e;return Tb(t)?t.toValue():t}function aw(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function od(e,t){const n=aw(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Xl(e){return t=>{t.pointerType==="touch"||Jb()||e(t)}}function lw(e,t,n={}){const[r,i,o]=od(e,n),s=Xl(a=>{const{target:l}=a,u=t(a);if(!u||!l)return;const c=Xl(f=>{u(f),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}function Zl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Et.postRender(()=>o(t,td(t)))}class uw extends br{mount(){const{current:t}=this.node;t&&(this.unmount=lw(t,n=>(Zl(this.node,n,"Start"),r=>Zl(this.node,r,"End"))))}unmount(){}}class cw extends br{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=uo(Ql(this.node.current,"focus",()=>this.onFocus()),Ql(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Lr=new WeakSet;function eu(e){return t=>{t.key==="Enter"&&e(t)}}function jo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const fw=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=eu(()=>{if(Lr.has(n))return;jo(n,"down");const i=eu(()=>{jo(n,"up")}),o=()=>jo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},dw=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pw(e){return dw.has(e.tagName)||e.tabIndex!==-1}const sd=(e,t)=>t?e===t?!0:sd(e,t.parentElement):!1;function tu(e){return Xb(e)&&!0}function hw(e,t,n={}){const[r,i,o]=od(e,n),s=a=>{const l=a.currentTarget;if(!tu(a)||Lr.has(l))return;Lr.add(l);const u=t(a),c=(p,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!tu(p)||!Lr.has(l))&&(Lr.delete(l),u&&u(p,{success:y}))},f=p=>{c(p,n.useGlobalTarget||sd(l,p.target))},d=p=>{c(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{pw(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),a.addEventListener("focus",u=>fw(u,i),i)}),o}function nu(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Et.postRender(()=>o(t,td(t)))}class mw extends br{mount(){const{current:t}=this.node;t&&(this.unmount=hw(t,n=>(nu(this.node,n,"Start"),(r,{success:i})=>nu(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const As=new WeakMap,Vo=new WeakMap,yw=e=>{const t=As.get(e.target);t&&t(e)},gw=e=>{e.forEach(yw)};function vw({root:e,...t}){const n=e||document;Vo.has(n)||Vo.set(n,{});const r=Vo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(gw,{root:e,...t})),r[i]}function bw(e,t,n){const r=vw(t);return As.set(e,n),r.observe(e),()=>{As.delete(e),r.unobserve(e)}}const ww={some:0,all:1};class Sw extends br{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:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:ww[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return bw(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ew(t,n))&&this.startObserver()}unmount(){}}function Ew({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Cw={inView:{Feature:Sw},tap:{Feature:mw},focus:{Feature:cw},hover:{Feature:uw}},ad=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),fo=w.createContext({}),Aa=typeof window<"u",Tw=Aa?w.useLayoutEffect:w.useEffect,Pa=w.createContext({strict:!1});function _w(e,t,n,r,i){var o,s;const{visualElement:a}=w.useContext(fo),l=w.useContext(Pa),u=w.useContext(id),c=w.useContext(ad).reducedMotion,f=w.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,p=w.useContext(rw);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&Ow(f.current,n,i,p);const y=w.useRef(!1);w.useInsertionEffect(()=>{d&&y.current&&d.update(n,u)});const g=n[Xf],E=w.useRef(!!g&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,g))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,g)));return Tw(()=>{d&&(y.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),ow.render(d.render),E.current&&d.animationState&&d.animationState.animateChanges())}),w.useEffect(()=>{d&&(!E.current&&d.animationState&&d.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,g)}),E.current=!1))}),d}function Ow(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ld(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&nd(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function ld(e){if(e)return e.options.allowProjection!==!1?e.projection:ld(e.parent)}function xw(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):nd(n)&&(n.current=r))},[t])}function po(e){return so(e.animate)||da.some(t=>Fr(e[t]))}function ud(e){return!!(po(e)||e.variants)}function Aw(e,t){if(po(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Fr(n)?n:void 0,animate:Fr(r)?r:void 0}}return e.inherit!==!1?t:{}}function Pw(e){const{initial:t,animate:n}=Aw(e,w.useContext(fo));return w.useMemo(()=>({initial:t,animate:n}),[ru(t),ru(n)])}function ru(e){return Array.isArray(e)?e.join(" "):e}const iu={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"]},lr={};for(const e in iu)lr[e]={isEnabled:t=>iu[e].some(n=>!!t[n])};function Ps(e){for(const t in e)lr[t]={...lr[t],...e[t]}}const Rw=Symbol.for("motionComponentSymbol");function Mw({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Ps(e);function o(a,l){let u;const c={...w.useContext(ad),...a,layoutId:kw(a)},{isStatic:f}=c,d=Pw(a),p=r(a,f);if(!f&&Aa){Iw(c,e);const y=Lw(c);u=y.MeasureLayout,d.visualElement=_w(i,p,c,t,y.ProjectionNode)}return Zo.jsxs(fo.Provider,{value:d,children:[u&&d.visualElement?Zo.jsx(u,{visualElement:d.visualElement,...c}):null,n(i,a,xw(p,d.visualElement,l),p,f,d.visualElement)]})}const s=w.forwardRef(o);return s[Rw]=i,s}function kw({layoutId:e}){const t=w.useContext(nw).id;return t&&e!==void 0?t+"-"+e:e}function Iw(e,t){const n=w.useContext(Pa).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?yr(!1,r):Dn(!1,r)}}function Lw(e){const{drag:t,layout:n}=lr;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 Nw=["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 Ra(e){return typeof e!="string"||e.includes("-")?!1:!!(Nw.indexOf(e)>-1||/[A-Z]/u.test(e))}function cd(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const fd=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 dd(e,t,n,r){cd(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(fd.has(i)?i:xa(i),t.attrs[i])}function pd(e,{layout:t,layoutId:n}){return Bn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!iw[e]||e==="opacity")}function Ma(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(st(i[s])||t.style&&st(t.style[s])||pd(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function hd(e,t,n){const r=Ma(e,t,n);for(const i in e)if(st(e[i])||st(t[i])){const o=Jr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function Dw(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}function $w({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:jw(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const md=e=>(t,n)=>{const r=w.useContext(fo),i=w.useContext(id),o=()=>$w(e,t,r,i);return n?o():Dw(o)};function jw(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=sw(o[d]);let{initial:s,animate:a}=e;const l=po(e),u=ud(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;if(f&&typeof f!="boolean"&&!so(f)){const d=Array.isArray(f)?f:[f];for(let p=0;p<d.length;p++){const y=ca(e,d[p]);if(y){const{transitionEnd:g,transition:E,...v}=y;for(const b in v){let T=v[b];if(Array.isArray(T)){const R=c?T.length-1:0;T=T[R]}T!==null&&(i[b]=T)}for(const b in g)i[b]=g[b]}}}return i}const ka=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),yd=()=>({...ka(),attrs:{}}),gd=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Vw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fw=Jr.length;function Bw(e,t,n){let r="",i=!0;for(let o=0;o<Fw;o++){const s=Jr[o],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=gd(a,ba[s]);if(!l){i=!1;const c=Vw[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Ia(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Bn.has(l)){s=!0;continue}else if(Of(l)){i[l]=u;continue}else{const c=gd(u,ba[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=Bw(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;r.transformOrigin=`${l} ${u} ${c}`}}function ou(e,t,n){return typeof e=="string"?e:ae.transform(t+n*e)}function Ww(e,t,n){const r=ou(t,e.x,e.width),i=ou(n,e.y,e.height);return`${r} ${i}`}const Uw={offset:"stroke-dashoffset",array:"stroke-dasharray"},zw={offset:"strokeDashoffset",array:"strokeDasharray"};function qw(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Uw:zw;e[o.offset]=ae.transform(-r);const s=ae.transform(t),a=ae.transform(n);e[o.array]=`${s} ${a}`}function La(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,f){if(Ia(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p,dimensions:y}=e;d.transform&&(y&&(p.transform=d.transform),delete d.transform),y&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Ww(y,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&qw(d,s,a,l,!1)}const Na=e=>typeof e=="string"&&e.toLowerCase()==="svg",Hw={useVisualState:md({scrapeMotionValuesFromProps:hd,createRenderState:yd,onMount:(e,t,{renderState:n,latestValues:r})=>{Et.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Et.render(()=>{La(n,r,Na(t.tagName),e.transformTemplate),dd(t,n)})}})},Gw={useVisualState:md({scrapeMotionValuesFromProps:Ma,createRenderState:ka})};function vd(e,t,n){for(const r in t)!st(t[r])&&!pd(r,n)&&(e[r]=t[r])}function Kw({transformTemplate:e},t){return w.useMemo(()=>{const n=ka();return Ia(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Yw(e,t){const n=e.style||{},r={};return vd(r,n,e),Object.assign(r,Kw(e,t)),r}function Qw(e,t){const n={},r=Yw(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 Jw=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 Ui(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Jw.has(e)}let bd=e=>!Ui(e);function Xw(e){e&&(bd=t=>t.startsWith("on")?!Ui(t):e(t))}try{Xw(require("@emotion/is-prop-valid").default)}catch{}function Zw(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(bd(i)||n===!0&&Ui(i)||!t&&!Ui(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function e0(e,t,n,r){const i=w.useMemo(()=>{const o=yd();return La(o,t,Na(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};vd(o,e.style,e),i.style={...o,...i.style}}return i}function t0(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(Ra(n)?e0:Qw)(r,o,s,n),u=Zw(r,typeof n=="string",e),c=n!==w.Fragment?{...u,...l,ref:i}:{},{children:f}=r,d=w.useMemo(()=>st(f)?f.get():f,[f]);return w.createElement(n,{...c,children:d})}}function n0(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...Ra(r)?Hw:Gw,preloadedFeatures:e,useRender:t0(i),createVisualElement:t,Component:r};return Mw(s)}}const Rs={current:null},wd={current:!1};function r0(){if(wd.current=!0,!!Aa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Rs.current=e.matches;e.addListener(t),t()}else Rs.current=!1}function i0(e,t,n){for(const r in t){const i=t[r],o=n[r];if(st(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&oo(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(st(o))e.addValue(r,Wi(i,{owner:e}));else if(o!==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,Wi(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const su=new WeakMap,o0=[...Pf,Ye,vr],s0=e=>o0.find(Af(e)),au=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class a0{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ya,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 d=Sn.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,Et.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=po(n),this.isVariantNode=ud(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const p=f[d];l[d]!==void 0&&st(p)&&p.set(l[d],!1)}}mount(t){this.current=t,su.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)),wd.current||r0(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Rs.current,process.env.NODE_ENV!=="production"&&oo(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(){su.delete(this.current),this.projection&&this.projection.unmount(),vs(this.notifyUpdate),vs(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=Bn.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Et.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),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 lr){const n=lr[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 o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rd()}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<au.length;r++){const i=au[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=i0(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=Wi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Tf(i)||Cf(i))?i=parseFloat(i):!s0(i)&&vr.test(n)&&(i=$f(t,n)),this.setBaseTarget(t,st(i)?i.get():i)),st(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=ca(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!st(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Jf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Sd extends a0{constructor(){super(...arguments),this.KeyframeResolver=jf}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;st(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function l0(e){return window.getComputedStyle(e)}class u0 extends Sd{constructor(){super(...arguments),this.type="html",this.renderInstance=cd}readValueFromInstance(t,n){if(Bn.has(n)){const r=wa(n);return r&&r.default||0}else{const r=l0(t),i=(Of(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return tw(t,n)}build(t,n,r){Ia(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ma(t,n,r)}}class c0 extends Sd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rd}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Bn.has(n)){const r=wa(n);return r&&r.default||0}return n=fd.has(n)?n:xa(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return hd(t,n,r)}build(t,n,r){La(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){dd(t,n,r,i)}mount(t){this.isSVGTag=Na(t.tagName),super.mount(t)}}const f0=(e,t)=>Ra(e)?new c0(t):new u0(t,{allowProjection:e!==w.Fragment}),d0=n0(),p0=Fg(d0);function h0({children:e,features:t,strict:n=!1}){const[,r]=w.useState(!Fo(t)),i=w.useRef(void 0);if(!Fo(t)){const{renderer:o,...s}=t;i.current=o,Ps(s)}return w.useEffect(()=>{Fo(t)&&t().then(({renderer:o,...s})=>{Ps(s),i.current=o,r(!0)})},[]),Zo.jsx(Pa.Provider,{value:{renderer:i.current,strict:n},children:e})}function Fo(e){return typeof e=="function"}const m0={renderer:f0,...Yb,...Cw};function Ed(e){return t=>typeof t===e}var y0=Ed("function"),g0=e=>e===null,lu=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",uu=e=>!v0(e)&&!g0(e)&&(y0(e)||typeof e=="object"),v0=Ed("undefined");function b0(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!at(e[r],t[r]))return!1;return!0}function w0(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 S0(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(!at(n[1],t.get(n[0])))return!1;return!0}function E0(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 at(e,t){if(e===t)return!0;if(e&&uu(e)&&t&&uu(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return b0(e,t);if(e instanceof Map&&t instanceof Map)return S0(e,t);if(e instanceof Set&&t instanceof Set)return E0(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return w0(e,t);if(lu(e)&&lu(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 o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!at(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var C0=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],T0=["bigint","boolean","null","number","string","symbol","undefined"];function ho(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(_0(t))return t}function Ht(e){return t=>ho(t)===e}function _0(e){return C0.includes(e)}function wr(e){return t=>typeof t===e}function O0(e){return T0.includes(e)}var x0=["innerHTML","ownerDocument","style","attributes","nodeValue"];function q(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(q.array(e))return"Array";if(q.plainFunction(e))return"Function";const t=ho(e);return t||"Object"}q.array=Array.isArray;q.arrayOf=(e,t)=>!q.array(e)&&!q.function(t)?!1:e.every(n=>t(n));q.asyncGeneratorFunction=e=>ho(e)==="AsyncGeneratorFunction";q.asyncFunction=Ht("AsyncFunction");q.bigint=wr("bigint");q.boolean=e=>e===!0||e===!1;q.date=Ht("Date");q.defined=e=>!q.undefined(e);q.domElement=e=>q.object(e)&&!q.plainObject(e)&&e.nodeType===1&&q.string(e.nodeName)&&x0.every(t=>t in e);q.empty=e=>q.string(e)&&e.length===0||q.array(e)&&e.length===0||q.object(e)&&!q.map(e)&&!q.set(e)&&Object.keys(e).length===0||q.set(e)&&e.size===0||q.map(e)&&e.size===0;q.error=Ht("Error");q.function=wr("function");q.generator=e=>q.iterable(e)&&q.function(e.next)&&q.function(e.throw);q.generatorFunction=Ht("GeneratorFunction");q.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;q.iterable=e=>!q.nullOrUndefined(e)&&q.function(e[Symbol.iterator]);q.map=Ht("Map");q.nan=e=>Number.isNaN(e);q.null=e=>e===null;q.nullOrUndefined=e=>q.null(e)||q.undefined(e);q.number=e=>wr("number")(e)&&!q.nan(e);q.numericString=e=>q.string(e)&&e.length>0&&!Number.isNaN(Number(e));q.object=e=>!q.nullOrUndefined(e)&&(q.function(e)||typeof e=="object");q.oneOf=(e,t)=>q.array(e)?e.indexOf(t)>-1:!1;q.plainFunction=Ht("Function");q.plainObject=e=>{if(ho(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};q.primitive=e=>q.null(e)||O0(typeof e);q.promise=Ht("Promise");q.propertyOf=(e,t,n)=>{if(!q.object(e)||!t)return!1;const r=e[t];return q.function(n)?n(r):q.defined(r)};q.regexp=Ht("RegExp");q.set=Ht("Set");q.string=wr("string");q.symbol=wr("symbol");q.undefined=wr("undefined");q.weakMap=Ht("WeakMap");q.weakSet=Ht("WeakSet");var G=q;function A0(...e){return e.every(t=>G.string(t)||G.array(t)||G.plainObject(t))}function P0(e,t,n){return Cd(e,t)?[e,t].every(G.array)?!e.some(hu(n))&&t.some(hu(n)):[e,t].every(G.plainObject)?!Object.entries(e).some(pu(n))&&Object.entries(t).some(pu(n)):t===n:!1}function cu(e,t,n){const{actual:r,key:i,previous:o,type:s}=n,a=Zt(e,i),l=Zt(t,i);let u=[a,l].every(G.number)&&(s==="increased"?a<l:a>l);return G.undefined(r)||(u=u&&l===r),G.undefined(o)||(u=u&&a===o),u}function fu(e,t,n){const{key:r,type:i,value:o}=n,s=Zt(e,r),a=Zt(t,r),l=i==="added"?s:a,u=i==="added"?a:s;if(!G.nullOrUndefined(o)){if(G.defined(l)){if(G.array(l)||G.plainObject(l))return P0(l,u,o)}else return at(u,o);return!1}return[s,a].every(G.array)?!u.every(Da(l)):[s,a].every(G.plainObject)?R0(Object.keys(l),Object.keys(u)):![s,a].every(c=>G.primitive(c)&&G.defined(c))&&(i==="added"?!G.defined(s)&&G.defined(a):G.defined(s)&&!G.defined(a))}function du(e,t,{key:n}={}){let r=Zt(e,n),i=Zt(t,n);if(!Cd(r,i))throw new TypeError("Inputs have different types");if(!A0(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(G.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function pu(e){return([t,n])=>G.array(e)?at(e,n)||e.some(r=>at(r,n)||G.array(n)&&Da(n)(r)):G.plainObject(e)&&e[t]?!!e[t]&&at(e[t],n):at(e,n)}function R0(e,t){return t.some(n=>!e.includes(n))}function hu(e){return t=>G.array(e)?e.some(n=>at(n,t)||G.array(t)&&Da(t)(n)):at(e,t)}function Ar(e,t){return G.array(e)?e.some(n=>at(n,t)):at(e,t)}function Da(e){return t=>e.some(n=>at(n,t))}function Cd(...e){return e.every(G.array)||e.every(G.number)||e.every(G.plainObject)||e.every(G.string)}function Zt(e,t){return G.plainObject(e)||G.array(e)?G.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):G.number(t)?e[t]:e:e}function zi(e,t){if([e,t].some(G.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(c=>G.plainObject(c)||G.array(c)))throw new Error("Expected plain objects or array");return{added:(c,f)=>{try{return fu(e,t,{key:c,type:"added",value:f})}catch{return!1}},changed:(c,f,d)=>{try{const p=Zt(e,c),y=Zt(t,c),g=G.defined(f),E=G.defined(d);if(g||E){const v=E?Ar(d,p):!Ar(f,p),b=Ar(f,y);return v&&b}return[p,y].every(G.array)||[p,y].every(G.plainObject)?!at(p,y):p!==y}catch{return!1}},changedFrom:(c,f,d)=>{if(!G.defined(c))return!1;try{const p=Zt(e,c),y=Zt(t,c),g=G.defined(d);return Ar(f,p)&&(g?Ar(d,y):!g)}catch{return!1}},decreased:(c,f,d)=>{if(!G.defined(c))return!1;try{return cu(e,t,{key:c,actual:f,previous:d,type:"decreased"})}catch{return!1}},emptied:c=>{try{const[f,d]=du(e,t,{key:c});return!!f.length&&!d.length}catch{return!1}},filled:c=>{try{const[f,d]=du(e,t,{key:c});return!f.length&&!!d.length}catch{return!1}},increased:(c,f,d)=>{if(!G.defined(c))return!1;try{return cu(e,t,{key:c,actual:f,previous:d,type:"increased"})}catch{return!1}},removed:(c,f)=>{try{return fu(e,t,{key:c,type:"removed",value:f})}catch{return!1}}}}var Bo,mu;function M0(){if(mu)return Bo;mu=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;Bo={left:i("scrollLeft"),top:i("scrollTop")};function i(a){return function(u,c,f,d){f=f||{},typeof f=="function"&&(d=f,f={}),typeof d!="function"&&(d=s);var p=r(),y=u[a],g=f.ease||o,E=isNaN(f.duration)?350:+f.duration,v=!1;return y===c?d(e,u[a]):requestAnimationFrame(T),b;function b(){v=!0}function T(R){if(v)return d(t,u[a]);var S=r(),O=n(1,(S-p)/E),M=g(O);u[a]=M*(c-y)+y,O<1?requestAnimationFrame(T):requestAnimationFrame(function(){d(null,u[a])})}}}function o(a){return .5*(1-Math.cos(Math.PI*a))}function s(){}return Bo}var k0=M0();const I0=hr(k0);var Oi={exports:{}},L0=Oi.exports,yu;function N0(){return yu||(yu=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(L0,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})}(Oi)),Oi.exports}var D0=N0();const Td=hr(D0);var Wo,gu;function $0(){if(gu)return Wo;gu=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,Wo=n,Wo}var j0=$0();const vu=hr(j0);var Uo,bu;function V0(){if(bu)return Uo;bu=1;var e=function(b){return t(b)&&!n(b)};function t(v){return!!v&&typeof v=="object"}function n(v){var b=Object.prototype.toString.call(v);return b==="[object RegExp]"||b==="[object Date]"||o(v)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(v){return v.$$typeof===i}function s(v){return Array.isArray(v)?[]:{}}function a(v,b){return b.clone!==!1&&b.isMergeableObject(v)?g(s(v),v,b):v}function l(v,b,T){return v.concat(b).map(function(R){return a(R,T)})}function u(v,b){if(!b.customMerge)return g;var T=b.customMerge(v);return typeof T=="function"?T:g}function c(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(b){return Object.propertyIsEnumerable.call(v,b)}):[]}function f(v){return Object.keys(v).concat(c(v))}function d(v,b){try{return b in v}catch{return!1}}function p(v,b){return d(v,b)&&!(Object.hasOwnProperty.call(v,b)&&Object.propertyIsEnumerable.call(v,b))}function y(v,b,T){var R={};return T.isMergeableObject(v)&&f(v).forEach(function(S){R[S]=a(v[S],T)}),f(b).forEach(function(S){p(v,S)||(d(v,S)&&T.isMergeableObject(b[S])?R[S]=u(S,T)(v[S],b[S],T):R[S]=a(b[S],T))}),R}function g(v,b,T){T=T||{},T.arrayMerge=T.arrayMerge||l,T.isMergeableObject=T.isMergeableObject||e,T.cloneUnlessOtherwiseSpecified=a;var R=Array.isArray(b),S=Array.isArray(v),O=R===S;return O?R?T.arrayMerge(v,b,T):y(v,b,T):a(b,T)}g.all=function(b,T){if(!Array.isArray(b))throw new Error("first argument should be an array");return b.reduce(function(R,S){return g(R,S,T)},{})};var E=g;return Uo=E,Uo}var F0=V0();const Bt=hr(F0);var bi={exports:{}},wi={exports:{}},_e={};/** @license React v16.13.1
65
+ * react-is.production.min.js
66
+ *
67
+ * Copyright (c) Facebook, Inc. and its affiliates.
68
+ *
69
+ * This source code is licensed under the MIT license found in the
70
+ * LICENSE file in the root directory of this source tree.
71
+ */var wu;function B0(){if(wu)return _e;wu=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,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function T(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case t:switch(S=S.type,S){case l:case u:case r:case o:case i:case f:return S;default:switch(S=S&&S.$$typeof,S){case a:case c:case y:case p:case s:return S;default:return O}}case n:return O}}}function R(S){return T(S)===u}return _e.AsyncMode=l,_e.ConcurrentMode=u,_e.ContextConsumer=a,_e.ContextProvider=s,_e.Element=t,_e.ForwardRef=c,_e.Fragment=r,_e.Lazy=y,_e.Memo=p,_e.Portal=n,_e.Profiler=o,_e.StrictMode=i,_e.Suspense=f,_e.isAsyncMode=function(S){return R(S)||T(S)===l},_e.isConcurrentMode=R,_e.isContextConsumer=function(S){return T(S)===a},_e.isContextProvider=function(S){return T(S)===s},_e.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},_e.isForwardRef=function(S){return T(S)===c},_e.isFragment=function(S){return T(S)===r},_e.isLazy=function(S){return T(S)===y},_e.isMemo=function(S){return T(S)===p},_e.isPortal=function(S){return T(S)===n},_e.isProfiler=function(S){return T(S)===o},_e.isStrictMode=function(S){return T(S)===i},_e.isSuspense=function(S){return T(S)===f},_e.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===o||S===i||S===f||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===p||S.$$typeof===s||S.$$typeof===a||S.$$typeof===c||S.$$typeof===E||S.$$typeof===v||S.$$typeof===b||S.$$typeof===g)},_e.typeOf=T,_e}var Oe={};/** @license React v16.13.1
72
+ * react-is.development.js
73
+ *
74
+ * Copyright (c) Facebook, Inc. and its affiliates.
75
+ *
76
+ * This source code is licensed under the MIT license found in the
77
+ * LICENSE file in the root directory of this source tree.
78
+ */var Su;function W0(){return Su||(Su=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,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function T($){return typeof $=="string"||typeof $=="function"||$===r||$===u||$===o||$===i||$===f||$===d||typeof $=="object"&&$!==null&&($.$$typeof===y||$.$$typeof===p||$.$$typeof===s||$.$$typeof===a||$.$$typeof===c||$.$$typeof===E||$.$$typeof===v||$.$$typeof===b||$.$$typeof===g)}function R($){if(typeof $=="object"&&$!==null){var Le=$.$$typeof;switch(Le){case t:var Xe=$.type;switch(Xe){case l:case u:case r:case o:case i:case f:return Xe;default:var $e=Xe&&Xe.$$typeof;switch($e){case a:case c:case y:case p:case s:return $e;default:return Le}}case n:return Le}}}var S=l,O=u,M=a,L=s,K=t,U=c,se=r,be=y,ye=p,B=n,Q=o,V=i,F=f,z=!1;function pe($){return z||(z=!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.")),x($)||R($)===l}function x($){return R($)===u}function N($){return R($)===a}function oe($){return R($)===s}function W($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function ee($){return R($)===c}function he($){return R($)===r}function le($){return R($)===y}function ue($){return R($)===p}function X($){return R($)===n}function fe($){return R($)===o}function ne($){return R($)===i}function Pe($){return R($)===f}Oe.AsyncMode=S,Oe.ConcurrentMode=O,Oe.ContextConsumer=M,Oe.ContextProvider=L,Oe.Element=K,Oe.ForwardRef=U,Oe.Fragment=se,Oe.Lazy=be,Oe.Memo=ye,Oe.Portal=B,Oe.Profiler=Q,Oe.StrictMode=V,Oe.Suspense=F,Oe.isAsyncMode=pe,Oe.isConcurrentMode=x,Oe.isContextConsumer=N,Oe.isContextProvider=oe,Oe.isElement=W,Oe.isForwardRef=ee,Oe.isFragment=he,Oe.isLazy=le,Oe.isMemo=ue,Oe.isPortal=X,Oe.isProfiler=fe,Oe.isStrictMode=ne,Oe.isSuspense=Pe,Oe.isValidElementType=T,Oe.typeOf=R}()),Oe}var Eu;function _d(){return Eu||(Eu=1,process.env.NODE_ENV==="production"?wi.exports=B0():wi.exports=W0()),wi.exports}/*
79
+ object-assign
80
+ (c) Sindre Sorhus
81
+ @license MIT
82
+ */var zo,Cu;function U0(){if(Cu)return zo;Cu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(s).map(function(c){return s[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return zo=i()?Object.assign:function(o,s){for(var a,l=r(o),u,c=1;c<arguments.length;c++){a=Object(arguments[c]);for(var f in a)t.call(a,f)&&(l[f]=a[f]);if(e){u=e(a);for(var d=0;d<u.length;d++)n.call(a,u[d])&&(l[u[d]]=a[u[d]])}}return l},zo}var qo,Tu;function $a(){if(Tu)return qo;Tu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qo=e,qo}var Ho,_u;function Od(){return _u||(_u=1,Ho=Function.call.bind(Object.prototype.hasOwnProperty)),Ho}var Go,Ou;function z0(){if(Ou)return Go;Ou=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=$a(),n={},r=Od();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,a,l,u){if(process.env.NODE_ENV!=="production"){for(var c in o)if(r(o,c)){var f;try{if(typeof o[c]!="function"){var d=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=o[c](s,c,l,a,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=u?u():"";e("Failed "+a+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Go=i,Go}var Ko,xu;function q0(){if(xu)return Ko;xu=1;var e=_d(),t=U0(),n=$a(),r=Od(),i=z0(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return Ko=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(x){var N=x&&(u&&x[u]||x[c]);if(typeof N=="function")return N}var d="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:b(),arrayOf:T,element:R(),elementType:S(),instanceOf:O,node:U(),objectOf:L,oneOf:M,oneOfType:K,shape:be,exact:ye};function y(x,N){return x===N?x!==0||1/x===1/N:x!==x&&N!==N}function g(x,N){this.message=x,this.data=N&&typeof N=="object"?N:{},this.stack=""}g.prototype=Error.prototype;function E(x){if(process.env.NODE_ENV!=="production")var N={},oe=0;function W(he,le,ue,X,fe,ne,Pe){if(X=X||d,ne=ne||ue,Pe!==n){if(l){var $=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 $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Le=X+":"+ue;!N[Le]&&oe<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+X+"`. 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."),N[Le]=!0,oe++)}}return le[ue]==null?he?le[ue]===null?new g("The "+fe+" `"+ne+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new g("The "+fe+" `"+ne+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:x(le,ue,X,fe,ne)}var ee=W.bind(null,!1);return ee.isRequired=W.bind(null,!0),ee}function v(x){function N(oe,W,ee,he,le,ue){var X=oe[W],fe=V(X);if(fe!==x){var ne=F(X);return new g("Invalid "+he+" `"+le+"` of type "+("`"+ne+"` supplied to `"+ee+"`, expected ")+("`"+x+"`."),{expectedType:x})}return null}return E(N)}function b(){return E(s)}function T(x){function N(oe,W,ee,he,le){if(typeof x!="function")return new g("Property `"+le+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var ue=oe[W];if(!Array.isArray(ue)){var X=V(ue);return new g("Invalid "+he+" `"+le+"` of type "+("`"+X+"` supplied to `"+ee+"`, expected an array."))}for(var fe=0;fe<ue.length;fe++){var ne=x(ue,fe,ee,he,le+"["+fe+"]",n);if(ne instanceof Error)return ne}return null}return E(N)}function R(){function x(N,oe,W,ee,he){var le=N[oe];if(!a(le)){var ue=V(le);return new g("Invalid "+ee+" `"+he+"` of type "+("`"+ue+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return E(x)}function S(){function x(N,oe,W,ee,he){var le=N[oe];if(!e.isValidElementType(le)){var ue=V(le);return new g("Invalid "+ee+" `"+he+"` of type "+("`"+ue+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return E(x)}function O(x){function N(oe,W,ee,he,le){if(!(oe[W]instanceof x)){var ue=x.name||d,X=pe(oe[W]);return new g("Invalid "+he+" `"+le+"` of type "+("`"+X+"` supplied to `"+ee+"`, expected ")+("instance of `"+ue+"`."))}return null}return E(N)}function M(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function N(oe,W,ee,he,le){for(var ue=oe[W],X=0;X<x.length;X++)if(y(ue,x[X]))return null;var fe=JSON.stringify(x,function(Pe,$){var Le=F($);return Le==="symbol"?String($):$});return new g("Invalid "+he+" `"+le+"` of value `"+String(ue)+"` "+("supplied to `"+ee+"`, expected one of "+fe+"."))}return E(N)}function L(x){function N(oe,W,ee,he,le){if(typeof x!="function")return new g("Property `"+le+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var ue=oe[W],X=V(ue);if(X!=="object")return new g("Invalid "+he+" `"+le+"` of type "+("`"+X+"` supplied to `"+ee+"`, expected an object."));for(var fe in ue)if(r(ue,fe)){var ne=x(ue,fe,ee,he,le+"."+fe,n);if(ne instanceof Error)return ne}return null}return E(N)}function K(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var N=0;N<x.length;N++){var oe=x[N];if(typeof oe!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(oe)+" at index "+N+"."),s}function W(ee,he,le,ue,X){for(var fe=[],ne=0;ne<x.length;ne++){var Pe=x[ne],$=Pe(ee,he,le,ue,X,n);if($==null)return null;$.data&&r($.data,"expectedType")&&fe.push($.data.expectedType)}var Le=fe.length>0?", expected one of type ["+fe.join(", ")+"]":"";return new g("Invalid "+ue+" `"+X+"` supplied to "+("`"+le+"`"+Le+"."))}return E(W)}function U(){function x(N,oe,W,ee,he){return B(N[oe])?null:new g("Invalid "+ee+" `"+he+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return E(x)}function se(x,N,oe,W,ee){return new g((x||"React class")+": "+N+" type `"+oe+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function be(x){function N(oe,W,ee,he,le){var ue=oe[W],X=V(ue);if(X!=="object")return new g("Invalid "+he+" `"+le+"` of type `"+X+"` "+("supplied to `"+ee+"`, expected `object`."));for(var fe in x){var ne=x[fe];if(typeof ne!="function")return se(ee,he,le,fe,F(ne));var Pe=ne(ue,fe,ee,he,le+"."+fe,n);if(Pe)return Pe}return null}return E(N)}function ye(x){function N(oe,W,ee,he,le){var ue=oe[W],X=V(ue);if(X!=="object")return new g("Invalid "+he+" `"+le+"` of type `"+X+"` "+("supplied to `"+ee+"`, expected `object`."));var fe=t({},oe[W],x);for(var ne in fe){var Pe=x[ne];if(r(x,ne)&&typeof Pe!="function")return se(ee,he,le,ne,F(Pe));if(!Pe)return new g("Invalid "+he+" `"+le+"` key `"+ne+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(oe[W],null," ")+`
83
+ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var $=Pe(ue,ne,ee,he,le+"."+ne,n);if($)return $}return null}return E(N)}function B(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(B);if(x===null||a(x))return!0;var N=f(x);if(N){var oe=N.call(x),W;if(N!==x.entries){for(;!(W=oe.next()).done;)if(!B(W.value))return!1}else for(;!(W=oe.next()).done;){var ee=W.value;if(ee&&!B(ee[1]))return!1}}else return!1;return!0;default:return!1}}function Q(x,N){return x==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function V(x){var N=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":Q(N,x)?"symbol":N}function F(x){if(typeof x>"u"||x===null)return""+x;var N=V(x);if(N==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return N}function z(x){var N=F(x);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function pe(x){return!x.constructor||!x.constructor.name?d:x.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Ko}var Yo,Au;function H0(){if(Au)return Yo;Au=1;var e=$a();function t(){}function n(){}return n.resetWarningCache=t,Yo=function(){function r(s,a,l,u,c,f){if(f!==e){var d=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 d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var o={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 o.PropTypes=o,o},Yo}var Pu;function G0(){if(Pu)return bi.exports;if(Pu=1,process.env.NODE_ENV!=="production"){var e=_d(),t=!0;bi.exports=q0()(e.isElement,t)}else bi.exports=H0()();return bi.exports}var K0=G0();const D=hr(K0);/**!
84
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
85
+ * @version 1.16.1
86
+ * @license
87
+ * Copyright (c) 2016 Federico Zivolo and contributors
88
+ *
89
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
90
+ * of this software and associated documentation files (the "Software"), to deal
91
+ * in the Software without restriction, including without limitation the rights
92
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
93
+ * copies of the Software, and to permit persons to whom the Software is
94
+ * furnished to do so, subject to the following conditions:
95
+ *
96
+ * The above copyright notice and this permission notice shall be included in all
97
+ * copies or substantial portions of the Software.
98
+ *
99
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
100
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
101
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
102
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
103
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
104
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
105
+ * SOFTWARE.
106
+ */var ei=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Y0=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ei&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Q0(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function J0(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Y0))}}var X0=ei&&window.Promise,Z0=X0?Q0:J0;function xd(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Wn(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function ja(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function ti(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Wn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:ti(ja(e))}function Ad(e){return e&&e.referenceNode?e.referenceNode:e}var Ru=ei&&!!(window.MSInputMethodContext&&document.documentMode),Mu=ei&&/MSIE 10/.test(navigator.userAgent);function Sr(e){return e===11?Ru:e===10?Mu:Ru||Mu}function ur(e){if(!e)return document.documentElement;for(var t=Sr(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&&Wn(n,"position")==="static"?ur(n):n}function eS(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||ur(e.firstElementChild)===e}function Ms(e){return e.parentNode!==null?Ms(e.parentNode):e}function qi(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,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var s=o.commonAncestorContainer;if(e!==s&&t!==s||r.contains(i))return eS(s)?s:ur(s);var a=Ms(e);return a.host?qi(a.host,t):qi(e,Ms(t).host)}function cr(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,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function tS(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=cr(t,"top"),i=cr(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function ku(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 Iu(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Sr(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Pd(e){var t=e.body,n=e.documentElement,r=Sr(10)&&getComputedStyle(n);return{height:Iu("Height",t,n,r),width:Iu("Width",t,n,r)}}var nS=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},rS=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}}(),fr=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},It=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 Tn(e){return It({},e,{right:e.left+e.width,bottom:e.top+e.height})}function ks(e){var t={};try{if(Sr(10)){t=e.getBoundingClientRect();var n=cr(e,"top"),r=cr(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},o=e.nodeName==="HTML"?Pd(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,a=o.height||e.clientHeight||i.height,l=e.offsetWidth-s,u=e.offsetHeight-a;if(l||u){var c=Wn(e);l-=ku(c,"x"),u-=ku(c,"y"),i.width-=l,i.height-=u}return Tn(i)}function Va(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Sr(10),i=t.nodeName==="HTML",o=ks(e),s=ks(t),a=ti(e),l=Wn(t),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=Tn({top:o.top-s.top-u,left:o.left-s.left-c,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!r&&i){var d=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);f.top-=u-d,f.bottom-=u-d,f.left-=c-p,f.right-=c-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(a):t===a&&a.nodeName!=="BODY")&&(f=tS(f,t)),f}function iS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=Va(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:cr(n),a=t?0:cr(n,"left"),l={top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:i,height:o};return Tn(l)}function Rd(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Wn(e,"position")==="fixed")return!0;var n=ja(e);return n?Rd(n):!1}function Md(e){if(!e||!e.parentElement||Sr())return document.documentElement;for(var t=e.parentElement;t&&Wn(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function Fa(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},s=i?Md(e):qi(e,Ad(t));if(r==="viewport")o=iS(s,i);else{var a=void 0;r==="scrollParent"?(a=ti(ja(t)),a.nodeName==="BODY"&&(a=e.ownerDocument.documentElement)):r==="window"?a=e.ownerDocument.documentElement:a=r;var l=Va(a,s,i);if(a.nodeName==="HTML"&&!Rd(s)){var u=Pd(e.ownerDocument),c=u.height,f=u.width;o.top+=l.top-l.marginTop,o.bottom=c+l.top,o.left+=l.left-l.marginLeft,o.right=f+l.left}else o=l}n=n||0;var d=typeof n=="number";return o.left+=d?n:n.left||0,o.top+=d?n:n.top||0,o.right-=d?n:n.right||0,o.bottom-=d?n:n.bottom||0,o}function oS(e){var t=e.width,n=e.height;return t*n}function kd(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var s=Fa(n,r,o,i),a={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}},l=Object.keys(a).map(function(d){return It({key:d},a[d],{area:oS(a[d])})}).sort(function(d,p){return p.area-d.area}),u=l.filter(function(d){var p=d.width,y=d.height;return p>=n.clientWidth&&y>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function Id(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?Md(t):qi(t,Ad(n));return Va(n,i,r)}function Ld(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),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function Hi(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 Nd(e,t,n){n=n.split("-")[0];var r=Ld(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[s]=t[s]+t[l]/2-r[l]/2,n===a?i[a]=t[a]-r[u]:i[a]=t[Hi(a)],i}function ni(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function sS(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=ni(e,function(i){return i[t]===n});return e.indexOf(r)}function Dd(e,t,n){var r=n===void 0?e:e.slice(0,sS(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&xd(o)&&(t.offsets.popper=Tn(t.offsets.popper),t.offsets.reference=Tn(t.offsets.reference),t=o(t,i))}),t}function aS(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Id(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=kd(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=Nd(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Dd(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function $d(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function Ba(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],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function lS(){return this.state.isDestroyed=!0,$d(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[Ba("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function jd(e){var t=e.ownerDocument;return t?t.defaultView:window}function Vd(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||Vd(ti(o.parentNode),t,n,r),r.push(o)}function uS(e,t,n,r){n.updateBound=r,jd(e).addEventListener("resize",n.updateBound,{passive:!0});var i=ti(e);return Vd(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function cS(){this.state.eventsEnabled||(this.state=uS(this.reference,this.options,this.state,this.scheduleUpdate))}function fS(e,t){return jd(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 dS(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=fS(this.reference,this.state))}function Wa(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Is(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&Wa(t[n])&&(r="px"),e.style[n]=t[n]+r})}function pS(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function hS(e){return Is(e.instance.popper,e.styles),pS(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Is(e.arrowElement,e.arrowStyles),e}function mS(e,t,n,r,i){var o=Id(i,t,e,n.positionFixed),s=kd(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),Is(t,{position:n.positionFixed?"fixed":"absolute"}),n}function yS(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,s=Math.floor,a=function(v){return v},l=o(i.width),u=o(r.width),c=["left","right"].indexOf(e.placement)!==-1,f=e.placement.indexOf("-")!==-1,d=l%2===u%2,p=l%2===1&&u%2===1,y=t?c||f||d?o:s:a,g=t?o:a;return{left:y(p&&!f&&t?r.left-1:r.left),top:g(r.top),bottom:g(r.bottom),right:y(r.right)}}var gS=ei&&/Firefox/i.test(navigator.userAgent);function vS(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=ni(e.instance.modifiers,function(T){return T.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=o!==void 0?o:t.gpuAcceleration,a=ur(e.instance.popper),l=ks(a),u={position:i.position},c=yS(e,window.devicePixelRatio<2||!gS),f=n==="bottom"?"top":"bottom",d=r==="right"?"left":"right",p=Ba("transform"),y=void 0,g=void 0;if(f==="bottom"?a.nodeName==="HTML"?g=-a.clientHeight+c.bottom:g=-l.height+c.bottom:g=c.top,d==="right"?a.nodeName==="HTML"?y=-a.clientWidth+c.right:y=-l.width+c.right:y=c.left,s&&p)u[p]="translate3d("+y+"px, "+g+"px, 0)",u[f]=0,u[d]=0,u.willChange="transform";else{var E=f==="bottom"?-1:1,v=d==="right"?-1:1;u[f]=g*E,u[d]=y*v,u.willChange=f+", "+d}var b={"x-placement":e.placement};return e.attributes=It({},b,e.attributes),e.styles=It({},u,e.styles),e.arrowStyles=It({},e.offsets.arrow,e.arrowStyles),e}function Fd(e,t,n){var r=ni(e,function(a){var l=a.name;return l===t}),i=!!r&&e.some(function(a){return a.name===n&&a.enabled&&a.order<r.order});if(!i){var o="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function bS(e,t){var n;if(!Fd(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],o=e.offsets,s=o.popper,a=o.reference,l=["left","right"].indexOf(i)!==-1,u=l?"height":"width",c=l?"Top":"Left",f=c.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",y=Ld(r)[u];a[p]-y<s[f]&&(e.offsets.popper[f]-=s[f]-(a[p]-y)),a[f]+y>s[p]&&(e.offsets.popper[f]+=a[f]+y-s[p]),e.offsets.popper=Tn(e.offsets.popper);var g=a[f]+a[u]/2-y/2,E=Wn(e.instance.popper),v=parseFloat(E["margin"+c]),b=parseFloat(E["border"+c+"Width"]),T=g-e.offsets.popper[f]-v-b;return T=Math.max(Math.min(s[u]-y,T),0),e.arrowElement=r,e.offsets.arrow=(n={},fr(n,f,Math.round(T)),fr(n,d,""),n),e}function wS(e){return e==="end"?"start":e==="start"?"end":e}var Bd=["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"],Qo=Bd.slice(3);function Lu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Qo.indexOf(e),r=Qo.slice(n+1).concat(Qo.slice(0,n));return t?r.reverse():r}var Jo={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function SS(e,t){if($d(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=Fa(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Hi(r),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case Jo.FLIP:s=[r,i];break;case Jo.CLOCKWISE:s=Lu(r);break;case Jo.COUNTERCLOCKWISE:s=Lu(r,!0);break;default:s=t.behavior}return s.forEach(function(a,l){if(r!==a||s.length===l+1)return e;r=e.placement.split("-")[0],i=Hi(r);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d=r==="left"&&f(u.right)>f(c.left)||r==="right"&&f(u.left)<f(c.right)||r==="top"&&f(u.bottom)>f(c.top)||r==="bottom"&&f(u.top)<f(c.bottom),p=f(u.left)<f(n.left),y=f(u.right)>f(n.right),g=f(u.top)<f(n.top),E=f(u.bottom)>f(n.bottom),v=r==="left"&&p||r==="right"&&y||r==="top"&&g||r==="bottom"&&E,b=["top","bottom"].indexOf(r)!==-1,T=!!t.flipVariations&&(b&&o==="start"&&p||b&&o==="end"&&y||!b&&o==="start"&&g||!b&&o==="end"&&E),R=!!t.flipVariationsByContent&&(b&&o==="start"&&y||b&&o==="end"&&p||!b&&o==="start"&&E||!b&&o==="end"&&g),S=T||R;(d||v||S)&&(e.flipped=!0,(d||v)&&(r=s[l+1]),S&&(o=wS(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=It({},e.offsets.popper,Nd(e.instance.popper,e.offsets.reference,e.placement)),e=Dd(e.instance.modifiers,e,"flip"))}),e}function ES(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,s=["top","bottom"].indexOf(i)!==-1,a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[a])&&(e.offsets.popper[l]=o(r[a])),e}function CS(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],s=i[2];if(!o)return e;if(s.indexOf("%")===0){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=r}var l=Tn(a);return l[t]/100*o}else if(s==="vh"||s==="vw"){var u=void 0;return s==="vh"?u=Math.max(document.documentElement.clientHeight,window.innerHeight||0):u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*o}else return o}function TS(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,s=e.split(/(\+|\-)/).map(function(c){return c.trim()}),a=s.indexOf(ni(s,function(c){return c.search(/,|\s/)!==-1}));s[a]&&s[a].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=a!==-1?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return u=u.map(function(c,f){var d=(f===1?!o:o)?"height":"width",p=!1;return c.reduce(function(y,g){return y[y.length-1]===""&&["+","-"].indexOf(g)!==-1?(y[y.length-1]=g,p=!0,y):p?(y[y.length-1]+=g,p=!1,y):y.concat(g)},[]).map(function(y){return CS(y,d,t,n)})}),u.forEach(function(c,f){c.forEach(function(d,p){Wa(d)&&(i[f]+=d*(c[p-1]==="-"?-1:1))})}),i}function _S(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,s=i.reference,a=r.split("-")[0],l=void 0;return Wa(+n)?l=[+n,0]:l=TS(n,o,s,a),a==="left"?(o.top+=l[0],o.left-=l[1]):a==="right"?(o.top+=l[0],o.left+=l[1]):a==="top"?(o.left+=l[0],o.top-=l[1]):a==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function OS(e,t){var n=t.boundariesElement||ur(e.instance.popper);e.instance.reference===n&&(n=ur(n));var r=Ba("transform"),i=e.instance.popper.style,o=i.top,s=i.left,a=i[r];i.top="",i.left="",i[r]="";var l=Fa(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=s,i[r]=a,t.boundaries=l;var u=t.priority,c=e.offsets.popper,f={primary:function(p){var y=c[p];return c[p]<l[p]&&!t.escapeWithReference&&(y=Math.max(c[p],l[p])),fr({},p,y)},secondary:function(p){var y=p==="right"?"left":"top",g=c[y];return c[p]>l[p]&&!t.escapeWithReference&&(g=Math.min(c[y],l[p]-(p==="right"?c.width:c.height))),fr({},y,g)}};return u.forEach(function(d){var p=["left","top"].indexOf(d)!==-1?"primary":"secondary";c=It({},c,f[p](d))}),e.offsets.popper=c,e}function xS(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,s=i.popper,a=["bottom","top"].indexOf(n)!==-1,l=a?"left":"top",u=a?"width":"height",c={start:fr({},l,o[l]),end:fr({},l,o[l]+o[u]-s[u])};e.offsets.popper=It({},s,c[r])}return e}function AS(e){if(!Fd(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=ni(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 PS(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,s=["left","right"].indexOf(n)!==-1,a=["top","left"].indexOf(n)===-1;return i[s?"left":"top"]=o[n]-(a?i[s?"width":"height"]:0),e.placement=Hi(t),e.offsets.popper=Tn(i),e}var RS={shift:{order:100,enabled:!0,fn:xS},offset:{order:200,enabled:!0,fn:_S,offset:0},preventOverflow:{order:300,enabled:!0,fn:OS,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ES},arrow:{order:500,enabled:!0,fn:bS,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:SS,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:PS},hide:{order:800,enabled:!0,fn:AS},computeStyle:{order:850,enabled:!0,fn:vS,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:hS,onLoad:mS,gpuAcceleration:void 0}},MS={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:RS},Ur=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};nS(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Z0(this.update.bind(this)),this.options=It({},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(It({},e.Defaults.modifiers,i.modifiers)).forEach(function(s){r.options.modifiers[s]=It({},e.Defaults.modifiers[s]||{},i.modifiers?i.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return It({name:s},r.options.modifiers[s])}).sort(function(s,a){return s.order-a.order}),this.modifiers.forEach(function(s){s.enabled&&xd(s.onLoad)&&s.onLoad(r.reference,r.popper,r.options,s,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return rS(e,[{key:"update",value:function(){return aS.call(this)}},{key:"destroy",value:function(){return lS.call(this)}},{key:"enableEventListeners",value:function(){return cS.call(this)}},{key:"disableEventListeners",value:function(){return dS.call(this)}}]),e}();Ur.Utils=(typeof window<"u"?window:global).PopperUtils;Ur.placements=Bd;Ur.Defaults=MS;var kS=["innerHTML","ownerDocument","style","attributes","nodeValue"],IS=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],LS=["bigint","boolean","null","number","string","symbol","undefined"];function mo(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(NS(t))return t}function Gt(e){return function(t){return mo(t)===e}}function NS(e){return IS.includes(e)}function Er(e){return function(t){return typeof t===e}}function DS(e){return LS.includes(e)}function P(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(P.array(e))return"Array";if(P.plainFunction(e))return"Function";var t=mo(e);return t||"Object"}P.array=Array.isArray;P.arrayOf=function(e,t){return!P.array(e)&&!P.function(t)?!1:e.every(function(n){return t(n)})};P.asyncGeneratorFunction=function(e){return mo(e)==="AsyncGeneratorFunction"};P.asyncFunction=Gt("AsyncFunction");P.bigint=Er("bigint");P.boolean=function(e){return e===!0||e===!1};P.date=Gt("Date");P.defined=function(e){return!P.undefined(e)};P.domElement=function(e){return P.object(e)&&!P.plainObject(e)&&e.nodeType===1&&P.string(e.nodeName)&&kS.every(function(t){return t in e})};P.empty=function(e){return P.string(e)&&e.length===0||P.array(e)&&e.length===0||P.object(e)&&!P.map(e)&&!P.set(e)&&Object.keys(e).length===0||P.set(e)&&e.size===0||P.map(e)&&e.size===0};P.error=Gt("Error");P.function=Er("function");P.generator=function(e){return P.iterable(e)&&P.function(e.next)&&P.function(e.throw)};P.generatorFunction=Gt("GeneratorFunction");P.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};P.iterable=function(e){return!P.nullOrUndefined(e)&&P.function(e[Symbol.iterator])};P.map=Gt("Map");P.nan=function(e){return Number.isNaN(e)};P.null=function(e){return e===null};P.nullOrUndefined=function(e){return P.null(e)||P.undefined(e)};P.number=function(e){return Er("number")(e)&&!P.nan(e)};P.numericString=function(e){return P.string(e)&&e.length>0&&!Number.isNaN(Number(e))};P.object=function(e){return!P.nullOrUndefined(e)&&(P.function(e)||typeof e=="object")};P.oneOf=function(e,t){return P.array(e)?e.indexOf(t)>-1:!1};P.plainFunction=Gt("Function");P.plainObject=function(e){if(mo(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};P.primitive=function(e){return P.null(e)||DS(typeof e)};P.promise=Gt("Promise");P.propertyOf=function(e,t,n){if(!P.object(e)||!t)return!1;var r=e[t];return P.function(n)?n(r):P.defined(r)};P.regexp=Gt("RegExp");P.set=Gt("Set");P.string=Er("string");P.symbol=Er("symbol");P.undefined=Er("undefined");P.weakMap=Gt("WeakMap");P.weakSet=Gt("WeakSet");function Wd(e){return function(t){return typeof t===e}}var $S=Wd("function"),jS=function(e){return e===null},Nu=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},Du=function(e){return!VS(e)&&!jS(e)&&($S(e)||typeof e=="object")},VS=Wd("undefined"),Ls=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 FS(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!dt(e[r],t[r]))return!1;return!0}function BS(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 WS(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var s=Ls(e.entries()),a=s.next();!a.done;a=s.next()){var l=a.value;if(!t.has(l[0]))return!1}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var u=Ls(e.entries()),c=u.next();!c.done;c=u.next()){var l=c.value;if(!dt(l[1],t.get(l[0])))return!1}}catch(f){i={error:f}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return!0}function US(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=Ls(e.entries()),o=i.next();!o.done;o=i.next()){var s=o.value;if(!t.has(s[0]))return!1}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function dt(e,t){if(e===t)return!0;if(e&&Du(e)&&t&&Du(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return FS(e,t);if(e instanceof Map&&t instanceof Map)return WS(e,t);if(e instanceof Set&&t instanceof Set)return US(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return BS(e,t);if(Nu(e)&&Nu(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 o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!dt(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function zS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return P.string(n)||P.array(n)||P.plainObject(n)})}function qS(e,t,n){return Ud(e,t)?[e,t].every(P.array)?!e.some(Bu(n))&&t.some(Bu(n)):[e,t].every(P.plainObject)?!Object.entries(e).some(Fu(n))&&Object.entries(t).some(Fu(n)):t===n:!1}function $u(e,t,n){var r=n.actual,i=n.key,o=n.previous,s=n.type,a=en(e,i),l=en(t,i),u=[a,l].every(P.number)&&(s==="increased"?a<l:a>l);return P.undefined(r)||(u=u&&l===r),P.undefined(o)||(u=u&&a===o),u}function ju(e,t,n){var r=n.key,i=n.type,o=n.value,s=en(e,r),a=en(t,r),l=i==="added"?s:a,u=i==="added"?a:s;if(!P.nullOrUndefined(o)){if(P.defined(l)){if(P.array(l)||P.plainObject(l))return qS(l,u,o)}else return dt(u,o);return!1}return[s,a].every(P.array)?!u.every(Ua(l)):[s,a].every(P.plainObject)?HS(Object.keys(l),Object.keys(u)):![s,a].every(function(c){return P.primitive(c)&&P.defined(c)})&&(i==="added"?!P.defined(s)&&P.defined(a):P.defined(s)&&!P.defined(a))}function Vu(e,t,n){var r=n===void 0?{}:n,i=r.key,o=en(e,i),s=en(t,i);if(!Ud(o,s))throw new TypeError("Inputs have different types");if(!zS(o,s))throw new TypeError("Inputs don't have length");return[o,s].every(P.plainObject)&&(o=Object.keys(o),s=Object.keys(s)),[o,s]}function Fu(e){return function(t){var n=t[0],r=t[1];return P.array(e)?dt(e,r)||e.some(function(i){return dt(i,r)||P.array(r)&&Ua(r)(i)}):P.plainObject(e)&&e[n]?!!e[n]&&dt(e[n],r):dt(e,r)}}function HS(e,t){return t.some(function(n){return!e.includes(n)})}function Bu(e){return function(t){return P.array(e)?e.some(function(n){return dt(n,t)||P.array(t)&&Ua(t)(n)}):dt(e,t)}}function Pr(e,t){return P.array(e)?e.some(function(n){return dt(n,t)}):dt(e,t)}function Ua(e){return function(t){return e.some(function(n){return dt(n,t)})}}function Ud(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(P.array)||e.every(P.number)||e.every(P.plainObject)||e.every(P.string)}function en(e,t){if(P.plainObject(e)||P.array(e)){if(P.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return P.number(t)?e[t]:e}return e}function GS(e,t){if([e,t].some(P.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(f){return P.plainObject(f)||P.array(f)}))throw new Error("Expected plain objects or array");var n=function(f,d){try{return ju(e,t,{key:f,type:"added",value:d})}catch{return!1}},r=function(f,d,p){try{var y=en(e,f),g=en(t,f),E=P.defined(d),v=P.defined(p);if(E||v){var b=v?Pr(p,y):!Pr(d,y),T=Pr(d,g);return b&&T}return[y,g].every(P.array)||[y,g].every(P.plainObject)?!dt(y,g):y!==g}catch{return!1}},i=function(f,d,p){if(!P.defined(f))return!1;try{var y=en(e,f),g=en(t,f),E=P.defined(p);return Pr(d,y)&&(E?Pr(p,g):!E)}catch{return!1}},o=function(f,d){return P.defined(f)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(f,d)):!1},s=function(f,d,p){if(!P.defined(f))return!1;try{return $u(e,t,{key:f,actual:d,previous:p,type:"decreased"})}catch{return!1}},a=function(f){try{var d=Vu(e,t,{key:f}),p=d[0],y=d[1];return!!p.length&&!y.length}catch{return!1}},l=function(f){try{var d=Vu(e,t,{key:f}),p=d[0],y=d[1];return!p.length&&!!y.length}catch{return!1}},u=function(f,d,p){if(!P.defined(f))return!1;try{return $u(e,t,{key:f,actual:d,previous:p,type:"increased"})}catch{return!1}},c=function(f,d){try{return ju(e,t,{key:f,type:"removed",value:d})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:s,emptied:a,filled:l,increased:u,removed:c}}function Wu(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 De(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wu(Object(n),!0).forEach(function(r){Qe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ri(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KS(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,qd(r.key),r)}}function ii(e,t,n){return t&&KS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(e,t,n){return t=qd(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oi(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&&Ns(e,t)}function Gi(e){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gi(e)}function Ns(e,t){return Ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ns(e,t)}function YS(){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 QS(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function zd(e,t){if(e==null)return{};var n=QS(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JS(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 fn(e)}function si(e){var t=YS();return function(){var r=Gi(e),i;if(t){var o=Gi(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return JS(this,i)}}function XS(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qd(e){var t=XS(e,"string");return typeof t=="symbol"?t:String(t)}var ZS={flip:{padding:20},preventOverflow:{padding:10}},eE="The typeValidator argument must be a function with the signature function(props, propName, componentName).",tE="The error message is optional, but must be a string if provided.";function nE(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function rE(e,t){return Object.hasOwnProperty.call(e,t)}function iE(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function oE(e,t){if(typeof e!="function")throw new TypeError(eE);if(t)throw new TypeError(tE)}function Uu(e,t,n){return oE(e,n),function(r,i,o){for(var s=arguments.length,a=new Array(s>3?s-3:0),l=3;l<s;l++)a[l-3]=arguments[l];return nE(t,r,i,o)?rE(r,i)?e.apply(void 0,[r,i,o].concat(a)):iE(r,i,o):e.apply(void 0,[r,i,o].concat(a))}}var Ee={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Rr=er.createPortal!==void 0;function Jt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Xo(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Si(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,s=o===void 0?!1:o,a=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(l){P.plainObject(l)&&l.key?a.apply(console,[l.key,l.value]):a.apply(console,[l])}):a.apply(console,[n]),console.groupEnd())}function sE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function aE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function lE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(s){n(s),aE(e,t,i)},sE(e,t,i,r)}function zu(){}var Hd=function(e){oi(n,e);var t=si(n);function n(){return ri(this,n),t.apply(this,arguments)}return ii(n,[{key:"componentDidMount",value:function(){Jt()&&(this.node||this.appendNode(),Rr||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Jt()&&(Rr||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Jt()||!this.node||(Rr||er.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,o=i.id,s=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),s&&(this.node.style.zIndex=s),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Jt())return null;var i=this.props,o=i.children,s=i.setRef;if(this.node||this.appendNode(),Rr)return er.createPortal(o,this.node);var a=er.unstable_renderSubtreeIntoContainer(this,o.length>1?w.createElement("div",null,o):o[0],this.node);return s(a),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,s=i.placement,a=i.target;return o?this.renderPortal():a||s==="center"?this.renderPortal():null}},{key:"render",value:function(){return Rr?this.renderReact16():null}}]),n}(w.Component);Qe(Hd,"propTypes",{children:D.oneOfType([D.element,D.array]),hasChildren:D.bool,id:D.oneOfType([D.string,D.number]),placement:D.string,setRef:D.func.isRequired,target:D.oneOfType([D.object,D.string]),zIndex:D.number});var Gd=function(e){oi(n,e);var t=si(n);function n(){return ri(this,n),t.apply(this,arguments)}return ii(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,s=i.styles,a=s.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=a):o.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=a):o.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):o.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,o=i.placement,s=i.setArrowRef,a=i.styles,l=a.arrow,u=l.color,c=l.display,f=l.length,d=l.margin,p=l.position,y=l.spread,g={display:c,position:p},E,v=y,b=f;return o.startsWith("top")?(E="0,0 ".concat(v/2,",").concat(b," ").concat(v,",0"),g.bottom=0,g.marginLeft=d,g.marginRight=d):o.startsWith("bottom")?(E="".concat(v,",").concat(b," ").concat(v/2,",0 0,").concat(b),g.top=0,g.marginLeft=d,g.marginRight=d):o.startsWith("left")?(b=y,v=f,E="0,0 ".concat(v,",").concat(b/2," 0,").concat(b),g.right=0,g.marginTop=d,g.marginBottom=d):o.startsWith("right")&&(b=y,v=f,E="".concat(v,",").concat(b," ").concat(v,",0 0,").concat(b/2),g.left=0,g.marginTop=d,g.marginBottom=d),w.createElement("div",{className:"__floater__arrow",style:this.parentStyle},w.createElement("span",{ref:s,style:g},w.createElement("svg",{width:v,height:b,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},w.createElement("polygon",{points:E,fill:u}))))}}]),n}(w.Component);Qe(Gd,"propTypes",{placement:D.string.isRequired,setArrowRef:D.func.isRequired,styles:D.object.isRequired});var uE=["color","height","width"];function Kd(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,s=zd(n,uE);return w.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},w.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},w.createElement("g",null,w.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}))))}Kd.propTypes={handleClick:D.func.isRequired,styles:D.object.isRequired};function Yd(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,s=e.showCloseButton,a=e.title,l=e.styles,u={content:w.isValidElement(t)?t:w.createElement("div",{className:"__floater__content",style:l.content},t)};return a&&(u.title=w.isValidElement(a)?a:w.createElement("div",{className:"__floater__title",style:l.title},a)),n&&(u.footer=w.isValidElement(n)?n:w.createElement("div",{className:"__floater__footer",style:l.footer},n)),(s||o)&&!P.boolean(i)&&(u.close=w.createElement(Kd,{styles:l.close,handleClick:r})),w.createElement("div",{className:"__floater__container",style:l.container},u.close,u.title,u.content,u.footer)}Yd.propTypes={content:D.node.isRequired,footer:D.node,handleClick:D.func.isRequired,open:D.bool,positionWrapper:D.bool.isRequired,showCloseButton:D.bool.isRequired,styles:D.object.isRequired,title:D.node};var Qd=function(e){oi(n,e);var t=si(n);function n(){return ri(this,n),t.apply(this,arguments)}return ii(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,s=i.component,a=i.placement,l=i.hideArrow,u=i.status,c=i.styles,f=c.arrow.length,d=c.floater,p=c.floaterCentered,y=c.floaterClosing,g=c.floaterOpening,E=c.floaterWithAnimation,v=c.floaterWithComponent,b={};return l||(a.startsWith("top")?b.padding="0 0 ".concat(f,"px"):a.startsWith("bottom")?b.padding="".concat(f,"px 0 0"):a.startsWith("left")?b.padding="0 ".concat(f,"px 0 0"):a.startsWith("right")&&(b.padding="0 0 0 ".concat(f,"px"))),[Ee.OPENING,Ee.OPEN].indexOf(u)!==-1&&(b=De(De({},b),g)),u===Ee.CLOSING&&(b=De(De({},b),y)),u===Ee.OPEN&&!o&&(b=De(De({},b),E)),a==="center"&&(b=De(De({},b),p)),s&&(b=De(De({},b),v)),De(De({},d),b)}},{key:"render",value:function(){var i=this.props,o=i.component,s=i.handleClick,a=i.hideArrow,l=i.setFloaterRef,u=i.status,c={},f=["__floater"];return o?w.isValidElement(o)?c.content=w.cloneElement(o,{closeFn:s}):c.content=o({closeFn:s}):c.content=w.createElement(Yd,this.props),u===Ee.OPEN&&f.push("__floater__open"),a||(c.arrow=w.createElement(Gd,this.props)),w.createElement("div",{ref:l,className:f.join(" "),style:this.style},w.createElement("div",{className:"__floater__body"},c.content,c.arrow))}}]),n}(w.Component);Qe(Qd,"propTypes",{component:D.oneOfType([D.func,D.element]),content:D.node,disableAnimation:D.bool.isRequired,footer:D.node,handleClick:D.func.isRequired,hideArrow:D.bool.isRequired,open:D.bool,placement:D.string.isRequired,positionWrapper:D.bool.isRequired,setArrowRef:D.func.isRequired,setFloaterRef:D.func.isRequired,showCloseButton:D.bool,status:D.string.isRequired,styles:D.object.isRequired,title:D.node});var Jd=function(e){oi(n,e);var t=si(n);function n(){return ri(this,n),t.apply(this,arguments)}return ii(n,[{key:"render",value:function(){var i=this.props,o=i.children,s=i.handleClick,a=i.handleMouseEnter,l=i.handleMouseLeave,u=i.setChildRef,c=i.setWrapperRef,f=i.style,d=i.styles,p;if(o)if(w.Children.count(o)===1)if(!w.isValidElement(o))p=w.createElement("span",null,o);else{var y=P.function(o.type)?"innerRef":"ref";p=w.cloneElement(w.Children.only(o),Qe({},y,u))}else p=o;return p?w.createElement("span",{ref:c,style:De(De({},d),f),onClick:s,onMouseEnter:a,onMouseLeave:l},p):null}}]),n}(w.Component);Qe(Jd,"propTypes",{children:D.node,handleClick:D.func.isRequired,handleMouseEnter:D.func.isRequired,handleMouseLeave:D.func.isRequired,setChildRef:D.func.isRequired,setWrapperRef:D.func.isRequired,style:D.object,styles:D.object.isRequired});var cE={zIndex:100};function fE(e){var t=Bt(cE,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 dE=["arrow","flip","offset"],pE=["position","top","right","bottom","left"],za=function(e){oi(n,e);var t=si(n);function n(r){var i;return ri(this,n),i=t.call(this,r),Qe(fn(i),"setArrowRef",function(o){i.arrowRef=o}),Qe(fn(i),"setChildRef",function(o){i.childRef=o}),Qe(fn(i),"setFloaterRef",function(o){i.floaterRef=o}),Qe(fn(i),"setWrapperRef",function(o){i.wrapperRef=o}),Qe(fn(i),"handleTransitionEnd",function(){var o=i.state.status,s=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===Ee.OPENING?Ee.OPEN:Ee.IDLE},function(){var a=i.state.status;s(a===Ee.OPEN?"open":"close",i.props)})}),Qe(fn(i),"handleClick",function(){var o=i.props,s=o.event,a=o.open;if(!P.boolean(a)){var l=i.state,u=l.positionWrapper,c=l.status;(i.event==="click"||i.event==="hover"&&u)&&(Si({title:"click",data:[{event:s,status:c===Ee.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Qe(fn(i),"handleMouseEnter",function(){var o=i.props,s=o.event,a=o.open;if(!(P.boolean(a)||Xo())){var l=i.state.status;i.event==="hover"&&l===Ee.IDLE&&(Si({title:"mouseEnter",data:[{key:"originalEvent",value:s}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Qe(fn(i),"handleMouseLeave",function(){var o=i.props,s=o.event,a=o.eventDelay,l=o.open;if(!(P.boolean(l)||Xo())){var u=i.state,c=u.status,f=u.positionWrapper;i.event==="hover"&&(Si({title:"mouseLeave",data:[{key:"originalEvent",value:s}],debug:i.debug}),a?[Ee.OPENING,Ee.OPEN].indexOf(c)!==-1&&!f&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},a*1e3)):i.toggle(Ee.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Ee.INIT,statusWrapper:Ee.INIT},i._isMounted=!1,i.hasMounted=!1,Jt()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return ii(n,[{key:"componentDidMount",value:function(){if(Jt()){var i=this.state.positionWrapper,o=this.props,s=o.children,a=o.open,l=o.target;this._isMounted=!0,Si({title:"init",data:{hasChildren:!!s,hasTarget:!!l,isControlled:P.boolean(a),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!s&&l&&P.boolean(a)}}},{key:"componentDidUpdate",value:function(i,o){if(Jt()){var s=this.props,a=s.autoOpen,l=s.open,u=s.target,c=s.wrapperOptions,f=GS(o,this.state),d=f.changedFrom,p=f.changed;if(i.open!==l){var y;P.boolean(l)&&(y=l?Ee.OPENING:Ee.CLOSING),this.toggle(y)}(i.wrapperOptions.position!==c.position||i.target!==u)&&this.changeWrapperPosition(this.props),p("status",Ee.IDLE)&&l?this.toggle(Ee.OPEN):d("status",Ee.INIT,Ee.IDLE)&&a&&this.toggle(Ee.OPEN),this.popper&&p("status",Ee.OPENING)&&this.popper.instance.update(),this.floaterRef&&(p("status",Ee.OPENING)||p("status",Ee.CLOSING))&&lE(this.floaterRef,"transitionend",this.handleTransitionEnd),p("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Jt()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,s=this.state.positionWrapper,a=this.props,l=a.disableFlip,u=a.getPopper,c=a.hideArrow,f=a.offset,d=a.placement,p=a.wrapperOptions,y=d==="top"||d==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(d==="center")this.setState({status:Ee.IDLE});else if(o&&this.floaterRef){var g=this.options,E=g.arrow,v=g.flip,b=g.offset,T=zd(g,dE);new Ur(o,this.floaterRef,{placement:d,modifiers:De({arrow:De({enabled:!c,element:this.arrowRef},E),flip:De({enabled:!l,behavior:y},v),offset:De({offset:"0, ".concat(f,"px")},b)},T),onCreate:function(O){var M;if(i.popper=O,!((M=i.floaterRef)!==null&&M!==void 0&&M.isConnected)){i.setState({needsUpdate:!0});return}u(O,"floater"),i._isMounted&&i.setState({currentPlacement:O.placement,status:Ee.IDLE}),d!==O.placement&&setTimeout(function(){O.instance.update()},1)},onUpdate:function(O){i.popper=O;var M=i.state.currentPlacement;i._isMounted&&O.placement!==M&&i.setState({currentPlacement:O.placement})}})}if(s){var R=P.undefined(p.offset)?0:p.offset;new Ur(this.target,this.wrapperRef,{placement:p.placement||d,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(R,"px")},flip:{enabled:!1}},onCreate:function(O){i.wrapperPopper=O,i._isMounted&&i.setState({statusWrapper:Ee.IDLE}),u(O,"wrapper"),d!==O.placement&&setTimeout(function(){O.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,s=i.wrapperOptions;this.setState({positionWrapper:s.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,s=o===Ee.OPEN?Ee.CLOSING:Ee.OPENING;P.undefined(i)||(s=i),this.setState({status:s})}},{key:"debug",get:function(){var i=this.props.debug;return i||Jt()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,s=i.event;return s==="hover"&&Xo()&&!o?"click":s}},{key:"options",get:function(){var i=this.props.options;return Bt(ZS,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,s=o.status,a=o.positionWrapper,l=o.statusWrapper,u=this.props.styles,c=Bt(fE(u),u);if(a){var f;[Ee.IDLE].indexOf(s)===-1||[Ee.IDLE].indexOf(l)===-1?f=c.wrapperPosition:f=this.wrapperPopper.styles,c.wrapper=De(De({},c.wrapper),f)}if(this.target){var d=window.getComputedStyle(this.target);this.wrapperStyles?c.wrapper=De(De({},c.wrapper),this.wrapperStyles):["relative","static"].indexOf(d.position)===-1&&(this.wrapperStyles={},a||(pE.forEach(function(p){i.wrapperStyles[p]=d[p]}),c.wrapper=De(De({},c.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 c}},{key:"target",get:function(){if(!Jt())return null;var i=this.props.target;return i?P.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,s=i.positionWrapper,a=i.status,l=this.props,u=l.children,c=l.component,f=l.content,d=l.disableAnimation,p=l.footer,y=l.hideArrow,g=l.id,E=l.open,v=l.showCloseButton,b=l.style,T=l.target,R=l.title,S=w.createElement(Jd,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:b,styles:this.styles.wrapper},u),O={};return s?O.wrapperInPortal=S:O.wrapperAsChildren=S,w.createElement("span",null,w.createElement(Hd,{hasChildren:!!u,id:g,placement:o,setRef:this.setFloaterRef,target:T,zIndex:this.styles.options.zIndex},w.createElement(Qd,{component:c,content:f,disableAnimation:d,footer:p,handleClick:this.handleClick,hideArrow:y||o==="center",open:E,placement:o,positionWrapper:s,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:v,status:a,styles:this.styles,title:R}),O.wrapperInPortal),O.wrapperAsChildren)}}]),n}(w.Component);Qe(za,"propTypes",{autoOpen:D.bool,callback:D.func,children:D.node,component:Uu(D.oneOfType([D.func,D.element]),function(e){return!e.content}),content:Uu(D.node,function(e){return!e.component}),debug:D.bool,disableAnimation:D.bool,disableFlip:D.bool,disableHoverToClick:D.bool,event:D.oneOf(["hover","click"]),eventDelay:D.number,footer:D.node,getPopper:D.func,hideArrow:D.bool,id:D.oneOfType([D.string,D.number]),offset:D.number,open:D.bool,options:D.object,placement:D.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:D.bool,style:D.object,styles:D.object,target:D.oneOfType([D.object,D.string]),title:D.node,wrapperOptions:D.shape({offset:D.number,placement:D.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:D.bool})});Qe(za,"defaultProps",{autoOpen:!1,callback:zu,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:zu,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var hE=Object.defineProperty,mE=(e,t,n)=>t in e?hE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t,n)=>mE(e,typeof t!="symbol"?t+"":t,n),Te={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},kt={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",ERROR:"error"},me={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Se={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function yn(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function Xd(e){return e?e.getBoundingClientRect():null}function yE(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((o,s)=>o-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 dn(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 gE(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function zr(e,t,n){if(!e)return Mn();const r=Td(e);if(r){if(r.isSameNode(Mn()))return n?document:Mn();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Mn()}return r}function ai(e,t){if(!e)return!1;const n=zr(e,t);return n?!n.isSameNode(Mn()):!1}function vE(e){return e.offsetParent!==document.body}function dr(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=gE(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?dr(e.parentNode,t):!1}function bE(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 wE(e,t,n){var r,i,o;const s=Xd(e),a=zr(e,n),l=ai(e,n),u=dr(e);let c=0,f=(r=s==null?void 0:s.top)!=null?r:0;if(l&&u){const d=(i=e==null?void 0:e.offsetTop)!=null?i:0,p=(o=a==null?void 0:a.scrollTop)!=null?o:0;f=d-p}else a instanceof HTMLElement&&(c=a.scrollTop,!l&&!dr(e)&&(f+=c),a.isSameNode(Mn())||(f+=Mn().scrollTop));return Math.floor(f-t)}function SE(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=Td(e))!=null?r:{};let s=e.getBoundingClientRect().top+o;i&&(ai(e,n)||vE(e))&&(s-=i);const a=Math.floor(s-t);return a<0?0:a}function Mn(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function EE(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:s}=r,a=e>s?e-s:s-e;I0.top(r,e,{duration:a<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?o(l):i())})}var Mr=er.createPortal!==void 0;function Zd(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 xi(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Xt(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=vu(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(w.isValidElement(e)&&!Object.values(e.props).length&&xi(e.type)==="function"){const s=e.type({});o=Xt(s,t)}else o=vu(n);return o}function CE(e,t){return!G.plainObject(e)||!G.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function TE(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,s,a)=>o+o+s+s+a+a),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 qu(e){return e.disableBeacon||e.placement==="center"}function Hu(){return!["chrome","safari","firefox","opera"].includes(Zd())}function _n({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(o=>{G.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function _E(e){return Object.keys(e)}function ep(e,...t){if(!G.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 OE(e,...t){if(!G.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 Ds(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(xi(e)==="string")return r(e);if(!w.isValidElement(e))return e;const{children:i}=e.props;if(xi(i)==="string"&&i.includes("{step}"))return w.cloneElement(e,{children:r(i)});if(Array.isArray(i))return w.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):Ds(o,t,n))});if(xi(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return Ds(o,t,n)}return e}function xE(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:s}=e;return!o.disableScrolling&&(!t||i||n===me.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!dr(s))&&r!==n&&[me.BEACON,me.TOOLTIP].includes(n)}var AE={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},tp={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},PE={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:tp,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},RE={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:[]},ME={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},kr={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},Gu={borderRadius:4,position:"absolute"};function kE(e,t){var n,r,i,o,s;const{floaterProps:a,styles:l}=e,u=Bt((n=t.floaterProps)!=null?n:{},a??{}),c=Bt(l??{},(r=t.styles)!=null?r:{}),f=Bt(ME,c.options||{}),d=t.placement==="center"||t.disableBeacon;let{width:p}=f;window.innerWidth>480&&(p=380),"width"in f&&(p=typeof f.width=="number"&&window.innerWidth<f.width?window.innerWidth-30:f.width);const y={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:f.zIndex},g={beacon:{...kr,display:d?"none":"inline-block",height:f.beaconSize,position:"relative",width:f.beaconSize,zIndex:f.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:f.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(${TE(f.primaryColor).join(",")}, 0.2)`,border:`2px solid ${f.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:f.backgroundColor,borderRadius:5,boxSizing:"border-box",color:f.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:p},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:{...kr,backgroundColor:f.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...kr,color:f.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...kr,color:f.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...kr,color:f.textColor,fontSize:14},overlay:{...y,backgroundColor:f.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...y},overlayLegacyCenter:{...y,backgroundColor:f.overlayColor},spotlight:{...Gu,backgroundColor:"gray"},spotlightLegacy:{...Gu,boxShadow:`0 0 0 9999px ${f.overlayColor}, ${f.spotlightShadow}`},floaterStyles:{arrow:{color:(s=(o=(i=u==null?void 0:u.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?s:f.arrowColor},options:{zIndex:f.zIndex+100}},options:f};return Bt(g,c)}function IE(e){return OE(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Yn(e,t){var n,r,i,o,s,a;const l=t??{},u=Bt.all([PE,IE(e),l],{isMergeableObject:G.plainObject}),c=kE(e,u),f=ai(dn(u.target),u.disableScrollParentFix),d=Bt.all([AE,(n=e.floaterProps)!=null?n:{},(r=u.floaterProps)!=null?r:{}]);return d.offset=u.offset,d.styles=Bt((i=d.styles)!=null?i:{},c.floaterStyles),d.offset+=(s=(o=e.spotlightPadding)!=null?o:u.spotlightPadding)!=null?s:0,u.placementBeacon&&d.wrapperOptions&&(d.wrapperOptions.placement=u.placementBeacon),f&&d.options.preventOverflow&&(d.options.preventOverflow.boundariesElement="window"),{...u,locale:Bt.all([tp,(a=e.locale)!=null?a:{},u.locale||{}]),floaterProps:d,styles:ep(c,"floaterStyles")}}function np(e,t=!1){return G.plainObject(e)?e.target?!0:(_n({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(_n({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Ku(e,t=!1){return G.array(e)?e.every(n=>np(n,t)):(_n({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var rp={action:"init",controlled:!1,index:0,lifecycle:me.INIT,origin:null,size:0,status:Se.IDLE},Yu=_E(ep(rp,"controlled","size")),LE=class{constructor(e){Y(this,"beaconPopper"),Y(this,"tooltipPopper"),Y(this,"data",new Map),Y(this,"listener"),Y(this,"store",new Map),Y(this,"addListener",i=>{this.listener=i}),Y(this,"setSteps",i=>{const{size:o,status:s}=this.getState(),a={size:i.length,status:s};this.data.set("steps",i),s===Se.WAITING&&!o&&i.length&&(a.status=Se.RUNNING),this.setState(a)}),Y(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),Y(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),Y(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),Y(this,"close",(i=null)=>{const{index:o,status:s}=this.getState();s===Se.RUNNING&&this.setState({...this.getNextState({action:Te.CLOSE,index:o+1,origin:i})})}),Y(this,"go",i=>{const{controlled:o,status:s}=this.getState();if(o||s!==Se.RUNNING)return;const a=this.getSteps()[i];this.setState({...this.getNextState({action:Te.GO,index:i}),status:a?s:Se.FINISHED})}),Y(this,"info",()=>this.getState()),Y(this,"next",()=>{const{index:i,status:o}=this.getState();o===Se.RUNNING&&this.setState(this.getNextState({action:Te.NEXT,index:i+1}))}),Y(this,"open",()=>{const{status:i}=this.getState();i===Se.RUNNING&&this.setState({...this.getNextState({action:Te.UPDATE,lifecycle:me.TOOLTIP})})}),Y(this,"prev",()=>{const{index:i,status:o}=this.getState();o===Se.RUNNING&&this.setState({...this.getNextState({action:Te.PREV,index:i-1})})}),Y(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:Te.RESET,index:0}),status:i?Se.RUNNING:Se.READY})}),Y(this,"skip",()=>{const{status:i}=this.getState();i===Se.RUNNING&&this.setState({action:Te.SKIP,lifecycle:me.INIT,status:Se.SKIPPED})}),Y(this,"start",i=>{const{index:o,size:s}=this.getState();this.setState({...this.getNextState({action:Te.START,index:G.number(i)?i:o},!0),status:s?Se.RUNNING:Se.WAITING})}),Y(this,"stop",(i=!1)=>{const{index:o,status:s}=this.getState();[Se.FINISHED,Se.SKIPPED].includes(s)||this.setState({...this.getNextState({action:Te.STOP,index:o+(i?1:0)}),status:Se.PAUSED})}),Y(this,"update",i=>{var o,s;if(!CE(i,Yu))throw new Error(`State is not valid. Valid keys: ${Yu.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:Te.UPDATE,origin:(s=i.origin)!=null?s:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:Te.INIT,controlled:G.number(n),continuous:t,index:G.number(n)?n:0,lifecycle:me.INIT,origin:null,status:r.length?Se.READY:Se.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")||""}:{...rp}}getNextState(e,t=!1){var n,r,i,o,s;const{action:a,controlled:l,index:u,size:c,status:f}=this.getState(),d=G.number(e.index)?e.index:u,p=l&&!t?u:Math.min(Math.max(d,0),c);return{action:(n=e.action)!=null?n:a,controlled:l,index:p,lifecycle:(r=e.lifecycle)!=null?r:me.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:c,status:p===c?Se.FINISHED:(s=e.status)!=null?s:f}}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:o,origin:s=null,size:a,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",s),this.store.set("size",a),this.store.set("status",l),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 NE(e){return new LE(e)}function DE({styles:e}){return ie.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var $E=DE,jE=class extends ie.Component{constructor(){super(...arguments),Y(this,"isActive",!1),Y(this,"resizeTimeout"),Y(this,"scrollTimeout"),Y(this,"scrollParent"),Y(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Y(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[me.INIT,me.BEACON,me.COMPLETE,me.ERROR];return t||(e?r.includes(n):n!==me.TOOLTIP)}),Y(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:s}=this.spotlightStyles,a=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,u=a>=o&&a<=o+n,f=l>=r&&l<=r+s&&u;f!==t&&this.updateState({mouseOverSpotlight:f})}),Y(this,"handleScroll",()=>{const{target:e}=this.props,t=dn(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 dr(t,"sticky")&&this.updateState({})}),Y(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=dn(r);this.scrollParent=zr(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&ai(i,!0)&&_n({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:o}=this.props,{changed:s}=zi(e,this.props);if(s("target")||s("disableScrollParentFix")){const a=dn(o);this.scrollParent=zr(a??document.body,n,!0)}s("lifecycle",me.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:a}=this.state;a||this.updateState({showSpotlight:!0})},100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(i&&r===me.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==me.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 Hu()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:yE(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:s=0,styles:a,target:l}=this.props,u=dn(l),c=Xd(u),f=dr(u),d=wE(u,s,i);return{...Hu()?a.spotlightLegacy:a.spotlight,height:Math.round(((e=c==null?void 0:c.height)!=null?e:0)+s*2),left:Math.round(((t=c==null?void 0:c.left)!=null?t:0)-s),opacity:r?1:0,pointerEvents:o?"none":"auto",position:f?"fixed":"absolute",top:d,transition:"opacity 0.2s",width:Math.round(((n=c==null?void 0:c.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:o}=this;if(r())return null;let s=n!=="center"&&e&&ie.createElement($E,{styles:o});if(Zd()==="safari"){const{mixBlendMode:a,zIndex:l,...u}=i;s=ie.createElement("div",{style:{...u}},s),delete i.backgroundColor}return ie.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},s)}},VE=class extends ie.Component{constructor(){super(...arguments),Y(this,"node",null)}componentDidMount(){const{id:e}=this.props;yn()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Mr||this.renderReact15())}componentDidUpdate(){yn()&&(Mr||this.renderReact15())}componentWillUnmount(){!yn()||!this.node||(Mr||Ei.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!yn())return;const{children:e}=this.props;this.node&&Ei.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!yn()||!Mr)return null;const{children:e}=this.props;return this.node?Ei.createPortal(e,this.node):null}render(){return Mr?this.renderReact16():null}},FE=class{constructor(e,t){if(Y(this,"element"),Y(this,"options"),Y(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),Y(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)}),Y(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),Y(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),Y(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),Y(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"}),Y(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}),Y(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),Y(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),Y(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()}},BE=class extends ie.Component{constructor(e){if(super(e),Y(this,"beacon",null),Y(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(`
107
+ @keyframes joyride-beacon-inner {
108
+ 20% {
109
+ opacity: 0.9;
110
+ }
111
+
112
+ 90% {
113
+ opacity: 0.7;
114
+ }
115
+ }
116
+
117
+ @keyframes joyride-beacon-outer {
118
+ 0% {
119
+ transform: scale(1);
120
+ }
121
+
122
+ 45% {
123
+ opacity: 0.7;
124
+ transform: scale(0.75);
125
+ }
126
+
127
+ 100% {
128
+ opacity: 0.9;
129
+ transform: scale(1);
130
+ }
131
+ }
132
+ `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(G.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{G.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:o,size:s,step:a,styles:l}=this.props,u=Xt(i.open),c={"aria-label":u,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:u};let f;if(e){const d=e;f=ie.createElement(d,{continuous:t,index:n,isLastStep:r,size:s,step:a,...c})}else f=ie.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...c},ie.createElement("span",{style:l.beaconInner}),ie.createElement("span",{style:l.beaconOuter}));return f}};function WE({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return w.createElement("button",{style:o,type:"button",...t},w.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"},w.createElement("g",null,w.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 UE=WE;function zE(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:s,step:a,tooltipProps:l}=e,{content:u,hideBackButton:c,hideCloseButton:f,hideFooter:d,showSkipButton:p,styles:y,title:g}=a,E={};return E.primary=ie.createElement("button",{"data-test-id":"button-primary",style:y.buttonNext,type:"button",...o}),p&&!i&&(E.skip=ie.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:y.buttonSkip,type:"button",...s})),!c&&r>0&&(E.back=ie.createElement("button",{"data-test-id":"button-back",style:y.buttonBack,type:"button",...t})),E.close=!f&&ie.createElement(UE,{"data-test-id":"button-close",styles:y.buttonClose,...n}),ie.createElement("div",{key:"JoyrideTooltip","aria-label":Xt(g??u),className:"react-joyride__tooltip",style:y.tooltip,...l},ie.createElement("div",{style:y.tooltipContainer},g&&ie.createElement("h1",{"aria-label":Xt(g),style:y.tooltipTitle},g),ie.createElement("div",{style:y.tooltipContent},u)),!d&&ie.createElement("div",{style:y.tooltipFooter},ie.createElement("div",{style:y.tooltipFooterSpacer},E.skip),E.back,E.primary),E.close)}var qE=zE,HE=class extends ie.Component{constructor(){super(...arguments),Y(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Y(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Y(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Y(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Y(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:s,close:a,last:l,next:u,nextLabelWithProgress:c,skip:f}=o.locale,d=Xt(s),p=Xt(a),y=Xt(l),g=Xt(u),E=Xt(f);let v=a,b=p;if(e){if(v=u,b=g,o.showProgress&&!n){const T=Xt(c,{step:t+1,steps:i});v=Ds(c,t+1,i),b=T}n&&(v=l,b=y)}return{backProps:{"aria-label":d,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:d},closeProps:{"aria-label":p,children:a,"data-action":"close",onClick:this.handleClickClose,role:"button",title:p},primaryProps:{"aria-label":b,children:v,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:b},skipProps:{"aria-label":E,children:f,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:E},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:s,tooltipComponent:a,...l}=o;let u;if(a){const c={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},f=a;u=ie.createElement(f,{...c})}else u=ie.createElement(qE,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return u}},GE=class extends ie.Component{constructor(){super(...arguments),Y(this,"scope",null),Y(this,"tooltip",null),Y(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:me.TOOLTIP})}),Y(this,"setTooltipRef",e=>{this.tooltip=e}),Y(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:s}=this.props;t==="wrapper"?s.setPopper("beacon",e):s.setPopper("tooltip",e),s.getPopper("beacon")&&(s.getPopper("tooltip")||o.placement==="center")&&i===me.INIT&&s.update({action:r,lifecycle:me.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Y(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return ie.createElement(HE,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;_n({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:s,helpers:a,index:l,lifecycle:u,shouldScroll:c,status:f,step:d,store:p}=this.props,{changed:y,changedFrom:g}=zi(e,this.props),E=a.info(),v=i&&n!==Te.CLOSE&&(l>0||n===Te.PREV),b=y("action")||y("index")||y("lifecycle")||y("status"),T=g("lifecycle",[me.TOOLTIP,me.INIT],me.INIT),R=y("action",[Te.NEXT,Te.PREV,Te.SKIP,Te.CLOSE]),S=o&&l===e.index;if(R&&(T||S)&&r({...E,index:e.index,lifecycle:me.COMPLETE,step:e.step,type:kt.STEP_AFTER}),d.placement==="center"&&f===Se.RUNNING&&y("index")&&n!==Te.START&&u===me.INIT&&p.update({lifecycle:me.READY}),b){const O=dn(d.target),M=!!O;M&&bE(O)?(g("status",Se.READY,Se.RUNNING)||g("lifecycle",me.INIT,me.READY))&&r({...E,step:d,type:kt.STEP_BEFORE}):(console.warn(M?"Target not visible":"Target not mounted",d),r({...E,type:kt.TARGET_NOT_FOUND,step:d}),o||p.update({index:l+(n===Te.PREV?-1:1)}))}g("lifecycle",me.INIT,me.READY)&&p.update({lifecycle:qu(d)||v?me.TOOLTIP:me.BEACON}),y("index")&&_n({title:`step:${u}`,data:[{key:"props",value:this.props}],debug:s}),y("lifecycle",me.BEACON)&&r({...E,step:d,type:kt.BEACON}),y("lifecycle",me.TOOLTIP)&&(r({...E,step:d,type:kt.TOOLTIP}),c&&this.tooltip&&(this.scope=new FE(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),g("lifecycle",[me.TOOLTIP,me.INIT],me.INIT)&&((t=this.scope)==null||t.removeScope(),p.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return qu(t)||e===me.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:s}=this.props,a=dn(s.target);return!np(s)||!G.domElement(a)?null:ie.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},ie.createElement(za,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},ie.createElement(BE,{beaconComponent:s.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:s.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:s,styles:s.styles})))}},ip=class extends ie.Component{constructor(e){super(e),Y(this,"helpers"),Y(this,"store"),Y(this,"callback",s=>{const{callback:a}=this.props;G.function(a)&&a(s)}),Y(this,"handleKeyboard",s=>{const{index:a,lifecycle:l}=this.state,{steps:u}=this.props,c=u[a];l===me.TOOLTIP&&s.code==="Escape"&&c&&!c.disableCloseOnEsc&&this.store.close("keyboard")}),Y(this,"handleClickOverlay",()=>{const{index:s}=this.state,{steps:a}=this.props;Yn(this.props,a[s]).disableOverlayClose||this.helpers.close("overlay")}),Y(this,"syncState",s=>{this.setState(s)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=NE({...e,controlled:r&&G.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;_n({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!yn())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;Ku(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!yn())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:s,run:a,stepIndex:l,steps:u}=this.props,{stepIndex:c,steps:f}=e,{reset:d,setSteps:p,start:y,stop:g,update:E}=this.store,{changed:v}=zi(e,this.props),{changed:b,changedFrom:T}=zi(t,this.state),R=Yn(this.props,u[i]),S=!at(f,u),O=G.number(l)&&v("stepIndex"),M=dn(R.target);if(S&&(Ku(u,s)?p(u):console.warn("Steps are not valid",u)),v("run")&&(a?y(l):g()),O){let U=G.number(c)&&c<l?Te.NEXT:Te.PREV;n===Te.STOP&&(U=Te.START),[Se.FINISHED,Se.SKIPPED].includes(o)||E({action:n===Te.CLOSE?Te.CLOSE:U,index:l,lifecycle:me.INIT})}!r&&o===Se.RUNNING&&i===0&&!M&&(this.store.update({index:i+1}),this.callback({...this.state,type:kt.TARGET_NOT_FOUND,step:R}));const L={...this.state,index:i,step:R};if(b("action",[Te.NEXT,Te.PREV,Te.SKIP,Te.CLOSE])&&b("status",Se.PAUSED)){const U=Yn(this.props,u[t.index]);this.callback({...L,index:t.index,lifecycle:me.COMPLETE,step:U,type:kt.STEP_AFTER})}if(b("status",[Se.FINISHED,Se.SKIPPED])){const U=Yn(this.props,u[t.index]);r||this.callback({...L,index:t.index,lifecycle:me.COMPLETE,step:U,type:kt.STEP_AFTER}),this.callback({...L,type:kt.TOUR_END,step:U,index:t.index}),d()}else T("status",[Se.IDLE,Se.READY],Se.RUNNING)?this.callback({...L,type:kt.TOUR_START}):(b("status")||b("action",Te.RESET))&&this.callback({...L,type:kt.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:o=!1,scrollDuration:s,scrollOffset:a=20,scrollToFirstStep:l=!1,steps:u}=this.props,c=Yn(this.props,u[t]),f=dn(c.target),d=xE({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:c,target:f});if(r===Se.RUNNING&&d){const p=ai(f,o),y=zr(f,o);let g=Math.floor(SE(f,a,o))||0;_n({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const E=this.store.getPopper("beacon"),v=this.store.getPopper("tooltip");if(n===me.BEACON&&E){const{offsets:b,placement:T}=E;!["bottom"].includes(T)&&!p&&(g=Math.floor(b.popper.top-a))}else if(n===me.TOOLTIP&&v){const{flipped:b,offsets:T,placement:R}=v;["top","right","left"].includes(R)&&!b&&!p?g=Math.floor(T.popper.top-a):g-=c.spotlightPadding}g=g>=0?g:0,r===Se.RUNNING&&EE(g,{element:y,duration:s}).then(()=>{setTimeout(()=>{var b;(b=this.store.getPopper("tooltip"))==null||b.instance.update()},10)})}}render(){if(!yn())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:s=!1,steps:a}=this.props,l=n===Se.RUNNING,u={};if(l&&a[e]){const c=Yn(this.props,a[e]);u.step=ie.createElement(GE,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!c.disableScrolling&&(e!==0||s),step:c,store:this.store}),u.overlay=ie.createElement(VE,{id:"react-joyride-portal"},ie.createElement(jE,{...c,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return ie.createElement("div",{className:"react-joyride"},u.step,u.overlay)}};Y(ip,"defaultProps",RE);var KE=ip;exports.ACTIONS=Te;exports.AdvancedImage=zy;exports.Cloudinary=Vg;exports.EVENTS=kt;exports.LazyMotion=h0;exports.M=oh;exports.M$1=Ft;exports.R=jn;exports.STATUS=Se;exports.autoUpdate=lc;exports.components_default=KE;exports.domAnimation=m0;exports.ee=mc;exports.flip=Gp;exports.lazyload=dy;exports.m=p0;exports.offset=Hp;exports.placeholder=yy;exports.q=Us;exports.useFloating=qp;