@fluidattacks/design 3.15.7 → 3.15.8-pr

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 (154) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/alert/index.js +1 -1
  5. package/dist/components/avatar/index.js +1 -1
  6. package/dist/components/button/index.js +1 -1
  7. package/dist/components/card/card-header/index.js +1 -1
  8. package/dist/components/card/card-with-image/index.js +1 -1
  9. package/dist/components/card/card-with-input/index.js +1 -1
  10. package/dist/components/card/card-with-options/index.js +1 -1
  11. package/dist/components/card/card-with-selector/index.js +1 -1
  12. package/dist/components/card/card-with-switch/index.js +1 -1
  13. package/dist/components/card/index.js +1 -1
  14. package/dist/components/carousel/index.js +1 -1
  15. package/dist/components/checkbox/index.js +1 -1
  16. package/dist/components/cloud-image/index.js +1 -1
  17. package/dist/components/code-snippet/index.js +1 -1
  18. package/dist/components/code-snippet/location-code/index.js +1 -1
  19. package/dist/components/colors/index.js +1 -1
  20. package/dist/components/confirm-dialog/index.js +1 -1
  21. package/dist/components/container/index.js +1 -1
  22. package/dist/components/divider/index.js +1 -1
  23. package/dist/components/empty-state/empty-button/index.js +1 -1
  24. package/dist/components/empty-state/index.js +1 -1
  25. package/dist/components/file-preview/index.js +1 -1
  26. package/dist/components/form/index.d.ts +2 -2
  27. package/dist/components/form/index.js +1 -1
  28. package/dist/components/form/inner-form/index.js +1 -1
  29. package/dist/components/grid-container/index.js +1 -1
  30. package/dist/components/group-selector/index.js +1 -1
  31. package/dist/components/group-selector/option-container/index.js +1 -1
  32. package/dist/components/icon/index.js +1 -1
  33. package/dist/components/icon-button/index.js +1 -1
  34. package/dist/components/indicator-card/index.js +1 -1
  35. package/dist/components/info-sidebar/index.js +1 -1
  36. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  37. package/dist/components/inputs/fields/combobox/index.js +1 -1
  38. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  39. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  40. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  41. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  42. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  43. package/dist/components/inputs/fields/date/index.js +1 -1
  44. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  45. package/dist/components/inputs/fields/date-range/index.js +1 -1
  46. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  47. package/dist/components/inputs/fields/date-time/index.js +1 -1
  48. package/dist/components/inputs/fields/editable/index.js +1 -1
  49. package/dist/components/inputs/fields/input/index.d.ts +1 -1
  50. package/dist/components/inputs/fields/input/index.js +1 -1
  51. package/dist/components/inputs/fields/input-array/field/index.d.ts +2 -0
  52. package/dist/components/inputs/fields/input-array/field/index.js +1 -0
  53. package/dist/components/inputs/fields/input-array/index.d.ts +3 -0
  54. package/dist/components/inputs/fields/input-array/index.js +1 -0
  55. package/dist/components/inputs/fields/input-array/index.stories.d.ts +6 -0
  56. package/dist/components/inputs/fields/input-file/index.js +1 -1
  57. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  58. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  59. package/dist/components/inputs/fields/number/index.js +1 -1
  60. package/dist/components/inputs/fields/number-range/index.js +1 -1
  61. package/dist/components/inputs/fields/phone/index.js +1 -1
  62. package/dist/components/inputs/fields/text-area/index.js +1 -1
  63. package/dist/components/inputs/index.d.ts +2 -1
  64. package/dist/components/inputs/index.js +1 -1
  65. package/dist/components/inputs/label/index.js +1 -1
  66. package/dist/components/inputs/outline-container/index.js +1 -1
  67. package/dist/components/inputs/types.d.ts +41 -2
  68. package/dist/components/inputs/utils/action-button/index.js +1 -1
  69. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  70. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  71. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  72. package/dist/components/inputs/utils/dialog/index.js +1 -1
  73. package/dist/components/inputs/utils/number-field/index.js +1 -1
  74. package/dist/components/inputs/utils/popover/index.js +1 -1
  75. package/dist/components/layout/categories/buttons/index.js +1 -1
  76. package/dist/components/layout/categories/column/index.js +1 -1
  77. package/dist/components/layout/categories/gap/index.js +1 -1
  78. package/dist/components/layout/categories/row/index.js +1 -1
  79. package/dist/components/layout/index.js +1 -1
  80. package/dist/components/link/index.js +1 -1
  81. package/dist/components/list-item/index.js +1 -1
  82. package/dist/components/little-flag/index.js +1 -1
  83. package/dist/components/loading/index.js +1 -1
  84. package/dist/components/logo/index.js +1 -1
  85. package/dist/components/lottie/index.js +1 -1
  86. package/dist/components/menu/index.js +1 -1
  87. package/dist/components/message-banner/index.js +1 -1
  88. package/dist/components/modal/columns-modal/index.js +1 -1
  89. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  90. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  91. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  92. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  93. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  94. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  95. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  96. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  97. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  98. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  99. package/dist/components/modal/filters-modal/index.js +1 -1
  100. package/dist/components/modal/footer/index.js +1 -1
  101. package/dist/components/modal/header/index.js +1 -1
  102. package/dist/components/modal/index.js +1 -1
  103. package/dist/components/modal/modal-confirm/index.js +1 -1
  104. package/dist/components/notification/index.js +1 -1
  105. package/dist/components/notification-sign/index.js +1 -1
  106. package/dist/components/number-input/index.js +1 -1
  107. package/dist/components/oauth-selector/index.js +1 -1
  108. package/dist/components/oauth-selector/option-container/index.js +1 -1
  109. package/dist/components/plan-card/index.js +1 -1
  110. package/dist/components/plan-card/recommended-tag/index.js +1 -1
  111. package/dist/components/pop-up/description/index.js +1 -1
  112. package/dist/components/pop-up/index.js +1 -1
  113. package/dist/components/premium-feature/index.js +1 -1
  114. package/dist/components/priority-score/index.js +1 -1
  115. package/dist/components/progress-bar/index.js +1 -1
  116. package/dist/components/radio-button/index.js +1 -1
  117. package/dist/components/scroll-button/index.js +1 -1
  118. package/dist/components/search/index.js +1 -1
  119. package/dist/components/severity-badge/index.js +1 -1
  120. package/dist/components/severity-overview/badge/index.js +1 -1
  121. package/dist/components/severity-overview/index.js +1 -1
  122. package/dist/components/show-on-hover/index.js +1 -1
  123. package/dist/components/slide-out-menu/index.js +1 -1
  124. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  125. package/dist/components/slider/index.js +1 -1
  126. package/dist/components/slider/thumb/index.js +1 -1
  127. package/dist/components/step-lapse/index.js +1 -1
  128. package/dist/components/table-button/index.js +1 -1
  129. package/dist/components/tabs/fixed-tabs/index.js +1 -1
  130. package/dist/components/tabs/index.js +1 -1
  131. package/dist/components/tabs/tab/index.js +1 -1
  132. package/dist/components/tag/index.js +1 -1
  133. package/dist/components/timeline/card/index.d.ts +1 -1
  134. package/dist/components/timeline/card/index.js +1 -1
  135. package/dist/components/timeline/index.js +1 -1
  136. package/dist/components/timeline/styles.d.ts +2 -7
  137. package/dist/components/timeline/types.d.ts +1 -4
  138. package/dist/components/toggle/index.js +1 -1
  139. package/dist/components/toggle-buttons/index.js +1 -1
  140. package/dist/components/tooltip/index.js +1 -1
  141. package/dist/components/tour/index.js +1 -1
  142. package/dist/components/typography/heading/index.js +1 -1
  143. package/dist/components/typography/index.js +1 -1
  144. package/dist/components/typography/span/index.js +1 -1
  145. package/dist/components/typography/text/index.js +1 -1
  146. package/dist/{components-Dg1OnrBE.mjs → components-DVtxfAyS.mjs} +1993 -1842
  147. package/dist/components-Dfsoa8ub.js +2806 -0
  148. package/dist/hooks/index.js +1 -1
  149. package/dist/index.js +1 -1
  150. package/dist/{vendor-ClHutGgA.mjs → vendor-BQBri7G-.mjs} +12687 -12557
  151. package/dist/vendor-C1dWvaay.js +223 -0
  152. package/package.json +1 -1
  153. package/dist/components-DCrqeh-7.js +0 -2786
  154. package/dist/vendor-C0aB6JXv.js +0 -223
@@ -1,223 +0,0 @@
1
- "use strict";require('./assets/vendor.css');const _=require("react"),oa=require("react/jsx-runtime"),Ha=require("react-dom");function XP(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 et=XP(_),Yh=XP(Ha);var Wr=function(){return Wr=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},Wr.apply(this,arguments)};function qu(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function uj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var lj=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cj=uj(function(e){return lj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var In="-ms-",kf="-moz-",gn="-webkit-",JP="comm",cm="rule",v4="decl",fj="@import",QP="@keyframes",dj="@layer",e2=Math.abs,y4=String.fromCharCode,k1=Object.assign;function hj(e,t){return Ar(e,0)^45?(((t<<2^Ar(e,0))<<2^Ar(e,1))<<2^Ar(e,2))<<2^Ar(e,3):0}function t2(e){return e.trim()}function Xs(e,t){return(e=t.exec(e))?e[0]:e}function qt(e,t,n){return e.replace(t,n)}function Zh(e,t,n){return e.indexOf(t,n)}function Ar(e,t){return e.charCodeAt(t)|0}function Xl(e,t,n){return e.slice(t,n)}function os(e){return e.length}function n2(e){return e.length}function $f(e,t){return t.push(e),e}function pj(e,t){return e.map(t).join("")}function Mw(e,t){return e.filter(function(n){return!Xs(n,t)})}var fm=1,Jl=1,r2=0,uo=0,dr=0,xc="";function dm(e,t,n,r,i,o,s,u){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:fm,column:Jl,length:s,return:"",siblings:u}}function Oa(e,t){return k1(dm("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Sl(e){for(;e.root;)e=Oa(e.root,{children:[e]});$f(e,e.siblings)}function mj(){return dr}function gj(){return dr=uo>0?Ar(xc,--uo):0,Jl--,dr===10&&(Jl=1,fm--),dr}function ko(){return dr=uo<r2?Ar(xc,uo++):0,Jl++,dr===10&&(Jl=1,fm++),dr}function Nu(){return Ar(xc,uo)}function Xh(){return uo}function hm(e,t){return Xl(xc,e,t)}function O1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vj(e){return fm=Jl=1,r2=os(xc=e),uo=0,[]}function yj(e){return xc="",e}function sv(e){return t2(hm(uo-1,I1(e===91?e+2:e===40?e+1:e)))}function bj(e){for(;(dr=Nu())&&dr<33;)ko();return O1(e)>2||O1(dr)>3?"":" "}function $j(e,t){for(;--t&&ko()&&!(dr<48||dr>102||dr>57&&dr<65||dr>70&&dr<97););return hm(e,Xh()+(t<6&&Nu()==32&&ko()==32))}function I1(e){for(;ko();)switch(dr){case e:return uo;case 34:case 39:e!==34&&e!==39&&I1(dr);break;case 40:e===41&&I1(e);break;case 92:ko();break}return uo}function xj(e,t){for(;ko()&&e+dr!==57;)if(e+dr===84&&Nu()===47)break;return"/*"+hm(t,uo-1)+"*"+y4(e===47?e:ko())}function wj(e){for(;!O1(Nu());)ko();return hm(e,uo)}function Cj(e){return yj(Jh("",null,null,null,[""],e=vj(e),0,[0],e))}function Jh(e,t,n,r,i,o,s,u,l){for(var d=0,h=0,m=s,g=0,b=0,x=0,C=1,A=1,S=1,w=0,D="",k=i,R=o,O=r,H=D;A;)switch(x=w,w=ko()){case 40:if(x!=108&&Ar(H,m-1)==58){Zh(H+=qt(sv(w),"&","&\f"),"&\f",e2(d?u[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:H+=sv(w);break;case 9:case 10:case 13:case 32:H+=bj(x);break;case 92:H+=$j(Xh()-1,7);continue;case 47:switch(Nu()){case 42:case 47:$f(Sj(xj(ko(),Xh()),t,n,l),l);break;default:H+="/"}break;case 123*C:u[d++]=os(H)*S;case 125*C:case 59:case 0:switch(w){case 0:case 125:A=0;case 59+h:S==-1&&(H=qt(H,/\f/g,"")),b>0&&os(H)-m&&$f(b>32?kw(H+";",r,n,m-1,l):kw(qt(H," ","")+";",r,n,m-2,l),l);break;case 59:H+=";";default:if($f(O=Fw(H,t,n,d,h,i,u,D,k=[],R=[],m,o),o),w===123)if(h===0)Jh(H,t,O,O,k,o,m,u,R);else switch(g===99&&Ar(H,3)===110?100:g){case 100:case 108:case 109:case 115:Jh(e,O,O,r&&$f(Fw(e,O,O,0,0,i,u,D,i,k=[],m,R),R),i,R,m,u,r?k:R);break;default:Jh(H,O,O,O,[""],R,0,u,R)}}d=h=b=0,C=S=1,D=H="",m=s;break;case 58:m=1+os(H),b=x;default:if(C<1){if(w==123)--C;else if(w==125&&C++==0&&gj()==125)continue}switch(H+=y4(w),w*C){case 38:S=h>0?1:(H+="\f",-1);break;case 44:u[d++]=(os(H)-1)*S,S=1;break;case 64:Nu()===45&&(H+=sv(ko())),g=Nu(),h=m=os(D=H+=wj(Xh())),w++;break;case 45:x===45&&os(H)==2&&(C=0)}}return o}function Fw(e,t,n,r,i,o,s,u,l,d,h,m){for(var g=i-1,b=i===0?o:[""],x=n2(b),C=0,A=0,S=0;C<r;++C)for(var w=0,D=Xl(e,g+1,g=e2(A=s[C])),k=e;w<x;++w)(k=t2(A>0?b[w]+" "+D:qt(D,/&\f/g,b[w])))&&(l[S++]=k);return dm(e,t,n,i===0?cm:u,l,d,h,m)}function Sj(e,t,n,r){return dm(e,t,n,JP,y4(mj()),Xl(e,2,-2),0,r)}function kw(e,t,n,r,i){return dm(e,t,n,v4,Xl(e,0,r),Xl(e,r+1,-1),r,i)}function i2(e,t,n){switch(hj(e,t)){case 5103:return gn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gn+e+e;case 4789:return kf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gn+e+kf+e+In+e+e;case 5936:switch(Ar(e,t+11)){case 114:return gn+e+In+qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gn+e+In+qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gn+e+In+qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return gn+e+In+e+e;case 6165:return gn+e+In+"flex-"+e+e;case 5187:return gn+e+qt(e,/(\w+).+(:[^]+)/,gn+"box-$1$2"+In+"flex-$1$2")+e;case 5443:return gn+e+In+"flex-item-"+qt(e,/flex-|-self/g,"")+(Xs(e,/flex-|baseline/)?"":In+"grid-row-"+qt(e,/flex-|-self/g,""))+e;case 4675:return gn+e+In+"flex-line-pack"+qt(e,/align-content|flex-|-self/g,"")+e;case 5548:return gn+e+In+qt(e,"shrink","negative")+e;case 5292:return gn+e+In+qt(e,"basis","preferred-size")+e;case 6060:return gn+"box-"+qt(e,"-grow","")+gn+e+In+qt(e,"grow","positive")+e;case 4554:return gn+qt(e,/([^-])(transform)/g,"$1"+gn+"$2")+e;case 6187:return qt(qt(qt(e,/(zoom-|grab)/,gn+"$1"),/(image-set)/,gn+"$1"),e,"")+e;case 5495:case 3959:return qt(e,/(image-set\([^]*)/,gn+"$1$`$1");case 4968:return qt(qt(e,/(.+:)(flex-)?(.*)/,gn+"box-pack:$3"+In+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gn+e+e;case 4200:if(!Xs(e,/flex-|baseline/))return In+"grid-column-align"+Xl(e,t)+e;break;case 2592:case 3360:return In+qt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Xs(r.props,/grid-\w+-end/)})?~Zh(e+(n=n[t].value),"span",0)?e:In+qt(e,"-start","")+e+In+"grid-row-span:"+(~Zh(n,"span",0)?Xs(n,/\d+/):+Xs(n,/\d+/)-+Xs(e,/\d+/))+";":In+qt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Xs(r.props,/grid-\w+-start/)})?e:In+qt(qt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return qt(e,/(.+)-inline(.+)/,gn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(os(e)-1-t>6)switch(Ar(e,t+1)){case 109:if(Ar(e,t+4)!==45)break;case 102:return qt(e,/(.+:)(.+)-([^]+)/,"$1"+gn+"$2-$3$1"+kf+(Ar(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zh(e,"stretch",0)?i2(qt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return qt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,u,l,d){return In+i+":"+o+d+(s?In+i+"-span:"+(u?l:+l-+o)+d:"")+e});case 4949:if(Ar(e,t+6)===121)return qt(e,":",":"+gn)+e;break;case 6444:switch(Ar(e,Ar(e,14)===45?18:11)){case 120:return qt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+gn+(Ar(e,14)===45?"inline-":"")+"box$3$1"+gn+"$2$3$1"+In+"$2box$3")+e;case 100:return qt(e,":",":"+In)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return qt(e,"scroll-","scroll-snap-")+e}return e}function yp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ej(e,t,n,r){switch(e.type){case dj:if(e.children.length)break;case fj:case v4:return e.return=e.return||e.value;case JP:return"";case QP:return e.return=e.value+"{"+yp(e.children,r)+"}";case cm:if(!os(e.value=e.props.join(",")))return""}return os(n=yp(e.children,r))?e.return=e.value+"{"+n+"}":""}function Dj(e){var t=n2(e);return function(n,r,i,o){for(var s="",u=0;u<t;u++)s+=e[u](n,r,i,o)||"";return s}}function Aj(e){return function(t){t.root||(t=t.return)&&e(t)}}function Tj(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case v4:e.return=i2(e.value,e.length,n);return;case QP:return yp([Oa(e,{value:qt(e.value,"@","@"+gn)})],r);case cm:if(e.length)return pj(n=e.props,function(i){switch(Xs(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Sl(Oa(e,{props:[qt(i,/:(read-\w+)/,":"+kf+"$1")]})),Sl(Oa(e,{props:[i]})),k1(e,{props:Mw(n,r)});break;case"::placeholder":Sl(Oa(e,{props:[qt(i,/:(plac\w+)/,":"+gn+"input-$1")]})),Sl(Oa(e,{props:[qt(i,/:(plac\w+)/,":"+kf+"$1")]})),Sl(Oa(e,{props:[qt(i,/:(plac\w+)/,In+"input-$1")]})),Sl(Oa(e,{props:[i]})),k1(e,{props:Mw(n,r)});break}return""})}}var Pj={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wu=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",o2="active",s2="data-styled-version",pm="6.1.15",b4=`/*!sc*/
2
- `,bp=typeof window<"u"&&"HTMLElement"in window,_j=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Ow=/invalid hook call/i,Eh=new Set,Rj=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
3
- `)+`You may see this warning because you've called styled inside another component.
4
- To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var o=!0;console.error=function(s){for(var u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];Ow.test(s)?(o=!1,Eh.delete(r)):i.apply(void 0,qu([s],u,!1))},_.useRef(),o&&!Eh.has(r)&&(console.warn(r),Eh.add(r))}catch(s){Ow.test(s.message)&&Eh.delete(r)}finally{console.error=i}}},mm=Object.freeze([]),Ql=Object.freeze({});function Mj(e,t,n){return n===void 0&&(n=Ql),e.theme!==n.theme&&e.theme||t||n.theme}var L1=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Fj=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,kj=/(^-|-$)/g;function Iw(e){return e.replace(Fj,"-").replace(kj,"")}var Oj=/(a)(d)/gi,Dh=52,Lw=function(e){return String.fromCharCode(e+(e>25?39:97))};function B1(e){var t,n="";for(t=Math.abs(e);t>Dh;t=t/Dh|0)n=Lw(t%Dh)+n;return(Lw(t%Dh)+n).replace(Oj,"$1-$2")}var av,a2=5381,Pu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},u2=function(e){return Pu(a2,e)};function l2(e){return B1(u2(e)>>>0)}function c2(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function uv(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var f2=typeof Symbol=="function"&&Symbol.for,d2=f2?Symbol.for("react.memo"):60115,Ij=f2?Symbol.for("react.forward_ref"):60112,Lj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bj={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},h2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vj=((av={})[Ij]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},av[d2]=h2,av);function Bw(e){return("type"in(t=e)&&t.type.$$typeof)===d2?h2:"$$typeof"in e?Vj[e.$$typeof]:Lj;var t}var Nj=Object.defineProperty,jj=Object.getOwnPropertyNames,Vw=Object.getOwnPropertySymbols,Kj=Object.getOwnPropertyDescriptor,Uj=Object.getPrototypeOf,Nw=Object.prototype;function p2(e,t,n){if(typeof t!="string"){if(Nw){var r=Uj(t);r&&r!==Nw&&p2(e,r,n)}var i=jj(t);Vw&&(i=i.concat(Vw(t)));for(var o=Bw(e),s=Bw(t),u=0;u<i.length;++u){var l=i[u];if(!(l in Bj||n&&n[l]||s&&l in s||o&&l in o)){var d=Kj(t,l);try{Nj(e,l,d)}catch{}}}}return e}function Hu(e){return typeof e=="function"}function $4(e){return typeof e=="object"&&"styledComponentId"in e}function Mu(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function V1(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function ec(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function N1(e,t,n){if(n===void 0&&(n=!1),!n&&!ec(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=N1(e[r],t[r]);else if(ec(t))for(var r in t)e[r]=N1(e[r],t[r]);return e}function x4(e,t){Object.defineProperty(e,"toString",{value:t})}var zj=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
5
-
6
- `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
7
-
8
- - Are you trying to reuse it across renders?
9
- - Are you accidentally calling collectStyles twice?
10
-
11
- `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
12
-
13
- `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
14
-
15
- - Does this error occur on the client and is your target falsy?
16
- - Does this error occur on the server and is the sheet falsy?
17
-
18
- `,5:`The clone method cannot be used on the client!
19
-
20
- - Are you running in a client-like environment on the server?
21
- - Are you trying to run SSR on the client?
22
-
23
- `,6:`Trying to insert a new style tag, but the given Node is unmounted!
24
-
25
- - Are you using a custom target that isn't mounted?
26
- - Does your document not have a valid head element?
27
- - Have you accidentally removed a style tag manually?
28
-
29
- `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
30
-
31
- `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
32
-
33
- `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
34
-
35
- `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
36
-
37
- `,14:`ThemeProvider: "theme" prop is required.
38
-
39
- `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
40
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
41
- as for instance in your render method then you may be running into this limitation.
42
-
43
- `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
44
- Has styled-components' style tag been unmounted or altered by another script?
45
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function qj(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,o=e.length;i<o;i+=1)r.push(e[i]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function ms(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(qj.apply(void 0,qu([zj[e]],t,!1)).trim())}var Wj=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw ms(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s<o;s++)this.groupSizes[s]=0}for(var u=this.indexOfGroup(t+1),l=(s=0,n.length);s<l;s++)this.tag.insertRule(u,n[s])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,s=i;s<o;s++)n+="".concat(this.tag.getRule(s)).concat(b4);return n},e}(),Hj=1<<30,Qh=new Map,$p=new Map,ep=1,Ah=function(e){if(Qh.has(e))return Qh.get(e);for(;$p.has(ep);)ep++;var t=ep++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Hj))throw ms(16,"".concat(t));return Qh.set(e,t),$p.set(t,e),t},Gj=function(e,t){ep=t+1,Qh.set(e,t),$p.set(t,e)},Yj="style[".concat(Wu,"][").concat(s2,'="').concat(pm,'"]'),Zj=new RegExp("^".concat(Wu,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Xj=function(e,t,n){for(var r,i=n.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&e.registerName(t,r)},Jj=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(b4),i=[],o=0,s=r.length;o<s;o++){var u=r[o].trim();if(u){var l=u.match(Zj);if(l){var d=0|parseInt(l[1],10),h=l[2];d!==0&&(Gj(h,d),Xj(e,h,l[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(u)}}},jw=function(e){for(var t=document.querySelectorAll(Yj),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Wu)!==o2&&(Jj(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function Qj(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var m2=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(u){var l=Array.from(u.querySelectorAll("style[".concat(Wu,"]")));return l[l.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(Wu,o2),r.setAttribute(s2,pm);var s=Qj();return s&&r.setAttribute("nonce",s),n.insertBefore(r,o),r},eK=function(){function e(t){this.element=m2(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var s=r[i];if(s.ownerNode===n)return s}throw ms(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),tK=function(){function e(t){this.element=m2(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),nK=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Kw=bp,rK={isServer:!bp,useCSSOMInjection:!_j},g2=function(){function e(t,n,r){t===void 0&&(t=Ql),n===void 0&&(n={});var i=this;this.options=Wr(Wr({},rK),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&bp&&Kw&&(Kw=!1,jw(this)),x4(this,function(){return function(o){for(var s=o.getTag(),u=s.length,l="",d=function(m){var g=function(S){return $p.get(S)}(m);if(g===void 0)return"continue";var b=o.names.get(g),x=s.getGroup(m);if(b===void 0||!b.size||x.length===0)return"continue";var C="".concat(Wu,".g").concat(m,'[id="').concat(g,'"]'),A="";b!==void 0&&b.forEach(function(S){S.length>0&&(A+="".concat(S,","))}),l+="".concat(x).concat(C,'{content:"').concat(A,'"}').concat(b4)},h=0;h<u;h++)d(h);return l}(i)})}return e.registerId=function(t){return Ah(t)},e.prototype.rehydrate=function(){!this.server&&bp&&jw(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Wr(Wr({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new nK(i):r?new eK(i):new tK(i)}(this.options),new Wj(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Ah(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Ah(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ah(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),iK=/&/g,oK=/^\s*\/\/.*$/gm;function v2(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=v2(n.children,t)),n})}function sK(e){var t,n,r,i=Ql,o=i.options,s=o===void 0?Ql:o,u=i.plugins,l=u===void 0?mm:u,d=function(g,b,x){return x.startsWith(n)&&x.endsWith(n)&&x.replaceAll(n,"").length>0?".".concat(t):g},h=l.slice();h.push(function(g){g.type===cm&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(iK,n).replace(r,d))}),s.prefix&&h.push(Tj),h.push(Ej);var m=function(g,b,x,C){b===void 0&&(b=""),x===void 0&&(x=""),C===void 0&&(C="&"),t=C,n=b,r=new RegExp("\\".concat(n,"\\b"),"g");var A=g.replace(oK,""),S=Cj(x||b?"".concat(x," ").concat(b," { ").concat(A," }"):A);s.namespace&&(S=v2(S,s.namespace));var w=[];return yp(S,Dj(h.concat(Aj(function(D){return w.push(D)})))),w};return m.hash=l.length?l.reduce(function(g,b){return b.name||ms(15),Pu(g,b.name)},a2).toString():"",m}var aK=new g2,j1=sK(),y2=_.createContext({shouldForwardProp:void 0,styleSheet:aK,stylis:j1});y2.Consumer;_.createContext(void 0);function Uw(){return _.useContext(y2)}var K1=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=j1);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,x4(this,function(){throw ms(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=j1),this.name+t.hash},e}(),uK=function(e){return e>="A"&&e<="Z"};function zw(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;uK(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var b2=function(e){return e==null||e===!1||e===""},$2=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!b2(o)&&(Array.isArray(o)&&o.isCss||Hu(o)?r.push("".concat(zw(i),":"),o,";"):ec(o)?r.push.apply(r,qu(qu(["".concat(i," {")],$2(o),!1),["}"],!1)):r.push("".concat(zw(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Pj||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ju(e,t,n,r){if(b2(e))return[];if($4(e))return[".".concat(e.styledComponentId)];if(Hu(e)){if(!Hu(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof K1||ec(i)||i===null||console.error("".concat(c2(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ju(i,t,n,r)}var o;return e instanceof K1?n?(e.inject(n,r),[e.getName(r)]):[e]:ec(e)?$2(e):Array.isArray(e)?Array.prototype.concat.apply(mm,e.map(function(s){return ju(s,t,n,r)})):[e.toString()]}function lK(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Hu(n)&&!$4(n))return!1}return!0}var cK=u2(pm),fK=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&lK(t),this.componentId=n,this.baseHash=Pu(cK,n),this.baseStyle=r,g2.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Mu(i,this.staticRulesId);else{var o=V1(ju(this.rules,t,n,r)),s=B1(Pu(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,s)){var u=r(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,u)}i=Mu(i,s),this.staticRulesId=s}else{for(var l=Pu(this.baseHash,r.hash),d="",h=0;h<this.rules.length;h++){var m=this.rules[h];if(typeof m=="string")d+=m,process.env.NODE_ENV!=="production"&&(l=Pu(l,m));else if(m){var g=V1(ju(m,t,n,r));l=Pu(l,g+h),d+=g}}if(d){var b=B1(l>>>0);n.hasNameForId(this.componentId,b)||n.insertRules(this.componentId,b,r(d,".".concat(b),void 0,this.componentId)),i=Mu(i,b)}}return i},e}(),Hf=_.createContext(void 0);Hf.Consumer;function dK(){var e=_.useContext(Hf);if(!e)throw ms(18);return e}function hK(e){var t=_.useContext(Hf),n=_.useMemo(function(){return function(r,i){if(!r)throw ms(14);if(Hu(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw ms(7);return o}if(Array.isArray(r)||typeof r!="object")throw ms(8);return i?Wr(Wr({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?_.createElement(Hf.Provider,{value:n},e.children):null}var lv={},qw=new Set;function pK(e,t,n){var r=$4(e),i=e,o=!uv(e),s=t.attrs,u=s===void 0?mm:s,l=t.componentId,d=l===void 0?function(k,R){var O=typeof k!="string"?"sc":Iw(k);lv[O]=(lv[O]||0)+1;var H="".concat(O,"-").concat(l2(pm+O+lv[O]));return R?"".concat(R,"-").concat(H):H}(t.displayName,t.parentComponentId):l,h=t.displayName,m=h===void 0?function(k){return uv(k)?"styled.".concat(k):"Styled(".concat(c2(k),")")}(e):h,g=t.displayName&&t.componentId?"".concat(Iw(t.displayName),"-").concat(t.componentId):t.componentId||d,b=r&&i.attrs?i.attrs.concat(u).filter(Boolean):u,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var C=i.shouldForwardProp;if(t.shouldForwardProp){var A=t.shouldForwardProp;x=function(k,R){return C(k,R)&&A(k,R)}}else x=C}var S=new fK(n,g,r?i.componentStyle:void 0);function w(k,R){return function(O,H,F){var ce=O.attrs,ae=O.componentStyle,q=O.defaultProps,De=O.foldedComponentIds,z=O.styledComponentId,j=O.target,ne=_.useContext(Hf),K=Uw(),N=O.shouldForwardProp||K.shouldForwardProp;process.env.NODE_ENV!=="production"&&_.useDebugValue(z);var I=Mj(H,ne,q)||Ql,de=function(Le,Je,Qe){for(var ye,Ne=Wr(Wr({},Je),{className:void 0,theme:Qe}),He=0;He<Le.length;He+=1){var Ke=Hu(ye=Le[He])?ye(Ne):ye;for(var Be in Ke)Ne[Be]=Be==="className"?Mu(Ne[Be],Ke[Be]):Be==="style"?Wr(Wr({},Ne[Be]),Ke[Be]):Ke[Be]}return Je.className&&(Ne.className=Mu(Ne.className,Je.className)),Ne}(ce,H,I),se=de.as||j,ie={};for(var Ae in de)de[Ae]===void 0||Ae[0]==="$"||Ae==="as"||Ae==="theme"&&de.theme===I||(Ae==="forwardedAs"?ie.as=de.forwardedAs:N&&!N(Ae,se)||(ie[Ae]=de[Ae],N||process.env.NODE_ENV!=="development"||cj(Ae)||qw.has(Ae)||!L1.has(se)||(qw.add(Ae),console.warn('styled-components: it looks like an unknown prop "'.concat(Ae,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Pe=function(Le,Je){var Qe=Uw(),ye=Le.generateAndInjectStyles(Je,Qe.styleSheet,Qe.stylis);return process.env.NODE_ENV!=="production"&&_.useDebugValue(ye),ye}(ae,de);process.env.NODE_ENV!=="production"&&O.warnTooManyClasses&&O.warnTooManyClasses(Pe);var Ie=Mu(De,z);return Pe&&(Ie+=" "+Pe),de.className&&(Ie+=" "+de.className),ie[uv(se)&&!L1.has(se)?"class":"className"]=Ie,F&&(ie.ref=F),_.createElement(se,ie)}(D,k,R)}w.displayName=m;var D=_.forwardRef(w);return D.attrs=b,D.componentStyle=S,D.displayName=m,D.shouldForwardProp=x,D.foldedComponentIds=r?Mu(i.foldedComponentIds,i.styledComponentId):"",D.styledComponentId=g,D.target=r?i.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=r?function(R){for(var O=[],H=1;H<arguments.length;H++)O[H-1]=arguments[H];for(var F=0,ce=O;F<ce.length;F++)N1(R,ce[F],!0);return R}({},i.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(Rj(m,g),D.warnTooManyClasses=function(k,R){var O={},H=!1;return function(F){if(!H&&(O[F]=!0,Object.keys(O).length>=200)){var ce=R?' with the id of "'.concat(R,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(ce,`.
46
- `)+`Consider using the attrs method, together with a style object for frequently changed styles.
47
- Example:
48
- const Component = styled.div.attrs(props => ({
49
- style: {
50
- background: props.background,
51
- },
52
- }))\`width: 100%;\`
53
-
54
- <Component />`),H=!0,O={}}}}(m,g)),x4(D,function(){return".".concat(D.styledComponentId)}),o&&p2(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function Ww(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var Hw=function(e){return Object.assign(e,{isCss:!0})};function w4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Hu(e)||ec(e))return Hw(ju(Ww(mm,qu([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ju(r):Hw(ju(Ww(r,t)))}function U1(e,t,n){if(n===void 0&&(n=Ql),!t)throw ms(1,t);var r=function(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,n,w4.apply(void 0,qu([i],o,!1)))};return r.attrs=function(i){return U1(e,t,Wr(Wr({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return U1(e,t,Wr(Wr({},n),i))},r}var x2=function(e){return U1(pK,e)},w2=x2;L1.forEach(function(e){w2[e]=x2(e)});function mK(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=V1(w4.apply(void 0,qu([e],t,!1))),i=l2(r);return new K1(i,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
55
- Perhaps you're looking to import 'styled-components/native'?
56
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Th="__sc-".concat(Wu,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Th]||(window[Th]=0),window[Th]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
57
-
58
- See https://s-c.sh/2BAXzed for more info.`),window[Th]+=1);function gm(){return typeof window<"u"}function wc(e){return C2(e)?(e.nodeName||"").toLowerCase():"#document"}function $i(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xs(e){var t;return(t=(C2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function C2(e){return gm()?e instanceof Node||e instanceof $i(e).Node:!1}function hr(e){return gm()?e instanceof Element||e instanceof $i(e).Element:!1}function lo(e){return gm()?e instanceof HTMLElement||e instanceof $i(e).HTMLElement:!1}function z1(e){return!gm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $i(e).ShadowRoot}function yd(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Oo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function gK(e){return["table","td","th"].includes(wc(e))}function vm(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function C4(e){const t=S4(),n=hr(e)?Oo(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 vK(e){let t=Xa(e);for(;lo(t)&&!tc(t);){if(C4(t))return t;if(vm(t))return null;t=Xa(t)}return null}function S4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function tc(e){return["html","body","#document"].includes(wc(e))}function Oo(e){return $i(e).getComputedStyle(e)}function ym(e){return hr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xa(e){if(wc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||z1(e)&&e.host||xs(e);return z1(t)?t.host:t}function S2(e){const t=Xa(e);return tc(t)?e.ownerDocument?e.ownerDocument.body:e.body:lo(t)&&yd(t)?t:S2(t)}function Gf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=S2(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=$i(i);if(o){const u=q1(s);return t.concat(s,s.visualViewport||[],yd(i)?i:[],u&&n?Gf(u):[])}return t.concat(i,Gf(i,[],n))}function q1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gw(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function W1(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&z1(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function E2(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function D2(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function yK(e){return xK()?!1:!Yw()&&e.width===0&&e.height===0||Yw()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function bK(){return/apple/i.test(navigator.vendor)}function Yw(){const e=/android/i;return e.test(E2())||e.test(D2())}function $K(){return E2().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function xK(){return D2().includes("jsdom/")}function H1(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function xf(e){return(e==null?void 0:e.ownerDocument)||document}function wK(e){return"composedPath"in e?e.composedPath()[0]:e.target}const CK="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function SK(e){return lo(e)&&e.matches(CK)}const xp=Math.min,Ku=Math.max,wp=Math.round,Ph=Math.floor,gs=e=>({x:e,y:e}),EK={left:"right",right:"left",bottom:"top",top:"bottom"},DK={start:"end",end:"start"};function Zw(e,t,n){return Ku(e,xp(t,n))}function bm(e,t){return typeof e=="function"?e(t):e}function Gu(e){return e.split("-")[0]}function $m(e){return e.split("-")[1]}function A2(e){return e==="x"?"y":"x"}function T2(e){return e==="y"?"height":"width"}function nc(e){return["top","bottom"].includes(Gu(e))?"y":"x"}function P2(e){return A2(nc(e))}function AK(e,t,n){n===void 0&&(n=!1);const r=$m(e),i=P2(e),o=T2(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Cp(s)),[s,Cp(s)]}function TK(e){const t=Cp(e);return[G1(e),t,G1(t)]}function G1(e){return e.replace(/start|end/g,t=>DK[t])}function PK(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 _K(e,t,n,r){const i=$m(e);let o=PK(Gu(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(G1)))),o}function Cp(e){return e.replace(/left|right|bottom|top/g,t=>EK[t])}function RK(e){return{top:0,right:0,bottom:0,left:0,...e}}function MK(e){return typeof e!="number"?RK(e):{top:e,right:e,bottom:e,left:e}}function Sp(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 Xw(e,t,n){let{reference:r,floating:i}=e;const o=nc(t),s=P2(t),u=T2(s),l=Gu(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[u]/2-i[u]/2;let b;switch(l){case"top":b={x:h,y:r.y-i.height};break;case"bottom":b={x:h,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch($m(t)){case"start":b[s]-=g*(n&&d?-1:1);break;case"end":b[s]+=g*(n&&d?-1:1);break}return b}const FK=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,u=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=Xw(d,r,l),g=r,b={},x=0;for(let C=0;C<u.length;C++){const{name:A,fn:S}=u[C],{x:w,y:D,data:k,reset:R}=await S({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:d,platform:s,elements:{reference:e,floating:t}});h=w??h,m=D??m,b={...b,[A]:{...b[A],...k}},R&&x<=50&&(x++,typeof R=="object"&&(R.placement&&(g=R.placement),R.rects&&(d=R.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:h,y:m}=Xw(d,g,l)),C=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function _2(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:u,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=bm(t,e),x=MK(b),A=u[g?m==="floating"?"reference":"floating":m],S=Sp(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(A)))==null||n?A:A.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:d,rootBoundary:h,strategy:l})),w=m==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),k=await(o.isElement==null?void 0:o.isElement(D))?await(o.getScale==null?void 0:o.getScale(D))||{x:1,y:1}:{x:1,y:1},R=Sp(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:w,offsetParent:D,strategy:l}):w);return{top:(S.top-R.top+x.top)/k.y,bottom:(R.bottom-S.bottom+x.bottom)/k.y,left:(S.left-R.left+x.left)/k.x,right:(R.right-S.right+x.right)/k.x}}const kK=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:u,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:C=!0,...A}=bm(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const S=Gu(i),w=nc(u),D=Gu(u)===u,k=await(l.isRTL==null?void 0:l.isRTL(d.floating)),R=g||(D||!C?[Cp(u)]:TK(u)),O=x!=="none";!g&&O&&R.push(..._K(u,C,x,k));const H=[u,...R],F=await _2(t,A),ce=[];let ae=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&ce.push(F[S]),m){const j=AK(i,s,k);ce.push(F[j[0]],F[j[1]])}if(ae=[...ae,{placement:i,overflows:ce}],!ce.every(j=>j<=0)){var q,De;const j=(((q=o.flip)==null?void 0:q.index)||0)+1,ne=H[j];if(ne)return{data:{index:j,overflows:ae},reset:{placement:ne}};let K=(De=ae.filter(N=>N.overflows[0]<=0).sort((N,I)=>N.overflows[1]-I.overflows[1])[0])==null?void 0:De.placement;if(!K)switch(b){case"bestFit":{var z;const N=(z=ae.filter(I=>{if(O){const de=nc(I.placement);return de===w||de==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(de=>de>0).reduce((de,se)=>de+se,0)]).sort((I,de)=>I[1]-de[1])[0])==null?void 0:z[0];N&&(K=N);break}case"initialPlacement":K=u;break}if(i!==K)return{reset:{placement:K}}}return{}}}};async function OK(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Gu(n),u=$m(n),l=nc(n)==="y",d=["left","top"].includes(s)?-1:1,h=o&&l?-1:1,m=bm(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof x=="number"&&(b=u==="end"?x*-1:x),l?{x:b*h,y:g*d}:{x:g*d,y:b*h}}const IK=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:u}=t,l=await OK(t,e);return s===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},LK=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:u={fn:A=>{let{x:S,y:w}=A;return{x:S,y:w}}},...l}=bm(e,t),d={x:n,y:r},h=await _2(t,l),m=nc(Gu(i)),g=A2(m);let b=d[g],x=d[m];if(o){const A=g==="y"?"top":"left",S=g==="y"?"bottom":"right",w=b+h[A],D=b-h[S];b=Zw(w,b,D)}if(s){const A=m==="y"?"top":"left",S=m==="y"?"bottom":"right",w=x+h[A],D=x-h[S];x=Zw(w,x,D)}const C=u.fn({...t,[g]:b,[m]:x});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[g]:o,[m]:s}}}}}};function R2(e){const t=Oo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=lo(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=wp(n)!==o||wp(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function E4(e){return hr(e)?e:e.contextElement}function Ul(e){const t=E4(e);if(!lo(t))return gs(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=R2(t);let s=(o?wp(n.width):n.width)/r,u=(o?wp(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const BK=gs(0);function M2(e){const t=$i(e);return!S4()||!t.visualViewport?BK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$i(e)?!1:t}function Yu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=E4(e);let s=gs(1);t&&(r?hr(r)&&(s=Ul(r)):s=Ul(e));const u=VK(o,n,r)?M2(o):gs(0);let l=(i.left+u.x)/s.x,d=(i.top+u.y)/s.y,h=i.width/s.x,m=i.height/s.y;if(o){const g=$i(o),b=r&&hr(r)?$i(r):r;let x=g,C=q1(x);for(;C&&r&&b!==x;){const A=Ul(C),S=C.getBoundingClientRect(),w=Oo(C),D=S.left+(C.clientLeft+parseFloat(w.paddingLeft))*A.x,k=S.top+(C.clientTop+parseFloat(w.paddingTop))*A.y;l*=A.x,d*=A.y,h*=A.x,m*=A.y,l+=D,d+=k,x=$i(C),C=q1(x)}}return Sp({width:h,height:m,x:l,y:d})}function D4(e,t){const n=ym(e).scrollLeft;return t?t.left+n:Yu(xs(e)).left+n}function F2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:D4(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function NK(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=xs(r),u=t?vm(t.floating):!1;if(r===s||u&&o)return n;let l={scrollLeft:0,scrollTop:0},d=gs(1);const h=gs(0),m=lo(r);if((m||!m&&!o)&&((wc(r)!=="body"||yd(s))&&(l=ym(r)),lo(r))){const b=Yu(r);d=Ul(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=s&&!m&&!o?F2(s,l,!0):gs(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-l.scrollTop*d.y+h.y+g.y}}function jK(e){return Array.from(e.getClientRects())}function KK(e){const t=xs(e),n=ym(e),r=e.ownerDocument.body,i=Ku(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Ku(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+D4(e);const u=-n.scrollTop;return Oo(r).direction==="rtl"&&(s+=Ku(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:u}}function UK(e,t){const n=$i(e),r=xs(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,u=0,l=0;if(i){o=i.width,s=i.height;const d=S4();(!d||d&&t==="fixed")&&(u=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:u,y:l}}function zK(e,t){const n=Yu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=lo(e)?Ul(e):gs(1),s=e.clientWidth*o.x,u=e.clientHeight*o.y,l=i*o.x,d=r*o.y;return{width:s,height:u,x:l,y:d}}function Jw(e,t,n){let r;if(t==="viewport")r=UK(e,n);else if(t==="document")r=KK(xs(e));else if(hr(t))r=zK(t,n);else{const i=M2(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Sp(r)}function k2(e,t){const n=Xa(e);return n===t||!hr(n)||tc(n)?!1:Oo(n).position==="fixed"||k2(n,t)}function qK(e,t){const n=t.get(e);if(n)return n;let r=Gf(e,[],!1).filter(u=>hr(u)&&wc(u)!=="body"),i=null;const o=Oo(e).position==="fixed";let s=o?Xa(e):e;for(;hr(s)&&!tc(s);){const u=Oo(s),l=C4(s);!l&&u.position==="fixed"&&(i=null),(o?!l&&!i:!l&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||yd(s)&&!l&&k2(e,s))?r=r.filter(h=>h!==s):i=u,s=Xa(s)}return t.set(e,r),r}function WK(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?vm(t)?[]:qK(t,this._c):[].concat(n),r],u=s[0],l=s.reduce((d,h)=>{const m=Jw(t,h,i);return d.top=Ku(m.top,d.top),d.right=xp(m.right,d.right),d.bottom=xp(m.bottom,d.bottom),d.left=Ku(m.left,d.left),d},Jw(t,u,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function HK(e){const{width:t,height:n}=R2(e);return{width:t,height:n}}function GK(e,t,n){const r=lo(t),i=xs(t),o=n==="fixed",s=Yu(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const l=gs(0);if(r||!r&&!o)if((wc(t)!=="body"||yd(i))&&(u=ym(t)),r){const g=Yu(t,!0,o,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else i&&(l.x=D4(i));const d=i&&!r&&!o?F2(i,u):gs(0),h=s.left+u.scrollLeft-l.x-d.x,m=s.top+u.scrollTop-l.y-d.y;return{x:h,y:m,width:s.width,height:s.height}}function cv(e){return Oo(e).position==="static"}function Qw(e,t){if(!lo(e)||Oo(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xs(e)===n&&(n=n.ownerDocument.body),n}function O2(e,t){const n=$i(e);if(vm(e))return n;if(!lo(e)){let i=Xa(e);for(;i&&!tc(i);){if(hr(i)&&!cv(i))return i;i=Xa(i)}return n}let r=Qw(e,t);for(;r&&gK(r)&&cv(r);)r=Qw(r,t);return r&&tc(r)&&cv(r)&&!C4(r)?n:r||vK(e)||n}const YK=async function(e){const t=this.getOffsetParent||O2,n=this.getDimensions,r=await n(e.floating);return{reference:GK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ZK(e){return Oo(e).direction==="rtl"}const XK={convertOffsetParentRelativeRectToViewportRelativeRect:NK,getDocumentElement:xs,getClippingRect:WK,getOffsetParent:O2,getElementRects:YK,getClientRects:jK,getDimensions:HK,getScale:Ul,isElement:hr,isRTL:ZK};function I2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function JK(e,t){let n=null,r;const i=xs(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function s(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=d;if(u||t(),!g||!b)return;const x=Ph(m),C=Ph(i.clientWidth-(h+g)),A=Ph(i.clientHeight-(m+b)),S=Ph(h),D={rootMargin:-x+"px "+-C+"px "+-A+"px "+-S+"px",threshold:Ku(0,xp(1,l))||1};let k=!0;function R(O){const H=O[0].intersectionRatio;if(H!==l){if(!k)return s();H?s(!1,H):r=setTimeout(()=>{s(!1,1e-7)},1e3)}H===1&&!I2(d,e.getBoundingClientRect())&&s(),k=!1}try{n=new IntersectionObserver(R,{...D,root:i.ownerDocument})}catch{n=new IntersectionObserver(R,D)}n.observe(e)}return s(!0),o}function QK(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=E4(e),h=i||o?[...d?Gf(d):[],...Gf(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),o&&S.addEventListener("resize",n)});const m=d&&u?JK(d,n):null;let g=-1,b=null;s&&(b=new ResizeObserver(S=>{let[w]=S;w&&w.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var D;(D=b)==null||D.observe(t)})),n()}),d&&!l&&b.observe(d),b.observe(t));let x,C=l?Yu(e):null;l&&A();function A(){const S=Yu(e);C&&!I2(C,S)&&n(),C=S,x=requestAnimationFrame(A)}return n(),()=>{var S;h.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),m==null||m(),(S=b)==null||S.disconnect(),b=null,l&&cancelAnimationFrame(x)}}const eU=IK,tU=LK,nU=kK,rU=(e,t,n)=>{const r=new Map,i={platform:XK,...n},o={...i.platform,_c:r};return FK(e,t,{...i,platform:o})};var tp=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Ep(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(!Ep(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)&&!Ep(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function L2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eC(e,t){const n=L2(e);return Math.round(t*n)/n}function fv(e){const t=et.useRef(e);return tp(()=>{t.current=e}),t}function B2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:u=!0,whileElementsMounted:l,open:d}=e,[h,m]=et.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=et.useState(r);Ep(g,r)||b(r);const[x,C]=et.useState(null),[A,S]=et.useState(null),w=et.useCallback(I=>{I!==O.current&&(O.current=I,C(I))},[]),D=et.useCallback(I=>{I!==H.current&&(H.current=I,S(I))},[]),k=o||x,R=s||A,O=et.useRef(null),H=et.useRef(null),F=et.useRef(h),ce=l!=null,ae=fv(l),q=fv(i),De=fv(d),z=et.useCallback(()=>{if(!O.current||!H.current)return;const I={placement:t,strategy:n,middleware:g};q.current&&(I.platform=q.current),rU(O.current,H.current,I).then(de=>{const se={...de,isPositioned:De.current!==!1};j.current&&!Ep(F.current,se)&&(F.current=se,Yh.flushSync(()=>{m(se)}))})},[g,t,n,q,De]);tp(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(I=>({...I,isPositioned:!1})))},[d]);const j=et.useRef(!1);tp(()=>(j.current=!0,()=>{j.current=!1}),[]),tp(()=>{if(k&&(O.current=k),R&&(H.current=R),k&&R){if(ae.current)return ae.current(k,R,z);z()}},[k,R,z,ae,ce]);const ne=et.useMemo(()=>({reference:O,floating:H,setReference:w,setFloating:D}),[w,D]),K=et.useMemo(()=>({reference:k,floating:R}),[k,R]),N=et.useMemo(()=>{const I={position:n,left:0,top:0};if(!K.floating)return I;const de=eC(K.floating,h.x),se=eC(K.floating,h.y);return u?{...I,transform:"translate("+de+"px, "+se+"px)",...L2(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:de,top:se}},[n,u,K.floating,h.x,h.y]);return et.useMemo(()=>({...h,update:z,refs:ne,elements:K,floatingStyles:N}),[h,z,ne,K,N])}const iU=(e,t)=>({...eU(e),options:[e,t]}),oU=(e,t)=>({...tU(e),options:[e,t]}),sU=(e,t)=>({...nU(e),options:[e,t]}),V2={...et},aU=V2.useInsertionEffect,uU=aU||(e=>e());function np(e){const t=et.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return uU(()=>{t.current=e}),et.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var rc=typeof document<"u"?_.useLayoutEffect:_.useEffect;let tC=!1,lU=0;const nC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+lU++;function cU(){const[e,t]=et.useState(()=>tC?nC():void 0);return rc(()=>{e==null&&t(nC())},[]),et.useEffect(()=>{tC=!0},[]),e}const fU=V2.useId,N2=fU||cU;let Y1;process.env.NODE_ENV!=="production"&&(Y1=new Set);function dU(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Y1)!=null&&e.has(i))){var o;(o=Y1)==null||o.add(i),console.error(i)}}function hU(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const pU=et.createContext(null),mU=et.createContext(null),A4=()=>{var e;return((e=et.useContext(pU))==null?void 0:e.id)||null},j2=()=>et.useContext(mU);function K2(e){return"data-floating-ui-"+e}function dv(e){const t=_.useRef(e);return rc(()=>{t.current=e}),t}const rC=K2("safe-polygon");function hv(e,t,n){return n&&!H1(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function gU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:s}=e,{enabled:u=!0,delay:l=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=j2(),x=A4(),C=dv(d),A=dv(l),S=dv(n),w=et.useRef(),D=et.useRef(-1),k=et.useRef(),R=et.useRef(-1),O=et.useRef(!0),H=et.useRef(!1),F=et.useRef(()=>{}),ce=et.useRef(!1),ae=et.useCallback(()=>{var N;const I=(N=i.current.openEvent)==null?void 0:N.type;return(I==null?void 0:I.includes("mouse"))&&I!=="mousedown"},[i]);et.useEffect(()=>{if(!u)return;function N(I){let{open:de}=I;de||(clearTimeout(D.current),clearTimeout(R.current),O.current=!0,ce.current=!1)}return o.on("openchange",N),()=>{o.off("openchange",N)}},[u,o]),et.useEffect(()=>{if(!u||!C.current||!n)return;function N(de){ae()&&r(!1,de,"hover")}const I=xf(s.floating).documentElement;return I.addEventListener("mouseleave",N),()=>{I.removeEventListener("mouseleave",N)}},[s.floating,n,r,u,C,ae]);const q=et.useCallback(function(N,I,de){I===void 0&&(I=!0),de===void 0&&(de="hover");const se=hv(A.current,"close",w.current);se&&!k.current?(clearTimeout(D.current),D.current=window.setTimeout(()=>r(!1,N,de),se)):I&&(clearTimeout(D.current),r(!1,N,de))},[A,r]),De=np(()=>{F.current(),k.current=void 0}),z=np(()=>{if(H.current){const N=xf(s.floating).body;N.style.pointerEvents="",N.removeAttribute(rC),H.current=!1}}),j=np(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);et.useEffect(()=>{if(!u)return;function N(ie){if(clearTimeout(D.current),O.current=!1,h&&!H1(w.current)||m>0&&!hv(A.current,"open"))return;const Ae=hv(A.current,"open",w.current);Ae?D.current=window.setTimeout(()=>{S.current||r(!0,ie,"hover")},Ae):n||r(!0,ie,"hover")}function I(ie){if(j())return;F.current();const Ae=xf(s.floating);if(clearTimeout(R.current),ce.current=!1,C.current&&i.current.floatingContext){n||clearTimeout(D.current),k.current=C.current({...i.current.floatingContext,tree:b,x:ie.clientX,y:ie.clientY,onClose(){z(),De(),j()||q(ie,!0,"safe-polygon")}});const Ie=k.current;Ae.addEventListener("mousemove",Ie),F.current=()=>{Ae.removeEventListener("mousemove",Ie)};return}(w.current==="touch"?!W1(s.floating,ie.relatedTarget):!0)&&q(ie)}function de(ie){j()||i.current.floatingContext&&(C.current==null||C.current({...i.current.floatingContext,tree:b,x:ie.clientX,y:ie.clientY,onClose(){z(),De(),j()||q(ie)}})(ie))}if(hr(s.domReference)){var se;const ie=s.domReference;return n&&ie.addEventListener("mouseleave",de),(se=s.floating)==null||se.addEventListener("mouseleave",de),g&&ie.addEventListener("mousemove",N,{once:!0}),ie.addEventListener("mouseenter",N),ie.addEventListener("mouseleave",I),()=>{var Ae;n&&ie.removeEventListener("mouseleave",de),(Ae=s.floating)==null||Ae.removeEventListener("mouseleave",de),g&&ie.removeEventListener("mousemove",N),ie.removeEventListener("mouseenter",N),ie.removeEventListener("mouseleave",I)}}},[s,u,e,h,m,g,q,De,z,r,n,S,b,A,C,i,j]),rc(()=>{var N;if(u&&n&&(N=C.current)!=null&&N.__options.blockPointerEvents&&ae()){H.current=!0;const de=s.floating;if(hr(s.domReference)&&de){var I;const se=xf(s.floating).body;se.setAttribute(rC,"");const ie=s.domReference,Ae=b==null||(I=b.nodesRef.current.find(Pe=>Pe.id===x))==null||(I=I.context)==null?void 0:I.elements.floating;return Ae&&(Ae.style.pointerEvents=""),se.style.pointerEvents="none",ie.style.pointerEvents="auto",de.style.pointerEvents="auto",()=>{se.style.pointerEvents="",ie.style.pointerEvents="",de.style.pointerEvents=""}}}},[u,n,x,s,b,C,ae]),rc(()=>{n||(w.current=void 0,ce.current=!1,De(),z())},[n,De,z]),et.useEffect(()=>()=>{De(),clearTimeout(D.current),clearTimeout(R.current),z()},[u,s.domReference,De,z]);const ne=et.useMemo(()=>{function N(I){w.current=I.pointerType}return{onPointerDown:N,onPointerEnter:N,onMouseMove(I){const{nativeEvent:de}=I;function se(){!O.current&&!S.current&&r(!0,de,"hover")}h&&!H1(w.current)||n||m===0||ce.current&&I.movementX**2+I.movementY**2<2||(clearTimeout(R.current),w.current==="touch"?se():(ce.current=!0,R.current=window.setTimeout(se,m)))}}},[h,r,n,S,m]),K=et.useMemo(()=>({onMouseEnter(){clearTimeout(D.current)},onMouseLeave(N){j()||q(N.nativeEvent,!1)}}),[q,j]);return et.useMemo(()=>u?{reference:ne,floating:K}:{},[u,ne,K])}const vU="data-floating-ui-focusable";function yU(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=N2(),o=et.useRef({}),[s]=et.useState(()=>hU()),u=A4()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!hr(b)&&dU("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,d]=et.useState(r.reference),h=np((b,x,C)=>{o.current.openEvent=b?x:void 0,s.emit("openchange",{open:b,event:x,reason:C,nested:u}),n==null||n(b,x,C)}),m=et.useMemo(()=>({setPositionReference:d}),[]),g=et.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return et.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:g,events:s,floatingId:i,refs:m}),[t,h,g,s,i,m])}function bU(e){e===void 0&&(e={});const{nodeId:t}=e,n=yU({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=et.useState(null),[u,l]=et.useState(null),h=(i==null?void 0:i.domReference)||o,m=et.useRef(null),g=j2();rc(()=>{h&&(m.current=h)},[h]);const b=B2({...e,elements:{...i,...u&&{reference:u}}}),x=et.useCallback(D=>{const k=hr(D)?{getBoundingClientRect:()=>D.getBoundingClientRect(),contextElement:D}:D;l(k),b.refs.setReference(k)},[b.refs]),C=et.useCallback(D=>{(hr(D)||D===null)&&(m.current=D,s(D)),(hr(b.refs.reference.current)||b.refs.reference.current===null||D!==null&&!hr(D))&&b.refs.setReference(D)},[b.refs]),A=et.useMemo(()=>({...b.refs,setReference:C,setPositionReference:x,domReference:m}),[b.refs,C,x]),S=et.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),w=et.useMemo(()=>({...b,...r,refs:A,elements:S,nodeId:t}),[b,A,S,t,r]);return rc(()=>{r.dataRef.current.floatingContext=w;const D=g==null?void 0:g.nodesRef.current.find(k=>k.id===t);D&&(D.context=w)}),et.useMemo(()=>({...b,context:w,refs:A,elements:S}),[b,A,S,w])}function $U(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:s}=e,{enabled:u=!0,visibleOnly:l=!0}=t,d=et.useRef(!1),h=et.useRef(),m=et.useRef(!0);et.useEffect(()=>{if(!u)return;const b=$i(s.domReference);function x(){!n&&lo(s.domReference)&&s.domReference===Gw(xf(s.domReference))&&(d.current=!0)}function C(){m.current=!0}return b.addEventListener("blur",x),b.addEventListener("keydown",C,!0),()=>{b.removeEventListener("blur",x),b.removeEventListener("keydown",C,!0)}},[s.domReference,n,u]),et.useEffect(()=>{if(!u)return;function b(x){let{reason:C}=x;(C==="reference-press"||C==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,u]),et.useEffect(()=>()=>{clearTimeout(h.current)},[]);const g=et.useMemo(()=>({onPointerDown(b){yK(b.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const x=wK(b.nativeEvent);if(l&&hr(x))try{if(bK()&&$K())throw Error();if(!x.matches(":focus-visible"))return}catch{if(!m.current&&!SK(x))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const x=b.relatedTarget,C=b.nativeEvent,A=hr(x)&&x.hasAttribute(K2("focus-guard"))&&x.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var S;const w=Gw(s.domReference?s.domReference.ownerDocument:document);!x&&w===s.domReference||W1((S=o.current.floatingContext)==null?void 0:S.refs.floating.current,w)||W1(s.domReference,w)||A||r(!1,C,"focus")})}}),[o,s.domReference,r,l]);return et.useMemo(()=>u?{reference:g}:{},[u,g])}const iC="active",oC="selected";function pv(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[iC]:s,[oC]:u,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[vU]:""},...o,...t.map(s=>{const u=s?s[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((s,u)=>(u&&Object.entries(u).forEach(l=>{let[d,h]=l;if(!(i&&[iC,oC].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),s[d]=function(){for(var g,b=arguments.length,x=new Array(b),C=0;C<b;C++)x[C]=arguments[C];return(g=r.get(d))==null?void 0:g.map(A=>A(...x)).find(A=>A!==void 0)}}}else s[d]=h}),s),{})}}function xU(e){e===void 0&&(e=[]);const t=e.map(u=>u==null?void 0:u.reference),n=e.map(u=>u==null?void 0:u.floating),r=e.map(u=>u==null?void 0:u.item),i=et.useCallback(u=>pv(u,e,"reference"),t),o=et.useCallback(u=>pv(u,e,"floating"),n),s=et.useCallback(u=>pv(u,e,"item"),r);return et.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}const wU=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function CU(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:s="dialog"}=t,u=(n=wU.get(s))!=null?n:s,l=N2(),h=A4()!=null,m=et.useMemo(()=>u==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":u==="alertdialog"?"dialog":u,"aria-controls":r?i:void 0,...u==="listbox"&&{role:"combobox"},...u==="menu"&&{id:l},...u==="menu"&&h&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[u,i,h,r,l,s]),g=et.useMemo(()=>{const x={id:i,...u&&{role:u}};return u==="tooltip"||s==="label"?x:{...x,...u==="menu"&&{"aria-labelledby":l}}},[u,i,l,s]),b=et.useCallback(x=>{let{active:C,selected:A}=x;const S={role:"option",...C&&{id:i+"-option"}};switch(s){case"select":return{...S,"aria-selected":C&&A};case"combobox":return{...S,...C&&{"aria-selected":!0}}}return{}},[i,s]);return et.useMemo(()=>o?{reference:m,floating:g,item:b}:{},[o,m,g,b])}var wf={exports:{}};/**
59
- * @license
60
- * Lodash <https://lodash.com/>
61
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
62
- * Released under MIT license <https://lodash.com/license>
63
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
64
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
65
- */var SU=wf.exports,sC;function EU(){return sC||(sC=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,b=4,x=1,C=2,A=1,S=2,w=4,D=8,k=16,R=32,O=64,H=128,F=256,ce=512,ae=30,q="...",De=800,z=16,j=1,ne=2,K=3,N=1/0,I=9007199254740991,de=17976931348623157e292,se=NaN,ie=4294967295,Ae=ie-1,Pe=ie>>>1,Ie=[["ary",H],["bind",A],["bindKey",S],["curry",D],["curryRight",k],["flip",ce],["partial",R],["partialRight",O],["rearg",F]],Le="[object Arguments]",Je="[object Array]",Qe="[object AsyncFunction]",ye="[object Boolean]",Ne="[object Date]",He="[object DOMException]",Ke="[object Error]",Be="[object Function]",st="[object GeneratorFunction]",Dt="[object Map]",ln="[object Number]",At="[object Null]",It="[object Object]",we="[object Promise]",Se="[object Proxy]",Re="[object RegExp]",Ge="[object Set]",rt="[object String]",nt="[object Symbol]",dt="[object Undefined]",Et="[object WeakMap]",xn="[object WeakSet]",en="[object ArrayBuffer]",Gt="[object DataView]",Ir="[object Float32Array]",Tr="[object Float64Array]",Yt="[object Int8Array]",kt="[object Int16Array]",jt="[object Int32Array]",tn="[object Uint8Array]",Zn="[object Uint8ClampedArray]",Si="[object Uint16Array]",ai="[object Uint32Array]",ui=/\b__p \+= '';/g,Gr=/\b(__p \+=) '' \+/g,Ko=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ct=/&(?:amp|lt|gt|quot|#39);/g,Pr=/[&<>"']/g,Ei=RegExp(Ct.source),Cs=RegExp(Pr.source),pa=/<%-([\s\S]+?)%>/g,ou=/<%([\s\S]+?)%>/g,ma=/<%=([\s\S]+?)%>/g,fo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ga=/^\w*$/,Di=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ai=/[\\^$.*+?()[\]{}|]/g,wt=RegExp(Ai.source),An=/^\s+/,ho=/\s/,va=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pr=/\{\n\/\* \[wrapped with (.+)\] \*/,ya=/,? & /,_r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,su=/[()=,{}\[\]\/\s]/,Lr=/\\(\\)?/g,ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yn=/\w*$/,Ti=/^[-+]0x[0-9a-f]+$/i,Yr=/^0b[01]+$/i,qn=/^\[object .+?Constructor\]$/,Ss=/^0o[0-7]+$/i,Bi=/^(?:0|[1-9]\d*)$/,Zr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,po=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",au="\\u0300-\\u036f",Es="\\ufe20-\\ufe2f",uu="\\u20d0-\\u20ff",Uo=au+Es+uu,Vi="\\u2700-\\u27bf",Ds="a-z\\xdf-\\xf6\\xf8-\\xff",As="\\xac\\xb1\\xd7\\xf7",ba="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$a="\\u2000-\\u206f",lu=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xa="A-Z\\xc0-\\xd6\\xd8-\\xde",zo="\\ufe0e\\ufe0f",Ts=As+ba+$a+lu,mo="['’]",wa="["+Ht+"]",Ca="["+Ts+"]",Rr="["+Uo+"]",mr="\\d+",te="["+Vi+"]",Te="["+Ds+"]",Ve="[^"+Ht+Ts+mr+Vi+Ds+xa+"]",We="\\ud83c[\\udffb-\\udfff]",ct="(?:"+Rr+"|"+We+")",Bt="[^"+Ht+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Zt="["+xa+"]",Pn="\\u200d",ur="(?:"+Te+"|"+Ve+")",lr="(?:"+Zt+"|"+Ve+")",on="(?:"+mo+"(?:d|ll|m|re|s|t|ve))?",br="(?:"+mo+"(?:D|LL|M|RE|S|T|VE))?",go=ct+"?",qo="["+zo+"]?",Ps="(?:"+Pn+"(?:"+[Bt,St,Tt].join("|")+")"+qo+go+")*",Xr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wo=qo+go+Ps,Ho="(?:"+[te,St,Tt].join("|")+")"+Wo,_s="(?:"+[Bt+Rr+"?",Rr,St,Tt,wa].join("|")+")",vo=RegExp(mo,"g"),Rs=RegExp(Rr,"g"),Sa=RegExp(We+"(?="+We+")|"+_s+Wo,"g"),ll=RegExp([Zt+"?"+Te+"+"+on+"(?="+[Ca,Zt,"$"].join("|")+")",lr+"+"+br+"(?="+[Ca,Zt+ur,"$"].join("|")+")",Zt+"?"+ur+"+"+on,Zt+"+"+br,cu,Xr,mr,Ho].join("|"),"g"),Vc=RegExp("["+Pn+Ht+Uo+zo+"]"),Ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nc=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fs=-1,sn={};sn[Ir]=sn[Tr]=sn[Yt]=sn[kt]=sn[jt]=sn[tn]=sn[Zn]=sn[Si]=sn[ai]=!0,sn[Le]=sn[Je]=sn[en]=sn[ye]=sn[Gt]=sn[Ne]=sn[Ke]=sn[Be]=sn[Dt]=sn[ln]=sn[It]=sn[Re]=sn[Ge]=sn[rt]=sn[Et]=!1;var cn={};cn[Le]=cn[Je]=cn[en]=cn[Gt]=cn[ye]=cn[Ne]=cn[Ir]=cn[Tr]=cn[Yt]=cn[kt]=cn[jt]=cn[Dt]=cn[ln]=cn[It]=cn[Re]=cn[Ge]=cn[rt]=cn[nt]=cn[tn]=cn[Zn]=cn[Si]=cn[ai]=!0,cn[Ke]=cn[Be]=cn[Et]=!1;var ue={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Me={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ze={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fn=parseFloat,gr=parseInt,$r=typeof io=="object"&&io&&io.Object===Object&&io,Xn=typeof self=="object"&&self&&self.Object===Object&&self,Ln=$r||Xn||Function("return this")(),Ni=t&&!t.nodeType&&t,ji=Ni&&!0&&e&&!e.nodeType&&e,fu=ji&&ji.exports===Ni,Ea=fu&&$r.process,xr=function(){try{var M=ji&&ji.require&&ji.require("util").types;return M||Ea&&Ea.binding&&Ea.binding("util")}catch{}}(),ks=xr&&xr.isArrayBuffer,Zd=xr&&xr.isDate,Xd=xr&&xr.isMap,jc=xr&&xr.isRegExp,Da=xr&&xr.isSet,yo=xr&&xr.isTypedArray;function Wn(M,ee,Y){switch(Y.length){case 0:return M.call(ee);case 1:return M.call(ee,Y[0]);case 2:return M.call(ee,Y[0],Y[1]);case 3:return M.call(ee,Y[0],Y[1],Y[2])}return M.apply(ee,Y)}function Go(M,ee,Y,pe){for(var he=-1,W=M==null?0:M.length;++he<W;){var Z=M[he];ee(pe,Z,Y(Z),M)}return pe}function Sn(M,ee){for(var Y=-1,pe=M==null?0:M.length;++Y<pe&&ee(M[Y],Y,M)!==!1;);return M}function wr(M,ee){for(var Y=M==null?0:M.length;Y--&&ee(M[Y],Y,M)!==!1;);return M}function Os(M,ee){for(var Y=-1,pe=M==null?0:M.length;++Y<pe;)if(!ee(M[Y],Y,M))return!1;return!0}function Br(M,ee){for(var Y=-1,pe=M==null?0:M.length,he=0,W=[];++Y<pe;){var Z=M[Y];ee(Z,Y,M)&&(W[he++]=Z)}return W}function Yo(M,ee){var Y=M==null?0:M.length;return!!Y&&Is(M,ee,0)>-1}function cl(M,ee,Y){for(var pe=-1,he=M==null?0:M.length;++pe<he;)if(Y(ee,M[pe]))return!0;return!1}function wn(M,ee){for(var Y=-1,pe=M==null?0:M.length,he=Array(pe);++Y<pe;)he[Y]=ee(M[Y],Y,M);return he}function bo(M,ee){for(var Y=-1,pe=ee.length,he=M.length;++Y<pe;)M[he+Y]=ee[Y];return M}function fl(M,ee,Y,pe){var he=-1,W=M==null?0:M.length;for(pe&&W&&(Y=M[++he]);++he<W;)Y=ee(Y,M[he],he,M);return Y}function du(M,ee,Y,pe){var he=M==null?0:M.length;for(pe&&he&&(Y=M[--he]);he--;)Y=ee(Y,M[he],he,M);return Y}function Zo(M,ee){for(var Y=-1,pe=M==null?0:M.length;++Y<pe;)if(ee(M[Y],Y,M))return!0;return!1}var hu=dl("length");function pu(M){return M.split("")}function fg(M){return M.match(_r)||[]}function Kc(M,ee,Y){var pe;return Y(M,function(he,W,Z){if(ee(he,W,Z))return pe=W,!1}),pe}function mu(M,ee,Y,pe){for(var he=M.length,W=Y+(pe?1:-1);pe?W--:++W<he;)if(ee(M[W],W,M))return W;return-1}function Is(M,ee,Y){return ee===ee?p(M,ee,Y):mu(M,Uc,Y)}function Jd(M,ee,Y,pe){for(var he=Y-1,W=M.length;++he<W;)if(pe(M[he],ee))return he;return-1}function Uc(M){return M!==M}function gu(M,ee){var Y=M==null?0:M.length;return Y?Xo(M,ee)/Y:se}function dl(M){return function(ee){return ee==null?n:ee[M]}}function hl(M){return function(ee){return M==null?n:M[ee]}}function zc(M,ee,Y,pe,he){return he(M,function(W,Z,L){Y=pe?(pe=!1,W):ee(Y,W,Z,L)}),Y}function vu(M,ee){var Y=M.length;for(M.sort(ee);Y--;)M[Y]=M[Y].value;return M}function Xo(M,ee){for(var Y,pe=-1,he=M.length;++pe<he;){var W=ee(M[pe]);W!==n&&(Y=Y===n?W:Y+W)}return Y}function pl(M,ee){for(var Y=-1,pe=Array(M);++Y<M;)pe[Y]=ee(Y);return pe}function dg(M,ee){return wn(ee,function(Y){return[Y,M[Y]]})}function Qd(M){return M&&M.slice(0,P(M)+1).replace(An,"")}function Vr(M){return function(ee){return M(ee)}}function qc(M,ee){return wn(ee,function(Y){return M[Y]})}function _n(M,ee){return M.has(ee)}function ml(M,ee){for(var Y=-1,pe=M.length;++Y<pe&&Is(ee,M[Y],0)>-1;);return Y}function Cr(M,ee){for(var Y=M.length;Y--&&Is(ee,M[Y],0)>-1;);return Y}function hg(M,ee){for(var Y=M.length,pe=0;Y--;)M[Y]===ee&&++pe;return pe}var pg=hl(ue),Ls=hl(Me);function Pi(M){return"\\"+bt[M]}function mg(M,ee){return M==null?n:M[ee]}function Nr(M){return Vc.test(M)}function Wc(M){return Ms.test(M)}function Jo(M){for(var ee,Y=[];!(ee=M.next()).done;)Y.push(ee.value);return Y}function Hn(M){var ee=-1,Y=Array(M.size);return M.forEach(function(pe,he){Y[++ee]=[he,pe]}),Y}function Ki(M,ee){return function(Y){return M(ee(Y))}}function li(M,ee){for(var Y=-1,pe=M.length,he=0,W=[];++Y<pe;){var Z=M[Y];(Z===ee||Z===h)&&(M[Y]=h,W[he++]=Y)}return W}function Aa(M){var ee=-1,Y=Array(M.size);return M.forEach(function(pe){Y[++ee]=pe}),Y}function c(M){var ee=-1,Y=Array(M.size);return M.forEach(function(pe){Y[++ee]=[pe,pe]}),Y}function p(M,ee,Y){for(var pe=Y-1,he=M.length;++pe<he;)if(M[pe]===ee)return pe;return-1}function v(M,ee,Y){for(var pe=Y+1;pe--;)if(M[pe]===ee)return pe;return pe}function $(M){return Nr(M)?ge(M):hu(M)}function T(M){return Nr(M)?Q(M):pu(M)}function P(M){for(var ee=M.length;ee--&&ho.test(M.charAt(ee)););return ee}var U=hl(Ze);function ge(M){for(var ee=Sa.lastIndex=0;Sa.test(M);)++ee;return ee}function Q(M){return M.match(Sa)||[]}function $e(M){return M.match(ll)||[]}var Ce=function M(ee){ee=ee==null?Ln:Fe.defaults(Ln.Object(),ee,Fe.pick(Ln,Nc));var Y=ee.Array,pe=ee.Date,he=ee.Error,W=ee.Function,Z=ee.Math,L=ee.Object,V=ee.RegExp,G=ee.String,re=ee.TypeError,le=Y.prototype,me=W.prototype,Oe=L.prototype,ot=ee["__core-js_shared__"],it=me.toString,Ue=Oe.hasOwnProperty,ht=0,gt=function(){var a=/[^.]+$/.exec(ot&&ot.keys&&ot.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),je=Oe.toString,xe=it.call(L),fe=Ln._,J=V("^"+it.call(Ue).replace(Ai,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=fu?ee.Buffer:n,ze=ee.Symbol,ke=ee.Uint8Array,mt=ve?ve.allocUnsafe:n,Lt=Ki(L.getPrototypeOf,L),_t=L.create,kn=Oe.propertyIsEnumerable,nn=le.splice,Sr=ze?ze.isConcatSpreadable:n,cr=ze?ze.iterator:n,Gn=ze?ze.toStringTag:n,Jn=function(){try{var a=wu(L,"defineProperty");return a({},"",{}),a}catch{}}(),Qn=ee.clearTimeout!==Ln.clearTimeout&&ee.clearTimeout,Mr=pe&&pe.now!==Ln.Date.now&&pe.now,vt=ee.setTimeout!==Ln.setTimeout&&ee.setTimeout,Cn=Z.ceil,ci=Z.floor,Ui=L.getOwnPropertySymbols,$o=ve?ve.isBuffer:n,_i=ee.isFinite,xo=le.join,wo=Ki(L.keys,L),an=Z.max,On=Z.min,Qo=pe.now,Ri=ee.parseInt,Co=Z.random,Mi=le.reverse,So=wu(ee,"DataView"),es=wu(ee,"Map"),Ta=wu(ee,"Promise"),gl=wu(ee,"Set"),Hc=wu(ee,"WeakMap"),Gc=wu(L,"create"),eh=Hc&&new Hc,vl={},g9=Cu(So),v9=Cu(es),y9=Cu(Ta),b9=Cu(gl),$9=Cu(Hc),th=ze?ze.prototype:n,Yc=th?th.valueOf:n,Z$=th?th.toString:n;function X(a){if(Yn(a)&&!Vt(a)&&!(a instanceof Qt)){if(a instanceof zi)return a;if(Ue.call(a,"__wrapped__"))return Xx(a)}return new zi(a)}var yl=function(){function a(){}return function(f){if(!Nn(f))return{};if(_t)return _t(f);a.prototype=f;var y=new a;return a.prototype=n,y}}();function nh(){}function zi(a,f){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}X.templateSettings={escape:pa,evaluate:ou,interpolate:ma,variable:"",imports:{_:X}},X.prototype=nh.prototype,X.prototype.constructor=X,zi.prototype=yl(nh.prototype),zi.prototype.constructor=zi;function Qt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ie,this.__views__=[]}function x9(){var a=new Qt(this.__wrapped__);return a.__actions__=fi(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=fi(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=fi(this.__views__),a}function w9(){if(this.__filtered__){var a=new Qt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function C9(){var a=this.__wrapped__.value(),f=this.__dir__,y=Vt(a),E=f<0,B=y?a.length:0,oe=OL(0,B,this.__views__),be=oe.start,Ee=oe.end,_e=Ee-be,Ye=E?Ee:be-1,Xe=this.__iteratees__,tt=Xe.length,ft=0,xt=On(_e,this.__takeCount__);if(!y||!E&&B==_e&&xt==_e)return $x(a,this.__actions__);var Rt=[];e:for(;_e--&&ft<xt;){Ye+=f;for(var zt=-1,Mt=a[Ye];++zt<tt;){var Xt=Xe[zt],rn=Xt.iteratee,Oi=Xt.type,ei=rn(Mt);if(Oi==ne)Mt=ei;else if(!ei){if(Oi==j)continue e;break e}}Rt[ft++]=Mt}return Rt}Qt.prototype=yl(nh.prototype),Qt.prototype.constructor=Qt;function yu(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function S9(){this.__data__=Gc?Gc(null):{},this.size=0}function E9(a){var f=this.has(a)&&delete this.__data__[a];return this.size-=f?1:0,f}function D9(a){var f=this.__data__;if(Gc){var y=f[a];return y===l?n:y}return Ue.call(f,a)?f[a]:n}function A9(a){var f=this.__data__;return Gc?f[a]!==n:Ue.call(f,a)}function T9(a,f){var y=this.__data__;return this.size+=this.has(a)?0:1,y[a]=Gc&&f===n?l:f,this}yu.prototype.clear=S9,yu.prototype.delete=E9,yu.prototype.get=D9,yu.prototype.has=A9,yu.prototype.set=T9;function Bs(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function P9(){this.__data__=[],this.size=0}function _9(a){var f=this.__data__,y=rh(f,a);if(y<0)return!1;var E=f.length-1;return y==E?f.pop():nn.call(f,y,1),--this.size,!0}function R9(a){var f=this.__data__,y=rh(f,a);return y<0?n:f[y][1]}function M9(a){return rh(this.__data__,a)>-1}function F9(a,f){var y=this.__data__,E=rh(y,a);return E<0?(++this.size,y.push([a,f])):y[E][1]=f,this}Bs.prototype.clear=P9,Bs.prototype.delete=_9,Bs.prototype.get=R9,Bs.prototype.has=M9,Bs.prototype.set=F9;function Vs(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function k9(){this.size=0,this.__data__={hash:new yu,map:new(es||Bs),string:new yu}}function O9(a){var f=mh(this,a).delete(a);return this.size-=f?1:0,f}function I9(a){return mh(this,a).get(a)}function L9(a){return mh(this,a).has(a)}function B9(a,f){var y=mh(this,a),E=y.size;return y.set(a,f),this.size+=y.size==E?0:1,this}Vs.prototype.clear=k9,Vs.prototype.delete=O9,Vs.prototype.get=I9,Vs.prototype.has=L9,Vs.prototype.set=B9;function bu(a){var f=-1,y=a==null?0:a.length;for(this.__data__=new Vs;++f<y;)this.add(a[f])}function V9(a){return this.__data__.set(a,l),this}function N9(a){return this.__data__.has(a)}bu.prototype.add=bu.prototype.push=V9,bu.prototype.has=N9;function Eo(a){var f=this.__data__=new Bs(a);this.size=f.size}function j9(){this.__data__=new Bs,this.size=0}function K9(a){var f=this.__data__,y=f.delete(a);return this.size=f.size,y}function U9(a){return this.__data__.get(a)}function z9(a){return this.__data__.has(a)}function q9(a,f){var y=this.__data__;if(y instanceof Bs){var E=y.__data__;if(!es||E.length<i-1)return E.push([a,f]),this.size=++y.size,this;y=this.__data__=new Vs(E)}return y.set(a,f),this.size=y.size,this}Eo.prototype.clear=j9,Eo.prototype.delete=K9,Eo.prototype.get=U9,Eo.prototype.has=z9,Eo.prototype.set=q9;function X$(a,f){var y=Vt(a),E=!y&&Su(a),B=!y&&!E&&Fa(a),oe=!y&&!E&&!B&&wl(a),be=y||E||B||oe,Ee=be?pl(a.length,G):[],_e=Ee.length;for(var Ye in a)(f||Ue.call(a,Ye))&&!(be&&(Ye=="length"||B&&(Ye=="offset"||Ye=="parent")||oe&&(Ye=="buffer"||Ye=="byteLength"||Ye=="byteOffset")||Us(Ye,_e)))&&Ee.push(Ye);return Ee}function J$(a){var f=a.length;return f?a[Dg(0,f-1)]:n}function W9(a,f){return gh(fi(a),$u(f,0,a.length))}function H9(a){return gh(fi(a))}function gg(a,f,y){(y!==n&&!Do(a[f],y)||y===n&&!(f in a))&&Ns(a,f,y)}function Zc(a,f,y){var E=a[f];(!(Ue.call(a,f)&&Do(E,y))||y===n&&!(f in a))&&Ns(a,f,y)}function rh(a,f){for(var y=a.length;y--;)if(Do(a[y][0],f))return y;return-1}function G9(a,f,y,E){return Pa(a,function(B,oe,be){f(E,B,y(B),be)}),E}function Q$(a,f){return a&&ns(f,Er(f),a)}function Y9(a,f){return a&&ns(f,hi(f),a)}function Ns(a,f,y){f=="__proto__"&&Jn?Jn(a,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):a[f]=y}function vg(a,f){for(var y=-1,E=f.length,B=Y(E),oe=a==null;++y<E;)B[y]=oe?n:Xg(a,f[y]);return B}function $u(a,f,y){return a===a&&(y!==n&&(a=a<=y?a:y),f!==n&&(a=a>=f?a:f)),a}function qi(a,f,y,E,B,oe){var be,Ee=f&m,_e=f&g,Ye=f&b;if(y&&(be=B?y(a,E,B,oe):y(a)),be!==n)return be;if(!Nn(a))return a;var Xe=Vt(a);if(Xe){if(be=LL(a),!Ee)return fi(a,be)}else{var tt=jr(a),ft=tt==Be||tt==st;if(Fa(a))return Cx(a,Ee);if(tt==It||tt==Le||ft&&!B){if(be=_e||ft?{}:Kx(a),!Ee)return _e?DL(a,Y9(be,a)):EL(a,Q$(be,a))}else{if(!cn[tt])return B?a:{};be=BL(a,tt,Ee)}}oe||(oe=new Eo);var xt=oe.get(a);if(xt)return xt;oe.set(a,be),vw(a)?a.forEach(function(Mt){be.add(qi(Mt,f,y,Mt,a,oe))}):mw(a)&&a.forEach(function(Mt,Xt){be.set(Xt,qi(Mt,f,y,Xt,a,oe))});var Rt=Ye?_e?Lg:Ig:_e?hi:Er,zt=Xe?n:Rt(a);return Sn(zt||a,function(Mt,Xt){zt&&(Xt=Mt,Mt=a[Xt]),Zc(be,Xt,qi(Mt,f,y,Xt,a,oe))}),be}function Z9(a){var f=Er(a);return function(y){return ex(y,a,f)}}function ex(a,f,y){var E=y.length;if(a==null)return!E;for(a=L(a);E--;){var B=y[E],oe=f[B],be=a[B];if(be===n&&!(B in a)||!oe(be))return!1}return!0}function tx(a,f,y){if(typeof a!="function")throw new re(s);return rf(function(){a.apply(n,y)},f)}function Xc(a,f,y,E){var B=-1,oe=Yo,be=!0,Ee=a.length,_e=[],Ye=f.length;if(!Ee)return _e;y&&(f=wn(f,Vr(y))),E?(oe=cl,be=!1):f.length>=i&&(oe=_n,be=!1,f=new bu(f));e:for(;++B<Ee;){var Xe=a[B],tt=y==null?Xe:y(Xe);if(Xe=E||Xe!==0?Xe:0,be&&tt===tt){for(var ft=Ye;ft--;)if(f[ft]===tt)continue e;_e.push(Xe)}else oe(f,tt,E)||_e.push(Xe)}return _e}var Pa=Tx(ts),nx=Tx(bg,!0);function X9(a,f){var y=!0;return Pa(a,function(E,B,oe){return y=!!f(E,B,oe),y}),y}function ih(a,f,y){for(var E=-1,B=a.length;++E<B;){var oe=a[E],be=f(oe);if(be!=null&&(Ee===n?be===be&&!ki(be):y(be,Ee)))var Ee=be,_e=oe}return _e}function J9(a,f,y,E){var B=a.length;for(y=Kt(y),y<0&&(y=-y>B?0:B+y),E=E===n||E>B?B:Kt(E),E<0&&(E+=B),E=y>E?0:bw(E);y<E;)a[y++]=f;return a}function rx(a,f){var y=[];return Pa(a,function(E,B,oe){f(E,B,oe)&&y.push(E)}),y}function Fr(a,f,y,E,B){var oe=-1,be=a.length;for(y||(y=NL),B||(B=[]);++oe<be;){var Ee=a[oe];f>0&&y(Ee)?f>1?Fr(Ee,f-1,y,E,B):bo(B,Ee):E||(B[B.length]=Ee)}return B}var yg=Px(),ix=Px(!0);function ts(a,f){return a&&yg(a,f,Er)}function bg(a,f){return a&&ix(a,f,Er)}function oh(a,f){return Br(f,function(y){return zs(a[y])})}function xu(a,f){f=Ra(f,a);for(var y=0,E=f.length;a!=null&&y<E;)a=a[rs(f[y++])];return y&&y==E?a:n}function ox(a,f,y){var E=f(a);return Vt(a)?E:bo(E,y(a))}function Jr(a){return a==null?a===n?dt:At:Gn&&Gn in L(a)?kL(a):HL(a)}function $g(a,f){return a>f}function Q9(a,f){return a!=null&&Ue.call(a,f)}function eL(a,f){return a!=null&&f in L(a)}function tL(a,f,y){return a>=On(f,y)&&a<an(f,y)}function xg(a,f,y){for(var E=y?cl:Yo,B=a[0].length,oe=a.length,be=oe,Ee=Y(oe),_e=1/0,Ye=[];be--;){var Xe=a[be];be&&f&&(Xe=wn(Xe,Vr(f))),_e=On(Xe.length,_e),Ee[be]=!y&&(f||B>=120&&Xe.length>=120)?new bu(be&&Xe):n}Xe=a[0];var tt=-1,ft=Ee[0];e:for(;++tt<B&&Ye.length<_e;){var xt=Xe[tt],Rt=f?f(xt):xt;if(xt=y||xt!==0?xt:0,!(ft?_n(ft,Rt):E(Ye,Rt,y))){for(be=oe;--be;){var zt=Ee[be];if(!(zt?_n(zt,Rt):E(a[be],Rt,y)))continue e}ft&&ft.push(Rt),Ye.push(xt)}}return Ye}function nL(a,f,y,E){return ts(a,function(B,oe,be){f(E,y(B),oe,be)}),E}function Jc(a,f,y){f=Ra(f,a),a=Wx(a,f);var E=a==null?a:a[rs(Hi(f))];return E==null?n:Wn(E,a,y)}function sx(a){return Yn(a)&&Jr(a)==Le}function rL(a){return Yn(a)&&Jr(a)==en}function iL(a){return Yn(a)&&Jr(a)==Ne}function Qc(a,f,y,E,B){return a===f?!0:a==null||f==null||!Yn(a)&&!Yn(f)?a!==a&&f!==f:oL(a,f,y,E,Qc,B)}function oL(a,f,y,E,B,oe){var be=Vt(a),Ee=Vt(f),_e=be?Je:jr(a),Ye=Ee?Je:jr(f);_e=_e==Le?It:_e,Ye=Ye==Le?It:Ye;var Xe=_e==It,tt=Ye==It,ft=_e==Ye;if(ft&&Fa(a)){if(!Fa(f))return!1;be=!0,Xe=!1}if(ft&&!Xe)return oe||(oe=new Eo),be||wl(a)?Vx(a,f,y,E,B,oe):ML(a,f,_e,y,E,B,oe);if(!(y&x)){var xt=Xe&&Ue.call(a,"__wrapped__"),Rt=tt&&Ue.call(f,"__wrapped__");if(xt||Rt){var zt=xt?a.value():a,Mt=Rt?f.value():f;return oe||(oe=new Eo),B(zt,Mt,y,E,oe)}}return ft?(oe||(oe=new Eo),FL(a,f,y,E,B,oe)):!1}function sL(a){return Yn(a)&&jr(a)==Dt}function wg(a,f,y,E){var B=y.length,oe=B,be=!E;if(a==null)return!oe;for(a=L(a);B--;){var Ee=y[B];if(be&&Ee[2]?Ee[1]!==a[Ee[0]]:!(Ee[0]in a))return!1}for(;++B<oe;){Ee=y[B];var _e=Ee[0],Ye=a[_e],Xe=Ee[1];if(be&&Ee[2]){if(Ye===n&&!(_e in a))return!1}else{var tt=new Eo;if(E)var ft=E(Ye,Xe,_e,a,f,tt);if(!(ft===n?Qc(Xe,Ye,x|C,E,tt):ft))return!1}}return!0}function ax(a){if(!Nn(a)||KL(a))return!1;var f=zs(a)?J:qn;return f.test(Cu(a))}function aL(a){return Yn(a)&&Jr(a)==Re}function uL(a){return Yn(a)&&jr(a)==Ge}function lL(a){return Yn(a)&&wh(a.length)&&!!sn[Jr(a)]}function ux(a){return typeof a=="function"?a:a==null?pi:typeof a=="object"?Vt(a)?fx(a[0],a[1]):cx(a):_w(a)}function Cg(a){if(!nf(a))return wo(a);var f=[];for(var y in L(a))Ue.call(a,y)&&y!="constructor"&&f.push(y);return f}function cL(a){if(!Nn(a))return WL(a);var f=nf(a),y=[];for(var E in a)E=="constructor"&&(f||!Ue.call(a,E))||y.push(E);return y}function Sg(a,f){return a<f}function lx(a,f){var y=-1,E=di(a)?Y(a.length):[];return Pa(a,function(B,oe,be){E[++y]=f(B,oe,be)}),E}function cx(a){var f=Vg(a);return f.length==1&&f[0][2]?zx(f[0][0],f[0][1]):function(y){return y===a||wg(y,a,f)}}function fx(a,f){return jg(a)&&Ux(f)?zx(rs(a),f):function(y){var E=Xg(y,a);return E===n&&E===f?Jg(y,a):Qc(f,E,x|C)}}function sh(a,f,y,E,B){a!==f&&yg(f,function(oe,be){if(B||(B=new Eo),Nn(oe))fL(a,f,be,y,sh,E,B);else{var Ee=E?E(Ug(a,be),oe,be+"",a,f,B):n;Ee===n&&(Ee=oe),gg(a,be,Ee)}},hi)}function fL(a,f,y,E,B,oe,be){var Ee=Ug(a,y),_e=Ug(f,y),Ye=be.get(_e);if(Ye){gg(a,y,Ye);return}var Xe=oe?oe(Ee,_e,y+"",a,f,be):n,tt=Xe===n;if(tt){var ft=Vt(_e),xt=!ft&&Fa(_e),Rt=!ft&&!xt&&wl(_e);Xe=_e,ft||xt||Rt?Vt(Ee)?Xe=Ee:er(Ee)?Xe=fi(Ee):xt?(tt=!1,Xe=Cx(_e,!0)):Rt?(tt=!1,Xe=Sx(_e,!0)):Xe=[]:of(_e)||Su(_e)?(Xe=Ee,Su(Ee)?Xe=$w(Ee):(!Nn(Ee)||zs(Ee))&&(Xe=Kx(_e))):tt=!1}tt&&(be.set(_e,Xe),B(Xe,_e,E,oe,be),be.delete(_e)),gg(a,y,Xe)}function dx(a,f){var y=a.length;if(y)return f+=f<0?y:0,Us(f,y)?a[f]:n}function hx(a,f,y){f.length?f=wn(f,function(oe){return Vt(oe)?function(be){return xu(be,oe.length===1?oe[0]:oe)}:oe}):f=[pi];var E=-1;f=wn(f,Vr(Pt()));var B=lx(a,function(oe,be,Ee){var _e=wn(f,function(Ye){return Ye(oe)});return{criteria:_e,index:++E,value:oe}});return vu(B,function(oe,be){return SL(oe,be,y)})}function dL(a,f){return px(a,f,function(y,E){return Jg(a,E)})}function px(a,f,y){for(var E=-1,B=f.length,oe={};++E<B;){var be=f[E],Ee=xu(a,be);y(Ee,be)&&ef(oe,Ra(be,a),Ee)}return oe}function hL(a){return function(f){return xu(f,a)}}function Eg(a,f,y,E){var B=E?Jd:Is,oe=-1,be=f.length,Ee=a;for(a===f&&(f=fi(f)),y&&(Ee=wn(a,Vr(y)));++oe<be;)for(var _e=0,Ye=f[oe],Xe=y?y(Ye):Ye;(_e=B(Ee,Xe,_e,E))>-1;)Ee!==a&&nn.call(Ee,_e,1),nn.call(a,_e,1);return a}function mx(a,f){for(var y=a?f.length:0,E=y-1;y--;){var B=f[y];if(y==E||B!==oe){var oe=B;Us(B)?nn.call(a,B,1):Pg(a,B)}}return a}function Dg(a,f){return a+ci(Co()*(f-a+1))}function pL(a,f,y,E){for(var B=-1,oe=an(Cn((f-a)/(y||1)),0),be=Y(oe);oe--;)be[E?oe:++B]=a,a+=y;return be}function Ag(a,f){var y="";if(!a||f<1||f>I)return y;do f%2&&(y+=a),f=ci(f/2),f&&(a+=a);while(f);return y}function Wt(a,f){return zg(qx(a,f,pi),a+"")}function mL(a){return J$(Cl(a))}function gL(a,f){var y=Cl(a);return gh(y,$u(f,0,y.length))}function ef(a,f,y,E){if(!Nn(a))return a;f=Ra(f,a);for(var B=-1,oe=f.length,be=oe-1,Ee=a;Ee!=null&&++B<oe;){var _e=rs(f[B]),Ye=y;if(_e==="__proto__"||_e==="constructor"||_e==="prototype")return a;if(B!=be){var Xe=Ee[_e];Ye=E?E(Xe,_e,Ee):n,Ye===n&&(Ye=Nn(Xe)?Xe:Us(f[B+1])?[]:{})}Zc(Ee,_e,Ye),Ee=Ee[_e]}return a}var gx=eh?function(a,f){return eh.set(a,f),a}:pi,vL=Jn?function(a,f){return Jn(a,"toString",{configurable:!0,enumerable:!1,value:ev(f),writable:!0})}:pi;function yL(a){return gh(Cl(a))}function Wi(a,f,y){var E=-1,B=a.length;f<0&&(f=-f>B?0:B+f),y=y>B?B:y,y<0&&(y+=B),B=f>y?0:y-f>>>0,f>>>=0;for(var oe=Y(B);++E<B;)oe[E]=a[E+f];return oe}function bL(a,f){var y;return Pa(a,function(E,B,oe){return y=f(E,B,oe),!y}),!!y}function ah(a,f,y){var E=0,B=a==null?E:a.length;if(typeof f=="number"&&f===f&&B<=Pe){for(;E<B;){var oe=E+B>>>1,be=a[oe];be!==null&&!ki(be)&&(y?be<=f:be<f)?E=oe+1:B=oe}return B}return Tg(a,f,pi,y)}function Tg(a,f,y,E){var B=0,oe=a==null?0:a.length;if(oe===0)return 0;f=y(f);for(var be=f!==f,Ee=f===null,_e=ki(f),Ye=f===n;B<oe;){var Xe=ci((B+oe)/2),tt=y(a[Xe]),ft=tt!==n,xt=tt===null,Rt=tt===tt,zt=ki(tt);if(be)var Mt=E||Rt;else Ye?Mt=Rt&&(E||ft):Ee?Mt=Rt&&ft&&(E||!xt):_e?Mt=Rt&&ft&&!xt&&(E||!zt):xt||zt?Mt=!1:Mt=E?tt<=f:tt<f;Mt?B=Xe+1:oe=Xe}return On(oe,Ae)}function vx(a,f){for(var y=-1,E=a.length,B=0,oe=[];++y<E;){var be=a[y],Ee=f?f(be):be;if(!y||!Do(Ee,_e)){var _e=Ee;oe[B++]=be===0?0:be}}return oe}function yx(a){return typeof a=="number"?a:ki(a)?se:+a}function Fi(a){if(typeof a=="string")return a;if(Vt(a))return wn(a,Fi)+"";if(ki(a))return Z$?Z$.call(a):"";var f=a+"";return f=="0"&&1/a==-1/0?"-0":f}function _a(a,f,y){var E=-1,B=Yo,oe=a.length,be=!0,Ee=[],_e=Ee;if(y)be=!1,B=cl;else if(oe>=i){var Ye=f?null:_L(a);if(Ye)return Aa(Ye);be=!1,B=_n,_e=new bu}else _e=f?[]:Ee;e:for(;++E<oe;){var Xe=a[E],tt=f?f(Xe):Xe;if(Xe=y||Xe!==0?Xe:0,be&&tt===tt){for(var ft=_e.length;ft--;)if(_e[ft]===tt)continue e;f&&_e.push(tt),Ee.push(Xe)}else B(_e,tt,y)||(_e!==Ee&&_e.push(tt),Ee.push(Xe))}return Ee}function Pg(a,f){return f=Ra(f,a),a=Wx(a,f),a==null||delete a[rs(Hi(f))]}function bx(a,f,y,E){return ef(a,f,y(xu(a,f)),E)}function uh(a,f,y,E){for(var B=a.length,oe=E?B:-1;(E?oe--:++oe<B)&&f(a[oe],oe,a););return y?Wi(a,E?0:oe,E?oe+1:B):Wi(a,E?oe+1:0,E?B:oe)}function $x(a,f){var y=a;return y instanceof Qt&&(y=y.value()),fl(f,function(E,B){return B.func.apply(B.thisArg,bo([E],B.args))},y)}function _g(a,f,y){var E=a.length;if(E<2)return E?_a(a[0]):[];for(var B=-1,oe=Y(E);++B<E;)for(var be=a[B],Ee=-1;++Ee<E;)Ee!=B&&(oe[B]=Xc(oe[B]||be,a[Ee],f,y));return _a(Fr(oe,1),f,y)}function xx(a,f,y){for(var E=-1,B=a.length,oe=f.length,be={};++E<B;){var Ee=E<oe?f[E]:n;y(be,a[E],Ee)}return be}function Rg(a){return er(a)?a:[]}function Mg(a){return typeof a=="function"?a:pi}function Ra(a,f){return Vt(a)?a:jg(a,f)?[a]:Zx(hn(a))}var $L=Wt;function Ma(a,f,y){var E=a.length;return y=y===n?E:y,!f&&y>=E?a:Wi(a,f,y)}var wx=Qn||function(a){return Ln.clearTimeout(a)};function Cx(a,f){if(f)return a.slice();var y=a.length,E=mt?mt(y):new a.constructor(y);return a.copy(E),E}function Fg(a){var f=new a.constructor(a.byteLength);return new ke(f).set(new ke(a)),f}function xL(a,f){var y=f?Fg(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.byteLength)}function wL(a){var f=new a.constructor(a.source,yn.exec(a));return f.lastIndex=a.lastIndex,f}function CL(a){return Yc?L(Yc.call(a)):{}}function Sx(a,f){var y=f?Fg(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.length)}function Ex(a,f){if(a!==f){var y=a!==n,E=a===null,B=a===a,oe=ki(a),be=f!==n,Ee=f===null,_e=f===f,Ye=ki(f);if(!Ee&&!Ye&&!oe&&a>f||oe&&be&&_e&&!Ee&&!Ye||E&&be&&_e||!y&&_e||!B)return 1;if(!E&&!oe&&!Ye&&a<f||Ye&&y&&B&&!E&&!oe||Ee&&y&&B||!be&&B||!_e)return-1}return 0}function SL(a,f,y){for(var E=-1,B=a.criteria,oe=f.criteria,be=B.length,Ee=y.length;++E<be;){var _e=Ex(B[E],oe[E]);if(_e){if(E>=Ee)return _e;var Ye=y[E];return _e*(Ye=="desc"?-1:1)}}return a.index-f.index}function Dx(a,f,y,E){for(var B=-1,oe=a.length,be=y.length,Ee=-1,_e=f.length,Ye=an(oe-be,0),Xe=Y(_e+Ye),tt=!E;++Ee<_e;)Xe[Ee]=f[Ee];for(;++B<be;)(tt||B<oe)&&(Xe[y[B]]=a[B]);for(;Ye--;)Xe[Ee++]=a[B++];return Xe}function Ax(a,f,y,E){for(var B=-1,oe=a.length,be=-1,Ee=y.length,_e=-1,Ye=f.length,Xe=an(oe-Ee,0),tt=Y(Xe+Ye),ft=!E;++B<Xe;)tt[B]=a[B];for(var xt=B;++_e<Ye;)tt[xt+_e]=f[_e];for(;++be<Ee;)(ft||B<oe)&&(tt[xt+y[be]]=a[B++]);return tt}function fi(a,f){var y=-1,E=a.length;for(f||(f=Y(E));++y<E;)f[y]=a[y];return f}function ns(a,f,y,E){var B=!y;y||(y={});for(var oe=-1,be=f.length;++oe<be;){var Ee=f[oe],_e=E?E(y[Ee],a[Ee],Ee,y,a):n;_e===n&&(_e=a[Ee]),B?Ns(y,Ee,_e):Zc(y,Ee,_e)}return y}function EL(a,f){return ns(a,Ng(a),f)}function DL(a,f){return ns(a,Nx(a),f)}function lh(a,f){return function(y,E){var B=Vt(y)?Go:G9,oe=f?f():{};return B(y,a,Pt(E,2),oe)}}function bl(a){return Wt(function(f,y){var E=-1,B=y.length,oe=B>1?y[B-1]:n,be=B>2?y[2]:n;for(oe=a.length>3&&typeof oe=="function"?(B--,oe):n,be&&Qr(y[0],y[1],be)&&(oe=B<3?n:oe,B=1),f=L(f);++E<B;){var Ee=y[E];Ee&&a(f,Ee,E,oe)}return f})}function Tx(a,f){return function(y,E){if(y==null)return y;if(!di(y))return a(y,E);for(var B=y.length,oe=f?B:-1,be=L(y);(f?oe--:++oe<B)&&E(be[oe],oe,be)!==!1;);return y}}function Px(a){return function(f,y,E){for(var B=-1,oe=L(f),be=E(f),Ee=be.length;Ee--;){var _e=be[a?Ee:++B];if(y(oe[_e],_e,oe)===!1)break}return f}}function AL(a,f,y){var E=f&A,B=tf(a);function oe(){var be=this&&this!==Ln&&this instanceof oe?B:a;return be.apply(E?y:this,arguments)}return oe}function _x(a){return function(f){f=hn(f);var y=Nr(f)?T(f):n,E=y?y[0]:f.charAt(0),B=y?Ma(y,1).join(""):f.slice(1);return E[a]()+B}}function $l(a){return function(f){return fl(Tw(Aw(f).replace(vo,"")),a,"")}}function tf(a){return function(){var f=arguments;switch(f.length){case 0:return new a;case 1:return new a(f[0]);case 2:return new a(f[0],f[1]);case 3:return new a(f[0],f[1],f[2]);case 4:return new a(f[0],f[1],f[2],f[3]);case 5:return new a(f[0],f[1],f[2],f[3],f[4]);case 6:return new a(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new a(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=yl(a.prototype),E=a.apply(y,f);return Nn(E)?E:y}}function TL(a,f,y){var E=tf(a);function B(){for(var oe=arguments.length,be=Y(oe),Ee=oe,_e=xl(B);Ee--;)be[Ee]=arguments[Ee];var Ye=oe<3&&be[0]!==_e&&be[oe-1]!==_e?[]:li(be,_e);if(oe-=Ye.length,oe<y)return Ox(a,f,ch,B.placeholder,n,be,Ye,n,n,y-oe);var Xe=this&&this!==Ln&&this instanceof B?E:a;return Wn(Xe,this,be)}return B}function Rx(a){return function(f,y,E){var B=L(f);if(!di(f)){var oe=Pt(y,3);f=Er(f),y=function(Ee){return oe(B[Ee],Ee,B)}}var be=a(f,y,E);return be>-1?B[oe?f[be]:be]:n}}function Mx(a){return Ks(function(f){var y=f.length,E=y,B=zi.prototype.thru;for(a&&f.reverse();E--;){var oe=f[E];if(typeof oe!="function")throw new re(s);if(B&&!be&&ph(oe)=="wrapper")var be=new zi([],!0)}for(E=be?E:y;++E<y;){oe=f[E];var Ee=ph(oe),_e=Ee=="wrapper"?Bg(oe):n;_e&&Kg(_e[0])&&_e[1]==(H|D|R|F)&&!_e[4].length&&_e[9]==1?be=be[ph(_e[0])].apply(be,_e[3]):be=oe.length==1&&Kg(oe)?be[Ee]():be.thru(oe)}return function(){var Ye=arguments,Xe=Ye[0];if(be&&Ye.length==1&&Vt(Xe))return be.plant(Xe).value();for(var tt=0,ft=y?f[tt].apply(this,Ye):Xe;++tt<y;)ft=f[tt].call(this,ft);return ft}})}function ch(a,f,y,E,B,oe,be,Ee,_e,Ye){var Xe=f&H,tt=f&A,ft=f&S,xt=f&(D|k),Rt=f&ce,zt=ft?n:tf(a);function Mt(){for(var Xt=arguments.length,rn=Y(Xt),Oi=Xt;Oi--;)rn[Oi]=arguments[Oi];if(xt)var ei=xl(Mt),Ii=hg(rn,ei);if(E&&(rn=Dx(rn,E,B,xt)),oe&&(rn=Ax(rn,oe,be,xt)),Xt-=Ii,xt&&Xt<Ye){var tr=li(rn,ei);return Ox(a,f,ch,Mt.placeholder,y,rn,tr,Ee,_e,Ye-Xt)}var Ao=tt?y:this,Ws=ft?Ao[a]:a;return Xt=rn.length,Ee?rn=GL(rn,Ee):Rt&&Xt>1&&rn.reverse(),Xe&&_e<Xt&&(rn.length=_e),this&&this!==Ln&&this instanceof Mt&&(Ws=zt||tf(Ws)),Ws.apply(Ao,rn)}return Mt}function Fx(a,f){return function(y,E){return nL(y,a,f(E),{})}}function fh(a,f){return function(y,E){var B;if(y===n&&E===n)return f;if(y!==n&&(B=y),E!==n){if(B===n)return E;typeof y=="string"||typeof E=="string"?(y=Fi(y),E=Fi(E)):(y=yx(y),E=yx(E)),B=a(y,E)}return B}}function kg(a){return Ks(function(f){return f=wn(f,Vr(Pt())),Wt(function(y){var E=this;return a(f,function(B){return Wn(B,E,y)})})})}function dh(a,f){f=f===n?" ":Fi(f);var y=f.length;if(y<2)return y?Ag(f,a):f;var E=Ag(f,Cn(a/$(f)));return Nr(f)?Ma(T(E),0,a).join(""):E.slice(0,a)}function PL(a,f,y,E){var B=f&A,oe=tf(a);function be(){for(var Ee=-1,_e=arguments.length,Ye=-1,Xe=E.length,tt=Y(Xe+_e),ft=this&&this!==Ln&&this instanceof be?oe:a;++Ye<Xe;)tt[Ye]=E[Ye];for(;_e--;)tt[Ye++]=arguments[++Ee];return Wn(ft,B?y:this,tt)}return be}function kx(a){return function(f,y,E){return E&&typeof E!="number"&&Qr(f,y,E)&&(y=E=n),f=qs(f),y===n?(y=f,f=0):y=qs(y),E=E===n?f<y?1:-1:qs(E),pL(f,y,E,a)}}function hh(a){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Gi(f),y=Gi(y)),a(f,y)}}function Ox(a,f,y,E,B,oe,be,Ee,_e,Ye){var Xe=f&D,tt=Xe?be:n,ft=Xe?n:be,xt=Xe?oe:n,Rt=Xe?n:oe;f|=Xe?R:O,f&=~(Xe?O:R),f&w||(f&=-4);var zt=[a,f,B,xt,tt,Rt,ft,Ee,_e,Ye],Mt=y.apply(n,zt);return Kg(a)&&Hx(Mt,zt),Mt.placeholder=E,Gx(Mt,a,f)}function Og(a){var f=Z[a];return function(y,E){if(y=Gi(y),E=E==null?0:On(Kt(E),292),E&&_i(y)){var B=(hn(y)+"e").split("e"),oe=f(B[0]+"e"+(+B[1]+E));return B=(hn(oe)+"e").split("e"),+(B[0]+"e"+(+B[1]-E))}return f(y)}}var _L=gl&&1/Aa(new gl([,-0]))[1]==N?function(a){return new gl(a)}:rv;function Ix(a){return function(f){var y=jr(f);return y==Dt?Hn(f):y==Ge?c(f):dg(f,a(f))}}function js(a,f,y,E,B,oe,be,Ee){var _e=f&S;if(!_e&&typeof a!="function")throw new re(s);var Ye=E?E.length:0;if(Ye||(f&=-97,E=B=n),be=be===n?be:an(Kt(be),0),Ee=Ee===n?Ee:Kt(Ee),Ye-=B?B.length:0,f&O){var Xe=E,tt=B;E=B=n}var ft=_e?n:Bg(a),xt=[a,f,y,E,B,Xe,tt,oe,be,Ee];if(ft&&qL(xt,ft),a=xt[0],f=xt[1],y=xt[2],E=xt[3],B=xt[4],Ee=xt[9]=xt[9]===n?_e?0:a.length:an(xt[9]-Ye,0),!Ee&&f&(D|k)&&(f&=-25),!f||f==A)var Rt=AL(a,f,y);else f==D||f==k?Rt=TL(a,f,Ee):(f==R||f==(A|R))&&!B.length?Rt=PL(a,f,y,E):Rt=ch.apply(n,xt);var zt=ft?gx:Hx;return Gx(zt(Rt,xt),a,f)}function Lx(a,f,y,E){return a===n||Do(a,Oe[y])&&!Ue.call(E,y)?f:a}function Bx(a,f,y,E,B,oe){return Nn(a)&&Nn(f)&&(oe.set(f,a),sh(a,f,n,Bx,oe),oe.delete(f)),a}function RL(a){return of(a)?n:a}function Vx(a,f,y,E,B,oe){var be=y&x,Ee=a.length,_e=f.length;if(Ee!=_e&&!(be&&_e>Ee))return!1;var Ye=oe.get(a),Xe=oe.get(f);if(Ye&&Xe)return Ye==f&&Xe==a;var tt=-1,ft=!0,xt=y&C?new bu:n;for(oe.set(a,f),oe.set(f,a);++tt<Ee;){var Rt=a[tt],zt=f[tt];if(E)var Mt=be?E(zt,Rt,tt,f,a,oe):E(Rt,zt,tt,a,f,oe);if(Mt!==n){if(Mt)continue;ft=!1;break}if(xt){if(!Zo(f,function(Xt,rn){if(!_n(xt,rn)&&(Rt===Xt||B(Rt,Xt,y,E,oe)))return xt.push(rn)})){ft=!1;break}}else if(!(Rt===zt||B(Rt,zt,y,E,oe))){ft=!1;break}}return oe.delete(a),oe.delete(f),ft}function ML(a,f,y,E,B,oe,be){switch(y){case Gt:if(a.byteLength!=f.byteLength||a.byteOffset!=f.byteOffset)return!1;a=a.buffer,f=f.buffer;case en:return!(a.byteLength!=f.byteLength||!oe(new ke(a),new ke(f)));case ye:case Ne:case ln:return Do(+a,+f);case Ke:return a.name==f.name&&a.message==f.message;case Re:case rt:return a==f+"";case Dt:var Ee=Hn;case Ge:var _e=E&x;if(Ee||(Ee=Aa),a.size!=f.size&&!_e)return!1;var Ye=be.get(a);if(Ye)return Ye==f;E|=C,be.set(a,f);var Xe=Vx(Ee(a),Ee(f),E,B,oe,be);return be.delete(a),Xe;case nt:if(Yc)return Yc.call(a)==Yc.call(f)}return!1}function FL(a,f,y,E,B,oe){var be=y&x,Ee=Ig(a),_e=Ee.length,Ye=Ig(f),Xe=Ye.length;if(_e!=Xe&&!be)return!1;for(var tt=_e;tt--;){var ft=Ee[tt];if(!(be?ft in f:Ue.call(f,ft)))return!1}var xt=oe.get(a),Rt=oe.get(f);if(xt&&Rt)return xt==f&&Rt==a;var zt=!0;oe.set(a,f),oe.set(f,a);for(var Mt=be;++tt<_e;){ft=Ee[tt];var Xt=a[ft],rn=f[ft];if(E)var Oi=be?E(rn,Xt,ft,f,a,oe):E(Xt,rn,ft,a,f,oe);if(!(Oi===n?Xt===rn||B(Xt,rn,y,E,oe):Oi)){zt=!1;break}Mt||(Mt=ft=="constructor")}if(zt&&!Mt){var ei=a.constructor,Ii=f.constructor;ei!=Ii&&"constructor"in a&&"constructor"in f&&!(typeof ei=="function"&&ei instanceof ei&&typeof Ii=="function"&&Ii instanceof Ii)&&(zt=!1)}return oe.delete(a),oe.delete(f),zt}function Ks(a){return zg(qx(a,n,ew),a+"")}function Ig(a){return ox(a,Er,Ng)}function Lg(a){return ox(a,hi,Nx)}var Bg=eh?function(a){return eh.get(a)}:rv;function ph(a){for(var f=a.name+"",y=vl[f],E=Ue.call(vl,f)?y.length:0;E--;){var B=y[E],oe=B.func;if(oe==null||oe==a)return B.name}return f}function xl(a){var f=Ue.call(X,"placeholder")?X:a;return f.placeholder}function Pt(){var a=X.iteratee||tv;return a=a===tv?ux:a,arguments.length?a(arguments[0],arguments[1]):a}function mh(a,f){var y=a.__data__;return jL(f)?y[typeof f=="string"?"string":"hash"]:y.map}function Vg(a){for(var f=Er(a),y=f.length;y--;){var E=f[y],B=a[E];f[y]=[E,B,Ux(B)]}return f}function wu(a,f){var y=mg(a,f);return ax(y)?y:n}function kL(a){var f=Ue.call(a,Gn),y=a[Gn];try{a[Gn]=n;var E=!0}catch{}var B=je.call(a);return E&&(f?a[Gn]=y:delete a[Gn]),B}var Ng=Ui?function(a){return a==null?[]:(a=L(a),Br(Ui(a),function(f){return kn.call(a,f)}))}:iv,Nx=Ui?function(a){for(var f=[];a;)bo(f,Ng(a)),a=Lt(a);return f}:iv,jr=Jr;(So&&jr(new So(new ArrayBuffer(1)))!=Gt||es&&jr(new es)!=Dt||Ta&&jr(Ta.resolve())!=we||gl&&jr(new gl)!=Ge||Hc&&jr(new Hc)!=Et)&&(jr=function(a){var f=Jr(a),y=f==It?a.constructor:n,E=y?Cu(y):"";if(E)switch(E){case g9:return Gt;case v9:return Dt;case y9:return we;case b9:return Ge;case $9:return Et}return f});function OL(a,f,y){for(var E=-1,B=y.length;++E<B;){var oe=y[E],be=oe.size;switch(oe.type){case"drop":a+=be;break;case"dropRight":f-=be;break;case"take":f=On(f,a+be);break;case"takeRight":a=an(a,f-be);break}}return{start:a,end:f}}function IL(a){var f=a.match(pr);return f?f[1].split(ya):[]}function jx(a,f,y){f=Ra(f,a);for(var E=-1,B=f.length,oe=!1;++E<B;){var be=rs(f[E]);if(!(oe=a!=null&&y(a,be)))break;a=a[be]}return oe||++E!=B?oe:(B=a==null?0:a.length,!!B&&wh(B)&&Us(be,B)&&(Vt(a)||Su(a)))}function LL(a){var f=a.length,y=new a.constructor(f);return f&&typeof a[0]=="string"&&Ue.call(a,"index")&&(y.index=a.index,y.input=a.input),y}function Kx(a){return typeof a.constructor=="function"&&!nf(a)?yl(Lt(a)):{}}function BL(a,f,y){var E=a.constructor;switch(f){case en:return Fg(a);case ye:case Ne:return new E(+a);case Gt:return xL(a,y);case Ir:case Tr:case Yt:case kt:case jt:case tn:case Zn:case Si:case ai:return Sx(a,y);case Dt:return new E;case ln:case rt:return new E(a);case Re:return wL(a);case Ge:return new E;case nt:return CL(a)}}function VL(a,f){var y=f.length;if(!y)return a;var E=y-1;return f[E]=(y>1?"& ":"")+f[E],f=f.join(y>2?", ":" "),a.replace(va,`{
66
- /* [wrapped with `+f+`] */
67
- `)}function NL(a){return Vt(a)||Su(a)||!!(Sr&&a&&a[Sr])}function Us(a,f){var y=typeof a;return f=f??I,!!f&&(y=="number"||y!="symbol"&&Bi.test(a))&&a>-1&&a%1==0&&a<f}function Qr(a,f,y){if(!Nn(y))return!1;var E=typeof f;return(E=="number"?di(y)&&Us(f,y.length):E=="string"&&f in y)?Do(y[f],a):!1}function jg(a,f){if(Vt(a))return!1;var y=typeof a;return y=="number"||y=="symbol"||y=="boolean"||a==null||ki(a)?!0:ga.test(a)||!fo.test(a)||f!=null&&a in L(f)}function jL(a){var f=typeof a;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?a!=="__proto__":a===null}function Kg(a){var f=ph(a),y=X[f];if(typeof y!="function"||!(f in Qt.prototype))return!1;if(a===y)return!0;var E=Bg(y);return!!E&&a===E[0]}function KL(a){return!!gt&&gt in a}var UL=ot?zs:ov;function nf(a){var f=a&&a.constructor,y=typeof f=="function"&&f.prototype||Oe;return a===y}function Ux(a){return a===a&&!Nn(a)}function zx(a,f){return function(y){return y==null?!1:y[a]===f&&(f!==n||a in L(y))}}function zL(a){var f=$h(a,function(E){return y.size===d&&y.clear(),E}),y=f.cache;return f}function qL(a,f){var y=a[1],E=f[1],B=y|E,oe=B<(A|S|H),be=E==H&&y==D||E==H&&y==F&&a[7].length<=f[8]||E==(H|F)&&f[7].length<=f[8]&&y==D;if(!(oe||be))return a;E&A&&(a[2]=f[2],B|=y&A?0:w);var Ee=f[3];if(Ee){var _e=a[3];a[3]=_e?Dx(_e,Ee,f[4]):Ee,a[4]=_e?li(a[3],h):f[4]}return Ee=f[5],Ee&&(_e=a[5],a[5]=_e?Ax(_e,Ee,f[6]):Ee,a[6]=_e?li(a[5],h):f[6]),Ee=f[7],Ee&&(a[7]=Ee),E&H&&(a[8]=a[8]==null?f[8]:On(a[8],f[8])),a[9]==null&&(a[9]=f[9]),a[0]=f[0],a[1]=B,a}function WL(a){var f=[];if(a!=null)for(var y in L(a))f.push(y);return f}function HL(a){return je.call(a)}function qx(a,f,y){return f=an(f===n?a.length-1:f,0),function(){for(var E=arguments,B=-1,oe=an(E.length-f,0),be=Y(oe);++B<oe;)be[B]=E[f+B];B=-1;for(var Ee=Y(f+1);++B<f;)Ee[B]=E[B];return Ee[f]=y(be),Wn(a,this,Ee)}}function Wx(a,f){return f.length<2?a:xu(a,Wi(f,0,-1))}function GL(a,f){for(var y=a.length,E=On(f.length,y),B=fi(a);E--;){var oe=f[E];a[E]=Us(oe,y)?B[oe]:n}return a}function Ug(a,f){if(!(f==="constructor"&&typeof a[f]=="function")&&f!="__proto__")return a[f]}var Hx=Yx(gx),rf=vt||function(a,f){return Ln.setTimeout(a,f)},zg=Yx(vL);function Gx(a,f,y){var E=f+"";return zg(a,VL(E,YL(IL(E),y)))}function Yx(a){var f=0,y=0;return function(){var E=Qo(),B=z-(E-y);if(y=E,B>0){if(++f>=De)return arguments[0]}else f=0;return a.apply(n,arguments)}}function gh(a,f){var y=-1,E=a.length,B=E-1;for(f=f===n?E:f;++y<f;){var oe=Dg(y,B),be=a[oe];a[oe]=a[y],a[y]=be}return a.length=f,a}var Zx=zL(function(a){var f=[];return a.charCodeAt(0)===46&&f.push(""),a.replace(Di,function(y,E,B,oe){f.push(B?oe.replace(Lr,"$1"):E||y)}),f});function rs(a){if(typeof a=="string"||ki(a))return a;var f=a+"";return f=="0"&&1/a==-1/0?"-0":f}function Cu(a){if(a!=null){try{return it.call(a)}catch{}try{return a+""}catch{}}return""}function YL(a,f){return Sn(Ie,function(y){var E="_."+y[0];f&y[1]&&!Yo(a,E)&&a.push(E)}),a.sort()}function Xx(a){if(a instanceof Qt)return a.clone();var f=new zi(a.__wrapped__,a.__chain__);return f.__actions__=fi(a.__actions__),f.__index__=a.__index__,f.__values__=a.__values__,f}function ZL(a,f,y){(y?Qr(a,f,y):f===n)?f=1:f=an(Kt(f),0);var E=a==null?0:a.length;if(!E||f<1)return[];for(var B=0,oe=0,be=Y(Cn(E/f));B<E;)be[oe++]=Wi(a,B,B+=f);return be}function XL(a){for(var f=-1,y=a==null?0:a.length,E=0,B=[];++f<y;){var oe=a[f];oe&&(B[E++]=oe)}return B}function JL(){var a=arguments.length;if(!a)return[];for(var f=Y(a-1),y=arguments[0],E=a;E--;)f[E-1]=arguments[E];return bo(Vt(y)?fi(y):[y],Fr(f,1))}var QL=Wt(function(a,f){return er(a)?Xc(a,Fr(f,1,er,!0)):[]}),e8=Wt(function(a,f){var y=Hi(f);return er(y)&&(y=n),er(a)?Xc(a,Fr(f,1,er,!0),Pt(y,2)):[]}),t8=Wt(function(a,f){var y=Hi(f);return er(y)&&(y=n),er(a)?Xc(a,Fr(f,1,er,!0),n,y):[]});function n8(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Kt(f),Wi(a,f<0?0:f,E)):[]}function r8(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Kt(f),f=E-f,Wi(a,0,f<0?0:f)):[]}function i8(a,f){return a&&a.length?uh(a,Pt(f,3),!0,!0):[]}function o8(a,f){return a&&a.length?uh(a,Pt(f,3),!0):[]}function s8(a,f,y,E){var B=a==null?0:a.length;return B?(y&&typeof y!="number"&&Qr(a,f,y)&&(y=0,E=B),J9(a,f,y,E)):[]}function Jx(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var B=y==null?0:Kt(y);return B<0&&(B=an(E+B,0)),mu(a,Pt(f,3),B)}function Qx(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var B=E-1;return y!==n&&(B=Kt(y),B=y<0?an(E+B,0):On(B,E-1)),mu(a,Pt(f,3),B,!0)}function ew(a){var f=a==null?0:a.length;return f?Fr(a,1):[]}function a8(a){var f=a==null?0:a.length;return f?Fr(a,N):[]}function u8(a,f){var y=a==null?0:a.length;return y?(f=f===n?1:Kt(f),Fr(a,f)):[]}function l8(a){for(var f=-1,y=a==null?0:a.length,E={};++f<y;){var B=a[f];E[B[0]]=B[1]}return E}function tw(a){return a&&a.length?a[0]:n}function c8(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var B=y==null?0:Kt(y);return B<0&&(B=an(E+B,0)),Is(a,f,B)}function f8(a){var f=a==null?0:a.length;return f?Wi(a,0,-1):[]}var d8=Wt(function(a){var f=wn(a,Rg);return f.length&&f[0]===a[0]?xg(f):[]}),h8=Wt(function(a){var f=Hi(a),y=wn(a,Rg);return f===Hi(y)?f=n:y.pop(),y.length&&y[0]===a[0]?xg(y,Pt(f,2)):[]}),p8=Wt(function(a){var f=Hi(a),y=wn(a,Rg);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===a[0]?xg(y,n,f):[]});function m8(a,f){return a==null?"":xo.call(a,f)}function Hi(a){var f=a==null?0:a.length;return f?a[f-1]:n}function g8(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var B=E;return y!==n&&(B=Kt(y),B=B<0?an(E+B,0):On(B,E-1)),f===f?v(a,f,B):mu(a,Uc,B,!0)}function v8(a,f){return a&&a.length?dx(a,Kt(f)):n}var y8=Wt(nw);function nw(a,f){return a&&a.length&&f&&f.length?Eg(a,f):a}function b8(a,f,y){return a&&a.length&&f&&f.length?Eg(a,f,Pt(y,2)):a}function $8(a,f,y){return a&&a.length&&f&&f.length?Eg(a,f,n,y):a}var x8=Ks(function(a,f){var y=a==null?0:a.length,E=vg(a,f);return mx(a,wn(f,function(B){return Us(B,y)?+B:B}).sort(Ex)),E});function w8(a,f){var y=[];if(!(a&&a.length))return y;var E=-1,B=[],oe=a.length;for(f=Pt(f,3);++E<oe;){var be=a[E];f(be,E,a)&&(y.push(be),B.push(E))}return mx(a,B),y}function qg(a){return a==null?a:Mi.call(a)}function C8(a,f,y){var E=a==null?0:a.length;return E?(y&&typeof y!="number"&&Qr(a,f,y)?(f=0,y=E):(f=f==null?0:Kt(f),y=y===n?E:Kt(y)),Wi(a,f,y)):[]}function S8(a,f){return ah(a,f)}function E8(a,f,y){return Tg(a,f,Pt(y,2))}function D8(a,f){var y=a==null?0:a.length;if(y){var E=ah(a,f);if(E<y&&Do(a[E],f))return E}return-1}function A8(a,f){return ah(a,f,!0)}function T8(a,f,y){return Tg(a,f,Pt(y,2),!0)}function P8(a,f){var y=a==null?0:a.length;if(y){var E=ah(a,f,!0)-1;if(Do(a[E],f))return E}return-1}function _8(a){return a&&a.length?vx(a):[]}function R8(a,f){return a&&a.length?vx(a,Pt(f,2)):[]}function M8(a){var f=a==null?0:a.length;return f?Wi(a,1,f):[]}function F8(a,f,y){return a&&a.length?(f=y||f===n?1:Kt(f),Wi(a,0,f<0?0:f)):[]}function k8(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Kt(f),f=E-f,Wi(a,f<0?0:f,E)):[]}function O8(a,f){return a&&a.length?uh(a,Pt(f,3),!1,!0):[]}function I8(a,f){return a&&a.length?uh(a,Pt(f,3)):[]}var L8=Wt(function(a){return _a(Fr(a,1,er,!0))}),B8=Wt(function(a){var f=Hi(a);return er(f)&&(f=n),_a(Fr(a,1,er,!0),Pt(f,2))}),V8=Wt(function(a){var f=Hi(a);return f=typeof f=="function"?f:n,_a(Fr(a,1,er,!0),n,f)});function N8(a){return a&&a.length?_a(a):[]}function j8(a,f){return a&&a.length?_a(a,Pt(f,2)):[]}function K8(a,f){return f=typeof f=="function"?f:n,a&&a.length?_a(a,n,f):[]}function Wg(a){if(!(a&&a.length))return[];var f=0;return a=Br(a,function(y){if(er(y))return f=an(y.length,f),!0}),pl(f,function(y){return wn(a,dl(y))})}function rw(a,f){if(!(a&&a.length))return[];var y=Wg(a);return f==null?y:wn(y,function(E){return Wn(f,n,E)})}var U8=Wt(function(a,f){return er(a)?Xc(a,f):[]}),z8=Wt(function(a){return _g(Br(a,er))}),q8=Wt(function(a){var f=Hi(a);return er(f)&&(f=n),_g(Br(a,er),Pt(f,2))}),W8=Wt(function(a){var f=Hi(a);return f=typeof f=="function"?f:n,_g(Br(a,er),n,f)}),H8=Wt(Wg);function G8(a,f){return xx(a||[],f||[],Zc)}function Y8(a,f){return xx(a||[],f||[],ef)}var Z8=Wt(function(a){var f=a.length,y=f>1?a[f-1]:n;return y=typeof y=="function"?(a.pop(),y):n,rw(a,y)});function iw(a){var f=X(a);return f.__chain__=!0,f}function X8(a,f){return f(a),a}function vh(a,f){return f(a)}var J8=Ks(function(a){var f=a.length,y=f?a[0]:0,E=this.__wrapped__,B=function(oe){return vg(oe,a)};return f>1||this.__actions__.length||!(E instanceof Qt)||!Us(y)?this.thru(B):(E=E.slice(y,+y+(f?1:0)),E.__actions__.push({func:vh,args:[B],thisArg:n}),new zi(E,this.__chain__).thru(function(oe){return f&&!oe.length&&oe.push(n),oe}))});function Q8(){return iw(this)}function eB(){return new zi(this.value(),this.__chain__)}function tB(){this.__values__===n&&(this.__values__=yw(this.value()));var a=this.__index__>=this.__values__.length,f=a?n:this.__values__[this.__index__++];return{done:a,value:f}}function nB(){return this}function rB(a){for(var f,y=this;y instanceof nh;){var E=Xx(y);E.__index__=0,E.__values__=n,f?B.__wrapped__=E:f=E;var B=E;y=y.__wrapped__}return B.__wrapped__=a,f}function iB(){var a=this.__wrapped__;if(a instanceof Qt){var f=a;return this.__actions__.length&&(f=new Qt(this)),f=f.reverse(),f.__actions__.push({func:vh,args:[qg],thisArg:n}),new zi(f,this.__chain__)}return this.thru(qg)}function oB(){return $x(this.__wrapped__,this.__actions__)}var sB=lh(function(a,f,y){Ue.call(a,y)?++a[y]:Ns(a,y,1)});function aB(a,f,y){var E=Vt(a)?Os:X9;return y&&Qr(a,f,y)&&(f=n),E(a,Pt(f,3))}function uB(a,f){var y=Vt(a)?Br:rx;return y(a,Pt(f,3))}var lB=Rx(Jx),cB=Rx(Qx);function fB(a,f){return Fr(yh(a,f),1)}function dB(a,f){return Fr(yh(a,f),N)}function hB(a,f,y){return y=y===n?1:Kt(y),Fr(yh(a,f),y)}function ow(a,f){var y=Vt(a)?Sn:Pa;return y(a,Pt(f,3))}function sw(a,f){var y=Vt(a)?wr:nx;return y(a,Pt(f,3))}var pB=lh(function(a,f,y){Ue.call(a,y)?a[y].push(f):Ns(a,y,[f])});function mB(a,f,y,E){a=di(a)?a:Cl(a),y=y&&!E?Kt(y):0;var B=a.length;return y<0&&(y=an(B+y,0)),Ch(a)?y<=B&&a.indexOf(f,y)>-1:!!B&&Is(a,f,y)>-1}var gB=Wt(function(a,f,y){var E=-1,B=typeof f=="function",oe=di(a)?Y(a.length):[];return Pa(a,function(be){oe[++E]=B?Wn(f,be,y):Jc(be,f,y)}),oe}),vB=lh(function(a,f,y){Ns(a,y,f)});function yh(a,f){var y=Vt(a)?wn:lx;return y(a,Pt(f,3))}function yB(a,f,y,E){return a==null?[]:(Vt(f)||(f=f==null?[]:[f]),y=E?n:y,Vt(y)||(y=y==null?[]:[y]),hx(a,f,y))}var bB=lh(function(a,f,y){a[y?0:1].push(f)},function(){return[[],[]]});function $B(a,f,y){var E=Vt(a)?fl:zc,B=arguments.length<3;return E(a,Pt(f,4),y,B,Pa)}function xB(a,f,y){var E=Vt(a)?du:zc,B=arguments.length<3;return E(a,Pt(f,4),y,B,nx)}function wB(a,f){var y=Vt(a)?Br:rx;return y(a,xh(Pt(f,3)))}function CB(a){var f=Vt(a)?J$:mL;return f(a)}function SB(a,f,y){(y?Qr(a,f,y):f===n)?f=1:f=Kt(f);var E=Vt(a)?W9:gL;return E(a,f)}function EB(a){var f=Vt(a)?H9:yL;return f(a)}function DB(a){if(a==null)return 0;if(di(a))return Ch(a)?$(a):a.length;var f=jr(a);return f==Dt||f==Ge?a.size:Cg(a).length}function AB(a,f,y){var E=Vt(a)?Zo:bL;return y&&Qr(a,f,y)&&(f=n),E(a,Pt(f,3))}var TB=Wt(function(a,f){if(a==null)return[];var y=f.length;return y>1&&Qr(a,f[0],f[1])?f=[]:y>2&&Qr(f[0],f[1],f[2])&&(f=[f[0]]),hx(a,Fr(f,1),[])}),bh=Mr||function(){return Ln.Date.now()};function PB(a,f){if(typeof f!="function")throw new re(s);return a=Kt(a),function(){if(--a<1)return f.apply(this,arguments)}}function aw(a,f,y){return f=y?n:f,f=a&&f==null?a.length:f,js(a,H,n,n,n,n,f)}function uw(a,f){var y;if(typeof f!="function")throw new re(s);return a=Kt(a),function(){return--a>0&&(y=f.apply(this,arguments)),a<=1&&(f=n),y}}var Hg=Wt(function(a,f,y){var E=A;if(y.length){var B=li(y,xl(Hg));E|=R}return js(a,E,f,y,B)}),lw=Wt(function(a,f,y){var E=A|S;if(y.length){var B=li(y,xl(lw));E|=R}return js(f,E,a,y,B)});function cw(a,f,y){f=y?n:f;var E=js(a,D,n,n,n,n,n,f);return E.placeholder=cw.placeholder,E}function fw(a,f,y){f=y?n:f;var E=js(a,k,n,n,n,n,n,f);return E.placeholder=fw.placeholder,E}function dw(a,f,y){var E,B,oe,be,Ee,_e,Ye=0,Xe=!1,tt=!1,ft=!0;if(typeof a!="function")throw new re(s);f=Gi(f)||0,Nn(y)&&(Xe=!!y.leading,tt="maxWait"in y,oe=tt?an(Gi(y.maxWait)||0,f):oe,ft="trailing"in y?!!y.trailing:ft);function xt(tr){var Ao=E,Ws=B;return E=B=n,Ye=tr,be=a.apply(Ws,Ao),be}function Rt(tr){return Ye=tr,Ee=rf(Xt,f),Xe?xt(tr):be}function zt(tr){var Ao=tr-_e,Ws=tr-Ye,Rw=f-Ao;return tt?On(Rw,oe-Ws):Rw}function Mt(tr){var Ao=tr-_e,Ws=tr-Ye;return _e===n||Ao>=f||Ao<0||tt&&Ws>=oe}function Xt(){var tr=bh();if(Mt(tr))return rn(tr);Ee=rf(Xt,zt(tr))}function rn(tr){return Ee=n,ft&&E?xt(tr):(E=B=n,be)}function Oi(){Ee!==n&&wx(Ee),Ye=0,E=_e=B=Ee=n}function ei(){return Ee===n?be:rn(bh())}function Ii(){var tr=bh(),Ao=Mt(tr);if(E=arguments,B=this,_e=tr,Ao){if(Ee===n)return Rt(_e);if(tt)return wx(Ee),Ee=rf(Xt,f),xt(_e)}return Ee===n&&(Ee=rf(Xt,f)),be}return Ii.cancel=Oi,Ii.flush=ei,Ii}var _B=Wt(function(a,f){return tx(a,1,f)}),RB=Wt(function(a,f,y){return tx(a,Gi(f)||0,y)});function MB(a){return js(a,ce)}function $h(a,f){if(typeof a!="function"||f!=null&&typeof f!="function")throw new re(s);var y=function(){var E=arguments,B=f?f.apply(this,E):E[0],oe=y.cache;if(oe.has(B))return oe.get(B);var be=a.apply(this,E);return y.cache=oe.set(B,be)||oe,be};return y.cache=new($h.Cache||Vs),y}$h.Cache=Vs;function xh(a){if(typeof a!="function")throw new re(s);return function(){var f=arguments;switch(f.length){case 0:return!a.call(this);case 1:return!a.call(this,f[0]);case 2:return!a.call(this,f[0],f[1]);case 3:return!a.call(this,f[0],f[1],f[2])}return!a.apply(this,f)}}function FB(a){return uw(2,a)}var kB=$L(function(a,f){f=f.length==1&&Vt(f[0])?wn(f[0],Vr(Pt())):wn(Fr(f,1),Vr(Pt()));var y=f.length;return Wt(function(E){for(var B=-1,oe=On(E.length,y);++B<oe;)E[B]=f[B].call(this,E[B]);return Wn(a,this,E)})}),Gg=Wt(function(a,f){var y=li(f,xl(Gg));return js(a,R,n,f,y)}),hw=Wt(function(a,f){var y=li(f,xl(hw));return js(a,O,n,f,y)}),OB=Ks(function(a,f){return js(a,F,n,n,n,f)});function IB(a,f){if(typeof a!="function")throw new re(s);return f=f===n?f:Kt(f),Wt(a,f)}function LB(a,f){if(typeof a!="function")throw new re(s);return f=f==null?0:an(Kt(f),0),Wt(function(y){var E=y[f],B=Ma(y,0,f);return E&&bo(B,E),Wn(a,this,B)})}function BB(a,f,y){var E=!0,B=!0;if(typeof a!="function")throw new re(s);return Nn(y)&&(E="leading"in y?!!y.leading:E,B="trailing"in y?!!y.trailing:B),dw(a,f,{leading:E,maxWait:f,trailing:B})}function VB(a){return aw(a,1)}function NB(a,f){return Gg(Mg(f),a)}function jB(){if(!arguments.length)return[];var a=arguments[0];return Vt(a)?a:[a]}function KB(a){return qi(a,b)}function UB(a,f){return f=typeof f=="function"?f:n,qi(a,b,f)}function zB(a){return qi(a,m|b)}function qB(a,f){return f=typeof f=="function"?f:n,qi(a,m|b,f)}function WB(a,f){return f==null||ex(a,f,Er(f))}function Do(a,f){return a===f||a!==a&&f!==f}var HB=hh($g),GB=hh(function(a,f){return a>=f}),Su=sx(function(){return arguments}())?sx:function(a){return Yn(a)&&Ue.call(a,"callee")&&!kn.call(a,"callee")},Vt=Y.isArray,YB=ks?Vr(ks):rL;function di(a){return a!=null&&wh(a.length)&&!zs(a)}function er(a){return Yn(a)&&di(a)}function ZB(a){return a===!0||a===!1||Yn(a)&&Jr(a)==ye}var Fa=$o||ov,XB=Zd?Vr(Zd):iL;function JB(a){return Yn(a)&&a.nodeType===1&&!of(a)}function QB(a){if(a==null)return!0;if(di(a)&&(Vt(a)||typeof a=="string"||typeof a.splice=="function"||Fa(a)||wl(a)||Su(a)))return!a.length;var f=jr(a);if(f==Dt||f==Ge)return!a.size;if(nf(a))return!Cg(a).length;for(var y in a)if(Ue.call(a,y))return!1;return!0}function eV(a,f){return Qc(a,f)}function tV(a,f,y){y=typeof y=="function"?y:n;var E=y?y(a,f):n;return E===n?Qc(a,f,n,y):!!E}function Yg(a){if(!Yn(a))return!1;var f=Jr(a);return f==Ke||f==He||typeof a.message=="string"&&typeof a.name=="string"&&!of(a)}function nV(a){return typeof a=="number"&&_i(a)}function zs(a){if(!Nn(a))return!1;var f=Jr(a);return f==Be||f==st||f==Qe||f==Se}function pw(a){return typeof a=="number"&&a==Kt(a)}function wh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=I}function Nn(a){var f=typeof a;return a!=null&&(f=="object"||f=="function")}function Yn(a){return a!=null&&typeof a=="object"}var mw=Xd?Vr(Xd):sL;function rV(a,f){return a===f||wg(a,f,Vg(f))}function iV(a,f,y){return y=typeof y=="function"?y:n,wg(a,f,Vg(f),y)}function oV(a){return gw(a)&&a!=+a}function sV(a){if(UL(a))throw new he(o);return ax(a)}function aV(a){return a===null}function uV(a){return a==null}function gw(a){return typeof a=="number"||Yn(a)&&Jr(a)==ln}function of(a){if(!Yn(a)||Jr(a)!=It)return!1;var f=Lt(a);if(f===null)return!0;var y=Ue.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&it.call(y)==xe}var Zg=jc?Vr(jc):aL;function lV(a){return pw(a)&&a>=-9007199254740991&&a<=I}var vw=Da?Vr(Da):uL;function Ch(a){return typeof a=="string"||!Vt(a)&&Yn(a)&&Jr(a)==rt}function ki(a){return typeof a=="symbol"||Yn(a)&&Jr(a)==nt}var wl=yo?Vr(yo):lL;function cV(a){return a===n}function fV(a){return Yn(a)&&jr(a)==Et}function dV(a){return Yn(a)&&Jr(a)==xn}var hV=hh(Sg),pV=hh(function(a,f){return a<=f});function yw(a){if(!a)return[];if(di(a))return Ch(a)?T(a):fi(a);if(cr&&a[cr])return Jo(a[cr]());var f=jr(a),y=f==Dt?Hn:f==Ge?Aa:Cl;return y(a)}function qs(a){if(!a)return a===0?a:0;if(a=Gi(a),a===N||a===-1/0){var f=a<0?-1:1;return f*de}return a===a?a:0}function Kt(a){var f=qs(a),y=f%1;return f===f?y?f-y:f:0}function bw(a){return a?$u(Kt(a),0,ie):0}function Gi(a){if(typeof a=="number")return a;if(ki(a))return se;if(Nn(a)){var f=typeof a.valueOf=="function"?a.valueOf():a;a=Nn(f)?f+"":f}if(typeof a!="string")return a===0?a:+a;a=Qd(a);var y=Yr.test(a);return y||Ss.test(a)?gr(a.slice(2),y?2:8):Ti.test(a)?se:+a}function $w(a){return ns(a,hi(a))}function mV(a){return a?$u(Kt(a),-9007199254740991,I):a===0?a:0}function hn(a){return a==null?"":Fi(a)}var gV=bl(function(a,f){if(nf(f)||di(f)){ns(f,Er(f),a);return}for(var y in f)Ue.call(f,y)&&Zc(a,y,f[y])}),xw=bl(function(a,f){ns(f,hi(f),a)}),Sh=bl(function(a,f,y,E){ns(f,hi(f),a,E)}),vV=bl(function(a,f,y,E){ns(f,Er(f),a,E)}),yV=Ks(vg);function bV(a,f){var y=yl(a);return f==null?y:Q$(y,f)}var $V=Wt(function(a,f){a=L(a);var y=-1,E=f.length,B=E>2?f[2]:n;for(B&&Qr(f[0],f[1],B)&&(E=1);++y<E;)for(var oe=f[y],be=hi(oe),Ee=-1,_e=be.length;++Ee<_e;){var Ye=be[Ee],Xe=a[Ye];(Xe===n||Do(Xe,Oe[Ye])&&!Ue.call(a,Ye))&&(a[Ye]=oe[Ye])}return a}),xV=Wt(function(a){return a.push(n,Bx),Wn(ww,n,a)});function wV(a,f){return Kc(a,Pt(f,3),ts)}function CV(a,f){return Kc(a,Pt(f,3),bg)}function SV(a,f){return a==null?a:yg(a,Pt(f,3),hi)}function EV(a,f){return a==null?a:ix(a,Pt(f,3),hi)}function DV(a,f){return a&&ts(a,Pt(f,3))}function AV(a,f){return a&&bg(a,Pt(f,3))}function TV(a){return a==null?[]:oh(a,Er(a))}function PV(a){return a==null?[]:oh(a,hi(a))}function Xg(a,f,y){var E=a==null?n:xu(a,f);return E===n?y:E}function _V(a,f){return a!=null&&jx(a,f,Q9)}function Jg(a,f){return a!=null&&jx(a,f,eL)}var RV=Fx(function(a,f,y){f!=null&&typeof f.toString!="function"&&(f=je.call(f)),a[f]=y},ev(pi)),MV=Fx(function(a,f,y){f!=null&&typeof f.toString!="function"&&(f=je.call(f)),Ue.call(a,f)?a[f].push(y):a[f]=[y]},Pt),FV=Wt(Jc);function Er(a){return di(a)?X$(a):Cg(a)}function hi(a){return di(a)?X$(a,!0):cL(a)}function kV(a,f){var y={};return f=Pt(f,3),ts(a,function(E,B,oe){Ns(y,f(E,B,oe),E)}),y}function OV(a,f){var y={};return f=Pt(f,3),ts(a,function(E,B,oe){Ns(y,B,f(E,B,oe))}),y}var IV=bl(function(a,f,y){sh(a,f,y)}),ww=bl(function(a,f,y,E){sh(a,f,y,E)}),LV=Ks(function(a,f){var y={};if(a==null)return y;var E=!1;f=wn(f,function(oe){return oe=Ra(oe,a),E||(E=oe.length>1),oe}),ns(a,Lg(a),y),E&&(y=qi(y,m|g|b,RL));for(var B=f.length;B--;)Pg(y,f[B]);return y});function BV(a,f){return Cw(a,xh(Pt(f)))}var VV=Ks(function(a,f){return a==null?{}:dL(a,f)});function Cw(a,f){if(a==null)return{};var y=wn(Lg(a),function(E){return[E]});return f=Pt(f),px(a,y,function(E,B){return f(E,B[0])})}function NV(a,f,y){f=Ra(f,a);var E=-1,B=f.length;for(B||(B=1,a=n);++E<B;){var oe=a==null?n:a[rs(f[E])];oe===n&&(E=B,oe=y),a=zs(oe)?oe.call(a):oe}return a}function jV(a,f,y){return a==null?a:ef(a,f,y)}function KV(a,f,y,E){return E=typeof E=="function"?E:n,a==null?a:ef(a,f,y,E)}var Sw=Ix(Er),Ew=Ix(hi);function UV(a,f,y){var E=Vt(a),B=E||Fa(a)||wl(a);if(f=Pt(f,4),y==null){var oe=a&&a.constructor;B?y=E?new oe:[]:Nn(a)?y=zs(oe)?yl(Lt(a)):{}:y={}}return(B?Sn:ts)(a,function(be,Ee,_e){return f(y,be,Ee,_e)}),y}function zV(a,f){return a==null?!0:Pg(a,f)}function qV(a,f,y){return a==null?a:bx(a,f,Mg(y))}function WV(a,f,y,E){return E=typeof E=="function"?E:n,a==null?a:bx(a,f,Mg(y),E)}function Cl(a){return a==null?[]:qc(a,Er(a))}function HV(a){return a==null?[]:qc(a,hi(a))}function GV(a,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Gi(y),y=y===y?y:0),f!==n&&(f=Gi(f),f=f===f?f:0),$u(Gi(a),f,y)}function YV(a,f,y){return f=qs(f),y===n?(y=f,f=0):y=qs(y),a=Gi(a),tL(a,f,y)}function ZV(a,f,y){if(y&&typeof y!="boolean"&&Qr(a,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof a=="boolean"&&(y=a,a=n)),a===n&&f===n?(a=0,f=1):(a=qs(a),f===n?(f=a,a=0):f=qs(f)),a>f){var E=a;a=f,f=E}if(y||a%1||f%1){var B=Co();return On(a+B*(f-a+Fn("1e-"+((B+"").length-1))),f)}return Dg(a,f)}var XV=$l(function(a,f,y){return f=f.toLowerCase(),a+(y?Dw(f):f)});function Dw(a){return Qg(hn(a).toLowerCase())}function Aw(a){return a=hn(a),a&&a.replace(Zr,pg).replace(Rs,"")}function JV(a,f,y){a=hn(a),f=Fi(f);var E=a.length;y=y===n?E:$u(Kt(y),0,E);var B=y;return y-=f.length,y>=0&&a.slice(y,B)==f}function QV(a){return a=hn(a),a&&Cs.test(a)?a.replace(Pr,Ls):a}function eN(a){return a=hn(a),a&&wt.test(a)?a.replace(Ai,"\\$&"):a}var tN=$l(function(a,f,y){return a+(y?"-":"")+f.toLowerCase()}),nN=$l(function(a,f,y){return a+(y?" ":"")+f.toLowerCase()}),rN=_x("toLowerCase");function iN(a,f,y){a=hn(a),f=Kt(f);var E=f?$(a):0;if(!f||E>=f)return a;var B=(f-E)/2;return dh(ci(B),y)+a+dh(Cn(B),y)}function oN(a,f,y){a=hn(a),f=Kt(f);var E=f?$(a):0;return f&&E<f?a+dh(f-E,y):a}function sN(a,f,y){a=hn(a),f=Kt(f);var E=f?$(a):0;return f&&E<f?dh(f-E,y)+a:a}function aN(a,f,y){return y||f==null?f=0:f&&(f=+f),Ri(hn(a).replace(An,""),f||0)}function uN(a,f,y){return(y?Qr(a,f,y):f===n)?f=1:f=Kt(f),Ag(hn(a),f)}function lN(){var a=arguments,f=hn(a[0]);return a.length<3?f:f.replace(a[1],a[2])}var cN=$l(function(a,f,y){return a+(y?"_":"")+f.toLowerCase()});function fN(a,f,y){return y&&typeof y!="number"&&Qr(a,f,y)&&(f=y=n),y=y===n?ie:y>>>0,y?(a=hn(a),a&&(typeof f=="string"||f!=null&&!Zg(f))&&(f=Fi(f),!f&&Nr(a))?Ma(T(a),0,y):a.split(f,y)):[]}var dN=$l(function(a,f,y){return a+(y?" ":"")+Qg(f)});function hN(a,f,y){return a=hn(a),y=y==null?0:$u(Kt(y),0,a.length),f=Fi(f),a.slice(y,y+f.length)==f}function pN(a,f,y){var E=X.templateSettings;y&&Qr(a,f,y)&&(f=n),a=hn(a),f=Sh({},f,E,Lx);var B=Sh({},f.imports,E.imports,Lx),oe=Er(B),be=qc(B,oe),Ee,_e,Ye=0,Xe=f.interpolate||Tn,tt="__p += '",ft=V((f.escape||Tn).source+"|"+Xe.source+"|"+(Xe===ma?ut:Tn).source+"|"+(f.evaluate||Tn).source+"|$","g"),xt="//# sourceURL="+(Ue.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fs+"]")+`
68
- `;a.replace(ft,function(Mt,Xt,rn,Oi,ei,Ii){return rn||(rn=Oi),tt+=a.slice(Ye,Ii).replace(po,Pi),Xt&&(Ee=!0,tt+=`' +
69
- __e(`+Xt+`) +
70
- '`),ei&&(_e=!0,tt+=`';
71
- `+ei+`;
72
- __p += '`),rn&&(tt+=`' +
73
- ((__t = (`+rn+`)) == null ? '' : __t) +
74
- '`),Ye=Ii+Mt.length,Mt}),tt+=`';
75
- `;var Rt=Ue.call(f,"variable")&&f.variable;if(!Rt)tt=`with (obj) {
76
- `+tt+`
77
- }
78
- `;else if(su.test(Rt))throw new he(u);tt=(_e?tt.replace(ui,""):tt).replace(Gr,"$1").replace(Ko,"$1;"),tt="function("+(Rt||"obj")+`) {
79
- `+(Rt?"":`obj || (obj = {});
80
- `)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(_e?`, __j = Array.prototype.join;
81
- function print() { __p += __j.call(arguments, '') }
82
- `:`;
83
- `)+tt+`return __p
84
- }`;var zt=Pw(function(){return W(oe,xt+"return "+tt).apply(n,be)});if(zt.source=tt,Yg(zt))throw zt;return zt}function mN(a){return hn(a).toLowerCase()}function gN(a){return hn(a).toUpperCase()}function vN(a,f,y){if(a=hn(a),a&&(y||f===n))return Qd(a);if(!a||!(f=Fi(f)))return a;var E=T(a),B=T(f),oe=ml(E,B),be=Cr(E,B)+1;return Ma(E,oe,be).join("")}function yN(a,f,y){if(a=hn(a),a&&(y||f===n))return a.slice(0,P(a)+1);if(!a||!(f=Fi(f)))return a;var E=T(a),B=Cr(E,T(f))+1;return Ma(E,0,B).join("")}function bN(a,f,y){if(a=hn(a),a&&(y||f===n))return a.replace(An,"");if(!a||!(f=Fi(f)))return a;var E=T(a),B=ml(E,T(f));return Ma(E,B).join("")}function $N(a,f){var y=ae,E=q;if(Nn(f)){var B="separator"in f?f.separator:B;y="length"in f?Kt(f.length):y,E="omission"in f?Fi(f.omission):E}a=hn(a);var oe=a.length;if(Nr(a)){var be=T(a);oe=be.length}if(y>=oe)return a;var Ee=y-$(E);if(Ee<1)return E;var _e=be?Ma(be,0,Ee).join(""):a.slice(0,Ee);if(B===n)return _e+E;if(be&&(Ee+=_e.length-Ee),Zg(B)){if(a.slice(Ee).search(B)){var Ye,Xe=_e;for(B.global||(B=V(B.source,hn(yn.exec(B))+"g")),B.lastIndex=0;Ye=B.exec(Xe);)var tt=Ye.index;_e=_e.slice(0,tt===n?Ee:tt)}}else if(a.indexOf(Fi(B),Ee)!=Ee){var ft=_e.lastIndexOf(B);ft>-1&&(_e=_e.slice(0,ft))}return _e+E}function xN(a){return a=hn(a),a&&Ei.test(a)?a.replace(Ct,U):a}var wN=$l(function(a,f,y){return a+(y?" ":"")+f.toUpperCase()}),Qg=_x("toUpperCase");function Tw(a,f,y){return a=hn(a),f=y?n:f,f===n?Wc(a)?$e(a):fg(a):a.match(f)||[]}var Pw=Wt(function(a,f){try{return Wn(a,n,f)}catch(y){return Yg(y)?y:new he(y)}}),CN=Ks(function(a,f){return Sn(f,function(y){y=rs(y),Ns(a,y,Hg(a[y],a))}),a});function SN(a){var f=a==null?0:a.length,y=Pt();return a=f?wn(a,function(E){if(typeof E[1]!="function")throw new re(s);return[y(E[0]),E[1]]}):[],Wt(function(E){for(var B=-1;++B<f;){var oe=a[B];if(Wn(oe[0],this,E))return Wn(oe[1],this,E)}})}function EN(a){return Z9(qi(a,m))}function ev(a){return function(){return a}}function DN(a,f){return a==null||a!==a?f:a}var AN=Mx(),TN=Mx(!0);function pi(a){return a}function tv(a){return ux(typeof a=="function"?a:qi(a,m))}function PN(a){return cx(qi(a,m))}function _N(a,f){return fx(a,qi(f,m))}var RN=Wt(function(a,f){return function(y){return Jc(y,a,f)}}),MN=Wt(function(a,f){return function(y){return Jc(a,y,f)}});function nv(a,f,y){var E=Er(f),B=oh(f,E);y==null&&!(Nn(f)&&(B.length||!E.length))&&(y=f,f=a,a=this,B=oh(f,Er(f)));var oe=!(Nn(y)&&"chain"in y)||!!y.chain,be=zs(a);return Sn(B,function(Ee){var _e=f[Ee];a[Ee]=_e,be&&(a.prototype[Ee]=function(){var Ye=this.__chain__;if(oe||Ye){var Xe=a(this.__wrapped__),tt=Xe.__actions__=fi(this.__actions__);return tt.push({func:_e,args:arguments,thisArg:a}),Xe.__chain__=Ye,Xe}return _e.apply(a,bo([this.value()],arguments))})}),a}function FN(){return Ln._===this&&(Ln._=fe),this}function rv(){}function kN(a){return a=Kt(a),Wt(function(f){return dx(f,a)})}var ON=kg(wn),IN=kg(Os),LN=kg(Zo);function _w(a){return jg(a)?dl(rs(a)):hL(a)}function BN(a){return function(f){return a==null?n:xu(a,f)}}var VN=kx(),NN=kx(!0);function iv(){return[]}function ov(){return!1}function jN(){return{}}function KN(){return""}function UN(){return!0}function zN(a,f){if(a=Kt(a),a<1||a>I)return[];var y=ie,E=On(a,ie);f=Pt(f),a-=ie;for(var B=pl(E,f);++y<a;)f(y);return B}function qN(a){return Vt(a)?wn(a,rs):ki(a)?[a]:fi(Zx(hn(a)))}function WN(a){var f=++ht;return hn(a)+f}var HN=fh(function(a,f){return a+f},0),GN=Og("ceil"),YN=fh(function(a,f){return a/f},1),ZN=Og("floor");function XN(a){return a&&a.length?ih(a,pi,$g):n}function JN(a,f){return a&&a.length?ih(a,Pt(f,2),$g):n}function QN(a){return gu(a,pi)}function ej(a,f){return gu(a,Pt(f,2))}function tj(a){return a&&a.length?ih(a,pi,Sg):n}function nj(a,f){return a&&a.length?ih(a,Pt(f,2),Sg):n}var rj=fh(function(a,f){return a*f},1),ij=Og("round"),oj=fh(function(a,f){return a-f},0);function sj(a){return a&&a.length?Xo(a,pi):0}function aj(a,f){return a&&a.length?Xo(a,Pt(f,2)):0}return X.after=PB,X.ary=aw,X.assign=gV,X.assignIn=xw,X.assignInWith=Sh,X.assignWith=vV,X.at=yV,X.before=uw,X.bind=Hg,X.bindAll=CN,X.bindKey=lw,X.castArray=jB,X.chain=iw,X.chunk=ZL,X.compact=XL,X.concat=JL,X.cond=SN,X.conforms=EN,X.constant=ev,X.countBy=sB,X.create=bV,X.curry=cw,X.curryRight=fw,X.debounce=dw,X.defaults=$V,X.defaultsDeep=xV,X.defer=_B,X.delay=RB,X.difference=QL,X.differenceBy=e8,X.differenceWith=t8,X.drop=n8,X.dropRight=r8,X.dropRightWhile=i8,X.dropWhile=o8,X.fill=s8,X.filter=uB,X.flatMap=fB,X.flatMapDeep=dB,X.flatMapDepth=hB,X.flatten=ew,X.flattenDeep=a8,X.flattenDepth=u8,X.flip=MB,X.flow=AN,X.flowRight=TN,X.fromPairs=l8,X.functions=TV,X.functionsIn=PV,X.groupBy=pB,X.initial=f8,X.intersection=d8,X.intersectionBy=h8,X.intersectionWith=p8,X.invert=RV,X.invertBy=MV,X.invokeMap=gB,X.iteratee=tv,X.keyBy=vB,X.keys=Er,X.keysIn=hi,X.map=yh,X.mapKeys=kV,X.mapValues=OV,X.matches=PN,X.matchesProperty=_N,X.memoize=$h,X.merge=IV,X.mergeWith=ww,X.method=RN,X.methodOf=MN,X.mixin=nv,X.negate=xh,X.nthArg=kN,X.omit=LV,X.omitBy=BV,X.once=FB,X.orderBy=yB,X.over=ON,X.overArgs=kB,X.overEvery=IN,X.overSome=LN,X.partial=Gg,X.partialRight=hw,X.partition=bB,X.pick=VV,X.pickBy=Cw,X.property=_w,X.propertyOf=BN,X.pull=y8,X.pullAll=nw,X.pullAllBy=b8,X.pullAllWith=$8,X.pullAt=x8,X.range=VN,X.rangeRight=NN,X.rearg=OB,X.reject=wB,X.remove=w8,X.rest=IB,X.reverse=qg,X.sampleSize=SB,X.set=jV,X.setWith=KV,X.shuffle=EB,X.slice=C8,X.sortBy=TB,X.sortedUniq=_8,X.sortedUniqBy=R8,X.split=fN,X.spread=LB,X.tail=M8,X.take=F8,X.takeRight=k8,X.takeRightWhile=O8,X.takeWhile=I8,X.tap=X8,X.throttle=BB,X.thru=vh,X.toArray=yw,X.toPairs=Sw,X.toPairsIn=Ew,X.toPath=qN,X.toPlainObject=$w,X.transform=UV,X.unary=VB,X.union=L8,X.unionBy=B8,X.unionWith=V8,X.uniq=N8,X.uniqBy=j8,X.uniqWith=K8,X.unset=zV,X.unzip=Wg,X.unzipWith=rw,X.update=qV,X.updateWith=WV,X.values=Cl,X.valuesIn=HV,X.without=U8,X.words=Tw,X.wrap=NB,X.xor=z8,X.xorBy=q8,X.xorWith=W8,X.zip=H8,X.zipObject=G8,X.zipObjectDeep=Y8,X.zipWith=Z8,X.entries=Sw,X.entriesIn=Ew,X.extend=xw,X.extendWith=Sh,nv(X,X),X.add=HN,X.attempt=Pw,X.camelCase=XV,X.capitalize=Dw,X.ceil=GN,X.clamp=GV,X.clone=KB,X.cloneDeep=zB,X.cloneDeepWith=qB,X.cloneWith=UB,X.conformsTo=WB,X.deburr=Aw,X.defaultTo=DN,X.divide=YN,X.endsWith=JV,X.eq=Do,X.escape=QV,X.escapeRegExp=eN,X.every=aB,X.find=lB,X.findIndex=Jx,X.findKey=wV,X.findLast=cB,X.findLastIndex=Qx,X.findLastKey=CV,X.floor=ZN,X.forEach=ow,X.forEachRight=sw,X.forIn=SV,X.forInRight=EV,X.forOwn=DV,X.forOwnRight=AV,X.get=Xg,X.gt=HB,X.gte=GB,X.has=_V,X.hasIn=Jg,X.head=tw,X.identity=pi,X.includes=mB,X.indexOf=c8,X.inRange=YV,X.invoke=FV,X.isArguments=Su,X.isArray=Vt,X.isArrayBuffer=YB,X.isArrayLike=di,X.isArrayLikeObject=er,X.isBoolean=ZB,X.isBuffer=Fa,X.isDate=XB,X.isElement=JB,X.isEmpty=QB,X.isEqual=eV,X.isEqualWith=tV,X.isError=Yg,X.isFinite=nV,X.isFunction=zs,X.isInteger=pw,X.isLength=wh,X.isMap=mw,X.isMatch=rV,X.isMatchWith=iV,X.isNaN=oV,X.isNative=sV,X.isNil=uV,X.isNull=aV,X.isNumber=gw,X.isObject=Nn,X.isObjectLike=Yn,X.isPlainObject=of,X.isRegExp=Zg,X.isSafeInteger=lV,X.isSet=vw,X.isString=Ch,X.isSymbol=ki,X.isTypedArray=wl,X.isUndefined=cV,X.isWeakMap=fV,X.isWeakSet=dV,X.join=m8,X.kebabCase=tN,X.last=Hi,X.lastIndexOf=g8,X.lowerCase=nN,X.lowerFirst=rN,X.lt=hV,X.lte=pV,X.max=XN,X.maxBy=JN,X.mean=QN,X.meanBy=ej,X.min=tj,X.minBy=nj,X.stubArray=iv,X.stubFalse=ov,X.stubObject=jN,X.stubString=KN,X.stubTrue=UN,X.multiply=rj,X.nth=v8,X.noConflict=FN,X.noop=rv,X.now=bh,X.pad=iN,X.padEnd=oN,X.padStart=sN,X.parseInt=aN,X.random=ZV,X.reduce=$B,X.reduceRight=xB,X.repeat=uN,X.replace=lN,X.result=NV,X.round=ij,X.runInContext=M,X.sample=CB,X.size=DB,X.snakeCase=cN,X.some=AB,X.sortedIndex=S8,X.sortedIndexBy=E8,X.sortedIndexOf=D8,X.sortedLastIndex=A8,X.sortedLastIndexBy=T8,X.sortedLastIndexOf=P8,X.startCase=dN,X.startsWith=hN,X.subtract=oj,X.sum=sj,X.sumBy=aj,X.template=pN,X.times=zN,X.toFinite=qs,X.toInteger=Kt,X.toLength=bw,X.toLower=mN,X.toNumber=Gi,X.toSafeInteger=mV,X.toString=hn,X.toUpper=gN,X.trim=vN,X.trimEnd=yN,X.trimStart=bN,X.truncate=$N,X.unescape=xN,X.uniqueId=WN,X.upperCase=wN,X.upperFirst=Qg,X.each=ow,X.eachRight=sw,X.first=tw,nv(X,function(){var a={};return ts(X,function(f,y){Ue.call(X.prototype,y)||(a[y]=f)}),a}(),{chain:!1}),X.VERSION=r,Sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){X[a].placeholder=X}),Sn(["drop","take"],function(a,f){Qt.prototype[a]=function(y){y=y===n?1:an(Kt(y),0);var E=this.__filtered__&&!f?new Qt(this):this.clone();return E.__filtered__?E.__takeCount__=On(y,E.__takeCount__):E.__views__.push({size:On(y,ie),type:a+(E.__dir__<0?"Right":"")}),E},Qt.prototype[a+"Right"]=function(y){return this.reverse()[a](y).reverse()}}),Sn(["filter","map","takeWhile"],function(a,f){var y=f+1,E=y==j||y==K;Qt.prototype[a]=function(B){var oe=this.clone();return oe.__iteratees__.push({iteratee:Pt(B,3),type:y}),oe.__filtered__=oe.__filtered__||E,oe}}),Sn(["head","last"],function(a,f){var y="take"+(f?"Right":"");Qt.prototype[a]=function(){return this[y](1).value()[0]}}),Sn(["initial","tail"],function(a,f){var y="drop"+(f?"":"Right");Qt.prototype[a]=function(){return this.__filtered__?new Qt(this):this[y](1)}}),Qt.prototype.compact=function(){return this.filter(pi)},Qt.prototype.find=function(a){return this.filter(a).head()},Qt.prototype.findLast=function(a){return this.reverse().find(a)},Qt.prototype.invokeMap=Wt(function(a,f){return typeof a=="function"?new Qt(this):this.map(function(y){return Jc(y,a,f)})}),Qt.prototype.reject=function(a){return this.filter(xh(Pt(a)))},Qt.prototype.slice=function(a,f){a=Kt(a);var y=this;return y.__filtered__&&(a>0||f<0)?new Qt(y):(a<0?y=y.takeRight(-a):a&&(y=y.drop(a)),f!==n&&(f=Kt(f),y=f<0?y.dropRight(-f):y.take(f-a)),y)},Qt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Qt.prototype.toArray=function(){return this.take(ie)},ts(Qt.prototype,function(a,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),E=/^(?:head|last)$/.test(f),B=X[E?"take"+(f=="last"?"Right":""):f],oe=E||/^find/.test(f);B&&(X.prototype[f]=function(){var be=this.__wrapped__,Ee=E?[1]:arguments,_e=be instanceof Qt,Ye=Ee[0],Xe=_e||Vt(be),tt=function(Xt){var rn=B.apply(X,bo([Xt],Ee));return E&&ft?rn[0]:rn};Xe&&y&&typeof Ye=="function"&&Ye.length!=1&&(_e=Xe=!1);var ft=this.__chain__,xt=!!this.__actions__.length,Rt=oe&&!ft,zt=_e&&!xt;if(!oe&&Xe){be=zt?be:new Qt(this);var Mt=a.apply(be,Ee);return Mt.__actions__.push({func:vh,args:[tt],thisArg:n}),new zi(Mt,ft)}return Rt&&zt?a.apply(this,Ee):(Mt=this.thru(tt),Rt?E?Mt.value()[0]:Mt.value():Mt)})}),Sn(["pop","push","shift","sort","splice","unshift"],function(a){var f=le[a],y=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);X.prototype[a]=function(){var B=arguments;if(E&&!this.__chain__){var oe=this.value();return f.apply(Vt(oe)?oe:[],B)}return this[y](function(be){return f.apply(Vt(be)?be:[],B)})}}),ts(Qt.prototype,function(a,f){var y=X[f];if(y){var E=y.name+"";Ue.call(vl,E)||(vl[E]=[]),vl[E].push({name:f,func:y})}}),vl[ch(n,S).name]=[{name:"wrapper",func:n}],Qt.prototype.clone=x9,Qt.prototype.reverse=w9,Qt.prototype.value=C9,X.prototype.at=J8,X.prototype.chain=Q8,X.prototype.commit=eB,X.prototype.next=tB,X.prototype.plant=rB,X.prototype.reverse=iB,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=oB,X.prototype.first=X.prototype.head,cr&&(X.prototype[cr]=nB),X},Fe=Ce();ji?((ji.exports=Fe)._=Fe,Ni._=Fe):Ln._=Fe}).call(SU)}(wf,wf.exports)),wf.exports}var U2=EU();const DU=Lo(U2);var bd=e=>e.type==="checkbox",Fu=e=>e instanceof Date,ti=e=>e==null;const z2=e=>typeof e=="object";var sr=e=>!ti(e)&&!Array.isArray(e)&&z2(e)&&!Fu(e),q2=e=>sr(e)&&e.target?bd(e.target)?e.target.checked:e.target.value:e,AU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,W2=(e,t)=>e.has(AU(t)),TU=e=>{const t=e.constructor&&e.constructor.prototype;return sr(t)&&t.hasOwnProperty("isPrototypeOf")},T4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function mi(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(T4&&(e instanceof Blob||r))&&(n||sr(e)))if(t=n?[]:{},!n&&!TU(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=mi(e[i]));else return e;return t}var xm=e=>Array.isArray(e)?e.filter(Boolean):[],ir=e=>e===void 0,lt=(e,t,n)=>{if(!t||!sr(e))return n;const r=xm(t.split(/[,[\].]+?/)).reduce((i,o)=>ti(i)?i:i[o],e);return ir(r)||r===e?ir(e[t])?n:e[t]:r},to=e=>typeof e=="boolean",P4=e=>/^\w*$/.test(e),H2=e=>xm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),vn=(e,t,n)=>{let r=-1;const i=P4(t)?[t]:H2(t),o=i.length,s=o-1;for(;++r<o;){const u=i[r];let l=n;if(r!==s){const d=e[u];l=sr(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=l,e=e[u]}return e};const Dp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ro={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Hs={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},G2=_.createContext(null),wm=()=>_.useContext(G2),PU=e=>{const{children:t,...n}=e;return _.createElement(G2.Provider,{value:n},t)};var Y2=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==Ro.all&&(t._proxyFormState[s]=!r||Ro.all),n&&(n[s]=!0),e[s]}});return i},gi=e=>sr(e)&&!Object.keys(e).length,Z2=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return gi(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||Ro.all))},Of=e=>Array.isArray(e)?e:[e],X2=(e,t,n)=>!e||!t||e===t||Of(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function _4(e){const t=_.useRef(e);t.current=e,_.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function _U(e){const t=wm(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[s,u]=_.useState(n._formState),l=_.useRef(!0),d=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=_.useRef(i);return h.current=i,_4({disabled:r,next:m=>l.current&&X2(h.current,m.name,o)&&Z2(m,d.current,n._updateFormState)&&u({...n._formState,...m}),subject:n._subjects.state}),_.useEffect(()=>(l.current=!0,d.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),_.useMemo(()=>Y2(s,n,d.current,!1),[s,n])}var ls=e=>typeof e=="string",J2=(e,t,n,r,i)=>ls(e)?(r&&t.watch.add(e),lt(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),lt(n,o))):(r&&(t.watchAll=!0),n);function Q2(e){const t=wm(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:s}=e||{},u=_.useRef(r);u.current=r,_4({disabled:o,subject:n._subjects.values,next:h=>{X2(u.current,h.name,s)&&d(mi(J2(u.current,n._names,h.values||n._formValues,!1,i)))}});const[l,d]=_.useState(n._getWatch(r,i));return _.useEffect(()=>n._removeUnmounted()),l}function RU(e){const t=wm(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,s=W2(i._names.array,n),u=Q2({control:i,name:n,defaultValue:lt(i._formValues,n,lt(i._defaultValues,n,e.defaultValue)),exact:!0}),l=_U({control:i,name:n,exact:!0}),d=_.useRef(i.register(n,{...e.rules,value:u,...to(e.disabled)?{disabled:e.disabled}:{}})),h=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!lt(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!lt(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!lt(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!lt(l.validatingFields,n)},error:{enumerable:!0,get:()=>lt(l.errors,n)}}),[l,n]),m=_.useMemo(()=>({name:n,value:u,...to(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:g=>d.current.onChange({target:{value:q2(g),name:n},type:Dp.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:lt(i._formValues,n),name:n},type:Dp.BLUR}),ref:g=>{const b=lt(i._fields,n);b&&g&&(b._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:x=>g.setCustomValidity(x),reportValidity:()=>g.reportValidity()})}}),[n,i._formValues,r,l.disabled,u,i._fields]);return _.useEffect(()=>{const g=i._options.shouldUnregister||o,b=(x,C)=>{const A=lt(i._fields,x);A&&A._f&&(A._f.mount=C)};if(b(n,!0),g){const x=mi(lt(i._options.defaultValues,n));vn(i._defaultValues,n,x),ir(lt(i._formValues,n))&&vn(i._formValues,n,x)}return!s&&i.register(n),()=>{(s?g&&!i._state.action:g)?i.unregister(n):b(n,!1)}},[n,i,s,o]),_.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),_.useMemo(()=>({field:m,formState:l,fieldState:h}),[m,l,h])}const MU=e=>e.render(RU(e));var e_=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},aC=e=>({isOnSubmit:!e||e===Ro.onSubmit,isOnBlur:e===Ro.onBlur,isOnChange:e===Ro.onChange,isOnAll:e===Ro.all,isOnTouch:e===Ro.onTouched}),uC=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const If=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=lt(e,i);if(o){const{_f:s,...u}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(If(u,t))break}else if(sr(u)&&If(u,t))break}}};var FU=(e,t,n)=>{const r=Of(lt(e,n));return vn(r,"root",t[n]),vn(e,n,r),e},R4=e=>e.type==="file",us=e=>typeof e=="function",Ap=e=>{if(!T4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rp=e=>ls(e),M4=e=>e.type==="radio",Tp=e=>e instanceof RegExp;const lC={value:!1,isValid:!1},cC={value:!0,isValid:!0};var t_=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ir(e[0].attributes.value)?ir(e[0].value)||e[0].value===""?cC:{value:e[0].value,isValid:!0}:cC:lC}return lC};const fC={isValid:!1,value:null};var n_=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,fC):fC;function dC(e,t,n="validate"){if(rp(e)||Array.isArray(e)&&e.every(rp)||to(e)&&!e)return{type:n,message:rp(e)?e:"",ref:t}}var El=e=>sr(e)&&!Tp(e)?e:{value:e,message:""},hC=async(e,t,n,r,i,o)=>{const{ref:s,refs:u,required:l,maxLength:d,minLength:h,min:m,max:g,pattern:b,validate:x,name:C,valueAsNumber:A,mount:S}=e._f,w=lt(n,C);if(!S||t.has(C))return{};const D=u?u[0]:s,k=De=>{i&&D.reportValidity&&(D.setCustomValidity(to(De)?"":De||""),D.reportValidity())},R={},O=M4(s),H=bd(s),F=O||H,ce=(A||R4(s))&&ir(s.value)&&ir(w)||Ap(s)&&s.value===""||w===""||Array.isArray(w)&&!w.length,ae=e_.bind(null,C,r,R),q=(De,z,j,ne=Hs.maxLength,K=Hs.minLength)=>{const N=De?z:j;R[C]={type:De?ne:K,message:N,ref:s,...ae(De?ne:K,N)}};if(o?!Array.isArray(w)||!w.length:l&&(!F&&(ce||ti(w))||to(w)&&!w||H&&!t_(u).isValid||O&&!n_(u).isValid)){const{value:De,message:z}=rp(l)?{value:!!l,message:l}:El(l);if(De&&(R[C]={type:Hs.required,message:z,ref:D,...ae(Hs.required,z)},!r))return k(z),R}if(!ce&&(!ti(m)||!ti(g))){let De,z;const j=El(g),ne=El(m);if(!ti(w)&&!isNaN(w)){const K=s.valueAsNumber||w&&+w;ti(j.value)||(De=K>j.value),ti(ne.value)||(z=K<ne.value)}else{const K=s.valueAsDate||new Date(w),N=se=>new Date(new Date().toDateString()+" "+se),I=s.type=="time",de=s.type=="week";ls(j.value)&&w&&(De=I?N(w)>N(j.value):de?w>j.value:K>new Date(j.value)),ls(ne.value)&&w&&(z=I?N(w)<N(ne.value):de?w<ne.value:K<new Date(ne.value))}if((De||z)&&(q(!!De,j.message,ne.message,Hs.max,Hs.min),!r))return k(R[C].message),R}if((d||h)&&!ce&&(ls(w)||o&&Array.isArray(w))){const De=El(d),z=El(h),j=!ti(De.value)&&w.length>+De.value,ne=!ti(z.value)&&w.length<+z.value;if((j||ne)&&(q(j,De.message,z.message),!r))return k(R[C].message),R}if(b&&!ce&&ls(w)){const{value:De,message:z}=El(b);if(Tp(De)&&!w.match(De)&&(R[C]={type:Hs.pattern,message:z,ref:s,...ae(Hs.pattern,z)},!r))return k(z),R}if(x){if(us(x)){const De=await x(w,n),z=dC(De,D);if(z&&(R[C]={...z,...ae(Hs.validate,z.message)},!r))return k(z.message),R}else if(sr(x)){let De={};for(const z in x){if(!gi(De)&&!r)break;const j=dC(await x[z](w,n),D,z);j&&(De={...j,...ae(z,j.message)},k(j.message),r&&(R[C]=De))}if(!gi(De)&&(R[C]={ref:D,...De},!r))return R}}return k(!0),R};function kU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=ir(e)?r++:e[t[r++]];return e}function OU(e){for(const t in e)if(e.hasOwnProperty(t)&&!ir(e[t]))return!1;return!0}function vr(e,t){const n=Array.isArray(t)?t:P4(t)?[t]:H2(t),r=n.length===1?e:kU(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(sr(r)&&gi(r)||Array.isArray(r)&&OU(r))&&vr(e,n.slice(0,-1)),e}var mv=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},Z1=e=>ti(e)||!z2(e);function ja(e,t){if(Z1(e)||Z1(t))return e===t;if(Fu(e)&&Fu(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Fu(o)&&Fu(s)||sr(o)&&sr(s)||Array.isArray(o)&&Array.isArray(s)?!ja(o,s):o!==s)return!1}}return!0}var r_=e=>e.type==="select-multiple",IU=e=>M4(e)||bd(e),gv=e=>Ap(e)&&e.isConnected,i_=e=>{for(const t in e)if(us(e[t]))return!0;return!1};function Pp(e,t={}){const n=Array.isArray(e);if(sr(e)||n)for(const r in e)Array.isArray(e[r])||sr(e[r])&&!i_(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Pp(e[r],t[r])):ti(e[r])||(t[r]=!0);return t}function o_(e,t,n){const r=Array.isArray(e);if(sr(e)||r)for(const i in e)Array.isArray(e[i])||sr(e[i])&&!i_(e[i])?ir(t)||Z1(n[i])?n[i]=Array.isArray(e[i])?Pp(e[i],[]):{...Pp(e[i])}:o_(e[i],ti(t)?{}:t[i],n[i]):n[i]=!ja(e[i],t[i]);return n}var sf=(e,t)=>o_(e,t,Pp(t)),s_=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ir(e)?e:t?e===""?NaN:e&&+e:n&&ls(e)?new Date(e):r?r(e):e;function vv(e){const t=e.ref;return R4(t)?t.files:M4(t)?n_(e.refs).value:r_(t)?[...t.selectedOptions].map(({value:n})=>n):bd(t)?t_(e.refs).value:s_(ir(t.value)?e.ref.value:t.value,e)}var LU=(e,t,n,r)=>{const i={};for(const o of e){const s=lt(t,o);s&&vn(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},af=e=>ir(e)?e:Tp(e)?e.source:sr(e)?Tp(e.value)?e.value.source:e.value:e;const pC="AsyncFunction";var BU=e=>!!e&&!!e.validate&&!!(us(e.validate)&&e.validate.constructor.name===pC||sr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===pC)),VU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function mC(e,t,n){const r=lt(e,n);if(r||P4(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=lt(t,o),u=lt(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};i.pop()}return{name:n}}var NU=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,jU=(e,t)=>!xm(lt(e,t)).length&&vr(e,t);const KU={mode:Ro.onSubmit,reValidateMode:Ro.onChange,shouldFocusError:!0};function UU(e={}){let t={...KU,...e},n={submitCount:0,isDirty:!1,isLoading:us(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=sr(t.defaultValues)||sr(t.values)?mi(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:mi(i),s={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,d=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:mv(),array:mv(),state:mv()},g=aC(t.mode),b=aC(t.reValidateMode),x=t.criteriaMode===Ro.all,C=we=>Se=>{clearTimeout(d),d=setTimeout(we,Se)},A=async we=>{if(!t.disabled&&(h.isValid||we)){const Se=t.resolver?gi((await F()).errors):await ae(r,!0);Se!==n.isValid&&m.state.next({isValid:Se})}},S=(we,Se)=>{!t.disabled&&(h.isValidating||h.validatingFields)&&((we||Array.from(u.mount)).forEach(Re=>{Re&&(Se?vn(n.validatingFields,Re,Se):vr(n.validatingFields,Re))}),m.state.next({validatingFields:n.validatingFields,isValidating:!gi(n.validatingFields)}))},w=(we,Se=[],Re,Ge,rt=!0,nt=!0)=>{if(Ge&&Re&&!t.disabled){if(s.action=!0,nt&&Array.isArray(lt(r,we))){const dt=Re(lt(r,we),Ge.argA,Ge.argB);rt&&vn(r,we,dt)}if(nt&&Array.isArray(lt(n.errors,we))){const dt=Re(lt(n.errors,we),Ge.argA,Ge.argB);rt&&vn(n.errors,we,dt),jU(n.errors,we)}if(h.touchedFields&&nt&&Array.isArray(lt(n.touchedFields,we))){const dt=Re(lt(n.touchedFields,we),Ge.argA,Ge.argB);rt&&vn(n.touchedFields,we,dt)}h.dirtyFields&&(n.dirtyFields=sf(i,o)),m.state.next({name:we,isDirty:De(we,Se),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else vn(o,we,Se)},D=(we,Se)=>{vn(n.errors,we,Se),m.state.next({errors:n.errors})},k=we=>{n.errors=we,m.state.next({errors:n.errors,isValid:!1})},R=(we,Se,Re,Ge)=>{const rt=lt(r,we);if(rt){const nt=lt(o,we,ir(Re)?lt(i,we):Re);ir(nt)||Ge&&Ge.defaultChecked||Se?vn(o,we,Se?nt:vv(rt._f)):ne(we,nt),s.mount&&A()}},O=(we,Se,Re,Ge,rt)=>{let nt=!1,dt=!1;const Et={name:we};if(!t.disabled){const xn=!!(lt(r,we)&&lt(r,we)._f&&lt(r,we)._f.disabled);if(!Re||Ge){h.isDirty&&(dt=n.isDirty,n.isDirty=Et.isDirty=De(),nt=dt!==Et.isDirty);const en=xn||ja(lt(i,we),Se);dt=!!(!xn&&lt(n.dirtyFields,we)),en||xn?vr(n.dirtyFields,we):vn(n.dirtyFields,we,!0),Et.dirtyFields=n.dirtyFields,nt=nt||h.dirtyFields&&dt!==!en}if(Re){const en=lt(n.touchedFields,we);en||(vn(n.touchedFields,we,Re),Et.touchedFields=n.touchedFields,nt=nt||h.touchedFields&&en!==Re)}nt&&rt&&m.state.next(Et)}return nt?Et:{}},H=(we,Se,Re,Ge)=>{const rt=lt(n.errors,we),nt=h.isValid&&to(Se)&&n.isValid!==Se;if(t.delayError&&Re?(l=C(()=>D(we,Re)),l(t.delayError)):(clearTimeout(d),l=null,Re?vn(n.errors,we,Re):vr(n.errors,we)),(Re?!ja(rt,Re):rt)||!gi(Ge)||nt){const dt={...Ge,...nt&&to(Se)?{isValid:Se}:{},errors:n.errors,name:we};n={...n,...dt},m.state.next(dt)}},F=async we=>{S(we,!0);const Se=await t.resolver(o,t.context,LU(we||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return S(we),Se},ce=async we=>{const{errors:Se}=await F(we);if(we)for(const Re of we){const Ge=lt(Se,Re);Ge?vn(n.errors,Re,Ge):vr(n.errors,Re)}else n.errors=Se;return Se},ae=async(we,Se,Re={valid:!0})=>{for(const Ge in we){const rt=we[Ge];if(rt){const{_f:nt,...dt}=rt;if(nt){const Et=u.array.has(nt.name),xn=rt._f&&BU(rt._f);xn&&h.validatingFields&&S([Ge],!0);const en=await hC(rt,u.disabled,o,x,t.shouldUseNativeValidation&&!Se,Et);if(xn&&h.validatingFields&&S([Ge]),en[nt.name]&&(Re.valid=!1,Se))break;!Se&&(lt(en,nt.name)?Et?FU(n.errors,en,nt.name):vn(n.errors,nt.name,en[nt.name]):vr(n.errors,nt.name))}!gi(dt)&&await ae(dt,Se,Re)}}return Re.valid},q=()=>{for(const we of u.unMount){const Se=lt(r,we);Se&&(Se._f.refs?Se._f.refs.every(Re=>!gv(Re)):!gv(Se._f.ref))&&Je(we)}u.unMount=new Set},De=(we,Se)=>!t.disabled&&(we&&Se&&vn(o,we,Se),!ja(ie(),i)),z=(we,Se,Re)=>J2(we,u,{...s.mount?o:ir(Se)?i:ls(we)?{[we]:Se}:Se},Re,Se),j=we=>xm(lt(s.mount?o:i,we,t.shouldUnregister?lt(i,we,[]):[])),ne=(we,Se,Re={})=>{const Ge=lt(r,we);let rt=Se;if(Ge){const nt=Ge._f;nt&&(!nt.disabled&&vn(o,we,s_(Se,nt)),rt=Ap(nt.ref)&&ti(Se)?"":Se,r_(nt.ref)?[...nt.ref.options].forEach(dt=>dt.selected=rt.includes(dt.value)):nt.refs?bd(nt.ref)?nt.refs.length>1?nt.refs.forEach(dt=>(!dt.defaultChecked||!dt.disabled)&&(dt.checked=Array.isArray(rt)?!!rt.find(Et=>Et===dt.value):rt===dt.value)):nt.refs[0]&&(nt.refs[0].checked=!!rt):nt.refs.forEach(dt=>dt.checked=dt.value===rt):R4(nt.ref)?nt.ref.value="":(nt.ref.value=rt,nt.ref.type||m.values.next({name:we,values:{...o}})))}(Re.shouldDirty||Re.shouldTouch)&&O(we,rt,Re.shouldTouch,Re.shouldDirty,!0),Re.shouldValidate&&se(we)},K=(we,Se,Re)=>{for(const Ge in Se){const rt=Se[Ge],nt=`${we}.${Ge}`,dt=lt(r,nt);(u.array.has(we)||sr(rt)||dt&&!dt._f)&&!Fu(rt)?K(nt,rt,Re):ne(nt,rt,Re)}},N=(we,Se,Re={})=>{const Ge=lt(r,we),rt=u.array.has(we),nt=mi(Se);vn(o,we,nt),rt?(m.array.next({name:we,values:{...o}}),(h.isDirty||h.dirtyFields)&&Re.shouldDirty&&m.state.next({name:we,dirtyFields:sf(i,o),isDirty:De(we,nt)})):Ge&&!Ge._f&&!ti(nt)?K(we,nt,Re):ne(we,nt,Re),uC(we,u)&&m.state.next({...n}),m.values.next({name:s.mount?we:void 0,values:{...o}})},I=async we=>{s.mount=!0;const Se=we.target;let Re=Se.name,Ge=!0;const rt=lt(r,Re),nt=()=>Se.type?vv(rt._f):q2(we),dt=Et=>{Ge=Number.isNaN(Et)||Fu(Et)&&isNaN(Et.getTime())||ja(Et,lt(o,Re,Et))};if(rt){let Et,xn;const en=nt(),Gt=we.type===Dp.BLUR||we.type===Dp.FOCUS_OUT,Ir=!VU(rt._f)&&!t.resolver&&!lt(n.errors,Re)&&!rt._f.deps||NU(Gt,lt(n.touchedFields,Re),n.isSubmitted,b,g),Tr=uC(Re,u,Gt);vn(o,Re,en),Gt?(rt._f.onBlur&&rt._f.onBlur(we),l&&l(0)):rt._f.onChange&&rt._f.onChange(we);const Yt=O(Re,en,Gt,!1),kt=!gi(Yt)||Tr;if(!Gt&&m.values.next({name:Re,type:we.type,values:{...o}}),Ir)return h.isValid&&(t.mode==="onBlur"&&Gt?A():Gt||A()),kt&&m.state.next({name:Re,...Tr?{}:Yt});if(!Gt&&Tr&&m.state.next({...n}),t.resolver){const{errors:jt}=await F([Re]);if(dt(en),Ge){const tn=mC(n.errors,r,Re),Zn=mC(jt,r,tn.name||Re);Et=Zn.error,Re=Zn.name,xn=gi(jt)}}else S([Re],!0),Et=(await hC(rt,u.disabled,o,x,t.shouldUseNativeValidation))[Re],S([Re]),dt(en),Ge&&(Et?xn=!1:h.isValid&&(xn=await ae(r,!0)));Ge&&(rt._f.deps&&se(rt._f.deps),H(Re,xn,Et,Yt))}},de=(we,Se)=>{if(lt(n.errors,Se)&&we.focus)return we.focus(),1},se=async(we,Se={})=>{let Re,Ge;const rt=Of(we);if(t.resolver){const nt=await ce(ir(we)?we:rt);Re=gi(nt),Ge=we?!rt.some(dt=>lt(nt,dt)):Re}else we?(Ge=(await Promise.all(rt.map(async nt=>{const dt=lt(r,nt);return await ae(dt&&dt._f?{[nt]:dt}:dt)}))).every(Boolean),!(!Ge&&!n.isValid)&&A()):Ge=Re=await ae(r);return m.state.next({...!ls(we)||h.isValid&&Re!==n.isValid?{}:{name:we},...t.resolver||!we?{isValid:Re}:{},errors:n.errors}),Se.shouldFocus&&!Ge&&If(r,de,we?rt:u.mount),Ge},ie=we=>{const Se={...s.mount?o:i};return ir(we)?Se:ls(we)?lt(Se,we):we.map(Re=>lt(Se,Re))},Ae=(we,Se)=>({invalid:!!lt((Se||n).errors,we),isDirty:!!lt((Se||n).dirtyFields,we),error:lt((Se||n).errors,we),isValidating:!!lt(n.validatingFields,we),isTouched:!!lt((Se||n).touchedFields,we)}),Pe=we=>{we&&Of(we).forEach(Se=>vr(n.errors,Se)),m.state.next({errors:we?n.errors:{}})},Ie=(we,Se,Re)=>{const Ge=(lt(r,we,{_f:{}})._f||{}).ref,rt=lt(n.errors,we)||{},{ref:nt,message:dt,type:Et,...xn}=rt;vn(n.errors,we,{...xn,...Se,ref:Ge}),m.state.next({name:we,errors:n.errors,isValid:!1}),Re&&Re.shouldFocus&&Ge&&Ge.focus&&Ge.focus()},Le=(we,Se)=>us(we)?m.values.subscribe({next:Re=>we(z(void 0,Se),Re)}):z(we,Se,!0),Je=(we,Se={})=>{for(const Re of we?Of(we):u.mount)u.mount.delete(Re),u.array.delete(Re),Se.keepValue||(vr(r,Re),vr(o,Re)),!Se.keepError&&vr(n.errors,Re),!Se.keepDirty&&vr(n.dirtyFields,Re),!Se.keepTouched&&vr(n.touchedFields,Re),!Se.keepIsValidating&&vr(n.validatingFields,Re),!t.shouldUnregister&&!Se.keepDefaultValue&&vr(i,Re);m.values.next({values:{...o}}),m.state.next({...n,...Se.keepDirty?{isDirty:De()}:{}}),!Se.keepIsValid&&A()},Qe=({disabled:we,name:Se,field:Re,fields:Ge})=>{(to(we)&&s.mount||we||u.disabled.has(Se))&&(we?u.disabled.add(Se):u.disabled.delete(Se),O(Se,vv(Re?Re._f:lt(Ge,Se)._f),!1,!1,!0))},ye=(we,Se={})=>{let Re=lt(r,we);const Ge=to(Se.disabled)||to(t.disabled);return vn(r,we,{...Re||{},_f:{...Re&&Re._f?Re._f:{ref:{name:we}},name:we,mount:!0,...Se}}),u.mount.add(we),Re?Qe({field:Re,disabled:to(Se.disabled)?Se.disabled:t.disabled,name:we}):R(we,!0,Se.value),{...Ge?{disabled:Se.disabled||t.disabled}:{},...t.progressive?{required:!!Se.required,min:af(Se.min),max:af(Se.max),minLength:af(Se.minLength),maxLength:af(Se.maxLength),pattern:af(Se.pattern)}:{},name:we,onChange:I,onBlur:I,ref:rt=>{if(rt){ye(we,Se),Re=lt(r,we);const nt=ir(rt.value)&&rt.querySelectorAll&&rt.querySelectorAll("input,select,textarea")[0]||rt,dt=IU(nt),Et=Re._f.refs||[];if(dt?Et.find(xn=>xn===nt):nt===Re._f.ref)return;vn(r,we,{_f:{...Re._f,...dt?{refs:[...Et.filter(gv),nt,...Array.isArray(lt(i,we))?[{}]:[]],ref:{type:nt.type,name:we}}:{ref:nt}}}),R(we,!1,void 0,nt)}else Re=lt(r,we,{}),Re._f&&(Re._f.mount=!1),(t.shouldUnregister||Se.shouldUnregister)&&!(W2(u.array,we)&&s.action)&&u.unMount.add(we)}}},Ne=()=>t.shouldFocusError&&If(r,de,u.mount),He=we=>{to(we)&&(m.state.next({disabled:we}),If(r,(Se,Re)=>{const Ge=lt(r,Re);Ge&&(Se.disabled=Ge._f.disabled||we,Array.isArray(Ge._f.refs)&&Ge._f.refs.forEach(rt=>{rt.disabled=Ge._f.disabled||we}))},0,!1))},Ke=(we,Se)=>async Re=>{let Ge;Re&&(Re.preventDefault&&Re.preventDefault(),Re.persist&&Re.persist());let rt=mi(o);if(u.disabled.size)for(const nt of u.disabled)vn(rt,nt,void 0);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:nt,values:dt}=await F();n.errors=nt,rt=dt}else await ae(r);if(vr(n.errors,"root"),gi(n.errors)){m.state.next({errors:{}});try{await we(rt,Re)}catch(nt){Ge=nt}}else Se&&await Se({...n.errors},Re),Ne(),setTimeout(Ne);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:gi(n.errors)&&!Ge,submitCount:n.submitCount+1,errors:n.errors}),Ge)throw Ge},Be=(we,Se={})=>{lt(r,we)&&(ir(Se.defaultValue)?N(we,mi(lt(i,we))):(N(we,Se.defaultValue),vn(i,we,mi(Se.defaultValue))),Se.keepTouched||vr(n.touchedFields,we),Se.keepDirty||(vr(n.dirtyFields,we),n.isDirty=Se.defaultValue?De(we,mi(lt(i,we))):De()),Se.keepError||(vr(n.errors,we),h.isValid&&A()),m.state.next({...n}))},st=(we,Se={})=>{const Re=we?mi(we):i,Ge=mi(Re),rt=gi(we),nt=rt?i:Ge;if(Se.keepDefaultValues||(i=Re),!Se.keepValues){if(Se.keepDirtyValues){const dt=new Set([...u.mount,...Object.keys(sf(i,o))]);for(const Et of Array.from(dt))lt(n.dirtyFields,Et)?vn(nt,Et,lt(o,Et)):N(Et,lt(nt,Et))}else{if(T4&&ir(we))for(const dt of u.mount){const Et=lt(r,dt);if(Et&&Et._f){const xn=Array.isArray(Et._f.refs)?Et._f.refs[0]:Et._f.ref;if(Ap(xn)){const en=xn.closest("form");if(en){en.reset();break}}}}r={}}o=t.shouldUnregister?Se.keepDefaultValues?mi(i):{}:mi(nt),m.array.next({values:{...nt}}),m.values.next({values:{...nt}})}u={mount:Se.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!h.isValid||!!Se.keepIsValid||!!Se.keepDirtyValues,s.watch=!!t.shouldUnregister,m.state.next({submitCount:Se.keepSubmitCount?n.submitCount:0,isDirty:rt?!1:Se.keepDirty?n.isDirty:!!(Se.keepDefaultValues&&!ja(we,i)),isSubmitted:Se.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:rt?{}:Se.keepDirtyValues?Se.keepDefaultValues&&o?sf(i,o):n.dirtyFields:Se.keepDefaultValues&&we?sf(i,we):Se.keepDirty?n.dirtyFields:{},touchedFields:Se.keepTouched?n.touchedFields:{},errors:Se.keepErrors?n.errors:{},isSubmitSuccessful:Se.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Dt=(we,Se)=>st(us(we)?we(o):we,Se);return{control:{register:ye,unregister:Je,getFieldState:Ae,handleSubmit:Ke,setError:Ie,_executeSchema:F,_getWatch:z,_getDirty:De,_updateValid:A,_removeUnmounted:q,_updateFieldArray:w,_updateDisabledField:Qe,_getFieldArray:j,_reset:st,_resetDefaultValues:()=>us(t.defaultValues)&&t.defaultValues().then(we=>{Dt(we,t.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:we=>{n={...n,...we}},_disableForm:He,_subjects:m,_proxyFormState:h,_setErrors:k,get _fields(){return r},get _formValues(){return o},get _state(){return s},set _state(we){s=we},get _defaultValues(){return i},get _names(){return u},set _names(we){u=we},get _formState(){return n},set _formState(we){n=we},get _options(){return t},set _options(we){t={...t,...we}}},trigger:se,register:ye,handleSubmit:Ke,watch:Le,setValue:N,getValues:ie,reset:Dt,resetField:Be,clearErrors:Pe,unregister:Je,setError:Ie,setFocus:(we,Se={})=>{const Re=lt(r,we),Ge=Re&&Re._f;if(Ge){const rt=Ge.refs?Ge.refs[0]:Ge.ref;rt.focus&&(rt.focus(),Se.shouldSelect&&us(rt.select)&&rt.select())}},getFieldState:Ae}}function zU(e={}){const t=_.useRef(void 0),n=_.useRef(void 0),[r,i]=_.useState({isDirty:!1,isValidating:!1,isLoading:us(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:us(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...UU(e),formState:r});const o=t.current.control;return o._options=e,_4({subject:o._subjects.state,next:s=>{Z2(s,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),_.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),_.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==r.isDirty&&o._subjects.state.next({isDirty:s})}},[o,r.isDirty]),_.useEffect(()=>{e.values&&!ja(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),_.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),_.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),_.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=Y2(r,o),t.current}const En=typeof document<"u"?_.useLayoutEffect:()=>{};function or(e){const t=_.useRef(null);return En(()=>{t.current=e},[e]),_.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function qU(e){let[t,n]=_.useState(e),r=_.useRef(null),i=or(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():n(s.value)});En(()=>{r.current&&i()});let o=or(s=>{r.current=s(t),i()});return[t,o]}const _p={prefix:String(Math.round(Math.random()*1e10)),current:0},a_=_.createContext(_p),WU=_.createContext(!1);let HU=!!(typeof window<"u"&&window.document&&window.document.createElement),yv=new WeakMap;function GU(e=!1){let t=_.useContext(a_),n=_.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let s=yv.get(o);s==null?yv.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,yv.delete(o))}n.current=++t.current}return n.current}function YU(e){let t=_.useContext(a_);t===_p&&!HU&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=GU(!!e),r=t===_p&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function ZU(e){let t=_.useId(),[n]=_.useState(F4()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${_p.prefix}`;return e||`${r}-${t}`}const XU=typeof _.useId=="function"?ZU:YU;function JU(){return!1}function QU(){return!0}function ez(e){return()=>{}}function F4(){return typeof _.useSyncExternalStore=="function"?_.useSyncExternalStore(ez,JU,QU):_.useContext(WU)}let tz=!!(typeof window<"u"&&window.document&&window.document.createElement),Va=new Map;function xi(e){let[t,n]=_.useState(e),r=_.useRef(null),i=XU(t),o=_.useCallback(s=>{r.current=s},[]);return tz&&(Va.has(i)&&!Va.get(i).includes(o)?Va.set(i,[...Va.get(i),o]):Va.set(i,[o])),En(()=>{let s=i;return()=>{Va.delete(s)}},[i]),_.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),i}function nz(e,t){if(e===t)return e;let n=Va.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Va.get(t);return r?(r.forEach(i=>i(e)),e):t}function ic(e=[]){let t=xi(),[n,r]=qU(t),i=_.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return En(i,[t,i,...e]),n}function Zu(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Mn=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Ja=e=>e&&"window"in e&&e.window===e?e:Mn(e).defaultView||window;function u_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=u_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rz(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=u_(e))&&(r&&(r+=" "),r+=t);return r}function dn(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Zu(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[i]=rz(o,s):i==="id"&&o&&s?t.id=nz(o,s):t[i]=s!==void 0?s:o}}return t}const iz=new Set(["id"]),oz=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),sz=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),az=/^(data-.*)$/;function la(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(iz.has(s)||n&&oz.has(s)||r&&sz.has(s)||i!=null&&i.has(s)||az.test(s))&&(o[s]=e[s]);return o}function Mo(e){if(uz())e.focus({preventScroll:!0});else{let t=lz(e);e.focus(),cz(t)}}let _h=null;function uz(){if(_h==null){_h=!1;try{document.createElement("div").focus({get preventScroll(){return _h=!0,!0}})}catch{}}return _h}function lz(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function cz(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Cm(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function k4(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ca(e){let t=null;return()=>(t==null&&(t=e()),t)}const sa=ca(function(){return k4(/^Mac/i)}),fz=ca(function(){return k4(/^iPhone/i)}),l_=ca(function(){return k4(/^iPad/i)||sa()&&navigator.maxTouchPoints>1}),$d=ca(function(){return fz()||l_()}),ip=ca(function(){return sa()||$d()}),O4=ca(function(){return Cm(/AppleWebKit/i)&&!c_()}),c_=ca(function(){return Cm(/Chrome/i)}),I4=ca(function(){return Cm(/Android/i)}),dz=ca(function(){return Cm(/Firefox/i)}),hz=_.createContext({isNative:!0,open:mz,useHref:e=>e});function Sm(){return _.useContext(hz)}function Xu(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:u,shiftKey:l}=t;dz()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(sa()?o=!0:s=!0);let d=O4()&&sa()&&!l_()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:u,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:u,shiftKey:l,bubbles:!0,cancelable:!0});Xu.isOpening=n,Mo(e),e.dispatchEvent(d),Xu.isOpening=!1}Xu.isOpening=!1;function pz(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function mz(e,t){pz(e,n=>Xu(n,t))}function gz(e){let t=Sm();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let Pl=new Map,X1=new Set;function gC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Pl.get(r.target);i||(i=new Set,Pl.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Pl.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Pl.delete(r.target)),Pl.size===0)){for(let o of X1)o();X1.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?gC():document.addEventListener("DOMContentLoaded",gC));function f_(e){requestAnimationFrame(()=>{Pl.size===0?e():X1.add(e)})}function Cc(){let e=_.useRef(new Map),t=_.useCallback((i,o,s,u)=>{let l=u!=null&&u.once?(...d)=>{e.current.delete(s),s(...d)}:s;e.current.set(s,{type:o,eventTarget:i,fn:l,options:u}),i.addEventListener(o,l,u)},[]),n=_.useCallback((i,o,s,u)=>{var l;let d=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,d,u),e.current.delete(s)},[]),r=_.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return _.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function oc(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=xi(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function vC(e,t){const n=_.useRef(!0),r=_.useRef(null);_.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),_.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function yC(e,t){const n=_.useRef(!0),r=_.useRef(null);En(()=>(n.current=!0,()=>{n.current=!1}),[]),En(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function vz(){return typeof window.ResizeObserver<"u"}function bC(e){const{ref:t,box:n,onResize:r}=e;_.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(vz()){const o=new window.ResizeObserver(s=>{s.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function d_(e,t){En(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Yf(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Em(e,t){let n=e;for(Yf(n,t)&&(n=n.parentElement);n&&!Yf(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function yz(e,t){const n=[];for(;e&&e!==document.documentElement;)Yf(e,t)&&n.push(e),e=e.parentElement;return n}let bz=0;const bv=new Map;function xd(e){let[t,n]=_.useState();return En(()=>{if(!e)return;let r=bv.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${bz++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},bv.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),bv.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function cs(e,t,n,r){let i=or(n),o=n==null;_.useEffect(()=>{if(o||!e.current)return;let s=e.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[e,t,r,o,i])}function h_(e,t){let n=$C(e,t,"left"),r=$C(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,s=e.scrollLeft,u=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),x=s+parseInt(d,10),C=u+parseInt(l,10),A=x+e.clientWidth,S=C+e.clientHeight,w=parseInt(h,10)||0,D=parseInt(g,10)||0,k=parseInt(m,10)||0,R=parseInt(b,10)||0;n<=s+R?s=n-parseInt(d,10)-R:n+i>A-k&&(s+=n+i-A+k),r<=C+w?u=r-parseInt(l,10)-w:r+o>S-D&&(u+=r+o-S+D),e.scrollLeft=s,e.scrollTop=u}function $C(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function Rp(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=yz(e);for(let d of l)h_(d,e)}else{var n;let{left:l,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:m}=e.getBoundingClientRect();if(Math.abs(l-h)>1||Math.abs(d-m)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function J1(e){return e.mozInputSource===0&&e.isTrusted?!0:I4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $z(e){return!I4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function p_(e,t){let n=_.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function L4(e,t,n){let r=_.useRef(t),i=or(()=>{n&&n(r.current)});_.useEffect(()=>{var o;let s=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return s==null||s.addEventListener("reset",i),()=>{s==null||s.removeEventListener("reset",i)}},[e,i])}const xz="react-aria-clear-focus",wz="react-aria-focus",m_="react-aria-update-activedescendant";function _l(e){return sa()?e.metaKey:e.ctrlKey}function Li(e,t,n){let[r,i]=_.useState(e||t),o=_.useRef(e!==void 0),s=e!==void 0;_.useEffect(()=>{let d=o.current;d!==s&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let u=s?e:r,l=_.useCallback((d,...h)=>{let m=(g,...b)=>{n&&(Object.is(u,g)||n(g,...b)),s||(u=g)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...x)=>{let C=d(s?u:b,...x);return m(C,...h),s?b:C})):(s||i(d),m(d,...h))},[s,u,n]);return[u,l]}function sc(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Rh(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let s=Math.pow(10,o);n=Math.round(n*s)/s}return n}function uf(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=Rh(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(Rh(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(Rh((n-t)/r,r))*r),o=Rh(o,r),o}let Ml="default",Q1="",op=new WeakMap;function eb(e){if($d()){if(Ml==="default"){const t=Mn(e);Q1=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ml="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(op.set(e,e.style.userSelect),e.style.userSelect="none")}function Cf(e){if($d()){if(Ml!=="disabled")return;Ml="restoring",setTimeout(()=>{f_(()=>{if(Ml==="restoring"){const t=Mn(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Q1||""),Q1="",Ml="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&op.has(e)){let t=op.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),op.delete(e)}}const B4=_.createContext({register:()=>{}});B4.displayName="PressResponderContext";function Cz(e,t){return t.get?t.get.call(e):t.value}function g_(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Sz(e,t){var n=g_(e,t,"get");return Cz(e,n)}function Ez(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function wd(e,t,n){Ez(e,t),t.set(e,n)}function Dz(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function xC(e,t,n){var r=g_(e,t,"set");return Dz(e,r,n),n}function Az(e){let t=_.useContext(B4);if(t){let{register:n,...r}=t;e=dn(r,e),n()}return d_(t,e.ref),e}var Mh=new WeakMap;class Fh{continuePropagation(){xC(this,Mh,!1)}get shouldStopPropagation(){return Sz(this,Mh)}constructor(t,n,r,i){wd(this,Mh,{writable:!0,value:void 0}),xC(this,Mh,!0);var o;let s=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const u=s==null?void 0:s.getBoundingClientRect();let l,d=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),u&&(h!=null&&m!=null?(l=h-u.left,d=m-u.top):(l=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=d}}const wC=Symbol("linkClicked");function Cd(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:s,isPressed:u,preventFocusOnPress:l,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:h,ref:m,...g}=Az(e),[b,x]=_.useState(!1),C=_.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:A,removeAllGlobalListeners:S}=Cc(),w=or((F,ce)=>{let ae=C.current;if(s||ae.didFirePressStart)return!1;let q=!0;if(ae.isTriggeringEvent=!0,r){let De=new Fh("pressstart",ce,F);r(De),q=De.shouldStopPropagation}return n&&n(!0),ae.isTriggeringEvent=!1,ae.didFirePressStart=!0,x(!0),q}),D=or((F,ce,ae=!0)=>{let q=C.current;if(!q.didFirePressStart)return!1;q.ignoreClickAfterPress=!0,q.didFirePressStart=!1,q.isTriggeringEvent=!0;let De=!0;if(i){let z=new Fh("pressend",ce,F);i(z),De=z.shouldStopPropagation}if(n&&n(!1),x(!1),t&&ae&&!s){let z=new Fh("press",ce,F);t(z),De&&(De=z.shouldStopPropagation)}return q.isTriggeringEvent=!1,De}),k=or((F,ce)=>{let ae=C.current;if(s)return!1;if(o){ae.isTriggeringEvent=!0;let q=new Fh("pressup",ce,F);return o(q),ae.isTriggeringEvent=!1,q.shouldStopPropagation}return!0}),R=or(F=>{let ce=C.current;ce.isPressed&&ce.target&&(ce.isOverTarget&&ce.pointerType!=null&&D(Gs(ce.target,F),ce.pointerType,!1),ce.isPressed=!1,ce.isOverTarget=!1,ce.activePointerId=null,ce.pointerType=null,S(),h||Cf(ce.target))}),O=or(F=>{d&&R(F)}),H=_.useMemo(()=>{let F=C.current,ce={onKeyDown(q){if($v(q.nativeEvent,q.currentTarget)&&q.currentTarget.contains(q.target)){var De;SC(q.target,q.key)&&q.preventDefault();let z=!0;if(!F.isPressed&&!q.repeat){F.target=q.currentTarget,F.isPressed=!0,z=w(q,"keyboard");let j=q.currentTarget,ne=K=>{$v(K,j)&&!K.repeat&&j.contains(K.target)&&F.target&&k(Gs(F.target,K),"keyboard")};A(Mn(q.currentTarget),"keyup",Zu(ne,ae),!0)}z&&q.stopPropagation(),q.metaKey&&sa()&&((De=F.metaKeyEvents)===null||De===void 0||De.set(q.key,q.nativeEvent))}else q.key==="Meta"&&(F.metaKeyEvents=new Map)},onClick(q){if(!(q&&!q.currentTarget.contains(q.target))&&q&&q.button===0&&!F.isTriggeringEvent&&!Xu.isOpening){let De=!0;if(s&&q.preventDefault(),!F.ignoreClickAfterPress&&!F.ignoreEmulatedMouseEvents&&!F.isPressed&&(F.pointerType==="virtual"||J1(q.nativeEvent))){!s&&!l&&Mo(q.currentTarget);let z=w(q,"virtual"),j=k(q,"virtual"),ne=D(q,"virtual");De=z&&j&&ne}F.ignoreEmulatedMouseEvents=!1,F.ignoreClickAfterPress=!1,De&&q.stopPropagation()}}},ae=q=>{var De;if(F.isPressed&&F.target&&$v(q,F.target)){var z;SC(q.target,q.key)&&q.preventDefault();let ne=q.target;D(Gs(F.target,q),"keyboard",F.target.contains(ne)),S(),q.key!=="Enter"&&V4(F.target)&&F.target.contains(ne)&&!q[wC]&&(q[wC]=!0,Xu(F.target,q,!1)),F.isPressed=!1,(z=F.metaKeyEvents)===null||z===void 0||z.delete(q.key)}else if(q.key==="Meta"&&(!((De=F.metaKeyEvents)===null||De===void 0)&&De.size)){var j;let ne=F.metaKeyEvents;F.metaKeyEvents=void 0;for(let K of ne.values())(j=F.target)===null||j===void 0||j.dispatchEvent(new KeyboardEvent("keyup",K))}};if(typeof PointerEvent<"u"){ce.onPointerDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if($z(j.nativeEvent)){F.pointerType="virtual";return}wv(j.currentTarget)&&j.preventDefault(),F.pointerType=j.pointerType;let ne=!0;if(!F.isPressed){F.isPressed=!0,F.isOverTarget=!0,F.activePointerId=j.pointerId,F.target=j.currentTarget,!s&&!l&&Mo(j.currentTarget),h||eb(F.target),ne=w(j,F.pointerType);let K=j.target;"releasePointerCapture"in K&&K.releasePointerCapture(j.pointerId),A(Mn(j.currentTarget),"pointerup",q,!1),A(Mn(j.currentTarget),"pointercancel",z,!1)}ne&&j.stopPropagation()},ce.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(wv(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},ce.onPointerUp=j=>{!j.currentTarget.contains(j.target)||F.pointerType==="virtual"||j.button===0&&k(j,F.pointerType||j.pointerType)},ce.onPointerEnter=j=>{j.pointerId===F.activePointerId&&F.target&&!F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!0,w(Gs(F.target,j),F.pointerType))},ce.onPointerLeave=j=>{j.pointerId===F.activePointerId&&F.target&&F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!1,D(Gs(F.target,j),F.pointerType,!1),O(j))};let q=j=>{j.pointerId===F.activePointerId&&F.isPressed&&j.button===0&&F.target&&(F.target.contains(j.target)&&F.pointerType!=null?D(Gs(F.target,j),F.pointerType):F.isOverTarget&&F.pointerType!=null&&D(Gs(F.target,j),F.pointerType,!1),F.isPressed=!1,F.isOverTarget=!1,F.activePointerId=null,F.pointerType=null,S(),h||Cf(F.target),"ontouchend"in F.target&&j.pointerType!=="mouse"&&A(F.target,"touchend",De,{once:!0}))},De=j=>{v_(j.currentTarget)&&j.preventDefault()},z=j=>{R(j)};ce.onDragStart=j=>{j.currentTarget.contains(j.target)&&R(j)}}else{ce.onMouseDown=z=>{if(z.button!==0||!z.currentTarget.contains(z.target))return;if(wv(z.currentTarget)&&z.preventDefault(),F.ignoreEmulatedMouseEvents){z.stopPropagation();return}F.isPressed=!0,F.isOverTarget=!0,F.target=z.currentTarget,F.pointerType=J1(z.nativeEvent)?"virtual":"mouse",!s&&!l&&Mo(z.currentTarget),w(z,F.pointerType)&&z.stopPropagation(),A(Mn(z.currentTarget),"mouseup",q,!1)},ce.onMouseEnter=z=>{if(!z.currentTarget.contains(z.target))return;let j=!0;F.isPressed&&!F.ignoreEmulatedMouseEvents&&F.pointerType!=null&&(F.isOverTarget=!0,j=w(z,F.pointerType)),j&&z.stopPropagation()},ce.onMouseLeave=z=>{if(!z.currentTarget.contains(z.target))return;let j=!0;F.isPressed&&!F.ignoreEmulatedMouseEvents&&F.pointerType!=null&&(F.isOverTarget=!1,j=D(z,F.pointerType,!1),O(z)),j&&z.stopPropagation()},ce.onMouseUp=z=>{z.currentTarget.contains(z.target)&&!F.ignoreEmulatedMouseEvents&&z.button===0&&k(z,F.pointerType||"mouse")};let q=z=>{if(z.button===0){if(F.isPressed=!1,S(),F.ignoreEmulatedMouseEvents){F.ignoreEmulatedMouseEvents=!1;return}F.target&&xv(z,F.target)&&F.pointerType!=null?D(Gs(F.target,z),F.pointerType):F.target&&F.isOverTarget&&F.pointerType!=null&&D(Gs(F.target,z),F.pointerType,!1),F.isOverTarget=!1}};ce.onTouchStart=z=>{if(!z.currentTarget.contains(z.target))return;let j=Tz(z.nativeEvent);if(!j)return;F.activePointerId=j.identifier,F.ignoreEmulatedMouseEvents=!0,F.isOverTarget=!0,F.isPressed=!0,F.target=z.currentTarget,F.pointerType="touch",!s&&!l&&Mo(z.currentTarget),h||eb(F.target),w(ka(F.target,z),F.pointerType)&&z.stopPropagation(),A(Ja(z.currentTarget),"scroll",De,!0)},ce.onTouchMove=z=>{if(!z.currentTarget.contains(z.target))return;if(!F.isPressed){z.stopPropagation();return}let j=CC(z.nativeEvent,F.activePointerId),ne=!0;j&&xv(j,z.currentTarget)?!F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!0,ne=w(ka(F.target,z),F.pointerType)):F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!1,ne=D(ka(F.target,z),F.pointerType,!1),O(ka(F.target,z))),ne&&z.stopPropagation()},ce.onTouchEnd=z=>{if(!z.currentTarget.contains(z.target))return;if(!F.isPressed){z.stopPropagation();return}let j=CC(z.nativeEvent,F.activePointerId),ne=!0;j&&xv(j,z.currentTarget)&&F.pointerType!=null?(k(ka(F.target,z),F.pointerType),ne=D(ka(F.target,z),F.pointerType)):F.isOverTarget&&F.pointerType!=null&&(ne=D(ka(F.target,z),F.pointerType,!1)),ne&&z.stopPropagation(),F.isPressed=!1,F.activePointerId=null,F.isOverTarget=!1,F.ignoreEmulatedMouseEvents=!0,F.target&&!h&&Cf(F.target),S()},ce.onTouchCancel=z=>{z.currentTarget.contains(z.target)&&(z.stopPropagation(),F.isPressed&&R(ka(F.target,z)))};let De=z=>{F.isPressed&&z.target.contains(F.target)&&R({currentTarget:F.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};ce.onDragStart=z=>{z.currentTarget.contains(z.target)&&R(z)}}return ce},[A,s,l,S,h,R,O,D,w,k]);return _.useEffect(()=>()=>{var F;h||Cf((F=C.current.target)!==null&&F!==void 0?F:void 0)},[h]),{isPressed:u||b,pressProps:dn(g,H)}}function V4(e){return e.tagName==="A"&&e.hasAttribute("href")}function $v(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Ja(i).HTMLInputElement&&!y_(i,n)||i instanceof Ja(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&V4(i))&&n!=="Enter")}function Tz(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function CC(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function ka(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Gs(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Pz(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function _z(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function xv(e,t){let n=t.getBoundingClientRect(),r=Pz(e);return _z(n,r)}function wv(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function v_(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!V4(e)}function SC(e,t){return e instanceof HTMLInputElement?!y_(e,t):v_(e)}const Rz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function y_(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Rz.has(e.type)}function Mz({children:e}){let t=_.useMemo(()=>({register:()=>{}}),[]);return _.createElement(B4.Provider,{value:t},e)}class Fz{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function b_(e){let t=_.useRef({isFocused:!1,observer:null});En(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=or(r=>{e==null||e(r)});return _.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{t.current.isFocused=!1,i.disabled&&n(new Fz("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function kz(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=_.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=b_(o),u=_.useCallback(l=>{const d=Mn(l.target);l.target===l.currentTarget&&d.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let nl=null,Oz=new Set,Lf=new Map,Ju=!1,tb=!1;function Dm(e,t){for(let n of Oz)n(e,t)}function Iz(e){return!(e.metaKey||!sa()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Mp(e){Ju=!0,Iz(e)&&(nl="keyboard",Dm("keyboard",e))}function no(e){nl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ju=!0,Dm("pointer",e))}function $_(e){J1(e)&&(Ju=!0,nl="virtual")}function x_(e){e.target===window||e.target===document||(!Ju&&!tb&&(nl="virtual",Dm("virtual",e)),Ju=!1,tb=!1)}function w_(){Ju=!1,tb=!0}function EC(e){if(typeof window>"u"||Lf.get(Ja(e)))return;const t=Ja(e),n=Mn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ju=!0,r.apply(this,arguments)},n.addEventListener("keydown",Mp,!0),n.addEventListener("keyup",Mp,!0),n.addEventListener("click",$_,!0),t.addEventListener("focus",x_,!0),t.addEventListener("blur",w_,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",no,!0),n.addEventListener("pointermove",no,!0),n.addEventListener("pointerup",no,!0)):(n.addEventListener("mousedown",no,!0),n.addEventListener("mousemove",no,!0),n.addEventListener("mouseup",no,!0)),t.addEventListener("beforeunload",()=>{C_(e)},{once:!0}),Lf.set(t,{focus:r})}const C_=(e,t)=>{const n=Ja(e),r=Mn(e);t&&r.removeEventListener("DOMContentLoaded",t),Lf.has(n)&&(n.HTMLElement.prototype.focus=Lf.get(n).focus,r.removeEventListener("keydown",Mp,!0),r.removeEventListener("keyup",Mp,!0),r.removeEventListener("click",$_,!0),n.removeEventListener("focus",x_,!0),n.removeEventListener("blur",w_,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",no,!0),r.removeEventListener("pointermove",no,!0),r.removeEventListener("pointerup",no,!0)):(r.removeEventListener("mousedown",no,!0),r.removeEventListener("mousemove",no,!0),r.removeEventListener("mouseup",no,!0)),Lf.delete(n))};function Lz(e){const t=Mn(e);let n;return t.readyState!=="loading"?EC(e):(n=()=>{EC(e)},t.addEventListener("DOMContentLoaded",n)),()=>C_(e,n)}typeof document<"u"&&Lz();function DC(){return nl!=="pointer"}function Zf(){return nl}function S_(e){nl=e,Dm(e,null)}function Sc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=_.useRef({isFocusWithin:!1}),s=_.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),u=b_(s),l=_.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,u(d))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let Fp=!1,Cv=0;function nb(){Fp=!0,setTimeout(()=>{Fp=!1},50)}function AC(e){e.pointerType==="touch"&&nb()}function Bz(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",AC):document.addEventListener("touchend",nb),Cv++,()=>{Cv--,!(Cv>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",AC):document.removeEventListener("touchend",nb))}}function Vz(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=_.useState(!1),u=_.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;_.useEffect(Bz,[]);let{hoverProps:l,triggerHoverEnd:d}=_.useMemo(()=>{let h=(b,x)=>{if(u.pointerType=x,i||x==="touch"||u.isHovered||!b.currentTarget.contains(b.target))return;u.isHovered=!0;let C=b.currentTarget;u.target=C,t&&t({type:"hoverstart",target:C,pointerType:x}),n&&n(!0),s(!0)},m=(b,x)=>{if(u.pointerType="",u.target=null,x==="touch"||!u.isHovered)return;u.isHovered=!1;let C=b.currentTarget;r&&r({type:"hoverend",target:C,pointerType:x}),n&&n(!1),s(!1)},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=b=>{Fp&&b.pointerType==="mouse"||h(b,b.pointerType)},g.onPointerLeave=b=>{!i&&b.currentTarget.contains(b.target)&&m(b,b.pointerType)}):(g.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=b=>{!u.ignoreEmulatedMouseEvents&&!Fp&&h(b,"mouse"),u.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=b=>{!i&&b.currentTarget.contains(b.target)&&m(b,"mouse")}),{hoverProps:g,triggerHoverEnd:m}},[t,n,r,i,u]);return _.useEffect(()=>{i&&d({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:l,isHovered:o}}function Nz(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=_.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=or(l=>{n&&kh(l,t)&&(i&&i(l),o.current.isPointerDown=!0)}),u=or(l=>{n&&n(l)});_.useEffect(()=>{let l=o.current;if(r)return;const d=t.current,h=Mn(d);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&kh(g,t)&&u(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",s,!0),h.addEventListener("pointerup",m,!0),()=>{h.removeEventListener("pointerdown",s,!0),h.removeEventListener("pointerup",m,!0)}}else{let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&kh(b,t)&&u(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&kh(b,t)&&u(b),l.isPointerDown=!1};return h.addEventListener("mousedown",s,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",s,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",s,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",s,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,s,u])}function kh(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function TC(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function E_(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:TC(e.onKeyDown),onKeyUp:TC(e.onKeyUp)}}}function D_(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=_.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:s}=Cc(),u=or((h,m,g,b)=>{g===0&&b===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey})),n==null||n({type:"move",pointerType:m,deltaX:g,deltaY:b,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))}),l=or((h,m)=>{Cf(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:_.useMemo(()=>{let h={},m=()=>{eb(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let b=S=>{if(S.button===0){var w,D,k,R;u(S,"mouse",S.pageX-((k=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&k!==void 0?k:0),S.pageY-((R=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&R!==void 0?R:0)),i.current.lastPosition={pageX:S.pageX,pageY:S.pageY}}},x=S=>{S.button===0&&(l(S,"mouse"),s(window,"mousemove",b,!1),s(window,"mouseup",x,!1))};h.onMouseDown=S=>{S.button===0&&(m(),S.stopPropagation(),S.preventDefault(),i.current.lastPosition={pageX:S.pageX,pageY:S.pageY},o(window,"mousemove",b,!1),o(window,"mouseup",x,!1))};let C=S=>{let w=[...S.changedTouches].findIndex(({identifier:H})=>H===i.current.id);if(w>=0){var D,k;let{pageX:H,pageY:F}=S.changedTouches[w];var R,O;u(S,"touch",H-((R=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&R!==void 0?R:0),F-((O=(k=i.current.lastPosition)===null||k===void 0?void 0:k.pageY)!==null&&O!==void 0?O:0)),i.current.lastPosition={pageX:H,pageY:F}}},A=S=>{[...S.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(l(S,"touch"),i.current.id=null,s(window,"touchmove",C),s(window,"touchend",A),s(window,"touchcancel",A))};h.onTouchStart=S=>{if(S.changedTouches.length===0||i.current.id!=null)return;let{pageX:w,pageY:D,identifier:k}=S.changedTouches[0];m(),S.stopPropagation(),S.preventDefault(),i.current.lastPosition={pageX:w,pageY:D},i.current.id=k,o(window,"touchmove",C,!1),o(window,"touchend",A,!1),o(window,"touchcancel",A,!1)}}else{let b=C=>{if(C.pointerId===i.current.id){var A,S;let k=C.pointerType||"mouse";var w,D;u(C,k,C.pageX-((w=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&w!==void 0?w:0),C.pageY-((D=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY}}},x=C=>{if(C.pointerId===i.current.id){let A=C.pointerType||"mouse";l(C,A),i.current.id=null,s(window,"pointermove",b,!1),s(window,"pointerup",x,!1),s(window,"pointercancel",x,!1)}};h.onPointerDown=C=>{C.button===0&&i.current.id==null&&(m(),C.stopPropagation(),C.preventDefault(),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY},i.current.id=C.pointerId,o(window,"pointermove",b,!1),o(window,"pointerup",x,!1),o(window,"pointercancel",x,!1))}}let g=(b,x,C)=>{m(),u(b,"keyboard",x,C),l(b,"keyboard")};return h.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),g(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),g(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),g(b,0,1);break}},h},[i,o,s,u,l])}}const jz=500;function A_(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=jz,accessibilityDescription:s}=e;const u=_.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:d}=Cc(),{pressProps:h}=Cd({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),u.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...g,type:"longpress"}),u.current=void 0},o),g.pointerType==="touch")){let b=x=>{x.preventDefault()};l(g.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){u.current&&clearTimeout(u.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=xd(i&&!t?s:void 0);return{longPressProps:dn(h,m)}}function Qu(e){const t=Mn(e);if(Zf()==="virtual"){let n=t.activeElement;f_(()=>{t.activeElement===n&&e.isConnected&&Mo(e)})}else Mo(e)}function Kz(e){const t=Ja(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:s,visibility:u}=o(e);i=s!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function Uz(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function T_(e,t){return e.nodeName!=="#comment"&&Kz(e)&&Uz(e,t)&&(!e.parentElement||T_(e.parentElement,e))}const PC=_.createContext(null),rb="react-aria-focus-scope-restore";let Rn=null;function zz(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=_.useRef(null),s=_.useRef(null),u=_.useRef([]),{parentNode:l}=_.useContext(PC)||{},d=_.useMemo(()=>new ob({scopeRef:u}),[u]);En(()=>{let g=l||fr.root;if(fr.getTreeNode(g.scopeRef)&&Rn&&!kp(Rn,g.scopeRef)){let b=fr.getTreeNode(Rn);b&&(g=b)}g.addChild(d),fr.addNode(d)},[d,l]),En(()=>{let g=fr.getTreeNode(u);g&&(g.contain=!!n)},[n]),En(()=>{var g;let b=(g=o.current)===null||g===void 0?void 0:g.nextSibling,x=[],C=A=>A.stopPropagation();for(;b&&b!==s.current;)x.push(b),b.addEventListener(rb,C),b=b.nextSibling;return u.current=x,()=>{for(let A of x)A.removeEventListener(rb,C)}},[t]),Xz(u,r,n),Gz(u,n),Jz(u,r,n),Zz(u,i),_.useEffect(()=>{const g=Mn(u.current?u.current[0]:void 0).activeElement;let b=null;if(co(g,u.current)){for(let x of fr.traverse())x.scopeRef&&co(g,x.scopeRef.current)&&(b=x);b===fr.getTreeNode(u)&&(Rn=b.scopeRef)}},[u]),En(()=>()=>{var g,b,x;let C=(x=(b=fr.getTreeNode(u))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&x!==void 0?x:null;(u===Rn||kp(u,Rn))&&(!C||fr.getTreeNode(C))&&(Rn=C),fr.removeTreeNode(u)},[u]);let h=_.useMemo(()=>qz(u),[]),m=_.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return _.createElement(PC.Provider,{value:m},_.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,_.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function qz(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:s}=t,u=r||Mn(n[0]).activeElement,l=n[0].previousElementSibling,d=ku(n),h=yi(d,{tabbable:i,accept:s},n);h.currentNode=co(u,n)?u:l;let m=h.nextNode();return!m&&o&&(h.currentNode=l,m=h.nextNode()),m&&vi(m,!0),m},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:s}=t,u=r||Mn(n[0]).activeElement,l=n[n.length-1].nextElementSibling,d=ku(n),h=yi(d,{tabbable:i,accept:s},n);h.currentNode=co(u,n)?u:l;let m=h.previousNode();return!m&&o&&(h.currentNode=l,m=h.previousNode()),m&&vi(m,!0),m},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=ku(n),s=yi(o,{tabbable:r,accept:i},n);s.currentNode=n[0].previousElementSibling;let u=s.nextNode();return u&&vi(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=ku(n),s=yi(o,{tabbable:r,accept:i},n);s.currentNode=n[n.length-1].nextElementSibling;let u=s.previousNode();return u&&vi(u,!0),u}}}const N4=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],Wz=N4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";N4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Hz=N4.join(':not([hidden]):not([tabindex="-1"]),');function ku(e){return e[0].parentElement}function Sf(e){let t=fr.getTreeNode(Rn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Gz(e,t){let n=_.useRef(void 0),r=_.useRef(void 0);En(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Mn(i?i[0]:void 0);let s=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Sf(e)||d.isComposing)return;let h=o.activeElement,m=e.current;if(!m||!co(h,m))return;let g=ku(m),b=yi(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let x=d.shiftKey?b.previousNode():b.nextNode();x||(b.currentNode=d.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,x=d.shiftKey?b.previousNode():b.nextNode()),d.preventDefault(),x&&vi(x,!0)},u=d=>{(!Rn||kp(Rn,e))&&co(d.target,e.current)?(Rn=e,n.current=d.target):Sf(e)&&!Ua(d.target,e)?n.current?n.current.focus():Rn&&Rn.current&&ib(Rn.current):Sf(e)&&(n.current=d.target)},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Zf();if(!((h==="virtual"||h===null)&&I4()&&c_())&&o.activeElement&&Sf(e)&&!Ua(o.activeElement,e))if(Rn=e,o.body.contains(d.target)){var g;n.current=d.target,(g=n.current)===null||g===void 0||g.focus()}else Rn.current&&ib(Rn.current)})};return o.addEventListener("keydown",s,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{o.removeEventListener("keydown",s,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),En(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function P_(e){return Ua(e)}function co(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ua(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of fr.traverse(fr.getTreeNode(t)))if(n&&co(e,n.current))return!0;return!1}function Yz(e){return Ua(e,Rn)}function kp(e,t){var n;let r=(n=fr.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function vi(e,t=!1){if(e!=null&&!t)try{Qu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function __(e,t=!0){let n=e[0].previousElementSibling,r=ku(e),i=yi(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=ku(e),i=yi(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function ib(e,t=!0){vi(__(e,t))}function Zz(e,t){const n=_.useRef(t);_.useEffect(()=>{if(n.current){Rn=e;const r=Mn(e.current?e.current[0]:void 0);!co(r.activeElement,Rn.current)&&e.current&&ib(e.current)}n.current=!1},[e])}function Xz(e,t,n){En(()=>{if(t||n)return;let r=e.current;const i=Mn(r?r[0]:void 0);let o=s=>{let u=s.target;co(u,e.current)?Rn=e:P_(u)||(Rn=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(s=>s.removeEventListener("focusin",o,!1))}},[e,t,n])}function _C(e){let t=fr.getTreeNode(Rn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Jz(e,t,n){const r=_.useRef(typeof document<"u"?Mn(e.current?e.current[0]:void 0).activeElement:null);En(()=>{let i=e.current;const o=Mn(i?i[0]:void 0);if(!t||n)return;let s=()=>{(!Rn||kp(Rn,e))&&co(o.activeElement,e.current)&&(Rn=e)};return o.addEventListener("focusin",s,!1),i==null||i.forEach(u=>u.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",s,!1))}},[e,n]),En(()=>{const i=Mn(e.current?e.current[0]:void 0);if(!t)return;let o=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!Sf(e)||s.isComposing)return;let u=i.activeElement;if(!Ua(u,e)||!_C(e))return;let l=fr.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,h=yi(i.body,{tabbable:!0});h.currentNode=u;let m=s.shiftKey?h.previousNode():h.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,l.nodeToRestore=void 0),(!m||!Ua(m,e))&&d){h.currentNode=d;do m=s.shiftKey?h.previousNode():h.nextNode();while(Ua(m,e));s.preventDefault(),s.stopPropagation(),m?vi(m,!0):P_(d)?vi(d,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),En(()=>{const i=Mn(e.current?e.current[0]:void 0);if(!t)return;let o=fr.getTreeNode(e);if(o){var s;return o.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let u=fr.getTreeNode(e);if(!u)return;let l=u.nodeToRestore;if(t&&l&&(i.activeElement&&Ua(i.activeElement,e)||i.activeElement===i.body&&_C(e))){let d=fr.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let h=d.getTreeNode(e);for(;h;){if(h.nodeToRestore&&h.nodeToRestore.isConnected){RC(h.nodeToRestore);return}h=h.parent}for(h=d.getTreeNode(e);h;){if(h.scopeRef&&h.scopeRef.current&&fr.getTreeNode(h.scopeRef)){let m=__(h.scopeRef.current,!0);RC(m);return}h=h.parent}}})}}}},[e,t])}function RC(e){e.dispatchEvent(new CustomEvent(rb,{bubbles:!0,cancelable:!0}))&&vi(e)}function yi(e,t,n){let r=t!=null&&t.tabbable?Hz:Wz,i=Mn(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&T_(o)&&(!n||co(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Am(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:s=t.wrap,accept:u=t.accept}=n,l=i||Mn(r).activeElement,d=yi(r,{tabbable:o,accept:u});r.contains(l)&&(d.currentNode=l);let h=d.nextNode();return!h&&s&&(d.currentNode=r,h=d.nextNode()),h&&vi(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:s=t.wrap,accept:u=t.accept}=n,l=i||Mn(r).activeElement,d=yi(r,{tabbable:o,accept:u});if(r.contains(l))d.currentNode=l;else{let m=Sv(d);return m&&vi(m,!0),m??null}let h=d.previousNode();if(!h&&s){d.currentNode=r;let m=Sv(d);if(!m)return null;h=m}return h&&vi(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=yi(r,{tabbable:i,accept:o}).nextNode();return u&&vi(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,s=yi(r,{tabbable:i,accept:o}),u=Sv(s);return u&&vi(u,!0),u??null}}}function Sv(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class j4{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new ob({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&co(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new j4;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new ob({scopeRef:null}),this.fastMap.set(null,this.root)}}class ob{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let fr=new j4,Qz=_.createContext(null);function eq(e){let t=_.useContext(Qz)||{};d_(t,e);let{ref:n,...r}=t;return r}function K4(e,t){let{focusProps:n}=kz(e),{keyboardProps:r}=E_(e),i=dn(n,r),o=eq(t),s=e.isDisabled?{}:o,u=_.useRef(e.autoFocus);return _.useEffect(()=>{u.current&&t.current&&Qu(t.current),u.current=!1},[t]),{focusableProps:dn({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const tq=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),nq=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function rq(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return tq.has(n.script)}let t=e.split("-")[0];return nq.has(t)}const iq=Symbol.for("react-aria.i18n.locale");function R_(){let e=typeof window<"u"&&window[iq]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:rq(e)?"rtl":"ltr"}}let sb=R_(),Ef=new Set;function MC(){sb=R_();for(let e of Ef)e(sb)}function oq(){let e=F4(),[t,n]=_.useState(sb);return _.useEffect(()=>(Ef.size===0&&window.addEventListener("languagechange",MC),Ef.add(n),()=>{Ef.delete(n),Ef.size===0&&window.removeEventListener("languagechange",MC)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const sq=_.createContext(null);function Hr(){let e=oq();return _.useContext(sq)||e}const aq=Symbol.for("react-aria.i18n.locale"),uq=Symbol.for("react-aria.i18n.strings");let Dl;class ru{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=lq(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[aq];if(Dl===void 0){let i=window[uq];if(!i)return null;Dl={};for(let o in i)Dl[o]=new ru({[n]:i[o]},n)}let r=Dl==null?void 0:Dl[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function lq(e,t,n="en-US"){if(t[e])return t[e];let r=cq(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function cq(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const FC=new Map,kC=new Map;class M_{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,s=FC.get(o);s||(s=new Intl.PluralRules(this.locale,{type:r}),FC.set(o,s));let u=s.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=kC.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),kC.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const OC=new WeakMap;function fq(e){let t=OC.get(e);return t||(t=new ru(e),OC.set(e,t)),t}function F_(e,t){return t&&ru.getGlobalDictionaryForPackage(t)||fq(e)}function ws(e,t){let{locale:n}=Hr(),r=F_(e,t);return _.useMemo(()=>new M_(n,r),[n,r])}function zl(e,t){return e-t*Math.floor(e/t)}const k_=1721426;function Ou(e,t,n,r){t=Sd(e,t);let i=t-1,o=-2;return n<=2?o=0:za(t)&&(o=-1),k_-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function za(e){return e%4===0&&(e%100!==0||e%400===0)}function Sd(e,t){return e==="BC"?1-t:t}function Tm(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const dq={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class si{fromJulianDay(t){let n=t,r=n-k_,i=Math.floor(r/146097),o=zl(r,146097),s=Math.floor(o/36524),u=zl(o,36524),l=Math.floor(u/1461),d=zl(u,1461),h=Math.floor(d/365),m=i*400+s*100+l*4+h+(s!==4&&h!==4?1:0),[g,b]=Tm(m),x=n-Ou(g,b,1,1),C=2;n<Ou(g,b,3,1)?C=0:za(b)&&(C=1);let A=Math.floor(((x+C)*12+373)/367),S=n-Ou(g,b,A,1)+1;return new ar(g,b,A,S)}toJulianDay(t){return Ou(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return dq[za(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return za(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const hq={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function yr(e,t){return t=Un(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function ab(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function O_(e,t){return yr(e,Pm(t))}const pq={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function U4(e,t,n){let r=e.calendar.toJulianDay(e),i=n?pq[n]:$q(t),o=Math.ceil(r+1-i)%7;return o<0&&(o+=7),o}function I_(e){return Qs(Date.now(),e)}function Pm(e){return oi(I_(e))}function L_(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function B_(e,t){return IC(e)-IC(t)}function IC(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Ev=null;function Ed(){return Ev==null&&(Ev=new Intl.DateTimeFormat().resolvedOptions().timeZone),Ev}function Dd(e){return e.subtract({days:e.day-1})}function ub(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function mq(e){return Dd(e.subtract({months:e.month-1}))}function gq(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function vq(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Xf(e,t,n){let r=U4(e,t,n);return e.subtract({days:r})}function yq(e,t,n){return Xf(e,t,n).add({days:6})}const LC=new Map;function bq(e){if(Intl.Locale){let n=LC.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&LC.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function $q(e){let t=bq(e);return t&&hq[t]||0}function xq(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((U4(Dd(e),t,n)+r)/7)}function z4(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function q4(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ac(e){e=Un(e,new si);let t=Sd(e.era,e.year);return V_(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function V_(e,t,n,r,i,o,s){let u=new Date;return u.setUTCHours(r,i,o,s),u.setUTCFullYear(e,t-1,n),u.getTime()}function lb(e,t){if(t==="UTC")return 0;if(e>0&&t===Ed())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:s,second:u}=N_(e,t);return V_(n,r,i,o,s,u,0)-Math.floor(e/1e3)*1e3}const BC=new Map;function N_(e,t){let n=BC.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),BC.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const VC=864e5;function wq(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>Cq(e,t,o))}function Cq(e,t,n){let r=N_(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Js(e,t,n="compatible"){let r=Io(e);if(t==="UTC")return ac(r);if(t===Ed()&&n==="compatible"){r=Un(r,new si);let l=new Date,d=Sd(r.era,r.year);return l.setFullYear(d,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=ac(r),o=lb(i-VC,t),s=lb(i+VC,t),u=wq(r,t,i-o,i-s);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-s);case"compatible":case"later":return Math.max(i-o,i-s);case"reject":throw new RangeError("No such absolute time found")}}function j_(e,t,n="compatible"){return new Date(Js(e,t,n))}function Qs(e,t){let n=lb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,s=r.getUTCDate(),u=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new ed(i<1?"BC":"AD",i<1?-i+1:i,o,s,t,n,u,l,d,h)}function oi(e){return new ar(e.calendar,e.era,e.year,e.month,e.day)}function Io(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new Qf(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function NC(e){return new Ad(e.hour,e.minute,e.second,e.millisecond)}function Un(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,el(r),r}function K_(e,t,n){if(e instanceof ed)return e.timeZone===t?e:Eq(e,t);let r=Js(e,t,n);return Qs(r,t)}function Sq(e){let t=ac(e)-e.offset;return new Date(t)}function Eq(e,t){let n=ac(e)-e.offset;return Un(Qs(n,t),e.calendar)}const lf=36e5;function _m(e,t){let n=e.copy(),r="hour"in n?W_(n,t):0;cb(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,fb(n),U_(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,Dq(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,s;let l=(o=(s=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(s,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function cb(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function fb(e){for(;e.month<1;)cb(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,cb(e,1)}function Dq(e){for(;e.day<1;)e.month--,fb(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,fb(e)}function U_(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function el(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),U_(e)}function W4(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function z_(e,t){return _m(e,W4(t))}function H4(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),el(n),n}function Jf(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),q_(n),n}function Aq(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Oh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Oh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Oh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Oh(e.hour,24),t}function q_(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Oh(e,t){let n=e%t;return n<0&&(n+=t),n}function W_(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Aq(e)}function H_(e,t){let n=e.copy();return W_(n,t),n}function Tq(e,t){return H_(e,W4(t))}function G4(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),l=u.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=ea(l,n,0,u.length-1,r==null?void 0:r.round),i.era=u[l],el(i);break}case"year":var o,s;!((o=(s=i.calendar).isInverseEra)===null||o===void 0)&&o.call(s,i)&&(n=-n),i.year=ea(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=ea(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=ea(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),el(i),i}function Y4(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,s=0,u=23;if((r==null?void 0:r.hourCycle)===12){let l=o>=12;s=l?12:0,u=l?23:11}i.hour=ea(o,n,s,u,r==null?void 0:r.round);break}case"minute":i.minute=ea(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=ea(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=ea(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function ea(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function G_(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=_m(Io(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Js(i,e.timeZone)}else n=ac(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Qs(n,e.timeZone);return Un(r,e.calendar)}function Pq(e,t){return G_(e,W4(t))}function _q(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let x=e.hour>=12;i=x?12:0,o=x?23:11}let s=Io(e),u=Un(Jf(s,{hour:i}),new si),l=[Js(u,e.timeZone,"earlier"),Js(u,e.timeZone,"later")].filter(x=>Qs(x,e.timeZone).day===u.day)[0],d=Un(Jf(s,{hour:o}),new si),h=[Js(d,e.timeZone,"earlier"),Js(d,e.timeZone,"later")].filter(x=>Qs(x,e.timeZone).day===d.day).pop(),m=ac(e)-e.offset,g=Math.floor(m/lf),b=m%lf;return m=ea(g,n,Math.floor(l/lf),Math.floor(h/lf),r==null?void 0:r.round)*lf+b,Un(Qs(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Y4(e,t,n,r);case"era":case"year":case"month":case"day":{let i=G4(Io(e),t,n,r),o=Js(i,e.timeZone);return Un(Qs(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Rq(e,t,n){let r=Io(e),i=Jf(H4(r,t),t);if(i.compare(r)===0)return e;let o=Js(i,e.timeZone,n);return Un(Qs(o,e.timeZone),e.calendar)}const Mq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Fq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function kq(e){let t=e.match(Mq);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new ar(is(t[1],0,9999),is(t[2],1,12),1);return n.day=is(t[3],0,n.calendar.getDaysInMonth(n)),n}function Oq(e){let t=e.match(Fq);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=is(t[1],-9999,9999),r=n<1?"BC":"AD",i=new Qf(r,n<1?-n+1:n,is(t[2],1,12),1,t[4]?is(t[4],0,23):0,t[5]?is(t[5],0,59):0,t[6]?is(t[6],0,59):0,t[7]?is(t[7],0,1/0)*1e3:0);return i.day=is(t[3],0,i.calendar.getDaysInMonth(i)),i}function is(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function Y_(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Z_(e){let t=Un(e,new si),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function X_(e){return`${Z_(e)}T${Y_(e)}`}function Iq(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function Lq(e){return`${X_(e)}${Iq(e.offset)}[${e.timeZone}]`}function Z4(e){let t=typeof e[0]=="object"?e.shift():new si,n;if(typeof e[0]=="string")n=e.shift();else{let s=t.getEras();n=s[s.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var Bq=new WeakMap;class ar{copy(){return this.era?new ar(this.calendar,this.era,this.year,this.month,this.day):new ar(this.calendar,this.year,this.month,this.day)}add(t){return _m(this,t)}subtract(t){return z_(this,t)}set(t){return H4(this,t)}cycle(t,n,r){return G4(this,t,n,r)}toDate(t){return j_(this,t)}toString(){return Z_(this)}compare(t){return L_(this,t)}constructor(...t){wd(this,Bq,{writable:!0,value:void 0});let[n,r,i,o,s]=Z4(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=s,el(this)}}var Vq=new WeakMap;class Ad{copy(){return new Ad(this.hour,this.minute,this.second,this.millisecond)}add(t){return H_(this,t)}subtract(t){return Tq(this,t)}set(t){return Jf(this,t)}cycle(t,n,r){return Y4(this,t,n,r)}toString(){return Y_(this)}compare(t){return B_(this,t)}constructor(t=0,n=0,r=0,i=0){wd(this,Vq,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,q_(this)}}var Nq=new WeakMap;class Qf{copy(){return this.era?new Qf(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Qf(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return _m(this,t)}subtract(t){return z_(this,t)}set(t){return H4(Jf(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return G4(this,t,n,r);default:return Y4(this,t,n,r)}}toDate(t,n){return j_(this,t,n)}toString(){return X_(this)}compare(t){let n=L_(this,t);return n===0?B_(this,Io(t)):n}constructor(...t){wd(this,Nq,{writable:!0,value:void 0});let[n,r,i,o,s]=Z4(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,el(this)}}var jq=new WeakMap;class ed{copy(){return this.era?new ed(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ed(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return G_(this,t)}subtract(t){return Pq(this,t)}set(t,n){return Rq(this,t,n)}cycle(t,n,r){return _q(this,t,n,r)}toDate(){return Sq(this)}toString(){return Lq(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-K_(t,this.timeZone).toDate().getTime()}constructor(...t){wd(this,jq,{writable:!0,value:void 0});let[n,r,i,o,s]=Z4(t),u=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=s,this.timeZone=u,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,el(this)}}const ql=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Kq=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],sp=[1867,1911,1925,1988,2018],Na=["meiji","taisho","showa","heisei","reiwa"];function jC(e){const t=ql.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?ql.length-1:t===0?0:t-1}function Dv(e){let t=sp[Na.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new ar(e.year+t,e.month,e.day)}class Uq extends si{fromJulianDay(t){let n=super.fromJulianDay(t),r=jC(n);return new ar(this,Na[r],n.year-sp[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Dv(t))}balanceDate(t){let n=Dv(t),r=jC(n);Na[r]!==t.era&&(t.era=Na[r],t.year=n.year-sp[r]),this.constrainDate(t)}constrainDate(t){let n=Na.indexOf(t.era),r=Kq[n];if(r!=null){let[i,o,s]=r,u=i-sp[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(s,t.day)))}if(t.year===1&&n>=0){let[,i,o]=ql[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return Na}getYearsInEra(t){let n=Na.indexOf(t.era),r=ql[n],i=ql[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(Dv(t))}getMinimumMonthInYear(t){let n=KC(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=KC(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function KC(e){if(e.year===1){let t=Na.indexOf(e.era);return ql[t]}}const J_=-543;class zq extends si{fromJulianDay(t){let n=super.fromJulianDay(t),r=Sd(n.era,n.year);return new ar(this,r-J_,n.month,n.day)}toJulianDay(t){return super.toJulianDay(UC(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(UC(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function UC(e){let[t,n]=Tm(e.year+J_);return new ar(t,n,e.month,e.day)}const Op=1911;function Q_(e){return e.era==="minguo"?e.year+Op:1-e.year+Op}function zC(e){let t=e-Op;return t>0?["minguo",t]:["before_minguo",1-t]}class qq extends si{fromJulianDay(t){let n=super.fromJulianDay(t),r=Sd(n.era,n.year),[i,o]=zC(r);return new ar(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(qC(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=zC(Q_(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(qC(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Op}constructor(...t){super(...t),this.identifier="roc"}}function qC(e){let[t,n]=Tm(Q_(e));return new ar(t,n,e.month,e.day)}const WC=1948320,HC=[0,31,62,93,124,155,186,216,246,276,306,336];class Wq{fromJulianDay(t){let n=t-WC,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,s=o<216?Math.floor(o/31):Math.floor((o-6)/30),u=o-HC[s]+1;return new ar(this,r,s+1,u)}toJulianDay(t){let n=WC-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=HC[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||zl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Av=78,GC=80;class Hq extends si{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Av,i=t-Ou(n.era,n.year,1,1),o;i<GC?(r--,o=za(n.year-1)?31:30,i+=o+155+90+10):(o=za(n.year)?31:30,i-=GC);let s,u;if(i<o)s=1,u=i+1;else{let l=i-o;l<155?(s=Math.floor(l/31)+2,u=l%31+1):(l-=155,s=Math.floor(l/30)+7,u=l%30+1)}return new ar(this,r,s,u)}toJulianDay(t){let n=t.year+Av,[r,i]=Tm(n),o,s;return za(i)?(o=31,s=Ou(r,i,3,21)):(o=30,s=Ou(r,i,3,22)),t.month===1?s+t.day-1:(s+=o+Math.min(t.month-2,5)*31,t.month>=8&&(s+=(t.month-7)*30),s+=t.day-1,s)}getDaysInMonth(t){return t.month===1&&za(t.year+Av)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Ip=1948440,YC=1948439,eo=1300,Al=1600,Gq=460322;function Lp(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function e5(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Lp(t,r,1,1)))/29.5)+1),o=n-Lp(t,r,i,1)+1;return new ar(e,r,i,o)}function ZC(e){return(14+11*e)%30<11}class X4{fromJulianDay(t){return e5(this,Ip,t)}toJulianDay(t){return Lp(Ip,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&ZC(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return ZC(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Yq extends X4{fromJulianDay(t){return e5(this,YC,t)}toJulianDay(t){return Lp(YC,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const Zq="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let db,Wl;function ap(e){return Gq+Wl[e-eo]}function Df(e,t){let n=e-eo,r=1<<11-(t-1);return(db[n]&r)===0?29:30}function XC(e,t){let n=ap(e);for(let r=1;r<t;r++)n+=Df(e,r);return n}function JC(e){return Wl[e+1-eo]-Wl[e-eo]}class Xq extends X4{fromJulianDay(t){let n=t-Ip,r=ap(eo),i=ap(Al);if(n<r||n>i)return super.fromJulianDay(t);{let o=eo-1,s=1,u=1;for(;u>0;){o++,u=n-ap(o)+1;let l=JC(o);if(u===l){s=12;break}else if(u<l){let d=Df(o,s);for(s=1;u>d;)u-=d,s++,d=Df(o,s);break}}return new ar(this,o,s,n-XC(o,s)+1)}}toJulianDay(t){return t.year<eo||t.year>Al?super.toJulianDay(t):Ip+XC(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<eo||t.year>Al?super.getDaysInMonth(t):Df(t.year,t.month)}getDaysInYear(t){return t.year<eo||t.year>Al?super.getDaysInYear(t):JC(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",db||(db=new Uint16Array(Uint8Array.from(atob(Zq),t=>t.charCodeAt(0)).buffer)),!Wl){Wl=new Uint32Array(Al-eo+1);let t=0;for(let n=eo;n<=Al;n++){Wl[n-eo]=t;for(let r=1;r<=12;r++)t+=Df(n,r)}}}}const QC=347997,t5=1080,n5=24*t5,Jq=29,Qq=12*t5+793,eW=Jq*n5+Qq;function _u(e){return zl(e*7+1,19)<7}function up(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return zl(3*(r+1),7)<3&&(r+=1),r}function tW(e){let t=up(e-1),n=up(e);return up(e+1)-n===356?2:n-t===382?1:0}function Bf(e){return up(e)+tW(e)}function r5(e){return Bf(e+1)-Bf(e)}function nW(e){let t=r5(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Ih(e,t){if(t>=6&&!_u(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=nW(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?_u(e)?30:0:30}class rW{fromJulianDay(t){let n=t-QC,r=n*n5/eW,i=Math.floor((19*r+234)/235)+1,o=Bf(i),s=Math.floor(n-o);for(;s<1;)i--,o=Bf(i),s=Math.floor(n-o);let u=1,l=0;for(;l<s;)l+=Ih(i,u),u++;u--,l-=Ih(i,u);let d=s-l;return new ar(this,i,u,d)}toJulianDay(t){let n=Bf(t.year);for(let r=1;r<t.month;r++)n+=Ih(t.year,r);return n+t.day+QC}getDaysInMonth(t){return Ih(t.year,t.month)}getMonthsInYear(t){return _u(t.year)?13:12}getDaysInYear(t){return r5(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(_u(n.year)&&!_u(t.year)&&n.month>6?t.month--:!_u(n.year)&&_u(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const hb=1723856,eS=1824665,pb=5500;function Bp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function J4(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Bp(e,n,1,1))/30),i=t+1-Bp(e,n,r,1);return[n,r,i]}function i5(e){return Math.floor(e%4/3)}function o5(e,t){return t%13!==0?30:i5(e)+5}class Q4{fromJulianDay(t){let[n,r,i]=J4(hb,t),o="AM";return n<=0&&(o="AA",n+=pb),new ar(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=pb),Bp(hb,n,t.month,t.day)}getDaysInMonth(t){return o5(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+i5(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class iW extends Q4{fromJulianDay(t){let[n,r,i]=J4(hb,t);return n+=pb,new ar(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class oW extends Q4{fromJulianDay(t){let[n,r,i]=J4(eS,t),o="CE";return n<=0&&(o="BCE",n=1-n),new ar(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Bp(eS,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),o5(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function sW(e){switch(e){case"buddhist":return new zq;case"ethiopic":return new Q4;case"ethioaa":return new iW;case"coptic":return new oW;case"hebrew":return new rW;case"indian":return new Hq;case"islamic-civil":return new X4;case"islamic-tbla":return new Yq;case"islamic-umalqura":return new Xq;case"japanese":return new Uq;case"persian":return new Wq;case"roc":return new qq;case"gregory":default:return new si}}let Tv=new Map;class oo{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return lW()&&(this.resolvedHourCycle||(this.resolvedHourCycle=cW(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=s5(t,n),this.options=n}}const aW={true:{ja:"h11"},false:{}};function s5(e,t={}){if(typeof t.hour12=="boolean"&&uW()){t={...t};let i=aW[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Tv.has(n))return Tv.get(n);let r=new Intl.DateTimeFormat(e,t);return Tv.set(n,r),r}let Pv=null;function uW(){return Pv==null&&(Pv=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Pv}let _v=null;function lW(){return _v==null&&(_v=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),_v}function cW(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=s5(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function fs(e){e=p_(e??{},fW);let{locale:t}=Hr();return _.useMemo(()=>new oo(t,e),[t,e])}function fW(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let Rv=new Map,mb=!1;try{mb=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Vp=!1;try{Vp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const a5={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class u5{format(t){let n="";if(!mb&&this.options.signDisplay!=null?n=hW(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Vp){var r;let{unit:i,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!i)return n;let u=(r=a5[i])===null||r===void 0?void 0:r[o];n+=u[s]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!mb&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Vp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=dW(t,n),this.options=n}}function dW(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Vp){var r;let{unit:s,unitDisplay:u="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=a5[s])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,u)=>s[0]<u[0]?-1:1).join():"");if(Rv.has(i))return Rv.get(i);let o=new Intl.NumberFormat(e,t);return Rv.set(i,o),o}function hW(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),s=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(s,"+").replace("!!!",o)}else return e.format(n)}}const pW=new RegExp("^.*\\(.*\\).*$"),mW=["latn","arab","hanidec","deva","beng"];class l5{parse(t){return Mv(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Mv(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Mv(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const tS=new Map;function Mv(e,t,n){let r=nS(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of mW)if(i!==r.options.numberingSystem){let o=nS(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function nS(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=tS.get(n);return r||(r=new gW(e,t),tS.set(n,r)),r}class gW{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Lh(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,s>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new l5(this.locale,s).parse(new u5(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&pW.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Lh(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Lh(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Lh(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=yW(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const rS=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),vW=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function yW(e,t,n,r){var i,o,s,u;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=l.formatToParts(-10000.111),h=l.formatToParts(10000.111),m=vW.map(ae=>l.formatToParts(ae));var g;let b=(g=(i=d.find(ae=>ae.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",x=(o=h.find(ae=>ae.type==="plusSign"))===null||o===void 0?void 0:o.value;!x&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(x="+");let A=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(ae=>ae.type==="decimal"))===null||s===void 0?void 0:s.value,S=(u=d.find(ae=>ae.type==="group"))===null||u===void 0?void 0:u.value,w=d.filter(ae=>!rS.has(ae.type)).map(ae=>iS(ae.value)),D=m.flatMap(ae=>ae.filter(q=>!rS.has(q.type)).map(q=>iS(q.value))),k=[...new Set([...w,...D])].sort((ae,q)=>q.length-ae.length),R=k.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${k.join("|")}|[\\p{White_Space}]`,"gu"),O=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),H=new Map(O.map((ae,q)=>[ae,q])),F=new RegExp(`[${O.join("")}]`,"g");return{minusSign:b,plusSign:x,decimal:A,group:S,literals:R,numeral:F,index:ae=>String(H.get(ae))}}function Lh(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function iS(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function bW(e={}){let{locale:t}=Hr();return _.useMemo(()=>new u5(t,e),[t,e])}let Fv=new Map;function c5(e){let{locale:t}=Hr(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Fv.has(n))return Fv.get(n);let r=new Intl.Collator(t,e);return Fv.set(n,r),r}function f5(e){let t=c5({usage:"search",...e}),n=_.useCallback((o,s)=>s.length===0?!0:(o=o.normalize("NFC"),s=s.normalize("NFC"),t.compare(o.slice(0,s.length),s)===0),[t]),r=_.useCallback((o,s)=>s.length===0?!0:(o=o.normalize("NFC"),s=s.normalize("NFC"),t.compare(o.slice(-s.length),s)===0),[t]),i=_.useCallback((o,s)=>{if(s.length===0)return!0;o=o.normalize("NFC"),s=s.normalize("NFC");let u=0,l=s.length;for(;u+l<=o.length;u++){let d=o.slice(u,u+l);if(t.compare(s,d)===0)return!0}return!1},[t]);return _.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function $W(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:s,onPressUp:u,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:x,type:C="button"}=e,A;n==="button"?A={type:C,disabled:r}:A={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?C:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?x:void 0};let{pressProps:S,isPressed:w}=Cd({onPressStart:o,onPressEnd:s,onPressChange:l,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=K4(e,t);h&&(D.tabIndex=r?-1:D.tabIndex);let k=dn(D,S,la(e,{labelable:!0}));return{isPressed:w,buttonProps:dn(A,k,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:R=>{m&&(m(R),console.warn("onClick is deprecated, please use onPress"))}})}}var d5={};d5={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var h5={};h5={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var p5={};p5={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var m5={};m5={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var g5={};g5={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var v5={};v5={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var y5={};y5={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var b5={};b5={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var $5={};$5={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var x5={};x5={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var w5={};w5={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var C5={};C5={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var S5={};S5={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var E5={};E5={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var D5={};D5={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var A5={};A5={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var T5={};T5={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var P5={};P5={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var _5={};_5={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var R5={};R5={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var M5={};M5={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var F5={};F5={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var k5={};k5={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var O5={};O5={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var I5={};I5={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var L5={};L5={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var B5={};B5={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var V5={};V5={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var N5={};N5={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var j5={};j5={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var K5={};K5={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var U5={};U5={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var z5={};z5={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var q5={};q5={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Td={};Td={"ar-AE":d5,"bg-BG":h5,"cs-CZ":p5,"da-DK":m5,"de-DE":g5,"el-GR":v5,"en-US":y5,"es-ES":b5,"et-EE":$5,"fi-FI":x5,"fr-FR":w5,"he-IL":C5,"hr-HR":S5,"hu-HU":E5,"it-IT":D5,"ja-JP":A5,"ko-KR":T5,"lt-LT":P5,"lv-LV":_5,"nb-NO":R5,"nl-NL":M5,"pl-PL":F5,"pt-BR":k5,"pt-PT":O5,"ro-RO":I5,"ru-RU":L5,"sk-SK":B5,"sl-SI":V5,"sr-SP":N5,"sv-SE":j5,"tr-TR":K5,"uk-UA":U5,"zh-CN":z5,"zh-TW":q5};function W5(e){return e&&e.__esModule?e.default:e}const e3=new WeakMap;function td(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function xW(e){let t=ws(W5(Td),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let o=fs({weekday:"long",month:"long",year:"numeric",day:"numeric",era:td(n)||td(r),timeZone:e.timeZone}),s="anchorDate"in e?e.anchorDate:null;return _.useMemo(()=>{if(!s&&n&&r)if(yr(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=vb(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,s,e.timeZone,t,o])}function gb(e,t,n,r){let i=ws(W5(Td),"@react-aria/calendar"),o=td(e)||td(t),s=fs({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=fs({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return _.useMemo(()=>{if(yr(e,Dd(e))){if(yr(t,ub(e)))return s.format(e.toDate(n));if(yr(t,ub(t)))return r?vb(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))}return r?vb(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,s,u,i,n,r])}function vb(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),s=-1;for(let d=0;d<o.length;d++){let h=o[d];if(h.source==="shared"&&h.type==="literal")s=d;else if(h.source==="endRange")break}let u="",l="";for(let d=0;d<o.length;d++)d<s?u+=o[d].value:d>s&&(l+=o[d].value);return t.format("dateRange",{startDate:u,endDate:l})}const H5=7e3;let Ji=null;function Hl(e,t="assertive",n=H5){Ji?Ji.announce(e,t,n):(Ji=new CW,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ji.announce(e,t,n):setTimeout(()=>{Ji!=null&&Ji.isAttached()&&(Ji==null||Ji.announce(e,t,n))},100))}function wW(e){Ji&&Ji.clear(e)}class CW{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=H5){var i,o;if(!this.node)return;let s=document.createElement("div");typeof t=="object"?(s.setAttribute("role","img"),s.setAttribute("aria-labelledby",t["aria-labelledby"])):s.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(s):(o=this.politeLog)===null||o===void 0||o.appendChild(s),t!==""&&setTimeout(()=>{s.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function SW(e){return e&&e.__esModule?e.default:e}function G5(e,t){let n=ws(SW(Td),"@react-aria/calendar"),r=la(e),i=gb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=gb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);vC(()=>{t.isFocused||Hl(o)},[o]);let s=xW(t);vC(()=>{s&&Hl(s,"polite",4e3)},[s]);let u=ic([!!e.errorMessage,e.isInvalid,e.validationState]);e3.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:s});let[l,d]=_.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(d(!1),t.setFocused(!0));let[m,g]=_.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let x=oc({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:dn(r,x,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:u},title:i}}function EW(e,t){return G5(e,t)}function DW(e,t,n){let r=G5(e,t),i=_.useRef(!1),o=_.useRef(typeof window<"u"?window:null);return cs(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),cs(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},cs(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function AW(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:o}=Hr(),s=x=>{switch(x.key){case"Enter":case" ":x.preventDefault(),t.selectFocusedDate();break;case"PageUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousSection(x.shiftKey);break;case"PageDown":x.preventDefault(),x.stopPropagation(),t.focusNextSection(x.shiftKey);break;case"End":x.preventDefault(),x.stopPropagation(),t.focusSectionEnd();break;case"Home":x.preventDefault(),x.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":x.preventDefault(),x.stopPropagation(),o==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":x.preventDefault(),x.stopPropagation(),o==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":x.preventDefault(),x.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(x.preventDefault(),t.setAnchorDate(null));break}},u=gb(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:d}=e3.get(t),h=oc({"aria-label":[l,u].filter(Boolean).join(", "),"aria-labelledby":d}),m=fs({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=Hr(),b=_.useMemo(()=>{let x=Xf(Pm(t.timeZone),g,i);return[...new Array(7).keys()].map(C=>{let S=x.add({days:C}).toDate(t.timeZone);return m.format(S)})},[g,t.timeZone,m,i]);return{gridProps:dn(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:s,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b}}function TW(e){return e&&e.__esModule?e.default:e}function PW(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:s}=e3.get(t),u=ws(TW(Td),"@react-aria/calendar"),l=fs({weekday:"long",day:"numeric",month:"long",year:"numeric",era:td(r),timeZone:t.timeZone}),d=t.isSelected(r),h=t.isCellFocused(r);i=i||t.isCellDisabled(r);let m=t.isCellUnavailable(r),g=!i&&!m,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&yr(t.value,r));b&&(d=!0),r=p_(r,ab);let x=_.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),C=O_(r,t.timeZone),A=_.useMemo(()=>{let q="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(yr(r,t.value.start)||yr(r,t.value.end))&&(q=s+", "),q+=l.format(x),C?q=u.format(d?"todayDateSelected":"todayDate",{date:q}):d&&(q=u.format("dateSelected",{date:q})),t.minValue&&yr(r,t.minValue)?q+=", "+u.format("minimumDate"):t.maxValue&&yr(r,t.maxValue)&&(q+=", "+u.format("maximumDate")),q},[l,x,u,d,C,r,t,s]),S="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?S=u.format("finishRangeSelectionPrompt"):S=u.format("startRangeSelectionPrompt"));let w=xd(S),D=_.useRef(!1),k=_.useRef(!1),R=_.useRef(void 0),{pressProps:O,isPressed:H}=Cd({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(q){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(q.pointerType==="mouse"||q.pointerType==="touch")){if(t.highlightedRange&&!b){if(yr(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),k.current=!0;return}else if(yr(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),k.current=!0;return}}let De=()=>{t.setDragging(!0),R.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};q.pointerType==="touch"?R.current=setTimeout(De,200):De()}},onPressEnd(){k.current=!1,D.current=!1,clearTimeout(R.current),R.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(q){if(!t.isReadOnly&&("anchorDate"in t&&R.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(k.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(q.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let De=r.add({days:1});t.isInvalid(De)&&(De=r.subtract({days:1})),t.isInvalid(De)||t.setFocusedDate(De)}else q.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),F;i||(F=yr(r,t.focusedDate)?0:-1),_.useEffect(()=>{h&&n.current&&(Mo(n.current),Zf()!=="pointer"&&document.activeElement===n.current&&Rp(n.current,{containingElement:Em(n.current)}))},[h,n]);let ce=fs({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),ae=_.useMemo(()=>ce.formatToParts(x).find(q=>q.type==="day").value,[ce,x]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:dn(O,{onFocus(){i||t.setFocusedDate(r)},tabIndex:F,role:"button","aria-disabled":!g||void 0,"aria-label":A,"aria-invalid":b||void 0,"aria-describedby":[b?o:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(q){"highlightDate"in t&&(q.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(q){"releasePointerCapture"in q.target&&q.target.releasePointerCapture(q.pointerId)},onContextMenu(q){q.preventDefault()}}),isPressed:H,isFocused:h,isSelected:d,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:ae}}const Rm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Y5={...Rm,customError:!0,valid:!1},Ru={isInvalid:!1,validationDetails:Rm,validationErrors:[]},_W=_.createContext({}),uc="__formValidationState"+Date.now();function Pd(e){if(e[uc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[uc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return RW(e)}function RW(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:s,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Y5}:null,d=_.useMemo(()=>{if(!s||i==null)return null;let ae=MW(s,i);return oS(ae)},[s,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let h=_.useContext(_W),m=_.useMemo(()=>r?Array.isArray(r)?r.flatMap(ae=>yb(h[ae])):yb(h[r]):[],[h,r]),[g,b]=_.useState(h),[x,C]=_.useState(!1);h!==g&&(b(h),C(!1));let A=_.useMemo(()=>oS(x?[]:m),[x,m]),S=_.useRef(Ru),[w,D]=_.useState(Ru),k=_.useRef(Ru),R=()=>{if(!O)return;H(!1);let ae=d||o||S.current;kv(ae,k.current)||(k.current=ae,D(ae))},[O,H]=_.useState(!1);return _.useEffect(R),{realtimeValidation:l||A||d||o||Ru,displayValidation:u==="native"?l||A||w:l||A||d||o||w,updateValidation(ae){u==="aria"&&!kv(w,ae)?D(ae):S.current=ae},resetValidation(){let ae=Ru;kv(ae,k.current)||(k.current=ae,D(ae)),u==="native"&&H(!1),C(!0)},commitValidation(){u==="native"&&H(!0),C(!0)}}}function yb(e){return e?Array.isArray(e)?e:[e]:[]}function MW(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return yb(n)}return[]}function oS(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Y5}:null}function kv(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Np(...e){let t=new Set,n=!1,r={...Rm};for(let s of e){var i,o;for(let u of s.validationErrors)t.add(u);n||(n=s.isInvalid);for(let u in r)(i=r)[o=u]||(i[o]=s.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Z5(e,t,n){let{validationBehavior:r,focus:i}=e;En(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(kW(n.current))}});let o=or(()=>{t.resetValidation()}),s=or(l=>{var d;t.displayValidation.isInvalid||t.commitValidation();let h=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!l.defaultPrevented&&n&&h&&OW(h)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),S_("keyboard")}l.preventDefault()}),u=or(()=>{t.commitValidation()});_.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let d=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",u),d==null||d.addEventListener("reset",o),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",u),d==null||d.removeEventListener("reset",o)}},[n,s,u,o,r])}function FW(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function kW(e){return{isInvalid:!e.validity.valid,validationDetails:FW(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function OW(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Mm(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=xi(t);let s=xi(),u={};n?(r=r?`${s} ${r}`:s,u={id:s,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=oc({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:l}}function Fm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:s}=Mm(e),u=ic([!!t,!!n,r,i]),l=ic([!!t,!!n,r,i]);return s=dn(s,{"aria-describedby":[u,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:s,descriptionProps:{id:u},errorMessageProps:{id:l}}}const IW=0,LW=100,BW=1;function VW(e){const{isDisabled:t=!1,minValue:n=IW,maxValue:r=LW,numberFormatter:i,step:o=BW,orientation:s="horizontal"}=e;let u=_.useMemo(()=>{let ie=(r-n)/10;return ie=uf(ie,0,ie+o,o),Math.max(ie,o)},[o,r,n]),l=_.useCallback(ie=>ie==null?void 0:ie.map((Ae,Pe)=>{let Ie=Pe===0?n:ie[Pe-1],Le=Pe===ie.length-1?r:ie[Pe+1];return uf(Ae,Ie,Le,o)}),[n,r,o]),d=_.useMemo(()=>l(aS(e.value)),[e.value]),h=_.useMemo(()=>{var ie;return l((ie=aS(e.defaultValue))!==null&&ie!==void 0?ie:[n])},[e.defaultValue,n]),m=uS(e.value,e.defaultValue,e.onChange),g=uS(e.value,e.defaultValue,e.onChangeEnd);const[b,x]=Li(d,h,m),[C,A]=_.useState(new Array(b.length).fill(!1)),S=_.useRef(new Array(b.length).fill(!0)),[w,D]=_.useState(void 0),k=_.useRef(b),R=_.useRef(C);let O=ie=>{k.current=ie,x(ie)},H=ie=>{R.current=ie,A(ie)};function F(ie){return(ie-n)/(r-n)}function ce(ie){return ie===0?n:b[ie-1]}function ae(ie){return ie===b.length-1?r:b[ie+1]}function q(ie){return S.current[ie]}function De(ie,Ae){S.current[ie]=Ae}function z(ie,Ae){if(t||!q(ie))return;const Pe=ce(ie),Ie=ae(ie);Ae=uf(Ae,Pe,Ie,o);let Le=sS(k.current,ie,Ae);O(Le)}function j(ie,Ae){if(t||!q(ie))return;Ae&&(k.current=b);const Pe=R.current[ie];R.current=sS(R.current,ie,Ae),H(R.current),g&&Pe&&!R.current.some(Boolean)&&g(k.current)}function ne(ie){return i.format(ie)}function K(ie,Ae){z(ie,I(Ae))}function N(ie){return Math.round((ie-n)/o)*o+n}function I(ie){const Ae=ie*(r-n)+n;return sc(N(Ae),n,r)}function de(ie,Ae=1){let Pe=Math.max(Ae,o);z(ie,uf(b[ie]+Pe,n,r,o))}function se(ie,Ae=1){let Pe=Math.max(Ae,o);z(ie,uf(b[ie]-Pe,n,r,o))}return{values:b,getThumbValue:ie=>b[ie],setThumbValue:z,setThumbPercent:K,isThumbDragging:ie=>C[ie],setThumbDragging:j,focusedThumb:w,setFocusedThumb:D,getThumbPercent:ie=>F(b[ie]),getValuePercent:F,getThumbValueLabel:ie=>ne(b[ie]),getFormattedValue:ne,getThumbMinValue:ce,getThumbMaxValue:ae,getPercentValue:I,isThumbEditable:q,setThumbEditable:De,incrementThumb:de,decrementThumb:se,step:o,pageSize:u,orientation:s,isDisabled:t}}function sS(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function aS(e){if(e!=null)return Array.isArray(e)?e:[e]}function uS(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const lS={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function NW(e={}){let{style:t,isFocusable:n}=e,[r,i]=_.useState(!1),{focusWithinProps:o}=Sc({isDisabled:!n,onFocusWithinChange:u=>i(u)}),s=_.useMemo(()=>r?t:t?{...lS,...t}:lS,[r]);return{visuallyHiddenProps:{...o,style:s}}}function jW(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:s}=NW(e);return _.createElement(n,dn(o,s),t)}const t3=new WeakMap;function bb(e,t){let n=t3.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function KW(e,t,n){let{labelProps:r,fieldProps:i}=Mm(e),o=e.orientation==="vertical";var s;t3.set(t,{id:(s=r.id)!==null&&s!==void 0?s:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Hr(),{addGlobalListener:l,removeGlobalListener:d}=Cc();const h=_.useRef(null),m=u==="rtl",g=_.useRef(null),{moveProps:b}=D_({onMoveStart(){g.current=null},onMove({deltaX:S,deltaY:w}){if(!n.current)return;let{height:D,width:k}=n.current.getBoundingClientRect(),R=o?D:k;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*R);let O=o?w:S;if((o||m)&&(O=-O),g.current+=O,h.current!=null&&n.current){const H=sc(g.current/R,0,1);t.setThumbPercent(h.current,H)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let x=_.useRef(void 0),C=(S,w,D,k)=>{if(n.current&&!e.isDisabled&&t.values.every((R,O)=>!t.isThumbDragging(O))){let{height:R,width:O,top:H,left:F}=n.current.getBoundingClientRect(),ce=o?R:O,z=((o?k:D)-(o?H:F))/ce;(u==="rtl"||o)&&(z=1-z);let j=t.getPercentValue(z),ne,K=t.values.findIndex(N=>j-N<0);if(K===0)ne=K;else if(K===-1)ne=t.values.length-1;else{let N=t.values[K-1],I=t.values[K];Math.abs(N-j)<Math.abs(I-j)?ne=K-1:ne=K}ne>=0&&t.isThumbEditable(ne)?(S.preventDefault(),h.current=ne,t.setFocusedThumb(ne),x.current=w,t.setThumbDragging(h.current,!0),t.setThumbValue(ne,j),l(window,"mouseup",A,!1),l(window,"touchend",A,!1),l(window,"pointerup",A,!1)):h.current=null}},A=S=>{var w,D;((D=S.pointerId)!==null&&D!==void 0?D:(w=S.changedTouches)===null||w===void 0?void 0:w[0].identifier)===x.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),d(window,"mouseup",A,!1),d(window,"touchend",A,!1),d(window,"pointerup",A,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var S;(S=document.getElementById(bb(t,0)))===null||S===void 0||S.focus(),S_("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:dn({onMouseDown(S){S.button!==0||S.altKey||S.ctrlKey||S.metaKey||C(S,void 0,S.clientX,S.clientY)},onPointerDown(S){S.pointerType==="mouse"&&(S.button!==0||S.altKey||S.ctrlKey||S.metaKey)||C(S,S.pointerId,S.clientX,S.clientY)},onTouchStart(S){C(S,S.changedTouches[0].identifier,S.changedTouches[0].clientX,S.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((S,w)=>bb(t,w)).join(" "),"aria-live":"off"}}}function UW(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:s,inputRef:u,orientation:l=t.orientation,name:d}=e,h=e.isDisabled||t.isDisabled,m=l==="vertical",{direction:g}=Hr(),{addGlobalListener:b,removeGlobalListener:x}=Cc(),C=t3.get(t);var A;const{labelProps:S,fieldProps:w}=Mm({...e,id:bb(t,n),"aria-labelledby":`${C.id} ${(A=e["aria-labelledby"])!==null&&A!==void 0?A:""}`.trim()}),D=t.values[n],k=_.useCallback(()=>{u.current&&Mo(u.current)},[u]),R=t.focusedThumb===n;_.useEffect(()=>{R&&k()},[R,k]);let O=g==="rtl",H=_.useRef(null),{keyboardProps:F}=E_({onKeyDown(K){let{getThumbMaxValue:N,getThumbMinValue:I,decrementThumb:de,incrementThumb:se,setThumbValue:ie,setThumbDragging:Ae,pageSize:Pe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(K.key)){K.continuePropagation();return}switch(K.preventDefault(),Ae(n,!0),K.key){case"PageUp":se(n,Pe);break;case"PageDown":de(n,Pe);break;case"Home":ie(n,I(n));break;case"End":ie(n,N(n));break}Ae(n,!1)}}),{moveProps:ce}=D_({onMoveStart(){H.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:K,deltaY:N,pointerType:I,shiftKey:de}){const{getThumbPercent:se,setThumbPercent:ie,decrementThumb:Ae,incrementThumb:Pe,step:Ie,pageSize:Le}=t;if(!s.current)return;let{width:Je,height:Qe}=s.current.getBoundingClientRect(),ye=m?Qe:Je;if(H.current==null&&(H.current=se(n)*ye),I==="keyboard")K>0&&O||K<0&&!O||N>0?Ae(n,de?Le:Ie):Pe(n,de?Le:Ie);else{let Ne=m?N:K;(m||O)&&(Ne=-Ne),H.current+=Ne,ie(n,sc(H.current/ye,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!h);const{focusableProps:ae}=K4(dn(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let q=_.useRef(void 0),De=K=>{k(),q.current=K,t.setThumbDragging(n,!0),b(window,"mouseup",z,!1),b(window,"touchend",z,!1),b(window,"pointerup",z,!1)},z=K=>{var N,I;((I=K.pointerId)!==null&&I!==void 0?I:(N=K.changedTouches)===null||N===void 0?void 0:N[0].identifier)===q.current&&(k(),t.setThumbDragging(n,!1),x(window,"mouseup",z,!1),x(window,"touchend",z,!1),x(window,"pointerup",z,!1))},j=t.getThumbPercent(n);(m||g==="rtl")&&(j=1-j);let ne=h?{}:dn(F,ce,{onMouseDown:K=>{K.button!==0||K.altKey||K.ctrlKey||K.metaKey||De()},onPointerDown:K=>{K.button!==0||K.altKey||K.ctrlKey||K.metaKey||De(K.pointerId)},onTouchStart:K=>{De(K.changedTouches[0].identifier)}});return L4(u,D,K=>{t.setThumbValue(n,K)}),{inputProps:dn(ae,w,{type:"range",tabIndex:h?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:h,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[C["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[C["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:K=>{t.setThumbValue(n,parseFloat(K.target.value))}}),thumbProps:{...ne,style:{position:"absolute",[m?"top":"left"]:`${j*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:S,isDragging:t.isThumbDragging(n),isDisabled:h,isFocused:R}}function zW(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:s="text",validationBehavior:u="aria"}=e,[l,d]=Li(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=K4(e,t),m=Pd({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:x}=m.displayValidation,{labelProps:C,fieldProps:A,descriptionProps:S,errorMessageProps:w}=Fm({...e,isInvalid:g,errorMessage:e.errorMessage||b}),D=la(e,{labelable:!0});const k={type:s,pattern:e.pattern};return L4(t,l,d),Z5(e,m,t),_.useEffect(()=>{if(t.current instanceof Ja(t.current).HTMLTextAreaElement){let R=t.current;Object.defineProperty(R,"defaultValue",{get:()=>R.value,set:()=>{},configurable:!0})}},[t]),{labelProps:C,inputProps:dn(D,n==="input"?k:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:R=>d(R.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...A}),descriptionProps:S,errorMessageProps:w,isInvalid:g,validationErrors:b,validationDetails:x}}var X5={};X5={Empty:"فارغ"};var J5={};J5={Empty:"Изпразни"};var Q5={};Q5={Empty:"Prázdné"};var e6={};e6={Empty:"Tom"};var t6={};t6={Empty:"Leer"};var n6={};n6={Empty:"Άδειο"};var r6={};r6={Empty:"Empty"};var i6={};i6={Empty:"Vacío"};var o6={};o6={Empty:"Tühjenda"};var s6={};s6={Empty:"Tyhjä"};var a6={};a6={Empty:"Vide"};var u6={};u6={Empty:"ריק"};var l6={};l6={Empty:"Prazno"};var c6={};c6={Empty:"Üres"};var f6={};f6={Empty:"Vuoto"};var d6={};d6={Empty:"空"};var h6={};h6={Empty:"비어 있음"};var p6={};p6={Empty:"Tuščias"};var m6={};m6={Empty:"Tukšs"};var g6={};g6={Empty:"Tom"};var v6={};v6={Empty:"Leeg"};var y6={};y6={Empty:"Pusty"};var b6={};b6={Empty:"Vazio"};var $6={};$6={Empty:"Vazio"};var x6={};x6={Empty:"Gol"};var w6={};w6={Empty:"Не заполнено"};var C6={};C6={Empty:"Prázdne"};var S6={};S6={Empty:"Prazen"};var E6={};E6={Empty:"Prazno"};var D6={};D6={Empty:"Tomt"};var A6={};A6={Empty:"Boş"};var T6={};T6={Empty:"Пусто"};var P6={};P6={Empty:"空"};var _6={};_6={Empty:"空白"};var R6={};R6={"ar-AE":X5,"bg-BG":J5,"cs-CZ":Q5,"da-DK":e6,"de-DE":t6,"el-GR":n6,"en-US":r6,"es-ES":i6,"et-EE":o6,"fi-FI":s6,"fr-FR":a6,"he-IL":u6,"hr-HR":l6,"hu-HU":c6,"it-IT":f6,"ja-JP":d6,"ko-KR":h6,"lt-LT":p6,"lv-LV":m6,"nb-NO":g6,"nl-NL":v6,"pl-PL":y6,"pt-BR":b6,"pt-PT":$6,"ro-RO":x6,"ru-RU":w6,"sk-SK":C6,"sl-SI":S6,"sr-SP":E6,"sv-SE":D6,"tr-TR":A6,"uk-UA":T6,"zh-CN":P6,"zh-TW":_6};function qW(e){return e&&e.__esModule?e.default:e}function WW(e){const t=_.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:s,isReadOnly:u,isRequired:l,onIncrement:d,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:x}=e;const C=ws(qW(R6),"@react-aria/spinbutton"),A=()=>clearTimeout(t.current);_.useEffect(()=>()=>A(),[]);let S=q=>{if(!(q.ctrlKey||q.metaKey||q.shiftKey||q.altKey||u))switch(q.key){case"PageUp":if(h){q.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":d&&(q.preventDefault(),d==null||d());break;case"PageDown":if(g){q.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(q.preventDefault(),m==null||m());break;case"Home":b&&(q.preventDefault(),b==null||b());break;case"End":x&&(q.preventDefault(),x==null||x());break}},w=_.useRef(!1),D=()=>{w.current=!0},k=()=>{w.current=!1},R=r===""?C.format("Empty"):(r||`${n}`).replace("-","−");_.useEffect(()=>{w.current&&(wW("assertive"),Hl(R,"assertive"))},[R]);const O=or(q=>{A(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&O(60)},q)}),H=or(q=>{A(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&H(60)},q)});let F=q=>{q.preventDefault()},{addGlobalListener:ce,removeAllGlobalListeners:ae}=Cc();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":R,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":u||void 0,"aria-required":l||void 0,onKeyDown:S,onFocus:D,onBlur:k},incrementButtonProps:{onPressStart:()=>{O(400),ce(window,"contextmenu",F)},onPressEnd:()=>{A(),ae()},onFocus:D,onBlur:k},decrementButtonProps:{onPressStart:()=>{H(400),ce(window,"contextmenu",F)},onPressEnd:()=>{A(),ae()},onFocus:D,onBlur:k}}}var M6={};M6={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var F6={};F6={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var k6={};k6={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var O6={};O6={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var I6={};I6={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var L6={};L6={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var B6={};B6={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var V6={};V6={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var N6={};N6={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var j6={};j6={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var K6={};K6={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var U6={};U6={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var z6={};z6={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var q6={};q6={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var W6={};W6={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var H6={};H6={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var G6={};G6={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Y6={};Y6={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var Z6={};Z6={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var X6={};X6={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var J6={};J6={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Q6={};Q6={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var eR={};eR={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var tR={};tR={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var nR={};nR={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var rR={};rR={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var iR={};iR={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var oR={};oR={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var sR={};sR={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var aR={};aR={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var uR={};uR={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var lR={};lR={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var cR={};cR={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var fR={};fR={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var dR={};dR={"ar-AE":M6,"bg-BG":F6,"cs-CZ":k6,"da-DK":O6,"de-DE":I6,"el-GR":L6,"en-US":B6,"es-ES":V6,"et-EE":N6,"fi-FI":j6,"fr-FR":K6,"he-IL":U6,"hr-HR":z6,"hu-HU":q6,"it-IT":W6,"ja-JP":H6,"ko-KR":G6,"lt-LT":Y6,"lv-LV":Z6,"nb-NO":X6,"nl-NL":J6,"pl-PL":Q6,"pt-BR":eR,"pt-PT":tR,"ro-RO":nR,"ru-RU":rR,"sk-SK":iR,"sl-SI":oR,"sr-SP":sR,"sv-SE":aR,"tr-TR":uR,"uk-UA":lR,"zh-CN":cR,"zh-TW":fR};const ds={top:"top",bottom:"top",left:"left",right:"left"},jp={top:"bottom",bottom:"top",left:"right",right:"left"},HW={top:"left",left:"top"},$b={top:"height",left:"width"},hR={width:"totalWidth",height:"totalHeight"},Bh={};let Dr=typeof document<"u"?window.visualViewport:null;function cS(e){let t=0,n=0,r=0,i=0,o=0,s=0,u={};var l;let d=((l=Dr==null?void 0:Dr.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let x=document.documentElement;r=x.clientWidth,i=x.clientHeight;var h;t=(h=Dr==null?void 0:Dr.width)!==null&&h!==void 0?h:r;var m;n=(m=Dr==null?void 0:Dr.height)!==null&&m!==void 0?m:i,u.top=x.scrollTop||e.scrollTop,u.left=x.scrollLeft||e.scrollLeft,Dr&&(o=Dr.offsetTop,s=Dr.offsetLeft)}else({width:t,height:n,top:o,left:s}=Gl(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(O4()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var g;o=(g=Dr==null?void 0:Dr.pageTop)!==null&&g!==void 0?g:0;var b;s=(b=Dr==null?void 0:Dr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:s}}function GW(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function fS(e,t,n,r,i,o,s){var u;let l=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[$b[e]],h=r.scroll[ds[e]]+o,m=d+r.scroll[ds[e]]-o,g=t-l+s[e]-r[ds[e]],b=t-l+n+s[e]-r[ds[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function YW(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function dS(e){if(Bh[e])return Bh[e];let[t,n]=e.split(" "),r=ds[t]||"right",i=HW[r];ds[n]||(n="center");let o=$b[r],s=$b[i];return Bh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:s},Bh[e]}function Ov(e,t,n,r,i,o,s,u,l,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:x,crossSize:C}=r,A={};var S;A[b]=(S=e[b])!==null&&S!==void 0?S:0;var w,D,k,R;m==="center"?A[b]+=(((w=e[C])!==null&&w!==void 0?w:0)-((D=n[C])!==null&&D!==void 0?D:0))/2:m!==b&&(A[b]+=((k=e[C])!==null&&k!==void 0?k:0)-((R=n[C])!==null&&R!==void 0?R:0)),A[b]+=o;const O=e[b]-n[C]+l+d,H=e[b]+e[C]-l-d;if(A[b]=sc(A[b],O,H),h===g){const F=u?s[x]:t[hR[x]];A[jp[g]]=Math.floor(F-e[g]+i)}else A[g]=Math.floor(e[g]+e[x]+i);return A}function ZW(e,t,n,r,i,o,s,u){const l=r?n.height:t[hR.height];var d;let h=e.top!=null?n.top+e.top:n.top+(l-((d=e.bottom)!==null&&d!==void 0?d:0)-s);var m,g,b,x,C,A;let S=u!=="top"?Math.max(0,t.height+t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0)-h-(((g=i.top)!==null&&g!==void 0?g:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+o)):Math.max(0,h+s-(t.top+((x=t.scroll.top)!==null&&x!==void 0?x:0))-(((C=i.top)!==null&&C!==void 0?C:0)+((A=i.bottom)!==null&&A!==void 0?A:0)+o));return Math.min(t.height-o*2,S)}function hS(e,t,n,r,i,o){let{placement:s,axis:u,size:l}=o;var d,h;if(s===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((h=r[u])!==null&&h!==void 0?h:0)-r[jp[u]]-i);var m;return Math.max(0,e[l]+e[u]+e.scroll[u]-t[u]-n[u]-n[l]-((m=r[u])!==null&&m!==void 0?m:0)-r[jp[u]]-i)}function XW(e,t,n,r,i,o,s,u,l,d,h,m,g,b,x,C){let A=dS(e),{size:S,crossAxis:w,crossSize:D,placement:k,crossPlacement:R}=A,O=Ov(t,u,n,A,h,m,d,g,x,C),H=h,F=hS(u,d,t,i,o+h,A);if(s&&r[S]>F){let Ie=dS(`${jp[k]} ${R}`),Le=Ov(t,u,n,Ie,h,m,d,g,x,C);hS(u,d,t,i,o+h,Ie)>F&&(A=Ie,O=Le,H=h)}let ce="bottom";A.axis==="top"?A.placement==="top"?ce="top":A.placement==="bottom"&&(ce="bottom"):A.crossAxis==="top"&&(A.crossPlacement==="top"?ce="bottom":A.crossPlacement==="bottom"&&(ce="top"));let ae=fS(w,O[w],n[D],u,l,o,d);O[w]+=ae;let q=ZW(O,u,d,g,i,o,n.height,ce);b&&b<q&&(q=b),n.height=Math.min(n.height,q),O=Ov(t,u,n,A,H,m,d,g,x,C),ae=fS(w,O[w],n[D],u,l,o,d),O[w]+=ae;let De={},z=t[w]+.5*t[D]-O[w]-i[ds[w]];const j=x/2+C;var ne,K,N,I;const de=ds[w]==="left"?((ne=i.left)!==null&&ne!==void 0?ne:0)+((K=i.right)!==null&&K!==void 0?K:0):((N=i.top)!==null&&N!==void 0?N:0)+((I=i.bottom)!==null&&I!==void 0?I:0),se=n[D]-de-x/2-C,ie=t[w]+x/2-(O[w]+i[ds[w]]),Ae=t[w]+t[D]-x/2-(O[w]+i[ds[w]]),Pe=sc(z,ie,Ae);return De[w]=sc(Pe,j,se),{position:O,maxHeight:q,arrowOffsetLeft:De.left,arrowOffsetTop:De.top,placement:A.placement}}function JW(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:s,boundaryElement:u,offset:l,crossOffset:d,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?QW(r):document.documentElement,x=b===document.documentElement;const C=window.getComputedStyle(b).position;let A=!!C&&C!=="static",S=x?Gl(n):pS(n,b);if(!x){let{marginTop:De,marginLeft:z}=window.getComputedStyle(n);S.top+=parseInt(De,10)||0,S.left+=parseInt(z,10)||0}let w=Gl(r),D=YW(r);var k,R;w.width+=((k=D.left)!==null&&k!==void 0?k:0)+((R=D.right)!==null&&R!==void 0?R:0);var O,H;w.height+=((O=D.top)!==null&&O!==void 0?O:0)+((H=D.bottom)!==null&&H!==void 0?H:0);let F=GW(i),ce=cS(u),ae=cS(b),q=u.tagName==="BODY"?Gl(b):pS(b,u);return b.tagName==="HTML"&&u.tagName==="BODY"&&(ae.scroll.top=0,ae.scroll.left=0),XW(t,S,w,F,D,o,s,ce,ae,q,l,d,A,h,m,g)}function Gl(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:s,clientTop:u,clientLeft:l}=document.documentElement;return{top:t+o-u,left:n+s-l,width:r,height:i}}function pS(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:s,height:u}=e.getBoundingClientRect();r={top:i,left:o,width:s,height:u}}else{r=Gl(e);let i=Gl(t),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function QW(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!mS(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!mS(t);)t=t.parentElement;return t||document.documentElement}function mS(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const pR=new WeakMap;function eH(e){let{triggerRef:t,isOpen:n,onClose:r}=e;_.useEffect(()=>{if(!n||r===null)return;let i=o=>{let s=o.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let u=r||pR.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let nr=typeof document<"u"?window.visualViewport:null;function tH(e){let{direction:t}=Hr(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:s="bottom",containerPadding:u=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:h=0,crossOffset:m=0,shouldUpdatePosition:g=!0,isOpen:b=!0,onClose:x,maxHeight:C,arrowBoundaryOffset:A=0}=e,[S,w]=_.useState(null),D=[g,s,i.current,r.current,o.current,u,l,d,h,m,b,t,C,A,n],k=_.useRef(nr==null?void 0:nr.scale);_.useEffect(()=>{b&&(k.current=nr==null?void 0:nr.scale)},[b]);let R=_.useCallback(()=>{if(g===!1||!b||!i.current||!r.current||!d||(nr==null?void 0:nr.scale)!==k.current)return;let ae=null;if(o.current&&o.current.contains(document.activeElement)){var q;let I=(q=document.activeElement)===null||q===void 0?void 0:q.getBoundingClientRect(),de=o.current.getBoundingClientRect();var De;if(ae={type:"top",offset:((De=I==null?void 0:I.top)!==null&&De!==void 0?De:0)-de.top},ae.offset>de.height/2){ae.type="bottom";var z;ae.offset=((z=I==null?void 0:I.bottom)!==null&&z!==void 0?z:0)-de.bottom}}let j=i.current;if(!C&&i.current){var ne;j.style.top="0px",j.style.bottom="";var K;j.style.maxHeight=((K=(ne=window.visualViewport)===null||ne===void 0?void 0:ne.height)!==null&&K!==void 0?K:window.innerHeight)+"px"}let N=JW({placement:rH(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:l,boundaryElement:d,offset:h,crossOffset:m,maxHeight:C,arrowSize:n,arrowBoundaryOffset:A});if(N.position){if(j.style.top="",j.style.bottom="",j.style.left="",j.style.right="",Object.keys(N.position).forEach(I=>j.style[I]=N.position[I]+"px"),j.style.maxHeight=N.maxHeight!=null?N.maxHeight+"px":"",ae&&document.activeElement&&o.current){let I=document.activeElement.getBoundingClientRect(),de=o.current.getBoundingClientRect(),se=I[ae.type]-de[ae.type];o.current.scrollTop+=se-ae.offset}w(N)}},D);En(R,D),nH(R),bC({ref:i,onResize:R}),bC({ref:r,onResize:R});let O=_.useRef(!1);En(()=>{let ae,q=()=>{O.current=!0,clearTimeout(ae),ae=setTimeout(()=>{O.current=!1},500),R()},De=()=>{O.current&&q()};return nr==null||nr.addEventListener("resize",q),nr==null||nr.addEventListener("scroll",De),()=>{nr==null||nr.removeEventListener("resize",q),nr==null||nr.removeEventListener("scroll",De)}},[R]);let H=_.useCallback(()=>{O.current||x==null||x()},[x,O]);eH({triggerRef:r,isOpen:b,onClose:x&&H});var F,ce;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...S==null?void 0:S.position,maxHeight:(F=S==null?void 0:S.maxHeight)!==null&&F!==void 0?F:"100vh"}},placement:(ce=S==null?void 0:S.placement)!==null&&ce!==void 0?ce:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:S==null?void 0:S.arrowOffsetLeft,top:S==null?void 0:S.arrowOffsetTop}},updatePosition:R}}function nH(e){En(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function rH(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Ys=[];function iH(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:u}=e;_.useEffect(()=>(i&&Ys.push(t),()=>{let x=Ys.indexOf(t);x>=0&&Ys.splice(x,1)}),[i,t]);let l=()=>{Ys[Ys.length-1]===t&&n&&n()},d=x=>{(!u||u(x.target))&&Ys[Ys.length-1]===t&&(x.stopPropagation(),x.preventDefault())},h=x=>{(!u||u(x.target))&&(Ys[Ys.length-1]===t&&(x.stopPropagation(),x.preventDefault()),l())},m=x=>{x.key==="Escape"&&!s&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),l())};Nz({ref:t,onInteractOutside:o&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=Sc({isDisabled:!r,onBlurWithin:x=>{!x.relatedTarget||Yz(x.relatedTarget)||(!u||u(x.relatedTarget))&&(n==null||n())}}),b=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function oH(e,t,n){let{type:r}=e,{isOpen:i}=t;_.useEffect(()=>{n&&n.current&&pR.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let s=xi();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}const Iv=typeof document<"u"&&window.visualViewport,sH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Vh=0,Lv;function aH(e={}){let{isDisabled:t}=e;En(()=>{if(!t)return Vh++,Vh===1&&($d()?Lv=lH():Lv=uH()),()=>{Vh--,Vh===0&&Lv()}},[t])}function uH(){return Zu(Fl(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Fl(document.documentElement,"overflow","hidden"))}function lH(){let e,t,n=d=>{e=Em(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Fl(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=()=>{t&&t()},o=d=>{let h=d.target;cH(h)&&(u(),h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",Iv&&(Iv.height<window.innerHeight?requestAnimationFrame(()=>{gS(h)}):Iv.addEventListener("resize",()=>gS(h),{once:!0}))}))},s=null,u=()=>{if(s)return;let d=()=>{window.scrollTo(0,0)},h=window.pageXOffset,m=window.pageYOffset;s=Zu(cf(window,"scroll",d),Fl(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Fl(document.documentElement,"overflow","hidden"),Fl(document.body,"marginTop",`-${m}px`),()=>{window.scrollTo(h,m)}),window.scrollTo(0,0)},l=Zu(cf(document,"touchstart",n,{passive:!1,capture:!0}),cf(document,"touchmove",r,{passive:!1,capture:!0}),cf(document,"touchend",i,{passive:!1,capture:!0}),cf(document,"focus",o,!0));return()=>{t==null||t(),s==null||s(),l()}}function Fl(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function cf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function gS(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Em(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function cH(e){return e instanceof HTMLInputElement&&!sH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let ff=new WeakMap,Yi=[];function mR(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let g of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(g);let d=g=>{if(n.has(g)||g.parentElement&&r.has(g.parentElement)&&g.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let b of n)if(g.contains(b))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},h=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),m=d(l);if(m===NodeFilter.FILTER_ACCEPT&&o(l),m!==NodeFilter.FILTER_REJECT){let g=h.nextNode();for(;g!=null;)o(g),g=h.nextNode()}},o=l=>{var d;let h=(d=ff.get(l))!==null&&d!==void 0?d:0;l.getAttribute("aria-hidden")==="true"&&h===0||(h===0&&l.setAttribute("aria-hidden","true"),r.add(l),ff.set(l,h+1))};Yi.length&&Yi[Yi.length-1].disconnect(),i(t);let s=new MutationObserver(l=>{for(let d of l)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(h=>h.contains(d.target))){for(let h of d.removedNodes)h instanceof Element&&(n.delete(h),r.delete(h));for(let h of d.addedNodes)(h instanceof HTMLElement||h instanceof SVGElement)&&(h.dataset.liveAnnouncer==="true"||h.dataset.reactAriaTopLayer==="true")?n.add(h):h instanceof Element&&i(h)}});s.observe(t,{childList:!0,subtree:!0});let u={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Yi.push(u),()=>{s.disconnect();for(let l of r){let d=ff.get(l);d!=null&&(d===1?(l.removeAttribute("aria-hidden"),ff.delete(l)):ff.set(l,d-1))}u===Yi[Yi.length-1]?(Yi.pop(),Yi.length&&Yi[Yi.length-1].observe()):Yi.splice(Yi.indexOf(u),1)}}function fH(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...u}=e,{overlayProps:l,underlayProps:d}=iH({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},r),{overlayProps:h,arrowProps:m,placement:g}=tH({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:null});return aH({isDisabled:i||!t.isOpen}),En(()=>{if(t.isOpen&&!i&&r.current)return mR([r.current])},[i,t.isOpen,r]),{popoverProps:dn(l,h),arrowProps:m,underlayProps:d,placement:g}}const dH=_.createContext({});function hH(){var e;return(e=_.useContext(dH))!==null&&e!==void 0?e:{}}const gR=_.createContext(null);function pH(e){let t=F4(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=_.useState(!1),s=_.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=hH();if(!e.portalContainer&&u&&(n=u()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=_.createElement(zz,{restoreFocus:!0,contain:i&&!r},l)),l=_.createElement(gR.Provider,{value:s},_.createElement(Mz,null,l)),Ha.createPortal(l,n)}function mH(){let e=_.useContext(gR),t=e==null?void 0:e.setContain;En(()=>{t==null||t(!0)},[t])}const km=new WeakMap;function gH(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function vR(e,t){let n=km.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${gH(t)}`}function xb(e){return ip()?e.altKey:e.ctrlKey}const vH=1e3;function yH(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=_.useRef({search:"",timeout:void 0}).current,o=s=>{let u=bH(s.key);if(!(!u||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))){if(u===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},vH)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function bH(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function yR(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:s=!1,disallowSelectAll:u=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:h,allowsTabNavigation:m=!1,isVirtualized:g,scrollRef:b=r,linkBehavior:x="action"}=e,{direction:C}=Hr(),A=Sm(),S=z=>{var j;if(z.altKey&&z.key==="Tab"&&z.preventDefault(),!(!((j=r.current)===null||j===void 0)&&j.contains(z.target)))return;const ne=(ye,Ne)=>{if(ye!=null){if(t.isLink(ye)&&x==="selection"&&l&&!xb(z)){var He;Ha.flushSync(()=>{t.setFocusedKey(ye,Ne)});let Ke=(He=b.current)===null||He===void 0?void 0:He.querySelector(`[data-key="${CSS.escape(ye.toString())}"]`),Be=t.getItemProps(ye);Ke&&A.open(Ke,z,Be.href,Be.routerOptions);return}if(t.setFocusedKey(ye,Ne),t.isLink(ye)&&x==="override")return;z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ye):l&&!xb(z)&&t.replaceSelection(ye)}};switch(z.key){case"ArrowDown":if(n.getKeyBelow){var K,N,I;let ye=t.focusedKey!=null?(K=n.getKeyBelow)===null||K===void 0?void 0:K.call(n,t.focusedKey):(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n);ye==null&&o&&(ye=(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n,t.focusedKey)),ye!=null&&(z.preventDefault(),ne(ye))}break;case"ArrowUp":if(n.getKeyAbove){var de,se,ie;let ye=t.focusedKey!=null?(de=n.getKeyAbove)===null||de===void 0?void 0:de.call(n,t.focusedKey):(se=n.getLastKey)===null||se===void 0?void 0:se.call(n);ye==null&&o&&(ye=(ie=n.getLastKey)===null||ie===void 0?void 0:ie.call(n,t.focusedKey)),ye!=null&&(z.preventDefault(),ne(ye))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ae,Pe,Ie;let ye=t.focusedKey!=null?(Ae=n.getKeyLeftOf)===null||Ae===void 0?void 0:Ae.call(n,t.focusedKey):null;ye==null&&o&&(ye=C==="rtl"?(Pe=n.getFirstKey)===null||Pe===void 0?void 0:Pe.call(n,t.focusedKey):(Ie=n.getLastKey)===null||Ie===void 0?void 0:Ie.call(n,t.focusedKey)),ye!=null&&(z.preventDefault(),ne(ye,C==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Le,Je,Qe;let ye=t.focusedKey!=null?(Le=n.getKeyRightOf)===null||Le===void 0?void 0:Le.call(n,t.focusedKey):null;ye==null&&o&&(ye=C==="rtl"?(Je=n.getLastKey)===null||Je===void 0?void 0:Je.call(n,t.focusedKey):(Qe=n.getFirstKey)===null||Qe===void 0?void 0:Qe.call(n,t.focusedKey)),ye!=null&&(z.preventDefault(),ne(ye,C==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&z.shiftKey)return;z.preventDefault();let ye=n.getFirstKey(t.focusedKey,_l(z));t.setFocusedKey(ye),ye!=null&&(_l(z)&&z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ye):l&&t.replaceSelection(ye))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&z.shiftKey)return;z.preventDefault();let ye=n.getLastKey(t.focusedKey,_l(z));t.setFocusedKey(ye),ye!=null&&(_l(z)&&z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ye):l&&t.replaceSelection(ye))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ye=n.getKeyPageBelow(t.focusedKey);ye!=null&&(z.preventDefault(),ne(ye))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ye=n.getKeyPageAbove(t.focusedKey);ye!=null&&(z.preventDefault(),ne(ye))}break;case"a":_l(z)&&t.selectionMode==="multiple"&&u!==!0&&(z.preventDefault(),t.selectAll());break;case"Escape":!s&&t.selectedKeys.size!==0&&(z.stopPropagation(),z.preventDefault(),t.clearSelection());break;case"Tab":if(!m){if(z.shiftKey)r.current.focus();else{let ye=yi(r.current,{tabbable:!0}),Ne,He;do He=ye.lastChild(),He&&(Ne=He);while(He);Ne&&!Ne.contains(document.activeElement)&&Mo(Ne)}break}}},w=_.useRef({top:0,left:0});cs(b,"scroll",g?void 0:()=>{var z,j,ne,K;w.current={top:(ne=(z=b.current)===null||z===void 0?void 0:z.scrollTop)!==null&&ne!==void 0?ne:0,left:(K=(j=b.current)===null||j===void 0?void 0:j.scrollLeft)!==null&&K!==void 0?K:0}});let D=z=>{if(t.isFocused){z.currentTarget.contains(z.target)||t.setFocused(!1);return}if(z.currentTarget.contains(z.target)){if(t.setFocused(!0),t.focusedKey==null){var j,ne;let I=se=>{se!=null&&(t.setFocusedKey(se),l&&t.replaceSelection(se))},de=z.relatedTarget;var K,N;de&&z.currentTarget.compareDocumentPosition(de)&Node.DOCUMENT_POSITION_FOLLOWING?I((K=t.lastSelectedKey)!==null&&K!==void 0?K:(j=n.getLastKey)===null||j===void 0?void 0:j.call(n)):I((N=t.firstSelectedKey)!==null&&N!==void 0?N:(ne=n.getFirstKey)===null||ne===void 0?void 0:ne.call(n))}else!g&&b.current&&(b.current.scrollTop=w.current.top,b.current.scrollLeft=w.current.left);if(t.focusedKey!=null&&b.current){let I=b.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);I&&(I.contains(document.activeElement)||Mo(I),Zf()==="keyboard"&&Rp(I,{containingElement:r.current}))}}},k=z=>{z.currentTarget.contains(z.relatedTarget)||t.setFocused(!1)},R=_.useRef(!1);cs(r,wz,h?z=>{let{detail:j}=z;z.stopPropagation(),t.setFocused(!0),(j==null?void 0:j.focusStrategy)==="first"&&(R.current=!0)}:void 0);let O=or(()=>{var z,j;let ne=(j=(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n))!==null&&j!==void 0?j:null;if(ne==null){var K;(K=r.current)===null||K===void 0||K.dispatchEvent(new CustomEvent(m_,{cancelable:!0,bubbles:!0})),t.collection.size>0&&(R.current=!1)}else t.setFocusedKey(ne),R.current=!1});yC(()=>{R.current&&O()},[t.collection,O]);let H=or(()=>{t.collection.size>0&&(R.current=!1)});yC(()=>{H()},[t.focusedKey,H]),cs(r,xz,h?z=>{z.stopPropagation(),t.setFocused(!1),t.setFocusedKey(null)}:void 0);const F=_.useRef(i);_.useEffect(()=>{if(F.current){var z,j;let N=null;var ne;i==="first"&&(N=(ne=(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n))!==null&&ne!==void 0?ne:null);var K;i==="last"&&(N=(K=(j=n.getLastKey)===null||j===void 0?void 0:j.call(n))!==null&&K!==void 0?K:null);let I=t.selectedKeys;if(I.size){for(let de of I)if(t.canSelectItem(de)){N=de;break}}t.setFocused(!0),t.setFocusedKey(N),N==null&&!h&&r.current&&Qu(r.current)}},[]);let ce=_.useRef(t.focusedKey);_.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==ce.current||F.current)&&b.current&&r.current){let z=Zf(),j=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!j)return;(z==="keyboard"||F.current)&&(h_(b.current,j),z!=="virtual"&&Rp(j,{containingElement:r.current}))}!h&&t.isFocused&&t.focusedKey==null&&ce.current!=null&&r.current&&Qu(r.current),ce.current=t.focusedKey,F.current=!1}),cs(r,"react-aria-focus-scope-restore",z=>{z.preventDefault(),t.setFocused(!0)});let ae={onKeyDown:S,onFocus:D,onBlur:k,onMouseDown(z){b.current===z.target&&z.preventDefault()}},{typeSelectProps:q}=yH({keyboardDelegate:n,selectionManager:t});d||(ae=dn(q,ae));let De;return h?De=-1:De=t.focusedKey==null?0:-1,{collectionProps:{...ae,tabIndex:De}}}function $H(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:s,focus:u,isDisabled:l,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=Sm();t=xi(t);let b=I=>{if(I.pointerType==="keyboard"&&xb(I))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let de=n.getItemProps(r);g.open(i.current,I,de.href,de.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(m==="override"||m==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):I&&I.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||I&&(_l(I)||I.pointerType==="touch"||I.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};_.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!s)u?u():document.activeElement!==i.current&&i.current&&Qu(i.current);else{var de;let se=new CustomEvent(m_,{cancelable:!0,bubbles:!0});(de=i.current)===null||de===void 0||de.dispatchEvent(se)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,s]),l=l||n.isDisabled(r);let x={};!s&&!l?x={tabIndex:r===n.focusedKey?0:-1,onFocus(I){I.target===i.current&&n.setFocusedKey(r)}}:l&&(x.onMouseDown=I=>{I.preventDefault()});let C=n.isLink(r)&&m==="override",A=n.isLink(r)&&m!=="selection"&&m!=="none",S=!l&&n.canSelectItem(r)&&!C,w=(d||A)&&!l,D=w&&(n.selectionBehavior==="replace"?!S:!S||n.isEmpty),k=w&&S&&n.selectionBehavior==="replace",R=D||k,O=_.useRef(null),H=R&&S,F=_.useRef(!1),ce=_.useRef(!1),ae=I=>{if(d&&d(),A&&i.current){let de=n.getItemProps(r);g.open(i.current,I,de.href,de.routerOptions)}},q={};o?(q.onPressStart=I=>{O.current=I.pointerType,F.current=H,I.pointerType==="keyboard"&&(!R||yS())&&b(I)},h?(q.onPressUp=D?void 0:I=>{I.pointerType==="mouse"&&S&&b(I)},q.onPress=D?ae:I=>{I.pointerType!=="keyboard"&&I.pointerType!=="mouse"&&S&&b(I)}):q.onPress=I=>{if(D||k&&I.pointerType!=="mouse"){if(I.pointerType==="keyboard"&&!vS())return;ae(I)}else I.pointerType!=="keyboard"&&S&&b(I)}):(q.onPressStart=I=>{O.current=I.pointerType,F.current=H,ce.current=D,S&&(I.pointerType==="mouse"&&!D||I.pointerType==="keyboard"&&(!w||yS()))&&b(I)},q.onPress=I=>{(I.pointerType==="touch"||I.pointerType==="pen"||I.pointerType==="virtual"||I.pointerType==="keyboard"&&R&&vS()||I.pointerType==="mouse"&&ce.current)&&(R?ae(I):S&&b(I))}),x["data-key"]=r,q.preventFocusOnPress=s;let{pressProps:De,isPressed:z}=Cd(q),j=k?I=>{O.current==="mouse"&&(I.stopPropagation(),I.preventDefault(),ae(I))}:void 0,{longPressProps:ne}=A_({isDisabled:!H,onLongPress(I){I.pointerType==="touch"&&(b(I),n.setSelectionBehavior("toggle"))}}),K=I=>{O.current==="touch"&&F.current&&I.preventDefault()},N=n.isLink(r)?I=>{Xu.isOpening||I.preventDefault()}:void 0;return{itemProps:dn(x,S||D?De:{},H?ne:{},{onDoubleClick:j,onDragStartCapture:K,onClick:N,id:t}),isPressed:z,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:S,hasAction:R}}function vS(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function yS(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class bS{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,o;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t==null?void 0:t.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class bR{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let s=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(s,o)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Yf(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Yf(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let s=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(s,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new bS(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new bS(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function xH(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:s}=e,u=c5({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,d=_.useMemo(()=>o||new bR({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:u,layoutDelegate:s}),[o,s,n,r,i,u,l]),{collectionProps:h}=yR({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:h}}function wH(e,t,n){let r=la(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:s}=xH({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:u}=Sc({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=xi(e.id);km.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:h}=Mm({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:dn(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...dn(h,s)})}}function $R(e){return null}$R.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,s=t.title||t.children,u=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:u,"aria-label":t["aria-label"],hasChildNodes:CH(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];_.Children.forEach(o,d=>{l.push({type:"item",element:d})}),yield*l}}}};function CH(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&_.Children.count(e.children)>0)}let SH=$R;class EH{build(t,n){return this.context=n,$S(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(_.isValidElement(n)&&n.type===_.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];_.Children.forEach(n,s=>{s&&i.push(s)});let o=0;for(let s of i){let u=this.getFullNode({element:s,index:o},{});for(let l of u)o++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var s;let u=(s=o.key)!==null&&s!==void 0?s:o.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(_.isValidElement(t.element)&&t.element.type===_.Fragment){let A=[];_.Children.forEach(t.element.props.children,w=>{A.push(w)});var o;let S=(o=t.index)!==null&&o!==void 0?o:0;for(const w of A)yield*this.getFullNode({element:w,index:S++},n,r,i);return}let s=t.element;if(!s&&t.value&&n&&n.renderer){let A=this.cache.get(t.value);if(A&&(!A.shouldInvalidate||!A.shouldInvalidate(this.context))){A.index=t.index,A.parentKey=i?i.key:null,yield A;return}s=n.renderer(t.value)}if(_.isValidElement(s)){let A=s.type;if(typeof A!="function"&&typeof A.getCollectionNode!="function"){let k=s.type;throw new Error(`Unknown element <${k}> in collection.`)}let S=A.getCollectionNode(s.props,this.context);var u;let w=(u=t.index)!==null&&u!==void 0?u:0,D=S.next();for(;!D.done&&D.value;){let k=D.value;t.index=w;var l;let R=(l=k.key)!==null&&l!==void 0?l:null;R==null&&(R=k.element?null:this.getKey(s,t,n,r));let H=[...this.getFullNode({...k,key:R,index:w,wrapper:DH(t.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${s.key}`:s.key,i)];for(let F of H){var d,h;F.value=(h=(d=k.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,F.value&&this.cache.set(F.value,F);var m;if(t.type&&F.type!==t.type)throw new Error(`Unsupported type <${Bv(F.type)}> in <${Bv((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${Bv(t.type)}> is supported.`);w++,yield F}D=S.next(H)}return}if(t.key==null||t.type==null)return;let g=this;var b,x;let C={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(x=t.textValue)!==null&&x!==void 0?x:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:$S(function*(){if(!t.hasChildNodes||!t.childNodes)return;let A=0;for(let S of t.childNodes()){S.key!=null&&(S.key=`${C.key}${S.key}`);let w=g.getFullNode({...S,index:A},g.getChildState(n,S),C.key,C);for(let D of w)A++,yield D}})};yield C}constructor(){this.cache=new WeakMap}}function $S(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function DH(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Bv(e){return e[0].toUpperCase()+e.slice(1)}function AH(e,t,n){let r=_.useMemo(()=>new EH,[]),{children:i,items:o,collection:s}=e;return _.useMemo(()=>{if(s)return s;let l=r.build({children:i,items:o},n);return t(l)},[r,i,o,s,n,t])}function Om(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function TH(e){return PH(e)}function PH(e,t){for(let n of e)return n}function Vv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...xS(e,t),t],i=[...xS(e,n),n],o=r.slice(0,i.length).findIndex((s,u)=>s!==i[u]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(s=>s===n)>=0?1:(i.findIndex(s=>s===t)>=0,-1)}function xS(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const wS=new WeakMap;function xR(e){let t=wS.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(Om(o,e)):n++};return r(e),wS.set(e,n),n}function _H(e,t,n){var r,i;let{key:o}=e,s=km.get(t);var u;let l=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var d;let h=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:s==null?void 0:s.shouldSelectOnPressUp;var b;let x=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:s==null?void 0:s.shouldFocusOnHover;var C;let A=(C=e.shouldUseVirtualFocus)!==null&&C!==void 0?C:s==null?void 0:s.shouldUseVirtualFocus;var S;let w=(S=e.isVirtualized)!==null&&S!==void 0?S:s==null?void 0:s.isVirtualized,D=ic(),k=ic(),R={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};sa()&&O4()||(R["aria-label"]=e["aria-label"],R["aria-labelledby"]=D,R["aria-describedby"]=k);let O=t.collection.getItem(o);if(w){let N=Number(O==null?void 0:O.index);R["aria-posinset"]=Number.isNaN(N)?void 0:N+1,R["aria-setsize"]=xR(t.collection)}let H=s!=null&&s.onAction?()=>{var N;return s==null||(N=s.onAction)===null||N===void 0?void 0:N.call(s,o)}:void 0,F=vR(t,o),{itemProps:ce,isPressed:ae,isFocused:q,hasAction:De,allowsSelection:z}=$H({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&x,isVirtualized:w,shouldUseVirtualFocus:A,isDisabled:l,onAction:H||!(O==null||(r=O.props)===null||r===void 0)&&r.onAction?Zu(O==null||(i=O.props)===null||i===void 0?void 0:i.onAction,H):void 0,linkBehavior:s==null?void 0:s.linkBehavior,id:F}),{hoverProps:j}=Vz({isDisabled:l||!x,onHoverStart(){DC()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),ne=la(O==null?void 0:O.props);delete ne.id;let K=gz(O==null?void 0:O.props);return{optionProps:{...R,...dn(ne,ce,j,K),id:F},labelProps:{id:D},descriptionProps:{id:k},isFocused:q,isFocusVisible:q&&DC(),isSelected:h,isDisabled:l,isPressed:ae,allowsSelection:z,hasAction:De}}var wR={};wR={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var CR={};CR={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var SR={};SR={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var ER={};ER={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var DR={};DR={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var AR={};AR={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var TR={};TR={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var PR={};PR={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var _R={};_R={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var RR={};RR={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var MR={};MR={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var FR={};FR={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var kR={};kR={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var OR={};OR={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var IR={};IR={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var LR={};LR={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var BR={};BR={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var VR={};VR={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var NR={};NR={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var jR={};jR={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var KR={};KR={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var UR={};UR={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var zR={};zR={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var qR={};qR={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var WR={};WR={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var HR={};HR={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var GR={};GR={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var YR={};YR={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var ZR={};ZR={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var XR={};XR={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var JR={};JR={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var QR={};QR={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var eM={};eM={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var tM={};tM={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var nM={};nM={"ar-AE":wR,"bg-BG":CR,"cs-CZ":SR,"da-DK":ER,"de-DE":DR,"el-GR":AR,"en-US":TR,"es-ES":PR,"et-EE":_R,"fi-FI":RR,"fr-FR":MR,"he-IL":FR,"hr-HR":kR,"hu-HU":OR,"it-IT":IR,"ja-JP":LR,"ko-KR":BR,"lt-LT":VR,"lv-LV":NR,"nb-NO":jR,"nl-NL":KR,"pl-PL":UR,"pt-BR":zR,"pt-PT":qR,"ro-RO":WR,"ru-RU":HR,"sk-SK":GR,"sl-SI":YR,"sr-SP":ZR,"sv-SE":XR,"tr-TR":JR,"uk-UA":QR,"zh-CN":eM,"zh-TW":tM};function RH(e){return e&&e.__esModule?e.default:e}function MH(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,s=xi(),{triggerProps:u,overlayProps:l}=oH({type:r},t,n),d=b=>{if(!i&&!(o==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},h=ws(RH(nM),"@react-aria/menu"),{longPressProps:m}=A_({isDisabled:i||o!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&t.open(b.pointerType==="virtual"?"first":null)},onPress(b){b.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...o==="press"?g:m,id:s,onKeyDown:d},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function FH(e){return e&&e.__esModule?e.default:e}function kH(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:s,layoutDelegate:u,shouldFocusWrap:l,isReadOnly:d,isDisabled:h}=e,m=_.useRef(null);n=n??m;let g=ws(FH(dR),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:x}=MH({type:"listbox",isDisabled:h||d},t,n);km.set(t,{id:x.id});let{collection:C}=t,{disabledKeys:A}=t.selectionManager,S=_.useMemo(()=>s||new bR({collection:C,disabledKeys:A,ref:o,layoutDelegate:u}),[s,u,C,A,o]),{collectionProps:w}=yR({selectionManager:t.selectionManager,keyboardDelegate:S,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),D=Sm(),k=Ke=>{if(!Ke.nativeEvent.isComposing)switch(Ke.key){case"Enter":case"Tab":if(t.isOpen&&Ke.key==="Enter"&&Ke.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let Be=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(Ke.key==="Enter"&&Be instanceof HTMLAnchorElement){let st=t.collection.getItem(t.selectionManager.focusedKey);st&&D.open(Be,Ke,st.props.href,st.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ke.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},R=Ke=>{var Be;let st=(n==null?void 0:n.current)&&n.current===Ke.relatedTarget,Dt=(Be=r.current)===null||Be===void 0?void 0:Be.contains(Ke.relatedTarget);st||Dt||(e.onBlur&&e.onBlur(Ke),t.setFocused(!1))},O=Ke=>{t.isFocused||(e.onFocus&&e.onFocus(Ke),t.setFocused(!0))},{isInvalid:H,validationErrors:F,validationDetails:ce}=t.displayValidation,{labelProps:ae,inputProps:q,descriptionProps:De,errorMessageProps:z}=zW({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:Zu(t.isOpen&&w.onKeyDown,k,e.onKeyDown),onBlur:R,value:t.inputValue,onFocus:O,autoComplete:"off",validate:void 0,[uc]:t},i),j=Ke=>{if(Ke.pointerType==="touch"){var Be;(Be=i.current)===null||Be===void 0||Be.focus(),t.toggle(null,"manual")}},ne=Ke=>{if(Ke.pointerType!=="touch"){var Be;(Be=i.current)===null||Be===void 0||Be.focus(),t.toggle(Ke.pointerType==="keyboard"||Ke.pointerType==="virtual"?"first":null,"manual")}},K=oc({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),N=oc({id:x.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),I=_.useRef(0),de=Ke=>{if(h||d)return;if(Ke.timeStamp-I.current<500){var Be;Ke.preventDefault(),(Be=i.current)===null||Be===void 0||Be.focus();return}let st=Ke.target.getBoundingClientRect(),Dt=Ke.changedTouches[0],ln=Math.ceil(st.left+.5*st.width),At=Math.ceil(st.top+.5*st.height);if(Dt.clientX===ln&&Dt.clientY===At){var It;Ke.preventDefault(),(It=i.current)===null||It===void 0||It.focus(),t.toggle(null,"manual"),I.current=Ke.timeStamp}},se=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var ie;let Ae=(ie=se==null?void 0:se.parentKey)!==null&&ie!==void 0?ie:null;var Pe;let Ie=(Pe=t.selectionManager.focusedKey)!==null&&Pe!==void 0?Pe:null,Le=_.useRef(Ae),Je=_.useRef(Ie);_.useEffect(()=>{if(ip()&&se!=null&&Ie!=null&&Ie!==Je.current){let Be=t.selectionManager.isSelected(Ie),st=Ae!=null?t.collection.getItem(Ae):null,Dt=(st==null?void 0:st["aria-label"])||(typeof(st==null?void 0:st.rendered)=="string"?st.rendered:"")||"";var Ke;let ln=g.format("focusAnnouncement",{isGroupChange:(Ke=st&&Ae!==Le.current)!==null&&Ke!==void 0?Ke:!1,groupTitle:Dt,groupCount:st?[...Om(st,t.collection)].length:0,optionText:se["aria-label"]||se.textValue||"",isSelected:Be});Hl(ln)}Le.current=Ae,Je.current=Ie});let Qe=xR(t.collection),ye=_.useRef(Qe),Ne=_.useRef(t.isOpen);_.useEffect(()=>{let Ke=t.isOpen!==Ne.current&&(t.selectionManager.focusedKey==null||ip());if(t.isOpen&&(Ke||Qe!==ye.current)){let Be=g.format("countAnnouncement",{optionCount:Qe});Hl(Be)}ye.current=Qe,Ne.current=t.isOpen});let He=_.useRef(t.selectedKey);return _.useEffect(()=>{if(ip()&&t.isFocused&&t.selectedItem&&t.selectedKey!==He.current){let Ke=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Be=g.format("selectedAnnouncement",{optionText:Ke});Hl(Be)}He.current=t.selectedKey}),_.useEffect(()=>{if(t.isOpen)return mR([i.current,r.current].filter(Ke=>Ke!=null))},[t.isOpen,i,r]),{labelProps:ae,buttonProps:{...b,...K,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:j,onPressStart:ne,isDisabled:h||d},inputProps:dn(q,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?x.id:void 0,"aria-autocomplete":"list","aria-activedescendant":se?vR(t,se.key):void 0,onTouchEnd:de,autoCorrect:"off",spellCheck:"false"}),listBoxProps:dn(x,N,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:De,errorMessageProps:z,isInvalid:H,validationErrors:F,validationDetails:ce}}var rM={};rM={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var iM={};iM={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var oM={};oM={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var sM={};sM={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var aM={};aM={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var uM={};uM={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var lM={};lM={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var cM={};cM={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var fM={};fM={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var dM={};dM={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var hM={};hM={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var pM={};pM={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var mM={};mM={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var gM={};gM={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var vM={};vM={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var yM={};yM={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var bM={};bM={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var $M={};$M={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var xM={};xM={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var wM={};wM={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var CM={};CM={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var SM={};SM={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var EM={};EM={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var DM={};DM={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var AM={};AM={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var TM={};TM={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var PM={};PM={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var _M={};_M={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var RM={};RM={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var MM={};MM={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var FM={};FM={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var kM={};kM={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var OM={};OM={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var IM={};IM={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var _d={};_d={"ar-AE":rM,"bg-BG":iM,"cs-CZ":oM,"da-DK":sM,"de-DE":aM,"el-GR":uM,"en-US":lM,"es-ES":cM,"et-EE":fM,"fi-FI":dM,"fr-FR":hM,"he-IL":pM,"hr-HR":mM,"hu-HU":gM,"it-IT":vM,"ja-JP":yM,"ko-KR":bM,"lt-LT":$M,"lv-LV":xM,"nb-NO":wM,"nl-NL":CM,"pl-PL":SM,"pt-BR":EM,"pt-PT":DM,"ro-RO":AM,"ru-RU":TM,"sk-SK":PM,"sl-SI":_M,"sr-SP":RM,"sv-SE":MM,"tr-TR":FM,"uk-UA":kM,"zh-CN":OM,"zh-TW":IM};function n3(e,t,n){let{direction:r}=Hr(),i=_.useMemo(()=>Am(t),[t]),o=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},s=()=>{var l;if(!t.current)return;let d=(l=window.event)===null||l===void 0?void 0:l.target,h=yi(t.current,{tabbable:!0});if(d&&(h.currentNode=d,d=h.previousNode()),!d){let m;do m=h.lastChild(),m&&(d=m);while(m)}for(;d!=null&&d.hasAttribute("data-placeholder");){let m=h.previousNode();if(m&&m.hasAttribute("data-placeholder"))d=m;else break}d&&d.focus()},{pressProps:u}=Cd({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&s()},onPress(l){l.pointerType!=="mouse"&&s()}});return dn(u,{onKeyDown:o})}function OH(e){return e&&e.__esModule?e.default:e}const LM=new WeakMap,Vf="__role_"+Date.now(),BM="__focusManager_"+Date.now();function VM(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:u,fieldProps:l,descriptionProps:d,errorMessageProps:h}=Fm({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),m=_.useRef(null),{focusWithinProps:g}=Sc({...e,onFocusWithin(ae){var q;m.current=t.value,(q=e.onFocus)===null||q===void 0||q.call(e,ae)},onBlurWithin:ae=>{var q;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(q=e.onBlur)===null||q===void 0||q.call(e,ae)},onFocusWithinChange:e.onFocusChange}),b=ws(OH(_d),"@react-aria/datepicker"),x=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",C=t.maxGranularity==="hour"?"time":"date",A=t.value?b.format(x,{[C]:t.formatValue({month:"long"})}):"",S=xd(A),w=e[Vf]==="presentation"?l["aria-describedby"]:[S["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[BM],k=_.useMemo(()=>D||Am(n),[D,n]),R=n3(t,n,e[Vf]==="presentation");LM.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:w,focusManager:k});let O=_.useRef(e.autoFocus),H;e[Vf]==="presentation"?H={role:"presentation"}:H=dn(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":w}),_.useEffect(()=>{O.current&&k.focusFirst(),O.current=!1},[k]),L4(e.inputRef,t.value,t.setValue),Z5({...e,focus(){k.focusFirst()}},t,e.inputRef);let F={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(F.type="text",F.hidden=!0,F.required=e.isRequired,F.onChange=()=>{});let ce=la(e);return{labelProps:{...u,onClick:()=>{k.focusFirst()}},fieldProps:dn(ce,H,R,g,{onKeyDown(ae){e.onKeyDown&&e.onKeyDown(ae)},onKeyUp(ae){e.onKeyUp&&e.onKeyUp(ae)}}),inputProps:F,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:o,validationDetails:s}}function IH(e,t,n){var r;let i=VM(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function LH(e){return e&&e.__esModule?e.default:e}function BH(e,t,n){let r=xi(),i=xi(),o=xi(),s=ws(LH(_d),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Fm({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),x=n3(t,n),C=m["aria-labelledby"]||m.id,{locale:A}=Hr(),S=t.formatValue(A,{month:"long"}),w=S?s.format("selectedDateDescription",{date:S}):"",D=xd(w),k=[D["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,R=la(e),O=_.useMemo(()=>Am(n),[n]),{focusWithinProps:H}=Sc({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:dn(R,x,m,D,H,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":C,"aria-describedby":k,onKeyDown(F){t.isOpen||e.onKeyDown&&e.onKeyDown(F)},onKeyUp(F){t.isOpen||e.onKeyUp&&e.onKeyUp(F)}}),labelProps:{...h,onClick:()=>{O.focusFirst()}},fieldProps:{...m,id:o,[Vf]:"presentation","aria-describedby":k,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[uc]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:g,errorMessageProps:b,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${r} ${C}`,"aria-describedby":k,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${C}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:d}}function VH(e){return e&&e.__esModule?e.default:e}function NH(){let{locale:e}=Hr(),t=F_(VH(_d),"@react-aria/datepicker");return _.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new jH(e,t)}},[e,t])}class jH{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function KH(e,t,n){let r=_.useRef(""),{locale:i}=Hr(),o=NH(),{ariaLabel:s,ariaLabelledBy:u,ariaDescribedBy:l,focusManager:d}=LM.get(t),h=e.isPlaceholder?"":e.text,m=_.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),g=fs({month:"long",timeZone:m.timeZone}),b=fs({hour:"numeric",hour12:m.hour12,timeZone:m.timeZone});if(e.type==="month"&&!e.isPlaceholder){let I=g.format(t.dateValue);h=I!==h?`${h} – ${I}`:I}else e.type==="hour"&&!e.isPlaceholder&&(h=b.format(t.dateValue));let{spinButtonProps:x}=WW({value:e.value,textValue:h,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),C=_.useMemo(()=>new l5(i,{maximumFractionDigits:0}),[i]),A=()=>{if(e.text===e.placeholder&&d.focusPrevious(),C.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let I=e.text.slice(0,-1),de=C.parse(I);I=de===0?"":I,I.length===0||de===0?t.clearSegment(e.type):t.setSegment(e.type,de),r.current=I}else e.type==="dayPeriod"&&t.clearSegment(e.type)},S=I=>{if(I.key==="a"&&(sa()?I.metaKey:I.ctrlKey)&&I.preventDefault(),!(I.ctrlKey||I.metaKey||I.shiftKey||I.altKey))switch(I.key){case"Backspace":case"Delete":I.preventDefault(),I.stopPropagation(),A();break}},{startsWith:w}=f5({sensitivity:"base"}),D=fs({hour:"numeric",hour12:!0}),k=_.useMemo(()=>{let I=new Date;return I.setHours(0),D.formatToParts(I).find(de=>de.type==="dayPeriod").value},[D]),R=_.useMemo(()=>{let I=new Date;return I.setHours(12),D.formatToParts(I).find(de=>de.type==="dayPeriod").value},[D]),O=fs({year:"numeric",era:"narrow",timeZone:"UTC"}),H=_.useMemo(()=>{if(e.type!=="era")return[];let I=Un(new ar(1,1,1),t.calendar),de=t.calendar.getEras().map(ie=>{let Ae=I.set({year:1,month:1,day:1,era:ie}).toDate("UTC"),Ie=O.formatToParts(Ae).find(Le=>Le.type==="era").value;return{era:ie,formatted:Ie}}),se=UH(de.map(ie=>ie.formatted));if(se)for(let ie of de)ie.formatted=ie.formatted.slice(se);return de},[O,t.calendar,e.type]),F=I=>{if(t.isDisabled||t.isReadOnly)return;let de=r.current+I;switch(e.type){case"dayPeriod":if(w(k,I))t.setSegment("dayPeriod",0);else if(w(R,I))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let se=H.find(ie=>w(ie.formatted,I));se&&(t.setSegment("era",se.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!C.isValidPartialNumber(de))return;let se=C.parse(de),ie=se,Ae=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":se>11&&(ie=C.parse(I));break;case"h12":Ae=!1,se>12&&(ie=C.parse(I));break}e.value!==void 0&&e.value>=12&&se>1&&(se+=12)}else e.maxValue!==void 0&&se>e.maxValue&&(ie=C.parse(I));if(isNaN(se))return;let Pe=ie!==0||Ae;Pe&&t.setSegment(e.type,ie),e.maxValue!==void 0&&(+(se+"0")>e.maxValue||de.length>=String(e.maxValue).length)?(r.current="",Pe&&d.focusNext()):r.current=de;break}}},ce=()=>{r.current="",n.current&&Rp(n.current,{containingElement:Em(n.current)});let I=window.getSelection();I==null||I.collapse(n.current)},ae=_.useRef(typeof document<"u"?document:null);cs(ae,"selectionchange",()=>{var I;let de=window.getSelection();de!=null&&de.anchorNode&&(!((I=n.current)===null||I===void 0)&&I.contains(de==null?void 0:de.anchorNode))&&de.collapse(n.current)});let q=_.useRef("");cs(n,"beforeinput",I=>{if(n.current)switch(I.preventDefault(),I.inputType){case"deleteContentBackward":case"deleteContentForward":C.isValidPartialNumber(e.text)&&!t.isReadOnly&&A();break;case"insertCompositionText":q.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:I.data!=null&&F(I.data);break}}),cs(n,"input",I=>{let{inputType:de,data:se}=I;switch(de){case"insertCompositionText":n.current&&(n.current.textContent=q.current),se!=null&&(w(k,se)||w(R,se))&&F(se);break}}),En(()=>{let I=n.current;return()=>{document.activeElement===I&&(d.focusPrevious()||d.focusNext())}},[n,d]);let De=$d()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},z=_.useMemo(()=>t.segments.find(I=>I.isEditable),[t.segments]);e!==z&&!t.isInvalid&&(l=void 0);let j=xi(),ne=!t.isDisabled&&!t.isReadOnly&&e.isEditable,K=e.type==="literal"?"":o.of(e.type),N=oc({"aria-label":`${K}${s?`, ${s}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:dn(x,N,{id:j,...De,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:ne,suppressContentEditableWarning:ne,spellCheck:ne?"false":void 0,autoCorrect:ne?"off":void 0,[parseInt(_.version,10)>=17?"enterKeyHint":"enterkeyhint"]:ne?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!ne?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:S,onFocus:ce,style:{caretColor:"transparent"},onPointerDown(I){I.stopPropagation()},onMouseDown(I){I.stopPropagation()}})}}function UH(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function zH(e){return e&&e.__esModule?e.default:e}function qH(e,t,n){var r,i,o;let s=ws(zH(_d),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Fm({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),x=m["aria-labelledby"]||m.id,{locale:C}=Hr(),A=t.formatValue(C,{month:"long"}),S=A?s.format("selectedRangeDescription",{startDate:A.start,endDate:A.end}):"",w=xd(S),D={"aria-label":s.format("startDate"),"aria-labelledby":x},k={"aria-label":s.format("endDate"),"aria-labelledby":x},R=xi(),O=xi(),H=n3(t,n),F=[w["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,ce=_.useMemo(()=>Am(n,{accept:N=>N.id!==R}),[n,R]),ae={[BM]:ce,[Vf]:"presentation","aria-describedby":F,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},q=la(e),{focusWithinProps:De}=Sc({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),z=_.useRef(Ru),j=_.useRef(Ru);var ne,K;return{groupProps:dn(q,H,m,w,De,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":F,onKeyDown(N){t.isOpen||e.onKeyDown&&e.onKeyDown(N)},onKeyUp(N){t.isOpen||e.onKeyUp&&e.onKeyUp(N)}}),labelProps:{...h,onClick:()=>{ce.focusFirst()}},buttonProps:{...w,id:R,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${R} ${x}`,"aria-describedby":F,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:O,"aria-labelledby":`${R} ${x}`},startFieldProps:{...D,...ae,value:(ne=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&ne!==void 0?ne:null,onChange:N=>t.setDateTime("start",N),autoFocus:e.autoFocus,name:e.startName,[uc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(N){z.current=N,t.updateValidation(Np(N,j.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...k,...ae,value:(K=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&K!==void 0?K:null,onChange:N=>t.setDateTime("end",N),name:e.endName,[uc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(N){j.current=N,t.updateValidation(Np(z.current,N))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:g,errorMessageProps:b,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:d}}function WH(e,t){let{role:n="dialog"}=e,r=ic();r=e["aria-label"]?void 0:r;let i=_.useRef(!1);return _.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Qu(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Qu(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),mH(),{dialogProps:{...la(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function Yl(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function wb(e,t,n,r,i){let o={};for(let u in t)o[u]=Math.floor(t[u]/2),o[u]>0&&t[u]%2===0&&o[u]--;let s=Iu(e,t,n).subtract(o);return nd(e,s,t,n,r,i)}function Iu(e,t,n,r,i){let o=e;return t.years?o=mq(e):t.months?o=Dd(e):t.weeks&&(o=Xf(e,n)),nd(e,o,t,n,r,i)}function Cb(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let s=Iu(e,t,n).subtract(o);return nd(e,s,t,n,r,i)}function nd(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let s=q4(t,Iu(oi(i),n,r));s&&(t=s)}if(o&&e.compare(o)<=0){let s=z4(t,Cb(oi(o),n,r));s&&(t=s)}return t}function Ia(e,t,n){if(t){let r=q4(e,oi(t));r&&(e=r)}if(n){let r=z4(e,oi(n));r&&(e=r)}return e}function NM(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function jM(e){let t=_.useMemo(()=>new oo(e.locale),[e.locale]),n=_.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:s,maxValue:u,selectionAlignment:l,isDateUnavailable:d,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=_.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[x,C]=Li(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),A=_.useMemo(()=>x?Un(oi(x),g):null,[x,g]),S=_.useMemo(()=>x&&"timeZone"in x?x.timeZone:n.timeZone,[x,n.timeZone]),w=_.useMemo(()=>e.focusedValue?Ia(Un(oi(e.focusedValue),g),s,u):void 0,[e.focusedValue,g,s,u]),D=_.useMemo(()=>Ia(e.defaultFocusedValue?Un(oi(e.defaultFocusedValue),g):A||Un(Pm(S),g),s,u),[e.defaultFocusedValue,A,S,g,s,u]),[k,R]=Li(w,D,e.onFocusChange),[O,H]=_.useState(()=>{switch(l){case"start":return Iu(k,o,r,s,u);case"end":return Cb(k,o,r,s,u);case"center":default:return wb(k,o,r,s,u)}}),[F,ce]=_.useState(e.autoFocus||!1),ae=_.useMemo(()=>{let ie={...o};return ie.days?ie.days--:ie.days=-1,O.add(ie)},[O,o]),[q,De]=_.useState(g.identifier);if(g.identifier!==q){let ie=Un(k,g);H(wb(ie,o,r,s,u)),R(ie),De(g.identifier)}Yl(k,s,u)?R(Ia(k,s,u)):k.compare(O)<0?H(Cb(k,o,r,s,u)):k.compare(ae)>0&&H(Iu(k,o,r,s,u));function z(ie){ie=Ia(ie,s,u),R(ie)}function j(ie){if(!e.isDisabled&&!e.isReadOnly){let Ae=ie;if(Ae===null){C(null);return}if(Ae=Ia(Ae,s,u),Ae=NM(Ae,O,d),!Ae)return;Ae=Un(Ae,(x==null?void 0:x.calendar)||new si),x&&"hour"in x?C(x.set(Ae)):C(Ae)}}let ne=_.useMemo(()=>A?d&&d(A)?!0:Yl(A,s,u):!1,[A,d,s,u]),K=e.isInvalid||e.validationState==="invalid"||ne,N=K?"invalid":null,I=_.useMemo(()=>h==="visible"?o:Nv(o),[h,o]);var de,se;return{isDisabled:(de=e.isDisabled)!==null&&de!==void 0?de:!1,isReadOnly:(se=e.isReadOnly)!==null&&se!==void 0?se:!1,value:A,setValue:j,visibleRange:{start:O,end:ae},minValue:s,maxValue:u,focusedDate:k,timeZone:S,validationState:N,isValueInvalid:K,setFocusedDate(ie){z(ie),ce(!0)},focusNextDay(){z(k.add({days:1}))},focusPreviousDay(){z(k.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&z(k.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&z(k.subtract({weeks:1}))},focusNextPage(){let ie=O.add(I);R(Ia(k.add(I),s,u)),H(Iu(nd(k,ie,I,r,s,u),I,r))},focusPreviousPage(){let ie=O.subtract(I);R(Ia(k.subtract(I),s,u)),H(Iu(nd(k,ie,I,r,s,u),I,r))},focusSectionStart(){o.days?z(O):o.weeks?z(Xf(k,r)):(o.months||o.years)&&z(Dd(k))},focusSectionEnd(){o.days?z(ae):o.weeks?z(yq(k,r)):(o.months||o.years)&&z(ub(k))},focusNextSection(ie){if(!ie&&!o.days){z(k.add(Nv(o)));return}o.days?this.focusNextPage():o.weeks?z(k.add({months:1})):(o.months||o.years)&&z(k.add({years:1}))},focusPreviousSection(ie){if(!ie&&!o.days){z(k.subtract(Nv(o)));return}o.days?this.focusPreviousPage():o.weeks?z(k.subtract({months:1})):(o.months||o.years)&&z(k.subtract({years:1}))},selectFocusedDate(){d&&d(k)||j(k)},selectDate(ie){j(ie)},isFocused:F,setFocused:ce,isInvalid(ie){return Yl(ie,s,u)},isSelected(ie){return A!=null&&yr(ie,A)&&!this.isCellDisabled(ie)&&!this.isCellUnavailable(ie)},isCellFocused(ie){return F&&k&&yr(ie,k)},isCellDisabled(ie){return e.isDisabled||ie.compare(O)<0||ie.compare(ae)>0||this.isInvalid(ie)},isCellUnavailable(ie){return e.isDateUnavailable?e.isDateUnavailable(ie):!1},isPreviousVisibleRangeInvalid(){let ie=O.subtract({days:1});return yr(ie,O)||this.isInvalid(ie)},isNextVisibleRangeInvalid(){let ie=ae.add({days:1});return yr(ie,ae)||this.isInvalid(ie)},getDatesInWeek(ie,Ae=O){let Pe=Ae.add({weeks:ie}),Ie=[];Pe=Xf(Pe,r,m);let Le=U4(Pe,r,m);for(let Je=0;Je<Le;Je++)Ie.push(null);for(;Ie.length<7;){Ie.push(Pe);let Je=Pe.add({days:1});if(yr(Pe,Je))break;Pe=Je}for(;Ie.length<7;)Ie.push(null);return Ie}}}function Nv(e){let t={...e};for(let n in e)t[n]=1;return t}function HH(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:s={months:1},minValue:u,maxValue:l,...d}=e,[h,m]=Li(t,n||null,r),[g,b]=_.useState(null),x="center";if(h&&h.start&&h.end){let I=wb(oi(h.start),s,o,u,l).add(s).subtract({days:1});h.end.compare(I)>0&&(x="start")}let C=_.useRef(null),[A,S]=_.useState(null),w=_.useMemo(()=>q4(u,A==null?void 0:A.start),[u,A]),D=_.useMemo(()=>z4(l,A==null?void 0:A.end),[l,A]),k=jM({...d,value:h&&h.start,createCalendar:i,locale:o,visibleDuration:s,minValue:w,maxValue:D,selectionAlignment:x}),R=N=>{if(N&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const I=SS(N,k,-1),de=SS(N,k,1);C.current={start:I,end:de},S(C.current)}else C.current=null,S(null)},[O,H]=_.useState(k.visibleRange);(!ab(k.visibleRange.start,O.start)||!ab(k.visibleRange.end,O.end))&&(R(g),H(k.visibleRange));let F=N=>{N?(b(N),R(N)):(b(null),R(null))},ce=g?jv(g,k.focusedDate):h&&jv(h.start,h.end),ae=N=>{if(e.isReadOnly)return;const I=Ia(N,w,D),de=NM(I,k.visibleRange.start,e.isDateUnavailable);if(de)if(!g)F(de);else{let se=jv(g,de);se&&m({start:CS(se.start,h==null?void 0:h.start),end:CS(se.end,h==null?void 0:h.end)}),F(null)}},[q,De]=_.useState(!1),{isDateUnavailable:z}=e,j=_.useMemo(()=>!h||g?!1:z&&(z(h.start)||z(h.end))?!0:Yl(h.start,u,l)||Yl(h.end,u,l),[z,h,g,u,l]),ne=e.isInvalid||e.validationState==="invalid"||j;return{...k,value:h,setValue:m,anchorDate:g,setAnchorDate:F,highlightedRange:ce,validationState:ne?"invalid":null,isValueInvalid:ne,selectFocusedDate(){ae(k.focusedDate)},selectDate:ae,highlightDate(N){g&&k.setFocusedDate(N)},isSelected(N){return!!(ce&&N.compare(ce.start)>=0&&N.compare(ce.end)<=0&&!k.isCellDisabled(N)&&!k.isCellUnavailable(N))},isInvalid(N){var I,de;return k.isInvalid(N)||Yl(N,(I=C.current)===null||I===void 0?void 0:I.start,(de=C.current)===null||de===void 0?void 0:de.end)},isDragging:q,setDragging:De}}function jv(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:oi(e),end:oi(t)})}function CS(e,t){return e=Un(e,(t==null?void 0:t.calendar)||new si),t&&"hour"in t?t.set(e):e}function SS(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class Sb{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let u of s.childNodes)n(u)};for(let s of t)n(s);let r=null,i=0;for(let[s,u]of this.keyMap)r?(r.nextKey=s,u.prevKey=r.key):(this.firstKey=s,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class Po extends Set{constructor(t,n,r){super(t),t instanceof Po?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function GH(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function YH(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,s=_.useRef(!1),[,u]=_.useState(!1),l=_.useRef(null),d=_.useRef(null),[,h]=_.useState(null),m=_.useMemo(()=>ES(e.selectedKeys),[e.selectedKeys]),g=_.useMemo(()=>ES(e.defaultSelectedKeys,new Po),[e.defaultSelectedKeys]),[b,x]=Li(m,g,e.onSelectionChange),C=_.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[A,S]=_.useState(i);i==="replace"&&A==="toggle"&&typeof b=="object"&&b.size===0&&S("replace");let w=_.useRef(i);return _.useEffect(()=>{i!==w.current&&(S(i),w.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:A,setSelectionBehavior:S,get isFocused(){return s.current},setFocused(D){s.current=D,u(D)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(D,k="first"){l.current=D,d.current=k,h(D)},selectedKeys:b,setSelectedKeys(D){(r||!GH(D,b))&&x(D)},disabledKeys:C,disabledBehavior:o}}function ES(e,t){return e?e==="all"?"all":new Po(e):t}class ZH{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&Vv(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&Vv(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Po([n],n,n);else{let s=this.state.selectedKeys;var i;let u=(i=s.anchorKey)!==null&&i!==void 0?i:n;r=new Po(s,u,n);var o;for(let l of this.getKeyRange(u,(o=s.currentKey)!==null&&o!==void 0?o:n))r.delete(l);for(let l of this.getKeyRange(n,u))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Vv(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let s=this.collection.getItem(o);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Po(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Po([n],n,n):new Po;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Po;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let s=this.collection.getItem(r);(s==null?void 0:s.type)==="item"&&t.push(r);var o;s!=null&&s.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&n((o=(i=TH(Om(s,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Po)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function XH(e){let{filter:t,layoutDelegate:n}=e,r=YH(e),i=_.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=_.useCallback(h=>t?new Sb(t(h)):new Sb(h),[t]),s=_.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=AH(e,o,s),l=_.useMemo(()=>new ZH(u,r,{layoutDelegate:n}),[u,r,n]);const d=_.useRef(null);return _.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&d.current){const S=d.current.getItem(r.focusedKey),w=[...d.current.getKeys()].map(F=>{const ce=d.current.getItem(F);return(ce==null?void 0:ce.type)==="item"?ce:null}).filter(F=>F!==null),D=[...u.getKeys()].map(F=>{const ce=u.getItem(F);return(ce==null?void 0:ce.type)==="item"?ce:null}).filter(F=>F!==null);var h,m;const k=((h=w==null?void 0:w.length)!==null&&h!==void 0?h:0)-((m=D==null?void 0:D.length)!==null&&m!==void 0?m:0);var g,b,x;let R=Math.min(k>1?Math.max(((g=S==null?void 0:S.index)!==null&&g!==void 0?g:0)-k+1,0):(b=S==null?void 0:S.index)!==null&&b!==void 0?b:0,((x=D==null?void 0:D.length)!==null&&x!==void 0?x:0)-1),O=null,H=!1;for(;R>=0;){if(!l.isDisabled(D[R].key)){O=D[R];break}if(R<D.length-1&&!H)R++;else{H=!0;var C,A;R>((C=S==null?void 0:S.index)!==null&&C!==void 0?C:0)&&(R=(A=S==null?void 0:S.index)!==null&&A!==void 0?A:0),R--}}r.setFocusedKey(O?O.key:null)}d.current=u},[u,l,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:l}}function JH(e){var t;let[n,r]=Li(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=_.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:s,selectionManager:u}=XH({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var h;let m=(h=d.values().next().value)!==null&&h!==void 0?h:null;m===n&&e.onSelectionChange&&e.onSelectionChange(m),r(m)}}),l=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:s,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:l}}function r3(e){let[t,n]=Li(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=_.useCallback(()=>{n(!0)},[n]),i=_.useCallback(()=>{n(!1)},[n]),o=_.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function QH(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:s=!0}=e,[u,l]=_.useState(!1),[d,h]=_.useState(!1),[m,g]=_.useState(null),b=Se=>{e.onSelectionChange&&e.onSelectionChange(Se),Se===S&&(Ie(),ie())};var x;let{collection:C,selectionManager:A,selectedKey:S,setSelectedKey:w,selectedItem:D,disabledKeys:k}=JH({...e,onSelectionChange:b,items:(x=e.items)!==null&&x!==void 0?x:e.defaultItems}),R=e.defaultInputValue;if(R==null){var O,H;S==null?R="":R=(H=(O=C.getItem(S))===null||O===void 0?void 0:O.textValue)!==null&&H!==void 0?H:""}let[F,ce]=Li(e.inputValue,R,e.onInputChange),ae=C,q=_.useMemo(()=>e.items!=null||!n?C:eG(C,F,n),[C,F,n,e.items]),[De,z]=_.useState(q),j=_.useRef("focus"),K=r3({...e,onOpenChange:Se=>{e.onOpenChange&&e.onOpenChange(Se,Se?j.current:void 0),A.setFocused(Se),Se||A.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),N=(Se=null,Re)=>{let Ge=Re==="manual"||Re==="focus"&&r==="focus";(i||q.size>0||Ge&&ae.size>0||e.items)&&(Ge&&!K.isOpen&&e.items===void 0&&l(!0),j.current=Re,g(Se),K.open())},I=(Se=null,Re)=>{let Ge=Re==="manual"||Re==="focus"&&r==="focus";!(i||q.size>0||Ge&&ae.size>0||e.items)&&!K.isOpen||(Ge&&!K.isOpen&&e.items===void 0&&l(!0),K.isOpen||(j.current=Re),se(Se))},de=_.useCallback(()=>{z(u?ae:q)},[u,ae,q]),se=_.useCallback((Se=null)=>{K.isOpen&&de(),g(Se),K.toggle()},[K,de]),ie=_.useCallback(()=>{K.isOpen&&(de(),K.close())},[K,de]),[Ae,Pe]=_.useState(F),Ie=()=>{var Se,Re;let Ge=S!=null&&(Re=(Se=C.getItem(S))===null||Se===void 0?void 0:Se.textValue)!==null&&Re!==void 0?Re:"";Pe(Ge),ce(Ge)};var Le,Je;let Qe=_.useRef((Je=(Le=e.selectedKey)!==null&&Le!==void 0?Le:e.defaultSelectedKey)!==null&&Je!==void 0?Je:null);var ye;let Ne=_.useRef(S!=null&&(ye=(t=C.getItem(S))===null||t===void 0?void 0:t.textValue)!==null&&ye!==void 0?ye:"");_.useEffect(()=>{var Se;d&&(q.size>0||i)&&!K.isOpen&&F!==Ae&&r!=="manual"&&N(null,"input"),!u&&!i&&K.isOpen&&q.size===0&&ie(),S!=null&&S!==Qe.current&&ie(),F!==Ae&&(A.setFocusedKey(null),l(!1),F===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&w(null)),S!==Qe.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Ie():Ae!==F&&Pe(F);var Re;let Ge=S!=null&&(Re=(Se=C.getItem(S))===null||Se===void 0?void 0:Se.textValue)!==null&&Re!==void 0?Re:"";!d&&S!=null&&e.inputValue===void 0&&S===Qe.current&&Ne.current!==Ge&&(Pe(Ge),ce(Ge)),Qe.current=S,Ne.current=Ge});let He=Pd({...e,value:_.useMemo(()=>({inputValue:F,selectedKey:S}),[F,S])}),Ke=()=>{o&&S==null?Be():st()},Be=()=>{Qe.current=null,w(null),ie()},st=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Se,Re;(Se=e.onSelectionChange)===null||Se===void 0||Se.call(e,S);var Ge;let rt=S!=null&&(Ge=(Re=C.getItem(S))===null||Re===void 0?void 0:Re.textValue)!==null&&Ge!==void 0?Ge:"";Pe(rt),ie()}else Ie(),ie()};const Dt=()=>{if(o){var Se,Re;const Ge=S!=null&&(Re=(Se=C.getItem(S))===null||Se===void 0?void 0:Se.textValue)!==null&&Re!==void 0?Re:"";F===Ge?st():Be()}else st()};let ln=()=>{K.isOpen&&A.focusedKey!=null?S===A.focusedKey?st():w(A.focusedKey):Dt()},At=_.useRef(F),It=Se=>{Se?(At.current=F,r==="focus"&&!e.isReadOnly&&N(null,"focus")):(s&&Dt(),F!==At.current&&He.commitValidation()),h(Se)},we=_.useMemo(()=>K.isOpen?u?ae:q:De,[K.isOpen,ae,q,u,De]);return{...He,...K,focusStrategy:m,toggle:I,open:N,close:Dt,selectionManager:A,selectedKey:S,setSelectedKey:w,disabledKeys:k,isFocused:d,setFocused:It,selectedItem:D,collection:we,inputValue:F,setInputValue:ce,commit:ln,revert:Ke}}function eG(e,t,n){return new Sb(KM(e,e,t,n))}function KM(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let s=KM(e,Om(o,e),n,r);[...s].some(u=>u.type==="item")&&i.push({...o,childNodes:s})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var UM={};UM={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var zM={};zM={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var qM={};qM={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var WM={};WM={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var HM={};HM={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var GM={};GM={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var YM={};YM={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var ZM={};ZM={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var XM={};XM={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var JM={};JM={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var QM={};QM={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var eF={};eF={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var tF={};tF={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var nF={};nF={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var rF={};rF={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var iF={};iF={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var oF={};oF={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var sF={};sF={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var aF={};aF={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var uF={};uF={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var lF={};lF={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var cF={};cF={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var fF={};fF={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var dF={};dF={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var hF={};hF={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var pF={};pF={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var mF={};mF={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var gF={};gF={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var vF={};vF={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var yF={};yF={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var bF={};bF={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var $F={};$F={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var xF={};xF={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var wF={};wF={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var CF={};CF={"ar-AE":UM,"bg-BG":zM,"cs-CZ":qM,"da-DK":WM,"de-DE":HM,"el-GR":GM,"en-US":YM,"es-ES":ZM,"et-EE":XM,"fi-FI":JM,"fr-FR":QM,"he-IL":eF,"hr-HR":tF,"hu-HU":nF,"it-IT":rF,"ja-JP":iF,"ko-KR":oF,"lt-LT":sF,"lv-LV":aF,"nb-NO":uF,"nl-NL":lF,"pl-PL":cF,"pt-BR":fF,"pt-PT":dF,"ro-RO":hF,"ru-RU":pF,"sk-SK":mF,"sl-SI":gF,"sr-SP":vF,"sv-SE":yF,"tr-TR":bF,"uk-UA":$F,"zh-CN":xF,"zh-TW":wF};function tG(e){return e&&e.__esModule?e.default:e}const SF=new ru(tG(CF));function EF(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Kp(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,s=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,l=o||s||u,d=[];if(l){let h=EF(),m=ru.getGlobalDictionaryForPackage("@react-stately/datepicker")||SF,g=new M_(h,m),b=new oo(h,na({},i)),x=b.resolvedOptions().timeZone;s&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate(x))})),o&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate(x))})),u&&d.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:s,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function nG(e,t,n,r,i){var o;let s=Kp((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let l=Kp((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=Np(s,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=ru.getGlobalDictionaryForPackage("@react-stately/datepicker")||SF;d=Np(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",EF())],validationDetails:{...Rm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const rG={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},iG={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function na(e,t){e={...t.shouldForceLeadingZeros?iG:rG,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let s=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");s<0&&(s=0);let u=i.indexOf(r);if(u<0&&(u=2),s>u)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(s,u+1).reduce((h,m)=>(h[m]=e[m],h),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&s===0&&(l.era="short"),l}function kl(e){return e&&"hour"in e?e:new Ad}function DF(e,t){if(e===null)return null;if(e)return Un(e,t)}function df(e,t,n,r){if(e)return DF(e,n);let i=Un(I_(r??Ed()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?oi(i):r?i:Io(i)}function i3(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=_.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let s=e?n:i[1];return[t,s]}function oG(e){let t=r3(e),[n,r]=Li(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,s]=i3(i,e.granularity),u=n!=null?n.toDate(s??"UTC"):null,l=o==="hour"||o==="minute"||o==="second";var d;let h=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[m,g]=_.useState(null),[b,x]=_.useState(null);if(n&&(m=n,"hour"in n&&(b=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let C=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",A=_.useMemo(()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:C}),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,C]),{minValue:S,maxValue:w,isDateUnavailable:D}=e,k=_.useMemo(()=>Kp(n,S,w,D,A),[n,S,w,D,A]),R=Pd({...e,value:n,builtinValidation:k}),O=R.displayValidation.isInvalid,H=e.validationState||(O?"invalid":null),F=(q,De)=>{r("timeZone"in De?De.set(oi(q)):Io(q,De)),g(null),x(null),R.commitValidation()};return{...R,value:n,setValue:r,dateValue:m,timeValue:b,setDateValue:q=>{let De=typeof h=="function"?h():h;l?b||De?F(q,b||kl(e.defaultValue||e.placeholderValue)):g(q):(r(q),R.commitValidation()),De&&t.setOpen(!1)},setTimeValue:q=>{m&&q?F(m,q):x(q)},granularity:o,hasTime:l,...t,setOpen(q){!q&&!n&&m&&l&&F(m,b||kl(e.defaultValue||e.placeholderValue)),t.setOpen(q)},validationState:H,isInvalid:O,formatValue(q,De){if(!u)return"";let z=na(De,A);return new oo(q,z).format(u)},getDateFormatter(q,De){let z={...A,...De},j=na({},z);return new oo(q,j)}}}const sG=new ru({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function aG(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?sG.getStringForLocale(e,n):"––"}const Nh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},DS={year:5,month:2,day:7,hour:2,minute:15,second:15},uG={dayperiod:"dayPeriod"};function AF(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:s=!1,minValue:u,maxValue:l,isDateUnavailable:d}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=i3(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let x=_.useMemo(()=>new oo(t),[t]),C=_.useMemo(()=>n(x.resolvedOptions().calendar),[n,x]);var A;let[S,w]=Li(e.value,(A=e.defaultValue)!==null&&A!==void 0?A:null,e.onChange),D=_.useMemo(()=>{var ye;return(ye=DF(S,C))!==null&&ye!==void 0?ye:null},[S,C]),[k,R]=_.useState(()=>df(e.placeholderValue,m,C,g)),O=D||k,H=C.identifier==="gregory"&&O.era==="BC",F=_.useMemo(()=>{var ye;return{granularity:m,maxGranularity:(ye=e.maxGranularity)!==null&&ye!==void 0?ye:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:H,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,H]),ce=_.useMemo(()=>na({},F),[F]),ae=_.useMemo(()=>new oo(t,ce),[t,ce]),q=_.useMemo(()=>ae.resolvedOptions(),[ae]),De=_.useMemo(()=>ae.formatToParts(new Date).filter(ye=>Nh[ye.type]).reduce((ye,Ne)=>(ye[Ne.type]=!0,ye),{}),[ae]),[z,j]=_.useState(()=>e.value||e.defaultValue?{...De}:{}),ne=_.useRef(null),K=_.useRef(C.identifier);_.useEffect(()=>{C.identifier!==K.current&&(K.current=C.identifier,R(ye=>Object.keys(z).length>0?Un(ye,C):df(e.placeholderValue,m,C,g)))},[C,m,z,g,e.placeholderValue]),S&&Object.keys(z).length<Object.keys(De).length&&(z={...De},j(z)),S==null&&Object.keys(z).length===Object.keys(De).length&&(z={},j(z),R(df(e.placeholderValue,m,C,g)));let N=D&&Object.keys(z).length>=Object.keys(De).length?D:k,I=ye=>{if(e.isDisabled||e.isReadOnly)return;let Ne=Object.keys(z),He=Object.keys(De);ye==null?(w(null),R(df(e.placeholderValue,m,C,g)),j({})):Ne.length>=He.length||Ne.length===He.length-1&&De.dayPeriod&&!z.dayPeriod&&ne.current!=="dayPeriod"?(ye=Un(ye,(h==null?void 0:h.calendar)||new si),w(ye)):R(ye),ne.current=null},de=_.useMemo(()=>N.toDate(b),[N,b]),se=_.useMemo(()=>ae.formatToParts(de).map(ye=>{let Ne=Nh[ye.type];ye.type==="era"&&C.getEras().length===1&&(Ne=!1);let He=Nh[ye.type]&&!z[ye.type],Ke=Nh[ye.type]?aG(ye.type,ye.value,t):null;return{type:uG[ye.type]||ye.type,text:He?Ke:ye.value,...lG(N,ye.type,q),isPlaceholder:He,placeholder:Ke,isEditable:Ne}}),[de,z,ae,q,N,C,t]);De.era&&z.year&&!z.era?(z.era=!0,j({...z})):!De.era&&z.era&&(delete z.era,j({...z}));let ie=ye=>{z[ye]=!0,ye==="year"&&De.era&&(z.era=!0),j({...z})},Ae=(ye,Ne)=>{if(z[ye])I(cG(N,ye,Ne,q));else{ie(ye);let He=Object.keys(z),Ke=Object.keys(De);(He.length>=Ke.length||He.length===Ke.length-1&&De.dayPeriod&&!z.dayPeriod)&&I(N)}},Pe=_.useMemo(()=>Kp(S,u,l,d,F),[S,u,l,d,F]),Ie=Pd({...e,value:S,builtinValidation:Pe}),Le=Ie.displayValidation.isInvalid,Je=e.validationState||(Le?"invalid":null);var Qe;return{...Ie,value:D,dateValue:de,calendar:C,setValue:I,segments:se,dateFormatter:ae,validationState:Je,isInvalid:Le,granularity:m,maxGranularity:(Qe=e.maxGranularity)!==null&&Qe!==void 0?Qe:"year",isDisabled:i,isReadOnly:o,isRequired:s,increment(ye){Ae(ye,1)},decrement(ye){Ae(ye,-1)},incrementPage(ye){Ae(ye,DS[ye]||1)},decrementPage(ye){Ae(ye,-(DS[ye]||1))},setSegment(ye,Ne){ie(ye),I(fG(N,ye,Ne,q))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(z),Ne=Object.keys(De);ye.length===Ne.length-1&&De.dayPeriod&&!z.dayPeriod&&(z={...De},j(z),I(N.copy()))},clearSegment(ye){delete z[ye],ne.current=ye,j({...z});let Ne=df(e.placeholderValue,m,C,g),He=N;if(ye==="dayPeriod"&&"hour"in N&&"hour"in Ne){let Ke=N.hour>=12,Be=Ne.hour>=12;Ke&&!Be?He=N.set({hour:N.hour-12}):!Ke&&Be&&(He=N.set({hour:N.hour+12}))}else ye in N&&(He=N.set({[ye]:Ne[ye]}));w(null),I(He)},formatValue(ye){if(!D)return"";let Ne=na(ye,F);return new oo(t,Ne).format(de)},getDateFormatter(ye,Ne){let He={...F,...Ne},Ke=na({},He);return new oo(ye,Ke)}}}function lG(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:gq(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:vq(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function cG(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return e.set({hour:o?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function fG(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return n>=12===o?e:e.set({hour:o?i-12:i+12})}case"hour":if(r.hour12){let o=e.hour>=12;!o&&n===12&&(n=0),o&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function dG(e){var t,n;let r=r3(e),[i,o]=Li(e.value,e.defaultValue||null,e.onChange),[s,u]=_.useState(()=>i||{start:null,end:null});i==null&&s.start&&s.end&&(s={start:null,end:null},u(s));let l=i||s,d=K=>{u(K||{start:null,end:null}),Eu(K)?o(K):o(null)},h=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[m,g]=i3(h,e.granularity),b=m==="hour"||m==="minute"||m==="second";var x;let C=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[A,S]=_.useState(null),[w,D]=_.useState(null);l&&Eu(l)&&(A=l,"hour"in l.start&&(w=l));let k=(K,N)=>{d({start:"timeZone"in N.start?N.start.set(oi(K.start)):Io(K.start,N.start),end:"timeZone"in N.end?N.end.set(oi(K.end)):Io(K.end,N.end)}),S(null),D(null),z.commitValidation()},R=K=>{let N=typeof C=="function"?C():C;b?Eu(K)&&(w!=null&&w.start)&&(w!=null&&w.end)?k(K,{start:(w==null?void 0:w.start)||kl(e.placeholderValue),end:(w==null?void 0:w.end)||kl(e.placeholderValue)}):S(K):Eu(K)?(d(K),z.commitValidation()):S(K),N&&r.setOpen(!1)},O=K=>{Eu(A)&&Eu(K)?k(A,K):D(K)},H=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",F=_.useMemo(()=>({granularity:m,timeZone:g,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:H}),[m,e.hourCycle,e.shouldForceLeadingZeros,g,e.hideTimeZone,H]),{minValue:ce,maxValue:ae,isDateUnavailable:q}=e,De=_.useMemo(()=>nG(l,ce,ae,q,F),[l,ce,ae,q,F]),z=Pd({...e,value:i,name:_.useMemo(()=>[e.startName,e.endName].filter(K=>K!=null),[e.startName,e.endName]),builtinValidation:De}),j=z.displayValidation.isInvalid,ne=e.validationState||(j?"invalid":null);return{...z,value:l,setValue:d,dateRange:A,timeRange:w,granularity:m,hasTime:b,setDate(K,N){var I,de;R(K==="start"?{start:N,end:(I=A==null?void 0:A.end)!==null&&I!==void 0?I:null}:{start:(de=A==null?void 0:A.start)!==null&&de!==void 0?de:null,end:N})},setTime(K,N){var I,de;O(K==="start"?{start:N,end:(I=w==null?void 0:w.end)!==null&&I!==void 0?I:null}:{start:(de=w==null?void 0:w.start)!==null&&de!==void 0?de:null,end:N})},setDateTime(K,N){var I,de;d(K==="start"?{start:N,end:(I=l==null?void 0:l.end)!==null&&I!==void 0?I:null}:{start:(de=l==null?void 0:l.start)!==null&&de!==void 0?de:null,end:N})},setDateRange:R,setTimeRange:O,...r,setOpen(K){!K&&!(l!=null&&l.start&&(l!=null&&l.end))&&Eu(A)&&b&&k(A,{start:(w==null?void 0:w.start)||kl(e.placeholderValue),end:(w==null?void 0:w.end)||kl(e.placeholderValue)}),r.setOpen(K)},validationState:ne,isInvalid:j,formatValue(K,N){if(!l||!l.start||!l.end)return null;let I="timeZone"in l.start?l.start.timeZone:void 0,de=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),se="timeZone"in l.end?l.end.timeZone:void 0,ie=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),Ae=na(N,{granularity:de,timeZone:I,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),Pe=l.start.toDate(I||"UTC"),Ie=l.end.toDate(se||"UTC"),Le=new oo(K,Ae),Je;if(I===se&&de===ie&&l.start.compare(l.end)!==0){try{let Qe=Le.formatRangeToParts(Pe,Ie),ye=-1;for(let Ke=0;Ke<Qe.length;Ke++){let Be=Qe[Ke];if(Be.source==="shared"&&Be.type==="literal")ye=Ke;else if(Be.source==="endRange")break}let Ne="",He="";for(let Ke=0;Ke<Qe.length;Ke++)Ke<ye?Ne+=Qe[Ke].value:Ke>ye&&(He+=Qe[Ke].value);return{start:Ne,end:He}}catch{}Je=Le}else{let Qe=na(N,{granularity:ie,timeZone:se,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Je=new oo(K,Qe)}return{start:Le.format(Pe),end:Je.format(Ie)}},getDateFormatter(K,N){let I={...F,...N},de=na({},I);return new oo(K,de)}}}function Eu(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function hG(e){let{placeholderValue:t=new Ad,minValue:n,maxValue:r,granularity:i,validate:o}=e;var s;let[u,l]=Li(e.value,(s=e.defaultValue)!==null&&s!==void 0?s:null,e.onChange),d=u||t,h=d&&"day"in d?d:void 0,m=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,g=_.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||m)&&t?K_(hf(t),D||m):hf(t)},[t,d,m]),b=_.useMemo(()=>hf(n,h),[n,h]),x=_.useMemo(()=>hf(r,h),[r,h]),C=_.useMemo(()=>u&&"day"in u?NC(u):u,[u]),A=_.useMemo(()=>u==null?null:hf(u),[u]);return{...AF({...e,value:A,defaultValue:void 0,minValue:b,maxValue:x,onChange:D=>{l(h||m?D:D&&NC(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new si,validate:_.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:C}}function hf(e,t=Pm(Ed())){return e?"day"in e?e:Io(t,e):null}var lp={exports:{}},pG=lp.exports,AS;function mG(){return AS||(AS=1,function(e,t){(function(n,r){e.exports=r()})(pG,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",u="minute",l="hour",d="day",h="week",m="month",g="quarter",b="year",x="date",C="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var ne=["th","st","nd","rd"],K=j%100;return"["+j+(ne[(K-20)%10]||ne[K]||ne[0])+"]"}},D=function(j,ne,K){var N=String(j);return!N||N.length>=ne?j:""+Array(ne+1-N.length).join(K)+j},k={s:D,z:function(j){var ne=-j.utcOffset(),K=Math.abs(ne),N=Math.floor(K/60),I=K%60;return(ne<=0?"+":"-")+D(N,2,"0")+":"+D(I,2,"0")},m:function j(ne,K){if(ne.date()<K.date())return-j(K,ne);var N=12*(K.year()-ne.year())+(K.month()-ne.month()),I=ne.clone().add(N,m),de=K-I<0,se=ne.clone().add(N+(de?-1:1),m);return+(-(N+(K-I)/(de?I-se:se-I))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:m,y:b,w:h,d,D:x,h:l,m:u,s,ms:o,Q:g}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},R="en",O={};O[R]=w;var H="$isDayjsObject",F=function(j){return j instanceof De||!(!j||!j[H])},ce=function j(ne,K,N){var I;if(!ne)return R;if(typeof ne=="string"){var de=ne.toLowerCase();O[de]&&(I=de),K&&(O[de]=K,I=de);var se=ne.split("-");if(!I&&se.length>1)return j(se[0])}else{var ie=ne.name;O[ie]=ne,I=ie}return!N&&I&&(R=I),I||!N&&R},ae=function(j,ne){if(F(j))return j.clone();var K=typeof ne=="object"?ne:{};return K.date=j,K.args=arguments,new De(K)},q=k;q.l=ce,q.i=F,q.w=function(j,ne){return ae(j,{locale:ne.$L,utc:ne.$u,x:ne.$x,$offset:ne.$offset})};var De=function(){function j(K){this.$L=ce(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[H]=!0}var ne=j.prototype;return ne.parse=function(K){this.$d=function(N){var I=N.date,de=N.utc;if(I===null)return new Date(NaN);if(q.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var se=I.match(A);if(se){var ie=se[2]-1||0,Ae=(se[7]||"0").substring(0,3);return de?new Date(Date.UTC(se[1],ie,se[3]||1,se[4]||0,se[5]||0,se[6]||0,Ae)):new Date(se[1],ie,se[3]||1,se[4]||0,se[5]||0,se[6]||0,Ae)}}return new Date(I)}(K),this.init()},ne.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},ne.$utils=function(){return q},ne.isValid=function(){return this.$d.toString()!==C},ne.isSame=function(K,N){var I=ae(K);return this.startOf(N)<=I&&I<=this.endOf(N)},ne.isAfter=function(K,N){return ae(K)<this.startOf(N)},ne.isBefore=function(K,N){return this.endOf(N)<ae(K)},ne.$g=function(K,N,I){return q.u(K)?this[N]:this.set(I,K)},ne.unix=function(){return Math.floor(this.valueOf()/1e3)},ne.valueOf=function(){return this.$d.getTime()},ne.startOf=function(K,N){var I=this,de=!!q.u(N)||N,se=q.p(K),ie=function(Ne,He){var Ke=q.w(I.$u?Date.UTC(I.$y,He,Ne):new Date(I.$y,He,Ne),I);return de?Ke:Ke.endOf(d)},Ae=function(Ne,He){return q.w(I.toDate()[Ne].apply(I.toDate("s"),(de?[0,0,0,0]:[23,59,59,999]).slice(He)),I)},Pe=this.$W,Ie=this.$M,Le=this.$D,Je="set"+(this.$u?"UTC":"");switch(se){case b:return de?ie(1,0):ie(31,11);case m:return de?ie(1,Ie):ie(0,Ie+1);case h:var Qe=this.$locale().weekStart||0,ye=(Pe<Qe?Pe+7:Pe)-Qe;return ie(de?Le-ye:Le+(6-ye),Ie);case d:case x:return Ae(Je+"Hours",0);case l:return Ae(Je+"Minutes",1);case u:return Ae(Je+"Seconds",2);case s:return Ae(Je+"Milliseconds",3);default:return this.clone()}},ne.endOf=function(K){return this.startOf(K,!1)},ne.$set=function(K,N){var I,de=q.p(K),se="set"+(this.$u?"UTC":""),ie=(I={},I[d]=se+"Date",I[x]=se+"Date",I[m]=se+"Month",I[b]=se+"FullYear",I[l]=se+"Hours",I[u]=se+"Minutes",I[s]=se+"Seconds",I[o]=se+"Milliseconds",I)[de],Ae=de===d?this.$D+(N-this.$W):N;if(de===m||de===b){var Pe=this.clone().set(x,1);Pe.$d[ie](Ae),Pe.init(),this.$d=Pe.set(x,Math.min(this.$D,Pe.daysInMonth())).$d}else ie&&this.$d[ie](Ae);return this.init(),this},ne.set=function(K,N){return this.clone().$set(K,N)},ne.get=function(K){return this[q.p(K)]()},ne.add=function(K,N){var I,de=this;K=Number(K);var se=q.p(N),ie=function(Ie){var Le=ae(de);return q.w(Le.date(Le.date()+Math.round(Ie*K)),de)};if(se===m)return this.set(m,this.$M+K);if(se===b)return this.set(b,this.$y+K);if(se===d)return ie(1);if(se===h)return ie(7);var Ae=(I={},I[u]=r,I[l]=i,I[s]=n,I)[se]||1,Pe=this.$d.getTime()+K*Ae;return q.w(Pe,this)},ne.subtract=function(K,N){return this.add(-1*K,N)},ne.format=function(K){var N=this,I=this.$locale();if(!this.isValid())return I.invalidDate||C;var de=K||"YYYY-MM-DDTHH:mm:ssZ",se=q.z(this),ie=this.$H,Ae=this.$m,Pe=this.$M,Ie=I.weekdays,Le=I.months,Je=I.meridiem,Qe=function(He,Ke,Be,st){return He&&(He[Ke]||He(N,de))||Be[Ke].slice(0,st)},ye=function(He){return q.s(ie%12||12,He,"0")},Ne=Je||function(He,Ke,Be){var st=He<12?"AM":"PM";return Be?st.toLowerCase():st};return de.replace(S,function(He,Ke){return Ke||function(Be){switch(Be){case"YY":return String(N.$y).slice(-2);case"YYYY":return q.s(N.$y,4,"0");case"M":return Pe+1;case"MM":return q.s(Pe+1,2,"0");case"MMM":return Qe(I.monthsShort,Pe,Le,3);case"MMMM":return Qe(Le,Pe);case"D":return N.$D;case"DD":return q.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return Qe(I.weekdaysMin,N.$W,Ie,2);case"ddd":return Qe(I.weekdaysShort,N.$W,Ie,3);case"dddd":return Ie[N.$W];case"H":return String(ie);case"HH":return q.s(ie,2,"0");case"h":return ye(1);case"hh":return ye(2);case"a":return Ne(ie,Ae,!0);case"A":return Ne(ie,Ae,!1);case"m":return String(Ae);case"mm":return q.s(Ae,2,"0");case"s":return String(N.$s);case"ss":return q.s(N.$s,2,"0");case"SSS":return q.s(N.$ms,3,"0");case"Z":return se}return null}(He)||se.replace(":","")})},ne.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ne.diff=function(K,N,I){var de,se=this,ie=q.p(N),Ae=ae(K),Pe=(Ae.utcOffset()-this.utcOffset())*r,Ie=this-Ae,Le=function(){return q.m(se,Ae)};switch(ie){case b:de=Le()/12;break;case m:de=Le();break;case g:de=Le()/3;break;case h:de=(Ie-Pe)/6048e5;break;case d:de=(Ie-Pe)/864e5;break;case l:de=Ie/i;break;case u:de=Ie/r;break;case s:de=Ie/n;break;default:de=Ie}return I?de:q.a(de)},ne.daysInMonth=function(){return this.endOf(m).$D},ne.$locale=function(){return O[this.$L]},ne.locale=function(K,N){if(!K)return this.$L;var I=this.clone(),de=ce(K,N,!0);return de&&(I.$L=de),I},ne.clone=function(){return q.w(this.$d,this)},ne.toDate=function(){return new Date(this.valueOf())},ne.toJSON=function(){return this.isValid()?this.toISOString():null},ne.toISOString=function(){return this.$d.toISOString()},ne.toString=function(){return this.$d.toUTCString()},j}(),z=De.prototype;return ae.prototype=z,[["$ms",o],["$s",s],["$m",u],["$H",l],["$W",d],["$M",m],["$y",b],["$D",x]].forEach(function(j){z[j[1]]=function(ne){return this.$g(ne,j[0],j[1])}}),ae.extend=function(j,ne){return j.$i||(j(ne,De,ae),j.$i=!0),ae},ae.locale=ce,ae.isDayjs=F,ae.unix=function(j){return ae(1e3*j)},ae.en=O[R],ae.Ls=O,ae.p={},ae})}(lp)),lp.exports}var TF=mG();const gG=Lo(TF);var rl=[["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"],["Mayotte","yt","262","",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint 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"]],vG="react-international-phone-",PF=(...e)=>e.filter(t=>!!t).join(" ").trim(),yG=(...e)=>PF(...e).split(" ").map(t=>`${vG}${t}`).join(" "),qr=({addPrefix:e,rawClassNames:t})=>PF(yG(...e),...t),bG=({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),u=o,l=0;for(let d of t.split("")){if(l>=s.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=s[l],l+=1):u+=d}return u},Rl=e=>e?/^\d+$/.test(e):!1,Im=e=>e.replace(/\D/g,""),$G=(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},xG=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),wG=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=Im(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 d=t.dialCode.length,h=i.slice(0,d),m=i.slice(d);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:u,phoneRightSide:l}=s();return u=`${t.prefix}${u}${t.charAfterDialCode}`,l=bG({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${l}`)},CG=({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 h=r-1;h>=0;h-=1)if(Rl(t[h])){s=h;break}if(s===null){for(let h=0;h<t.length;h+=1)if(Rl(n[h]))return h;return t.length}let u=0;for(let h=0;h<s;h+=1)Rl(t[h])&&(u+=1);let l=0,d=0;for(let h=0;h<n.length&&(l+=1,Rl(n[h])&&(d+=1),!(d>=u+1));h+=1);if(o!=="backward")for(;!Rl(n[l])&&l<n.length;)l+=1;return l},cp=({phone:e,prefix:t})=>e?`${t}${Im(e)}`:"";function Eb({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:s,forceDialCode:u,disableDialCodeAndPrefix:l,defaultMask:d,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${o}`)?g:`${o}${t.dialCode}${g}`);let b=h?MG({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,x=(b==null?void 0:b.country)??t,C=wG(g,{prefix:o,mask:_G({phone:g,country:x,defaultMask:d,disableFormatting:m}),maskChar:_F,dialCode:x.dialCode,trimNonDigitsEnd:r,charAfterDialCode:s,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),A=h&&!(b!=null&&b.fullDialCodeMatch)?t:x;return{phone:cp({phone:l?`${A.dialCode}${C}`:C,prefix:o}),inputValue:C,country:A}}var SG=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},EG=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:u,countryGuessingEnabled:l,defaultMask:d,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,x=SG(b),C=!!(b!=null&&b.startsWith("insertFrom")),A=b==="insertText",S=(g==null?void 0:g.data)||void 0,w=e.target.value,D=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:cp({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(A&&!Rl(S)&&w!==i)return{inputValue:r,phone:cp({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((S==null?void 0:S.length)??0),country:t};if(s&&!w.startsWith(`${i}${t.dialCode}`)&&!C){let F=w?r:`${i}${t.dialCode}${o}`;return{inputValue:F,phone:cp({phone:F,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:k,inputValue:R,country:O}=Eb({value:w,country:t,trimNonDigitsEnd:x==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:u,disableFormatting:h,defaultMask:d}),H=CG({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:w,phoneAfterFormatted:R,leftOffset:s?i.length+t.dialCode.length+o.length:0,deletion:x});return{phone:k,inputValue:R,cursorPosition:H,country:O}},DG=(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},AG=()=>{let e=_.useRef(),t=_.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}}},TG={size:20,overrideLastItemDebounceMS:-1};function PG(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...TG,...t},[o,s]=_.useState(e),[u,l]=_.useState([o]),[d,h]=_.useState(0),m=AG();return[o,(g,b)=>{if(typeof g=="object"&&typeof o=="object"&&DG(g,o)||g===o)return;let x=r>0,C=m.check(),A=x&&C!==void 0?C>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!A)l(S=>[...S.slice(0,d),g]);else{let S=u.length>=n;l(w=>[...w.slice(S?1:0,d+1),g]),S||h(w=>w+1)}s(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=u[d-1];return s(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=u.length)return{success:!1};let g=u[d+1];return s(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var _F=".",Zi={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:rl},RF=({defaultCountry:e=Zi.defaultCountry,value:t=Zi.value,countries:n=Zi.countries,prefix:r=Zi.prefix,defaultMask:i=Zi.defaultMask,charAfterDialCode:o=Zi.charAfterDialCode,historySaveDebounceMS:s=Zi.historySaveDebounceMS,disableCountryGuess:u=Zi.disableCountryGuess,disableDialCodePrefill:l=Zi.disableDialCodePrefill,forceDialCode:d=Zi.forceDialCode,disableDialCodeAndPrefix:h=Zi.disableDialCodeAndPrefix,disableFormatting:m=Zi.disableFormatting,onChange:g,inputRef:b})=>{let x={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:h?!1:d,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:m},C=_.useRef(null),A=b||C,S=j=>{Promise.resolve().then(()=>{var ne;typeof window>"u"||A.current!==(document==null?void 0:document.activeElement)||((ne=A.current)==null||ne.setSelectionRange(j,j))})},[{phone:w,inputValue:D,country:k},R,O,H]=PG(()=>{let j=Ol({value:e,field:"iso2",countries:n});j||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let ne=j||Ol({value:"us",field:"iso2",countries:n}),{phone:K,inputValue:N,country:I}=Eb({value:t,country:ne,insertDialCodeOnEmpty:!l,...x});return S(N.length),{phone:K,inputValue:N,country:I.iso2}},{overrideLastItemDebounceMS:s,onChange:({inputValue:j,phone:ne,country:K})=>{if(!g)return;let N=F(K);g({phone:ne,inputValue:j,country:N})}}),F=_.useCallback(j=>Ol({value:j,field:"iso2",countries:n}),[n]),ce=_.useMemo(()=>F(k),[k,F]);_.useEffect(()=>{let j=A.current;if(!j)return;let ne=K=>{if(!K.key)return;let N=K.ctrlKey,I=K.metaKey,de=K.shiftKey;if(K.key.toLowerCase()==="z"){if(xG()){if(!I)return}else if(!N)return;de?H():O()}};return j.addEventListener("keydown",ne),()=>{j.removeEventListener("keydown",ne)}},[A,O,H]);let ae=j=>{j.preventDefault();let{phone:ne,inputValue:K,country:N,cursorPosition:I}=EG(j,{country:ce,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...x});return R({inputValue:K,phone:ne,country:N.iso2}),S(I),t},q=(j,ne={focusOnInput:!1})=>{let K=Ol({value:j,field:"iso2",countries:n});if(!K){console.error(`[react-international-phone]: can not find a country with "${j}" iso2 code`);return}let N=h?"":`${r}${K.dialCode}${o}`;R({inputValue:N,phone:`${r}${K.dialCode}`,country:K.iso2}),ne.focusOnInput&&Promise.resolve().then(()=>{var I;(I=A.current)==null||I.focus()})},[De,z]=_.useState(!1);return _.useEffect(()=>{if(!De){z(!0),t!==w&&(g==null||g({inputValue:D,phone:w,country:ce}));return}if(t===w)return;let{phone:j,inputValue:ne,country:K}=Eb({value:t,country:ce,insertDialCodeOnEmpty:!l,...x});R({phone:j,inputValue:ne,country:K.iso2})},[t]),{phone:w,inputValue:D,country:ce,setCountry:q,handlePhoneValueChange:ae,inputRef:A}},_G=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${_F}]`,"g"),""):u;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(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let l=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return l.test(Im(d))});return o(s?i[s]:i.default)},_o=e=>{let[t,n,r,i,o,s]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:s}},RG=e=>`Field "${e}" is not supported`,Ol=({field:e,value:t,countries:n=rl})=>{if(["priority"].includes(e))throw new Error(RG(e));let r=n.find(i=>{let o=_o(i);return t===o[e]});if(r)return _o(r)},MG=({phone:e,countries:t=rl,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Im(e);if(!i)return r;let o=r,s=({country:l,fullDialCodeMatch:d})=>{var g,b;let h=l.dialCode===((g=o.country)==null?void 0:g.dialCode),m=(l.priority??0)<(((b=o.country)==null?void 0:b.priority)??0);(!h||m)&&(o={country:l,fullDialCodeMatch:d})};for(let l of t){let d=_o(l),{dialCode:h,areaCodes:m}=d;if(i.startsWith(h)){let g=o.country?Number(h)>=Number(o.country.dialCode):!0;if(m){let b=i.substring(h.length);for(let x of m)if(b.startsWith(x))return{country:d,fullDialCodeMatch:!0}}(g||h===i||!o.fullDialCodeMatch)&&s({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!o.country||Number(h)<=Number(o.country.dialCode))&&s({country:d,fullDialCodeMatch:!1})}if(n){let l=Ol({value:n,field:"iso2",countries:t});if(!l)return o;let d=l?(h=>{if(!(h!=null&&h.areaCodes))return!1;let m=i.substring(h.dialCode.length);return h.areaCodes.some(g=>g.startsWith(m))})(l):!1;o&&((u=o.country)==null?void 0:u.dialCode)===l.dialCode&&o.country!==l&&o.fullDialCodeMatch&&(!l.areaCodes||d)&&(o={country:l,fullDialCodeMatch:!0})}return o},FG=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},kG="abcdefghijklmnopqrstuvwxyz",OG="1f1e6",TS=kG.split("").reduce((e,t,n)=>({...e,[t]:FG(OG,n)}),{}),IG=e=>[TS[e[0]],TS[e[1]]].join("-"),o3=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:s,...u})=>{if(!e)return _.createElement("img",{className:qr({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let l=()=>{if(n)return n;let d=IG(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return _.createElement("img",{className:qr({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:"",...u})},LG=1e3,BG=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=rl,preferredCountries:i=[],flags:o,onSelect:s,onClose:u,...l})=>{let d=_.useRef(null),h=_.useRef(),m=_.useMemo(()=>{if(!i||!i.length)return r;let O=[],H=[...r];for(let F of i){let ce=H.findIndex(ae=>_o(ae).iso2===F);if(ce!==-1){let ae=H.splice(ce,1)[0];O.push(ae)}}return O.concat(H)},[r,i]),g=_.useRef({updatedAt:void 0,value:""}),b=O=>{let H=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>LG;g.current={value:H?O:`${g.current.value}${O}`,updatedAt:new Date};let F=m.findIndex(ce=>_o(ce).name.toLowerCase().startsWith(g.current.value));F!==-1&&A(F)},x=_.useCallback(O=>m.findIndex(H=>_o(H).iso2===O),[m]),[C,A]=_.useState(x(n)),S=()=>{h.current!==n&&A(x(n))},w=_.useCallback(O=>{A(x(O.iso2)),s==null||s(O)},[s,x]),D=O=>{let H=m.length-1,F=ce=>O==="prev"?ce-1:O==="next"?ce+1:O==="last"?H:0;A(ce=>{let ae=F(ce);return ae<0?0:ae>H?H:ae})},k=O=>{if(O.stopPropagation(),O.key==="Enter"){O.preventDefault();let H=_o(m[C]);w(H);return}if(O.key==="Escape"){u==null||u();return}if(O.key==="ArrowUp"){O.preventDefault(),D("prev");return}if(O.key==="ArrowDown"){O.preventDefault(),D("next");return}if(O.key==="PageUp"){O.preventDefault(),D("first");return}if(O.key==="PageDown"){O.preventDefault(),D("last");return}O.key===" "&&O.preventDefault(),O.key.length===1&&!O.altKey&&!O.ctrlKey&&!O.metaKey&&b(O.key.toLocaleLowerCase())},R=_.useCallback(()=>{if(!d.current||C===void 0)return;let O=_o(m[C]).iso2;if(O===h.current)return;let H=d.current.querySelector(`[data-country="${O}"]`);H&&($G(d.current,H),h.current=O)},[C,m]);return _.useEffect(()=>{R()},[C,R]),_.useEffect(()=>{d.current&&(e?d.current.focus():S())},[e]),_.useEffect(()=>{S()},[n]),_.createElement("ul",{ref:d,role:"listbox",className:qr({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:k,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${_o(m[C]).iso2}-option`},m.map((O,H)=>{let F=_o(O),ce=F.iso2===n,ae=H===C,q=i.includes(F.iso2),De=H===i.length-1,z=o==null?void 0:o.find(j=>j.iso2===F.iso2);return _.createElement(_.Fragment,{key:F.iso2},_.createElement("li",{"data-country":F.iso2,role:"option","aria-selected":ce,"aria-label":`${F.name} ${t}${F.dialCode}`,id:`react-international-phone__${F.iso2}-option`,className:qr({addPrefix:["country-selector-dropdown__list-item",q&&"country-selector-dropdown__list-item--preferred",ce&&"country-selector-dropdown__list-item--selected",ae&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>w(F),style:l.listItemStyle,title:F.name},_.createElement(o3,{iso2:F.iso2,src:z==null?void 0:z.src,className:qr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),_.createElement("span",{className:qr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},F.name),_.createElement("span",{className:qr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,F.dialCode)),De?_.createElement("hr",{className:qr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},VG=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=rl,preferredCountries:o=[],flags:s,renderButtonWrapper:u,...l})=>{let[d,h]=_.useState(!1),m=_.useMemo(()=>{if(e)return Ol({value:e,field:"iso2",countries:i})},[i,e]),g=_.useRef(null),b=C=>{C.key&&["ArrowUp","ArrowDown"].includes(C.key)&&(C.preventDefault(),h(!0))},x=()=>{var S;let C={title:m==null?void 0:m.name,onClick:()=>h(w=>!w),onMouseDown:w=>w.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},A=_.createElement("div",{className:qr({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},_.createElement(o3,{iso2:e,src:(S=s==null?void 0:s.find(w=>w.iso2===e))==null?void 0:S.src,className:qr({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&_.createElement("div",{className:qr({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return u?u({children:A,rootProps:C}):_.createElement("button",{...C,type:"button",className:qr({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},A)};return _.createElement("div",{className:qr({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},x(),_.createElement(BG,{show:d,countries:i,preferredCountries:o,flags:s,onSelect:C=>{h(!1),t==null||t(C)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},NG=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>_.createElement("div",{className:qr({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);_.forwardRef(({value:e,onChange:t,countries:n=rl,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:s,flags:u,style:l,className:d,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:x,placeholder:C,disabled:A,name:S,onFocus:w,onBlur:D,required:k,autoFocus:R,...O},H)=>{let{phone:F,inputValue:ce,inputRef:ae,country:q,setCountry:De,handlePhoneValueChange:z}=RF({value:e,countries:n,...O,onChange:ne=>{t==null||t(ne.phone,{country:ne.country,inputValue:ne.inputValue})}}),j=O.disableDialCodeAndPrefix&&o&&(q==null?void 0:q.dialCode);return _.useImperativeHandle(H,()=>ae.current?Object.assign(ae.current,{setCountry:De,state:{phone:F,inputValue:ce,country:q}}):null,[ae,De,F,ce,q]),_.createElement("div",{ref:H,className:qr({addPrefix:["input-container"],rawClassNames:[d]}),style:l},_.createElement(VG,{onSelect:ne=>De(ne.iso2,{focusOnInput:!s}),flags:u,selectedCountry:q.iso2,countries:n,preferredCountries:r,disabled:A,hideDropdown:i,...g}),j&&_.createElement(NG,{dialCode:q.dialCode,prefix:O.prefix??"+",disabled:A,...b}),_.createElement("input",{onChange:z,value:ce,type:"tel",ref:ae,className:qr({addPrefix:["input",A&&"input--disabled"],rawClassNames:[m]}),placeholder:C,disabled:A,style:h,name:S,onFocus:w,onBlur:D,autoFocus:R,required:k,...x}))});var qa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Db={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",x="[object Object]",C="[object Promise]",A="[object RegExp]",S="[object Set]",w="[object String]",D="[object Symbol]",k="[object WeakMap]",R="[object ArrayBuffer]",O="[object DataView]",H="[object Float32Array]",F="[object Float64Array]",ce="[object Int8Array]",ae="[object Int16Array]",q="[object Int32Array]",De="[object Uint8Array]",z="[object Uint8ClampedArray]",j="[object Uint16Array]",ne="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,N=/\w*$/,I=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,se={};se[o]=se[s]=se[R]=se[O]=se[u]=se[l]=se[H]=se[F]=se[ce]=se[ae]=se[q]=se[g]=se[b]=se[x]=se[A]=se[S]=se[w]=se[D]=se[De]=se[z]=se[j]=se[ne]=!0,se[d]=se[h]=se[k]=!1;var ie=typeof qa=="object"&&qa&&qa.Object===Object&&qa,Ae=typeof self=="object"&&self&&self.Object===Object&&self,Pe=ie||Ae||Function("return this")(),Ie=t&&!t.nodeType&&t,Le=Ie&&!0&&e&&!e.nodeType&&e,Je=Le&&Le.exports===Ie;function Qe(ue,Me){return ue.set(Me[0],Me[1]),ue}function ye(ue,Me){return ue.add(Me),ue}function Ne(ue,Me){for(var Ze=-1,bt=ue?ue.length:0;++Ze<bt&&Me(ue[Ze],Ze,ue)!==!1;);return ue}function He(ue,Me){for(var Ze=-1,bt=Me.length,Fn=ue.length;++Ze<bt;)ue[Fn+Ze]=Me[Ze];return ue}function Ke(ue,Me,Ze,bt){for(var Fn=-1,gr=ue?ue.length:0;++Fn<gr;)Ze=Me(Ze,ue[Fn],Fn,ue);return Ze}function Be(ue,Me){for(var Ze=-1,bt=Array(ue);++Ze<ue;)bt[Ze]=Me(Ze);return bt}function st(ue,Me){return ue==null?void 0:ue[Me]}function Dt(ue){var Me=!1;if(ue!=null&&typeof ue.toString!="function")try{Me=!!(ue+"")}catch{}return Me}function ln(ue){var Me=-1,Ze=Array(ue.size);return ue.forEach(function(bt,Fn){Ze[++Me]=[Fn,bt]}),Ze}function At(ue,Me){return function(Ze){return ue(Me(Ze))}}function It(ue){var Me=-1,Ze=Array(ue.size);return ue.forEach(function(bt){Ze[++Me]=bt}),Ze}var we=Array.prototype,Se=Function.prototype,Re=Object.prototype,Ge=Pe["__core-js_shared__"],rt=function(){var ue=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||"");return ue?"Symbol(src)_1."+ue:""}(),nt=Se.toString,dt=Re.hasOwnProperty,Et=Re.toString,xn=RegExp("^"+nt.call(dt).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),en=Je?Pe.Buffer:void 0,Gt=Pe.Symbol,Ir=Pe.Uint8Array,Tr=At(Object.getPrototypeOf,Object),Yt=Object.create,kt=Re.propertyIsEnumerable,jt=we.splice,tn=Object.getOwnPropertySymbols,Zn=en?en.isBuffer:void 0,Si=At(Object.keys,Object),ai=Tt(Pe,"DataView"),ui=Tt(Pe,"Map"),Gr=Tt(Pe,"Promise"),Ko=Tt(Pe,"Set"),Ct=Tt(Pe,"WeakMap"),Pr=Tt(Object,"create"),Ei=Xr(ai),Cs=Xr(ui),pa=Xr(Gr),ou=Xr(Ko),ma=Xr(Ct),fo=Gt?Gt.prototype:void 0,ga=fo?fo.valueOf:void 0;function Di(ue){var Me=-1,Ze=ue?ue.length:0;for(this.clear();++Me<Ze;){var bt=ue[Me];this.set(bt[0],bt[1])}}function Ai(){this.__data__=Pr?Pr(null):{}}function wt(ue){return this.has(ue)&&delete this.__data__[ue]}function An(ue){var Me=this.__data__;if(Pr){var Ze=Me[ue];return Ze===r?void 0:Ze}return dt.call(Me,ue)?Me[ue]:void 0}function ho(ue){var Me=this.__data__;return Pr?Me[ue]!==void 0:dt.call(Me,ue)}function va(ue,Me){var Ze=this.__data__;return Ze[ue]=Pr&&Me===void 0?r:Me,this}Di.prototype.clear=Ai,Di.prototype.delete=wt,Di.prototype.get=An,Di.prototype.has=ho,Di.prototype.set=va;function pr(ue){var Me=-1,Ze=ue?ue.length:0;for(this.clear();++Me<Ze;){var bt=ue[Me];this.set(bt[0],bt[1])}}function ya(){this.__data__=[]}function _r(ue){var Me=this.__data__,Ze=Vi(Me,ue);if(Ze<0)return!1;var bt=Me.length-1;return Ze==bt?Me.pop():jt.call(Me,Ze,1),!0}function su(ue){var Me=this.__data__,Ze=Vi(Me,ue);return Ze<0?void 0:Me[Ze][1]}function Lr(ue){return Vi(this.__data__,ue)>-1}function ut(ue,Me){var Ze=this.__data__,bt=Vi(Ze,ue);return bt<0?Ze.push([ue,Me]):Ze[bt][1]=Me,this}pr.prototype.clear=ya,pr.prototype.delete=_r,pr.prototype.get=su,pr.prototype.has=Lr,pr.prototype.set=ut;function yn(ue){var Me=-1,Ze=ue?ue.length:0;for(this.clear();++Me<Ze;){var bt=ue[Me];this.set(bt[0],bt[1])}}function Ti(){this.__data__={hash:new Di,map:new(ui||pr),string:new Di}}function Yr(ue){return St(this,ue).delete(ue)}function qn(ue){return St(this,ue).get(ue)}function Ss(ue){return St(this,ue).has(ue)}function Bi(ue,Me){return St(this,ue).set(ue,Me),this}yn.prototype.clear=Ti,yn.prototype.delete=Yr,yn.prototype.get=qn,yn.prototype.has=Ss,yn.prototype.set=Bi;function Zr(ue){this.__data__=new pr(ue)}function Tn(){this.__data__=new pr}function po(ue){return this.__data__.delete(ue)}function Ht(ue){return this.__data__.get(ue)}function au(ue){return this.__data__.has(ue)}function Es(ue,Me){var Ze=this.__data__;if(Ze instanceof pr){var bt=Ze.__data__;if(!ui||bt.length<n-1)return bt.push([ue,Me]),this;Ze=this.__data__=new yn(bt)}return Ze.set(ue,Me),this}Zr.prototype.clear=Tn,Zr.prototype.delete=po,Zr.prototype.get=Ht,Zr.prototype.has=au,Zr.prototype.set=Es;function uu(ue,Me){var Ze=_s(ue)||Ho(ue)?Be(ue.length,String):[],bt=Ze.length,Fn=!!bt;for(var gr in ue)dt.call(ue,gr)&&!(Fn&&(gr=="length"||br(gr,bt)))&&Ze.push(gr);return Ze}function Uo(ue,Me,Ze){var bt=ue[Me];(!(dt.call(ue,Me)&&Wo(bt,Ze))||Ze===void 0&&!(Me in ue))&&(ue[Me]=Ze)}function Vi(ue,Me){for(var Ze=ue.length;Ze--;)if(Wo(ue[Ze][0],Me))return Ze;return-1}function Ds(ue,Me){return ue&&We(Me,Fs(Me),ue)}function As(ue,Me,Ze,bt,Fn,gr,$r){var Xn;if(bt&&(Xn=gr?bt(ue,Fn,gr,$r):bt(ue)),Xn!==void 0)return Xn;if(!Ms(ue))return ue;var Ln=_s(ue);if(Ln){if(Xn=ur(ue),!Me)return Ve(ue,Xn)}else{var Ni=Pn(ue),ji=Ni==h||Ni==m;if(Sa(ue))return Ts(ue,Me);if(Ni==x||Ni==o||ji&&!gr){if(Dt(ue))return gr?ue:{};if(Xn=lr(ji?{}:ue),!Me)return ct(ue,Ds(Xn,ue))}else{if(!se[Ni])return gr?ue:{};Xn=on(ue,Ni,As,Me)}}$r||($r=new Zr);var fu=$r.get(ue);if(fu)return fu;if($r.set(ue,Xn),!Ln)var Ea=Ze?Bt(ue):Fs(ue);return Ne(Ea||ue,function(xr,ks){Ea&&(ks=xr,xr=ue[ks]),Uo(Xn,ks,As(xr,Me,Ze,bt,ks,ue,$r))}),Xn}function ba(ue){return Ms(ue)?Yt(ue):{}}function $a(ue,Me,Ze){var bt=Me(ue);return _s(ue)?bt:He(bt,Ze(ue))}function lu(ue){return Et.call(ue)}function xa(ue){if(!Ms(ue)||qo(ue))return!1;var Me=ll(ue)||Dt(ue)?xn:I;return Me.test(Xr(ue))}function zo(ue){if(!Ps(ue))return Si(ue);var Me=[];for(var Ze in Object(ue))dt.call(ue,Ze)&&Ze!="constructor"&&Me.push(Ze);return Me}function Ts(ue,Me){if(Me)return ue.slice();var Ze=new ue.constructor(ue.length);return ue.copy(Ze),Ze}function mo(ue){var Me=new ue.constructor(ue.byteLength);return new Ir(Me).set(new Ir(ue)),Me}function wa(ue,Me){var Ze=Me?mo(ue.buffer):ue.buffer;return new ue.constructor(Ze,ue.byteOffset,ue.byteLength)}function Ca(ue,Me,Ze){var bt=Me?Ze(ln(ue),!0):ln(ue);return Ke(bt,Qe,new ue.constructor)}function Rr(ue){var Me=new ue.constructor(ue.source,N.exec(ue));return Me.lastIndex=ue.lastIndex,Me}function mr(ue,Me,Ze){var bt=Me?Ze(It(ue),!0):It(ue);return Ke(bt,ye,new ue.constructor)}function te(ue){return ga?Object(ga.call(ue)):{}}function Te(ue,Me){var Ze=Me?mo(ue.buffer):ue.buffer;return new ue.constructor(Ze,ue.byteOffset,ue.length)}function Ve(ue,Me){var Ze=-1,bt=ue.length;for(Me||(Me=Array(bt));++Ze<bt;)Me[Ze]=ue[Ze];return Me}function We(ue,Me,Ze,bt){Ze||(Ze={});for(var Fn=-1,gr=Me.length;++Fn<gr;){var $r=Me[Fn],Xn=void 0;Uo(Ze,$r,Xn===void 0?ue[$r]:Xn)}return Ze}function ct(ue,Me){return We(ue,Zt(ue),Me)}function Bt(ue){return $a(ue,Fs,Zt)}function St(ue,Me){var Ze=ue.__data__;return go(Me)?Ze[typeof Me=="string"?"string":"hash"]:Ze.map}function Tt(ue,Me){var Ze=st(ue,Me);return xa(Ze)?Ze:void 0}var Zt=tn?At(tn,Object):sn,Pn=lu;(ai&&Pn(new ai(new ArrayBuffer(1)))!=O||ui&&Pn(new ui)!=g||Gr&&Pn(Gr.resolve())!=C||Ko&&Pn(new Ko)!=S||Ct&&Pn(new Ct)!=k)&&(Pn=function(ue){var Me=Et.call(ue),Ze=Me==x?ue.constructor:void 0,bt=Ze?Xr(Ze):void 0;if(bt)switch(bt){case Ei:return O;case Cs:return g;case pa:return C;case ou:return S;case ma:return k}return Me});function ur(ue){var Me=ue.length,Ze=ue.constructor(Me);return Me&&typeof ue[0]=="string"&&dt.call(ue,"index")&&(Ze.index=ue.index,Ze.input=ue.input),Ze}function lr(ue){return typeof ue.constructor=="function"&&!Ps(ue)?ba(Tr(ue)):{}}function on(ue,Me,Ze,bt){var Fn=ue.constructor;switch(Me){case R:return mo(ue);case u:case l:return new Fn(+ue);case O:return wa(ue,bt);case H:case F:case ce:case ae:case q:case De:case z:case j:case ne:return Te(ue,bt);case g:return Ca(ue,bt,Ze);case b:case w:return new Fn(ue);case A:return Rr(ue);case S:return mr(ue,bt,Ze);case D:return te(ue)}}function br(ue,Me){return Me=Me??i,!!Me&&(typeof ue=="number"||de.test(ue))&&ue>-1&&ue%1==0&&ue<Me}function go(ue){var Me=typeof ue;return Me=="string"||Me=="number"||Me=="symbol"||Me=="boolean"?ue!=="__proto__":ue===null}function qo(ue){return!!rt&&rt in ue}function Ps(ue){var Me=ue&&ue.constructor,Ze=typeof Me=="function"&&Me.prototype||Re;return ue===Ze}function Xr(ue){if(ue!=null){try{return nt.call(ue)}catch{}try{return ue+""}catch{}}return""}function cu(ue){return As(ue,!0,!0)}function Wo(ue,Me){return ue===Me||ue!==ue&&Me!==Me}function Ho(ue){return Rs(ue)&&dt.call(ue,"callee")&&(!kt.call(ue,"callee")||Et.call(ue)==o)}var _s=Array.isArray;function vo(ue){return ue!=null&&Vc(ue.length)&&!ll(ue)}function Rs(ue){return Nc(ue)&&vo(ue)}var Sa=Zn||cn;function ll(ue){var Me=Ms(ue)?Et.call(ue):"";return Me==h||Me==m}function Vc(ue){return typeof ue=="number"&&ue>-1&&ue%1==0&&ue<=i}function Ms(ue){var Me=typeof ue;return!!ue&&(Me=="object"||Me=="function")}function Nc(ue){return!!ue&&typeof ue=="object"}function Fs(ue){return vo(ue)?uu(ue):zo(ue)}function sn(){return[]}function cn(){return!1}e.exports=cu})(Db,Db.exports);var Wa=Db.exports,Ab=function(){return Ab=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},Ab.apply(this,arguments)};function jG(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 u(h){try{d(r.next(h))}catch(m){s(m)}}function l(h){try{d(r.throw(h))}catch(m){s(m)}}function d(h){h.done?o(h.value):i(h.value).then(u,l)}d((r=r.apply(e,[])).next())})}function KG(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=u(0),s.throw=u(1),s.return=u(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(d){return function(h){return l([d,h])}}function l(d){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(h){d=[6,h],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Up(e,t,n,r,i){return jG(this,void 0,void 0,function(){var o,s;return KG(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];s=0,u.label=1;case 1:return s<n.length?[4,n[s](e,t,r,i,n)]:[3,4];case 2:if(o=u.sent(),o==="canceled")return[3,4];u.label=3;case 3:return s++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var Tb=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Ab({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},UG=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var s=Wa(n);Up(t,s,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var l=Tb(i,u);o.imgElement.setAttribute("src",s.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,o=Wa(t);Up(this.imgElement,o,n,this.htmlPluginState).then(function(s){if(i.isMounted){var u=Tb(r,s);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let zn=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}},zG=class extends Error{constructor(t="Unsupported"){super(t)}};function s3(e){return new zG(e)}function qG(){return this._qualifierModel||{error:s3(`unsupported qualifier ${this.constructor.name}`)}}let WG=class{constructor(){this._qualifierModel={}}toJson(){return qG.apply(this)}},Ut=class extends WG{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof zn?this.qualifierValue=n:(this.qualifierValue=new zn,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}},ao=class extends Ut{constructor(t,n){let r;n?r=new zn([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function HG(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function GG(){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:s3(`unsupported action ${this.constructor.name}`)}}let YG=class{constructor(){this._actionModel={}}toJson(){return GG.apply(this)}},Bo=class extends YG{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(),HG(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 ao(r)):this.qualifiers.set(n,new Ut(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ao(t)):t instanceof ao&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class a3 extends Bo{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Lm extends a3{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Ut("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Ut("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Ut("h",t)),this}static fromJson(t){const n=new Lm;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 ZG(){return new Lm}function MF(){return new a3("faces")}function XG(){return new a3("ocr_text")}class JG extends Bo{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 Ut("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ut("e",`blur_region${t}`)),this.addQualifier(new Ut("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ut("e",`blur_faces${t}`))):this.addQualifier(new Ut("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(MF()),r&&r.regionType==="ocr_text"&&i.region(XG()),r&&r.regionType==="custom"&&i.region(Lm.fromJson(r)),i}}function il(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const FF={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},QG={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},kF={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},OF={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},eY={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},IF={444:"CHROMA_444",420:"CHROMA_420"},tY={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},nY=il(IF);il(tY);const rY=il(FF),iY=il(QG),LF=il(kF);il(OF);il(eY);class BF extends Bo{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=LF[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new zn([t,`${n}`]).setDelimiter(":"):r=new zn(t),new Ut("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=kF[n]||n;return new this(o,r||i)}}class oY extends BF{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=LF[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 Bm(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class sY extends Bo{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 zn(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new zn(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new zn(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new zn(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new zn(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Ut("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:s,numOfColors:u}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),o&&l.despeckleLevel(o),s&&l.detailsLevel(s),u&&l.numOfColors(u),l}}class aY extends oY{level(t){return this._actionModel.level=t,this.setLevel(t)}}class uY extends Bo{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Ut("e",new zn("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Ut("e",new zn(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Ut("e",new zn(["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 lY extends aY{color(t){return this._actionModel.color=t,this.addQualifier(new Ut("co",new zn(Bm(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class cY extends Bo{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 Ut("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ut("e",`pixelate_region${t}`)),this.addQualifier(new Ut("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ut("e",`pixelate_faces${t}`))):this.addQualifier(new Ut("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(MF()),n&&n.regionType==="custom"&&i.region(ZG()),i}}function fY(e){return new JG(e)}function dY(){return new BF("grayscale")}function PS(e){return new lY("colorize",e)}function hY(){return new sY}function pY(){return new uY}function mY(e){return new cY(e)}let gY=class extends Bo{constructor(t){super(),this._actionModel={},this.addQualifier(new Ut("b",new zn(Bm(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},_S=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:s3(`unsupported action ${this.constructor.name}`)}}};function vY(e){const t=e;return"error"in t&&!!t.error}function yY(){return new ao("ignore_aspect_ratio")}function bY(){return new ao("lossy")}function $Y(){return new ao("preserve_transparency")}function xY(e){return new ao("progressive",e)}function wY(){return new ao("region_relative")}function CY(){return new ao("relative")}let u3=class extends zn{constructor(t){super(t),this.val=t}getValue(){return this.val}},VF=class extends Bo{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof u3?i=n.getValue():i=n,this._actionModel.actionType=iY[t],this._actionModel[r]=i,this.addQualifier(new Ut(t,n))}},SY=class extends ao{constructor(t){super("progressive",t)}},Pb=class extends VF{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(bY()),this}progressive(t){return t instanceof SY?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(xY(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag($Y()),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}},Vm=class NF{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 _S(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof NF?this.actions=this.actions.concat(t.actions):this.actions.push(new _S(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 Pb("q",t)),this}format(t){return this.addAction(new Pb("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 gY(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Bo;let r=t;return typeof t=="string"&&(r=new ao(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(vY(r))return r;t.push(r)}return{actions:t}}};function RS(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 EY extends zn{}class DY extends Bo{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=rY[t]||t,this.addQualifier(new Ut("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Ut("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Ut("w",t))}aspectRatio(t){if(t instanceof EY)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Ut("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=RS(t),this.addQualifier(new Ut("ar",RS(t)));if(t instanceof ao)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(CY())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(wY())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:s,width:u,height:l}=r,d=FF[n]||n,h=new this(d,u,l);return s&&h.aspectRatio(s==="ignore_aspect_ratio"?yY():s),i&&h.relative(),o&&h.regionRelative(),h}}class l3 extends Ut{constructor(t){super("g",new zn(t))}}class jF extends l3{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class KF extends l3{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class UF extends l3{constructor(t){super(t)}}function AY(e){return new UF(e)}function zF(...e){const t=[...e];return new KF(t)}function qF(){return new jF}class lc extends zn{constructor(t){super(),this.name=t}toString(){return this.name}}function TY(){return new lc("ocr_text")}function PY(e){return e&&`${e}`.split(":")[0]==="auto"}function _Y(e){const t=c3(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function c3(e){return`${e}`.replace("g_","")}function RY(e){return{compass:c3(e),gravityType:"direction"}}function MY(e){return c3(e)==="ocr_text"}function FY(){return{gravityType:"ocr"}}function kY(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function OY(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 WF(e){let t;const n=e==="auto"?new jF: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(OY)}}function IY(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=qF().autoFocus(...o);i.fallbackGravity=WF(s)}return i}function LY(e){const n=e.split(":").map(r=>new lc(r));return new KF(n)}function BY(e){return _Y(e)?RY(e):MY(e)?FY():PY(e)||kY(e)?WF(e):IY(typeof e=="string"?LY(e):e)}class f3 extends zn{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof lc?t:new lc(t);return new f3(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 HF extends zn{constructor(t){super(),this.val=t}toString(){return this.val}}function VY(e){return e.gravityType==="direction"}function NY(e){return e.gravityType==="ocr"}function jY(e){return e.gravityType==="auto"}function KY(e){const{object:t,weight:n,avoid:r}=e,i=new f3(new lc(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function GF(e){const n=(e.autoFocus||[]).map(KY);return qF().autoFocus(...n)}function UY(e){const t=(e.focusOnObjects||[]).map(r=>new lc(r)),n=zF(...t);if(e.fallbackGravity){const r=GF(e.fallbackGravity);n.fallbackGravity(r)}return n}function zY(e){return VY(e)?new UF(new HF(e.compass)):NY(e)?zF(TY()):jY(e)?GF(e):UY(e)}class d3 extends DY{gravity(t){this._actionModel.gravity=BY(t);const n=typeof t=="string"?new Ut("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(zY(t.gravity)),n}}class Rd extends Ut{constructor(t){super("b"),t&&this.addValue(t)}}const YF=100,qY=0;class WY extends Rd{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}`:`:${YF}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var ZF=WY;class h3 extends Rd{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Bm(n)),this}}class XF extends h3{toString(){return`
85
- b_auto:border
86
- ${this._contrast?"_contrast":""}
87
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
88
- `.replace(/\s+/g,"")}}class JF extends h3{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class QF extends JF{toString(){return`
89
- b_auto:border_gradient
90
- ${this._contrast?"_contrast":""}
91
- ${this._gradientColors?`:${this._gradientColors}`:""}
92
- ${this._gradientDirection?`:${this._gradientDirection}`:""}
93
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
94
- `.replace(/\s+/g,"")}}class ek extends JF{toString(){return`
95
- b_auto:predominant_gradient
96
- ${this._contrast?"_contrast":""}
97
- ${this._gradientColors?`:${this._gradientColors}`:""}
98
- ${this._gradientDirection?`:${this._gradientDirection}`:""}
99
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
100
- `.replace(/\s+/g,"")}}class tk extends h3{toString(){return`
101
- b_auto:predominant
102
- ${this._contrast?"_contrast":""}
103
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
104
- `.replace(/\s+/g,"")}}class nk extends Rd{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 rk(e){return`${e}`.replace("b_","")}function HY(){return{backgroundType:"auto"}}function GY(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 p3(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function YY(e){return Object.assign(Object.assign({},p3(e)),{backgroundType:"border"})}function ik(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=p3(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function ZY(e){return Object.assign(Object.assign({},ik(e)),{backgroundType:"borderGradient"})}function XY(e){return{backgroundType:"color",color:rk(e)}}function JY(e){return Object.assign(Object.assign({},p3(e)),{backgroundType:"predominant"})}function QY(e){return Object.assign(Object.assign({},ik(e)),{backgroundType:"predominantGradient"})}function eZ(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function tZ(e){return rk(e)==="auto"?HY():e instanceof ZF?GY(e):e instanceof XF?YY(e):e instanceof QF?ZY(e):e instanceof tk?JY(e):e instanceof ek?QY(e):e instanceof nk?eZ(e):XY(e)}function nZ(){return new u3("svg")}function m3(){return new u3("auto")}function ok(){return new XF}function sk(){return new Rd("auto")}function ak(){return new QF}function uk(){return new ek}function lk(){return new tk}function ck(e){return new Rd(Bm(e))}function rZ(){return new ZF}function fk(){return new nk}const dk={auto:sk,border:ok,borderGradient:ak,predominantGradient:uk,predominant:lk,color:ck,blurred:rZ,generativeFill:fk};function iZ(e){const{brightness:t,intensity:n}=e,r=dk.blurred();return r.brightness(t??qY),r.intensity(n??YF),r}function MS(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 FS(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function oZ(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function sZ(e){const{backgroundType:t}=e;switch(t){case"auto":return sk();case"blurred":return iZ(e);case"border":return FS(ok(),e);case"borderGradient":return MS(ak(),e);case"predominant":return FS(lk(),e);case"predominantGradient":return MS(uk(),e);case"generativeFill":return oZ(fk(),e);default:return ck(e.color)}}class aZ extends d3{background(t){return this._actionModel.background=tZ(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Ut("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(sZ(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class uZ extends d3{x(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ut("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Ut("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 lZ extends d3{x(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ut("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 cZ(e,t){return new uZ("crop",e,t)}function fZ(e,t){return new lZ("fill",e,t)}function dZ(e,t){return new aZ("pad",e,t)}class hZ extends VF{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=IF[t];const n=new zn([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Ut("q",n))}quantization(t){this._actionModel.quantization=t;const n=new zn([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Ut("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=OF[n]||n,s=new this(o);if(r){const u=nY[r.toUpperCase()];u&&s.chromaSubSampling(+u)}return i&&s.quantization(i),s}}function Nm(e){return new Pb("f",e)}function jm(e){return new hZ(e)}function pZ(){return new HF("north_east")}PS(70).color("black"),PS(40).color("white"),dY(),pY();var mZ=new Vm().effect(hY()).delivery(jm("auto")).delivery(Nm(nZ())),gZ=new Vm().effect(mY()).delivery(jm("auto")).delivery(Nm(m3())),vZ=new Vm().effect(fY(2e3)).delivery(jm("auto")).delivery(Nm(m3())),yZ=new Vm().resize(dZ("iw_div_2").aspectRatio(1).background(dk.auto())).resize(cZ(1,1).gravity(AY(pZ()))).resize(fZ().height("ih").width("iw")).delivery(jm("auto")).delivery(Nm(m3())),kS={vectorize:mZ,pixelate:gZ,blur:vZ,"predominant-color":yZ},OS="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",IS={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},LS="?_a=",bZ=function(){function e(t,n,r,i,o,s,u){var l=this;this.mimeType="video",this.mimeSubTypes=IS,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=Wa(n);Up(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),l.setVideoAttributes(o,s),l.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(o){r.appendSourceTag(Wa(t),o)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var o=i.type,s=i.codecs,u=i.transcode;return r.appendSourceTag(Wa(t).transcode(u),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 u=t.toURL(),l=u.split(LS),d=l[1]?"".concat(LS).concat(l[1]):"",h=s?"":".".concat(n);o.src="".concat(l[0]).concat(h).concat(d),o.type=r||"video/".concat(IS[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=Wa(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 u=s[o],l=u[0],d=u[1];d&&this.videoElement.setAttribute(l,l==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,o){var s=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);Up(this.videoElement,t,r,this.htmlPluginState).then(function(){s.setVideoAttributes(i,o),s.handleSourceToVideo(t,n),s.videoElement.load()})}},e}(),$Z=typeof qa=="object"&&qa&&qa.Object===Object&&qa,xZ=typeof self=="object"&&self&&self.Object===Object&&self;$Z||xZ||Function("return this")();function g3(){return typeof window<"u"}function wZ(e){return e instanceof HTMLImageElement}function CZ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return SZ.bind(null,r,o)}function SZ(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),g3()?new Promise(function(s){var u=function(){return s({lazyload:!0})},l=DZ(n,u,e,t);i.cleanupCallbacks.push(function(){l(),s("canceled")})}):!1}function EZ(){return window&&"IntersectionObserver"in window}function DZ(e,t,n,r){try{if(!EZ())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 AZ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return TZ.bind(null,r)}function TZ(e,t,n,r,i,o){kS[e]||(e="vectorize");var s=kS[e].actions,u=Wa(n);if(s.forEach(function(d){u.addAction(d)}),!g3())return n.transformation=u.transformation,!0;if(wZ(t)){u.transformation.actions.forEach(function(d,h){d instanceof Bo&&d.getActionTag()==="responsive"&&delete u.transformation.actions[h]});var l=Tb(i,{placeholder:!0});return t.src=u.toURL(l),t.onerror=function(){t.src=OS},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=OS,d("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function PZ(e,t,n){var r=Wa(t);if(e)for(var i=0;i<e.length;i++){var o=e[i](null,r);if(!o)break}return r.toURL(n?{trackedAnalytics:n}:null)}function zp(e){e.cleanupCallbacks.forEach(function(t){t()})}var _b=function(e,t){return _b=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])},_b(e,t)};function hk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_b(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var rd=function(){return rd=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},rd.apply(this,arguments)};function pk(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 id={exports:{}},$n={};/*
105
- object-assign
106
- (c) Sindre Sorhus
107
- @license MIT
108
- */var BS=Object.getOwnPropertySymbols,_Z=Object.prototype.hasOwnProperty,RZ=Object.prototype.propertyIsEnumerable;function MZ(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function FZ(){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 mk=FZ()?Object.assign:function(e,t){for(var n,r=MZ(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var s in n)_Z.call(n,s)&&(r[s]=n[s]);if(BS){i=BS(n);for(var u=0;u<i.length;u++)RZ.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r};/** @license React v16.14.0
109
- * react.production.min.js
110
- *
111
- * Copyright (c) Facebook, Inc. and its affiliates.
112
- *
113
- * This source code is licensed under the MIT license found in the
114
- * LICENSE file in the root directory of this source tree.
115
- */var v3=mk,Vo=typeof Symbol=="function"&&Symbol.for,Md=Vo?Symbol.for("react.element"):60103,kZ=Vo?Symbol.for("react.portal"):60106,OZ=Vo?Symbol.for("react.fragment"):60107,IZ=Vo?Symbol.for("react.strict_mode"):60108,LZ=Vo?Symbol.for("react.profiler"):60114,BZ=Vo?Symbol.for("react.provider"):60109,VZ=Vo?Symbol.for("react.context"):60110,NZ=Vo?Symbol.for("react.forward_ref"):60112,jZ=Vo?Symbol.for("react.suspense"):60113,KZ=Vo?Symbol.for("react.memo"):60115,UZ=Vo?Symbol.for("react.lazy"):60116,VS=typeof Symbol=="function"&&Symbol.iterator;function Fd(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 gk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vk={};function Ec(e,t,n){this.props=e,this.context=t,this.refs=vk,this.updater=n||gk}Ec.prototype.isReactComponent={};Ec.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Fd(85));this.updater.enqueueSetState(this,e,t,"setState")};Ec.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yk(){}yk.prototype=Ec.prototype;function y3(e,t,n){this.props=e,this.context=t,this.refs=vk,this.updater=n||gk}var b3=y3.prototype=new yk;b3.constructor=y3;v3(b3,Ec.prototype);b3.isPureReactComponent=!0;var $3={current:null},bk=Object.prototype.hasOwnProperty,$k={key:!0,ref:!0,__self:!0,__source:!0};function xk(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)bk.call(t,r)&&!$k.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var l=Array(u),d=0;d<u;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Md,type:e,key:o,ref:s,props:i,_owner:$3.current}}function zZ(e,t){return{$$typeof:Md,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function x3(e){return typeof e=="object"&&e!==null&&e.$$typeof===Md}function qZ(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var wk=/\/+/g,qp=[];function Ck(e,t,n,r){if(qp.length){var i=qp.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 Sk(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>qp.length&&qp.push(e)}function Rb(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 Md:case kZ:o=!0}}if(o)return n(r,e,t===""?"."+Kv(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 u=t+Kv(i,s);o+=Rb(i,u,n,r)}else if(e===null||typeof e!="object"?u=null:(u=VS&&e[VS]||e["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function")for(e=u.call(e),s=0;!(i=e.next()).done;)i=i.value,u=t+Kv(i,s++),o+=Rb(i,u,n,r);else if(i==="object")throw n=""+e,Error(Fd(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function Mb(e,t,n){return e==null?0:Rb(e,"",t,n)}function Kv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qZ(e.key):t.toString(36)}function WZ(e,t){e.func.call(e.context,t,e.count++)}function HZ(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Fb(e,r,n,function(o){return o}):e!=null&&(x3(e)&&(e=zZ(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(wk,"$&/")+"/")+n)),r.push(e))}function Fb(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(wk,"$&/")+"/"),t=Ck(t,o,r,i),Mb(e,HZ,t),Sk(t)}var Ek={current:null};function fa(){var e=Ek.current;if(e===null)throw Error(Fd(321));return e}var GZ={ReactCurrentDispatcher:Ek,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:$3,IsSomeRendererActing:{current:!1},assign:v3};$n.Children={map:function(e,t,n){if(e==null)return e;var r=[];return Fb(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=Ck(null,null,t,n),Mb(e,WZ,t),Sk(t)},count:function(e){return Mb(e,function(){return null},null)},toArray:function(e){var t=[];return Fb(e,t,null,function(n){return n}),t},only:function(e){if(!x3(e))throw Error(Fd(143));return e}};$n.Component=Ec;$n.Fragment=OZ;$n.Profiler=LZ;$n.PureComponent=y3;$n.StrictMode=IZ;$n.Suspense=jZ;$n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GZ;$n.cloneElement=function(e,t,n){if(e==null)throw Error(Fd(267,e));var r=v3({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=$3.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)bk.call(t,l)&&!$k.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&u!==void 0?u[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){u=Array(l);for(var d=0;d<l;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:Md,type:e.type,key:i,ref:o,props:r,_owner:s}};$n.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:VZ,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:BZ,_context:e},e.Consumer=e};$n.createElement=xk;$n.createFactory=function(e){var t=xk.bind(null,e);return t.type=e,t};$n.createRef=function(){return{current:null}};$n.forwardRef=function(e){return{$$typeof:NZ,render:e}};$n.isValidElement=x3;$n.lazy=function(e){return{$$typeof:UZ,_ctor:e,_status:-1,_result:null}};$n.memo=function(e,t){return{$$typeof:KZ,type:e,compare:t===void 0?null:t}};$n.useCallback=function(e,t){return fa().useCallback(e,t)};$n.useContext=function(e,t){return fa().useContext(e,t)};$n.useDebugValue=function(){};$n.useEffect=function(e,t){return fa().useEffect(e,t)};$n.useImperativeHandle=function(e,t,n){return fa().useImperativeHandle(e,t,n)};$n.useLayoutEffect=function(e,t){return fa().useLayoutEffect(e,t)};$n.useMemo=function(e,t){return fa().useMemo(e,t)};$n.useReducer=function(e,t,n){return fa().useReducer(e,t,n)};$n.useRef=function(e){return fa().useRef(e)};$n.useState=function(e){return fa().useState(e)};$n.version="16.14.0";var bn={},YZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ZZ=YZ,XZ=Function.call.bind(Object.prototype.hasOwnProperty),kb=function(){};if(process.env.NODE_ENV!=="production"){var JZ=ZZ,Ob={},QZ=XZ;kb=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function Dk(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(QZ(e,o)){var s;try{if(typeof e[o]!="function"){var u=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 u.name="Invariant Violation",u}s=e[o](t,o,r,n,null,JZ)}catch(d){s=d}if(s&&!(s instanceof Error)&&kb((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 Ob)){Ob[s.message]=!0;var l=i?i():"";kb("Failed "+n+" type: "+s.message+(l??""))}}}}Dk.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Ob={})};var eX=Dk;/** @license React v16.14.0
116
- * react.development.js
117
- *
118
- * Copyright (c) Facebook, Inc. and its affiliates.
119
- *
120
- * This source code is licensed under the MIT license found in the
121
- * LICENSE file in the root directory of this source tree.
122
- */process.env.NODE_ENV!=="production"&&function(){var e=mk,t=eX,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,u=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,h=r?Symbol.for("react.context"):60110,m=r?Symbol.for("react.concurrent_mode"):60111,g=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,x=r?Symbol.for("react.suspense_list"):60120,C=r?Symbol.for("react.memo"):60115,A=r?Symbol.for("react.lazy"):60116,S=r?Symbol.for("react.block"):60121,w=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,k=r?Symbol.for("react.scope"):60119,R=typeof Symbol=="function"&&Symbol.iterator,O="@@iterator";function H(te){if(te===null||typeof te!="object")return null;var Te=R&&te[R]||te[O];return typeof Te=="function"?Te:null}var F={current:null},ce={suspense:null},ae={current:null},q=/^(.*)[\\\/]/;function De(te,Te,Ve){var We="";if(Te){var ct=Te.fileName,Bt=ct.replace(q,"");if(/^index\./.test(Bt)){var St=ct.match(q);if(St){var Tt=St[1];if(Tt){var Zt=Tt.replace(q,"");Bt=Zt+"/"+Bt}}}We=" (at "+Bt+":"+Te.lineNumber+")"}else Ve&&(We=" (created by "+Ve+")");return`
123
- in `+(te||"Unknown")+We}var z=1;function j(te){return te._status===z?te._result:null}function ne(te,Te,Ve){var We=Te.displayName||Te.name||"";return te.displayName||(We!==""?Ve+"("+We+")":Ve)}function K(te){if(te==null)return null;if(typeof te.tag=="number"&&Pe("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof te=="function")return te.displayName||te.name||null;if(typeof te=="string")return te;switch(te){case s:return"Fragment";case o:return"Portal";case l:return"Profiler";case u:return"StrictMode";case b:return"Suspense";case x:return"SuspenseList"}if(typeof te=="object")switch(te.$$typeof){case h:return"Context.Consumer";case d:return"Context.Provider";case g:return ne(te,te.render,"ForwardRef");case C:return K(te.type);case S:return K(te.render);case A:{var Te=te,Ve=j(Te);if(Ve)return K(Ve);break}}return null}var N={},I=null;function de(te){I=te}N.getCurrentStack=null,N.getStackAddendum=function(){var te="";if(I){var Te=K(I.type),Ve=I._owner;te+=De(Te,I._source,Ve&&K(Ve.type))}var We=N.getCurrentStack;return We&&(te+=We()||""),te};var se={current:!1},ie={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:ce,ReactCurrentOwner:ae,IsSomeRendererActing:se,assign:e};e(ie,{ReactDebugCurrentFrame:N,ReactComponentTreeHook:{}});function Ae(te){{for(var Te=arguments.length,Ve=new Array(Te>1?Te-1:0),We=1;We<Te;We++)Ve[We-1]=arguments[We];Ie("warn",te,Ve)}}function Pe(te){{for(var Te=arguments.length,Ve=new Array(Te>1?Te-1:0),We=1;We<Te;We++)Ve[We-1]=arguments[We];Ie("error",te,Ve)}}function Ie(te,Te,Ve){{var We=Ve.length>0&&typeof Ve[Ve.length-1]=="string"&&Ve[Ve.length-1].indexOf(`
124
- in`)===0;if(!We){var ct=ie.ReactDebugCurrentFrame,Bt=ct.getStackAddendum();Bt!==""&&(Te+="%s",Ve=Ve.concat([Bt]))}var St=Ve.map(function(Pn){return""+Pn});St.unshift("Warning: "+Te),Function.prototype.apply.call(console[te],console,St);try{var Tt=0,Zt="Warning: "+Te.replace(/%s/g,function(){return Ve[Tt++]});throw new Error(Zt)}catch{}}}var Le={};function Je(te,Te){{var Ve=te.constructor,We=Ve&&(Ve.displayName||Ve.name)||"ReactClass",ct=We+"."+Te;if(Le[ct])return;Pe("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.",Te,We),Le[ct]=!0}}var Qe={isMounted:function(te){return!1},enqueueForceUpdate:function(te,Te,Ve){Je(te,"forceUpdate")},enqueueReplaceState:function(te,Te,Ve,We){Je(te,"replaceState")},enqueueSetState:function(te,Te,Ve,We){Je(te,"setState")}},ye={};Object.freeze(ye);function Ne(te,Te,Ve){this.props=te,this.context=Te,this.refs=ye,this.updater=Ve||Qe}Ne.prototype.isReactComponent={},Ne.prototype.setState=function(te,Te){if(!(typeof te=="object"||typeof te=="function"||te==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,te,Te,"setState")},Ne.prototype.forceUpdate=function(te){this.updater.enqueueForceUpdate(this,te,"forceUpdate")};{var He={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)."]},Ke=function(te,Te){Object.defineProperty(Ne.prototype,te,{get:function(){Ae("%s(...) is deprecated in plain JavaScript React classes. %s",Te[0],Te[1])}})};for(var Be in He)He.hasOwnProperty(Be)&&Ke(Be,He[Be])}function st(){}st.prototype=Ne.prototype;function Dt(te,Te,Ve){this.props=te,this.context=Te,this.refs=ye,this.updater=Ve||Qe}var ln=Dt.prototype=new st;ln.constructor=Dt,e(ln,Ne.prototype),ln.isPureReactComponent=!0;function At(){var te={current:null};return Object.seal(te),te}var It=Object.prototype.hasOwnProperty,we={key:!0,ref:!0,__self:!0,__source:!0},Se,Re,Ge;Ge={};function rt(te){if(It.call(te,"ref")){var Te=Object.getOwnPropertyDescriptor(te,"ref").get;if(Te&&Te.isReactWarning)return!1}return te.ref!==void 0}function nt(te){if(It.call(te,"key")){var Te=Object.getOwnPropertyDescriptor(te,"key").get;if(Te&&Te.isReactWarning)return!1}return te.key!==void 0}function dt(te,Te){var Ve=function(){Se||(Se=!0,Pe("%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)",Te))};Ve.isReactWarning=!0,Object.defineProperty(te,"key",{get:Ve,configurable:!0})}function Et(te,Te){var Ve=function(){Re||(Re=!0,Pe("%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)",Te))};Ve.isReactWarning=!0,Object.defineProperty(te,"ref",{get:Ve,configurable:!0})}function xn(te){if(typeof te.ref=="string"&&ae.current&&te.__self&&ae.current.stateNode!==te.__self){var Te=K(ae.current.type);Ge[Te]||(Pe('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',K(ae.current.type),te.ref),Ge[Te]=!0)}}var en=function(te,Te,Ve,We,ct,Bt,St){var Tt={$$typeof:i,type:te,key:Te,ref:Ve,props:St,_owner:Bt};return Tt._store={},Object.defineProperty(Tt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Tt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:We}),Object.defineProperty(Tt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ct}),Object.freeze&&(Object.freeze(Tt.props),Object.freeze(Tt)),Tt};function Gt(te,Te,Ve){var We,ct={},Bt=null,St=null,Tt=null,Zt=null;if(Te!=null){rt(Te)&&(St=Te.ref,xn(Te)),nt(Te)&&(Bt=""+Te.key),Tt=Te.__self===void 0?null:Te.__self,Zt=Te.__source===void 0?null:Te.__source;for(We in Te)It.call(Te,We)&&!we.hasOwnProperty(We)&&(ct[We]=Te[We])}var Pn=arguments.length-2;if(Pn===1)ct.children=Ve;else if(Pn>1){for(var ur=Array(Pn),lr=0;lr<Pn;lr++)ur[lr]=arguments[lr+2];Object.freeze&&Object.freeze(ur),ct.children=ur}if(te&&te.defaultProps){var on=te.defaultProps;for(We in on)ct[We]===void 0&&(ct[We]=on[We])}if(Bt||St){var br=typeof te=="function"?te.displayName||te.name||"Unknown":te;Bt&&dt(ct,br),St&&Et(ct,br)}return en(te,Bt,St,Tt,Zt,ae.current,ct)}function Ir(te,Te){var Ve=en(te.type,Te,te.ref,te._self,te._source,te._owner,te.props);return Ve}function Tr(te,Te,Ve){if(te==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+te+".");var We,ct=e({},te.props),Bt=te.key,St=te.ref,Tt=te._self,Zt=te._source,Pn=te._owner;if(Te!=null){rt(Te)&&(St=Te.ref,Pn=ae.current),nt(Te)&&(Bt=""+Te.key);var ur;te.type&&te.type.defaultProps&&(ur=te.type.defaultProps);for(We in Te)It.call(Te,We)&&!we.hasOwnProperty(We)&&(Te[We]===void 0&&ur!==void 0?ct[We]=ur[We]:ct[We]=Te[We])}var lr=arguments.length-2;if(lr===1)ct.children=Ve;else if(lr>1){for(var on=Array(lr),br=0;br<lr;br++)on[br]=arguments[br+2];ct.children=on}return en(te.type,Bt,St,Tt,Zt,Pn,ct)}function Yt(te){return typeof te=="object"&&te!==null&&te.$$typeof===i}var kt=".",jt=":";function tn(te){var Te=/[=:]/g,Ve={"=":"=0",":":"=2"},We=(""+te).replace(Te,function(ct){return Ve[ct]});return"$"+We}var Zn=!1,Si=/\/+/g;function ai(te){return(""+te).replace(Si,"$&/")}var ui=10,Gr=[];function Ko(te,Te,Ve,We){if(Gr.length){var ct=Gr.pop();return ct.result=te,ct.keyPrefix=Te,ct.func=Ve,ct.context=We,ct.count=0,ct}else return{result:te,keyPrefix:Te,func:Ve,context:We,count:0}}function Ct(te){te.result=null,te.keyPrefix=null,te.func=null,te.context=null,te.count=0,Gr.length<ui&&Gr.push(te)}function Pr(te,Te,Ve,We){var ct=typeof te;(ct==="undefined"||ct==="boolean")&&(te=null);var Bt=!1;if(te===null)Bt=!0;else switch(ct){case"string":case"number":Bt=!0;break;case"object":switch(te.$$typeof){case i:case o:Bt=!0}}if(Bt)return Ve(We,te,Te===""?kt+Cs(te,0):Te),1;var St,Tt,Zt=0,Pn=Te===""?kt:Te+jt;if(Array.isArray(te))for(var ur=0;ur<te.length;ur++)St=te[ur],Tt=Pn+Cs(St,ur),Zt+=Pr(St,Tt,Ve,We);else{var lr=H(te);if(typeof lr=="function"){lr===te.entries&&(Zn||Ae("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."),Zn=!0);for(var on=lr.call(te),br,go=0;!(br=on.next()).done;)St=br.value,Tt=Pn+Cs(St,go++),Zt+=Pr(St,Tt,Ve,We)}else if(ct==="object"){var qo="";qo=" If you meant to render a collection of children, use an array instead."+N.getStackAddendum();var Ps=""+te;throw Error("Objects are not valid as a React child (found: "+(Ps==="[object Object]"?"object with keys {"+Object.keys(te).join(", ")+"}":Ps)+")."+qo)}}return Zt}function Ei(te,Te,Ve){return te==null?0:Pr(te,"",Te,Ve)}function Cs(te,Te){return typeof te=="object"&&te!==null&&te.key!=null?tn(te.key):Te.toString(36)}function pa(te,Te,Ve){var We=te.func,ct=te.context;We.call(ct,Te,te.count++)}function ou(te,Te,Ve){if(te==null)return te;var We=Ko(null,null,Te,Ve);Ei(te,pa,We),Ct(We)}function ma(te,Te,Ve){var We=te.result,ct=te.keyPrefix,Bt=te.func,St=te.context,Tt=Bt.call(St,Te,te.count++);Array.isArray(Tt)?fo(Tt,We,Ve,function(Zt){return Zt}):Tt!=null&&(Yt(Tt)&&(Tt=Ir(Tt,ct+(Tt.key&&(!Te||Te.key!==Tt.key)?ai(Tt.key)+"/":"")+Ve)),We.push(Tt))}function fo(te,Te,Ve,We,ct){var Bt="";Ve!=null&&(Bt=ai(Ve)+"/");var St=Ko(Te,Bt,We,ct);Ei(te,ma,St),Ct(St)}function ga(te,Te,Ve){if(te==null)return te;var We=[];return fo(te,We,null,Te,Ve),We}function Di(te){return Ei(te,function(){return null},null)}function Ai(te){var Te=[];return fo(te,Te,null,function(Ve){return Ve}),Te}function wt(te){if(!Yt(te))throw Error("React.Children.only expected to receive a single React element child.");return te}function An(te,Te){Te===void 0?Te=null:Te!==null&&typeof Te!="function"&&Pe("createContext: Expected the optional second argument to be a function. Instead received: %s",Te);var Ve={$$typeof:h,_calculateChangedBits:Te,_currentValue:te,_currentValue2:te,_threadCount:0,Provider:null,Consumer:null};Ve.Provider={$$typeof:d,_context:Ve};var We=!1,ct=!1;{var Bt={$$typeof:h,_context:Ve,_calculateChangedBits:Ve._calculateChangedBits};Object.defineProperties(Bt,{Provider:{get:function(){return ct||(ct=!0,Pe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),Ve.Provider},set:function(St){Ve.Provider=St}},_currentValue:{get:function(){return Ve._currentValue},set:function(St){Ve._currentValue=St}},_currentValue2:{get:function(){return Ve._currentValue2},set:function(St){Ve._currentValue2=St}},_threadCount:{get:function(){return Ve._threadCount},set:function(St){Ve._threadCount=St}},Consumer:{get:function(){return We||(We=!0,Pe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),Ve.Consumer}}}),Ve.Consumer=Bt}return Ve._currentRenderer=null,Ve._currentRenderer2=null,Ve}function ho(te){var Te={$$typeof:A,_ctor:te,_status:-1,_result:null};{var Ve,We;Object.defineProperties(Te,{defaultProps:{configurable:!0,get:function(){return Ve},set:function(ct){Pe("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."),Ve=ct,Object.defineProperty(Te,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return We},set:function(ct){Pe("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."),We=ct,Object.defineProperty(Te,"propTypes",{enumerable:!0})}}})}return Te}function va(te){return te!=null&&te.$$typeof===C?Pe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof te!="function"?Pe("forwardRef requires a render function but was given %s.",te===null?"null":typeof te):te.length!==0&&te.length!==2&&Pe("forwardRef render functions accept exactly two parameters: props and ref. %s",te.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),te!=null&&(te.defaultProps!=null||te.propTypes!=null)&&Pe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:g,render:te}}function pr(te){return typeof te=="string"||typeof te=="function"||te===s||te===m||te===l||te===u||te===b||te===x||typeof te=="object"&&te!==null&&(te.$$typeof===A||te.$$typeof===C||te.$$typeof===d||te.$$typeof===h||te.$$typeof===g||te.$$typeof===w||te.$$typeof===D||te.$$typeof===k||te.$$typeof===S)}function ya(te,Te){return pr(te)||Pe("memo: The first argument must be a component. Instead received: %s",te===null?"null":typeof te),{$$typeof:C,type:te,compare:Te===void 0?null:Te}}function _r(){var te=F.current;if(te===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:
125
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
126
- 2. You might be breaking the Rules of Hooks
127
- 3. You might have more than one copy of React in the same app
128
- See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return te}function su(te,Te){var Ve=_r();if(Te!==void 0&&Pe("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",Te,typeof Te=="number"&&Array.isArray(arguments[2])?`
129
-
130
- Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),te._context!==void 0){var We=te._context;We.Consumer===te?Pe("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?"):We.Provider===te&&Pe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Ve.useContext(te,Te)}function Lr(te){var Te=_r();return Te.useState(te)}function ut(te,Te,Ve){var We=_r();return We.useReducer(te,Te,Ve)}function yn(te){var Te=_r();return Te.useRef(te)}function Ti(te,Te){var Ve=_r();return Ve.useEffect(te,Te)}function Yr(te,Te){var Ve=_r();return Ve.useLayoutEffect(te,Te)}function qn(te,Te){var Ve=_r();return Ve.useCallback(te,Te)}function Ss(te,Te){var Ve=_r();return Ve.useMemo(te,Te)}function Bi(te,Te,Ve){var We=_r();return We.useImperativeHandle(te,Te,Ve)}function Zr(te,Te){{var Ve=_r();return Ve.useDebugValue(te,Te)}}var Tn;Tn=!1;function po(){if(ae.current){var te=K(ae.current.type);if(te)return`
131
-
132
- Check the render method of \``+te+"`."}return""}function Ht(te){if(te!==void 0){var Te=te.fileName.replace(/^.*[\\\/]/,""),Ve=te.lineNumber;return`
133
-
134
- Check your code at `+Te+":"+Ve+"."}return""}function au(te){return te!=null?Ht(te.__source):""}var Es={};function uu(te){var Te=po();if(!Te){var Ve=typeof te=="string"?te:te.displayName||te.name;Ve&&(Te=`
135
-
136
- Check the top-level render call using <`+Ve+">.")}return Te}function Uo(te,Te){if(!(!te._store||te._store.validated||te.key!=null)){te._store.validated=!0;var Ve=uu(Te);if(!Es[Ve]){Es[Ve]=!0;var We="";te&&te._owner&&te._owner!==ae.current&&(We=" It was passed a child from "+K(te._owner.type)+"."),de(te),Pe('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',Ve,We),de(null)}}}function Vi(te,Te){if(typeof te=="object"){if(Array.isArray(te))for(var Ve=0;Ve<te.length;Ve++){var We=te[Ve];Yt(We)&&Uo(We,Te)}else if(Yt(te))te._store&&(te._store.validated=!0);else if(te){var ct=H(te);if(typeof ct=="function"&&ct!==te.entries)for(var Bt=ct.call(te),St;!(St=Bt.next()).done;)Yt(St.value)&&Uo(St.value,Te)}}}function Ds(te){{var Te=te.type;if(Te==null||typeof Te=="string")return;var Ve=K(Te),We;if(typeof Te=="function")We=Te.propTypes;else if(typeof Te=="object"&&(Te.$$typeof===g||Te.$$typeof===C))We=Te.propTypes;else return;We?(de(te),t(We,te.props,"prop",Ve,N.getStackAddendum),de(null)):Te.PropTypes!==void 0&&!Tn&&(Tn=!0,Pe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ve||"Unknown")),typeof Te.getDefaultProps=="function"&&!Te.getDefaultProps.isReactClassApproved&&Pe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function As(te){{de(te);for(var Te=Object.keys(te.props),Ve=0;Ve<Te.length;Ve++){var We=Te[Ve];if(We!=="children"&&We!=="key"){Pe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",We);break}}te.ref!==null&&Pe("Invalid attribute `ref` supplied to `React.Fragment`."),de(null)}}function ba(te,Te,Ve){var We=pr(te);if(!We){var ct="";(te===void 0||typeof te=="object"&&te!==null&&Object.keys(te).length===0)&&(ct+=" 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 Bt=au(Te);Bt?ct+=Bt:ct+=po();var St;te===null?St="null":Array.isArray(te)?St="array":te!==void 0&&te.$$typeof===i?(St="<"+(K(te.type)||"Unknown")+" />",ct=" Did you accidentally export a JSX literal instead of a component?"):St=typeof te,Pe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",St,ct)}var Tt=Gt.apply(this,arguments);if(Tt==null)return Tt;if(We)for(var Zt=2;Zt<arguments.length;Zt++)Vi(arguments[Zt],te);return te===s?As(Tt):Ds(Tt),Tt}var $a=!1;function lu(te){var Te=ba.bind(null,te);return Te.type=te,$a||($a=!0,Ae("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(Te,"type",{enumerable:!1,get:function(){return Ae("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:te}),te}}),Te}function xa(te,Te,Ve){for(var We=Tr.apply(this,arguments),ct=2;ct<arguments.length;ct++)Vi(arguments[ct],We.type);return Ds(We),We}try{var zo=Object.freeze({}),Ts=new Map([[zo,null]]),mo=new Set([zo]);Ts.set(0,0),mo.add(0)}catch{}var wa=ba,Ca=xa,Rr=lu,mr={map:ga,forEach:ou,count:Di,toArray:Ai,only:wt};bn.Children=mr,bn.Component=Ne,bn.Fragment=s,bn.Profiler=l,bn.PureComponent=Dt,bn.StrictMode=u,bn.Suspense=b,bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ie,bn.cloneElement=Ca,bn.createContext=An,bn.createElement=wa,bn.createFactory=Rr,bn.createRef=At,bn.forwardRef=va,bn.isValidElement=Yt,bn.lazy=ho,bn.memo=ya,bn.useCallback=qn,bn.useContext=su,bn.useDebugValue=Zr,bn.useEffect=Ti,bn.useImperativeHandle=Bi,bn.useLayoutEffect=Yr,bn.useMemo=Ss,bn.useReducer=ut,bn.useRef=yn,bn.useState=Lr,bn.version=n}();process.env.NODE_ENV==="production"?id.exports=$n:id.exports=bn;var Il=id.exports,Uv={sdkSemver:"1.13.1",techVersion:Il.version,sdkCode:"J"},tX=function(e){hk(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=Il.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new UG(this.imageRef.current,this.props.cldImg,this.props.plugins,Uv)},t.prototype.componentDidUpdate=function(){zp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Uv)},t.prototype.componentWillUnmount=function(){zp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=pk(n,["cldImg","plugins"]);if(g3())return Il.createElement("img",rd({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=PZ(this.props.plugins,this.props.cldImg,Uv);return Il.createElement("img",rd({},r,{src:i}))},t}(Il.Component),nX=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){hk(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=id.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new bZ(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(){zp(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){zp(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return nX.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=pk(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Il.createElement("video",rd({},r,{ref:this.attachRef}))},t})(id.exports.Component);function rX(e){return!(typeof e!="object"||e instanceof Array)}class iX{filterOutNonSupportedKeys(t,n){const r=Object.create({});return rX(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 NS=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class w3 extends iX{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,NS);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,NS);return new w3(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 od{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 oX extends Error{constructor(t="Unsupported"){super(t)}}function C3(e){return new oX(e)}function sX(){return this._qualifierModel||{error:C3(`unsupported qualifier ${this.constructor.name}`)}}class aX{constructor(){this._qualifierModel={}}toJson(){return sX.apply(this)}}class Km extends aX{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof od?this.qualifierValue=n:(this.qualifierValue=new od,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 Ga extends Km{constructor(t,n){let r;n?r=new od([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function uX(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function lX(){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:C3(`unsupported action ${this.constructor.name}`)}}class cX{constructor(){this._actionModel={}}toJson(){return lX.apply(this)}}class S3 extends cX{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(),uX(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 Ga(r)):this.qualifiers.set(n,new Km(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Ga(t)):t instanceof Ga&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function fX(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class dX extends S3{constructor(t){super(),this._actionModel={},this.addQualifier(new Km("b",new od(fX(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class jS{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:C3(`unsupported action ${this.constructor.name}`)}}}function hX(e){const t=e;return"error"in t&&!!t.error}function pX(){return new Ga("lossy")}function mX(){return new Ga("preserve_transparency")}function gX(e){return new Ga("progressive",e)}class vX extends od{constructor(t){super(t),this.val=t}getValue(){return this.val}}function ol(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const yX={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},bX={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},$X={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},xX={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},wX={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},CX={444:"CHROMA_444",420:"CHROMA_420"},SX={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};ol(CX);ol(SX);ol(yX);const EX=ol(bX);ol($X);ol(xX);ol(wX);class DX extends S3{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof vX?i=n.getValue():i=n,this._actionModel.actionType=EX[t],this._actionModel[r]=i,this.addQualifier(new Km(t,n))}}class AX extends Ga{constructor(t){super("progressive",t)}}class Wp extends DX{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(pX()),this}progressive(t){return t instanceof AX?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(gX(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(mX()),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 Um{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 jS(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Um?this.actions=this.actions.concat(t.actions):this.actions.push(new jS(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 Wp("q",t)),this}format(t){return this.addAction(new Wp("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 dX(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new S3;let r=t;return typeof t=="string"&&(r=new Ga(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(hX(r))return r;t.push(r)}return{actions:t}}}class TX extends Um{}class PX extends Um{}function _X(e){return e.match(/^https?:\//)}function RX(e){return e.indexOf("/")<0}function MX(e){return e.match(/^v[0-9]+/)}function FX(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 kX(e){return e||"image"}function OX(e){return e||"upload"}function IX(e,t,n){const r=n!==!1;return t?`v${t}`:MX(e)||_X(e)||RX(e)?"":r?"v1":""}function E3(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=LX(i,r/i.length)),i.slice(0,r)+String(e))}function LX(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const BX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hp={};let KS=0;BX.split("").forEach(e=>{let t=KS.toString(2);t=E3(t,6,"0"),Hp[t]=e,KS++});function VX(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function NX(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const n=+t;if(isNaN(n)||n<0)throw"Invalid version number provided";return E3(t,2,"0")}).join(".")}function US(e){let t="";const r=e.split(".").length*6,i=VX(e),o=NX(i);let u=parseInt(o.split(".").join("")).toString(2);if(u=E3(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(l=>{t+=Hp[l]}),t}function jX(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 KX="1.21.0";function UX(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 Hp[o]+Hp[s]}function zX(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function qX(e){const t={techVersion:zX(),sdkCode:"T",sdkSemver:KX.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 zS(e){const t=qX(e),n=jX(t);try{const r=WX(n.techVersion),i=US(n.sdkSemver),o=US(r),s=UX(n.osVersion),u=n.feature,l=n.sdkCode,{product:d,osType:h}=n;return`D${d}${l}${i}${o}${h}${s}${u}`}catch{return"E"}}function WX(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const qS={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class HX{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new w3(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=kX(this.assetType),n=OX(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=qS[`${t}/${n}`],s=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(s){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(qS).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=FX(this.cloudName,this.urlConfig),i=t?t.toString():"",o=IX(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 u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(s).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!s.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);l&&h.set("_a",zS(n)),d=h.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",l&&(d+=`${d.length>0?"&":""}_a=${zS(n)}`);return d?`${u}?${d}`:u}}}class Ak extends HX{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 Wp("q",t)),this}format(t){return this.addAction(new Wp("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 GX extends Ak{constructor(t,n,r){super(t,n,r,new TX)}}class YX extends Ak{constructor(t,n,r){super(t,n,r,new PX),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class ZX{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new GX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new YX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var zv,WS;function Tk(){if(WS)return zv;WS=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return zv=e,zv}var qv,HS;function XX(){if(HS)return qv;HS=1;function e(){this.__data__=[],this.size=0}return qv=e,qv}var Wv,GS;function D3(){if(GS)return Wv;GS=1;function e(t,n){return t===n||t!==t&&n!==n}return Wv=e,Wv}var Hv,YS;function zm(){if(YS)return Hv;YS=1;var e=D3();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Hv=t,Hv}var Gv,ZS;function JX(){if(ZS)return Gv;ZS=1;var e=zm(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,s=e(o,i);if(s<0)return!1;var u=o.length-1;return s==u?o.pop():n.call(o,s,1),--this.size,!0}return Gv=r,Gv}var Yv,XS;function QX(){if(XS)return Yv;XS=1;var e=zm();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Yv=t,Yv}var Zv,JS;function eJ(){if(JS)return Zv;JS=1;var e=zm();function t(n){return e(this.__data__,n)>-1}return Zv=t,Zv}var Xv,QS;function tJ(){if(QS)return Xv;QS=1;var e=zm();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return Xv=t,Xv}var Jv,eE;function qm(){if(eE)return Jv;eE=1;var e=XX(),t=JX(),n=QX(),r=eJ(),i=tJ();function o(s){var u=-1,l=s==null?0:s.length;for(this.clear();++u<l;){var d=s[u];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Jv=o,Jv}var Qv,tE;function nJ(){if(tE)return Qv;tE=1;var e=qm();function t(){this.__data__=new e,this.size=0}return Qv=t,Qv}var ey,nE;function rJ(){if(nE)return ey;nE=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ey=e,ey}var ty,rE;function iJ(){if(rE)return ty;rE=1;function e(t){return this.__data__.get(t)}return ty=e,ty}var ny,iE;function oJ(){if(iE)return ny;iE=1;function e(t){return this.__data__.has(t)}return ny=e,ny}var ry,oE;function Pk(){if(oE)return ry;oE=1;var e=typeof io=="object"&&io&&io.Object===Object&&io;return ry=e,ry}var iy,sE;function da(){if(sE)return iy;sE=1;var e=Pk(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return iy=n,iy}var oy,aE;function Wm(){if(aE)return oy;aE=1;var e=da(),t=e.Symbol;return oy=t,oy}var sy,uE;function sJ(){if(uE)return sy;uE=1;var e=Wm(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(s){var u=n.call(s,i),l=s[i];try{s[i]=void 0;var d=!0}catch{}var h=r.call(s);return d&&(u?s[i]=l:delete s[i]),h}return sy=o,sy}var ay,lE;function aJ(){if(lE)return ay;lE=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return ay=n,ay}var uy,cE;function Dc(){if(cE)return uy;cE=1;var e=Wm(),t=sJ(),n=aJ(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function s(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return uy=s,uy}var ly,fE;function Hm(){if(fE)return ly;fE=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ly=e,ly}var cy,dE;function _k(){if(dE)return cy;dE=1;var e=Dc(),t=Hm(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function s(u){if(!t(u))return!1;var l=e(u);return l==r||l==i||l==n||l==o}return cy=s,cy}var fy,hE;function uJ(){if(hE)return fy;hE=1;var e=da(),t=e["__core-js_shared__"];return fy=t,fy}var dy,pE;function lJ(){if(pE)return dy;pE=1;var e=uJ(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return dy=n,dy}var hy,mE;function Rk(){if(mE)return hy;mE=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return hy=n,hy}var py,gE;function cJ(){if(gE)return py;gE=1;var e=_k(),t=lJ(),n=Hm(),r=Rk(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,l=s.toString,d=u.hasOwnProperty,h=RegExp("^"+l.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var b=e(g)?h:o;return b.test(r(g))}return py=m,py}var my,vE;function fJ(){if(vE)return my;vE=1;function e(t,n){return t==null?void 0:t[n]}return my=e,my}var gy,yE;function Ac(){if(yE)return gy;yE=1;var e=cJ(),t=fJ();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return gy=n,gy}var vy,bE;function A3(){if(bE)return vy;bE=1;var e=Ac(),t=da(),n=e(t,"Map");return vy=n,vy}var yy,$E;function Gm(){if($E)return yy;$E=1;var e=Ac(),t=e(Object,"create");return yy=t,yy}var by,xE;function dJ(){if(xE)return by;xE=1;var e=Gm();function t(){this.__data__=e?e(null):{},this.size=0}return by=t,by}var $y,wE;function hJ(){if(wE)return $y;wE=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return $y=e,$y}var xy,CE;function pJ(){if(CE)return xy;CE=1;var e=Gm(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var s=this.__data__;if(e){var u=s[o];return u===t?void 0:u}return r.call(s,o)?s[o]:void 0}return xy=i,xy}var wy,SE;function mJ(){if(SE)return wy;SE=1;var e=Gm(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return wy=r,wy}var Cy,EE;function gJ(){if(EE)return Cy;EE=1;var e=Gm(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return Cy=n,Cy}var Sy,DE;function vJ(){if(DE)return Sy;DE=1;var e=dJ(),t=hJ(),n=pJ(),r=mJ(),i=gJ();function o(s){var u=-1,l=s==null?0:s.length;for(this.clear();++u<l;){var d=s[u];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Sy=o,Sy}var Ey,AE;function yJ(){if(AE)return Ey;AE=1;var e=vJ(),t=qm(),n=A3();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Ey=r,Ey}var Dy,TE;function bJ(){if(TE)return Dy;TE=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Dy=e,Dy}var Ay,PE;function Ym(){if(PE)return Ay;PE=1;var e=bJ();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Ay=t,Ay}var Ty,_E;function $J(){if(_E)return Ty;_E=1;var e=Ym();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Ty=t,Ty}var Py,RE;function xJ(){if(RE)return Py;RE=1;var e=Ym();function t(n){return e(this,n).get(n)}return Py=t,Py}var _y,ME;function wJ(){if(ME)return _y;ME=1;var e=Ym();function t(n){return e(this,n).has(n)}return _y=t,_y}var Ry,FE;function CJ(){if(FE)return Ry;FE=1;var e=Ym();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return Ry=t,Ry}var My,kE;function T3(){if(kE)return My;kE=1;var e=yJ(),t=$J(),n=xJ(),r=wJ(),i=CJ();function o(s){var u=-1,l=s==null?0:s.length;for(this.clear();++u<l;){var d=s[u];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,My=o,My}var Fy,OE;function SJ(){if(OE)return Fy;OE=1;var e=qm(),t=A3(),n=T3(),r=200;function i(o,s){var u=this.__data__;if(u instanceof e){var l=u.__data__;if(!t||l.length<r-1)return l.push([o,s]),this.size=++u.size,this;u=this.__data__=new n(l)}return u.set(o,s),this.size=u.size,this}return Fy=i,Fy}var ky,IE;function Mk(){if(IE)return ky;IE=1;var e=qm(),t=nJ(),n=rJ(),r=iJ(),i=oJ(),o=SJ();function s(u){var l=this.__data__=new e(u);this.size=l.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,ky=s,ky}var Oy,LE;function EJ(){if(LE)return Oy;LE=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Oy=t,Oy}var Iy,BE;function DJ(){if(BE)return Iy;BE=1;function e(t){return this.__data__.has(t)}return Iy=e,Iy}var Ly,VE;function AJ(){if(VE)return Ly;VE=1;var e=T3(),t=EJ(),n=DJ();function r(i){var o=-1,s=i==null?0:i.length;for(this.__data__=new e;++o<s;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Ly=r,Ly}var By,NE;function TJ(){if(NE)return By;NE=1;function e(t,n){return t.has(n)}return By=e,By}var Vy,jE;function Fk(){if(jE)return Vy;jE=1;var e=AJ(),t=Tk(),n=TJ(),r=1,i=2;function o(s,u,l,d,h,m){var g=l&r,b=s.length,x=u.length;if(b!=x&&!(g&&x>b))return!1;var C=m.get(s),A=m.get(u);if(C&&A)return C==u&&A==s;var S=-1,w=!0,D=l&i?new e:void 0;for(m.set(s,u),m.set(u,s);++S<b;){var k=s[S],R=u[S];if(d)var O=g?d(R,k,S,u,s,m):d(k,R,S,s,u,m);if(O!==void 0){if(O)continue;w=!1;break}if(D){if(!t(u,function(H,F){if(!n(D,F)&&(k===H||h(k,H,l,d,m)))return D.push(F)})){w=!1;break}}else if(!(k===R||h(k,R,l,d,m))){w=!1;break}}return m.delete(s),m.delete(u),w}return Vy=o,Vy}var Ny,KE;function PJ(){if(KE)return Ny;KE=1;var e=da(),t=e.Uint8Array;return Ny=t,Ny}var jy,UE;function _J(){if(UE)return jy;UE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return jy=e,jy}var Ky,zE;function RJ(){if(zE)return Ky;zE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Ky=e,Ky}var Uy,qE;function MJ(){if(qE)return Uy;qE=1;var e=Wm(),t=PJ(),n=D3(),r=Fk(),i=_J(),o=RJ(),s=1,u=2,l="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",x="[object Set]",C="[object String]",A="[object Symbol]",S="[object ArrayBuffer]",w="[object DataView]",D=e?e.prototype:void 0,k=D?D.valueOf:void 0;function R(O,H,F,ce,ae,q,De){switch(F){case w:if(O.byteLength!=H.byteLength||O.byteOffset!=H.byteOffset)return!1;O=O.buffer,H=H.buffer;case S:return!(O.byteLength!=H.byteLength||!q(new t(O),new t(H)));case l:case d:case g:return n(+O,+H);case h:return O.name==H.name&&O.message==H.message;case b:case C:return O==H+"";case m:var z=i;case x:var j=ce&s;if(z||(z=o),O.size!=H.size&&!j)return!1;var ne=De.get(O);if(ne)return ne==H;ce|=u,De.set(O,H);var K=r(z(O),z(H),ce,ae,q,De);return De.delete(O),K;case A:if(k)return k.call(O)==k.call(H)}return!1}return Uy=R,Uy}var zy,WE;function FJ(){if(WE)return zy;WE=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return zy=e,zy}var qy,HE;function ha(){if(HE)return qy;HE=1;var e=Array.isArray;return qy=e,qy}var Wy,GE;function kJ(){if(GE)return Wy;GE=1;var e=FJ(),t=ha();function n(r,i,o){var s=i(r);return t(r)?s:e(s,o(r))}return Wy=n,Wy}var Hy,YE;function OJ(){if(YE)return Hy;YE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,s=[];++r<i;){var u=t[r];n(u,r,t)&&(s[o++]=u)}return s}return Hy=e,Hy}var Gy,ZE;function IJ(){if(ZE)return Gy;ZE=1;function e(){return[]}return Gy=e,Gy}var Yy,XE;function LJ(){if(XE)return Yy;XE=1;var e=OJ(),t=IJ(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(u){return r.call(s,u)}))}:t;return Yy=o,Yy}var Zy,JE;function BJ(){if(JE)return Zy;JE=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Zy=e,Zy}var Xy,QE;function Tc(){if(QE)return Xy;QE=1;function e(t){return t!=null&&typeof t=="object"}return Xy=e,Xy}var Jy,eD;function VJ(){if(eD)return Jy;eD=1;var e=Dc(),t=Tc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Jy=r,Jy}var Qy,tD;function kk(){if(tD)return Qy;tD=1;var e=VJ(),t=Tc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(s){return t(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return Qy=o,Qy}var Af={exports:{}},e0,nD;function NJ(){if(nD)return e0;nD=1;function e(){return!1}return e0=e,e0}Af.exports;var rD;function Ok(){return rD||(rD=1,function(e,t){var n=da(),r=NJ(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,u=s?n.Buffer:void 0,l=u?u.isBuffer:void 0,d=l||r;e.exports=d}(Af,Af.exports)),Af.exports}var t0,iD;function P3(){if(iD)return t0;iD=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return t0=n,t0}var n0,oD;function _3(){if(oD)return n0;oD=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return n0=t,n0}var r0,sD;function jJ(){if(sD)return r0;sD=1;var e=Dc(),t=_3(),n=Tc(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",s="[object Date]",u="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",x="[object String]",C="[object WeakMap]",A="[object ArrayBuffer]",S="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",k="[object Int8Array]",R="[object Int16Array]",O="[object Int32Array]",H="[object Uint8Array]",F="[object Uint8ClampedArray]",ce="[object Uint16Array]",ae="[object Uint32Array]",q={};q[w]=q[D]=q[k]=q[R]=q[O]=q[H]=q[F]=q[ce]=q[ae]=!0,q[r]=q[i]=q[A]=q[o]=q[S]=q[s]=q[u]=q[l]=q[d]=q[h]=q[m]=q[g]=q[b]=q[x]=q[C]=!1;function De(z){return n(z)&&t(z.length)&&!!q[e(z)]}return r0=De,r0}var i0,aD;function KJ(){if(aD)return i0;aD=1;function e(t){return function(n){return t(n)}}return i0=e,i0}var Tf={exports:{}};Tf.exports;var uD;function UJ(){return uD||(uD=1,function(e,t){var n=Pk(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o&&n.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u}(Tf,Tf.exports)),Tf.exports}var o0,lD;function Ik(){if(lD)return o0;lD=1;var e=jJ(),t=KJ(),n=UJ(),r=n&&n.isTypedArray,i=r?t(r):e;return o0=i,o0}var s0,cD;function zJ(){if(cD)return s0;cD=1;var e=BJ(),t=kk(),n=ha(),r=Ok(),i=P3(),o=Ik(),s=Object.prototype,u=s.hasOwnProperty;function l(d,h){var m=n(d),g=!m&&t(d),b=!m&&!g&&r(d),x=!m&&!g&&!b&&o(d),C=m||g||b||x,A=C?e(d.length,String):[],S=A.length;for(var w in d)(h||u.call(d,w))&&!(C&&(w=="length"||b&&(w=="offset"||w=="parent")||x&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||i(w,S)))&&A.push(w);return A}return s0=l,s0}var a0,fD;function qJ(){if(fD)return a0;fD=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return a0=t,a0}var u0,dD;function WJ(){if(dD)return u0;dD=1;function e(t,n){return function(r){return t(n(r))}}return u0=e,u0}var l0,hD;function HJ(){if(hD)return l0;hD=1;var e=WJ(),t=e(Object.keys,Object);return l0=t,l0}var c0,pD;function GJ(){if(pD)return c0;pD=1;var e=qJ(),t=HJ(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var s=[];for(var u in Object(o))r.call(o,u)&&u!="constructor"&&s.push(u);return s}return c0=i,c0}var f0,mD;function R3(){if(mD)return f0;mD=1;var e=_k(),t=_3();function n(r){return r!=null&&t(r.length)&&!e(r)}return f0=n,f0}var d0,gD;function M3(){if(gD)return d0;gD=1;var e=zJ(),t=GJ(),n=R3();function r(i){return n(i)?e(i):t(i)}return d0=r,d0}var h0,vD;function YJ(){if(vD)return h0;vD=1;var e=kJ(),t=LJ(),n=M3();function r(i){return e(i,n,t)}return h0=r,h0}var p0,yD;function ZJ(){if(yD)return p0;yD=1;var e=YJ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,s,u,l,d,h){var m=u&t,g=e(o),b=g.length,x=e(s),C=x.length;if(b!=C&&!m)return!1;for(var A=b;A--;){var S=g[A];if(!(m?S in s:r.call(s,S)))return!1}var w=h.get(o),D=h.get(s);if(w&&D)return w==s&&D==o;var k=!0;h.set(o,s),h.set(s,o);for(var R=m;++A<b;){S=g[A];var O=o[S],H=s[S];if(l)var F=m?l(H,O,S,s,o,h):l(O,H,S,o,s,h);if(!(F===void 0?O===H||d(O,H,u,l,h):F)){k=!1;break}R||(R=S=="constructor")}if(k&&!R){var ce=o.constructor,ae=s.constructor;ce!=ae&&"constructor"in o&&"constructor"in s&&!(typeof ce=="function"&&ce instanceof ce&&typeof ae=="function"&&ae instanceof ae)&&(k=!1)}return h.delete(o),h.delete(s),k}return p0=i,p0}var m0,bD;function XJ(){if(bD)return m0;bD=1;var e=Ac(),t=da(),n=e(t,"DataView");return m0=n,m0}var g0,$D;function JJ(){if($D)return g0;$D=1;var e=Ac(),t=da(),n=e(t,"Promise");return g0=n,g0}var v0,xD;function QJ(){if(xD)return v0;xD=1;var e=Ac(),t=da(),n=e(t,"Set");return v0=n,v0}var y0,wD;function eQ(){if(wD)return y0;wD=1;var e=Ac(),t=da(),n=e(t,"WeakMap");return y0=n,y0}var b0,CD;function tQ(){if(CD)return b0;CD=1;var e=XJ(),t=A3(),n=JJ(),r=QJ(),i=eQ(),o=Dc(),s=Rk(),u="[object Map]",l="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=s(e),x=s(t),C=s(n),A=s(r),S=s(i),w=o;return(e&&w(new e(new ArrayBuffer(1)))!=g||t&&w(new t)!=u||n&&w(n.resolve())!=d||r&&w(new r)!=h||i&&w(new i)!=m)&&(w=function(D){var k=o(D),R=k==l?D.constructor:void 0,O=R?s(R):"";if(O)switch(O){case b:return g;case x:return u;case C:return d;case A:return h;case S:return m}return k}),b0=w,b0}var $0,SD;function nQ(){if(SD)return $0;SD=1;var e=Mk(),t=Fk(),n=MJ(),r=ZJ(),i=tQ(),o=ha(),s=Ok(),u=Ik(),l=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function x(C,A,S,w,D,k){var R=o(C),O=o(A),H=R?h:i(C),F=O?h:i(A);H=H==d?m:H,F=F==d?m:F;var ce=H==m,ae=F==m,q=H==F;if(q&&s(C)){if(!s(A))return!1;R=!0,ce=!1}if(q&&!ce)return k||(k=new e),R||u(C)?t(C,A,S,w,D,k):n(C,A,H,S,w,D,k);if(!(S&l)){var De=ce&&b.call(C,"__wrapped__"),z=ae&&b.call(A,"__wrapped__");if(De||z){var j=De?C.value():C,ne=z?A.value():A;return k||(k=new e),D(j,ne,S,w,k)}}return q?(k||(k=new e),r(C,A,S,w,D,k)):!1}return $0=x,$0}var x0,ED;function Lk(){if(ED)return x0;ED=1;var e=nQ(),t=Tc();function n(r,i,o,s,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,s,n,u)}return x0=n,x0}var w0,DD;function rQ(){if(DD)return w0;DD=1;var e=Mk(),t=Lk(),n=1,r=2;function i(o,s,u,l){var d=u.length,h=d,m=!l;if(o==null)return!h;for(o=Object(o);d--;){var g=u[d];if(m&&g[2]?g[1]!==o[g[0]]:!(g[0]in o))return!1}for(;++d<h;){g=u[d];var b=g[0],x=o[b],C=g[1];if(m&&g[2]){if(x===void 0&&!(b in o))return!1}else{var A=new e;if(l)var S=l(x,C,b,o,s,A);if(!(S===void 0?t(C,x,n|r,l,A):S))return!1}}return!0}return w0=i,w0}var C0,AD;function Bk(){if(AD)return C0;AD=1;var e=Hm();function t(n){return n===n&&!e(n)}return C0=t,C0}var S0,TD;function iQ(){if(TD)return S0;TD=1;var e=Bk(),t=M3();function n(r){for(var i=t(r),o=i.length;o--;){var s=i[o],u=r[s];i[o]=[s,u,e(u)]}return i}return S0=n,S0}var E0,PD;function Vk(){if(PD)return E0;PD=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return E0=e,E0}var D0,_D;function oQ(){if(_D)return D0;_D=1;var e=rQ(),t=iQ(),n=Vk();function r(i){var o=t(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(s){return s===i||e(s,i,o)}}return D0=r,D0}var A0,RD;function F3(){if(RD)return A0;RD=1;var e=Dc(),t=Tc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return A0=r,A0}var T0,MD;function k3(){if(MD)return T0;MD=1;var e=ha(),t=F3(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,s){if(e(o))return!1;var u=typeof o;return u=="number"||u=="symbol"||u=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||s!=null&&o in Object(s)}return T0=i,T0}var P0,FD;function sQ(){if(FD)return P0;FD=1;var e=T3(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var s=arguments,u=i?i.apply(this,s):s[0],l=o.cache;if(l.has(u))return l.get(u);var d=r.apply(this,s);return o.cache=l.set(u,d)||l,d};return o.cache=new(n.Cache||e),o}return n.Cache=e,P0=n,P0}var _0,kD;function aQ(){if(kD)return _0;kD=1;var e=sQ(),t=500;function n(r){var i=e(r,function(s){return o.size===t&&o.clear(),s}),o=i.cache;return i}return _0=n,_0}var R0,OD;function uQ(){if(OD)return R0;OD=1;var e=aQ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(s,u,l,d){o.push(l?d.replace(n,"$1"):u||s)}),o});return R0=r,R0}var M0,ID;function lQ(){if(ID)return M0;ID=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r<i;)o[r]=n(t[r],r,t);return o}return M0=e,M0}var F0,LD;function cQ(){if(LD)return F0;LD=1;var e=Wm(),t=lQ(),n=ha(),r=F3(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function s(u){if(typeof u=="string")return u;if(n(u))return t(u,s)+"";if(r(u))return o?o.call(u):"";var l=u+"";return l=="0"&&1/u==-1/0?"-0":l}return F0=s,F0}var k0,BD;function fQ(){if(BD)return k0;BD=1;var e=cQ();function t(n){return n==null?"":e(n)}return k0=t,k0}var O0,VD;function Nk(){if(VD)return O0;VD=1;var e=ha(),t=k3(),n=uQ(),r=fQ();function i(o,s){return e(o)?o:t(o,s)?[o]:n(r(o))}return O0=i,O0}var I0,ND;function Zm(){if(ND)return I0;ND=1;var e=F3();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return I0=t,I0}var L0,jD;function jk(){if(jD)return L0;jD=1;var e=Nk(),t=Zm();function n(r,i){i=e(i,r);for(var o=0,s=i.length;r!=null&&o<s;)r=r[t(i[o++])];return o&&o==s?r:void 0}return L0=n,L0}var B0,KD;function dQ(){if(KD)return B0;KD=1;var e=jk();function t(n,r,i){var o=n==null?void 0:e(n,r);return o===void 0?i:o}return B0=t,B0}var V0,UD;function hQ(){if(UD)return V0;UD=1;function e(t,n){return t!=null&&n in Object(t)}return V0=e,V0}var N0,zD;function pQ(){if(zD)return N0;zD=1;var e=Nk(),t=kk(),n=ha(),r=P3(),i=_3(),o=Zm();function s(u,l,d){l=e(l,u);for(var h=-1,m=l.length,g=!1;++h<m;){var b=o(l[h]);if(!(g=u!=null&&d(u,b)))break;u=u[b]}return g||++h!=m?g:(m=u==null?0:u.length,!!m&&i(m)&&r(b,m)&&(n(u)||t(u)))}return N0=s,N0}var j0,qD;function mQ(){if(qD)return j0;qD=1;var e=hQ(),t=pQ();function n(r,i){return r!=null&&t(r,i,e)}return j0=n,j0}var K0,WD;function gQ(){if(WD)return K0;WD=1;var e=Lk(),t=dQ(),n=mQ(),r=k3(),i=Bk(),o=Vk(),s=Zm(),u=1,l=2;function d(h,m){return r(h)&&i(m)?o(s(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,u|l)}}return K0=d,K0}var U0,HD;function vQ(){if(HD)return U0;HD=1;function e(t){return t}return U0=e,U0}var z0,GD;function yQ(){if(GD)return z0;GD=1;function e(t){return function(n){return n==null?void 0:n[t]}}return z0=e,z0}var q0,YD;function bQ(){if(YD)return q0;YD=1;var e=jk();function t(n){return function(r){return e(r,n)}}return q0=t,q0}var W0,ZD;function $Q(){if(ZD)return W0;ZD=1;var e=yQ(),t=bQ(),n=k3(),r=Zm();function i(o){return n(o)?e(r(o)):t(o)}return W0=i,W0}var H0,XD;function xQ(){if(XD)return H0;XD=1;var e=oQ(),t=gQ(),n=vQ(),r=ha(),i=$Q();function o(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return H0=o,H0}var G0,JD;function wQ(){if(JD)return G0;JD=1;function e(t){return function(n,r,i){for(var o=-1,s=Object(n),u=i(n),l=u.length;l--;){var d=u[t?l:++o];if(r(s[d],d,s)===!1)break}return n}}return G0=e,G0}var Y0,QD;function CQ(){if(QD)return Y0;QD=1;var e=wQ(),t=e();return Y0=t,Y0}var Z0,eA;function SQ(){if(eA)return Z0;eA=1;var e=CQ(),t=M3();function n(r,i){return r&&e(r,i,t)}return Z0=n,Z0}var X0,tA;function EQ(){if(tA)return X0;tA=1;var e=R3();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var s=i.length,u=r?s:-1,l=Object(i);(r?u--:++u<s)&&o(l[u],u,l)!==!1;);return i}}return X0=t,X0}var J0,nA;function DQ(){if(nA)return J0;nA=1;var e=SQ(),t=EQ(),n=t(e);return J0=n,J0}var Q0,rA;function AQ(){if(rA)return Q0;rA=1;var e=DQ();function t(n,r){var i;return e(n,function(o,s,u){return i=r(o,s,u),!i}),!!i}return Q0=t,Q0}var e1,iA;function TQ(){if(iA)return e1;iA=1;var e=D3(),t=R3(),n=P3(),r=Hm();function i(o,s,u){if(!r(u))return!1;var l=typeof s;return(l=="number"?t(u)&&n(s,u.length):l=="string"&&s in u)?e(u[s],o):!1}return e1=i,e1}var t1,oA;function PQ(){if(oA)return t1;oA=1;var e=Tk(),t=xQ(),n=AQ(),r=ha(),i=TQ();function o(s,u,l){var d=r(s)?e:n;return l&&i(s,u,l)&&(u=void 0),d(s,t(u,3))}return t1=o,t1}var _Q=PQ();const RQ=Lo(_Q);var n1={exports:{}},sA;function MQ(){return sA||(sA=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
137
- * Prism: Lightweight, robust, elegant syntax highlighting
138
- *
139
- * @license MIT <https://opensource.org/licenses/MIT>
140
- * @author Lea Verou <https://lea.verou.me>
141
- * @namespace
142
- * @public
143
- */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,s={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function w(D){return D instanceof l?new l(D.type,w(D.content),D.alias):Array.isArray(D)?D.map(w):D.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++o}),w.__id},clone:function w(D,k){k=k||{};var R,O;switch(u.util.type(D)){case"Object":if(O=u.util.objId(D),k[O])return k[O];R={},k[O]=R;for(var H in D)D.hasOwnProperty(H)&&(R[H]=w(D[H],k));return R;case"Array":return O=u.util.objId(D),k[O]?k[O]:(R=[],k[O]=R,D.forEach(function(F,ce){R[ce]=w(F,k)}),R);default:return D}},getLanguage:function(w){for(;w;){var D=i.exec(w.className);if(D)return D[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,D){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+D)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(R){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(R.stack)||[])[1];if(w){var D=document.getElementsByTagName("script");for(var k in D)if(D[k].src==w)return D[k]}return null}},isActive:function(w,D,k){for(var R="no-"+D;w;){var O=w.classList;if(O.contains(D))return!0;if(O.contains(R))return!1;w=w.parentElement}return!!k}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(w,D){var k=u.util.clone(u.languages[w]);for(var R in D)k[R]=D[R];return k},insertBefore:function(w,D,k,R){R=R||u.languages;var O=R[w],H={};for(var F in O)if(O.hasOwnProperty(F)){if(F==D)for(var ce in k)k.hasOwnProperty(ce)&&(H[ce]=k[ce]);k.hasOwnProperty(F)||(H[F]=O[F])}var ae=R[w];return R[w]=H,u.languages.DFS(u.languages,function(q,De){De===ae&&q!=w&&(this[q]=H)}),H},DFS:function w(D,k,R,O){O=O||{};var H=u.util.objId;for(var F in D)if(D.hasOwnProperty(F)){k.call(D,F,D[F],R||F);var ce=D[F],ae=u.util.type(ce);ae==="Object"&&!O[H(ce)]?(O[H(ce)]=!0,w(ce,k,null,O)):ae==="Array"&&!O[H(ce)]&&(O[H(ce)]=!0,w(ce,k,F,O))}}},plugins:{},highlightAll:function(w,D){u.highlightAllUnder(document,w,D)},highlightAllUnder:function(w,D,k){var R={callback:k,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",R),R.elements=Array.prototype.slice.apply(R.container.querySelectorAll(R.selector)),u.hooks.run("before-all-elements-highlight",R);for(var O=0,H;H=R.elements[O++];)u.highlightElement(H,D===!0,R.callback)},highlightElement:function(w,D,k){var R=u.util.getLanguage(w),O=u.languages[R];u.util.setLanguage(w,R);var H=w.parentElement;H&&H.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(H,R);var F=w.textContent,ce={element:w,language:R,grammar:O,code:F};function ae(De){ce.highlightedCode=De,u.hooks.run("before-insert",ce),ce.element.innerHTML=ce.highlightedCode,u.hooks.run("after-highlight",ce),u.hooks.run("complete",ce),k&&k.call(ce.element)}if(u.hooks.run("before-sanity-check",ce),H=ce.element.parentElement,H&&H.nodeName.toLowerCase()==="pre"&&!H.hasAttribute("tabindex")&&H.setAttribute("tabindex","0"),!ce.code){u.hooks.run("complete",ce),k&&k.call(ce.element);return}if(u.hooks.run("before-highlight",ce),!ce.grammar){ae(u.util.encode(ce.code));return}if(D&&r.Worker){var q=new Worker(u.filename);q.onmessage=function(De){ae(De.data)},q.postMessage(JSON.stringify({language:ce.language,code:ce.code,immediateClose:!0}))}else ae(u.highlight(ce.code,ce.grammar,ce.language))},highlight:function(w,D,k){var R={code:w,grammar:D,language:k};if(u.hooks.run("before-tokenize",R),!R.grammar)throw new Error('The language "'+R.language+'" has no grammar.');return R.tokens=u.tokenize(R.code,R.grammar),u.hooks.run("after-tokenize",R),l.stringify(u.util.encode(R.tokens),R.language)},tokenize:function(w,D){var k=D.rest;if(k){for(var R in k)D[R]=k[R];delete D.rest}var O=new m;return g(O,O.head,w),h(w,O,D,O.head,0),x(O)},hooks:{all:{},add:function(w,D){var k=u.hooks.all;k[w]=k[w]||[],k[w].push(D)},run:function(w,D){var k=u.hooks.all[w];if(!(!k||!k.length))for(var R=0,O;O=k[R++];)O(D)}},Token:l};r.Prism=u;function l(w,D,k,R){this.type=w,this.content=D,this.alias=k,this.length=(R||"").length|0}l.stringify=function w(D,k){if(typeof D=="string")return D;if(Array.isArray(D)){var R="";return D.forEach(function(ae){R+=w(ae,k)}),R}var O={type:D.type,content:w(D.content,k),tag:"span",classes:["token",D.type],attributes:{},language:k},H=D.alias;H&&(Array.isArray(H)?Array.prototype.push.apply(O.classes,H):O.classes.push(H)),u.hooks.run("wrap",O);var F="";for(var ce in O.attributes)F+=" "+ce+'="'+(O.attributes[ce]||"").replace(/"/g,"&quot;")+'"';return"<"+O.tag+' class="'+O.classes.join(" ")+'"'+F+">"+O.content+"</"+O.tag+">"};function d(w,D,k,R){w.lastIndex=D;var O=w.exec(k);if(O&&R&&O[1]){var H=O[1].length;O.index+=H,O[0]=O[0].slice(H)}return O}function h(w,D,k,R,O,H){for(var F in k)if(!(!k.hasOwnProperty(F)||!k[F])){var ce=k[F];ce=Array.isArray(ce)?ce:[ce];for(var ae=0;ae<ce.length;++ae){if(H&&H.cause==F+","+ae)return;var q=ce[ae],De=q.inside,z=!!q.lookbehind,j=!!q.greedy,ne=q.alias;if(j&&!q.pattern.global){var K=q.pattern.toString().match(/[imsuy]*$/)[0];q.pattern=RegExp(q.pattern.source,K+"g")}for(var N=q.pattern||q,I=R.next,de=O;I!==D.tail&&!(H&&de>=H.reach);de+=I.value.length,I=I.next){var se=I.value;if(D.length>w.length)return;if(!(se instanceof l)){var ie=1,Ae;if(j){if(Ae=d(N,de,w,z),!Ae||Ae.index>=w.length)break;var Je=Ae.index,Pe=Ae.index+Ae[0].length,Ie=de;for(Ie+=I.value.length;Je>=Ie;)I=I.next,Ie+=I.value.length;if(Ie-=I.value.length,de=Ie,I.value instanceof l)continue;for(var Le=I;Le!==D.tail&&(Ie<Pe||typeof Le.value=="string");Le=Le.next)ie++,Ie+=Le.value.length;ie--,se=w.slice(de,Ie),Ae.index-=de}else if(Ae=d(N,0,se,z),!Ae)continue;var Je=Ae.index,Qe=Ae[0],ye=se.slice(0,Je),Ne=se.slice(Je+Qe.length),He=de+se.length;H&&He>H.reach&&(H.reach=He);var Ke=I.prev;ye&&(Ke=g(D,Ke,ye),de+=ye.length),b(D,Ke,ie);var Be=new l(F,De?u.tokenize(Qe,De):Qe,ne,Qe);if(I=g(D,Ke,Be),Ne&&g(D,I,Ne),ie>1){var st={cause:F+","+ae,reach:He};h(w,D,k,I.prev,de,st),H&&st.reach>H.reach&&(H.reach=st.reach)}}}}}}function m(){var w={value:null,prev:null,next:null},D={value:null,prev:w,next:null};w.next=D,this.head=w,this.tail=D,this.length=0}function g(w,D,k){var R=D.next,O={value:k,prev:D,next:R};return D.next=O,R.prev=O,w.length++,O}function b(w,D,k){for(var R=D.next,O=0;O<k&&R!==w.tail;O++)R=R.next;D.next=R,R.prev=D,w.length-=O}function x(w){for(var D=[],k=w.head.next;k!==w.tail;)D.push(k.value),k=k.next;return D}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(w){var D=JSON.parse(w.data),k=D.language,R=D.code,O=D.immediateClose;r.postMessage(u.highlight(R,u.languages[k],k)),O&&r.close()},!1)),u;var C=u.util.currentScript();C&&(u.filename=C.src,C.hasAttribute("data-manual")&&(u.manual=!0));function A(){u.manual||u.highlightAll()}if(!u.manual){var S=document.readyState;S==="loading"||S==="interactive"&&C&&C.defer?document.addEventListener("DOMContentLoaded",A):window.requestAnimationFrame?window.requestAnimationFrame(A):window.setTimeout(A,16)}return u}(t);e.exports&&(e.exports=n),typeof io<"u"&&(io.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var s={};s["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};u["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(C,A){return"✖ Error "+C+" while fetching file: "+A},o="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",l="loading",d="loaded",h="failed",m="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+l+'"])';function g(C,A,S){var w=new XMLHttpRequest;w.open("GET",C,!0),w.onreadystatechange=function(){w.readyState==4&&(w.status<400&&w.responseText?A(w.responseText):w.status>=400?S(i(w.status,w.statusText)):S(o))},w.send(null)}function b(C){var A=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(C||"");if(A){var S=Number(A[1]),w=A[2],D=A[3];return w?D?[S,Number(D)]:[S,void 0]:[S,S]}}n.hooks.add("before-highlightall",function(C){C.selector+=", "+m}),n.hooks.add("before-sanity-check",function(C){var A=C.element;if(A.matches(m)){C.code="",A.setAttribute(u,l);var S=A.appendChild(document.createElement("CODE"));S.textContent=r;var w=A.getAttribute("data-src"),D=C.language;if(D==="none"){var k=(/\.(\w+)$/.exec(w)||[,"none"])[1];D=s[k]||k}n.util.setLanguage(S,D),n.util.setLanguage(A,D);var R=n.plugins.autoloader;R&&R.loadLanguages(D),g(w,function(O){A.setAttribute(u,d);var H=b(A.getAttribute("data-range"));if(H){var F=O.split(/\r\n?|\n/g),ce=H[0],ae=H[1]==null?F.length:H[1];ce<0&&(ce+=F.length),ce=Math.max(0,Math.min(ce-1,F.length)),ae<0&&(ae+=F.length),ae=Math.max(0,Math.min(ae,F.length)),O=F.slice(ce,ae).join(`
144
- `),A.hasAttribute("data-start")||A.setAttribute("data-start",String(ce+1))}S.textContent=O,n.highlightElement(S)},function(O){A.setAttribute(u,h),S.textContent=O})}}),n.plugins.fileHighlight={highlight:function(A){for(var S=(A||document).querySelectorAll(m),w=0,D;D=S[w++];)n.highlightElement(D)}};var x=!1;n.fileHighlight=function(){x||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),x=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(n1)),n1.exports}var FQ=MQ();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function o(g){g()}var s=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function u(g,b){var x=getComputedStyle(g),C=getComputedStyle(b);function A(S){return+S.substr(0,S.length-2)}return b.offsetTop+A(C.borderTopWidth)+A(C.paddingTop)-A(x.paddingTop)}function l(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(b,x,C){x=typeof x=="string"?x:b.getAttribute("data-line")||"";var A=x.replace(/\s+/g,"").split(",").filter(Boolean),S=+b.getAttribute("data-line-offset")||0,w=s()?parseInt:parseFloat,D=w(getComputedStyle(b).lineHeight),k=Prism.util.isActive(b,e),R=b.querySelector("code"),O=k?b:R||b,H=[],F=R.textContent.match(n),ce=F?F.length+1:1,ae=!R||O==R?0:u(b,R);A.forEach(function(z){var j=z.split("-"),ne=+j[0],K=+j[1]||ne;if(K=Math.min(ce+S,K),!(K<ne)){var N=b.querySelector('.line-highlight[data-range="'+z+'"]')||document.createElement("div");if(H.push(function(){N.setAttribute("aria-hidden","true"),N.setAttribute("data-range",z),N.className=(C||"")+" line-highlight"}),k&&Prism.plugins.lineNumbers){var I=Prism.plugins.lineNumbers.getLine(b,ne),de=Prism.plugins.lineNumbers.getLine(b,K);if(I){var se=I.offsetTop+ae+"px";H.push(function(){N.style.top=se})}if(de){var ie=de.offsetTop-I.offsetTop+de.offsetHeight+"px";H.push(function(){N.style.height=ie})}}else H.push(function(){N.setAttribute("data-start",String(ne)),K>ne&&N.setAttribute("data-end",String(K)),N.style.top=(ne-S-1)*D+ae+"px",N.textContent=new Array(K-ne+2).join(`
145
- `)});H.push(function(){N.style.width=b.scrollWidth+"px"}),H.push(function(){O.appendChild(N)})}});var q=b.id;if(k&&Prism.util.isActive(b,t)&&q){i(b,t)||H.push(function(){b.classList.add(t)});var De=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(z,j){var ne=j+De;z.onclick=function(){var K=q+"."+ne;d=!1,location.hash=K,setTimeout(function(){d=!0},1)}})}return function(){H.forEach(o)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(S){S.parentNode.removeChild(S)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var x=g.slice(0,g.lastIndexOf(".")),C=document.getElementById(x);if(C){C.hasAttribute("data-line")||C.setAttribute("data-line","");var A=Prism.plugins.lineHighlight.highlightLines(C,b,"temporary ");A(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var x=0;r(".line-highlight",b).forEach(function(C){x+=C.textContent.length,C.parentNode.removeChild(C)}),x&&/^(?: \n)+$/.test(g.code.slice(-x))&&(g.code=g.code.slice(0,-x))}}),Prism.hooks.add("complete",function g(b){var x=b.element.parentElement;if(l(x)){clearTimeout(m);var C=Prism.plugins.lineNumbers,A=b.plugins&&b.plugins.lineNumbers;if(i(x,e)&&C&&!A)Prism.hooks.add("line-numbers",g);else{var S=Prism.plugins.lineHighlight.highlightLines(x);S(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(o)})})();const Kk=_.createContext({});function kd(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const O3=_.createContext(null),I3=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function kQ(e=!0){const t=_.useContext(O3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{e&&i(o)},[e]);const s=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const L3=typeof window<"u",Uk=L3?_.useLayoutEffect:_.useEffect,wi=e=>e;let Pc=wi,$s=wi;process.env.NODE_ENV!=="production"&&(Pc=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},$s=(e,t)=>{if(!e)throw new Error(t)});function B3(e){let t;return()=>(t===void 0&&(t=e()),t)}const cc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},vs=e=>e*1e3,ra=e=>e/1e3,OQ={useManualTiming:!1},jh=["read","resolveKeyframes","update","preRender","render","postRender"];function IQ(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(h){s.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const x=g&&i?n:r;return m&&s.add(h),x.has(h)||x.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(u=h,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,d.process(h))}};return d}const LQ=40;function zk(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=jh.reduce((S,w)=>(S[w]=IQ(o),S),{}),{read:u,resolveKeyframes:l,update:d,preRender:h,render:m,postRender:g}=s,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,LQ),1),i.timestamp=S,i.isProcessing=!0,u.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},x=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:jh.reduce((S,w)=>{const D=s[w];return S[w]=(k,R=!1,O=!1)=>(n||x(),D.schedule(k,R,O)),S},{}),cancel:S=>{for(let w=0;w<jh.length;w++)s[jh[w]].cancel(S)},state:i,steps:s}}const{schedule:Dn,cancel:aa,state:kr,steps:r1}=zk(typeof requestAnimationFrame<"u"?requestAnimationFrame:wi,!0),qk=_.createContext({strict:!1}),aA={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"]},fc={};for(const e in aA)fc[e]={isEnabled:t=>aA[e].some(n=>!!t[n])};function BQ(e){for(const t in e)fc[t]={...fc[t],...e[t]}}const VQ=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 Gp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||VQ.has(e)}let Wk=e=>!Gp(e);function NQ(e){e&&(Wk=t=>t.startsWith("on")?!Gp(t):e(t))}try{NQ(require("@emotion/is-prop-valid").default)}catch{}function jQ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Wk(i)||n===!0&&Gp(i)||!t&&!Gp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const uA=new Set;function Xm(e,t,n){e||uA.has(t)||(console.warn(t),uA.add(t))}function KQ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Xm(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Jm=_.createContext({});function Qm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function sd(e){return typeof e=="string"||Array.isArray(e)}const V3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],N3=["initial",...V3];function eg(e){return Qm(e.animate)||N3.some(t=>sd(e[t]))}function Hk(e){return!!(eg(e)||e.variants)}function UQ(e,t){if(eg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sd(n)?n:void 0,animate:sd(r)?r:void 0}}return e.inherit!==!1?t:{}}function zQ(e){const{initial:t,animate:n}=UQ(e,_.useContext(Jm));return _.useMemo(()=>({initial:t,animate:n}),[lA(t),lA(n)])}function lA(e){return Array.isArray(e)?e.join(" "):e}const qQ=Symbol.for("motionComponentSymbol");function Ll(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function WQ(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ll(n)&&(n.current=r))},[t])}const j3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),HQ="framerAppearId",Gk="data-"+j3(HQ),{schedule:K3}=zk(queueMicrotask,!1),Yk=_.createContext({});function GQ(e,t,n,r,i){var o,s;const{visualElement:u}=_.useContext(Jm),l=_.useContext(qk),d=_.useContext(O3),h=_.useContext(I3).reducedMotion,m=_.useRef(null);r=r||l.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,b=_.useContext(Yk);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&YQ(m.current,n,i,b);const x=_.useRef(!1);_.useInsertionEffect(()=>{g&&x.current&&g.update(n,d)});const C=n[Gk],A=_.useRef(!!C&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,C))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,C)));return Uk(()=>{g&&(x.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),K3.render(g.render),A.current&&g.animationState&&g.animationState.animateChanges())}),_.useEffect(()=>{g&&(!A.current&&g.animationState&&g.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,C)}),A.current=!1))}),g}function YQ(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:u,layoutScroll:l,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Zk(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||u&&Ll(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:d})}function Zk(e){if(e)return e.options.allowProjection!==!1?e.projection:Zk(e.parent)}function ZQ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;e&&BQ(e);function u(d,h){let m;const g={..._.useContext(I3),...d,layoutId:XQ(d)},{isStatic:b}=g,x=zQ(d),C=r(d,b);if(!b&&L3){JQ(g,e);const A=QQ(g);m=A.MeasureLayout,x.visualElement=GQ(i,C,g,t,A.ProjectionNode)}return oa.jsxs(Jm.Provider,{value:x,children:[m&&x.visualElement?oa.jsx(m,{visualElement:x.visualElement,...g}):null,n(i,d,WQ(C,x.visualElement,h),C,b,x.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const l=_.forwardRef(u);return l[qQ]=i,l}function XQ({layoutId:e}){const t=_.useContext(Kk).id;return t&&e!==void 0?t+"-"+e:e}function JQ(e,t){const n=_.useContext(qk).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?Pc(!1,r):$s(!1,r)}}function QQ(e){const{drag:t,layout:n}=fc;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 Xk=e=>t=>typeof t=="string"&&t.startsWith(e),U3=Xk("--"),eee=Xk("var(--"),z3=e=>eee(e)?tee.test(e.split("/*")[0].trim()):!1,tee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ad={};function nee(e){for(const t in e)ad[t]=e[t],U3(t)&&(ad[t].isCSSVariable=!0)}const _c=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],sl=new Set(_c);function Jk(e,{layout:t,layoutId:n}){return sl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ad[e]||e==="opacity")}const Or=e=>!!(e&&e.getVelocity),Qk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ua=(e,t,n)=>n>t?t:n<e?e:n,Rc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ud={...Rc,transform:e=>ua(0,1,e)},Kh={...Rc,default:1},Od=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),La=Od("deg"),ys=Od("%"),Ft=Od("px"),ree=Od("vh"),iee=Od("vw"),cA={...ys,parse:e=>ys.parse(e)/100,transform:e=>ys.transform(e*100)},oee={borderWidth:Ft,borderTopWidth:Ft,borderRightWidth:Ft,borderBottomWidth:Ft,borderLeftWidth:Ft,borderRadius:Ft,radius:Ft,borderTopLeftRadius:Ft,borderTopRightRadius:Ft,borderBottomRightRadius:Ft,borderBottomLeftRadius:Ft,width:Ft,maxWidth:Ft,height:Ft,maxHeight:Ft,top:Ft,right:Ft,bottom:Ft,left:Ft,padding:Ft,paddingTop:Ft,paddingRight:Ft,paddingBottom:Ft,paddingLeft:Ft,margin:Ft,marginTop:Ft,marginRight:Ft,marginBottom:Ft,marginLeft:Ft,backgroundPositionX:Ft,backgroundPositionY:Ft},see={rotate:La,rotateX:La,rotateY:La,rotateZ:La,scale:Kh,scaleX:Kh,scaleY:Kh,scaleZ:Kh,skew:La,skewX:La,skewY:La,distance:Ft,translateX:Ft,translateY:Ft,translateZ:Ft,x:Ft,y:Ft,z:Ft,perspective:Ft,transformPerspective:Ft,opacity:ud,originX:cA,originY:cA,originZ:Ft},fA={...Rc,transform:Math.round},q3={...oee,...see,zIndex:fA,size:Ft,fillOpacity:ud,strokeOpacity:ud,numOctaves:fA},aee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},uee=_c.length;function lee(e,t,n){let r="",i=!0;for(let o=0;o<uee;o++){const s=_c[o],u=e[s];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(s.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const d=Qk(u,q3[s]);if(!l){i=!1;const h=aee[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function W3(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,u=!1;for(const l in t){const d=t[l];if(sl.has(l)){s=!0;continue}else if(U3(l)){i[l]=d;continue}else{const h=Qk(d,q3[l]);l.startsWith("origin")?(u=!0,o[l]=h):r[l]=h}}if(t.transform||(s||n?r.transform=lee(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${l} ${d} ${h}`}}const H3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function e7(e,t,n){for(const r in t)!Or(t[r])&&!Jk(r,n)&&(e[r]=t[r])}function cee({transformTemplate:e},t){return _.useMemo(()=>{const n=H3();return W3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function fee(e,t){const n=e.style||{},r={};return e7(r,n,e),Object.assign(r,cee(e,t)),r}function dee(e,t){const n={},r=fee(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 hee=["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 G3(e){return typeof e!="string"||e.includes("-")?!1:!!(hee.indexOf(e)>-1||/[A-Z]/u.test(e))}const pee={offset:"stroke-dashoffset",array:"stroke-dasharray"},mee={offset:"strokeDashoffset",array:"strokeDasharray"};function gee(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?pee:mee;e[o.offset]=Ft.transform(-r);const s=Ft.transform(t),u=Ft.transform(n);e[o.array]=`${s} ${u}`}function dA(e,t,n){return typeof e=="string"?e:Ft.transform(t+n*e)}function vee(e,t,n){const r=dA(t,e.x,e.width),i=dA(n,e.y,e.height);return`${r} ${i}`}function Y3(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:l=0,...d},h,m){if(W3(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:x}=e;g.transform&&(x&&(b.transform=g.transform),delete g.transform),x&&(i!==void 0||o!==void 0||b.transform)&&(b.transformOrigin=vee(x,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),s!==void 0&&gee(g,s,u,l,!1)}const t7=()=>({...H3(),attrs:{}}),Z3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yee(e,t,n,r){const i=_.useMemo(()=>{const o=t7();return Y3(o,t,Z3(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};e7(o,e.style,e),i.style={...o,...i.style}}return i}function bee(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(G3(n)?yee:dee)(r,o,s,n),d=jQ(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=_.useMemo(()=>Or(m)?m.get():m,[m]);return _.createElement(n,{...h,children:g})}}function hA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function X3(e,t,n,r){if(typeof t=="function"){const[i,o]=hA(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]=hA(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Ib=e=>Array.isArray(e),$ee=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),xee=e=>Ib(e)?e[e.length-1]||0:e;function fp(e){const t=Or(e)?e.get():e;return $ee(t)?t.toValue():t}function wee({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:Cee(r,i,o,e),renderState:t()};return n&&(s.onMount=u=>n({props:r,current:u,...s}),s.onUpdate=u=>n(u)),s}const n7=e=>(t,n)=>{const r=_.useContext(Jm),i=_.useContext(O3),o=()=>wee(e,t,r,i);return n?o():kd(o)};function Cee(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=fp(o[g]);let{initial:s,animate:u}=e;const l=eg(e),d=Hk(e);t&&d&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?u:s;if(m&&typeof m!="boolean"&&!Qm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const x=X3(e,g[b]);if(x){const{transitionEnd:C,transition:A,...S}=x;for(const w in S){let D=S[w];if(Array.isArray(D)){const k=h?D.length-1:0;D=D[k]}D!==null&&(i[w]=D)}for(const w in C)i[w]=C[w]}}}return i}function J3(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(Or(i[s])||t.style&&Or(t.style[s])||Jk(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}const See={useVisualState:n7({scrapeMotionValuesFromProps:J3,createRenderState:H3})};function r7(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function i7(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 o7=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 s7(e,t,n,r){i7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(o7.has(i)?i:j3(i),t.attrs[i])}function a7(e,t,n){const r=J3(e,t,n);for(const i in e)if(Or(e[i])||Or(t[i])){const o=_c.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const pA=["x","y","width","height","cx","cy","r"],Eee={useVisualState:n7({scrapeMotionValuesFromProps:a7,createRenderState:t7,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(sl.has(u)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let u=0;u<pA.length;u++){const l=pA[u];e[l]!==t[l]&&(s=!0)}s&&Dn.read(()=>{r7(n,r),Dn.render(()=>{Y3(r,i,Z3(n.tagName),e.transformTemplate),s7(n,r)})})}})};function Dee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...G3(r)?Eee:See,preloadedFeatures:e,useRender:bee(i),createVisualElement:t,Component:r};return ZQ(s)}}function ld(e,t,n){const r=e.getProps();return X3(r,t,n!==void 0?n:r.custom,e)}const Aee=B3(()=>window.ScrollTimeline!==void 0);let Tee=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}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=>{if(Aee()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return 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")}},Pee=class extends Tee{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function Q3(e,t){return e?e[t]||e.default||e:void 0}const Lb=2e4;function u7(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Lb;)t+=n,r=e.next(t);return t>=Lb?1/0:t}function e$(e){return typeof e=="function"}function mA(e,t){e.timeline=t,e.onfinish=null}const t$=e=>Array.isArray(e)&&typeof e[0]=="number",_ee={linearEasing:void 0};function Ree(e,t){const n=B3(e);return()=>{var r;return(r=_ee[t])!==null&&r!==void 0?r:n()}}const Yp=Ree(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),l7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(cc(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function c7(e){return!!(typeof e=="function"&&Yp()||!e||typeof e=="string"&&(e in Bb||Yp())||t$(e)||Array.isArray(e)&&e.every(c7))}const Pf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Bb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pf([0,.65,.55,1]),circOut:Pf([.55,0,1,.45]),backIn:Pf([.31,.01,.66,-.59]),backOut:Pf([.33,1.53,.69,.99])};function f7(e,t){if(e)return typeof e=="function"&&Yp()?l7(e,t):t$(e)?Pf(e):Array.isArray(e)?e.map(n=>f7(n,t)||Bb.easeOut):Bb[e]}const To={x:!1,y:!1};function d7(){return To.x||To.y}function Mee(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 h7(e,t){const n=Mee(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function gA(e){return!(e.pointerType==="touch"||d7())}function Fee(e,t,n={}){const[r,i,o]=h7(e,n),s=u=>{if(!gA(u))return;const{target:l}=u,d=t(l,u);if(typeof d!="function"||!l)return;const h=m=>{gA(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",s,i)}),o}const p7=(e,t)=>t?e===t?!0:p7(e,t.parentElement):!1,n$=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,kee=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Oee(e){return kee.has(e.tagName)||e.tabIndex!==-1}const _f=new WeakSet;function vA(e){return t=>{t.key==="Enter"&&e(t)}}function i1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Iee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=vA(()=>{if(_f.has(n))return;i1(n,"down");const i=vA(()=>{i1(n,"up")}),o=()=>i1(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)};function yA(e){return n$(e)&&!d7()}function Lee(e,t,n={}){const[r,i,o]=h7(e,n),s=u=>{const l=u.currentTarget;if(!yA(u)||_f.has(l))return;_f.add(l);const d=t(l,u),h=(b,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!yA(b)||!_f.has(l))&&(_f.delete(l),typeof d=="function"&&d(b,{success:x}))},m=b=>{h(b,n.useGlobalTarget||p7(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(u=>{!Oee(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",s,i),u.addEventListener("focus",d=>Iee(d,i),i)}),o}function Bee(e){return e==="x"||e==="y"?To[e]?null:(To[e]=!0,()=>{To[e]=!1}):To.x||To.y?null:(To.x=To.y=!0,()=>{To.x=To.y=!1})}const m7=new Set(["width","height","top","left","right","bottom",..._c]);let dp;function Vee(){dp=void 0}const bs={now:()=>(dp===void 0&&bs.set(kr.isProcessing||OQ.useManualTiming?kr.timestamp:performance.now()),dp),set:e=>{dp=e,queueMicrotask(Vee)}};function r$(e,t){e.indexOf(t)===-1&&e.push(t)}function i$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Nee([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}let o$=class{constructor(){this.subscriptions=[]}add(t){return r$(this.subscriptions,t),()=>i$(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}};function g7(e,t){return t?e*(1e3/t):0}const bA=30,jee=e=>!isNaN(parseFloat(e)),Nf={current:void 0};let Kee=class{constructor(t,n={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=bs.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=bs.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=jee(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Xm(!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 o$);const r=this.events[t].add(n);return t==="change"?()=>{r(),Dn.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 Nf.current&&Nf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=bs.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>bA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,bA);return g7(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 dc(e,t){return new Kee(e,t)}function Uee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dc(n))}function zee(e,t){const n=ld(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const u=xee(o[s]);Uee(e,s,u)}}function qee(e){return!!(Or(e)&&e.add)}function Vb(e,t){const n=e.getValue("willChange");if(qee(n))return n.add(t)}function v7(e){return e.props[Gk]}const y7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Wee=1e-7,Hee=12;function Gee(e,t,n,r,i){let o,s,u=0;do s=t+(n-t)/2,o=y7(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Wee&&++u<Hee);return s}function Id(e,t,n,r){if(e===t&&n===r)return wi;const i=o=>Gee(o,0,1,e,n);return o=>o===0||o===1?o:y7(i(o),t,r)}const b7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$7=e=>t=>1-e(1-t),x7=Id(.33,1.53,.69,.99),s$=$7(x7),w7=b7(s$),C7=e=>(e*=2)<1?.5*s$(e):.5*(2-Math.pow(2,-10*(e-1))),a$=e=>1-Math.sin(Math.acos(e)),S7=$7(a$),E7=b7(a$),D7=e=>/^0[^.\s]+$/u.test(e);function Yee(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||D7(e):!0}const jf=e=>Math.round(e*1e5)/1e5,u$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Zee(e){return e==null}const Xee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,l$=(e,t)=>n=>!!(typeof n=="string"&&Xee.test(n)&&n.startsWith(e)||t&&!Zee(n)&&Object.prototype.hasOwnProperty.call(n,t)),A7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,u]=r.match(u$);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},Jee=e=>ua(0,255,e),o1={...Rc,transform:e=>Math.round(Jee(e))},Lu={test:l$("rgb","red"),parse:A7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+o1.transform(e)+", "+o1.transform(t)+", "+o1.transform(n)+", "+jf(ud.transform(r))+")"};function Qee(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 Nb={test:l$("#"),parse:Qee,transform:Lu.transform},Bl={test:l$("hsl","hue"),parse:A7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ys.transform(jf(t))+", "+ys.transform(jf(n))+", "+jf(ud.transform(r))+")"},Kr={test:e=>Lu.test(e)||Nb.test(e)||Bl.test(e),parse:e=>Lu.test(e)?Lu.parse(e):Bl.test(e)?Bl.parse(e):Nb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Lu.transform(e):Bl.transform(e)},ete=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tte(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(u$))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(ete))===null||n===void 0?void 0:n.length)||0)>0}const T7="number",P7="color",nte="var",rte="var(",$A="${}",ite=/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 cd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(ite,l=>(Kr.test(l)?(r.color.push(o),i.push(P7),n.push(Kr.parse(l))):l.startsWith(rte)?(r.var.push(o),i.push(nte),n.push(l)):(r.number.push(o),i.push(T7),n.push(parseFloat(l))),++o,$A)).split($A);return{values:n,split:u,indexes:r,types:i}}function _7(e){return cd(e).values}function R7(e){const{split:t,types:n}=cd(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const u=n[s];u===T7?o+=jf(i[s]):u===P7?o+=Kr.transform(i[s]):o+=i[s]}return o}}const ote=e=>typeof e=="number"?0:e;function ste(e){const t=_7(e);return R7(e)(t.map(ote))}const Qa={test:tte,parse:_7,createTransformer:R7,getAnimatableNone:ste},ate=new Set(["brightness","contrast","saturate","opacity"]);function ute(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(u$)||[];if(!r)return e;const i=n.replace(r,"");let o=ate.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const lte=/\b([a-z-]*)\(.*?\)/gu,jb={...Qa,getAnimatableNone:e=>{const t=e.match(lte);return t?t.map(ute).join(" "):e}},cte={...q3,color:Kr,backgroundColor:Kr,outlineColor:Kr,fill:Kr,stroke:Kr,borderColor:Kr,borderTopColor:Kr,borderRightColor:Kr,borderBottomColor:Kr,borderLeftColor:Kr,filter:jb,WebkitFilter:jb},c$=e=>cte[e];function M7(e,t){let n=c$(e);return n!==jb&&(n=Qa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const fte=new Set(["auto","none","0"]);function dte(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!fte.has(o)&&cd(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=M7(n,i)}const xA=e=>e===Rc||e===Ft,wA=(e,t)=>parseFloat(e.split(", ")[t]),CA=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return wA(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?wA(o[1],e):0}},hte=new Set(["x","y","z"]),pte=_c.filter(e=>!hte.has(e));function mte(e){const t=[];return pte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const hc={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:CA(4,13),y:CA(5,14)};hc.translateX=hc.x;hc.translateY=hc.y;const Uu=new Set;let Kb=!1,Ub=!1;function F7(){if(Ub){const e=Array.from(Uu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=mte(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 u;(u=r.getValue(o))===null||u===void 0||u.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ub=!1,Kb=!1,Uu.forEach(e=>e.complete()),Uu.clear()}function k7(){Uu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ub=!0)})}function gte(){k7(),F7()}let f$=class{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?(Uu.add(this),Kb||(Kb=!0,Dn.read(k7),Dn.resolveKeyframes(F7))):(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(),u=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),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),Uu.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Uu.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const O7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),vte=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yte(e){const t=vte.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const bte=4;function I7(e,t,n=1){$s(n<=bte,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=yte(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return O7(s)?parseFloat(s):s}return z3(i)?I7(i,t,n+1):i}const L7=e=>t=>t.test(e),$te={test:e=>e==="auto",parse:e=>e},B7=[Rc,Ft,ys,La,iee,ree,$te],SA=e=>B7.find(L7(e));let V7=class extends f${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 d=t[l];if(typeof d=="string"&&(d=d.trim(),z3(d))){const h=I7(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!m7.has(r)||t.length!==2)return;const[i,o]=t,s=SA(i),u=SA(o);if(s!==u)if(xA(s)&&xA(u))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Yee(t[i])&&r.push(i);r.length&&dte(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=hc[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,u=i[s];i[s]=hc[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}};const EA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qa.test(e)||e==="0")&&!e.startsWith("url("));function xte(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 wte(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=EA(i,t),u=EA(o,t);return Pc(s===u,`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||!u?!1:xte(e)||(n==="spring"||e$(n))&&r}const Cte=e=>e!==null;function tg(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Cte),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Ste=40;let N7=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=bs.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Ste?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&gte(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=bs.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:u,onUpdate:l,isGenerator:d}=this.options;if(!d&&!wte(t,r,i,o))if(s)this.options.duration=0;else{l&&l(tg(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},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 Vn=(e,t,n)=>e+(t-e)*n;function s1(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 Ete({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 u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=s1(l,u,e+1/3),o=s1(l,u,e),s=s1(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Zp(e,t){return n=>n>0?t:e}const a1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Dte=[Nb,Lu,Bl],Ate=e=>Dte.find(t=>t.test(e));function DA(e){const t=Ate(e);if(Pc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Bl&&(n=Ete(n)),n}const AA=(e,t)=>{const n=DA(e),r=DA(t);if(!n||!r)return Zp(e,t);const i={...n};return o=>(i.red=a1(n.red,r.red,o),i.green=a1(n.green,r.green,o),i.blue=a1(n.blue,r.blue,o),i.alpha=Vn(n.alpha,r.alpha,o),Lu.transform(i))},Tte=(e,t)=>n=>t(e(n)),Ld=(...e)=>e.reduce(Tte),zb=new Set(["none","hidden"]);function Pte(e,t){return zb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _te(e,t){return n=>Vn(e,t,n)}function d$(e){return typeof e=="number"?_te:typeof e=="string"?z3(e)?Zp:Kr.test(e)?AA:Fte:Array.isArray(e)?j7:typeof e=="object"?Kr.test(e)?AA:Rte:Zp}function j7(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>d$(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Rte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=d$(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Mte(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],u=e.indexes[s][i[s]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const Fte=(e,t)=>{const n=Qa.createTransformer(t),r=cd(e),i=cd(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?zb.has(e)&&!i.values.length||zb.has(t)&&!r.values.length?Pte(e,t):Ld(j7(Mte(r,i),i.values),n):(Pc(!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.`),Zp(e,t))};function K7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Vn(e,t,n):d$(e)(e,t)}const kte=5;function U7(e,t,n){const r=Math.max(t-kte,0);return g7(n-e(r),t-r)}const jn={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},TA=.001;function Ote({duration:e=jn.duration,bounce:t=jn.bounce,velocity:n=jn.velocity,mass:r=jn.mass}){let i,o;Pc(e<=vs(jn.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=ua(jn.minDamping,jn.maxDamping,s),e=ua(jn.minDuration,jn.maxDuration,ra(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=qb(d,s),x=Math.exp(-m);return TA-g/b*x},o=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,x=Math.exp(-m),C=qb(Math.pow(d,2),s);return(-i(d)+TA>0?-1:1)*((g-b)*x)/C}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,l=Lte(i,o,u);if(e=vs(e),isNaN(l))return{stiffness:jn.stiffness,damping:jn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const Ite=12;function Lte(e,t,n){let r=n;for(let i=1;i<Ite;i++)r=r-e(r)/t(r);return r}function qb(e,t){return e*Math.sqrt(1-t*t)}const Bte=["duration","bounce"],Vte=["stiffness","damping","mass"];function PA(e,t){return t.some(n=>e[n]!==void 0)}function Nte(e){let t={velocity:jn.velocity,stiffness:jn.stiffness,damping:jn.damping,mass:jn.mass,isResolvedFromDuration:!1,...e};if(!PA(e,Vte)&&PA(e,Bte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ua(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:jn.mass,stiffness:i,damping:o}}else{const n=Ote(e);t={...t,...n,mass:jn.mass},t.isResolvedFromDuration=!0}return t}function z7(e=jn.visualDuration,t=jn.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],u={done:!1,value:o},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Nte({...n,velocity:-ra(n.velocity||0)}),x=g||0,C=d/(2*Math.sqrt(l*h)),A=s-o,S=ra(Math.sqrt(l/h)),w=Math.abs(A)<5;r||(r=w?jn.restSpeed.granular:jn.restSpeed.default),i||(i=w?jn.restDelta.granular:jn.restDelta.default);let D;if(C<1){const R=qb(S,C);D=O=>{const H=Math.exp(-C*S*O);return s-H*((x+C*S*A)/R*Math.sin(R*O)+A*Math.cos(R*O))}}else if(C===1)D=R=>s-Math.exp(-S*R)*(A+(x+S*A)*R);else{const R=S*Math.sqrt(C*C-1);D=O=>{const H=Math.exp(-C*S*O),F=Math.min(R*O,300);return s-H*((x+C*S*A)*Math.sinh(F)+R*A*Math.cosh(F))/R}}const k={calculatedDuration:b&&m||null,next:R=>{const O=D(R);if(b)u.done=R>=m;else{let H=0;C<1&&(H=R===0?vs(x):U7(D,R,O));const F=Math.abs(H)<=r,ce=Math.abs(s-O)<=i;u.done=F&&ce}return u.value=u.done?s:O,u},toString:()=>{const R=Math.min(u7(k),Lb),O=l7(H=>k.next(R*H).value,R,30);return R+"ms "+O}};return k}function _A({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=F=>u!==void 0&&F<u||l!==void 0&&F>l,x=F=>u===void 0?l:l===void 0||Math.abs(u-F)<Math.abs(l-F)?u:l;let C=n*t;const A=m+C,S=s===void 0?A:s(A);S!==A&&(C=S-m);const w=F=>-C*Math.exp(-F/r),D=F=>S+w(F),k=F=>{const ce=w(F),ae=D(F);g.done=Math.abs(ce)<=d,g.value=g.done?S:ae};let R,O;const H=F=>{b(g.value)&&(R=F,O=z7({keyframes:[g.value,x(g.value)],velocity:U7(D,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return H(0),{calculatedDuration:null,next:F=>{let ce=!1;return!O&&R===void 0&&(ce=!0,k(F),H(F)),R!==void 0&&F>=R?O.next(F-R):(!ce&&k(F),g)}}}const jte=Id(.42,0,1,1),Kte=Id(0,0,.58,1),q7=Id(.42,0,.58,1),Ute=e=>Array.isArray(e)&&typeof e[0]!="number",RA={linear:wi,easeIn:jte,easeInOut:q7,easeOut:Kte,circIn:a$,circInOut:E7,circOut:S7,backIn:s$,backInOut:w7,backOut:x7,anticipate:C7},MA=e=>{if(t$(e)){$s(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Id(t,n,r,i)}else if(typeof e=="string")return $s(RA[e]!==void 0,`Invalid easing type '${e}'`),RA[e];return e};function zte(e,t,n){const r=[],i=n||K7,o=e.length-1;for(let s=0;s<o;s++){let u=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||wi:t;u=Ld(l,u)}r.push(u)}return r}function W7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if($s(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=zte(t,r,i),l=u.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=cc(e[m],e[m+1],h);return u[m](g)};return n?h=>d(ua(e[0],e[o-1],h)):d}function qte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=cc(0,t,r);e.push(Vn(n,1,i))}}function Wte(e){const t=[0];return qte(t,e.length-1),t}function Hte(e,t){return e.map(n=>n*t)}function Gte(e,t){return e.map(()=>t||q7).splice(0,e.length-1)}function Kf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Ute(r)?r.map(MA):MA(r),o={done:!1,value:t[0]},s=Hte(n&&n.length===t.length?n:Wte(t),e),u=W7(s,t,{ease:Array.isArray(i)?i:Gte(t,i)});return{calculatedDuration:e,next:l=>(o.value=u(l),o.done=l>=e,o)}}const Yte=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Dn.update(t,!0),stop:()=>aa(t),now:()=>kr.isProcessing?kr.timestamp:bs.now()}},Zte={decay:_A,inertia:_A,tween:Kf,keyframes:Kf,spring:z7},Xte=e=>e/100;let h$=class extends N7{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)||f$,u=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new s(o,u,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,u=e$(n)?n:Zte[n]||Kf;let l,d;process.env.NODE_ENV!=="production"&&u!==Kf&&$s(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),u!==Kf&&typeof t[0]!="number"&&(l=Ld(Xte,K7(t[0],t[1])),t=[0,100]);const h=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-s})),h.calculatedDuration===null&&(h.calculatedDuration=u7(h));const{calculatedDuration:m}=h,g=m+i,b=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:g,totalDuration:b}}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:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:b,repeatType:x,repeatDelay:C,onUpdate:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/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 S=this.currentTime-g*(this.speed>=0?1:-1),w=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let D=this.currentTime,k=o;if(b){const F=Math.min(this.currentTime,h)/m;let ce=Math.floor(F),ae=F%1;!ae&&F>=1&&(ae=1),ae===1&&ce--,ce=Math.min(ce,b+1),!!(ce%2)&&(x==="reverse"?(ae=1-ae,C&&(ae-=C/m)):x==="mirror"&&(k=s)),D=ua(0,1,ae)*m}const R=w?{done:!1,value:l[0]}:k.next(D);u&&(R.value=u(R.value));let{done:O}=R;!w&&d!==null&&(O=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return H&&i!==void 0&&(R.value=tg(l,this.options,i)),A&&A(R.value),H&&this.finish(),R}get duration(){const{resolved:t}=this;return t?ra(t.calculatedDuration):0}get time(){return ra(this.currentTime)}set time(t){t=vs(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=ra(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Yte,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 Jte=new Set(["opacity","clipPath","filter","transform"]);function Qte(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:u="easeInOut",times:l}={}){const d={[t]:n};l&&(d.offset=l);const h=f7(u,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const ene=B3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xp=10,tne=2e4;function nne(e){return e$(e.type)||e.type==="spring"||!c7(e.ease)}function rne(e,t){const n=new h$({...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<tne;)r=n.sample(o),i.push(r.value),o+=Xp;return{times:void 0,keyframes:i,duration:o-Xp,ease:"linear"}}const H7={anticipate:C7,backInOut:w7,circInOut:E7};function ine(e){return e in H7}let FA=class extends N7{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new V7(o,(s,u)=>this.onKeyframesResolved(s,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:u,name:l,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof o=="string"&&Yp()&&ine(o)&&(o=H7[o]),nne(this.options)){const{onComplete:m,onUpdate:g,motionValue:b,element:x,...C}=this.options,A=rne(t,C);t=A.keyframes,t.length===1&&(t[1]=t[0]),r=A.duration,i=A.times,o=A.ease,s="keyframes"}const h=Qte(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(mA(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;u.set(tg(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ra(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ra(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=vs(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 wi;const{animation:r}=n;mA(r,t)}return wi}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:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...b}=this.options,x=new h$({...b,keyframes:r,duration:i,type:o,ease:s,times:u,isGenerator:!0}),C=vs(this.time);d.setWithVelocity(x.sample(C-Xp).value,x.sample(C).value,Xp)}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:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return ene()&&r&&Jte.has(r)&&!l&&!d&&!i&&o!=="mirror"&&s!==0&&u!=="inertia"}};const one={type:"spring",stiffness:500,damping:25,restSpeed:10},sne=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ane={type:"keyframes",duration:.8},une={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lne=(e,{keyframes:t})=>t.length>2?ane:sl.has(e)?e.startsWith("scale")?sne(t[1]):one:une;function cne({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:u,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const p$=(e,t,n,r={},i,o)=>s=>{const u=Q3(r,e)||{},l=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-vs(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};cne(u)||(h={...h,...lne(e,h)}),h.duration&&(h.duration=vs(h.duration)),h.repeatDelay&&(h.repeatDelay=vs(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),m&&!o&&t.get()!==void 0){const g=tg(h.keyframes,u);if(g!==void 0)return Dn.update(()=>{h.onUpdate(g),h.onComplete()}),new Pee([])}return!o&&FA.supports(h)?new FA(h):new h$(h)};function fne({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function G7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(s=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in l){const g=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),b=l[m];if(b===void 0||h&&fne(h,m))continue;const x={delay:n,...Q3(s||{},m)};let C=!1;if(window.MotionHandoffAnimation){const S=v7(e);if(S){const w=window.MotionHandoffAnimation(S,m,Dn);w!==null&&(x.startTime=w,C=!0)}}Vb(e,m),g.start(p$(m,g,b,e.shouldReduceMotion&&m7.has(m)?{type:!1}:x,e,C));const A=g.animation;A&&d.push(A)}return u&&Promise.all(d).then(()=>{Dn.update(()=>{u&&zee(e,u)})}),d}function Wb(e,t,n={}){var r;const i=ld(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(G7(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return dne(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[d,h]=l==="beforeChildren"?[s,u]:[u,s];return d().then(()=>h())}else return Promise.all([s(),u(n.delay)])}function dne(e,t,n=0,r=0,i=1,o){const s=[],u=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(hne).forEach((d,h)=>{d.notify("AnimationStart",t),s.push(Wb(d,t,{...o,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function hne(e,t){return e.sortNodePosition(t)}function pne(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Wb(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Wb(e,t,n);else{const i=typeof t=="function"?ld(e,t,n.custom):t;r=Promise.all(G7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Y7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const mne=N3.length;function Z7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Z7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<mne;n++){const r=N3[n],i=e.props[r];(sd(i)||i===!1)&&(t[r]=i)}return t}const gne=[...V3].reverse(),vne=V3.length;function yne(e){return t=>Promise.all(t.map(({animation:n,options:r})=>pne(e,n,r)))}function bne(e){let t=yne(e),n=kA(),r=!0;const i=l=>(d,h)=>{var m;const g=ld(e,h,l==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:b,transitionEnd:x,...C}=g;d={...d,...C,...x}}return d};function o(l){t=l(e)}function s(l){const{props:d}=e,h=Z7(e.parent)||{},m=[],g=new Set;let b={},x=1/0;for(let A=0;A<vne;A++){const S=gne[A],w=n[S],D=d[S]!==void 0?d[S]:h[S],k=sd(D),R=S===l?w.isActive:null;R===!1&&(x=A);let O=D===h[S]&&D!==d[S]&&k;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),w.protectedKeys={...b},!w.isActive&&R===null||!D&&!w.prevProp||Qm(D)||typeof D=="boolean")continue;const H=$ne(w.prevProp,D);let F=H||S===l&&w.isActive&&!O&&k||A>x&&k,ce=!1;const ae=Array.isArray(D)?D:[D];let q=ae.reduce(i(S),{});R===!1&&(q={});const{prevResolvedValues:De={}}=w,z={...De,...q},j=N=>{F=!0,g.has(N)&&(ce=!0,g.delete(N)),w.needsAnimating[N]=!0;const I=e.getValue(N);I&&(I.liveStyle=!1)};for(const N in z){const I=q[N],de=De[N];if(b.hasOwnProperty(N))continue;let se=!1;Ib(I)&&Ib(de)?se=!Y7(I,de):se=I!==de,se?I!=null?j(N):g.add(N):I!==void 0&&g.has(N)?j(N):w.protectedKeys[N]=!0}w.prevProp=D,w.prevResolvedValues=q,w.isActive&&(b={...b,...q}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(O&&H)||ce)&&m.push(...ae.map(N=>({animation:N,options:{type:S}})))}if(g.size){const A={};if(typeof d.initial!="boolean"){const S=ld(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(A.transition=S.transition)}g.forEach(S=>{const w=e.getBaseTarget(S),D=e.getValue(S);D&&(D.liveStyle=!0),A[S]=w??null}),m.push({animation:A})}let C=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(m):Promise.resolve()}function u(l,d){var h;if(n[l].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var b;return(b=g.animationState)===null||b===void 0?void 0:b.setActive(l,d)}),n[l].isActive=d;const m=s(l);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=kA(),r=!0}}}function $ne(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Y7(t,e):!1}function Du(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kA(){return{animate:Du(!0),whileInView:Du(),whileHover:Du(),whileTap:Du(),whileDrag:Du(),whileFocus:Du(),exit:Du()}}let iu=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},xne=class extends iu{constructor(t){super(t),t.animationState||(t.animationState=bne(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Qm(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)}},wne=0,Cne=class extends iu{constructor(){super(...arguments),this.id=wne++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};const Sne={animation:{Feature:xne},exit:{Feature:Cne}};function fd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Bd(e){return{point:{x:e.pageX,y:e.pageY}}}const Ene=e=>t=>n$(t)&&e(t,Bd(t));function Uf(e,t,n,r){return fd(e,t,Ene(n),r)}const OA=(e,t)=>Math.abs(e-t);function Dne(e,t){const n=OA(e.x,t.x),r=OA(e.y,t.y);return Math.sqrt(n**2+r**2)}class X7{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=l1(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=Dne(m.offset,{x:0,y:0})>=3;if(!g&&!b)return;const{point:x}=m,{timestamp:C}=kr;this.history.push({...x,timestamp:C});const{onStart:A,onMove:S}=this.handlers;g||(A&&A(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=u1(g,this.transformPagePoint),Dn.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:b,onSessionEnd:x,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=l1(m.type==="pointercancel"?this.lastMoveEventInfo:u1(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,A),x&&x(m,A)},!n$(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Bd(t),u=u1(s,this.transformPagePoint),{point:l}=u,{timestamp:d}=kr;this.history=[{...l,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,l1(u,this.history)),this.removeListeners=Ld(Uf(this.contextWindow,"pointermove",this.handlePointerMove),Uf(this.contextWindow,"pointerup",this.handlePointerUp),Uf(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),aa(this.updatePoint)}}function u1(e,t){return t?{point:t(e.point)}:e}function IA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function l1({point:e},t){return{point:e,delta:IA(e,J7(t)),offset:IA(e,Ane(t)),velocity:Tne(t,.1)}}function Ane(e){return e[0]}function J7(e){return e[e.length-1]}function Tne(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=J7(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>vs(t)));)n--;if(!r)return{x:0,y:0};const o=ra(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const Q7=1e-4,Pne=1-Q7,_ne=1+Q7,eO=.01,Rne=0-eO,Mne=0+eO;function ni(e){return e.max-e.min}function Fne(e,t,n){return Math.abs(e-t)<=n}function LA(e,t,n,r=.5){e.origin=r,e.originPoint=Vn(t.min,t.max,e.origin),e.scale=ni(n)/ni(t),e.translate=Vn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Pne&&e.scale<=_ne||isNaN(e.scale))&&(e.scale=1),(e.translate>=Rne&&e.translate<=Mne||isNaN(e.translate))&&(e.translate=0)}function zf(e,t,n,r){LA(e.x,t.x,n.x,r?r.originX:void 0),LA(e.y,t.y,n.y,r?r.originY:void 0)}function BA(e,t,n){e.min=n.min+t.min,e.max=e.min+ni(t)}function kne(e,t,n){BA(e.x,t.x,n.x),BA(e.y,t.y,n.y)}function VA(e,t,n){e.min=t.min-n.min,e.max=e.min+ni(t)}function qf(e,t,n){VA(e.x,t.x,n.x),VA(e.y,t.y,n.y)}function One(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Vn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Vn(n,e,r.max):Math.min(e,n)),e}function NA(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ine(e,{top:t,left:n,bottom:r,right:i}){return{x:NA(e.x,n,i),y:NA(e.y,t,r)}}function jA(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Lne(e,t){return{x:jA(e.x,t.x),y:jA(e.y,t.y)}}function Bne(e,t){let n=.5;const r=ni(e),i=ni(t);return i>r?n=cc(t.min,t.max-r,e.min):r>i&&(n=cc(e.min,e.max-i,t.min)),ua(0,1,n)}function Vne(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Hb=.35;function Nne(e=Hb){return e===!1?e=0:e===!0&&(e=Hb),{x:KA(e,"left","right"),y:KA(e,"top","bottom")}}function KA(e,t,n){return{min:UA(e,t),max:UA(e,n)}}function UA(e,t){return typeof e=="number"?e:e[t]||0}const zA=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vl=()=>({x:zA(),y:zA()}),qA=()=>({min:0,max:0}),rr=()=>({x:qA(),y:qA()});function Qi(e){return[e("x"),e("y")]}function tO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function jne({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Kne(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 c1(e){return e===void 0||e===1}function Gb({scale:e,scaleX:t,scaleY:n}){return!c1(e)||!c1(t)||!c1(n)}function Tu(e){return Gb(e)||nO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nO(e){return WA(e.x)||WA(e.y)}function WA(e){return e&&e!=="0%"}function Jp(e,t,n){const r=e-n,i=t*r;return n+i}function HA(e,t,n,r,i){return i!==void 0&&(e=Jp(e,i,r)),Jp(e,n,r)+t}function Yb(e,t=0,n=1,r,i){e.min=HA(e.min,t,n,r,i),e.max=HA(e.max,t,n,r,i)}function rO(e,{x:t,y:n}){Yb(e.x,t.translate,t.scale,t.originPoint),Yb(e.y,n.translate,n.scale,n.originPoint)}const GA=.999999999999,YA=1.0000000000001;function Une(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let u=0;u<i;u++){o=n[u],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&jl(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,rO(e,s)),r&&Tu(o.latestValues)&&jl(e,o.latestValues))}t.x<YA&&t.x>GA&&(t.x=1),t.y<YA&&t.y>GA&&(t.y=1)}function Nl(e,t){e.min=e.min+t,e.max=e.max+t}function ZA(e,t,n,r,i=.5){const o=Vn(e.min,e.max,i);Yb(e,t,n,o,r)}function jl(e,t){ZA(e.x,t.x,t.scaleX,t.scale,t.originX),ZA(e.y,t.y,t.scaleY,t.scale,t.originY)}function iO(e,t){return tO(Kne(e.getBoundingClientRect(),t))}function zne(e,t,n){const r=iO(e,n),{scroll:i}=t;return i&&(Nl(r.x,i.offset.x),Nl(r.y,i.offset.y)),r}const oO=({current:e})=>e?e.ownerDocument.defaultView:null,qne=new WeakMap;class Wne{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Bd(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:b,onDragStart:x}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Bee(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qi(A=>{let S=this.getAxisMotionValue(A).get()||0;if(ys.test(S)){const{projection:w}=this.visualElement;if(w&&w.layout){const D=w.layout.layoutBox[A];D&&(S=ni(D)*(parseFloat(S)/100))}}this.originPoint[A]=S}),x&&Dn.postRender(()=>x(h,m)),Vb(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},s=(h,m)=>{const{dragPropagation:g,dragDirectionLock:b,onDirectionLock:x,onDrag:C}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:A}=m;if(b&&this.currentDirection===null){this.currentDirection=Hne(A),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",m.point,A),this.updateAxis("y",m.point,A),this.visualElement.render(),C&&C(h,m)},u=(h,m)=>this.stop(h,m),l=()=>Qi(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new X7(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:oO(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Dn.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Uh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=One(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ll(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Ine(i.layoutBox,n):this.constraints=!1,this.elastic=Nne(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qi(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Vne(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ll(t))return!1;const r=t.current;$s(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=zne(r,i.root,this.visualElement.getTransformPagePoint());let s=Lne(i.layout.layoutBox,o);if(n){const u=n(jne(s));this.hasMutatedConstraints=!!u,u&&(s=tO(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},d=Qi(h=>{if(!Uh(h,n,this.currentDirection))return;let m=l&&l[h]||{};s&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,x={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,x)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Vb(this.visualElement,t),r.start(p$(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qi(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qi(n=>{const{drag:r}=this.getProps();if(!Uh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[n];o.set(t[n]-Vn(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ll(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qi(s=>{const u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){const l=u.get();i[s]=Bne({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qi(s=>{if(!Uh(s,t,null))return;const u=this.getAxisMotionValue(s),{min:l,max:d}=this.constraints[s];u.set(Vn(l,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;qne.set(this.visualElement,this);const t=this.visualElement.current,n=Uf(t,"pointerdown",l=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ll(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Dn.read(r);const s=fd(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Hb,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:u}}}function Uh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Hne(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Gne extends iu{constructor(t){super(t),this.removeGroupControls=wi,this.removeListeners=wi,this.controls=new Wne(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||wi}unmount(){this.removeGroupControls(),this.removeListeners()}}const XA=e=>(t,n)=>{e&&Dn.postRender(()=>e(t,n))};class Yne extends iu{constructor(){super(...arguments),this.removePointerDownListener=wi}onPointerDown(t){this.session=new X7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:oO(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:XA(t),onStart:XA(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Dn.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Uf(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const hp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function JA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const pf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ft.test(e))e=parseFloat(e);else return e;const n=JA(e,t.target.x),r=JA(e,t.target.y);return`${n}% ${r}%`}},Zne={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Qa.parse(e);if(i.length>5)return r;const o=Qa.createTransformer(e),s=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=u,i[1+s]/=l;const d=Vn(u,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),o(i)}};class Xne extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;nee(Jne),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),hp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Dn.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),K3.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sO(e){const[t,n]=kQ(),r=_.useContext(Kk);return oa.jsx(Xne,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(Yk),isPresent:t,safeToRemove:n})}const Jne={borderRadius:{...pf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pf,borderTopRightRadius:pf,borderBottomLeftRadius:pf,borderBottomRightRadius:pf,boxShadow:Zne};function Qne(e,t,n){const r=Or(e)?e:dc(e);return r.start(p$("",r,t,n)),r.animation}function ere(e){return e instanceof SVGElement&&e.tagName!=="svg"}const tre=(e,t)=>e.depth-t.depth;class nre{constructor(){this.children=[],this.isDirty=!1}add(t){r$(this.children,t),this.isDirty=!0}remove(t){i$(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tre),this.isDirty=!1,this.children.forEach(t)}}function rre(e,t){const n=bs.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(aa(r),e(o-t))};return Dn.read(r,!0),()=>aa(r)}const aO=["TopLeft","TopRight","BottomLeft","BottomRight"],ire=aO.length,QA=e=>typeof e=="string"?parseFloat(e):e,eT=e=>typeof e=="number"||Ft.test(e);function ore(e,t,n,r,i,o){i?(e.opacity=Vn(0,n.opacity!==void 0?n.opacity:1,sre(r)),e.opacityExit=Vn(t.opacity!==void 0?t.opacity:1,0,are(r))):o&&(e.opacity=Vn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<ire;s++){const u=`border${aO[s]}Radius`;let l=tT(t,u),d=tT(n,u);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||eT(l)===eT(d)?(e[u]=Math.max(Vn(QA(l),QA(d),r),0),(ys.test(d)||ys.test(l))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=Vn(t.rotate||0,n.rotate||0,r))}function tT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const sre=uO(0,.5,S7),are=uO(.5,.95,wi);function uO(e,t,n){return r=>r<e?0:r>t?1:n(cc(e,t,r))}function nT(e,t){e.min=t.min,e.max=t.max}function Xi(e,t){nT(e.x,t.x),nT(e.y,t.y)}function rT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iT(e,t,n,r,i){return e-=t,e=Jp(e,1/n,r),i!==void 0&&(e=Jp(e,1/i,r)),e}function ure(e,t=0,n=1,r=.5,i,o=e,s=e){if(ys.test(t)&&(t=parseFloat(t),t=Vn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=Vn(o.min,o.max,r);e===o&&(u-=t),e.min=iT(e.min,t,n,u,i),e.max=iT(e.max,t,n,u,i)}function oT(e,t,[n,r,i],o,s){ure(e,t[n],t[r],t[i],t.scale,o,s)}const lre=["x","scaleX","originX"],cre=["y","scaleY","originY"];function sT(e,t,n,r){oT(e.x,t,lre,n?n.x:void 0,r?r.x:void 0),oT(e.y,t,cre,n?n.y:void 0,r?r.y:void 0)}function aT(e){return e.translate===0&&e.scale===1}function lO(e){return aT(e.x)&&aT(e.y)}function uT(e,t){return e.min===t.min&&e.max===t.max}function fre(e,t){return uT(e.x,t.x)&&uT(e.y,t.y)}function lT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function cO(e,t){return lT(e.x,t.x)&&lT(e.y,t.y)}function cT(e){return ni(e.x)/ni(e.y)}function fT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class dre{constructor(){this.members=[]}add(t){r$(this.members,t),t.scheduleRender()}remove(t){if(i$(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hre(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:x}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),x&&(r+=`skewY(${x}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const f1=["","X","Y","Z"],pre={visibility:"hidden"},dT=1e3;let mre=0;function d1(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function fO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=v7(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Dn,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&fO(r)}function dO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=mre++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(yre),this.nodes.forEach(Cre),this.nodes.forEach(Sre),this.nodes.forEach(bre)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new nre)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new o$),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const l=this.eventHandlers.get(s);l&&l.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ere(s),this.instance=s;const{layoutId:l,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||l)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=rre(g,250),hp.hasAnimatedSinceResize&&(hp.hasAnimatedSinceResize=!1,this.nodes.forEach(pT))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||h.getDefaultTransition()||Pre,{onLayoutAnimationStart:A,onLayoutAnimationComplete:S}=h.getProps(),w=!this.targetLayout||!cO(this.targetLayout,x),D=!g&&b;if(this.options.layoutRoot||this.resumeFrom||D||g&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,D);const k={...Q3(C,"layout"),onPlay:A,onComplete:S};(h.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else g||pT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,aa(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ere),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hT);return}this.isUpdating||this.nodes.forEach(xre),this.isUpdating=!1,this.nodes.forEach(wre),this.nodes.forEach(gre),this.nodes.forEach(vre),this.clearAllSnapshots();const u=bs.now();kr.delta=ua(0,1e3/60,u-kr.timestamp),kr.timestamp=u,kr.isProcessing=!0,r1.update.process(kr),r1.preRender.process(kr),r1.render.process(kr),kr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,K3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($re),this.sharedNodes.forEach(Dre)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Dn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Dn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ni(this.snapshot.measuredBox.x)&&!ni(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!lO(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;s&&(u||Tu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const u=this.measurePageBox();let l=this.removeElementScroll(u);return s&&(l=this.removeTransform(l)),_re(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:u}=this.options;if(!u)return rr();const l=u.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Rre))){const{scroll:h}=this.root;h&&(Nl(l.x,h.offset.x),Nl(l.y,h.offset.y))}return l}removeElementScroll(s){var u;const l=rr();if(Xi(l,s),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Xi(l,s),Nl(l.x,m.offset.x),Nl(l.y,m.offset.y))}return l}applyTransform(s,u=!1){const l=rr();Xi(l,s);for(let d=0;d<this.path.length;d++){const h=this.path[d];!u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&jl(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Tu(h.latestValues)&&jl(l,h.latestValues)}return Tu(this.latestValues)&&jl(l,this.latestValues),l}removeTransform(s){const u=rr();Xi(u,s);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!Tu(d.latestValues))continue;Gb(d.latestValues)&&d.updateSnapshot();const h=rr(),m=d.measurePageBox();Xi(h,m),sT(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return Tu(this.latestValues)&&sT(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==kr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var u;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==l;if(!(s||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=kr.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rr(),this.relativeTargetOrigin=rr(),qf(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Xi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=rr(),this.targetWithTransforms=rr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),kne(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Xi(this.target,this.layout.layoutBox),rO(this.target,this.targetDelta)):Xi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rr(),this.relativeTargetOrigin=rr(),qf(this.relativeTargetOrigin,this.target,b.target),Xi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Gb(this.parent.latestValues)||nO(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const u=this.getLead(),l=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(d=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===kr.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Xi(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;Une(this.layoutCorrected,this.treeScale,this.path,l),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=rr());const{target:x}=u;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rT(this.prevProjectionDelta.x,this.projectionDelta.x),rT(this.prevProjectionDelta.y,this.projectionDelta.y)),zf(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!fT(this.projectionDelta.x,this.prevProjectionDelta.x)||!fT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vl(),this.projectionDelta=Vl(),this.projectionDeltaWithTransform=Vl()}setAnimationOrigin(s,u=!1){const l=this.snapshot,d=l?l.latestValues:{},h={...this.latestValues},m=Vl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const g=rr(),b=l?l.source:void 0,x=this.layout?this.layout.source:void 0,C=b!==x,A=this.getStack(),S=!A||A.members.length<=1,w=!!(C&&!S&&this.options.crossfade===!0&&!this.path.some(Tre));this.animationProgress=0;let D;this.mixTargetDelta=k=>{const R=k/1e3;mT(m.x,s.x,R),mT(m.y,s.y,R),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qf(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Are(this.relativeTarget,this.relativeTargetOrigin,g,R),D&&fre(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=rr()),Xi(D,this.relativeTarget)),C&&(this.animationValues=h,ore(h,d,this.latestValues,R,w,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(aa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Dn.update(()=>{hp.hasAnimatedSinceResize=!0,this.currentAnimation=Qne(0,dT,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(dT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:l,layout:d,latestValues:h}=s;if(!(!u||!l||!d)){if(this!==s&&this.layout&&d&&hO(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||rr();const m=ni(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+m;const g=ni(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+g}Xi(u,l),jl(u,h),zf(this.projectionDeltaWithTransform,this.layoutCorrected,u,h)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new dre),this.sharedNodes.get(s).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;const d={};l.z&&d1("z",s,d,this.animationValues);for(let h=0;h<f1.length;h++)d1(`rotate${f1[h]}`,s,d,this.animationValues),d1(`skew${f1[h]}`,s,d,this.animationValues);s.render();for(const h in d)s.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);s.scheduleRender()}getProjectionStyles(s){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return pre;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=fp(s==null?void 0:s.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=fp(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Tu(this.latestValues)&&(C.transform=h?h({},""):"none",this.hasProjected=!1),C}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=hre(this.projectionDeltaWithTransform,this.treeScale,g),h&&(d.transform=h(g,d.transform));const{x:b,y:x}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${x.origin*100}% 0`,m.animationValues?d.opacity=m===this?(l=(u=g.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const C in ad){if(g[C]===void 0)continue;const{correct:A,applyTo:S,isCSSVariable:w}=ad[C],D=d.transform==="none"?g[C]:A(g[C],m);if(S){const k=S.length;for(let R=0;R<k;R++)d[S[R]]=D}else w?this.options.visualElement.renderState.vars[C]=D:d[C]=D}return this.options.layoutId&&(d.pointerEvents=m===this?fp(s==null?void 0:s.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(hT),this.root.sharedNodes.clear()}}}function gre(e){e.updateLayout()}function vre(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Qi(m=>{const g=s?n.measuredBox[m]:n.layoutBox[m],b=ni(g);g.min=r[m].min,g.max=g.min+b}):hO(o,n.layoutBox,r)&&Qi(m=>{const g=s?n.measuredBox[m]:n.layoutBox[m],b=ni(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const u=Vl();zf(u,r,n.layoutBox);const l=Vl();s?zf(l,e.applyTransform(i,!0),n.measuredBox):zf(l,r,n.layoutBox);const d=!lO(u);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const x=rr();qf(x,n.layoutBox,g.layoutBox);const C=rr();qf(C,r,b.layoutBox),cO(x,C)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function yre(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function bre(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $re(e){e.clearSnapshot()}function hT(e){e.clearMeasurements()}function xre(e){e.isLayoutDirty=!1}function wre(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function pT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Cre(e){e.resolveTargetDelta()}function Sre(e){e.calcProjection()}function Ere(e){e.resetSkewAndRotation()}function Dre(e){e.removeLeadSnapshot()}function mT(e,t,n){e.translate=Vn(t.translate,0,n),e.scale=Vn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function gT(e,t,n,r){e.min=Vn(t.min,n.min,r),e.max=Vn(t.max,n.max,r)}function Are(e,t,n,r){gT(e.x,t.x,n.x,r),gT(e.y,t.y,n.y,r)}function Tre(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Pre={duration:.45,ease:[.4,0,.1,1]},vT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yT=vT("applewebkit/")&&!vT("chrome/")?Math.round:wi;function bT(e){e.min=yT(e.min),e.max=yT(e.max)}function _re(e){bT(e.x),bT(e.y)}function hO(e,t,n){return e==="position"||e==="preserve-aspect"&&!Fne(cT(t),cT(n),.2)}function Rre(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Mre=dO({attachResizeListener:(e,t)=>fd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),h1={current:void 0},pO=dO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!h1.current){const e=new Mre({});e.mount(window),e.setOptions({layoutScroll:!0}),h1.current=e}return h1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Fre={pan:{Feature:Yne},drag:{Feature:Gne,ProjectionNode:pO,MeasureLayout:sO}};function $T(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&&Dn.postRender(()=>o(t,Bd(t)))}let kre=class extends iu{mount(){const{current:t}=this.node;t&&(this.unmount=Fee(t,(n,r)=>($T(this.node,r,"Start"),i=>$T(this.node,i,"End"))))}unmount(){}},Ore=class extends iu{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=Ld(fd(this.node.current,"focus",()=>this.onFocus()),fd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function xT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Dn.postRender(()=>o(t,Bd(t)))}let Ire=class extends iu{mount(){const{current:t}=this.node;t&&(this.unmount=Lee(t,(n,r)=>(xT(this.node,r,"Start"),(i,{success:o})=>xT(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Zb=new WeakMap,p1=new WeakMap,Lre=e=>{const t=Zb.get(e.target);t&&t(e)},Bre=e=>{e.forEach(Lre)};function Vre({root:e,...t}){const n=e||document;p1.has(n)||p1.set(n,{});const r=p1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Bre,{root:e,...t})),r[i]}function Nre(e,t,n){const r=Vre(t);return Zb.set(e,n),r.observe(e),()=>{Zb.delete(e),r.unobserve(e)}}const jre={some:0,all:1};let Kre=class extends iu{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:jre[i]},u=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(l)};return Nre(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ure(t,n))&&this.startObserver()}unmount(){}};function Ure({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const zre={inView:{Feature:Kre},tap:{Feature:Ire},focus:{Feature:Ore},hover:{Feature:kre}},qre={layout:{ProjectionNode:pO,MeasureLayout:sO}},Xb={current:null},mO={current:!1};function Wre(){if(mO.current=!0,!!L3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xb.current=e.matches;e.addListener(t),t()}else Xb.current=!1}const Hre=[...B7,Kr,Qa],Gre=e=>Hre.find(L7(e)),Yre=new WeakMap;function Zre(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Or(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Xm(i.version==="12.4.3",`Attempting to mix Motion versions ${i.version} with 12.4.3 may not work as expected.`);else if(Or(o))e.addValue(r,dc(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,dc(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Xre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=f$,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 b=bs.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Dn.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:h}=s;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=eg(n),this.isVariantNode=Hk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const x=g[b];l[b]!==void 0&&Or(x)&&x.set(l[b],!1)}}mount(t){this.current=t,Yre.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)),mO.current||Wre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Xb.current,process.env.NODE_ENV!=="production"&&Xm(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),aa(this.notifyUpdate),aa(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=sl.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Dn.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 fc){const n=fc[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):rr()}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<wT.length;r++){const i=wT[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=Zre(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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=dc(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"&&(O7(i)||D7(i))?i=parseFloat(i):!Gre(i)&&Qa.test(n)&&(i=M7(t,n)),this.setBaseTarget(t,Or(i)?i.get():i)),Or(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=X3(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&&!Or(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 o$),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},gO=class extends Xre{constructor(){super(...arguments),this.KeyframeResolver=V7}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;Or(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Jre(e){return window.getComputedStyle(e)}let Qre=class extends gO{constructor(){super(...arguments),this.type="html",this.renderInstance=i7}readValueFromInstance(t,n){if(sl.has(n)){const r=c$(n);return r&&r.default||0}else{const r=Jre(t),i=(U3(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return iO(t,n)}build(t,n,r){W3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return J3(t,n,r)}},eie=class extends gO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rr,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&r7(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(sl.has(n)){const r=c$(n);return r&&r.default||0}return n=o7.has(n)?n:j3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return a7(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Dn.postRender(this.updateDimensions)}build(t,n,r){Y3(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){s7(t,n,r,i)}mount(t){this.isSVGTag=Z3(t.tagName),super.mount(t)}};const tie=(e,t)=>G3(e)?new eie(t):new Qre(t,{allowProjection:e!==_.Fragment}),nie=Dee({...Sne,...zre,...Fre,...qre},tie),vO=KQ(nie);function yO(e){const t=kd(()=>dc(e)),{isStatic:n}=_.useContext(I3);if(n){const[,r]=_.useState(e);_.useEffect(()=>t.on("change",r),[])}return t}function bO(e,t){const n=yO(t()),r=()=>n.set(t());return r(),Uk(()=>{const i=()=>Dn.preRender(r,!1,!0),o=e.map(s=>s.on("change",i));return()=>{o.forEach(s=>s()),aa(r)}}),n}const rie=e=>e&&typeof e=="object"&&e.mix,iie=e=>rie(e)?e.mix:void 0;function oie(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],s=e[3+n],u=W7(i,o,{mixer:iie(o[0]),...s});return t?u(r):u}function sie(e){Nf.current=[],e();const t=bO(Nf.current,e);return Nf.current=void 0,t}function aie(e,t,n,r){if(typeof e=="function")return sie(e);const i=typeof t=="function"?t:oie(t,n,r);return Array.isArray(e)?CT(e,i):CT([e],([o])=>i(o))}function CT(e,t){const n=kd(()=>[]);return bO(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const $O=_.createContext(null);function uie(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const o=r>0?1:-1,s=e[i+o];if(!s)return e;const u=e[i],l=s.layout,d=Vn(l.min,l.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?Nee(e,i,i+o):e}function lie({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},s){const u=kd(()=>vO[t]),l=[],d=_.useRef(!1);$s(!!i,"Reorder.Group must be provided a values prop");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex(x=>m===x.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(die)},updateOrder:(m,g,b)=>{if(d.current)return;const x=uie(l,m,g,b);l!==x&&(d.current=!0,r(x.map(fie).filter(C=>i.indexOf(C)!==-1)))}};return _.useEffect(()=>{d.current=!1}),oa.jsx(u,{...o,ref:s,ignoreStrict:!0,children:oa.jsx($O.Provider,{value:h,children:e})})}const cie=_.forwardRef(lie);function fie(e){return e.value}function die(e,t){return e.layout.min-t.layout.min}function ST(e,t=0){return Or(e)?e:yO(t)}function hie({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...s},u){const l=kd(()=>vO[r]),d=_.useContext($O),h={x:ST(t.x),y:ST(t.y)},m=aie([h.x,h.y],([C,A])=>C||A?1:"unset");$s(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:g,registerItem:b,updateOrder:x}=d;return oa.jsx(l,{drag:g,...s,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:o,onDrag:(C,A)=>{const{velocity:S}=A;S[g]&&x(n,h[g].get(),S[g]),i&&i(C,A)},onLayoutMeasure:C=>b(n,C),ref:u,ignoreStrict:!0,children:e})}const pie=_.forwardRef(hie);var pp={exports:{}},mie=pp.exports,ET;function gie(){return ET||(ET=1,function(e,t){(function(n,r){e.exports=r()})(mie,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var s=i.prototype,u=s.format;o.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,x,C){var A=C&&C.toUpperCase();return x||g[C]||n[C]||g[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,w,D){return w||D.slice(1)})})}(l,d===void 0?{}:d);return u.call(this,h)}}})}(pp)),pp.exports}var vie=gie();const yie=Lo(vie),DT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=lt(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},xO=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?DT(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>DT(i,n,e))}},bie=(e,t)=>{t.shouldUseNativeValidation&&xO(e,t);const n={};for(const r in e){const i=lt(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if($ie(t.names||Object.keys(e),r)){const s=Object.assign({},lt(n,r));vn(s,"root",o),vn(n,r,s)}else vn(n,r,o)}return n},$ie=(e,t)=>e.some(n=>n.match(`^${t}\\.\\d+`));function xie(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(s,u){try{var l=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return o.shouldUseNativeValidation&&xO({},o),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return u(d)}return l&&l.then?l.then(void 0,u):l}(0,function(s){if(!s.inner)throw s;return{values:{},errors:bie((u=s,l=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,h){if(d[h.path]||(d[h.path]={message:h.message,type:h.type}),l){var m=d[h.path].types,g=m&&m[h.type];d[h.path]=e_(h.path,l,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),o)};var u,l}))}catch(s){return Promise.reject(s)}}}var m1,AT;function wie(){if(AT)return m1;AT=1;var e=Dc(),t=Tc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return m1=r,m1}var Cie=wie();const Sie=Lo(Cie);var Rf={exports:{}},Eie=Rf.exports,TT;function Die(){return TT||(TT=1,function(e,t){(function(n,r){r(t,_)})(Eie,function(n,r){function i(j){return j&&typeof j=="object"&&"default"in j?j:{default:j}}var o=i(r),s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof io<"u"?io:typeof self<"u"?self:{},u={exports:{}};(function(j,ne){typeof navigator<"u"&&function(K,N){j.exports=N()}(s,function(){var K="http://www.w3.org/2000/svg",N="",I=!1,de=-999999,se=function(p){I=!!p},ie=function(){return I},Ae=function(p){N=p},Pe=function(){return N};function Ie(c){return document.createElement(c)}function Le(c,p){var v,$=c.length,T;for(v=0;v<$;v+=1){T=c[v].prototype;for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(p.prototype[P]=T[P])}}function Je(c){function p(){}return p.prototype=c,p}var Qe=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].pause()},resume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].resume()},setRate:function(v){var $,T=this.audios.length;for($=0;$<T;$+=1)this.audios[$].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),ye=function(){function c(v,$){var T=0,P=[],U;switch(v){case"int16":case"uint8c":U=1;break;default:U=1.1;break}for(T=0;T<$;T+=1)P.push(U);return P}function p(v,$){return v==="float32"?new Float32Array($):v==="int16"?new Int16Array($):v==="uint8c"?new Uint8ClampedArray($):c(v,$)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function Ne(c){return Array.apply(null,{length:c})}var He=!0,Ke=null,Be="",st=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Dt=Math.pow,ln=Math.sqrt,At=Math.floor,It=Math.min,we=150,Se=Math.PI/180,Re=.5519;function Ge(c,p,v,$){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=$<0?-1:1}function rt(c,p){this.type=c,this.direction=p<0?-1:1}function nt(c,p,v,$){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=$<0?-1:1}function dt(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function Et(c,p){this.type=c,this.target=p}function xn(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function en(c){this.type="configError",this.nativeError=c}var Gt=function(){var c=0;return function(){return c+=1,Be+"__lottie_element_"+c}}();function Ir(c,p,v){var $,T,P,U,ge,Q,$e,Ce;switch(U=Math.floor(c*6),ge=c*6-U,Q=v*(1-p),$e=v*(1-ge*p),Ce=v*(1-(1-ge)*p),U%6){case 0:$=v,T=Ce,P=Q;break;case 1:$=$e,T=v,P=Q;break;case 2:$=Q,T=v,P=Ce;break;case 3:$=Q,T=$e,P=v;break;case 4:$=Ce,T=Q,P=v;break;case 5:$=v,T=Q,P=$e;break}return[$,T,P]}function Tr(c,p,v){var $=Math.max(c,p,v),T=Math.min(c,p,v),P=$-T,U,ge=$===0?0:P/$,Q=$/255;switch($){case T:U=0;break;case c:U=p-v+P*(p<v?6:0),U/=6*P;break;case p:U=v-c+P*2,U/=6*P;break;case v:U=c-p+P*4,U/=6*P;break}return[U,ge,Q]}function Yt(c,p){var v=Tr(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),Ir(v[0],v[1],v[2])}function kt(c,p){var v=Tr(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),Ir(v[0],v[1],v[2])}function jt(c,p){var v=Tr(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),Ir(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function($,T,P){return $<0&&($=0),T<0&&(T=0),P<0&&(P=0),"#"+c[$]+c[T]+c[P]}})();var tn=function(p){He=!!p},Zn=function(){return He},Si=function(p){Ke=p},ai=function(){return Ke},ui=function(p){we=p},Gr=function(){return we},Ko=function(p){Be=p};function Ct(c){return document.createElementNS(K,c)}function Pr(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pr=function(v){return typeof v}:Pr=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Pr(c)}var Ei=function(){var c=1,p=[],v,$,T={onmessage:function(){},postMessage:function(ee){v({data:ee})}},P={postMessage:function(ee){T.onmessage({data:ee})}};function U(M){if(window.Worker&&window.Blob&&ie()){var ee=new Blob(["var _workerSelf = self; self.onmessage = ",M.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(ee);return new Worker(Y)}return v=M,T}function ge(){$||($=U(function(ee){function Y(){function he(je,xe){var fe,J,ve=je.length,ze,ke,mt,Lt;for(J=0;J<ve;J+=1)if(fe=je[J],"ks"in fe&&!fe.completed){if(fe.completed=!0,fe.hasMask){var _t=fe.masksProperties;for(ke=_t.length,ze=0;ze<ke;ze+=1)if(_t[ze].pt.k.i)G(_t[ze].pt.k);else for(Lt=_t[ze].pt.k.length,mt=0;mt<Lt;mt+=1)_t[ze].pt.k[mt].s&&G(_t[ze].pt.k[mt].s[0]),_t[ze].pt.k[mt].e&&G(_t[ze].pt.k[mt].e[0])}fe.ty===0?(fe.layers=L(fe.refId,xe),he(fe.layers,xe)):fe.ty===4?V(fe.shapes):fe.ty===5&&ht(fe)}}function W(je,xe){if(je){var fe=0,J=je.length;for(fe=0;fe<J;fe+=1)je[fe].t===1&&(je[fe].data.layers=L(je[fe].data.refId,xe),he(je[fe].data.layers,xe))}}function Z(je,xe){for(var fe=0,J=xe.length;fe<J;){if(xe[fe].id===je)return xe[fe];fe+=1}return null}function L(je,xe){var fe=Z(je,xe);return fe?fe.layers.__used?JSON.parse(JSON.stringify(fe.layers)):(fe.layers.__used=!0,fe.layers):null}function V(je){var xe,fe=je.length,J,ve;for(xe=fe-1;xe>=0;xe-=1)if(je[xe].ty==="sh")if(je[xe].ks.k.i)G(je[xe].ks.k);else for(ve=je[xe].ks.k.length,J=0;J<ve;J+=1)je[xe].ks.k[J].s&&G(je[xe].ks.k[J].s[0]),je[xe].ks.k[J].e&&G(je[xe].ks.k[J].e[0]);else je[xe].ty==="gr"&&V(je[xe].it)}function G(je){var xe,fe=je.i.length;for(xe=0;xe<fe;xe+=1)je.i[xe][0]+=je.v[xe][0],je.i[xe][1]+=je.v[xe][1],je.o[xe][0]+=je.v[xe][0],je.o[xe][1]+=je.v[xe][1]}function re(je,xe){var fe=xe?xe.split("."):[100,100,100];return je[0]>fe[0]?!0:fe[0]>je[0]?!1:je[1]>fe[1]?!0:fe[1]>je[1]?!1:je[2]>fe[2]?!0:fe[2]>je[2]?!1:null}var le=function(){var je=[4,4,14];function xe(J){var ve=J.t.d;J.t.d={k:[{s:ve,t:0}]}}function fe(J){var ve,ze=J.length;for(ve=0;ve<ze;ve+=1)J[ve].ty===5&&xe(J[ve])}return function(J){if(re(je,J.v)&&(fe(J.layers),J.assets)){var ve,ze=J.assets.length;for(ve=0;ve<ze;ve+=1)J.assets[ve].layers&&fe(J.assets[ve].layers)}}}(),me=function(){var je=[4,7,99];return function(xe){if(xe.chars&&!re(je,xe.v)){var fe,J=xe.chars.length;for(fe=0;fe<J;fe+=1){var ve=xe.chars[fe];ve.data&&ve.data.shapes&&(V(ve.data.shapes),ve.data.ip=0,ve.data.op=99999,ve.data.st=0,ve.data.sr=1,ve.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xe.chars[fe].t||(ve.data.shapes.push({ty:"no"}),ve.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Oe=function(){var je=[5,7,15];function xe(J){var ve=J.t.p;typeof ve.a=="number"&&(ve.a={a:0,k:ve.a}),typeof ve.p=="number"&&(ve.p={a:0,k:ve.p}),typeof ve.r=="number"&&(ve.r={a:0,k:ve.r})}function fe(J){var ve,ze=J.length;for(ve=0;ve<ze;ve+=1)J[ve].ty===5&&xe(J[ve])}return function(J){if(re(je,J.v)&&(fe(J.layers),J.assets)){var ve,ze=J.assets.length;for(ve=0;ve<ze;ve+=1)J.assets[ve].layers&&fe(J.assets[ve].layers)}}}(),ot=function(){var je=[4,1,9];function xe(J){var ve,ze=J.length,ke,mt;for(ve=0;ve<ze;ve+=1)if(J[ve].ty==="gr")xe(J[ve].it);else if(J[ve].ty==="fl"||J[ve].ty==="st")if(J[ve].c.k&&J[ve].c.k[0].i)for(mt=J[ve].c.k.length,ke=0;ke<mt;ke+=1)J[ve].c.k[ke].s&&(J[ve].c.k[ke].s[0]/=255,J[ve].c.k[ke].s[1]/=255,J[ve].c.k[ke].s[2]/=255,J[ve].c.k[ke].s[3]/=255),J[ve].c.k[ke].e&&(J[ve].c.k[ke].e[0]/=255,J[ve].c.k[ke].e[1]/=255,J[ve].c.k[ke].e[2]/=255,J[ve].c.k[ke].e[3]/=255);else J[ve].c.k[0]/=255,J[ve].c.k[1]/=255,J[ve].c.k[2]/=255,J[ve].c.k[3]/=255}function fe(J){var ve,ze=J.length;for(ve=0;ve<ze;ve+=1)J[ve].ty===4&&xe(J[ve].shapes)}return function(J){if(re(je,J.v)&&(fe(J.layers),J.assets)){var ve,ze=J.assets.length;for(ve=0;ve<ze;ve+=1)J.assets[ve].layers&&fe(J.assets[ve].layers)}}}(),it=function(){var je=[4,4,18];function xe(J){var ve,ze=J.length,ke,mt;for(ve=ze-1;ve>=0;ve-=1)if(J[ve].ty==="sh")if(J[ve].ks.k.i)J[ve].ks.k.c=J[ve].closed;else for(mt=J[ve].ks.k.length,ke=0;ke<mt;ke+=1)J[ve].ks.k[ke].s&&(J[ve].ks.k[ke].s[0].c=J[ve].closed),J[ve].ks.k[ke].e&&(J[ve].ks.k[ke].e[0].c=J[ve].closed);else J[ve].ty==="gr"&&xe(J[ve].it)}function fe(J){var ve,ze,ke=J.length,mt,Lt,_t,kn;for(ze=0;ze<ke;ze+=1){if(ve=J[ze],ve.hasMask){var nn=ve.masksProperties;for(Lt=nn.length,mt=0;mt<Lt;mt+=1)if(nn[mt].pt.k.i)nn[mt].pt.k.c=nn[mt].cl;else for(kn=nn[mt].pt.k.length,_t=0;_t<kn;_t+=1)nn[mt].pt.k[_t].s&&(nn[mt].pt.k[_t].s[0].c=nn[mt].cl),nn[mt].pt.k[_t].e&&(nn[mt].pt.k[_t].e[0].c=nn[mt].cl)}ve.ty===4&&xe(ve.shapes)}}return function(J){if(re(je,J.v)&&(fe(J.layers),J.assets)){var ve,ze=J.assets.length;for(ve=0;ve<ze;ve+=1)J.assets[ve].layers&&fe(J.assets[ve].layers)}}}();function Ue(je){je.__complete||(ot(je),le(je),me(je),Oe(je),it(je),he(je.layers,je.assets),W(je.chars,je.assets),je.__complete=!0)}function ht(je){je.t.a.length===0&&"m"in je.t.p}var gt={};return gt.completeData=Ue,gt.checkColors=ot,gt.checkChars=me,gt.checkPathProperties=Oe,gt.checkShapes=it,gt.completeLayers=he,gt}if(P.dataManager||(P.dataManager=Y()),P.assetLoader||(P.assetLoader=function(){function he(Z){var L=Z.getResponseHeader("content-type");return L&&Z.responseType==="json"&&L.indexOf("json")!==-1||Z.response&&Pr(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function W(Z,L,V,G){var re,le=new XMLHttpRequest;try{le.responseType="json"}catch{}le.onreadystatechange=function(){if(le.readyState===4)if(le.status===200)re=he(le),V(re);else try{re=he(le),V(re)}catch(me){G&&G(me)}};try{le.open(["G","E","T"].join(""),Z,!0)}catch{le.open(["G","E","T"].join(""),L+"/"+Z,!0)}le.send()}return{load:W}}()),ee.data.type==="loadAnimation")P.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){P.dataManager.completeData(he),P.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){P.postMessage({id:ee.data.id,status:"error"})});else if(ee.data.type==="complete"){var pe=ee.data.animation;P.dataManager.completeData(pe),P.postMessage({id:ee.data.id,payload:pe,status:"success"})}else ee.data.type==="loadData"&&P.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){P.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){P.postMessage({id:ee.data.id,status:"error"})})}),$.onmessage=function(M){var ee=M.data,Y=ee.id,pe=p[Y];p[Y]=null,ee.status==="success"?pe.onComplete(ee.payload):pe.onError&&pe.onError()})}function Q(M,ee){c+=1;var Y="processId_"+c;return p[Y]={onComplete:M,onError:ee},Y}function $e(M,ee,Y){ge();var pe=Q(ee,Y);$.postMessage({type:"loadAnimation",path:M,fullPath:window.location.origin+window.location.pathname,id:pe})}function Ce(M,ee,Y){ge();var pe=Q(ee,Y);$.postMessage({type:"loadData",path:M,fullPath:window.location.origin+window.location.pathname,id:pe})}function Fe(M,ee,Y){ge();var pe=Q(ee,Y);$.postMessage({type:"complete",animation:M,id:pe})}return{loadAnimation:$e,loadData:Ce,completeAnimation:Fe}}(),Cs=function(){var c=function(){var W=Ie("canvas");W.width=1,W.height=1;var Z=W.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),W}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function $(W,Z,L){var V="";if(W.e)V=W.p;else if(Z){var G=W.p;G.indexOf("images/")!==-1&&(G=G.split("/")[1]),V=Z+G}else V=L,V+=W.u?W.u:"",V+=W.p;return V}function T(W){var Z=0,L=setInterval((function(){var V=W.getBBox();(V.width||Z>500)&&(this._imageLoaded(),clearInterval(L)),Z+=1}).bind(this),50)}function P(W){var Z=$(W,this.assetsPath,this.path),L=Ct("image");st?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){V.img=c,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var V={img:L,assetData:W};return V}function U(W){var Z=$(W,this.assetsPath,this.path),L=Ie("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){V.img=c,this._imageLoaded()}).bind(this),!1),L.src=Z;var V={img:L,assetData:W};return V}function ge(W){var Z={assetData:W},L=$(W,this.assetsPath,this.path);return Ei.loadData(L,(function(V){Z.img=V,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function Q(W,Z){this.imagesLoadedCb=Z;var L,V=W.length;for(L=0;L<V;L+=1)W[L].layers||(!W[L].t||W[L].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(W[L]))):W[L].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[L]))))}function $e(W){this.path=W||""}function Ce(W){this.assetsPath=W||""}function Fe(W){for(var Z=0,L=this.images.length;Z<L;){if(this.images[Z].assetData===W)return this.images[Z].img;Z+=1}return null}function M(){this.imagesLoadedCb=null,this.images.length=0}function ee(){return this.totalImages===this.loadedAssets}function Y(){return this.totalFootages===this.loadedFootagesCount}function pe(W,Z){W==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function he(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=T.bind(this),this.createFootageData=ge.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return he.prototype={loadAssets:Q,setAssetsPath:Ce,setPath:$e,loadedImages:ee,loadedFootages:Y,destroy:M,getAsset:Fe,createImgData:U,createImageData:P,imageLoaded:p,footageLoaded:v,setCacheType:pe},he}();function pa(){}pa.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var $=this._cbs[p],T=0;T<$.length;T+=1)$[T](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var $=0,T=this._cbs[p].length;$<T;)this._cbs[p][$]===v&&(this._cbs[p].splice($,1),$-=1,T-=1),$+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var ou=function(){function c(p){for(var v=p.split(`\r
146
- `),$={},T,P=0,U=0;U<v.length;U+=1)T=v[U].split(":"),T.length===2&&($[T[0]]=T[1].trim(),P+=1);if(P===0)throw new Error;return $}return function(p){for(var v=[],$=0;$<p.length;$+=1){var T=p[$],P={time:T.tm,duration:T.dr};try{P.payload=JSON.parse(p[$].cm)}catch{try{P.payload=c(p[$].cm)}catch{P.payload={name:p[$].cm}}}v.push(P)}return v}}(),ma=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var $=0,T=this.compositions.length;$<T;){if(this.compositions[$].data&&this.compositions[$].data.nm===v)return this.compositions[$].prepareFrame&&this.compositions[$].data.xt&&this.compositions[$].prepareFrame(this.currentFrame),this.compositions[$].compInterface;$+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=c,p}}(),fo={},ga=function(p,v){fo[p]=v};function Di(c){return fo[c]}function Ai(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ai=function(v){return typeof v}:Ai=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Ai(c)}var wt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Gt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Zn(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ma(),this.imagePreloader=new Cs,this.audioController=Qe(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ge("drawnFrame",0,0,0)};Le([pa],wt),wt.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var p="svg";c.animType?p=c.animType:c.renderer&&(p=c.renderer);var v=Di(p);this.renderer=new v(this,c.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Ei.loadAnimation(c.path,this.configAnimation,this.onSetupError))},wt.prototype.onSetupError=function(){this.trigger("data_failed")},wt.prototype.setupAnimation=function(c){Ei.completeAnimation(c,this.configAnimation)},wt.prototype.setData=function(c,p){p&&Ai(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:c,animationData:p},$=c.attributes;v.path=$.getNamedItem("data-animation-path")?$.getNamedItem("data-animation-path").value:$.getNamedItem("data-bm-path")?$.getNamedItem("data-bm-path").value:$.getNamedItem("bm-path")?$.getNamedItem("bm-path").value:"",v.animType=$.getNamedItem("data-anim-type")?$.getNamedItem("data-anim-type").value:$.getNamedItem("data-bm-type")?$.getNamedItem("data-bm-type").value:$.getNamedItem("bm-type")?$.getNamedItem("bm-type").value:$.getNamedItem("data-bm-renderer")?$.getNamedItem("data-bm-renderer").value:$.getNamedItem("bm-renderer")?$.getNamedItem("bm-renderer").value:"canvas";var T=$.getNamedItem("data-anim-loop")?$.getNamedItem("data-anim-loop").value:$.getNamedItem("data-bm-loop")?$.getNamedItem("data-bm-loop").value:$.getNamedItem("bm-loop")?$.getNamedItem("bm-loop").value:"";T==="false"?v.loop=!1:T==="true"?v.loop=!0:T!==""&&(v.loop=parseInt(T,10));var P=$.getNamedItem("data-anim-autoplay")?$.getNamedItem("data-anim-autoplay").value:$.getNamedItem("data-bm-autoplay")?$.getNamedItem("data-bm-autoplay").value:$.getNamedItem("bm-autoplay")?$.getNamedItem("bm-autoplay").value:!0;v.autoplay=P!=="false",v.name=$.getNamedItem("data-name")?$.getNamedItem("data-name").value:$.getNamedItem("data-bm-name")?$.getNamedItem("data-bm-name").value:$.getNamedItem("bm-name")?$.getNamedItem("bm-name").value:"";var U=$.getNamedItem("data-anim-prerender")?$.getNamedItem("data-anim-prerender").value:$.getNamedItem("data-bm-prerender")?$.getNamedItem("data-bm-prerender").value:$.getNamedItem("bm-prerender")?$.getNamedItem("bm-prerender").value:"";U==="false"&&(v.prerender=!1),this.setParams(v)},wt.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var p=this.animationData.layers,v,$=p.length,T=c.layers,P,U=T.length;for(P=0;P<U;P+=1)for(v=0;v<$;){if(p[v].id===T[P].id){p[v]=T[P];break}v+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for($=c.assets.length,v=0;v<$;v+=1)this.animationData.assets.push(c.assets[v]);this.animationData.__complete=!1,Ei.completeAnimation(this.animationData,this.onSegmentComplete)},wt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=ai();p&&p.initExpressions(this),this.loadNextSegment()},wt.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=c.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Ei.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},wt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},wt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},wt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},wt.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=ou(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},wt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},wt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=ai();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},wt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,$=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,$)},wt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},wt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},wt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},wt.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},wt.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},wt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},wt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},wt.prototype.getMarkerData=function(c){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===c)return p;return null},wt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var $=Number(c);if(isNaN($)){var T=this.getMarkerData(c);T&&this.goToAndStop(T.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},wt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var $=Number(c);if(isNaN($)){var T=this.getMarkerData(c);T&&(T.duration?this.playSegments([T.time,T.time+T.duration],!0):this.goToAndStop(T.time,!0))}else this.goToAndStop($,p,v);this.play()}},wt.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+c*this.frameModifier,v=!1;p>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(p>this.totalFrames?p%this.totalFrames:0)||(v=!0,p=this.totalFrames-1):p>=this.totalFrames?(this.playCount+=1,this.checkSegments(p%this.totalFrames)||(this.setCurrentRawFrameValue(p%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(p):p<0?this.checkSegments(p%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+p%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(v=!0,p=0)):this.setCurrentRawFrameValue(p),v&&(this.setCurrentRawFrameValue(p),this.pause(),this.trigger("complete"))}},wt.prototype.adjustSegment=function(c,p){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},wt.prototype.setSegment=function(c,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?v=c:this.currentRawFrame+this.firstFrame>p&&(v=p-c)),this.firstFrame=c,this.totalFrames=p-c,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},wt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),Ai(c[0])==="object"){var v,$=c.length;for(v=0;v<$;v+=1)this.segments.push(c[v])}else this.segments.push(c);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},wt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},wt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},wt.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},wt.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},wt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},wt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},wt.prototype.setLoop=function(c){this.loop=c},wt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},wt.prototype.getVolume=function(){return this.audioController.getVolume()},wt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},wt.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},wt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},wt.prototype.getPath=function(){return this.path},wt.prototype.getAssetsPath=function(c){var p="";if(c.e)p=c.p;else if(this.assetsPath){var v=c.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=c.u?c.u:"",p+=c.p;return p},wt.prototype.getAssetData=function(c){for(var p=0,v=this.assets.length;p<v;){if(c===this.assets[p].id)return this.assets[p];p+=1}return null},wt.prototype.hide=function(){this.renderer.hide()},wt.prototype.show=function(){this.renderer.show()},wt.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},wt.prototype.updateDocumentData=function(c,p,v){try{var $=this.renderer.getElementByPath(c);$.updateDocumentData(p,v)}catch{}},wt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new Ge(c,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new nt(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new rt(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new dt(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new Et(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ge(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new nt(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new rt(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new dt(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Et(c,this))},wt.prototype.triggerRenderFrameError=function(c){var p=new xn(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},wt.prototype.triggerConfigError=function(c){var p=new en(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var An=function(){var c={},p=[],v=0,$=0,T=0,P=!0,U=!1;function ge(xe){for(var fe=0,J=xe.target;fe<$;)p[fe].animation===J&&(p.splice(fe,1),fe-=1,$-=1,J.isPaused||Fe()),fe+=1}function Q(xe,fe){if(!xe)return null;for(var J=0;J<$;){if(p[J].elem===xe&&p[J].elem!==null)return p[J].animation;J+=1}var ve=new wt;return M(ve,xe),ve.setData(xe,fe),ve}function $e(){var xe,fe=p.length,J=[];for(xe=0;xe<fe;xe+=1)J.push(p[xe].animation);return J}function Ce(){T+=1,ot()}function Fe(){T-=1}function M(xe,fe){xe.addEventListener("destroy",ge),xe.addEventListener("_active",Ce),xe.addEventListener("_idle",Fe),p.push({elem:fe,animation:xe}),$+=1}function ee(xe){var fe=new wt;return M(fe,null),fe.setParams(xe),fe}function Y(xe,fe){var J;for(J=0;J<$;J+=1)p[J].animation.setSpeed(xe,fe)}function pe(xe,fe){var J;for(J=0;J<$;J+=1)p[J].animation.setDirection(xe,fe)}function he(xe){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.play(xe)}function W(xe){var fe=xe-v,J;for(J=0;J<$;J+=1)p[J].animation.advanceTime(fe);v=xe,T&&!U?window.requestAnimationFrame(W):P=!0}function Z(xe){v=xe,window.requestAnimationFrame(W)}function L(xe){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.pause(xe)}function V(xe,fe,J){var ve;for(ve=0;ve<$;ve+=1)p[ve].animation.goToAndStop(xe,fe,J)}function G(xe){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.stop(xe)}function re(xe){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.togglePause(xe)}function le(xe){var fe;for(fe=$-1;fe>=0;fe-=1)p[fe].animation.destroy(xe)}function me(xe,fe,J){var ve=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),ze,ke=ve.length;for(ze=0;ze<ke;ze+=1)J&&ve[ze].setAttribute("data-bm-type",J),Q(ve[ze],xe);if(fe&&ke===0){J||(J="svg");var mt=document.getElementsByTagName("body")[0];mt.innerText="";var Lt=Ie("div");Lt.style.width="100%",Lt.style.height="100%",Lt.setAttribute("data-bm-type",J),mt.appendChild(Lt),Q(Lt,xe)}}function Oe(){var xe;for(xe=0;xe<$;xe+=1)p[xe].animation.resize()}function ot(){!U&&T&&P&&(window.requestAnimationFrame(Z),P=!1)}function it(){U=!0}function Ue(){U=!1,ot()}function ht(xe,fe){var J;for(J=0;J<$;J+=1)p[J].animation.setVolume(xe,fe)}function gt(xe){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.mute(xe)}function je(xe){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.unmute(xe)}return c.registerAnimation=Q,c.loadAnimation=ee,c.setSpeed=Y,c.setDirection=pe,c.play=he,c.pause=L,c.stop=G,c.togglePause=re,c.searchAnimations=me,c.resize=Oe,c.goToAndStop=V,c.destroy=le,c.freeze=it,c.unfreeze=Ue,c.setVolume=ht,c.mute=gt,c.unmute=je,c.getRegisteredAnimations=$e,c}(),ho=function(){var c={};c.getBezierEasing=v;var p={};function v(Z,L,V,G,re){var le=re||("bez_"+Z+"_"+L+"_"+V+"_"+G).replace(/\./g,"p");if(p[le])return p[le];var me=new W([Z,L,V,G]);return p[le]=me,me}var $=4,T=.001,P=1e-7,U=10,ge=11,Q=1/(ge-1),$e=typeof Float32Array=="function";function Ce(Z,L){return 1-3*L+3*Z}function Fe(Z,L){return 3*L-6*Z}function M(Z){return 3*Z}function ee(Z,L,V){return((Ce(L,V)*Z+Fe(L,V))*Z+M(L))*Z}function Y(Z,L,V){return 3*Ce(L,V)*Z*Z+2*Fe(L,V)*Z+M(L)}function pe(Z,L,V,G,re){var le,me,Oe=0;do me=L+(V-L)/2,le=ee(me,G,re)-Z,le>0?V=me:L=me;while(Math.abs(le)>P&&++Oe<U);return me}function he(Z,L,V,G){for(var re=0;re<$;++re){var le=Y(L,V,G);if(le===0)return L;var me=ee(L,V,G)-Z;L-=me/le}return L}function W(Z){this._p=Z,this._mSampleValues=$e?new Float32Array(ge):new Array(ge),this._precomputed=!1,this.get=this.get.bind(this)}return W.prototype={get:function(L){var V=this._p[0],G=this._p[1],re=this._p[2],le=this._p[3];return this._precomputed||this._precompute(),V===G&&re===le?L:L===0?0:L===1?1:ee(this._getTForX(L),G,le)},_precompute:function(){var L=this._p[0],V=this._p[1],G=this._p[2],re=this._p[3];this._precomputed=!0,(L!==V||G!==re)&&this._calcSampleValues()},_calcSampleValues:function(){for(var L=this._p[0],V=this._p[2],G=0;G<ge;++G)this._mSampleValues[G]=ee(G*Q,L,V)},_getTForX:function(L){for(var V=this._p[0],G=this._p[2],re=this._mSampleValues,le=0,me=1,Oe=ge-1;me!==Oe&&re[me]<=L;++me)le+=Q;--me;var ot=(L-re[me])/(re[me+1]-re[me]),it=le+ot*Q,Ue=Y(it,V,G);return Ue>=T?he(L,it,V,G):Ue===0?it:pe(L,le,le+Q,V,G)}},c}(),va=function(){function c(p){return p.concat(Ne(p.length))}return{double:c}}(),pr=function(){return function(c,p,v){var $=0,T=c,P=Ne(T),U={newElement:ge,release:Q};function ge(){var $e;return $?($-=1,$e=P[$]):$e=p(),$e}function Q($e){$===T&&(P=va.double(P),T*=2),v&&v($e),P[$]=$e,$+=1}return U}}(),ya=function(){function c(){return{addedLength:0,percents:ye("float32",Gr()),lengths:ye("float32",Gr())}}return pr(8,c)}(),_r=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var $,T=v.lengths.length;for($=0;$<T;$+=1)ya.release(v.lengths[$]);v.lengths.length=0}return pr(8,c,p)}();function su(){var c=Math;function p(M,ee,Y,pe,he,W){var Z=M*pe+ee*he+Y*W-he*pe-W*M-Y*ee;return Z>-.001&&Z<.001}function v(M,ee,Y,pe,he,W,Z,L,V){if(Y===0&&W===0&&V===0)return p(M,ee,pe,he,Z,L);var G=c.sqrt(c.pow(pe-M,2)+c.pow(he-ee,2)+c.pow(W-Y,2)),re=c.sqrt(c.pow(Z-M,2)+c.pow(L-ee,2)+c.pow(V-Y,2)),le=c.sqrt(c.pow(Z-pe,2)+c.pow(L-he,2)+c.pow(V-W,2)),me;return G>re?G>le?me=G-re-le:me=le-re-G:le>re?me=le-re-G:me=re-G-le,me>-1e-4&&me<1e-4}var $=function(){return function(M,ee,Y,pe){var he=Gr(),W,Z,L,V,G,re=0,le,me=[],Oe=[],ot=ya.newElement();for(L=Y.length,W=0;W<he;W+=1){for(G=W/(he-1),le=0,Z=0;Z<L;Z+=1)V=Dt(1-G,3)*M[Z]+3*Dt(1-G,2)*G*Y[Z]+3*(1-G)*Dt(G,2)*pe[Z]+Dt(G,3)*ee[Z],me[Z]=V,Oe[Z]!==null&&(le+=Dt(me[Z]-Oe[Z],2)),Oe[Z]=me[Z];le&&(le=ln(le),re+=le),ot.percents[W]=G,ot.lengths[W]=re}return ot.addedLength=re,ot}}();function T(M){var ee=_r.newElement(),Y=M.c,pe=M.v,he=M.o,W=M.i,Z,L=M._length,V=ee.lengths,G=0;for(Z=0;Z<L-1;Z+=1)V[Z]=$(pe[Z],pe[Z+1],he[Z],W[Z+1]),G+=V[Z].addedLength;return Y&&L&&(V[Z]=$(pe[Z],pe[0],he[Z],W[0]),G+=V[Z].addedLength),ee.totalLength=G,ee}function P(M){this.segmentLength=0,this.points=new Array(M)}function U(M,ee){this.partialLength=M,this.point=ee}var ge=function(){var M={};return function(ee,Y,pe,he){var W=(ee[0]+"_"+ee[1]+"_"+Y[0]+"_"+Y[1]+"_"+pe[0]+"_"+pe[1]+"_"+he[0]+"_"+he[1]).replace(/\./g,"p");if(!M[W]){var Z=Gr(),L,V,G,re,le,me=0,Oe,ot,it=null;ee.length===2&&(ee[0]!==Y[0]||ee[1]!==Y[1])&&p(ee[0],ee[1],Y[0],Y[1],ee[0]+pe[0],ee[1]+pe[1])&&p(ee[0],ee[1],Y[0],Y[1],Y[0]+he[0],Y[1]+he[1])&&(Z=2);var Ue=new P(Z);for(G=pe.length,L=0;L<Z;L+=1){for(ot=Ne(G),le=L/(Z-1),Oe=0,V=0;V<G;V+=1)re=Dt(1-le,3)*ee[V]+3*Dt(1-le,2)*le*(ee[V]+pe[V])+3*(1-le)*Dt(le,2)*(Y[V]+he[V])+Dt(le,3)*Y[V],ot[V]=re,it!==null&&(Oe+=Dt(ot[V]-it[V],2));Oe=ln(Oe),me+=Oe,Ue.points[L]=new U(Oe,ot),it=ot}Ue.segmentLength=me,M[W]=Ue}return M[W]}}();function Q(M,ee){var Y=ee.percents,pe=ee.lengths,he=Y.length,W=At((he-1)*M),Z=M*ee.addedLength,L=0;if(W===he-1||W===0||Z===pe[W])return Y[W];for(var V=pe[W]>Z?-1:1,G=!0;G;)if(pe[W]<=Z&&pe[W+1]>Z?(L=(Z-pe[W])/(pe[W+1]-pe[W]),G=!1):W+=V,W<0||W>=he-1){if(W===he-1)return Y[W];G=!1}return Y[W]+(Y[W+1]-Y[W])*L}function $e(M,ee,Y,pe,he,W){var Z=Q(he,W),L=1-Z,V=c.round((L*L*L*M[0]+(Z*L*L+L*Z*L+L*L*Z)*Y[0]+(Z*Z*L+L*Z*Z+Z*L*Z)*pe[0]+Z*Z*Z*ee[0])*1e3)/1e3,G=c.round((L*L*L*M[1]+(Z*L*L+L*Z*L+L*L*Z)*Y[1]+(Z*Z*L+L*Z*Z+Z*L*Z)*pe[1]+Z*Z*Z*ee[1])*1e3)/1e3;return[V,G]}var Ce=ye("float32",8);function Fe(M,ee,Y,pe,he,W,Z){he<0?he=0:he>1&&(he=1);var L=Q(he,Z);W=W>1?1:W;var V=Q(W,Z),G,re=M.length,le=1-L,me=1-V,Oe=le*le*le,ot=L*le*le*3,it=L*L*le*3,Ue=L*L*L,ht=le*le*me,gt=L*le*me+le*L*me+le*le*V,je=L*L*me+le*L*V+L*le*V,xe=L*L*V,fe=le*me*me,J=L*me*me+le*V*me+le*me*V,ve=L*V*me+le*V*V+L*me*V,ze=L*V*V,ke=me*me*me,mt=V*me*me+me*V*me+me*me*V,Lt=V*V*me+me*V*V+V*me*V,_t=V*V*V;for(G=0;G<re;G+=1)Ce[G*4]=c.round((Oe*M[G]+ot*Y[G]+it*pe[G]+Ue*ee[G])*1e3)/1e3,Ce[G*4+1]=c.round((ht*M[G]+gt*Y[G]+je*pe[G]+xe*ee[G])*1e3)/1e3,Ce[G*4+2]=c.round((fe*M[G]+J*Y[G]+ve*pe[G]+ze*ee[G])*1e3)/1e3,Ce[G*4+3]=c.round((ke*M[G]+mt*Y[G]+Lt*pe[G]+_t*ee[G])*1e3)/1e3;return Ce}return{getSegmentsLength:T,getNewSegment:Fe,getPointInSegment:$e,buildBezierData:ge,pointOnLine2D:p,pointOnLine3D:v}}var Lr=su(),ut=function(){var c=de,p=Math.abs;function v(he,W){var Z=this.offsetTime,L;this.propType==="multidimensional"&&(L=ye("float32",this.pv.length));for(var V=W.lastIndex,G=V,re=this.keyframes.length-1,le=!0,me,Oe,ot;le;){if(me=this.keyframes[G],Oe=this.keyframes[G+1],G===re-1&&he>=Oe.t-Z){me.h&&(me=Oe),V=0;break}if(Oe.t-Z>he){V=G;break}G<re-1?G+=1:(V=0,le=!1)}ot=this.keyframesMetadata[G]||{};var it,Ue,ht,gt,je,xe,fe=Oe.t-Z,J=me.t-Z,ve;if(me.to){ot.bezierData||(ot.bezierData=Lr.buildBezierData(me.s,Oe.s||me.e,me.to,me.ti));var ze=ot.bezierData;if(he>=fe||he<J){var ke=he>=fe?ze.points.length-1:0;for(Ue=ze.points[ke].point.length,it=0;it<Ue;it+=1)L[it]=ze.points[ke].point[it]}else{ot.__fnct?xe=ot.__fnct:(xe=ho.getBezierEasing(me.o.x,me.o.y,me.i.x,me.i.y,me.n).get,ot.__fnct=xe),ht=xe((he-J)/(fe-J));var mt=ze.segmentLength*ht,Lt,_t=W.lastFrame<he&&W._lastKeyframeIndex===G?W._lastAddedLength:0;for(je=W.lastFrame<he&&W._lastKeyframeIndex===G?W._lastPoint:0,le=!0,gt=ze.points.length;le;){if(_t+=ze.points[je].partialLength,mt===0||ht===0||je===ze.points.length-1){for(Ue=ze.points[je].point.length,it=0;it<Ue;it+=1)L[it]=ze.points[je].point[it];break}else if(mt>=_t&&mt<_t+ze.points[je+1].partialLength){for(Lt=(mt-_t)/ze.points[je+1].partialLength,Ue=ze.points[je].point.length,it=0;it<Ue;it+=1)L[it]=ze.points[je].point[it]+(ze.points[je+1].point[it]-ze.points[je].point[it])*Lt;break}je<gt-1?je+=1:le=!1}W._lastPoint=je,W._lastAddedLength=_t-ze.points[je].partialLength,W._lastKeyframeIndex=G}}else{var kn,nn,Sr,cr,Gn;if(re=me.s.length,ve=Oe.s||me.e,this.sh&&me.h!==1)if(he>=fe)L[0]=ve[0],L[1]=ve[1],L[2]=ve[2];else if(he<=J)L[0]=me.s[0],L[1]=me.s[1],L[2]=me.s[2];else{var Jn=P(me.s),Qn=P(ve),Mr=(he-J)/(fe-J);T(L,$(Jn,Qn,Mr))}else for(G=0;G<re;G+=1)me.h!==1&&(he>=fe?ht=1:he<J?ht=0:(me.o.x.constructor===Array?(ot.__fnct||(ot.__fnct=[]),ot.__fnct[G]?xe=ot.__fnct[G]:(kn=me.o.x[G]===void 0?me.o.x[0]:me.o.x[G],nn=me.o.y[G]===void 0?me.o.y[0]:me.o.y[G],Sr=me.i.x[G]===void 0?me.i.x[0]:me.i.x[G],cr=me.i.y[G]===void 0?me.i.y[0]:me.i.y[G],xe=ho.getBezierEasing(kn,nn,Sr,cr).get,ot.__fnct[G]=xe)):ot.__fnct?xe=ot.__fnct:(kn=me.o.x,nn=me.o.y,Sr=me.i.x,cr=me.i.y,xe=ho.getBezierEasing(kn,nn,Sr,cr).get,me.keyframeMetadata=xe),ht=xe((he-J)/(fe-J)))),ve=Oe.s||me.e,Gn=me.h===1?me.s[G]:me.s[G]+(ve[G]-me.s[G])*ht,this.propType==="multidimensional"?L[G]=Gn:L=Gn}return W.lastIndex=V,L}function $(he,W,Z){var L=[],V=he[0],G=he[1],re=he[2],le=he[3],me=W[0],Oe=W[1],ot=W[2],it=W[3],Ue,ht,gt,je,xe;return ht=V*me+G*Oe+re*ot+le*it,ht<0&&(ht=-ht,me=-me,Oe=-Oe,ot=-ot,it=-it),1-ht>1e-6?(Ue=Math.acos(ht),gt=Math.sin(Ue),je=Math.sin((1-Z)*Ue)/gt,xe=Math.sin(Z*Ue)/gt):(je=1-Z,xe=Z),L[0]=je*V+xe*me,L[1]=je*G+xe*Oe,L[2]=je*re+xe*ot,L[3]=je*le+xe*it,L}function T(he,W){var Z=W[0],L=W[1],V=W[2],G=W[3],re=Math.atan2(2*L*G-2*Z*V,1-2*L*L-2*V*V),le=Math.asin(2*Z*L+2*V*G),me=Math.atan2(2*Z*G-2*L*V,1-2*Z*Z-2*V*V);he[0]=re/Se,he[1]=le/Se,he[2]=me/Se}function P(he){var W=he[0]*Se,Z=he[1]*Se,L=he[2]*Se,V=Math.cos(W/2),G=Math.cos(Z/2),re=Math.cos(L/2),le=Math.sin(W/2),me=Math.sin(Z/2),Oe=Math.sin(L/2),ot=V*G*re-le*me*Oe,it=le*me*re+V*G*Oe,Ue=le*G*re+V*me*Oe,ht=V*me*re-le*G*Oe;return[it,Ue,ht,ot]}function U(){var he=this.comp.renderedFrame-this.offsetTime,W=this.keyframes[0].t-this.offsetTime,Z=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(he===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Z&&he>=Z||this._caching.lastFrame<W&&he<W))){this._caching.lastFrame>=he&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var L=this.interpolateValue(he,this._caching);this.pv=L}return this._caching.lastFrame=he,this.pv}function ge(he){var W;if(this.propType==="unidimensional")W=he*this.mult,p(this.v-W)>1e-5&&(this.v=W,this._mdf=!0);else for(var Z=0,L=this.v.length;Z<L;)W=he[Z]*this.mult,p(this.v[Z]-W)>1e-5&&(this.v[Z]=W,this._mdf=!0),Z+=1}function Q(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var he,W=this.effectsSequence.length,Z=this.kf?this.pv:this.data.k;for(he=0;he<W;he+=1)Z=this.effectsSequence[he](Z);this.setVValue(Z),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function $e(he){this.effectsSequence.push(he),this.container.addDynamicProperty(this)}function Ce(he,W,Z,L){this.propType="unidimensional",this.mult=Z||1,this.data=W,this.v=Z?W.k*Z:W.k,this.pv=W.k,this._mdf=!1,this.elem=he,this.container=L,this.comp=he.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Q,this.setVValue=ge,this.addEffect=$e}function Fe(he,W,Z,L){this.propType="multidimensional",this.mult=Z||1,this.data=W,this._mdf=!1,this.elem=he,this.container=L,this.comp=he.comp,this.k=!1,this.kf=!1,this.frameId=-1;var V,G=W.k.length;for(this.v=ye("float32",G),this.pv=ye("float32",G),this.vel=ye("float32",G),V=0;V<G;V+=1)this.v[V]=W.k[V]*this.mult,this.pv[V]=W.k[V];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Q,this.setVValue=ge,this.addEffect=$e}function M(he,W,Z,L){this.propType="unidimensional",this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=he.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=W,this.mult=Z||1,this.elem=he,this.container=L,this.comp=he.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=Q,this.setVValue=ge,this.interpolateValue=v,this.effectsSequence=[U.bind(this)],this.addEffect=$e}function ee(he,W,Z,L){this.propType="multidimensional";var V,G=W.k.length,re,le,me,Oe;for(V=0;V<G-1;V+=1)W.k[V].to&&W.k[V].s&&W.k[V+1]&&W.k[V+1].s&&(re=W.k[V].s,le=W.k[V+1].s,me=W.k[V].to,Oe=W.k[V].ti,(re.length===2&&!(re[0]===le[0]&&re[1]===le[1])&&Lr.pointOnLine2D(re[0],re[1],le[0],le[1],re[0]+me[0],re[1]+me[1])&&Lr.pointOnLine2D(re[0],re[1],le[0],le[1],le[0]+Oe[0],le[1]+Oe[1])||re.length===3&&!(re[0]===le[0]&&re[1]===le[1]&&re[2]===le[2])&&Lr.pointOnLine3D(re[0],re[1],re[2],le[0],le[1],le[2],re[0]+me[0],re[1]+me[1],re[2]+me[2])&&Lr.pointOnLine3D(re[0],re[1],re[2],le[0],le[1],le[2],le[0]+Oe[0],le[1]+Oe[1],le[2]+Oe[2]))&&(W.k[V].to=null,W.k[V].ti=null),re[0]===le[0]&&re[1]===le[1]&&me[0]===0&&me[1]===0&&Oe[0]===0&&Oe[1]===0&&(re.length===2||re[2]===le[2]&&me[2]===0&&Oe[2]===0)&&(W.k[V].to=null,W.k[V].ti=null));this.effectsSequence=[U.bind(this)],this.data=W,this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=he.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Z||1,this.elem=he,this.container=L,this.comp=he.comp,this.getValue=Q,this.setVValue=ge,this.interpolateValue=v,this.frameId=-1;var ot=W.k[0].s.length;for(this.v=ye("float32",ot),this.pv=ye("float32",ot),V=0;V<ot;V+=1)this.v[V]=c,this.pv[V]=c;this._caching={lastFrame:c,lastIndex:0,value:ye("float32",ot)},this.addEffect=$e}function Y(he,W,Z,L,V){var G;if(!W.k.length)G=new Ce(he,W,L,V);else if(typeof W.k[0]=="number")G=new Fe(he,W,L,V);else switch(Z){case 0:G=new M(he,W,L,V);break;case 1:G=new ee(he,W,L,V);break}return G.effectsSequence.length&&V.addDynamicProperty(G),G}var pe={getProp:Y};return pe}();function yn(){}yn.prototype={addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&(this.dynamicProperties.push(p),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var p,v=this.dynamicProperties.length;for(p=0;p<v;p+=1)this.dynamicProperties[p].getValue(),this.dynamicProperties[p]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(p){this.container=p,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Ti=function(){function c(){return ye("float32",2)}return pr(8,c)}();function Yr(){this.c=!1,this._length=0,this._maxLength=8,this.v=Ne(this._maxLength),this.o=Ne(this._maxLength),this.i=Ne(this._maxLength)}Yr.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=Ti.newElement(),this.o[v]=Ti.newElement(),this.i[v]=Ti.newElement(),v+=1},Yr.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},Yr.prototype.doubleArrayLength=function(){this.v=this.v.concat(Ne(this._maxLength)),this.i=this.i.concat(Ne(this._maxLength)),this.o=this.o.concat(Ne(this._maxLength)),this._maxLength*=2},Yr.prototype.setXYAt=function(c,p,v,$,T){var P;switch(this._length=Math.max(this._length,$+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":P=this.v;break;case"i":P=this.i;break;case"o":P=this.o;break;default:P=[];break}(!P[$]||P[$]&&!T)&&(P[$]=Ti.newElement()),P[$][0]=c,P[$][1]=p},Yr.prototype.setTripleAt=function(c,p,v,$,T,P,U,ge){this.setXYAt(c,p,"v",U,ge),this.setXYAt(v,$,"o",U,ge),this.setXYAt(T,P,"i",U,ge)},Yr.prototype.reverse=function(){var c=new Yr;c.setPathData(this.c,this._length);var p=this.v,v=this.o,$=this.i,T=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],$[0][0],$[0][1],v[0][0],v[0][1],0,!1),T=1);var P=this._length-1,U=this._length,ge;for(ge=T;ge<U;ge+=1)c.setTripleAt(p[P][0],p[P][1],$[P][0],$[P][1],v[P][0],v[P][1],ge,!1),P-=1;return c},Yr.prototype.length=function(){return this._length};var qn=function(){function c(){return new Yr}function p(T){var P=T._length,U;for(U=0;U<P;U+=1)Ti.release(T.v[U]),Ti.release(T.i[U]),Ti.release(T.o[U]),T.v[U]=null,T.i[U]=null,T.o[U]=null;T._length=0,T.c=!1}function v(T){var P=$.newElement(),U,ge=T._length===void 0?T.v.length:T._length;for(P.setLength(ge),P.c=T.c,U=0;U<ge;U+=1)P.setTripleAt(T.v[U][0],T.v[U][1],T.o[U][0],T.o[U][1],T.i[U][0],T.i[U][1],U);return P}var $=pr(4,c,p);return $.clone=v,$}();function Ss(){this._length=0,this._maxLength=4,this.shapes=Ne(this._maxLength)}Ss.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ne(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},Ss.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)qn.release(this.shapes[c]);this._length=0};var Bi=function(){var c={newShapeCollection:T,release:P},p=0,v=4,$=Ne(v);function T(){var U;return p?(p-=1,U=$[p]):U=new Ss,U}function P(U){var ge,Q=U._length;for(ge=0;ge<Q;ge+=1)qn.release(U.shapes[ge]);U._length=0,p===v&&($=va.double($),v*=2),$[p]=U,p+=1}return c}(),Zr=function(){var c=-999999;function p(W,Z,L){var V=L.lastIndex,G,re,le,me,Oe,ot,it,Ue,ht,gt=this.keyframes;if(W<gt[0].t-this.offsetTime)G=gt[0].s[0],le=!0,V=0;else if(W>=gt[gt.length-1].t-this.offsetTime)G=gt[gt.length-1].s?gt[gt.length-1].s[0]:gt[gt.length-2].e[0],le=!0;else{for(var je=V,xe=gt.length-1,fe=!0,J,ve,ze;fe&&(J=gt[je],ve=gt[je+1],!(ve.t-this.offsetTime>W));)je<xe-1?je+=1:fe=!1;if(ze=this.keyframesMetadata[je]||{},le=J.h===1,V=je,!le){if(W>=ve.t-this.offsetTime)Ue=1;else if(W<J.t-this.offsetTime)Ue=0;else{var ke;ze.__fnct?ke=ze.__fnct:(ke=ho.getBezierEasing(J.o.x,J.o.y,J.i.x,J.i.y).get,ze.__fnct=ke),Ue=ke((W-(J.t-this.offsetTime))/(ve.t-this.offsetTime-(J.t-this.offsetTime)))}re=ve.s?ve.s[0]:J.e[0]}G=J.s[0]}for(ot=Z._length,it=G.i[0].length,L.lastIndex=V,me=0;me<ot;me+=1)for(Oe=0;Oe<it;Oe+=1)ht=le?G.i[me][Oe]:G.i[me][Oe]+(re.i[me][Oe]-G.i[me][Oe])*Ue,Z.i[me][Oe]=ht,ht=le?G.o[me][Oe]:G.o[me][Oe]+(re.o[me][Oe]-G.o[me][Oe])*Ue,Z.o[me][Oe]=ht,ht=le?G.v[me][Oe]:G.v[me][Oe]+(re.v[me][Oe]-G.v[me][Oe])*Ue,Z.v[me][Oe]=ht}function v(){var W=this.comp.renderedFrame-this.offsetTime,Z=this.keyframes[0].t-this.offsetTime,L=this.keyframes[this.keyframes.length-1].t-this.offsetTime,V=this._caching.lastFrame;return V!==c&&(V<Z&&W<Z||V>L&&W>L)||(this._caching.lastIndex=V<W?this._caching.lastIndex:0,this.interpolateShape(W,this.pv,this._caching)),this._caching.lastFrame=W,this.pv}function $(){this.paths=this.localShapeCollection}function T(W,Z){if(W._length!==Z._length||W.c!==Z.c)return!1;var L,V=W._length;for(L=0;L<V;L+=1)if(W.v[L][0]!==Z.v[L][0]||W.v[L][1]!==Z.v[L][1]||W.o[L][0]!==Z.o[L][0]||W.o[L][1]!==Z.o[L][1]||W.i[L][0]!==Z.i[L][0]||W.i[L][1]!==Z.i[L][1])return!1;return!0}function P(W){T(this.v,W)||(this.v=qn.clone(W),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function U(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var W;this.kf?W=this.pv:this.data.ks?W=this.data.ks.k:W=this.data.pt.k;var Z,L=this.effectsSequence.length;for(Z=0;Z<L;Z+=1)W=this.effectsSequence[Z](W);this.setVValue(W),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ge(W,Z,L){this.propType="shape",this.comp=W.comp,this.container=W,this.elem=W,this.data=Z,this.k=!1,this.kf=!1,this._mdf=!1;var V=L===3?Z.pt.k:Z.ks.k;this.v=qn.clone(V),this.pv=qn.clone(this.v),this.localShapeCollection=Bi.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=$,this.effectsSequence=[]}function Q(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}ge.prototype.interpolateShape=p,ge.prototype.getValue=U,ge.prototype.setVValue=P,ge.prototype.addEffect=Q;function $e(W,Z,L){this.propType="shape",this.comp=W.comp,this.elem=W,this.container=W,this.offsetTime=W.data.st,this.keyframes=L===3?Z.pt.k:Z.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var V=this.keyframes[0].s[0].i.length;this.v=qn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,V),this.pv=qn.clone(this.v),this.localShapeCollection=Bi.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=$,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[v.bind(this)]}$e.prototype.getValue=U,$e.prototype.interpolateShape=p,$e.prototype.setVValue=P,$e.prototype.addEffect=Q;var Ce=function(){var W=Re;function Z(L,V){this.v=qn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Bi.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=V.d,this.elem=L,this.comp=L.comp,this.frameId=-1,this.initDynamicPropertyContainer(L),this.p=ut.getProp(L,V.p,1,0,this),this.s=ut.getProp(L,V.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Z.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var V=this.p.v[0],G=this.p.v[1],re=this.s.v[0]/2,le=this.s.v[1]/2,me=this.d!==3,Oe=this.v;Oe.v[0][0]=V,Oe.v[0][1]=G-le,Oe.v[1][0]=me?V+re:V-re,Oe.v[1][1]=G,Oe.v[2][0]=V,Oe.v[2][1]=G+le,Oe.v[3][0]=me?V-re:V+re,Oe.v[3][1]=G,Oe.i[0][0]=me?V-re*W:V+re*W,Oe.i[0][1]=G-le,Oe.i[1][0]=me?V+re:V-re,Oe.i[1][1]=G-le*W,Oe.i[2][0]=me?V+re*W:V-re*W,Oe.i[2][1]=G+le,Oe.i[3][0]=me?V-re:V+re,Oe.i[3][1]=G+le*W,Oe.o[0][0]=me?V+re*W:V-re*W,Oe.o[0][1]=G-le,Oe.o[1][0]=me?V+re:V-re,Oe.o[1][1]=G+le*W,Oe.o[2][0]=me?V-re*W:V+re*W,Oe.o[2][1]=G+le,Oe.o[3][0]=me?V-re:V+re,Oe.o[3][1]=G-le*W}},Le([yn],Z),Z}(),Fe=function(){function W(Z,L){this.v=qn.newElement(),this.v.setPathData(!0,0),this.elem=Z,this.comp=Z.comp,this.data=L,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Z),L.sy===1?(this.ir=ut.getProp(Z,L.ir,0,0,this),this.is=ut.getProp(Z,L.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=ut.getProp(Z,L.pt,0,0,this),this.p=ut.getProp(Z,L.p,1,0,this),this.r=ut.getProp(Z,L.r,0,Se,this),this.or=ut.getProp(Z,L.or,0,0,this),this.os=ut.getProp(Z,L.os,0,.01,this),this.localShapeCollection=Bi.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return W.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var L=Math.floor(this.pt.v)*2,V=Math.PI*2/L,G=!0,re=this.or.v,le=this.ir.v,me=this.os.v,Oe=this.is.v,ot=2*Math.PI*re/(L*2),it=2*Math.PI*le/(L*2),Ue,ht,gt,je,xe=-Math.PI/2;xe+=this.r.v;var fe=this.data.d===3?-1:1;for(this.v._length=0,Ue=0;Ue<L;Ue+=1){ht=G?re:le,gt=G?me:Oe,je=G?ot:it;var J=ht*Math.cos(xe),ve=ht*Math.sin(xe),ze=J===0&&ve===0?0:ve/Math.sqrt(J*J+ve*ve),ke=J===0&&ve===0?0:-J/Math.sqrt(J*J+ve*ve);J+=+this.p.v[0],ve+=+this.p.v[1],this.v.setTripleAt(J,ve,J-ze*je*gt*fe,ve-ke*je*gt*fe,J+ze*je*gt*fe,ve+ke*je*gt*fe,Ue,!0),G=!G,xe+=V*fe}},convertPolygonToPath:function(){var L=Math.floor(this.pt.v),V=Math.PI*2/L,G=this.or.v,re=this.os.v,le=2*Math.PI*G/(L*4),me,Oe=-Math.PI*.5,ot=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,me=0;me<L;me+=1){var it=G*Math.cos(Oe),Ue=G*Math.sin(Oe),ht=it===0&&Ue===0?0:Ue/Math.sqrt(it*it+Ue*Ue),gt=it===0&&Ue===0?0:-it/Math.sqrt(it*it+Ue*Ue);it+=+this.p.v[0],Ue+=+this.p.v[1],this.v.setTripleAt(it,Ue,it-ht*le*re*ot,Ue-gt*le*re*ot,it+ht*le*re*ot,Ue+gt*le*re*ot,me,!0),Oe+=V*ot}this.paths.length=0,this.paths[0]=this.v}},Le([yn],W),W}(),M=function(){function W(Z,L){this.v=qn.newElement(),this.v.c=!0,this.localShapeCollection=Bi.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Z,this.comp=Z.comp,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Z),this.p=ut.getProp(Z,L.p,1,0,this),this.s=ut.getProp(Z,L.s,1,0,this),this.r=ut.getProp(Z,L.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return W.prototype={convertRectToPath:function(){var L=this.p.v[0],V=this.p.v[1],G=this.s.v[0]/2,re=this.s.v[1]/2,le=It(G,re,this.r.v),me=le*(1-Re);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(L+G,V-re+le,L+G,V-re+le,L+G,V-re+me,0,!0),this.v.setTripleAt(L+G,V+re-le,L+G,V+re-me,L+G,V+re-le,1,!0),le!==0?(this.v.setTripleAt(L+G-le,V+re,L+G-le,V+re,L+G-me,V+re,2,!0),this.v.setTripleAt(L-G+le,V+re,L-G+me,V+re,L-G+le,V+re,3,!0),this.v.setTripleAt(L-G,V+re-le,L-G,V+re-le,L-G,V+re-me,4,!0),this.v.setTripleAt(L-G,V-re+le,L-G,V-re+me,L-G,V-re+le,5,!0),this.v.setTripleAt(L-G+le,V-re,L-G+le,V-re,L-G+me,V-re,6,!0),this.v.setTripleAt(L+G-le,V-re,L+G-me,V-re,L+G-le,V-re,7,!0)):(this.v.setTripleAt(L-G,V+re,L-G+me,V+re,L-G,V+re,2),this.v.setTripleAt(L-G,V-re,L-G,V-re+me,L-G,V-re,3))):(this.v.setTripleAt(L+G,V-re+le,L+G,V-re+me,L+G,V-re+le,0,!0),le!==0?(this.v.setTripleAt(L+G-le,V-re,L+G-le,V-re,L+G-me,V-re,1,!0),this.v.setTripleAt(L-G+le,V-re,L-G+me,V-re,L-G+le,V-re,2,!0),this.v.setTripleAt(L-G,V-re+le,L-G,V-re+le,L-G,V-re+me,3,!0),this.v.setTripleAt(L-G,V+re-le,L-G,V+re-me,L-G,V+re-le,4,!0),this.v.setTripleAt(L-G+le,V+re,L-G+le,V+re,L-G+me,V+re,5,!0),this.v.setTripleAt(L+G-le,V+re,L+G-me,V+re,L+G-le,V+re,6,!0),this.v.setTripleAt(L+G,V+re-le,L+G,V+re-le,L+G,V+re-me,7,!0)):(this.v.setTripleAt(L-G,V-re,L-G+me,V-re,L-G,V-re,1,!0),this.v.setTripleAt(L-G,V+re,L-G,V+re-me,L-G,V+re,2,!0),this.v.setTripleAt(L+G,V+re,L+G-me,V+re,L+G,V+re,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:$},Le([yn],W),W}();function ee(W,Z,L){var V;if(L===3||L===4){var G=L===3?Z.pt:Z.ks,re=G.k;re.length?V=new $e(W,Z,L):V=new ge(W,Z,L)}else L===5?V=new M(W,Z):L===6?V=new Ce(W,Z):L===7&&(V=new Fe(W,Z));return V.k&&W.addDynamicProperty(V),V}function Y(){return ge}function pe(){return $e}var he={};return he.getShapeProp=ee,he.getConstructorFunction=Y,he.getKeyframedConstructorFunction=pe,he}();/*!
147
- Transformation Matrix v2.0
148
- (c) Epistemex 2014-2015
149
- www.epistemex.com
150
- By Ken Fyrstenberg
151
- Contributions by leeoniya.
152
- License: MIT, header required.
153
- */var Tn=function(){var c=Math.cos,p=Math.sin,v=Math.tan,$=Math.round;function T(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function P(fe){if(fe===0)return this;var J=c(fe),ve=p(fe);return this._t(J,-ve,0,0,ve,J,0,0,0,0,1,0,0,0,0,1)}function U(fe){if(fe===0)return this;var J=c(fe),ve=p(fe);return this._t(1,0,0,0,0,J,-ve,0,0,ve,J,0,0,0,0,1)}function ge(fe){if(fe===0)return this;var J=c(fe),ve=p(fe);return this._t(J,0,ve,0,0,1,0,0,-ve,0,J,0,0,0,0,1)}function Q(fe){if(fe===0)return this;var J=c(fe),ve=p(fe);return this._t(J,-ve,0,0,ve,J,0,0,0,0,1,0,0,0,0,1)}function $e(fe,J){return this._t(1,J,fe,1,0,0)}function Ce(fe,J){return this.shear(v(fe),v(J))}function Fe(fe,J){var ve=c(J),ze=p(J);return this._t(ve,ze,0,0,-ze,ve,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,v(fe),1,0,0,0,0,1,0,0,0,0,1)._t(ve,-ze,0,0,ze,ve,0,0,0,0,1,0,0,0,0,1)}function M(fe,J,ve){return!ve&&ve!==0&&(ve=1),fe===1&&J===1&&ve===1?this:this._t(fe,0,0,0,0,J,0,0,0,0,ve,0,0,0,0,1)}function ee(fe,J,ve,ze,ke,mt,Lt,_t,kn,nn,Sr,cr,Gn,Jn,Qn,Mr){return this.props[0]=fe,this.props[1]=J,this.props[2]=ve,this.props[3]=ze,this.props[4]=ke,this.props[5]=mt,this.props[6]=Lt,this.props[7]=_t,this.props[8]=kn,this.props[9]=nn,this.props[10]=Sr,this.props[11]=cr,this.props[12]=Gn,this.props[13]=Jn,this.props[14]=Qn,this.props[15]=Mr,this}function Y(fe,J,ve){return ve=ve||0,fe!==0||J!==0||ve!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,fe,J,ve,1):this}function pe(fe,J,ve,ze,ke,mt,Lt,_t,kn,nn,Sr,cr,Gn,Jn,Qn,Mr){var vt=this.props;if(fe===1&&J===0&&ve===0&&ze===0&&ke===0&&mt===1&&Lt===0&&_t===0&&kn===0&&nn===0&&Sr===1&&cr===0)return vt[12]=vt[12]*fe+vt[15]*Gn,vt[13]=vt[13]*mt+vt[15]*Jn,vt[14]=vt[14]*Sr+vt[15]*Qn,vt[15]*=Mr,this._identityCalculated=!1,this;var Cn=vt[0],ci=vt[1],Ui=vt[2],$o=vt[3],_i=vt[4],xo=vt[5],wo=vt[6],an=vt[7],On=vt[8],Qo=vt[9],Ri=vt[10],Co=vt[11],Mi=vt[12],So=vt[13],es=vt[14],Ta=vt[15];return vt[0]=Cn*fe+ci*ke+Ui*kn+$o*Gn,vt[1]=Cn*J+ci*mt+Ui*nn+$o*Jn,vt[2]=Cn*ve+ci*Lt+Ui*Sr+$o*Qn,vt[3]=Cn*ze+ci*_t+Ui*cr+$o*Mr,vt[4]=_i*fe+xo*ke+wo*kn+an*Gn,vt[5]=_i*J+xo*mt+wo*nn+an*Jn,vt[6]=_i*ve+xo*Lt+wo*Sr+an*Qn,vt[7]=_i*ze+xo*_t+wo*cr+an*Mr,vt[8]=On*fe+Qo*ke+Ri*kn+Co*Gn,vt[9]=On*J+Qo*mt+Ri*nn+Co*Jn,vt[10]=On*ve+Qo*Lt+Ri*Sr+Co*Qn,vt[11]=On*ze+Qo*_t+Ri*cr+Co*Mr,vt[12]=Mi*fe+So*ke+es*kn+Ta*Gn,vt[13]=Mi*J+So*mt+es*nn+Ta*Jn,vt[14]=Mi*ve+So*Lt+es*Sr+Ta*Qn,vt[15]=Mi*ze+So*_t+es*cr+Ta*Mr,this._identityCalculated=!1,this}function he(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function W(fe){for(var J=0;J<16;){if(fe.props[J]!==this.props[J])return!1;J+=1}return!0}function Z(fe){var J;for(J=0;J<16;J+=1)fe.props[J]=this.props[J];return fe}function L(fe){var J;for(J=0;J<16;J+=1)this.props[J]=fe[J]}function V(fe,J,ve){return{x:fe*this.props[0]+J*this.props[4]+ve*this.props[8]+this.props[12],y:fe*this.props[1]+J*this.props[5]+ve*this.props[9]+this.props[13],z:fe*this.props[2]+J*this.props[6]+ve*this.props[10]+this.props[14]}}function G(fe,J,ve){return fe*this.props[0]+J*this.props[4]+ve*this.props[8]+this.props[12]}function re(fe,J,ve){return fe*this.props[1]+J*this.props[5]+ve*this.props[9]+this.props[13]}function le(fe,J,ve){return fe*this.props[2]+J*this.props[6]+ve*this.props[10]+this.props[14]}function me(){var fe=this.props[0]*this.props[5]-this.props[1]*this.props[4],J=this.props[5]/fe,ve=-this.props[1]/fe,ze=-this.props[4]/fe,ke=this.props[0]/fe,mt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/fe,Lt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/fe,_t=new Tn;return _t.props[0]=J,_t.props[1]=ve,_t.props[4]=ze,_t.props[5]=ke,_t.props[12]=mt,_t.props[13]=Lt,_t}function Oe(fe){var J=this.getInverseMatrix();return J.applyToPointArray(fe[0],fe[1],fe[2]||0)}function ot(fe){var J,ve=fe.length,ze=[];for(J=0;J<ve;J+=1)ze[J]=Oe(fe[J]);return ze}function it(fe,J,ve){var ze=ye("float32",6);if(this.isIdentity())ze[0]=fe[0],ze[1]=fe[1],ze[2]=J[0],ze[3]=J[1],ze[4]=ve[0],ze[5]=ve[1];else{var ke=this.props[0],mt=this.props[1],Lt=this.props[4],_t=this.props[5],kn=this.props[12],nn=this.props[13];ze[0]=fe[0]*ke+fe[1]*Lt+kn,ze[1]=fe[0]*mt+fe[1]*_t+nn,ze[2]=J[0]*ke+J[1]*Lt+kn,ze[3]=J[0]*mt+J[1]*_t+nn,ze[4]=ve[0]*ke+ve[1]*Lt+kn,ze[5]=ve[0]*mt+ve[1]*_t+nn}return ze}function Ue(fe,J,ve){var ze;return this.isIdentity()?ze=[fe,J,ve]:ze=[fe*this.props[0]+J*this.props[4]+ve*this.props[8]+this.props[12],fe*this.props[1]+J*this.props[5]+ve*this.props[9]+this.props[13],fe*this.props[2]+J*this.props[6]+ve*this.props[10]+this.props[14]],ze}function ht(fe,J){if(this.isIdentity())return fe+","+J;var ve=this.props;return Math.round((fe*ve[0]+J*ve[4]+ve[12])*100)/100+","+Math.round((fe*ve[1]+J*ve[5]+ve[13])*100)/100}function gt(){for(var fe=0,J=this.props,ve="matrix3d(",ze=1e4;fe<16;)ve+=$(J[fe]*ze)/ze,ve+=fe===15?")":",",fe+=1;return ve}function je(fe){var J=1e4;return fe<1e-6&&fe>0||fe>-1e-6&&fe<0?$(fe*J)/J:fe}function xe(){var fe=this.props,J=je(fe[0]),ve=je(fe[1]),ze=je(fe[4]),ke=je(fe[5]),mt=je(fe[12]),Lt=je(fe[13]);return"matrix("+J+","+ve+","+ze+","+ke+","+mt+","+Lt+")"}return function(){this.reset=T,this.rotate=P,this.rotateX=U,this.rotateY=ge,this.rotateZ=Q,this.skew=Ce,this.skewFromAxis=Fe,this.shear=$e,this.scale=M,this.setTransform=ee,this.translate=Y,this.transform=pe,this.applyToPoint=V,this.applyToX=G,this.applyToY=re,this.applyToZ=le,this.applyToPointArray=Ue,this.applyToTriplePoints=it,this.applyToPointStringified=ht,this.toCSS=gt,this.to2dCSS=xe,this.clone=Z,this.cloneFromProps=L,this.equals=W,this.inversePoints=ot,this.inversePoint=Oe,this.getInverseMatrix=me,this._t=this.transform,this.isIdentity=he,this._identity=!0,this._identityCalculated=!1,this.props=ye("float32",16),this.reset()}}();function po(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?po=function(v){return typeof v}:po=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},po(c)}var Ht={};function au(c){Ae(c)}function Es(){An.searchAnimations()}function uu(c){tn(c)}function Uo(c){Ko(c)}function Vi(c){return An.loadAnimation(c)}function Ds(c){if(typeof c=="string")switch(c){case"high":ui(200);break;default:case"medium":ui(50);break;case"low":ui(10);break}else!isNaN(c)&&c>1&&ui(c)}function As(){return typeof navigator<"u"}function ba(c,p){c==="expressions"&&Si(p)}function $a(c){switch(c){case"propertyFactory":return ut;case"shapePropertyFactory":return Zr;case"matrix":return Tn;default:return null}}Ht.play=An.play,Ht.pause=An.pause,Ht.setLocationHref=au,Ht.togglePause=An.togglePause,Ht.setSpeed=An.setSpeed,Ht.setDirection=An.setDirection,Ht.stop=An.stop,Ht.searchAnimations=Es,Ht.registerAnimation=An.registerAnimation,Ht.loadAnimation=Vi,Ht.setSubframeRendering=uu,Ht.resize=An.resize,Ht.goToAndStop=An.goToAndStop,Ht.destroy=An.destroy,Ht.setQuality=Ds,Ht.inBrowser=As,Ht.installPlugin=ba,Ht.freeze=An.freeze,Ht.unfreeze=An.unfreeze,Ht.setVolume=An.setVolume,Ht.mute=An.mute,Ht.unmute=An.unmute,Ht.getRegisteredAnimations=An.getRegisteredAnimations,Ht.useWebWorker=se,Ht.setIDPrefix=Uo,Ht.__getFactory=$a,Ht.version="5.10.2";function lu(){document.readyState==="complete"&&(clearInterval(Ca),Es())}function xa(c){for(var p=zo.split("&"),v=0;v<p.length;v+=1){var $=p[v].split("=");if(decodeURIComponent($[0])==c)return decodeURIComponent($[1])}return null}var zo="";{var Ts=document.getElementsByTagName("script"),mo=Ts.length-1,wa=Ts[mo]||{src:""};zo=wa.src?wa.src.replace(/^[^\?]+\??/,""):"",xa("renderer")}var Ca=setInterval(lu,100);try{po(ne)!=="object"&&(window.bodymovin=Ht)}catch{}var Rr=function(){var c={},p={};c.registerModifier=v,c.getModifier=$;function v(T,P){p[T]||(p[T]=P)}function $(T,P,U){return new p[T](P,U)}return c}();function mr(){}mr.prototype.initModifierProperties=function(){},mr.prototype.addShapeToModifier=function(){},mr.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var p={shape:c.sh,data:c,localShapeCollection:Bi.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&c.setAsAnimated()}},mr.prototype.init=function(c,p){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p),this.frameId=de,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},mr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Le([yn],mr);function te(){}Le([mr],te),te.prototype.initModifierProperties=function(c,p){this.s=ut.getProp(c,p.s,0,.01,this),this.e=ut.getProp(c,p.e,0,.01,this),this.o=ut.getProp(c,p.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=p.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},te.prototype.addShapeToModifier=function(c){c.pathsData=[]},te.prototype.calculateShapeEdges=function(c,p,v,$,T){var P=[];p<=1?P.push({s:c,e:p}):c>=1?P.push({s:c-1,e:p-1}):(P.push({s:c,e:1}),P.push({s:0,e:p-1}));var U=[],ge,Q=P.length,$e;for(ge=0;ge<Q;ge+=1)if($e=P[ge],!($e.e*T<$||$e.s*T>$+v)){var Ce,Fe;$e.s*T<=$?Ce=0:Ce=($e.s*T-$)/v,$e.e*T>=$+v?Fe=1:Fe=($e.e*T-$)/v,U.push([Ce,Fe])}return U.length||U.push([0,0]),U},te.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)_r.release(c[p]);return c.length=0,c},te.prototype.processShapes=function(c){var p,v;if(this._mdf||c){var $=this.o.v%360/360;if($<0&&($+=1),this.s.v>1?p=1+$:this.s.v<0?p=0+$:p=this.s.v+$,this.e.v>1?v=1+$:this.e.v<0?v=0+$:v=this.e.v+$,p>v){var T=p;p=v,v=T}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var P,U,ge=this.shapes.length,Q,$e,Ce,Fe,M,ee=0;if(v===p)for(U=0;U<ge;U+=1)this.shapes[U].localShapeCollection.releaseShapes(),this.shapes[U].shape._mdf=!0,this.shapes[U].shape.paths=this.shapes[U].localShapeCollection,this._mdf&&(this.shapes[U].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(U=0;U<ge;U+=1)this.shapes[U].pathsData.length=0,this.shapes[U].shape._mdf=!0}else{var Y=[],pe,he;for(U=0;U<ge;U+=1)if(pe=this.shapes[U],!pe.shape._mdf&&!this._mdf&&!c&&this.m!==2)pe.shape.paths=pe.localShapeCollection;else{if(P=pe.shape.paths,$e=P._length,M=0,!pe.shape._mdf&&pe.pathsData.length)M=pe.totalShapeLength;else{for(Ce=this.releasePathsData(pe.pathsData),Q=0;Q<$e;Q+=1)Fe=Lr.getSegmentsLength(P.shapes[Q]),Ce.push(Fe),M+=Fe.totalLength;pe.totalShapeLength=M,pe.pathsData=Ce}ee+=M,pe.shape._mdf=!0}var W=p,Z=v,L=0,V;for(U=ge-1;U>=0;U-=1)if(pe=this.shapes[U],pe.shape._mdf){for(he=pe.localShapeCollection,he.releaseShapes(),this.m===2&&ge>1?(V=this.calculateShapeEdges(p,v,pe.totalShapeLength,L,ee),L+=pe.totalShapeLength):V=[[W,Z]],$e=V.length,Q=0;Q<$e;Q+=1){W=V[Q][0],Z=V[Q][1],Y.length=0,Z<=1?Y.push({s:pe.totalShapeLength*W,e:pe.totalShapeLength*Z}):W>=1?Y.push({s:pe.totalShapeLength*(W-1),e:pe.totalShapeLength*(Z-1)}):(Y.push({s:pe.totalShapeLength*W,e:pe.totalShapeLength}),Y.push({s:0,e:pe.totalShapeLength*(Z-1)}));var G=this.addShapes(pe,Y[0]);if(Y[0].s!==Y[0].e){if(Y.length>1){var re=pe.shape.paths.shapes[pe.shape.paths._length-1];if(re.c){var le=G.pop();this.addPaths(G,he),G=this.addShapes(pe,Y[1],le)}else this.addPaths(G,he),G=this.addShapes(pe,Y[1])}this.addPaths(G,he)}}pe.shape.paths=he}}},te.prototype.addPaths=function(c,p){var v,$=c.length;for(v=0;v<$;v+=1)p.addShape(c[v])},te.prototype.addSegment=function(c,p,v,$,T,P,U){T.setXYAt(p[0],p[1],"o",P),T.setXYAt(v[0],v[1],"i",P+1),U&&T.setXYAt(c[0],c[1],"v",P),T.setXYAt($[0],$[1],"v",P+1)},te.prototype.addSegmentFromArray=function(c,p,v,$){p.setXYAt(c[1],c[5],"o",v),p.setXYAt(c[2],c[6],"i",v+1),$&&p.setXYAt(c[0],c[4],"v",v),p.setXYAt(c[3],c[7],"v",v+1)},te.prototype.addShapes=function(c,p,v){var $=c.pathsData,T=c.shape.paths.shapes,P,U=c.shape.paths._length,ge,Q,$e=0,Ce,Fe,M,ee,Y=[],pe,he=!0;for(v?(Fe=v._length,pe=v._length):(v=qn.newElement(),Fe=0,pe=0),Y.push(v),P=0;P<U;P+=1){for(M=$[P].lengths,v.c=T[P].c,Q=T[P].c?M.length:M.length+1,ge=1;ge<Q;ge+=1)if(Ce=M[ge-1],$e+Ce.addedLength<p.s)$e+=Ce.addedLength,v.c=!1;else if($e>p.e){v.c=!1;break}else p.s<=$e&&p.e>=$e+Ce.addedLength?(this.addSegment(T[P].v[ge-1],T[P].o[ge-1],T[P].i[ge],T[P].v[ge],v,Fe,he),he=!1):(ee=Lr.getNewSegment(T[P].v[ge-1],T[P].v[ge],T[P].o[ge-1],T[P].i[ge],(p.s-$e)/Ce.addedLength,(p.e-$e)/Ce.addedLength,M[ge-1]),this.addSegmentFromArray(ee,v,Fe,he),he=!1,v.c=!1),$e+=Ce.addedLength,Fe+=1;if(T[P].c&&M.length){if(Ce=M[ge-1],$e<=p.e){var W=M[ge-1].addedLength;p.s<=$e&&p.e>=$e+W?(this.addSegment(T[P].v[ge-1],T[P].o[ge-1],T[P].i[0],T[P].v[0],v,Fe,he),he=!1):(ee=Lr.getNewSegment(T[P].v[ge-1],T[P].v[0],T[P].o[ge-1],T[P].i[0],(p.s-$e)/W,(p.e-$e)/W,M[ge-1]),this.addSegmentFromArray(ee,v,Fe,he),he=!1,v.c=!1)}else v.c=!1;$e+=Ce.addedLength,Fe+=1}if(v._length&&(v.setXYAt(v.v[pe][0],v.v[pe][1],"i",pe),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),$e>p.e)break;P<U-1&&(v=qn.newElement(),he=!0,Y.push(v),Fe=0)}return Y};function Te(){}Le([mr],Te),Te.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=ut.getProp(c,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Te.prototype.processPath=function(c,p){var v=p/100,$=[0,0],T=c._length,P=0;for(P=0;P<T;P+=1)$[0]+=c.v[P][0],$[1]+=c.v[P][1];$[0]/=T,$[1]/=T;var U=qn.newElement();U.c=c.c;var ge,Q,$e,Ce,Fe,M;for(P=0;P<T;P+=1)ge=c.v[P][0]+($[0]-c.v[P][0])*v,Q=c.v[P][1]+($[1]-c.v[P][1])*v,$e=c.o[P][0]+($[0]-c.o[P][0])*-v,Ce=c.o[P][1]+($[1]-c.o[P][1])*-v,Fe=c.i[P][0]+($[0]-c.i[P][0])*-v,M=c.i[P][1]+($[1]-c.i[P][1])*-v,U.setTripleAt(ge,Q,$e,Ce,Fe,M,P);return U},Te.prototype.processShapes=function(c){var p,v,$=this.shapes.length,T,P,U=this.amount.v;if(U!==0){var ge,Q;for(v=0;v<$;v+=1){if(ge=this.shapes[v],Q=ge.localShapeCollection,!(!ge.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),ge.shape._mdf=!0,p=ge.shape.paths.shapes,P=ge.shape.paths._length,T=0;T<P;T+=1)Q.addShape(this.processPath(p[T],U));ge.shape.paths=ge.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Ve=function(){var c=[0,0];function p(Q){var $e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||$e,this.a&&Q.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Q.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Q.skewFromAxis(-this.sk.v,this.sa.v),this.r?Q.rotate(-this.r.v):Q.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?Q.translate(this.px.v,this.py.v,-this.pz.v):Q.translate(this.px.v,this.py.v,0):Q.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function v(Q){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Q){var $e;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Ce,Fe;if($e=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Ce=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/$e,0),Fe=this.p.getValueAtTime(this.p.keyframes[0].t/$e,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Ce=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/$e,0),Fe=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/$e,0)):(Ce=this.p.pv,Fe=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/$e,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Ce=[],Fe=[];var M=this.px,ee=this.py;M._caching.lastFrame+M.offsetTime<=M.keyframes[0].t?(Ce[0]=M.getValueAtTime((M.keyframes[0].t+.01)/$e,0),Ce[1]=ee.getValueAtTime((ee.keyframes[0].t+.01)/$e,0),Fe[0]=M.getValueAtTime(M.keyframes[0].t/$e,0),Fe[1]=ee.getValueAtTime(ee.keyframes[0].t/$e,0)):M._caching.lastFrame+M.offsetTime>=M.keyframes[M.keyframes.length-1].t?(Ce[0]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/$e,0),Ce[1]=ee.getValueAtTime(ee.keyframes[ee.keyframes.length-1].t/$e,0),Fe[0]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/$e,0),Fe[1]=ee.getValueAtTime((ee.keyframes[ee.keyframes.length-1].t-.01)/$e,0)):(Ce=[M.pv,ee.pv],Fe[0]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/$e,M.offsetTime),Fe[1]=ee.getValueAtTime((ee._caching.lastFrame+ee.offsetTime-.01)/$e,ee.offsetTime))}else Fe=c,Ce=Fe;this.v.rotate(-Math.atan2(Ce[1]-Fe[1],Ce[0]-Fe[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function $(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function T(){}function P(Q){this._addDynamicProperty(Q),this.elem.addDynamicProperty(Q),this._isDirty=!0}function U(Q,$e,Ce){if(this.elem=Q,this.frameId=-1,this.propType="transform",this.data=$e,this.v=new Tn,this.pre=new Tn,this.appliedTransformations=0,this.initDynamicPropertyContainer(Ce||Q),$e.p&&$e.p.s?(this.px=ut.getProp(Q,$e.p.x,0,0,this),this.py=ut.getProp(Q,$e.p.y,0,0,this),$e.p.z&&(this.pz=ut.getProp(Q,$e.p.z,0,0,this))):this.p=ut.getProp(Q,$e.p||{k:[0,0,0]},1,0,this),$e.rx){if(this.rx=ut.getProp(Q,$e.rx,0,Se,this),this.ry=ut.getProp(Q,$e.ry,0,Se,this),this.rz=ut.getProp(Q,$e.rz,0,Se,this),$e.or.k[0].ti){var Fe,M=$e.or.k.length;for(Fe=0;Fe<M;Fe+=1)$e.or.k[Fe].to=null,$e.or.k[Fe].ti=null}this.or=ut.getProp(Q,$e.or,1,Se,this),this.or.sh=!0}else this.r=ut.getProp(Q,$e.r||{k:0},0,Se,this);$e.sk&&(this.sk=ut.getProp(Q,$e.sk,0,Se,this),this.sa=ut.getProp(Q,$e.sa,0,Se,this)),this.a=ut.getProp(Q,$e.a||{k:[0,0,0]},1,0,this),this.s=ut.getProp(Q,$e.s||{k:[100,100,100]},1,.01,this),$e.o?this.o=ut.getProp(Q,$e.o,0,.01,Q):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}U.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:$,autoOrient:T},Le([yn],U),U.prototype.addDynamicProperty=P,U.prototype._addDynamicProperty=yn.prototype.addDynamicProperty;function ge(Q,$e,Ce){return new U(Q,$e,Ce)}return{getTransformProperty:ge}}();function We(){}Le([mr],We),We.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.c=ut.getProp(c,p.c,0,null,this),this.o=ut.getProp(c,p.o,0,null,this),this.tr=Ve.getTransformProperty(c,p.tr,this),this.so=ut.getProp(c,p.tr.so,0,.01,this),this.eo=ut.getProp(c,p.tr.eo,0,.01,this),this.data=p,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Tn,this.rMatrix=new Tn,this.sMatrix=new Tn,this.tMatrix=new Tn,this.matrix=new Tn},We.prototype.applyTransforms=function(c,p,v,$,T,P){var U=P?-1:1,ge=$.s.v[0]+(1-$.s.v[0])*(1-T),Q=$.s.v[1]+(1-$.s.v[1])*(1-T);c.translate($.p.v[0]*U*T,$.p.v[1]*U*T,$.p.v[2]),p.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),p.rotate(-$.r.v*U*T),p.translate($.a.v[0],$.a.v[1],$.a.v[2]),v.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),v.scale(P?1/ge:ge,P?1/Q:Q),v.translate($.a.v[0],$.a.v[1],$.a.v[2])},We.prototype.init=function(c,p,v,$){for(this.elem=c,this.arr=p,this.pos=v,this.elemsData=$,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p[v]);v>0;)v-=1,this._elements.unshift(p[v]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},We.prototype.resetElements=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p]._processed=!1,c[p].ty==="gr"&&this.resetElements(c[p].it)},We.prototype.cloneElements=function(c){var p=JSON.parse(JSON.stringify(c));return this.resetElements(p),p},We.prototype.changeGroupRender=function(c,p){var v,$=c.length;for(v=0;v<$;v+=1)c[v]._render=p,c[v].ty==="gr"&&this.changeGroupRender(c[v].it,p)},We.prototype.processShapes=function(c){var p,v,$,T,P,U=!1;if(this._mdf||c){var ge=Math.ceil(this.c.v);if(this._groups.length<ge){for(;this._groups.length<ge;){var Q={it:this.cloneElements(this._elements),ty:"gr"};Q.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,Q),this._groups.splice(0,0,Q),this._currentCopies+=1}this.elem.reloadShapes(),U=!0}P=0;var $e;for($=0;$<=this._groups.length-1;$+=1){if($e=P<ge,this._groups[$]._render=$e,this.changeGroupRender(this._groups[$].it,$e),!$e){var Ce=this.elemsData[$].it,Fe=Ce[Ce.length-1];Fe.transform.op.v!==0?(Fe.transform.op._mdf=!0,Fe.transform.op.v=0):Fe.transform.op._mdf=!1}P+=1}this._currentCopies=ge;var M=this.o.v,ee=M%1,Y=M>0?Math.floor(M):Math.ceil(M),pe=this.pMatrix.props,he=this.rMatrix.props,W=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(M>0){for(;Z<Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Z+=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,ee,!1),Z+=ee)}else if(M<0){for(;Z>Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Z-=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-ee,!0),Z-=ee)}$=this.data.m===1?0:this._currentCopies-1,T=this.data.m===1?1:-1,P=this._currentCopies;for(var L,V;P;){if(p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,V=v.length,p[p.length-1].transform.mProps._mdf=!0,p[p.length-1].transform.op._mdf=!0,p[p.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*($/(this._currentCopies-1)),Z!==0){for(($!==0&&T===1||$!==this._currentCopies-1&&T===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(he[0],he[1],he[2],he[3],he[4],he[5],he[6],he[7],he[8],he[9],he[10],he[11],he[12],he[13],he[14],he[15]),this.matrix.transform(W[0],W[1],W[2],W[3],W[4],W[5],W[6],W[7],W[8],W[9],W[10],W[11],W[12],W[13],W[14],W[15]),this.matrix.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5],pe[6],pe[7],pe[8],pe[9],pe[10],pe[11],pe[12],pe[13],pe[14],pe[15]),L=0;L<V;L+=1)v[L]=this.matrix.props[L];this.matrix.reset()}else for(this.matrix.reset(),L=0;L<V;L+=1)v[L]=this.matrix.props[L];Z+=1,P-=1,$+=T}}else for(P=this._currentCopies,$=0,T=1;P;)p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,p[p.length-1].transform.mProps._mdf=!1,p[p.length-1].transform.op._mdf=!1,P-=1,$+=T;return U},We.prototype.addShape=function(){};function ct(){}Le([mr],ct),ct.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.rd=ut.getProp(c,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ct.prototype.processPath=function(c,p){var v=qn.newElement();v.c=c.c;var $,T=c._length,P,U,ge,Q,$e,Ce,Fe=0,M,ee,Y,pe,he,W;for($=0;$<T;$+=1)P=c.v[$],ge=c.o[$],U=c.i[$],P[0]===ge[0]&&P[1]===ge[1]&&P[0]===U[0]&&P[1]===U[1]?($===0||$===T-1)&&!c.c?(v.setTripleAt(P[0],P[1],ge[0],ge[1],U[0],U[1],Fe),Fe+=1):($===0?Q=c.v[T-1]:Q=c.v[$-1],$e=Math.sqrt(Math.pow(P[0]-Q[0],2)+Math.pow(P[1]-Q[1],2)),Ce=$e?Math.min($e/2,p)/$e:0,he=P[0]+(Q[0]-P[0])*Ce,M=he,W=P[1]-(P[1]-Q[1])*Ce,ee=W,Y=M-(M-P[0])*Re,pe=ee-(ee-P[1])*Re,v.setTripleAt(M,ee,Y,pe,he,W,Fe),Fe+=1,$===T-1?Q=c.v[0]:Q=c.v[$+1],$e=Math.sqrt(Math.pow(P[0]-Q[0],2)+Math.pow(P[1]-Q[1],2)),Ce=$e?Math.min($e/2,p)/$e:0,Y=P[0]+(Q[0]-P[0])*Ce,M=Y,pe=P[1]+(Q[1]-P[1])*Ce,ee=pe,he=M-(M-P[0])*Re,W=ee-(ee-P[1])*Re,v.setTripleAt(M,ee,Y,pe,he,W,Fe),Fe+=1):(v.setTripleAt(c.v[$][0],c.v[$][1],c.o[$][0],c.o[$][1],c.i[$][0],c.i[$][1],Fe),Fe+=1);return v},ct.prototype.processShapes=function(c){var p,v,$=this.shapes.length,T,P,U=this.rd.v;if(U!==0){var ge,Q;for(v=0;v<$;v+=1){if(ge=this.shapes[v],Q=ge.localShapeCollection,!(!ge.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),ge.shape._mdf=!0,p=ge.shape.paths.shapes,P=ge.shape.paths._length,T=0;T<P;T+=1)Q.addShape(this.processPath(p[T],U));ge.shape.paths=ge.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Bt(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function St(c){return Math.abs(c)<=1e-5}function Tt(c,p,v){return c*(1-v)+p*v}function Zt(c,p,v){return[Tt(c[0],p[0],v),Tt(c[1],p[1],v)]}function Pn(c,p,v){if(c===0)return[];var $=p*p-4*c*v;if($<0)return[];var T=-p/(2*c);if($===0)return[T];var P=Math.sqrt($)/(2*c);return[T-P,T+P]}function ur(c,p,v,$){return[-c+3*p-3*v+$,3*c-6*p+3*v,-3*c+3*p,c]}function lr(c){return new on(c,c,c,c,!1)}function on(c,p,v,$,T){T&&vo(c,p)&&(p=Zt(c,$,1/3)),T&&vo(v,$)&&(v=Zt(c,$,2/3));var P=ur(c[0],p[0],v[0],$[0]),U=ur(c[1],p[1],v[1],$[1]);this.a=[P[0],U[0]],this.b=[P[1],U[1]],this.c=[P[2],U[2]],this.d=[P[3],U[3]],this.points=[c,p,v,$]}on.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},on.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},on.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},on.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},on.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(St(c))return[];var p=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,v=p*p-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(v<0)return[];var $=Math.sqrt(v);return St($)?$>0&&$<1?[p]:[]:[p-$,p+$].filter(function(T){return T>0&&T<1})},on.prototype.split=function(c){if(c<=0)return[lr(this.points[0]),this];if(c>=1)return[this,lr(this.points[this.points.length-1])];var p=Zt(this.points[0],this.points[1],c),v=Zt(this.points[1],this.points[2],c),$=Zt(this.points[2],this.points[3],c),T=Zt(p,v,c),P=Zt(v,$,c),U=Zt(T,P,c);return[new on(this.points[0],p,T,U,!0),new on(U,P,$,this.points[3],!0)]};function br(c,p){var v=c.points[0][p],$=c.points[c.points.length-1][p];if(v>$){var T=$;$=v,v=T}for(var P=Pn(3*c.a[p],2*c.b[p],c.c[p]),U=0;U<P.length;U+=1)if(P[U]>0&&P[U]<1){var ge=c.point(P[U])[p];ge<v?v=ge:ge>$&&($=ge)}return{min:v,max:$}}on.prototype.bounds=function(){return{x:br(this,0),y:br(this,1)}},on.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function go(c,p,v){var $=c.boundingBox();return{cx:$.cx,cy:$.cy,width:$.width,height:$.height,bez:c,t:(p+v)/2,t1:p,t2:v}}function qo(c){var p=c.bez.split(.5);return[go(p[0],c.t1,c.t),go(p[1],c.t,c.t2)]}function Ps(c,p){return Math.abs(c.cx-p.cx)*2<c.width+p.width&&Math.abs(c.cy-p.cy)*2<c.height+p.height}function Xr(c,p,v,$,T,P){if(Ps(c,p)){if(v>=P||c.width<=$&&c.height<=$&&p.width<=$&&p.height<=$){T.push([c.t,p.t]);return}var U=qo(c),ge=qo(p);Xr(U[0],ge[0],v+1,$,T,P),Xr(U[0],ge[1],v+1,$,T,P),Xr(U[1],ge[0],v+1,$,T,P),Xr(U[1],ge[1],v+1,$,T,P)}}on.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var $=[];return Xr(go(this,0,1),go(c,0,1),0,p,$,v),$},on.shapeSegment=function(c,p){var v=(p+1)%c.length();return new on(c.v[p],c.o[p],c.i[v],c.v[v],!0)},on.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new on(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function cu(c,p){return[c[1]*p[2]-c[2]*p[1],c[2]*p[0]-c[0]*p[2],c[0]*p[1]-c[1]*p[0]]}function Wo(c,p,v,$){var T=[c[0],c[1],1],P=[p[0],p[1],1],U=[v[0],v[1],1],ge=[$[0],$[1],1],Q=cu(cu(T,P),cu(U,ge));return St(Q[2])?null:[Q[0]/Q[2],Q[1]/Q[2]]}function Ho(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function _s(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function vo(c,p){return Bt(c[0],p[0])&&Bt(c[1],p[1])}function Rs(){}Le([mr],Rs),Rs.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amplitude=ut.getProp(c,p.s,0,null,this),this.frequency=ut.getProp(c,p.r,0,null,this),this.pointsType=ut.getProp(c,p.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Sa(c,p,v,$,T,P,U){var ge=v-Math.PI/2,Q=v+Math.PI/2,$e=p[0]+Math.cos(v)*$*T,Ce=p[1]-Math.sin(v)*$*T;c.setTripleAt($e,Ce,$e+Math.cos(ge)*P,Ce-Math.sin(ge)*P,$e+Math.cos(Q)*U,Ce-Math.sin(Q)*U,c.length())}function ll(c,p){var v=[p[0]-c[0],p[1]-c[1]],$=-Math.PI*.5,T=[Math.cos($)*v[0]-Math.sin($)*v[1],Math.sin($)*v[0]+Math.cos($)*v[1]];return T}function Vc(c,p){var v=p===0?c.length()-1:p-1,$=(p+1)%c.length(),T=c.v[v],P=c.v[$],U=ll(T,P);return Math.atan2(0,1)-Math.atan2(U[1],U[0])}function Ms(c,p,v,$,T,P,U){var ge=Vc(p,v),Q=p.v[v%p._length],$e=p.v[v===0?p._length-1:v-1],Ce=p.v[(v+1)%p._length],Fe=P===2?Math.sqrt(Math.pow(Q[0]-$e[0],2)+Math.pow(Q[1]-$e[1],2)):0,M=P===2?Math.sqrt(Math.pow(Q[0]-Ce[0],2)+Math.pow(Q[1]-Ce[1],2)):0;Sa(c,p.v[v%p._length],ge,U,$,M/((T+1)*2),Fe/((T+1)*2))}function Nc(c,p,v,$,T,P){for(var U=0;U<$;U+=1){var ge=(U+1)/($+1),Q=T===2?Math.sqrt(Math.pow(p.points[3][0]-p.points[0][0],2)+Math.pow(p.points[3][1]-p.points[0][1],2)):0,$e=p.normalAngle(ge),Ce=p.point(ge);Sa(c,Ce,$e,P,v,Q/(($+1)*2),Q/(($+1)*2)),P=-P}return P}Rs.prototype.processPath=function(c,p,v,$){var T=c._length,P=qn.newElement();if(P.c=c.c,c.c||(T-=1),T===0)return P;var U=-1,ge=on.shapeSegment(c,0);Ms(P,c,0,p,v,$,U);for(var Q=0;Q<T;Q+=1)U=Nc(P,ge,p,v,$,-U),Q===T-1&&!c.c?ge=null:ge=on.shapeSegment(c,(Q+1)%T),Ms(P,c,Q+1,p,v,$,U);return P},Rs.prototype.processShapes=function(c){var p,v,$=this.shapes.length,T,P,U=this.amplitude.v,ge=Math.max(0,Math.round(this.frequency.v)),Q=this.pointsType.v;if(U!==0){var $e,Ce;for(v=0;v<$;v+=1){if($e=this.shapes[v],Ce=$e.localShapeCollection,!(!$e.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),$e.shape._mdf=!0,p=$e.shape.paths.shapes,P=$e.shape.paths._length,T=0;T<P;T+=1)Ce.addShape(this.processPath(p[T],U,ge,Q));$e.shape.paths=$e.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Fs(c,p,v){var $=Math.atan2(p[0]-c[0],p[1]-c[1]);return[Ho(c,$,v),Ho(p,$,v)]}function sn(c,p){var v,$,T,P,U,ge,Q;Q=Fs(c.points[0],c.points[1],p),v=Q[0],$=Q[1],Q=Fs(c.points[1],c.points[2],p),T=Q[0],P=Q[1],Q=Fs(c.points[2],c.points[3],p),U=Q[0],ge=Q[1];var $e=Wo(v,$,T,P);$e===null&&($e=$);var Ce=Wo(U,ge,T,P);return Ce===null&&(Ce=U),new on(v,$e,Ce,ge)}function cn(c,p,v,$,T){var P=p.points[3],U=v.points[0];if($===3||vo(P,U))return P;if($===2){var ge=-p.tangentAngle(1),Q=-v.tangentAngle(0)+Math.PI,$e=Wo(P,Ho(P,ge+Math.PI/2,100),U,Ho(U,ge+Math.PI/2,100)),Ce=$e?_s($e,P):_s(P,U)/2,Fe=Ho(P,ge,2*Ce*Re);return c.setXYAt(Fe[0],Fe[1],"o",c.length()-1),Fe=Ho(U,Q,2*Ce*Re),c.setTripleAt(U[0],U[1],U[0],U[1],Fe[0],Fe[1],c.length()),U}var M=vo(P,p.points[2])?p.points[0]:p.points[2],ee=vo(U,v.points[1])?v.points[3]:v.points[1],Y=Wo(M,P,U,ee);return Y&&_s(Y,P)<T?(c.setTripleAt(Y[0],Y[1],Y[0],Y[1],Y[0],Y[1],c.length()),Y):P}function ue(c,p){var v=c.intersections(p);return v.length&&Bt(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Me(c,p){var v=c.slice(),$=p.slice(),T=ue(c[c.length-1],p[0]);return T&&(v[c.length-1]=c[c.length-1].split(T[0])[0],$[0]=p[0].split(T[1])[1]),c.length>1&&p.length>1&&(T=ue(c[0],p[p.length-1]),T)?[[c[0].split(T[0])[0]],[p[p.length-1].split(T[1])[1]]]:[v,$]}function Ze(c){for(var p,v=1;v<c.length;v+=1)p=Me(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=Me(c[c.length-1],c[0]),c[c.length-1]=p[0],c[0]=p[1]),c}function bt(c,p){var v=c.inflectionPoints(),$,T,P,U;if(v.length===0)return[sn(c,p)];if(v.length===1||Bt(v[1],1))return P=c.split(v[0]),$=P[0],T=P[1],[sn($,p),sn(T,p)];P=c.split(v[0]),$=P[0];var ge=(v[1]-v[0])/(1-v[0]);return P=P[1].split(ge),U=P[0],T=P[1],[sn($,p),sn(U,p),sn(T,p)]}function Fn(){}Le([mr],Fn),Fn.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=ut.getProp(c,p.a,0,null,this),this.miterLimit=ut.getProp(c,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Fn.prototype.processPath=function(c,p,v,$){var T=qn.newElement();T.c=c.c;var P=c.length();c.c||(P-=1);var U,ge,Q,$e=[];for(U=0;U<P;U+=1)Q=on.shapeSegment(c,U),$e.push(bt(Q,p));if(!c.c)for(U=P-1;U>=0;U-=1)Q=on.shapeSegmentInverted(c,U),$e.push(bt(Q,p));$e=Ze($e);var Ce=null,Fe=null;for(U=0;U<$e.length;U+=1){var M=$e[U];for(Fe&&(Ce=cn(T,Fe,M[0],v,$)),Fe=M[M.length-1],ge=0;ge<M.length;ge+=1)Q=M[ge],Ce&&vo(Q.points[0],Ce)?T.setXYAt(Q.points[1][0],Q.points[1][1],"o",T.length()-1):T.setTripleAt(Q.points[0][0],Q.points[0][1],Q.points[1][0],Q.points[1][1],Q.points[0][0],Q.points[0][1],T.length()),T.setTripleAt(Q.points[3][0],Q.points[3][1],Q.points[3][0],Q.points[3][1],Q.points[2][0],Q.points[2][1],T.length()),Ce=Q.points[3]}return $e.length&&cn(T,Fe,$e[0][0],v,$),T},Fn.prototype.processShapes=function(c){var p,v,$=this.shapes.length,T,P,U=this.amount.v,ge=this.miterLimit.v,Q=this.lineJoin;if(U!==0){var $e,Ce;for(v=0;v<$;v+=1){if($e=this.shapes[v],Ce=$e.localShapeCollection,!(!$e.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),$e.shape._mdf=!0,p=$e.shape.paths.shapes,P=$e.shape.paths._length,T=0;T<P;T+=1)Ce.addShape(this.processPath(p[T],U,Q,ge));$e.shape.paths=$e.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function gr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",$="normal",T=p.length,P,U=0;U<T;U+=1)switch(P=p[U].toLowerCase(),P){case"italic":$="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200";break}return{style:$,weight:c.fWeight||v}}var $r=function(){var c=5e3,p={w:0,size:0,shapes:[],data:{shapes:[]}},v=[];v=v.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var $=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],T=[65039,8205];function P(V){var G=V.split(","),re,le=G.length,me=[];for(re=0;re<le;re+=1)G[re]!=="sans-serif"&&G[re]!=="monospace"&&me.push(G[re]);return me.join(",")}function U(V,G){var re=Ie("span");re.setAttribute("aria-hidden",!0),re.style.fontFamily=G;var le=Ie("span");le.innerText="giItT1WQy@!-/#",re.style.position="absolute",re.style.left="-10000px",re.style.top="-10000px",re.style.fontSize="300px",re.style.fontVariant="normal",re.style.fontStyle="normal",re.style.fontWeight="normal",re.style.letterSpacing="0",re.appendChild(le),document.body.appendChild(re);var me=le.offsetWidth;return le.style.fontFamily=P(V)+", "+G,{node:le,w:me,parent:re}}function ge(){var V,G=this.fonts.length,re,le,me=G;for(V=0;V<G;V+=1)this.fonts[V].loaded?me-=1:this.fonts[V].fOrigin==="n"||this.fonts[V].origin===0?this.fonts[V].loaded=!0:(re=this.fonts[V].monoCase.node,le=this.fonts[V].monoCase.w,re.offsetWidth!==le?(me-=1,this.fonts[V].loaded=!0):(re=this.fonts[V].sansCase.node,le=this.fonts[V].sansCase.w,re.offsetWidth!==le&&(me-=1,this.fonts[V].loaded=!0)),this.fonts[V].loaded&&(this.fonts[V].sansCase.parent.parentNode.removeChild(this.fonts[V].sansCase.parent),this.fonts[V].monoCase.parent.parentNode.removeChild(this.fonts[V].monoCase.parent)));me!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Q(V,G){var re=document.body&&G?"svg":"canvas",le,me=gr(V);if(re==="svg"){var Oe=Ct("text");Oe.style.fontSize="100px",Oe.setAttribute("font-family",V.fFamily),Oe.setAttribute("font-style",me.style),Oe.setAttribute("font-weight",me.weight),Oe.textContent="1",V.fClass?(Oe.style.fontFamily="inherit",Oe.setAttribute("class",V.fClass)):Oe.style.fontFamily=V.fFamily,G.appendChild(Oe),le=Oe}else{var ot=new OffscreenCanvas(500,500).getContext("2d");ot.font=me.style+" "+me.weight+" 100px "+V.fFamily,le=ot}function it(Ue){return re==="svg"?(le.textContent=Ue,le.getComputedTextLength()):le.measureText(Ue).width}return{measureText:it}}function $e(V,G){if(!V){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=V.list;return}if(!document.body){this.isLoaded=!0,V.list.forEach(function(xe){xe.helper=Q(xe),xe.cache={}}),this.fonts=V.list;return}var re=V.list,le,me=re.length,Oe=me;for(le=0;le<me;le+=1){var ot=!0,it,Ue;if(re[le].loaded=!1,re[le].monoCase=U(re[le].fFamily,"monospace"),re[le].sansCase=U(re[le].fFamily,"sans-serif"),!re[le].fPath)re[le].loaded=!0,Oe-=1;else if(re[le].fOrigin==="p"||re[le].origin===3){if(it=document.querySelectorAll('style[f-forigin="p"][f-family="'+re[le].fFamily+'"], style[f-origin="3"][f-family="'+re[le].fFamily+'"]'),it.length>0&&(ot=!1),ot){var ht=Ie("style");ht.setAttribute("f-forigin",re[le].fOrigin),ht.setAttribute("f-origin",re[le].origin),ht.setAttribute("f-family",re[le].fFamily),ht.type="text/css",ht.innerText="@font-face {font-family: "+re[le].fFamily+"; font-style: normal; src: url('"+re[le].fPath+"');}",G.appendChild(ht)}}else if(re[le].fOrigin==="g"||re[le].origin===1){for(it=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ue=0;Ue<it.length;Ue+=1)it[Ue].href.indexOf(re[le].fPath)!==-1&&(ot=!1);if(ot){var gt=Ie("link");gt.setAttribute("f-forigin",re[le].fOrigin),gt.setAttribute("f-origin",re[le].origin),gt.type="text/css",gt.rel="stylesheet",gt.href=re[le].fPath,document.body.appendChild(gt)}}else if(re[le].fOrigin==="t"||re[le].origin===2){for(it=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ue=0;Ue<it.length;Ue+=1)re[le].fPath===it[Ue].src&&(ot=!1);if(ot){var je=Ie("link");je.setAttribute("f-forigin",re[le].fOrigin),je.setAttribute("f-origin",re[le].origin),je.setAttribute("rel","stylesheet"),je.setAttribute("href",re[le].fPath),G.appendChild(je)}}re[le].helper=Q(re[le],G),re[le].cache={},this.fonts.push(re[le])}Oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ce(V){if(V){this.chars||(this.chars=[]);var G,re=V.length,le,me=this.chars.length,Oe;for(G=0;G<re;G+=1){for(le=0,Oe=!1;le<me;)this.chars[le].style===V[G].style&&this.chars[le].fFamily===V[G].fFamily&&this.chars[le].ch===V[G].ch&&(Oe=!0),le+=1;Oe||(this.chars.push(V[G]),me+=1)}}}function Fe(V,G,re){for(var le=0,me=this.chars.length;le<me;){if(this.chars[le].ch===V&&this.chars[le].style===G&&this.chars[le].fFamily===re)return this.chars[le];le+=1}return(typeof V=="string"&&V.charCodeAt(0)!==13||!V)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",V,G,re)),p}function M(V,G,re){var le=this.getFontByName(G),me=V.charCodeAt(0);if(!le.cache[me+1]){var Oe=le.helper;if(V===" "){var ot=Oe.measureText("|"+V+"|"),it=Oe.measureText("||");le.cache[me+1]=(ot-it)/100}else le.cache[me+1]=Oe.measureText(V)/100}return le.cache[me+1]*re}function ee(V){for(var G=0,re=this.fonts.length;G<re;){if(this.fonts[G].fName===V)return this.fonts[G];G+=1}return this.fonts[0]}function Y(V,G){var re=V.toString(16)+G.toString(16);return $.indexOf(re)!==-1}function pe(V,G){return G?V===T[0]&&G===T[1]:V===T[1]}function he(V){return v.indexOf(V)!==-1}function W(){this.isLoaded=!0}var Z=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Z.isModifier=Y,Z.isZeroWidthJoiner=pe,Z.isCombinedCharacter=he;var L={addChars:Ce,addFonts:$e,getCharData:Fe,getFontByName:ee,measureText:M,checkLoadedFonts:ge,setIsLoaded:W};return Z.prototype=L,Z}();function Xn(){}Xn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(p){this.renderableComponents.indexOf(p)===-1&&this.renderableComponents.push(p)},removeRenderableComponent:function(p){this.renderableComponents.indexOf(p)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(p),1)},prepareRenderableFrame:function(p){this.checkLayerLimits(p)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(p){this.data.ip-this.data.st<=p&&this.data.op-this.data.st>p?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var p,v=this.renderableComponents.length;for(p=0;p<v;p+=1)this.renderableComponents[p].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Ln=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(p){return c[p]||""}}();function Ni(c,p,v){this.p=ut.getProp(p,c.v,0,0,v)}function ji(c,p,v){this.p=ut.getProp(p,c.v,0,0,v)}function fu(c,p,v){this.p=ut.getProp(p,c.v,1,0,v)}function Ea(c,p,v){this.p=ut.getProp(p,c.v,1,0,v)}function xr(c,p,v){this.p=ut.getProp(p,c.v,0,0,v)}function ks(c,p,v){this.p=ut.getProp(p,c.v,0,0,v)}function Zd(c,p,v){this.p=ut.getProp(p,c.v,0,0,v)}function Xd(){this.p={}}function jc(c,p){var v=c.ef||[];this.effectElements=[];var $,T=v.length,P;for($=0;$<T;$+=1)P=new Da(v[$],p),this.effectElements.push(P)}function Da(c,p){this.init(c,p)}Le([yn],Da),Da.prototype.getValue=Da.prototype.iterateDynamicProperties,Da.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,$=this.data.ef.length,T,P=this.data.ef;for(v=0;v<$;v+=1){switch(T=null,P[v].ty){case 0:T=new Ni(P[v],p,this);break;case 1:T=new ji(P[v],p,this);break;case 2:T=new fu(P[v],p,this);break;case 3:T=new Ea(P[v],p,this);break;case 4:case 7:T=new Zd(P[v],p,this);break;case 10:T=new xr(P[v],p,this);break;case 11:T=new ks(P[v],p,this);break;case 5:T=new jc(P[v],p);break;default:T=new Xd(P[v]);break}T&&this.effectElements.push(T)}};function yo(){}yo.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var p=0,v=this.data.masksProperties.length;p<v;){if(this.data.masksProperties[p].mode!=="n"&&this.data.masksProperties[p].cl!==!1)return!0;p+=1}return!1},initExpressions:function(){},setBlendMode:function(){var p=Ln(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,$){this.globalData=v,this.comp=$,this.data=p,this.layerId=Gt(),this.data.sr||(this.data.sr=1),this.effectsManager=new jc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Wn(){}Wn.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var $,T=this.dynamicProperties.length;for($=0;$<T;$+=1)(v||this._isParent&&this.dynamicProperties[$].propType==="transform")&&(this.dynamicProperties[$].getValue(),this.dynamicProperties[$]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Go(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.footageData=p.imageLoader.getAsset(this.assetData),this.initBaseData(c,p,v)}Go.prototype.prepareFrame=function(){},Le([Xn,yo,Wn],Go),Go.prototype.getBaseElement=function(){return null},Go.prototype.renderFrame=function(){},Go.prototype.destroy=function(){},Go.prototype.initExpressions=function(){},Go.prototype.getFootageData=function(){return this.footageData};function Sn(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.initBaseData(c,p,v),this._isPlaying=!1,this._canPlay=!1;var $=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio($),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?ut.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=ut.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}Sn.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var p=this.tm.v;this._currentTime=p}this._volume=this.lv.v[0];var v=this._volume*this._volumeMultiplier;this._previousVolume!==v&&(this._previousVolume=v,this.audio.volume(v))},Le([Xn,yo,Wn],Sn),Sn.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Sn.prototype.show=function(){},Sn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Sn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Sn.prototype.resume=function(){this._canPlay=!0},Sn.prototype.setRate=function(c){this.audio.rate(c)},Sn.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},Sn.prototype.getBaseElement=function(){return null},Sn.prototype.destroy=function(){},Sn.prototype.sourceRectAtTime=function(){},Sn.prototype.initExpressions=function(){};function wr(){}wr.prototype.checkLayers=function(c){var p,v=this.layers.length,$;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||($=this.layers[p],$.ip-$.st<=c-this.layers[p].st&&$.op-$.st>c-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},wr.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},wr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},wr.prototype.createAudio=function(c){return new Sn(c,this.globalData,this)},wr.prototype.createFootage=function(c){return new Go(c,this.globalData,this)},wr.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},wr.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,$,T=this.layers.length;for(p=0;p<v;p+=1)for($=0;$<T;){if(this.layers[$].id===c[p].id){this.layers[$]=c[p];break}$+=1}},wr.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},wr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},wr.prototype.buildElementParenting=function(c,p,v){for(var $=this.elements,T=this.layers,P=0,U=T.length;P<U;)T[P].ind==p&&(!$[P]||$[P]===!0?(this.buildItem(P),this.addPendingElement(c)):(v.push($[P]),$[P].setAsParent(),T[P].parent!==void 0?this.buildElementParenting(c,T[P].parent,v):c.setHierarchy(v))),P+=1},wr.prototype.addPendingElement=function(c){this.pendingElements.push(c)},wr.prototype.searchExtraCompositions=function(c){var p,v=c.length;for(p=0;p<v;p+=1)if(c[p].xt){var $=this.createComp(c[p]);$.initExpressions(),this.globalData.projectInterface.registerComposition($)}},wr.prototype.getElementById=function(c){var p,v=this.elements.length;for(p=0;p<v;p+=1)if(this.elements[p].data.ind===c)return this.elements[p];return null},wr.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var $,T=this.elements.length;for($=0;$<T;$+=1)if(this.elements[$].data.nm===p){v=this.elements[$];break}}return c.length===0?v:v.getElementByPath(c)},wr.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new $r,this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,p),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};function Os(){}Os.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Ve.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Tn},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var p,v=this.finalTransform.mat,$=0,T=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;$<T;){if(this.hierarchy[$].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}$+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),$=0;$<T;$+=1)p=this.hierarchy[$].finalTransform.mProp.v.props,v.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])}},globalToLocal:function(p){var v=[];v.push(this.finalTransform);for(var $=!0,T=this.comp;$;)T.finalTransform?(T.data.hasMask&&v.splice(0,0,T.finalTransform),T=T.comp):$=!1;var P,U=v.length,ge;for(P=0;P<U;P+=1)ge=v[P].mat.applyToPointArray(0,0,0),p=[p[0]-ge[0],p[1]-ge[1],0];return p},mHelper:new Tn};function Br(c,p,v){this.data=c,this.element=p,this.globalData=v,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var $=this.globalData.defs,T,P=this.masksProperties?this.masksProperties.length:0;this.viewData=Ne(P),this.solidPath="";var U,ge=this.masksProperties,Q=0,$e=[],Ce,Fe,M=Gt(),ee,Y,pe,he,W="clipPath",Z="clip-path";for(T=0;T<P;T+=1)if((ge[T].mode!=="a"&&ge[T].mode!=="n"||ge[T].inv||ge[T].o.k!==100||ge[T].o.x)&&(W="mask",Z="mask"),(ge[T].mode==="s"||ge[T].mode==="i")&&Q===0?(ee=Ct("rect"),ee.setAttribute("fill","#ffffff"),ee.setAttribute("width",this.element.comp.data.w||0),ee.setAttribute("height",this.element.comp.data.h||0),$e.push(ee)):ee=null,U=Ct("path"),ge[T].mode==="n")this.viewData[T]={op:ut.getProp(this.element,ge[T].o,0,.01,this.element),prop:Zr.getShapeProp(this.element,ge[T],3),elem:U,lastPath:""},$.appendChild(U);else{Q+=1,U.setAttribute("fill",ge[T].mode==="s"?"#000000":"#ffffff"),U.setAttribute("clip-rule","nonzero");var L;if(ge[T].x.k!==0?(W="mask",Z="mask",he=ut.getProp(this.element,ge[T].x,0,null,this.element),L=Gt(),Y=Ct("filter"),Y.setAttribute("id",L),pe=Ct("feMorphology"),pe.setAttribute("operator","erode"),pe.setAttribute("in","SourceGraphic"),pe.setAttribute("radius","0"),Y.appendChild(pe),$.appendChild(Y),U.setAttribute("stroke",ge[T].mode==="s"?"#000000":"#ffffff")):(pe=null,he=null),this.storedData[T]={elem:U,x:he,expan:pe,lastPath:"",lastOperator:"",filterId:L,lastRadius:0},ge[T].mode==="i"){Fe=$e.length;var V=Ct("g");for(Ce=0;Ce<Fe;Ce+=1)V.appendChild($e[Ce]);var G=Ct("mask");G.setAttribute("mask-type","alpha"),G.setAttribute("id",M+"_"+Q),G.appendChild(U),$.appendChild(G),V.setAttribute("mask","url("+Pe()+"#"+M+"_"+Q+")"),$e.length=0,$e.push(V)}else $e.push(U);ge[T].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[T]={elem:U,lastPath:"",op:ut.getProp(this.element,ge[T].o,0,.01,this.element),prop:Zr.getShapeProp(this.element,ge[T],3),invRect:ee},this.viewData[T].prop.k||this.drawPath(ge[T],this.viewData[T].prop.v,this.viewData[T])}for(this.maskElement=Ct(W),P=$e.length,T=0;T<P;T+=1)this.maskElement.appendChild($e[T]);Q>0&&(this.maskElement.setAttribute("id",M),this.element.maskedElement.setAttribute(Z,"url("+Pe()+"#"+M+")"),$.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Br.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Br.prototype.renderFrame=function(c){var p=this.element.finalTransform.mat,v,$=this.masksProperties.length;for(v=0;v<$;v+=1)if((this.viewData[v].prop._mdf||c)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||c)&&this.viewData[v].elem.setAttribute("fill-opacity",this.viewData[v].op.v),this.masksProperties[v].mode!=="n"&&(this.viewData[v].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||c))){var T=this.storedData[v].expan;this.storedData[v].x.v<0?(this.storedData[v].lastOperator!=="erode"&&(this.storedData[v].lastOperator="erode",this.storedData[v].elem.setAttribute("filter","url("+Pe()+"#"+this.storedData[v].filterId+")")),T.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},Br.prototype.getMaskelement=function(){return this.maskElement},Br.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},Br.prototype.drawPath=function(c,p,v){var $=" M"+p.v[0][0]+","+p.v[0][1],T,P;for(P=p._length,T=1;T<P;T+=1)$+=" C"+p.o[T-1][0]+","+p.o[T-1][1]+" "+p.i[T][0]+","+p.i[T][1]+" "+p.v[T][0]+","+p.v[T][1];if(p.c&&P>1&&($+=" C"+p.o[T-1][0]+","+p.o[T-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==$){var U="";v.elem&&(p.c&&(U=c.inv?this.solidPath+$:$),v.elem.setAttribute("d",U)),v.lastPath=$}},Br.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Yo=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p($,T){var P=Ct("filter");return P.setAttribute("id",$),T!==!0&&(P.setAttribute("filterUnits","objectBoundingBox"),P.setAttribute("x","0%"),P.setAttribute("y","0%"),P.setAttribute("width","100%"),P.setAttribute("height","100%")),P}function v(){var $=Ct("feColorMatrix");return $.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),$}return c}(),cl=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),wn={},bo="filter_result_";function fl(c){var p,v="SourceGraphic",$=c.data.ef?c.data.ef.length:0,T=Gt(),P=Yo.createFilter(T,!0),U=0;this.filters=[];var ge;for(p=0;p<$;p+=1){ge=null;var Q=c.data.ef[p].ty;if(wn[Q]){var $e=wn[Q].effect;ge=new $e(P,c.effectsManager.effectElements[p],c,bo+U,v),v=bo+U,wn[Q].countsAsEffect&&(U+=1)}ge&&this.filters.push(ge)}U&&(c.globalData.defs.appendChild(P),c.layerElement.setAttribute("filter","url("+Pe()+"#"+T+")")),this.filters.length&&c.addRenderableComponent(this)}fl.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function du(){}du.prototype={initRendererElement:function(){this.layerElement=Ct("g")},createContainerElements:function(){this.matteElement=Ct("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=Ct("g");v.setAttribute("id",this.layerId),v.appendChild(this.layerElement),p=v,this.globalData.defs.appendChild(v)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),p=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var $=Ct("clipPath"),T=Ct("path");T.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var P=Gt();if($.setAttribute("id",P),$.appendChild(T),this.globalData.defs.appendChild($),this.checkMasks()){var U=Ct("g");U.setAttribute("clip-path","url("+Pe()+"#"+P+")"),U.appendChild(this.layerElement),this.transformedElement=U,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Pe()+"#"+P+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Br(this.data,this,this.globalData),this.renderableEffectsManager=new fl(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,$,T,P,U;if(p===1||p===3){var ge=Ct("mask");ge.setAttribute("id",v),ge.setAttribute("mask-type",p===3?"luminance":"alpha"),P=Ct("use"),P.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ge.appendChild(P),this.globalData.defs.appendChild(ge),!cl.maskType&&p===1&&(ge.setAttribute("mask-type","luminance"),$=Gt(),T=Yo.createFilter($),this.globalData.defs.appendChild(T),T.appendChild(Yo.createAlphaToLuminanceFilter()),U=Ct("g"),U.appendChild(P),ge.appendChild(U),U.setAttribute("filter","url("+Pe()+"#"+$+")"))}else if(p===2){var Q=Ct("mask");Q.setAttribute("id",v),Q.setAttribute("mask-type","alpha");var $e=Ct("g");Q.appendChild($e),$=Gt(),T=Yo.createFilter($);var Ce=Ct("feComponentTransfer");Ce.setAttribute("in","SourceGraphic"),T.appendChild(Ce);var Fe=Ct("feFuncA");Fe.setAttribute("type","table"),Fe.setAttribute("tableValues","1.0 0.0"),Ce.appendChild(Fe),this.globalData.defs.appendChild(T);var M=Ct("rect");M.setAttribute("width",this.comp.data.w),M.setAttribute("height",this.comp.data.h),M.setAttribute("x","0"),M.setAttribute("y","0"),M.setAttribute("fill","#ffffff"),M.setAttribute("opacity","0"),$e.setAttribute("filter","url("+Pe()+"#"+$+")"),$e.appendChild(M),P=Ct("use"),P.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),$e.appendChild(P),cl.maskType||(Q.setAttribute("mask-type","luminance"),T.appendChild(Yo.createAlphaToLuminanceFilter()),U=Ct("g"),$e.appendChild(M),U.appendChild(this.layerElement),$e.appendChild(U)),this.globalData.defs.appendChild(Q)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+Pe()+"#"+p+")")}};function Zo(){}Zo.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(p){this.hierarchy=p},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function hu(){}(function(){var c={initElement:function(v,$,T){this.initFrame(),this.initBaseData(v,$,T),this.initTransform(v,$,T),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var v=this.baseElement||this.layerElement;v.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var v=this.baseElement||this.layerElement;v.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(v){this._mdf=!1,this.prepareRenderableFrame(v),this.prepareProperties(v,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Le([Xn,Je(c)],hu)})();function pu(c,p,v){this.assetData=p.getAssetData(c.refId),this.initElement(c,p,v),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}Le([yo,Os,du,Zo,Wn,hu],pu),pu.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=Ct("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},pu.prototype.sourceRectAtTime=function(){return this.sourceRect};function fg(c,p){this.elem=c,this.pos=p}function Kc(){}Kc.prototype={addShapeToModifiers:function(p){var v,$=this.shapeModifiers.length;for(v=0;v<$;v+=1)this.shapeModifiers[v].addShape(p)},isShapeInAnimatedModifiers:function(p){for(var v=0,$=this.shapeModifiers.length;v<$;)if(this.shapeModifiers[v].isAnimatedWithShape(p))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var p,v=this.shapes.length;for(p=0;p<v;p+=1)this.shapes[p].sh.reset();v=this.shapeModifiers.length;var $;for(p=v-1;p>=0&&($=this.shapeModifiers[p].processShapes(this._isFirstFrame),!$);p-=1);}},searchProcessedElement:function(p){for(var v=this.processedElements,$=0,T=v.length;$<T;){if(v[$].elem===p)return v[$].pos;$+=1}return 0},addProcessedElement:function(p,v){for(var $=this.processedElements,T=$.length;T;)if(T-=1,$[T].elem===p){$[T].pos=v;return}$.push(new fg(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var mu={1:"butt",2:"round",3:"square"},Is={1:"miter",2:"round",3:"bevel"};function Jd(c,p,v){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=v,this.lvl=p,this._isAnimated=!!v.k;for(var $=0,T=c.length;$<T;){if(c[$].mProps.dynamicProperties.length){this._isAnimated=!0;break}$+=1}}Jd.prototype.setAsAnimated=function(){this._isAnimated=!0};function Uc(c,p){this.data=c,this.type=c.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=c.hd===!0,this.pElem=Ct("path"),this.msElem=null}Uc.prototype.reset=function(){this.d="",this._mdf=!1};function gu(c,p,v,$){this.elem=c,this.frameId=-1,this.dataProps=Ne(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=ye("float32",p.length?p.length-1:0),this.dashoffset=ye("float32",1),this.initDynamicPropertyContainer($);var T,P=p.length||0,U;for(T=0;T<P;T+=1)U=ut.getProp(c,p[T].v,0,0,this),this.k=U.k||this.k,this.dataProps[T]={n:p[T].n,p:U};this.k||this.getValue(!0),this._isAnimated=this.k}gu.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var p=0,v=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),p=0;p<v;p+=1)this.dataProps[p].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[p].p.v:this.dashArray[p]=this.dataProps[p].p.v:this.dashoffset[0]=this.dataProps[p].p.v}},Le([yn],gu);function dl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=ut.getProp(c,p.o,0,.01,this),this.w=ut.getProp(c,p.w,0,null,this),this.d=new gu(c,p.d||{},"svg",this),this.c=ut.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Le([yn],dl);function hl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=ut.getProp(c,p.o,0,.01,this),this.c=ut.getProp(c,p.c,1,255,this),this.style=v}Le([yn],hl);function zc(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Le([yn],zc);function vu(c,p,v){this.data=p,this.c=ye("uint8c",p.p*4);var $=p.k.k[0].s?p.k.k[0].s.length-p.p*4:p.k.k.length-p.p*4;this.o=ye("float32",$),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=$,this.initDynamicPropertyContainer(v),this.prop=ut.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}vu.prototype.comparePoints=function(c,p){for(var v=0,$=this.o.length/2,T;v<$;){if(T=Math.abs(c[v*4]-c[p*4+v*2]),T>.01)return!1;v+=1}return!0},vu.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,p=this.data.k.k.length;c<p;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},vu.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var p,v=this.data.p*4,$,T;for(p=0;p<v;p+=1)$=p%4===0?100:255,T=Math.round(this.prop.v[p]*$),this.c[p]!==T&&(this.c[p]=T,this._cmdf=!c);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)$=p%2===0?100:1,T=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==T&&(this.o[p-this.data.p*4]=T,this._omdf=!c);this._mdf=!c}},Le([yn],vu);function Xo(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}Xo.prototype.initGradientData=function(c,p,v){this.o=ut.getProp(c,p.o,0,.01,this),this.s=ut.getProp(c,p.s,1,null,this),this.e=ut.getProp(c,p.e,1,null,this),this.h=ut.getProp(c,p.h||{k:0},0,.01,this),this.a=ut.getProp(c,p.a||{k:0},0,Se,this),this.g=new vu(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},Xo.prototype.setGradientData=function(c,p){var v=Gt(),$=Ct(p.t===1?"linearGradient":"radialGradient");$.setAttribute("id",v),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse");var T=[],P,U,ge;for(ge=p.g.p*4,U=0;U<ge;U+=4)P=Ct("stop"),$.appendChild(P),T.push(P);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+Pe()+"#"+v+")"),this.gf=$,this.cst=T},Xo.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,$,T,P=Ct("mask"),U=Ct("path");P.appendChild(U);var ge=Gt(),Q=Gt();P.setAttribute("id",Q);var $e=Ct(c.t===1?"linearGradient":"radialGradient");$e.setAttribute("id",ge),$e.setAttribute("spreadMethod","pad"),$e.setAttribute("gradientUnits","userSpaceOnUse"),T=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var Ce=this.stops;for($=c.g.p*4;$<T;$+=2)v=Ct("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),$e.appendChild(v),Ce.push(v);U.setAttribute(c.ty==="gf"?"fill":"stroke","url("+Pe()+"#"+ge+")"),c.ty==="gs"&&(U.setAttribute("stroke-linecap",mu[c.lc||2]),U.setAttribute("stroke-linejoin",Is[c.lj||2]),c.lj===1&&U.setAttribute("stroke-miterlimit",c.ml)),this.of=$e,this.ms=P,this.ost=Ce,this.maskId=Q,p.msElem=U}},Le([yn],Xo);function pl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=ut.getProp(c,p.w,0,null,this),this.d=new gu(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Le([Xo,yn],pl);function dg(){this.it=[],this.prevViewData=[],this.gr=Ct("g")}function Qd(c,p,v){this.transform={mProps:c,op:p,container:v},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Vr=function(p,v,$,T){if(v===0)return"";var P=p.o,U=p.i,ge=p.v,Q,$e=" M"+T.applyToPointStringified(ge[0][0],ge[0][1]);for(Q=1;Q<v;Q+=1)$e+=" C"+T.applyToPointStringified(P[Q-1][0],P[Q-1][1])+" "+T.applyToPointStringified(U[Q][0],U[Q][1])+" "+T.applyToPointStringified(ge[Q][0],ge[Q][1]);return $&&v&&($e+=" C"+T.applyToPointStringified(P[Q-1][0],P[Q-1][1])+" "+T.applyToPointStringified(U[0][0],U[0][1])+" "+T.applyToPointStringified(ge[0][0],ge[0][1]),$e+="z"),$e},qc=function(){var c=new Tn,p=new Tn,v={createRenderFunction:$};function $(Fe){switch(Fe.ty){case"fl":return ge;case"gf":return $e;case"gs":return Q;case"st":return Ce;case"sh":case"el":case"rc":case"sr":return U;case"tr":return T;case"no":return P;default:return null}}function T(Fe,M,ee){(ee||M.transform.op._mdf)&&M.transform.container.setAttribute("opacity",M.transform.op.v),(ee||M.transform.mProps._mdf)&&M.transform.container.setAttribute("transform",M.transform.mProps.v.to2dCSS())}function P(){}function U(Fe,M,ee){var Y,pe,he,W,Z,L,V=M.styles.length,G=M.lvl,re,le,me,Oe,ot;for(L=0;L<V;L+=1){if(W=M.sh._mdf||ee,M.styles[L].lvl<G){for(le=p.reset(),Oe=G-M.styles[L].lvl,ot=M.transformers.length-1;!W&&Oe>0;)W=M.transformers[ot].mProps._mdf||W,Oe-=1,ot-=1;if(W)for(Oe=G-M.styles[L].lvl,ot=M.transformers.length-1;Oe>0;)me=M.transformers[ot].mProps.v.props,le.transform(me[0],me[1],me[2],me[3],me[4],me[5],me[6],me[7],me[8],me[9],me[10],me[11],me[12],me[13],me[14],me[15]),Oe-=1,ot-=1}else le=c;if(re=M.sh.paths,pe=re._length,W){for(he="",Y=0;Y<pe;Y+=1)Z=re.shapes[Y],Z&&Z._length&&(he+=Vr(Z,Z._length,Z.c,le));M.caches[L]=he}else he=M.caches[L];M.styles[L].d+=Fe.hd===!0?"":he,M.styles[L]._mdf=W||M.styles[L]._mdf}}function ge(Fe,M,ee){var Y=M.style;(M.c._mdf||ee)&&Y.pElem.setAttribute("fill","rgb("+At(M.c.v[0])+","+At(M.c.v[1])+","+At(M.c.v[2])+")"),(M.o._mdf||ee)&&Y.pElem.setAttribute("fill-opacity",M.o.v)}function Q(Fe,M,ee){$e(Fe,M,ee),Ce(Fe,M,ee)}function $e(Fe,M,ee){var Y=M.gf,pe=M.g._hasOpacity,he=M.s.v,W=M.e.v;if(M.o._mdf||ee){var Z=Fe.ty==="gf"?"fill-opacity":"stroke-opacity";M.style.pElem.setAttribute(Z,M.o.v)}if(M.s._mdf||ee){var L=Fe.t===1?"x1":"cx",V=L==="x1"?"y1":"cy";Y.setAttribute(L,he[0]),Y.setAttribute(V,he[1]),pe&&!M.g._collapsable&&(M.of.setAttribute(L,he[0]),M.of.setAttribute(V,he[1]))}var G,re,le,me;if(M.g._cmdf||ee){G=M.cst;var Oe=M.g.c;for(le=G.length,re=0;re<le;re+=1)me=G[re],me.setAttribute("offset",Oe[re*4]+"%"),me.setAttribute("stop-color","rgb("+Oe[re*4+1]+","+Oe[re*4+2]+","+Oe[re*4+3]+")")}if(pe&&(M.g._omdf||ee)){var ot=M.g.o;for(M.g._collapsable?G=M.cst:G=M.ost,le=G.length,re=0;re<le;re+=1)me=G[re],M.g._collapsable||me.setAttribute("offset",ot[re*2]+"%"),me.setAttribute("stop-opacity",ot[re*2+1])}if(Fe.t===1)(M.e._mdf||ee)&&(Y.setAttribute("x2",W[0]),Y.setAttribute("y2",W[1]),pe&&!M.g._collapsable&&(M.of.setAttribute("x2",W[0]),M.of.setAttribute("y2",W[1])));else{var it;if((M.s._mdf||M.e._mdf||ee)&&(it=Math.sqrt(Math.pow(he[0]-W[0],2)+Math.pow(he[1]-W[1],2)),Y.setAttribute("r",it),pe&&!M.g._collapsable&&M.of.setAttribute("r",it)),M.e._mdf||M.h._mdf||M.a._mdf||ee){it||(it=Math.sqrt(Math.pow(he[0]-W[0],2)+Math.pow(he[1]-W[1],2)));var Ue=Math.atan2(W[1]-he[1],W[0]-he[0]),ht=M.h.v;ht>=1?ht=.99:ht<=-1&&(ht=-.99);var gt=it*ht,je=Math.cos(Ue+M.a.v)*gt+he[0],xe=Math.sin(Ue+M.a.v)*gt+he[1];Y.setAttribute("fx",je),Y.setAttribute("fy",xe),pe&&!M.g._collapsable&&(M.of.setAttribute("fx",je),M.of.setAttribute("fy",xe))}}}function Ce(Fe,M,ee){var Y=M.style,pe=M.d;pe&&(pe._mdf||ee)&&pe.dashStr&&(Y.pElem.setAttribute("stroke-dasharray",pe.dashStr),Y.pElem.setAttribute("stroke-dashoffset",pe.dashoffset[0])),M.c&&(M.c._mdf||ee)&&Y.pElem.setAttribute("stroke","rgb("+At(M.c.v[0])+","+At(M.c.v[1])+","+At(M.c.v[2])+")"),(M.o._mdf||ee)&&Y.pElem.setAttribute("stroke-opacity",M.o.v),(M.w._mdf||ee)&&(Y.pElem.setAttribute("stroke-width",M.w.v),Y.msElem&&Y.msElem.setAttribute("stroke-width",M.w.v))}return v}();function _n(c,p,v){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,p,v),this.prevViewData=[]}Le([yo,Os,du,Kc,Zo,Wn,hu],_n),_n.prototype.initSecondaryElement=function(){},_n.prototype.identityMatrix=new Tn,_n.prototype.buildExpressionInterface=function(){},_n.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},_n.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,$,T=this.stylesList.length,P,U=[],ge=!1;for($=0;$<T;$+=1){for(P=this.stylesList[$],ge=!1,U.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(P)!==-1&&(U.push(v),ge=v._isAnimated||ge);U.length>1&&ge&&this.setShapesAsAnimated(U)}},_n.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},_n.prototype.createStyleElement=function(c,p){var v,$=new Uc(c,p),T=$.pElem;if(c.ty==="st")v=new dl(this,c,$);else if(c.ty==="fl")v=new hl(this,c,$);else if(c.ty==="gf"||c.ty==="gs"){var P=c.ty==="gf"?Xo:pl;v=new P(this,c,$),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),T.setAttribute("mask","url("+Pe()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new zc(this,c,$));return(c.ty==="st"||c.ty==="gs")&&(T.setAttribute("stroke-linecap",mu[c.lc||2]),T.setAttribute("stroke-linejoin",Is[c.lj||2]),T.setAttribute("fill-opacity","0"),c.lj===1&&T.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&T.setAttribute("fill-rule","evenodd"),c.ln&&T.setAttribute("id",c.ln),c.cl&&T.setAttribute("class",c.cl),c.bm&&(T.style["mix-blend-mode"]=Ln(c.bm)),this.stylesList.push($),this.addToAnimatedContents(c,v),v},_n.prototype.createGroupElement=function(c){var p=new dg;return c.ln&&p.gr.setAttribute("id",c.ln),c.cl&&p.gr.setAttribute("class",c.cl),c.bm&&(p.gr.style["mix-blend-mode"]=Ln(c.bm)),p},_n.prototype.createTransformElement=function(c,p){var v=Ve.getTransformProperty(this,c,this),$=new Qd(v,v.o,p);return this.addToAnimatedContents(c,$),$},_n.prototype.createShapeElement=function(c,p,v){var $=4;c.ty==="rc"?$=5:c.ty==="el"?$=6:c.ty==="sr"&&($=7);var T=Zr.getShapeProp(this,c,$,this),P=new Jd(p,v,T);return this.shapes.push(P),this.addShapeToModifiers(P),this.addToAnimatedContents(c,P),P},_n.prototype.addToAnimatedContents=function(c,p){for(var v=0,$=this.animatedContents.length;v<$;){if(this.animatedContents[v].element===p)return;v+=1}this.animatedContents.push({fn:qc.createRenderFunction(c),element:p,data:c})},_n.prototype.setElementStyles=function(c){var p=c.styles,v,$=this.stylesList.length;for(v=0;v<$;v+=1)this.stylesList[v].closed||p.push(this.stylesList[v])},_n.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,p=this.itemsData.length;for(c=0;c<p;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),p=this.dynamicProperties.length,c=0;c<p;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},_n.prototype.searchShapes=function(c,p,v,$,T,P,U){var ge=[].concat(P),Q,$e=c.length-1,Ce,Fe,M=[],ee=[],Y,pe,he;for(Q=$e;Q>=0;Q-=1){if(he=this.searchProcessedElement(c[Q]),he?p[Q]=v[he-1]:c[Q]._render=U,c[Q].ty==="fl"||c[Q].ty==="st"||c[Q].ty==="gf"||c[Q].ty==="gs"||c[Q].ty==="no")he?p[Q].style.closed=!1:p[Q]=this.createStyleElement(c[Q],T),c[Q]._render&&p[Q].style.pElem.parentNode!==$&&$.appendChild(p[Q].style.pElem),M.push(p[Q].style);else if(c[Q].ty==="gr"){if(!he)p[Q]=this.createGroupElement(c[Q]);else for(Fe=p[Q].it.length,Ce=0;Ce<Fe;Ce+=1)p[Q].prevViewData[Ce]=p[Q].it[Ce];this.searchShapes(c[Q].it,p[Q].it,p[Q].prevViewData,p[Q].gr,T+1,ge,U),c[Q]._render&&p[Q].gr.parentNode!==$&&$.appendChild(p[Q].gr)}else c[Q].ty==="tr"?(he||(p[Q]=this.createTransformElement(c[Q],$)),Y=p[Q].transform,ge.push(Y)):c[Q].ty==="sh"||c[Q].ty==="rc"||c[Q].ty==="el"||c[Q].ty==="sr"?(he||(p[Q]=this.createShapeElement(c[Q],ge,T)),this.setElementStyles(p[Q])):c[Q].ty==="tm"||c[Q].ty==="rd"||c[Q].ty==="ms"||c[Q].ty==="pb"||c[Q].ty==="zz"||c[Q].ty==="op"?(he?(pe=p[Q],pe.closed=!1):(pe=Rr.getModifier(c[Q].ty),pe.init(this,c[Q]),p[Q]=pe,this.shapeModifiers.push(pe)),ee.push(pe)):c[Q].ty==="rp"&&(he?(pe=p[Q],pe.closed=!0):(pe=Rr.getModifier(c[Q].ty),p[Q]=pe,pe.init(this,c,Q,p),this.shapeModifiers.push(pe),U=!1),ee.push(pe));this.addProcessedElement(c[Q],Q+1)}for($e=M.length,Q=0;Q<$e;Q+=1)M[Q].closed=!0;for($e=ee.length,Q=0;Q<$e;Q+=1)ee[Q].closed=!0},_n.prototype.renderInnerContent=function(){this.renderModifiers();var c,p=this.stylesList.length;for(c=0;c<p;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<p;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},_n.prototype.renderShape=function(){var c,p=this.animatedContents.length,v;for(c=0;c<p;c+=1)v=this.animatedContents[c],(this._isFirstFrame||v.element._isAnimated)&&v.data!==!0&&v.fn(v.data,v.element,this._isFirstFrame)},_n.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function ml(c,p,v,$,T,P){this.o=c,this.sw=p,this.sc=v,this.fc=$,this.m=T,this.p=P,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!$,m:!0,p:!0}}ml.prototype.update=function(c,p,v,$,T,P){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var U=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,U=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,U=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,U=!0),this.fc!==$&&(this.fc=$,this._mdf.fc=!0,U=!0),this.m!==T&&(this.m=T,this._mdf.m=!0,U=!0),P.length&&(this.p[0]!==P[0]||this.p[1]!==P[1]||this.p[4]!==P[4]||this.p[5]!==P[5]||this.p[12]!==P[12]||this.p[13]!==P[13])&&(this.p=P,this._mdf.p=!0,U=!0),U};function Cr(c,p){this._frameId=de,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=p,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Cr.prototype.defaultBoxWidth=[0,0],Cr.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},Cr.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Cr.prototype.searchProperty=function(){return this.searchKeyframes()},Cr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Cr.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},Cr.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var p=this.currentData,v=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var $,T=this.effectsSequence.length,P=c||this.data.d.k[this.keysIndex].s;for($=0;$<T;$+=1)v!==this.keysIndex?P=this.effectsSequence[$](P,P.t):P=this.effectsSequence[$](this.currentData,P.t);p!==P&&this.setCurrentData(P),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Cr.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,$=c.length;v<=$-1&&!(v===$-1||c[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},Cr.prototype.buildFinalText=function(c){for(var p=[],v=0,$=c.length,T,P,U=!1;v<$;)T=c.charCodeAt(v),$r.isCombinedCharacter(T)?p[p.length-1]+=c.charAt(v):T>=55296&&T<=56319?(P=c.charCodeAt(v+1),P>=56320&&P<=57343?(U||$r.isModifier(T,P)?(p[p.length-1]+=c.substr(v,2),U=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):T>56319?(P=c.charCodeAt(v+1),$r.isZeroWidthJoiner(T,P)?(U=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):$r.isZeroWidthJoiner(T)?(p[p.length-1]+=c.charAt(v),U=!0):p.push(c.charAt(v)),v+=1;return p},Cr.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,$=[],T,P,U,ge=0,Q,$e=v.m.g,Ce=0,Fe=0,M=0,ee=[],Y=0,pe=0,he,W,Z=p.getFontByName(c.f),L,V=0,G=gr(Z);c.fWeight=G.weight,c.fStyle=G.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),P=c.finalText.length,c.finalLineHeight=c.lh;var re=c.tr/1e3*c.finalSize,le;if(c.sz)for(var me=!0,Oe=c.sz[0],ot=c.sz[1],it,Ue;me;){Ue=this.buildFinalText(c.t),it=0,Y=0,P=Ue.length,re=c.tr/1e3*c.finalSize;var ht=-1;for(T=0;T<P;T+=1)le=Ue[T].charCodeAt(0),U=!1,Ue[T]===" "?ht=T:(le===13||le===3)&&(Y=0,U=!0,it+=c.finalLineHeight||c.finalSize*1.2),p.chars?(L=p.getCharData(Ue[T],Z.fStyle,Z.fFamily),V=U?0:L.w*c.finalSize/100):V=p.measureText(Ue[T],c.f,c.finalSize),Y+V>Oe&&Ue[T]!==" "?(ht===-1?P+=1:T=ht,it+=c.finalLineHeight||c.finalSize*1.2,Ue.splice(T,ht===T?1:0,"\r"),ht=-1,Y=0):(Y+=V,Y+=re);it+=Z.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&ot<it?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Ue,P=c.finalText.length,me=!1)}Y=-re,V=0;var gt=0,je;for(T=0;T<P;T+=1)if(U=!1,je=c.finalText[T],le=je.charCodeAt(0),le===13||le===3?(gt=0,ee.push(Y),pe=Y>pe?Y:pe,Y=-2*re,Q="",U=!0,M+=1):Q=je,p.chars?(L=p.getCharData(je,Z.fStyle,p.getFontByName(c.f).fFamily),V=U?0:L.w*c.finalSize/100):V=p.measureText(Q,c.f,c.finalSize),je===" "?gt+=V+re:(Y+=V+re+gt,gt=0),$.push({l:V,an:V,add:Ce,n:U,anIndexes:[],val:Q,line:M,animatorJustifyOffset:0}),$e==2){if(Ce+=V,Q===""||Q===" "||T===P-1){for((Q===""||Q===" ")&&(Ce-=V);Fe<=T;)$[Fe].an=Ce,$[Fe].ind=ge,$[Fe].extra=V,Fe+=1;ge+=1,Ce=0}}else if($e==3){if(Ce+=V,Q===""||T===P-1){for(Q===""&&(Ce-=V);Fe<=T;)$[Fe].an=Ce,$[Fe].ind=ge,$[Fe].extra=V,Fe+=1;Ce=0,ge+=1}}else $[ge].ind=ge,$[ge].extra=0,ge+=1;if(c.l=$,pe=Y>pe?Y:pe,ee.push(Y),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=pe,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=ee;var xe=v.a,fe,J;W=xe.length;var ve,ze,ke=[];for(he=0;he<W;he+=1){for(fe=xe[he],fe.a.sc&&(c.strokeColorAnim=!0),fe.a.sw&&(c.strokeWidthAnim=!0),(fe.a.fc||fe.a.fh||fe.a.fs||fe.a.fb)&&(c.fillColorAnim=!0),ze=0,ve=fe.s.b,T=0;T<P;T+=1)J=$[T],J.anIndexes[he]=ze,(ve==1&&J.val!==""||ve==2&&J.val!==""&&J.val!==" "||ve==3&&(J.n||J.val==" "||T==P-1)||ve==4&&(J.n||T==P-1))&&(fe.s.rn===1&&ke.push(ze),ze+=1);v.a[he].s.totalChars=ze;var mt=-1,Lt;if(fe.s.rn===1)for(T=0;T<P;T+=1)J=$[T],mt!=J.anIndexes[he]&&(mt=J.anIndexes[he],Lt=ke.splice(Math.floor(Math.random()*ke.length),1)[0]),J.anIndexes[he]=Lt}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=Z.ascent*c.finalSize/100},Cr.prototype.updateDocumentData=function(c,p){p=p===void 0?this.keysIndex:p;var v=this.copyData({},this.data.d.k[p].s);v=this.copyData(v,c),this.data.d.k[p].s=v,this.recalculate(p),this.elem.addDynamicProperty(this)},Cr.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},Cr.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Cr.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var hg=function(){var c=Math.max,p=Math.min,v=Math.floor;function $(P,U){this._currentTextLength=-1,this.k=!1,this.data=U,this.elem=P,this.comp=P.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(P),this.s=ut.getProp(P,U.s||{k:0},0,0,this),"e"in U?this.e=ut.getProp(P,U.e,0,0,this):this.e={v:100},this.o=ut.getProp(P,U.o||{k:0},0,0,this),this.xe=ut.getProp(P,U.xe||{k:0},0,0,this),this.ne=ut.getProp(P,U.ne||{k:0},0,0,this),this.sm=ut.getProp(P,U.sm||{k:100},0,0,this),this.a=ut.getProp(P,U.a,0,.01,this),this.dynamicProperties.length||this.getValue()}$.prototype={getMult:function(U){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var ge=0,Q=0,$e=1,Ce=1;this.ne.v>0?ge=this.ne.v/100:Q=-this.ne.v/100,this.xe.v>0?$e=1-this.xe.v/100:Ce=1+this.xe.v/100;var Fe=ho.getBezierEasing(ge,Q,$e,Ce).get,M=0,ee=this.finalS,Y=this.finalE,pe=this.data.sh;if(pe===2)Y===ee?M=U>=Y?1:0:M=c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),M=Fe(M);else if(pe===3)Y===ee?M=U>=Y?0:1:M=1-c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),M=Fe(M);else if(pe===4)Y===ee?M=0:(M=c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),M<.5?M*=2:M=1-2*(M-.5)),M=Fe(M);else if(pe===5){if(Y===ee)M=0;else{var he=Y-ee;U=p(c(0,U+.5-ee),Y-ee);var W=-he/2+U,Z=he/2;M=Math.sqrt(1-W*W/(Z*Z))}M=Fe(M)}else pe===6?(Y===ee?M=0:(U=p(c(0,U+.5-ee),Y-ee),M=(1+Math.cos(Math.PI+Math.PI*2*U/(Y-ee)))/2),M=Fe(M)):(U>=v(ee)&&(U-ee<0?M=c(0,p(p(Y,1)-(ee-U),1)):M=c(0,p(Y-U,1))),M=Fe(M));if(this.sm.v!==100){var L=this.sm.v*.01;L===0&&(L=1e-8);var V=.5-L*.5;M<V?M=0:(M=(M-V)/L,M>1&&(M=1))}return M*this.a.v},getValue:function(U){this.iterateDynamicProperties(),this._mdf=U||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,U&&this.data.r===2&&(this.e.v=this._currentTextLength);var ge=this.data.r===2?1:100/this.data.totalChars,Q=this.o.v/ge,$e=this.s.v/ge+Q,Ce=this.e.v/ge+Q;if($e>Ce){var Fe=$e;$e=Ce,Ce=Fe}this.finalS=$e,this.finalE=Ce}},Le([yn],$);function T(P,U,ge){return new $(P,U)}return{getTextSelectorProp:T}}();function pg(c,p,v){var $={propType:!1},T=ut.getProp,P=p.a;this.a={r:P.r?T(c,P.r,0,Se,v):$,rx:P.rx?T(c,P.rx,0,Se,v):$,ry:P.ry?T(c,P.ry,0,Se,v):$,sk:P.sk?T(c,P.sk,0,Se,v):$,sa:P.sa?T(c,P.sa,0,Se,v):$,s:P.s?T(c,P.s,1,.01,v):$,a:P.a?T(c,P.a,1,0,v):$,o:P.o?T(c,P.o,0,.01,v):$,p:P.p?T(c,P.p,1,0,v):$,sw:P.sw?T(c,P.sw,0,0,v):$,sc:P.sc?T(c,P.sc,1,0,v):$,fc:P.fc?T(c,P.fc,1,0,v):$,fh:P.fh?T(c,P.fh,0,0,v):$,fs:P.fs?T(c,P.fs,0,.01,v):$,fb:P.fb?T(c,P.fb,0,.01,v):$,t:P.t?T(c,P.t,0,0,v):$},this.s=hg.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function Ls(c,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=p,this._elem=v,this._animatorsData=Ne(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}Ls.prototype.searchProperties=function(){var c,p=this._textData.a.length,v,$=ut.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new pg(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:$(this._elem,this._textData.p.a,0,0,this),f:$(this._elem,this._textData.p.f,0,0,this),l:$(this._elem,this._textData.p.l,0,0,this),r:$(this._elem,this._textData.p.r,0,0,this),p:$(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=$(this._elem,this._textData.m.a,1,0,this)},Ls.prototype.getMeasures=function(c,p){if(this.lettersChangedFlag=p,!(!this._mdf&&!this._isFirstFrame&&!p&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var v=this._moreOptions.alignment.v,$=this._animatorsData,T=this._textData,P=this.mHelper,U=this._renderType,ge=this.renderedLetters.length,Q,$e,Ce,Fe,M=c.l,ee,Y,pe,he,W,Z,L,V,G,re,le,me,Oe,ot,it;if(this._hasMaskedPath){if(it=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ue=it.v;this._pathData.r.v&&(Ue=Ue.reverse()),ee={tLength:0,segments:[]},Fe=Ue._length-1;var ht;for(me=0,Ce=0;Ce<Fe;Ce+=1)ht=Lr.buildBezierData(Ue.v[Ce],Ue.v[Ce+1],[Ue.o[Ce][0]-Ue.v[Ce][0],Ue.o[Ce][1]-Ue.v[Ce][1]],[Ue.i[Ce+1][0]-Ue.v[Ce+1][0],Ue.i[Ce+1][1]-Ue.v[Ce+1][1]]),ee.tLength+=ht.segmentLength,ee.segments.push(ht),me+=ht.segmentLength;Ce=Fe,it.v.c&&(ht=Lr.buildBezierData(Ue.v[Ce],Ue.v[0],[Ue.o[Ce][0]-Ue.v[Ce][0],Ue.o[Ce][1]-Ue.v[Ce][1]],[Ue.i[0][0]-Ue.v[0][0],Ue.i[0][1]-Ue.v[0][1]]),ee.tLength+=ht.segmentLength,ee.segments.push(ht),me+=ht.segmentLength),this._pathData.pi=ee}if(ee=this._pathData.pi,Y=this._pathData.f.v,L=0,Z=1,he=0,W=!0,re=ee.segments,Y<0&&it.v.c)for(ee.tLength<Math.abs(Y)&&(Y=-Math.abs(Y)%ee.tLength),L=re.length-1,G=re[L].points,Z=G.length-1;Y<0;)Y+=G[Z].partialLength,Z-=1,Z<0&&(L-=1,G=re[L].points,Z=G.length-1);G=re[L].points,V=G[Z-1],pe=G[Z],le=pe.partialLength}Fe=M.length,Q=0,$e=0;var gt=c.finalSize*1.2*.714,je=!0,xe,fe,J,ve,ze;ve=$.length;var ke,mt=-1,Lt,_t,kn,nn=Y,Sr=L,cr=Z,Gn=-1,Jn,Qn,Mr,vt,Cn,ci,Ui,$o,_i="",xo=this.defaultPropsArray,wo;if(c.j===2||c.j===1){var an=0,On=0,Qo=c.j===2?-.5:-1,Ri=0,Co=!0;for(Ce=0;Ce<Fe;Ce+=1)if(M[Ce].n){for(an&&(an+=On);Ri<Ce;)M[Ri].animatorJustifyOffset=an,Ri+=1;an=0,Co=!0}else{for(J=0;J<ve;J+=1)xe=$[J].a,xe.t.propType&&(Co&&c.j===2&&(On+=xe.t.v*Qo),fe=$[J].s,ke=fe.getMult(M[Ce].anIndexes[J],T.a[J].s.totalChars),ke.length?an+=xe.t.v*ke[0]*Qo:an+=xe.t.v*ke*Qo);Co=!1}for(an&&(an+=On);Ri<Ce;)M[Ri].animatorJustifyOffset=an,Ri+=1}for(Ce=0;Ce<Fe;Ce+=1){if(P.reset(),Jn=1,M[Ce].n)Q=0,$e+=c.yOffset,$e+=je?1:0,Y=nn,je=!1,this._hasMaskedPath&&(L=Sr,Z=cr,G=re[L].points,V=G[Z-1],pe=G[Z],le=pe.partialLength,he=0),_i="",$o="",ci="",wo="",xo=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Gn!==M[Ce].line){switch(c.j){case 1:Y+=me-c.lineWidths[M[Ce].line];break;case 2:Y+=(me-c.lineWidths[M[Ce].line])/2;break}Gn=M[Ce].line}mt!==M[Ce].ind&&(M[mt]&&(Y+=M[mt].extra),Y+=M[Ce].an/2,mt=M[Ce].ind),Y+=v[0]*M[Ce].an*.005;var Mi=0;for(J=0;J<ve;J+=1)xe=$[J].a,xe.p.propType&&(fe=$[J].s,ke=fe.getMult(M[Ce].anIndexes[J],T.a[J].s.totalChars),ke.length?Mi+=xe.p.v[0]*ke[0]:Mi+=xe.p.v[0]*ke),xe.a.propType&&(fe=$[J].s,ke=fe.getMult(M[Ce].anIndexes[J],T.a[J].s.totalChars),ke.length?Mi+=xe.a.v[0]*ke[0]:Mi+=xe.a.v[0]*ke);for(W=!0,this._pathData.a.v&&(Y=M[0].an*.5+(me-this._pathData.f.v-M[0].an*.5-M[M.length-1].an*.5)*mt/(Fe-1),Y+=this._pathData.f.v);W;)he+le>=Y+Mi||!G?(Oe=(Y+Mi-he)/pe.partialLength,_t=V.point[0]+(pe.point[0]-V.point[0])*Oe,kn=V.point[1]+(pe.point[1]-V.point[1])*Oe,P.translate(-v[0]*M[Ce].an*.005,-(v[1]*gt)*.01),W=!1):G&&(he+=pe.partialLength,Z+=1,Z>=G.length&&(Z=0,L+=1,re[L]?G=re[L].points:it.v.c?(Z=0,L=0,G=re[L].points):(he-=pe.partialLength,G=null)),G&&(V=pe,pe=G[Z],le=pe.partialLength));Lt=M[Ce].an/2-M[Ce].add,P.translate(-Lt,0,0)}else Lt=M[Ce].an/2-M[Ce].add,P.translate(-Lt,0,0),P.translate(-v[0]*M[Ce].an*.005,-v[1]*gt*.01,0);for(J=0;J<ve;J+=1)xe=$[J].a,xe.t.propType&&(fe=$[J].s,ke=fe.getMult(M[Ce].anIndexes[J],T.a[J].s.totalChars),(Q!==0||c.j!==0)&&(this._hasMaskedPath?ke.length?Y+=xe.t.v*ke[0]:Y+=xe.t.v*ke:ke.length?Q+=xe.t.v*ke[0]:Q+=xe.t.v*ke));for(c.strokeWidthAnim&&(Mr=c.sw||0),c.strokeColorAnim&&(c.sc?Qn=[c.sc[0],c.sc[1],c.sc[2]]:Qn=[0,0,0]),c.fillColorAnim&&c.fc&&(vt=[c.fc[0],c.fc[1],c.fc[2]]),J=0;J<ve;J+=1)xe=$[J].a,xe.a.propType&&(fe=$[J].s,ke=fe.getMult(M[Ce].anIndexes[J],T.a[J].s.totalChars),ke.length?P.translate(-xe.a.v[0]*ke[0],-xe.a.v[1]*ke[1],xe.a.v[2]*ke[2]):P.translate(-xe.a.v[0]*ke,-xe.a.v[1]*ke,xe.a.v[2]*ke));for(J=0;J<ve;J+=1)xe=$[J].a,xe.s.propType&&(fe=$[J].s,ke=fe.getMult(M[Ce].anIndexes[J],T.a[J].s.totalChars),ke.length?P.scale(1+(xe.s.v[0]-1)*ke[0],1+(xe.s.v[1]-1)*ke[1],1):P.scale(1+(xe.s.v[0]-1)*ke,1+(xe.s.v[1]-1)*ke,1));for(J=0;J<ve;J+=1){if(xe=$[J].a,fe=$[J].s,ke=fe.getMult(M[Ce].anIndexes[J],T.a[J].s.totalChars),xe.sk.propType&&(ke.length?P.skewFromAxis(-xe.sk.v*ke[0],xe.sa.v*ke[1]):P.skewFromAxis(-xe.sk.v*ke,xe.sa.v*ke)),xe.r.propType&&(ke.length?P.rotateZ(-xe.r.v*ke[2]):P.rotateZ(-xe.r.v*ke)),xe.ry.propType&&(ke.length?P.rotateY(xe.ry.v*ke[1]):P.rotateY(xe.ry.v*ke)),xe.rx.propType&&(ke.length?P.rotateX(xe.rx.v*ke[0]):P.rotateX(xe.rx.v*ke)),xe.o.propType&&(ke.length?Jn+=(xe.o.v*ke[0]-Jn)*ke[0]:Jn+=(xe.o.v*ke-Jn)*ke),c.strokeWidthAnim&&xe.sw.propType&&(ke.length?Mr+=xe.sw.v*ke[0]:Mr+=xe.sw.v*ke),c.strokeColorAnim&&xe.sc.propType)for(Cn=0;Cn<3;Cn+=1)ke.length?Qn[Cn]+=(xe.sc.v[Cn]-Qn[Cn])*ke[0]:Qn[Cn]+=(xe.sc.v[Cn]-Qn[Cn])*ke;if(c.fillColorAnim&&c.fc){if(xe.fc.propType)for(Cn=0;Cn<3;Cn+=1)ke.length?vt[Cn]+=(xe.fc.v[Cn]-vt[Cn])*ke[0]:vt[Cn]+=(xe.fc.v[Cn]-vt[Cn])*ke;xe.fh.propType&&(ke.length?vt=jt(vt,xe.fh.v*ke[0]):vt=jt(vt,xe.fh.v*ke)),xe.fs.propType&&(ke.length?vt=Yt(vt,xe.fs.v*ke[0]):vt=Yt(vt,xe.fs.v*ke)),xe.fb.propType&&(ke.length?vt=kt(vt,xe.fb.v*ke[0]):vt=kt(vt,xe.fb.v*ke))}}for(J=0;J<ve;J+=1)xe=$[J].a,xe.p.propType&&(fe=$[J].s,ke=fe.getMult(M[Ce].anIndexes[J],T.a[J].s.totalChars),this._hasMaskedPath?ke.length?P.translate(0,xe.p.v[1]*ke[0],-xe.p.v[2]*ke[1]):P.translate(0,xe.p.v[1]*ke,-xe.p.v[2]*ke):ke.length?P.translate(xe.p.v[0]*ke[0],xe.p.v[1]*ke[1],-xe.p.v[2]*ke[2]):P.translate(xe.p.v[0]*ke,xe.p.v[1]*ke,-xe.p.v[2]*ke));if(c.strokeWidthAnim&&(ci=Mr<0?0:Mr),c.strokeColorAnim&&(Ui="rgb("+Math.round(Qn[0]*255)+","+Math.round(Qn[1]*255)+","+Math.round(Qn[2]*255)+")"),c.fillColorAnim&&c.fc&&($o="rgb("+Math.round(vt[0]*255)+","+Math.round(vt[1]*255)+","+Math.round(vt[2]*255)+")"),this._hasMaskedPath){if(P.translate(0,-c.ls),P.translate(0,v[1]*gt*.01+$e,0),this._pathData.p.v){ot=(pe.point[1]-V.point[1])/(pe.point[0]-V.point[0]);var So=Math.atan(ot)*180/Math.PI;pe.point[0]<V.point[0]&&(So+=180),P.rotate(-So*Math.PI/180)}P.translate(_t,kn,0),Y-=v[0]*M[Ce].an*.005,M[Ce+1]&&mt!==M[Ce+1].ind&&(Y+=M[Ce].an/2,Y+=c.tr*.001*c.finalSize)}else{switch(P.translate(Q,$e,0),c.ps&&P.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:P.translate(M[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[M[Ce].line]),0,0);break;case 2:P.translate(M[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[M[Ce].line])/2,0,0);break}P.translate(0,-c.ls),P.translate(Lt,0,0),P.translate(v[0]*M[Ce].an*.005,v[1]*gt*.01,0),Q+=M[Ce].l+c.tr*.001*c.finalSize}U==="html"?_i=P.toCSS():U==="svg"?_i=P.to2dCSS():xo=[P.props[0],P.props[1],P.props[2],P.props[3],P.props[4],P.props[5],P.props[6],P.props[7],P.props[8],P.props[9],P.props[10],P.props[11],P.props[12],P.props[13],P.props[14],P.props[15]],wo=Jn}ge<=Ce?(ze=new ml(wo,ci,Ui,$o,_i,xo),this.renderedLetters.push(ze),ge+=1,this.lettersChangedFlag=!0):(ze=this.renderedLetters[Ce],this.lettersChangedFlag=ze.update(wo,ci,Ui,$o,_i,xo)||this.lettersChangedFlag)}}},Ls.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Ls.prototype.mHelper=new Tn,Ls.prototype.defaultPropsArray=[],Le([yn],Ls);function Pi(){}Pi.prototype.initElement=function(c,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,p,v),this.textProperty=new Cr(this,c.t,this.dynamicProperties),this.textAnimator=new Ls(c.t,this.renderType,this),this.initTransform(c,p,v),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Pi.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},Pi.prototype.createPathShape=function(c,p){var v,$=p.length,T,P="";for(v=0;v<$;v+=1)p[v].ty==="sh"&&(T=p[v].ks.k,P+=Vr(T,T.i.length,!0,c));return P},Pi.prototype.updateDocumentData=function(c,p){this.textProperty.updateDocumentData(c,p)},Pi.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},Pi.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},Pi.prototype.applyTextPropertiesToMatrix=function(c,p,v,$,T){switch(c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),p.translate(0,-c.ls,0),c.j){case 1:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v]),0,0);break;case 2:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v])/2,0,0);break}p.translate($,T,0)},Pi.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},Pi.prototype.emptyProp=new ml,Pi.prototype.destroy=function(){};var mg={shapes:[]};function Nr(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Le([yo,Os,du,Zo,Wn,hu,Pi],Nr),Nr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Ct("text"))},Nr.prototype.buildTextContents=function(c){for(var p=0,v=c.length,$=[],T="";p<v;)c[p]==="\r"||c[p]===""?($.push(T),T=""):T+=c[p],p+=1;return $.push(T),$},Nr.prototype.buildShapeData=function(c,p){if(c.shapes&&c.shapes.length){var v=c.shapes[0];if(v.it){var $=v.it[v.it.length-1];$.s&&($.s.k[0]=p,$.s.k[1]=p)}}return c},Nr.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=Ne(v?v.l.length:0),v.fc?this.layerElement.setAttribute("fill",this.buildColor(v.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),v.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(v.sc)),this.layerElement.setAttribute("stroke-width",v.sw)),this.layerElement.setAttribute("font-size",v.finalSize);var $=this.globalData.fontManager.getFontByName(v.f);if($.fClass)this.layerElement.setAttribute("class",$.fClass);else{this.layerElement.setAttribute("font-family",$.fFamily);var T=v.fWeight,P=v.fStyle;this.layerElement.setAttribute("font-style",P),this.layerElement.setAttribute("font-weight",T)}this.layerElement.setAttribute("aria-label",v.t);var U=v.l||[],ge=!!this.globalData.fontManager.chars;p=U.length;var Q,$e=this.mHelper,Ce="",Fe=this.data.singleShape,M=0,ee=0,Y=!0,pe=v.tr*.001*v.finalSize;if(Fe&&!ge&&!v.sz){var he=this.textContainer,W="start";switch(v.j){case 1:W="end";break;case 2:W="middle";break;default:W="start";break}he.setAttribute("text-anchor",W),he.setAttribute("letter-spacing",pe);var Z=this.buildTextContents(v.finalText);for(p=Z.length,ee=v.ps?v.ps[1]+v.ascent:0,c=0;c<p;c+=1)Q=this.textSpans[c].span||Ct("tspan"),Q.textContent=Z[c],Q.setAttribute("x",0),Q.setAttribute("y",ee),Q.style.display="inherit",he.appendChild(Q),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=Q,ee+=v.finalLineHeight;this.layerElement.appendChild(he)}else{var L=this.textSpans.length,V;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!ge||!Fe||c===0){if(Q=L>c?this.textSpans[c].span:Ct(ge?"g":"text"),L<=c){if(Q.setAttribute("stroke-linecap","butt"),Q.setAttribute("stroke-linejoin","round"),Q.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=Q,ge){var G=Ct("g");Q.appendChild(G),this.textSpans[c].childSpan=G}this.textSpans[c].span=Q,this.layerElement.appendChild(Q)}Q.style.display="inherit"}if($e.reset(),Fe&&(U[c].n&&(M=-pe,ee+=v.yOffset,ee+=Y?1:0,Y=!1),this.applyTextPropertiesToMatrix(v,$e,U[c].line,M,ee),M+=U[c].l||0,M+=pe),ge){V=this.globalData.fontManager.getCharData(v.finalText[c],$.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var re;if(V.t===1)re=new li(V.data,this.globalData,this);else{var le=mg;V.data&&V.data.shapes&&(le=this.buildShapeData(V.data,v.finalSize)),re=new _n(le,this.globalData,this)}if(this.textSpans[c].glyph){var me=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(me.layerElement),me.destroy()}this.textSpans[c].glyph=re,re._debug=!0,re.prepareFrame(0),re.renderFrame(),this.textSpans[c].childSpan.appendChild(re.layerElement),V.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Fe&&Q.setAttribute("transform","translate("+$e.props[12]+","+$e.props[13]+")"),Q.textContent=U[c].val,Q.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Fe&&Q&&Q.setAttribute("d",Ce)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},Nr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},Nr.prototype.getValue=function(){var c,p=this.textSpans.length,v;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<p;c+=1)v=this.textSpans[c].glyph,v&&(v.prepareFrame(this.comp.renderedFrame-this.data.st),v._mdf&&(this._mdf=!0))},Nr.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,p,v=this.textAnimator.renderedLetters,$=this.textProperty.currentData.l;p=$.length;var T,P,U;for(c=0;c<p;c+=1)$[c].n||(T=v[c],P=this.textSpans[c].span,U=this.textSpans[c].glyph,U&&U.renderFrame(),T._mdf.m&&P.setAttribute("transform",T.m),T._mdf.o&&P.setAttribute("opacity",T.o),T._mdf.sw&&P.setAttribute("stroke-width",T.sw),T._mdf.sc&&P.setAttribute("stroke",T.sc),T._mdf.fc&&P.setAttribute("fill",T.fc))}};function Wc(c,p,v){this.initElement(c,p,v)}Le([pu],Wc),Wc.prototype.createContent=function(){var c=Ct("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Jo(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Jo.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Jo.prototype.renderFrame=function(){},Jo.prototype.getBaseElement=function(){return null},Jo.prototype.destroy=function(){},Jo.prototype.sourceRectAtTime=function(){},Jo.prototype.hide=function(){},Le([yo,Os,Zo,Wn],Jo);function Hn(){}Le([wr],Hn),Hn.prototype.createNull=function(c){return new Jo(c,this.globalData,this)},Hn.prototype.createShape=function(c){return new _n(c,this.globalData,this)},Hn.prototype.createText=function(c){return new Nr(c,this.globalData,this)},Hn.prototype.createImage=function(c){return new pu(c,this.globalData,this)},Hn.prototype.createSolid=function(c){return new Wc(c,this.globalData,this)},Hn.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var p=this.globalData.defs;this.setupGlobalData(c,p),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var v=Ct("clipPath"),$=Ct("rect");$.setAttribute("width",c.w),$.setAttribute("height",c.h),$.setAttribute("x",0),$.setAttribute("y",0);var T=Gt();v.setAttribute("id",T),v.appendChild($),this.layerElement.setAttribute("clip-path","url("+Pe()+"#"+T+")"),p.appendChild(v),this.layers=c.layers,this.elements=Ne(c.layers.length)},Hn.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,p=this.layers?this.layers.length:0;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Hn.prototype.updateContainerSize=function(){},Hn.prototype.findIndexByInd=function(c){var p=0,v=this.layers.length;for(p=0;p<v;p+=1)if(this.layers[p].ind===c)return p;return-1},Hn.prototype.buildItem=function(c){var p=this.elements;if(!(p[c]||this.layers[c].ty===99)){p[c]=!0;var v=this.createItem(this.layers[c]);if(p[c]=v,ai()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(v),v.initExpressions()),this.appendElementInPos(v,c),this.layers[c].tt){var $="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if($===-1)return;if(!this.elements[$]||this.elements[$]===!0)this.buildItem($),this.addPendingElement(v);else{var T=p[$],P=T.getMatte(this.layers[c].tt);v.setMatte(P)}}}},Hn.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var p=0,v=this.elements.length;p<v;){if(this.elements[p]===c){var $="tp"in c.data?this.findIndexByInd(c.data.tp):p-1,T=this.elements[$],P=T.getMatte(this.layers[p].tt);c.setMatte(P);break}p+=1}}},Hn.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var p,v=this.layers.length;for(this.completeLayers||this.checkLayers(c),p=v-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&this.elements[p].prepareFrame(c-this.layers[p].st);if(this.globalData._mdf)for(p=0;p<v;p+=1)(this.completeLayers||this.elements[p])&&this.elements[p].renderFrame()}},Hn.prototype.appendElementInPos=function(c,p){var v=c.getBaseElement();if(v){for(var $=0,T;$<p;)this.elements[$]&&this.elements[$]!==!0&&this.elements[$].getBaseElement()&&(T=this.elements[$].getBaseElement()),$+=1;T?this.layerElement.insertBefore(v,T):this.layerElement.appendChild(v)}},Hn.prototype.hide=function(){this.layerElement.style.display="none"},Hn.prototype.show=function(){this.layerElement.style.display="block"};function Ki(){}Le([yo,Os,Zo,Wn,hu],Ki),Ki.prototype.initElement=function(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initTransform(c,p,v),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!p.progressiveLoad)&&this.buildAllItems(),this.hide()},Ki.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var p=this.tm.v;p===this.data.op&&(p=this.data.op-1),this.renderedFrame=p}var v,$=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=$-1;v>=0;v-=1)(this.completeLayers||this.elements[v])&&(this.elements[v].prepareFrame(this.renderedFrame-this.layers[v].st),this.elements[v]._mdf&&(this._mdf=!0))}},Ki.prototype.renderInnerContent=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},Ki.prototype.setElements=function(c){this.elements=c},Ki.prototype.getElements=function(){return this.elements},Ki.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Ki.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function li(c,p,v){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Ne(this.layers.length):[],this.initElement(c,p,v),this.tm=c.tm?ut.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}Le([Hn,Ki,du],li),li.prototype.createComp=function(c){return new li(c,this.globalData,this)};function Aa(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=Ct("svg");var v="";if(p&&p.title){var $=Ct("title"),T=Gt();$.setAttribute("id",T),$.textContent=p.title,this.svgElement.appendChild($),v+=T}if(p&&p.description){var P=Ct("desc"),U=Gt();P.setAttribute("id",U),P.textContent=p.description,this.svgElement.appendChild(P),v+=" "+U}v&&this.svgElement.setAttribute("aria-labelledby",v);var ge=Ct("defs");this.svgElement.appendChild(ge);var Q=Ct("g");this.svgElement.appendChild(Q),this.layerElement=Q,this.renderConfig={preserveAspectRatio:p&&p.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:p&&p.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:p&&p.contentVisibility||"visible",progressiveLoad:p&&p.progressiveLoad||!1,hideOnTransparent:!(p&&p.hideOnTransparent===!1),viewBoxOnly:p&&p.viewBoxOnly||!1,viewBoxSize:p&&p.viewBoxSize||!1,className:p&&p.className||"",id:p&&p.id||"",focusable:p&&p.focusable,filterSize:{width:p&&p.filterSize&&p.filterSize.width||"100%",height:p&&p.filterSize&&p.filterSize.height||"100%",x:p&&p.filterSize&&p.filterSize.x||"0%",y:p&&p.filterSize&&p.filterSize.y||"0%"},width:p&&p.width,height:p&&p.height,runExpressions:!p||p.runExpressions===void 0||p.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:ge,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Le([Hn],Aa),Aa.prototype.createComp=function(c){return new li(c,this.globalData,this)},ga("svg",Aa),Rr.registerModifier("tm",te),Rr.registerModifier("pb",Te),Rr.registerModifier("rp",We),Rr.registerModifier("rd",ct),Rr.registerModifier("zz",Rs),Rr.registerModifier("op",Fn),Ht})})(u,u.exports);var l=u.exports;function d(j,ne){var K=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(K!=null){var N,I,de,se,ie=[],Ae=!0,Pe=!1;try{if(de=(K=K.call(j)).next,ne!==0)for(;!(Ae=(N=de.call(K)).done)&&(ie.push(N.value),ie.length!==ne);Ae=!0);}catch(Ie){Pe=!0,I=Ie}finally{try{if(!Ae&&K.return!=null&&(se=K.return(),Object(se)!==se))return}finally{if(Pe)throw I}}return ie}}function h(j,ne){var K=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);ne&&(N=N.filter(function(I){return Object.getOwnPropertyDescriptor(j,I).enumerable})),K.push.apply(K,N)}return K}function m(j){for(var ne=1;ne<arguments.length;ne++){var K=arguments[ne]!=null?arguments[ne]:{};ne%2?h(Object(K),!0).forEach(function(N){g(j,N,K[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(K)):h(Object(K)).forEach(function(N){Object.defineProperty(j,N,Object.getOwnPropertyDescriptor(K,N))})}return j}function g(j,ne,K){return ne=R(ne),ne in j?Object.defineProperty(j,ne,{value:K,enumerable:!0,configurable:!0,writable:!0}):j[ne]=K,j}function b(j,ne){if(j==null)return{};var K={},N=Object.keys(j),I,de;for(de=0;de<N.length;de++)I=N[de],!(ne.indexOf(I)>=0)&&(K[I]=j[I]);return K}function x(j,ne){if(j==null)return{};var K=b(j,ne),N,I;if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(j);for(I=0;I<de.length;I++)N=de[I],!(ne.indexOf(N)>=0)&&Object.prototype.propertyIsEnumerable.call(j,N)&&(K[N]=j[N])}return K}function C(j,ne){return A(j)||d(j,ne)||S(j,ne)||D()}function A(j){if(Array.isArray(j))return j}function S(j,ne){if(j){if(typeof j=="string")return w(j,ne);var K=Object.prototype.toString.call(j).slice(8,-1);if(K==="Object"&&j.constructor&&(K=j.constructor.name),K==="Map"||K==="Set")return Array.from(j);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return w(j,ne)}}function w(j,ne){(ne==null||ne>j.length)&&(ne=j.length);for(var K=0,N=new Array(ne);K<ne;K++)N[K]=j[K];return N}function D(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
154
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(j,ne){if(typeof j!="object"||j===null)return j;var K=j[Symbol.toPrimitive];if(K!==void 0){var N=K.call(j,ne);if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ne==="string"?String:Number)(j)}function R(j){var ne=k(j,"string");return typeof ne=="symbol"?ne:String(ne)}var O=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],H=function(ne,K){var N=ne.animationData,I=ne.loop,de=ne.autoplay,se=ne.initialSegment,ie=ne.onComplete,Ae=ne.onLoopComplete,Pe=ne.onEnterFrame,Ie=ne.onSegmentStart,Le=ne.onConfigReady,Je=ne.onDataReady,Qe=ne.onDataFailed,ye=ne.onLoadedImages,Ne=ne.onDOMLoaded,He=ne.onDestroy;ne.lottieRef,ne.renderer,ne.name,ne.assetsPath,ne.rendererSettings;var Ke=x(ne,O),Be=r.useState(!1),st=C(Be,2),Dt=st[0],ln=st[1],At=r.useRef(),It=r.useRef(null),we=function(){var kt;(kt=At.current)===null||kt===void 0||kt.play()},Se=function(){var kt;(kt=At.current)===null||kt===void 0||kt.stop()},Re=function(){var kt;(kt=At.current)===null||kt===void 0||kt.pause()},Ge=function(kt){var jt;(jt=At.current)===null||jt===void 0||jt.setSpeed(kt)},rt=function(kt,jt){var tn;(tn=At.current)===null||tn===void 0||tn.goToAndPlay(kt,jt)},nt=function(kt,jt){var tn;(tn=At.current)===null||tn===void 0||tn.goToAndStop(kt,jt)},dt=function(kt){var jt;(jt=At.current)===null||jt===void 0||jt.setDirection(kt)},Et=function(kt,jt){var tn;(tn=At.current)===null||tn===void 0||tn.playSegments(kt,jt)},xn=function(kt){var jt;(jt=At.current)===null||jt===void 0||jt.setSubframe(kt)},en=function(kt){var jt;return(jt=At.current)===null||jt===void 0?void 0:jt.getDuration(kt)},Gt=function(){var kt;(kt=At.current)===null||kt===void 0||kt.destroy(),At.current=void 0},Ir=function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},jt;if(It.current){(jt=At.current)===null||jt===void 0||jt.destroy();var tn=m(m(m({},ne),kt),{},{container:It.current});return At.current=l.loadAnimation(tn),ln(!!At.current),function(){var Zn;(Zn=At.current)===null||Zn===void 0||Zn.destroy(),At.current=void 0}}};r.useEffect(function(){var Yt=Ir();return function(){return Yt==null?void 0:Yt()}},[N,I]),r.useEffect(function(){At.current&&(At.current.autoplay=!!de)},[de]),r.useEffect(function(){if(At.current){if(!se){At.current.resetSegments(!0);return}!Array.isArray(se)||!se.length||((At.current.currentRawFrame<se[0]||At.current.currentRawFrame>se[1])&&(At.current.currentRawFrame=se[0]),At.current.setSegment(se[0],se[1]))}},[se]),r.useEffect(function(){var Yt=[{name:"complete",handler:ie},{name:"loopComplete",handler:Ae},{name:"enterFrame",handler:Pe},{name:"segmentStart",handler:Ie},{name:"config_ready",handler:Le},{name:"data_ready",handler:Je},{name:"data_failed",handler:Qe},{name:"loaded_images",handler:ye},{name:"DOMLoaded",handler:Ne},{name:"destroy",handler:He}],kt=Yt.filter(function(tn){return tn.handler!=null});if(kt.length){var jt=kt.map(function(tn){var Zn;return(Zn=At.current)===null||Zn===void 0||Zn.addEventListener(tn.name,tn.handler),function(){var Si;(Si=At.current)===null||Si===void 0||Si.removeEventListener(tn.name,tn.handler)}});return function(){jt.forEach(function(tn){return tn()})}}},[ie,Ae,Pe,Ie,Le,Je,Qe,ye,Ne,He]);var Tr=o.default.createElement("div",m({style:K,ref:It},Ke));return{View:Tr,play:we,stop:Se,pause:Re,setSpeed:Ge,goToAndStop:nt,goToAndPlay:rt,setDirection:dt,playSegments:Et,setSubframe:xn,getDuration:en,destroy:Gt,animationContainerRef:It,animationLoaded:Dt,animationItem:At.current}};function F(j){var ne=j.getBoundingClientRect(),K=ne.top,N=ne.height,I=window.innerHeight-K,de=window.innerHeight+N;return I/de}function ce(j,ne,K){var N=j.getBoundingClientRect(),I=N.top,de=N.left,se=N.width,ie=N.height,Ae=(ne-de)/se,Pe=(K-I)/ie;return{x:Ae,y:Pe}}var ae=function(ne){var K=ne.wrapperRef,N=ne.animationItem,I=ne.mode,de=ne.actions;r.useEffect(function(){var se=K.current;if(!(!se||!N||!de.length)){N.stop();var ie=function(){var Ie=null,Le=function(){var Qe=F(se),ye=de.find(function(He){var Ke=He.visibility;return Ke&&Qe>=Ke[0]&&Qe<=Ke[1]});if(ye){if(ye.type==="seek"&&ye.visibility&&ye.frames.length===2){var Ne=ye.frames[0]+Math.ceil((Qe-ye.visibility[0])/(ye.visibility[1]-ye.visibility[0])*ye.frames[1]);//! goToAndStop must be relative to the start of the current segment
155
- N.goToAndStop(Ne-N.firstFrame-1,!0)}ye.type==="loop"&&(Ie===null||Ie!==ye.frames||N.isPaused)&&(N.playSegments(ye.frames,!0),Ie=ye.frames),ye.type==="play"&&N.isPaused&&(N.resetSegments(!0),N.play()),ye.type==="stop"&&N.goToAndStop(ye.frames[0]-N.firstFrame-1,!0)}};return document.addEventListener("scroll",Le),function(){document.removeEventListener("scroll",Le)}},Ae=function(){var Ie=function(ye,Ne){var He=ye,Ke=Ne;if(He!==-1&&Ke!==-1){var Be=ce(se,He,Ke);He=Be.x,Ke=Be.y}var st=de.find(function(At){var It=At.position;return It&&Array.isArray(It.x)&&Array.isArray(It.y)?He>=It.x[0]&&He<=It.x[1]&&Ke>=It.y[0]&&Ke<=It.y[1]:It&&!Number.isNaN(It.x)&&!Number.isNaN(It.y)?He===It.x&&Ke===It.y:!1});if(st){if(st.type==="seek"&&st.position&&Array.isArray(st.position.x)&&Array.isArray(st.position.y)&&st.frames.length===2){var Dt=(He-st.position.x[0])/(st.position.x[1]-st.position.x[0]),ln=(Ke-st.position.y[0])/(st.position.y[1]-st.position.y[0]);N.playSegments(st.frames,!0),N.goToAndStop(Math.ceil((Dt+ln)/2*(st.frames[1]-st.frames[0])),!0)}st.type==="loop"&&N.playSegments(st.frames,!0),st.type==="play"&&(N.isPaused&&N.resetSegments(!1),N.playSegments(st.frames)),st.type==="stop"&&N.goToAndStop(st.frames[0],!0)}},Le=function(ye){Ie(ye.clientX,ye.clientY)},Je=function(){Ie(-1,-1)};return se.addEventListener("mousemove",Le),se.addEventListener("mouseout",Je),function(){se.removeEventListener("mousemove",Le),se.removeEventListener("mouseout",Je)}};switch(I){case"scroll":return ie();case"cursor":return Ae()}}},[I,N])},q=function(ne){var K=ne.actions,N=ne.mode,I=ne.lottieObj,de=I.animationItem,se=I.View,ie=I.animationContainerRef;return ae({actions:K,animationItem:de,mode:N,wrapperRef:ie}),se},De=["style","interactivity"],z=function(ne){var K,N,I,de=ne.style,se=ne.interactivity,ie=x(ne,De),Ae=H(ie,de),Pe=Ae.View,Ie=Ae.play,Le=Ae.stop,Je=Ae.pause,Qe=Ae.setSpeed,ye=Ae.goToAndStop,Ne=Ae.goToAndPlay,He=Ae.setDirection,Ke=Ae.playSegments,Be=Ae.setSubframe,st=Ae.getDuration,Dt=Ae.destroy,ln=Ae.animationContainerRef,At=Ae.animationLoaded,It=Ae.animationItem;return r.useEffect(function(){ne.lottieRef&&(ne.lottieRef.current={play:Ie,stop:Le,pause:Je,setSpeed:Qe,goToAndPlay:Ne,goToAndStop:ye,setDirection:He,playSegments:Ke,setSubframe:Be,getDuration:st,destroy:Dt,animationContainerRef:ln,animationLoaded:At,animationItem:It})},[(K=ne.lottieRef)===null||K===void 0?void 0:K.current]),q({lottieObj:{View:Pe,play:Ie,stop:Le,pause:Je,setSpeed:Qe,goToAndStop:ye,goToAndPlay:Ne,setDirection:He,playSegments:Ke,setSubframe:Be,getDuration:st,destroy:Dt,animationContainerRef:ln,animationLoaded:At,animationItem:It},actions:(N=se==null?void 0:se.actions)!==null&&N!==void 0?N:[],mode:(I=se==null?void 0:se.mode)!==null&&I!==void 0?I:"scroll"})};n.LottiePlayer=l,n.default=z,n.useLottie=H,n.useLottieInteractivity=q,Object.defineProperty(n,"__esModule",{value:!0})})}(Rf,Rf.exports)),Rf.exports}var Aie=Die();const Tie=Lo(Aie),Pie=_.createContext({});function _ie(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const wO=_.createContext(null),CO=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),m$=typeof window<"u",Rie=m$?_.useLayoutEffect:_.useEffect,eu=e=>e;let Vd=eu,pc=eu;process.env.NODE_ENV!=="production"&&(Vd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},pc=(e,t)=>{if(!e)throw new Error(t)});const Mie={useManualTiming:!1},zh=["read","resolveKeyframes","update","preRender","render","postRender"];function Fie(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(h){s.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const x=g&&i?n:r;return m&&s.add(h),x.has(h)||x.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(u=h,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,d.process(h))}};return d}const kie=40;function SO(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=zh.reduce((S,w)=>(S[w]=Fie(o),S),{}),{read:u,resolveKeyframes:l,update:d,preRender:h,render:m,postRender:g}=s,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,kie),1),i.timestamp=S,i.isProcessing=!0,u.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},x=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:zh.reduce((S,w)=>{const D=s[w];return S[w]=(k,R=!1,O=!1)=>(n||x(),D.schedule(k,R,O)),S},{}),cancel:S=>{for(let w=0;w<zh.length;w++)s[zh[w]].cancel(S)},state:i,steps:s}}const{schedule:Ci,cancel:Jb,state:Qp}=SO(typeof requestAnimationFrame<"u"?requestAnimationFrame:eu,!0),g$=_.createContext({strict:!1}),PT={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"]},mc={};for(const e in PT)mc[e]={isEnabled:t=>PT[e].some(n=>!!t[n])};function _T(e){for(const t in e)mc[t]={...mc[t],...e[t]}}function Oie({children:e,features:t,strict:n=!1}){const[,r]=_.useState(!g1(t)),i=_.useRef(void 0);if(!g1(t)){const{renderer:o,...s}=t;i.current=o,_T(s)}return _.useEffect(()=>{g1(t)&&t().then(({renderer:o,...s})=>{_T(s),i.current=o,r(!0)})},[]),oa.jsx(g$.Provider,{value:{renderer:i.current,strict:n},children:e})}function g1(e){return typeof e=="function"}const Iie=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 em(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Iie.has(e)}let EO=e=>!em(e);function Lie(e){e&&(EO=t=>t.startsWith("on")?!em(t):e(t))}try{Lie(require("@emotion/is-prop-valid").default)}catch{}function Bie(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(EO(i)||n===!0&&em(i)||!t&&!em(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const RT=new Set;function ng(e,t,n){e||RT.has(t)||(console.warn(t),RT.add(t))}function Vie(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ng(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const rg=_.createContext({});function ig(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function dd(e){return typeof e=="string"||Array.isArray(e)}const v$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y$=["initial",...v$];function og(e){return ig(e.animate)||y$.some(t=>dd(e[t]))}function DO(e){return!!(og(e)||e.variants)}function Nie(e,t){if(og(e)){const{initial:n,animate:r}=e;return{initial:n===!1||dd(n)?n:void 0,animate:dd(r)?r:void 0}}return e.inherit!==!1?t:{}}function jie(e){const{initial:t,animate:n}=Nie(e,_.useContext(rg));return _.useMemo(()=>({initial:t,animate:n}),[MT(t),MT(n)])}function MT(e){return Array.isArray(e)?e.join(" "):e}const Kie=Symbol.for("motionComponentSymbol");function AO(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Uie(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):AO(n)&&(n.current=r))},[t])}const b$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zie="framerAppearId",TO="data-"+b$(zie),{schedule:qie}=SO(queueMicrotask,!1),Wie=_.createContext({});function Hie(e,t,n,r,i){var o,s;const{visualElement:u}=_.useContext(rg),l=_.useContext(g$),d=_.useContext(wO),h=_.useContext(CO).reducedMotion,m=_.useRef(null);r=r||l.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,b=_.useContext(Wie);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&Gie(m.current,n,i,b);const x=_.useRef(!1);_.useInsertionEffect(()=>{g&&x.current&&g.update(n,d)});const C=n[TO],A=_.useRef(!!C&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,C))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,C)));return Rie(()=>{g&&(x.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),qie.render(g.render),A.current&&g.animationState&&g.animationState.animateChanges())}),_.useEffect(()=>{g&&(!A.current&&g.animationState&&g.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,C)}),A.current=!1))}),g}function Gie(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:u,layoutScroll:l,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:PO(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||u&&AO(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:d})}function PO(e){if(e)return e.options.allowProjection!==!1?e.projection:PO(e.parent)}function Yie({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;function u(d,h){let m;const g={..._.useContext(CO),...d,layoutId:Zie(d)},{isStatic:b}=g,x=jie(d),C=r(d,b);if(!b&&m$){Xie(g,e);const A=Jie(g);m=A.MeasureLayout,x.visualElement=Hie(i,C,g,t,A.ProjectionNode)}return oa.jsxs(rg.Provider,{value:x,children:[m&&x.visualElement?oa.jsx(m,{visualElement:x.visualElement,...g}):null,n(i,d,Uie(C,x.visualElement,h),C,b,x.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const l=_.forwardRef(u);return l[Kie]=i,l}function Zie({layoutId:e}){const t=_.useContext(Pie).id;return t&&e!==void 0?t+"-"+e:e}function Xie(e,t){_.useContext(g$).strict,process.env.NODE_ENV}function Jie(e){const{drag:t,layout:n}=mc;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 _O=e=>t=>typeof t=="string"&&t.startsWith(e),RO=_O("--"),Qie=_O("var(--"),$$=e=>Qie(e)?eoe.test(e.split("/*")[0].trim()):!1,eoe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,toe={},Mc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],al=new Set(Mc);function MO(e,{layout:t,layoutId:n}){return al.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!toe[e]||e==="opacity")}const ri=e=>!!(e&&e.getVelocity),FO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,tl=(e,t,n)=>n>t?t:n<e?e:n,Fc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hd={...Fc,transform:e=>tl(0,1,e)},qh={...Fc,default:1},Nd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ba=Nd("deg"),Zl=Nd("%"),Ot=Nd("px"),noe=Nd("vh"),roe=Nd("vw"),FT={...Zl,parse:e=>Zl.parse(e)/100,transform:e=>Zl.transform(e*100)},ioe={borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,backgroundPositionX:Ot,backgroundPositionY:Ot},ooe={rotate:Ba,rotateX:Ba,rotateY:Ba,rotateZ:Ba,scale:qh,scaleX:qh,scaleY:qh,scaleZ:qh,skew:Ba,skewX:Ba,skewY:Ba,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:hd,originX:FT,originY:FT,originZ:Ot},kT={...Fc,transform:Math.round},x$={...ioe,...ooe,zIndex:kT,size:Ot,fillOpacity:hd,strokeOpacity:hd,numOctaves:kT},soe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},aoe=Mc.length;function uoe(e,t,n){let r="",i=!0;for(let o=0;o<aoe;o++){const s=Mc[o],u=e[s];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(s.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const d=FO(u,x$[s]);if(!l){i=!1;const h=soe[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function w$(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,u=!1;for(const l in t){const d=t[l];if(al.has(l)){s=!0;continue}else if(RO(l)){i[l]=d;continue}else{const h=FO(d,x$[l]);l.startsWith("origin")?(u=!0,o[l]=h):r[l]=h}}if(t.transform||(s||n?r.transform=uoe(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${l} ${d} ${h}`}}const C$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function kO(e,t,n){for(const r in t)!ri(t[r])&&!MO(r,n)&&(e[r]=t[r])}function loe({transformTemplate:e},t){return _.useMemo(()=>{const n=C$();return w$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function coe(e,t){const n=e.style||{},r={};return kO(r,n,e),Object.assign(r,loe(e,t)),r}function foe(e,t){const n={},r=coe(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 doe=["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 S$(e){return typeof e!="string"||e.includes("-")?!1:!!(doe.indexOf(e)>-1||/[A-Z]/u.test(e))}const hoe={offset:"stroke-dashoffset",array:"stroke-dasharray"},poe={offset:"strokeDashoffset",array:"strokeDasharray"};function moe(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?hoe:poe;e[o.offset]=Ot.transform(-r);const s=Ot.transform(t),u=Ot.transform(n);e[o.array]=`${s} ${u}`}function OT(e,t,n){return typeof e=="string"?e:Ot.transform(t+n*e)}function goe(e,t,n){const r=OT(t,e.x,e.width),i=OT(n,e.y,e.height);return`${r} ${i}`}function E$(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:l=0,...d},h,m){if(w$(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:x}=e;g.transform&&(x&&(b.transform=g.transform),delete g.transform),x&&(i!==void 0||o!==void 0||b.transform)&&(b.transformOrigin=goe(x,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),s!==void 0&&moe(g,s,u,l,!1)}const OO=()=>({...C$(),attrs:{}}),D$=e=>typeof e=="string"&&e.toLowerCase()==="svg";function voe(e,t,n,r){const i=_.useMemo(()=>{const o=OO();return E$(o,t,D$(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};kO(o,e.style,e),i.style={...o,...i.style}}return i}function yoe(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(S$(n)?voe:foe)(r,o,s,n),d=Bie(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=_.useMemo(()=>ri(m)?m.get():m,[m]);return _.createElement(n,{...h,children:g})}}function IT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function A$(e,t,n,r){if(typeof t=="function"){const[i,o]=IT(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]=IT(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Qb=e=>Array.isArray(e),boe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$oe=e=>Qb(e)?e[e.length-1]||0:e;function xoe(e){const t=ri(e)?e.get():e;return boe(t)?t.toValue():t}function woe({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:Coe(r,i,o,e),renderState:t()};return n&&(s.onMount=u=>n({props:r,current:u,...s}),s.onUpdate=u=>n(u)),s}const IO=e=>(t,n)=>{const r=_.useContext(rg),i=_.useContext(wO),o=()=>woe(e,t,r,i);return n?o():_ie(o)};function Coe(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=xoe(o[g]);let{initial:s,animate:u}=e;const l=og(e),d=DO(e);t&&d&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?u:s;if(m&&typeof m!="boolean"&&!ig(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const x=A$(e,g[b]);if(x){const{transitionEnd:C,transition:A,...S}=x;for(const w in S){let D=S[w];if(Array.isArray(D)){const k=h?D.length-1:0;D=D[k]}D!==null&&(i[w]=D)}for(const w in C)i[w]=C[w]}}}return i}function T$(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(ri(i[s])||t.style&&ri(t.style[s])||MO(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}const Soe={useVisualState:IO({scrapeMotionValuesFromProps:T$,createRenderState:C$})};function LO(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function BO(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 VO=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 NO(e,t,n,r){BO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(VO.has(i)?i:b$(i),t.attrs[i])}function jO(e,t,n){const r=T$(e,t,n);for(const i in e)if(ri(e[i])||ri(t[i])){const o=Mc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const LT=["x","y","width","height","cx","cy","r"],Eoe={useVisualState:IO({scrapeMotionValuesFromProps:jO,createRenderState:OO,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(al.has(u)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let u=0;u<LT.length;u++){const l=LT[u];e[l]!==t[l]&&(s=!0)}s&&Ci.read(()=>{LO(n,r),Ci.render(()=>{E$(r,i,D$(n.tagName),e.transformTemplate),NO(n,r)})})}})};function Doe(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...S$(r)?Eoe:Soe,preloadedFeatures:e,useRender:yoe(i),createVisualElement:t,Component:r};return Yie(s)}}const Aoe=Doe(),Toe=Vie(Aoe);function pd(e,t,n){const r=e.getProps();return A$(r,t,n!==void 0?n:r.custom,e)}function KO(e,t){return e?e[t]||e.default||e:void 0}const UO=new Set(["width","height","top","left","right","bottom",...Mc]);let mp;function Poe(){mp=void 0}const Ya={now:()=>(mp===void 0&&Ya.set(Qp.isProcessing||Mie.useManualTiming?Qp.timestamp:performance.now()),mp),set:e=>{mp=e,queueMicrotask(Poe)}};function _oe(e,t){e.indexOf(t)===-1&&e.push(t)}function Roe(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zO{constructor(){this.subscriptions=[]}add(t){return _oe(this.subscriptions,t),()=>Roe(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}}function qO(e,t){return t?e*(1e3/t):0}const BT=30,Moe=e=>!isNaN(parseFloat(e));class Foe{constructor(t,n={}){this.version="12.4.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ya.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=Ya.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Moe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ng(!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 zO);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ci.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=Ya.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>BT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,BT);return qO(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 tm(e,t){return new Foe(e,t)}function koe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tm(n))}function Ooe(e,t){const n=pd(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const u=$oe(o[s]);koe(e,s,u)}}function Ioe(e){return!!(ri(e)&&e.add)}function Loe(e,t){const n=e.getValue("willChange");if(Ioe(n))return n.add(t)}function Boe(e){return e.props[TO]}function P$(e){let t;return()=>(t===void 0&&(t=e()),t)}const Voe=P$(()=>window.ScrollTimeline!==void 0);class Noe{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}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=>{if(Voe()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return 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")}}class joe extends Noe{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const ia=e=>e*1e3,Za=e=>e/1e3;function _$(e){return typeof e=="function"}function VT(e,t){e.timeline=t,e.onfinish=null}const R$=e=>Array.isArray(e)&&typeof e[0]=="number",Koe={linearEasing:void 0};function Uoe(e,t){const n=P$(e);return()=>{var r;return(r=Koe[t])!==null&&r!==void 0?r:n()}}const nm=Uoe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),M$=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},WO=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(M$(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function HO(e){return!!(typeof e=="function"&&nm()||!e||typeof e=="string"&&(e in e4||nm())||R$(e)||Array.isArray(e)&&e.every(HO))}const Mf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,e4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mf([0,.65,.55,1]),circOut:Mf([.55,0,1,.45]),backIn:Mf([.31,.01,.66,-.59]),backOut:Mf([.33,1.53,.69,.99])};function GO(e,t){if(e)return typeof e=="function"&&nm()?WO(e,t):R$(e)?Mf(e):Array.isArray(e)?e.map(n=>GO(n,t)||e4.easeOut):e4[e]}const YO=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zoe=1e-7,qoe=12;function Woe(e,t,n,r,i){let o,s,u=0;do s=t+(n-t)/2,o=YO(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>zoe&&++u<qoe);return s}function jd(e,t,n,r){if(e===t&&n===r)return eu;const i=o=>Woe(o,0,1,e,n);return o=>o===0||o===1?o:YO(i(o),t,r)}const ZO=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,XO=e=>t=>1-e(1-t),JO=jd(.33,1.53,.69,.99),F$=XO(JO),QO=ZO(F$),eI=e=>(e*=2)<1?.5*F$(e):.5*(2-Math.pow(2,-10*(e-1))),k$=e=>1-Math.sin(Math.acos(e)),Hoe=XO(k$),tI=ZO(k$),nI=e=>/^0[^.\s]+$/u.test(e);function Goe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nI(e):!0}const Wf=e=>Math.round(e*1e5)/1e5,O$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Yoe(e){return e==null}const Zoe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,I$=(e,t)=>n=>!!(typeof n=="string"&&Zoe.test(n)&&n.startsWith(e)||t&&!Yoe(n)&&Object.prototype.hasOwnProperty.call(n,t)),rI=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,u]=r.match(O$);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},Xoe=e=>tl(0,255,e),v1={...Fc,transform:e=>Math.round(Xoe(e))},Bu={test:I$("rgb","red"),parse:rI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+v1.transform(e)+", "+v1.transform(t)+", "+v1.transform(n)+", "+Wf(hd.transform(r))+")"};function Joe(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 t4={test:I$("#"),parse:Joe,transform:Bu.transform},Kl={test:I$("hsl","hue"),parse:rI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Zl.transform(Wf(t))+", "+Zl.transform(Wf(n))+", "+Wf(hd.transform(r))+")"},Ur={test:e=>Bu.test(e)||t4.test(e)||Kl.test(e),parse:e=>Bu.test(e)?Bu.parse(e):Kl.test(e)?Kl.parse(e):t4.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Bu.transform(e):Kl.transform(e)},Qoe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ese(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(O$))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Qoe))===null||n===void 0?void 0:n.length)||0)>0}const iI="number",oI="color",tse="var",nse="var(",NT="${}",rse=/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 md(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(rse,l=>(Ur.test(l)?(r.color.push(o),i.push(oI),n.push(Ur.parse(l))):l.startsWith(nse)?(r.var.push(o),i.push(tse),n.push(l)):(r.number.push(o),i.push(iI),n.push(parseFloat(l))),++o,NT)).split(NT);return{values:n,split:u,indexes:r,types:i}}function sI(e){return md(e).values}function aI(e){const{split:t,types:n}=md(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const u=n[s];u===iI?o+=Wf(i[s]):u===oI?o+=Ur.transform(i[s]):o+=i[s]}return o}}const ise=e=>typeof e=="number"?0:e;function ose(e){const t=sI(e);return aI(e)(t.map(ise))}const kc={test:ese,parse:sI,createTransformer:aI,getAnimatableNone:ose},sse=new Set(["brightness","contrast","saturate","opacity"]);function ase(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(O$)||[];if(!r)return e;const i=n.replace(r,"");let o=sse.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const use=/\b([a-z-]*)\(.*?\)/gu,n4={...kc,getAnimatableNone:e=>{const t=e.match(use);return t?t.map(ase).join(" "):e}},lse={...x$,color:Ur,backgroundColor:Ur,outlineColor:Ur,fill:Ur,stroke:Ur,borderColor:Ur,borderTopColor:Ur,borderRightColor:Ur,borderBottomColor:Ur,borderLeftColor:Ur,filter:n4,WebkitFilter:n4},L$=e=>lse[e];function uI(e,t){let n=L$(e);return n!==n4&&(n=kc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cse=new Set(["auto","none","0"]);function fse(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!cse.has(o)&&md(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=uI(n,i)}const jT=e=>e===Fc||e===Ot,KT=(e,t)=>parseFloat(e.split(", ")[t]),UT=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return KT(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?KT(o[1],e):0}},dse=new Set(["x","y","z"]),hse=Mc.filter(e=>!dse.has(e));function pse(e){const t=[];return hse.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const gc={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:UT(4,13),y:UT(5,14)};gc.translateX=gc.x;gc.translateY=gc.y;const zu=new Set;let r4=!1,i4=!1;function lI(){if(i4){const e=Array.from(zu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=pse(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 u;(u=r.getValue(o))===null||u===void 0||u.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}i4=!1,r4=!1,zu.forEach(e=>e.complete()),zu.clear()}function cI(){zu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(i4=!0)})}function mse(){cI(),lI()}class B${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?(zu.add(this),r4||(r4=!0,Ci.read(cI),Ci.resolveKeyframes(lI))):(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(),u=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),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),zu.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,zu.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const fI=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),gse=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vse(e){const t=gse.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const yse=4;function dI(e,t,n=1){pc(n<=yse,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=vse(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return fI(s)?parseFloat(s):s}return $$(i)?dI(i,t,n+1):i}const hI=e=>t=>t.test(e),bse={test:e=>e==="auto",parse:e=>e},pI=[Fc,Ot,Zl,Ba,roe,noe,bse],zT=e=>pI.find(hI(e));class mI extends B${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 d=t[l];if(typeof d=="string"&&(d=d.trim(),$$(d))){const h=dI(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!UO.has(r)||t.length!==2)return;const[i,o]=t,s=zT(i),u=zT(o);if(s!==u)if(jT(s)&&jT(u))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Goe(t[i])&&r.push(i);r.length&&fse(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=gc[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,u=i[s];i[s]=gc[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}}const qT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(kc.test(e)||e==="0")&&!e.startsWith("url("));function $se(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 xse(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=qT(i,t),u=qT(o,t);return Vd(s===u,`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||!u?!1:$se(e)||(n==="spring"||_$(n))&&r}const wse=e=>e!==null;function sg(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(wse),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Cse=40;class gI{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ya.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Cse?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&mse(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ya.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:u,onUpdate:l,isGenerator:d}=this.options;if(!d&&!xse(t,r,i,o))if(s)this.options.duration=0;else{l&&l(sg(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},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 o4=2e4;function vI(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<o4;)t+=n,r=e.next(t);return t>=o4?1/0:t}const ag=(e,t,n)=>e+(t-e)*n;function y1(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 Sse({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 u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=y1(l,u,e+1/3),o=y1(l,u,e),s=y1(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function rm(e,t){return n=>n>0?t:e}const b1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ese=[t4,Bu,Kl],Dse=e=>Ese.find(t=>t.test(e));function WT(e){const t=Dse(e);if(Vd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Kl&&(n=Sse(n)),n}const HT=(e,t)=>{const n=WT(e),r=WT(t);if(!n||!r)return rm(e,t);const i={...n};return o=>(i.red=b1(n.red,r.red,o),i.green=b1(n.green,r.green,o),i.blue=b1(n.blue,r.blue,o),i.alpha=ag(n.alpha,r.alpha,o),Bu.transform(i))},Ase=(e,t)=>n=>t(e(n)),ug=(...e)=>e.reduce(Ase),s4=new Set(["none","hidden"]);function Tse(e,t){return s4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Pse(e,t){return n=>ag(e,t,n)}function V$(e){return typeof e=="number"?Pse:typeof e=="string"?$$(e)?rm:Ur.test(e)?HT:Mse:Array.isArray(e)?yI:typeof e=="object"?Ur.test(e)?HT:_se:rm}function yI(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>V$(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function _se(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=V$(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Rse(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],u=e.indexes[s][i[s]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const Mse=(e,t)=>{const n=kc.createTransformer(t),r=md(e),i=md(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?s4.has(e)&&!i.values.length||s4.has(t)&&!r.values.length?Tse(e,t):ug(yI(Rse(r,i),i.values),n):(Vd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),rm(e,t))};function bI(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ag(e,t,n):V$(e)(e,t)}const Fse=5;function $I(e,t,n){const r=Math.max(t-Fse,0);return qO(n-e(r),t-r)}const Kn={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},GT=.001;function kse({duration:e=Kn.duration,bounce:t=Kn.bounce,velocity:n=Kn.velocity,mass:r=Kn.mass}){let i,o;Vd(e<=ia(Kn.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=tl(Kn.minDamping,Kn.maxDamping,s),e=tl(Kn.minDuration,Kn.maxDuration,Za(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=a4(d,s),x=Math.exp(-m);return GT-g/b*x},o=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,x=Math.exp(-m),C=a4(Math.pow(d,2),s);return(-i(d)+GT>0?-1:1)*((g-b)*x)/C}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,l=Ise(i,o,u);if(e=ia(e),isNaN(l))return{stiffness:Kn.stiffness,damping:Kn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const Ose=12;function Ise(e,t,n){let r=n;for(let i=1;i<Ose;i++)r=r-e(r)/t(r);return r}function a4(e,t){return e*Math.sqrt(1-t*t)}const Lse=["duration","bounce"],Bse=["stiffness","damping","mass"];function YT(e,t){return t.some(n=>e[n]!==void 0)}function Vse(e){let t={velocity:Kn.velocity,stiffness:Kn.stiffness,damping:Kn.damping,mass:Kn.mass,isResolvedFromDuration:!1,...e};if(!YT(e,Bse)&&YT(e,Lse))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*tl(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Kn.mass,stiffness:i,damping:o}}else{const n=kse(e);t={...t,...n,mass:Kn.mass},t.isResolvedFromDuration=!0}return t}function xI(e=Kn.visualDuration,t=Kn.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],u={done:!1,value:o},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Vse({...n,velocity:-Za(n.velocity||0)}),x=g||0,C=d/(2*Math.sqrt(l*h)),A=s-o,S=Za(Math.sqrt(l/h)),w=Math.abs(A)<5;r||(r=w?Kn.restSpeed.granular:Kn.restSpeed.default),i||(i=w?Kn.restDelta.granular:Kn.restDelta.default);let D;if(C<1){const R=a4(S,C);D=O=>{const H=Math.exp(-C*S*O);return s-H*((x+C*S*A)/R*Math.sin(R*O)+A*Math.cos(R*O))}}else if(C===1)D=R=>s-Math.exp(-S*R)*(A+(x+S*A)*R);else{const R=S*Math.sqrt(C*C-1);D=O=>{const H=Math.exp(-C*S*O),F=Math.min(R*O,300);return s-H*((x+C*S*A)*Math.sinh(F)+R*A*Math.cosh(F))/R}}const k={calculatedDuration:b&&m||null,next:R=>{const O=D(R);if(b)u.done=R>=m;else{let H=0;C<1&&(H=R===0?ia(x):$I(D,R,O));const F=Math.abs(H)<=r,ce=Math.abs(s-O)<=i;u.done=F&&ce}return u.value=u.done?s:O,u},toString:()=>{const R=Math.min(vI(k),o4),O=WO(H=>k.next(R*H).value,R,30);return R+"ms "+O}};return k}function ZT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=F=>u!==void 0&&F<u||l!==void 0&&F>l,x=F=>u===void 0?l:l===void 0||Math.abs(u-F)<Math.abs(l-F)?u:l;let C=n*t;const A=m+C,S=s===void 0?A:s(A);S!==A&&(C=S-m);const w=F=>-C*Math.exp(-F/r),D=F=>S+w(F),k=F=>{const ce=w(F),ae=D(F);g.done=Math.abs(ce)<=d,g.value=g.done?S:ae};let R,O;const H=F=>{b(g.value)&&(R=F,O=xI({keyframes:[g.value,x(g.value)],velocity:$I(D,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return H(0),{calculatedDuration:null,next:F=>{let ce=!1;return!O&&R===void 0&&(ce=!0,k(F),H(F)),R!==void 0&&F>=R?O.next(F-R):(!ce&&k(F),g)}}}const Nse=jd(.42,0,1,1),jse=jd(0,0,.58,1),wI=jd(.42,0,.58,1),Kse=e=>Array.isArray(e)&&typeof e[0]!="number",XT={linear:eu,easeIn:Nse,easeInOut:wI,easeOut:jse,circIn:k$,circInOut:tI,circOut:Hoe,backIn:F$,backInOut:QO,backOut:JO,anticipate:eI},JT=e=>{if(R$(e)){pc(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return jd(t,n,r,i)}else if(typeof e=="string")return pc(XT[e]!==void 0,`Invalid easing type '${e}'`),XT[e];return e};function Use(e,t,n){const r=[],i=n||bI,o=e.length-1;for(let s=0;s<o;s++){let u=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||eu:t;u=ug(l,u)}r.push(u)}return r}function zse(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(pc(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Use(t,r,i),l=u.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=M$(e[m],e[m+1],h);return u[m](g)};return n?h=>d(tl(e[0],e[o-1],h)):d}function qse(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=M$(0,t,r);e.push(ag(n,1,i))}}function Wse(e){const t=[0];return qse(t,e.length-1),t}function Hse(e,t){return e.map(n=>n*t)}function Gse(e,t){return e.map(()=>t||wI).splice(0,e.length-1)}function im({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Kse(r)?r.map(JT):JT(r),o={done:!1,value:t[0]},s=Hse(n&&n.length===t.length?n:Wse(t),e),u=zse(s,t,{ease:Array.isArray(i)?i:Gse(t,i)});return{calculatedDuration:e,next:l=>(o.value=u(l),o.done=l>=e,o)}}const Yse=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ci.update(t,!0),stop:()=>Jb(t),now:()=>Qp.isProcessing?Qp.timestamp:Ya.now()}},Zse={decay:ZT,inertia:ZT,tween:im,keyframes:im,spring:xI},Xse=e=>e/100;class N$ extends gI{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)||B$,u=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new s(o,u,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,u=_$(n)?n:Zse[n]||im;let l,d;u!==im&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&pc(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=ug(Xse,bI(t[0],t[1])),t=[0,100]);const h=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-s})),h.calculatedDuration===null&&(h.calculatedDuration=vI(h));const{calculatedDuration:m}=h,g=m+i,b=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:g,totalDuration:b}}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:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:b,repeatType:x,repeatDelay:C,onUpdate:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/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 S=this.currentTime-g*(this.speed>=0?1:-1),w=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let D=this.currentTime,k=o;if(b){const F=Math.min(this.currentTime,h)/m;let ce=Math.floor(F),ae=F%1;!ae&&F>=1&&(ae=1),ae===1&&ce--,ce=Math.min(ce,b+1),!!(ce%2)&&(x==="reverse"?(ae=1-ae,C&&(ae-=C/m)):x==="mirror"&&(k=s)),D=tl(0,1,ae)*m}const R=w?{done:!1,value:l[0]}:k.next(D);u&&(R.value=u(R.value));let{done:O}=R;!w&&d!==null&&(O=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return H&&i!==void 0&&(R.value=sg(l,this.options,i)),A&&A(R.value),H&&this.finish(),R}get duration(){const{resolved:t}=this;return t?Za(t.calculatedDuration):0}get time(){return Za(this.currentTime)}set time(t){t=ia(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=Za(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Yse,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 Jse=new Set(["opacity","clipPath","filter","transform"]);function Qse(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:u="easeInOut",times:l}={}){const d={[t]:n};l&&(d.offset=l);const h=GO(u,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const eae=P$(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),om=10,tae=2e4;function nae(e){return _$(e.type)||e.type==="spring"||!HO(e.ease)}function rae(e,t){const n=new N$({...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<tae;)r=n.sample(o),i.push(r.value),o+=om;return{times:void 0,keyframes:i,duration:o-om,ease:"linear"}}const CI={anticipate:eI,backInOut:QO,circInOut:tI};function iae(e){return e in CI}class QT extends gI{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new mI(o,(s,u)=>this.onKeyframesResolved(s,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:u,name:l,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof o=="string"&&nm()&&iae(o)&&(o=CI[o]),nae(this.options)){const{onComplete:m,onUpdate:g,motionValue:b,element:x,...C}=this.options,A=rae(t,C);t=A.keyframes,t.length===1&&(t[1]=t[0]),r=A.duration,i=A.times,o=A.ease,s="keyframes"}const h=Qse(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(VT(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;u.set(sg(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Za(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Za(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ia(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 eu;const{animation:r}=n;VT(r,t)}return eu}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:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...b}=this.options,x=new N$({...b,keyframes:r,duration:i,type:o,ease:s,times:u,isGenerator:!0}),C=ia(this.time);d.setWithVelocity(x.sample(C-om).value,x.sample(C).value,om)}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:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return eae()&&r&&Jse.has(r)&&!l&&!d&&!i&&o!=="mirror"&&s!==0&&u!=="inertia"}}const oae={type:"spring",stiffness:500,damping:25,restSpeed:10},sae=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),aae={type:"keyframes",duration:.8},uae={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lae=(e,{keyframes:t})=>t.length>2?aae:al.has(e)?e.startsWith("scale")?sae(t[1]):oae:uae;function cae({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:u,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const fae=(e,t,n,r={},i,o)=>s=>{const u=KO(r,e)||{},l=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ia(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};cae(u)||(h={...h,...lae(e,h)}),h.duration&&(h.duration=ia(h.duration)),h.repeatDelay&&(h.repeatDelay=ia(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),m&&!o&&t.get()!==void 0){const g=sg(h.keyframes,u);if(g!==void 0)return Ci.update(()=>{h.onUpdate(g),h.onComplete()}),new joe([])}return!o&&QT.supports(h)?new QT(h):new N$(h)};function dae({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function SI(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(s=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in l){const g=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),b=l[m];if(b===void 0||h&&dae(h,m))continue;const x={delay:n,...KO(s||{},m)};let C=!1;if(window.MotionHandoffAnimation){const S=Boe(e);if(S){const w=window.MotionHandoffAnimation(S,m,Ci);w!==null&&(x.startTime=w,C=!0)}}Loe(e,m),g.start(fae(m,g,b,e.shouldReduceMotion&&UO.has(m)?{type:!1}:x,e,C));const A=g.animation;A&&d.push(A)}return u&&Promise.all(d).then(()=>{Ci.update(()=>{u&&Ooe(e,u)})}),d}function u4(e,t,n={}){var r;const i=pd(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(SI(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return hae(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[d,h]=l==="beforeChildren"?[s,u]:[u,s];return d().then(()=>h())}else return Promise.all([s(),u(n.delay)])}function hae(e,t,n=0,r=0,i=1,o){const s=[],u=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(pae).forEach((d,h)=>{d.notify("AnimationStart",t),s.push(u4(d,t,{...o,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function pae(e,t){return e.sortNodePosition(t)}function mae(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>u4(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=u4(e,t,n);else{const i=typeof t=="function"?pd(e,t,n.custom):t;r=Promise.all(SI(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function EI(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const gae=y$.length;function DI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?DI(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<gae;n++){const r=y$[n],i=e.props[r];(dd(i)||i===!1)&&(t[r]=i)}return t}const vae=[...v$].reverse(),yae=v$.length;function bae(e){return t=>Promise.all(t.map(({animation:n,options:r})=>mae(e,n,r)))}function $ae(e){let t=bae(e),n=eP(),r=!0;const i=l=>(d,h)=>{var m;const g=pd(e,h,l==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:b,transitionEnd:x,...C}=g;d={...d,...C,...x}}return d};function o(l){t=l(e)}function s(l){const{props:d}=e,h=DI(e.parent)||{},m=[],g=new Set;let b={},x=1/0;for(let A=0;A<yae;A++){const S=vae[A],w=n[S],D=d[S]!==void 0?d[S]:h[S],k=dd(D),R=S===l?w.isActive:null;R===!1&&(x=A);let O=D===h[S]&&D!==d[S]&&k;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),w.protectedKeys={...b},!w.isActive&&R===null||!D&&!w.prevProp||ig(D)||typeof D=="boolean")continue;const H=xae(w.prevProp,D);let F=H||S===l&&w.isActive&&!O&&k||A>x&&k,ce=!1;const ae=Array.isArray(D)?D:[D];let q=ae.reduce(i(S),{});R===!1&&(q={});const{prevResolvedValues:De={}}=w,z={...De,...q},j=N=>{F=!0,g.has(N)&&(ce=!0,g.delete(N)),w.needsAnimating[N]=!0;const I=e.getValue(N);I&&(I.liveStyle=!1)};for(const N in z){const I=q[N],de=De[N];if(b.hasOwnProperty(N))continue;let se=!1;Qb(I)&&Qb(de)?se=!EI(I,de):se=I!==de,se?I!=null?j(N):g.add(N):I!==void 0&&g.has(N)?j(N):w.protectedKeys[N]=!0}w.prevProp=D,w.prevResolvedValues=q,w.isActive&&(b={...b,...q}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(O&&H)||ce)&&m.push(...ae.map(N=>({animation:N,options:{type:S}})))}if(g.size){const A={};if(typeof d.initial!="boolean"){const S=pd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(A.transition=S.transition)}g.forEach(S=>{const w=e.getBaseTarget(S),D=e.getValue(S);D&&(D.liveStyle=!0),A[S]=w??null}),m.push({animation:A})}let C=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(m):Promise.resolve()}function u(l,d){var h;if(n[l].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var b;return(b=g.animationState)===null||b===void 0?void 0:b.setActive(l,d)}),n[l].isActive=d;const m=s(l);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=eP(),r=!0}}}function xae(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!EI(t,e):!1}function Au(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eP(){return{animate:Au(!0),whileInView:Au(),whileHover:Au(),whileTap:Au(),whileDrag:Au(),whileFocus:Au(),exit:Au()}}class Oc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class wae extends Oc{constructor(t){super(t),t.animationState||(t.animationState=$ae(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ig(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 Cae=0;class Sae extends Oc{constructor(){super(...arguments),this.id=Cae++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Eae={animation:{Feature:wae},exit:{Feature:Sae}},Dae={y:!1};function Aae(){return Dae.y}const Tae=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function tP(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function AI(e){return{point:{x:e.pageX,y:e.pageY}}}const nP=()=>({min:0,max:0}),TI=()=>({x:nP(),y:nP()});function Pae({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _ae(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 Rae(e,t){return Pae(_ae(e.getBoundingClientRect(),t))}function Mae(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 PI(e,t){const n=Mae(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function rP(e){return!(e.pointerType==="touch"||Aae())}function Fae(e,t,n={}){const[r,i,o]=PI(e,n),s=u=>{if(!rP(u))return;const{target:l}=u,d=t(l,u);if(typeof d!="function"||!l)return;const h=m=>{rP(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",s,i)}),o}function iP(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&&Ci.postRender(()=>o(t,AI(t)))}class kae extends Oc{mount(){const{current:t}=this.node;t&&(this.unmount=Fae(t,(n,r)=>(iP(this.node,r,"Start"),i=>iP(this.node,i,"End"))))}unmount(){}}class Oae extends Oc{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=ug(tP(this.node.current,"focus",()=>this.onFocus()),tP(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _I=(e,t)=>t?e===t?!0:_I(e,t.parentElement):!1,Iae=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Lae(e){return Iae.has(e.tagName)||e.tabIndex!==-1}const Ff=new WeakSet;function oP(e){return t=>{t.key==="Enter"&&e(t)}}function $1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Bae=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=oP(()=>{if(Ff.has(n))return;$1(n,"down");const i=oP(()=>{$1(n,"up")}),o=()=>$1(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)};function sP(e){return Tae(e)&&!0}function Vae(e,t,n={}){const[r,i,o]=PI(e,n),s=u=>{const l=u.currentTarget;if(!sP(u)||Ff.has(l))return;Ff.add(l);const d=t(l,u),h=(b,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!sP(b)||!Ff.has(l))&&(Ff.delete(l),typeof d=="function"&&d(b,{success:x}))},m=b=>{h(b,n.useGlobalTarget||_I(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(u=>{!Lae(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",s,i),u.addEventListener("focus",d=>Bae(d,i),i)}),o}function aP(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ci.postRender(()=>o(t,AI(t)))}class Nae extends Oc{mount(){const{current:t}=this.node;t&&(this.unmount=Vae(t,(n,r)=>(aP(this.node,r,"Start"),(i,{success:o})=>aP(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const l4=new WeakMap,x1=new WeakMap,jae=e=>{const t=l4.get(e.target);t&&t(e)},Kae=e=>{e.forEach(jae)};function Uae({root:e,...t}){const n=e||document;x1.has(n)||x1.set(n,{});const r=x1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Kae,{root:e,...t})),r[i]}function zae(e,t,n){const r=Uae(t);return l4.set(e,n),r.observe(e),()=>{l4.delete(e),r.unobserve(e)}}const qae={some:0,all:1};class Wae extends Oc{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:qae[i]},u=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(l)};return zae(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Hae(t,n))&&this.startObserver()}unmount(){}}function Hae({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Gae={inView:{Feature:Wae},tap:{Feature:Nae},focus:{Feature:Oae},hover:{Feature:kae}},c4={current:null},RI={current:!1};function Yae(){if(RI.current=!0,!!m$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>c4.current=e.matches;e.addListener(t),t()}else c4.current=!1}const Zae=[...pI,Ur,kc],Xae=e=>Zae.find(hI(e)),Jae=new WeakMap;function Qae(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ri(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&ng(i.version==="12.4.2",`Attempting to mix Motion versions ${i.version} with 12.4.2 may not work as expected.`);else if(ri(o))e.addValue(r,tm(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,tm(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const uP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class eue{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=B$,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 b=Ya.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Ci.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:h}=s;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=og(n),this.isVariantNode=DO(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const x=g[b];l[b]!==void 0&&ri(x)&&x.set(l[b],!1)}}mount(t){this.current=t,Jae.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)),RI.current||Yae(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:c4.current,process.env.NODE_ENV!=="production"&&ng(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Jb(this.notifyUpdate),Jb(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=al.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Ci.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 mc){const n=mc[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):TI()}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<uP.length;r++){const i=uP[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=Qae(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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=tm(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"&&(fI(i)||nI(i))?i=parseFloat(i):!Xae(i)&&kc.test(n)&&(i=uI(t,n)),this.setBaseTarget(t,ri(i)?i.get():i)),ri(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=A$(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&&!ri(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 zO),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class MI extends eue{constructor(){super(...arguments),this.KeyframeResolver=mI}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;ri(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function tue(e){return window.getComputedStyle(e)}class nue extends MI{constructor(){super(...arguments),this.type="html",this.renderInstance=BO}readValueFromInstance(t,n){if(al.has(n)){const r=L$(n);return r&&r.default||0}else{const r=tue(t),i=(RO(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Rae(t,n)}build(t,n,r){w$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return T$(t,n,r)}}class rue extends MI{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=TI,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&LO(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(al.has(n)){const r=L$(n);return r&&r.default||0}return n=VO.has(n)?n:b$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return jO(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ci.postRender(this.updateDimensions)}build(t,n,r){E$(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){NO(t,n,r,i)}mount(t){this.isSVGTag=D$(t.tagName),super.mount(t)}}const iue=(e,t)=>S$(e)?new rue(t):new nue(t,{allowProjection:e!==_.Fragment}),oue={renderer:iue,...Eae,...Gae};function FI(e){return t=>typeof t===e}var sue=FI("function"),aue=e=>e===null,lP=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",cP=e=>!uue(e)&&!aue(e)&&(sue(e)||typeof e=="object"),uue=FI("undefined");function lue(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!ii(e[r],t[r]))return!1;return!0}function cue(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 fue(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(!ii(n[1],t.get(n[0])))return!1;return!0}function due(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 ii(e,t){if(e===t)return!0;if(e&&cP(e)&&t&&cP(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return lue(e,t);if(e instanceof Map&&t instanceof Map)return fue(e,t);if(e instanceof Set&&t instanceof Set)return due(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return cue(e,t);if(lP(e)&&lP(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)&&!ii(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var hue=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],pue=["bigint","boolean","null","number","string","symbol","undefined"];function lg(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(mue(t))return t}function No(e){return t=>lg(t)===e}function mue(e){return hue.includes(e)}function Ic(e){return t=>typeof t===e}function gue(e){return pue.includes(e)}var vue=["innerHTML","ownerDocument","style","attributes","nodeValue"];function pt(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(pt.array(e))return"Array";if(pt.plainFunction(e))return"Function";const t=lg(e);return t||"Object"}pt.array=Array.isArray;pt.arrayOf=(e,t)=>!pt.array(e)&&!pt.function(t)?!1:e.every(n=>t(n));pt.asyncGeneratorFunction=e=>lg(e)==="AsyncGeneratorFunction";pt.asyncFunction=No("AsyncFunction");pt.bigint=Ic("bigint");pt.boolean=e=>e===!0||e===!1;pt.date=No("Date");pt.defined=e=>!pt.undefined(e);pt.domElement=e=>pt.object(e)&&!pt.plainObject(e)&&e.nodeType===1&&pt.string(e.nodeName)&&vue.every(t=>t in e);pt.empty=e=>pt.string(e)&&e.length===0||pt.array(e)&&e.length===0||pt.object(e)&&!pt.map(e)&&!pt.set(e)&&Object.keys(e).length===0||pt.set(e)&&e.size===0||pt.map(e)&&e.size===0;pt.error=No("Error");pt.function=Ic("function");pt.generator=e=>pt.iterable(e)&&pt.function(e.next)&&pt.function(e.throw);pt.generatorFunction=No("GeneratorFunction");pt.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;pt.iterable=e=>!pt.nullOrUndefined(e)&&pt.function(e[Symbol.iterator]);pt.map=No("Map");pt.nan=e=>Number.isNaN(e);pt.null=e=>e===null;pt.nullOrUndefined=e=>pt.null(e)||pt.undefined(e);pt.number=e=>Ic("number")(e)&&!pt.nan(e);pt.numericString=e=>pt.string(e)&&e.length>0&&!Number.isNaN(Number(e));pt.object=e=>!pt.nullOrUndefined(e)&&(pt.function(e)||typeof e=="object");pt.oneOf=(e,t)=>pt.array(e)?e.indexOf(t)>-1:!1;pt.plainFunction=No("Function");pt.plainObject=e=>{if(lg(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};pt.primitive=e=>pt.null(e)||gue(typeof e);pt.promise=No("Promise");pt.propertyOf=(e,t,n)=>{if(!pt.object(e)||!t)return!1;const r=e[t];return pt.function(n)?n(r):pt.defined(r)};pt.regexp=No("RegExp");pt.set=No("Set");pt.string=Ic("string");pt.symbol=Ic("symbol");pt.undefined=Ic("undefined");pt.weakMap=No("WeakMap");pt.weakSet=No("WeakSet");var yt=pt;function yue(...e){return e.every(t=>yt.string(t)||yt.array(t)||yt.plainObject(t))}function bue(e,t,n){return kI(e,t)?[e,t].every(yt.array)?!e.some(mP(n))&&t.some(mP(n)):[e,t].every(yt.plainObject)?!Object.entries(e).some(pP(n))&&Object.entries(t).some(pP(n)):t===n:!1}function fP(e,t,n){const{actual:r,key:i,previous:o,type:s}=n,u=hs(e,i),l=hs(t,i);let d=[u,l].every(yt.number)&&(s==="increased"?u<l:u>l);return yt.undefined(r)||(d=d&&l===r),yt.undefined(o)||(d=d&&u===o),d}function dP(e,t,n){const{key:r,type:i,value:o}=n,s=hs(e,r),u=hs(t,r),l=i==="added"?s:u,d=i==="added"?u:s;if(!yt.nullOrUndefined(o)){if(yt.defined(l)){if(yt.array(l)||yt.plainObject(l))return bue(l,d,o)}else return ii(d,o);return!1}return[s,u].every(yt.array)?!d.every(j$(l)):[s,u].every(yt.plainObject)?$ue(Object.keys(l),Object.keys(d)):![s,u].every(h=>yt.primitive(h)&&yt.defined(h))&&(i==="added"?!yt.defined(s)&&yt.defined(u):yt.defined(s)&&!yt.defined(u))}function hP(e,t,{key:n}={}){let r=hs(e,n),i=hs(t,n);if(!kI(r,i))throw new TypeError("Inputs have different types");if(!yue(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(yt.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function pP(e){return([t,n])=>yt.array(e)?ii(e,n)||e.some(r=>ii(r,n)||yt.array(n)&&j$(n)(r)):yt.plainObject(e)&&e[t]?!!e[t]&&ii(e[t],n):ii(e,n)}function $ue(e,t){return t.some(n=>!e.includes(n))}function mP(e){return t=>yt.array(e)?e.some(n=>ii(n,t)||yt.array(t)&&j$(t)(n)):ii(e,t)}function mf(e,t){return yt.array(e)?e.some(n=>ii(n,t)):ii(e,t)}function j$(e){return t=>e.some(n=>ii(n,t))}function kI(...e){return e.every(yt.array)||e.every(yt.number)||e.every(yt.plainObject)||e.every(yt.string)}function hs(e,t){return yt.plainObject(e)||yt.array(e)?yt.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):yt.number(t)?e[t]:e:e}function sm(e,t){if([e,t].some(yt.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>yt.plainObject(h)||yt.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return dP(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=hs(e,h),x=hs(t,h),C=yt.defined(m),A=yt.defined(g);if(C||A){const S=A?mf(g,b):!mf(m,b),w=mf(m,x);return S&&w}return[b,x].every(yt.array)||[b,x].every(yt.plainObject)?!ii(b,x):b!==x}catch{return!1}},changedFrom:(h,m,g)=>{if(!yt.defined(h))return!1;try{const b=hs(e,h),x=hs(t,h),C=yt.defined(g);return mf(m,b)&&(C?mf(g,x):!C)}catch{return!1}},decreased:(h,m,g)=>{if(!yt.defined(h))return!1;try{return fP(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=hP(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=hP(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!yt.defined(h))return!1;try{return fP(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return dP(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var w1,gP;function xue(){if(gP)return w1;gP=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;w1={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=s);var b=r(),x=d[u],C=m.ease||o,A=isNaN(m.duration)?350:+m.duration,S=!1;return x===h?g(e,d[u]):requestAnimationFrame(D),w;function w(){S=!0}function D(k){if(S)return g(t,d[u]);var R=r(),O=n(1,(R-b)/A),H=C(O);d[u]=H*(h-x)+x,O<1?requestAnimationFrame(D):requestAnimationFrame(function(){g(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function s(){}return w1}var wue=xue();const Cue=Lo(wue);var gp={exports:{}},Sue=gp.exports,vP;function Eue(){return vP||(vP=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(Sue,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})}(gp)),gp.exports}var Due=Eue();const OI=Lo(Due);var C1,yP;function Aue(){if(yP)return C1;yP=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,C1=n,C1}var Tue=Aue();const bP=Lo(Tue);var S1,$P;function Pue(){if($P)return S1;$P=1;var e=function(w){return t(w)&&!n(w)};function t(S){return!!S&&typeof S=="object"}function n(S){var w=Object.prototype.toString.call(S);return w==="[object RegExp]"||w==="[object Date]"||o(S)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(S){return S.$$typeof===i}function s(S){return Array.isArray(S)?[]:{}}function u(S,w){return w.clone!==!1&&w.isMergeableObject(S)?C(s(S),S,w):S}function l(S,w,D){return S.concat(w).map(function(k){return u(k,D)})}function d(S,w){if(!w.customMerge)return C;var D=w.customMerge(S);return typeof D=="function"?D:C}function h(S){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(S).filter(function(w){return Object.propertyIsEnumerable.call(S,w)}):[]}function m(S){return Object.keys(S).concat(h(S))}function g(S,w){try{return w in S}catch{return!1}}function b(S,w){return g(S,w)&&!(Object.hasOwnProperty.call(S,w)&&Object.propertyIsEnumerable.call(S,w))}function x(S,w,D){var k={};return D.isMergeableObject(S)&&m(S).forEach(function(R){k[R]=u(S[R],D)}),m(w).forEach(function(R){b(S,R)||(g(S,R)&&D.isMergeableObject(w[R])?k[R]=d(R,D)(S[R],w[R],D):k[R]=u(w[R],D))}),k}function C(S,w,D){D=D||{},D.arrayMerge=D.arrayMerge||l,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var k=Array.isArray(w),R=Array.isArray(S),O=k===R;return O?k?D.arrayMerge(S,w,D):x(S,w,D):u(w,D)}C.all=function(w,D){if(!Array.isArray(w))throw new Error("first argument should be an array");return w.reduce(function(k,R){return C(k,R,D)},{})};var A=C;return S1=A,S1}var _ue=Pue();const Fo=Lo(_ue);var Wh={exports:{}},Hh={exports:{}},pn={};/** @license React v16.13.1
156
- * react-is.production.min.js
157
- *
158
- * Copyright (c) Facebook, Inc. and its affiliates.
159
- *
160
- * This source code is licensed under the MIT license found in the
161
- * LICENSE file in the root directory of this source tree.
162
- */var xP;function Rue(){if(xP)return pn;xP=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,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function D(R){if(typeof R=="object"&&R!==null){var O=R.$$typeof;switch(O){case t:switch(R=R.type,R){case l:case d:case r:case o:case i:case m:return R;default:switch(R=R&&R.$$typeof,R){case u:case h:case x:case b:case s:return R;default:return O}}case n:return O}}}function k(R){return D(R)===d}return pn.AsyncMode=l,pn.ConcurrentMode=d,pn.ContextConsumer=u,pn.ContextProvider=s,pn.Element=t,pn.ForwardRef=h,pn.Fragment=r,pn.Lazy=x,pn.Memo=b,pn.Portal=n,pn.Profiler=o,pn.StrictMode=i,pn.Suspense=m,pn.isAsyncMode=function(R){return k(R)||D(R)===l},pn.isConcurrentMode=k,pn.isContextConsumer=function(R){return D(R)===u},pn.isContextProvider=function(R){return D(R)===s},pn.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},pn.isForwardRef=function(R){return D(R)===h},pn.isFragment=function(R){return D(R)===r},pn.isLazy=function(R){return D(R)===x},pn.isMemo=function(R){return D(R)===b},pn.isPortal=function(R){return D(R)===n},pn.isProfiler=function(R){return D(R)===o},pn.isStrictMode=function(R){return D(R)===i},pn.isSuspense=function(R){return D(R)===m},pn.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===r||R===d||R===o||R===i||R===m||R===g||typeof R=="object"&&R!==null&&(R.$$typeof===x||R.$$typeof===b||R.$$typeof===s||R.$$typeof===u||R.$$typeof===h||R.$$typeof===A||R.$$typeof===S||R.$$typeof===w||R.$$typeof===C)},pn.typeOf=D,pn}var mn={};/** @license React v16.13.1
163
- * react-is.development.js
164
- *
165
- * Copyright (c) Facebook, Inc. and its affiliates.
166
- *
167
- * This source code is licensed under the MIT license found in the
168
- * LICENSE file in the root directory of this source tree.
169
- */var wP;function Mue(){return wP||(wP=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,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function D(Be){return typeof Be=="string"||typeof Be=="function"||Be===r||Be===d||Be===o||Be===i||Be===m||Be===g||typeof Be=="object"&&Be!==null&&(Be.$$typeof===x||Be.$$typeof===b||Be.$$typeof===s||Be.$$typeof===u||Be.$$typeof===h||Be.$$typeof===A||Be.$$typeof===S||Be.$$typeof===w||Be.$$typeof===C)}function k(Be){if(typeof Be=="object"&&Be!==null){var st=Be.$$typeof;switch(st){case t:var Dt=Be.type;switch(Dt){case l:case d:case r:case o:case i:case m:return Dt;default:var ln=Dt&&Dt.$$typeof;switch(ln){case u:case h:case x:case b:case s:return ln;default:return st}}case n:return st}}}var R=l,O=d,H=u,F=s,ce=t,ae=h,q=r,De=x,z=b,j=n,ne=o,K=i,N=m,I=!1;function de(Be){return I||(I=!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.")),se(Be)||k(Be)===l}function se(Be){return k(Be)===d}function ie(Be){return k(Be)===u}function Ae(Be){return k(Be)===s}function Pe(Be){return typeof Be=="object"&&Be!==null&&Be.$$typeof===t}function Ie(Be){return k(Be)===h}function Le(Be){return k(Be)===r}function Je(Be){return k(Be)===x}function Qe(Be){return k(Be)===b}function ye(Be){return k(Be)===n}function Ne(Be){return k(Be)===o}function He(Be){return k(Be)===i}function Ke(Be){return k(Be)===m}mn.AsyncMode=R,mn.ConcurrentMode=O,mn.ContextConsumer=H,mn.ContextProvider=F,mn.Element=ce,mn.ForwardRef=ae,mn.Fragment=q,mn.Lazy=De,mn.Memo=z,mn.Portal=j,mn.Profiler=ne,mn.StrictMode=K,mn.Suspense=N,mn.isAsyncMode=de,mn.isConcurrentMode=se,mn.isContextConsumer=ie,mn.isContextProvider=Ae,mn.isElement=Pe,mn.isForwardRef=Ie,mn.isFragment=Le,mn.isLazy=Je,mn.isMemo=Qe,mn.isPortal=ye,mn.isProfiler=Ne,mn.isStrictMode=He,mn.isSuspense=Ke,mn.isValidElementType=D,mn.typeOf=k}()),mn}var CP;function II(){return CP||(CP=1,process.env.NODE_ENV==="production"?Hh.exports=Rue():Hh.exports=Mue()),Hh.exports}/*
170
- object-assign
171
- (c) Sindre Sorhus
172
- @license MIT
173
- */var E1,SP;function Fue(){if(SP)return E1;SP=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={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(s).map(function(h){return s[h]});if(l.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return E1=i()?Object.assign:function(o,s){for(var u,l=r(o),d,h=1;h<arguments.length;h++){u=Object(arguments[h]);for(var m in u)t.call(u,m)&&(l[m]=u[m]);if(e){d=e(u);for(var g=0;g<d.length;g++)n.call(u,d[g])&&(l[d[g]]=u[d[g]])}}return l},E1}var D1,EP;function K$(){if(EP)return D1;EP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return D1=e,D1}var A1,DP;function LI(){return DP||(DP=1,A1=Function.call.bind(Object.prototype.hasOwnProperty)),A1}var T1,AP;function kue(){if(AP)return T1;AP=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=K$(),n={},r=LI();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,u,l,d){if(process.env.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var m;try{if(typeof o[h]!="function"){var g=Error((l||"React class")+": "+u+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=o[h](s,h,l,u,null,t)}catch(x){m=x}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var b=d?d():"";e("Failed "+u+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},T1=i,T1}var P1,TP;function Oue(){if(TP)return P1;TP=1;var e=II(),t=Fue(),n=K$(),r=LI(),i=kue(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return P1=function(u,l){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(se){var ie=se&&(d&&se[d]||se[h]);if(typeof ie=="function")return ie}var g="<<anonymous>>",b={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:w(),arrayOf:D,element:k(),elementType:R(),instanceOf:O,node:ae(),objectOf:F,oneOf:H,oneOfType:ce,shape:De,exact:z};function x(se,ie){return se===ie?se!==0||1/se===1/ie:se!==se&&ie!==ie}function C(se,ie){this.message=se,this.data=ie&&typeof ie=="object"?ie:{},this.stack=""}C.prototype=Error.prototype;function A(se){if(process.env.NODE_ENV!=="production")var ie={},Ae=0;function Pe(Le,Je,Qe,ye,Ne,He,Ke){if(ye=ye||g,He=He||Qe,Ke!==n){if(l){var Be=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 Be.name="Invariant Violation",Be}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var st=ye+":"+Qe;!ie[st]&&Ae<3&&(o("You are manually calling a React.PropTypes validation function for the `"+He+"` prop on `"+ye+"`. 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."),ie[st]=!0,Ae++)}}return Je[Qe]==null?Le?Je[Qe]===null?new C("The "+Ne+" `"+He+"` is marked as required "+("in `"+ye+"`, but its value is `null`.")):new C("The "+Ne+" `"+He+"` is marked as required in "+("`"+ye+"`, but its value is `undefined`.")):null:se(Je,Qe,ye,Ne,He)}var Ie=Pe.bind(null,!1);return Ie.isRequired=Pe.bind(null,!0),Ie}function S(se){function ie(Ae,Pe,Ie,Le,Je,Qe){var ye=Ae[Pe],Ne=K(ye);if(Ne!==se){var He=N(ye);return new C("Invalid "+Le+" `"+Je+"` of type "+("`"+He+"` supplied to `"+Ie+"`, expected ")+("`"+se+"`."),{expectedType:se})}return null}return A(ie)}function w(){return A(s)}function D(se){function ie(Ae,Pe,Ie,Le,Je){if(typeof se!="function")return new C("Property `"+Je+"` of component `"+Ie+"` has invalid PropType notation inside arrayOf.");var Qe=Ae[Pe];if(!Array.isArray(Qe)){var ye=K(Qe);return new C("Invalid "+Le+" `"+Je+"` of type "+("`"+ye+"` supplied to `"+Ie+"`, expected an array."))}for(var Ne=0;Ne<Qe.length;Ne++){var He=se(Qe,Ne,Ie,Le,Je+"["+Ne+"]",n);if(He instanceof Error)return He}return null}return A(ie)}function k(){function se(ie,Ae,Pe,Ie,Le){var Je=ie[Ae];if(!u(Je)){var Qe=K(Je);return new C("Invalid "+Ie+" `"+Le+"` of type "+("`"+Qe+"` supplied to `"+Pe+"`, expected a single ReactElement."))}return null}return A(se)}function R(){function se(ie,Ae,Pe,Ie,Le){var Je=ie[Ae];if(!e.isValidElementType(Je)){var Qe=K(Je);return new C("Invalid "+Ie+" `"+Le+"` of type "+("`"+Qe+"` supplied to `"+Pe+"`, expected a single ReactElement type."))}return null}return A(se)}function O(se){function ie(Ae,Pe,Ie,Le,Je){if(!(Ae[Pe]instanceof se)){var Qe=se.name||g,ye=de(Ae[Pe]);return new C("Invalid "+Le+" `"+Je+"` of type "+("`"+ye+"` supplied to `"+Ie+"`, expected ")+("instance of `"+Qe+"`."))}return null}return A(ie)}function H(se){if(!Array.isArray(se))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 ie(Ae,Pe,Ie,Le,Je){for(var Qe=Ae[Pe],ye=0;ye<se.length;ye++)if(x(Qe,se[ye]))return null;var Ne=JSON.stringify(se,function(Ke,Be){var st=N(Be);return st==="symbol"?String(Be):Be});return new C("Invalid "+Le+" `"+Je+"` of value `"+String(Qe)+"` "+("supplied to `"+Ie+"`, expected one of "+Ne+"."))}return A(ie)}function F(se){function ie(Ae,Pe,Ie,Le,Je){if(typeof se!="function")return new C("Property `"+Je+"` of component `"+Ie+"` has invalid PropType notation inside objectOf.");var Qe=Ae[Pe],ye=K(Qe);if(ye!=="object")return new C("Invalid "+Le+" `"+Je+"` of type "+("`"+ye+"` supplied to `"+Ie+"`, expected an object."));for(var Ne in Qe)if(r(Qe,Ne)){var He=se(Qe,Ne,Ie,Le,Je+"."+Ne,n);if(He instanceof Error)return He}return null}return A(ie)}function ce(se){if(!Array.isArray(se))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var ie=0;ie<se.length;ie++){var Ae=se[ie];if(typeof Ae!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+I(Ae)+" at index "+ie+"."),s}function Pe(Ie,Le,Je,Qe,ye){for(var Ne=[],He=0;He<se.length;He++){var Ke=se[He],Be=Ke(Ie,Le,Je,Qe,ye,n);if(Be==null)return null;Be.data&&r(Be.data,"expectedType")&&Ne.push(Be.data.expectedType)}var st=Ne.length>0?", expected one of type ["+Ne.join(", ")+"]":"";return new C("Invalid "+Qe+" `"+ye+"` supplied to "+("`"+Je+"`"+st+"."))}return A(Pe)}function ae(){function se(ie,Ae,Pe,Ie,Le){return j(ie[Ae])?null:new C("Invalid "+Ie+" `"+Le+"` supplied to "+("`"+Pe+"`, expected a ReactNode."))}return A(se)}function q(se,ie,Ae,Pe,Ie){return new C((se||"React class")+": "+ie+" type `"+Ae+"."+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ie+"`.")}function De(se){function ie(Ae,Pe,Ie,Le,Je){var Qe=Ae[Pe],ye=K(Qe);if(ye!=="object")return new C("Invalid "+Le+" `"+Je+"` of type `"+ye+"` "+("supplied to `"+Ie+"`, expected `object`."));for(var Ne in se){var He=se[Ne];if(typeof He!="function")return q(Ie,Le,Je,Ne,N(He));var Ke=He(Qe,Ne,Ie,Le,Je+"."+Ne,n);if(Ke)return Ke}return null}return A(ie)}function z(se){function ie(Ae,Pe,Ie,Le,Je){var Qe=Ae[Pe],ye=K(Qe);if(ye!=="object")return new C("Invalid "+Le+" `"+Je+"` of type `"+ye+"` "+("supplied to `"+Ie+"`, expected `object`."));var Ne=t({},Ae[Pe],se);for(var He in Ne){var Ke=se[He];if(r(se,He)&&typeof Ke!="function")return q(Ie,Le,Je,He,N(Ke));if(!Ke)return new C("Invalid "+Le+" `"+Je+"` key `"+He+"` supplied to `"+Ie+"`.\nBad object: "+JSON.stringify(Ae[Pe],null," ")+`
174
- Valid keys: `+JSON.stringify(Object.keys(se),null," "));var Be=Ke(Qe,He,Ie,Le,Je+"."+He,n);if(Be)return Be}return null}return A(ie)}function j(se){switch(typeof se){case"number":case"string":case"undefined":return!0;case"boolean":return!se;case"object":if(Array.isArray(se))return se.every(j);if(se===null||u(se))return!0;var ie=m(se);if(ie){var Ae=ie.call(se),Pe;if(ie!==se.entries){for(;!(Pe=Ae.next()).done;)if(!j(Pe.value))return!1}else for(;!(Pe=Ae.next()).done;){var Ie=Pe.value;if(Ie&&!j(Ie[1]))return!1}}else return!1;return!0;default:return!1}}function ne(se,ie){return se==="symbol"?!0:ie?ie["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ie instanceof Symbol:!1}function K(se){var ie=typeof se;return Array.isArray(se)?"array":se instanceof RegExp?"object":ne(ie,se)?"symbol":ie}function N(se){if(typeof se>"u"||se===null)return""+se;var ie=K(se);if(ie==="object"){if(se instanceof Date)return"date";if(se instanceof RegExp)return"regexp"}return ie}function I(se){var ie=N(se);switch(ie){case"array":case"object":return"an "+ie;case"boolean":case"date":case"regexp":return"a "+ie;default:return ie}}function de(se){return!se.constructor||!se.constructor.name?g:se.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},P1}var _1,PP;function Iue(){if(PP)return _1;PP=1;var e=K$();function t(){}function n(){}return n.resetWarningCache=t,_1=function(){function r(s,u,l,d,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var 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},_1}var _P;function Lue(){if(_P)return Wh.exports;if(_P=1,process.env.NODE_ENV!=="production"){var e=II(),t=!0;Wh.exports=Oue()(e.isElement,t)}else Wh.exports=Iue()();return Wh.exports}var Bue=Lue();const at=Lo(Bue);/**!
175
- * @fileOverview Kickass library to create and place poppers near their reference elements.
176
- * @version 1.16.1
177
- * @license
178
- * Copyright (c) 2016 Federico Zivolo and contributors
179
- *
180
- * Permission is hereby granted, free of charge, to any person obtaining a copy
181
- * of this software and associated documentation files (the "Software"), to deal
182
- * in the Software without restriction, including without limitation the rights
183
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
184
- * copies of the Software, and to permit persons to whom the Software is
185
- * furnished to do so, subject to the following conditions:
186
- *
187
- * The above copyright notice and this permission notice shall be included in all
188
- * copies or substantial portions of the Software.
189
- *
190
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
191
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
192
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
193
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
194
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
195
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
196
- * SOFTWARE.
197
- */var Kd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Vue=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Kd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Nue(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function jue(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Vue))}}var Kue=Kd&&window.Promise,Uue=Kue?Nue:jue;function BI(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function ul(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function U$(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Ud(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ul(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Ud(U$(e))}function VI(e){return e&&e.referenceNode?e.referenceNode:e}var RP=Kd&&!!(window.MSInputMethodContext&&document.documentMode),MP=Kd&&/MSIE 10/.test(navigator.userAgent);function Lc(e){return e===11?RP:e===10?MP:RP||MP}function vc(e){if(!e)return document.documentElement;for(var t=Lc(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&&ul(n,"position")==="static"?vc(n):n}function zue(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||vc(e.firstElementChild)===e}function f4(e){return e.parentNode!==null?f4(e.parentNode):e}function am(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 zue(s)?s:vc(s);var u=f4(e);return u.host?am(u.host,t):am(e,f4(t).host)}function yc(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 que(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=yc(t,"top"),i=yc(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 FP(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 kP(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Lc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function NI(e){var t=e.body,n=e.documentElement,r=Lc(10)&&getComputedStyle(n);return{height:kP("Height",t,n,r),width:kP("Width",t,n,r)}}var Wue=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Hue=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}}(),bc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},so=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 tu(e){return so({},e,{right:e.left+e.width,bottom:e.top+e.height})}function d4(e){var t={};try{if(Lc(10)){t=e.getBoundingClientRect();var n=yc(e,"top"),r=yc(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"?NI(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,l=e.offsetWidth-s,d=e.offsetHeight-u;if(l||d){var h=ul(e);l-=FP(h,"x"),d-=FP(h,"y"),i.width-=l,i.height-=d}return tu(i)}function z$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Lc(10),i=t.nodeName==="HTML",o=d4(e),s=d4(t),u=Ud(e),l=ul(t),d=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var m=tu({top:o.top-s.top-d,left:o.left-s.left-h,width:o.width,height:o.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);m.top-=d-g,m.bottom-=d-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(m=que(m,t)),m}function Gue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=z$(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:yc(n),u=t?0:yc(n,"left"),l={top:s-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:o};return tu(l)}function jI(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(ul(e,"position")==="fixed")return!0;var n=U$(e);return n?jI(n):!1}function KI(e){if(!e||!e.parentElement||Lc())return document.documentElement;for(var t=e.parentElement;t&&ul(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function q$(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},s=i?KI(e):am(e,VI(t));if(r==="viewport")o=Gue(s,i);else{var u=void 0;r==="scrollParent"?(u=Ud(U$(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var l=z$(u,s,i);if(u.nodeName==="HTML"&&!jI(s)){var d=NI(e.ownerDocument),h=d.height,m=d.width;o.top+=l.top-l.marginTop,o.bottom=h+l.top,o.left+=l.left-l.marginLeft,o.right=m+l.left}else o=l}n=n||0;var g=typeof n=="number";return o.left+=g?n:n.left||0,o.top+=g?n:n.top||0,o.right-=g?n:n.right||0,o.bottom-=g?n:n.bottom||0,o}function Yue(e){var t=e.width,n=e.height;return t*n}function UI(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=q$(n,r,o,i),u={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(u).map(function(g){return so({key:g},u[g],{area:Yue(u[g])})}).sort(function(g,b){return b.area-g.area}),d=l.filter(function(g){var b=g.width,x=g.height;return b>=n.clientWidth&&x>=n.clientHeight}),h=d.length>0?d[0].key:l[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function zI(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?KI(t):am(t,VI(n));return z$(n,i,r)}function qI(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 um(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 WI(e,t,n){n=n.split("-")[0];var r=qI(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,s=o?"top":"left",u=o?"left":"top",l=o?"height":"width",d=o?"width":"height";return i[s]=t[s]+t[l]/2-r[l]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[um(u)],i}function zd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Zue(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=zd(e,function(i){return i[t]===n});return e.indexOf(r)}function HI(e,t,n){var r=n===void 0?e:e.slice(0,Zue(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&&BI(o)&&(t.offsets.popper=tu(t.offsets.popper),t.offsets.reference=tu(t.offsets.reference),t=o(t,i))}),t}function Xue(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=zI(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=UI(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=WI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=HI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function GI(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function W$(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 Jue(){return this.state.isDestroyed=!0,GI(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[W$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function YI(e){var t=e.ownerDocument;return t?t.defaultView:window}function ZI(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||ZI(Ud(o.parentNode),t,n,r),r.push(o)}function Que(e,t,n,r){n.updateBound=r,YI(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Ud(e);return ZI(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function ele(){this.state.eventsEnabled||(this.state=Que(this.reference,this.options,this.state,this.scheduleUpdate))}function tle(e,t){return YI(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 nle(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=tle(this.reference,this.state))}function H$(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function h4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&H$(t[n])&&(r="px"),e.style[n]=t[n]+r})}function rle(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function ile(e){return h4(e.instance.popper,e.styles),rle(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&h4(e.arrowElement,e.arrowStyles),e}function ole(e,t,n,r,i){var o=zI(i,t,e,n.positionFixed),s=UI(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),h4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function sle(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,s=Math.floor,u=function(S){return S},l=o(i.width),d=o(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=l%2===d%2,b=l%2===1&&d%2===1,x=t?h||m||g?o:s:u,C=t?o:u;return{left:x(b&&!m&&t?r.left-1:r.left),top:C(r.top),bottom:C(r.bottom),right:x(r.right)}}var ale=Kd&&/Firefox/i.test(navigator.userAgent);function ule(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=zd(e.instance.modifiers,function(D){return D.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,u=vc(e.instance.popper),l=d4(u),d={position:i.position},h=sle(e,window.devicePixelRatio<2||!ale),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=W$("transform"),x=void 0,C=void 0;if(m==="bottom"?u.nodeName==="HTML"?C=-u.clientHeight+h.bottom:C=-l.height+h.bottom:C=h.top,g==="right"?u.nodeName==="HTML"?x=-u.clientWidth+h.right:x=-l.width+h.right:x=h.left,s&&b)d[b]="translate3d("+x+"px, "+C+"px, 0)",d[m]=0,d[g]=0,d.willChange="transform";else{var A=m==="bottom"?-1:1,S=g==="right"?-1:1;d[m]=C*A,d[g]=x*S,d.willChange=m+", "+g}var w={"x-placement":e.placement};return e.attributes=so({},w,e.attributes),e.styles=so({},d,e.styles),e.arrowStyles=so({},e.offsets.arrow,e.arrowStyles),e}function XI(e,t,n){var r=zd(e,function(u){var l=u.name;return l===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.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 lle(e,t){var n;if(!XI(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,u=o.reference,l=["left","right"].indexOf(i)!==-1,d=l?"height":"width",h=l?"Top":"Left",m=h.toLowerCase(),g=l?"left":"top",b=l?"bottom":"right",x=qI(r)[d];u[b]-x<s[m]&&(e.offsets.popper[m]-=s[m]-(u[b]-x)),u[m]+x>s[b]&&(e.offsets.popper[m]+=u[m]+x-s[b]),e.offsets.popper=tu(e.offsets.popper);var C=u[m]+u[d]/2-x/2,A=ul(e.instance.popper),S=parseFloat(A["margin"+h]),w=parseFloat(A["border"+h+"Width"]),D=C-e.offsets.popper[m]-S-w;return D=Math.max(Math.min(s[d]-x,D),0),e.arrowElement=r,e.offsets.arrow=(n={},bc(n,m,Math.round(D)),bc(n,g,""),n),e}function cle(e){return e==="end"?"start":e==="start"?"end":e}var JI=["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"],R1=JI.slice(3);function OP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=R1.indexOf(e),r=R1.slice(n+1).concat(R1.slice(0,n));return t?r.reverse():r}var M1={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function fle(e,t){if(GI(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=q$(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=um(r),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case M1.FLIP:s=[r,i];break;case M1.CLOCKWISE:s=OP(r);break;case M1.COUNTERCLOCKWISE:s=OP(r,!0);break;default:s=t.behavior}return s.forEach(function(u,l){if(r!==u||s.length===l+1)return e;r=e.placement.split("-")[0],i=um(r);var d=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(d.right)>m(h.left)||r==="right"&&m(d.left)<m(h.right)||r==="top"&&m(d.bottom)>m(h.top)||r==="bottom"&&m(d.top)<m(h.bottom),b=m(d.left)<m(n.left),x=m(d.right)>m(n.right),C=m(d.top)<m(n.top),A=m(d.bottom)>m(n.bottom),S=r==="left"&&b||r==="right"&&x||r==="top"&&C||r==="bottom"&&A,w=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(w&&o==="start"&&b||w&&o==="end"&&x||!w&&o==="start"&&C||!w&&o==="end"&&A),k=!!t.flipVariationsByContent&&(w&&o==="start"&&x||w&&o==="end"&&b||!w&&o==="start"&&A||!w&&o==="end"&&C),R=D||k;(g||S||R)&&(e.flipped=!0,(g||S)&&(r=s[l+1]),R&&(o=cle(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=so({},e.offsets.popper,WI(e.instance.popper,e.offsets.reference,e.placement)),e=HI(e.instance.modifiers,e,"flip"))}),e}function dle(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,u=s?"right":"bottom",l=s?"left":"top",d=s?"width":"height";return n[u]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[d]),n[l]>o(r[u])&&(e.offsets.popper[l]=o(r[u])),e}function hle(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 u=void 0;switch(s){case"%p":u=n;break;case"%":case"%r":default:u=r}var l=tu(u);return l[t]/100*o}else if(s==="vh"||s==="vw"){var d=void 0;return s==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*o}else return o}function ple(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,s=e.split(/(\+|\-)/).map(function(h){return h.trim()}),u=s.indexOf(zd(s,function(h){return h.search(/,|\s/)!==-1}));s[u]&&s[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=u!==-1?[s.slice(0,u).concat([s[u].split(l)[0]]),[s[u].split(l)[1]].concat(s.slice(u+1))]:[s];return d=d.map(function(h,m){var g=(m===1?!o:o)?"height":"width",b=!1;return h.reduce(function(x,C){return x[x.length-1]===""&&["+","-"].indexOf(C)!==-1?(x[x.length-1]=C,b=!0,x):b?(x[x.length-1]+=C,b=!1,x):x.concat(C)},[]).map(function(x){return hle(x,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){H$(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function mle(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,s=i.reference,u=r.split("-")[0],l=void 0;return H$(+n)?l=[+n,0]:l=ple(n,o,s,u),u==="left"?(o.top+=l[0],o.left-=l[1]):u==="right"?(o.top+=l[0],o.left+=l[1]):u==="top"?(o.left+=l[0],o.top-=l[1]):u==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function gle(e,t){var n=t.boundariesElement||vc(e.instance.popper);e.instance.reference===n&&(n=vc(n));var r=W$("transform"),i=e.instance.popper.style,o=i.top,s=i.left,u=i[r];i.top="",i.left="",i[r]="";var l=q$(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=s,i[r]=u,t.boundaries=l;var d=t.priority,h=e.offsets.popper,m={primary:function(b){var x=h[b];return h[b]<l[b]&&!t.escapeWithReference&&(x=Math.max(h[b],l[b])),bc({},b,x)},secondary:function(b){var x=b==="right"?"left":"top",C=h[x];return h[b]>l[b]&&!t.escapeWithReference&&(C=Math.min(h[x],l[b]-(b==="right"?h.width:h.height))),bc({},x,C)}};return d.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=so({},h,m[b](g))}),e.offsets.popper=h,e}function vle(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,u=["bottom","top"].indexOf(n)!==-1,l=u?"left":"top",d=u?"width":"height",h={start:bc({},l,o[l]),end:bc({},l,o[l]+o[d]-s[d])};e.offsets.popper=so({},s,h[r])}return e}function yle(e){if(!XI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=zd(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 ble(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,s=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[s?"left":"top"]=o[n]-(u?i[s?"width":"height"]:0),e.placement=um(t),e.offsets.popper=tu(i),e}var $le={shift:{order:100,enabled:!0,fn:vle},offset:{order:200,enabled:!0,fn:mle,offset:0},preventOverflow:{order:300,enabled:!0,fn:gle,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:dle},arrow:{order:500,enabled:!0,fn:lle,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:fle,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:ble},hide:{order:800,enabled:!0,fn:yle},computeStyle:{order:850,enabled:!0,fn:ule,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ile,onLoad:ole,gpuAcceleration:void 0}},xle={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:$le},gd=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Wue(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Uue(this.update.bind(this)),this.options=so({},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(so({},e.Defaults.modifiers,i.modifiers)).forEach(function(s){r.options.modifiers[s]=so({},e.Defaults.modifiers[s]||{},i.modifiers?i.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return so({name:s},r.options.modifiers[s])}).sort(function(s,u){return s.order-u.order}),this.modifiers.forEach(function(s){s.enabled&&BI(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 Hue(e,[{key:"update",value:function(){return Xue.call(this)}},{key:"destroy",value:function(){return Jue.call(this)}},{key:"enableEventListeners",value:function(){return ele.call(this)}},{key:"disableEventListeners",value:function(){return nle.call(this)}}]),e}();gd.Utils=(typeof window<"u"?window:global).PopperUtils;gd.placements=JI;gd.Defaults=xle;var wle=["innerHTML","ownerDocument","style","attributes","nodeValue"],Cle=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Sle=["bigint","boolean","null","number","string","symbol","undefined"];function cg(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Ele(t))return t}function jo(e){return function(t){return cg(t)===e}}function Ele(e){return Cle.includes(e)}function Bc(e){return function(t){return typeof t===e}}function Dle(e){return Sle.includes(e)}function qe(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(qe.array(e))return"Array";if(qe.plainFunction(e))return"Function";var t=cg(e);return t||"Object"}qe.array=Array.isArray;qe.arrayOf=function(e,t){return!qe.array(e)&&!qe.function(t)?!1:e.every(function(n){return t(n)})};qe.asyncGeneratorFunction=function(e){return cg(e)==="AsyncGeneratorFunction"};qe.asyncFunction=jo("AsyncFunction");qe.bigint=Bc("bigint");qe.boolean=function(e){return e===!0||e===!1};qe.date=jo("Date");qe.defined=function(e){return!qe.undefined(e)};qe.domElement=function(e){return qe.object(e)&&!qe.plainObject(e)&&e.nodeType===1&&qe.string(e.nodeName)&&wle.every(function(t){return t in e})};qe.empty=function(e){return qe.string(e)&&e.length===0||qe.array(e)&&e.length===0||qe.object(e)&&!qe.map(e)&&!qe.set(e)&&Object.keys(e).length===0||qe.set(e)&&e.size===0||qe.map(e)&&e.size===0};qe.error=jo("Error");qe.function=Bc("function");qe.generator=function(e){return qe.iterable(e)&&qe.function(e.next)&&qe.function(e.throw)};qe.generatorFunction=jo("GeneratorFunction");qe.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};qe.iterable=function(e){return!qe.nullOrUndefined(e)&&qe.function(e[Symbol.iterator])};qe.map=jo("Map");qe.nan=function(e){return Number.isNaN(e)};qe.null=function(e){return e===null};qe.nullOrUndefined=function(e){return qe.null(e)||qe.undefined(e)};qe.number=function(e){return Bc("number")(e)&&!qe.nan(e)};qe.numericString=function(e){return qe.string(e)&&e.length>0&&!Number.isNaN(Number(e))};qe.object=function(e){return!qe.nullOrUndefined(e)&&(qe.function(e)||typeof e=="object")};qe.oneOf=function(e,t){return qe.array(e)?e.indexOf(t)>-1:!1};qe.plainFunction=jo("Function");qe.plainObject=function(e){if(cg(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};qe.primitive=function(e){return qe.null(e)||Dle(typeof e)};qe.promise=jo("Promise");qe.propertyOf=function(e,t,n){if(!qe.object(e)||!t)return!1;var r=e[t];return qe.function(n)?n(r):qe.defined(r)};qe.regexp=jo("RegExp");qe.set=jo("Set");qe.string=Bc("string");qe.symbol=Bc("symbol");qe.undefined=Bc("undefined");qe.weakMap=jo("WeakMap");qe.weakSet=jo("WeakSet");function QI(e){return function(t){return typeof t===e}}var Ale=QI("function"),Tle=function(e){return e===null},IP=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},LP=function(e){return!Ple(e)&&!Tle(e)&&(Ale(e)||typeof e=="object")},Ple=QI("undefined"),p4=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 _le(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!bi(e[r],t[r]))return!1;return!0}function Rle(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 Mle(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var s=p4(e.entries()),u=s.next();!u.done;u=s.next()){var l=u.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var d=p4(e.entries()),h=d.next();!h.done;h=d.next()){var l=h.value;if(!bi(l[1],t.get(l[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function Fle(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=p4(e.entries()),o=i.next();!o.done;o=i.next()){var s=o.value;if(!t.has(s[0]))return!1}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function bi(e,t){if(e===t)return!0;if(e&&LP(e)&&t&&LP(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return _le(e,t);if(e instanceof Map&&t instanceof Map)return Mle(e,t);if(e instanceof Set&&t instanceof Set)return Fle(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Rle(e,t);if(IP(e)&&IP(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)&&!bi(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function kle(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return qe.string(n)||qe.array(n)||qe.plainObject(n)})}function Ole(e,t,n){return e9(e,t)?[e,t].every(qe.array)?!e.some(KP(n))&&t.some(KP(n)):[e,t].every(qe.plainObject)?!Object.entries(e).some(jP(n))&&Object.entries(t).some(jP(n)):t===n:!1}function BP(e,t,n){var r=n.actual,i=n.key,o=n.previous,s=n.type,u=ps(e,i),l=ps(t,i),d=[u,l].every(qe.number)&&(s==="increased"?u<l:u>l);return qe.undefined(r)||(d=d&&l===r),qe.undefined(o)||(d=d&&u===o),d}function VP(e,t,n){var r=n.key,i=n.type,o=n.value,s=ps(e,r),u=ps(t,r),l=i==="added"?s:u,d=i==="added"?u:s;if(!qe.nullOrUndefined(o)){if(qe.defined(l)){if(qe.array(l)||qe.plainObject(l))return Ole(l,d,o)}else return bi(d,o);return!1}return[s,u].every(qe.array)?!d.every(G$(l)):[s,u].every(qe.plainObject)?Ile(Object.keys(l),Object.keys(d)):![s,u].every(function(h){return qe.primitive(h)&&qe.defined(h)})&&(i==="added"?!qe.defined(s)&&qe.defined(u):qe.defined(s)&&!qe.defined(u))}function NP(e,t,n){var r=n===void 0?{}:n,i=r.key,o=ps(e,i),s=ps(t,i);if(!e9(o,s))throw new TypeError("Inputs have different types");if(!kle(o,s))throw new TypeError("Inputs don't have length");return[o,s].every(qe.plainObject)&&(o=Object.keys(o),s=Object.keys(s)),[o,s]}function jP(e){return function(t){var n=t[0],r=t[1];return qe.array(e)?bi(e,r)||e.some(function(i){return bi(i,r)||qe.array(r)&&G$(r)(i)}):qe.plainObject(e)&&e[n]?!!e[n]&&bi(e[n],r):bi(e,r)}}function Ile(e,t){return t.some(function(n){return!e.includes(n)})}function KP(e){return function(t){return qe.array(e)?e.some(function(n){return bi(n,t)||qe.array(t)&&G$(t)(n)}):bi(e,t)}}function gf(e,t){return qe.array(e)?e.some(function(n){return bi(n,t)}):bi(e,t)}function G$(e){return function(t){return e.some(function(n){return bi(n,t)})}}function e9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(qe.array)||e.every(qe.number)||e.every(qe.plainObject)||e.every(qe.string)}function ps(e,t){if(qe.plainObject(e)||qe.array(e)){if(qe.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return qe.number(t)?e[t]:e}return e}function Lle(e,t){if([e,t].some(qe.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return qe.plainObject(m)||qe.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return VP(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var x=ps(e,m),C=ps(t,m),A=qe.defined(g),S=qe.defined(b);if(A||S){var w=S?gf(b,x):!gf(g,x),D=gf(g,C);return w&&D}return[x,C].every(qe.array)||[x,C].every(qe.plainObject)?!bi(x,C):x!==C}catch{return!1}},i=function(m,g,b){if(!qe.defined(m))return!1;try{var x=ps(e,m),C=ps(t,m),A=qe.defined(b);return gf(g,x)&&(A?gf(b,C):!A)}catch{return!1}},o=function(m,g){return qe.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},s=function(m,g,b){if(!qe.defined(m))return!1;try{return BP(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},u=function(m){try{var g=NP(e,t,{key:m}),b=g[0],x=g[1];return!!b.length&&!x.length}catch{return!1}},l=function(m){try{var g=NP(e,t,{key:m}),b=g[0],x=g[1];return!b.length&&!!x.length}catch{return!1}},d=function(m,g,b){if(!qe.defined(m))return!1;try{return BP(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return VP(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:s,emptied:u,filled:l,increased:d,removed:h}}function UP(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 Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UP(Object(n),!0).forEach(function(r){zr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ble(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,n9(r.key),r)}}function Wd(e,t,n){return t&&Ble(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zr(e,t,n){return t=n9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hd(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&&m4(e,t)}function lm(e){return lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lm(e)}function m4(e,t){return m4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},m4(e,t)}function Vle(){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 Nle(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 t9(e,t){if(e==null)return{};var n=Nle(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 Zs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jle(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 Zs(e)}function Gd(e){var t=Vle();return function(){var r=lm(e),i;if(t){var o=lm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return jle(this,i)}}function Kle(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n9(e){var t=Kle(e,"string");return typeof t=="symbol"?t:String(t)}var Ule={flip:{padding:20},preventOverflow:{padding:10}},zle="The typeValidator argument must be a function with the signature function(props, propName, componentName).",qle="The error message is optional, but must be a string if provided.";function Wle(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Hle(e,t){return Object.hasOwnProperty.call(e,t)}function Gle(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Yle(e,t){if(typeof e!="function")throw new TypeError(zle);if(t)throw new TypeError(qle)}function zP(e,t,n){return Yle(e,n),function(r,i,o){for(var s=arguments.length,u=new Array(s>3?s-3:0),l=3;l<s;l++)u[l-3]=arguments[l];return Wle(t,r,i,o)?Hle(r,i)?e.apply(void 0,[r,i,o].concat(u)):Gle(r,i,o):e.apply(void 0,[r,i,o].concat(u))}}var un={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},vf=Ha.createPortal!==void 0;function ss(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function F1(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Gh(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,u=i?console.warn||console.error:console.log;s&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){qe.plainObject(l)&&l.key?u.apply(console,[l.key,l.value]):u.apply(console,[l])}):u.apply(console,[n]),console.groupEnd())}function Zle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Xle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Jle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(s){n(s),Xle(e,t,i)},Zle(e,t,i,r)}function qP(){}var r9=function(e){Hd(n,e);var t=Gd(n);function n(){return qd(this,n),t.apply(this,arguments)}return Wd(n,[{key:"componentDidMount",value:function(){ss()&&(this.node||this.appendNode(),vf||this.renderPortal())}},{key:"componentDidUpdate",value:function(){ss()&&(vf||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!ss()||!this.node||(vf||Ha.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(!ss())return null;var i=this.props,o=i.children,s=i.setRef;if(this.node||this.appendNode(),vf)return Ha.createPortal(o,this.node);var u=Ha.unstable_renderSubtreeIntoContainer(this,o.length>1?_.createElement("div",null,o):o[0],this.node);return s(u),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,s=i.placement,u=i.target;return o?this.renderPortal():u||s==="center"?this.renderPortal():null}},{key:"render",value:function(){return vf?this.renderReact16():null}}]),n}(_.Component);zr(r9,"propTypes",{children:at.oneOfType([at.element,at.array]),hasChildren:at.bool,id:at.oneOfType([at.string,at.number]),placement:at.string,setRef:at.func.isRequired,target:at.oneOfType([at.object,at.string]),zIndex:at.number});var i9=function(e){Hd(n,e);var t=Gd(n);function n(){return qd(this,n),t.apply(this,arguments)}return Wd(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,s=i.styles,u=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=u):o.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=u):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,u=i.styles,l=u.arrow,d=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,x=l.spread,C={display:h,position:b},A,S=x,w=m;return o.startsWith("top")?(A="0,0 ".concat(S/2,",").concat(w," ").concat(S,",0"),C.bottom=0,C.marginLeft=g,C.marginRight=g):o.startsWith("bottom")?(A="".concat(S,",").concat(w," ").concat(S/2,",0 0,").concat(w),C.top=0,C.marginLeft=g,C.marginRight=g):o.startsWith("left")?(w=x,S=m,A="0,0 ".concat(S,",").concat(w/2," 0,").concat(w),C.right=0,C.marginTop=g,C.marginBottom=g):o.startsWith("right")&&(w=x,S=m,A="".concat(S,",").concat(w," ").concat(S,",0 0,").concat(w/2),C.left=0,C.marginTop=g,C.marginBottom=g),_.createElement("div",{className:"__floater__arrow",style:this.parentStyle},_.createElement("span",{ref:s,style:C},_.createElement("svg",{width:S,height:w,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},_.createElement("polygon",{points:A,fill:d}))))}}]),n}(_.Component);zr(i9,"propTypes",{placement:at.string.isRequired,setArrowRef:at.func.isRequired,styles:at.object.isRequired});var Qle=["color","height","width"];function o9(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,s=t9(n,Qle);return _.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},_.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"},_.createElement("g",null,_.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}))))}o9.propTypes={handleClick:at.func.isRequired,styles:at.object.isRequired};function s9(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,s=e.showCloseButton,u=e.title,l=e.styles,d={content:_.isValidElement(t)?t:_.createElement("div",{className:"__floater__content",style:l.content},t)};return u&&(d.title=_.isValidElement(u)?u:_.createElement("div",{className:"__floater__title",style:l.title},u)),n&&(d.footer=_.isValidElement(n)?n:_.createElement("div",{className:"__floater__footer",style:l.footer},n)),(s||o)&&!qe.boolean(i)&&(d.close=_.createElement(o9,{styles:l.close,handleClick:r})),_.createElement("div",{className:"__floater__container",style:l.container},d.close,d.title,d.content,d.footer)}s9.propTypes={content:at.node.isRequired,footer:at.node,handleClick:at.func.isRequired,open:at.bool,positionWrapper:at.bool.isRequired,showCloseButton:at.bool.isRequired,styles:at.object.isRequired,title:at.node};var a9=function(e){Hd(n,e);var t=Gd(n);function n(){return qd(this,n),t.apply(this,arguments)}return Wd(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,s=i.component,u=i.placement,l=i.hideArrow,d=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,x=h.floaterClosing,C=h.floaterOpening,A=h.floaterWithAnimation,S=h.floaterWithComponent,w={};return l||(u.startsWith("top")?w.padding="0 0 ".concat(m,"px"):u.startsWith("bottom")?w.padding="".concat(m,"px 0 0"):u.startsWith("left")?w.padding="0 ".concat(m,"px 0 0"):u.startsWith("right")&&(w.padding="0 0 0 ".concat(m,"px"))),[un.OPENING,un.OPEN].indexOf(d)!==-1&&(w=Bn(Bn({},w),C)),d===un.CLOSING&&(w=Bn(Bn({},w),x)),d===un.OPEN&&!o&&(w=Bn(Bn({},w),A)),u==="center"&&(w=Bn(Bn({},w),b)),s&&(w=Bn(Bn({},w),S)),Bn(Bn({},g),w)}},{key:"render",value:function(){var i=this.props,o=i.component,s=i.handleClick,u=i.hideArrow,l=i.setFloaterRef,d=i.status,h={},m=["__floater"];return o?_.isValidElement(o)?h.content=_.cloneElement(o,{closeFn:s}):h.content=o({closeFn:s}):h.content=_.createElement(s9,this.props),d===un.OPEN&&m.push("__floater__open"),u||(h.arrow=_.createElement(i9,this.props)),_.createElement("div",{ref:l,className:m.join(" "),style:this.style},_.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(_.Component);zr(a9,"propTypes",{component:at.oneOfType([at.func,at.element]),content:at.node,disableAnimation:at.bool.isRequired,footer:at.node,handleClick:at.func.isRequired,hideArrow:at.bool.isRequired,open:at.bool,placement:at.string.isRequired,positionWrapper:at.bool.isRequired,setArrowRef:at.func.isRequired,setFloaterRef:at.func.isRequired,showCloseButton:at.bool,status:at.string.isRequired,styles:at.object.isRequired,title:at.node});var u9=function(e){Hd(n,e);var t=Gd(n);function n(){return qd(this,n),t.apply(this,arguments)}return Wd(n,[{key:"render",value:function(){var i=this.props,o=i.children,s=i.handleClick,u=i.handleMouseEnter,l=i.handleMouseLeave,d=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(o)if(_.Children.count(o)===1)if(!_.isValidElement(o))b=_.createElement("span",null,o);else{var x=qe.function(o.type)?"innerRef":"ref";b=_.cloneElement(_.Children.only(o),zr({},x,d))}else b=o;return b?_.createElement("span",{ref:h,style:Bn(Bn({},g),m),onClick:s,onMouseEnter:u,onMouseLeave:l},b):null}}]),n}(_.Component);zr(u9,"propTypes",{children:at.node,handleClick:at.func.isRequired,handleMouseEnter:at.func.isRequired,handleMouseLeave:at.func.isRequired,setChildRef:at.func.isRequired,setWrapperRef:at.func.isRequired,style:at.object,styles:at.object.isRequired});var ece={zIndex:100};function tce(e){var t=Fo(ece,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 nce=["arrow","flip","offset"],rce=["position","top","right","bottom","left"],Y$=function(e){Hd(n,e);var t=Gd(n);function n(r){var i;return qd(this,n),i=t.call(this,r),zr(Zs(i),"setArrowRef",function(o){i.arrowRef=o}),zr(Zs(i),"setChildRef",function(o){i.childRef=o}),zr(Zs(i),"setFloaterRef",function(o){i.floaterRef=o}),zr(Zs(i),"setWrapperRef",function(o){i.wrapperRef=o}),zr(Zs(i),"handleTransitionEnd",function(){var o=i.state.status,s=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===un.OPENING?un.OPEN:un.IDLE},function(){var u=i.state.status;s(u===un.OPEN?"open":"close",i.props)})}),zr(Zs(i),"handleClick",function(){var o=i.props,s=o.event,u=o.open;if(!qe.boolean(u)){var l=i.state,d=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&d)&&(Gh({title:"click",data:[{event:s,status:h===un.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),zr(Zs(i),"handleMouseEnter",function(){var o=i.props,s=o.event,u=o.open;if(!(qe.boolean(u)||F1())){var l=i.state.status;i.event==="hover"&&l===un.IDLE&&(Gh({title:"mouseEnter",data:[{key:"originalEvent",value:s}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),zr(Zs(i),"handleMouseLeave",function(){var o=i.props,s=o.event,u=o.eventDelay,l=o.open;if(!(qe.boolean(l)||F1())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(Gh({title:"mouseLeave",data:[{key:"originalEvent",value:s}],debug:i.debug}),u?[un.OPENING,un.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(un.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:un.INIT,statusWrapper:un.INIT},i._isMounted=!1,i.hasMounted=!1,ss()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Wd(n,[{key:"componentDidMount",value:function(){if(ss()){var i=this.state.positionWrapper,o=this.props,s=o.children,u=o.open,l=o.target;this._isMounted=!0,Gh({title:"init",data:{hasChildren:!!s,hasTarget:!!l,isControlled:qe.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!s&&l&&qe.boolean(u)}}},{key:"componentDidUpdate",value:function(i,o){if(ss()){var s=this.props,u=s.autoOpen,l=s.open,d=s.target,h=s.wrapperOptions,m=Lle(o,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var x;qe.boolean(l)&&(x=l?un.OPENING:un.CLOSING),this.toggle(x)}(i.wrapperOptions.position!==h.position||i.target!==d)&&this.changeWrapperPosition(this.props),b("status",un.IDLE)&&l?this.toggle(un.OPEN):g("status",un.INIT,un.IDLE)&&u&&this.toggle(un.OPEN),this.popper&&b("status",un.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",un.OPENING)||b("status",un.CLOSING))&&Jle(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){ss()&&(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,u=this.props,l=u.disableFlip,d=u.getPopper,h=u.hideArrow,m=u.offset,g=u.placement,b=u.wrapperOptions,x=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:un.IDLE});else if(o&&this.floaterRef){var C=this.options,A=C.arrow,S=C.flip,w=C.offset,D=t9(C,nce);new gd(o,this.floaterRef,{placement:g,modifiers:Bn({arrow:Bn({enabled:!h,element:this.arrowRef},A),flip:Bn({enabled:!l,behavior:x},S),offset:Bn({offset:"0, ".concat(m,"px")},w)},D),onCreate:function(O){var H;if(i.popper=O,!((H=i.floaterRef)!==null&&H!==void 0&&H.isConnected)){i.setState({needsUpdate:!0});return}d(O,"floater"),i._isMounted&&i.setState({currentPlacement:O.placement,status:un.IDLE}),g!==O.placement&&setTimeout(function(){O.instance.update()},1)},onUpdate:function(O){i.popper=O;var H=i.state.currentPlacement;i._isMounted&&O.placement!==H&&i.setState({currentPlacement:O.placement})}})}if(s){var k=qe.undefined(b.offset)?0:b.offset;new gd(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(k,"px")},flip:{enabled:!1}},onCreate:function(O){i.wrapperPopper=O,i._isMounted&&i.setState({statusWrapper:un.IDLE}),d(O,"wrapper"),g!==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===un.OPEN?un.CLOSING:un.OPENING;qe.undefined(i)||(s=i),this.setState({status:s})}},{key:"debug",get:function(){var i=this.props.debug;return i||ss()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,s=i.event;return s==="hover"&&F1()&&!o?"click":s}},{key:"options",get:function(){var i=this.props.options;return Fo(Ule,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,s=o.status,u=o.positionWrapper,l=o.statusWrapper,d=this.props.styles,h=Fo(tce(d),d);if(u){var m;[un.IDLE].indexOf(s)===-1||[un.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Bn(Bn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Bn(Bn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},u||(rce.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Bn(Bn({},h.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return h}},{key:"target",get:function(){if(!ss())return null;var i=this.props.target;return i?qe.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,s=i.positionWrapper,u=i.status,l=this.props,d=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,x=l.hideArrow,C=l.id,A=l.open,S=l.showCloseButton,w=l.style,D=l.target,k=l.title,R=_.createElement(u9,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:w,styles:this.styles.wrapper},d),O={};return s?O.wrapperInPortal=R:O.wrapperAsChildren=R,_.createElement("span",null,_.createElement(r9,{hasChildren:!!d,id:C,placement:o,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},_.createElement(a9,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:x||o==="center",open:A,placement:o,positionWrapper:s,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:S,status:u,styles:this.styles,title:k}),O.wrapperInPortal),O.wrapperAsChildren)}}]),n}(_.Component);zr(Y$,"propTypes",{autoOpen:at.bool,callback:at.func,children:at.node,component:zP(at.oneOfType([at.func,at.element]),function(e){return!e.content}),content:zP(at.node,function(e){return!e.component}),debug:at.bool,disableAnimation:at.bool,disableFlip:at.bool,disableHoverToClick:at.bool,event:at.oneOf(["hover","click"]),eventDelay:at.number,footer:at.node,getPopper:at.func,hideArrow:at.bool,id:at.oneOfType([at.string,at.number]),offset:at.number,open:at.bool,options:at.object,placement:at.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:at.bool,style:at.object,styles:at.object,target:at.oneOfType([at.object,at.string]),title:at.node,wrapperOptions:at.shape({offset:at.number,placement:at.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:at.bool})});zr(Y$,"defaultProps",{autoOpen:!1,callback:qP,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:qP,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var ice=Object.defineProperty,oce=(e,t,n)=>t in e?ice(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$t=(e,t,n)=>oce(e,typeof t!="symbol"?t+"":t,n),fn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ro={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"},Nt={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Jt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function Ka(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function l9(e){return e?e.getBoundingClientRect():null}function sce(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 ta(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 ace(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function vd(e,t,n){if(!e)return Vu();const r=OI(e);if(r){if(r.isSameNode(Vu()))return n?document:Vu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Vu()}return r}function Yd(e,t){if(!e)return!1;const n=vd(e,t);return n?!n.isSameNode(Vu()):!1}function uce(e){return e.offsetParent!==document.body}function $c(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=ace(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?$c(e.parentNode,t):!1}function lce(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 cce(e,t,n){var r,i,o;const s=l9(e),u=vd(e,n),l=Yd(e,n),d=$c(e);let h=0,m=(r=s==null?void 0:s.top)!=null?r:0;if(l&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(o=u==null?void 0:u.scrollTop)!=null?o:0;m=g-b}else u instanceof HTMLElement&&(h=u.scrollTop,!l&&!$c(e)&&(m+=h),u.isSameNode(Vu())||(m+=Vu().scrollTop));return Math.floor(m-t)}function fce(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=OI(e))!=null?r:{};let s=e.getBoundingClientRect().top+o;i&&(Yd(e,n)||uce(e))&&(s-=i);const u=Math.floor(s-t);return u<0?0:u}function Vu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function dce(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:s}=r,u=e>s?e-s:s-e;Cue.top(r,e,{duration:u<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?o(l):i())})}var yf=Ha.createPortal!==void 0;function c9(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 vp(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function as(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=bP(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(_.isValidElement(e)&&!Object.values(e.props).length&&vp(e.type)==="function"){const s=e.type({});o=as(s,t)}else o=bP(n);return o}function hce(e,t){return!yt.plainObject(e)||!yt.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function pce(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,s,u)=>o+o+s+s+u+u),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function WP(e){return e.disableBeacon||e.placement==="center"}function HP(){return!["chrome","safari","firefox","opera"].includes(c9())}function nu({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=>{yt.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 mce(e){return Object.keys(e)}function f9(e,...t){if(!yt.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 gce(e,...t){if(!yt.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 g4(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(vp(e)==="string")return r(e);if(!_.isValidElement(e))return e;const{children:i}=e.props;if(vp(i)==="string"&&i.includes("{step}"))return _.cloneElement(e,{children:r(i)});if(Array.isArray(i))return _.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):g4(o,t,n))});if(vp(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return g4(o,t,n)}return e}function vce(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:s}=e;return!o.disableScrolling&&(!t||i||n===Nt.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!$c(s))&&r!==n&&[Nt.BEACON,Nt.TOOLTIP].includes(n)}var yce={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},d9={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},bce={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:d9,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},$ce={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:[]},xce={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},bf={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},GP={borderRadius:4,position:"absolute"};function wce(e,t){var n,r,i,o,s;const{floaterProps:u,styles:l}=e,d=Fo((n=t.floaterProps)!=null?n:{},u??{}),h=Fo(l??{},(r=t.styles)!=null?r:{}),m=Fo(xce,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const x={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},C={beacon:{...bf,display:g?"none":"inline-block",height:m.beaconSize,position:"relative",width:m.beaconSize,zIndex:m.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:m.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${pce(m.primaryColor).join(",")}, 0.2)`,border:`2px solid ${m.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:m.backgroundColor,borderRadius:5,boxSizing:"border-box",color:m.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:b},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...bf,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...bf,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...bf,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...bf,color:m.textColor,fontSize:14},overlay:{...x,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...x},overlayLegacyCenter:{...x,backgroundColor:m.overlayColor},spotlight:{...GP,backgroundColor:"gray"},spotlightLegacy:{...GP,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(s=(o=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?s:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return Fo(C,h)}function Cce(e){return gce(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Tl(e,t){var n,r,i,o,s,u;const l=t??{},d=Fo.all([bce,Cce(e),l],{isMergeableObject:yt.plainObject}),h=wce(e,d),m=Yd(ta(d.target),d.disableScrollParentFix),g=Fo.all([yce,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=Fo((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(s=(o=e.spotlightPadding)!=null?o:d.spotlightPadding)!=null?s:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:Fo.all([d9,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:g,styles:f9(h,"floaterStyles")}}function h9(e,t=!1){return yt.plainObject(e)?e.target?!0:(nu({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(nu({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function YP(e,t=!1){return yt.array(e)?e.every(n=>h9(n,t)):(nu({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var p9={action:"init",controlled:!1,index:0,lifecycle:Nt.INIT,origin:null,size:0,status:Jt.IDLE},ZP=mce(f9(p9,"controlled","size")),Sce=class{constructor(e){$t(this,"beaconPopper"),$t(this,"tooltipPopper"),$t(this,"data",new Map),$t(this,"listener"),$t(this,"store",new Map),$t(this,"addListener",i=>{this.listener=i}),$t(this,"setSteps",i=>{const{size:o,status:s}=this.getState(),u={size:i.length,status:s};this.data.set("steps",i),s===Jt.WAITING&&!o&&i.length&&(u.status=Jt.RUNNING),this.setState(u)}),$t(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),$t(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),$t(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),$t(this,"close",(i=null)=>{const{index:o,status:s}=this.getState();s===Jt.RUNNING&&this.setState({...this.getNextState({action:fn.CLOSE,index:o+1,origin:i})})}),$t(this,"go",i=>{const{controlled:o,status:s}=this.getState();if(o||s!==Jt.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:fn.GO,index:i}),status:u?s:Jt.FINISHED})}),$t(this,"info",()=>this.getState()),$t(this,"next",()=>{const{index:i,status:o}=this.getState();o===Jt.RUNNING&&this.setState(this.getNextState({action:fn.NEXT,index:i+1}))}),$t(this,"open",()=>{const{status:i}=this.getState();i===Jt.RUNNING&&this.setState({...this.getNextState({action:fn.UPDATE,lifecycle:Nt.TOOLTIP})})}),$t(this,"prev",()=>{const{index:i,status:o}=this.getState();o===Jt.RUNNING&&this.setState({...this.getNextState({action:fn.PREV,index:i-1})})}),$t(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:fn.RESET,index:0}),status:i?Jt.RUNNING:Jt.READY})}),$t(this,"skip",()=>{const{status:i}=this.getState();i===Jt.RUNNING&&this.setState({action:fn.SKIP,lifecycle:Nt.INIT,status:Jt.SKIPPED})}),$t(this,"start",i=>{const{index:o,size:s}=this.getState();this.setState({...this.getNextState({action:fn.START,index:yt.number(i)?i:o},!0),status:s?Jt.RUNNING:Jt.WAITING})}),$t(this,"stop",(i=!1)=>{const{index:o,status:s}=this.getState();[Jt.FINISHED,Jt.SKIPPED].includes(s)||this.setState({...this.getNextState({action:fn.STOP,index:o+(i?1:0)}),status:Jt.PAUSED})}),$t(this,"update",i=>{var o,s;if(!hce(i,ZP))throw new Error(`State is not valid. Valid keys: ${ZP.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:fn.UPDATE,origin:(s=i.origin)!=null?s:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:fn.INIT,controlled:yt.number(n),continuous:t,index:yt.number(n)?n:0,lifecycle:Nt.INIT,origin:null,status:r.length?Jt.READY:Jt.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")||""}:{...p9}}getNextState(e,t=!1){var n,r,i,o,s;const{action:u,controlled:l,index:d,size:h,status:m}=this.getState(),g=yt.number(e.index)?e.index:d,b=l&&!t?d:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:u,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:Nt.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:h,status:b===h?Jt.FINISHED:(s=e.status)!=null?s:m}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:s=null,size:u,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",u),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 Ece(e){return new Sce(e)}function Dce({styles:e}){return et.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var Ace=Dce,Tce=class extends et.Component{constructor(){super(...arguments),$t(this,"isActive",!1),$t(this,"resizeTimeout"),$t(this,"scrollTimeout"),$t(this,"scrollParent"),$t(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),$t(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Nt.INIT,Nt.BEACON,Nt.COMPLETE,Nt.ERROR];return t||(e?r.includes(n):n!==Nt.TOOLTIP)}),$t(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:s}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,d=u>=o&&u<=o+n,m=l>=r&&l<=r+s&&d;m!==t&&this.updateState({mouseOverSpotlight:m})}),$t(this,"handleScroll",()=>{const{target:e}=this.props,t=ta(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 $c(t,"sticky")&&this.updateState({})}),$t(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=ta(r);this.scrollParent=vd(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&Yd(i,!0)&&nu({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}=sm(e,this.props);if(s("target")||s("disableScrollParentFix")){const u=ta(o);this.scrollParent=vd(u??document.body,n,!0)}s("lifecycle",Nt.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(i&&r===Nt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Nt.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 HP()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:sce(),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:u,target:l}=this.props,d=ta(l),h=l9(d),m=$c(d),g=cce(d,s,i);return{...HP()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+s*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-s),opacity:r?1:0,pointerEvents:o?"none":"auto",position:m?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=h==null?void 0:h.width)!=null?n:0)+s*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let s=n!=="center"&&e&&et.createElement(Ace,{styles:o});if(c9()==="safari"){const{mixBlendMode:u,zIndex:l,...d}=i;s=et.createElement("div",{style:{...d}},s),delete i.backgroundColor}return et.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},s)}},Pce=class extends et.Component{constructor(){super(...arguments),$t(this,"node",null)}componentDidMount(){const{id:e}=this.props;Ka()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),yf||this.renderReact15())}componentDidUpdate(){Ka()&&(yf||this.renderReact15())}componentWillUnmount(){!Ka()||!this.node||(yf||Yh.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Ka())return;const{children:e}=this.props;this.node&&Yh.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Ka()||!yf)return null;const{children:e}=this.props;return this.node?Yh.createPortal(e,this.node):null}render(){return yf?this.renderReact16():null}},_ce=class{constructor(e,t){if($t(this,"element"),$t(this,"options"),$t(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),$t(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)}),$t(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),$t(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),$t(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()}),$t(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"}),$t(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}),$t(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),$t(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),$t(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()}},Rce=class extends et.Component{constructor(e){if(super(e),$t(this,"beacon",null),$t(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(`
198
- @keyframes joyride-beacon-inner {
199
- 20% {
200
- opacity: 0.9;
201
- }
202
-
203
- 90% {
204
- opacity: 0.7;
205
- }
206
- }
207
-
208
- @keyframes joyride-beacon-outer {
209
- 0% {
210
- transform: scale(1);
211
- }
212
-
213
- 45% {
214
- opacity: 0.7;
215
- transform: scale(0.75);
216
- }
217
-
218
- 100% {
219
- opacity: 0.9;
220
- transform: scale(1);
221
- }
222
- }
223
- `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(yt.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{yt.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:u,styles:l}=this.props,d=as(i.open),h={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=et.createElement(g,{continuous:t,index:n,isLastStep:r,size:s,step:u,...h})}else m=et.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},et.createElement("span",{style:l.beaconInner}),et.createElement("span",{style:l.beaconOuter}));return m}};function Mce({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return _.createElement("button",{style:o,type:"button",...t},_.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"},_.createElement("g",null,_.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 Fce=Mce;function kce(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:s,step:u,tooltipProps:l}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:x,title:C}=u,A={};return A.primary=et.createElement("button",{"data-test-id":"button-primary",style:x.buttonNext,type:"button",...o}),b&&!i&&(A.skip=et.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:x.buttonSkip,type:"button",...s})),!h&&r>0&&(A.back=et.createElement("button",{"data-test-id":"button-back",style:x.buttonBack,type:"button",...t})),A.close=!m&&et.createElement(Fce,{"data-test-id":"button-close",styles:x.buttonClose,...n}),et.createElement("div",{key:"JoyrideTooltip","aria-label":as(C??d),className:"react-joyride__tooltip",style:x.tooltip,...l},et.createElement("div",{style:x.tooltipContainer},C&&et.createElement("h1",{"aria-label":as(C),style:x.tooltipTitle},C),et.createElement("div",{style:x.tooltipContent},d)),!g&&et.createElement("div",{style:x.tooltipFooter},et.createElement("div",{style:x.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var Oce=kce,Ice=class extends et.Component{constructor(){super(...arguments),$t(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),$t(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),$t(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),$t(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),$t(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:s,close:u,last:l,next:d,nextLabelWithProgress:h,skip:m}=o.locale,g=as(s),b=as(u),x=as(l),C=as(d),A=as(m);let S=u,w=b;if(e){if(S=d,w=C,o.showProgress&&!n){const D=as(h,{step:t+1,steps:i});S=g4(h,t+1,i),w=D}n&&(S=l,w=x)}return{backProps:{"aria-label":g,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":w,children:S,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:w},skipProps:{"aria-label":A,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:A},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:s,tooltipComponent:u,...l}=o;let d;if(u){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=u;d=et.createElement(m,{...h})}else d=et.createElement(Oce,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},Lce=class extends et.Component{constructor(){super(...arguments),$t(this,"scope",null),$t(this,"tooltip",null),$t(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Nt.TOOLTIP})}),$t(this,"setTooltipRef",e=>{this.tooltip=e}),$t(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===Nt.INIT&&s.update({action:r,lifecycle:Nt.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),$t(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return et.createElement(Ice,{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;nu({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:u,index:l,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:x,changedFrom:C}=sm(e,this.props),A=u.info(),S=i&&n!==fn.CLOSE&&(l>0||n===fn.PREV),w=x("action")||x("index")||x("lifecycle")||x("status"),D=C("lifecycle",[Nt.TOOLTIP,Nt.INIT],Nt.INIT),k=x("action",[fn.NEXT,fn.PREV,fn.SKIP,fn.CLOSE]),R=o&&l===e.index;if(k&&(D||R)&&r({...A,index:e.index,lifecycle:Nt.COMPLETE,step:e.step,type:ro.STEP_AFTER}),g.placement==="center"&&m===Jt.RUNNING&&x("index")&&n!==fn.START&&d===Nt.INIT&&b.update({lifecycle:Nt.READY}),w){const O=ta(g.target),H=!!O;H&&lce(O)?(C("status",Jt.READY,Jt.RUNNING)||C("lifecycle",Nt.INIT,Nt.READY))&&r({...A,step:g,type:ro.STEP_BEFORE}):(console.warn(H?"Target not visible":"Target not mounted",g),r({...A,type:ro.TARGET_NOT_FOUND,step:g}),o||b.update({index:l+(n===fn.PREV?-1:1)}))}C("lifecycle",Nt.INIT,Nt.READY)&&b.update({lifecycle:WP(g)||S?Nt.TOOLTIP:Nt.BEACON}),x("index")&&nu({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:s}),x("lifecycle",Nt.BEACON)&&r({...A,step:g,type:ro.BEACON}),x("lifecycle",Nt.TOOLTIP)&&(r({...A,step:g,type:ro.TOOLTIP}),h&&this.tooltip&&(this.scope=new _ce(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),C("lifecycle",[Nt.TOOLTIP,Nt.INIT],Nt.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return WP(t)||e===Nt.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:s}=this.props,u=ta(s.target);return!h9(s)||!yt.domElement(u)?null:et.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},et.createElement(Y$,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},et.createElement(Rce,{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})))}},m9=class extends et.Component{constructor(e){super(e),$t(this,"helpers"),$t(this,"store"),$t(this,"callback",s=>{const{callback:u}=this.props;yt.function(u)&&u(s)}),$t(this,"handleKeyboard",s=>{const{index:u,lifecycle:l}=this.state,{steps:d}=this.props,h=d[u];l===Nt.TOOLTIP&&s.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),$t(this,"handleClickOverlay",()=>{const{index:s}=this.state,{steps:u}=this.props;Tl(this.props,u[s]).disableOverlayClose||this.helpers.close("overlay")}),$t(this,"syncState",s=>{this.setState(s)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Ece({...e,controlled:r&&yt.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;nu({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(!Ka())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;YP(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Ka())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:s,run:u,stepIndex:l,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:x,stop:C,update:A}=this.store,{changed:S}=sm(e,this.props),{changed:w,changedFrom:D}=sm(t,this.state),k=Tl(this.props,d[i]),R=!ii(m,d),O=yt.number(l)&&S("stepIndex"),H=ta(k.target);if(R&&(YP(d,s)?b(d):console.warn("Steps are not valid",d)),S("run")&&(u?x(l):C()),O){let ae=yt.number(h)&&h<l?fn.NEXT:fn.PREV;n===fn.STOP&&(ae=fn.START),[Jt.FINISHED,Jt.SKIPPED].includes(o)||A({action:n===fn.CLOSE?fn.CLOSE:ae,index:l,lifecycle:Nt.INIT})}!r&&o===Jt.RUNNING&&i===0&&!H&&(this.store.update({index:i+1}),this.callback({...this.state,type:ro.TARGET_NOT_FOUND,step:k}));const F={...this.state,index:i,step:k};if(w("action",[fn.NEXT,fn.PREV,fn.SKIP,fn.CLOSE])&&w("status",Jt.PAUSED)){const ae=Tl(this.props,d[t.index]);this.callback({...F,index:t.index,lifecycle:Nt.COMPLETE,step:ae,type:ro.STEP_AFTER})}if(w("status",[Jt.FINISHED,Jt.SKIPPED])){const ae=Tl(this.props,d[t.index]);r||this.callback({...F,index:t.index,lifecycle:Nt.COMPLETE,step:ae,type:ro.STEP_AFTER}),this.callback({...F,type:ro.TOUR_END,step:ae,index:t.index}),g()}else D("status",[Jt.IDLE,Jt.READY],Jt.RUNNING)?this.callback({...F,type:ro.TOUR_START}):(w("status")||w("action",fn.RESET))&&this.callback({...F,type:ro.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:u=20,scrollToFirstStep:l=!1,steps:d}=this.props,h=Tl(this.props,d[t]),m=ta(h.target),g=vce({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Jt.RUNNING&&g){const b=Yd(m,o),x=vd(m,o);let C=Math.floor(fce(m,u,o))||0;nu({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),S=this.store.getPopper("tooltip");if(n===Nt.BEACON&&A){const{offsets:w,placement:D}=A;!["bottom"].includes(D)&&!b&&(C=Math.floor(w.popper.top-u))}else if(n===Nt.TOOLTIP&&S){const{flipped:w,offsets:D,placement:k}=S;["top","right","left"].includes(k)&&!w&&!b?C=Math.floor(D.popper.top-u):C-=h.spotlightPadding}C=C>=0?C:0,r===Jt.RUNNING&&dce(C,{element:x,duration:s}).then(()=>{setTimeout(()=>{var w;(w=this.store.getPopper("tooltip"))==null||w.instance.update()},10)})}}render(){if(!Ka())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:s=!1,steps:u}=this.props,l=n===Jt.RUNNING,d={};if(l&&u[e]){const h=Tl(this.props,u[e]);d.step=et.createElement(Lce,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!h.disableScrolling&&(e!==0||s),step:h,store:this.store}),d.overlay=et.createElement(Pce,{id:"react-joyride-portal"},et.createElement(Tce,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return et.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};$t(m9,"defaultProps",$ce);var Bce=m9;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=jM;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=O_;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Ed;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=xq;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=yr;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=IH;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=VM;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Hr;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=VW;exports.$293f70390ea03370$export$497855f14858aa34=_H;exports.$32489daedd52963e$export$1315d136e6f7581=KH;exports.$337b884510726a0d$export$c6fdb837b070b4ff=pH;exports.$36a0ac60f04457c5$export$136073280381448e=PW;exports.$3c0fc76039f1c516$export$60e84778edff6d26=AF;exports.$40df3f8667284809$export$d55e7ee900f34e93=WH;exports.$46a4342aab3d8076$export$87e0539f600c24e5=DW;exports.$47b897dc8cdb026b$export$8d15029008292ae=UW;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=jW;exports.$6057a3d2a53a12fd$export$42df105a73306d51=BH;exports.$64244302c3013299$export$dd0bbc9b26defe37=sW;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=$W;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=qH;exports.$93c38a5e28be6249$export$e50a61c1de9f574=dG;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=EW;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=HH;exports.$a916eb452884faea$export$b7a616150fdb9f44=bW;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=QH;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=oG;exports.$bb77f239b46e8c72$export$3274cf84b703fff=f5;exports.$bcca50147b47f54d$export$56b2c08e277f365=KW;exports.$c132121280ec012d$export$50eacbbf140a3141=wH;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=SH;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=kH;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=AW;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=hG;exports.$f2f8a6077418541e$export$542a6fd13ac93354=fH;exports.$fae977aafc393c5c$export$588937bcd60ade55=Oq;exports.$fae977aafc393c5c$export$6b862160d295c8e=kq;exports.ACTIONS=fn;exports.AdvancedImage=tX;exports.Cloudinary=ZX;exports.Controller=MU;exports.EVENTS=ro;exports.FormProvider=PU;exports.LazyMotion=Oie;exports.Lottie=Tie;exports.M=_o;exports.R=rl;exports.ReorderGroup=cie;exports.ReorderItem=pie;exports.STATUS=Jt;exports._=DU;exports.autoUpdate=QK;exports.components_default=Bce;exports.dayjs=gG;exports.dayjs_minExports=TF;exports.domAnimation=oue;exports.dt=w2;exports.ee=RF;exports.flip=sU;exports.isNumber=Sie;exports.lazyload=CZ;exports.localizedFormat=yie;exports.lodashExports=U2;exports.lt=w4;exports.m=Toe;exports.mt=mK;exports.nt=dK;exports.o=xie;exports.offset=iU;exports.ot=hK;exports.placeholder=AZ;exports.prismExports=FQ;exports.q=o3;exports.shift=oU;exports.some=RQ;exports.useFloating=bU;exports.useFloating$1=B2;exports.useFocus=$U;exports.useForm=zU;exports.useFormContext=wm;exports.useHover=gU;exports.useInteractions=xU;exports.useRole=CU;exports.useWatch=Q2;