@fluidattacks/design 3.25.16 → 3.25.17

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 (164) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/alert/index.js +1 -1
  5. package/dist/components/avatar/index.js +1 -1
  6. package/dist/components/button/index.js +1 -1
  7. package/dist/components/card/card-header/index.js +1 -1
  8. package/dist/components/card/card-with-image/index.js +1 -1
  9. package/dist/components/card/card-with-input/index.js +1 -1
  10. package/dist/components/card/card-with-options/index.js +1 -1
  11. package/dist/components/card/card-with-selector/index.js +1 -1
  12. package/dist/components/card/card-with-switch/index.js +1 -1
  13. package/dist/components/card/index.js +1 -1
  14. package/dist/components/card-container/index.js +1 -1
  15. package/dist/components/carousel/index.js +1 -1
  16. package/dist/components/checkbox/index.js +1 -1
  17. package/dist/components/cloud-image/index.js +1 -1
  18. package/dist/components/code-snippet/index.js +1 -1
  19. package/dist/components/code-snippet/location-code/index.js +1 -1
  20. package/dist/components/colors/index.js +1 -1
  21. package/dist/components/conditions-dialog/index.js +1 -1
  22. package/dist/components/confirm-dialog/index.js +1 -1
  23. package/dist/components/container/index.js +1 -1
  24. package/dist/components/copy-button/index.js +1 -1
  25. package/dist/components/divider/index.js +1 -1
  26. package/dist/components/dropdown/index.js +1 -1
  27. package/dist/components/empty-state/empty-button/index.js +1 -1
  28. package/dist/components/empty-state/index.js +1 -1
  29. package/dist/components/file-preview/index.js +1 -1
  30. package/dist/components/form/index.js +1 -1
  31. package/dist/components/form/inner-form/index.js +1 -1
  32. package/dist/components/grid-container/index.js +1 -1
  33. package/dist/components/group-selector/index.js +1 -1
  34. package/dist/components/group-selector/option-container/index.js +1 -1
  35. package/dist/components/icon/index.js +1 -1
  36. package/dist/components/icon-button/index.js +1 -1
  37. package/dist/components/indicator-card/index.js +1 -1
  38. package/dist/components/info-sidebar/index.js +1 -1
  39. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  40. package/dist/components/inputs/fields/combobox/index.js +1 -1
  41. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  42. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  43. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  44. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  45. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  46. package/dist/components/inputs/fields/date/index.js +1 -1
  47. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  48. package/dist/components/inputs/fields/date-range/index.js +1 -1
  49. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  50. package/dist/components/inputs/fields/date-time/index.js +1 -1
  51. package/dist/components/inputs/fields/editable/index.js +1 -1
  52. package/dist/components/inputs/fields/input/index.js +1 -1
  53. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  54. package/dist/components/inputs/fields/input-array/index.js +1 -1
  55. package/dist/components/inputs/fields/input-file/index.js +1 -1
  56. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  57. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  58. package/dist/components/inputs/fields/number/index.js +1 -1
  59. package/dist/components/inputs/fields/number-range/index.js +1 -1
  60. package/dist/components/inputs/fields/phone/index.js +1 -1
  61. package/dist/components/inputs/fields/text-area/index.js +1 -1
  62. package/dist/components/inputs/index.js +1 -1
  63. package/dist/components/inputs/label/index.js +1 -1
  64. package/dist/components/inputs/outline-container/index.js +1 -1
  65. package/dist/components/inputs/utils/action-button/index.js +1 -1
  66. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  67. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  68. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  69. package/dist/components/inputs/utils/dialog/index.js +1 -1
  70. package/dist/components/inputs/utils/number-field/index.js +1 -1
  71. package/dist/components/inputs/utils/popover/index.js +1 -1
  72. package/dist/components/layout/categories/buttons/index.js +1 -1
  73. package/dist/components/layout/categories/column/index.js +1 -1
  74. package/dist/components/layout/categories/gap/index.js +1 -1
  75. package/dist/components/layout/categories/row/index.js +1 -1
  76. package/dist/components/layout/index.js +1 -1
  77. package/dist/components/link/index.js +1 -1
  78. package/dist/components/list-item/index.js +1 -1
  79. package/dist/components/little-flag/index.js +1 -1
  80. package/dist/components/loading/index.js +1 -1
  81. package/dist/components/logo/index.js +1 -1
  82. package/dist/components/lottie/index.js +1 -1
  83. package/dist/components/menu/index.js +1 -1
  84. package/dist/components/message-banner/index.js +1 -1
  85. package/dist/components/modal/columns-modal/index.js +1 -1
  86. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  87. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  88. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  89. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  90. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  91. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  92. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  93. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  94. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  95. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  96. package/dist/components/modal/filters-modal/index.js +1 -1
  97. package/dist/components/modal/footer/index.js +1 -1
  98. package/dist/components/modal/header/index.js +1 -1
  99. package/dist/components/modal/index.js +1 -1
  100. package/dist/components/modal/modal-confirm/index.js +1 -1
  101. package/dist/components/notification/index.js +1 -1
  102. package/dist/components/notification-sign/index.js +1 -1
  103. package/dist/components/number-input/index.js +1 -1
  104. package/dist/components/oauth-selector/index.js +1 -1
  105. package/dist/components/oauth-selector/option-container/index.js +1 -1
  106. package/dist/components/pop-up/description/index.js +1 -1
  107. package/dist/components/pop-up/index.js +1 -1
  108. package/dist/components/premium-feature/index.js +1 -1
  109. package/dist/components/priority-score/index.js +1 -1
  110. package/dist/components/progress-bar/index.js +1 -1
  111. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  112. package/dist/components/progress-indicator/index.js +1 -1
  113. package/dist/components/progress-indicator/step/index.js +1 -1
  114. package/dist/components/radio-button/index.js +1 -1
  115. package/dist/components/scroll-button/index.js +1 -1
  116. package/dist/components/search/index.js +1 -1
  117. package/dist/components/severity-badge/index.js +1 -1
  118. package/dist/components/severity-overview/badge/index.js +1 -1
  119. package/dist/components/severity-overview/index.js +1 -1
  120. package/dist/components/show-on-hover/index.js +1 -1
  121. package/dist/components/slide-out-menu/index.js +1 -1
  122. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  123. package/dist/components/slider/index.js +1 -1
  124. package/dist/components/slider/thumb/index.js +1 -1
  125. package/dist/components/step-lapse/index.js +1 -1
  126. package/dist/components/table/context/index.js +1 -1
  127. package/dist/components/table/export-csv/index.js +1 -1
  128. package/dist/components/table/index.js +1 -1
  129. package/dist/components/table/pagination/pagination-control/index.js +1 -1
  130. package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
  131. package/dist/components/table/pagination/pagination-size/index.js +1 -1
  132. package/dist/components/table/sort-icon/index.js +1 -1
  133. package/dist/components/table/table-body/index.js +1 -1
  134. package/dist/components/table/table-column-toggle/index.js +1 -1
  135. package/dist/components/table/table-content/head/index.js +1 -1
  136. package/dist/components/table/table-content/index.js +1 -1
  137. package/dist/components/table/table-footer/footer-content/index.js +1 -1
  138. package/dist/components/table/table-footer/index.js +1 -1
  139. package/dist/components/table/table-options/caption-content/index.js +1 -1
  140. package/dist/components/table/table-options/controls-content/index.js +1 -1
  141. package/dist/components/table/table-options/highlighted-content/index.js +1 -1
  142. package/dist/components/table/table-options/index.js +1 -1
  143. package/dist/components/table/wrapper/index.js +1 -1
  144. package/dist/components/table-button/index.js +1 -1
  145. package/dist/components/tabs/index.js +1 -1
  146. package/dist/components/tabs/tab/index.js +1 -1
  147. package/dist/components/tag/index.js +1 -1
  148. package/dist/components/timeline/card/index.js +1 -1
  149. package/dist/components/timeline/index.js +1 -1
  150. package/dist/components/toggle/index.js +1 -1
  151. package/dist/components/tooltip/index.js +1 -1
  152. package/dist/components/tour/index.js +1 -1
  153. package/dist/components/typography/heading/index.js +1 -1
  154. package/dist/components/typography/index.js +1 -1
  155. package/dist/components/typography/span/index.js +1 -1
  156. package/dist/components/typography/text/index.js +1 -1
  157. package/dist/{components-cquGCnw4.js → components-BuwbEnC_.js} +30 -30
  158. package/dist/{components-CSbu-pMc.mjs → components-icuLQAs5.mjs} +193 -191
  159. package/dist/hooks/index.js +1 -1
  160. package/dist/index.js +1 -1
  161. package/dist/vendor-aX2fiAjI.js +223 -0
  162. package/dist/{vendor-7juYbTH6.mjs → vendor-n0YlGhIk.mjs} +17132 -16997
  163. package/package.json +1 -1
  164. package/dist/vendor-Bc-P_rRI.js +0 -223
@@ -1,223 +0,0 @@
1
- "use strict";require('./assets/vendor.css');var Mj=Object.defineProperty;var Fj=(e,t,n)=>t in e?Mj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var mf=(e,t,n)=>Fj(e,typeof t!="symbol"?t+"":t,n);const T=require("react"),la=require("react/jsx-runtime"),za=require("react-dom");function EP(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 He=EP(T),rp=EP(za);var Fr=function(){return Fr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Fr.apply(this,arguments)};function Ou(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function Rj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var kj=/^((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|fetchpriority|fetchPriority|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)-.*))$/,Oj=Rj(function(e){return kj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wn="-ms-",zf="-moz-",rn="-webkit-",SP="comm",$m="rule",N4="decl",Ij="@import",Lj="@namespace",DP="@keyframes",Bj="@layer",AP=Math.abs,j4=String.fromCharCode,X1=Object.assign;function Vj(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 TP(e){return e.trim()}function Va(e,t){return(e=t.exec(e))?e[0]:e}function Vt(e,t,n){return e.replace(t,n)}function ip(e,t,n){return e.indexOf(t,n)}function ar(e,t){return e.charCodeAt(t)|0}function Iu(e,t,n){return e.slice(t,n)}function bs(e){return e.length}function PP(e){return e.length}function Mf(e,t){return t.push(e),e}function Nj(e,t){return e.map(t).join("")}function Qw(e,t){return e.filter(function(n){return!Va(n,t)})}var xm=1,rc=1,_P=0,ts=0,rr=0,$c="";function wm(e,t,n,r,i,s,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:xm,column:rc,length:a,return:"",siblings:o}}function vo(e,t){return X1(wm("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Tl(e){for(;e.root;)e=vo(e.root,{children:[e]});Mf(e,e.siblings)}function jj(){return rr}function Kj(){return rr=ts>0?ar($c,--ts):0,rc--,rr===10&&(rc=1,xm--),rr}function Es(){return rr=ts<_P?ar($c,ts++):0,rc++,rr===10&&(rc=1,xm++),rr}function So(){return ar($c,ts)}function sp(){return ts}function Cm(e,t){return Iu($c,e,t)}function ed(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 Uj(e){return xm=rc=1,_P=bs($c=e),ts=0,[]}function zj(e){return $c="",e}function cv(e){return TP(Cm(ts-1,J1(e===91?e+2:e===40?e+1:e)))}function qj(e){for(;(rr=So())&&rr<33;)Es();return ed(e)>2||ed(rr)>3?"":" "}function Wj(e,t){for(;--t&&Es()&&!(rr<48||rr>102||rr>57&&rr<65||rr>70&&rr<97););return Cm(e,sp()+(t<6&&So()==32&&Es()==32))}function J1(e){for(;Es();)switch(rr){case e:return ts;case 34:case 39:e!==34&&e!==39&&J1(rr);break;case 40:e===41&&J1(e);break;case 92:Es();break}return ts}function Hj(e,t){for(;Es()&&e+rr!==57;)if(e+rr===84&&So()===47)break;return"/*"+Cm(t,ts-1)+"*"+j4(e===47?e:Es())}function Gj(e){for(;!ed(So());)Es();return Cm(e,ts)}function Yj(e){return zj(ap("",null,null,null,[""],e=Uj(e),0,[0],e))}function ap(e,t,n,r,i,s,a,o,l){for(var d=0,h=0,m=a,g=0,b=0,x=0,w=1,S=1,E=1,C=0,A="",k=i,M=s,R=r,K=A;S;)switch(x=C,C=Es()){case 40:if(x!=108&&ar(K,m-1)==58){ip(K+=Vt(cv(C),"&","&\f"),"&\f",AP(d?o[d-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:K+=cv(C);break;case 9:case 10:case 13:case 32:K+=qj(x);break;case 92:K+=Wj(sp()-1,7);continue;case 47:switch(So()){case 42:case 47:Mf(Zj(Hj(Es(),sp()),t,n,l),l),(ed(x||1)==5||ed(So()||1)==5)&&bs(K)&&Iu(K,-1,void 0)!==" "&&(K+=" ");break;default:K+="/"}break;case 123*w:o[d++]=bs(K)*E;case 125*w:case 59:case 0:switch(C){case 0:case 125:S=0;case 59+h:E==-1&&(K=Vt(K,/\f/g,"")),b>0&&(bs(K)-m||w===0&&x===47)&&Mf(b>32?tC(K+";",r,n,m-1,l):tC(Vt(K," ","")+";",r,n,m-2,l),l);break;case 59:K+=";";default:if(Mf(R=eC(K,t,n,d,h,i,o,A,k=[],M=[],m,s),s),C===123)if(h===0)ap(K,t,R,R,k,s,m,o,M);else{switch(g){case 99:if(ar(K,3)===110)break;case 108:if(ar(K,2)===97)break;default:h=0;case 100:case 109:case 115:}h?ap(e,R,R,r&&Mf(eC(e,R,R,0,0,i,o,A,i,k=[],m,M),M),i,M,m,o,r?k:M):ap(K,R,R,R,[""],M,0,o,M)}}d=h=b=0,w=E=1,A=K="",m=a;break;case 58:m=1+bs(K),b=x;default:if(w<1){if(C==123)--w;else if(C==125&&w++==0&&Kj()==125)continue}switch(K+=j4(C),C*w){case 38:E=h>0?1:(K+="\f",-1);break;case 44:o[d++]=(bs(K)-1)*E,E=1;break;case 64:So()===45&&(K+=cv(Es())),g=So(),h=m=bs(A=K+=Gj(sp())),C++;break;case 45:x===45&&bs(K)==2&&(w=0)}}return s}function eC(e,t,n,r,i,s,a,o,l,d,h,m){for(var g=i-1,b=i===0?s:[""],x=PP(b),w=0,S=0,E=0;w<r;++w)for(var C=0,A=Iu(e,g+1,g=AP(S=a[w])),k=e;C<x;++C)(k=TP(S>0?b[C]+" "+A:Vt(A,/&\f/g,b[C])))&&(l[E++]=k);return wm(e,t,n,i===0?$m:o,l,d,h,m)}function Zj(e,t,n,r){return wm(e,t,n,SP,j4(jj()),Iu(e,2,-2),0,r)}function tC(e,t,n,r,i){return wm(e,t,n,N4,Iu(e,0,r),Iu(e,r+1,-1),r,i)}function MP(e,t,n){switch(Vj(e,t)){case 5103:return rn+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return rn+e+e;case 4855:return rn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return zf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rn+e+zf+e+wn+e+e;case 5936:switch(ar(e,t+11)){case 114:return rn+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rn+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rn+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return rn+e+wn+e+e;case 6165:return rn+e+wn+"flex-"+e+e;case 5187:return rn+e+Vt(e,/(\w+).+(:[^]+)/,rn+"box-$1$2"+wn+"flex-$1$2")+e;case 5443:return rn+e+wn+"flex-item-"+Vt(e,/flex-|-self/g,"")+(Va(e,/flex-|baseline/)?"":wn+"grid-row-"+Vt(e,/flex-|-self/g,""))+e;case 4675:return rn+e+wn+"flex-line-pack"+Vt(e,/align-content|flex-|-self/g,"")+e;case 5548:return rn+e+wn+Vt(e,"shrink","negative")+e;case 5292:return rn+e+wn+Vt(e,"basis","preferred-size")+e;case 6060:return rn+"box-"+Vt(e,"-grow","")+rn+e+wn+Vt(e,"grow","positive")+e;case 4554:return rn+Vt(e,/([^-])(transform)/g,"$1"+rn+"$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,rn+"$1"),/(image-set)/,rn+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,rn+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,rn+"box-pack:$3"+wn+"flex-pack:$3"),/space-between/,"justify")+rn+e+e;case 4200:if(!Va(e,/flex-|baseline/))return wn+"grid-column-align"+Iu(e,t)+e;break;case 2592:case 3360:return wn+Vt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Va(r.props,/grid-\w+-end/)})?~ip(e+(n=n[t].value),"span",0)?e:wn+Vt(e,"-start","")+e+wn+"grid-row-span:"+(~ip(n,"span",0)?Va(n,/\d+/):+Va(n,/\d+/)-+Va(e,/\d+/))+";":wn+Vt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Va(r.props,/grid-\w+-start/)})?e:wn+Vt(Vt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,rn+"$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(bs(e)-1-t>6)switch(ar(e,t+1)){case 109:if(ar(e,t+4)!==45)break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1"+rn+"$2-$3$1"+zf+(ar(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ip(e,"stretch",0)?MP(Vt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Vt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,a,o,l,d){return wn+i+":"+s+d+(a?wn+i+"-span:"+(o?l:+l-+s)+d:"")+e});case 4949:if(ar(e,t+6)===121)return Vt(e,":",":"+rn)+e;break;case 6444:switch(ar(e,ar(e,14)===45?18:11)){case 120:return Vt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+rn+(ar(e,14)===45?"inline-":"")+"box$3$1"+rn+"$2$3$1"+wn+"$2box$3")+e;case 100:return Vt(e,":",":"+wn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Vt(e,"scroll-","scroll-snap-")+e}return e}function _p(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Xj(e,t,n,r){switch(e.type){case Bj:if(e.children.length)break;case Ij:case Lj:case N4:return e.return=e.return||e.value;case SP:return"";case DP:return e.return=e.value+"{"+_p(e.children,r)+"}";case $m:if(!bs(e.value=e.props.join(",")))return""}return bs(n=_p(e.children,r))?e.return=e.value+"{"+n+"}":""}function Jj(e){var t=PP(e);return function(n,r,i,s){for(var a="",o=0;o<t;o++)a+=e[o](n,r,i,s)||"";return a}}function Qj(e){return function(t){t.root||(t=t.return)&&e(t)}}function eK(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case N4:e.return=MP(e.value,e.length,n);return;case DP:return _p([vo(e,{value:Vt(e.value,"@","@"+rn)})],r);case $m:if(e.length)return Nj(n=e.props,function(i){switch(Va(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Tl(vo(e,{props:[Vt(i,/:(read-\w+)/,":"+zf+"$1")]})),Tl(vo(e,{props:[i]})),X1(e,{props:Qw(n,r)});break;case"::placeholder":Tl(vo(e,{props:[Vt(i,/:(plac\w+)/,":"+rn+"input-$1")]})),Tl(vo(e,{props:[Vt(i,/:(plac\w+)/,":"+zf+"$1")]})),Tl(vo(e,{props:[Vt(i,/:(plac\w+)/,wn+"input-$1")]})),Tl(vo(e,{props:[i]})),X1(e,{props:Qw(n,r)});break}return""})}}var tK={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},Lu=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",K4=typeof window<"u"&&"HTMLElement"in window,nK=!!(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"),nC=/invalid hook call/i,Rh=new Set,rK=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.
2
- `)+`You may see this warning because you've called styled inside another component.
3
- To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var s=!0;console.error=function(a){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];nC.test(a)?(s=!1,Rh.delete(r)):i.apply(void 0,Ou([a],o,!1))},T.useRef(),s&&!Rh.has(r)&&(console.warn(r),Rh.add(r))}catch(a){nC.test(a.message)&&Rh.delete(r)}finally{console.error=i}}},Em=Object.freeze([]),ic=Object.freeze({});function iK(e,t,n){return n===void 0&&(n=ic),e.theme!==n.theme&&e.theme||t||n.theme}var Q1=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"]),sK=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,aK=/(^-|-$)/g;function rC(e){return e.replace(sK,"-").replace(aK,"")}var oK=/(a)(d)/gi,iC=function(e){return String.fromCharCode(e+(e>25?39:97))};function eb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=iC(t%52)+n;return(iC(t%52)+n).replace(oK,"$1-$2")}var fv,mu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},FP=function(e){return mu(5381,e)};function RP(e){return eb(FP(e)>>>0)}function kP(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function dv(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var OP=typeof Symbol=="function"&&Symbol.for,IP=OP?Symbol.for("react.memo"):60115,uK=OP?Symbol.for("react.forward_ref"):60112,lK={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},LP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fK=((fv={})[uK]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fv[IP]=LP,fv);function sC(e){return("type"in(t=e)&&t.type.$$typeof)===IP?LP:"$$typeof"in e?fK[e.$$typeof]:lK;var t}var dK=Object.defineProperty,hK=Object.getOwnPropertyNames,aC=Object.getOwnPropertySymbols,pK=Object.getOwnPropertyDescriptor,mK=Object.getPrototypeOf,oC=Object.prototype;function BP(e,t,n){if(typeof t!="string"){if(oC){var r=mK(t);r&&r!==oC&&BP(e,r,n)}var i=hK(t);aC&&(i=i.concat(aC(t)));for(var s=sC(e),a=sC(t),o=0;o<i.length;++o){var l=i[o];if(!(l in cK||n&&n[l]||a&&l in a||s&&l in s)){var d=pK(t,l);try{dK(e,l,d)}catch{}}}}return e}function Bu(e){return typeof e=="function"}function U4(e){return typeof e=="object"&&"styledComponentId"in e}function yu(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function tb(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function sc(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function nb(e,t,n){if(n===void 0&&(n=!1),!n&&!sc(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=nb(e[r],t[r]);else if(sc(t))for(var r in t)e[r]=nb(e[r],t[r]);return e}function z4(e,t){Object.defineProperty(e,"toString",{value:t})}var gK=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
4
-
5
- `,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.
6
-
7
- - Are you trying to reuse it across renders?
8
- - Are you accidentally calling collectStyles twice?
9
-
10
- `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
11
-
12
- `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
13
-
14
- - Does this error occur on the client and is your target falsy?
15
- - Does this error occur on the server and is the sheet falsy?
16
-
17
- `,5:`The clone method cannot be used on the client!
18
-
19
- - Are you running in a client-like environment on the server?
20
- - Are you trying to run SSR on the client?
21
-
22
- `,6:`Trying to insert a new style tag, but the given Node is unmounted!
23
-
24
- - Are you using a custom target that isn't mounted?
25
- - Does your document not have a valid head element?
26
- - Have you accidentally removed a style tag manually?
27
-
28
- `,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.
29
-
30
- `,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
31
-
32
- `,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.
33
-
34
- `,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.
35
-
36
- `,14:`ThemeProvider: "theme" prop is required.
37
-
38
- `,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.
39
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
40
- as for instance in your render method then you may be running into this limitation.
41
-
42
- `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
43
- Has styled-components' style tag been unmounted or altered by another script?
44
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function vK(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,s=e.length;i<s;i+=1)r.push(e[i]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function ia(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(vK.apply(void 0,Ou([gK[e]],t,!1)).trim())}var yK=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,s=i;t>=s;)if((s<<=1)<0)throw ia(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=i;a<s;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(o,n[a])&&(this.groupSizes[t]++,o++)},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 s=r;s<i;s++)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),s=i+r,a=i;a<s;a++)n+="".concat(this.tag.getRule(a)).concat(`/*!sc*/
45
- `);return n},e}(),op=new Map,Mp=new Map,up=1,kh=function(e){if(op.has(e))return op.get(e);for(;Mp.has(up);)up++;var t=up++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw ia(16,"".concat(t));return op.set(e,t),Mp.set(t,e),t},bK=function(e,t){up=t+1,op.set(e,t),Mp.set(t,e)},$K="style[".concat(Lu,"][").concat("data-styled-version",'="').concat("6.1.1",'"]'),xK=new RegExp("^".concat(Lu,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),wK=function(e,t,n){for(var r,i=n.split(","),s=0,a=i.length;s<a;s++)(r=i[s])&&e.registerName(t,r)},CK=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
46
- `),i=[],s=0,a=r.length;s<a;s++){var o=r[s].trim();if(o){var l=o.match(xK);if(l){var d=0|parseInt(l[1],10),h=l[2];d!==0&&(bK(h,d),wK(e,h,l[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(o)}}};function EK(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var VP=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(o){var l=Array.from(o.querySelectorAll("style[".concat(Lu,"]")));return l[l.length-1]}(n),s=i!==void 0?i.nextSibling:null;r.setAttribute(Lu,"active"),r.setAttribute("data-styled-version","6.1.1");var a=EK();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},SK=function(){function e(t){this.element=VP(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,s=r.length;i<s;i++){var a=r[i];if(a.ownerNode===n)return a}throw ia(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}(),DK=function(){function e(t){this.element=VP(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}(),AK=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}(),uC=K4,TK={isServer:!K4,useCSSOMInjection:!nK},NP=function(){function e(t,n,r){t===void 0&&(t=ic),n===void 0&&(n={});var i=this;this.options=Fr(Fr({},TK),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&K4&&uC&&(uC=!1,function(s){for(var a=document.querySelectorAll($K),o=0,l=a.length;o<l;o++){var d=a[o];d&&d.getAttribute(Lu)!=="active"&&(CK(s,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),z4(this,function(){return function(s){for(var a=s.getTag(),o=a.length,l="",d=function(m){var g=function(E){return Mp.get(E)}(m);if(g===void 0)return"continue";var b=s.names.get(g),x=a.getGroup(m);if(b===void 0||x.length===0)return"continue";var w="".concat(Lu,".g").concat(m,'[id="').concat(g,'"]'),S="";b!==void 0&&b.forEach(function(E){E.length>0&&(S+="".concat(E,","))}),l+="".concat(x).concat(w,'{content:"').concat(S,'"}').concat(`/*!sc*/
47
- `)},h=0;h<o;h++)d(h);return l}(i)})}return e.registerId=function(t){return kh(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Fr(Fr({},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 AK(i):r?new SK(i):new DK(i)}(this.options),new yK(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(kh(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(kh(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(kh(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),PK=/&/g,_K=/^\s*\/\/.*$/gm;function jP(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=jP(n.children,t)),n})}function MK(e){var t,n,r,i=ic,s=i.options,a=s===void 0?ic:s,o=i.plugins,l=o===void 0?Em:o,d=function(g,b,x){return x===n||x.startsWith(n)&&x.endsWith(n)&&x.replaceAll(n,"").length>0?".".concat(t):g},h=l.slice();h.push(function(g){g.type===$m&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(PK,n).replace(r,d))}),a.prefix&&h.push(eK),h.push(Xj);var m=function(g,b,x,w){b===void 0&&(b=""),x===void 0&&(x=""),w===void 0&&(w="&"),t=w,n=b,r=new RegExp("\\".concat(n,"\\b"),"g");var S=g.replace(_K,""),E=Yj(x||b?"".concat(x," ").concat(b," { ").concat(S," }"):S);a.namespace&&(E=jP(E,a.namespace));var C=[];return _p(E,Jj(h.concat(Qj(function(A){return C.push(A)})))),C};return m.hash=l.length?l.reduce(function(g,b){return b.name||ia(15),mu(g,b.name)},5381).toString():"",m}var FK=new NP,rb=MK(),KP=T.createContext({shouldForwardProp:void 0,styleSheet:FK,stylis:rb});KP.Consumer;T.createContext(void 0);function lC(){return T.useContext(KP)}var ib=function(){function e(t,n){var r=this;this.inject=function(i,s){s===void 0&&(s=rb);var a=r.name+s.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,z4(this,function(){throw ia(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=rb),this.name+t.hash},e}(),RK=function(e){return e>="A"&&e<="Z"};function cC(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;RK(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var UP=function(e){return e==null||e===!1||e===""},zP=function(e){var t,n,r=[];for(var i in e){var s=e[i];e.hasOwnProperty(i)&&!UP(s)&&(Array.isArray(s)&&s.isCss||Bu(s)?r.push("".concat(cC(i),":"),s,";"):sc(s)?r.push.apply(r,Ou(Ou(["".concat(i," {")],zP(s),!1),["}"],!1)):r.push("".concat(cC(i),": ").concat((t=i,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in tK||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Pu(e,t,n,r){if(UP(e))return[];if(U4(e))return[".".concat(e.styledComponentId)];if(Bu(e)){if(!Bu(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof ib||sc(i)||i===null||console.error("".concat(kP(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.")),Pu(i,t,n,r)}var s;return e instanceof ib?n?(e.inject(n,r),[e.getName(r)]):[e]:sc(e)?zP(e):Array.isArray(e)?Array.prototype.concat.apply(Em,e.map(function(a){return Pu(a,t,n,r)})):[e.toString()]}function kK(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Bu(n)&&!U4(n))return!1}return!0}var OK=FP("6.1.1"),IK=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&kK(t),this.componentId=n,this.baseHash=mu(OK,n),this.baseStyle=r,NP.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=yu(i,this.staticRulesId);else{var s=tb(Pu(this.rules,t,n,r)),a=eb(mu(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,a)){var o=r(s,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,o)}i=yu(i,a),this.staticRulesId=a}else{for(var l=mu(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=mu(l,m));else if(m){var g=tb(Pu(m,t,n,r));l=mu(l,g+h),d+=g}}if(d){var b=eb(l>>>0);n.hasNameForId(this.componentId,b)||n.insertRules(this.componentId,b,r(d,".".concat(b),void 0,this.componentId)),i=yu(i,b)}}return i},e}(),td=T.createContext(void 0);td.Consumer;function LK(){var e=T.useContext(td);if(!e)throw ia(18);return e}function BK(e){var t=T.useContext(td),n=T.useMemo(function(){return function(r,i){if(!r)throw ia(14);if(Bu(r)){var s=r(i);if(process.env.NODE_ENV!=="production"&&(s===null||Array.isArray(s)||typeof s!="object"))throw ia(7);return s}if(Array.isArray(r)||typeof r!="object")throw ia(8);return i?Fr(Fr({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?T.createElement(td.Provider,{value:n},e.children):null}var hv={},fC=new Set;function VK(e,t,n){var r=U4(e),i=e,s=!dv(e),a=t.attrs,o=a===void 0?Em:a,l=t.componentId,d=l===void 0?function(k,M){var R=typeof k!="string"?"sc":rC(k);hv[R]=(hv[R]||0)+1;var K="".concat(R,"-").concat(RP("6.1.1"+R+hv[R]));return M?"".concat(M,"-").concat(K):K}(t.displayName,t.parentComponentId):l,h=t.displayName,m=h===void 0?function(k){return dv(k)?"styled.".concat(k):"Styled(".concat(kP(k),")")}(e):h,g=t.displayName&&t.componentId?"".concat(rC(t.displayName),"-").concat(t.componentId):t.componentId||d,b=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var w=i.shouldForwardProp;if(t.shouldForwardProp){var S=t.shouldForwardProp;x=function(k,M){return w(k,M)&&S(k,M)}}else x=w}var E=new IK(n,g,r?i.componentStyle:void 0);function C(k,M){return function(R,K,H){var le=R.attrs,ae=R.componentStyle,I=R.defaultProps,$e=R.foldedComponentIds,we=R.styledComponentId,W=R.target,ie=T.useContext(td),O=lC(),L=R.shouldForwardProp||O.shouldForwardProp;process.env.NODE_ENV!=="production"&&T.useDebugValue(we);var B=function(_e,Me,Ye){for(var Ge,Ae=Fr(Fr({},Me),{className:void 0,theme:Ye}),Ke=0;Ke<_e.length;Ke+=1){var We=Bu(Ge=_e[Ke])?Ge(Ae):Ge;for(var Ve in We)Ae[Ve]=Ve==="className"?yu(Ae[Ve],We[Ve]):Ve==="style"?Fr(Fr({},Ae[Ve]),We[Ve]):We[Ve]}return Me.className&&(Ae.className=yu(Ae.className,Me.className)),Ae}(le,K,iK(K,ie,I)||ic),he=B.as||W,U={};for(var te in B)B[te]===void 0||te[0]==="$"||te==="as"||te==="theme"||(te==="forwardedAs"?U.as=B.forwardedAs:L&&!L(te,he)||(U[te]=B[te],L||process.env.NODE_ENV!=="development"||Oj(te)||fC.has(te)||!Q1.has(he)||(fC.add(te),console.warn('styled-components: it looks like an unknown prop "'.concat(te,'" 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 xe=function(_e,Me){var Ye=lC(),Ge=_e.generateAndInjectStyles(Me,Ye.styleSheet,Ye.stylis);return process.env.NODE_ENV!=="production"&&T.useDebugValue(Ge),Ge}(ae,B);process.env.NODE_ENV!=="production"&&R.warnTooManyClasses&&R.warnTooManyClasses(xe);var De=yu($e,we);return xe&&(De+=" "+xe),B.className&&(De+=" "+B.className),U[dv(he)&&!Q1.has(he)?"class":"className"]=De,U.ref=H,T.createElement(he,U)}(A,k,M)}C.displayName=m;var A=T.forwardRef(C);return A.attrs=b,A.componentStyle=E,A.displayName=m,A.shouldForwardProp=x,A.foldedComponentIds=r?yu(i.foldedComponentIds,i.styledComponentId):"",A.styledComponentId=g,A.target=r?i.target:e,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=r?function(M){for(var R=[],K=1;K<arguments.length;K++)R[K-1]=arguments[K];for(var H=0,le=R;H<le.length;H++)nb(M,le[H],!0);return M}({},i.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(rK(m,g),A.warnTooManyClasses=function(k,M){var R={},K=!1;return function(H){if(!K&&(R[H]=!0,Object.keys(R).length>=200)){var le=M?' with the id of "'.concat(M,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(le,`.
48
- `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
- Example:
50
- const Component = styled.div.attrs(props => ({
51
- style: {
52
- background: props.background,
53
- },
54
- }))\`width: 100%;\`
55
-
56
- <Component />`),K=!0,R={}}}}(m,g)),z4(A,function(){return".".concat(A.styledComponentId)}),s&&BP(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function dC(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 hC=function(e){return Object.assign(e,{isCss:!0})};function q4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Bu(e)||sc(e)){var r=e;return hC(Pu(dC(Em,Ou([r],t,!0))))}var i=e;return t.length===0&&i.length===1&&typeof i[0]=="string"?Pu(i):hC(Pu(dC(i,t)))}function sb(e,t,n){if(n===void 0&&(n=ic),!t)throw ia(1,t);var r=function(i){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return e(t,n,q4.apply(void 0,Ou([i],s,!1)))};return r.attrs=function(i){return sb(e,t,Fr(Fr({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return sb(e,t,Fr(Fr({},n),i))},r}var qP=function(e){return sb(VK,e)},WP=qP;Q1.forEach(function(e){WP[e]=qP(e)});function NK(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=tb(q4.apply(void 0,Ou([e],t,!1))),i=RP(r);return new ib(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.
57
- Perhaps you're looking to import 'styled-components/native'?
58
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Oh="__sc-".concat(Lu,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Oh]||(window[Oh]=0),window[Oh]===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.
59
-
60
- See https://s-c.sh/2BAXzed for more info.`),window[Oh]+=1);function Sm(){return typeof window<"u"}function xc(e){return HP(e)?(e.nodeName||"").toLowerCase():"#document"}function li(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ca(e){var t;return(t=(HP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function HP(e){return Sm()?e instanceof Node||e instanceof li(e).Node:!1}function ir(e){return Sm()?e instanceof Element||e instanceof li(e).Element:!1}function ns(e){return Sm()?e instanceof HTMLElement||e instanceof li(e).HTMLElement:!1}function ab(e){return!Sm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof li(e).ShadowRoot}const jK=new Set(["inline","contents"]);function Dd(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ds(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!jK.has(i)}const KK=new Set(["table","td","th"]);function UK(e){return KK.has(xc(e))}const zK=[":popover-open",":modal"];function Dm(e){return zK.some(t=>{try{return e.matches(t)}catch{return!1}})}const qK=["transform","translate","scale","rotate","perspective"],WK=["transform","translate","scale","rotate","perspective","filter"],HK=["paint","layout","strict","content"];function W4(e){const t=H4(),n=ir(e)?Ds(e):e;return qK.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)||WK.some(r=>(n.willChange||"").includes(r))||HK.some(r=>(n.contain||"").includes(r))}function GK(e){let t=Fo(e);for(;ns(t)&&!ac(t);){if(W4(t))return t;if(Dm(t))return null;t=Fo(t)}return null}function H4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const YK=new Set(["html","body","#document"]);function ac(e){return YK.has(xc(e))}function Ds(e){return li(e).getComputedStyle(e)}function Am(e){return ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fo(e){if(xc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ab(e)&&e.host||ca(e);return ab(t)?t.host:t}function GP(e){const t=Fo(e);return ac(t)?e.ownerDocument?e.ownerDocument.body:e.body:ns(t)&&Dd(t)?t:GP(t)}function nd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=GP(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=li(i);if(s){const o=ob(a);return t.concat(a,a.visualViewport||[],Dd(i)?i:[],o&&n?nd(o):[])}return t.concat(i,nd(i,[],n))}function ob(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Fp=Math.min,_u=Math.max,Rp=Math.round,Ih=Math.floor,sa=e=>({x:e,y:e}),ZK={left:"right",right:"left",bottom:"top",top:"bottom"},XK={start:"end",end:"start"};function pC(e,t,n){return _u(e,Fp(t,n))}function Tm(e,t){return typeof e=="function"?e(t):e}function Vu(e){return e.split("-")[0]}function Pm(e){return e.split("-")[1]}function YP(e){return e==="x"?"y":"x"}function ZP(e){return e==="y"?"height":"width"}const JK=new Set(["top","bottom"]);function Do(e){return JK.has(Vu(e))?"y":"x"}function XP(e){return YP(Do(e))}function QK(e,t,n){n===void 0&&(n=!1);const r=Pm(e),i=XP(e),s=ZP(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=kp(a)),[a,kp(a)]}function eU(e){const t=kp(e);return[ub(e),t,ub(t)]}function ub(e){return e.replace(/start|end/g,t=>XK[t])}const mC=["left","right"],gC=["right","left"],tU=["top","bottom"],nU=["bottom","top"];function rU(e,t,n){switch(e){case"top":case"bottom":return n?t?gC:mC:t?mC:gC;case"left":case"right":return t?tU:nU;default:return[]}}function iU(e,t,n,r){const i=Pm(e);let s=rU(Vu(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(ub)))),s}function kp(e){return e.replace(/left|right|bottom|top/g,t=>ZK[t])}function sU(e){return{top:0,right:0,bottom:0,left:0,...e}}function aU(e){return typeof e!="number"?sU(e):{top:e,right:e,bottom:e,left:e}}function Op(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 oU(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function uU(){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 lU(){return/apple/i.test(navigator.vendor)}function cU(){return oU().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function fU(){return uU().includes("jsdom/")}const vC="data-floating-ui-focusable",dU="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function yC(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 lb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ab(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function hU(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ff(e){return(e==null?void 0:e.ownerDocument)||document}function pU(e){return ns(e)&&e.matches(dU)}function mU(e){if(!e||fU())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function gU(e){return e?e.hasAttribute(vC)?e:e.querySelector("["+vC+"]")||e:null}function cb(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var vU=typeof document<"u",yU=function(){},oc=vU?T.useLayoutEffect:yU;const bU={...He};function Lh(e){const t=He.useRef(e);return oc(()=>{t.current=e}),t}const $U=bU.useInsertionEffect,xU=$U||(e=>e());function Rf(e){const t=He.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return xU(()=>{t.current=e}),He.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function bC(e,t,n){let{reference:r,floating:i}=e;const s=Do(t),a=XP(t),o=ZP(a),l=Vu(t),d=s==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[o]/2-i[o]/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(Pm(t)){case"start":b[a]-=g*(n&&d?-1:1);break;case"end":b[a]+=g*(n&&d?-1:1);break}return b}const wU=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,o=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=bC(d,r,l),g=r,b={},x=0;for(let w=0;w<o.length;w++){const{name:S,fn:E}=o[w],{x:C,y:A,data:k,reset:M}=await E({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:d,platform:a,elements:{reference:e,floating:t}});h=C??h,m=A??m,b={...b,[S]:{...b[S],...k}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(d=M.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:h,y:m}=bC(d,g,l)),w=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function JP(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:o,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=Tm(t,e),x=aU(b),S=o[g?m==="floating"?"reference":"floating":m],E=Op(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(S)))==null||n?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:d,rootBoundary:h,strategy:l})),C=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),k=await(s.isElement==null?void 0:s.isElement(A))?await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},M=Op(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:C,offsetParent:A,strategy:l}):C);return{top:(E.top-M.top+x.top)/k.y,bottom:(M.bottom-E.bottom+x.bottom)/k.y,left:(E.left-M.left+x.left)/k.x,right:(M.right-E.right+x.right)/k.x}}const CU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:o,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:w=!0,...S}=Tm(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const E=Vu(i),C=Do(o),A=Vu(o)===o,k=await(l.isRTL==null?void 0:l.isRTL(d.floating)),M=g||(A||!w?[kp(o)]:eU(o)),R=x!=="none";!g&&R&&M.push(...iU(o,w,x,k));const K=[o,...M],H=await JP(t,S),le=[];let ae=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&le.push(H[E]),m){const W=QK(i,a,k);le.push(H[W[0]],H[W[1]])}if(ae=[...ae,{placement:i,overflows:le}],!le.every(W=>W<=0)){var I,$e;const W=(((I=s.flip)==null?void 0:I.index)||0)+1,ie=K[W];if(ie&&(!(m==="alignment"?C!==Do(ie):!1)||ae.every(B=>B.overflows[0]>0&&Do(B.placement)===C)))return{data:{index:W,overflows:ae},reset:{placement:ie}};let O=($e=ae.filter(L=>L.overflows[0]<=0).sort((L,B)=>L.overflows[1]-B.overflows[1])[0])==null?void 0:$e.placement;if(!O)switch(b){case"bestFit":{var we;const L=(we=ae.filter(B=>{if(R){const he=Do(B.placement);return he===C||he==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(he=>he>0).reduce((he,U)=>he+U,0)]).sort((B,he)=>B[1]-he[1])[0])==null?void 0:we[0];L&&(O=L);break}case"initialPlacement":O=o;break}if(i!==O)return{reset:{placement:O}}}return{}}}},EU=new Set(["left","top"]);async function SU(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Vu(n),o=Pm(n),l=Do(n)==="y",d=EU.has(a)?-1:1,h=s&&l?-1:1,m=Tm(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 o&&typeof x=="number"&&(b=o==="end"?x*-1:x),l?{x:b*h,y:g*d}:{x:g*d,y:b*h}}const DU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:o}=t,l=await SU(t,e);return a===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},AU=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:o={fn:S=>{let{x:E,y:C}=S;return{x:E,y:C}}},...l}=Tm(e,t),d={x:n,y:r},h=await JP(t,l),m=Do(Vu(i)),g=YP(m);let b=d[g],x=d[m];if(s){const S=g==="y"?"top":"left",E=g==="y"?"bottom":"right",C=b+h[S],A=b-h[E];b=pC(C,b,A)}if(a){const S=m==="y"?"top":"left",E=m==="y"?"bottom":"right",C=x+h[S],A=x-h[E];x=pC(C,x,A)}const w=o.fn({...t,[g]:b,[m]:x});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:s,[m]:a}}}}}};function QP(e){const t=Ds(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ns(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,o=Rp(n)!==s||Rp(r)!==a;return o&&(n=s,r=a),{width:n,height:r,$:o}}function G4(e){return ir(e)?e:e.contextElement}function Hl(e){const t=G4(e);if(!ns(t))return sa(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=QP(t);let a=(s?Rp(n.width):n.width)/r,o=(s?Rp(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const TU=sa(0);function e5(e){const t=li(e);return!H4()||!t.visualViewport?TU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==li(e)?!1:t}function Nu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=G4(e);let a=sa(1);t&&(r?ir(r)&&(a=Hl(r)):a=Hl(e));const o=PU(s,n,r)?e5(s):sa(0);let l=(i.left+o.x)/a.x,d=(i.top+o.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(s){const g=li(s),b=r&&ir(r)?li(r):r;let x=g,w=ob(x);for(;w&&r&&b!==x;){const S=Hl(w),E=w.getBoundingClientRect(),C=Ds(w),A=E.left+(w.clientLeft+parseFloat(C.paddingLeft))*S.x,k=E.top+(w.clientTop+parseFloat(C.paddingTop))*S.y;l*=S.x,d*=S.y,h*=S.x,m*=S.y,l+=A,d+=k,x=li(w),w=ob(x)}}return Op({width:h,height:m,x:l,y:d})}function Y4(e,t){const n=Am(e).scrollLeft;return t?t.left+n:Nu(ca(e)).left+n}function t5(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Y4(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function _U(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=ca(r),o=t?Dm(t.floating):!1;if(r===a||o&&s)return n;let l={scrollLeft:0,scrollTop:0},d=sa(1);const h=sa(0),m=ns(r);if((m||!m&&!s)&&((xc(r)!=="body"||Dd(a))&&(l=Am(r)),ns(r))){const b=Nu(r);d=Hl(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=a&&!m&&!s?t5(a,l,!0):sa(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 MU(e){return Array.from(e.getClientRects())}function FU(e){const t=ca(e),n=Am(e),r=e.ownerDocument.body,i=_u(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=_u(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Y4(e);const o=-n.scrollTop;return Ds(r).direction==="rtl"&&(a+=_u(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:o}}function RU(e,t){const n=li(e),r=ca(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;const d=H4();(!d||d&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:o,y:l}}const kU=new Set(["absolute","fixed"]);function OU(e,t){const n=Nu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ns(e)?Hl(e):sa(1),a=e.clientWidth*s.x,o=e.clientHeight*s.y,l=i*s.x,d=r*s.y;return{width:a,height:o,x:l,y:d}}function $C(e,t,n){let r;if(t==="viewport")r=RU(e,n);else if(t==="document")r=FU(ca(e));else if(ir(t))r=OU(t,n);else{const i=e5(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Op(r)}function n5(e,t){const n=Fo(e);return n===t||!ir(n)||ac(n)?!1:Ds(n).position==="fixed"||n5(n,t)}function IU(e,t){const n=t.get(e);if(n)return n;let r=nd(e,[],!1).filter(o=>ir(o)&&xc(o)!=="body"),i=null;const s=Ds(e).position==="fixed";let a=s?Fo(e):e;for(;ir(a)&&!ac(a);){const o=Ds(a),l=W4(a);!l&&o.position==="fixed"&&(i=null),(s?!l&&!i:!l&&o.position==="static"&&!!i&&kU.has(i.position)||Dd(a)&&!l&&n5(e,a))?r=r.filter(h=>h!==a):i=o,a=Fo(a)}return t.set(e,r),r}function LU(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Dm(t)?[]:IU(t,this._c):[].concat(n),r],o=a[0],l=a.reduce((d,h)=>{const m=$C(t,h,i);return d.top=_u(m.top,d.top),d.right=Fp(m.right,d.right),d.bottom=Fp(m.bottom,d.bottom),d.left=_u(m.left,d.left),d},$C(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function BU(e){const{width:t,height:n}=QP(e);return{width:t,height:n}}function VU(e,t,n){const r=ns(t),i=ca(t),s=n==="fixed",a=Nu(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const l=sa(0);function d(){l.x=Y4(i)}if(r||!r&&!s)if((xc(t)!=="body"||Dd(i))&&(o=Am(t)),r){const b=Nu(t,!0,s,t);l.x=b.x+t.clientLeft,l.y=b.y+t.clientTop}else i&&d();s&&!r&&i&&d();const h=i&&!r&&!s?t5(i,o):sa(0),m=a.left+o.scrollLeft-l.x-h.x,g=a.top+o.scrollTop-l.y-h.y;return{x:m,y:g,width:a.width,height:a.height}}function pv(e){return Ds(e).position==="static"}function xC(e,t){if(!ns(e)||Ds(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ca(e)===n&&(n=n.ownerDocument.body),n}function r5(e,t){const n=li(e);if(Dm(e))return n;if(!ns(e)){let i=Fo(e);for(;i&&!ac(i);){if(ir(i)&&!pv(i))return i;i=Fo(i)}return n}let r=xC(e,t);for(;r&&UK(r)&&pv(r);)r=xC(r,t);return r&&ac(r)&&pv(r)&&!W4(r)?n:r||GK(e)||n}const NU=async function(e){const t=this.getOffsetParent||r5,n=this.getDimensions,r=await n(e.floating);return{reference:VU(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jU(e){return Ds(e).direction==="rtl"}const KU={convertOffsetParentRelativeRectToViewportRelativeRect:_U,getDocumentElement:ca,getClippingRect:LU,getOffsetParent:r5,getElementRects:NU,getClientRects:MU,getDimensions:BU,getScale:Hl,isElement:ir,isRTL:jU};function i5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function UU(e,t){let n=null,r;const i=ca(e);function s(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=d;if(o||t(),!g||!b)return;const x=Ih(m),w=Ih(i.clientWidth-(h+g)),S=Ih(i.clientHeight-(m+b)),E=Ih(h),A={rootMargin:-x+"px "+-w+"px "+-S+"px "+-E+"px",threshold:_u(0,Fp(1,l))||1};let k=!0;function M(R){const K=R[0].intersectionRatio;if(K!==l){if(!k)return a();K?a(!1,K):r=setTimeout(()=>{a(!1,1e-7)},1e3)}K===1&&!i5(d,e.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(M,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(M,A)}n.observe(e)}return a(!0),s}function zU(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=G4(e),h=i||s?[...d?nd(d):[],...nd(t)]:[];h.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),s&&E.addEventListener("resize",n)});const m=d&&o?UU(d,n):null;let g=-1,b=null;a&&(b=new ResizeObserver(E=>{let[C]=E;C&&C.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(t)})),n()}),d&&!l&&b.observe(d),b.observe(t));let x,w=l?Nu(e):null;l&&S();function S(){const E=Nu(e);w&&!i5(w,E)&&n(),w=E,x=requestAnimationFrame(S)}return n(),()=>{var E;h.forEach(C=>{i&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),m==null||m(),(E=b)==null||E.disconnect(),b=null,l&&cancelAnimationFrame(x)}}const qU=DU,WU=AU,HU=CU,GU=(e,t,n)=>{const r=new Map,i={platform:KU,...n},s={...i.platform,_c:r};return wU(e,t,{...i,platform:s})};var YU=typeof document<"u",ZU=function(){},lp=YU?T.useLayoutEffect:ZU;function Ip(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(!Ip(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 s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Ip(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function s5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wC(e,t){const n=s5(e);return Math.round(t*n)/n}function mv(e){const t=He.useRef(e);return lp(()=>{t.current=e}),t}function a5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:l,open:d}=e,[h,m]=He.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=He.useState(r);Ip(g,r)||b(r);const[x,w]=He.useState(null),[S,E]=He.useState(null),C=He.useCallback(B=>{B!==R.current&&(R.current=B,w(B))},[]),A=He.useCallback(B=>{B!==K.current&&(K.current=B,E(B))},[]),k=s||x,M=a||S,R=He.useRef(null),K=He.useRef(null),H=He.useRef(h),le=l!=null,ae=mv(l),I=mv(i),$e=mv(d),we=He.useCallback(()=>{if(!R.current||!K.current)return;const B={placement:t,strategy:n,middleware:g};I.current&&(B.platform=I.current),GU(R.current,K.current,B).then(he=>{const U={...he,isPositioned:$e.current!==!1};W.current&&!Ip(H.current,U)&&(H.current=U,rp.flushSync(()=>{m(U)}))})},[g,t,n,I,$e]);lp(()=>{d===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[d]);const W=He.useRef(!1);lp(()=>(W.current=!0,()=>{W.current=!1}),[]),lp(()=>{if(k&&(R.current=k),M&&(K.current=M),k&&M){if(ae.current)return ae.current(k,M,we);we()}},[k,M,we,ae,le]);const ie=He.useMemo(()=>({reference:R,floating:K,setReference:C,setFloating:A}),[C,A]),O=He.useMemo(()=>({reference:k,floating:M}),[k,M]),L=He.useMemo(()=>{const B={position:n,left:0,top:0};if(!O.floating)return B;const he=wC(O.floating,h.x),U=wC(O.floating,h.y);return o?{...B,transform:"translate("+he+"px, "+U+"px)",...s5(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:he,top:U}},[n,o,O.floating,h.x,h.y]);return He.useMemo(()=>({...h,update:we,refs:ie,elements:O,floatingStyles:L}),[h,we,ie,O,L])}const XU=(e,t)=>({...qU(e),options:[e,t]}),JU=(e,t)=>({...WU(e),options:[e,t]}),QU=(e,t)=>({...HU(e),options:[e,t]}),ez="data-floating-ui-focusable",CC="active",EC="selected",tz={...He};let SC=!1,nz=0;const DC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+nz++;function rz(){const[e,t]=He.useState(()=>SC?DC():void 0);return oc(()=>{e==null&&t(DC())},[]),He.useEffect(()=>{SC=!0},[]),e}const iz=tz.useId,o5=iz||rz;let fb;process.env.NODE_ENV!=="production"&&(fb=new Set);function sz(){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=fb)!=null&&e.has(i))){var s;(s=fb)==null||s.add(i),console.error(i)}}function az(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const oz=He.createContext(null),uz=He.createContext(null),Z4=()=>{var e;return((e=He.useContext(oz))==null?void 0:e.id)||null},u5=()=>He.useContext(uz);function l5(e){return"data-floating-ui-"+e}function Ki(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const AC=l5("safe-polygon");function gv(e,t,n){if(n&&!cb(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function vv(e){return typeof e=="function"?e():e}function lz(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:s,elements:a}=e,{enabled:o=!0,delay:l=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=u5(),x=Z4(),w=Lh(d),S=Lh(l),E=Lh(n),C=Lh(m),A=He.useRef(),k=He.useRef(-1),M=He.useRef(),R=He.useRef(-1),K=He.useRef(!0),H=He.useRef(!1),le=He.useRef(()=>{}),ae=He.useRef(!1),I=Rf(()=>{var L;const B=(L=i.current.openEvent)==null?void 0:L.type;return(B==null?void 0:B.includes("mouse"))&&B!=="mousedown"});He.useEffect(()=>{if(!o)return;function L(B){let{open:he}=B;he||(Ki(k),Ki(R),K.current=!0,ae.current=!1)}return s.on("openchange",L),()=>{s.off("openchange",L)}},[o,s]),He.useEffect(()=>{if(!o||!w.current||!n)return;function L(he){I()&&r(!1,he,"hover")}const B=Ff(a.floating).documentElement;return B.addEventListener("mouseleave",L),()=>{B.removeEventListener("mouseleave",L)}},[a.floating,n,r,o,w,I]);const $e=He.useCallback(function(L,B,he){B===void 0&&(B=!0),he===void 0&&(he="hover");const U=gv(S.current,"close",A.current);U&&!M.current?(Ki(k),k.current=window.setTimeout(()=>r(!1,L,he),U)):B&&(Ki(k),r(!1,L,he))},[S,r]),we=Rf(()=>{le.current(),M.current=void 0}),W=Rf(()=>{if(H.current){const L=Ff(a.floating).body;L.style.pointerEvents="",L.removeAttribute(AC),H.current=!1}}),ie=Rf(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);He.useEffect(()=>{if(!o)return;function L(xe){if(Ki(k),K.current=!1,h&&!cb(A.current)||vv(C.current)>0&&!gv(S.current,"open"))return;const De=gv(S.current,"open",A.current);De?k.current=window.setTimeout(()=>{E.current||r(!0,xe,"hover")},De):n||r(!0,xe,"hover")}function B(xe){if(ie()){W();return}le.current();const De=Ff(a.floating);if(Ki(R),ae.current=!1,w.current&&i.current.floatingContext){n||Ki(k),M.current=w.current({...i.current.floatingContext,tree:b,x:xe.clientX,y:xe.clientY,onClose(){W(),we(),ie()||$e(xe,!0,"safe-polygon")}});const Me=M.current;De.addEventListener("mousemove",Me),le.current=()=>{De.removeEventListener("mousemove",Me)};return}(A.current==="touch"?!lb(a.floating,xe.relatedTarget):!0)&&$e(xe)}function he(xe){ie()||i.current.floatingContext&&(w.current==null||w.current({...i.current.floatingContext,tree:b,x:xe.clientX,y:xe.clientY,onClose(){W(),we(),ie()||$e(xe)}})(xe))}function U(){Ki(k)}function te(xe){ie()||$e(xe,!1)}if(ir(a.domReference)){const xe=a.domReference,De=a.floating;return n&&xe.addEventListener("mouseleave",he),g&&xe.addEventListener("mousemove",L,{once:!0}),xe.addEventListener("mouseenter",L),xe.addEventListener("mouseleave",B),De&&(De.addEventListener("mouseleave",he),De.addEventListener("mouseenter",U),De.addEventListener("mouseleave",te)),()=>{n&&xe.removeEventListener("mouseleave",he),g&&xe.removeEventListener("mousemove",L),xe.removeEventListener("mouseenter",L),xe.removeEventListener("mouseleave",B),De&&(De.removeEventListener("mouseleave",he),De.removeEventListener("mouseenter",U),De.removeEventListener("mouseleave",te))}}},[a,o,e,h,g,$e,we,W,r,n,E,b,S,w,i,ie,C]),oc(()=>{var L;if(o&&n&&(L=w.current)!=null&&(L=L.__options)!=null&&L.blockPointerEvents&&I()){H.current=!0;const he=a.floating;if(ir(a.domReference)&&he){var B;const U=Ff(a.floating).body;U.setAttribute(AC,"");const te=a.domReference,xe=b==null||(B=b.nodesRef.current.find(De=>De.id===x))==null||(B=B.context)==null?void 0:B.elements.floating;return xe&&(xe.style.pointerEvents=""),U.style.pointerEvents="none",te.style.pointerEvents="auto",he.style.pointerEvents="auto",()=>{U.style.pointerEvents="",te.style.pointerEvents="",he.style.pointerEvents=""}}}},[o,n,x,a,b,w,I]),oc(()=>{n||(A.current=void 0,ae.current=!1,we(),W())},[n,we,W]),He.useEffect(()=>()=>{we(),Ki(k),Ki(R),W()},[o,a.domReference,we,W]);const O=He.useMemo(()=>{function L(B){A.current=B.pointerType}return{onPointerDown:L,onPointerEnter:L,onMouseMove(B){const{nativeEvent:he}=B;function U(){!K.current&&!E.current&&r(!0,he,"hover")}h&&!cb(A.current)||n||vv(C.current)===0||ae.current&&B.movementX**2+B.movementY**2<2||(Ki(R),A.current==="touch"?U():(ae.current=!0,R.current=window.setTimeout(U,vv(C.current))))}}},[h,r,n,E,C]);return He.useMemo(()=>o?{reference:O}:{},[o,O])}function cz(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=o5(),s=He.useRef({}),[a]=He.useState(()=>az()),o=Z4()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!ir(b)&&sz("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]=He.useState(r.reference),h=Rf((b,x,w)=>{s.current.openEvent=b?x:void 0,a.emit("openchange",{open:b,event:x,reason:w,nested:o}),n==null||n(b,x,w)}),m=He.useMemo(()=>({setPositionReference:d}),[]),g=He.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return He.useMemo(()=>({dataRef:s,open:t,onOpenChange:h,elements:g,events:a,floatingId:i,refs:m}),[t,h,g,a,i,m])}function fz(e){e===void 0&&(e={});const{nodeId:t}=e,n=cz({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[s,a]=He.useState(null),[o,l]=He.useState(null),h=(i==null?void 0:i.domReference)||s,m=He.useRef(null),g=u5();oc(()=>{h&&(m.current=h)},[h]);const b=a5({...e,elements:{...i,...o&&{reference:o}}}),x=He.useCallback(A=>{const k=ir(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;l(k),b.refs.setReference(k)},[b.refs]),w=He.useCallback(A=>{(ir(A)||A===null)&&(m.current=A,a(A)),(ir(b.refs.reference.current)||b.refs.reference.current===null||A!==null&&!ir(A))&&b.refs.setReference(A)},[b.refs]),S=He.useMemo(()=>({...b.refs,setReference:w,setPositionReference:x,domReference:m}),[b.refs,w,x]),E=He.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),C=He.useMemo(()=>({...b,...r,refs:S,elements:E,nodeId:t}),[b,S,E,t,r]);return oc(()=>{r.dataRef.current.floatingContext=C;const A=g==null?void 0:g.nodesRef.current.find(k=>k.id===t);A&&(A.context=C)}),He.useMemo(()=>({...b,context:C,refs:S,elements:E}),[b,S,E,C])}function yv(){return cU()&&lU()}function dz(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:s,elements:a}=e,{enabled:o=!0,visibleOnly:l=!0}=t,d=He.useRef(!1),h=He.useRef(-1),m=He.useRef(!0);He.useEffect(()=>{if(!o)return;const b=li(a.domReference);function x(){!n&&ns(a.domReference)&&a.domReference===yC(Ff(a.domReference))&&(d.current=!0)}function w(){m.current=!0}function S(){m.current=!1}return b.addEventListener("blur",x),yv()&&(b.addEventListener("keydown",w,!0),b.addEventListener("pointerdown",S,!0)),()=>{b.removeEventListener("blur",x),yv()&&(b.removeEventListener("keydown",w,!0),b.removeEventListener("pointerdown",S,!0))}},[a.domReference,n,o]),He.useEffect(()=>{if(!o)return;function b(x){let{reason:w}=x;(w==="reference-press"||w==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,o]),He.useEffect(()=>()=>{Ki(h)},[]);const g=He.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const x=hU(b.nativeEvent);if(l&&ir(x)){if(yv()&&!b.relatedTarget){if(!m.current&&!pU(x))return}else if(!mU(x))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const x=b.relatedTarget,w=b.nativeEvent,S=ir(x)&&x.hasAttribute(l5("focus-guard"))&&x.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var E;const C=yC(a.domReference?a.domReference.ownerDocument:document);!x&&C===a.domReference||lb((E=s.current.floatingContext)==null?void 0:E.refs.floating.current,C)||lb(a.domReference,C)||S||r(!1,w,"focus")})}}),[s,a.domReference,r,l]);return He.useMemo(()=>o?{reference:g}:{},[o,g])}function bv(e,t,n){const r=new Map,i=n==="item";let s=e;if(i&&e){const{[CC]:a,[EC]:o,...l}=e;s=l}return{...n==="floating"&&{tabIndex:-1,[ez]:""},...s,...t.map(a=>{const o=a?a[n]:null;return typeof o=="function"?e?o(e):null:o}).concat(e).reduce((a,o)=>(o&&Object.entries(o).forEach(l=>{let[d,h]=l;if(!(i&&[CC,EC].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),a[d]=function(){for(var g,b=arguments.length,x=new Array(b),w=0;w<b;w++)x[w]=arguments[w];return(g=r.get(d))==null?void 0:g.map(S=>S(...x)).find(S=>S!==void 0)}}}else a[d]=h}),a),{})}}function hz(e){e===void 0&&(e=[]);const t=e.map(o=>o==null?void 0:o.reference),n=e.map(o=>o==null?void 0:o.floating),r=e.map(o=>o==null?void 0:o.item),i=He.useCallback(o=>bv(o,e,"reference"),t),s=He.useCallback(o=>bv(o,e,"floating"),n),a=He.useCallback(o=>bv(o,e,"item"),r);return He.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a}),[i,s,a])}const pz=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function mz(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:s,floatingId:a}=e,{enabled:o=!0,role:l="dialog"}=t,d=o5(),h=((n=s.domReference)==null?void 0:n.id)||d,m=He.useMemo(()=>{var C;return((C=gU(s.floating))==null?void 0:C.id)||a},[s.floating,a]),g=(r=pz.get(l))!=null?r:l,x=Z4()!=null,w=He.useMemo(()=>g==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":i?m:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:h},...g==="menu"&&x&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,m,x,i,h,l]),S=He.useMemo(()=>{const C={id:m,...g&&{role:g}};return g==="tooltip"||l==="label"?C:{...C,...g==="menu"&&{"aria-labelledby":h}}},[g,m,h,l]),E=He.useCallback(C=>{let{active:A,selected:k}=C;const M={role:"option",...A&&{id:m+"-fui-option"}};switch(l){case"select":return{...M,"aria-selected":A&&k};case"combobox":return{...M,"aria-selected":k}}return{}},[m,l]);return He.useMemo(()=>o?{reference:w,floating:S,item:E}:{},[o,w,S,E])}var kf={exports:{}};/**
61
- * @license
62
- * Lodash <https://lodash.com/>
63
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
64
- * Released under MIT license <https://lodash.com/license>
65
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
66
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
67
- */var gz=kf.exports,TC;function vz(){return TC||(TC=1,function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,b=4,x=1,w=2,S=1,E=2,C=4,A=8,k=16,M=32,R=64,K=128,H=256,le=512,ae=30,I="...",$e=800,we=16,W=1,ie=2,O=3,L=1/0,B=9007199254740991,he=17976931348623157e292,U=NaN,te=4294967295,xe=te-1,De=te>>>1,_e=[["ary",K],["bind",S],["bindKey",E],["curry",A],["curryRight",k],["flip",le],["partial",M],["partialRight",R],["rearg",H]],Me="[object Arguments]",Ye="[object Array]",Ge="[object AsyncFunction]",Ae="[object Boolean]",Ke="[object Date]",We="[object DOMException]",Ve="[object Error]",Te="[object Function]",tt="[object GeneratorFunction]",yt="[object Map]",Jt="[object Number]",xt="[object Null]",Mt="[object Object]",Ti="[object Promise]",mt="[object Proxy]",me="[object RegExp]",Se="[object Set]",Le="[object String]",it="[object Symbol]",Qe="[object Undefined]",Xe="[object WeakMap]",gt="[object WeakSet]",kt="[object ArrayBuffer]",wt="[object DataView]",yn="[object Float32Array]",Cr="[object Float64Array]",qt="[object Int8Array]",_t="[object Int16Array]",Lt="[object Int32Array]",Wt="[object Uint8Array]",gr="[object Uint8ClampedArray]",Zr="[object Uint16Array]",fi="[object Uint32Array]",kr=/\b__p \+= '';/g,Rs=/\b(__p \+=) '' \+/g,Vo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$t=/&(?:amp|lt|gt|quot|#39);/g,di=/[&<>"']/g,ha=RegExp($t.source),Nc=RegExp(di.source),el=/<%-([\s\S]+?)%>/g,jc=/<%([\s\S]+?)%>/g,tl=/<%=([\s\S]+?)%>/g,No=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nl=/^\w*$/,is=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ss=/[\\^$.*+?()[\]{}|]/g,bt=RegExp(ss.source),Sn=/^\s+/,pa=/\s/,rl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Er=/\{\n\/\* \[wrapped with (.+)\] \*/,il=/,? & /,sl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Kc=/[()=,{}\[\]\/\s]/,Xr=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dn=/\w*$/,as=/^[-+]0x[0-9a-f]+$/i,hi=/^0b[01]+$/i,Xn=/^\[object .+?Constructor\]$/,jo=/^0o[0-7]+$/i,ks=/^(?:0|[1-9]\d*)$/,pi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ln=/($^)/,no=/['\n\r\u2028\u2029\\]/g,Ut="\\ud800-\\udfff",Uc="\\u0300-\\u036f",al="\\ufe20-\\ufe2f",zc="\\u20d0-\\u20ff",Ko=Uc+al+zc,ma="\\u2700-\\u27bf",ol="a-z\\xdf-\\xf6\\xf8-\\xff",Uo="\\xac\\xb1\\xd7\\xf7",qc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wc="\\u2000-\\u206f",Hc=" \\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",ul="A-Z\\xc0-\\xd6\\xd8-\\xde",zo="\\ufe0e\\ufe0f",qo=Uo+qc+Wc+Hc,ga="['’]",ll="["+Ut+"]",cl="["+qo+"]",Or="["+Ko+"]",vr="\\d+",Ir="["+ma+"]",Os="["+ol+"]",ro="[^"+Ut+qo+vr+ma+ol+ul+"]",yr="\\ud83c[\\udffb-\\udfff]",va="(?:"+Or+"|"+yr+")",ya="[^"+Ut+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",mi="[\\ud800-\\udbff][\\udc00-\\udfff]",or="["+ul+"]",_i="\\u200d",Wo="(?:"+Os+"|"+ro+")",fl="(?:"+or+"|"+ro+")",mn="(?:"+ga+"(?:d|ll|m|re|s|t|ve))?",Ho="(?:"+ga+"(?:D|LL|M|RE|S|T|VE))?",ba=va+"?",Go="["+zo+"]?",dl="(?:"+_i+"(?:"+[ya,Pi,mi].join("|")+")"+Go+ba+")*",Lr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Is=Go+ba+dl,Ls="(?:"+[Ir,Pi,mi].join("|")+")"+Is,$a="(?:"+[ya+Or+"?",Or,Pi,mi,ll].join("|")+")",os=RegExp(ga,"g"),xa=RegExp(Or,"g"),io=RegExp(yr+"(?="+yr+")|"+$a+Is,"g"),hl=RegExp([or+"?"+Os+"+"+mn+"(?="+[cl,or,"$"].join("|")+")",fl+"+"+Ho+"(?="+[cl,or+Wo,"$"].join("|")+")",or+"?"+Wo+"+"+mn,or+"+"+Ho,Yo,Lr,vr,Ls].join("|"),"g"),Gc=RegExp("["+_i+Ut+Ko+zo+"]"),wa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yc=["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"],Ca=-1,Yt={};Yt[yn]=Yt[Cr]=Yt[qt]=Yt[_t]=Yt[Lt]=Yt[Wt]=Yt[gr]=Yt[Zr]=Yt[fi]=!0,Yt[Me]=Yt[Ye]=Yt[kt]=Yt[Ae]=Yt[wt]=Yt[Ke]=Yt[Ve]=Yt[Te]=Yt[yt]=Yt[Jt]=Yt[Mt]=Yt[me]=Yt[Se]=Yt[Le]=Yt[Xe]=!1;var nn={};nn[Me]=nn[Ye]=nn[kt]=nn[wt]=nn[Ae]=nn[Ke]=nn[yn]=nn[Cr]=nn[qt]=nn[_t]=nn[Lt]=nn[yt]=nn[Jt]=nn[Mt]=nn[me]=nn[Se]=nn[Le]=nn[it]=nn[Wt]=nn[gr]=nn[Zr]=nn[fi]=!0,nn[Ve]=nn[Te]=nn[Xe]=!1;var se={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Fe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ze={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ht={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bn=parseFloat,sr=parseInt,ur=typeof Yi=="object"&&Yi&&Yi.Object===Object&&Yi,Kn=typeof self=="object"&&self&&self.Object===Object&&self,Dn=ur||Kn||Function("return this")(),Mi=t&&!t.nodeType&&t,Fi=Mi&&!0&&e&&!e.nodeType&&e,Zo=Fi&&Fi.exports===Mi,so=Zo&&ur.process,lr=function(){try{var F=Fi&&Fi.require&&Fi.require("util").types;return F||so&&so.binding&&so.binding("util")}catch{}}(),Ea=lr&&lr.isArrayBuffer,ih=lr&&lr.isDate,sh=lr&&lr.isMap,Zc=lr&&lr.isRegExp,ao=lr&&lr.isSet,us=lr&&lr.isTypedArray;function Bn(F,ee,Y){switch(Y.length){case 0:return F.call(ee);case 1:return F.call(ee,Y[0]);case 2:return F.call(ee,Y[0],Y[1]);case 3:return F.call(ee,Y[0],Y[1],Y[2])}return F.apply(ee,Y)}function Bs(F,ee,Y,fe){for(var ce=-1,q=F==null?0:F.length;++ce<q;){var Z=F[ce];ee(fe,Z,Y(Z),F)}return fe}function hn(F,ee){for(var Y=-1,fe=F==null?0:F.length;++Y<fe&&ee(F[Y],Y,F)!==!1;);return F}function cr(F,ee){for(var Y=F==null?0:F.length;Y--&&ee(F[Y],Y,F)!==!1;);return F}function Sa(F,ee){for(var Y=-1,fe=F==null?0:F.length;++Y<fe;)if(!ee(F[Y],Y,F))return!1;return!0}function Sr(F,ee){for(var Y=-1,fe=F==null?0:F.length,ce=0,q=[];++Y<fe;){var Z=F[Y];ee(Z,Y,F)&&(q[ce++]=Z)}return q}function Vs(F,ee){var Y=F==null?0:F.length;return!!Y&&Da(F,ee,0)>-1}function pl(F,ee,Y){for(var fe=-1,ce=F==null?0:F.length;++fe<ce;)if(Y(ee,F[fe]))return!0;return!1}function cn(F,ee){for(var Y=-1,fe=F==null?0:F.length,ce=Array(fe);++Y<fe;)ce[Y]=ee(F[Y],Y,F);return ce}function ls(F,ee){for(var Y=-1,fe=ee.length,ce=F.length;++Y<fe;)F[ce+Y]=ee[Y];return F}function ml(F,ee,Y,fe){var ce=-1,q=F==null?0:F.length;for(fe&&q&&(Y=F[++ce]);++ce<q;)Y=ee(Y,F[ce],ce,F);return Y}function Xo(F,ee,Y,fe){var ce=F==null?0:F.length;for(fe&&ce&&(Y=F[--ce]);ce--;)Y=ee(Y,F[ce],ce,F);return Y}function Ns(F,ee){for(var Y=-1,fe=F==null?0:F.length;++Y<fe;)if(ee(F[Y],Y,F))return!0;return!1}var Jo=gl("length");function Qo(F){return F.split("")}function mg(F){return F.match(sl)||[]}function Xc(F,ee,Y){var fe;return Y(F,function(ce,q,Z){if(ee(ce,q,Z))return fe=q,!1}),fe}function eu(F,ee,Y,fe){for(var ce=F.length,q=Y+(fe?1:-1);fe?q--:++q<ce;)if(ee(F[q],q,F))return q;return-1}function Da(F,ee,Y){return ee===ee?p(F,ee,Y):eu(F,Jc,Y)}function ah(F,ee,Y,fe){for(var ce=Y-1,q=F.length;++ce<q;)if(fe(F[ce],ee))return ce;return-1}function Jc(F){return F!==F}function tu(F,ee){var Y=F==null?0:F.length;return Y?js(F,ee)/Y:U}function gl(F){return function(ee){return ee==null?n:ee[F]}}function vl(F){return function(ee){return F==null?n:F[ee]}}function Qc(F,ee,Y,fe,ce){return ce(F,function(q,Z,V){Y=fe?(fe=!1,q):ee(Y,q,Z,V)}),Y}function nu(F,ee){var Y=F.length;for(F.sort(ee);Y--;)F[Y]=F[Y].value;return F}function js(F,ee){for(var Y,fe=-1,ce=F.length;++fe<ce;){var q=ee(F[fe]);q!==n&&(Y=Y===n?q:Y+q)}return Y}function yl(F,ee){for(var Y=-1,fe=Array(F);++Y<F;)fe[Y]=ee(Y);return fe}function gg(F,ee){return cn(ee,function(Y){return[Y,F[Y]]})}function oh(F){return F&&F.slice(0,_(F)+1).replace(Sn,"")}function Dr(F){return function(ee){return F(ee)}}function ef(F,ee){return cn(ee,function(Y){return F[Y]})}function gn(F,ee){return F.has(ee)}function bl(F,ee){for(var Y=-1,fe=F.length;++Y<fe&&Da(ee,F[Y],0)>-1;);return Y}function fr(F,ee){for(var Y=F.length;Y--&&Da(ee,F[Y],0)>-1;);return Y}function vg(F,ee){for(var Y=F.length,fe=0;Y--;)F[Y]===ee&&++fe;return fe}var yg=vl(se),Aa=vl(Fe);function gi(F){return"\\"+ht[F]}function bg(F,ee){return F==null?n:F[ee]}function Ar(F){return Gc.test(F)}function tf(F){return wa.test(F)}function Ks(F){for(var ee,Y=[];!(ee=F.next()).done;)Y.push(ee.value);return Y}function Vn(F){var ee=-1,Y=Array(F.size);return F.forEach(function(fe,ce){Y[++ee]=[ce,fe]}),Y}function Ri(F,ee){return function(Y){return F(ee(Y))}}function Jr(F,ee){for(var Y=-1,fe=F.length,ce=0,q=[];++Y<fe;){var Z=F[Y];(Z===ee||Z===h)&&(F[Y]=h,q[ce++]=Y)}return q}function oo(F){var ee=-1,Y=Array(F.size);return F.forEach(function(fe){Y[++ee]=fe}),Y}function c(F){var ee=-1,Y=Array(F.size);return F.forEach(function(fe){Y[++ee]=[fe,fe]}),Y}function p(F,ee,Y){for(var fe=Y-1,ce=F.length;++fe<ce;)if(F[fe]===ee)return fe;return-1}function v(F,ee,Y){for(var fe=Y+1;fe--;)if(F[fe]===ee)return fe;return fe}function $(F){return Ar(F)?pe(F):Jo(F)}function P(F){return Ar(F)?Q(F):Qo(F)}function _(F){for(var ee=F.length;ee--&&pa.test(F.charAt(ee)););return ee}var z=vl(ze);function pe(F){for(var ee=io.lastIndex=0;io.test(F);)++ee;return ee}function Q(F){return F.match(io)||[]}function ye(F){return F.match(hl)||[]}var Ce=function F(ee){ee=ee==null?Dn:Re.defaults(Dn.Object(),ee,Re.pick(Dn,Yc));var Y=ee.Array,fe=ee.Date,ce=ee.Error,q=ee.Function,Z=ee.Math,V=ee.Object,j=ee.RegExp,G=ee.String,ne=ee.TypeError,oe=Y.prototype,de=q.prototype,Oe=V.prototype,et=ee["__core-js_shared__"],Je=de.toString,Be=Oe.hasOwnProperty,ot=0,ct=function(){var u=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Ie=Oe.toString,be=Je.call(V),ue=Dn._,J=j("^"+Je.call(Be).replace(ss,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ge=Zo?ee.Buffer:n,Ne=ee.Symbol,ke=ee.Uint8Array,lt=ge?ge.allocUnsafe:n,Tt=Ri(V.getPrototypeOf,V),Et=V.create,$n=Oe.propertyIsEnumerable,Ht=oe.splice,dr=Ne?Ne.isConcatSpreadable:n,Jn=Ne?Ne.iterator:n,Nn=Ne?Ne.toStringTag:n,Un=function(){try{var u=ou(V,"defineProperty");return u({},"",{}),u}catch{}}(),zn=ee.clearTimeout!==Dn.clearTimeout&&ee.clearTimeout,br=fe&&fe.now!==Dn.Date.now&&fe.now,ft=ee.setTimeout!==Dn.setTimeout&&ee.setTimeout,fn=Z.ceil,Qr=Z.floor,ki=V.getOwnPropertySymbols,cs=ge?ge.isBuffer:n,vi=ee.isFinite,fs=oe.join,ds=Ri(V.keys,V),Zt=Z.max,xn=Z.min,Us=fe.now,yi=ee.parseInt,hs=Z.random,bi=oe.reverse,ps=ou(ee,"DataView"),zs=ou(ee,"Map"),uo=ou(ee,"Promise"),$l=ou(ee,"Set"),nf=ou(ee,"WeakMap"),rf=ou(V,"create"),uh=nf&&new nf,xl={},V9=uu(ps),N9=uu(zs),j9=uu(uo),K9=uu($l),U9=uu(nf),lh=Ne?Ne.prototype:n,sf=lh?lh.valueOf:n,vx=lh?lh.toString:n;function X(u){if(jn(u)&&!Ft(u)&&!(u instanceof zt)){if(u instanceof Oi)return u;if(Be.call(u,"__wrapped__"))return yw(u)}return new Oi(u)}var wl=function(){function u(){}return function(f){if(!_n(f))return{};if(Et)return Et(f);u.prototype=f;var y=new u;return u.prototype=n,y}}();function ch(){}function Oi(u,f){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}X.templateSettings={escape:el,evaluate:jc,interpolate:tl,variable:"",imports:{_:X}},X.prototype=ch.prototype,X.prototype.constructor=X,Oi.prototype=wl(ch.prototype),Oi.prototype.constructor=Oi;function zt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function z9(){var u=new zt(this.__wrapped__);return u.__actions__=ei(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=ei(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=ei(this.__views__),u}function q9(){if(this.__filtered__){var u=new zt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function W9(){var u=this.__wrapped__.value(),f=this.__dir__,y=Ft(u),D=f<0,N=y?u.length:0,re=i8(0,N,this.__views__),ve=re.start,Ee=re.end,Pe=Ee-ve,Ue=D?Ee:ve-1,qe=this.__iteratees__,Ze=qe.length,at=0,vt=xn(Pe,this.__takeCount__);if(!y||!D&&N==Pe&&vt==Pe)return jx(u,this.__actions__);var St=[];e:for(;Pe--&&at<vt;){Ue+=f;for(var Bt=-1,Dt=u[Ue];++Bt<Ze;){var jt=qe[Bt],Gt=jt.iteratee,wi=jt.type,Nr=Gt(Dt);if(wi==ie)Dt=Nr;else if(!Nr){if(wi==W)continue e;break e}}St[at++]=Dt}return St}zt.prototype=wl(ch.prototype),zt.prototype.constructor=zt;function ru(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function H9(){this.__data__=rf?rf(null):{},this.size=0}function G9(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function Y9(u){var f=this.__data__;if(rf){var y=f[u];return y===l?n:y}return Be.call(f,u)?f[u]:n}function Z9(u){var f=this.__data__;return rf?f[u]!==n:Be.call(f,u)}function X9(u,f){var y=this.__data__;return this.size+=this.has(u)?0:1,y[u]=rf&&f===n?l:f,this}ru.prototype.clear=H9,ru.prototype.delete=G9,ru.prototype.get=Y9,ru.prototype.has=Z9,ru.prototype.set=X9;function Ta(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function J9(){this.__data__=[],this.size=0}function Q9(u){var f=this.__data__,y=fh(f,u);if(y<0)return!1;var D=f.length-1;return y==D?f.pop():Ht.call(f,y,1),--this.size,!0}function eL(u){var f=this.__data__,y=fh(f,u);return y<0?n:f[y][1]}function tL(u){return fh(this.__data__,u)>-1}function nL(u,f){var y=this.__data__,D=fh(y,u);return D<0?(++this.size,y.push([u,f])):y[D][1]=f,this}Ta.prototype.clear=J9,Ta.prototype.delete=Q9,Ta.prototype.get=eL,Ta.prototype.has=tL,Ta.prototype.set=nL;function Pa(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function rL(){this.size=0,this.__data__={hash:new ru,map:new(zs||Ta),string:new ru}}function iL(u){var f=Ch(this,u).delete(u);return this.size-=f?1:0,f}function sL(u){return Ch(this,u).get(u)}function aL(u){return Ch(this,u).has(u)}function oL(u,f){var y=Ch(this,u),D=y.size;return y.set(u,f),this.size+=y.size==D?0:1,this}Pa.prototype.clear=rL,Pa.prototype.delete=iL,Pa.prototype.get=sL,Pa.prototype.has=aL,Pa.prototype.set=oL;function iu(u){var f=-1,y=u==null?0:u.length;for(this.__data__=new Pa;++f<y;)this.add(u[f])}function uL(u){return this.__data__.set(u,l),this}function lL(u){return this.__data__.has(u)}iu.prototype.add=iu.prototype.push=uL,iu.prototype.has=lL;function ms(u){var f=this.__data__=new Ta(u);this.size=f.size}function cL(){this.__data__=new Ta,this.size=0}function fL(u){var f=this.__data__,y=f.delete(u);return this.size=f.size,y}function dL(u){return this.__data__.get(u)}function hL(u){return this.__data__.has(u)}function pL(u,f){var y=this.__data__;if(y instanceof Ta){var D=y.__data__;if(!zs||D.length<i-1)return D.push([u,f]),this.size=++y.size,this;y=this.__data__=new Pa(D)}return y.set(u,f),this.size=y.size,this}ms.prototype.clear=cL,ms.prototype.delete=fL,ms.prototype.get=dL,ms.prototype.has=hL,ms.prototype.set=pL;function yx(u,f){var y=Ft(u),D=!y&&lu(u),N=!y&&!D&&po(u),re=!y&&!D&&!N&&Dl(u),ve=y||D||N||re,Ee=ve?yl(u.length,G):[],Pe=Ee.length;for(var Ue in u)(f||Be.call(u,Ue))&&!(ve&&(Ue=="length"||N&&(Ue=="offset"||Ue=="parent")||re&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||Ra(Ue,Pe)))&&Ee.push(Ue);return Ee}function bx(u){var f=u.length;return f?u[_g(0,f-1)]:n}function mL(u,f){return Eh(ei(u),su(f,0,u.length))}function gL(u){return Eh(ei(u))}function $g(u,f,y){(y!==n&&!gs(u[f],y)||y===n&&!(f in u))&&_a(u,f,y)}function af(u,f,y){var D=u[f];(!(Be.call(u,f)&&gs(D,y))||y===n&&!(f in u))&&_a(u,f,y)}function fh(u,f){for(var y=u.length;y--;)if(gs(u[y][0],f))return y;return-1}function vL(u,f,y,D){return lo(u,function(N,re,ve){f(D,N,y(N),ve)}),D}function $x(u,f){return u&&Ws(f,hr(f),u)}function yL(u,f){return u&&Ws(f,ni(f),u)}function _a(u,f,y){f=="__proto__"&&Un?Un(u,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):u[f]=y}function xg(u,f){for(var y=-1,D=f.length,N=Y(D),re=u==null;++y<D;)N[y]=re?n:tv(u,f[y]);return N}function su(u,f,y){return u===u&&(y!==n&&(u=u<=y?u:y),f!==n&&(u=u>=f?u:f)),u}function Ii(u,f,y,D,N,re){var ve,Ee=f&m,Pe=f&g,Ue=f&b;if(y&&(ve=N?y(u,D,N,re):y(u)),ve!==n)return ve;if(!_n(u))return u;var qe=Ft(u);if(qe){if(ve=a8(u),!Ee)return ei(u,ve)}else{var Ze=Tr(u),at=Ze==Te||Ze==tt;if(po(u))return zx(u,Ee);if(Ze==Mt||Ze==Me||at&&!N){if(ve=Pe||at?{}:lw(u),!Ee)return Pe?YL(u,yL(ve,u)):GL(u,$x(ve,u))}else{if(!nn[Ze])return N?u:{};ve=o8(u,Ze,Ee)}}re||(re=new ms);var vt=re.get(u);if(vt)return vt;re.set(u,ve),Bw(u)?u.forEach(function(Dt){ve.add(Ii(Dt,f,y,Dt,u,re))}):Iw(u)&&u.forEach(function(Dt,jt){ve.set(jt,Ii(Dt,f,y,jt,u,re))});var St=Ue?Pe?jg:Ng:Pe?ni:hr,Bt=qe?n:St(u);return hn(Bt||u,function(Dt,jt){Bt&&(jt=Dt,Dt=u[jt]),af(ve,jt,Ii(Dt,f,y,jt,u,re))}),ve}function bL(u){var f=hr(u);return function(y){return xx(y,u,f)}}function xx(u,f,y){var D=y.length;if(u==null)return!D;for(u=V(u);D--;){var N=y[D],re=f[N],ve=u[N];if(ve===n&&!(N in u)||!re(ve))return!1}return!0}function wx(u,f,y){if(typeof u!="function")throw new ne(a);return hf(function(){u.apply(n,y)},f)}function of(u,f,y,D){var N=-1,re=Vs,ve=!0,Ee=u.length,Pe=[],Ue=f.length;if(!Ee)return Pe;y&&(f=cn(f,Dr(y))),D?(re=pl,ve=!1):f.length>=i&&(re=gn,ve=!1,f=new iu(f));e:for(;++N<Ee;){var qe=u[N],Ze=y==null?qe:y(qe);if(qe=D||qe!==0?qe:0,ve&&Ze===Ze){for(var at=Ue;at--;)if(f[at]===Ze)continue e;Pe.push(qe)}else re(f,Ze,D)||Pe.push(qe)}return Pe}var lo=Yx(qs),Cx=Yx(Cg,!0);function $L(u,f){var y=!0;return lo(u,function(D,N,re){return y=!!f(D,N,re),y}),y}function dh(u,f,y){for(var D=-1,N=u.length;++D<N;){var re=u[D],ve=f(re);if(ve!=null&&(Ee===n?ve===ve&&!xi(ve):y(ve,Ee)))var Ee=ve,Pe=re}return Pe}function xL(u,f,y,D){var N=u.length;for(y=Ot(y),y<0&&(y=-y>N?0:N+y),D=D===n||D>N?N:Ot(D),D<0&&(D+=N),D=y>D?0:Nw(D);y<D;)u[y++]=f;return u}function Ex(u,f){var y=[];return lo(u,function(D,N,re){f(D,N,re)&&y.push(D)}),y}function $r(u,f,y,D,N){var re=-1,ve=u.length;for(y||(y=l8),N||(N=[]);++re<ve;){var Ee=u[re];f>0&&y(Ee)?f>1?$r(Ee,f-1,y,D,N):ls(N,Ee):D||(N[N.length]=Ee)}return N}var wg=Zx(),Sx=Zx(!0);function qs(u,f){return u&&wg(u,f,hr)}function Cg(u,f){return u&&Sx(u,f,hr)}function hh(u,f){return Sr(f,function(y){return ka(u[y])})}function au(u,f){f=fo(f,u);for(var y=0,D=f.length;u!=null&&y<D;)u=u[Hs(f[y++])];return y&&y==D?u:n}function Dx(u,f,y){var D=f(u);return Ft(u)?D:ls(D,y(u))}function Br(u){return u==null?u===n?Qe:xt:Nn&&Nn in V(u)?r8(u):g8(u)}function Eg(u,f){return u>f}function wL(u,f){return u!=null&&Be.call(u,f)}function CL(u,f){return u!=null&&f in V(u)}function EL(u,f,y){return u>=xn(f,y)&&u<Zt(f,y)}function Sg(u,f,y){for(var D=y?pl:Vs,N=u[0].length,re=u.length,ve=re,Ee=Y(re),Pe=1/0,Ue=[];ve--;){var qe=u[ve];ve&&f&&(qe=cn(qe,Dr(f))),Pe=xn(qe.length,Pe),Ee[ve]=!y&&(f||N>=120&&qe.length>=120)?new iu(ve&&qe):n}qe=u[0];var Ze=-1,at=Ee[0];e:for(;++Ze<N&&Ue.length<Pe;){var vt=qe[Ze],St=f?f(vt):vt;if(vt=y||vt!==0?vt:0,!(at?gn(at,St):D(Ue,St,y))){for(ve=re;--ve;){var Bt=Ee[ve];if(!(Bt?gn(Bt,St):D(u[ve],St,y)))continue e}at&&at.push(St),Ue.push(vt)}}return Ue}function SL(u,f,y,D){return qs(u,function(N,re,ve){f(D,y(N),re,ve)}),D}function uf(u,f,y){f=fo(f,u),u=hw(u,f);var D=u==null?u:u[Hs(Bi(f))];return D==null?n:Bn(D,u,y)}function Ax(u){return jn(u)&&Br(u)==Me}function DL(u){return jn(u)&&Br(u)==kt}function AL(u){return jn(u)&&Br(u)==Ke}function lf(u,f,y,D,N){return u===f?!0:u==null||f==null||!jn(u)&&!jn(f)?u!==u&&f!==f:TL(u,f,y,D,lf,N)}function TL(u,f,y,D,N,re){var ve=Ft(u),Ee=Ft(f),Pe=ve?Ye:Tr(u),Ue=Ee?Ye:Tr(f);Pe=Pe==Me?Mt:Pe,Ue=Ue==Me?Mt:Ue;var qe=Pe==Mt,Ze=Ue==Mt,at=Pe==Ue;if(at&&po(u)){if(!po(f))return!1;ve=!0,qe=!1}if(at&&!qe)return re||(re=new ms),ve||Dl(u)?aw(u,f,y,D,N,re):t8(u,f,Pe,y,D,N,re);if(!(y&x)){var vt=qe&&Be.call(u,"__wrapped__"),St=Ze&&Be.call(f,"__wrapped__");if(vt||St){var Bt=vt?u.value():u,Dt=St?f.value():f;return re||(re=new ms),N(Bt,Dt,y,D,re)}}return at?(re||(re=new ms),n8(u,f,y,D,N,re)):!1}function PL(u){return jn(u)&&Tr(u)==yt}function Dg(u,f,y,D){var N=y.length,re=N,ve=!D;if(u==null)return!re;for(u=V(u);N--;){var Ee=y[N];if(ve&&Ee[2]?Ee[1]!==u[Ee[0]]:!(Ee[0]in u))return!1}for(;++N<re;){Ee=y[N];var Pe=Ee[0],Ue=u[Pe],qe=Ee[1];if(ve&&Ee[2]){if(Ue===n&&!(Pe in u))return!1}else{var Ze=new ms;if(D)var at=D(Ue,qe,Pe,u,f,Ze);if(!(at===n?lf(qe,Ue,x|w,D,Ze):at))return!1}}return!0}function Tx(u){if(!_n(u)||f8(u))return!1;var f=ka(u)?J:Xn;return f.test(uu(u))}function _L(u){return jn(u)&&Br(u)==me}function ML(u){return jn(u)&&Tr(u)==Se}function FL(u){return jn(u)&&_h(u.length)&&!!Yt[Br(u)]}function Px(u){return typeof u=="function"?u:u==null?ri:typeof u=="object"?Ft(u)?Fx(u[0],u[1]):Mx(u):Xw(u)}function Ag(u){if(!df(u))return ds(u);var f=[];for(var y in V(u))Be.call(u,y)&&y!="constructor"&&f.push(y);return f}function RL(u){if(!_n(u))return m8(u);var f=df(u),y=[];for(var D in u)D=="constructor"&&(f||!Be.call(u,D))||y.push(D);return y}function Tg(u,f){return u<f}function _x(u,f){var y=-1,D=ti(u)?Y(u.length):[];return lo(u,function(N,re,ve){D[++y]=f(N,re,ve)}),D}function Mx(u){var f=Ug(u);return f.length==1&&f[0][2]?fw(f[0][0],f[0][1]):function(y){return y===u||Dg(y,u,f)}}function Fx(u,f){return qg(u)&&cw(f)?fw(Hs(u),f):function(y){var D=tv(y,u);return D===n&&D===f?nv(y,u):lf(f,D,x|w)}}function ph(u,f,y,D,N){u!==f&&wg(f,function(re,ve){if(N||(N=new ms),_n(re))kL(u,f,ve,y,ph,D,N);else{var Ee=D?D(Hg(u,ve),re,ve+"",u,f,N):n;Ee===n&&(Ee=re),$g(u,ve,Ee)}},ni)}function kL(u,f,y,D,N,re,ve){var Ee=Hg(u,y),Pe=Hg(f,y),Ue=ve.get(Pe);if(Ue){$g(u,y,Ue);return}var qe=re?re(Ee,Pe,y+"",u,f,ve):n,Ze=qe===n;if(Ze){var at=Ft(Pe),vt=!at&&po(Pe),St=!at&&!vt&&Dl(Pe);qe=Pe,at||vt||St?Ft(Ee)?qe=Ee:qn(Ee)?qe=ei(Ee):vt?(Ze=!1,qe=zx(Pe,!0)):St?(Ze=!1,qe=qx(Pe,!0)):qe=[]:pf(Pe)||lu(Pe)?(qe=Ee,lu(Ee)?qe=jw(Ee):(!_n(Ee)||ka(Ee))&&(qe=lw(Pe))):Ze=!1}Ze&&(ve.set(Pe,qe),N(qe,Pe,D,re,ve),ve.delete(Pe)),$g(u,y,qe)}function Rx(u,f){var y=u.length;if(y)return f+=f<0?y:0,Ra(f,y)?u[f]:n}function kx(u,f,y){f.length?f=cn(f,function(re){return Ft(re)?function(ve){return au(ve,re.length===1?re[0]:re)}:re}):f=[ri];var D=-1;f=cn(f,Dr(Ct()));var N=_x(u,function(re,ve,Ee){var Pe=cn(f,function(Ue){return Ue(re)});return{criteria:Pe,index:++D,value:re}});return nu(N,function(re,ve){return HL(re,ve,y)})}function OL(u,f){return Ox(u,f,function(y,D){return nv(u,D)})}function Ox(u,f,y){for(var D=-1,N=f.length,re={};++D<N;){var ve=f[D],Ee=au(u,ve);y(Ee,ve)&&cf(re,fo(ve,u),Ee)}return re}function IL(u){return function(f){return au(f,u)}}function Pg(u,f,y,D){var N=D?ah:Da,re=-1,ve=f.length,Ee=u;for(u===f&&(f=ei(f)),y&&(Ee=cn(u,Dr(y)));++re<ve;)for(var Pe=0,Ue=f[re],qe=y?y(Ue):Ue;(Pe=N(Ee,qe,Pe,D))>-1;)Ee!==u&&Ht.call(Ee,Pe,1),Ht.call(u,Pe,1);return u}function Ix(u,f){for(var y=u?f.length:0,D=y-1;y--;){var N=f[y];if(y==D||N!==re){var re=N;Ra(N)?Ht.call(u,N,1):Rg(u,N)}}return u}function _g(u,f){return u+Qr(hs()*(f-u+1))}function LL(u,f,y,D){for(var N=-1,re=Zt(fn((f-u)/(y||1)),0),ve=Y(re);re--;)ve[D?re:++N]=u,u+=y;return ve}function Mg(u,f){var y="";if(!u||f<1||f>B)return y;do f%2&&(y+=u),f=Qr(f/2),f&&(u+=u);while(f);return y}function Nt(u,f){return Gg(dw(u,f,ri),u+"")}function BL(u){return bx(Al(u))}function VL(u,f){var y=Al(u);return Eh(y,su(f,0,y.length))}function cf(u,f,y,D){if(!_n(u))return u;f=fo(f,u);for(var N=-1,re=f.length,ve=re-1,Ee=u;Ee!=null&&++N<re;){var Pe=Hs(f[N]),Ue=y;if(Pe==="__proto__"||Pe==="constructor"||Pe==="prototype")return u;if(N!=ve){var qe=Ee[Pe];Ue=D?D(qe,Pe,Ee):n,Ue===n&&(Ue=_n(qe)?qe:Ra(f[N+1])?[]:{})}af(Ee,Pe,Ue),Ee=Ee[Pe]}return u}var Lx=uh?function(u,f){return uh.set(u,f),u}:ri,NL=Un?function(u,f){return Un(u,"toString",{configurable:!0,enumerable:!1,value:iv(f),writable:!0})}:ri;function jL(u){return Eh(Al(u))}function Li(u,f,y){var D=-1,N=u.length;f<0&&(f=-f>N?0:N+f),y=y>N?N:y,y<0&&(y+=N),N=f>y?0:y-f>>>0,f>>>=0;for(var re=Y(N);++D<N;)re[D]=u[D+f];return re}function KL(u,f){var y;return lo(u,function(D,N,re){return y=f(D,N,re),!y}),!!y}function mh(u,f,y){var D=0,N=u==null?D:u.length;if(typeof f=="number"&&f===f&&N<=De){for(;D<N;){var re=D+N>>>1,ve=u[re];ve!==null&&!xi(ve)&&(y?ve<=f:ve<f)?D=re+1:N=re}return N}return Fg(u,f,ri,y)}function Fg(u,f,y,D){var N=0,re=u==null?0:u.length;if(re===0)return 0;f=y(f);for(var ve=f!==f,Ee=f===null,Pe=xi(f),Ue=f===n;N<re;){var qe=Qr((N+re)/2),Ze=y(u[qe]),at=Ze!==n,vt=Ze===null,St=Ze===Ze,Bt=xi(Ze);if(ve)var Dt=D||St;else Ue?Dt=St&&(D||at):Ee?Dt=St&&at&&(D||!vt):Pe?Dt=St&&at&&!vt&&(D||!Bt):vt||Bt?Dt=!1:Dt=D?Ze<=f:Ze<f;Dt?N=qe+1:re=qe}return xn(re,xe)}function Bx(u,f){for(var y=-1,D=u.length,N=0,re=[];++y<D;){var ve=u[y],Ee=f?f(ve):ve;if(!y||!gs(Ee,Pe)){var Pe=Ee;re[N++]=ve===0?0:ve}}return re}function Vx(u){return typeof u=="number"?u:xi(u)?U:+u}function $i(u){if(typeof u=="string")return u;if(Ft(u))return cn(u,$i)+"";if(xi(u))return vx?vx.call(u):"";var f=u+"";return f=="0"&&1/u==-L?"-0":f}function co(u,f,y){var D=-1,N=Vs,re=u.length,ve=!0,Ee=[],Pe=Ee;if(y)ve=!1,N=pl;else if(re>=i){var Ue=f?null:QL(u);if(Ue)return oo(Ue);ve=!1,N=gn,Pe=new iu}else Pe=f?[]:Ee;e:for(;++D<re;){var qe=u[D],Ze=f?f(qe):qe;if(qe=y||qe!==0?qe:0,ve&&Ze===Ze){for(var at=Pe.length;at--;)if(Pe[at]===Ze)continue e;f&&Pe.push(Ze),Ee.push(qe)}else N(Pe,Ze,y)||(Pe!==Ee&&Pe.push(Ze),Ee.push(qe))}return Ee}function Rg(u,f){return f=fo(f,u),u=hw(u,f),u==null||delete u[Hs(Bi(f))]}function Nx(u,f,y,D){return cf(u,f,y(au(u,f)),D)}function gh(u,f,y,D){for(var N=u.length,re=D?N:-1;(D?re--:++re<N)&&f(u[re],re,u););return y?Li(u,D?0:re,D?re+1:N):Li(u,D?re+1:0,D?N:re)}function jx(u,f){var y=u;return y instanceof zt&&(y=y.value()),ml(f,function(D,N){return N.func.apply(N.thisArg,ls([D],N.args))},y)}function kg(u,f,y){var D=u.length;if(D<2)return D?co(u[0]):[];for(var N=-1,re=Y(D);++N<D;)for(var ve=u[N],Ee=-1;++Ee<D;)Ee!=N&&(re[N]=of(re[N]||ve,u[Ee],f,y));return co($r(re,1),f,y)}function Kx(u,f,y){for(var D=-1,N=u.length,re=f.length,ve={};++D<N;){var Ee=D<re?f[D]:n;y(ve,u[D],Ee)}return ve}function Og(u){return qn(u)?u:[]}function Ig(u){return typeof u=="function"?u:ri}function fo(u,f){return Ft(u)?u:qg(u,f)?[u]:vw(on(u))}var UL=Nt;function ho(u,f,y){var D=u.length;return y=y===n?D:y,!f&&y>=D?u:Li(u,f,y)}var Ux=zn||function(u){return Dn.clearTimeout(u)};function zx(u,f){if(f)return u.slice();var y=u.length,D=lt?lt(y):new u.constructor(y);return u.copy(D),D}function Lg(u){var f=new u.constructor(u.byteLength);return new ke(f).set(new ke(u)),f}function zL(u,f){var y=f?Lg(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function qL(u){var f=new u.constructor(u.source,dn.exec(u));return f.lastIndex=u.lastIndex,f}function WL(u){return sf?V(sf.call(u)):{}}function qx(u,f){var y=f?Lg(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function Wx(u,f){if(u!==f){var y=u!==n,D=u===null,N=u===u,re=xi(u),ve=f!==n,Ee=f===null,Pe=f===f,Ue=xi(f);if(!Ee&&!Ue&&!re&&u>f||re&&ve&&Pe&&!Ee&&!Ue||D&&ve&&Pe||!y&&Pe||!N)return 1;if(!D&&!re&&!Ue&&u<f||Ue&&y&&N&&!D&&!re||Ee&&y&&N||!ve&&N||!Pe)return-1}return 0}function HL(u,f,y){for(var D=-1,N=u.criteria,re=f.criteria,ve=N.length,Ee=y.length;++D<ve;){var Pe=Wx(N[D],re[D]);if(Pe){if(D>=Ee)return Pe;var Ue=y[D];return Pe*(Ue=="desc"?-1:1)}}return u.index-f.index}function Hx(u,f,y,D){for(var N=-1,re=u.length,ve=y.length,Ee=-1,Pe=f.length,Ue=Zt(re-ve,0),qe=Y(Pe+Ue),Ze=!D;++Ee<Pe;)qe[Ee]=f[Ee];for(;++N<ve;)(Ze||N<re)&&(qe[y[N]]=u[N]);for(;Ue--;)qe[Ee++]=u[N++];return qe}function Gx(u,f,y,D){for(var N=-1,re=u.length,ve=-1,Ee=y.length,Pe=-1,Ue=f.length,qe=Zt(re-Ee,0),Ze=Y(qe+Ue),at=!D;++N<qe;)Ze[N]=u[N];for(var vt=N;++Pe<Ue;)Ze[vt+Pe]=f[Pe];for(;++ve<Ee;)(at||N<re)&&(Ze[vt+y[ve]]=u[N++]);return Ze}function ei(u,f){var y=-1,D=u.length;for(f||(f=Y(D));++y<D;)f[y]=u[y];return f}function Ws(u,f,y,D){var N=!y;y||(y={});for(var re=-1,ve=f.length;++re<ve;){var Ee=f[re],Pe=D?D(y[Ee],u[Ee],Ee,y,u):n;Pe===n&&(Pe=u[Ee]),N?_a(y,Ee,Pe):af(y,Ee,Pe)}return y}function GL(u,f){return Ws(u,zg(u),f)}function YL(u,f){return Ws(u,ow(u),f)}function vh(u,f){return function(y,D){var N=Ft(y)?Bs:vL,re=f?f():{};return N(y,u,Ct(D,2),re)}}function Cl(u){return Nt(function(f,y){var D=-1,N=y.length,re=N>1?y[N-1]:n,ve=N>2?y[2]:n;for(re=u.length>3&&typeof re=="function"?(N--,re):n,ve&&Vr(y[0],y[1],ve)&&(re=N<3?n:re,N=1),f=V(f);++D<N;){var Ee=y[D];Ee&&u(f,Ee,D,re)}return f})}function Yx(u,f){return function(y,D){if(y==null)return y;if(!ti(y))return u(y,D);for(var N=y.length,re=f?N:-1,ve=V(y);(f?re--:++re<N)&&D(ve[re],re,ve)!==!1;);return y}}function Zx(u){return function(f,y,D){for(var N=-1,re=V(f),ve=D(f),Ee=ve.length;Ee--;){var Pe=ve[u?Ee:++N];if(y(re[Pe],Pe,re)===!1)break}return f}}function ZL(u,f,y){var D=f&S,N=ff(u);function re(){var ve=this&&this!==Dn&&this instanceof re?N:u;return ve.apply(D?y:this,arguments)}return re}function Xx(u){return function(f){f=on(f);var y=Ar(f)?P(f):n,D=y?y[0]:f.charAt(0),N=y?ho(y,1).join(""):f.slice(1);return D[u]()+N}}function El(u){return function(f){return ml(Yw(Gw(f).replace(os,"")),u,"")}}function ff(u){return function(){var f=arguments;switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3]);case 5:return new u(f[0],f[1],f[2],f[3],f[4]);case 6:return new u(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new u(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=wl(u.prototype),D=u.apply(y,f);return _n(D)?D:y}}function XL(u,f,y){var D=ff(u);function N(){for(var re=arguments.length,ve=Y(re),Ee=re,Pe=Sl(N);Ee--;)ve[Ee]=arguments[Ee];var Ue=re<3&&ve[0]!==Pe&&ve[re-1]!==Pe?[]:Jr(ve,Pe);if(re-=Ue.length,re<y)return nw(u,f,yh,N.placeholder,n,ve,Ue,n,n,y-re);var qe=this&&this!==Dn&&this instanceof N?D:u;return Bn(qe,this,ve)}return N}function Jx(u){return function(f,y,D){var N=V(f);if(!ti(f)){var re=Ct(y,3);f=hr(f),y=function(Ee){return re(N[Ee],Ee,N)}}var ve=u(f,y,D);return ve>-1?N[re?f[ve]:ve]:n}}function Qx(u){return Fa(function(f){var y=f.length,D=y,N=Oi.prototype.thru;for(u&&f.reverse();D--;){var re=f[D];if(typeof re!="function")throw new ne(a);if(N&&!ve&&wh(re)=="wrapper")var ve=new Oi([],!0)}for(D=ve?D:y;++D<y;){re=f[D];var Ee=wh(re),Pe=Ee=="wrapper"?Kg(re):n;Pe&&Wg(Pe[0])&&Pe[1]==(K|A|M|H)&&!Pe[4].length&&Pe[9]==1?ve=ve[wh(Pe[0])].apply(ve,Pe[3]):ve=re.length==1&&Wg(re)?ve[Ee]():ve.thru(re)}return function(){var Ue=arguments,qe=Ue[0];if(ve&&Ue.length==1&&Ft(qe))return ve.plant(qe).value();for(var Ze=0,at=y?f[Ze].apply(this,Ue):qe;++Ze<y;)at=f[Ze].call(this,at);return at}})}function yh(u,f,y,D,N,re,ve,Ee,Pe,Ue){var qe=f&K,Ze=f&S,at=f&E,vt=f&(A|k),St=f&le,Bt=at?n:ff(u);function Dt(){for(var jt=arguments.length,Gt=Y(jt),wi=jt;wi--;)Gt[wi]=arguments[wi];if(vt)var Nr=Sl(Dt),Ci=vg(Gt,Nr);if(D&&(Gt=Hx(Gt,D,N,vt)),re&&(Gt=Gx(Gt,re,ve,vt)),jt-=Ci,vt&&jt<Ue){var Wn=Jr(Gt,Nr);return nw(u,f,yh,Dt.placeholder,y,Gt,Wn,Ee,Pe,Ue-jt)}var vs=Ze?y:this,Ia=at?vs[u]:u;return jt=Gt.length,Ee?Gt=v8(Gt,Ee):St&&jt>1&&Gt.reverse(),qe&&Pe<jt&&(Gt.length=Pe),this&&this!==Dn&&this instanceof Dt&&(Ia=Bt||ff(Ia)),Ia.apply(vs,Gt)}return Dt}function ew(u,f){return function(y,D){return SL(y,u,f(D),{})}}function bh(u,f){return function(y,D){var N;if(y===n&&D===n)return f;if(y!==n&&(N=y),D!==n){if(N===n)return D;typeof y=="string"||typeof D=="string"?(y=$i(y),D=$i(D)):(y=Vx(y),D=Vx(D)),N=u(y,D)}return N}}function Bg(u){return Fa(function(f){return f=cn(f,Dr(Ct())),Nt(function(y){var D=this;return u(f,function(N){return Bn(N,D,y)})})})}function $h(u,f){f=f===n?" ":$i(f);var y=f.length;if(y<2)return y?Mg(f,u):f;var D=Mg(f,fn(u/$(f)));return Ar(f)?ho(P(D),0,u).join(""):D.slice(0,u)}function JL(u,f,y,D){var N=f&S,re=ff(u);function ve(){for(var Ee=-1,Pe=arguments.length,Ue=-1,qe=D.length,Ze=Y(qe+Pe),at=this&&this!==Dn&&this instanceof ve?re:u;++Ue<qe;)Ze[Ue]=D[Ue];for(;Pe--;)Ze[Ue++]=arguments[++Ee];return Bn(at,N?y:this,Ze)}return ve}function tw(u){return function(f,y,D){return D&&typeof D!="number"&&Vr(f,y,D)&&(y=D=n),f=Oa(f),y===n?(y=f,f=0):y=Oa(y),D=D===n?f<y?1:-1:Oa(D),LL(f,y,D,u)}}function xh(u){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Vi(f),y=Vi(y)),u(f,y)}}function nw(u,f,y,D,N,re,ve,Ee,Pe,Ue){var qe=f&A,Ze=qe?ve:n,at=qe?n:ve,vt=qe?re:n,St=qe?n:re;f|=qe?M:R,f&=~(qe?R:M),f&C||(f&=-4);var Bt=[u,f,N,vt,Ze,St,at,Ee,Pe,Ue],Dt=y.apply(n,Bt);return Wg(u)&&pw(Dt,Bt),Dt.placeholder=D,mw(Dt,u,f)}function Vg(u){var f=Z[u];return function(y,D){if(y=Vi(y),D=D==null?0:xn(Ot(D),292),D&&vi(y)){var N=(on(y)+"e").split("e"),re=f(N[0]+"e"+(+N[1]+D));return N=(on(re)+"e").split("e"),+(N[0]+"e"+(+N[1]-D))}return f(y)}}var QL=$l&&1/oo(new $l([,-0]))[1]==L?function(u){return new $l(u)}:ov;function rw(u){return function(f){var y=Tr(f);return y==yt?Vn(f):y==Se?c(f):gg(f,u(f))}}function Ma(u,f,y,D,N,re,ve,Ee){var Pe=f&E;if(!Pe&&typeof u!="function")throw new ne(a);var Ue=D?D.length:0;if(Ue||(f&=-97,D=N=n),ve=ve===n?ve:Zt(Ot(ve),0),Ee=Ee===n?Ee:Ot(Ee),Ue-=N?N.length:0,f&R){var qe=D,Ze=N;D=N=n}var at=Pe?n:Kg(u),vt=[u,f,y,D,N,qe,Ze,re,ve,Ee];if(at&&p8(vt,at),u=vt[0],f=vt[1],y=vt[2],D=vt[3],N=vt[4],Ee=vt[9]=vt[9]===n?Pe?0:u.length:Zt(vt[9]-Ue,0),!Ee&&f&(A|k)&&(f&=-25),!f||f==S)var St=ZL(u,f,y);else f==A||f==k?St=XL(u,f,Ee):(f==M||f==(S|M))&&!N.length?St=JL(u,f,y,D):St=yh.apply(n,vt);var Bt=at?Lx:pw;return mw(Bt(St,vt),u,f)}function iw(u,f,y,D){return u===n||gs(u,Oe[y])&&!Be.call(D,y)?f:u}function sw(u,f,y,D,N,re){return _n(u)&&_n(f)&&(re.set(f,u),ph(u,f,n,sw,re),re.delete(f)),u}function e8(u){return pf(u)?n:u}function aw(u,f,y,D,N,re){var ve=y&x,Ee=u.length,Pe=f.length;if(Ee!=Pe&&!(ve&&Pe>Ee))return!1;var Ue=re.get(u),qe=re.get(f);if(Ue&&qe)return Ue==f&&qe==u;var Ze=-1,at=!0,vt=y&w?new iu:n;for(re.set(u,f),re.set(f,u);++Ze<Ee;){var St=u[Ze],Bt=f[Ze];if(D)var Dt=ve?D(Bt,St,Ze,f,u,re):D(St,Bt,Ze,u,f,re);if(Dt!==n){if(Dt)continue;at=!1;break}if(vt){if(!Ns(f,function(jt,Gt){if(!gn(vt,Gt)&&(St===jt||N(St,jt,y,D,re)))return vt.push(Gt)})){at=!1;break}}else if(!(St===Bt||N(St,Bt,y,D,re))){at=!1;break}}return re.delete(u),re.delete(f),at}function t8(u,f,y,D,N,re,ve){switch(y){case wt:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case kt:return!(u.byteLength!=f.byteLength||!re(new ke(u),new ke(f)));case Ae:case Ke:case Jt:return gs(+u,+f);case Ve:return u.name==f.name&&u.message==f.message;case me:case Le:return u==f+"";case yt:var Ee=Vn;case Se:var Pe=D&x;if(Ee||(Ee=oo),u.size!=f.size&&!Pe)return!1;var Ue=ve.get(u);if(Ue)return Ue==f;D|=w,ve.set(u,f);var qe=aw(Ee(u),Ee(f),D,N,re,ve);return ve.delete(u),qe;case it:if(sf)return sf.call(u)==sf.call(f)}return!1}function n8(u,f,y,D,N,re){var ve=y&x,Ee=Ng(u),Pe=Ee.length,Ue=Ng(f),qe=Ue.length;if(Pe!=qe&&!ve)return!1;for(var Ze=Pe;Ze--;){var at=Ee[Ze];if(!(ve?at in f:Be.call(f,at)))return!1}var vt=re.get(u),St=re.get(f);if(vt&&St)return vt==f&&St==u;var Bt=!0;re.set(u,f),re.set(f,u);for(var Dt=ve;++Ze<Pe;){at=Ee[Ze];var jt=u[at],Gt=f[at];if(D)var wi=ve?D(Gt,jt,at,f,u,re):D(jt,Gt,at,u,f,re);if(!(wi===n?jt===Gt||N(jt,Gt,y,D,re):wi)){Bt=!1;break}Dt||(Dt=at=="constructor")}if(Bt&&!Dt){var Nr=u.constructor,Ci=f.constructor;Nr!=Ci&&"constructor"in u&&"constructor"in f&&!(typeof Nr=="function"&&Nr instanceof Nr&&typeof Ci=="function"&&Ci instanceof Ci)&&(Bt=!1)}return re.delete(u),re.delete(f),Bt}function Fa(u){return Gg(dw(u,n,xw),u+"")}function Ng(u){return Dx(u,hr,zg)}function jg(u){return Dx(u,ni,ow)}var Kg=uh?function(u){return uh.get(u)}:ov;function wh(u){for(var f=u.name+"",y=xl[f],D=Be.call(xl,f)?y.length:0;D--;){var N=y[D],re=N.func;if(re==null||re==u)return N.name}return f}function Sl(u){var f=Be.call(X,"placeholder")?X:u;return f.placeholder}function Ct(){var u=X.iteratee||sv;return u=u===sv?Px:u,arguments.length?u(arguments[0],arguments[1]):u}function Ch(u,f){var y=u.__data__;return c8(f)?y[typeof f=="string"?"string":"hash"]:y.map}function Ug(u){for(var f=hr(u),y=f.length;y--;){var D=f[y],N=u[D];f[y]=[D,N,cw(N)]}return f}function ou(u,f){var y=bg(u,f);return Tx(y)?y:n}function r8(u){var f=Be.call(u,Nn),y=u[Nn];try{u[Nn]=n;var D=!0}catch{}var N=Ie.call(u);return D&&(f?u[Nn]=y:delete u[Nn]),N}var zg=ki?function(u){return u==null?[]:(u=V(u),Sr(ki(u),function(f){return $n.call(u,f)}))}:uv,ow=ki?function(u){for(var f=[];u;)ls(f,zg(u)),u=Tt(u);return f}:uv,Tr=Br;(ps&&Tr(new ps(new ArrayBuffer(1)))!=wt||zs&&Tr(new zs)!=yt||uo&&Tr(uo.resolve())!=Ti||$l&&Tr(new $l)!=Se||nf&&Tr(new nf)!=Xe)&&(Tr=function(u){var f=Br(u),y=f==Mt?u.constructor:n,D=y?uu(y):"";if(D)switch(D){case V9:return wt;case N9:return yt;case j9:return Ti;case K9:return Se;case U9:return Xe}return f});function i8(u,f,y){for(var D=-1,N=y.length;++D<N;){var re=y[D],ve=re.size;switch(re.type){case"drop":u+=ve;break;case"dropRight":f-=ve;break;case"take":f=xn(f,u+ve);break;case"takeRight":u=Zt(u,f-ve);break}}return{start:u,end:f}}function s8(u){var f=u.match(Er);return f?f[1].split(il):[]}function uw(u,f,y){f=fo(f,u);for(var D=-1,N=f.length,re=!1;++D<N;){var ve=Hs(f[D]);if(!(re=u!=null&&y(u,ve)))break;u=u[ve]}return re||++D!=N?re:(N=u==null?0:u.length,!!N&&_h(N)&&Ra(ve,N)&&(Ft(u)||lu(u)))}function a8(u){var f=u.length,y=new u.constructor(f);return f&&typeof u[0]=="string"&&Be.call(u,"index")&&(y.index=u.index,y.input=u.input),y}function lw(u){return typeof u.constructor=="function"&&!df(u)?wl(Tt(u)):{}}function o8(u,f,y){var D=u.constructor;switch(f){case kt:return Lg(u);case Ae:case Ke:return new D(+u);case wt:return zL(u,y);case yn:case Cr:case qt:case _t:case Lt:case Wt:case gr:case Zr:case fi:return qx(u,y);case yt:return new D;case Jt:case Le:return new D(u);case me:return qL(u);case Se:return new D;case it:return WL(u)}}function u8(u,f){var y=f.length;if(!y)return u;var D=y-1;return f[D]=(y>1?"& ":"")+f[D],f=f.join(y>2?", ":" "),u.replace(rl,`{
68
- /* [wrapped with `+f+`] */
69
- `)}function l8(u){return Ft(u)||lu(u)||!!(dr&&u&&u[dr])}function Ra(u,f){var y=typeof u;return f=f??B,!!f&&(y=="number"||y!="symbol"&&ks.test(u))&&u>-1&&u%1==0&&u<f}function Vr(u,f,y){if(!_n(y))return!1;var D=typeof f;return(D=="number"?ti(y)&&Ra(f,y.length):D=="string"&&f in y)?gs(y[f],u):!1}function qg(u,f){if(Ft(u))return!1;var y=typeof u;return y=="number"||y=="symbol"||y=="boolean"||u==null||xi(u)?!0:nl.test(u)||!No.test(u)||f!=null&&u in V(f)}function c8(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function Wg(u){var f=wh(u),y=X[f];if(typeof y!="function"||!(f in zt.prototype))return!1;if(u===y)return!0;var D=Kg(y);return!!D&&u===D[0]}function f8(u){return!!ct&&ct in u}var d8=et?ka:lv;function df(u){var f=u&&u.constructor,y=typeof f=="function"&&f.prototype||Oe;return u===y}function cw(u){return u===u&&!_n(u)}function fw(u,f){return function(y){return y==null?!1:y[u]===f&&(f!==n||u in V(y))}}function h8(u){var f=Th(u,function(D){return y.size===d&&y.clear(),D}),y=f.cache;return f}function p8(u,f){var y=u[1],D=f[1],N=y|D,re=N<(S|E|K),ve=D==K&&y==A||D==K&&y==H&&u[7].length<=f[8]||D==(K|H)&&f[7].length<=f[8]&&y==A;if(!(re||ve))return u;D&S&&(u[2]=f[2],N|=y&S?0:C);var Ee=f[3];if(Ee){var Pe=u[3];u[3]=Pe?Hx(Pe,Ee,f[4]):Ee,u[4]=Pe?Jr(u[3],h):f[4]}return Ee=f[5],Ee&&(Pe=u[5],u[5]=Pe?Gx(Pe,Ee,f[6]):Ee,u[6]=Pe?Jr(u[5],h):f[6]),Ee=f[7],Ee&&(u[7]=Ee),D&K&&(u[8]=u[8]==null?f[8]:xn(u[8],f[8])),u[9]==null&&(u[9]=f[9]),u[0]=f[0],u[1]=N,u}function m8(u){var f=[];if(u!=null)for(var y in V(u))f.push(y);return f}function g8(u){return Ie.call(u)}function dw(u,f,y){return f=Zt(f===n?u.length-1:f,0),function(){for(var D=arguments,N=-1,re=Zt(D.length-f,0),ve=Y(re);++N<re;)ve[N]=D[f+N];N=-1;for(var Ee=Y(f+1);++N<f;)Ee[N]=D[N];return Ee[f]=y(ve),Bn(u,this,Ee)}}function hw(u,f){return f.length<2?u:au(u,Li(f,0,-1))}function v8(u,f){for(var y=u.length,D=xn(f.length,y),N=ei(u);D--;){var re=f[D];u[D]=Ra(re,y)?N[re]:n}return u}function Hg(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var pw=gw(Lx),hf=ft||function(u,f){return Dn.setTimeout(u,f)},Gg=gw(NL);function mw(u,f,y){var D=f+"";return Gg(u,u8(D,y8(s8(D),y)))}function gw(u){var f=0,y=0;return function(){var D=Us(),N=we-(D-y);if(y=D,N>0){if(++f>=$e)return arguments[0]}else f=0;return u.apply(n,arguments)}}function Eh(u,f){var y=-1,D=u.length,N=D-1;for(f=f===n?D:f;++y<f;){var re=_g(y,N),ve=u[re];u[re]=u[y],u[y]=ve}return u.length=f,u}var vw=h8(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(is,function(y,D,N,re){f.push(N?re.replace(Xr,"$1"):D||y)}),f});function Hs(u){if(typeof u=="string"||xi(u))return u;var f=u+"";return f=="0"&&1/u==-L?"-0":f}function uu(u){if(u!=null){try{return Je.call(u)}catch{}try{return u+""}catch{}}return""}function y8(u,f){return hn(_e,function(y){var D="_."+y[0];f&y[1]&&!Vs(u,D)&&u.push(D)}),u.sort()}function yw(u){if(u instanceof zt)return u.clone();var f=new Oi(u.__wrapped__,u.__chain__);return f.__actions__=ei(u.__actions__),f.__index__=u.__index__,f.__values__=u.__values__,f}function b8(u,f,y){(y?Vr(u,f,y):f===n)?f=1:f=Zt(Ot(f),0);var D=u==null?0:u.length;if(!D||f<1)return[];for(var N=0,re=0,ve=Y(fn(D/f));N<D;)ve[re++]=Li(u,N,N+=f);return ve}function $8(u){for(var f=-1,y=u==null?0:u.length,D=0,N=[];++f<y;){var re=u[f];re&&(N[D++]=re)}return N}function x8(){var u=arguments.length;if(!u)return[];for(var f=Y(u-1),y=arguments[0],D=u;D--;)f[D-1]=arguments[D];return ls(Ft(y)?ei(y):[y],$r(f,1))}var w8=Nt(function(u,f){return qn(u)?of(u,$r(f,1,qn,!0)):[]}),C8=Nt(function(u,f){var y=Bi(f);return qn(y)&&(y=n),qn(u)?of(u,$r(f,1,qn,!0),Ct(y,2)):[]}),E8=Nt(function(u,f){var y=Bi(f);return qn(y)&&(y=n),qn(u)?of(u,$r(f,1,qn,!0),n,y):[]});function S8(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:Ot(f),Li(u,f<0?0:f,D)):[]}function D8(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:Ot(f),f=D-f,Li(u,0,f<0?0:f)):[]}function A8(u,f){return u&&u.length?gh(u,Ct(f,3),!0,!0):[]}function T8(u,f){return u&&u.length?gh(u,Ct(f,3),!0):[]}function P8(u,f,y,D){var N=u==null?0:u.length;return N?(y&&typeof y!="number"&&Vr(u,f,y)&&(y=0,D=N),xL(u,f,y,D)):[]}function bw(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var N=y==null?0:Ot(y);return N<0&&(N=Zt(D+N,0)),eu(u,Ct(f,3),N)}function $w(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var N=D-1;return y!==n&&(N=Ot(y),N=y<0?Zt(D+N,0):xn(N,D-1)),eu(u,Ct(f,3),N,!0)}function xw(u){var f=u==null?0:u.length;return f?$r(u,1):[]}function _8(u){var f=u==null?0:u.length;return f?$r(u,L):[]}function M8(u,f){var y=u==null?0:u.length;return y?(f=f===n?1:Ot(f),$r(u,f)):[]}function F8(u){for(var f=-1,y=u==null?0:u.length,D={};++f<y;){var N=u[f];D[N[0]]=N[1]}return D}function ww(u){return u&&u.length?u[0]:n}function R8(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var N=y==null?0:Ot(y);return N<0&&(N=Zt(D+N,0)),Da(u,f,N)}function k8(u){var f=u==null?0:u.length;return f?Li(u,0,-1):[]}var O8=Nt(function(u){var f=cn(u,Og);return f.length&&f[0]===u[0]?Sg(f):[]}),I8=Nt(function(u){var f=Bi(u),y=cn(u,Og);return f===Bi(y)?f=n:y.pop(),y.length&&y[0]===u[0]?Sg(y,Ct(f,2)):[]}),L8=Nt(function(u){var f=Bi(u),y=cn(u,Og);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===u[0]?Sg(y,n,f):[]});function B8(u,f){return u==null?"":fs.call(u,f)}function Bi(u){var f=u==null?0:u.length;return f?u[f-1]:n}function V8(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var N=D;return y!==n&&(N=Ot(y),N=N<0?Zt(D+N,0):xn(N,D-1)),f===f?v(u,f,N):eu(u,Jc,N,!0)}function N8(u,f){return u&&u.length?Rx(u,Ot(f)):n}var j8=Nt(Cw);function Cw(u,f){return u&&u.length&&f&&f.length?Pg(u,f):u}function K8(u,f,y){return u&&u.length&&f&&f.length?Pg(u,f,Ct(y,2)):u}function U8(u,f,y){return u&&u.length&&f&&f.length?Pg(u,f,n,y):u}var z8=Fa(function(u,f){var y=u==null?0:u.length,D=xg(u,f);return Ix(u,cn(f,function(N){return Ra(N,y)?+N:N}).sort(Wx)),D});function q8(u,f){var y=[];if(!(u&&u.length))return y;var D=-1,N=[],re=u.length;for(f=Ct(f,3);++D<re;){var ve=u[D];f(ve,D,u)&&(y.push(ve),N.push(D))}return Ix(u,N),y}function Yg(u){return u==null?u:bi.call(u)}function W8(u,f,y){var D=u==null?0:u.length;return D?(y&&typeof y!="number"&&Vr(u,f,y)?(f=0,y=D):(f=f==null?0:Ot(f),y=y===n?D:Ot(y)),Li(u,f,y)):[]}function H8(u,f){return mh(u,f)}function G8(u,f,y){return Fg(u,f,Ct(y,2))}function Y8(u,f){var y=u==null?0:u.length;if(y){var D=mh(u,f);if(D<y&&gs(u[D],f))return D}return-1}function Z8(u,f){return mh(u,f,!0)}function X8(u,f,y){return Fg(u,f,Ct(y,2),!0)}function J8(u,f){var y=u==null?0:u.length;if(y){var D=mh(u,f,!0)-1;if(gs(u[D],f))return D}return-1}function Q8(u){return u&&u.length?Bx(u):[]}function eB(u,f){return u&&u.length?Bx(u,Ct(f,2)):[]}function tB(u){var f=u==null?0:u.length;return f?Li(u,1,f):[]}function nB(u,f,y){return u&&u.length?(f=y||f===n?1:Ot(f),Li(u,0,f<0?0:f)):[]}function rB(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:Ot(f),f=D-f,Li(u,f<0?0:f,D)):[]}function iB(u,f){return u&&u.length?gh(u,Ct(f,3),!1,!0):[]}function sB(u,f){return u&&u.length?gh(u,Ct(f,3)):[]}var aB=Nt(function(u){return co($r(u,1,qn,!0))}),oB=Nt(function(u){var f=Bi(u);return qn(f)&&(f=n),co($r(u,1,qn,!0),Ct(f,2))}),uB=Nt(function(u){var f=Bi(u);return f=typeof f=="function"?f:n,co($r(u,1,qn,!0),n,f)});function lB(u){return u&&u.length?co(u):[]}function cB(u,f){return u&&u.length?co(u,Ct(f,2)):[]}function fB(u,f){return f=typeof f=="function"?f:n,u&&u.length?co(u,n,f):[]}function Zg(u){if(!(u&&u.length))return[];var f=0;return u=Sr(u,function(y){if(qn(y))return f=Zt(y.length,f),!0}),yl(f,function(y){return cn(u,gl(y))})}function Ew(u,f){if(!(u&&u.length))return[];var y=Zg(u);return f==null?y:cn(y,function(D){return Bn(f,n,D)})}var dB=Nt(function(u,f){return qn(u)?of(u,f):[]}),hB=Nt(function(u){return kg(Sr(u,qn))}),pB=Nt(function(u){var f=Bi(u);return qn(f)&&(f=n),kg(Sr(u,qn),Ct(f,2))}),mB=Nt(function(u){var f=Bi(u);return f=typeof f=="function"?f:n,kg(Sr(u,qn),n,f)}),gB=Nt(Zg);function vB(u,f){return Kx(u||[],f||[],af)}function yB(u,f){return Kx(u||[],f||[],cf)}var bB=Nt(function(u){var f=u.length,y=f>1?u[f-1]:n;return y=typeof y=="function"?(u.pop(),y):n,Ew(u,y)});function Sw(u){var f=X(u);return f.__chain__=!0,f}function $B(u,f){return f(u),u}function Sh(u,f){return f(u)}var xB=Fa(function(u){var f=u.length,y=f?u[0]:0,D=this.__wrapped__,N=function(re){return xg(re,u)};return f>1||this.__actions__.length||!(D instanceof zt)||!Ra(y)?this.thru(N):(D=D.slice(y,+y+(f?1:0)),D.__actions__.push({func:Sh,args:[N],thisArg:n}),new Oi(D,this.__chain__).thru(function(re){return f&&!re.length&&re.push(n),re}))});function wB(){return Sw(this)}function CB(){return new Oi(this.value(),this.__chain__)}function EB(){this.__values__===n&&(this.__values__=Vw(this.value()));var u=this.__index__>=this.__values__.length,f=u?n:this.__values__[this.__index__++];return{done:u,value:f}}function SB(){return this}function DB(u){for(var f,y=this;y instanceof ch;){var D=yw(y);D.__index__=0,D.__values__=n,f?N.__wrapped__=D:f=D;var N=D;y=y.__wrapped__}return N.__wrapped__=u,f}function AB(){var u=this.__wrapped__;if(u instanceof zt){var f=u;return this.__actions__.length&&(f=new zt(this)),f=f.reverse(),f.__actions__.push({func:Sh,args:[Yg],thisArg:n}),new Oi(f,this.__chain__)}return this.thru(Yg)}function TB(){return jx(this.__wrapped__,this.__actions__)}var PB=vh(function(u,f,y){Be.call(u,y)?++u[y]:_a(u,y,1)});function _B(u,f,y){var D=Ft(u)?Sa:$L;return y&&Vr(u,f,y)&&(f=n),D(u,Ct(f,3))}function MB(u,f){var y=Ft(u)?Sr:Ex;return y(u,Ct(f,3))}var FB=Jx(bw),RB=Jx($w);function kB(u,f){return $r(Dh(u,f),1)}function OB(u,f){return $r(Dh(u,f),L)}function IB(u,f,y){return y=y===n?1:Ot(y),$r(Dh(u,f),y)}function Dw(u,f){var y=Ft(u)?hn:lo;return y(u,Ct(f,3))}function Aw(u,f){var y=Ft(u)?cr:Cx;return y(u,Ct(f,3))}var LB=vh(function(u,f,y){Be.call(u,y)?u[y].push(f):_a(u,y,[f])});function BB(u,f,y,D){u=ti(u)?u:Al(u),y=y&&!D?Ot(y):0;var N=u.length;return y<0&&(y=Zt(N+y,0)),Mh(u)?y<=N&&u.indexOf(f,y)>-1:!!N&&Da(u,f,y)>-1}var VB=Nt(function(u,f,y){var D=-1,N=typeof f=="function",re=ti(u)?Y(u.length):[];return lo(u,function(ve){re[++D]=N?Bn(f,ve,y):uf(ve,f,y)}),re}),NB=vh(function(u,f,y){_a(u,y,f)});function Dh(u,f){var y=Ft(u)?cn:_x;return y(u,Ct(f,3))}function jB(u,f,y,D){return u==null?[]:(Ft(f)||(f=f==null?[]:[f]),y=D?n:y,Ft(y)||(y=y==null?[]:[y]),kx(u,f,y))}var KB=vh(function(u,f,y){u[y?0:1].push(f)},function(){return[[],[]]});function UB(u,f,y){var D=Ft(u)?ml:Qc,N=arguments.length<3;return D(u,Ct(f,4),y,N,lo)}function zB(u,f,y){var D=Ft(u)?Xo:Qc,N=arguments.length<3;return D(u,Ct(f,4),y,N,Cx)}function qB(u,f){var y=Ft(u)?Sr:Ex;return y(u,Ph(Ct(f,3)))}function WB(u){var f=Ft(u)?bx:BL;return f(u)}function HB(u,f,y){(y?Vr(u,f,y):f===n)?f=1:f=Ot(f);var D=Ft(u)?mL:VL;return D(u,f)}function GB(u){var f=Ft(u)?gL:jL;return f(u)}function YB(u){if(u==null)return 0;if(ti(u))return Mh(u)?$(u):u.length;var f=Tr(u);return f==yt||f==Se?u.size:Ag(u).length}function ZB(u,f,y){var D=Ft(u)?Ns:KL;return y&&Vr(u,f,y)&&(f=n),D(u,Ct(f,3))}var XB=Nt(function(u,f){if(u==null)return[];var y=f.length;return y>1&&Vr(u,f[0],f[1])?f=[]:y>2&&Vr(f[0],f[1],f[2])&&(f=[f[0]]),kx(u,$r(f,1),[])}),Ah=br||function(){return Dn.Date.now()};function JB(u,f){if(typeof f!="function")throw new ne(a);return u=Ot(u),function(){if(--u<1)return f.apply(this,arguments)}}function Tw(u,f,y){return f=y?n:f,f=u&&f==null?u.length:f,Ma(u,K,n,n,n,n,f)}function Pw(u,f){var y;if(typeof f!="function")throw new ne(a);return u=Ot(u),function(){return--u>0&&(y=f.apply(this,arguments)),u<=1&&(f=n),y}}var Xg=Nt(function(u,f,y){var D=S;if(y.length){var N=Jr(y,Sl(Xg));D|=M}return Ma(u,D,f,y,N)}),_w=Nt(function(u,f,y){var D=S|E;if(y.length){var N=Jr(y,Sl(_w));D|=M}return Ma(f,D,u,y,N)});function Mw(u,f,y){f=y?n:f;var D=Ma(u,A,n,n,n,n,n,f);return D.placeholder=Mw.placeholder,D}function Fw(u,f,y){f=y?n:f;var D=Ma(u,k,n,n,n,n,n,f);return D.placeholder=Fw.placeholder,D}function Rw(u,f,y){var D,N,re,ve,Ee,Pe,Ue=0,qe=!1,Ze=!1,at=!0;if(typeof u!="function")throw new ne(a);f=Vi(f)||0,_n(y)&&(qe=!!y.leading,Ze="maxWait"in y,re=Ze?Zt(Vi(y.maxWait)||0,f):re,at="trailing"in y?!!y.trailing:at);function vt(Wn){var vs=D,Ia=N;return D=N=n,Ue=Wn,ve=u.apply(Ia,vs),ve}function St(Wn){return Ue=Wn,Ee=hf(jt,f),qe?vt(Wn):ve}function Bt(Wn){var vs=Wn-Pe,Ia=Wn-Ue,Jw=f-vs;return Ze?xn(Jw,re-Ia):Jw}function Dt(Wn){var vs=Wn-Pe,Ia=Wn-Ue;return Pe===n||vs>=f||vs<0||Ze&&Ia>=re}function jt(){var Wn=Ah();if(Dt(Wn))return Gt(Wn);Ee=hf(jt,Bt(Wn))}function Gt(Wn){return Ee=n,at&&D?vt(Wn):(D=N=n,ve)}function wi(){Ee!==n&&Ux(Ee),Ue=0,D=Pe=N=Ee=n}function Nr(){return Ee===n?ve:Gt(Ah())}function Ci(){var Wn=Ah(),vs=Dt(Wn);if(D=arguments,N=this,Pe=Wn,vs){if(Ee===n)return St(Pe);if(Ze)return Ux(Ee),Ee=hf(jt,f),vt(Pe)}return Ee===n&&(Ee=hf(jt,f)),ve}return Ci.cancel=wi,Ci.flush=Nr,Ci}var QB=Nt(function(u,f){return wx(u,1,f)}),eV=Nt(function(u,f,y){return wx(u,Vi(f)||0,y)});function tV(u){return Ma(u,le)}function Th(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new ne(a);var y=function(){var D=arguments,N=f?f.apply(this,D):D[0],re=y.cache;if(re.has(N))return re.get(N);var ve=u.apply(this,D);return y.cache=re.set(N,ve)||re,ve};return y.cache=new(Th.Cache||Pa),y}Th.Cache=Pa;function Ph(u){if(typeof u!="function")throw new ne(a);return function(){var f=arguments;switch(f.length){case 0:return!u.call(this);case 1:return!u.call(this,f[0]);case 2:return!u.call(this,f[0],f[1]);case 3:return!u.call(this,f[0],f[1],f[2])}return!u.apply(this,f)}}function nV(u){return Pw(2,u)}var rV=UL(function(u,f){f=f.length==1&&Ft(f[0])?cn(f[0],Dr(Ct())):cn($r(f,1),Dr(Ct()));var y=f.length;return Nt(function(D){for(var N=-1,re=xn(D.length,y);++N<re;)D[N]=f[N].call(this,D[N]);return Bn(u,this,D)})}),Jg=Nt(function(u,f){var y=Jr(f,Sl(Jg));return Ma(u,M,n,f,y)}),kw=Nt(function(u,f){var y=Jr(f,Sl(kw));return Ma(u,R,n,f,y)}),iV=Fa(function(u,f){return Ma(u,H,n,n,n,f)});function sV(u,f){if(typeof u!="function")throw new ne(a);return f=f===n?f:Ot(f),Nt(u,f)}function aV(u,f){if(typeof u!="function")throw new ne(a);return f=f==null?0:Zt(Ot(f),0),Nt(function(y){var D=y[f],N=ho(y,0,f);return D&&ls(N,D),Bn(u,this,N)})}function oV(u,f,y){var D=!0,N=!0;if(typeof u!="function")throw new ne(a);return _n(y)&&(D="leading"in y?!!y.leading:D,N="trailing"in y?!!y.trailing:N),Rw(u,f,{leading:D,maxWait:f,trailing:N})}function uV(u){return Tw(u,1)}function lV(u,f){return Jg(Ig(f),u)}function cV(){if(!arguments.length)return[];var u=arguments[0];return Ft(u)?u:[u]}function fV(u){return Ii(u,b)}function dV(u,f){return f=typeof f=="function"?f:n,Ii(u,b,f)}function hV(u){return Ii(u,m|b)}function pV(u,f){return f=typeof f=="function"?f:n,Ii(u,m|b,f)}function mV(u,f){return f==null||xx(u,f,hr(f))}function gs(u,f){return u===f||u!==u&&f!==f}var gV=xh(Eg),vV=xh(function(u,f){return u>=f}),lu=Ax(function(){return arguments}())?Ax:function(u){return jn(u)&&Be.call(u,"callee")&&!$n.call(u,"callee")},Ft=Y.isArray,yV=Ea?Dr(Ea):DL;function ti(u){return u!=null&&_h(u.length)&&!ka(u)}function qn(u){return jn(u)&&ti(u)}function bV(u){return u===!0||u===!1||jn(u)&&Br(u)==Ae}var po=cs||lv,$V=ih?Dr(ih):AL;function xV(u){return jn(u)&&u.nodeType===1&&!pf(u)}function wV(u){if(u==null)return!0;if(ti(u)&&(Ft(u)||typeof u=="string"||typeof u.splice=="function"||po(u)||Dl(u)||lu(u)))return!u.length;var f=Tr(u);if(f==yt||f==Se)return!u.size;if(df(u))return!Ag(u).length;for(var y in u)if(Be.call(u,y))return!1;return!0}function CV(u,f){return lf(u,f)}function EV(u,f,y){y=typeof y=="function"?y:n;var D=y?y(u,f):n;return D===n?lf(u,f,n,y):!!D}function Qg(u){if(!jn(u))return!1;var f=Br(u);return f==Ve||f==We||typeof u.message=="string"&&typeof u.name=="string"&&!pf(u)}function SV(u){return typeof u=="number"&&vi(u)}function ka(u){if(!_n(u))return!1;var f=Br(u);return f==Te||f==tt||f==Ge||f==mt}function Ow(u){return typeof u=="number"&&u==Ot(u)}function _h(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=B}function _n(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function jn(u){return u!=null&&typeof u=="object"}var Iw=sh?Dr(sh):PL;function DV(u,f){return u===f||Dg(u,f,Ug(f))}function AV(u,f,y){return y=typeof y=="function"?y:n,Dg(u,f,Ug(f),y)}function TV(u){return Lw(u)&&u!=+u}function PV(u){if(d8(u))throw new ce(s);return Tx(u)}function _V(u){return u===null}function MV(u){return u==null}function Lw(u){return typeof u=="number"||jn(u)&&Br(u)==Jt}function pf(u){if(!jn(u)||Br(u)!=Mt)return!1;var f=Tt(u);if(f===null)return!0;var y=Be.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&Je.call(y)==be}var ev=Zc?Dr(Zc):_L;function FV(u){return Ow(u)&&u>=-B&&u<=B}var Bw=ao?Dr(ao):ML;function Mh(u){return typeof u=="string"||!Ft(u)&&jn(u)&&Br(u)==Le}function xi(u){return typeof u=="symbol"||jn(u)&&Br(u)==it}var Dl=us?Dr(us):FL;function RV(u){return u===n}function kV(u){return jn(u)&&Tr(u)==Xe}function OV(u){return jn(u)&&Br(u)==gt}var IV=xh(Tg),LV=xh(function(u,f){return u<=f});function Vw(u){if(!u)return[];if(ti(u))return Mh(u)?P(u):ei(u);if(Jn&&u[Jn])return Ks(u[Jn]());var f=Tr(u),y=f==yt?Vn:f==Se?oo:Al;return y(u)}function Oa(u){if(!u)return u===0?u:0;if(u=Vi(u),u===L||u===-L){var f=u<0?-1:1;return f*he}return u===u?u:0}function Ot(u){var f=Oa(u),y=f%1;return f===f?y?f-y:f:0}function Nw(u){return u?su(Ot(u),0,te):0}function Vi(u){if(typeof u=="number")return u;if(xi(u))return U;if(_n(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=_n(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=oh(u);var y=hi.test(u);return y||jo.test(u)?sr(u.slice(2),y?2:8):as.test(u)?U:+u}function jw(u){return Ws(u,ni(u))}function BV(u){return u?su(Ot(u),-B,B):u===0?u:0}function on(u){return u==null?"":$i(u)}var VV=Cl(function(u,f){if(df(f)||ti(f)){Ws(f,hr(f),u);return}for(var y in f)Be.call(f,y)&&af(u,y,f[y])}),Kw=Cl(function(u,f){Ws(f,ni(f),u)}),Fh=Cl(function(u,f,y,D){Ws(f,ni(f),u,D)}),NV=Cl(function(u,f,y,D){Ws(f,hr(f),u,D)}),jV=Fa(xg);function KV(u,f){var y=wl(u);return f==null?y:$x(y,f)}var UV=Nt(function(u,f){u=V(u);var y=-1,D=f.length,N=D>2?f[2]:n;for(N&&Vr(f[0],f[1],N)&&(D=1);++y<D;)for(var re=f[y],ve=ni(re),Ee=-1,Pe=ve.length;++Ee<Pe;){var Ue=ve[Ee],qe=u[Ue];(qe===n||gs(qe,Oe[Ue])&&!Be.call(u,Ue))&&(u[Ue]=re[Ue])}return u}),zV=Nt(function(u){return u.push(n,sw),Bn(Uw,n,u)});function qV(u,f){return Xc(u,Ct(f,3),qs)}function WV(u,f){return Xc(u,Ct(f,3),Cg)}function HV(u,f){return u==null?u:wg(u,Ct(f,3),ni)}function GV(u,f){return u==null?u:Sx(u,Ct(f,3),ni)}function YV(u,f){return u&&qs(u,Ct(f,3))}function ZV(u,f){return u&&Cg(u,Ct(f,3))}function XV(u){return u==null?[]:hh(u,hr(u))}function JV(u){return u==null?[]:hh(u,ni(u))}function tv(u,f,y){var D=u==null?n:au(u,f);return D===n?y:D}function QV(u,f){return u!=null&&uw(u,f,wL)}function nv(u,f){return u!=null&&uw(u,f,CL)}var eN=ew(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Ie.call(f)),u[f]=y},iv(ri)),tN=ew(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Ie.call(f)),Be.call(u,f)?u[f].push(y):u[f]=[y]},Ct),nN=Nt(uf);function hr(u){return ti(u)?yx(u):Ag(u)}function ni(u){return ti(u)?yx(u,!0):RL(u)}function rN(u,f){var y={};return f=Ct(f,3),qs(u,function(D,N,re){_a(y,f(D,N,re),D)}),y}function iN(u,f){var y={};return f=Ct(f,3),qs(u,function(D,N,re){_a(y,N,f(D,N,re))}),y}var sN=Cl(function(u,f,y){ph(u,f,y)}),Uw=Cl(function(u,f,y,D){ph(u,f,y,D)}),aN=Fa(function(u,f){var y={};if(u==null)return y;var D=!1;f=cn(f,function(re){return re=fo(re,u),D||(D=re.length>1),re}),Ws(u,jg(u),y),D&&(y=Ii(y,m|g|b,e8));for(var N=f.length;N--;)Rg(y,f[N]);return y});function oN(u,f){return zw(u,Ph(Ct(f)))}var uN=Fa(function(u,f){return u==null?{}:OL(u,f)});function zw(u,f){if(u==null)return{};var y=cn(jg(u),function(D){return[D]});return f=Ct(f),Ox(u,y,function(D,N){return f(D,N[0])})}function lN(u,f,y){f=fo(f,u);var D=-1,N=f.length;for(N||(N=1,u=n);++D<N;){var re=u==null?n:u[Hs(f[D])];re===n&&(D=N,re=y),u=ka(re)?re.call(u):re}return u}function cN(u,f,y){return u==null?u:cf(u,f,y)}function fN(u,f,y,D){return D=typeof D=="function"?D:n,u==null?u:cf(u,f,y,D)}var qw=rw(hr),Ww=rw(ni);function dN(u,f,y){var D=Ft(u),N=D||po(u)||Dl(u);if(f=Ct(f,4),y==null){var re=u&&u.constructor;N?y=D?new re:[]:_n(u)?y=ka(re)?wl(Tt(u)):{}:y={}}return(N?hn:qs)(u,function(ve,Ee,Pe){return f(y,ve,Ee,Pe)}),y}function hN(u,f){return u==null?!0:Rg(u,f)}function pN(u,f,y){return u==null?u:Nx(u,f,Ig(y))}function mN(u,f,y,D){return D=typeof D=="function"?D:n,u==null?u:Nx(u,f,Ig(y),D)}function Al(u){return u==null?[]:ef(u,hr(u))}function gN(u){return u==null?[]:ef(u,ni(u))}function vN(u,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Vi(y),y=y===y?y:0),f!==n&&(f=Vi(f),f=f===f?f:0),su(Vi(u),f,y)}function yN(u,f,y){return f=Oa(f),y===n?(y=f,f=0):y=Oa(y),u=Vi(u),EL(u,f,y)}function bN(u,f,y){if(y&&typeof y!="boolean"&&Vr(u,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof u=="boolean"&&(y=u,u=n)),u===n&&f===n?(u=0,f=1):(u=Oa(u),f===n?(f=u,u=0):f=Oa(f)),u>f){var D=u;u=f,f=D}if(y||u%1||f%1){var N=hs();return xn(u+N*(f-u+bn("1e-"+((N+"").length-1))),f)}return _g(u,f)}var $N=El(function(u,f,y){return f=f.toLowerCase(),u+(y?Hw(f):f)});function Hw(u){return rv(on(u).toLowerCase())}function Gw(u){return u=on(u),u&&u.replace(pi,yg).replace(xa,"")}function xN(u,f,y){u=on(u),f=$i(f);var D=u.length;y=y===n?D:su(Ot(y),0,D);var N=y;return y-=f.length,y>=0&&u.slice(y,N)==f}function wN(u){return u=on(u),u&&Nc.test(u)?u.replace(di,Aa):u}function CN(u){return u=on(u),u&&bt.test(u)?u.replace(ss,"\\$&"):u}var EN=El(function(u,f,y){return u+(y?"-":"")+f.toLowerCase()}),SN=El(function(u,f,y){return u+(y?" ":"")+f.toLowerCase()}),DN=Xx("toLowerCase");function AN(u,f,y){u=on(u),f=Ot(f);var D=f?$(u):0;if(!f||D>=f)return u;var N=(f-D)/2;return $h(Qr(N),y)+u+$h(fn(N),y)}function TN(u,f,y){u=on(u),f=Ot(f);var D=f?$(u):0;return f&&D<f?u+$h(f-D,y):u}function PN(u,f,y){u=on(u),f=Ot(f);var D=f?$(u):0;return f&&D<f?$h(f-D,y)+u:u}function _N(u,f,y){return y||f==null?f=0:f&&(f=+f),yi(on(u).replace(Sn,""),f||0)}function MN(u,f,y){return(y?Vr(u,f,y):f===n)?f=1:f=Ot(f),Mg(on(u),f)}function FN(){var u=arguments,f=on(u[0]);return u.length<3?f:f.replace(u[1],u[2])}var RN=El(function(u,f,y){return u+(y?"_":"")+f.toLowerCase()});function kN(u,f,y){return y&&typeof y!="number"&&Vr(u,f,y)&&(f=y=n),y=y===n?te:y>>>0,y?(u=on(u),u&&(typeof f=="string"||f!=null&&!ev(f))&&(f=$i(f),!f&&Ar(u))?ho(P(u),0,y):u.split(f,y)):[]}var ON=El(function(u,f,y){return u+(y?" ":"")+rv(f)});function IN(u,f,y){return u=on(u),y=y==null?0:su(Ot(y),0,u.length),f=$i(f),u.slice(y,y+f.length)==f}function LN(u,f,y){var D=X.templateSettings;y&&Vr(u,f,y)&&(f=n),u=on(u),f=Fh({},f,D,iw);var N=Fh({},f.imports,D.imports,iw),re=hr(N),ve=ef(N,re),Ee,Pe,Ue=0,qe=f.interpolate||Ln,Ze="__p += '",at=j((f.escape||Ln).source+"|"+qe.source+"|"+(qe===tl?st:Ln).source+"|"+(f.evaluate||Ln).source+"|$","g"),vt="//# sourceURL="+(Be.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ca+"]")+`
70
- `;u.replace(at,function(Dt,jt,Gt,wi,Nr,Ci){return Gt||(Gt=wi),Ze+=u.slice(Ue,Ci).replace(no,gi),jt&&(Ee=!0,Ze+=`' +
71
- __e(`+jt+`) +
72
- '`),Nr&&(Pe=!0,Ze+=`';
73
- `+Nr+`;
74
- __p += '`),Gt&&(Ze+=`' +
75
- ((__t = (`+Gt+`)) == null ? '' : __t) +
76
- '`),Ue=Ci+Dt.length,Dt}),Ze+=`';
77
- `;var St=Be.call(f,"variable")&&f.variable;if(!St)Ze=`with (obj) {
78
- `+Ze+`
79
- }
80
- `;else if(Kc.test(St))throw new ce(o);Ze=(Pe?Ze.replace(kr,""):Ze).replace(Rs,"$1").replace(Vo,"$1;"),Ze="function("+(St||"obj")+`) {
81
- `+(St?"":`obj || (obj = {});
82
- `)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(Pe?`, __j = Array.prototype.join;
83
- function print() { __p += __j.call(arguments, '') }
84
- `:`;
85
- `)+Ze+`return __p
86
- }`;var Bt=Zw(function(){return q(re,vt+"return "+Ze).apply(n,ve)});if(Bt.source=Ze,Qg(Bt))throw Bt;return Bt}function BN(u){return on(u).toLowerCase()}function VN(u){return on(u).toUpperCase()}function NN(u,f,y){if(u=on(u),u&&(y||f===n))return oh(u);if(!u||!(f=$i(f)))return u;var D=P(u),N=P(f),re=bl(D,N),ve=fr(D,N)+1;return ho(D,re,ve).join("")}function jN(u,f,y){if(u=on(u),u&&(y||f===n))return u.slice(0,_(u)+1);if(!u||!(f=$i(f)))return u;var D=P(u),N=fr(D,P(f))+1;return ho(D,0,N).join("")}function KN(u,f,y){if(u=on(u),u&&(y||f===n))return u.replace(Sn,"");if(!u||!(f=$i(f)))return u;var D=P(u),N=bl(D,P(f));return ho(D,N).join("")}function UN(u,f){var y=ae,D=I;if(_n(f)){var N="separator"in f?f.separator:N;y="length"in f?Ot(f.length):y,D="omission"in f?$i(f.omission):D}u=on(u);var re=u.length;if(Ar(u)){var ve=P(u);re=ve.length}if(y>=re)return u;var Ee=y-$(D);if(Ee<1)return D;var Pe=ve?ho(ve,0,Ee).join(""):u.slice(0,Ee);if(N===n)return Pe+D;if(ve&&(Ee+=Pe.length-Ee),ev(N)){if(u.slice(Ee).search(N)){var Ue,qe=Pe;for(N.global||(N=j(N.source,on(dn.exec(N))+"g")),N.lastIndex=0;Ue=N.exec(qe);)var Ze=Ue.index;Pe=Pe.slice(0,Ze===n?Ee:Ze)}}else if(u.indexOf($i(N),Ee)!=Ee){var at=Pe.lastIndexOf(N);at>-1&&(Pe=Pe.slice(0,at))}return Pe+D}function zN(u){return u=on(u),u&&ha.test(u)?u.replace($t,z):u}var qN=El(function(u,f,y){return u+(y?" ":"")+f.toUpperCase()}),rv=Xx("toUpperCase");function Yw(u,f,y){return u=on(u),f=y?n:f,f===n?tf(u)?ye(u):mg(u):u.match(f)||[]}var Zw=Nt(function(u,f){try{return Bn(u,n,f)}catch(y){return Qg(y)?y:new ce(y)}}),WN=Fa(function(u,f){return hn(f,function(y){y=Hs(y),_a(u,y,Xg(u[y],u))}),u});function HN(u){var f=u==null?0:u.length,y=Ct();return u=f?cn(u,function(D){if(typeof D[1]!="function")throw new ne(a);return[y(D[0]),D[1]]}):[],Nt(function(D){for(var N=-1;++N<f;){var re=u[N];if(Bn(re[0],this,D))return Bn(re[1],this,D)}})}function GN(u){return bL(Ii(u,m))}function iv(u){return function(){return u}}function YN(u,f){return u==null||u!==u?f:u}var ZN=Qx(),XN=Qx(!0);function ri(u){return u}function sv(u){return Px(typeof u=="function"?u:Ii(u,m))}function JN(u){return Mx(Ii(u,m))}function QN(u,f){return Fx(u,Ii(f,m))}var ej=Nt(function(u,f){return function(y){return uf(y,u,f)}}),tj=Nt(function(u,f){return function(y){return uf(u,y,f)}});function av(u,f,y){var D=hr(f),N=hh(f,D);y==null&&!(_n(f)&&(N.length||!D.length))&&(y=f,f=u,u=this,N=hh(f,hr(f)));var re=!(_n(y)&&"chain"in y)||!!y.chain,ve=ka(u);return hn(N,function(Ee){var Pe=f[Ee];u[Ee]=Pe,ve&&(u.prototype[Ee]=function(){var Ue=this.__chain__;if(re||Ue){var qe=u(this.__wrapped__),Ze=qe.__actions__=ei(this.__actions__);return Ze.push({func:Pe,args:arguments,thisArg:u}),qe.__chain__=Ue,qe}return Pe.apply(u,ls([this.value()],arguments))})}),u}function nj(){return Dn._===this&&(Dn._=ue),this}function ov(){}function rj(u){return u=Ot(u),Nt(function(f){return Rx(f,u)})}var ij=Bg(cn),sj=Bg(Sa),aj=Bg(Ns);function Xw(u){return qg(u)?gl(Hs(u)):IL(u)}function oj(u){return function(f){return u==null?n:au(u,f)}}var uj=tw(),lj=tw(!0);function uv(){return[]}function lv(){return!1}function cj(){return{}}function fj(){return""}function dj(){return!0}function hj(u,f){if(u=Ot(u),u<1||u>B)return[];var y=te,D=xn(u,te);f=Ct(f),u-=te;for(var N=yl(D,f);++y<u;)f(y);return N}function pj(u){return Ft(u)?cn(u,Hs):xi(u)?[u]:ei(vw(on(u)))}function mj(u){var f=++ot;return on(u)+f}var gj=bh(function(u,f){return u+f},0),vj=Vg("ceil"),yj=bh(function(u,f){return u/f},1),bj=Vg("floor");function $j(u){return u&&u.length?dh(u,ri,Eg):n}function xj(u,f){return u&&u.length?dh(u,Ct(f,2),Eg):n}function wj(u){return tu(u,ri)}function Cj(u,f){return tu(u,Ct(f,2))}function Ej(u){return u&&u.length?dh(u,ri,Tg):n}function Sj(u,f){return u&&u.length?dh(u,Ct(f,2),Tg):n}var Dj=bh(function(u,f){return u*f},1),Aj=Vg("round"),Tj=bh(function(u,f){return u-f},0);function Pj(u){return u&&u.length?js(u,ri):0}function _j(u,f){return u&&u.length?js(u,Ct(f,2)):0}return X.after=JB,X.ary=Tw,X.assign=VV,X.assignIn=Kw,X.assignInWith=Fh,X.assignWith=NV,X.at=jV,X.before=Pw,X.bind=Xg,X.bindAll=WN,X.bindKey=_w,X.castArray=cV,X.chain=Sw,X.chunk=b8,X.compact=$8,X.concat=x8,X.cond=HN,X.conforms=GN,X.constant=iv,X.countBy=PB,X.create=KV,X.curry=Mw,X.curryRight=Fw,X.debounce=Rw,X.defaults=UV,X.defaultsDeep=zV,X.defer=QB,X.delay=eV,X.difference=w8,X.differenceBy=C8,X.differenceWith=E8,X.drop=S8,X.dropRight=D8,X.dropRightWhile=A8,X.dropWhile=T8,X.fill=P8,X.filter=MB,X.flatMap=kB,X.flatMapDeep=OB,X.flatMapDepth=IB,X.flatten=xw,X.flattenDeep=_8,X.flattenDepth=M8,X.flip=tV,X.flow=ZN,X.flowRight=XN,X.fromPairs=F8,X.functions=XV,X.functionsIn=JV,X.groupBy=LB,X.initial=k8,X.intersection=O8,X.intersectionBy=I8,X.intersectionWith=L8,X.invert=eN,X.invertBy=tN,X.invokeMap=VB,X.iteratee=sv,X.keyBy=NB,X.keys=hr,X.keysIn=ni,X.map=Dh,X.mapKeys=rN,X.mapValues=iN,X.matches=JN,X.matchesProperty=QN,X.memoize=Th,X.merge=sN,X.mergeWith=Uw,X.method=ej,X.methodOf=tj,X.mixin=av,X.negate=Ph,X.nthArg=rj,X.omit=aN,X.omitBy=oN,X.once=nV,X.orderBy=jB,X.over=ij,X.overArgs=rV,X.overEvery=sj,X.overSome=aj,X.partial=Jg,X.partialRight=kw,X.partition=KB,X.pick=uN,X.pickBy=zw,X.property=Xw,X.propertyOf=oj,X.pull=j8,X.pullAll=Cw,X.pullAllBy=K8,X.pullAllWith=U8,X.pullAt=z8,X.range=uj,X.rangeRight=lj,X.rearg=iV,X.reject=qB,X.remove=q8,X.rest=sV,X.reverse=Yg,X.sampleSize=HB,X.set=cN,X.setWith=fN,X.shuffle=GB,X.slice=W8,X.sortBy=XB,X.sortedUniq=Q8,X.sortedUniqBy=eB,X.split=kN,X.spread=aV,X.tail=tB,X.take=nB,X.takeRight=rB,X.takeRightWhile=iB,X.takeWhile=sB,X.tap=$B,X.throttle=oV,X.thru=Sh,X.toArray=Vw,X.toPairs=qw,X.toPairsIn=Ww,X.toPath=pj,X.toPlainObject=jw,X.transform=dN,X.unary=uV,X.union=aB,X.unionBy=oB,X.unionWith=uB,X.uniq=lB,X.uniqBy=cB,X.uniqWith=fB,X.unset=hN,X.unzip=Zg,X.unzipWith=Ew,X.update=pN,X.updateWith=mN,X.values=Al,X.valuesIn=gN,X.without=dB,X.words=Yw,X.wrap=lV,X.xor=hB,X.xorBy=pB,X.xorWith=mB,X.zip=gB,X.zipObject=vB,X.zipObjectDeep=yB,X.zipWith=bB,X.entries=qw,X.entriesIn=Ww,X.extend=Kw,X.extendWith=Fh,av(X,X),X.add=gj,X.attempt=Zw,X.camelCase=$N,X.capitalize=Hw,X.ceil=vj,X.clamp=vN,X.clone=fV,X.cloneDeep=hV,X.cloneDeepWith=pV,X.cloneWith=dV,X.conformsTo=mV,X.deburr=Gw,X.defaultTo=YN,X.divide=yj,X.endsWith=xN,X.eq=gs,X.escape=wN,X.escapeRegExp=CN,X.every=_B,X.find=FB,X.findIndex=bw,X.findKey=qV,X.findLast=RB,X.findLastIndex=$w,X.findLastKey=WV,X.floor=bj,X.forEach=Dw,X.forEachRight=Aw,X.forIn=HV,X.forInRight=GV,X.forOwn=YV,X.forOwnRight=ZV,X.get=tv,X.gt=gV,X.gte=vV,X.has=QV,X.hasIn=nv,X.head=ww,X.identity=ri,X.includes=BB,X.indexOf=R8,X.inRange=yN,X.invoke=nN,X.isArguments=lu,X.isArray=Ft,X.isArrayBuffer=yV,X.isArrayLike=ti,X.isArrayLikeObject=qn,X.isBoolean=bV,X.isBuffer=po,X.isDate=$V,X.isElement=xV,X.isEmpty=wV,X.isEqual=CV,X.isEqualWith=EV,X.isError=Qg,X.isFinite=SV,X.isFunction=ka,X.isInteger=Ow,X.isLength=_h,X.isMap=Iw,X.isMatch=DV,X.isMatchWith=AV,X.isNaN=TV,X.isNative=PV,X.isNil=MV,X.isNull=_V,X.isNumber=Lw,X.isObject=_n,X.isObjectLike=jn,X.isPlainObject=pf,X.isRegExp=ev,X.isSafeInteger=FV,X.isSet=Bw,X.isString=Mh,X.isSymbol=xi,X.isTypedArray=Dl,X.isUndefined=RV,X.isWeakMap=kV,X.isWeakSet=OV,X.join=B8,X.kebabCase=EN,X.last=Bi,X.lastIndexOf=V8,X.lowerCase=SN,X.lowerFirst=DN,X.lt=IV,X.lte=LV,X.max=$j,X.maxBy=xj,X.mean=wj,X.meanBy=Cj,X.min=Ej,X.minBy=Sj,X.stubArray=uv,X.stubFalse=lv,X.stubObject=cj,X.stubString=fj,X.stubTrue=dj,X.multiply=Dj,X.nth=N8,X.noConflict=nj,X.noop=ov,X.now=Ah,X.pad=AN,X.padEnd=TN,X.padStart=PN,X.parseInt=_N,X.random=bN,X.reduce=UB,X.reduceRight=zB,X.repeat=MN,X.replace=FN,X.result=lN,X.round=Aj,X.runInContext=F,X.sample=WB,X.size=YB,X.snakeCase=RN,X.some=ZB,X.sortedIndex=H8,X.sortedIndexBy=G8,X.sortedIndexOf=Y8,X.sortedLastIndex=Z8,X.sortedLastIndexBy=X8,X.sortedLastIndexOf=J8,X.startCase=ON,X.startsWith=IN,X.subtract=Tj,X.sum=Pj,X.sumBy=_j,X.template=LN,X.times=hj,X.toFinite=Oa,X.toInteger=Ot,X.toLength=Nw,X.toLower=BN,X.toNumber=Vi,X.toSafeInteger=BV,X.toString=on,X.toUpper=VN,X.trim=NN,X.trimEnd=jN,X.trimStart=KN,X.truncate=UN,X.unescape=zN,X.uniqueId=mj,X.upperCase=qN,X.upperFirst=rv,X.each=Dw,X.eachRight=Aw,X.first=ww,av(X,function(){var u={};return qs(X,function(f,y){Be.call(X.prototype,y)||(u[y]=f)}),u}(),{chain:!1}),X.VERSION=r,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){X[u].placeholder=X}),hn(["drop","take"],function(u,f){zt.prototype[u]=function(y){y=y===n?1:Zt(Ot(y),0);var D=this.__filtered__&&!f?new zt(this):this.clone();return D.__filtered__?D.__takeCount__=xn(y,D.__takeCount__):D.__views__.push({size:xn(y,te),type:u+(D.__dir__<0?"Right":"")}),D},zt.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),hn(["filter","map","takeWhile"],function(u,f){var y=f+1,D=y==W||y==O;zt.prototype[u]=function(N){var re=this.clone();return re.__iteratees__.push({iteratee:Ct(N,3),type:y}),re.__filtered__=re.__filtered__||D,re}}),hn(["head","last"],function(u,f){var y="take"+(f?"Right":"");zt.prototype[u]=function(){return this[y](1).value()[0]}}),hn(["initial","tail"],function(u,f){var y="drop"+(f?"":"Right");zt.prototype[u]=function(){return this.__filtered__?new zt(this):this[y](1)}}),zt.prototype.compact=function(){return this.filter(ri)},zt.prototype.find=function(u){return this.filter(u).head()},zt.prototype.findLast=function(u){return this.reverse().find(u)},zt.prototype.invokeMap=Nt(function(u,f){return typeof u=="function"?new zt(this):this.map(function(y){return uf(y,u,f)})}),zt.prototype.reject=function(u){return this.filter(Ph(Ct(u)))},zt.prototype.slice=function(u,f){u=Ot(u);var y=this;return y.__filtered__&&(u>0||f<0)?new zt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),f!==n&&(f=Ot(f),y=f<0?y.dropRight(-f):y.take(f-u)),y)},zt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},zt.prototype.toArray=function(){return this.take(te)},qs(zt.prototype,function(u,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),D=/^(?:head|last)$/.test(f),N=X[D?"take"+(f=="last"?"Right":""):f],re=D||/^find/.test(f);N&&(X.prototype[f]=function(){var ve=this.__wrapped__,Ee=D?[1]:arguments,Pe=ve instanceof zt,Ue=Ee[0],qe=Pe||Ft(ve),Ze=function(jt){var Gt=N.apply(X,ls([jt],Ee));return D&&at?Gt[0]:Gt};qe&&y&&typeof Ue=="function"&&Ue.length!=1&&(Pe=qe=!1);var at=this.__chain__,vt=!!this.__actions__.length,St=re&&!at,Bt=Pe&&!vt;if(!re&&qe){ve=Bt?ve:new zt(this);var Dt=u.apply(ve,Ee);return Dt.__actions__.push({func:Sh,args:[Ze],thisArg:n}),new Oi(Dt,at)}return St&&Bt?u.apply(this,Ee):(Dt=this.thru(Ze),St?D?Dt.value()[0]:Dt.value():Dt)})}),hn(["pop","push","shift","sort","splice","unshift"],function(u){var f=oe[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",D=/^(?:pop|shift)$/.test(u);X.prototype[u]=function(){var N=arguments;if(D&&!this.__chain__){var re=this.value();return f.apply(Ft(re)?re:[],N)}return this[y](function(ve){return f.apply(Ft(ve)?ve:[],N)})}}),qs(zt.prototype,function(u,f){var y=X[f];if(y){var D=y.name+"";Be.call(xl,D)||(xl[D]=[]),xl[D].push({name:f,func:y})}}),xl[yh(n,E).name]=[{name:"wrapper",func:n}],zt.prototype.clone=z9,zt.prototype.reverse=q9,zt.prototype.value=W9,X.prototype.at=xB,X.prototype.chain=wB,X.prototype.commit=CB,X.prototype.next=EB,X.prototype.plant=DB,X.prototype.reverse=AB,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=TB,X.prototype.first=X.prototype.head,Jn&&(X.prototype[Jn]=SB),X},Re=Ce();Fi?((Fi.exports=Re)._=Re,Mi._=Re):Dn._=Re}).call(gz)}(kf,kf.exports)),kf.exports}var c5=vz();const yz=ci(c5);var Ad=e=>e.type==="checkbox",bu=e=>e instanceof Date,Kr=e=>e==null;const f5=e=>typeof e=="object";var Yn=e=>!Kr(e)&&!Array.isArray(e)&&f5(e)&&!bu(e),d5=e=>Yn(e)&&e.target?Ad(e.target)?e.target.checked:e.target.value:e,bz=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,h5=(e,t)=>e.has(bz(t)),$z=e=>{const t=e.constructor&&e.constructor.prototype;return Yn(t)&&t.hasOwnProperty("isPrototypeOf")},X4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Mn(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(!(X4&&(e instanceof Blob||r))&&(n||Yn(e)))if(t=n?[]:{},!n&&!$z(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Mn(e[i]));else return e;return t}var Td=e=>Array.isArray(e)?e.filter(Boolean):[],Cn=e=>e===void 0,rt=(e,t,n)=>{if(!t||!Yn(e))return n;const r=Td(t.split(/[,[\].]+?/)).reduce((i,s)=>Kr(i)?i:i[s],e);return Cn(r)||r===e?Cn(e[t])?n:e[t]:r},Si=e=>typeof e=="boolean",J4=e=>/^\w*$/.test(e),p5=e=>Td(e.replace(/["|']|\]/g,"").split(/\.|\[/)),en=(e,t,n)=>{let r=-1;const i=J4(t)?[t]:p5(t),s=i.length,a=s-1;for(;++r<s;){const o=i[r];let l=n;if(r!==a){const d=e[o];l=Yn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(o==="__proto__"||o==="constructor"||o==="prototype")return;e[o]=l,e=e[o]}};const Lp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Gi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},La={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},m5=T.createContext(null),Pd=()=>T.useContext(m5),xz=e=>{const{children:t,...n}=e;return T.createElement(m5.Provider,{value:n},t)};var g5=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(i,s,{get:()=>{const a=s;return t._proxyFormState[a]!==Gi.all&&(t._proxyFormState[a]=!r||Gi.all),n&&(n[a]=!0),e[a]}});return i};const Q4=typeof window<"u"?He.useLayoutEffect:He.useEffect;function wz(e){const t=Pd(),{control:n=t.control,disabled:r,name:i,exact:s}=e||{},[a,o]=T.useState(n._formState),l=T.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Q4(()=>n._subscribe({name:i,formState:l.current,exact:s,callback:d=>{!r&&o({...n._formState,...d})}}),[i,r,s]),T.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),T.useMemo(()=>g5(a,n,l.current,!1),[a,n])}var Js=e=>typeof e=="string",v5=(e,t,n,r,i)=>Js(e)?(r&&t.watch.add(e),rt(n,e,i)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),rt(n,s))):(r&&(t.watchAll=!0),n);function y5(e){const t=Pd(),{control:n=t.control,name:r,defaultValue:i,disabled:s,exact:a}=e||{},o=T.useRef(i),[l,d]=T.useState(n._getWatch(r,o.current));return Q4(()=>n._subscribe({name:r,formState:{values:!0},exact:a,callback:h=>!s&&d(v5(r,n._names,h.values||n._formValues,!1,o.current))}),[r,n,s,a]),T.useEffect(()=>n._removeUnmounted()),l}function b5(e){const t=Pd(),{name:n,disabled:r,control:i=t.control,shouldUnregister:s}=e,a=h5(i._names.array,n),o=y5({control:i,name:n,defaultValue:rt(i._formValues,n,rt(i._defaultValues,n,e.defaultValue)),exact:!0}),l=wz({control:i,name:n,exact:!0}),d=T.useRef(e),h=T.useRef(i.register(n,{...e.rules,value:o,...Si(e.disabled)?{disabled:e.disabled}:{}})),m=T.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!rt(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!rt(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!rt(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!rt(l.validatingFields,n)},error:{enumerable:!0,get:()=>rt(l.errors,n)}}),[l,n]),g=T.useCallback(S=>h.current.onChange({target:{value:d5(S),name:n},type:Lp.CHANGE}),[n]),b=T.useCallback(()=>h.current.onBlur({target:{value:rt(i._formValues,n),name:n},type:Lp.BLUR}),[n,i._formValues]),x=T.useCallback(S=>{const E=rt(i._fields,n);E&&S&&(E._f.ref={focus:()=>S.focus&&S.focus(),select:()=>S.select&&S.select(),setCustomValidity:C=>S.setCustomValidity(C),reportValidity:()=>S.reportValidity()})},[i._fields,n]),w=T.useMemo(()=>({name:n,value:o,...Si(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:g,onBlur:b,ref:x}),[n,r,l.disabled,g,b,x,o]);return T.useEffect(()=>{const S=i._options.shouldUnregister||s;i.register(n,{...d.current.rules,...Si(d.current.disabled)?{disabled:d.current.disabled}:{}});const E=(C,A)=>{const k=rt(i._fields,C);k&&k._f&&(k._f.mount=A)};if(E(n,!0),S){const C=Mn(rt(i._options.defaultValues,n));en(i._defaultValues,n,C),Cn(rt(i._formValues,n))&&en(i._formValues,n,C)}return!a&&i.register(n),()=>{(a?S&&!i._state.action:S)?i.unregister(n):E(n,!1)}},[n,i,a,s]),T.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),T.useMemo(()=>({field:w,formState:l,fieldState:m}),[w,l,m])}const Cz=e=>e.render(b5(e));var $5=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ai=e=>Array.isArray(e)?e:[e],PC=()=>{let e=[];return{get observers(){return e},next:i=>{for(const s of e)s.next&&s.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(s=>s!==i)}}),unsubscribe:()=>{e=[]}}},db=e=>Kr(e)||!f5(e);function wo(e,t){if(db(e)||db(t))return e===t;if(bu(e)&&bu(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 s=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(bu(s)&&bu(a)||Yn(s)&&Yn(a)||Array.isArray(s)&&Array.isArray(a)?!wo(s,a):s!==a)return!1}}return!0}var jr=e=>Yn(e)&&!Object.keys(e).length,e3=e=>e.type==="file",ws=e=>typeof e=="function",Bp=e=>{if(!X4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},x5=e=>e.type==="select-multiple",t3=e=>e.type==="radio",Ez=e=>t3(e)||Ad(e),$v=e=>Bp(e)&&e.isConnected;function Sz(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Cn(e)?r++:e[t[r++]];return e}function Dz(e){for(const t in e)if(e.hasOwnProperty(t)&&!Cn(e[t]))return!1;return!0}function Qn(e,t){const n=Array.isArray(t)?t:J4(t)?[t]:p5(t),r=n.length===1?e:Sz(e,n),i=n.length-1,s=n[i];return r&&delete r[s],i!==0&&(Yn(r)&&jr(r)||Array.isArray(r)&&Dz(r))&&Qn(e,n.slice(0,-1)),e}var w5=e=>{for(const t in e)if(ws(e[t]))return!0;return!1};function Vp(e,t={}){const n=Array.isArray(e);if(Yn(e)||n)for(const r in e)Array.isArray(e[r])||Yn(e[r])&&!w5(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Vp(e[r],t[r])):Kr(e[r])||(t[r]=!0);return t}function C5(e,t,n){const r=Array.isArray(e);if(Yn(e)||r)for(const i in e)Array.isArray(e[i])||Yn(e[i])&&!w5(e[i])?Cn(t)||db(n[i])?n[i]=Array.isArray(e[i])?Vp(e[i],[]):{...Vp(e[i])}:C5(e[i],Kr(t)?{}:t[i],n[i]):n[i]=!wo(e[i],t[i]);return n}var gf=(e,t)=>C5(e,t,Vp(t));const _C={value:!1,isValid:!1},MC={value:!0,isValid:!0};var E5=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&&!Cn(e[0].attributes.value)?Cn(e[0].value)||e[0].value===""?MC:{value:e[0].value,isValid:!0}:MC:_C}return _C},S5=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Cn(e)?e:t?e===""?NaN:e&&+e:n&&Js(e)?new Date(e):r?r(e):e;const FC={isValid:!1,value:null};var D5=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,FC):FC;function RC(e){const t=e.ref;return e3(t)?t.files:t3(t)?D5(e.refs).value:x5(t)?[...t.selectedOptions].map(({value:n})=>n):Ad(t)?E5(e.refs).value:S5(Cn(t.value)?e.ref.value:t.value,e)}var Az=(e,t,n,r)=>{const i={};for(const s of e){const a=rt(t,s);a&&en(i,s,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Np=e=>e instanceof RegExp,vf=e=>Cn(e)?e:Np(e)?e.source:Yn(e)?Np(e.value)?e.value.source:e.value:e,Ol=e=>({isOnSubmit:!e||e===Gi.onSubmit,isOnBlur:e===Gi.onBlur,isOnChange:e===Gi.onChange,isOnAll:e===Gi.all,isOnTouch:e===Gi.onTouched});const kC="AsyncFunction";var Tz=e=>!!e&&!!e.validate&&!!(ws(e.validate)&&e.validate.constructor.name===kC||Yn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===kC)),Pz=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),hb=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Gl=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const s=rt(e,i);if(s){const{_f:a,...o}=s;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(Gl(o,t))break}else if(Yn(o)&&Gl(o,t))break}}};function OC(e,t,n){const r=rt(e,n);if(r||J4(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const s=i.join("."),a=rt(t,s),o=rt(e,s);if(a&&!Array.isArray(a)&&n!==s)return{name:n};if(o&&o.type)return{name:s,error:o};if(o&&o.root&&o.root.type)return{name:`${s}.root`,error:o.root};i.pop()}return{name:n}}var _z=(e,t,n,r)=>{n(e);const{name:i,...s}=e;return jr(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(a=>t[a]===(!r||Gi.all))},Mz=(e,t,n)=>!e||!t||e===t||ai(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Fz=(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,Rz=(e,t)=>!Td(rt(e,t)).length&&Qn(e,t),A5=(e,t,n)=>{const r=ai(rt(e,n));return en(r,"root",t[n]),en(e,n,r),e},cp=e=>Js(e);function IC(e,t,n="validate"){if(cp(e)||Array.isArray(e)&&e.every(cp)||Si(e)&&!e)return{type:n,message:cp(e)?e:"",ref:t}}var Pl=e=>Yn(e)&&!Np(e)?e:{value:e,message:""},pb=async(e,t,n,r,i,s)=>{const{ref:a,refs:o,required:l,maxLength:d,minLength:h,min:m,max:g,pattern:b,validate:x,name:w,valueAsNumber:S,mount:E}=e._f,C=rt(n,w);if(!E||t.has(w))return{};const A=o?o[0]:a,k=$e=>{i&&A.reportValidity&&(A.setCustomValidity(Si($e)?"":$e||""),A.reportValidity())},M={},R=t3(a),K=Ad(a),H=R||K,le=(S||e3(a))&&Cn(a.value)&&Cn(C)||Bp(a)&&a.value===""||C===""||Array.isArray(C)&&!C.length,ae=$5.bind(null,w,r,M),I=($e,we,W,ie=La.maxLength,O=La.minLength)=>{const L=$e?we:W;M[w]={type:$e?ie:O,message:L,ref:a,...ae($e?ie:O,L)}};if(s?!Array.isArray(C)||!C.length:l&&(!H&&(le||Kr(C))||Si(C)&&!C||K&&!E5(o).isValid||R&&!D5(o).isValid)){const{value:$e,message:we}=cp(l)?{value:!!l,message:l}:Pl(l);if($e&&(M[w]={type:La.required,message:we,ref:A,...ae(La.required,we)},!r))return k(we),M}if(!le&&(!Kr(m)||!Kr(g))){let $e,we;const W=Pl(g),ie=Pl(m);if(!Kr(C)&&!isNaN(C)){const O=a.valueAsNumber||C&&+C;Kr(W.value)||($e=O>W.value),Kr(ie.value)||(we=O<ie.value)}else{const O=a.valueAsDate||new Date(C),L=U=>new Date(new Date().toDateString()+" "+U),B=a.type=="time",he=a.type=="week";Js(W.value)&&C&&($e=B?L(C)>L(W.value):he?C>W.value:O>new Date(W.value)),Js(ie.value)&&C&&(we=B?L(C)<L(ie.value):he?C<ie.value:O<new Date(ie.value))}if(($e||we)&&(I(!!$e,W.message,ie.message,La.max,La.min),!r))return k(M[w].message),M}if((d||h)&&!le&&(Js(C)||s&&Array.isArray(C))){const $e=Pl(d),we=Pl(h),W=!Kr($e.value)&&C.length>+$e.value,ie=!Kr(we.value)&&C.length<+we.value;if((W||ie)&&(I(W,$e.message,we.message),!r))return k(M[w].message),M}if(b&&!le&&Js(C)){const{value:$e,message:we}=Pl(b);if(Np($e)&&!C.match($e)&&(M[w]={type:La.pattern,message:we,ref:a,...ae(La.pattern,we)},!r))return k(we),M}if(x){if(ws(x)){const $e=await x(C,n),we=IC($e,A);if(we&&(M[w]={...we,...ae(La.validate,we.message)},!r))return k(we.message),M}else if(Yn(x)){let $e={};for(const we in x){if(!jr($e)&&!r)break;const W=IC(await x[we](C,n),A,we);W&&($e={...W,...ae(we,W.message)},k(W.message),r&&(M[w]=$e))}if(!jr($e)&&(M[w]={ref:A,...$e},!r))return M}}return k(!0),M};const kz={mode:Gi.onSubmit,reValidateMode:Gi.onChange,shouldFocusError:!0};function Oz(e={}){let t={...kz,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ws(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const r={};let i=Yn(t.defaultValues)||Yn(t.values)?Mn(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Mn(i),a={action:!1,mount:!1,watch:!1},o={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};let m={...h};const g={array:PC(),state:PC()},b=t.criteriaMode===Gi.all,x=me=>Se=>{clearTimeout(d),d=setTimeout(me,Se)},w=async me=>{if(!t.disabled&&(h.isValid||m.isValid||me)){const Se=t.resolver?jr((await K()).errors):await le(r,!0);Se!==n.isValid&&g.state.next({isValid:Se})}},S=(me,Se)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((me||Array.from(o.mount)).forEach(Le=>{Le&&(Se?en(n.validatingFields,Le,Se):Qn(n.validatingFields,Le))}),g.state.next({validatingFields:n.validatingFields,isValidating:!jr(n.validatingFields)}))},E=(me,Se=[],Le,it,Qe=!0,Xe=!0)=>{if(it&&Le&&!t.disabled){if(a.action=!0,Xe&&Array.isArray(rt(r,me))){const gt=Le(rt(r,me),it.argA,it.argB);Qe&&en(r,me,gt)}if(Xe&&Array.isArray(rt(n.errors,me))){const gt=Le(rt(n.errors,me),it.argA,it.argB);Qe&&en(n.errors,me,gt),Rz(n.errors,me)}if((h.touchedFields||m.touchedFields)&&Xe&&Array.isArray(rt(n.touchedFields,me))){const gt=Le(rt(n.touchedFields,me),it.argA,it.argB);Qe&&en(n.touchedFields,me,gt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=gf(i,s)),g.state.next({name:me,isDirty:I(me,Se),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else en(s,me,Se)},C=(me,Se)=>{en(n.errors,me,Se),g.state.next({errors:n.errors})},A=me=>{n.errors=me,g.state.next({errors:n.errors,isValid:!1})},k=(me,Se,Le,it)=>{const Qe=rt(r,me);if(Qe){const Xe=rt(s,me,Cn(Le)?rt(i,me):Le);Cn(Xe)||it&&it.defaultChecked||Se?en(s,me,Se?Xe:RC(Qe._f)):W(me,Xe),a.mount&&w()}},M=(me,Se,Le,it,Qe)=>{let Xe=!1,gt=!1;const kt={name:me};if(!t.disabled){if(!Le||it){(h.isDirty||m.isDirty)&&(gt=n.isDirty,n.isDirty=kt.isDirty=I(),Xe=gt!==kt.isDirty);const wt=wo(rt(i,me),Se);gt=!!rt(n.dirtyFields,me),wt?Qn(n.dirtyFields,me):en(n.dirtyFields,me,!0),kt.dirtyFields=n.dirtyFields,Xe=Xe||(h.dirtyFields||m.dirtyFields)&&gt!==!wt}if(Le){const wt=rt(n.touchedFields,me);wt||(en(n.touchedFields,me,Le),kt.touchedFields=n.touchedFields,Xe=Xe||(h.touchedFields||m.touchedFields)&&wt!==Le)}Xe&&Qe&&g.state.next(kt)}return Xe?kt:{}},R=(me,Se,Le,it)=>{const Qe=rt(n.errors,me),Xe=(h.isValid||m.isValid)&&Si(Se)&&n.isValid!==Se;if(t.delayError&&Le?(l=x(()=>C(me,Le)),l(t.delayError)):(clearTimeout(d),l=null,Le?en(n.errors,me,Le):Qn(n.errors,me)),(Le?!wo(Qe,Le):Qe)||!jr(it)||Xe){const gt={...it,...Xe&&Si(Se)?{isValid:Se}:{},errors:n.errors,name:me};n={...n,...gt},g.state.next(gt)}},K=async me=>{S(me,!0);const Se=await t.resolver(s,t.context,Az(me||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return S(me),Se},H=async me=>{const{errors:Se}=await K(me);if(me)for(const Le of me){const it=rt(Se,Le);it?en(n.errors,Le,it):Qn(n.errors,Le)}else n.errors=Se;return Se},le=async(me,Se,Le={valid:!0})=>{for(const it in me){const Qe=me[it];if(Qe){const{_f:Xe,...gt}=Qe;if(Xe){const kt=o.array.has(Xe.name),wt=Qe._f&&Tz(Qe._f);wt&&h.validatingFields&&S([it],!0);const yn=await pb(Qe,o.disabled,s,b,t.shouldUseNativeValidation&&!Se,kt);if(wt&&h.validatingFields&&S([it]),yn[Xe.name]&&(Le.valid=!1,Se))break;!Se&&(rt(yn,Xe.name)?kt?A5(n.errors,yn,Xe.name):en(n.errors,Xe.name,yn[Xe.name]):Qn(n.errors,Xe.name))}!jr(gt)&&await le(gt,Se,Le)}}return Le.valid},ae=()=>{for(const me of o.unMount){const Se=rt(r,me);Se&&(Se._f.refs?Se._f.refs.every(Le=>!$v(Le)):!$v(Se._f.ref))&&Ge(me)}o.unMount=new Set},I=(me,Se)=>!t.disabled&&(me&&Se&&en(s,me,Se),!wo(U(),i)),$e=(me,Se,Le)=>v5(me,o,{...a.mount?s:Cn(Se)?i:Js(me)?{[me]:Se}:Se},Le,Se),we=me=>Td(rt(a.mount?s:i,me,t.shouldUnregister?rt(i,me,[]):[])),W=(me,Se,Le={})=>{const it=rt(r,me);let Qe=Se;if(it){const Xe=it._f;Xe&&(!Xe.disabled&&en(s,me,S5(Se,Xe)),Qe=Bp(Xe.ref)&&Kr(Se)?"":Se,x5(Xe.ref)?[...Xe.ref.options].forEach(gt=>gt.selected=Qe.includes(gt.value)):Xe.refs?Ad(Xe.ref)?Xe.refs.forEach(gt=>{(!gt.defaultChecked||!gt.disabled)&&(Array.isArray(Qe)?gt.checked=!!Qe.find(kt=>kt===gt.value):gt.checked=Qe===gt.value||!!Qe)}):Xe.refs.forEach(gt=>gt.checked=gt.value===Qe):e3(Xe.ref)?Xe.ref.value="":(Xe.ref.value=Qe,Xe.ref.type||g.state.next({name:me,values:Mn(s)})))}(Le.shouldDirty||Le.shouldTouch)&&M(me,Qe,Le.shouldTouch,Le.shouldDirty,!0),Le.shouldValidate&&he(me)},ie=(me,Se,Le)=>{for(const it in Se){if(!Se.hasOwnProperty(it))return;const Qe=Se[it],Xe=me+"."+it,gt=rt(r,Xe);(o.array.has(me)||Yn(Qe)||gt&&!gt._f)&&!bu(Qe)?ie(Xe,Qe,Le):W(Xe,Qe,Le)}},O=(me,Se,Le={})=>{const it=rt(r,me),Qe=o.array.has(me),Xe=Mn(Se);en(s,me,Xe),Qe?(g.array.next({name:me,values:Mn(s)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&Le.shouldDirty&&g.state.next({name:me,dirtyFields:gf(i,s),isDirty:I(me,Xe)})):it&&!it._f&&!Kr(Xe)?ie(me,Xe,Le):W(me,Xe,Le),hb(me,o)&&g.state.next({...n}),g.state.next({name:a.mount?me:void 0,values:Mn(s)})},L=async me=>{a.mount=!0;const Se=me.target;let Le=Se.name,it=!0;const Qe=rt(r,Le),Xe=wt=>{it=Number.isNaN(wt)||bu(wt)&&isNaN(wt.getTime())||wo(wt,rt(s,Le,wt))},gt=Ol(t.mode),kt=Ol(t.reValidateMode);if(Qe){let wt,yn;const Cr=Se.type?RC(Qe._f):d5(me),qt=me.type===Lp.BLUR||me.type===Lp.FOCUS_OUT,_t=!Pz(Qe._f)&&!t.resolver&&!rt(n.errors,Le)&&!Qe._f.deps||Fz(qt,rt(n.touchedFields,Le),n.isSubmitted,kt,gt),Lt=hb(Le,o,qt);en(s,Le,Cr),qt?(Qe._f.onBlur&&Qe._f.onBlur(me),l&&l(0)):Qe._f.onChange&&Qe._f.onChange(me);const Wt=M(Le,Cr,qt),gr=!jr(Wt)||Lt;if(!qt&&g.state.next({name:Le,type:me.type,values:Mn(s)}),_t)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?qt&&w():qt||w()),gr&&g.state.next({name:Le,...Lt?{}:Wt});if(!qt&&Lt&&g.state.next({...n}),t.resolver){const{errors:Zr}=await K([Le]);if(Xe(Cr),it){const fi=OC(n.errors,r,Le),kr=OC(Zr,r,fi.name||Le);wt=kr.error,Le=kr.name,yn=jr(Zr)}}else S([Le],!0),wt=(await pb(Qe,o.disabled,s,b,t.shouldUseNativeValidation))[Le],S([Le]),Xe(Cr),it&&(wt?yn=!1:(h.isValid||m.isValid)&&(yn=await le(r,!0)));it&&(Qe._f.deps&&he(Qe._f.deps),R(Le,yn,wt,Wt))}},B=(me,Se)=>{if(rt(n.errors,Se)&&me.focus)return me.focus(),1},he=async(me,Se={})=>{let Le,it;const Qe=ai(me);if(t.resolver){const Xe=await H(Cn(me)?me:Qe);Le=jr(Xe),it=me?!Qe.some(gt=>rt(Xe,gt)):Le}else me?(it=(await Promise.all(Qe.map(async Xe=>{const gt=rt(r,Xe);return await le(gt&&gt._f?{[Xe]:gt}:gt)}))).every(Boolean),!(!it&&!n.isValid)&&w()):it=Le=await le(r);return g.state.next({...!Js(me)||(h.isValid||m.isValid)&&Le!==n.isValid?{}:{name:me},...t.resolver||!me?{isValid:Le}:{},errors:n.errors}),Se.shouldFocus&&!it&&Gl(r,B,me?Qe:o.mount),it},U=me=>{const Se={...a.mount?s:i};return Cn(me)?Se:Js(me)?rt(Se,me):me.map(Le=>rt(Se,Le))},te=(me,Se)=>({invalid:!!rt((Se||n).errors,me),isDirty:!!rt((Se||n).dirtyFields,me),error:rt((Se||n).errors,me),isValidating:!!rt(n.validatingFields,me),isTouched:!!rt((Se||n).touchedFields,me)}),xe=me=>{me&&ai(me).forEach(Se=>Qn(n.errors,Se)),g.state.next({errors:me?n.errors:{}})},De=(me,Se,Le)=>{const it=(rt(r,me,{_f:{}})._f||{}).ref,Qe=rt(n.errors,me)||{},{ref:Xe,message:gt,type:kt,...wt}=Qe;en(n.errors,me,{...wt,...Se,ref:it}),g.state.next({name:me,errors:n.errors,isValid:!1}),Le&&Le.shouldFocus&&it&&it.focus&&it.focus()},_e=(me,Se)=>ws(me)?g.state.subscribe({next:Le=>me($e(void 0,Se),Le)}):$e(me,Se,!0),Me=me=>g.state.subscribe({next:Se=>{Mz(me.name,Se.name,me.exact)&&_z(Se,me.formState||h,Mt,me.reRenderRoot)&&me.callback({values:{...s},...n,...Se})}}).unsubscribe,Ye=me=>(a.mount=!0,m={...m,...me.formState},Me({...me,formState:m})),Ge=(me,Se={})=>{for(const Le of me?ai(me):o.mount)o.mount.delete(Le),o.array.delete(Le),Se.keepValue||(Qn(r,Le),Qn(s,Le)),!Se.keepError&&Qn(n.errors,Le),!Se.keepDirty&&Qn(n.dirtyFields,Le),!Se.keepTouched&&Qn(n.touchedFields,Le),!Se.keepIsValidating&&Qn(n.validatingFields,Le),!t.shouldUnregister&&!Se.keepDefaultValue&&Qn(i,Le);g.state.next({values:Mn(s)}),g.state.next({...n,...Se.keepDirty?{isDirty:I()}:{}}),!Se.keepIsValid&&w()},Ae=({disabled:me,name:Se})=>{(Si(me)&&a.mount||me||o.disabled.has(Se))&&(me?o.disabled.add(Se):o.disabled.delete(Se))},Ke=(me,Se={})=>{let Le=rt(r,me);const it=Si(Se.disabled)||Si(t.disabled);return en(r,me,{...Le||{},_f:{...Le&&Le._f?Le._f:{ref:{name:me}},name:me,mount:!0,...Se}}),o.mount.add(me),Le?Ae({disabled:Si(Se.disabled)?Se.disabled:t.disabled,name:me}):k(me,!0,Se.value),{...it?{disabled:Se.disabled||t.disabled}:{},...t.progressive?{required:!!Se.required,min:vf(Se.min),max:vf(Se.max),minLength:vf(Se.minLength),maxLength:vf(Se.maxLength),pattern:vf(Se.pattern)}:{},name:me,onChange:L,onBlur:L,ref:Qe=>{if(Qe){Ke(me,Se),Le=rt(r,me);const Xe=Cn(Qe.value)&&Qe.querySelectorAll&&Qe.querySelectorAll("input,select,textarea")[0]||Qe,gt=Ez(Xe),kt=Le._f.refs||[];if(gt?kt.find(wt=>wt===Xe):Xe===Le._f.ref)return;en(r,me,{_f:{...Le._f,...gt?{refs:[...kt.filter($v),Xe,...Array.isArray(rt(i,me))?[{}]:[]],ref:{type:Xe.type,name:me}}:{ref:Xe}}}),k(me,!1,void 0,Xe)}else Le=rt(r,me,{}),Le._f&&(Le._f.mount=!1),(t.shouldUnregister||Se.shouldUnregister)&&!(h5(o.array,me)&&a.action)&&o.unMount.add(me)}}},We=()=>t.shouldFocusError&&Gl(r,B,o.mount),Ve=me=>{Si(me)&&(g.state.next({disabled:me}),Gl(r,(Se,Le)=>{const it=rt(r,Le);it&&(Se.disabled=it._f.disabled||me,Array.isArray(it._f.refs)&&it._f.refs.forEach(Qe=>{Qe.disabled=it._f.disabled||me}))},0,!1))},Te=(me,Se)=>async Le=>{let it;Le&&(Le.preventDefault&&Le.preventDefault(),Le.persist&&Le.persist());let Qe=Mn(s);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Xe,values:gt}=await K();n.errors=Xe,Qe=gt}else await le(r);if(o.disabled.size)for(const Xe of o.disabled)en(Qe,Xe,void 0);if(Qn(n.errors,"root"),jr(n.errors)){g.state.next({errors:{}});try{await me(Qe,Le)}catch(Xe){it=Xe}}else Se&&await Se({...n.errors},Le),We(),setTimeout(We);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:jr(n.errors)&&!it,submitCount:n.submitCount+1,errors:n.errors}),it)throw it},tt=(me,Se={})=>{rt(r,me)&&(Cn(Se.defaultValue)?O(me,Mn(rt(i,me))):(O(me,Se.defaultValue),en(i,me,Mn(Se.defaultValue))),Se.keepTouched||Qn(n.touchedFields,me),Se.keepDirty||(Qn(n.dirtyFields,me),n.isDirty=Se.defaultValue?I(me,Mn(rt(i,me))):I()),Se.keepError||(Qn(n.errors,me),h.isValid&&w()),g.state.next({...n}))},yt=(me,Se={})=>{const Le=me?Mn(me):i,it=Mn(Le),Qe=jr(me),Xe=Qe?i:it;if(Se.keepDefaultValues||(i=Le),!Se.keepValues){if(Se.keepDirtyValues){const gt=new Set([...o.mount,...Object.keys(gf(i,s))]);for(const kt of Array.from(gt))rt(n.dirtyFields,kt)?en(Xe,kt,rt(s,kt)):O(kt,rt(Xe,kt))}else{if(X4&&Cn(me))for(const gt of o.mount){const kt=rt(r,gt);if(kt&&kt._f){const wt=Array.isArray(kt._f.refs)?kt._f.refs[0]:kt._f.ref;if(Bp(wt)){const yn=wt.closest("form");if(yn){yn.reset();break}}}}for(const gt of o.mount)O(gt,rt(Xe,gt))}s=Mn(Xe),g.array.next({values:{...Xe}}),g.state.next({values:{...Xe}})}o={mount:Se.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!h.isValid||!!Se.keepIsValid||!!Se.keepDirtyValues,a.watch=!!t.shouldUnregister,g.state.next({submitCount:Se.keepSubmitCount?n.submitCount:0,isDirty:Qe?!1:Se.keepDirty?n.isDirty:!!(Se.keepDefaultValues&&!wo(me,i)),isSubmitted:Se.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Qe?{}:Se.keepDirtyValues?Se.keepDefaultValues&&s?gf(i,s):n.dirtyFields:Se.keepDefaultValues&&me?gf(i,me):Se.keepDirty?n.dirtyFields:{},touchedFields:Se.keepTouched?n.touchedFields:{},errors:Se.keepErrors?n.errors:{},isSubmitSuccessful:Se.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Jt=(me,Se)=>yt(ws(me)?me(s):me,Se),xt=(me,Se={})=>{const Le=rt(r,me),it=Le&&Le._f;if(it){const Qe=it.refs?it.refs[0]:it.ref;Qe.focus&&(Qe.focus(),Se.shouldSelect&&ws(Qe.select)&&Qe.select())}},Mt=me=>{n={...n,...me}},mt={control:{register:Ke,unregister:Ge,getFieldState:te,handleSubmit:Te,setError:De,_subscribe:Me,_runSchema:K,_focusError:We,_getWatch:$e,_getDirty:I,_setValid:w,_setFieldArray:E,_setDisabledField:Ae,_setErrors:A,_getFieldArray:we,_reset:yt,_resetDefaultValues:()=>ws(t.defaultValues)&&t.defaultValues().then(me=>{Jt(me,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:ae,_disableForm:Ve,_subjects:g,_proxyFormState:h,get _fields(){return r},get _formValues(){return s},get _state(){return a},set _state(me){a=me},get _defaultValues(){return i},get _names(){return o},set _names(me){o=me},get _formState(){return n},get _options(){return t},set _options(me){t={...t,...me}}},subscribe:Ye,trigger:he,register:Ke,handleSubmit:Te,watch:_e,setValue:O,getValues:U,reset:Jt,resetField:tt,clearErrors:xe,unregister:Ge,setError:De,setFocus:xt,getFieldState:te};return{...mt,formControl:mt}}var mo=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},xv=(e,t,n={})=>n.shouldFocus||Cn(n.shouldFocus)?n.focusName||`${e}.${Cn(n.focusIndex)?t:n.focusIndex}.`:"",wv=(e,t)=>[...e,...ai(t)],Cv=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Ev(e,t,n){return[...e.slice(0,t),...ai(n),...e.slice(t)]}var Sv=(e,t,n)=>Array.isArray(e)?(Cn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],Dv=(e,t)=>[...ai(t),...ai(e)];function Iz(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return Td(r).length?r:[]}var Av=(e,t)=>Cn(t)?[]:Iz(e,ai(t).sort((n,r)=>n-r)),Tv=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},LC=(e,t,n)=>(e[t]=n,e);function Lz(e){const t=Pd(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:s,rules:a}=e,[o,l]=T.useState(n._getFieldArray(r)),d=T.useRef(n._getFieldArray(r).map(mo)),h=T.useRef(o),m=T.useRef(r),g=T.useRef(!1);m.current=r,h.current=o,n._names.array.add(r),a&&n.register(r,a),T.useEffect(()=>n._subjects.array.subscribe({next:({values:R,name:K})=>{if(K===m.current||!K){const H=rt(R,m.current);Array.isArray(H)&&(l(H),d.current=H.map(mo))}}}).unsubscribe,[n]);const b=T.useCallback(R=>{g.current=!0,n._setFieldArray(r,R)},[n,r]),x=(R,K)=>{const H=ai(Mn(R)),le=wv(n._getFieldArray(r),H);n._names.focus=xv(r,le.length-1,K),d.current=wv(d.current,H.map(mo)),b(le),l(le),n._setFieldArray(r,le,wv,{argA:Cv(R)})},w=(R,K)=>{const H=ai(Mn(R)),le=Dv(n._getFieldArray(r),H);n._names.focus=xv(r,0,K),d.current=Dv(d.current,H.map(mo)),b(le),l(le),n._setFieldArray(r,le,Dv,{argA:Cv(R)})},S=R=>{const K=Av(n._getFieldArray(r),R);d.current=Av(d.current,R),b(K),l(K),!Array.isArray(rt(n._fields,r))&&en(n._fields,r,void 0),n._setFieldArray(r,K,Av,{argA:R})},E=(R,K,H)=>{const le=ai(Mn(K)),ae=Ev(n._getFieldArray(r),R,le);n._names.focus=xv(r,R,H),d.current=Ev(d.current,R,le.map(mo)),b(ae),l(ae),n._setFieldArray(r,ae,Ev,{argA:R,argB:Cv(K)})},C=(R,K)=>{const H=n._getFieldArray(r);Tv(H,R,K),Tv(d.current,R,K),b(H),l(H),n._setFieldArray(r,H,Tv,{argA:R,argB:K},!1)},A=(R,K)=>{const H=n._getFieldArray(r);Sv(H,R,K),Sv(d.current,R,K),b(H),l(H),n._setFieldArray(r,H,Sv,{argA:R,argB:K},!1)},k=(R,K)=>{const H=Mn(K),le=LC(n._getFieldArray(r),R,H);d.current=[...le].map((ae,I)=>!ae||I===R?mo():d.current[I]),b(le),l([...le]),n._setFieldArray(r,le,LC,{argA:R,argB:H},!0,!1)},M=R=>{const K=ai(Mn(R));d.current=K.map(mo),b([...K]),l([...K]),n._setFieldArray(r,[...K],H=>H,{},!0,!1)};return T.useEffect(()=>{if(n._state.action=!1,hb(r,n._names)&&n._subjects.state.next({...n._formState}),g.current&&(!Ol(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Ol(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(R=>{const K=rt(R.errors,r),H=rt(n._formState.errors,r);(H?!K&&H.type||K&&(H.type!==K.type||H.message!==K.message):K&&K.type)&&(K?en(n._formState.errors,r,K):Qn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const R=rt(n._fields,r);R&&R._f&&!(Ol(n._options.reValidateMode).isOnSubmit&&Ol(n._options.mode).isOnSubmit)&&pb(R,n._names.disabled,n._formValues,n._options.criteriaMode===Gi.all,n._options.shouldUseNativeValidation,!0).then(K=>!jr(K)&&n._subjects.state.next({errors:A5(n._formState.errors,K,r)}))}n._subjects.state.next({name:r,values:Mn(n._formValues)}),n._names.focus&&Gl(n._fields,(R,K)=>{if(n._names.focus&&K.startsWith(n._names.focus)&&R.focus)return R.focus(),1}),n._names.focus="",n._setValid(),g.current=!1},[o,r,n]),T.useEffect(()=>(!rt(n._formValues,r)&&n._setFieldArray(r),()=>{const R=(K,H)=>{const le=rt(n._fields,K);le&&le._f&&(le._f.mount=H)};n._options.shouldUnregister||s?n.unregister(r):R(r,!1)}),[r,n,i,s]),{swap:T.useCallback(C,[b,r,n]),move:T.useCallback(A,[b,r,n]),prepend:T.useCallback(w,[b,r,n]),append:T.useCallback(x,[b,r,n]),remove:T.useCallback(S,[b,r,n]),insert:T.useCallback(E,[b,r,n]),update:T.useCallback(k,[b,r,n]),replace:T.useCallback(M,[b,r,n]),fields:T.useMemo(()=>o.map((R,K)=>({...R,[i]:d.current[K]||mo()})),[o,i])}}function Bz(e={}){const t=T.useRef(void 0),n=T.useRef(void 0),[r,i]=T.useState({isDirty:!1,isValidating:!1,isLoading:ws(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ws(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...e.formControl?e.formControl:Oz(e),formState:r},e.formControl&&e.defaultValues&&!ws(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));const s=t.current.control;return s._options=e,Q4(()=>{const a=s._subscribe({formState:s._proxyFormState,callback:()=>i({...s._formState}),reRenderRoot:!0});return i(o=>({...o,isReady:!0})),s._formState.isReady=!0,a},[s]),T.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),T.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),T.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),T.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),T.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==r.isDirty&&s._subjects.state.next({isDirty:a})}},[s,r.isDirty]),T.useEffect(()=>{e.values&&!wo(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,i(a=>({...a}))):s._resetDefaultValues()},[s,e.values]),T.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=g5(r,s),t.current}const pn=typeof document<"u"?T.useLayoutEffect:()=>{};function kn(e){const t=T.useRef(null);return pn(()=>{t.current=e},[e]),T.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function Vz(e){let[t,n]=T.useState(e),r=T.useRef(null),i=kn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});pn(()=>{r.current&&i()});let s=kn(a=>{r.current=a(t),i()});return[t,s]}const jp={prefix:String(Math.round(Math.random()*1e10)),current:0},T5=T.createContext(jp),Nz=T.createContext(!1);let jz=!!(typeof window<"u"&&window.document&&window.document.createElement),Pv=new WeakMap;function Kz(e=!1){let t=T.useContext(T5),n=T.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=T.__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(s){let a=Pv.get(s);a==null?Pv.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==a.state&&(t.current=a.id,Pv.delete(s))}n.current=++t.current}return n.current}function Uz(e){let t=T.useContext(T5);t===jp&&!jz&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Kz(!!e),r=t===jp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function zz(e){let t=T.useId(),[n]=T.useState(n3()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${jp.prefix}`;return e||`${r}-${t}`}const qz=typeof T.useId=="function"?zz:Uz;function Wz(){return!1}function Hz(){return!0}function Gz(e){return()=>{}}function n3(){return typeof T.useSyncExternalStore=="function"?T.useSyncExternalStore(Gz,Wz,Hz):T.useContext(Nz)}let Yz=!!(typeof window<"u"&&window.document&&window.document.createElement),Yl=new Map,Of;typeof FinalizationRegistry<"u"&&(Of=new FinalizationRegistry(e=>{Yl.delete(e)}));function Hr(e){let[t,n]=T.useState(e),r=T.useRef(null),i=qz(t),s=T.useRef(null);if(Of&&Of.register(s,i),Yz){const a=Yl.get(i);a&&!a.includes(r)?a.push(r):Yl.set(i,[r])}return pn(()=>{let a=i;return()=>{Of&&Of.unregister(s),Yl.delete(a)}},[i]),T.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),i}function Zz(e,t){if(e===t)return e;let n=Yl.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Yl.get(t);return r?(r.forEach(i=>i.current=e),e):t}function uc(e=[]){let t=Hr(),[n,r]=Vz(t),i=T.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return pn(i,[t,i,...e]),n}function ju(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const tn=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Ha=e=>e&&"window"in e&&e.window===e?e:tn(e).defaultView||window;function Xz(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Jz(e){return Xz(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Qz=!1;function _m(){return Qz}function An(e,t){if(!_m())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Jz(n)?n=n.host:n=n.parentNode}return!1}const mr=(e=document)=>{var t;if(!_m())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function sn(e){return _m()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class eq{get currentNode(){return this._currentNode}set currentNode(t){if(!An(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=r,o=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),r=i=a.host}else r=r.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return An(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let s;if(typeof this.filter=="function"?s=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(s=this.filter.acceptNode(n)),s===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const d=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var o;if(typeof this.filter=="function")return this.filter(a);if(!((o=this.filter)===null||o===void 0)&&o.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const s=n.shadowRoot;if(s){const a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function tq(e,t,n,r){return _m()?new eq(e,t,n,r):e.createTreeWalker(t,n,r)}function P5(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=P5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nq(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=P5(e))&&(r&&(r+=" "),r+=t);return r}function Qt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let s=t[i],a=r[i];typeof s=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=ju(s,a):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[i]=nq(s,a):i==="id"&&s&&a?t.id=Zz(s,a):t[i]=a!==void 0?a:s}}return t}const rq=new Set(["id"]),iq=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),sq=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),aq=/^(data-.*)$/;function Qa(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,s={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(rq.has(a)||n&&iq.has(a)||r&&sq.has(a)||i!=null&&i.has(a)||aq.test(a))&&(s[a]=e[a]);return s}function Di(e){if(oq())e.focus({preventScroll:!0});else{let t=uq(e);e.focus(),lq(t)}}let Bh=null;function oq(){if(Bh==null){Bh=!1;try{document.createElement("div").focus({get preventScroll(){return Bh=!0,!0}})}catch{}}return Bh}function uq(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 lq(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Mm(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 r3(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 eo(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Ga=eo(function(){return r3(/^Mac/i)}),cq=eo(function(){return r3(/^iPhone/i)}),_5=eo(function(){return r3(/^iPad/i)||Ga()&&navigator.maxTouchPoints>1}),_d=eo(function(){return cq()||_5()}),fp=eo(function(){return Ga()||_d()}),i3=eo(function(){return Mm(/AppleWebKit/i)&&!M5()}),M5=eo(function(){return Mm(/Chrome/i)}),s3=eo(function(){return Mm(/Android/i)}),fq=eo(function(){return Mm(/Firefox/i)}),dq=T.createContext({isNative:!0,open:pq,useHref:e=>e});function Fm(){return T.useContext(dq)}function Ku(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:a,altKey:o,shiftKey:l}=t;fq()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ga()?s=!0:a=!0);let d=i3()&&Ga()&&!_5()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:a,altKey:o,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:a,altKey:o,shiftKey:l,bubbles:!0,cancelable:!0});Ku.isOpening=n,Di(e),e.dispatchEvent(d),Ku.isOpening=!1}Ku.isOpening=!1;function hq(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 pq(e,t){hq(e,n=>Ku(n,t))}function mq(e){let t=Fm();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let Co=new Map,mb=new Set;function BC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Co.get(r.target);i||(i=new Set,Co.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Co.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Co.delete(r.target)),Co.size===0)){for(let s of mb)s();mb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?BC():document.addEventListener("DOMContentLoaded",BC));function gq(){for(const[e]of Co)"isConnected"in e&&!e.isConnected&&Co.delete(e)}function F5(e){requestAnimationFrame(()=>{gq(),Co.size===0?e():mb.add(e)})}function Io(){let e=T.useRef(new Map),t=T.useCallback((i,s,a,o)=>{let l=o!=null&&o.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:s,eventTarget:i,fn:l,options:o}),i.addEventListener(s,l,o)},[]),n=T.useCallback((i,s,a,o)=>{var l;let d=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;i.removeEventListener(s,d,o),e.current.delete(a)},[]),r=T.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return T.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function lc(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Hr(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 gb(e,t){const n=T.useRef(!0),r=T.useRef(null);T.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),T.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((s,a)=>!Object.is(s,i[a])))&&e(),r.current=t},t)}function VC(e,t){const n=T.useRef(!0),r=T.useRef(null);pn(()=>(n.current=!0,()=>{n.current=!1}),[]),pn(()=>{n.current?n.current=!1:(!r.current||t.some((i,s)=>!Object.is(i,r[s])))&&e(),r.current=t},t)}function vq(){return typeof window.ResizeObserver<"u"}function NC(e){const{ref:t,box:n,onResize:r}=e;T.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(vq()){const s=new window.ResizeObserver(a=>{a.length&&r()});return s.observe(i,{box:n}),()=>{i&&s.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function R5(e,t){pn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function rd(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 Rm(e,t){let n=e;for(rd(n,t)&&(n=n.parentElement);n&&!rd(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function yq(e,t){const n=[];for(;e&&e!==document.documentElement;)rd(e,t)&&n.push(e),e=e.parentElement;return n}let bq=0;const _v=new Map;function Md(e){let[t,n]=T.useState();return pn(()=>{if(!e)return;let r=_v.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${bq++}`;n(i);let s=document.createElement("div");s.id=i,s.style.display="none",s.textContent=e,document.body.appendChild(s),r={refCount:0,element:s},_v.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),_v.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Qs(e,t,n,r){let i=kn(n),s=n==null;T.useEffect(()=>{if(s||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,s,i])}function k5(e,t){let n=jC(e,t,"left"),r=jC(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,o=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),x=a+parseInt(d,10),w=o+parseInt(l,10),S=x+e.clientWidth,E=w+e.clientHeight,C=parseInt(h,10)||0,A=parseInt(g,10)||0,k=parseInt(m,10)||0,M=parseInt(b,10)||0;n<=a+M?a=n-parseInt(d,10)-M:n+i>S-k&&(a+=n+i-S+k),r<=w+C?o=r-parseInt(l,10)-C:r+s>E-A&&(o+=r+s-E+A),e.scrollLeft=a,e.scrollTop=o}function jC(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 Kp(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=yq(e);for(let d of l)k5(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,s;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function vb(e){return e.mozInputSource===0&&e.isTrusted?!0:s3()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $q(e){return!s3()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function O5(e,t){let n=T.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function a3(e,t,n){let r=T.useRef(t),i=kn(()=>{n&&n(r.current)});T.useEffect(()=>{var s;let a=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return a==null||a.addEventListener("reset",i),()=>{a==null||a.removeEventListener("reset",i)}},[e,i])}const xq="react-aria-clear-focus",wq="react-aria-focus";function Rl(e){return Ga()?e.metaKey:e.ctrlKey}const o3=["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"])'],Cq=o3.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";o3.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Eq=o3.join(':not([hidden]):not([tabindex="-1"]),');function I5(e){return e.matches(Cq)}function Sq(e){return e.matches(Eq)}function Ai(e,t,n){let[r,i]=T.useState(e||t),s=T.useRef(e!==void 0),a=e!==void 0;T.useEffect(()=>{let d=s.current;d!==a&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),s.current=a},[a]);let o=a?e:r,l=T.useCallback((d,...h)=>{let m=(g,...b)=>{n&&(Object.is(o,g)||n(g,...b)),a||(o=g)};typeof d=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...x)=>{let w=d(a?o:b,...x);return m(w,...h),a?b:w})):(a||i(d),m(d,...h))},[a,o,n]);return[o,l]}function cc(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Vh(e,t){let n=e,r=t.toString(),i=r.indexOf("."),s=i>=0?r.length-i:0;if(s>0){let a=Math.pow(10,s);n=Math.round(n*a)/a}return n}function yf(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,s=Vh(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&s>n&&(s=Math.floor(Vh(n/r,r))*r):s<t?s=t:!isNaN(n)&&s>n&&(s=t+Math.floor(Vh((n-t)/r,r))*r),s=Vh(s,r),s}function u3(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function L5(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function B5(e){let t=T.useRef({isFocused:!1,observer:null});pn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=kn(r=>{e==null||e(r)});return T.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,s=a=>{if(t.current.isFocused=!1,i.disabled){let o=u3(a);n(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let o=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Up=!1;function KC(e){for(;e&&!I5(e);)e=e.parentElement;let t=Ha(e),n=t.document.activeElement;if(!n||n===e)return;Up=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,Di(n),l()))},a=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},o=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,Di(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",a,!0),Up=!1,r=!1},d=requestAnimationFrame(l);return l}let Il="default",yb="",dp=new WeakMap;function bb(e){if(_d()){if(Il==="default"){const t=tn(e);yb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Il="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";dp.set(e,e.style[t]),e.style[t]="none"}}function hp(e){if(_d()){if(Il!=="disabled")return;Il="restoring",setTimeout(()=>{F5(()=>{if(Il==="restoring"){const t=tn(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=yb||""),yb="",Il="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&dp.has(e)){let t=dp.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),dp.delete(e)}}const l3=T.createContext({register:()=>{}});l3.displayName="PressResponderContext";function Dq(e,t){return t.get?t.get.call(e):t.value}function V5(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Aq(e,t){var n=V5(e,t,"get");return Dq(e,n)}function Tq(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fd(e,t,n){Tq(e,t),t.set(e,n)}function Pq(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 UC(e,t,n){var r=V5(e,t,"set");return Pq(e,r,n),n}function _q(e){let t=T.useContext(l3);if(t){let{register:n,...r}=t;e=Qt(r,e),n()}return R5(t,e.ref),e}var Nh=new WeakMap;class jh{continuePropagation(){UC(this,Nh,!1)}get shouldStopPropagation(){return Aq(this,Nh)}constructor(t,n,r,i){Fd(this,Nh,{writable:!0,value:void 0}),UC(this,Nh,!0);var s;let a=(s=i==null?void 0:i.target)!==null&&s!==void 0?s:r.currentTarget;const o=a==null?void 0:a.getBoundingClientRect();let l,d=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),o&&(h!=null&&m!=null?(l=h-o.left,d=m-o.top):(l=o.width/2,d=o.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 zC=Symbol("linkClicked"),qC="react-aria-pressable-style",WC="data-react-aria-pressable";function Rd(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,onClick:a,isDisabled:o,isPressed:l,preventFocusOnPress:d,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...b}=_q(e),[x,w]=T.useState(!1),S=T.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:E,removeAllGlobalListeners:C}=Io(),A=kn((I,$e)=>{let we=S.current;if(o||we.didFirePressStart)return!1;let W=!0;if(we.isTriggeringEvent=!0,r){let ie=new jh("pressstart",$e,I);r(ie),W=ie.shouldStopPropagation}return n&&n(!0),we.isTriggeringEvent=!1,we.didFirePressStart=!0,w(!0),W}),k=kn((I,$e,we=!0)=>{let W=S.current;if(!W.didFirePressStart)return!1;W.didFirePressStart=!1,W.isTriggeringEvent=!0;let ie=!0;if(i){let O=new jh("pressend",$e,I);i(O),ie=O.shouldStopPropagation}if(n&&n(!1),w(!1),t&&we&&!o){let O=new jh("press",$e,I);t(O),ie&&(ie=O.shouldStopPropagation)}return W.isTriggeringEvent=!1,ie}),M=kn((I,$e)=>{let we=S.current;if(o)return!1;if(s){we.isTriggeringEvent=!0;let W=new jh("pressup",$e,I);return s(W),we.isTriggeringEvent=!1,W.shouldStopPropagation}return!0}),R=kn(I=>{let $e=S.current;if($e.isPressed&&$e.target){$e.didFirePressStart&&$e.pointerType!=null&&k(cu($e.target,I),$e.pointerType,!1),$e.isPressed=!1,$e.isOverTarget=!1,$e.activePointerId=null,$e.pointerType=null,C(),m||hp($e.target);for(let we of $e.disposables)we();$e.disposables=[]}}),K=kn(I=>{h&&R(I)}),H=kn(I=>{a==null||a(I)}),le=kn((I,$e)=>{if(a){let we=new MouseEvent("click",I);L5(we,$e),a(u3(we))}}),ae=T.useMemo(()=>{let I=S.current,$e={onKeyDown(W){if(Mv(W.nativeEvent,W.currentTarget)&&An(W.currentTarget,sn(W.nativeEvent))){var ie;YC(sn(W.nativeEvent),W.key)&&W.preventDefault();let O=!0;if(!I.isPressed&&!W.repeat){I.target=W.currentTarget,I.isPressed=!0,I.pointerType="keyboard",O=A(W,"keyboard");let L=W.currentTarget,B=he=>{Mv(he,L)&&!he.repeat&&An(L,sn(he))&&I.target&&M(cu(I.target,he),"keyboard")};E(tn(W.currentTarget),"keyup",ju(B,we),!0)}O&&W.stopPropagation(),W.metaKey&&Ga()&&((ie=I.metaKeyEvents)===null||ie===void 0||ie.set(W.key,W.nativeEvent))}else W.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick(W){if(!(W&&!An(W.currentTarget,sn(W.nativeEvent)))&&W&&W.button===0&&!I.isTriggeringEvent&&!Ku.isOpening){let ie=!0;if(o&&W.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||vb(W.nativeEvent))){let O=A(W,"virtual"),L=M(W,"virtual"),B=k(W,"virtual");H(W),ie=O&&L&&B}else if(I.isPressed&&I.pointerType!=="keyboard"){let O=I.pointerType||W.nativeEvent.pointerType||"virtual",L=M(cu(W.currentTarget,W),O),B=k(cu(W.currentTarget,W),O,!0);ie=L&&B,I.isOverTarget=!1,H(W),R(W)}I.ignoreEmulatedMouseEvents=!1,ie&&W.stopPropagation()}}},we=W=>{var ie;if(I.isPressed&&I.target&&Mv(W,I.target)){var O;YC(sn(W),W.key)&&W.preventDefault();let B=sn(W),he=An(I.target,sn(W));k(cu(I.target,W),"keyboard",he),he&&le(W,I.target),C(),W.key!=="Enter"&&c3(I.target)&&An(I.target,B)&&!W[zC]&&(W[zC]=!0,Ku(I.target,W,!1)),I.isPressed=!1,(O=I.metaKeyEvents)===null||O===void 0||O.delete(W.key)}else if(W.key==="Meta"&&(!((ie=I.metaKeyEvents)===null||ie===void 0)&&ie.size)){var L;let B=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let he of B.values())(L=I.target)===null||L===void 0||L.dispatchEvent(new KeyboardEvent("keyup",he))}};if(typeof PointerEvent<"u"){$e.onPointerDown=O=>{if(O.button!==0||!An(O.currentTarget,sn(O.nativeEvent)))return;if($q(O.nativeEvent)){I.pointerType="virtual";return}I.pointerType=O.pointerType;let L=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=O.pointerId,I.target=O.currentTarget,m||bb(I.target),L=A(O,I.pointerType);let B=sn(O.nativeEvent);"releasePointerCapture"in B&&B.releasePointerCapture(O.pointerId),E(tn(O.currentTarget),"pointerup",W,!1),E(tn(O.currentTarget),"pointercancel",ie,!1)}L&&O.stopPropagation()},$e.onMouseDown=O=>{if(An(O.currentTarget,sn(O.nativeEvent))&&O.button===0){if(d){let L=KC(O.target);L&&I.disposables.push(L)}O.stopPropagation()}},$e.onPointerUp=O=>{!An(O.currentTarget,sn(O.nativeEvent))||I.pointerType==="virtual"||O.button===0&&!I.isPressed&&M(O,I.pointerType||O.pointerType)},$e.onPointerEnter=O=>{O.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,A(cu(I.target,O),I.pointerType))},$e.onPointerLeave=O=>{O.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,k(cu(I.target,O),I.pointerType,!1),K(O))};let W=O=>{if(O.pointerId===I.activePointerId&&I.isPressed&&O.button===0&&I.target){if(An(I.target,sn(O))&&I.pointerType!=null){let L=!1,B=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(L?R(O):(Di(I.target),I.target.click()))},80);E(O.currentTarget,"click",()=>L=!0,!0),I.disposables.push(()=>clearTimeout(B))}else R(O);I.isOverTarget=!1}},ie=O=>{R(O)};$e.onDragStart=O=>{An(O.currentTarget,sn(O.nativeEvent))&&R(O)}}else if(process.env.NODE_ENV==="test"){$e.onMouseDown=O=>{if(O.button!==0||!An(O.currentTarget,sn(O.nativeEvent)))return;if(I.ignoreEmulatedMouseEvents){O.stopPropagation();return}if(I.isPressed=!0,I.isOverTarget=!0,I.target=O.currentTarget,I.pointerType=vb(O.nativeEvent)?"virtual":"mouse",za.flushSync(()=>A(O,I.pointerType))&&O.stopPropagation(),d){let B=KC(O.target);B&&I.disposables.push(B)}E(tn(O.currentTarget),"mouseup",W,!1)},$e.onMouseEnter=O=>{if(!An(O.currentTarget,sn(O.nativeEvent)))return;let L=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!0,L=A(O,I.pointerType)),L&&O.stopPropagation()},$e.onMouseLeave=O=>{if(!An(O.currentTarget,sn(O.nativeEvent)))return;let L=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!1,L=k(O,I.pointerType,!1),K(O)),L&&O.stopPropagation()},$e.onMouseUp=O=>{An(O.currentTarget,sn(O.nativeEvent))&&!I.ignoreEmulatedMouseEvents&&O.button===0&&!I.isPressed&&M(O,I.pointerType||"mouse")};let W=O=>{if(O.button===0){if(I.ignoreEmulatedMouseEvents){I.ignoreEmulatedMouseEvents=!1;return}I.target&&I.target.contains(O.target)&&I.pointerType!=null||R(O),I.isOverTarget=!1}};$e.onTouchStart=O=>{if(!An(O.currentTarget,sn(O.nativeEvent)))return;let L=Mq(O.nativeEvent);if(!L)return;I.activePointerId=L.identifier,I.ignoreEmulatedMouseEvents=!0,I.isOverTarget=!0,I.isPressed=!0,I.target=O.currentTarget,I.pointerType="touch",m||bb(I.target),A(go(I.target,O),I.pointerType)&&O.stopPropagation(),E(Ha(O.currentTarget),"scroll",ie,!0)},$e.onTouchMove=O=>{if(!An(O.currentTarget,sn(O.nativeEvent)))return;if(!I.isPressed){O.stopPropagation();return}let L=HC(O.nativeEvent,I.activePointerId),B=!0;L&&GC(L,O.currentTarget)?!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,B=A(go(I.target,O),I.pointerType)):I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,B=k(go(I.target,O),I.pointerType,!1),K(go(I.target,O))),B&&O.stopPropagation()},$e.onTouchEnd=O=>{if(!An(O.currentTarget,sn(O.nativeEvent)))return;if(!I.isPressed){O.stopPropagation();return}let L=HC(O.nativeEvent,I.activePointerId),B=!0;L&&GC(L,O.currentTarget)&&I.pointerType!=null?(M(go(I.target,O),I.pointerType),B=k(go(I.target,O),I.pointerType),le(O.nativeEvent,I.target)):I.isOverTarget&&I.pointerType!=null&&(B=k(go(I.target,O),I.pointerType,!1)),B&&O.stopPropagation(),I.isPressed=!1,I.activePointerId=null,I.isOverTarget=!1,I.ignoreEmulatedMouseEvents=!0,I.target&&!m&&hp(I.target),C()},$e.onTouchCancel=O=>{An(O.currentTarget,sn(O.nativeEvent))&&(O.stopPropagation(),I.isPressed&&R(go(I.target,O)))};let ie=O=>{I.isPressed&&An(sn(O),I.target)&&R({currentTarget:I.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};$e.onDragStart=O=>{An(O.currentTarget,sn(O.nativeEvent))&&R(O)}}return $e},[E,o,d,C,m,R,K,k,A,M,H,le]);return T.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const I=tn(g.current);if(!I||!I.head||I.getElementById(qC))return;const $e=I.createElement("style");$e.id=qC,$e.textContent=`
87
- @layer {
88
- [${WC}] {
89
- touch-action: pan-x pan-y pinch-zoom;
90
- }
91
- }
92
- `.trim(),I.head.prepend($e)},[g]),T.useEffect(()=>{let I=S.current;return()=>{var $e;m||hp(($e=I.target)!==null&&$e!==void 0?$e:void 0);for(let we of I.disposables)we();I.disposables=[]}},[m]),{isPressed:l||x,pressProps:Qt(b,ae,{[WC]:!0})}}function c3(e){return e.tagName==="A"&&e.hasAttribute("href")}function Mv(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Ha(i).HTMLInputElement&&!N5(i,n)||i instanceof Ha(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&c3(i))&&n!=="Enter")}function Mq(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function HC(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 go(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 cu(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 Fq(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 Rq(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function GC(e,t){let n=t.getBoundingClientRect(),r=Fq(e);return Rq(n,r)}function kq(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!c3(e)}function YC(e,t){return e instanceof HTMLInputElement?!N5(e,t):kq(e)}const Oq=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function N5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Oq.has(e.type)}let Yu=null,Iq=new Set,qf=new Map,Uu=!1,$b=!1;function km(e,t){for(let n of Iq)n(e,t)}function Lq(e){return!(e.metaKey||!Ga()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function zp(e){Uu=!0,Lq(e)&&(Yu="keyboard",km("keyboard",e))}function Wi(e){Yu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Uu=!0,km("pointer",e))}function j5(e){vb(e)&&(Uu=!0,Yu="virtual")}function K5(e){e.target===window||e.target===document||Up||!e.isTrusted||(!Uu&&!$b&&(Yu="virtual",km("virtual",e)),Uu=!1,$b=!1)}function U5(){Up||(Uu=!1,$b=!0)}function ZC(e){if(typeof window>"u"||typeof document>"u"||qf.get(Ha(e)))return;const t=Ha(e),n=tn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Uu=!0,r.apply(this,arguments)},n.addEventListener("keydown",zp,!0),n.addEventListener("keyup",zp,!0),n.addEventListener("click",j5,!0),t.addEventListener("focus",K5,!0),t.addEventListener("blur",U5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Wi,!0),n.addEventListener("pointermove",Wi,!0),n.addEventListener("pointerup",Wi,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Wi,!0),n.addEventListener("mousemove",Wi,!0),n.addEventListener("mouseup",Wi,!0)),t.addEventListener("beforeunload",()=>{z5(e)},{once:!0}),qf.set(t,{focus:r})}const z5=(e,t)=>{const n=Ha(e),r=tn(e);t&&r.removeEventListener("DOMContentLoaded",t),qf.has(n)&&(n.HTMLElement.prototype.focus=qf.get(n).focus,r.removeEventListener("keydown",zp,!0),r.removeEventListener("keyup",zp,!0),r.removeEventListener("click",j5,!0),n.removeEventListener("focus",K5,!0),n.removeEventListener("blur",U5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Wi,!0),r.removeEventListener("pointermove",Wi,!0),r.removeEventListener("pointerup",Wi,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Wi,!0),r.removeEventListener("mousemove",Wi,!0),r.removeEventListener("mouseup",Wi,!0)),qf.delete(n))};function Bq(e){const t=tn(e);let n;return t.readyState!=="loading"?ZC(e):(n=()=>{ZC(e)},t.addEventListener("DOMContentLoaded",n)),()=>z5(e,n)}typeof document<"u"&&Bq();function XC(){return Yu!=="pointer"}function id(){return Yu}function q5(e){Yu=e,km(e,null)}function zu(e){const t=tn(e),n=mr(t);if(id()==="virtual"){let r=n;F5(()=>{mr(t)===r&&e.isConnected&&Di(e)})}else Di(e)}function Vq(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=T.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),a=B5(s),o=T.useCallback(l=>{const d=tn(l.target),h=d?mr(d):mr();l.target===l.currentTarget&&h===sn(l.nativeEvent)&&(n&&n(l),i&&i(!0),a(l))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?s:void 0}}}function JC(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function W5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:JC(e.onKeyDown),onKeyUp:JC(e.onKeyUp)}}}let Nq=T.createContext(null);function jq(e){let t=T.useContext(Nq)||{};R5(t,e);let{ref:n,...r}=t;return r}function f3(e,t){let{focusProps:n}=Vq(e),{keyboardProps:r}=W5(e),i=Qt(n,r),s=jq(t),a=e.isDisabled?{}:s,o=T.useRef(e.autoFocus);T.useEffect(()=>{o.current&&t.current&&zu(t.current),o.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Qt({...i,tabIndex:l},a)}}function Kq({children:e}){let t=T.useMemo(()=>({register:()=>{}}),[]);return T.createElement(l3.Provider,{value:t},e)}function wc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=T.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:o}=Io(),l=T.useCallback(m=>{m.currentTarget.contains(m.target)&&s.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(s.current.isFocusWithin=!1,o(),n&&n(m),i&&i(!1))},[n,i,s,o]),d=B5(l),h=T.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=tn(m.target),b=mr(g);if(!s.current.isFocusWithin&&b===sn(m.nativeEvent)){r&&r(m),i&&i(!0),s.current.isFocusWithin=!0,d(m);let x=m.currentTarget;a(g,"focus",w=>{if(s.current.isFocusWithin&&!An(x,w.target)){let S=new g.defaultView.FocusEvent("blur",{relatedTarget:w.target});L5(S,x);let E=u3(S);l(E)}},{capture:!0})}},[r,i,d,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let qp=!1,Fv=0;function xb(){qp=!0,setTimeout(()=>{qp=!1},50)}function QC(e){e.pointerType==="touch"&&xb()}function Uq(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",QC):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",xb),Fv++,()=>{Fv--,!(Fv>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",QC):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",xb))}}function zq(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,a]=T.useState(!1),o=T.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;T.useEffect(Uq,[]);let{addGlobalListener:l,removeAllGlobalListeners:d}=Io(),{hoverProps:h,triggerHoverEnd:m}=T.useMemo(()=>{let g=(w,S)=>{if(o.pointerType=S,i||S==="touch"||o.isHovered||!w.currentTarget.contains(w.target))return;o.isHovered=!0;let E=w.currentTarget;o.target=E,l(tn(w.target),"pointerover",C=>{o.isHovered&&o.target&&!An(o.target,C.target)&&b(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:E,pointerType:S}),n&&n(!0),a(!0)},b=(w,S)=>{let E=o.target;o.pointerType="",o.target=null,!(S==="touch"||!o.isHovered||!E)&&(o.isHovered=!1,d(),r&&r({type:"hoverend",target:E,pointerType:S}),n&&n(!1),a(!1))},x={};return typeof PointerEvent<"u"?(x.onPointerEnter=w=>{qp&&w.pointerType==="mouse"||g(w,w.pointerType)},x.onPointerLeave=w=>{!i&&w.currentTarget.contains(w.target)&&b(w,w.pointerType)}):process.env.NODE_ENV==="test"&&(x.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},x.onMouseEnter=w=>{!o.ignoreEmulatedMouseEvents&&!qp&&g(w,"mouse"),o.ignoreEmulatedMouseEvents=!1},x.onMouseLeave=w=>{!i&&w.currentTarget.contains(w.target)&&b(w,"mouse")}),{hoverProps:x,triggerHoverEnd:b}},[t,n,r,i,o,l,d]);return T.useEffect(()=>{i&&m({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:h,isHovered:s}}function qq(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=T.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=kn(l=>{n&&Kh(l,t)&&(i&&i(l),s.current.isPointerDown=!0)}),o=kn(l=>{n&&n(l)});T.useEffect(()=>{let l=s.current;if(r)return;const d=t.current,h=tn(d);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&Kh(g,t)&&o(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",a,!0),h.addEventListener("click",m,!0),()=>{h.removeEventListener("pointerdown",a,!0),h.removeEventListener("click",m,!0)}}else if(process.env.NODE_ENV==="test"){let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Kh(b,t)&&o(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Kh(b,t)&&o(b),l.isPointerDown=!1};return h.addEventListener("mousedown",a,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",a,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",a,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",a,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,a,o])}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?!e.composedPath().includes(t.current):!1}function H5(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=T.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:a}=Io(),o=kn((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=kn((h,m)=>{hp(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:T.useMemo(()=>{let h={},m=()=>{bb(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=E=>{if(E.button===0){var C,A,k,M;o(E,"mouse",E.pageX-((k=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&k!==void 0?k:0),E.pageY-((M=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageY)!==null&&M!==void 0?M:0)),i.current.lastPosition={pageX:E.pageX,pageY:E.pageY}}},x=E=>{E.button===0&&(l(E,"mouse"),a(window,"mousemove",b,!1),a(window,"mouseup",x,!1))};h.onMouseDown=E=>{E.button===0&&(m(),E.stopPropagation(),E.preventDefault(),i.current.lastPosition={pageX:E.pageX,pageY:E.pageY},s(window,"mousemove",b,!1),s(window,"mouseup",x,!1))};let w=E=>{let C=[...E.changedTouches].findIndex(({identifier:K})=>K===i.current.id);if(C>=0){var A,k;let{pageX:K,pageY:H}=E.changedTouches[C];var M,R;o(E,"touch",K-((M=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&M!==void 0?M:0),H-((R=(k=i.current.lastPosition)===null||k===void 0?void 0:k.pageY)!==null&&R!==void 0?R:0)),i.current.lastPosition={pageX:K,pageY:H}}},S=E=>{[...E.changedTouches].findIndex(({identifier:A})=>A===i.current.id)>=0&&(l(E,"touch"),i.current.id=null,a(window,"touchmove",w),a(window,"touchend",S),a(window,"touchcancel",S))};h.onTouchStart=E=>{if(E.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:A,identifier:k}=E.changedTouches[0];m(),E.stopPropagation(),E.preventDefault(),i.current.lastPosition={pageX:C,pageY:A},i.current.id=k,s(window,"touchmove",w,!1),s(window,"touchend",S,!1),s(window,"touchcancel",S,!1)}}else{let b=w=>{if(w.pointerId===i.current.id){var S,E;let k=w.pointerType||"mouse";var C,A;o(w,k,w.pageX-((C=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageX)!==null&&C!==void 0?C:0),w.pageY-((A=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&A!==void 0?A:0)),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY}}},x=w=>{if(w.pointerId===i.current.id){let S=w.pointerType||"mouse";l(w,S),i.current.id=null,a(window,"pointermove",b,!1),a(window,"pointerup",x,!1),a(window,"pointercancel",x,!1)}};h.onPointerDown=w=>{w.button===0&&i.current.id==null&&(m(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY},i.current.id=w.pointerId,s(window,"pointermove",b,!1),s(window,"pointerup",x,!1),s(window,"pointercancel",x,!1))}}let g=(b,x,w)=>{m(),o(b,"keyboard",x,w),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,s,a,o,l])}}const Wq=500;function G5(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:s=Wq,accessibilityDescription:a}=e;const o=T.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:d}=Io(),{pressProps:h}=Rd({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),o.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),tn(g.target).activeElement!==g.target&&Di(g.target),i&&i({...g,type:"longpress"}),o.current=void 0},s),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){o.current&&clearTimeout(o.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=Md(i&&!t?a:void 0);return{longPressProps:Qt(h,m)}}const Hq=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Gq=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Yq(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 Hq.has(n.script)}let t=e.split("-")[0];return Gq.has(t)}const Zq=Symbol.for("react-aria.i18n.locale");function Y5(){let e=typeof window<"u"&&window[Zq]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Yq(e)?"rtl":"ltr"}}let wb=Y5(),If=new Set;function eE(){wb=Y5();for(let e of If)e(wb)}function Xq(){let e=n3(),[t,n]=T.useState(wb);return T.useEffect(()=>(If.size===0&&window.addEventListener("languagechange",eE),If.add(n),()=>{If.delete(n),If.size===0&&window.removeEventListener("languagechange",eE)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Jq=T.createContext(null);function Rr(){let e=Xq();return T.useContext(Jq)||e}const Qq=Symbol.for("react-aria.i18n.locale"),eW=Symbol.for("react-aria.i18n.strings");let _l;class Lo{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=tW(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Qq];if(_l===void 0){let i=window[eW];if(!i)return null;_l={};for(let s in i)_l[s]=new Lo({[n]:i[s]},n)}let r=_l==null?void 0:_l[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 tW(e,t,n="en-US"){if(t[e])return t[e];let r=nW(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function nW(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const tE=new Map,nE=new Map;class Z5{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 s=this.locale+":"+r,a=tE.get(s);a||(a=new Intl.PluralRules(this.locale,{type:r}),tE.set(s,a));let o=a.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=nE.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),nE.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 rE=new WeakMap;function rW(e){let t=rE.get(e);return t||(t=new Lo(e),rE.set(e,t)),t}function X5(e,t){return t&&Lo.getGlobalDictionaryForPackage(t)||rW(e)}function fa(e,t){let{locale:n}=Rr(),r=X5(e,t);return T.useMemo(()=>new Z5(n,r),[n,r])}function Zl(e,t){return e-t*Math.floor(e/t)}const J5=1721426;function $u(e,t,n,r){t=kd(e,t);let i=t-1,s=-2;return n<=2?s=0:Ao(t)&&(s=-1),J5-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+s+r)}function Ao(e){return e%4===0&&(e%100!==0||e%400===0)}function kd(e,t){return e==="BC"?1-t:t}function Om(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const iW={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 Yr{fromJulianDay(t){let n=t,r=n-J5,i=Math.floor(r/146097),s=Zl(r,146097),a=Math.floor(s/36524),o=Zl(s,36524),l=Math.floor(o/1461),d=Zl(o,1461),h=Math.floor(d/365),m=i*400+a*100+l*4+h+(a!==4&&h!==4?1:0),[g,b]=Om(m),x=n-$u(g,b,1,1),w=2;n<$u(g,b,3,1)?w=0:Ao(b)&&(w=1);let S=Math.floor(((x+w)*12+373)/367),E=n-$u(g,b,S,1)+1;return new Zn(g,b,S,E)}toJulianDay(t){return $u(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return iW[Ao(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ao(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 sW={"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 nr(e,t){return t=On(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Cb(e,t){return Im(e.calendar,t.calendar)&&nr(e,t)}function Im(e,t){var n,r,i,s;return(s=(i=(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&i!==void 0?i:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&s!==void 0?s:e.identifier===t.identifier}function Q5(e,t){return nr(e,Lm(t))}const aW={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d3(e,t,n){let r=e.calendar.toJulianDay(e),i=n?aW[n]:dW(t),s=Math.ceil(r+1-i)%7;return s<0&&(s+=7),s}function e_(e){return ja(Date.now(),e)}function Lm(e){return Gr(e_(e))}function t_(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function n_(e,t){return iE(e)-iE(t)}function iE(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Rv=null;function Od(){return Rv==null&&(Rv=new Intl.DateTimeFormat().resolvedOptions().timeZone),Rv}function Id(e){return e.subtract({days:e.day-1})}function Eb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function oW(e){return Id(e.subtract({months:e.month-1}))}function uW(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function lW(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function sd(e,t,n){let r=d3(e,t,n);return e.subtract({days:r})}function cW(e,t,n){return sd(e,t,n).add({days:6})}const sE=new Map;function fW(e){if(Intl.Locale){let n=sE.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&sE.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function dW(e){let t=fW(e);return t&&sW[t]||0}function r_(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((d3(Id(e),t,n)+r)/7)}function h3(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function p3(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function fc(e){e=On(e,new Yr);let t=kd(e.era,e.year);return i_(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function i_(e,t,n,r,i,s,a){let o=new Date;return o.setUTCHours(r,i,s,a),o.setUTCFullYear(e,t-1,n),o.getTime()}function Sb(e,t){if(t==="UTC")return 0;if(e>0&&t===Od())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:s,minute:a,second:o}=s_(e,t);return i_(n,r,i,s,a,o,0)-Math.floor(e/1e3)*1e3}const aE=new Map;function s_(e,t){let n=aE.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"}),aE.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let s of r)s.type!=="literal"&&(i[s.type]=s.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 oE=864e5;function hW(e,t,n,r){return(n===r?[n]:[n,r]).filter(s=>pW(e,t,s))}function pW(e,t,n){let r=s_(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 Na(e,t,n="compatible"){let r=As(e);if(t==="UTC")return fc(r);if(t===Od()&&n==="compatible"){r=On(r,new Yr);let l=new Date,d=kd(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=fc(r),s=Sb(i-oE,t),a=Sb(i+oE,t),o=hW(r,t,i-s,i-a);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-s,i-a);case"compatible":case"later":return Math.max(i-s,i-a);case"reject":throw new RangeError("No such absolute time found")}}function a_(e,t,n="compatible"){return new Date(Na(e,t,n))}function ja(e,t){let n=Sb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),s=r.getUTCMonth()+1,a=r.getUTCDate(),o=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new ud(i<1?"BC":"AD",i<1?-i+1:i,s,a,t,n,o,l,d,h)}function Gr(e){return new Zn(e.calendar,e.era,e.year,e.month,e.day)}function As(e,t){let n=0,r=0,i=0,s=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:s}=t),new od(e.calendar,e.era,e.year,e.month,e.day,n,r,i,s)}function uE(e){return new Ld(e.hour,e.minute,e.second,e.millisecond)}function On(e,t){if(Im(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,qu(r),r}function o_(e,t,n){if(e instanceof ud)return e.timeZone===t?e:gW(e,t);let r=Na(e,t,n);return ja(r,t)}function mW(e){let t=fc(e)-e.offset;return new Date(t)}function gW(e,t){let n=fc(e)-e.offset;return On(ja(n,t),e.calendar)}const bf=36e5;function Bm(e,t){let n=e.copy(),r="hour"in n?f_(n,t):0;Db(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Ab(n),u_(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,vW(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 s,a;let l=(s=(a=n.calendar).isInverseEra)===null||s===void 0?void 0:s.call(a,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 o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Db(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Ab(e){for(;e.month<1;)Db(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Db(e,1)}function vW(e){for(;e.day<1;)e.month--,Ab(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Ab(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 qu(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),u_(e)}function m3(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function l_(e,t){return Bm(e,m3(t))}function g3(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),qu(n),n}function ad(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),c_(n),n}function yW(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Uh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Uh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Uh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Uh(e.hour,24),t}function c_(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 Uh(e,t){let n=e%t;return n<0&&(n+=t),n}function f_(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,yW(e)}function d_(e,t){let n=e.copy();return f_(n,t),n}function bW(e,t){return d_(e,m3(t))}function v3(e,t,n,r){let i=e.copy();switch(t){case"era":{let o=e.calendar.getEras(),l=o.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Ka(l,n,0,o.length-1,r==null?void 0:r.round),i.era=o[l],qu(i);break}case"year":var s,a;!((s=(a=i.calendar).isInverseEra)===null||s===void 0)&&s.call(a,i)&&(n=-n),i.year=Ka(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=Ka(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Ka(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),qu(i),i}function y3(e,t,n,r){let i=e.copy();switch(t){case"hour":{let s=e.hour,a=0,o=23;if((r==null?void 0:r.hourCycle)===12){let l=s>=12;a=l?12:0,o=l?23:11}i.hour=Ka(s,n,a,o,r==null?void 0:r.round);break}case"minute":i.minute=Ka(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Ka(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Ka(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Ka(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function h_(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=Bm(As(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Na(i,e.timeZone)}else n=fc(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=ja(n,e.timeZone);return On(r,e.calendar)}function $W(e,t){return h_(e,m3(t))}function xW(e,t,n,r){switch(t){case"hour":{let i=0,s=23;if((r==null?void 0:r.hourCycle)===12){let x=e.hour>=12;i=x?12:0,s=x?23:11}let a=As(e),o=On(ad(a,{hour:i}),new Yr),l=[Na(o,e.timeZone,"earlier"),Na(o,e.timeZone,"later")].filter(x=>ja(x,e.timeZone).day===o.day)[0],d=On(ad(a,{hour:s}),new Yr),h=[Na(d,e.timeZone,"earlier"),Na(d,e.timeZone,"later")].filter(x=>ja(x,e.timeZone).day===d.day).pop(),m=fc(e)-e.offset,g=Math.floor(m/bf),b=m%bf;return m=Ka(g,n,Math.floor(l/bf),Math.floor(h/bf),r==null?void 0:r.round)*bf+b,On(ja(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return y3(e,t,n,r);case"era":case"year":case"month":case"day":{let i=v3(As(e),t,n,r),s=Na(i,e.timeZone);return On(ja(s,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function wW(e,t,n){let r=As(e),i=ad(g3(r,t),t);if(i.compare(r)===0)return e;let s=Na(i,e.timeZone,n);return On(ja(s,e.timeZone),e.calendar)}const CW=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,EW=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function SW(e){let t=e.match(CW);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Zn(Ys(t[1],0,9999),Ys(t[2],1,12),1);return n.day=Ys(t[3],1,n.calendar.getDaysInMonth(n)),n}function DW(e){let t=e.match(EW);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Ys(t[1],-9999,9999),r=n<1?"BC":"AD",i=new od(r,n<1?-n+1:n,Ys(t[2],1,12),1,t[4]?Ys(t[4],0,23):0,t[5]?Ys(t[5],0,59):0,t[6]?Ys(t[6],0,59):0,t[7]?Ys(t[7],0,1/0)*1e3:0);return i.day=Ys(t[3],0,i.calendar.getDaysInMonth(i)),i}function Ys(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 p_(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 m_(e){let t=On(e,new Yr),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 g_(e){return`${m_(e)}T${p_(e)}`}function AW(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 TW(e){return`${g_(e)}${AW(e.offset)}[${e.timeZone}]`}function b3(e){let t=typeof e[0]=="object"?e.shift():new Yr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),s=e.shift();return[t,n,r,i,s]}var PW=new WeakMap;class Zn{copy(){return this.era?new Zn(this.calendar,this.era,this.year,this.month,this.day):new Zn(this.calendar,this.year,this.month,this.day)}add(t){return Bm(this,t)}subtract(t){return l_(this,t)}set(t){return g3(this,t)}cycle(t,n,r){return v3(this,t,n,r)}toDate(t){return a_(this,t)}toString(){return m_(this)}compare(t){return t_(this,t)}constructor(...t){Fd(this,PW,{writable:!0,value:void 0});let[n,r,i,s,a]=b3(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=a,qu(this)}}var _W=new WeakMap;class Ld{copy(){return new Ld(this.hour,this.minute,this.second,this.millisecond)}add(t){return d_(this,t)}subtract(t){return bW(this,t)}set(t){return ad(this,t)}cycle(t,n,r){return y3(this,t,n,r)}toString(){return p_(this)}compare(t){return n_(this,t)}constructor(t=0,n=0,r=0,i=0){Fd(this,_W,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,c_(this)}}var MW=new WeakMap;class od{copy(){return this.era?new od(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new od(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Bm(this,t)}subtract(t){return l_(this,t)}set(t){return g3(ad(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return v3(this,t,n,r);default:return y3(this,t,n,r)}}toDate(t,n){return a_(this,t,n)}toString(){return g_(this)}compare(t){let n=t_(this,t);return n===0?n_(this,As(t)):n}constructor(...t){Fd(this,MW,{writable:!0,value:void 0});let[n,r,i,s,a]=b3(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,qu(this)}}var FW=new WeakMap;class ud{copy(){return this.era?new ud(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ud(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return h_(this,t)}subtract(t){return $W(this,t)}set(t,n){return wW(this,t,n)}cycle(t,n,r){return xW(this,t,n,r)}toDate(){return mW(this)}toString(){return TW(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-o_(t,this.timeZone).toDate().getTime()}constructor(...t){Fd(this,FW,{writable:!0,value:void 0});let[n,r,i,s,a]=b3(t),o=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=a,this.timeZone=o,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,qu(this)}}const Xl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],RW=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],pp=[1867,1911,1925,1988,2018],xo=["meiji","taisho","showa","heisei","reiwa"];function lE(e){const t=Xl.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?Xl.length-1:t===0?0:t-1}function kv(e){let t=pp[xo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Zn(e.year+t,e.month,e.day)}class kW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=lE(n);return new Zn(this,xo[r],n.year-pp[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(kv(t))}balanceDate(t){let n=kv(t),r=lE(n);xo[r]!==t.era&&(t.era=xo[r],t.year=n.year-pp[r]),this.constrainDate(t)}constrainDate(t){let n=xo.indexOf(t.era),r=RW[n];if(r!=null){let[i,s,a]=r,o=i-pp[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,s]=Xl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(s,t.day))}}getEras(){return xo}getYearsInEra(t){let n=xo.indexOf(t.era),r=Xl[n],i=Xl[n+1];if(i==null)return 9999-r[0]+1;let s=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth(kv(t))}getMinimumMonthInYear(t){let n=cE(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=cE(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function cE(e){if(e.year===1){let t=xo.indexOf(e.era);return Xl[t]}}const v_=-543;class OW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kd(n.era,n.year);return new Zn(this,r-v_,n.month,n.day)}toJulianDay(t){return super.toJulianDay(fE(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(fE(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function fE(e){let[t,n]=Om(e.year+v_);return new Zn(t,n,e.month,e.day)}const Wp=1911;function y_(e){return e.era==="minguo"?e.year+Wp:1-e.year+Wp}function dE(e){let t=e-Wp;return t>0?["minguo",t]:["before_minguo",1-t]}class IW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kd(n.era,n.year),[i,s]=dE(r);return new Zn(this,i,s,n.month,n.day)}toJulianDay(t){return super.toJulianDay(hE(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=dE(y_(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(hE(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Wp}constructor(...t){super(...t),this.identifier="roc"}}function hE(e){let[t,n]=Om(y_(e));return new Zn(t,n,e.month,e.day)}const pE=1948320,mE=[0,31,62,93,124,155,186,216,246,276,306,336];class LW{fromJulianDay(t){let n=t-pE,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),s=n-i,a=s<216?Math.floor(s/31):Math.floor((s-6)/30),o=s-mE[a]+1;return new Zn(this,r,a+1,o)}toJulianDay(t){let n=pE-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=mE[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 Ov=78,gE=80;class BW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Ov,i=t-$u(n.era,n.year,1,1),s;i<gE?(r--,s=Ao(n.year-1)?31:30,i+=s+155+90+10):(s=Ao(n.year)?31:30,i-=gE);let a,o;if(i<s)a=1,o=i+1;else{let l=i-s;l<155?(a=Math.floor(l/31)+2,o=l%31+1):(l-=155,a=Math.floor(l/30)+7,o=l%30+1)}return new Zn(this,r,a,o)}toJulianDay(t){let n=t.year+Ov,[r,i]=Om(n),s,a;return Ao(i)?(s=31,a=$u(r,i,3,21)):(s=30,a=$u(r,i,3,22)),t.month===1?a+t.day-1:(a+=s+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&Ao(t.year+Ov)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Hp=1948440,vE=1948439,qi=1300,Ml=1600,VW=460322;function Gp(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function b_(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Gp(t,r,1,1)))/29.5)+1),s=n-Gp(t,r,i,1)+1;return new Zn(e,r,i,s)}function yE(e){return(14+11*e)%30<11}class $3{fromJulianDay(t){return b_(this,Hp,t)}toJulianDay(t){return Gp(Hp,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&yE(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return yE(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class NW extends $3{fromJulianDay(t){return b_(this,vE,t)}toJulianDay(t){return Gp(vE,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const jW="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Tb,Jl;function mp(e){return VW+Jl[e-qi]}function Lf(e,t){let n=e-qi,r=1<<11-(t-1);return(Tb[n]&r)===0?29:30}function bE(e,t){let n=mp(e);for(let r=1;r<t;r++)n+=Lf(e,r);return n}function $E(e){return Jl[e+1-qi]-Jl[e-qi]}class KW extends $3{fromJulianDay(t){let n=t-Hp,r=mp(qi),i=mp(Ml);if(n<r||n>i)return super.fromJulianDay(t);{let s=qi-1,a=1,o=1;for(;o>0;){s++,o=n-mp(s)+1;let l=$E(s);if(o===l){a=12;break}else if(o<l){let d=Lf(s,a);for(a=1;o>d;)o-=d,a++,d=Lf(s,a);break}}return new Zn(this,s,a,n-bE(s,a)+1)}}toJulianDay(t){return t.year<qi||t.year>Ml?super.toJulianDay(t):Hp+bE(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<qi||t.year>Ml?super.getDaysInMonth(t):Lf(t.year,t.month)}getDaysInYear(t){return t.year<qi||t.year>Ml?super.getDaysInYear(t):$E(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Tb||(Tb=new Uint16Array(Uint8Array.from(atob(jW),t=>t.charCodeAt(0)).buffer)),!Jl){Jl=new Uint32Array(Ml-qi+1);let t=0;for(let n=qi;n<=Ml;n++){Jl[n-qi]=t;for(let r=1;r<=12;r++)t+=Lf(n,r)}}}}const xE=347997,$_=1080,x_=24*$_,UW=29,zW=12*$_+793,qW=UW*x_+zW;function gu(e){return Zl(e*7+1,19)<7}function gp(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 WW(e){let t=gp(e-1),n=gp(e);return gp(e+1)-n===356?2:n-t===382?1:0}function Wf(e){return gp(e)+WW(e)}function w_(e){return Wf(e+1)-Wf(e)}function HW(e){let t=w_(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function zh(e,t){if(t>=6&&!gu(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=HW(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?gu(e)?30:0:30}class GW{fromJulianDay(t){let n=t-xE,r=n*x_/qW,i=Math.floor((19*r+234)/235)+1,s=Wf(i),a=Math.floor(n-s);for(;a<1;)i--,s=Wf(i),a=Math.floor(n-s);let o=1,l=0;for(;l<a;)l+=zh(i,o),o++;o--,l-=zh(i,o);let d=a-l;return new Zn(this,i,o,d)}toJulianDay(t){let n=Wf(t.year);for(let r=1;r<t.month;r++)n+=zh(t.year,r);return n+t.day+xE}getDaysInMonth(t){return zh(t.year,t.month)}getMonthsInYear(t){return gu(t.year)?13:12}getDaysInYear(t){return w_(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(gu(n.year)&&!gu(t.year)&&n.month>6?t.month--:!gu(n.year)&&gu(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Pb=1723856,wE=1824665,_b=5500;function Yp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function x3(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Yp(e,n,1,1))/30),i=t+1-Yp(e,n,r,1);return[n,r,i]}function C_(e){return Math.floor(e%4/3)}function E_(e,t){return t%13!==0?30:C_(e)+5}class w3{fromJulianDay(t){let[n,r,i]=x3(Pb,t),s="AM";return n<=0&&(s="AA",n+=_b),new Zn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=_b),Yp(Pb,n,t.month,t.day)}getDaysInMonth(t){return E_(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+C_(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class YW extends w3{fromJulianDay(t){let[n,r,i]=x3(Pb,t);return n+=_b,new Zn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class ZW extends w3{fromJulianDay(t){let[n,r,i]=x3(wE,t),s="CE";return n<=0&&(s="BCE",n=1-n),new Zn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Yp(wE,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),E_(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 XW(e){switch(e){case"buddhist":return new OW;case"ethiopic":return new w3;case"ethioaa":return new YW;case"coptic":return new ZW;case"hebrew":return new GW;case"indian":return new BW;case"islamic-civil":return new $3;case"islamic-tbla":return new NW;case"islamic-umalqura":return new KW;case"japanese":return new kW;case"persian":return new LW;case"roc":return new IW;case"gregory":default:return new Yr}}let Iv=new Map;class Zi{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(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return eH()&&(this.resolvedHourCycle||(this.resolvedHourCycle=tH(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=S_(t,n),this.options=n}}const JW={true:{ja:"h11"},false:{}};function S_(e,t={}){if(typeof t.hour12=="boolean"&&QW()){t={...t};let i=JW[String(t.hour12)][e.split("-")[0]],s=t.hour12?"h12":"h23";t.hourCycle=i??s,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(Iv.has(n))return Iv.get(n);let r=new Intl.DateTimeFormat(e,t);return Iv.set(n,r),r}let Lv=null;function QW(){return Lv==null&&(Lv=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Lv}let Bv=null;function eH(){return Bv==null&&(Bv=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Bv}function tH(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=S_(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(s=>s.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 ea(e){e=O5(e??{},nH);let{locale:t}=Rr();return T.useMemo(()=>new Zi(t,e),[t,e])}function nH(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 Vv=new Map,Mb=!1;try{Mb=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Zp=!1;try{Zp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const D_={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class A_{format(t){let n="";if(!Mb&&this.options.signDisplay!=null?n=iH(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Zp){var r;let{unit:i,unitDisplay:s="short",locale:a}=this.resolvedOptions();if(!i)return n;let o=(r=D_[i])===null||r===void 0?void 0:r[s];n+=o[a]||o.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(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Mb&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Zp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=rH(t,n),this.options=n}}function rH(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Zp){var r;let{unit:a,unitDisplay:o="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=D_[a])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,o)=>a[0]<o[0]?-1:1).join():"");if(Vv.has(i))return Vv.get(i);let s=new Intl.NumberFormat(e,t);return Vv.set(i,s),s}function iH(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),s=e.format(n),a=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(a,"+").replace("!!!",s)}else return e.format(n)}}const sH=new RegExp("^.*\\(.*\\).*$"),aH=["latn","arab","hanidec","deva","beng"];class T_{parse(t){return Nv(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Nv(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Nv(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const CE=new Map;function Nv(e,t,n){let r=EE(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of aH)if(i!==r.options.numberingSystem){let s=EE(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(s.isValidPartialNumber(n))return s}}return r}function EE(e,t){let n=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():""),r=CE.get(n);return r||(r=new oH(e,t),CE.set(n,r)),r}class oH{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=$f(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 a=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let o=n.indexOf(".");o===-1&&(o=n.length),n=n.replace(".",""),o-2===0?n=`0.${n}`:o-2===-1?n=`0.0${n}`:o-2===-2?n="0.00":n=`${n.slice(0,o-2)}.${n.slice(o-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,s;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)};return new T_(this.locale,a).parse(new A_(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&sH.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=$f(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=$f(t," ",this.symbols.group),t=$f(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=$f(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=lH(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 SE=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),uH=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function lH(e,t,n,r){var i,s,a,o;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=uH.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=(s=h.find(ae=>ae.type==="plusSign"))===null||s===void 0?void 0:s.value;!x&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(x="+");let S=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(ae=>ae.type==="decimal"))===null||a===void 0?void 0:a.value,E=(o=d.find(ae=>ae.type==="group"))===null||o===void 0?void 0:o.value,C=d.filter(ae=>!SE.has(ae.type)).map(ae=>DE(ae.value)),A=m.flatMap(ae=>ae.filter(I=>!SE.has(I.type)).map(I=>DE(I.value))),k=[...new Set([...C,...A])].sort((ae,I)=>I.length-ae.length),M=k.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${k.join("|")}|[\\p{White_Space}]`,"gu"),R=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),K=new Map(R.map((ae,I)=>[ae,I])),H=new RegExp(`[${R.join("")}]`,"g");return{minusSign:b,plusSign:x,decimal:S,group:E,literals:M,numeral:H,index:ae=>String(K.get(ae))}}function $f(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function DE(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function cH(e={}){let{locale:t}=Rr();return T.useMemo(()=>new A_(t,e),[t,e])}let jv=new Map;function P_(e){let{locale:t}=Rr(),n=t+(e?Object.entries(e).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(jv.has(n))return jv.get(n);let r=new Intl.Collator(t,e);return jv.set(n,r),r}function __(e){let t=P_({usage:"search",...e}),n=T.useCallback((s,a)=>a.length===0?!0:(s=s.normalize("NFC"),a=a.normalize("NFC"),t.compare(s.slice(0,a.length),a)===0),[t]),r=T.useCallback((s,a)=>a.length===0?!0:(s=s.normalize("NFC"),a=a.normalize("NFC"),t.compare(s.slice(-a.length),a)===0),[t]),i=T.useCallback((s,a)=>{if(a.length===0)return!0;s=s.normalize("NFC"),a=a.normalize("NFC");let o=0,l=a.length;for(;o+l<=s.length;o++){let d=s.slice(o,o+l);if(t.compare(a,d)===0)return!0}return!1},[t]);return T.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function fH(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:a,onPressUp:o,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:x,type:w="button"}=e,S;n==="button"?S={type:w,disabled:r}:S={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?w:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?x:void 0};let{pressProps:E,isPressed:C}=Rd({onPressStart:s,onPressEnd:a,onPressChange:l,onPress:i,onPressUp:o,onClick:m,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:A}=f3(e,t);h&&(A.tabIndex=r?-1:A.tabIndex);let k=Qt(A,E,Qa(e,{labelable:!0}));return{isPressed:C,buttonProps:Qt(S,k,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function dH(e){const t=Ha(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:s}=e.ownerDocument.defaultView;let{display:a,visibility:o}=s(e);i=a!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function hH(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 M_(e,t){return e.nodeName!=="#comment"&&dH(e)&&hH(e,t)&&(!e.parentElement||M_(e.parentElement,e))}const AE=T.createContext(null),Fb="react-aria-focus-scope-restore";let vn=null;function pH(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,s=T.useRef(null),a=T.useRef(null),o=T.useRef([]),{parentNode:l}=T.useContext(AE)||{},d=T.useMemo(()=>new kb({scopeRef:o}),[o]);pn(()=>{let g=l||er.root;if(er.getTreeNode(g.scopeRef)&&vn&&!Xp(vn,g.scopeRef)){let b=er.getTreeNode(vn);b&&(g=b)}g.addChild(d),er.addNode(d)},[d,l]),pn(()=>{let g=er.getTreeNode(o);g&&(g.contain=!!n)},[n]),pn(()=>{var g;let b=(g=s.current)===null||g===void 0?void 0:g.nextSibling,x=[],w=S=>S.stopPropagation();for(;b&&b!==a.current;)x.push(b),b.addEventListener(Fb,w),b=b.nextSibling;return o.current=x,()=>{for(let S of x)S.removeEventListener(Fb,w)}},[t]),bH(o,r,n),gH(o,n),$H(o,r,n),yH(o,i),T.useEffect(()=>{const g=mr(tn(o.current?o.current[0]:void 0));let b=null;if(rs(g,o.current)){for(let x of er.traverse())x.scopeRef&&rs(g,x.scopeRef.current)&&(b=x);b===er.getTreeNode(o)&&(vn=b.scopeRef)}},[o]),pn(()=>()=>{var g,b,x;let w=(x=(b=er.getTreeNode(o))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&x!==void 0?x:null;(o===vn||Xp(o,vn))&&(!w||er.getTreeNode(w))&&(vn=w),er.removeTreeNode(o)},[o]);let h=T.useMemo(()=>mH(o),[]),m=T.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return T.createElement(AE.Provider,{value:m},T.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,T.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function mH(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:a}=t;var o;let l=r||mr(tn((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[0].previousElementSibling,h=xu(n),m=Ur(h,{tabbable:i,accept:a},n);m.currentNode=rs(l,n)?l:d;let g=m.nextNode();return!g&&s&&(m.currentNode=d,g=m.nextNode()),g&&si(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:a}=t;var o;let l=r||mr(tn((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[n.length-1].nextElementSibling,h=xu(n),m=Ur(h,{tabbable:i,accept:a},n);m.currentNode=rs(l,n)?l:d;let g=m.previousNode();return!g&&s&&(m.currentNode=d,g=m.previousNode()),g&&si(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=xu(n),a=Ur(s,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&si(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=xu(n),a=Ur(s,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&si(o,!0),o}}}function xu(e){return e[0].parentElement}function Bf(e){let t=er.getTreeNode(vn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function gH(e,t){let n=T.useRef(void 0),r=T.useRef(void 0);pn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=tn(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Bf(e)||d.isComposing)return;let h=mr(s),m=e.current;if(!m||!rs(h,m))return;let g=xu(m),b=Ur(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&&si(x,!0)},o=d=>{(!vn||Xp(vn,e))&&rs(sn(d),e.current)?(vn=e,n.current=sn(d)):Bf(e)&&!To(sn(d),e)?n.current?n.current.focus():vn&&vn.current&&Rb(vn.current):Bf(e)&&(n.current=sn(d))},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=id(),m=(h==="virtual"||h===null)&&s3()&&M5(),g=mr(s);if(!m&&g&&Bf(e)&&!To(g,e)){vn=e;let x=sn(d);if(x&&x.isConnected){var b;n.current=x,(b=n.current)===null||b===void 0||b.focus()}else vn.current&&Rb(vn.current)}})};return s.addEventListener("keydown",a,!1),s.addEventListener("focusin",o,!1),i==null||i.forEach(d=>d.addEventListener("focusin",o,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{s.removeEventListener("keydown",a,!1),s.removeEventListener("focusin",o,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",o,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),pn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function F_(e){return To(e)}function rs(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function To(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of er.traverse(er.getTreeNode(t)))if(n&&rs(e,n.current))return!0;return!1}function vH(e){return To(e,vn)}function Xp(e,t){var n;let r=(n=er.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function si(e,t=!1){if(e!=null&&!t)try{zu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function R_(e,t=!0){let n=e[0].previousElementSibling,r=xu(e),i=Ur(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();return t&&!s&&(r=xu(e),i=Ur(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),s}function Rb(e,t=!0){si(R_(e,t))}function yH(e,t){const n=T.useRef(t);T.useEffect(()=>{if(n.current){vn=e;const r=tn(e.current?e.current[0]:void 0);!rs(mr(r),vn.current)&&e.current&&Rb(e.current)}n.current=!1},[e])}function bH(e,t,n){pn(()=>{if(t||n)return;let r=e.current;const i=tn(r?r[0]:void 0);let s=a=>{let o=sn(a);rs(o,e.current)?vn=e:F_(o)||(vn=null)};return i.addEventListener("focusin",s,!1),r==null||r.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",s,!1))}},[e,t,n])}function TE(e){let t=er.getTreeNode(vn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function $H(e,t,n){const r=T.useRef(typeof document<"u"?mr(tn(e.current?e.current[0]:void 0)):null);pn(()=>{let i=e.current;const s=tn(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!vn||Xp(vn,e))&&rs(mr(s),e.current)&&(vn=e)};return s.addEventListener("focusin",a,!1),i==null||i.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{s.removeEventListener("focusin",a,!1),i==null||i.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,n]),pn(()=>{const i=tn(e.current?e.current[0]:void 0);if(!t)return;let s=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Bf(e)||a.isComposing)return;let o=i.activeElement;if(!To(o,e)||!TE(e))return;let l=er.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,h=Ur(i.body,{tabbable:!0});h.currentNode=o;let m=a.shiftKey?h.previousNode():h.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,l.nodeToRestore=void 0),(!m||!To(m,e))&&d){h.currentNode=d;do m=a.shiftKey?h.previousNode():h.nextNode();while(To(m,e));a.preventDefault(),a.stopPropagation(),m?si(m,!0):F_(d)?si(d,!0):o.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[e,t,n]),pn(()=>{const i=tn(e.current?e.current[0]:void 0);if(!t)return;let s=er.getTreeNode(e);if(s){var a;return s.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let o=er.getTreeNode(e);if(!o)return;let l=o.nodeToRestore,d=mr(i);if(t&&l&&(d&&To(d,e)||d===i.body&&TE(e))){let h=er.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){PE(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&er.getTreeNode(m.scopeRef)){let g=R_(m.scopeRef.current,!0);PE(g);return}m=m.parent}}})}}}},[e,t])}function PE(e){e.dispatchEvent(new CustomEvent(Fb,{bubbles:!0,cancelable:!0}))&&si(e)}function Ur(e,t,n){let r=t!=null&&t.tabbable?Sq:I5,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=tn(i),a=tq(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(o)?NodeFilter.FILTER_REJECT:r(o)&&M_(o)&&(!n||rs(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}function Vm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:s=t.tabbable,wrap:a=t.wrap,accept:o=t.accept}=n,l=i||mr(tn(r)),d=Ur(r,{tabbable:s,accept:o});r.contains(l)&&(d.currentNode=l);let h=d.nextNode();return!h&&a&&(d.currentNode=r,h=d.nextNode()),h&&si(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:s=t.tabbable,wrap:a=t.wrap,accept:o=t.accept}=n,l=i||mr(tn(r)),d=Ur(r,{tabbable:s,accept:o});if(r.contains(l))d.currentNode=l;else{let m=Kv(d);return m&&si(m,!0),m??null}let h=d.previousNode();if(!h&&a){d.currentNode=r;let m=Kv(d);if(!m)return null;h=m}return h&&si(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=n,o=Ur(r,{tabbable:i,accept:s}).nextNode();return o&&si(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=n,a=Ur(r,{tabbable:i,accept:s}),o=Kv(a);return o&&si(o,!0),o??null}}}function Kv(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class C3{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 s=new kb({scopeRef:t});i.addChild(s),s.parent=i,this.fastMap.set(t,s),r&&(s.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 s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&rs(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(s=>r&&r.addChild(s))),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 C3;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 kb({scopeRef:null}),this.fastMap.set(null,this.root)}}class kb{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 er=new C3;function k_(e){let t=wH(tn(e));t!==e&&(t&&xH(t,e),e&&O_(e,t))}function xH(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function O_(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function wH(e){let t=mr(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var I_={};I_={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 L_={};L_={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 B_={};B_={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 V_={};V_={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 N_={};N_={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 j_={};j_={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 K_={};K_={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 U_={};U_={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 z_={};z_={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 q_={};q_={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 W_={};W_={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 H_={};H_={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 G_={};G_={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 Y_={};Y_={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 Z_={};Z_={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 X_={};X_={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 J_={};J_={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 Q_={};Q_={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 e6={};e6={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 t6={};t6={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 n6={};n6={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 r6={};r6={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 i6={};i6={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 s6={};s6={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 a6={};a6={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 o6={};o6={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 u6={};u6={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 l6={};l6={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 c6={};c6={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 f6={};f6={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 d6={};d6={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 h6={};h6={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 p6={};p6={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 m6={};m6={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 Bd={};Bd={"ar-AE":I_,"bg-BG":L_,"cs-CZ":B_,"da-DK":V_,"de-DE":N_,"el-GR":j_,"en-US":K_,"es-ES":U_,"et-EE":z_,"fi-FI":q_,"fr-FR":W_,"he-IL":H_,"hr-HR":G_,"hu-HU":Y_,"it-IT":Z_,"ja-JP":X_,"ko-KR":J_,"lt-LT":Q_,"lv-LV":e6,"nb-NO":t6,"nl-NL":n6,"pl-PL":r6,"pt-BR":i6,"pt-PT":s6,"ro-RO":a6,"ru-RU":o6,"sk-SK":u6,"sl-SI":l6,"sr-SP":c6,"sv-SE":f6,"tr-TR":d6,"uk-UA":h6,"zh-CN":p6,"zh-TW":m6};function g6(e){return e&&e.__esModule?e.default:e}const E3=new WeakMap;function ld(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function CH(e){let t=fa(g6(Bd),"@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 s=ea({weekday:"long",month:"long",year:"numeric",day:"numeric",era:ld(n)||ld(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return T.useMemo(()=>{if(!a&&n&&r)if(nr(n,r)){let o=s.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=Ib(s,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,s])}function Ob(e,t,n,r){let i=fa(g6(Bd),"@react-aria/calendar"),s=ld(e)||ld(t),a=ea({month:"long",year:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n}),o=ea({month:"long",year:"numeric",day:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n});return T.useMemo(()=>{if(nr(e,Id(e))){let l=e,d=t;if(e.calendar.getFormattableMonth&&(l=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),nr(t,Eb(e)))return a.format(l.toDate(n));if(nr(t,Eb(t)))return r?Ib(a,i,l,d,n):a.formatRange(l.toDate(n),d.toDate(n))}return r?Ib(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,o,i,n,r])}function Ib(e,t,n,r,i){let s=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<s.length;d++){let h=s[d];if(h.source==="shared"&&h.type==="literal")a=d;else if(h.source==="endRange")break}let o="",l="";for(let d=0;d<s.length;d++)d<a?o+=s[d].value:d>a&&(l+=s[d].value);return t.format("dateRange",{startDate:o,endDate:l})}const v6=7e3;let Ui=null;function Ql(e,t="assertive",n=v6){Ui?Ui.announce(e,t,n):(Ui=new SH,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ui.announce(e,t,n):setTimeout(()=>{Ui!=null&&Ui.isAttached()&&(Ui==null||Ui.announce(e,t,n))},100))}function EH(e){Ui&&Ui.clear(e)}class SH{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=v6){var i,s;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(s=this.politeLog)===null||s===void 0||s.appendChild(a),t!==""&&setTimeout(()=>{a.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 DH(e){return e&&e.__esModule?e.default:e}function y6(e,t){let n=fa(DH(Bd),"@react-aria/calendar"),r=Qa(e),i=Ob(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),s=Ob(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);gb(()=>{t.isFocused||Ql(s)},[s]);let a=CH(t);gb(()=>{a&&Ql(a,"polite",4e3)},[a]);let o=uc([!!e.errorMessage,e.isInvalid,e.validationState]);E3.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:a});let[l,d]=T.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(d(!1),t.setFocused(!0));let[m,g]=T.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let x=lc({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Qt(r,x,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:o},title:i}}function AH(e,t){return y6(e,t)}function TH(e,t,n){let r=y6(e,t),i=T.useRef(!1),s=T.useRef(typeof window<"u"?window:null);return Qs(s,"pointerdown",o=>{i.current=o.width===0&&o.height===0}),Qs(s,"pointerup",o=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=o.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=o=>{n.current&&(!o.relatedTarget||!n.current.contains(o.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Qs(n,"touchmove",o=>{t.isDragging&&o.preventDefault()},{passive:!1,capture:!0}),r}function PH(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:s}=Rr(),a=w=>{switch(w.key){case"Enter":case" ":w.preventDefault(),t.selectFocusedDate();break;case"PageUp":w.preventDefault(),w.stopPropagation(),t.focusPreviousSection(w.shiftKey);break;case"PageDown":w.preventDefault(),w.stopPropagation(),t.focusNextSection(w.shiftKey);break;case"End":w.preventDefault(),w.stopPropagation(),t.focusSectionEnd();break;case"Home":w.preventDefault(),w.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":w.preventDefault(),w.stopPropagation(),s==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":w.preventDefault(),w.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":w.preventDefault(),w.stopPropagation(),s==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":w.preventDefault(),w.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(w.preventDefault(),t.setAnchorDate(null));break}},o=Ob(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:d}=E3.get(t),h=lc({"aria-label":[l,o].filter(Boolean).join(", "),"aria-labelledby":d}),m=ea({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=Rr(),b=T.useMemo(()=>{let w=sd(Lm(t.timeZone),g,i);return[...new Array(7).keys()].map(S=>{let C=w.add({days:S}).toDate(t.timeZone);return m.format(C)})},[g,t.timeZone,m,i]),x=r_(n,g,i);return{gridProps:Qt(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b,weeksInMonth:x}}function _H(e){return e&&e.__esModule?e.default:e}function MH(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:a}=E3.get(t),o=fa(_H(Bd),"@react-aria/calendar"),l=ea({weekday:"long",day:"numeric",month:"long",year:"numeric",era:ld(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&&nr(t.value,r));b&&(d=!0),r=O5(r,Cb);let x=T.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),w=Q5(r,t.timeZone),S=T.useMemo(()=>{let I="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(nr(r,t.value.start)||nr(r,t.value.end))&&(I=a+", "),I+=l.format(x),w?I=o.format(d?"todayDateSelected":"todayDate",{date:I}):d&&(I=o.format("dateSelected",{date:I})),t.minValue&&nr(r,t.minValue)?I+=", "+o.format("minimumDate"):t.maxValue&&nr(r,t.maxValue)&&(I+=", "+o.format("maximumDate")),I},[l,x,o,d,w,r,t,a]),E="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?E=o.format("finishRangeSelectionPrompt"):E=o.format("startRangeSelectionPrompt"));let C=Md(E),A=T.useRef(!1),k=T.useRef(!1),M=T.useRef(void 0),{pressProps:R,isPressed:K}=Rd({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(I){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(I.pointerType==="mouse"||I.pointerType==="touch")){if(t.highlightedRange&&!b){if(nr(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),k.current=!0;return}else if(nr(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),k.current=!0;return}}let $e=()=>{t.setDragging(!0),M.current=void 0,t.selectDate(r),t.setFocusedDate(r),A.current=!0};I.pointerType==="touch"?M.current=setTimeout($e,200):$e()}},onPressEnd(){k.current=!1,A.current=!1,clearTimeout(M.current),M.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(I){if(!t.isReadOnly&&("anchorDate"in t&&M.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(k.current)t.setAnchorDate(r);else if(t.anchorDate&&!A.current)t.selectDate(r),t.setFocusedDate(r);else if(I.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let $e=r.add({days:1});t.isInvalid($e)&&($e=r.subtract({days:1})),t.isInvalid($e)||t.setFocusedDate($e)}else I.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),H;i||(H=nr(r,t.focusedDate)?0:-1),T.useEffect(()=>{h&&n.current&&(Di(n.current),id()!=="pointer"&&document.activeElement===n.current&&Kp(n.current,{containingElement:Rm(n.current)}))},[h,n]);let le=ea({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),ae=T.useMemo(()=>le.formatToParts(x).find(I=>I.type==="day").value,[le,x]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:Qt(R,{onFocus(){i||t.setFocusedDate(r)},tabIndex:H,role:"button","aria-disabled":!g||void 0,"aria-label":S,"aria-invalid":b||void 0,"aria-describedby":[b?s:void 0,C["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(I){"highlightDate"in t&&(I.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(I){"releasePointerCapture"in I.target&&I.target.releasePointerCapture(I.pointerId)},onContextMenu(I){I.preventDefault()}}),isPressed:K,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 Nm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},b6={...Nm,customError:!0,valid:!1},vu={isInvalid:!1,validationDetails:Nm,validationErrors:[]},FH=T.createContext({}),dc="__formValidationState"+Date.now();function Vd(e){if(e[dc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}=e[dc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}}return RH(e)}function RH(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:s,validate:a,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:b6}:null,d=T.useMemo(()=>{if(!a||i==null)return null;let ae=kH(a,i);return _E(ae)},[a,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let h=T.useContext(FH),m=T.useMemo(()=>r?Array.isArray(r)?r.flatMap(ae=>Lb(h[ae])):Lb(h[r]):[],[h,r]),[g,b]=T.useState(h),[x,w]=T.useState(!1);h!==g&&(b(h),w(!1));let S=T.useMemo(()=>_E(x?[]:m),[x,m]),E=T.useRef(vu),[C,A]=T.useState(vu),k=T.useRef(vu),M=()=>{if(!R)return;K(!1);let ae=d||s||E.current;Uv(ae,k.current)||(k.current=ae,A(ae))},[R,K]=T.useState(!1);return T.useEffect(M),{realtimeValidation:l||S||d||s||vu,displayValidation:o==="native"?l||S||C:l||S||d||s||C,updateValidation(ae){o==="aria"&&!Uv(C,ae)?A(ae):E.current=ae},resetValidation(){let ae=vu;Uv(ae,k.current)||(k.current=ae,A(ae)),o==="native"&&K(!1),w(!0)},commitValidation(){o==="native"&&K(!0),w(!0)}}}function Lb(e){return e?Array.isArray(e)?e:[e]:[]}function kH(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Lb(n)}return[]}function _E(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:b6}:null}function Uv(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 Jp(...e){let t=new Set,n=!1,r={...Nm};for(let a of e){var i,s;for(let o of a.validationErrors)t.add(o);n||(n=a.isInvalid);for(let o in r)(i=r)[s=o]||(i[s]=a.validationDetails[o])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function $6(e,t,n){let{validationBehavior:r,focus:i}=e;pn(()=>{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(IH(n.current))}});let s=kn(()=>{t.resetValidation()}),a=kn(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&&LH(h)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),q5("keyboard")}l.preventDefault()}),o=kn(()=>{t.commitValidation()});T.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let d=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",o),d==null||d.addEventListener("reset",s),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",o),d==null||d.removeEventListener("reset",s)}},[n,a,o,s,r])}function OH(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 IH(e){return{isInvalid:!e.validity.valid,validationDetails:OH(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function LH(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function jm(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:s="label"}=e;t=Hr(t);let a=Hr(),o={};n?(r=r?`${a} ${r}`:a,o={id:a,htmlFor:s==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=lc({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:l}}function Km(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:s,fieldProps:a}=jm(e),o=uc([!!t,!!n,r,i]),l=uc([!!t,!!n,r,i]);return a=Qt(a,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:a,descriptionProps:{id:o},errorMessageProps:{id:l}}}const BH=0,VH=100,NH=1;function jH(e){const{isDisabled:t=!1,minValue:n=BH,maxValue:r=VH,numberFormatter:i,step:s=NH,orientation:a="horizontal"}=e;let o=T.useMemo(()=>{let te=(r-n)/10;return te=yf(te,0,te+s,s),Math.max(te,s)},[s,r,n]),l=T.useCallback(te=>te==null?void 0:te.map((xe,De)=>{let _e=De===0?n:te[De-1],Me=De===te.length-1?r:te[De+1];return yf(xe,_e,Me,s)}),[n,r,s]),d=T.useMemo(()=>l(FE(e.value)),[e.value]),h=T.useMemo(()=>{var te;return l((te=FE(e.defaultValue))!==null&&te!==void 0?te:[n])},[e.defaultValue,n]),m=RE(e.value,e.defaultValue,e.onChange),g=RE(e.value,e.defaultValue,e.onChangeEnd);const[b,x]=Ai(d,h,m),[w,S]=T.useState(new Array(b.length).fill(!1)),E=T.useRef(new Array(b.length).fill(!0)),[C,A]=T.useState(void 0),k=T.useRef(b),M=T.useRef(w);let R=te=>{k.current=te,x(te)},K=te=>{M.current=te,S(te)};function H(te){return(te-n)/(r-n)}function le(te){return te===0?n:b[te-1]}function ae(te){return te===b.length-1?r:b[te+1]}function I(te){return E.current[te]}function $e(te,xe){E.current[te]=xe}function we(te,xe){if(t||!I(te))return;const De=le(te),_e=ae(te);xe=yf(xe,De,_e,s);let Me=ME(k.current,te,xe);R(Me)}function W(te,xe){if(t||!I(te))return;xe&&(k.current=b);const De=M.current[te];M.current=ME(M.current,te,xe),K(M.current),g&&De&&!M.current.some(Boolean)&&g(k.current)}function ie(te){return i.format(te)}function O(te,xe){we(te,B(xe))}function L(te){return Math.round((te-n)/s)*s+n}function B(te){const xe=te*(r-n)+n;return cc(L(xe),n,r)}function he(te,xe=1){let De=Math.max(xe,s);we(te,yf(b[te]+De,n,r,s))}function U(te,xe=1){let De=Math.max(xe,s);we(te,yf(b[te]-De,n,r,s))}return{values:b,getThumbValue:te=>b[te],setThumbValue:we,setThumbPercent:O,isThumbDragging:te=>w[te],setThumbDragging:W,focusedThumb:C,setFocusedThumb:A,getThumbPercent:te=>H(b[te]),getValuePercent:H,getThumbValueLabel:te=>ie(b[te]),getFormattedValue:ie,getThumbMinValue:le,getThumbMaxValue:ae,getPercentValue:B,isThumbEditable:I,setThumbEditable:$e,incrementThumb:he,decrementThumb:U,step:s,pageSize:o,orientation:a,isDisabled:t}}function ME(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function FE(e){if(e!=null)return Array.isArray(e)?e:[e]}function RE(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const kE={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 KH(e={}){let{style:t,isFocusable:n}=e,[r,i]=T.useState(!1),{focusWithinProps:s}=wc({isDisabled:!n,onFocusWithinChange:o=>i(o)}),a=T.useMemo(()=>r?t:t?{...kE,...t}:kE,[r]);return{visuallyHiddenProps:{...s,style:a}}}function UH(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...s}=e,{visuallyHiddenProps:a}=KH(e);return T.createElement(n,Qt(s,a),t)}const S3=new WeakMap;function Bb(e,t){let n=S3.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function zH(e,t,n){let{labelProps:r,fieldProps:i}=jm(e),s=e.orientation==="vertical";var a;S3.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:o}=Rr(),{addGlobalListener:l,removeGlobalListener:d}=Io();const h=T.useRef(null),m=o==="rtl",g=T.useRef(null),{moveProps:b}=H5({onMoveStart(){g.current=null},onMove({deltaX:E,deltaY:C}){if(!n.current)return;let{height:A,width:k}=n.current.getBoundingClientRect(),M=s?A:k;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*M);let R=s?C:E;if((s||m)&&(R=-R),g.current+=R,h.current!=null&&n.current){const K=cc(g.current/M,0,1);t.setThumbPercent(h.current,K)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let x=T.useRef(void 0),w=(E,C,A,k)=>{if(n.current&&!e.isDisabled&&t.values.every((M,R)=>!t.isThumbDragging(R))){let{height:M,width:R,top:K,left:H}=n.current.getBoundingClientRect(),le=s?M:R,we=((s?k:A)-(s?K:H))/le;(o==="rtl"||s)&&(we=1-we);let W=t.getPercentValue(we),ie,O=t.values.findIndex(L=>W-L<0);if(O===0)ie=O;else if(O===-1)ie=t.values.length-1;else{let L=t.values[O-1],B=t.values[O];Math.abs(L-W)<Math.abs(B-W)?ie=O-1:ie=O}ie>=0&&t.isThumbEditable(ie)?(E.preventDefault(),h.current=ie,t.setFocusedThumb(ie),x.current=C,t.setThumbDragging(h.current,!0),t.setThumbValue(ie,W),l(window,"mouseup",S,!1),l(window,"touchend",S,!1),l(window,"pointerup",S,!1)):h.current=null}},S=E=>{var C,A;((A=E.pointerId)!==null&&A!==void 0?A:(C=E.changedTouches)===null||C===void 0?void 0:C[0].identifier)===x.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),d(window,"mouseup",S,!1),d(window,"touchend",S,!1),d(window,"pointerup",S,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var E;(E=document.getElementById(Bb(t,0)))===null||E===void 0||E.focus(),q5("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Qt({onMouseDown(E){E.button!==0||E.altKey||E.ctrlKey||E.metaKey||w(E,void 0,E.clientX,E.clientY)},onPointerDown(E){E.pointerType==="mouse"&&(E.button!==0||E.altKey||E.ctrlKey||E.metaKey)||w(E,E.pointerId,E.clientX,E.clientY)},onTouchStart(E){w(E,E.changedTouches[0].identifier,E.changedTouches[0].clientX,E.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((E,C)=>Bb(t,C)).join(" "),"aria-live":"off"}}}function qH(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:s,trackRef:a,inputRef:o,orientation:l=t.orientation,name:d}=e,h=e.isDisabled||t.isDisabled,m=l==="vertical",{direction:g}=Rr(),{addGlobalListener:b,removeGlobalListener:x}=Io(),w=S3.get(t);var S;const{labelProps:E,fieldProps:C}=jm({...e,id:Bb(t,n),"aria-labelledby":`${w.id} ${(S=e["aria-labelledby"])!==null&&S!==void 0?S:""}`.trim()}),A=t.values[n],k=T.useCallback(()=>{o.current&&Di(o.current)},[o]),M=t.focusedThumb===n;T.useEffect(()=>{M&&k()},[M,k]);let R=g==="rtl",K=T.useRef(null),{keyboardProps:H}=W5({onKeyDown(O){let{getThumbMaxValue:L,getThumbMinValue:B,decrementThumb:he,incrementThumb:U,setThumbValue:te,setThumbDragging:xe,pageSize:De}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(O.key)){O.continuePropagation();return}switch(O.preventDefault(),xe(n,!0),O.key){case"PageUp":U(n,De);break;case"PageDown":he(n,De);break;case"Home":te(n,B(n));break;case"End":te(n,L(n));break}xe(n,!1)}}),{moveProps:le}=H5({onMoveStart(){K.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:O,deltaY:L,pointerType:B,shiftKey:he}){const{getThumbPercent:U,setThumbPercent:te,decrementThumb:xe,incrementThumb:De,step:_e,pageSize:Me}=t;if(!a.current)return;let{width:Ye,height:Ge}=a.current.getBoundingClientRect(),Ae=m?Ge:Ye;if(K.current==null&&(K.current=U(n)*Ae),B==="keyboard")O>0&&R||O<0&&!R||L>0?xe(n,he?Me:_e):De(n,he?Me:_e);else{let Ke=m?L:O;(m||R)&&(Ke=-Ke),K.current+=Ke,te(n,cc(K.current/Ae,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!h);const{focusableProps:ae}=f3(Qt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),o);let I=T.useRef(void 0),$e=O=>{k(),I.current=O,t.setThumbDragging(n,!0),b(window,"mouseup",we,!1),b(window,"touchend",we,!1),b(window,"pointerup",we,!1)},we=O=>{var L,B;((B=O.pointerId)!==null&&B!==void 0?B:(L=O.changedTouches)===null||L===void 0?void 0:L[0].identifier)===I.current&&(k(),t.setThumbDragging(n,!1),x(window,"mouseup",we,!1),x(window,"touchend",we,!1),x(window,"pointerup",we,!1))},W=t.getThumbPercent(n);(m||g==="rtl")&&(W=1-W);let ie=h?{}:Qt(H,le,{onMouseDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||$e()},onPointerDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||$e(O.pointerId)},onTouchStart:O=>{$e(O.changedTouches[0].identifier)}});return a3(o,A,O=>{t.setThumbValue(n,O)}),{inputProps:Qt(ae,C,{type:"range",tabIndex:h?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:A,name:d,disabled:h,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":s||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[w["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[w["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:O=>{t.setThumbValue(n,parseFloat(O.target.value))}}),thumbProps:{...ie,style:{position:"absolute",[m?"top":"left"]:`${W*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:E,isDragging:t.isThumbDragging(n),isDisabled:h,isFocused:M}}function WH(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:s=!1,type:a="text",validationBehavior:o="aria"}=e,[l,d]=Ai(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=f3(e,t),m=Vd({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:x}=m.displayValidation,{labelProps:w,fieldProps:S,descriptionProps:E,errorMessageProps:C}=Km({...e,isInvalid:g,errorMessage:e.errorMessage||b}),A=Qa(e,{labelable:!0});const k={type:a,pattern:e.pattern};return a3(t,l,d),$6(e,m,t),T.useEffect(()=>{if(t.current instanceof Ha(t.current).HTMLTextAreaElement){let M=t.current;Object.defineProperty(M,"defaultValue",{get:()=>M.value,set:()=>{},configurable:!0})}},[t]),{labelProps:w,inputProps:Qt(A,n==="input"?k:void 0,{disabled:r,readOnly:s,required:i&&o==="native","aria-required":i&&o==="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:M=>d(M.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,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...S}),descriptionProps:E,errorMessageProps:C,isInvalid:g,validationErrors:b,validationDetails:x}}var x6={};x6={Empty:"فارغ"};var w6={};w6={Empty:"Изпразни"};var C6={};C6={Empty:"Prázdné"};var E6={};E6={Empty:"Tom"};var S6={};S6={Empty:"Leer"};var D6={};D6={Empty:"Άδειο"};var A6={};A6={Empty:"Empty"};var T6={};T6={Empty:"Vacío"};var P6={};P6={Empty:"Tühjenda"};var _6={};_6={Empty:"Tyhjä"};var M6={};M6={Empty:"Vide"};var F6={};F6={Empty:"ריק"};var R6={};R6={Empty:"Prazno"};var k6={};k6={Empty:"Üres"};var O6={};O6={Empty:"Vuoto"};var I6={};I6={Empty:"空"};var L6={};L6={Empty:"비어 있음"};var B6={};B6={Empty:"Tuščias"};var V6={};V6={Empty:"Tukšs"};var N6={};N6={Empty:"Tom"};var j6={};j6={Empty:"Leeg"};var K6={};K6={Empty:"Pusty"};var U6={};U6={Empty:"Vazio"};var z6={};z6={Empty:"Vazio"};var q6={};q6={Empty:"Gol"};var W6={};W6={Empty:"Не заполнено"};var H6={};H6={Empty:"Prázdne"};var G6={};G6={Empty:"Prazen"};var Y6={};Y6={Empty:"Prazno"};var Z6={};Z6={Empty:"Tomt"};var X6={};X6={Empty:"Boş"};var J6={};J6={Empty:"Пусто"};var Q6={};Q6={Empty:"空"};var eM={};eM={Empty:"空白"};var tM={};tM={"ar-AE":x6,"bg-BG":w6,"cs-CZ":C6,"da-DK":E6,"de-DE":S6,"el-GR":D6,"en-US":A6,"es-ES":T6,"et-EE":P6,"fi-FI":_6,"fr-FR":M6,"he-IL":F6,"hr-HR":R6,"hu-HU":k6,"it-IT":O6,"ja-JP":I6,"ko-KR":L6,"lt-LT":B6,"lv-LV":V6,"nb-NO":N6,"nl-NL":j6,"pl-PL":K6,"pt-BR":U6,"pt-PT":z6,"ro-RO":q6,"ru-RU":W6,"sk-SK":H6,"sl-SI":G6,"sr-SP":Y6,"sv-SE":Z6,"tr-TR":X6,"uk-UA":J6,"zh-CN":Q6,"zh-TW":eM};function HH(e){return e&&e.__esModule?e.default:e}function GH(e){const t=T.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:s,isDisabled:a,isReadOnly:o,isRequired:l,onIncrement:d,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:x}=e;const w=fa(HH(tM),"@react-aria/spinbutton"),S=()=>clearTimeout(t.current);T.useEffect(()=>()=>S(),[]);let E=I=>{if(!(I.ctrlKey||I.metaKey||I.shiftKey||I.altKey||o))switch(I.key){case"PageUp":if(h){I.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":d&&(I.preventDefault(),d==null||d());break;case"PageDown":if(g){I.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(I.preventDefault(),m==null||m());break;case"Home":b&&(I.preventDefault(),b==null||b());break;case"End":x&&(I.preventDefault(),x==null||x());break}},C=T.useRef(!1),A=()=>{C.current=!0},k=()=>{C.current=!1},M=r===""?w.format("Empty"):(r||`${n}`).replace("-","−");T.useEffect(()=>{C.current&&(EH("assertive"),Ql(M,"assertive"))},[M]);const R=kn(I=>{S(),d==null||d(),t.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n<s)&&R(60)},I)}),K=kn(I=>{S(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&K(60)},I)});let H=I=>{I.preventDefault()},{addGlobalListener:le,removeAllGlobalListeners:ae}=Io();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":M,"aria-valuemin":i,"aria-valuemax":s,"aria-disabled":a||void 0,"aria-readonly":o||void 0,"aria-required":l||void 0,onKeyDown:E,onFocus:A,onBlur:k},incrementButtonProps:{onPressStart:()=>{R(400),le(window,"contextmenu",H)},onPressEnd:()=>{S(),ae()},onFocus:A,onBlur:k},decrementButtonProps:{onPressStart:()=>{K(400),le(window,"contextmenu",H)},onPressEnd:()=>{S(),ae()},onFocus:A,onBlur:k}}}var nM={};nM={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 rM={};rM={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 iM={};iM={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 sM={};sM={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 aM={};aM={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 oM={};oM={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 uM={};uM={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 lM={};lM={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 cM={};cM={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 fM={};fM={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 dM={};dM={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 hM={};hM={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 pM={};pM={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 mM={};mM={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 gM={};gM={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 vM={};vM={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 yM={};yM={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 bM={};bM={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 $M={};$M={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 xM={};xM={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 wM={};wM={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 CM={};CM={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 EM={};EM={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 SM={};SM={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 DM={};DM={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 AM={};AM={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 TM={};TM={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 PM={};PM={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 _M={};_M={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 MM={};MM={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 FM={};FM={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 RM={};RM={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 kM={};kM={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 OM={};OM={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 IM={};IM={"ar-AE":nM,"bg-BG":rM,"cs-CZ":iM,"da-DK":sM,"de-DE":aM,"el-GR":oM,"en-US":uM,"es-ES":lM,"et-EE":cM,"fi-FI":fM,"fr-FR":dM,"he-IL":hM,"hr-HR":pM,"hu-HU":mM,"it-IT":gM,"ja-JP":vM,"ko-KR":yM,"lt-LT":bM,"lv-LV":$M,"nb-NO":xM,"nl-NL":wM,"pl-PL":CM,"pt-BR":EM,"pt-PT":SM,"ro-RO":DM,"ru-RU":AM,"sk-SK":TM,"sl-SI":PM,"sr-SP":_M,"sv-SE":MM,"tr-TR":FM,"uk-UA":RM,"zh-CN":kM,"zh-TW":OM};const ta={top:"top",bottom:"top",left:"left",right:"left"},Qp={top:"bottom",bottom:"top",left:"right",right:"left"},YH={top:"left",left:"top"},Vb={top:"height",left:"width"},LM={width:"totalWidth",height:"totalHeight"},qh={};let pr=typeof document<"u"?window.visualViewport:null;function OE(e){let t=0,n=0,r=0,i=0,s=0,a=0,o={};var l;let d=((l=pr==null?void 0:pr.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=pr==null?void 0:pr.width)!==null&&h!==void 0?h:r;var m;n=(m=pr==null?void 0:pr.height)!==null&&m!==void 0?m:i,o.top=x.scrollTop||e.scrollTop,o.left=x.scrollLeft||e.scrollLeft,pr&&(s=pr.offsetTop,a=pr.offsetLeft)}else({width:t,height:n,top:s,left:a}=ec(e)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,i=n;if(i3()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){o.top=0,o.left=0;var g;s=(g=pr==null?void 0:pr.pageTop)!==null&&g!==void 0?g:0;var b;a=(b=pr==null?void 0:pr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:o,top:s,left:a}}function ZH(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function IE(e,t,n,r,i,s,a){var o;let l=(o=i.scroll[e])!==null&&o!==void 0?o:0,d=r[Vb[e]],h=r.scroll[ta[e]]+s,m=d+r.scroll[ta[e]]-s,g=t-l+a[e]-r[ta[e]],b=t-l+n+a[e]-r[ta[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function XH(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 LE(e){if(qh[e])return qh[e];let[t,n]=e.split(" "),r=ta[t]||"right",i=YH[r];ta[n]||(n="center");let s=Vb[r],a=Vb[i];return qh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:s,crossSize:a},qh[e]}function zv(e,t,n,r,i,s,a,o,l,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:x,crossSize:w}=r,S={};var E;S[b]=(E=e[b])!==null&&E!==void 0?E:0;var C,A,k,M;m==="center"?S[b]+=(((C=e[w])!==null&&C!==void 0?C:0)-((A=n[w])!==null&&A!==void 0?A:0))/2:m!==b&&(S[b]+=((k=e[w])!==null&&k!==void 0?k:0)-((M=n[w])!==null&&M!==void 0?M:0)),S[b]+=s;const R=e[b]-n[w]+l+d,K=e[b]+e[w]-l-d;if(S[b]=cc(S[b],R,K),h===g){const H=o?a[x]:t[LM[x]];S[Qp[g]]=Math.floor(H-e[g]+i)}else S[g]=Math.floor(e[g]+e[x]+i);return S}function JH(e,t,n,r,i,s,a,o){const l=r?n.height:t[LM.height];var d;let h=e.top!=null?n.top+e.top:n.top+(l-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var m,g,b,x,w,S;let E=o!=="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)+s)):Math.max(0,h+a-(t.top+((x=t.scroll.top)!==null&&x!==void 0?x:0))-(((w=i.top)!==null&&w!==void 0?w:0)+((S=i.bottom)!==null&&S!==void 0?S:0)+s));return Math.min(t.height-s*2,E)}function BE(e,t,n,r,i,s){let{placement:a,axis:o,size:l}=s;var d,h;if(a===o)return Math.max(0,n[o]-e[o]-((d=e.scroll[o])!==null&&d!==void 0?d:0)+t[o]-((h=r[o])!==null&&h!==void 0?h:0)-r[Qp[o]]-i);var m;return Math.max(0,e[l]+e[o]+e.scroll[o]-t[o]-n[o]-n[l]-((m=r[o])!==null&&m!==void 0?m:0)-r[Qp[o]]-i)}function QH(e,t,n,r,i,s,a,o,l,d,h,m,g,b,x,w){let S=LE(e),{size:E,crossAxis:C,crossSize:A,placement:k,crossPlacement:M}=S,R=zv(t,o,n,S,h,m,d,g,x,w),K=h,H=BE(o,d,t,i,s+h,S);if(a&&r[E]>H){let _e=LE(`${Qp[k]} ${M}`),Me=zv(t,o,n,_e,h,m,d,g,x,w);BE(o,d,t,i,s+h,_e)>H&&(S=_e,R=Me,K=h)}let le="bottom";S.axis==="top"?S.placement==="top"?le="top":S.placement==="bottom"&&(le="bottom"):S.crossAxis==="top"&&(S.crossPlacement==="top"?le="bottom":S.crossPlacement==="bottom"&&(le="top"));let ae=IE(C,R[C],n[A],o,l,s,d);R[C]+=ae;let I=JH(R,o,d,g,i,s,n.height,le);b&&b<I&&(I=b),n.height=Math.min(n.height,I),R=zv(t,o,n,S,K,m,d,g,x,w),ae=IE(C,R[C],n[A],o,l,s,d),R[C]+=ae;let $e={},we=t[C]+.5*t[A]-R[C]-i[ta[C]];const W=x/2+w;var ie,O,L,B;const he=ta[C]==="left"?((ie=i.left)!==null&&ie!==void 0?ie:0)+((O=i.right)!==null&&O!==void 0?O:0):((L=i.top)!==null&&L!==void 0?L:0)+((B=i.bottom)!==null&&B!==void 0?B:0),U=n[A]-he-x/2-w,te=t[C]+x/2-(R[C]+i[ta[C]]),xe=t[C]+t[A]-x/2-(R[C]+i[ta[C]]),De=cc(we,te,xe);return $e[C]=cc(De,W,U),{position:R,maxHeight:I,arrowOffsetLeft:$e.left,arrowOffsetTop:$e.top,placement:S.placement}}function eG(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:s,shouldFlip:a,boundaryElement:o,offset:l,crossOffset:d,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?tG(r):document.documentElement,x=b===document.documentElement;const w=window.getComputedStyle(b).position;let S=!!w&&w!=="static",E=x?ec(n):VE(n,b);if(!x){let{marginTop:$e,marginLeft:we}=window.getComputedStyle(n);E.top+=parseInt($e,10)||0,E.left+=parseInt(we,10)||0}let C=ec(r),A=XH(r);var k,M;C.width+=((k=A.left)!==null&&k!==void 0?k:0)+((M=A.right)!==null&&M!==void 0?M:0);var R,K;C.height+=((R=A.top)!==null&&R!==void 0?R:0)+((K=A.bottom)!==null&&K!==void 0?K:0);let H=ZH(i),le=OE(o),ae=OE(b),I=o.tagName==="BODY"?ec(b):VE(b,o);return b.tagName==="HTML"&&o.tagName==="BODY"&&(ae.scroll.top=0,ae.scroll.left=0),QH(t,E,C,H,A,s,a,le,ae,I,l,d,S,h,m,g)}function ec(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:a,clientTop:o,clientLeft:l}=document.documentElement;return{top:t+s-o,left:n+a-l,width:r,height:i}}function VE(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:s,width:a,height:o}=e.getBoundingClientRect();r={top:i,left:s,width:a,height:o}}else{r=ec(e);let i=ec(t),s=window.getComputedStyle(t);i.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(s.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 tG(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!NE(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!NE(t);)t=t.parentElement;return t||document.documentElement}function NE(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 BM=new WeakMap;function nG(e){let{triggerRef:t,isOpen:n,onClose:r}=e;T.useEffect(()=>{if(!n||r===null)return;let i=s=>{let a=s.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let o=r||BM.get(t.current);o&&o()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let Hn=typeof document<"u"?window.visualViewport:null;function rG(e){let{direction:t}=Rr(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:s=i,placement:a="bottom",containerPadding:o=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:w,arrowBoundaryOffset:S=0}=e,[E,C]=T.useState(null),A=[g,a,i.current,r.current,s.current,o,l,d,h,m,b,t,w,S,n],k=T.useRef(Hn==null?void 0:Hn.scale);T.useEffect(()=>{b&&(k.current=Hn==null?void 0:Hn.scale)},[b]);let M=T.useCallback(()=>{if(g===!1||!b||!i.current||!r.current||!d||(Hn==null?void 0:Hn.scale)!==k.current)return;let ae=null;if(s.current&&s.current.contains(document.activeElement)){var I;let B=(I=document.activeElement)===null||I===void 0?void 0:I.getBoundingClientRect(),he=s.current.getBoundingClientRect();var $e;if(ae={type:"top",offset:(($e=B==null?void 0:B.top)!==null&&$e!==void 0?$e:0)-he.top},ae.offset>he.height/2){ae.type="bottom";var we;ae.offset=((we=B==null?void 0:B.bottom)!==null&&we!==void 0?we:0)-he.bottom}}let W=i.current;if(!w&&i.current){var ie;W.style.top="0px",W.style.bottom="";var O;W.style.maxHeight=((O=(ie=window.visualViewport)===null||ie===void 0?void 0:ie.height)!==null&&O!==void 0?O:window.innerHeight)+"px"}let L=eG({placement:sG(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:o,shouldFlip:l,boundaryElement:d,offset:h,crossOffset:m,maxHeight:w,arrowSize:n,arrowBoundaryOffset:S});if(L.position){if(W.style.top="",W.style.bottom="",W.style.left="",W.style.right="",Object.keys(L.position).forEach(B=>W.style[B]=L.position[B]+"px"),W.style.maxHeight=L.maxHeight!=null?L.maxHeight+"px":"",ae&&document.activeElement&&s.current){let B=document.activeElement.getBoundingClientRect(),he=s.current.getBoundingClientRect(),U=B[ae.type]-he[ae.type];s.current.scrollTop+=U-ae.offset}C(L)}},A);pn(M,A),iG(M),NC({ref:i,onResize:M}),NC({ref:r,onResize:M});let R=T.useRef(!1);pn(()=>{let ae,I=()=>{R.current=!0,clearTimeout(ae),ae=setTimeout(()=>{R.current=!1},500),M()},$e=()=>{R.current&&I()};return Hn==null||Hn.addEventListener("resize",I),Hn==null||Hn.addEventListener("scroll",$e),()=>{Hn==null||Hn.removeEventListener("resize",I),Hn==null||Hn.removeEventListener("scroll",$e)}},[M]);let K=T.useCallback(()=>{R.current||x==null||x()},[x,R]);nG({triggerRef:r,isOpen:b,onClose:x&&K});var H,le;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...E==null?void 0:E.position,maxHeight:(H=E==null?void 0:E.maxHeight)!==null&&H!==void 0?H:"100vh"}},placement:(le=E==null?void 0:E.placement)!==null&&le!==void 0?le:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:E==null?void 0:E.arrowOffsetLeft,top:E==null?void 0:E.arrowOffsetTop}},updatePosition:M}}function iG(e){pn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function sG(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Gs=[];function aG(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:s=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:o}=e;T.useEffect(()=>{if(i&&!Gs.includes(t))return Gs.push(t),()=>{let x=Gs.indexOf(t);x>=0&&Gs.splice(x,1)}},[i,t]);let l=()=>{Gs[Gs.length-1]===t&&n&&n()},d=x=>{(!o||o(x.target))&&Gs[Gs.length-1]===t&&(x.stopPropagation(),x.preventDefault())},h=x=>{(!o||o(x.target))&&(Gs[Gs.length-1]===t&&(x.stopPropagation(),x.preventDefault()),l())},m=x=>{x.key==="Escape"&&!a&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),l())};qq({ref:t,onInteractOutside:s&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=wc({isDisabled:!r,onBlurWithin:x=>{!x.relatedTarget||vH(x.relatedTarget)||(!o||o(x.relatedTarget))&&(n==null||n())}}),b=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function oG(e,t,n){let{type:r}=e,{isOpen:i}=t;T.useEffect(()=>{n&&n.current&&BM.set(n.current,t.close)});let s;r==="menu"?s=!0:r==="listbox"&&(s="listbox");let a=Hr();return{triggerProps:{"aria-haspopup":s,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const qv=typeof document<"u"&&window.visualViewport,uG=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Wh=0,Wv;function lG(e={}){let{isDisabled:t}=e;pn(()=>{if(!t)return Wh++,Wh===1&&(_d()?Wv=fG():Wv=cG()),()=>{Wh--,Wh===0&&Wv()}},[t])}function cG(){let e=window.innerWidth-document.documentElement.clientWidth;return ju(e>0&&("scrollbarGutter"in document.documentElement.style?wu(document.documentElement,"scrollbarGutter","stable"):wu(document.documentElement,"paddingRight",`${e}px`)),wu(document.documentElement,"overflow","hidden"))}function fG(){let e,t,n=d=>{e=Rm(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=wu(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()},s=d=>{let h=d.target;dG(h)&&(o(),h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",qv&&(qv.height<window.innerHeight?requestAnimationFrame(()=>{jE(h)}):qv.addEventListener("resize",()=>jE(h),{once:!0}))}))},a=null,o=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},h=window.pageXOffset,m=window.pageYOffset;a=ju(xf(window,"scroll",d),wu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),wu(document.documentElement,"overflow","hidden"),wu(document.body,"marginTop",`-${m}px`),()=>{window.scrollTo(h,m)}),window.scrollTo(0,0)},l=ju(xf(document,"touchstart",n,{passive:!1,capture:!0}),xf(document,"touchmove",r,{passive:!1,capture:!0}),xf(document,"touchend",i,{passive:!1,capture:!0}),xf(document,"focus",s,!0));return()=>{t==null||t(),a==null||a(),l()}}function wu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function xf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function jE(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Rm(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,s=n.getBoundingClientRect().top;s>i+n.clientHeight&&(r.scrollTop+=s-i)}n=r.parentElement}}function dG(e){return e instanceof HTMLInputElement&&!uG.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const hG=T.createContext({});function pG(){var e;return(e=T.useContext(hG))!==null&&e!==void 0?e:{}}let wf=new WeakMap,ii=[];function VM(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&&s(l),m!==NodeFilter.FILTER_REJECT){let g=h.nextNode();for(;g!=null;)s(g),g=h.nextNode()}},s=l=>{var d;let h=(d=wf.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),wf.set(l,h+1))};ii.length&&ii[ii.length-1].disconnect(),i(t);let a=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)}});a.observe(t,{childList:!0,subtree:!0});let o={visibleNodes:n,hiddenNodes:r,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return ii.push(o),()=>{a.disconnect();for(let l of r){let d=wf.get(l);d!=null&&(d===1?(l.removeAttribute("aria-hidden"),wf.delete(l)):wf.set(l,d-1))}o===ii[ii.length-1]?(ii.pop(),ii.length&&ii[ii.length-1].observe()):ii.splice(ii.indexOf(o),1)}}function mG(e){let t=ii[ii.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function gG(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:s,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o,...l}=e,d=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=aG({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||d,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o},i??r),{overlayProps:g,arrowProps:b,placement:x}=rG({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:s&&!d?t.close:null});return lG({isDisabled:s||!t.isOpen}),pn(()=>{if(t.isOpen&&r.current){var w,S;return s?mG((w=i==null?void 0:i.current)!==null&&w!==void 0?w:r.current):VM([(S=i==null?void 0:i.current)!==null&&S!==void 0?S:r.current])}},[s,t.isOpen,r,i]),{popoverProps:Qt(h,g),arrowProps:b,underlayProps:m,placement:x}}const NM=T.createContext(null);function vG(e){let t=n3(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,s]=T.useState(!1),a=T.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:o}=pG();if(!e.portalContainer&&o&&(n=o()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=T.createElement(pH,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=T.createElement(NM.Provider,{value:a},T.createElement(Kq,null,l)),za.createPortal(l,n)}function yG(){let e=T.useContext(NM),t=e==null?void 0:e.setContain;pn(()=>{t==null||t(!0)},[t])}const Um=new WeakMap;function bG(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function jM(e,t){let n=Um.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${bG(t)}`}function Nb(e){return fp()?e.altKey:e.ctrlKey}function vp(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,s=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return s&&(i=`[data-collection="${CSS.escape(s)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const KM=new WeakMap;function $G(e){let t=Hr();return KM.set(e,t),t}function xG(e){return KM.get(e)}const wG=1e3;function CG(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=T.useRef({search:"",timeout:void 0}).current,s=a=>{let o=EG(a.key);if(!(!o||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(o===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=o,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=""},wG)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function EG(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function UM(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:s=!1,disallowEmptySelection:a=!1,disallowSelectAll:o=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:b,scrollRef:x=r,linkBehavior:w="action"}=e,{direction:S}=Rr(),E=Fm(),C=L=>{var B;if(L.altKey&&L.key==="Tab"&&L.preventDefault(),!(!((B=r.current)===null||B===void 0)&&B.contains(L.target)))return;const he=(Te,tt)=>{if(Te!=null){if(t.isLink(Te)&&w==="selection"&&d&&!Nb(L)){za.flushSync(()=>{t.setFocusedKey(Te,tt)});let yt=vp(r,Te),Jt=t.getItemProps(Te);yt&&E.open(yt,L,Jt.href,Jt.routerOptions);return}if(t.setFocusedKey(Te,tt),t.isLink(Te)&&w==="override")return;L.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&!Nb(L)&&t.replaceSelection(Te)}};switch(L.key){case"ArrowDown":if(n.getKeyBelow){var U,te,xe;let Te=t.focusedKey!=null?(U=n.getKeyBelow)===null||U===void 0?void 0:U.call(n,t.focusedKey):(te=n.getFirstKey)===null||te===void 0?void 0:te.call(n);Te==null&&s&&(Te=(xe=n.getFirstKey)===null||xe===void 0?void 0:xe.call(n,t.focusedKey)),Te!=null&&(L.preventDefault(),he(Te))}break;case"ArrowUp":if(n.getKeyAbove){var De,_e,Me;let Te=t.focusedKey!=null?(De=n.getKeyAbove)===null||De===void 0?void 0:De.call(n,t.focusedKey):(_e=n.getLastKey)===null||_e===void 0?void 0:_e.call(n);Te==null&&s&&(Te=(Me=n.getLastKey)===null||Me===void 0?void 0:Me.call(n,t.focusedKey)),Te!=null&&(L.preventDefault(),he(Te))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ye,Ge,Ae;let Te=t.focusedKey!=null?(Ye=n.getKeyLeftOf)===null||Ye===void 0?void 0:Ye.call(n,t.focusedKey):null;Te==null&&s&&(Te=S==="rtl"?(Ge=n.getFirstKey)===null||Ge===void 0?void 0:Ge.call(n,t.focusedKey):(Ae=n.getLastKey)===null||Ae===void 0?void 0:Ae.call(n,t.focusedKey)),Te!=null&&(L.preventDefault(),he(Te,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Ke,We,Ve;let Te=t.focusedKey!=null?(Ke=n.getKeyRightOf)===null||Ke===void 0?void 0:Ke.call(n,t.focusedKey):null;Te==null&&s&&(Te=S==="rtl"?(We=n.getLastKey)===null||We===void 0?void 0:We.call(n,t.focusedKey):(Ve=n.getFirstKey)===null||Ve===void 0?void 0:Ve.call(n,t.focusedKey)),Te!=null&&(L.preventDefault(),he(Te,S==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&L.shiftKey)return;L.preventDefault();let Te=n.getFirstKey(t.focusedKey,Rl(L));t.setFocusedKey(Te),Te!=null&&(Rl(L)&&L.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&t.replaceSelection(Te))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&L.shiftKey)return;L.preventDefault();let Te=n.getLastKey(t.focusedKey,Rl(L));t.setFocusedKey(Te),Te!=null&&(Rl(L)&&L.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&t.replaceSelection(Te))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Te=n.getKeyPageBelow(t.focusedKey);Te!=null&&(L.preventDefault(),he(Te))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Te=n.getKeyPageAbove(t.focusedKey);Te!=null&&(L.preventDefault(),he(Te))}break;case"a":Rl(L)&&t.selectionMode==="multiple"&&o!==!0&&(L.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(L.stopPropagation(),L.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(L.shiftKey)r.current.focus();else{let Te=Ur(r.current,{tabbable:!0}),tt,yt;do yt=Te.lastChild(),yt&&(tt=yt);while(yt);tt&&!tt.contains(document.activeElement)&&Di(tt)}break}}},A=T.useRef({top:0,left:0});Qs(x,"scroll",b?void 0:()=>{var L,B,he,U;A.current={top:(he=(L=x.current)===null||L===void 0?void 0:L.scrollTop)!==null&&he!==void 0?he:0,left:(U=(B=x.current)===null||B===void 0?void 0:B.scrollLeft)!==null&&U!==void 0?U:0}});let k=L=>{if(t.isFocused){L.currentTarget.contains(L.target)||t.setFocused(!1);return}if(L.currentTarget.contains(L.target)){if(t.setFocused(!0),t.focusedKey==null){var B,he;let xe=_e=>{_e!=null&&(t.setFocusedKey(_e),d&&!t.isSelected(_e)&&t.replaceSelection(_e))},De=L.relatedTarget;var U,te;De&&L.currentTarget.compareDocumentPosition(De)&Node.DOCUMENT_POSITION_FOLLOWING?xe((U=t.lastSelectedKey)!==null&&U!==void 0?U:(B=n.getLastKey)===null||B===void 0?void 0:B.call(n)):xe((te=t.firstSelectedKey)!==null&&te!==void 0?te:(he=n.getFirstKey)===null||he===void 0?void 0:he.call(n))}else!b&&x.current&&(x.current.scrollTop=A.current.top,x.current.scrollLeft=A.current.left);if(t.focusedKey!=null&&x.current){let xe=vp(r,t.focusedKey);xe instanceof HTMLElement&&(!xe.contains(document.activeElement)&&!m&&Di(xe),id()==="keyboard"&&Kp(xe,{containingElement:r.current}))}}},M=L=>{L.currentTarget.contains(L.relatedTarget)||t.setFocused(!1)},R=T.useRef(!1);Qs(r,wq,m?L=>{let{detail:B}=L;L.stopPropagation(),t.setFocused(!0),(B==null?void 0:B.focusStrategy)==="first"&&(R.current=!0)}:void 0);let K=kn(()=>{var L,B;let he=(B=(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n))!==null&&B!==void 0?B:null;he==null?(k_(r.current),t.collection.size>0&&(R.current=!1)):(t.setFocusedKey(he),R.current=!1)});VC(()=>{R.current&&K()},[t.collection,K]);let H=kn(()=>{t.collection.size>0&&(R.current=!1)});VC(()=>{H()},[t.focusedKey,H]),Qs(r,xq,m?L=>{var B;L.stopPropagation(),t.setFocused(!1),!((B=L.detail)===null||B===void 0)&&B.clearFocusKey&&t.setFocusedKey(null)}:void 0);const le=T.useRef(i),ae=T.useRef(!1);T.useEffect(()=>{if(le.current){var L,B;let te=null;var he;i==="first"&&(te=(he=(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n))!==null&&he!==void 0?he:null);var U;i==="last"&&(te=(U=(B=n.getLastKey)===null||B===void 0?void 0:B.call(n))!==null&&U!==void 0?U:null);let xe=t.selectedKeys;if(xe.size){for(let De of xe)if(t.canSelectItem(De)){te=De;break}}t.setFocused(!0),t.setFocusedKey(te),te==null&&!m&&r.current&&zu(r.current),t.collection.size>0&&(le.current=!1,ae.current=!0)}});let I=T.useRef(t.focusedKey),$e=T.useRef(null);T.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==I.current||ae.current)&&x.current&&r.current){let L=id(),B=vp(r,t.focusedKey);if(!(B instanceof HTMLElement))return;(L==="keyboard"||ae.current)&&($e.current&&cancelAnimationFrame($e.current),$e.current=requestAnimationFrame(()=>{x.current&&(k5(x.current,B),L!=="virtual"&&Kp(B,{containingElement:r.current}))}))}!m&&t.isFocused&&t.focusedKey==null&&I.current!=null&&r.current&&zu(r.current),I.current=t.focusedKey,ae.current=!1}),T.useEffect(()=>()=>{$e.current&&cancelAnimationFrame($e.current)},[]),Qs(r,"react-aria-focus-scope-restore",L=>{L.preventDefault(),t.setFocused(!0)});let we={onKeyDown:C,onFocus:k,onBlur:M,onMouseDown(L){x.current===L.target&&L.preventDefault()}},{typeSelectProps:W}=CG({keyboardDelegate:n,selectionManager:t});h||(we=Qt(W,we));let ie;m||(ie=t.focusedKey==null?0:-1);let O=$G(t.collection);return{collectionProps:Qt(we,{tabIndex:ie,"data-collection":O})}}function SG(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:s,shouldUseVirtualFocus:a,focus:o,isDisabled:l,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=Fm();t=Hr(t);let b=B=>{if(B.pointerType==="keyboard"&&Nb(B))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let he=n.getItemProps(r);g.open(i.current,B,he.href,he.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):B&&B.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||B&&(Rl(B)||B.pointerType==="touch"||B.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};T.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(a?k_(i.current):o?o():document.activeElement!==i.current&&i.current&&zu(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),l=l||n.isDisabled(r);let x={};!a&&!l?x={tabIndex:r===n.focusedKey?0:-1,onFocus(B){B.target===i.current&&n.setFocusedKey(r)}}:l&&(x.onMouseDown=B=>{B.preventDefault()});let w=n.isLink(r)&&m==="override",S=n.isLink(r)&&m!=="selection"&&m!=="none",E=!l&&n.canSelectItem(r)&&!w,C=(d||S)&&!l,A=C&&(n.selectionBehavior==="replace"?!E:!E||n.isEmpty),k=C&&E&&n.selectionBehavior==="replace",M=A||k,R=T.useRef(null),K=M&&E,H=T.useRef(!1),le=T.useRef(!1),ae=B=>{if(d&&d(),S&&i.current){let he=n.getItemProps(r);g.open(i.current,B,he.href,he.routerOptions)}},I={ref:i};s?(I.onPressStart=B=>{R.current=B.pointerType,H.current=K,B.pointerType==="keyboard"&&(!M||UE())&&b(B)},h?(I.onPressUp=A?void 0:B=>{B.pointerType==="mouse"&&E&&b(B)},I.onPress=A?ae:B=>{B.pointerType!=="keyboard"&&B.pointerType!=="mouse"&&E&&b(B)}):I.onPress=B=>{if(A||k&&B.pointerType!=="mouse"){if(B.pointerType==="keyboard"&&!KE())return;ae(B)}else B.pointerType!=="keyboard"&&E&&b(B)}):(I.onPressStart=B=>{R.current=B.pointerType,H.current=K,le.current=A,E&&(B.pointerType==="mouse"&&!A||B.pointerType==="keyboard"&&(!C||UE()))&&b(B)},I.onPress=B=>{(B.pointerType==="touch"||B.pointerType==="pen"||B.pointerType==="virtual"||B.pointerType==="keyboard"&&M&&KE()||B.pointerType==="mouse"&&le.current)&&(M?ae(B):E&&b(B))}),x["data-collection"]=xG(n.collection),x["data-key"]=r,I.preventFocusOnPress=a,a&&(I=Qt(I,{onPressStart(B){B.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(B){B.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:$e,isPressed:we}=Rd(I),W=k?B=>{R.current==="mouse"&&(B.stopPropagation(),B.preventDefault(),ae(B))}:void 0,{longPressProps:ie}=G5({isDisabled:!K,onLongPress(B){B.pointerType==="touch"&&(b(B),n.setSelectionBehavior("toggle"))}}),O=B=>{R.current==="touch"&&H.current&&B.preventDefault()},L=n.isLink(r)?B=>{Ku.isOpening||B.preventDefault()}:void 0;return{itemProps:Qt(x,E||A||a&&!l?$e:{},K?ie:{},{onDoubleClick:W,onDragStartCapture:O,onClick:L,id:t},a?{onMouseDown:B=>B.preventDefault()}:void 0),isPressed:we,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:E,hasAction:M}}function KE(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function UE(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class zE{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?vp(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),s=r.getBoundingClientRect();return{x:s.left-i.left+n.scrollLeft,y:s.top-i.top+n.scrollTop,width:s.width,height:s.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,s;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:(s=t==null?void 0:t.offsetHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class zM{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,s=this.layoutDelegate.getItemRect(i);if(!s||i==null)return null;let a=s;do{if(i=n(i),i==null)break;s=this.layoutDelegate.getItemRect(i)}while(s&&r(a,s)&&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&&!rd(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let s=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>s&&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&&!rd(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<s&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<s&&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 s=r.getItem(i);if(!s)return null;let a=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(a,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 zE(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 zE(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function DG(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:s,layoutDelegate:a}=e,o=P_({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,d=T.useMemo(()=>s||new zM({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:o,layoutDelegate:a}),[s,a,n,r,i,o,l]),{collectionProps:h}=UM({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:h}}function AG(e,t,n){let r=Qa(e,{labelable:!0}),i=e.selectionBehavior||"toggle",s=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&s==="action"&&(s="override");let{listProps:a}=DG({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:o}=wc({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Hr(e.id);Um.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s});let{labelProps:d,fieldProps:h}=jm({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:Qt(r,o,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Qt(h,a)})}}function qM(e){return null}qM.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:s}=t,a=t.title||t.children,o=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!o&&!(n!=null&&n.suppressTextValueWarning)&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:o,"aria-label":t["aria-label"],hasChildNodes:TG(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];T.Children.forEach(s,d=>{l.push({type:"item",element:d})}),yield*l}}}};function TG(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&T.Children.count(e.children)>0)}let PG=qM;class _G{build(t,n){return this.context=n,qE(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(T.isValidElement(n)&&n.type===T.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 s of r)yield*this.getFullNode({value:s,index:i},{renderer:n}),i++}else{let i=[];T.Children.forEach(n,a=>{a&&i.push(a)});let s=0;for(let a of i){let o=this.getFullNode({element:a,index:s},{});for(let l of o)s++,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 s=n.value;if(s!=null){var a;let o=(a=s.key)!==null&&a!==void 0?a:s.id;if(o==null)throw new Error("No key found for item");return o}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(T.isValidElement(t.element)&&t.element.type===T.Fragment){let S=[];T.Children.forEach(t.element.props.children,C=>{S.push(C)});var s;let E=(s=t.index)!==null&&s!==void 0?s:0;for(const C of S)yield*this.getFullNode({element:C,index:E++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let S=this.cache.get(t.value);if(S&&(!S.shouldInvalidate||!S.shouldInvalidate(this.context))){S.index=t.index,S.parentKey=i?i.key:null,yield S;return}a=n.renderer(t.value)}if(T.isValidElement(a)){let S=a.type;if(typeof S!="function"&&typeof S.getCollectionNode!="function"){let k=a.type;throw new Error(`Unknown element <${k}> in collection.`)}let E=S.getCollectionNode(a.props,this.context);var o;let C=(o=t.index)!==null&&o!==void 0?o:0,A=E.next();for(;!A.done&&A.value;){let k=A.value;t.index=C;var l;let M=(l=k.key)!==null&&l!==void 0?l:null;M==null&&(M=k.element?null:this.getKey(a,t,n,r));let K=[...this.getFullNode({...k,key:M,index:C,wrapper:MG(t.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${a.key}`:a.key,i)];for(let H of K){var d,h;H.value=(h=(d=k.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,H.value&&this.cache.set(H.value,H);var m;if(t.type&&H.type!==t.type)throw new Error(`Unsupported type <${Hv(H.type)}> in <${Hv((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${Hv(t.type)}> is supported.`);C++,yield H}A=E.next(K)}return}if(t.key==null||t.type==null)return;let g=this;var b,x;let w={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:qE(function*(){if(!t.hasChildNodes||!t.childNodes)return;let S=0;for(let E of t.childNodes()){E.key!=null&&(E.key=`${w.key}${E.key}`);let C=g.getFullNode({...E,index:S},g.getChildState(n,E),w.key,w);for(let A of C)S++,yield A}})};yield w}constructor(){this.cache=new WeakMap}}function qE(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 MG(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Hv(e){return e[0].toUpperCase()+e.slice(1)}function FG(e,t,n){let r=T.useMemo(()=>new _G,[]),{children:i,items:s,collection:a}=e;return T.useMemo(()=>{if(a)return a;let l=r.build({children:i,items:s},n);return t(l)},[r,i,s,a,n,t])}function zm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function RG(e){return kG(e)}function kG(e,t){for(let n of e)return n}function Gv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...WE(e,t),t],i=[...WE(e,n),n],s=r.slice(0,i.length).findIndex((a,o)=>a!==i[o]);return s!==-1?(t=r[s],n=i[s],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function WE(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 HE=new WeakMap;function WM(e){let t=HE.get(e);if(t!=null)return t;let n=0,r=i=>{for(let s of i)s.type==="section"?r(zm(s,e)):s.type==="item"&&n++};return r(e),HE.set(e,n),n}function OG(e,t,n){var r,i;let{key:s}=e,a=Um.get(t);var o;let l=(o=e.isDisabled)!==null&&o!==void 0?o:t.selectionManager.isDisabled(s);var d;let h=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(s);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:a==null?void 0:a.shouldSelectOnPressUp;var b;let x=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:a==null?void 0:a.shouldFocusOnHover;var w;let S=(w=e.shouldUseVirtualFocus)!==null&&w!==void 0?w:a==null?void 0:a.shouldUseVirtualFocus;var E;let C=(E=e.isVirtualized)!==null&&E!==void 0?E:a==null?void 0:a.isVirtualized,A=uc(),k=uc(),M={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};Ga()&&i3()||(M["aria-label"]=e["aria-label"],M["aria-labelledby"]=A,M["aria-describedby"]=k);let R=t.collection.getItem(s);if(C){let L=Number(R==null?void 0:R.index);M["aria-posinset"]=Number.isNaN(L)?void 0:L+1,M["aria-setsize"]=WM(t.collection)}let K=a!=null&&a.onAction?()=>{var L;return a==null||(L=a.onAction)===null||L===void 0?void 0:L.call(a,s)}:void 0,H=jM(t,s),{itemProps:le,isPressed:ae,isFocused:I,hasAction:$e,allowsSelection:we}=SG({selectionManager:t.selectionManager,key:s,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&x,isVirtualized:C,shouldUseVirtualFocus:S,isDisabled:l,onAction:K||!(R==null||(r=R.props)===null||r===void 0)&&r.onAction?ju(R==null||(i=R.props)===null||i===void 0?void 0:i.onAction,K):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:H}),{hoverProps:W}=zq({isDisabled:l||!x,onHoverStart(){XC()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),ie=Qa(R==null?void 0:R.props);delete ie.id;let O=mq(R==null?void 0:R.props);return{optionProps:{...M,...Qt(ie,le,W,O),id:H},labelProps:{id:A},descriptionProps:{id:k},isFocused:I,isFocusVisible:I&&t.selectionManager.isFocused&&XC(),isSelected:h,isDisabled:l,isPressed:ae,allowsSelection:we,hasAction:$e}}var HM={};HM={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var GM={};GM={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var YM={};YM={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var ZM={};ZM={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var XM={};XM={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var JM={};JM={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var QM={};QM={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var eF={};eF={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var tF={};tF={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var nF={};nF={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var rF={};rF={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var iF={};iF={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var sF={};sF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var aF={};aF={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var oF={};oF={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var uF={};uF={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var lF={};lF={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var cF={};cF={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var fF={};fF={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var dF={};dF={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var hF={};hF={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var pF={};pF={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var mF={};mF={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var gF={};gF={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var vF={};vF={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var yF={};yF={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var bF={};bF={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var $F={};$F={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var xF={};xF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var wF={};wF={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var CF={};CF={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var EF={};EF={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var SF={};SF={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var DF={};DF={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var AF={};AF={"ar-AE":HM,"bg-BG":GM,"cs-CZ":YM,"da-DK":ZM,"de-DE":XM,"el-GR":JM,"en-US":QM,"es-ES":eF,"et-EE":tF,"fi-FI":nF,"fr-FR":rF,"he-IL":iF,"hr-HR":sF,"hu-HU":aF,"it-IT":oF,"ja-JP":uF,"ko-KR":lF,"lt-LT":cF,"lv-LV":fF,"nb-NO":dF,"nl-NL":hF,"pl-PL":pF,"pt-BR":mF,"pt-PT":gF,"ro-RO":vF,"ru-RU":yF,"sk-SK":bF,"sl-SI":$F,"sr-SP":xF,"sv-SE":wF,"tr-TR":CF,"uk-UA":EF,"zh-CN":SF,"zh-TW":DF};function IG(e){return e&&e.__esModule?e.default:e}function LG(e,t,n){let{type:r="menu",isDisabled:i,trigger:s="press"}=e,a=Hr(),{triggerProps:o,overlayProps:l}=oG({type:r},t,n),d=b=>{if(!i&&!(s==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(s==="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=fa(IG(AF),"@react-aria/menu"),{longPressProps:m}=G5({isDisabled:i||s!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={preventFocusOnPress:!0,onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&(Di(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&(Di(b.target),t.toggle())}};return delete o.onPress,{menuTriggerProps:{...o,...s==="press"?g:m,id:a,onKeyDown:d},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function BG(e){return e&&e.__esModule?e.default:e}function VG(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:s,keyboardDelegate:a,layoutDelegate:o,shouldFocusWrap:l,isReadOnly:d,isDisabled:h}=e,m=T.useRef(null);n=n??m;let g=fa(BG(IM),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:x}=LG({type:"listbox",isDisabled:h||d},t,n);Um.set(t,{id:x.id});let{collection:w}=t,{disabledKeys:S}=t.selectionManager,E=T.useMemo(()=>a||new zM({collection:w,disabledKeys:S,ref:s,layoutDelegate:o}),[a,o,w,S,s]),{collectionProps:C}=UM({selectionManager:t.selectionManager,keyboardDelegate:E,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),A=Fm(),k=Ve=>{if(!Ve.nativeEvent.isComposing)switch(Ve.key){case"Enter":case"Tab":if(t.isOpen&&Ve.key==="Enter"&&Ve.preventDefault(),t.isOpen&&s.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let Te=s.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(Ve.key==="Enter"&&Te instanceof HTMLAnchorElement){let tt=t.collection.getItem(t.selectionManager.focusedKey);tt&&A.open(Te,Ve,tt.props.href,tt.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ve.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}},M=Ve=>{var Te;let tt=(n==null?void 0:n.current)&&n.current===Ve.relatedTarget,yt=(Te=r.current)===null||Te===void 0?void 0:Te.contains(Ve.relatedTarget);tt||yt||(e.onBlur&&e.onBlur(Ve),t.setFocused(!1))},R=Ve=>{t.isFocused||(e.onFocus&&e.onFocus(Ve),t.setFocused(!0))},{isInvalid:K,validationErrors:H,validationDetails:le}=t.displayValidation,{labelProps:ae,inputProps:I,descriptionProps:$e,errorMessageProps:we}=WH({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:ju(t.isOpen&&C.onKeyDown,k,e.onKeyDown),onBlur:M,value:t.inputValue,onFocus:R,autoComplete:"off",validate:void 0,[dc]:t},i),W=Ve=>{if(Ve.pointerType==="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(null,"manual")}},ie=Ve=>{if(Ve.pointerType!=="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(Ve.pointerType==="keyboard"||Ve.pointerType==="virtual"?"first":null,"manual")}},O=lc({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),L=lc({id:x.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),B=T.useRef(0),he=Ve=>{if(h||d)return;if(Ve.timeStamp-B.current<500){var Te;Ve.preventDefault(),(Te=i.current)===null||Te===void 0||Te.focus();return}let tt=Ve.target.getBoundingClientRect(),yt=Ve.changedTouches[0],Jt=Math.ceil(tt.left+.5*tt.width),xt=Math.ceil(tt.top+.5*tt.height);if(yt.clientX===Jt&&yt.clientY===xt){var Mt;Ve.preventDefault(),(Mt=i.current)===null||Mt===void 0||Mt.focus(),t.toggle(null,"manual"),B.current=Ve.timeStamp}},U=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var te;let xe=(te=U==null?void 0:U.parentKey)!==null&&te!==void 0?te:null;var De;let _e=(De=t.selectionManager.focusedKey)!==null&&De!==void 0?De:null,Me=T.useRef(xe),Ye=T.useRef(_e);T.useEffect(()=>{if(fp()&&U!=null&&_e!=null&&_e!==Ye.current){let Te=t.selectionManager.isSelected(_e),tt=xe!=null?t.collection.getItem(xe):null,yt=(tt==null?void 0:tt["aria-label"])||(typeof(tt==null?void 0:tt.rendered)=="string"?tt.rendered:"")||"";var Ve;let Jt=g.format("focusAnnouncement",{isGroupChange:(Ve=tt&&xe!==Me.current)!==null&&Ve!==void 0?Ve:!1,groupTitle:yt,groupCount:tt?[...zm(tt,t.collection)].length:0,optionText:U["aria-label"]||U.textValue||"",isSelected:Te});Ql(Jt)}Me.current=xe,Ye.current=_e});let Ge=WM(t.collection),Ae=T.useRef(Ge),Ke=T.useRef(t.isOpen);T.useEffect(()=>{let Ve=t.isOpen!==Ke.current&&(t.selectionManager.focusedKey==null||fp());if(t.isOpen&&(Ve||Ge!==Ae.current)){let Te=g.format("countAnnouncement",{optionCount:Ge});Ql(Te)}Ae.current=Ge,Ke.current=t.isOpen});let We=T.useRef(t.selectedKey);return T.useEffect(()=>{if(fp()&&t.isFocused&&t.selectedItem&&t.selectedKey!==We.current){let Ve=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Te=g.format("selectedAnnouncement",{optionText:Ve});Ql(Te)}We.current=t.selectedKey}),T.useEffect(()=>{if(t.isOpen)return VM([i.current,r.current].filter(Ve=>Ve!=null))},[t.isOpen,i,r]),gb(()=>{!U&&i.current&&mr(tn(i.current))===i.current&&O_(i.current,null)},[U]),{labelProps:ae,buttonProps:{...b,...O,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:W,onPressStart:ie,isDisabled:h||d},inputProps:Qt(I,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?x.id:void 0,"aria-autocomplete":"list","aria-activedescendant":U?jM(t,U.key):void 0,onTouchEnd:he,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Qt(x,L,{autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:$e,errorMessageProps:we,isInvalid:K,validationErrors:H,validationDetails:le}}var TF={};TF={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 PF={};PF={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 _F={};_F={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 MF={};MF={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 FF={};FF={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 RF={};RF={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 kF={};kF={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 OF={};OF={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 IF={};IF={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 LF={};LF={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 BF={};BF={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 VF={};VF={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 NF={};NF={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 jF={};jF={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 KF={};KF={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 UF={};UF={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 zF={};zF={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 qF={};qF={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 WF={};WF={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 HF={};HF={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 GF={};GF={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 YF={};YF={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 ZF={};ZF={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 XF={};XF={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 JF={};JF={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 QF={};QF={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 eR={};eR={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 tR={};tR={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 nR={};nR={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 rR={};rR={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 iR={};iR={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 sR={};sR={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 aR={};aR={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 oR={};oR={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 Nd={};Nd={"ar-AE":TF,"bg-BG":PF,"cs-CZ":_F,"da-DK":MF,"de-DE":FF,"el-GR":RF,"en-US":kF,"es-ES":OF,"et-EE":IF,"fi-FI":LF,"fr-FR":BF,"he-IL":VF,"hr-HR":NF,"hu-HU":jF,"it-IT":KF,"ja-JP":UF,"ko-KR":zF,"lt-LT":qF,"lv-LV":WF,"nb-NO":HF,"nl-NL":GF,"pl-PL":YF,"pt-BR":ZF,"pt-PT":XF,"ro-RO":JF,"ru-RU":QF,"sk-SK":eR,"sl-SI":tR,"sr-SP":nR,"sv-SE":rR,"tr-TR":iR,"uk-UA":sR,"zh-CN":aR,"zh-TW":oR};function D3(e,t,n){let{direction:r}=Rr(),i=T.useMemo(()=>Vm(t),[t]),s=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":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let d=l.target,h=GE(t.current,d.getBoundingClientRect().left,-1);h&&h.focus()}}else i.focusPrevious();break;case"ArrowRight":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let d=l.target,h=GE(t.current,d.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},a=()=>{var l;if(!t.current)return;let d=(l=window.event)===null||l===void 0?void 0:l.target,h=Ur(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:o}=Rd({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){(l.pointerType==="touch"||l.pointerType==="pen")&&a()}});return Qt(o,{onKeyDown:s})}function GE(e,t,n){let r=Ur(e,{tabbable:!0}),i=r.nextNode(),s=null,a=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,d=Math.abs(l);Math.sign(l)===n&&d<a&&(s=i,a=d),i=r.nextNode()}return s}function NG(e){return e&&e.__esModule?e.default:e}const uR=new WeakMap,Hf="__role_"+Date.now(),lR="__focusManager_"+Date.now();function cR(e,t,n){var r;let{isInvalid:i,validationErrors:s,validationDetails:a}=t.displayValidation,{labelProps:o,fieldProps:l,descriptionProps:d,errorMessageProps:h}=Km({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||s}),m=T.useRef(null),{focusWithinProps:g}=wc({...e,onFocusWithin(ae){var I;m.current=t.value,(I=e.onFocus)===null||I===void 0||I.call(e,ae)},onBlurWithin:ae=>{var I;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(I=e.onBlur)===null||I===void 0||I.call(e,ae)},onFocusWithinChange:e.onFocusChange}),b=fa(NG(Nd),"@react-aria/datepicker"),x=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",w=t.maxGranularity==="hour"?"time":"date",S=t.value?b.format(x,{[w]:t.formatValue({month:"long"})}):"",E=Md(S),C=e[Hf]==="presentation"?l["aria-describedby"]:[E["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,A=e[lR],k=T.useMemo(()=>A||Vm(n),[A,n]),M=D3(t,n,e[Hf]==="presentation");uR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[o.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:k});let R=T.useRef(e.autoFocus),K;e[Hf]==="presentation"?K={role:"presentation"}:K=Qt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),T.useEffect(()=>{R.current&&k.focusFirst(),R.current=!1},[k]),a3(e.inputRef,t.value,t.setValue),$6({...e,focus(){k.focusFirst()}},t,e.inputRef);let H={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(H.type="text",H.hidden=!0,H.required=e.isRequired,H.onChange=()=>{});let le=Qa(e);return{labelProps:{...o,onClick:()=>{k.focusFirst()}},fieldProps:Qt(le,K,M,g,{onKeyDown(ae){e.onKeyDown&&e.onKeyDown(ae)},onKeyUp(ae){e.onKeyUp&&e.onKeyUp(ae)},style:{unicodeBidi:"isolate"}}),inputProps:H,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:s,validationDetails:a}}function jG(e,t,n){var r;let i=cR(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function KG(e){return e&&e.__esModule?e.default:e}function UG(e,t,n){let r=Hr(),i=Hr(),s=Hr(),a=fa(KG(Nd),"@react-aria/datepicker"),{isInvalid:o,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Km({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||l}),x=D3(t,n),w=m["aria-labelledby"]||m.id,{locale:S}=Rr(),E=t.formatValue(S,{month:"long"}),C=E?a.format("selectedDateDescription",{date:E}):"",A=Md(C),k=[A["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,M=Qa(e),R=T.useMemo(()=>Vm(n),[n]),K=T.useRef(!1),{focusWithinProps:H}=wc({...e,isDisabled:t.isOpen,onBlurWithin:le=>{let ae=document.getElementById(i);if(!(ae!=null&&ae.contains(le.relatedTarget))){var I,$e;K.current=!1,(I=e.onBlur)===null||I===void 0||I.call(e,le),($e=e.onFocusChange)===null||$e===void 0||$e.call(e,!1)}},onFocusWithin:le=>{if(!K.current){var ae,I;K.current=!0,(ae=e.onFocus)===null||ae===void 0||ae.call(e,le),(I=e.onFocusChange)===null||I===void 0||I.call(e,!0)}}});return{groupProps:Qt(M,x,m,A,H,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":w,"aria-describedby":k,onKeyDown(le){t.isOpen||e.onKeyDown&&e.onKeyDown(le)},onKeyUp(le){t.isOpen||e.onKeyUp&&e.onKeyUp(le)}}),labelProps:{...h,onClick:()=>{R.focusFirst()}},fieldProps:{...m,id:s,[Hf]:"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,[dc]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:g,errorMessageProps:b,buttonProps:{...A,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${w}`,"aria-describedby":k,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${w}`},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:o,validationErrors:l,validationDetails:d}}function zG(e){return e&&e.__esModule?e.default:e}function qG(){let{locale:e}=Rr(),t=X5(zG(Nd),"@react-aria/datepicker");return T.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new WG(e,t)}},[e,t])}class WG{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function HG(e,t,n){let r=T.useRef(""),{locale:i,direction:s}=Rr(),a=qG(),{ariaLabel:o,ariaLabelledBy:l,ariaDescribedBy:d,focusManager:h}=uR.get(t),m=e.isPlaceholder?"":e.text,g=T.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=ea({month:"long",timeZone:g.timeZone}),x=ea({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if(e.type==="month"&&!e.isPlaceholder){let U=b.format(t.dateValue);m=U!==m?`${m} – ${U}`:U}else e.type==="hour"&&!e.isPlaceholder&&(m=x.format(t.dateValue));let{spinButtonProps:w}=GH({value:e.value,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),S=T.useMemo(()=>new T_(i,{maximumFractionDigits:0}),[i]),E=()=>{if(e.text===e.placeholder&&h.focusPrevious(),S.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let U=e.text.slice(0,-1),te=S.parse(U);U=te===0?"":U,U.length===0||te===0?t.clearSegment(e.type):t.setSegment(e.type,te),r.current=U}else e.type==="dayPeriod"&&t.clearSegment(e.type)},C=U=>{if(U.key==="a"&&(Ga()?U.metaKey:U.ctrlKey)&&U.preventDefault(),!(U.ctrlKey||U.metaKey||U.shiftKey||U.altKey))switch(U.key){case"Backspace":case"Delete":U.preventDefault(),U.stopPropagation(),E();break}},{startsWith:A}=__({sensitivity:"base"}),k=ea({hour:"numeric",hour12:!0}),M=T.useMemo(()=>{let U=new Date;return U.setHours(0),k.formatToParts(U).find(te=>te.type==="dayPeriod").value},[k]),R=T.useMemo(()=>{let U=new Date;return U.setHours(12),k.formatToParts(U).find(te=>te.type==="dayPeriod").value},[k]),K=ea({year:"numeric",era:"narrow",timeZone:"UTC"}),H=T.useMemo(()=>{if(e.type!=="era")return[];let U=On(new Zn(1,1,1),t.calendar),te=t.calendar.getEras().map(De=>{let _e=U.set({year:1,month:1,day:1,era:De}).toDate("UTC"),Ye=K.formatToParts(_e).find(Ge=>Ge.type==="era").value;return{era:De,formatted:Ye}}),xe=GG(te.map(De=>De.formatted));if(xe)for(let De of te)De.formatted=De.formatted.slice(xe);return te},[K,t.calendar,e.type]),le=U=>{if(t.isDisabled||t.isReadOnly)return;let te=r.current+U;switch(e.type){case"dayPeriod":if(A(M,U))t.setSegment("dayPeriod",0);else if(A(R,U))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let xe=H.find(De=>A(De.formatted,U));xe&&(t.setSegment("era",xe.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!S.isValidPartialNumber(te))return;let xe=S.parse(te),De=xe,_e=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":xe>11&&(De=S.parse(U));break;case"h12":_e=!1,xe>12&&(De=S.parse(U));break}e.value!==void 0&&e.value>=12&&xe>1&&(xe+=12)}else e.maxValue!==void 0&&xe>e.maxValue&&(De=S.parse(U));if(isNaN(xe))return;let Me=De!==0||_e;Me&&t.setSegment(e.type,De),e.maxValue!==void 0&&(+(xe+"0")>e.maxValue||te.length>=String(e.maxValue).length)?(r.current="",Me&&h.focusNext()):r.current=te;break}}},ae=()=>{r.current="",n.current&&Kp(n.current,{containingElement:Rm(n.current)});let U=window.getSelection();U==null||U.collapse(n.current)},I=T.useRef(typeof document<"u"?document:null);Qs(I,"selectionchange",()=>{var U;let te=window.getSelection();te!=null&&te.anchorNode&&(!((U=n.current)===null||U===void 0)&&U.contains(te==null?void 0:te.anchorNode))&&te.collapse(n.current)});let $e=T.useRef("");Qs(n,"beforeinput",U=>{if(n.current)switch(U.preventDefault(),U.inputType){case"deleteContentBackward":case"deleteContentForward":S.isValidPartialNumber(e.text)&&!t.isReadOnly&&E();break;case"insertCompositionText":$e.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:U.data!=null&&le(U.data);break}}),Qs(n,"input",U=>{let{inputType:te,data:xe}=U;switch(te){case"insertCompositionText":n.current&&(n.current.textContent=$e.current),xe!=null&&(A(M,xe)||A(R,xe))&&le(xe);break}}),pn(()=>{let U=n.current;return()=>{document.activeElement===U&&(h.focusPrevious()||h.focusNext())}},[n,h]);let we=_d()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},W=T.useMemo(()=>t.segments.find(U=>U.isEditable),[t.segments]);e!==W&&!t.isInvalid&&(d=void 0);let ie=Hr(),O=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":a.of(e.type),B=lc({"aria-label":`${L}${o?`, ${o}`:""}${l?", ":""}`,"aria-labelledby":l});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let he={caretColor:"transparent"};if(s==="rtl"){he.unicodeBidi="embed";let U=g[e.type];(U==="numeric"||U==="2-digit")&&(he.direction="ltr")}return{segmentProps:Qt(w,B,{id:ie,...we,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:O,suppressContentEditableWarning:O,spellCheck:O?"false":void 0,autoCorrect:O?"off":void 0,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:O?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!O?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:C,onFocus:ae,style:he,onPointerDown(U){U.stopPropagation()},onMouseDown(U){U.stopPropagation()}})}}function GG(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 YG(e){return e&&e.__esModule?e.default:e}function ZG(e,t,n){var r,i,s;let a=fa(YG(Nd),"@react-aria/datepicker"),{isInvalid:o,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Km({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||l}),x=m["aria-labelledby"]||m.id,{locale:w}=Rr(),S=t.formatValue(w,{month:"long"}),E=S?a.format("selectedRangeDescription",{startDate:S.start,endDate:S.end}):"",C=Md(E),A={"aria-label":a.format("startDate"),"aria-labelledby":x},k={"aria-label":a.format("endDate"),"aria-labelledby":x},M=Hr(),R=Hr(),K=D3(t,n),H=[C["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,le=T.useMemo(()=>Vm(n,{accept:B=>B.id!==M}),[n,M]),ae={[lR]:le,[Hf]:"presentation","aria-describedby":H,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},I=Qa(e),$e=T.useRef(!1),{focusWithinProps:we}=wc({...e,isDisabled:t.isOpen,onBlurWithin:B=>{let he=document.getElementById(R);if(!(he!=null&&he.contains(B.relatedTarget))){var U,te;$e.current=!1,(U=e.onBlur)===null||U===void 0||U.call(e,B),(te=e.onFocusChange)===null||te===void 0||te.call(e,!1)}},onFocusWithin:B=>{if(!$e.current){var he,U;$e.current=!0,(he=e.onFocus)===null||he===void 0||he.call(e,B),(U=e.onFocusChange)===null||U===void 0||U.call(e,!0)}}}),W=T.useRef(vu),ie=T.useRef(vu);var O,L;return{groupProps:Qt(I,K,m,C,we,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":H,onKeyDown(B){t.isOpen||e.onKeyDown&&e.onKeyDown(B)},onKeyUp(B){t.isOpen||e.onKeyUp&&e.onKeyUp(B)}}),labelProps:{...h,onClick:()=>{le.focusFirst()}},buttonProps:{...C,id:M,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${M} ${x}`,"aria-describedby":H,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:R,"aria-labelledby":`${M} ${x}`},startFieldProps:{...A,...ae,value:(O=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&O!==void 0?O:null,onChange:B=>t.setDateTime("start",B),autoFocus:e.autoFocus,name:e.startName,[dc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(B){W.current=B,t.updateValidation(Jp(B,ie.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...k,...ae,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:B=>t.setDateTime("end",B),name:e.endName,[dc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(B){ie.current=B,t.updateValidation(Jp(W.current,B))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:g,errorMessageProps:b,calendarProps:{autoFocus:!0,value:!((s=t.dateRange)===null||s===void 0)&&s.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:o,validationErrors:l,validationDetails:d}}function XG(e,t){let{role:n="dialog"}=e,r=uc();r=e["aria-label"]?void 0:r;let i=T.useRef(!1);return T.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){zu(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),zu(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),yG(),{dialogProps:{...Qa(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:r}}}function tc(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function jb(e,t,n,r,i){let s={};for(let o in t)s[o]=Math.floor(t[o]/2),s[o]>0&&t[o]%2===0&&s[o]--;let a=Cu(e,t,n).subtract(s);return cd(e,a,t,n,r,i)}function Cu(e,t,n,r,i){let s=e;return t.years?s=oW(e):t.months?s=Id(e):t.weeks&&(s=sd(e,n)),cd(e,s,t,n,r,i)}function Kb(e,t,n,r,i){let s={...t};s.days?s.days--:s.weeks?s.weeks--:s.months?s.months--:s.years&&s.years--;let a=Cu(e,t,n).subtract(s);return cd(e,a,t,n,r,i)}function cd(e,t,n,r,i,s){if(i&&e.compare(i)>=0){let a=p3(t,Cu(Gr(i),n,r));a&&(t=a)}if(s&&e.compare(s)<=0){let a=h3(t,Kb(Gr(s),n,r));a&&(t=a)}return t}function yo(e,t,n){if(t){let r=p3(e,Gr(t));r&&(e=r)}if(n){let r=h3(e,Gr(n));r&&(e=r)}return e}function fR(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 dR(e){let t=T.useMemo(()=>new Zi(e.locale),[e.locale]),n=T.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:s={months:1},minValue:a,maxValue:o,selectionAlignment:l,isDateUnavailable:d,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=T.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[x,w]=Ai(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),S=T.useMemo(()=>x?On(Gr(x),g):null,[x,g]),E=T.useMemo(()=>x&&"timeZone"in x?x.timeZone:n.timeZone,[x,n.timeZone]),C=T.useMemo(()=>e.focusedValue?yo(On(Gr(e.focusedValue),g),a,o):void 0,[e.focusedValue,g,a,o]),A=T.useMemo(()=>yo(e.defaultFocusedValue?On(Gr(e.defaultFocusedValue),g):S||On(Lm(E),g),a,o),[e.defaultFocusedValue,S,E,g,a,o]),[k,M]=Ai(C,A,e.onFocusChange),[R,K]=T.useState(()=>{switch(l){case"start":return Cu(k,s,r,a,o);case"end":return Kb(k,s,r,a,o);case"center":default:return jb(k,s,r,a,o)}}),[H,le]=T.useState(e.autoFocus||!1),ae=T.useMemo(()=>{let te={...s};return te.days?te.days--:te.days=-1,R.add(te)},[R,s]),[I,$e]=T.useState(g);if(!Im(g,I)){let te=On(k,g);K(jb(te,s,r,a,o)),M(te),$e(g)}tc(k,a,o)?M(yo(k,a,o)):k.compare(R)<0?K(Kb(k,s,r,a,o)):k.compare(ae)>0&&K(Cu(k,s,r,a,o));function we(te){te=yo(te,a,o),M(te)}function W(te){if(!e.isDisabled&&!e.isReadOnly){let xe=te;if(xe===null){w(null);return}if(xe=yo(xe,a,o),xe=fR(xe,R,d),!xe)return;xe=On(xe,(x==null?void 0:x.calendar)||new Yr),x&&"hour"in x?w(x.set(xe)):w(xe)}}let ie=T.useMemo(()=>S?d&&d(S)?!0:tc(S,a,o):!1,[S,d,a,o]),O=e.isInvalid||e.validationState==="invalid"||ie,L=O?"invalid":null,B=T.useMemo(()=>h==="visible"?s:Yv(s),[h,s]);var he,U;return{isDisabled:(he=e.isDisabled)!==null&&he!==void 0?he:!1,isReadOnly:(U=e.isReadOnly)!==null&&U!==void 0?U:!1,value:S,setValue:W,visibleRange:{start:R,end:ae},minValue:a,maxValue:o,focusedDate:k,timeZone:E,validationState:L,isValueInvalid:O,setFocusedDate(te){we(te),le(!0)},focusNextDay(){we(k.add({days:1}))},focusPreviousDay(){we(k.subtract({days:1}))},focusNextRow(){s.days?this.focusNextPage():(s.weeks||s.months||s.years)&&we(k.add({weeks:1}))},focusPreviousRow(){s.days?this.focusPreviousPage():(s.weeks||s.months||s.years)&&we(k.subtract({weeks:1}))},focusNextPage(){let te=R.add(B);M(yo(k.add(B),a,o)),K(Cu(cd(k,te,B,r,a,o),B,r))},focusPreviousPage(){let te=R.subtract(B);M(yo(k.subtract(B),a,o)),K(Cu(cd(k,te,B,r,a,o),B,r))},focusSectionStart(){s.days?we(R):s.weeks?we(sd(k,r)):(s.months||s.years)&&we(Id(k))},focusSectionEnd(){s.days?we(ae):s.weeks?we(cW(k,r)):(s.months||s.years)&&we(Eb(k))},focusNextSection(te){if(!te&&!s.days){we(k.add(Yv(s)));return}s.days?this.focusNextPage():s.weeks?we(k.add({months:1})):(s.months||s.years)&&we(k.add({years:1}))},focusPreviousSection(te){if(!te&&!s.days){we(k.subtract(Yv(s)));return}s.days?this.focusPreviousPage():s.weeks?we(k.subtract({months:1})):(s.months||s.years)&&we(k.subtract({years:1}))},selectFocusedDate(){d&&d(k)||W(k)},selectDate(te){W(te)},isFocused:H,setFocused:le,isInvalid(te){return tc(te,a,o)},isSelected(te){return S!=null&&nr(te,S)&&!this.isCellDisabled(te)&&!this.isCellUnavailable(te)},isCellFocused(te){return H&&k&&nr(te,k)},isCellDisabled(te){return e.isDisabled||te.compare(R)<0||te.compare(ae)>0||this.isInvalid(te)},isCellUnavailable(te){return e.isDateUnavailable?e.isDateUnavailable(te):!1},isPreviousVisibleRangeInvalid(){let te=R.subtract({days:1});return nr(te,R)||this.isInvalid(te)},isNextVisibleRangeInvalid(){let te=ae.add({days:1});return nr(te,ae)||this.isInvalid(te)},getDatesInWeek(te,xe=R){let De=xe.add({weeks:te}),_e=[];De=sd(De,r,m);let Me=d3(De,r,m);for(let Ye=0;Ye<Me;Ye++)_e.push(null);for(;_e.length<7;){_e.push(De);let Ye=De.add({days:1});if(nr(De,Ye))break;De=Ye}for(;_e.length<7;)_e.push(null);return _e}}}function Yv(e){let t={...e};for(let n in e)t[n]=1;return t}function JG(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:s,visibleDuration:a={months:1},minValue:o,maxValue:l,...d}=e,[h,m]=Ai(t,n||null,r),[g,b]=T.useState(null),x="center";if(h&&h.start&&h.end){let B=jb(Gr(h.start),a,s,o,l).add(a).subtract({days:1});h.end.compare(B)>0&&(x="start")}let w=T.useRef(null),[S,E]=T.useState(null),C=T.useMemo(()=>p3(o,S==null?void 0:S.start),[o,S]),A=T.useMemo(()=>h3(l,S==null?void 0:S.end),[l,S]),k=dR({...d,value:h&&h.start,createCalendar:i,locale:s,visibleDuration:a,minValue:C,maxValue:A,selectionAlignment:x}),M=L=>{if(L&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const B=ZE(L,k,-1),he=ZE(L,k,1);w.current={start:B,end:he},E(w.current)}else w.current=null,E(null)},[R,K]=T.useState(k.visibleRange);(!Cb(k.visibleRange.start,R.start)||!Cb(k.visibleRange.end,R.end))&&(M(g),K(k.visibleRange));let H=L=>{L?(b(L),M(L)):(b(null),M(null))},le=g?Zv(g,k.focusedDate):h&&Zv(h.start,h.end),ae=L=>{if(e.isReadOnly)return;const B=yo(L,C,A),he=fR(B,k.visibleRange.start,e.isDateUnavailable);if(he)if(!g)H(he);else{let U=Zv(g,he);U&&m({start:YE(U.start,h==null?void 0:h.start),end:YE(U.end,h==null?void 0:h.end)}),H(null)}},[I,$e]=T.useState(!1),{isDateUnavailable:we}=e,W=T.useMemo(()=>!h||g?!1:we&&(we(h.start)||we(h.end))?!0:tc(h.start,o,l)||tc(h.end,o,l),[we,h,g,o,l]),ie=e.isInvalid||e.validationState==="invalid"||W;return{...k,value:h,setValue:m,anchorDate:g,setAnchorDate:H,highlightedRange:le,validationState:ie?"invalid":null,isValueInvalid:ie,selectFocusedDate(){ae(k.focusedDate)},selectDate:ae,highlightDate(L){g&&k.setFocusedDate(L)},isSelected(L){return!!(le&&L.compare(le.start)>=0&&L.compare(le.end)<=0&&!k.isCellDisabled(L)&&!k.isCellUnavailable(L))},isInvalid(L){var B,he;return k.isInvalid(L)||tc(L,(B=w.current)===null||B===void 0?void 0:B.start,(he=w.current)===null||he===void 0?void 0:he.end)},isDragging:I,setDragging:$e}}function Zv(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Gr(e),end:Gr(t)})}function YE(e,t){return e=On(e,(t==null?void 0:t.calendar)||new Yr),t&&"hour"in t?t.set(e):e}function ZE(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 Ub{*[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=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let o of a.childNodes)n(o)};for(let a of t)n(a);let r=null,i=0;for(let[a,o]of this.keyMap)r?(r.nextKey=a,o.prevKey=r.key):(this.firstKey=a,o.prevKey=void 0),o.type==="item"&&(o.index=i++),r=o,r.nextKey=void 0;var s;this.lastKey=(s=r==null?void 0:r.key)!==null&&s!==void 0?s:null}}class $s extends Set{constructor(t,n,r){super(t),t instanceof $s?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function QG(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function eY(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=e,a=T.useRef(!1),[,o]=T.useState(!1),l=T.useRef(null),d=T.useRef(null),[,h]=T.useState(null),m=T.useMemo(()=>XE(e.selectedKeys),[e.selectedKeys]),g=T.useMemo(()=>XE(e.defaultSelectedKeys,new $s),[e.defaultSelectedKeys]),[b,x]=Ai(m,g,e.onSelectionChange),w=T.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,E]=T.useState(i);i==="replace"&&S==="toggle"&&typeof b=="object"&&b.size===0&&E("replace");let C=T.useRef(i);return T.useEffect(()=>{i!==C.current&&(E(i),C.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:S,setSelectionBehavior:E,get isFocused(){return a.current},setFocused(A){a.current=A,o(A)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(A,k="first"){l.current=A,d.current=k,h(A)},selectedKeys:b,setSelectedKeys(A){(r||!QG(A,b))&&x(A)},disabledKeys:w,disabledBehavior:s}}function XE(e,t){return e?e==="all"?"all":new $s(e):t}class A3{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&&Gv(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&&Gv(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 $s([n],n,n);else{let a=this.state.selectedKeys;var i;let o=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new $s(a,o,n);var s;for(let l of this.getKeyRange(o,(s=a.currentKey)!==null&&s!==void 0?s:n))r.delete(l);for(let l of this.getKeyRange(n,o))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?Gv(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=[],s=t;for(;s!=null;){let a=this.collection.getItem(s);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(s),s===n)return i;s=this.collection.getKeyAfter(s)}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 $s(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 $s([n],n,n):new $s;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new $s;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 a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var s;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((s=(i=RG(zm(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&s!==void 0?s: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 $s)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new A3(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function tY(e){let{filter:t,layoutDelegate:n}=e,r=eY(e),i=T.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=T.useCallback(d=>t?new Ub(t(d)):new Ub(d),[t]),a=T.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=FG(e,s,a),l=T.useMemo(()=>new A3(o,r,{layoutDelegate:n}),[o,r,n]);return nY(o,l),{collection:o,disabledKeys:i,selectionManager:l}}function nY(e,t){const n=T.useRef(null);T.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const h=n.current.getItem(t.focusedKey),m=[...n.current.getKeys()].map(E=>{const C=n.current.getItem(E);return(C==null?void 0:C.type)==="item"?C:null}).filter(E=>E!==null),g=[...e.getKeys()].map(E=>{const C=e.getItem(E);return(C==null?void 0:C.type)==="item"?C:null}).filter(E=>E!==null);var r,i;const b=((r=m==null?void 0:m.length)!==null&&r!==void 0?r:0)-((i=g==null?void 0:g.length)!==null&&i!==void 0?i:0);var s,a,o;let x=Math.min(b>1?Math.max(((s=h==null?void 0:h.index)!==null&&s!==void 0?s:0)-b+1,0):(a=h==null?void 0:h.index)!==null&&a!==void 0?a:0,((o=g==null?void 0:g.length)!==null&&o!==void 0?o:0)-1),w=null,S=!1;for(;x>=0;){if(!t.isDisabled(g[x].key)){w=g[x];break}if(x<g.length-1&&!S)x++;else{S=!0;var l,d;x>((l=h==null?void 0:h.index)!==null&&l!==void 0?l:0)&&(x=(d=h==null?void 0:h.index)!==null&&d!==void 0?d:0),x--}}t.setFocusedKey(w?w.key:null)}n.current=e},[e,t])}function rY(e){var t;let[n,r]=Ai(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=T.useMemo(()=>n!=null?[n]:[],[n]),{collection:s,disabledKeys:a,selectionManager:o}=tY({...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?s.getItem(n):null;return{collection:s,disabledKeys:a,selectionManager:o,selectedKey:n,setSelectedKey:r,selectedItem:l}}function T3(e){let[t,n]=Ai(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=T.useCallback(()=>{n(!0)},[n]),i=T.useCallback(()=>{n(!1)},[n]),s=T.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:s}}function iY(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:s,shouldCloseOnBlur:a=!0}=e,[o,l]=T.useState(!1),[d,h]=T.useState(!1),[m,g]=T.useState(null),b=mt=>{e.onSelectionChange&&e.onSelectionChange(mt),mt===E&&(_e(),te())};var x;let{collection:w,selectionManager:S,selectedKey:E,setSelectedKey:C,selectedItem:A,disabledKeys:k}=rY({...e,onSelectionChange:b,items:(x=e.items)!==null&&x!==void 0?x:e.defaultItems}),M=e.defaultInputValue;if(M==null){var R,K;E==null?M="":M=(K=(R=w.getItem(E))===null||R===void 0?void 0:R.textValue)!==null&&K!==void 0?K:""}let[H,le]=Ai(e.inputValue,M,e.onInputChange),ae=w,I=T.useMemo(()=>e.items!=null||!n?w:sY(w,H,n),[w,H,n,e.items]),[$e,we]=T.useState(I),W=T.useRef("focus"),O=T3({...e,onOpenChange:mt=>{e.onOpenChange&&e.onOpenChange(mt,mt?W.current:void 0),S.setFocused(mt),mt||S.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),L=(mt=null,me)=>{let Se=me==="manual"||me==="focus"&&r==="focus";(i||I.size>0||Se&&ae.size>0||e.items)&&(Se&&!O.isOpen&&e.items===void 0&&l(!0),W.current=me,g(mt),O.open())},B=(mt=null,me)=>{let Se=me==="manual"||me==="focus"&&r==="focus";!(i||I.size>0||Se&&ae.size>0||e.items)&&!O.isOpen||(Se&&!O.isOpen&&e.items===void 0&&l(!0),O.isOpen||(W.current=me),U(mt))},he=T.useCallback(()=>{we(o?ae:I)},[o,ae,I]),U=T.useCallback((mt=null)=>{O.isOpen&&he(),g(mt),O.toggle()},[O,he]),te=T.useCallback(()=>{O.isOpen&&(he(),O.close())},[O,he]),[xe,De]=T.useState(H),_e=()=>{var mt,me;let Se=E!=null&&(me=(mt=w.getItem(E))===null||mt===void 0?void 0:mt.textValue)!==null&&me!==void 0?me:"";De(Se),le(Se)};var Me,Ye;let Ge=T.useRef((Ye=(Me=e.selectedKey)!==null&&Me!==void 0?Me:e.defaultSelectedKey)!==null&&Ye!==void 0?Ye:null);var Ae;let Ke=T.useRef(E!=null&&(Ae=(t=w.getItem(E))===null||t===void 0?void 0:t.textValue)!==null&&Ae!==void 0?Ae:"");T.useEffect(()=>{var mt;d&&(I.size>0||i)&&!O.isOpen&&H!==xe&&r!=="manual"&&L(null,"input"),!o&&!i&&O.isOpen&&I.size===0&&te(),E!=null&&E!==Ge.current&&te(),H!==xe&&(S.setFocusedKey(null),l(!1),H===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&C(null)),E!==Ge.current&&(e.inputValue===void 0||e.selectedKey===void 0)?_e():xe!==H&&De(H);var me;let Se=E!=null&&(me=(mt=w.getItem(E))===null||mt===void 0?void 0:mt.textValue)!==null&&me!==void 0?me:"";!d&&E!=null&&e.inputValue===void 0&&E===Ge.current&&Ke.current!==Se&&(De(Se),le(Se)),Ge.current=E,Ke.current=Se});let We=Vd({...e,value:T.useMemo(()=>({inputValue:H,selectedKey:E}),[H,E])}),Ve=()=>{s&&E==null?Te():tt()},Te=()=>{Ge.current=null,C(null),te()},tt=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var mt,me;(mt=e.onSelectionChange)===null||mt===void 0||mt.call(e,E);var Se;let Le=E!=null&&(Se=(me=w.getItem(E))===null||me===void 0?void 0:me.textValue)!==null&&Se!==void 0?Se:"";De(Le),te()}else _e(),te()};const yt=()=>{if(s){var mt,me;const Se=E!=null&&(me=(mt=w.getItem(E))===null||mt===void 0?void 0:mt.textValue)!==null&&me!==void 0?me:"";H===Se?tt():Te()}else tt()};let Jt=()=>{O.isOpen&&S.focusedKey!=null?E===S.focusedKey?tt():C(S.focusedKey):yt()},xt=T.useRef(H),Mt=mt=>{mt?(xt.current=H,r==="focus"&&!e.isReadOnly&&L(null,"focus")):(a&&yt(),H!==xt.current&&We.commitValidation()),h(mt)},Ti=T.useMemo(()=>O.isOpen?o?ae:I:$e,[O.isOpen,ae,I,o,$e]);return{...We,...O,focusStrategy:m,toggle:B,open:L,close:yt,selectionManager:S,selectedKey:E,setSelectedKey:C,disabledKeys:k,isFocused:d,setFocused:Mt,selectedItem:A,collection:Ti,inputValue:H,setInputValue:le,commit:Jt,revert:Ve}}function sY(e,t,n){return new Ub(hR(e,e,t,n))}function hR(e,t,n,r){let i=[];for(let s of t)if(s.type==="section"&&s.hasChildNodes){let a=hR(e,zm(s,e),n,r);[...a].some(o=>o.type==="item")&&i.push({...s,childNodes:a})}else s.type==="item"&&r(s.textValue,n)?i.push({...s}):s.type!=="item"&&i.push({...s});return i}var pR={};pR={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var mR={};mR={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var gR={};gR={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 vR={};vR={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 yR={};yR={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 bR={};bR={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var $R={};$R={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 xR={};xR={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 wR={};wR={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 CR={};CR={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 ER={};ER={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 SR={};SR={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var DR={};DR={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 AR={};AR={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 TR={};TR={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 PR={};PR={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var _R={};_R={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var MR={};MR={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 FR={};FR={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 RR={};RR={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 kR={};kR={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 OR={};OR={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 IR={};IR={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 LR={};LR={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 BR={};BR={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 VR={};VR={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var NR={};NR={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 jR={};jR={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 KR={};KR={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 UR={};UR={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 zR={};zR={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 qR={};qR={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var WR={};WR={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var HR={};HR={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var GR={};GR={"ar-AE":pR,"bg-BG":mR,"cs-CZ":gR,"da-DK":vR,"de-DE":yR,"el-GR":bR,"en-US":$R,"es-ES":xR,"et-EE":wR,"fi-FI":CR,"fr-FR":ER,"he-IL":SR,"hr-HR":DR,"hu-HU":AR,"it-IT":TR,"ja-JP":PR,"ko-KR":_R,"lt-LT":MR,"lv-LV":FR,"nb-NO":RR,"nl-NL":kR,"pl-PL":OR,"pt-BR":IR,"pt-PT":LR,"ro-RO":BR,"ru-RU":VR,"sk-SK":NR,"sl-SI":jR,"sr-SP":KR,"sv-SE":UR,"tr-TR":zR,"uk-UA":qR,"zh-CN":WR,"zh-TW":HR};function aY(e){return e&&e.__esModule?e.default:e}const YR=new Lo(aY(GR));function ZR(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function em(e,t,n,r,i){let s=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&(r==null?void 0:r(e))||!1,l=s||a||o,d=[];if(l){let h=ZR(),m=Lo.getGlobalDictionaryForPackage("@react-stately/datepicker")||YR,g=new Z5(h,m),b=new Zi(h,qa({},i)),x=b.resolvedOptions().timeZone;a&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate(x))})),s&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate(x))})),o&&d.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:s,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function oY(e,t,n,r,i){var s;let a=em((s=e==null?void 0:e.start)!==null&&s!==void 0?s:null,t,n,r,i);var o;let l=em((o=e==null?void 0:e.end)!==null&&o!==void 0?o:null,t,n,r,i),d=Jp(a,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=Lo.getGlobalDictionaryForPackage("@react-stately/datepicker")||YR;d=Jp(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",ZR())],validationDetails:{...Nm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const uY={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},lY={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function qa(e,t){e={...t.shouldForceLeadingZeros?lY:uY,...e};let r=t.granularity||"minute",i=Object.keys(e);var s;let a=i.indexOf((s=t.maxGranularity)!==null&&s!==void 0?s:"year");a<0&&(a=0);let o=i.indexOf(r);if(o<0&&(o=2),a>o)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(a,o+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&&a===0&&(l.era="short"),l}function Ll(e){return e&&"hour"in e?e:new Ld}function XR(e,t){if(e===null)return null;if(e)return On(e,t)}function Cf(e,t,n,r){if(e)return XR(e,n);let i=On(e_(r??Od()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Gr(i):r?i:As(i)}function P3(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,s]=T.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&s([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function cY(e){let t=T3(e),[n,r]=Ai(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[s,a]=P3(i,e.granularity),o=n!=null?n.toDate(a??"UTC"):null,l=s==="hour"||s==="minute"||s==="second";var d;let h=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[m,g]=T.useState(null),[b,x]=T.useState(null);if(n&&(m=n,"hour"in n&&(b=n)),i&&!(s in i))throw new Error("Invalid granularity "+s+" for value "+i.toString());let w=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",S=T.useMemo(()=>({granularity:s,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[s,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,w]),{minValue:E,maxValue:C,isDateUnavailable:A}=e,k=T.useMemo(()=>em(n,E,C,A,S),[n,E,C,A,S]),M=Vd({...e,value:n,builtinValidation:k}),R=M.displayValidation.isInvalid,K=e.validationState||(R?"invalid":null),H=(I,$e)=>{r("timeZone"in $e?$e.set(Gr(I)):As(I,$e)),g(null),x(null),M.commitValidation()};return{...M,value:n,setValue:r,dateValue:m,timeValue:b,setDateValue:I=>{let $e=typeof h=="function"?h():h;l?b||$e?H(I,b||Ll(e.defaultValue||e.placeholderValue)):g(I):(r(I),M.commitValidation()),$e&&t.setOpen(!1)},setTimeValue:I=>{m&&I?H(m,I):x(I)},granularity:s,hasTime:l,...t,setOpen(I){!I&&!n&&m&&l&&H(m,b||Ll(e.defaultValue||e.placeholderValue)),t.setOpen(I)},validationState:K,isInvalid:R,formatValue(I,$e){if(!o)return"";let we=qa($e,S);return new Zi(I,we).format(o)},getDateFormatter(I,$e){let we={...S,...$e},W=qa({},we);return new Zi(I,W)}}}const fY=new Lo({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 dY(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?fY.getStringForLocale(e,n):"––"}const yp={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},JE={year:5,month:2,day:7,hour:2,minute:15,second:15},JR={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function QR(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:s=!1,isRequired:a=!1,minValue:o,maxValue:l,isDateUnavailable:d}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=P3(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let x=T.useMemo(()=>new Zi(t),[t]),w=T.useMemo(()=>n(x.resolvedOptions().calendar),[n,x]);var S;let[E,C]=Ai(e.value,(S=e.defaultValue)!==null&&S!==void 0?S:null,e.onChange),A=T.useMemo(()=>{var Ae;return(Ae=XR(E,w))!==null&&Ae!==void 0?Ae:null},[E,w]),[k,M]=T.useState(()=>Cf(e.placeholderValue,m,w,g)),R=A||k,K=w.identifier==="gregory"&&R.era==="BC",H=T.useMemo(()=>{var Ae;return{granularity:m,maxGranularity:(Ae=e.maxGranularity)!==null&&Ae!==void 0?Ae:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:K,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,K]),le=T.useMemo(()=>qa({},H),[H]),ae=T.useMemo(()=>new Zi(t,le),[t,le]),I=T.useMemo(()=>ae.resolvedOptions(),[ae]),$e=T.useMemo(()=>ae.formatToParts(new Date).filter(Ae=>yp[Ae.type]).reduce((Ae,Ke)=>(Ae[JR[Ke.type]||Ke.type]=!0,Ae),{}),[ae]),[we,W]=T.useState(()=>e.value||e.defaultValue?{...$e}:{}),ie=T.useRef(null),O=T.useRef(w);T.useEffect(()=>{Im(w,O.current)||(O.current=w,M(Ae=>Object.keys(we).length>0?On(Ae,w):Cf(e.placeholderValue,m,w,g)))},[w,m,we,g,e.placeholderValue]),E&&Object.keys(we).length<Object.keys($e).length&&(we={...$e},W(we)),E==null&&Object.keys(we).length===Object.keys($e).length&&(we={},W(we),M(Cf(e.placeholderValue,m,w,g)));let L=A&&Object.keys(we).length>=Object.keys($e).length?A:k,B=Ae=>{if(e.isDisabled||e.isReadOnly)return;let Ke=Object.keys(we),We=Object.keys($e);Ae==null?(C(null),M(Cf(e.placeholderValue,m,w,g)),W({})):Ke.length>=We.length||Ke.length===We.length-1&&$e.dayPeriod&&!we.dayPeriod&&ie.current!=="dayPeriod"?(Ae=On(Ae,(h==null?void 0:h.calendar)||new Yr),C(Ae)):M(Ae),ie.current=null},he=T.useMemo(()=>L.toDate(b),[L,b]),U=T.useMemo(()=>hY(he,we,ae,I,L,w,t,m),[he,we,ae,I,L,w,t,m]);$e.era&&we.year&&!we.era?(we.era=!0,W({...we})):!$e.era&&we.era&&(delete we.era,W({...we}));let te=Ae=>{we[Ae]=!0,Ae==="year"&&$e.era&&(we.era=!0),W({...we})},xe=(Ae,Ke)=>{if(we[Ae])B(pY(L,Ae,Ke,I));else{te(Ae);let We=Object.keys(we),Ve=Object.keys($e);(We.length>=Ve.length||We.length===Ve.length-1&&$e.dayPeriod&&!we.dayPeriod)&&B(L)}},De=T.useMemo(()=>em(E,o,l,d,H),[E,o,l,d,H]),_e=Vd({...e,value:E,builtinValidation:De}),Me=_e.displayValidation.isInvalid,Ye=e.validationState||(Me?"invalid":null);var Ge;return{..._e,value:A,dateValue:he,calendar:w,setValue:B,segments:U,dateFormatter:ae,validationState:Ye,isInvalid:Me,granularity:m,maxGranularity:(Ge=e.maxGranularity)!==null&&Ge!==void 0?Ge:"year",isDisabled:i,isReadOnly:s,isRequired:a,increment(Ae){xe(Ae,1)},decrement(Ae){xe(Ae,-1)},incrementPage(Ae){xe(Ae,JE[Ae]||1)},decrementPage(Ae){xe(Ae,-(JE[Ae]||1))},setSegment(Ae,Ke){te(Ae),B(mY(L,Ae,Ke,I))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let Ae=Object.keys(we),Ke=Object.keys($e);Ae.length===Ke.length-1&&$e.dayPeriod&&!we.dayPeriod&&(we={...$e},W(we),B(L.copy()))},clearSegment(Ae){delete we[Ae],ie.current=Ae,W({...we});let Ke=Cf(e.placeholderValue,m,w,g),We=L;if(Ae==="dayPeriod"&&"hour"in L&&"hour"in Ke){let Ve=L.hour>=12,Te=Ke.hour>=12;Ve&&!Te?We=L.set({hour:L.hour-12}):!Ve&&Te&&(We=L.set({hour:L.hour+12}))}else Ae==="hour"&&"hour"in L&&L.hour>=12&&we.dayPeriod?We=L.set({hour:Ke.hour+12}):Ae in L&&(We=L.set({[Ae]:Ke[Ae]}));C(null),B(We)},formatValue(Ae){if(!A)return"";let Ke=qa(Ae,H);return new Zi(t,Ke).format(he)},getDateFormatter(Ae,Ke){let We={...H,...Ke},Ve=qa({},We);return new Zi(Ae,Ve)}}}function hY(e,t,n,r,i,s,a,o){let l=["hour","minute","second"],d=n.formatToParts(e),h=[];for(let m of d){let g=JR[m.type]||m.type,b=yp[g];g==="era"&&s.getEras().length===1&&(b=!1);let x=yp[g]&&!t[g],w=yp[g]?dY(g,m.value,a):null,S={type:g,text:x?w:m.value,...Hh(i,g,r),isPlaceholder:x,placeholder:w,isEditable:b};g==="hour"?(h.push({type:"literal",text:"⁦",...Hh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(S),g===o&&h.push({type:"literal",text:"⁩",...Hh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(g)&&g===o?(h.push(S),h.push({type:"literal",text:"⁩",...Hh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(S)}return h}function Hh(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:uW(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:lW(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 pY(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,s=i>=12;return e.set({hour:s?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 mY(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,s=i>=12;return n>=12===s?e:e.set({hour:s?i-12:i+12})}case"hour":if(r.hour12){let s=e.hour>=12;!s&&n===12&&(n=0),s&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function gY(e){var t,n;let r=T3(e),[i,s]=Ai(e.value,e.defaultValue||null,e.onChange),[a,o]=T.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},o(a));let l=i||a,d=O=>{o(O||{start:null,end:null}),fu(O)?s(O):s(null)},h=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[m,g]=P3(h,e.granularity),b=m==="hour"||m==="minute"||m==="second";var x;let w=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[S,E]=T.useState(null),[C,A]=T.useState(null);l&&fu(l)&&(S=l,"hour"in l.start&&(C=l));let k=(O,L)=>{d({start:"timeZone"in L.start?L.start.set(Gr(O.start)):As(O.start,L.start),end:"timeZone"in L.end?L.end.set(Gr(O.end)):As(O.end,L.end)}),E(null),A(null),we.commitValidation()},M=O=>{let L=typeof w=="function"?w():w;b?fu(O)&&(L||C!=null&&C.start&&(C!=null&&C.end))?k(O,{start:(C==null?void 0:C.start)||Ll(e.placeholderValue),end:(C==null?void 0:C.end)||Ll(e.placeholderValue)}):E(O):fu(O)?(d(O),we.commitValidation()):E(O),L&&r.setOpen(!1)},R=O=>{fu(S)&&fu(O)?k(S,O):A(O)},K=(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",H=T.useMemo(()=>({granularity:m,timeZone:g,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:K}),[m,e.hourCycle,e.shouldForceLeadingZeros,g,e.hideTimeZone,K]),{minValue:le,maxValue:ae,isDateUnavailable:I}=e,$e=T.useMemo(()=>oY(l,le,ae,I,H),[l,le,ae,I,H]),we=Vd({...e,value:i,name:T.useMemo(()=>[e.startName,e.endName].filter(O=>O!=null),[e.startName,e.endName]),builtinValidation:$e}),W=we.displayValidation.isInvalid,ie=e.validationState||(W?"invalid":null);return{...we,value:l,setValue:d,dateRange:S,timeRange:C,granularity:m,hasTime:b,setDate(O,L){var B,he;M(O==="start"?{start:L,end:(B=S==null?void 0:S.end)!==null&&B!==void 0?B:null}:{start:(he=S==null?void 0:S.start)!==null&&he!==void 0?he:null,end:L})},setTime(O,L){var B,he;R(O==="start"?{start:L,end:(B=C==null?void 0:C.end)!==null&&B!==void 0?B:null}:{start:(he=C==null?void 0:C.start)!==null&&he!==void 0?he:null,end:L})},setDateTime(O,L){var B,he;d(O==="start"?{start:L,end:(B=l==null?void 0:l.end)!==null&&B!==void 0?B:null}:{start:(he=l==null?void 0:l.start)!==null&&he!==void 0?he:null,end:L})},setDateRange:M,setTimeRange:R,...r,setOpen(O){!O&&!(l!=null&&l.start&&(l!=null&&l.end))&&fu(S)&&b&&k(S,{start:(C==null?void 0:C.start)||Ll(e.placeholderValue),end:(C==null?void 0:C.end)||Ll(e.placeholderValue)}),r.setOpen(O)},validationState:ie,isInvalid:W,formatValue(O,L){if(!l||!l.start||!l.end)return null;let B="timeZone"in l.start?l.start.timeZone:void 0,he=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),U="timeZone"in l.end?l.end.timeZone:void 0,te=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),xe=qa(L,{granularity:he,timeZone:B,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"}),De=l.start.toDate(B||"UTC"),_e=l.end.toDate(U||"UTC"),Me=new Zi(O,xe),Ye;if(B===U&&he===te&&l.start.compare(l.end)!==0){try{let Ge=Me.formatRangeToParts(De,_e),Ae=-1;for(let Ve=0;Ve<Ge.length;Ve++){let Te=Ge[Ve];if(Te.source==="shared"&&Te.type==="literal")Ae=Ve;else if(Te.source==="endRange")break}let Ke="",We="";for(let Ve=0;Ve<Ge.length;Ve++)Ve<Ae?Ke+=Ge[Ve].value:Ve>Ae&&(We+=Ge[Ve].value);return{start:Ke,end:We}}catch{}Ye=Me}else{let Ge=qa(L,{granularity:te,timeZone:U,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ye=new Zi(O,Ge)}return{start:Me.format(De),end:Ye.format(_e)}},getDateFormatter(O,L){let B={...H,...L},he=qa({},B);return new Zi(O,he)}}}function fu(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function vY(e){let{placeholderValue:t=new Ld,minValue:n,maxValue:r,granularity:i,validate:s}=e;var a;let[o,l]=Ai(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),d=o||t,h=d&&"day"in d?d:void 0,m=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,g=T.useMemo(()=>{let A=d&&"timeZone"in d?d.timeZone:void 0;return(A||m)&&t?o_(Ef(t),A||m):Ef(t)},[t,d,m]),b=T.useMemo(()=>Ef(n,h),[n,h]),x=T.useMemo(()=>Ef(r,h),[r,h]),w=T.useMemo(()=>o&&"day"in o?uE(o):o,[o]),S=T.useMemo(()=>o==null?null:Ef(o),[o]);return{...QR({...e,value:S,defaultValue:void 0,minValue:b,maxValue:x,onChange:A=>{l(h||m?A:A&&uE(A))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Yr,validate:T.useCallback(()=>s==null?void 0:s(o),[s,o])}),timeValue:w}}function Ef(e,t=Lm(Od())){return e?"day"in e?e:As(t,e):null}var Xv,QE;function yY(){if(QE)return Xv;QE=1;function e(){this.__data__=[],this.size=0}return Xv=e,Xv}var Jv,eS;function _3(){if(eS)return Jv;eS=1;function e(t,n){return t===n||t!==t&&n!==n}return Jv=e,Jv}var Qv,tS;function qm(){if(tS)return Qv;tS=1;var e=_3();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Qv=t,Qv}var ey,nS;function bY(){if(nS)return ey;nS=1;var e=qm(),t=Array.prototype,n=t.splice;function r(i){var s=this.__data__,a=e(s,i);if(a<0)return!1;var o=s.length-1;return a==o?s.pop():n.call(s,a,1),--this.size,!0}return ey=r,ey}var ty,rS;function $Y(){if(rS)return ty;rS=1;var e=qm();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return ty=t,ty}var ny,iS;function xY(){if(iS)return ny;iS=1;var e=qm();function t(n){return e(this.__data__,n)>-1}return ny=t,ny}var ry,sS;function wY(){if(sS)return ry;sS=1;var e=qm();function t(n,r){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return ry=t,ry}var iy,aS;function Wm(){if(aS)return iy;aS=1;var e=yY(),t=bY(),n=$Y(),r=xY(),i=wY();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var d=a[o];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,iy=s,iy}var sy,oS;function CY(){if(oS)return sy;oS=1;var e=Wm();function t(){this.__data__=new e,this.size=0}return sy=t,sy}var ay,uS;function EY(){if(uS)return ay;uS=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ay=e,ay}var oy,lS;function SY(){if(lS)return oy;lS=1;function e(t){return this.__data__.get(t)}return oy=e,oy}var uy,cS;function DY(){if(cS)return uy;cS=1;function e(t){return this.__data__.has(t)}return uy=e,uy}var ly,fS;function ek(){if(fS)return ly;fS=1;var e=typeof Yi=="object"&&Yi&&Yi.Object===Object&&Yi;return ly=e,ly}var cy,dS;function to(){if(dS)return cy;dS=1;var e=ek(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return cy=n,cy}var fy,hS;function Hm(){if(hS)return fy;hS=1;var e=to(),t=e.Symbol;return fy=t,fy}var dy,pS;function AY(){if(pS)return dy;pS=1;var e=Hm(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function s(a){var o=n.call(a,i),l=a[i];try{a[i]=void 0;var d=!0}catch{}var h=r.call(a);return d&&(o?a[i]=l:delete a[i]),h}return dy=s,dy}var hy,mS;function TY(){if(mS)return hy;mS=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return hy=n,hy}var py,gS;function Cc(){if(gS)return py;gS=1;var e=Hm(),t=AY(),n=TY(),r="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function a(o){return o==null?o===void 0?i:r:s&&s in Object(o)?t(o):n(o)}return py=a,py}var my,vS;function Ec(){if(vS)return my;vS=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return my=e,my}var gy,yS;function M3(){if(yS)return gy;yS=1;var e=Cc(),t=Ec(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function a(o){if(!t(o))return!1;var l=e(o);return l==r||l==i||l==n||l==s}return gy=a,gy}var vy,bS;function PY(){if(bS)return vy;bS=1;var e=to(),t=e["__core-js_shared__"];return vy=t,vy}var yy,$S;function _Y(){if($S)return yy;$S=1;var e=PY(),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 yy=n,yy}var by,xS;function tk(){if(xS)return by;xS=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 by=n,by}var $y,wS;function MY(){if(wS)return $y;wS=1;var e=M3(),t=_Y(),n=Ec(),r=tk(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,l=a.toString,d=o.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:s;return b.test(r(g))}return $y=m,$y}var xy,CS;function FY(){if(CS)return xy;CS=1;function e(t,n){return t==null?void 0:t[n]}return xy=e,xy}var wy,ES;function Sc(){if(ES)return wy;ES=1;var e=MY(),t=FY();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return wy=n,wy}var Cy,SS;function F3(){if(SS)return Cy;SS=1;var e=Sc(),t=to(),n=e(t,"Map");return Cy=n,Cy}var Ey,DS;function Gm(){if(DS)return Ey;DS=1;var e=Sc(),t=e(Object,"create");return Ey=t,Ey}var Sy,AS;function RY(){if(AS)return Sy;AS=1;var e=Gm();function t(){this.__data__=e?e(null):{},this.size=0}return Sy=t,Sy}var Dy,TS;function kY(){if(TS)return Dy;TS=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Dy=e,Dy}var Ay,PS;function OY(){if(PS)return Ay;PS=1;var e=Gm(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var a=this.__data__;if(e){var o=a[s];return o===t?void 0:o}return r.call(a,s)?a[s]:void 0}return Ay=i,Ay}var Ty,_S;function IY(){if(_S)return Ty;_S=1;var e=Gm(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return Ty=r,Ty}var Py,MS;function LY(){if(MS)return Py;MS=1;var e=Gm(),t="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&i===void 0?t:i,this}return Py=n,Py}var _y,FS;function BY(){if(FS)return _y;FS=1;var e=RY(),t=kY(),n=OY(),r=IY(),i=LY();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var d=a[o];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,_y=s,_y}var My,RS;function VY(){if(RS)return My;RS=1;var e=BY(),t=Wm(),n=F3();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return My=r,My}var Fy,kS;function NY(){if(kS)return Fy;kS=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Fy=e,Fy}var Ry,OS;function Ym(){if(OS)return Ry;OS=1;var e=NY();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Ry=t,Ry}var ky,IS;function jY(){if(IS)return ky;IS=1;var e=Ym();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return ky=t,ky}var Oy,LS;function KY(){if(LS)return Oy;LS=1;var e=Ym();function t(n){return e(this,n).get(n)}return Oy=t,Oy}var Iy,BS;function UY(){if(BS)return Iy;BS=1;var e=Ym();function t(n){return e(this,n).has(n)}return Iy=t,Iy}var Ly,VS;function zY(){if(VS)return Ly;VS=1;var e=Ym();function t(n,r){var i=e(this,n),s=i.size;return i.set(n,r),this.size+=i.size==s?0:1,this}return Ly=t,Ly}var By,NS;function R3(){if(NS)return By;NS=1;var e=VY(),t=jY(),n=KY(),r=UY(),i=zY();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var d=a[o];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,By=s,By}var Vy,jS;function qY(){if(jS)return Vy;jS=1;var e=Wm(),t=F3(),n=R3(),r=200;function i(s,a){var o=this.__data__;if(o instanceof e){var l=o.__data__;if(!t||l.length<r-1)return l.push([s,a]),this.size=++o.size,this;o=this.__data__=new n(l)}return o.set(s,a),this.size=o.size,this}return Vy=i,Vy}var Ny,KS;function nk(){if(KS)return Ny;KS=1;var e=Wm(),t=CY(),n=EY(),r=SY(),i=DY(),s=qY();function a(o){var l=this.__data__=new e(o);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,Ny=a,Ny}var jy,US;function WY(){if(US)return jy;US=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return jy=t,jy}var Ky,zS;function HY(){if(zS)return Ky;zS=1;function e(t){return this.__data__.has(t)}return Ky=e,Ky}var Uy,qS;function GY(){if(qS)return Uy;qS=1;var e=R3(),t=WY(),n=HY();function r(i){var s=-1,a=i==null?0:i.length;for(this.__data__=new e;++s<a;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Uy=r,Uy}var zy,WS;function rk(){if(WS)return zy;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 zy=e,zy}var qy,HS;function YY(){if(HS)return qy;HS=1;function e(t,n){return t.has(n)}return qy=e,qy}var Wy,GS;function ik(){if(GS)return Wy;GS=1;var e=GY(),t=rk(),n=YY(),r=1,i=2;function s(a,o,l,d,h,m){var g=l&r,b=a.length,x=o.length;if(b!=x&&!(g&&x>b))return!1;var w=m.get(a),S=m.get(o);if(w&&S)return w==o&&S==a;var E=-1,C=!0,A=l&i?new e:void 0;for(m.set(a,o),m.set(o,a);++E<b;){var k=a[E],M=o[E];if(d)var R=g?d(M,k,E,o,a,m):d(k,M,E,a,o,m);if(R!==void 0){if(R)continue;C=!1;break}if(A){if(!t(o,function(K,H){if(!n(A,H)&&(k===K||h(k,K,l,d,m)))return A.push(H)})){C=!1;break}}else if(!(k===M||h(k,M,l,d,m))){C=!1;break}}return m.delete(a),m.delete(o),C}return Wy=s,Wy}var Hy,YS;function ZY(){if(YS)return Hy;YS=1;var e=to(),t=e.Uint8Array;return Hy=t,Hy}var Gy,ZS;function XY(){if(ZS)return Gy;ZS=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return Gy=e,Gy}var Yy,XS;function JY(){if(XS)return Yy;XS=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Yy=e,Yy}var Zy,JS;function QY(){if(JS)return Zy;JS=1;var e=Hm(),t=ZY(),n=_3(),r=ik(),i=XY(),s=JY(),a=1,o=2,l="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",x="[object Set]",w="[object String]",S="[object Symbol]",E="[object ArrayBuffer]",C="[object DataView]",A=e?e.prototype:void 0,k=A?A.valueOf:void 0;function M(R,K,H,le,ae,I,$e){switch(H){case C:if(R.byteLength!=K.byteLength||R.byteOffset!=K.byteOffset)return!1;R=R.buffer,K=K.buffer;case E:return!(R.byteLength!=K.byteLength||!I(new t(R),new t(K)));case l:case d:case g:return n(+R,+K);case h:return R.name==K.name&&R.message==K.message;case b:case w:return R==K+"";case m:var we=i;case x:var W=le&a;if(we||(we=s),R.size!=K.size&&!W)return!1;var ie=$e.get(R);if(ie)return ie==K;le|=o,$e.set(R,K);var O=r(we(R),we(K),le,ae,I,$e);return $e.delete(R),O;case S:if(k)return k.call(R)==k.call(K)}return!1}return Zy=M,Zy}var Xy,QS;function eZ(){if(QS)return Xy;QS=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return Xy=e,Xy}var Jy,eD;function da(){if(eD)return Jy;eD=1;var e=Array.isArray;return Jy=e,Jy}var Qy,tD;function tZ(){if(tD)return Qy;tD=1;var e=eZ(),t=da();function n(r,i,s){var a=i(r);return t(r)?a:e(a,s(r))}return Qy=n,Qy}var e0,nD;function nZ(){if(nD)return e0;nD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,a=[];++r<i;){var o=t[r];n(o,r,t)&&(a[s++]=o)}return a}return e0=e,e0}var t0,rD;function rZ(){if(rD)return t0;rD=1;function e(){return[]}return t0=e,t0}var n0,iD;function iZ(){if(iD)return n0;iD=1;var e=nZ(),t=rZ(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(o){return r.call(a,o)}))}:t;return n0=s,n0}var r0,sD;function sZ(){if(sD)return r0;sD=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return r0=e,r0}var i0,aD;function Dc(){if(aD)return i0;aD=1;function e(t){return t!=null&&typeof t=="object"}return i0=e,i0}var s0,oD;function aZ(){if(oD)return s0;oD=1;var e=Cc(),t=Dc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return s0=r,s0}var a0,uD;function sk(){if(uD)return a0;uD=1;var e=aZ(),t=Dc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(a){return t(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return a0=s,a0}var Vf={exports:{}},o0,lD;function oZ(){if(lD)return o0;lD=1;function e(){return!1}return o0=e,o0}Vf.exports;var cD;function k3(){return cD||(cD=1,function(e,t){var n=to(),r=oZ(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===i,o=a?n.Buffer:void 0,l=o?o.isBuffer:void 0,d=l||r;e.exports=d}(Vf,Vf.exports)),Vf.exports}var u0,fD;function O3(){if(fD)return u0;fD=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var s=typeof r;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return u0=n,u0}var l0,dD;function I3(){if(dD)return l0;dD=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return l0=t,l0}var c0,hD;function uZ(){if(hD)return c0;hD=1;var e=Cc(),t=I3(),n=Dc(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",a="[object Date]",o="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",x="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",C="[object Float32Array]",A="[object Float64Array]",k="[object Int8Array]",M="[object Int16Array]",R="[object Int32Array]",K="[object Uint8Array]",H="[object Uint8ClampedArray]",le="[object Uint16Array]",ae="[object Uint32Array]",I={};I[C]=I[A]=I[k]=I[M]=I[R]=I[K]=I[H]=I[le]=I[ae]=!0,I[r]=I[i]=I[S]=I[s]=I[E]=I[a]=I[o]=I[l]=I[d]=I[h]=I[m]=I[g]=I[b]=I[x]=I[w]=!1;function $e(we){return n(we)&&t(we.length)&&!!I[e(we)]}return c0=$e,c0}var f0,pD;function lZ(){if(pD)return f0;pD=1;function e(t){return function(n){return t(n)}}return f0=e,f0}var Nf={exports:{}};Nf.exports;var mD;function cZ(){return mD||(mD=1,function(e,t){var n=ek(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,a=s&&n.process,o=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=o}(Nf,Nf.exports)),Nf.exports}var d0,gD;function L3(){if(gD)return d0;gD=1;var e=uZ(),t=lZ(),n=cZ(),r=n&&n.isTypedArray,i=r?t(r):e;return d0=i,d0}var h0,vD;function fZ(){if(vD)return h0;vD=1;var e=sZ(),t=sk(),n=da(),r=k3(),i=O3(),s=L3(),a=Object.prototype,o=a.hasOwnProperty;function l(d,h){var m=n(d),g=!m&&t(d),b=!m&&!g&&r(d),x=!m&&!g&&!b&&s(d),w=m||g||b||x,S=w?e(d.length,String):[],E=S.length;for(var C in d)(h||o.call(d,C))&&!(w&&(C=="length"||b&&(C=="offset"||C=="parent")||x&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,E)))&&S.push(C);return S}return h0=l,h0}var p0,yD;function dZ(){if(yD)return p0;yD=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return p0=t,p0}var m0,bD;function ak(){if(bD)return m0;bD=1;function e(t,n){return function(r){return t(n(r))}}return m0=e,m0}var g0,$D;function hZ(){if($D)return g0;$D=1;var e=ak(),t=e(Object.keys,Object);return g0=t,g0}var v0,xD;function pZ(){if(xD)return v0;xD=1;var e=dZ(),t=hZ(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var a=[];for(var o in Object(s))r.call(s,o)&&o!="constructor"&&a.push(o);return a}return v0=i,v0}var y0,wD;function B3(){if(wD)return y0;wD=1;var e=M3(),t=I3();function n(r){return r!=null&&t(r.length)&&!e(r)}return y0=n,y0}var b0,CD;function V3(){if(CD)return b0;CD=1;var e=fZ(),t=pZ(),n=B3();function r(i){return n(i)?e(i):t(i)}return b0=r,b0}var $0,ED;function mZ(){if(ED)return $0;ED=1;var e=tZ(),t=iZ(),n=V3();function r(i){return e(i,n,t)}return $0=r,$0}var x0,SD;function gZ(){if(SD)return x0;SD=1;var e=mZ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,a,o,l,d,h){var m=o&t,g=e(s),b=g.length,x=e(a),w=x.length;if(b!=w&&!m)return!1;for(var S=b;S--;){var E=g[S];if(!(m?E in a:r.call(a,E)))return!1}var C=h.get(s),A=h.get(a);if(C&&A)return C==a&&A==s;var k=!0;h.set(s,a),h.set(a,s);for(var M=m;++S<b;){E=g[S];var R=s[E],K=a[E];if(l)var H=m?l(K,R,E,a,s,h):l(R,K,E,s,a,h);if(!(H===void 0?R===K||d(R,K,o,l,h):H)){k=!1;break}M||(M=E=="constructor")}if(k&&!M){var le=s.constructor,ae=a.constructor;le!=ae&&"constructor"in s&&"constructor"in a&&!(typeof le=="function"&&le instanceof le&&typeof ae=="function"&&ae instanceof ae)&&(k=!1)}return h.delete(s),h.delete(a),k}return x0=i,x0}var w0,DD;function vZ(){if(DD)return w0;DD=1;var e=Sc(),t=to(),n=e(t,"DataView");return w0=n,w0}var C0,AD;function yZ(){if(AD)return C0;AD=1;var e=Sc(),t=to(),n=e(t,"Promise");return C0=n,C0}var E0,TD;function bZ(){if(TD)return E0;TD=1;var e=Sc(),t=to(),n=e(t,"Set");return E0=n,E0}var S0,PD;function $Z(){if(PD)return S0;PD=1;var e=Sc(),t=to(),n=e(t,"WeakMap");return S0=n,S0}var D0,_D;function xZ(){if(_D)return D0;_D=1;var e=vZ(),t=F3(),n=yZ(),r=bZ(),i=$Z(),s=Cc(),a=tk(),o="[object Map]",l="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=a(e),x=a(t),w=a(n),S=a(r),E=a(i),C=s;return(e&&C(new e(new ArrayBuffer(1)))!=g||t&&C(new t)!=o||n&&C(n.resolve())!=d||r&&C(new r)!=h||i&&C(new i)!=m)&&(C=function(A){var k=s(A),M=k==l?A.constructor:void 0,R=M?a(M):"";if(R)switch(R){case b:return g;case x:return o;case w:return d;case S:return h;case E:return m}return k}),D0=C,D0}var A0,MD;function wZ(){if(MD)return A0;MD=1;var e=nk(),t=ik(),n=QY(),r=gZ(),i=xZ(),s=da(),a=k3(),o=L3(),l=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function x(w,S,E,C,A,k){var M=s(w),R=s(S),K=M?h:i(w),H=R?h:i(S);K=K==d?m:K,H=H==d?m:H;var le=K==m,ae=H==m,I=K==H;if(I&&a(w)){if(!a(S))return!1;M=!0,le=!1}if(I&&!le)return k||(k=new e),M||o(w)?t(w,S,E,C,A,k):n(w,S,K,E,C,A,k);if(!(E&l)){var $e=le&&b.call(w,"__wrapped__"),we=ae&&b.call(S,"__wrapped__");if($e||we){var W=$e?w.value():w,ie=we?S.value():S;return k||(k=new e),A(W,ie,E,C,k)}}return I?(k||(k=new e),r(w,S,E,C,A,k)):!1}return A0=x,A0}var T0,FD;function N3(){if(FD)return T0;FD=1;var e=wZ(),t=Dc();function n(r,i,s,a,o){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,a,n,o)}return T0=n,T0}var P0,RD;function CZ(){if(RD)return P0;RD=1;var e=N3();function t(n,r){return e(n,r)}return P0=t,P0}var EZ=CZ();const SZ=ci(EZ);var bp={exports:{}},DZ=bp.exports,kD;function AZ(){return kD||(kD=1,function(e,t){(function(n,r){e.exports=r()})(DZ,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",l="hour",d="day",h="week",m="month",g="quarter",b="year",x="date",w="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|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,C={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(W){var ie=["th","st","nd","rd"],O=W%100;return"["+W+(ie[(O-20)%10]||ie[O]||ie[0])+"]"}},A=function(W,ie,O){var L=String(W);return!L||L.length>=ie?W:""+Array(ie+1-L.length).join(O)+W},k={s:A,z:function(W){var ie=-W.utcOffset(),O=Math.abs(ie),L=Math.floor(O/60),B=O%60;return(ie<=0?"+":"-")+A(L,2,"0")+":"+A(B,2,"0")},m:function W(ie,O){if(ie.date()<O.date())return-W(O,ie);var L=12*(O.year()-ie.year())+(O.month()-ie.month()),B=ie.clone().add(L,m),he=O-B<0,U=ie.clone().add(L+(he?-1:1),m);return+(-(L+(O-B)/(he?B-U:U-B))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:m,y:b,w:h,d,D:x,h:l,m:o,s:a,ms:s,Q:g}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},M="en",R={};R[M]=C;var K="$isDayjsObject",H=function(W){return W instanceof $e||!(!W||!W[K])},le=function W(ie,O,L){var B;if(!ie)return M;if(typeof ie=="string"){var he=ie.toLowerCase();R[he]&&(B=he),O&&(R[he]=O,B=he);var U=ie.split("-");if(!B&&U.length>1)return W(U[0])}else{var te=ie.name;R[te]=ie,B=te}return!L&&B&&(M=B),B||!L&&M},ae=function(W,ie){if(H(W))return W.clone();var O=typeof ie=="object"?ie:{};return O.date=W,O.args=arguments,new $e(O)},I=k;I.l=le,I.i=H,I.w=function(W,ie){return ae(W,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var $e=function(){function W(O){this.$L=le(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[K]=!0}var ie=W.prototype;return ie.parse=function(O){this.$d=function(L){var B=L.date,he=L.utc;if(B===null)return new Date(NaN);if(I.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var U=B.match(S);if(U){var te=U[2]-1||0,xe=(U[7]||"0").substring(0,3);return he?new Date(Date.UTC(U[1],te,U[3]||1,U[4]||0,U[5]||0,U[6]||0,xe)):new Date(U[1],te,U[3]||1,U[4]||0,U[5]||0,U[6]||0,xe)}}return new Date(B)}(O),this.init()},ie.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},ie.$utils=function(){return I},ie.isValid=function(){return this.$d.toString()!==w},ie.isSame=function(O,L){var B=ae(O);return this.startOf(L)<=B&&B<=this.endOf(L)},ie.isAfter=function(O,L){return ae(O)<this.startOf(L)},ie.isBefore=function(O,L){return this.endOf(L)<ae(O)},ie.$g=function(O,L,B){return I.u(O)?this[L]:this.set(B,O)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(O,L){var B=this,he=!!I.u(L)||L,U=I.p(O),te=function(Ke,We){var Ve=I.w(B.$u?Date.UTC(B.$y,We,Ke):new Date(B.$y,We,Ke),B);return he?Ve:Ve.endOf(d)},xe=function(Ke,We){return I.w(B.toDate()[Ke].apply(B.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(We)),B)},De=this.$W,_e=this.$M,Me=this.$D,Ye="set"+(this.$u?"UTC":"");switch(U){case b:return he?te(1,0):te(31,11);case m:return he?te(1,_e):te(0,_e+1);case h:var Ge=this.$locale().weekStart||0,Ae=(De<Ge?De+7:De)-Ge;return te(he?Me-Ae:Me+(6-Ae),_e);case d:case x:return xe(Ye+"Hours",0);case l:return xe(Ye+"Minutes",1);case o:return xe(Ye+"Seconds",2);case a:return xe(Ye+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(O){return this.startOf(O,!1)},ie.$set=function(O,L){var B,he=I.p(O),U="set"+(this.$u?"UTC":""),te=(B={},B[d]=U+"Date",B[x]=U+"Date",B[m]=U+"Month",B[b]=U+"FullYear",B[l]=U+"Hours",B[o]=U+"Minutes",B[a]=U+"Seconds",B[s]=U+"Milliseconds",B)[he],xe=he===d?this.$D+(L-this.$W):L;if(he===m||he===b){var De=this.clone().set(x,1);De.$d[te](xe),De.init(),this.$d=De.set(x,Math.min(this.$D,De.daysInMonth())).$d}else te&&this.$d[te](xe);return this.init(),this},ie.set=function(O,L){return this.clone().$set(O,L)},ie.get=function(O){return this[I.p(O)]()},ie.add=function(O,L){var B,he=this;O=Number(O);var U=I.p(L),te=function(_e){var Me=ae(he);return I.w(Me.date(Me.date()+Math.round(_e*O)),he)};if(U===m)return this.set(m,this.$M+O);if(U===b)return this.set(b,this.$y+O);if(U===d)return te(1);if(U===h)return te(7);var xe=(B={},B[o]=r,B[l]=i,B[a]=n,B)[U]||1,De=this.$d.getTime()+O*xe;return I.w(De,this)},ie.subtract=function(O,L){return this.add(-1*O,L)},ie.format=function(O){var L=this,B=this.$locale();if(!this.isValid())return B.invalidDate||w;var he=O||"YYYY-MM-DDTHH:mm:ssZ",U=I.z(this),te=this.$H,xe=this.$m,De=this.$M,_e=B.weekdays,Me=B.months,Ye=B.meridiem,Ge=function(We,Ve,Te,tt){return We&&(We[Ve]||We(L,he))||Te[Ve].slice(0,tt)},Ae=function(We){return I.s(te%12||12,We,"0")},Ke=Ye||function(We,Ve,Te){var tt=We<12?"AM":"PM";return Te?tt.toLowerCase():tt};return he.replace(E,function(We,Ve){return Ve||function(Te){switch(Te){case"YY":return String(L.$y).slice(-2);case"YYYY":return I.s(L.$y,4,"0");case"M":return De+1;case"MM":return I.s(De+1,2,"0");case"MMM":return Ge(B.monthsShort,De,Me,3);case"MMMM":return Ge(Me,De);case"D":return L.$D;case"DD":return I.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Ge(B.weekdaysMin,L.$W,_e,2);case"ddd":return Ge(B.weekdaysShort,L.$W,_e,3);case"dddd":return _e[L.$W];case"H":return String(te);case"HH":return I.s(te,2,"0");case"h":return Ae(1);case"hh":return Ae(2);case"a":return Ke(te,xe,!0);case"A":return Ke(te,xe,!1);case"m":return String(xe);case"mm":return I.s(xe,2,"0");case"s":return String(L.$s);case"ss":return I.s(L.$s,2,"0");case"SSS":return I.s(L.$ms,3,"0");case"Z":return U}return null}(We)||U.replace(":","")})},ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(O,L,B){var he,U=this,te=I.p(L),xe=ae(O),De=(xe.utcOffset()-this.utcOffset())*r,_e=this-xe,Me=function(){return I.m(U,xe)};switch(te){case b:he=Me()/12;break;case m:he=Me();break;case g:he=Me()/3;break;case h:he=(_e-De)/6048e5;break;case d:he=(_e-De)/864e5;break;case l:he=_e/i;break;case o:he=_e/r;break;case a:he=_e/n;break;default:he=_e}return B?he:I.a(he)},ie.daysInMonth=function(){return this.endOf(m).$D},ie.$locale=function(){return R[this.$L]},ie.locale=function(O,L){if(!O)return this.$L;var B=this.clone(),he=le(O,L,!0);return he&&(B.$L=he),B},ie.clone=function(){return I.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},W}(),we=$e.prototype;return ae.prototype=we,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",d],["$M",m],["$y",b],["$D",x]].forEach(function(W){we[W[1]]=function(ie){return this.$g(ie,W[0],W[1])}}),ae.extend=function(W,ie){return W.$i||(W(ie,$e,ae),W.$i=!0),ae},ae.locale=le,ae.isDayjs=H,ae.unix=function(W){return ae(1e3*W)},ae.en=R[M],ae.Ls=R,ae.p={},ae})}(bp)),bp.exports}var ok=AZ();const TZ=ci(ok);var _0,OD;function PZ(){if(OD)return _0;OD=1;var e=Cc(),t=Dc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return _0=r,_0}var _Z=PZ();const MZ=ci(_Z);var Zu=[["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"]],FZ="react-international-phone-",uk=(...e)=>e.filter(t=>!!t).join(" ").trim(),RZ=(...e)=>uk(...e).split(" ").map(t=>`${FZ}${t}`).join(" "),Mr=({addPrefix:e,rawClassNames:t})=>uk(RZ(...e),...t),kZ=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let s=e.slice(0,r),a=e.slice(r),o=s,l=0;for(let d of t.split("")){if(l>=a.length){if(!i&&d!==n){o+=d;continue}break}d===n?(o+=a[l],l+=1):o+=d}return o},kl=e=>e?/^\d+$/.test(e):!1,Zm=e=>e.replace(/\D/g,""),OZ=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=i.top-r.top,a=r.bottom-i.bottom;s>=0&&a>=0||(Math.abs(s)<Math.abs(a)?e.scrollTop+=s:e.scrollTop-=a),e.style.display=n},IZ=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),LZ=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,s=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):s(i);if(i=Zm(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return s(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return s(`${t.prefix}${i}`)}let a=()=>{let d=t.dialCode.length,h=i.slice(0,d),m=i.slice(d);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:o,phoneRightSide:l}=a();return o=`${t.prefix}${o}${t.charAfterDialCode}`,l=kZ({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(o=""),s(`${o}${l}`)},BZ=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:s})=>{if(r<i)return i;if(!e)return n.length;let a=null;for(let h=r-1;h>=0;h-=1)if(kl(t[h])){a=h;break}if(a===null){for(let h=0;h<t.length;h+=1)if(kl(n[h]))return h;return t.length}let o=0;for(let h=0;h<a;h+=1)kl(t[h])&&(o+=1);let l=0,d=0;for(let h=0;h<n.length&&(l+=1,kl(n[h])&&(d+=1),!(d>=o+1));h+=1);if(s!=="backward")for(;!kl(n[l])&&l<n.length;)l+=1;return l},$p=({phone:e,prefix:t})=>e?`${t}${Zm(e)}`:"";function zb({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:s,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:l,defaultMask:d,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${s}`)?g:`${s}${t.dialCode}${g}`);let b=h?HZ({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,x=(b==null?void 0:b.country)??t,w=LZ(g,{prefix:s,mask:qZ({phone:g,country:x,defaultMask:d,disableFormatting:m}),maskChar:lk,dialCode:x.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:o,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),S=h&&!(b!=null&&b.fullDialCodeMatch)?t:x;return{phone:$p({phone:l?`${S.dialCode}${w}`:w,prefix:s}),inputValue:w,country:S}}var VZ=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},NZ=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:s,forceDialCode:a,disableDialCodeAndPrefix:o,countryGuessingEnabled:l,defaultMask:d,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,x=VZ(b),w=!!(b!=null&&b.startsWith("insertFrom")),S=b==="insertText",E=(g==null?void 0:g.data)||void 0,C=e.target.value,A=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:$p({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(S&&!kl(E)&&C!==i)return{inputValue:r,phone:$p({phone:o?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:A-((E==null?void 0:E.length)??0),country:t};if(a&&!C.startsWith(`${i}${t.dialCode}`)&&!w){let H=C?r:`${i}${t.dialCode}${s}`;return{inputValue:H,phone:$p({phone:H,prefix:i}),cursorPosition:i.length+t.dialCode.length+s.length,country:t}}let{phone:k,inputValue:M,country:R}=zb({value:C,country:t,trimNonDigitsEnd:x==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:s,forceDialCode:a,disableDialCodeAndPrefix:o,disableFormatting:h,defaultMask:d}),K=BZ({cursorPositionAfterInput:A,phoneBeforeInput:r,phoneAfterInput:C,phoneAfterFormatted:M,leftOffset:a?i.length+t.dialCode.length+s.length:0,deletion:x});return{phone:k,inputValue:M,cursorPosition:K,country:R}},jZ=(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},KZ=()=>{let e=T.useRef(),t=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}}},UZ={size:20,overrideLastItemDebounceMS:-1};function zZ(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...UZ,...t},[s,a]=T.useState(e),[o,l]=T.useState([s]),[d,h]=T.useState(0),m=KZ();return[s,(g,b)=>{if(typeof g=="object"&&typeof s=="object"&&jZ(g,s)||g===s)return;let x=r>0,w=m.check(),S=x&&w!==void 0?w>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!S)l(E=>[...E.slice(0,d),g]);else{let E=o.length>=n;l(C=>[...C.slice(E?1:0,d+1),g]),E||h(C=>C+1)}a(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=o[d-1];return a(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=o.length)return{success:!1};let g=o[d+1];return a(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var lk=".",Ni={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Zu},ck=({defaultCountry:e=Ni.defaultCountry,value:t=Ni.value,countries:n=Ni.countries,prefix:r=Ni.prefix,defaultMask:i=Ni.defaultMask,charAfterDialCode:s=Ni.charAfterDialCode,historySaveDebounceMS:a=Ni.historySaveDebounceMS,disableCountryGuess:o=Ni.disableCountryGuess,disableDialCodePrefill:l=Ni.disableDialCodePrefill,forceDialCode:d=Ni.forceDialCode,disableDialCodeAndPrefix:h=Ni.disableDialCodeAndPrefix,disableFormatting:m=Ni.disableFormatting,onChange:g,inputRef:b})=>{let x={countries:n,prefix:r,charAfterDialCode:s,forceDialCode:h?!1:d,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!o,disableFormatting:m},w=T.useRef(null),S=b||w,E=W=>{Promise.resolve().then(()=>{var ie;typeof window>"u"||S.current!==(document==null?void 0:document.activeElement)||((ie=S.current)==null||ie.setSelectionRange(W,W))})},[{phone:C,inputValue:A,country:k},M,R,K]=zZ(()=>{let W=Bl({value:e,field:"iso2",countries:n});W||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let ie=W||Bl({value:"us",field:"iso2",countries:n}),{phone:O,inputValue:L,country:B}=zb({value:t,country:ie,insertDialCodeOnEmpty:!l,...x});return E(L.length),{phone:O,inputValue:L,country:B.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:W,phone:ie,country:O})=>{if(!g)return;let L=H(O);g({phone:ie,inputValue:W,country:L})}}),H=T.useCallback(W=>Bl({value:W,field:"iso2",countries:n}),[n]),le=T.useMemo(()=>H(k),[k,H]);T.useEffect(()=>{let W=S.current;if(!W)return;let ie=O=>{if(!O.key)return;let L=O.ctrlKey,B=O.metaKey,he=O.shiftKey;if(O.key.toLowerCase()==="z"){if(IZ()){if(!B)return}else if(!L)return;he?K():R()}};return W.addEventListener("keydown",ie),()=>{W.removeEventListener("keydown",ie)}},[S,R,K]);let ae=W=>{W.preventDefault();let{phone:ie,inputValue:O,country:L,cursorPosition:B}=NZ(W,{country:le,phoneBeforeInput:A,insertDialCodeOnEmpty:!1,...x});return M({inputValue:O,phone:ie,country:L.iso2}),E(B),t},I=(W,ie={focusOnInput:!1})=>{let O=Bl({value:W,field:"iso2",countries:n});if(!O){console.error(`[react-international-phone]: can not find a country with "${W}" iso2 code`);return}let L=h?"":`${r}${O.dialCode}${s}`;M({inputValue:L,phone:`${r}${O.dialCode}`,country:O.iso2}),ie.focusOnInput&&Promise.resolve().then(()=>{var B;(B=S.current)==null||B.focus()})},[$e,we]=T.useState(!1);return T.useEffect(()=>{if(!$e){we(!0),t!==C&&(g==null||g({inputValue:A,phone:C,country:le}));return}if(t===C)return;let{phone:W,inputValue:ie,country:O}=zb({value:t,country:le,insertDialCodeOnEmpty:!l,...x});M({phone:W,inputValue:ie,country:O.iso2})},[t]),{phone:C,inputValue:A,country:le,setCountry:I,handlePhoneValueChange:ae,inputRef:S}},qZ=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,s=o=>r?o.replace(new RegExp(`[^${lk}]`,"g"),""):o;if(!i)return s(n);if(typeof i=="string")return s(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),s(n);let a=Object.keys(i).find(o=>{if(o==="default")return!1;if(!(o.charAt(0)==="/"&&o.charAt(o.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${o}" for ${t.iso2} is not valid`),!1;let l=new RegExp(o.substring(1,o.length-1)),d=e.replace(t.dialCode,"");return l.test(Zm(d))});return s(a?i[a]:i.default)},xs=e=>{let[t,n,r,i,s,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:s,areaCodes:a}},WZ=e=>`Field "${e}" is not supported`,Bl=({field:e,value:t,countries:n=Zu})=>{if(["priority"].includes(e))throw new Error(WZ(e));let r=n.find(i=>{let s=xs(i);return t===s[e]});if(r)return xs(r)},HZ=({phone:e,countries:t=Zu,currentCountryIso2:n})=>{var o;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Zm(e);if(!i)return r;let s=r,a=({country:l,fullDialCodeMatch:d})=>{var g,b;let h=l.dialCode===((g=s.country)==null?void 0:g.dialCode),m=(l.priority??0)<(((b=s.country)==null?void 0:b.priority)??0);(!h||m)&&(s={country:l,fullDialCodeMatch:d})};for(let l of t){let d=xs(l),{dialCode:h,areaCodes:m}=d;if(i.startsWith(h)){let g=s.country?Number(h)>=Number(s.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||!s.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}s.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!s.country||Number(h)<=Number(s.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let l=Bl({value:n,field:"iso2",countries:t});if(!l)return s;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;s&&((o=s.country)==null?void 0:o.dialCode)===l.dialCode&&s.country!==l&&s.fullDialCodeMatch&&(!l.areaCodes||d)&&(s={country:l,fullDialCodeMatch:!0})}return s},GZ=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},YZ="abcdefghijklmnopqrstuvwxyz",ZZ="1f1e6",ID=YZ.split("").reduce((e,t,n)=>({...e,[t]:GZ(ZZ,n)}),{}),XZ=e=>[ID[e[0]],ID[e[1]]].join("-"),j3=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:s,style:a,...o})=>{if(!e)return T.createElement("img",{className:Mr({addPrefix:["flag-emoji"],rawClassNames:[s]}),width:t,height:t,...o});let l=()=>{if(n)return n;let d=XZ(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return T.createElement("img",{className:Mr({addPrefix:["flag-emoji"],rawClassNames:[s]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...o})},JZ=1e3,QZ=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Zu,preferredCountries:i=[],flags:s,onSelect:a,onClose:o,...l})=>{let d=T.useRef(null),h=T.useRef(),m=T.useMemo(()=>{if(!i||!i.length)return r;let R=[],K=[...r];for(let H of i){let le=K.findIndex(ae=>xs(ae).iso2===H);if(le!==-1){let ae=K.splice(le,1)[0];R.push(ae)}}return R.concat(K)},[r,i]),g=T.useRef({updatedAt:void 0,value:""}),b=R=>{let K=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>JZ;g.current={value:K?R:`${g.current.value}${R}`,updatedAt:new Date};let H=m.findIndex(le=>xs(le).name.toLowerCase().startsWith(g.current.value));H!==-1&&S(H)},x=T.useCallback(R=>m.findIndex(K=>xs(K).iso2===R),[m]),[w,S]=T.useState(x(n)),E=()=>{h.current!==n&&S(x(n))},C=T.useCallback(R=>{S(x(R.iso2)),a==null||a(R)},[a,x]),A=R=>{let K=m.length-1,H=le=>R==="prev"?le-1:R==="next"?le+1:R==="last"?K:0;S(le=>{let ae=H(le);return ae<0?0:ae>K?K:ae})},k=R=>{if(R.stopPropagation(),R.key==="Enter"){R.preventDefault();let K=xs(m[w]);C(K);return}if(R.key==="Escape"){o==null||o();return}if(R.key==="ArrowUp"){R.preventDefault(),A("prev");return}if(R.key==="ArrowDown"){R.preventDefault(),A("next");return}if(R.key==="PageUp"){R.preventDefault(),A("first");return}if(R.key==="PageDown"){R.preventDefault(),A("last");return}R.key===" "&&R.preventDefault(),R.key.length===1&&!R.altKey&&!R.ctrlKey&&!R.metaKey&&b(R.key.toLocaleLowerCase())},M=T.useCallback(()=>{if(!d.current||w===void 0)return;let R=xs(m[w]).iso2;if(R===h.current)return;let K=d.current.querySelector(`[data-country="${R}"]`);K&&(OZ(d.current,K),h.current=R)},[w,m]);return T.useEffect(()=>{M()},[w,M]),T.useEffect(()=>{d.current&&(e?d.current.focus():E())},[e]),T.useEffect(()=>{E()},[n]),T.createElement("ul",{ref:d,role:"listbox",className:Mr({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:k,onBlur:o,tabIndex:-1,"aria-activedescendant":`react-international-phone__${xs(m[w]).iso2}-option`},m.map((R,K)=>{let H=xs(R),le=H.iso2===n,ae=K===w,I=i.includes(H.iso2),$e=K===i.length-1,we=s==null?void 0:s.find(W=>W.iso2===H.iso2);return T.createElement(T.Fragment,{key:H.iso2},T.createElement("li",{"data-country":H.iso2,role:"option","aria-selected":le,"aria-label":`${H.name} ${t}${H.dialCode}`,id:`react-international-phone__${H.iso2}-option`,className:Mr({addPrefix:["country-selector-dropdown__list-item",I&&"country-selector-dropdown__list-item--preferred",le&&"country-selector-dropdown__list-item--selected",ae&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>C(H),style:l.listItemStyle,title:H.name},T.createElement(j3,{iso2:H.iso2,src:we==null?void 0:we.src,className:Mr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),T.createElement("span",{className:Mr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},H.name),T.createElement("span",{className:Mr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,H.dialCode)),$e?T.createElement("hr",{className:Mr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},eX=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Zu,preferredCountries:s=[],flags:a,renderButtonWrapper:o,...l})=>{let[d,h]=T.useState(!1),m=T.useMemo(()=>{if(e)return Bl({value:e,field:"iso2",countries:i})},[i,e]),g=T.useRef(null),b=w=>{w.key&&["ArrowUp","ArrowDown"].includes(w.key)&&(w.preventDefault(),h(!0))},x=()=>{var E;let w={title:m==null?void 0:m.name,onClick:()=>h(C=>!C),onMouseDown:C=>C.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},S=T.createElement("div",{className:Mr({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},T.createElement(j3,{iso2:e,src:(E=a==null?void 0:a.find(C=>C.iso2===e))==null?void 0:E.src,className:Mr({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&T.createElement("div",{className:Mr({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 o?o({children:S,rootProps:w}):T.createElement("button",{...w,type:"button",className:Mr({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},S)};return T.createElement("div",{className:Mr({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},x(),T.createElement(QZ,{show:d,countries:i,preferredCountries:s,flags:a,onSelect:w=>{h(!1),t==null||t(w)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},tX=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>T.createElement("div",{className:Mr({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);T.forwardRef(({value:e,onChange:t,countries:n=Zu,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:s,disableFocusAfterCountrySelect:a,flags:o,style:l,className:d,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:x,placeholder:w,disabled:S,name:E,onFocus:C,onBlur:A,required:k,autoFocus:M,...R},K)=>{let{phone:H,inputValue:le,inputRef:ae,country:I,setCountry:$e,handlePhoneValueChange:we}=ck({value:e,countries:n,...R,onChange:ie=>{t==null||t(ie.phone,{country:ie.country,inputValue:ie.inputValue})}}),W=R.disableDialCodeAndPrefix&&s&&(I==null?void 0:I.dialCode);return T.useImperativeHandle(K,()=>ae.current?Object.assign(ae.current,{setCountry:$e,state:{phone:H,inputValue:le,country:I}}):null,[ae,$e,H,le,I]),T.createElement("div",{ref:K,className:Mr({addPrefix:["input-container"],rawClassNames:[d]}),style:l},T.createElement(eX,{onSelect:ie=>$e(ie.iso2,{focusOnInput:!a}),flags:o,selectedCountry:I.iso2,countries:n,preferredCountries:r,disabled:S,hideDropdown:i,...g}),W&&T.createElement(tX,{dialCode:I.dialCode,prefix:R.prefix??"+",disabled:S,...b}),T.createElement("input",{onChange:we,value:le,type:"tel",ref:ae,className:Mr({addPrefix:["input",S&&"input--disabled"],rawClassNames:[m]}),placeholder:w,disabled:S,style:h,name:E,onFocus:C,onBlur:A,autoFocus:M,required:k,...x}))});var Po=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qb={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",a="[object Array]",o="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",x="[object Object]",w="[object Promise]",S="[object RegExp]",E="[object Set]",C="[object String]",A="[object Symbol]",k="[object WeakMap]",M="[object ArrayBuffer]",R="[object DataView]",K="[object Float32Array]",H="[object Float64Array]",le="[object Int8Array]",ae="[object Int16Array]",I="[object Int32Array]",$e="[object Uint8Array]",we="[object Uint8ClampedArray]",W="[object Uint16Array]",ie="[object Uint32Array]",O=/[\\^$.*+?()[\]{}|]/g,L=/\w*$/,B=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,U={};U[s]=U[a]=U[M]=U[R]=U[o]=U[l]=U[K]=U[H]=U[le]=U[ae]=U[I]=U[g]=U[b]=U[x]=U[S]=U[E]=U[C]=U[A]=U[$e]=U[we]=U[W]=U[ie]=!0,U[d]=U[h]=U[k]=!1;var te=typeof Po=="object"&&Po&&Po.Object===Object&&Po,xe=typeof self=="object"&&self&&self.Object===Object&&self,De=te||xe||Function("return this")(),_e=t&&!t.nodeType&&t,Me=_e&&!0&&e&&!e.nodeType&&e,Ye=Me&&Me.exports===_e;function Ge(se,Fe){return se.set(Fe[0],Fe[1]),se}function Ae(se,Fe){return se.add(Fe),se}function Ke(se,Fe){for(var ze=-1,ht=se?se.length:0;++ze<ht&&Fe(se[ze],ze,se)!==!1;);return se}function We(se,Fe){for(var ze=-1,ht=Fe.length,bn=se.length;++ze<ht;)se[bn+ze]=Fe[ze];return se}function Ve(se,Fe,ze,ht){for(var bn=-1,sr=se?se.length:0;++bn<sr;)ze=Fe(ze,se[bn],bn,se);return ze}function Te(se,Fe){for(var ze=-1,ht=Array(se);++ze<se;)ht[ze]=Fe(ze);return ht}function tt(se,Fe){return se==null?void 0:se[Fe]}function yt(se){var Fe=!1;if(se!=null&&typeof se.toString!="function")try{Fe=!!(se+"")}catch{}return Fe}function Jt(se){var Fe=-1,ze=Array(se.size);return se.forEach(function(ht,bn){ze[++Fe]=[bn,ht]}),ze}function xt(se,Fe){return function(ze){return se(Fe(ze))}}function Mt(se){var Fe=-1,ze=Array(se.size);return se.forEach(function(ht){ze[++Fe]=ht}),ze}var Ti=Array.prototype,mt=Function.prototype,me=Object.prototype,Se=De["__core-js_shared__"],Le=function(){var se=/[^.]+$/.exec(Se&&Se.keys&&Se.keys.IE_PROTO||"");return se?"Symbol(src)_1."+se:""}(),it=mt.toString,Qe=me.hasOwnProperty,Xe=me.toString,gt=RegExp("^"+it.call(Qe).replace(O,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=Ye?De.Buffer:void 0,wt=De.Symbol,yn=De.Uint8Array,Cr=xt(Object.getPrototypeOf,Object),qt=Object.create,_t=me.propertyIsEnumerable,Lt=Ti.splice,Wt=Object.getOwnPropertySymbols,gr=kt?kt.isBuffer:void 0,Zr=xt(Object.keys,Object),fi=mi(De,"DataView"),kr=mi(De,"Map"),Rs=mi(De,"Promise"),Vo=mi(De,"Set"),$t=mi(De,"WeakMap"),di=mi(Object,"create"),ha=Lr(fi),Nc=Lr(kr),el=Lr(Rs),jc=Lr(Vo),tl=Lr($t),No=wt?wt.prototype:void 0,nl=No?No.valueOf:void 0;function is(se){var Fe=-1,ze=se?se.length:0;for(this.clear();++Fe<ze;){var ht=se[Fe];this.set(ht[0],ht[1])}}function ss(){this.__data__=di?di(null):{}}function bt(se){return this.has(se)&&delete this.__data__[se]}function Sn(se){var Fe=this.__data__;if(di){var ze=Fe[se];return ze===r?void 0:ze}return Qe.call(Fe,se)?Fe[se]:void 0}function pa(se){var Fe=this.__data__;return di?Fe[se]!==void 0:Qe.call(Fe,se)}function rl(se,Fe){var ze=this.__data__;return ze[se]=di&&Fe===void 0?r:Fe,this}is.prototype.clear=ss,is.prototype.delete=bt,is.prototype.get=Sn,is.prototype.has=pa,is.prototype.set=rl;function Er(se){var Fe=-1,ze=se?se.length:0;for(this.clear();++Fe<ze;){var ht=se[Fe];this.set(ht[0],ht[1])}}function il(){this.__data__=[]}function sl(se){var Fe=this.__data__,ze=ma(Fe,se);if(ze<0)return!1;var ht=Fe.length-1;return ze==ht?Fe.pop():Lt.call(Fe,ze,1),!0}function Kc(se){var Fe=this.__data__,ze=ma(Fe,se);return ze<0?void 0:Fe[ze][1]}function Xr(se){return ma(this.__data__,se)>-1}function st(se,Fe){var ze=this.__data__,ht=ma(ze,se);return ht<0?ze.push([se,Fe]):ze[ht][1]=Fe,this}Er.prototype.clear=il,Er.prototype.delete=sl,Er.prototype.get=Kc,Er.prototype.has=Xr,Er.prototype.set=st;function dn(se){var Fe=-1,ze=se?se.length:0;for(this.clear();++Fe<ze;){var ht=se[Fe];this.set(ht[0],ht[1])}}function as(){this.__data__={hash:new is,map:new(kr||Er),string:new is}}function hi(se){return Pi(this,se).delete(se)}function Xn(se){return Pi(this,se).get(se)}function jo(se){return Pi(this,se).has(se)}function ks(se,Fe){return Pi(this,se).set(se,Fe),this}dn.prototype.clear=as,dn.prototype.delete=hi,dn.prototype.get=Xn,dn.prototype.has=jo,dn.prototype.set=ks;function pi(se){this.__data__=new Er(se)}function Ln(){this.__data__=new Er}function no(se){return this.__data__.delete(se)}function Ut(se){return this.__data__.get(se)}function Uc(se){return this.__data__.has(se)}function al(se,Fe){var ze=this.__data__;if(ze instanceof Er){var ht=ze.__data__;if(!kr||ht.length<n-1)return ht.push([se,Fe]),this;ze=this.__data__=new dn(ht)}return ze.set(se,Fe),this}pi.prototype.clear=Ln,pi.prototype.delete=no,pi.prototype.get=Ut,pi.prototype.has=Uc,pi.prototype.set=al;function zc(se,Fe){var ze=$a(se)||Ls(se)?Te(se.length,String):[],ht=ze.length,bn=!!ht;for(var sr in se)Qe.call(se,sr)&&!(bn&&(sr=="length"||Ho(sr,ht)))&&ze.push(sr);return ze}function Ko(se,Fe,ze){var ht=se[Fe];(!(Qe.call(se,Fe)&&Is(ht,ze))||ze===void 0&&!(Fe in se))&&(se[Fe]=ze)}function ma(se,Fe){for(var ze=se.length;ze--;)if(Is(se[ze][0],Fe))return ze;return-1}function ol(se,Fe){return se&&yr(Fe,Ca(Fe),se)}function Uo(se,Fe,ze,ht,bn,sr,ur){var Kn;if(ht&&(Kn=sr?ht(se,bn,sr,ur):ht(se)),Kn!==void 0)return Kn;if(!wa(se))return se;var Dn=$a(se);if(Dn){if(Kn=Wo(se),!Fe)return ro(se,Kn)}else{var Mi=_i(se),Fi=Mi==h||Mi==m;if(io(se))return qo(se,Fe);if(Mi==x||Mi==s||Fi&&!sr){if(yt(se))return sr?se:{};if(Kn=fl(Fi?{}:se),!Fe)return va(se,ol(Kn,se))}else{if(!U[Mi])return sr?se:{};Kn=mn(se,Mi,Uo,Fe)}}ur||(ur=new pi);var Zo=ur.get(se);if(Zo)return Zo;if(ur.set(se,Kn),!Dn)var so=ze?ya(se):Ca(se);return Ke(so||se,function(lr,Ea){so&&(Ea=lr,lr=se[Ea]),Ko(Kn,Ea,Uo(lr,Fe,ze,ht,Ea,se,ur))}),Kn}function qc(se){return wa(se)?qt(se):{}}function Wc(se,Fe,ze){var ht=Fe(se);return $a(se)?ht:We(ht,ze(se))}function Hc(se){return Xe.call(se)}function ul(se){if(!wa(se)||Go(se))return!1;var Fe=hl(se)||yt(se)?gt:B;return Fe.test(Lr(se))}function zo(se){if(!dl(se))return Zr(se);var Fe=[];for(var ze in Object(se))Qe.call(se,ze)&&ze!="constructor"&&Fe.push(ze);return Fe}function qo(se,Fe){if(Fe)return se.slice();var ze=new se.constructor(se.length);return se.copy(ze),ze}function ga(se){var Fe=new se.constructor(se.byteLength);return new yn(Fe).set(new yn(se)),Fe}function ll(se,Fe){var ze=Fe?ga(se.buffer):se.buffer;return new se.constructor(ze,se.byteOffset,se.byteLength)}function cl(se,Fe,ze){var ht=Fe?ze(Jt(se),!0):Jt(se);return Ve(ht,Ge,new se.constructor)}function Or(se){var Fe=new se.constructor(se.source,L.exec(se));return Fe.lastIndex=se.lastIndex,Fe}function vr(se,Fe,ze){var ht=Fe?ze(Mt(se),!0):Mt(se);return Ve(ht,Ae,new se.constructor)}function Ir(se){return nl?Object(nl.call(se)):{}}function Os(se,Fe){var ze=Fe?ga(se.buffer):se.buffer;return new se.constructor(ze,se.byteOffset,se.length)}function ro(se,Fe){var ze=-1,ht=se.length;for(Fe||(Fe=Array(ht));++ze<ht;)Fe[ze]=se[ze];return Fe}function yr(se,Fe,ze,ht){ze||(ze={});for(var bn=-1,sr=Fe.length;++bn<sr;){var ur=Fe[bn],Kn=void 0;Ko(ze,ur,Kn===void 0?se[ur]:Kn)}return ze}function va(se,Fe){return yr(se,or(se),Fe)}function ya(se){return Wc(se,Ca,or)}function Pi(se,Fe){var ze=se.__data__;return ba(Fe)?ze[typeof Fe=="string"?"string":"hash"]:ze.map}function mi(se,Fe){var ze=tt(se,Fe);return ul(ze)?ze:void 0}var or=Wt?xt(Wt,Object):Yt,_i=Hc;(fi&&_i(new fi(new ArrayBuffer(1)))!=R||kr&&_i(new kr)!=g||Rs&&_i(Rs.resolve())!=w||Vo&&_i(new Vo)!=E||$t&&_i(new $t)!=k)&&(_i=function(se){var Fe=Xe.call(se),ze=Fe==x?se.constructor:void 0,ht=ze?Lr(ze):void 0;if(ht)switch(ht){case ha:return R;case Nc:return g;case el:return w;case jc:return E;case tl:return k}return Fe});function Wo(se){var Fe=se.length,ze=se.constructor(Fe);return Fe&&typeof se[0]=="string"&&Qe.call(se,"index")&&(ze.index=se.index,ze.input=se.input),ze}function fl(se){return typeof se.constructor=="function"&&!dl(se)?qc(Cr(se)):{}}function mn(se,Fe,ze,ht){var bn=se.constructor;switch(Fe){case M:return ga(se);case o:case l:return new bn(+se);case R:return ll(se,ht);case K:case H:case le:case ae:case I:case $e:case we:case W:case ie:return Os(se,ht);case g:return cl(se,ht,ze);case b:case C:return new bn(se);case S:return Or(se);case E:return vr(se,ht,ze);case A:return Ir(se)}}function Ho(se,Fe){return Fe=Fe??i,!!Fe&&(typeof se=="number"||he.test(se))&&se>-1&&se%1==0&&se<Fe}function ba(se){var Fe=typeof se;return Fe=="string"||Fe=="number"||Fe=="symbol"||Fe=="boolean"?se!=="__proto__":se===null}function Go(se){return!!Le&&Le in se}function dl(se){var Fe=se&&se.constructor,ze=typeof Fe=="function"&&Fe.prototype||me;return se===ze}function Lr(se){if(se!=null){try{return it.call(se)}catch{}try{return se+""}catch{}}return""}function Yo(se){return Uo(se,!0,!0)}function Is(se,Fe){return se===Fe||se!==se&&Fe!==Fe}function Ls(se){return xa(se)&&Qe.call(se,"callee")&&(!_t.call(se,"callee")||Xe.call(se)==s)}var $a=Array.isArray;function os(se){return se!=null&&Gc(se.length)&&!hl(se)}function xa(se){return Yc(se)&&os(se)}var io=gr||nn;function hl(se){var Fe=wa(se)?Xe.call(se):"";return Fe==h||Fe==m}function Gc(se){return typeof se=="number"&&se>-1&&se%1==0&&se<=i}function wa(se){var Fe=typeof se;return!!se&&(Fe=="object"||Fe=="function")}function Yc(se){return!!se&&typeof se=="object"}function Ca(se){return os(se)?zc(se):zo(se)}function Yt(){return[]}function nn(){return!1}e.exports=Yo})(qb,qb.exports);var _o=qb.exports,Wb=function(){return Wb=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Wb.apply(this,arguments)};function nX(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{d(r.next(h))}catch(m){a(m)}}function l(h){try{d(r.throw(h))}catch(m){a(m)}}function d(h){h.done?s(h.value):i(h.value).then(o,l)}d((r=r.apply(e,[])).next())})}function rX(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(d){return function(h){return l([d,h])}}function l(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(s=d[0]&2?i.return:d[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,d[1])).done)return s;switch(i=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=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(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){n.label=d[1];break}if(d[0]===6&&n.label<s[1]){n.label=s[1],s=d;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(d);break}s[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(h){d=[6,h],i=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function tm(e,t,n,r,i){return nX(this,void 0,void 0,function(){var s,a;return rX(this,function(o){switch(o.label){case 0:if(n===void 0)return[2];a=0,o.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(s=o.sent(),s==="canceled")return[3,4];o.label=3;case 3:return a++,[3,1];case 4:return s!=="canceled"?[2,s]:[2]}})})}var Hb=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Wb({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},iX=function(){function e(t,n,r,i){var s=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=_o(n);tm(t,a,r,this.htmlPluginState,i).then(function(o){if(s.isMounted){s.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var l=Hb(i,o);s.imgElement.setAttribute("src",a.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,s=_o(t);tm(this.imgElement,s,n,this.htmlPluginState).then(function(a){if(i.isMounted){var o=Hb(r,a);i.imgElement.setAttribute("src",s.toURL(o))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let In=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}},sX=class extends Error{constructor(t="Unsupported"){super(t)}};function K3(e){return new sX(e)}function aX(){return this._qualifierModel||{error:K3(`unsupported qualifier ${this.constructor.name}`)}}let oX=class{constructor(){this._qualifierModel={}}toJson(){return aX.apply(this)}},It=class extends oX{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof In?this.qualifierValue=n:(this.qualifierValue=new In,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}},Qi=class extends It{constructor(t,n){let r;n?r=new In([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:K3(`unsupported action ${this.constructor.name}`)}}let cX=class{constructor(){this._actionModel={}}toJson(){return lX.apply(this)}},_s=class 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 Qi(r)):this.qualifiers.set(n,new It(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Qi(t)):t instanceof Qi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class U3 extends _s{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Xm extends U3{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new It("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new It("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new It("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new It("h",t)),this}static fromJson(t){const n=new Xm;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 fX(){return new Xm}function fk(){return new U3("faces")}function dX(){return new U3("ocr_text")}class hX extends _s{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 It("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new It("e",`blur_region${t}`)),this.addQualifier(new It("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new It("e",`blur_faces${t}`))):this.addQualifier(new It("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(fk()),r&&r.regionType==="ocr_text"&&i.region(dX()),r&&r.regionType==="custom"&&i.region(Xm.fromJson(r)),i}}function Xu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const dk={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},pX={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},hk={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},pk={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},mX={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},mk={444:"CHROMA_444",420:"CHROMA_420"},gX={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},vX=Xu(mk);Xu(gX);const yX=Xu(dk),bX=Xu(pX),gk=Xu(hk);Xu(pk);Xu(mX);class vk extends _s{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=gk[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new In([t,`${n}`]).setDelimiter(":"):r=new In(t),new It("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,s=hk[n]||n;return new this(s,r||i)}}class $X extends vk{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=gk[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 Jm(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class xX extends _s{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 In(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new In(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new In(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new In(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new In(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new It("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:s,detailLevel:a,numOfColors:o}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),s&&l.despeckleLevel(s),a&&l.detailsLevel(a),o&&l.numOfColors(o),l}}class wX extends $X{level(t){return this._actionModel.level=t,this.setLevel(t)}}class CX extends _s{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new It("e",new In("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new It("e",new In(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new It("e",new In(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,s=new this;return r==="xray"&&s.xray(),r==="stripes"&&i&&s.stripesStrength(i),s}}class EX extends wX{color(t){return this._actionModel.color=t,this.addQualifier(new It("co",new In(Jm(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,s=new this(n,r);return i&&s.color(i),s}}class SX extends _s{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 It("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new It("e",`pixelate_region${t}`)),this.addQualifier(new It("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new It("e",`pixelate_faces${t}`))):this.addQualifier(new It("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(fk()),n&&n.regionType==="custom"&&i.region(fX()),i}}const DX=e=>MX(encodeURIComponent,PX,_X)(e),AX=/[!'()*~_.-]/g,TX={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},PX=e=>e.replace(AX,t=>{var n;return(n=TX[t])!==null&&n!==void 0?n:t}),_X=e=>e.replace(/%20/g," "),MX=(...e)=>t=>e.reduce((n,r)=>r(n),t);function FX(e){return new hX(e)}function RX(){return new vk("grayscale")}function LD(e){return new EX("colorize",e)}function kX(){return new xX}function OX(){return new CX}function IX(e){return new SX(e)}let LX=class extends _s{constructor(t){super(),this._actionModel={},this.addQualifier(new It("b",new In(Jm(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},BD=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:K3(`unsupported action ${this.constructor.name}`)}}};function BX(e){const t=e;return"error"in t&&!!t.error}function VX(){return new Qi("ignore_aspect_ratio")}function NX(){return new Qi("lossy")}function jX(){return new Qi("preserve_transparency")}function KX(e){return new Qi("progressive",e)}function UX(){return new Qi("region_relative")}function zX(){return new Qi("relative")}let z3=class extends In{constructor(t){super(t),this.val=t}getValue(){return this.val}},yk=class extends _s{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof z3?i=n.getValue():i=n,this._actionModel.actionType=bX[t],this._actionModel[r]=i,this.addQualifier(new It(t,n))}},qX=class extends Qi{constructor(t){super("progressive",t)}},Gb=class extends yk{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(NX()),this}progressive(t){return t instanceof qX?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(KX(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(jX()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),s&&a.preserveTransparency(),a}},Qm=class bk{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 BD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof bk?this.actions=this.actions.concat(t.actions):this.actions.push(new BD(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 Gb("q",t)),this}format(t){return this.addAction(new Gb("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 LX(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new _s;let r=t;return typeof t=="string"&&(r=new Qi(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(BX(r))return r;t.push(r)}return{actions:t}}};function VD(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 WX extends In{}class HX extends _s{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=yX[t]||t,this.addQualifier(new It("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new It("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new It("w",t))}aspectRatio(t){if(t instanceof WX)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new It("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=VD(t),this.addQualifier(new It("ar",VD(t)));if(t instanceof Qi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(zX())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(UX())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:s}=t,{aspectRatio:a,width:o,height:l}=r,d=dk[n]||n,h=new this(d,o,l);return a&&h.aspectRatio(a==="ignore_aspect_ratio"?VX():a),i&&h.relative(),s&&h.regionRelative(),h}}class q3 extends It{constructor(t){super("g",new In(t))}}class $k extends q3{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class xk extends q3{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class wk extends q3{constructor(t){super(t)}}function GX(e){return new wk(e)}function Ck(...e){const t=[...e];return new xk(t)}function Ek(){return new $k}class hc extends In{constructor(t){super(),this.name=t}toString(){return this.name}}function YX(){return new hc("ocr_text")}function ZX(e){return e&&`${e}`.split(":")[0]==="auto"}function XX(e){const t=W3(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function W3(e){return`${e}`.replace("g_","")}function JX(e){return{compass:W3(e),gravityType:"direction"}}function QX(e){return W3(e)==="ocr_text"}function eJ(){return{gravityType:"ocr"}}function tJ(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function nJ(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 Sk(e){let t;const n=e==="auto"?new $k: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(nJ)}}function rJ(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(s=>`${s}`)};if(t){const s=n[n.length-1].values.slice(1),a=Ek().autoFocus(...s);i.fallbackGravity=Sk(a)}return i}function iJ(e){const n=e.split(":").map(r=>new hc(r));return new xk(n)}function sJ(e){return XX(e)?JX(e):QX(e)?eJ():ZX(e)||tJ(e)?Sk(e):rJ(typeof e=="string"?iJ(e):e)}class H3 extends In{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof hc?t:new hc(t);return new H3(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 Dk extends In{constructor(t){super(),this.val=t}toString(){return this.val}}function aJ(e){return e.gravityType==="direction"}function oJ(e){return e.gravityType==="ocr"}function uJ(e){return e.gravityType==="auto"}function lJ(e){const{object:t,weight:n,avoid:r}=e,i=new H3(new hc(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function Ak(e){const n=(e.autoFocus||[]).map(lJ);return Ek().autoFocus(...n)}function cJ(e){const t=(e.focusOnObjects||[]).map(r=>new hc(r)),n=Ck(...t);if(e.fallbackGravity){const r=Ak(e.fallbackGravity);n.fallbackGravity(r)}return n}function fJ(e){return aJ(e)?new wk(new Dk(e.compass)):oJ(e)?Ck(YX()):uJ(e)?Ak(e):cJ(e)}class G3 extends HX{gravity(t){this._actionModel.gravity=sJ(t);const n=typeof t=="string"?new It("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(fJ(t.gravity)),n}}class jd extends It{constructor(t){super("b"),t&&this.addValue(t)}}const Tk=100,dJ=0;class hJ extends jd{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}`:`:${Tk}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var Pk=hJ;class Y3 extends jd{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Jm(n)),this}}class _k extends Y3{toString(){return`
93
- b_auto:border
94
- ${this._contrast?"_contrast":""}
95
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
96
- `.replace(/\s+/g,"")}}class Mk extends Y3{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class Fk extends Mk{toString(){return`
97
- b_auto:border_gradient
98
- ${this._contrast?"_contrast":""}
99
- ${this._gradientColors?`:${this._gradientColors}`:""}
100
- ${this._gradientDirection?`:${this._gradientDirection}`:""}
101
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
102
- `.replace(/\s+/g,"")}}class Rk extends Mk{toString(){return`
103
- b_auto:predominant_gradient
104
- ${this._contrast?"_contrast":""}
105
- ${this._gradientColors?`:${this._gradientColors}`:""}
106
- ${this._gradientDirection?`:${this._gradientDirection}`:""}
107
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
108
- `.replace(/\s+/g,"")}}class kk extends Y3{toString(){return`
109
- b_auto:predominant
110
- ${this._contrast?"_contrast":""}
111
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
112
- `.replace(/\s+/g,"")}}class Ok extends jd{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){try{this._prompt=decodeURIComponent(t)}catch{this._prompt=t}return this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${DX(this._prompt)}`:""}`}}function Ik(e){return`${e}`.replace("b_","")}function pJ(){return{backgroundType:"auto"}}function mJ(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 Z3(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function gJ(e){return Object.assign(Object.assign({},Z3(e)),{backgroundType:"border"})}function Lk(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=Z3(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function vJ(e){return Object.assign(Object.assign({},Lk(e)),{backgroundType:"borderGradient"})}function yJ(e){return{backgroundType:"color",color:Ik(e)}}function bJ(e){return Object.assign(Object.assign({},Z3(e)),{backgroundType:"predominant"})}function $J(e){return Object.assign(Object.assign({},Lk(e)),{backgroundType:"predominantGradient"})}function xJ(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function wJ(e){return Ik(e)==="auto"?pJ():e instanceof Pk?mJ(e):e instanceof _k?gJ(e):e instanceof Fk?vJ(e):e instanceof kk?bJ(e):e instanceof Rk?$J(e):e instanceof Ok?xJ(e):yJ(e)}function CJ(){return new z3("svg")}function X3(){return new z3("auto")}function Bk(){return new _k}function Vk(){return new jd("auto")}function Nk(){return new Fk}function jk(){return new Rk}function Kk(){return new kk}function Uk(e){return new jd(Jm(e))}function EJ(){return new Pk}function zk(){return new Ok}const qk={auto:Vk,border:Bk,borderGradient:Nk,predominantGradient:jk,predominant:Kk,color:Uk,blurred:EJ,generativeFill:zk};function SJ(e){const{brightness:t,intensity:n}=e,r=qk.blurred();return r.brightness(t??dJ),r.intensity(n??Tk),r}function ND(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:s}=t;return i&&e.contrast(),s&&e.palette(...s),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function jD(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function DJ(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function AJ(e){const{backgroundType:t}=e;switch(t){case"auto":return Vk();case"blurred":return SJ(e);case"border":return jD(Bk(),e);case"borderGradient":return ND(Nk(),e);case"predominant":return jD(Kk(),e);case"predominantGradient":return ND(jk(),e);case"generativeFill":return DJ(zk(),e);default:return Uk(e.color)}}class TJ extends G3{background(t){return this._actionModel.background=wJ(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new It("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new It("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(AJ(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class PJ extends G3{x(t){return this._actionModel.x=t,this.addQualifier(new It("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new It("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new It("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 _J extends G3{x(t){return this._actionModel.x=t,this.addQualifier(new It("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new It("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 MJ(e,t){return new PJ("crop",e,t)}function FJ(e,t){return new _J("fill",e,t)}function RJ(e,t){return new TJ("pad",e,t)}class kJ extends yk{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=mk[t];const n=new In([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new It("q",n))}quantization(t){this._actionModel.quantization=t;const n=new In([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new It("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,s=pk[n]||n,a=new this(s);if(r){const o=vX[r.toUpperCase()];o&&a.chromaSubSampling(+o)}return i&&a.quantization(i),a}}function eg(e){return new Gb("f",e)}function tg(e){return new kJ(e)}function OJ(){return new Dk("north_east")}LD(70).color("black"),LD(40).color("white"),RX(),OX();var IJ=new Qm().effect(kX()).delivery(tg("auto")).delivery(eg(CJ())),LJ=new Qm().effect(IX()).delivery(tg("auto")).delivery(eg(X3())),BJ=new Qm().effect(FX(2e3)).delivery(tg("auto")).delivery(eg(X3())),VJ=new Qm().resize(RJ("iw_div_2").aspectRatio(1).background(qk.auto())).resize(MJ(1,1).gravity(GX(OJ()))).resize(FJ().height("ih").width("iw")).delivery(tg("auto")).delivery(eg(X3())),KD={vectorize:IJ,pixelate:LJ,blur:BJ,"predominant-color":VJ},UD="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",zD={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},qD="?_a=",NJ=function(){function e(t,n,r,i,s,a,o){var l=this;this.mimeType="video",this.mimeSubTypes=zD,this.videoElement=t,this.originalVideo=n,this.videoOptions=o,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=_o(n);tm(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),l.setVideoAttributes(s,a),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(s){r.appendSourceTag(_o(t),s)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var s=i.type,a=i.codecs,o=i.transcode;return r.appendSourceTag(_o(t).transcode(o),s,r.buildMimeType(s,a))})},e.prototype.appendSourceTag=function(t,n,r){var i,s=document.createElement("source"),a=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;a&&t.format(n);var o=t.toURL(),l=o.split(qD),d=l[1]?"".concat(qD).concat(l[1]):"",h=a?"":".".concat(n);s.src="".concat(l[0]).concat(h).concat(d),s.type=r||"video/".concat(zD[n]||n),this.videoElement.appendChild(s)},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=_o(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 s=0,a=Object.entries(t);s<a.length;s++){var o=a[s],l=o[0],d=o[1];d&&this.videoElement.setAttribute(l,l==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,s){var a=this;if(t!==this.originalVideo){for(var o=this.videoElement.getElementsByTagName("SOURCE");o[0];)o[0].parentNode.removeChild(o[0]);tm(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,s),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),jJ=typeof Po=="object"&&Po&&Po.Object===Object&&Po,KJ=typeof self=="object"&&self&&self.Object===Object&&self;jJ||KJ||Function("return this")();function J3(){return typeof window<"u"}function UJ(e){return e instanceof HTMLImageElement}function zJ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,s=i===void 0?.1:i;return qJ.bind(null,r,s)}function qJ(e,t,n,r,i,s){return e===void 0&&(e="0px"),t===void 0&&(t=.1),J3()?new Promise(function(a){var o=function(){return a({lazyload:!0})},l=HJ(n,o,e,t);i.cleanupCallbacks.push(function(){l(),a("canceled")})}):!1}function WJ(){return window&&"IntersectionObserver"in window}function HJ(e,t,n,r){try{if(!WJ())return t(),function(){};var i=new IntersectionObserver(function(s){s.forEach(function(a){a.isIntersecting&&(i.unobserve(a.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function GJ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return YJ.bind(null,r)}function YJ(e,t,n,r,i,s){KD[e]||(e="vectorize");var a=KD[e].actions,o=_o(n);if(a.forEach(function(d){o.addAction(d)}),!J3())return n.transformation=o.transformation,!0;if(UJ(t)){o.transformation.actions.forEach(function(d,h){d instanceof _s&&d.getActionTag()==="responsive"&&delete o.transformation.actions[h]});var l=Hb(i,{placeholder:!0});return t.src=o.toURL(l),t.onerror=function(){t.src=UD},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=UD,d("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function ZJ(e,t,n){var r=_o(t);if(e)for(var i=0;i<e.length;i++){var s=e[i](null,r);if(!s)break}return r.toURL(n?{trackedAnalytics:n}:null)}function nm(e){e.cleanupCallbacks.forEach(function(t){t()})}/*! *****************************************************************************
113
- Copyright (c) Microsoft Corporation.
114
-
115
- Permission to use, copy, modify, and/or distribute this software for any
116
- purpose with or without fee is hereby granted.
117
-
118
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
119
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
120
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
121
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
122
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
123
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
124
- PERFORMANCE OF THIS SOFTWARE.
125
- ***************************************************************************** */var Yb=function(e,t){return Yb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Yb(e,t)};function Wk(e,t){Yb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var fd=function(){return fd=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},fd.apply(this,arguments)};function Hk(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 M0={sdkSemver:"1.14.3",techVersion:T.version,sdkCode:"J"},XJ=function(e){Wk(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=T.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new iX(this.imageRef.current,this.props.cldImg,this.props.plugins,M0)},t.prototype.componentDidUpdate=function(){nm(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,M0)},t.prototype.componentWillUnmount=function(){nm(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=Hk(n,["cldImg","plugins"]);if(J3())return T.createElement("img",fd({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=ZJ(this.props.plugins,this.props.cldImg,M0);return T.createElement("img",fd({},r,{src:i}))},t}(T.Component),JJ=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){Wk(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=T.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new NJ(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(){nm(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){nm(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return JJ.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=Hk(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return T.createElement("video",fd({},r,{ref:this.attachRef}))},t})(T.Component);function QJ(e){return!(typeof e!="object"||e instanceof Array)}class eQ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return QJ(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 WD=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class Q3 extends eQ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,WD);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,WD);return new Q3(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 dd{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 tQ extends Error{constructor(t="Unsupported"){super(t)}}function e$(e){return new tQ(e)}function nQ(){return this._qualifierModel||{error:e$(`unsupported qualifier ${this.constructor.name}`)}}class rQ{constructor(){this._qualifierModel={}}toJson(){return nQ.apply(this)}}class ng extends rQ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof dd?this.qualifierValue=n:(this.qualifierValue=new dd,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 Mo extends ng{constructor(t,n){let r;n?r=new dd([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function iQ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function sQ(){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:e$(`unsupported action ${this.constructor.name}`)}}class aQ{constructor(){this._actionModel={}}toJson(){return sQ.apply(this)}}class t$ extends aQ{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(),iQ(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 Mo(r)):this.qualifiers.set(n,new ng(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Mo(t)):t instanceof Mo&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function oQ(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class uQ extends t${constructor(t){super(),this._actionModel={},this.addQualifier(new ng("b",new dd(oQ(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class HD{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:e$(`unsupported action ${this.constructor.name}`)}}}function lQ(e){const t=e;return"error"in t&&!!t.error}function cQ(){return new Mo("lossy")}function fQ(){return new Mo("preserve_transparency")}function dQ(e){return new Mo("progressive",e)}class hQ extends dd{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Ju(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const pQ={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},mQ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},gQ={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},vQ={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},yQ={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},bQ={444:"CHROMA_444",420:"CHROMA_420"},$Q={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Ju(bQ);Ju($Q);Ju(pQ);const xQ=Ju(mQ);Ju(gQ);Ju(vQ);Ju(yQ);class wQ extends t${constructor(t,n,r){super(),this._actionModel={};let i;n instanceof hQ?i=n.getValue():i=n,this._actionModel.actionType=xQ[t],this._actionModel[r]=i,this.addQualifier(new ng(t,n))}}class CQ extends Mo{constructor(t){super("progressive",t)}}class rm extends wQ{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(cQ()),this}progressive(t){return t instanceof CQ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(dQ(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(fQ()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),s&&a.preserveTransparency(),a}}class rg{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 HD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof rg?this.actions=this.actions.concat(t.actions):this.actions.push(new HD(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 rm("q",t)),this}format(t){return this.addAction(new rm("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 uQ(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new t$;let r=t;return typeof t=="string"&&(r=new Mo(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(lQ(r))return r;t.push(r)}return{actions:t}}}class EQ extends rg{}class SQ extends rg{}function DQ(e){return e.match(/^https?:\//)}function AQ(e){return e.indexOf("/")<0}function TQ(e){return e.match(/^v[0-9]+/)}function PQ(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,s=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!s&&r?`https://${e}-res.cloudinary.com`:n&&!s?`https://res.cloudinary.com/${e}`:n&&s&&r?`https://${s}`:n&&s?`https://${s}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function _Q(e){return e||"image"}function MQ(e){return e||"upload"}function FQ(e,t,n){const r=n!==!1;return t?`v${t}`:TQ(e)||DQ(e)||AQ(e)?"":r?"v1":""}function n$(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=RQ(i,r/i.length)),i.slice(0,r)+String(e))}function RQ(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const kQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",im={};let GD=0;kQ.split("").forEach(e=>{let t=GD.toString(2);t=n$(t,6,"0"),im[t]=e,GD++});function OQ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function IQ(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 n$(t,2,"0")}).join(".")}function YD(e){let t="";const r=e.split(".").length*6,i=OQ(e),s=IQ(i);let o=parseInt(s.split(".").join("")).toString(2);if(o=n$(o,r,"0"),o.length%6!==0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach(l=>{t+=im[l]}),t}function LQ(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 BQ="1.21.0";function VQ(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),s=r.padStart(6,"0"),a=i.padStart(6,"0");return im[s]+im[a]}function NQ(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function jQ(e){const t={techVersion:NQ(),sdkCode:"T",sdkSemver:BQ.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 ZD(e){const t=jQ(e),n=LQ(t);try{const r=KQ(n.techVersion),i=YD(n.sdkSemver),s=YD(r),a=VQ(n.osVersion),o=n.feature,l=n.sdkCode,{product:d,osType:h}=n;return`D${d}${l}${i}${s}${h}${a}${o}`}catch{return"E"}}function KQ(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const XD={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class UQ{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new Q3(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=_Q(this.assetType),n=MQ(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,s=XD[`${t}/${n}`],a=this.urlConfig.useRootPath,o=this.urlConfig.shorten;if(a){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(o&&i==="image/upload")return"iu";if(r){if(s)return s;throw new Error(`URL Suffix only supported for ${Object.keys(XD).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=PQ(this.cloudName,this.urlConfig),i=t?t.toString():"",s=FQ(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,s,a.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const o=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),s,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!a.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);l&&h.set("_a",ZD(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=${ZD(n)}`);return d?`${o}?${d}`:o}}}class Gk extends UQ{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 rm("q",t)),this}format(t){return this.addAction(new rm("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 zQ extends Gk{constructor(t,n,r){super(t,n,r,new EQ)}}class qQ extends Gk{constructor(t,n,r){super(t,n,r,new SQ),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class WQ{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new zQ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new qQ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var F0,JD;function HQ(){if(JD)return F0;JD=1;var e=nk(),t=N3(),n=1,r=2;function i(s,a,o,l){var d=o.length,h=d,m=!l;if(s==null)return!h;for(s=Object(s);d--;){var g=o[d];if(m&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++d<h;){g=o[d];var b=g[0],x=s[b],w=g[1];if(m&&g[2]){if(x===void 0&&!(b in s))return!1}else{var S=new e;if(l)var E=l(x,w,b,s,a,S);if(!(E===void 0?t(w,x,n|r,l,S):E))return!1}}return!0}return F0=i,F0}var R0,QD;function Yk(){if(QD)return R0;QD=1;var e=Ec();function t(n){return n===n&&!e(n)}return R0=t,R0}var k0,eA;function GQ(){if(eA)return k0;eA=1;var e=Yk(),t=V3();function n(r){for(var i=t(r),s=i.length;s--;){var a=i[s],o=r[a];i[s]=[a,o,e(o)]}return i}return k0=n,k0}var O0,tA;function Zk(){if(tA)return O0;tA=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return O0=e,O0}var I0,nA;function YQ(){if(nA)return I0;nA=1;var e=HQ(),t=GQ(),n=Zk();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(a){return a===i||e(a,i,s)}}return I0=r,I0}var L0,rA;function r$(){if(rA)return L0;rA=1;var e=Cc(),t=Dc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return L0=r,L0}var B0,iA;function i$(){if(iA)return B0;iA=1;var e=da(),t=r$(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,a){if(e(s))return!1;var o=typeof s;return o=="number"||o=="symbol"||o=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||a!=null&&s in Object(a)}return B0=i,B0}var V0,sA;function ZQ(){if(sA)return V0;sA=1;var e=R3(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var a=arguments,o=i?i.apply(this,a):a[0],l=s.cache;if(l.has(o))return l.get(o);var d=r.apply(this,a);return s.cache=l.set(o,d)||l,d};return s.cache=new(n.Cache||e),s}return n.Cache=e,V0=n,V0}var N0,aA;function XQ(){if(aA)return N0;aA=1;var e=ZQ(),t=500;function n(r){var i=e(r,function(a){return s.size===t&&s.clear(),a}),s=i.cache;return i}return N0=n,N0}var j0,oA;function JQ(){if(oA)return j0;oA=1;var e=XQ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(a,o,l,d){s.push(l?d.replace(n,"$1"):o||a)}),s});return j0=r,j0}var K0,uA;function QQ(){if(uA)return K0;uA=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=n(t[r],r,t);return s}return K0=e,K0}var U0,lA;function eee(){if(lA)return U0;lA=1;var e=Hm(),t=QQ(),n=da(),r=r$(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function a(o){if(typeof o=="string")return o;if(n(o))return t(o,a)+"";if(r(o))return s?s.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return U0=a,U0}var z0,cA;function tee(){if(cA)return z0;cA=1;var e=eee();function t(n){return n==null?"":e(n)}return z0=t,z0}var q0,fA;function Xk(){if(fA)return q0;fA=1;var e=da(),t=i$(),n=JQ(),r=tee();function i(s,a){return e(s)?s:t(s,a)?[s]:n(r(s))}return q0=i,q0}var W0,dA;function ig(){if(dA)return W0;dA=1;var e=r$();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return W0=t,W0}var H0,hA;function Jk(){if(hA)return H0;hA=1;var e=Xk(),t=ig();function n(r,i){i=e(i,r);for(var s=0,a=i.length;r!=null&&s<a;)r=r[t(i[s++])];return s&&s==a?r:void 0}return H0=n,H0}var G0,pA;function nee(){if(pA)return G0;pA=1;var e=Jk();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return G0=t,G0}var Y0,mA;function ree(){if(mA)return Y0;mA=1;function e(t,n){return t!=null&&n in Object(t)}return Y0=e,Y0}var Z0,gA;function iee(){if(gA)return Z0;gA=1;var e=Xk(),t=sk(),n=da(),r=O3(),i=I3(),s=ig();function a(o,l,d){l=e(l,o);for(var h=-1,m=l.length,g=!1;++h<m;){var b=s(l[h]);if(!(g=o!=null&&d(o,b)))break;o=o[b]}return g||++h!=m?g:(m=o==null?0:o.length,!!m&&i(m)&&r(b,m)&&(n(o)||t(o)))}return Z0=a,Z0}var X0,vA;function see(){if(vA)return X0;vA=1;var e=ree(),t=iee();function n(r,i){return r!=null&&t(r,i,e)}return X0=n,X0}var J0,yA;function aee(){if(yA)return J0;yA=1;var e=N3(),t=nee(),n=see(),r=i$(),i=Yk(),s=Zk(),a=ig(),o=1,l=2;function d(h,m){return r(h)&&i(m)?s(a(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,o|l)}}return J0=d,J0}var Q0,bA;function oee(){if(bA)return Q0;bA=1;function e(t){return t}return Q0=e,Q0}var e1,$A;function uee(){if($A)return e1;$A=1;function e(t){return function(n){return n==null?void 0:n[t]}}return e1=e,e1}var t1,xA;function lee(){if(xA)return t1;xA=1;var e=Jk();function t(n){return function(r){return e(r,n)}}return t1=t,t1}var n1,wA;function cee(){if(wA)return n1;wA=1;var e=uee(),t=lee(),n=i$(),r=ig();function i(s){return n(s)?e(r(s)):t(s)}return n1=i,n1}var r1,CA;function Qk(){if(CA)return r1;CA=1;var e=YQ(),t=aee(),n=oee(),r=da(),i=cee();function s(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):i(a)}return r1=s,r1}var i1,EA;function fee(){if(EA)return i1;EA=1;function e(t){return function(n,r,i){for(var s=-1,a=Object(n),o=i(n),l=o.length;l--;){var d=o[t?l:++s];if(r(a[d],d,a)===!1)break}return n}}return i1=e,i1}var s1,SA;function dee(){if(SA)return s1;SA=1;var e=fee(),t=e();return s1=t,s1}var a1,DA;function e7(){if(DA)return a1;DA=1;var e=dee(),t=V3();function n(r,i){return r&&e(r,i,t)}return a1=n,a1}var o1,AA;function hee(){if(AA)return o1;AA=1;var e=B3();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var a=i.length,o=r?a:-1,l=Object(i);(r?o--:++o<a)&&s(l[o],o,l)!==!1;);return i}}return o1=t,o1}var u1,TA;function pee(){if(TA)return u1;TA=1;var e=e7(),t=hee(),n=t(e);return u1=n,u1}var l1,PA;function mee(){if(PA)return l1;PA=1;var e=pee();function t(n,r){var i;return e(n,function(s,a,o){return i=r(s,a,o),!i}),!!i}return l1=t,l1}var c1,_A;function gee(){if(_A)return c1;_A=1;var e=_3(),t=B3(),n=O3(),r=Ec();function i(s,a,o){if(!r(o))return!1;var l=typeof a;return(l=="number"?t(o)&&n(a,o.length):l=="string"&&a in o)?e(o[a],s):!1}return c1=i,c1}var f1,MA;function vee(){if(MA)return f1;MA=1;var e=rk(),t=Qk(),n=mee(),r=da(),i=gee();function s(a,o,l){var d=r(a)?e:n;return l&&i(a,o,l)&&(o=void 0),d(a,t(o,3))}return f1=s,f1}var yee=vee();const bee=ci(yee);var d1={exports:{}},FA;function $ee(){return FA||(FA=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
126
- * Prism: Lightweight, robust, elegant syntax highlighting
127
- *
128
- * @license MIT <https://opensource.org/licenses/MIT>
129
- * @author Lea Verou <https://lea.verou.me>
130
- * @namespace
131
- * @public
132
- */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(A){return A instanceof l?new l(A.type,C(A.content),A.alias):Array.isArray(A)?A.map(C):A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++s}),C.__id},clone:function C(A,k){k=k||{};var M,R;switch(o.util.type(A)){case"Object":if(R=o.util.objId(A),k[R])return k[R];M={},k[R]=M;for(var K in A)A.hasOwnProperty(K)&&(M[K]=C(A[K],k));return M;case"Array":return R=o.util.objId(A),k[R]?k[R]:(M=[],k[R]=M,A.forEach(function(H,le){M[le]=C(H,k)}),M);default:return A}},getLanguage:function(C){for(;C;){var A=i.exec(C.className);if(A)return A[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,A){C.className=C.className.replace(RegExp(i,"gi"),""),C.classList.add("language-"+A)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(M){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(M.stack)||[])[1];if(C){var A=document.getElementsByTagName("script");for(var k in A)if(A[k].src==C)return A[k]}return null}},isActive:function(C,A,k){for(var M="no-"+A;C;){var R=C.classList;if(R.contains(A))return!0;if(R.contains(M))return!1;C=C.parentElement}return!!k}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(C,A){var k=o.util.clone(o.languages[C]);for(var M in A)k[M]=A[M];return k},insertBefore:function(C,A,k,M){M=M||o.languages;var R=M[C],K={};for(var H in R)if(R.hasOwnProperty(H)){if(H==A)for(var le in k)k.hasOwnProperty(le)&&(K[le]=k[le]);k.hasOwnProperty(H)||(K[H]=R[H])}var ae=M[C];return M[C]=K,o.languages.DFS(o.languages,function(I,$e){$e===ae&&I!=C&&(this[I]=K)}),K},DFS:function C(A,k,M,R){R=R||{};var K=o.util.objId;for(var H in A)if(A.hasOwnProperty(H)){k.call(A,H,A[H],M||H);var le=A[H],ae=o.util.type(le);ae==="Object"&&!R[K(le)]?(R[K(le)]=!0,C(le,k,null,R)):ae==="Array"&&!R[K(le)]&&(R[K(le)]=!0,C(le,k,H,R))}}},plugins:{},highlightAll:function(C,A){o.highlightAllUnder(document,C,A)},highlightAllUnder:function(C,A,k){var M={callback:k,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",M),M.elements=Array.prototype.slice.apply(M.container.querySelectorAll(M.selector)),o.hooks.run("before-all-elements-highlight",M);for(var R=0,K;K=M.elements[R++];)o.highlightElement(K,A===!0,M.callback)},highlightElement:function(C,A,k){var M=o.util.getLanguage(C),R=o.languages[M];o.util.setLanguage(C,M);var K=C.parentElement;K&&K.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(K,M);var H=C.textContent,le={element:C,language:M,grammar:R,code:H};function ae($e){le.highlightedCode=$e,o.hooks.run("before-insert",le),le.element.innerHTML=le.highlightedCode,o.hooks.run("after-highlight",le),o.hooks.run("complete",le),k&&k.call(le.element)}if(o.hooks.run("before-sanity-check",le),K=le.element.parentElement,K&&K.nodeName.toLowerCase()==="pre"&&!K.hasAttribute("tabindex")&&K.setAttribute("tabindex","0"),!le.code){o.hooks.run("complete",le),k&&k.call(le.element);return}if(o.hooks.run("before-highlight",le),!le.grammar){ae(o.util.encode(le.code));return}if(A&&r.Worker){var I=new Worker(o.filename);I.onmessage=function($e){ae($e.data)},I.postMessage(JSON.stringify({language:le.language,code:le.code,immediateClose:!0}))}else ae(o.highlight(le.code,le.grammar,le.language))},highlight:function(C,A,k){var M={code:C,grammar:A,language:k};if(o.hooks.run("before-tokenize",M),!M.grammar)throw new Error('The language "'+M.language+'" has no grammar.');return M.tokens=o.tokenize(M.code,M.grammar),o.hooks.run("after-tokenize",M),l.stringify(o.util.encode(M.tokens),M.language)},tokenize:function(C,A){var k=A.rest;if(k){for(var M in k)A[M]=k[M];delete A.rest}var R=new m;return g(R,R.head,C),h(C,R,A,R.head,0),x(R)},hooks:{all:{},add:function(C,A){var k=o.hooks.all;k[C]=k[C]||[],k[C].push(A)},run:function(C,A){var k=o.hooks.all[C];if(!(!k||!k.length))for(var M=0,R;R=k[M++];)R(A)}},Token:l};r.Prism=o;function l(C,A,k,M){this.type=C,this.content=A,this.alias=k,this.length=(M||"").length|0}l.stringify=function C(A,k){if(typeof A=="string")return A;if(Array.isArray(A)){var M="";return A.forEach(function(ae){M+=C(ae,k)}),M}var R={type:A.type,content:C(A.content,k),tag:"span",classes:["token",A.type],attributes:{},language:k},K=A.alias;K&&(Array.isArray(K)?Array.prototype.push.apply(R.classes,K):R.classes.push(K)),o.hooks.run("wrap",R);var H="";for(var le in R.attributes)H+=" "+le+'="'+(R.attributes[le]||"").replace(/"/g,"&quot;")+'"';return"<"+R.tag+' class="'+R.classes.join(" ")+'"'+H+">"+R.content+"</"+R.tag+">"};function d(C,A,k,M){C.lastIndex=A;var R=C.exec(k);if(R&&M&&R[1]){var K=R[1].length;R.index+=K,R[0]=R[0].slice(K)}return R}function h(C,A,k,M,R,K){for(var H in k)if(!(!k.hasOwnProperty(H)||!k[H])){var le=k[H];le=Array.isArray(le)?le:[le];for(var ae=0;ae<le.length;++ae){if(K&&K.cause==H+","+ae)return;var I=le[ae],$e=I.inside,we=!!I.lookbehind,W=!!I.greedy,ie=I.alias;if(W&&!I.pattern.global){var O=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,O+"g")}for(var L=I.pattern||I,B=M.next,he=R;B!==A.tail&&!(K&&he>=K.reach);he+=B.value.length,B=B.next){var U=B.value;if(A.length>C.length)return;if(!(U instanceof l)){var te=1,xe;if(W){if(xe=d(L,he,C,we),!xe||xe.index>=C.length)break;var Ye=xe.index,De=xe.index+xe[0].length,_e=he;for(_e+=B.value.length;Ye>=_e;)B=B.next,_e+=B.value.length;if(_e-=B.value.length,he=_e,B.value instanceof l)continue;for(var Me=B;Me!==A.tail&&(_e<De||typeof Me.value=="string");Me=Me.next)te++,_e+=Me.value.length;te--,U=C.slice(he,_e),xe.index-=he}else if(xe=d(L,0,U,we),!xe)continue;var Ye=xe.index,Ge=xe[0],Ae=U.slice(0,Ye),Ke=U.slice(Ye+Ge.length),We=he+U.length;K&&We>K.reach&&(K.reach=We);var Ve=B.prev;Ae&&(Ve=g(A,Ve,Ae),he+=Ae.length),b(A,Ve,te);var Te=new l(H,$e?o.tokenize(Ge,$e):Ge,ie,Ge);if(B=g(A,Ve,Te),Ke&&g(A,B,Ke),te>1){var tt={cause:H+","+ae,reach:We};h(C,A,k,B.prev,he,tt),K&&tt.reach>K.reach&&(K.reach=tt.reach)}}}}}}function m(){var C={value:null,prev:null,next:null},A={value:null,prev:C,next:null};C.next=A,this.head=C,this.tail=A,this.length=0}function g(C,A,k){var M=A.next,R={value:k,prev:A,next:M};return A.next=R,M.prev=R,C.length++,R}function b(C,A,k){for(var M=A.next,R=0;R<k&&M!==C.tail;R++)M=M.next;A.next=M,M.prev=A,C.length-=R}function x(C){for(var A=[],k=C.head.next;k!==C.tail;)A.push(k.value),k=k.next;return A}if(!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(C){var A=JSON.parse(C.data),k=A.language,M=A.code,R=A.immediateClose;r.postMessage(o.highlight(M,o.languages[k],k)),R&&r.close()},!1)),o;var w=o.util.currentScript();w&&(o.filename=w.src,w.hasAttribute("data-manual")&&(o.manual=!0));function S(){o.manual||o.highlightAll()}if(!o.manual){var E=document.readyState;E==="loading"||E==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",S):window.requestAnimationFrame?window.requestAnimationFrame(S):window.setTimeout(S,16)}return o}(t);e.exports&&(e.exports=n),typeof Yi<"u"&&(Yi.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,s){var a={};a["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};o["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:o},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 s=r.languages.markup;s&&(s.tag.addInlined("style","css"),s.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(w,S){return"✖ Error "+w+" while fetching file: "+S},s="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",l="loading",d="loaded",h="failed",m="pre[data-src]:not(["+o+'="'+d+'"]):not(['+o+'="'+l+'"])';function g(w,S,E){var C=new XMLHttpRequest;C.open("GET",w,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?S(C.responseText):C.status>=400?E(i(C.status,C.statusText)):E(s))},C.send(null)}function b(w){var S=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(S){var E=Number(S[1]),C=S[2],A=S[3];return C?A?[E,Number(A)]:[E,void 0]:[E,E]}}n.hooks.add("before-highlightall",function(w){w.selector+=", "+m}),n.hooks.add("before-sanity-check",function(w){var S=w.element;if(S.matches(m)){w.code="",S.setAttribute(o,l);var E=S.appendChild(document.createElement("CODE"));E.textContent=r;var C=S.getAttribute("data-src"),A=w.language;if(A==="none"){var k=(/\.(\w+)$/.exec(C)||[,"none"])[1];A=a[k]||k}n.util.setLanguage(E,A),n.util.setLanguage(S,A);var M=n.plugins.autoloader;M&&M.loadLanguages(A),g(C,function(R){S.setAttribute(o,d);var K=b(S.getAttribute("data-range"));if(K){var H=R.split(/\r\n?|\n/g),le=K[0],ae=K[1]==null?H.length:K[1];le<0&&(le+=H.length),le=Math.max(0,Math.min(le-1,H.length)),ae<0&&(ae+=H.length),ae=Math.max(0,Math.min(ae,H.length)),R=H.slice(le,ae).join(`
133
- `),S.hasAttribute("data-start")||S.setAttribute("data-start",String(le+1))}E.textContent=R,n.highlightElement(E)},function(R){S.setAttribute(o,h),E.textContent=R})}}),n.plugins.fileHighlight={highlight:function(S){for(var E=(S||document).querySelectorAll(m),C=0,A;A=E[C++];)n.highlightElement(A)}};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)}}()}(d1)),d1.exports}var xee=$ee();(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 s(g){g()}var a=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 o(g,b){var x=getComputedStyle(g),w=getComputedStyle(b);function S(E){return+E.substr(0,E.length-2)}return b.offsetTop+S(w.borderTopWidth)+S(w.paddingTop)-S(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,w){x=typeof x=="string"?x:b.getAttribute("data-line")||"";var S=x.replace(/\s+/g,"").split(",").filter(Boolean),E=+b.getAttribute("data-line-offset")||0,C=a()?parseInt:parseFloat,A=C(getComputedStyle(b).lineHeight),k=Prism.util.isActive(b,e),M=b.querySelector("code"),R=k?b:M||b,K=[],H=M.textContent.match(n),le=H?H.length+1:1,ae=!M||R==M?0:o(b,M);S.forEach(function(we){var W=we.split("-"),ie=+W[0],O=+W[1]||ie;if(O=Math.min(le+E,O),!(O<ie)){var L=b.querySelector('.line-highlight[data-range="'+we+'"]')||document.createElement("div");if(K.push(function(){L.setAttribute("aria-hidden","true"),L.setAttribute("data-range",we),L.className=(w||"")+" line-highlight"}),k&&Prism.plugins.lineNumbers){var B=Prism.plugins.lineNumbers.getLine(b,ie),he=Prism.plugins.lineNumbers.getLine(b,O);if(B){var U=B.offsetTop+ae+"px";K.push(function(){L.style.top=U})}if(he){var te=he.offsetTop-B.offsetTop+he.offsetHeight+"px";K.push(function(){L.style.height=te})}}else K.push(function(){L.setAttribute("data-start",String(ie)),O>ie&&L.setAttribute("data-end",String(O)),L.style.top=(ie-E-1)*A+ae+"px",L.textContent=new Array(O-ie+2).join(`
134
- `)});K.push(function(){L.style.width=b.scrollWidth+"px"}),K.push(function(){R.appendChild(L)})}});var I=b.id;if(k&&Prism.util.isActive(b,t)&&I){i(b,t)||K.push(function(){b.classList.add(t)});var $e=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(we,W){var ie=W+$e;we.onclick=function(){var O=I+"."+ie;d=!1,location.hash=O,setTimeout(function(){d=!0},1)}})}return function(){K.forEach(s)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(E){E.parentNode.removeChild(E)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var x=g.slice(0,g.lastIndexOf(".")),w=document.getElementById(x);if(w){w.hasAttribute("data-line")||w.setAttribute("data-line","");var S=Prism.plugins.lineHighlight.highlightLines(w,b,"temporary ");S(),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(w){x+=w.textContent.length,w.parentNode.removeChild(w)}),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 w=Prism.plugins.lineNumbers,S=b.plugins&&b.plugins.lineNumbers;if(i(x,e)&&w&&!S)Prism.hooks.add("line-numbers",g);else{var E=Prism.plugins.lineHighlight.highlightLines(x);E(),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(s)})})();const t7=T.createContext({});function Kd(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const s$=typeof window<"u",n7=s$?T.useLayoutEffect:T.useEffect,a$=T.createContext(null);function o$(e,t){e.indexOf(t)===-1&&e.push(t)}function u$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function wee([...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,[s]=e.splice(t,1);e.splice(i,0,s)}return e}const Ya=(e,t,n)=>n>t?t:n<e?e:n;function Zb(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Ac=()=>{},Ts=()=>{};process.env.NODE_ENV!=="production"&&(Ac=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Zb(t,n))},Ts=(e,t,n)=>{if(!e)throw new Error(Zb(t,n))});const Za={},r7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function i7(e){return typeof e=="object"&&e!==null}const s7=e=>/^0[^.\s]+$/u.test(e);function l$(e){let t;return()=>(t===void 0&&(t=e()),t)}const es=e=>e,Cee=(e,t)=>n=>t(e(n)),Ud=(...e)=>e.reduce(Cee),hd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let c$=class{constructor(){this.subscriptions=[]}add(t){return o$(this.subscriptions,t),()=>u$(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 s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Ss=e=>e*1e3,aa=e=>e/1e3;function a7(e,t){return t?e*(1e3/t):0}const RA=new Set;function f$(e,t,n){e||RA.has(t)||(console.warn(Zb(t,n)),RA.add(t))}const o7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Eee=1e-7,See=12;function Dee(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=o7(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>Eee&&++o<See);return a}function zd(e,t,n,r){if(e===t&&n===r)return es;const i=s=>Dee(s,0,1,e,n);return s=>s===0||s===1?s:o7(i(s),t,r)}const u7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,l7=e=>t=>1-e(1-t),c7=zd(.33,1.53,.69,.99),d$=l7(c7),f7=u7(d$),d7=e=>(e*=2)<1?.5*d$(e):.5*(2-Math.pow(2,-10*(e-1))),h$=e=>1-Math.sin(Math.acos(e)),h7=l7(h$),p7=u7(h$),Aee=zd(.42,0,1,1),Tee=zd(0,0,.58,1),m7=zd(.42,0,.58,1),Pee=e=>Array.isArray(e)&&typeof e[0]!="number",g7=e=>Array.isArray(e)&&typeof e[0]=="number",kA={linear:es,easeIn:Aee,easeInOut:m7,easeOut:Tee,circIn:h$,circInOut:p7,circOut:h7,backIn:d$,backInOut:f7,backOut:c7,anticipate:d7},_ee=e=>typeof e=="string",OA=e=>{if(g7(e)){Ts(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return zd(t,n,r,i)}else if(_ee(e))return Ts(kA[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),kA[e];return e},Gh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Mee(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(h){a.has(h)&&(d.schedule(h),e()),h(o)}const d={schedule:(h,m=!1,g=!1)=>{const x=g&&i?n:r;return m&&a.add(h),x.has(h)||x.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(o=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const Fee=40;function v7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Gh.reduce((A,k)=>(A[k]=Mee(s),A),{}),{setup:o,read:l,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:x}=a,w=()=>{const A=Za.useManualTiming?i.timestamp:performance.now();n=!1,Za.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(A-i.timestamp,Fee),1)),i.timestamp=A,i.isProcessing=!0,o.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(w))},S=()=>{n=!0,r=!0,i.isProcessing||e(w)};return{schedule:Gh.reduce((A,k)=>{const M=a[k];return A[k]=(R,K=!1,H=!1)=>(n||S(),M.schedule(R,K,H)),A},{}),cancel:A=>{for(let k=0;k<Gh.length;k++)a[Gh[k]].cancel(A)},state:i,steps:a}}const{schedule:En,cancel:Xa,state:xr,steps:h1}=v7(typeof requestAnimationFrame<"u"?requestAnimationFrame:es,!0);let xp;function Ree(){xp=void 0}const oi={now:()=>(xp===void 0&&oi.set(xr.isProcessing||Za.useManualTiming?xr.timestamp:performance.now()),xp),set:e=>{xp=e,queueMicrotask(Ree)}},y7=e=>t=>typeof t=="string"&&t.startsWith(e),p$=y7("--"),kee=y7("var(--"),m$=e=>kee(e)?Oee.test(e.split("/*")[0].trim()):!1,Oee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Tc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},pd={...Tc,transform:e=>Ya(0,1,e)},Yh={...Tc,default:1},Gf=e=>Math.round(e*1e5)/1e5,g$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Iee(e){return e==null}const Lee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,v$=(e,t)=>n=>!!(typeof n=="string"&&Lee.test(n)&&n.startsWith(e)||t&&!Iee(n)&&Object.prototype.hasOwnProperty.call(n,t)),b7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(g$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},Bee=e=>Ya(0,255,e),p1={...Tc,transform:e=>Math.round(Bee(e))},Eu={test:v$("rgb","red"),parse:b7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+p1.transform(e)+", "+p1.transform(t)+", "+p1.transform(n)+", "+Gf(pd.transform(r))+")"};function Vee(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 Xb={test:v$("#"),parse:Vee,transform:Eu.transform},qd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bo=qd("deg"),oa=qd("%"),At=qd("px"),Nee=qd("vh"),jee=qd("vw"),IA={...oa,parse:e=>oa.parse(e)/100,transform:e=>oa.transform(e*100)},Vl={test:v$("hsl","hue"),parse:b7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+oa.transform(Gf(t))+", "+oa.transform(Gf(n))+", "+Gf(pd.transform(r))+")"},tr={test:e=>Eu.test(e)||Xb.test(e)||Vl.test(e),parse:e=>Eu.test(e)?Eu.parse(e):Vl.test(e)?Vl.parse(e):Xb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Eu.transform(e):Vl.transform(e),getAnimatableNone:e=>{const t=tr.parse(e);return t.alpha=0,tr.transform(t)}},Kee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Uee(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(g$))==null?void 0:t.length)||0)+(((n=e.match(Kee))==null?void 0:n.length)||0)>0}const $7="number",x7="color",zee="var",qee="var(",LA="${}",Wee=/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 s=0;const o=t.replace(Wee,l=>(tr.test(l)?(r.color.push(s),i.push(x7),n.push(tr.parse(l))):l.startsWith(qee)?(r.var.push(s),i.push(zee),n.push(l)):(r.number.push(s),i.push($7),n.push(parseFloat(l))),++s,LA)).split(LA);return{values:n,split:o,indexes:r,types:i}}function w7(e){return md(e).values}function C7(e){const{split:t,types:n}=md(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===$7?s+=Gf(i[a]):o===x7?s+=tr.transform(i[a]):s+=i[a]}return s}}const Hee=e=>typeof e=="number"?0:tr.test(e)?tr.getAnimatableNone(e):e;function Gee(e){const t=w7(e);return C7(e)(t.map(Hee))}const Ro={test:Uee,parse:w7,createTransformer:C7,getAnimatableNone:Gee};function m1(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 Yee({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=m1(l,o,e+1/3),s=m1(l,o,e),a=m1(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function sm(e,t){return n=>n>0?t:e}const Pn=(e,t,n)=>e+(t-e)*n,g1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Zee=[Xb,Eu,Vl],Xee=e=>Zee.find(t=>t.test(e));function BA(e){const t=Xee(e);if(Ac(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Vl&&(n=Yee(n)),n}const VA=(e,t)=>{const n=BA(e),r=BA(t);if(!n||!r)return sm(e,t);const i={...n};return s=>(i.red=g1(n.red,r.red,s),i.green=g1(n.green,r.green,s),i.blue=g1(n.blue,r.blue,s),i.alpha=Pn(n.alpha,r.alpha,s),Eu.transform(i))},Jb=new Set(["none","hidden"]);function Jee(e,t){return Jb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Qee(e,t){return n=>Pn(e,t,n)}function y$(e){return typeof e=="number"?Qee:typeof e=="string"?m$(e)?sm:tr.test(e)?VA:nte:Array.isArray(e)?E7:typeof e=="object"?tr.test(e)?VA:ete:sm}function E7(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>y$(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function ete(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=y$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function tte(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}const nte=(e,t)=>{const n=Ro.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?Jb.has(e)&&!i.values.length||Jb.has(t)&&!r.values.length?Jee(e,t):Ud(E7(tte(r,i),i.values),n):(Ac(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),sm(e,t))};function S7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pn(e,t,n):y$(e)(e,t)}const rte=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>En.update(t,n),stop:()=>Xa(t),now:()=>xr.isProcessing?xr.timestamp:oi.now()}},D7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},am=2e4;function b$(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<am;)t+=n,r=e.next(t);return t>=am?1/0:t}function ite(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(b$(r),am);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:aa(i)}}const ste=5;function A7(e,t,n){const r=Math.max(t-ste,0);return a7(n-e(r),t-r)}const Fn={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},v1=.001;function ate({duration:e=Fn.duration,bounce:t=Fn.bounce,velocity:n=Fn.velocity,mass:r=Fn.mass}){let i,s;Ac(e<=Ss(Fn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Ya(Fn.minDamping,Fn.maxDamping,a),e=Ya(Fn.minDuration,Fn.maxDuration,aa(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,b=Qb(d,a),x=Math.exp(-m);return v1-g/b*x},s=d=>{const m=d*a*e,g=m*n+n,b=Math.pow(a,2)*Math.pow(d,2)*e,x=Math.exp(-m),w=Qb(Math.pow(d,2),a);return(-i(d)+v1>0?-1:1)*((g-b)*x)/w}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-v1+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,l=ute(i,s,o);if(e=Ss(e),isNaN(l))return{stiffness:Fn.stiffness,damping:Fn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const ote=12;function ute(e,t,n){let r=n;for(let i=1;i<ote;i++)r=r-e(r)/t(r);return r}function Qb(e,t){return e*Math.sqrt(1-t*t)}const lte=["duration","bounce"],cte=["stiffness","damping","mass"];function NA(e,t){return t.some(n=>e[n]!==void 0)}function fte(e){let t={velocity:Fn.velocity,stiffness:Fn.stiffness,damping:Fn.damping,mass:Fn.mass,isResolvedFromDuration:!1,...e};if(!NA(e,cte)&&NA(e,lte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ya(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Fn.mass,stiffness:i,damping:s}}else{const n=ate(e);t={...t,...n,mass:Fn.mass},t.isResolvedFromDuration=!0}return t}function om(e=Fn.visualDuration,t=Fn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=fte({...n,velocity:-aa(n.velocity||0)}),x=g||0,w=d/(2*Math.sqrt(l*h)),S=a-s,E=aa(Math.sqrt(l/h)),C=Math.abs(S)<5;r||(r=C?Fn.restSpeed.granular:Fn.restSpeed.default),i||(i=C?Fn.restDelta.granular:Fn.restDelta.default);let A;if(w<1){const M=Qb(E,w);A=R=>{const K=Math.exp(-w*E*R);return a-K*((x+w*E*S)/M*Math.sin(M*R)+S*Math.cos(M*R))}}else if(w===1)A=M=>a-Math.exp(-E*M)*(S+(x+E*S)*M);else{const M=E*Math.sqrt(w*w-1);A=R=>{const K=Math.exp(-w*E*R),H=Math.min(M*R,300);return a-K*((x+w*E*S)*Math.sinh(H)+M*S*Math.cosh(H))/M}}const k={calculatedDuration:b&&m||null,next:M=>{const R=A(M);if(b)o.done=M>=m;else{let K=M===0?x:0;w<1&&(K=M===0?Ss(x):A7(A,M,R));const H=Math.abs(K)<=r,le=Math.abs(a-R)<=i;o.done=H&&le}return o.value=o.done?a:R,o},toString:()=>{const M=Math.min(b$(k),am),R=D7(K=>k.next(M*K).value,M,30);return M+"ms "+R},toTransition:()=>{}};return k}om.applyToOptions=e=>{const t=ite(e,100,om);return e.ease=t.ease,e.duration=Ss(t.duration),e.type="keyframes",e};function e4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=H=>o!==void 0&&H<o||l!==void 0&&H>l,x=H=>o===void 0?l:l===void 0||Math.abs(o-H)<Math.abs(l-H)?o:l;let w=n*t;const S=m+w,E=a===void 0?S:a(S);E!==S&&(w=E-m);const C=H=>-w*Math.exp(-H/r),A=H=>E+C(H),k=H=>{const le=C(H),ae=A(H);g.done=Math.abs(le)<=d,g.value=g.done?E:ae};let M,R;const K=H=>{b(g.value)&&(M=H,R=om({keyframes:[g.value,x(g.value)],velocity:A7(A,H,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return K(0),{calculatedDuration:null,next:H=>{let le=!1;return!R&&M===void 0&&(le=!0,k(H),K(H)),M!==void 0&&H>=M?R.next(H-M):(!le&&k(H),g)}}}function dte(e,t,n){const r=[],i=n||Za.mix||S7,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||es:t;o=Ud(l,o)}r.push(o)}return r}function T7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Ts(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=dte(t,r,i),l=o.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=hd(e[m],e[m+1],h);return o[m](g)};return n?h=>d(Ya(e[0],e[s-1],h)):d}function hte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=hd(0,t,r);e.push(Pn(n,1,i))}}function pte(e){const t=[0];return hte(t,e.length-1),t}function mte(e,t){return e.map(n=>n*t)}function gte(e,t){return e.map(()=>t||m7).splice(0,e.length-1)}function Nl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Pee(r)?r.map(OA):OA(r),s={done:!1,value:t[0]},a=mte(n&&n.length===t.length?n:pte(t),e),o=T7(a,t,{ease:Array.isArray(i)?i:gte(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const vte=e=>e!==null;function $$(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(vte),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const yte={decay:e4,inertia:e4,tween:Nl,keyframes:Nl,spring:om};function P7(e){typeof e.type=="string"&&(e.type=yte[e.type])}let x$=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}};const bte=e=>e/100;let w$=class extends x${constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==oi.now()&&this.tick(oi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;P7(t);const{type:n=Nl,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Nl;process.env.NODE_ENV!=="production"&&l!==Nl&&Ts(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,"spring-two-frames"),l!==Nl&&typeof o[0]!="number"&&(this.mixKeyframes=Ud(bte,S7(o[0],o[1])),o=[0,100]);const d=l({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=b$(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:x,onUpdate:w,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const E=this.currentTime-d*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?E<0:E>i;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,k=r;if(m){const H=Math.min(this.currentTime,i)/o;let le=Math.floor(H),ae=H%1;!ae&&H>=1&&(ae=1),ae===1&&le--,le=Math.min(le,m+1),!!(le%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/o)):g==="mirror"&&(k=a)),A=Ya(0,1,ae)*o}const M=C?{done:!1,value:h[0]}:k.next(A);s&&(M.value=s(M.value));let{done:R}=M;!C&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return K&&x!==e4&&(M.value=$$(h,this.options,S,this.speed)),w&&w(M.value),K&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return aa(this.calculatedDuration)}get time(){return aa(this.currentTime)}set time(t){var n;t=Ss(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(oi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=aa(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=rte,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(oi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}};function $te(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Su=e=>e*180/Math.PI,t4=e=>{const t=Su(Math.atan2(e[1],e[0]));return n4(t)},xte={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:t4,rotateZ:t4,skewX:e=>Su(Math.atan(e[1])),skewY:e=>Su(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},n4=e=>(e=e%360,e<0&&(e+=360),e),jA=t4,KA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),UA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),wte={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:KA,scaleY:UA,scale:e=>(KA(e)+UA(e))/2,rotateX:e=>n4(Su(Math.atan2(e[6],e[5]))),rotateY:e=>n4(Su(Math.atan2(-e[2],e[0]))),rotateZ:jA,rotate:jA,skewX:e=>Su(Math.atan(e[4])),skewY:e=>Su(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function r4(e){return e.includes("scale")?1:0}function i4(e,t){if(!e||e==="none")return r4(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=wte,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=xte,i=o}if(!i)return r4(t);const s=r[t],a=i[1].split(",").map(Ete);return typeof s=="function"?s(a):a[s]}const Cte=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return i4(n,t)};function Ete(e){return parseFloat(e.trim())}const Pc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_c=new Set(Pc),zA=e=>e===Tc||e===At,Ste=new Set(["x","y","z"]),Dte=Pc.filter(e=>!Ste.has(e));function Ate(e){const t=[];return Dte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>i4(t,"x"),y:(e,{transform:t})=>i4(t,"y")};Mu.translateX=Mu.x;Mu.translateY=Mu.y;const Fu=new Set;let s4=!1,a4=!1,o4=!1;function _7(){if(a4){const e=Array.from(Fu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ate(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(([s,a])=>{var o;(o=r.getValue(s))==null||o.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}a4=!1,s4=!1,Fu.forEach(e=>e.complete(o4)),Fu.clear()}function M7(){Fu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(a4=!0)})}function Tte(){o4=!0,M7(),_7(),o4=!1}let C$=class{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Fu.add(this),s4||(s4=!0,En.read(M7),En.resolveKeyframes(_7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}$te(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Fu.delete(this)}cancel(){this.state==="scheduled"&&(Fu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const Pte=e=>e.startsWith("--");function _te(e,t,n){Pte(t)?e.style.setProperty(t,n):e.style[t]=n}const Mte=l$(()=>window.ScrollTimeline!==void 0),Fte={};function Rte(e,t){const n=l$(e);return()=>Fte[t]??n()}const F7=Rte(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jf([0,.65,.55,1]),circOut:jf([.55,0,1,.45]),backIn:jf([.31,.01,.66,-.59]),backOut:jf([.33,1.53,.69,.99])};function R7(e,t){if(e)return typeof e=="function"?F7()?D7(e,t):"ease-out":g7(e)?jf(e):Array.isArray(e)?e.map(n=>R7(n,t)||qA.easeOut):qA[e]}function kte(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},d=void 0){const h={[t]:n};l&&(h.offset=l);const m=R7(o,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function k7(e){return typeof e=="function"&&"applyToOptions"in e}function Ote({type:e,...t}){return k7(e)&&F7()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let Ite=class extends x${constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Ts(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=Ote(t);this.animation=kte(n,r,i,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const h=$$(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):_te(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return aa(Number(t))}get time(){return aa(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ss(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Mte()?(this.animation.timeline=t,es):n(this)}};const O7={anticipate:d7,backInOut:f7,circInOut:p7};function Lte(e){return e in O7}function Bte(e){typeof e.ease=="string"&&Lte(e.ease)&&(e.ease=O7[e.ease])}const WA=10;let Vte=class extends Ite{constructor(t){Bte(t),P7(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new w$({...a,autoplay:!1}),l=Ss(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-WA).value,o.sample(l).value,WA),o.stop()}};const HA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ro.test(e)||e==="0")&&!e.startsWith("url("));function Nte(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 jte(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=HA(i,t),o=HA(s,t);return Ac(a===o,`You are trying to animate ${t} from "${i}" to "${s}". "${a?s:i}" is not an animatable value.`,"value-not-animatable"),!a||!o?!1:Nte(e)||(n==="spring"||k7(n))&&r}const Kte=new Set(["opacity","clipPath","filter","transform"]),Ute=l$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function zte(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=t.owner.getProps();return Ute()&&n&&Kte.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const qte=40;let Wte=class extends x${constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:d,element:h,...m}){var x;super(),this.stop=()=>{var w,S;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(S=this.keyframeResolver)==null||S.cancel()},this.createdAt=oi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:l,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||C$;this.keyframeResolver=new b(o,(w,S,E)=>this.onKeyframesResolved(w,S,g,!E),l,d,h),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:l,isHandoff:d,onUpdate:h}=r;this.resolvedAt=oi.now(),jte(t,s,a,o)||((Za.instantAnimations||!l)&&(h==null||h($$(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>qte?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&zte(g)?new Vte({...g,element:g.motionValue.owner.current}):new w$(g);b.finished.then(()=>this.notifyFinished()).catch(es),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Tte()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}};const Hte=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Gte(e){const t=Hte.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Yte=4;function I7(e,t,n=1){Ts(n<=Yte,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=Gte(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return r7(a)?parseFloat(a):a}return m$(i)?I7(i,t,n+1):i}function E$(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const L7=new Set(["width","height","top","left","right","bottom",...Pc]),Zte={test:e=>e==="auto",parse:e=>e},B7=e=>t=>t.test(e),V7=[Tc,At,oa,bo,jee,Nee,Zte],GA=e=>V7.find(B7(e));function Xte(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||s7(e):!0}const Jte=new Set(["brightness","contrast","saturate","opacity"]);function Qte(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(g$)||[];if(!r)return e;const i=n.replace(r,"");let s=Jte.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const ene=/\b([a-z-]*)\(.*?\)/gu,u4={...Ro,getAnimatableNone:e=>{const t=e.match(ene);return t?t.map(Qte).join(" "):e}},YA={...Tc,transform:Math.round},tne={rotate:bo,rotateX:bo,rotateY:bo,rotateZ:bo,scale:Yh,scaleX:Yh,scaleY:Yh,scaleZ:Yh,skew:bo,skewX:bo,skewY:bo,distance:At,translateX:At,translateY:At,translateZ:At,x:At,y:At,z:At,perspective:At,transformPerspective:At,opacity:pd,originX:IA,originY:IA,originZ:At},S$={borderWidth:At,borderTopWidth:At,borderRightWidth:At,borderBottomWidth:At,borderLeftWidth:At,borderRadius:At,radius:At,borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomRightRadius:At,borderBottomLeftRadius:At,width:At,maxWidth:At,height:At,maxHeight:At,top:At,right:At,bottom:At,left:At,padding:At,paddingTop:At,paddingRight:At,paddingBottom:At,paddingLeft:At,margin:At,marginTop:At,marginRight:At,marginBottom:At,marginLeft:At,backgroundPositionX:At,backgroundPositionY:At,...tne,zIndex:YA,fillOpacity:pd,strokeOpacity:pd,numOctaves:YA},nne={...S$,color:tr,backgroundColor:tr,outlineColor:tr,fill:tr,stroke:tr,borderColor:tr,borderTopColor:tr,borderRightColor:tr,borderBottomColor:tr,borderLeftColor:tr,filter:u4,WebkitFilter:u4},N7=e=>nne[e];function j7(e,t){let n=N7(e);return n!==u4&&(n=Ro),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const rne=new Set(["auto","none","0"]);function ine(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!rne.has(s)&&md(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=j7(n,i)}let sne=class extends C${constructor(t,n,r,i,s){super(t,n,r,i,s,!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(),m$(d))){const h=I7(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!L7.has(r)||t.length!==2)return;const[i,s]=t,a=GA(i),o=GA(s);if(a!==o)if(zA(a)&&zA(o))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else Mu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Xte(t[i]))&&r.push(i);r.length&&ine(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=Mu[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 o;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Mu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([l,d])=>{t.getValue(l).set(d)}),this.resolveNoneKeyframes()}};function ane(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const K7=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function one(e){return i7(e)&&"offsetHeight"in e}const ZA=30,une=e=>!isNaN(parseFloat(e)),Yf={current:void 0};let lne=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var a,o;const s=oi.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&((o=this.events.renderRequest)==null||o.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=une(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&f$(!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 c$);const r=this.events[t].add(n);return t==="change"?()=>{r(),En.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Yf.current&&Yf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=oi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ZA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ZA);return a7(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Wu(e,t){return new lne(e,t)}const{schedule:D$}=v7(queueMicrotask,!1),ys={x:!1,y:!1};function U7(){return ys.x||ys.y}function cne(e){return e==="x"||e==="y"?ys[e]?null:(ys[e]=!0,()=>{ys[e]=!1}):ys.x||ys.y?null:(ys.x=ys.y=!0,()=>{ys.x=ys.y=!1})}function z7(e,t){const n=ane(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function XA(e){return!(e.pointerType==="touch"||U7())}function fne(e,t,n={}){const[r,i,s]=z7(e,n),a=o=>{if(!XA(o))return;const{target:l}=o,d=t(l,o);if(typeof d!="function"||!l)return;const h=m=>{XA(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}const q7=(e,t)=>t?e===t?!0:q7(e,t.parentElement):!1,A$=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,dne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hne(e){return dne.has(e.tagName)||e.tabIndex!==-1}const wp=new WeakSet;function JA(e){return t=>{t.key==="Enter"&&e(t)}}function y1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const pne=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=JA(()=>{if(wp.has(n))return;y1(n,"down");const i=JA(()=>{y1(n,"up")}),s=()=>y1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function QA(e){return A$(e)&&!U7()}function mne(e,t,n={}){const[r,i,s]=z7(e,n),a=o=>{const l=o.currentTarget;if(!QA(o))return;wp.add(l);const d=t(l,o),h=(b,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),wp.has(l)&&wp.delete(l),QA(b)&&typeof d=="function"&&d(b,{success:x})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||q7(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),one(o)&&(o.addEventListener("focus",d=>pne(d,i)),!hne(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function W7(e){return i7(e)&&"ownerSVGElement"in e}function gne(e){return W7(e)&&e.tagName==="svg"}function vne(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],a=e[3+n],o=T7(i,s,a);return t?o(r):o}const wr=e=>!!(e&&e.getVelocity),yne=[...V7,tr,Ro],bne=e=>yne.find(B7(e)),T$=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function $ne(e=!0){const t=T.useContext(a$);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=T.useId();T.useEffect(()=>{if(e)return i(s)},[e]);const a=T.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const H7=T.createContext({strict:!1}),eT={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"]},pc={};for(const e in eT)pc[e]={isEnabled:t=>eT[e].some(n=>!!t[n])};function xne(e){for(const t in e)pc[t]={...pc[t],...e[t]}}const wne=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 um(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wne.has(e)}let G7=e=>!um(e);function Cne(e){typeof e=="function"&&(G7=t=>t.startsWith("on")?!um(t):e(t))}try{Cne(require("@emotion/is-prop-valid").default)}catch{}function Ene(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(G7(i)||n===!0&&um(i)||!t&&!um(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const sg=T.createContext({});function ag(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function gd(e){return typeof e=="string"||Array.isArray(e)}const P$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_$=["initial",...P$];function og(e){return ag(e.animate)||_$.some(t=>gd(e[t]))}function Y7(e){return!!(og(e)||e.variants)}function Sne(e,t){if(og(e)){const{initial:n,animate:r}=e;return{initial:n===!1||gd(n)?n:void 0,animate:gd(r)?r:void 0}}return e.inherit!==!1?t:{}}function Dne(e){const{initial:t,animate:n}=Sne(e,T.useContext(sg));return T.useMemo(()=>({initial:t,animate:n}),[tT(t),tT(n)])}function tT(e){return Array.isArray(e)?e.join(" "):e}const vd={};function Ane(e){for(const t in e)vd[t]=e[t],p$(t)&&(vd[t].isCSSVariable=!0)}function Z7(e,{layout:t,layoutId:n}){return _c.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vd[e]||e==="opacity")}const Tne={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Pne=Pc.length;function _ne(e,t,n){let r="",i=!0;for(let s=0;s<Pne;s++){const a=Pc[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const d=K7(o,S$[a]);if(!l){i=!1;const h=Tne[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function M$(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const l in t){const d=t[l];if(_c.has(l)){a=!0;continue}else if(p$(l)){i[l]=d;continue}else{const h=K7(d,S$[l]);l.startsWith("origin")?(o=!0,s[l]=h):r[l]=h}}if(t.transform||(a||n?r.transform=_ne(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const F$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function X7(e,t,n){for(const r in t)!wr(t[r])&&!Z7(r,n)&&(e[r]=t[r])}function Mne({transformTemplate:e},t){return T.useMemo(()=>{const n=F$();return M$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Fne(e,t){const n=e.style||{},r={};return X7(r,n,e),Object.assign(r,Mne(e,t)),r}function Rne(e,t){const n={},r=Fne(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 kne={offset:"stroke-dashoffset",array:"stroke-dasharray"},One={offset:"strokeDashoffset",array:"strokeDasharray"};function Ine(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?kne:One;e[s.offset]=At.transform(-r);const a=At.transform(t),o=At.transform(n);e[s.array]=`${a} ${o}`}function J7(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,d,h){if(M$(e,o,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&Ine(m,i,s,a,!1)}const Q7=()=>({...F$(),attrs:{}}),eO=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Lne(e,t,n,r){const i=T.useMemo(()=>{const s=Q7();return J7(s,t,eO(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};X7(s,e.style,e),i.style={...s,...i.style}}return i}const Bne=["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 R$(e){return typeof e!="string"||e.includes("-")?!1:!!(Bne.indexOf(e)>-1||/[A-Z]/u.test(e))}function Vne(e,t,n,{latestValues:r},i,s=!1){const o=(R$(e)?Lne:Rne)(t,r,i,e),l=Ene(t,typeof e=="string",s),d=e!==T.Fragment?{...l,...o,ref:n}:{},{children:h}=t,m=T.useMemo(()=>wr(h)?h.get():h,[h]);return T.createElement(e,{...d,children:m})}function nT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function k$(e,t,n,r){if(typeof t=="function"){const[i,s]=nT(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=nT(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Cp(e){return wr(e)?e.get():e}function Nne({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:jne(n,r,i,e),renderState:t()}}function jne(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=Cp(s[g]);let{initial:a,animate:o}=e;const l=og(e),d=Y7(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?o:a;if(m&&typeof m!="boolean"&&!ag(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const x=k$(e,g[b]);if(x){const{transitionEnd:w,transition:S,...E}=x;for(const C in E){let A=E[C];if(Array.isArray(A)){const k=h?A.length-1:0;A=A[k]}A!==null&&(i[C]=A)}for(const C in w)i[C]=w[C]}}}return i}const tO=e=>(t,n)=>{const r=T.useContext(sg),i=T.useContext(a$),s=()=>Nne(e,t,r,i);return n?s():Kd(s)};function O$(e,t,n){var s;const{style:r}=e,i={};for(const a in r)(wr(r[a])||t.style&&wr(t.style[a])||Z7(a,e)||((s=n==null?void 0:n.getValue(a))==null?void 0:s.liveStyle)!==void 0)&&(i[a]=r[a]);return i}const Kne=tO({scrapeMotionValuesFromProps:O$,createRenderState:F$});function nO(e,t,n){const r=O$(e,t,n);for(const i in e)if(wr(e[i])||wr(t[i])){const s=Pc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Une=tO({scrapeMotionValuesFromProps:nO,createRenderState:Q7}),zne=Symbol.for("motionComponentSymbol");function jl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qne(e,t,n){return T.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):jl(n)&&(n.current=r))},[t])}const I$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Wne="framerAppearId",rO="data-"+I$(Wne),iO=T.createContext({});function Hne(e,t,n,r,i){var w,S;const{visualElement:s}=T.useContext(sg),a=T.useContext(H7),o=T.useContext(a$),l=T.useContext(T$).reducedMotion,d=T.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const h=d.current,m=T.useContext(iO);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Gne(d.current,n,i,m);const g=T.useRef(!1);T.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[rO],x=T.useRef(!!b&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,b))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,b)));return n7(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),x.current&&h.animationState&&h.animationState.animateChanges())}),T.useEffect(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,b)}),x.current=!1))}),h}function Gne(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:sO(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&jl(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:d})}function sO(e){if(e)return e.options.allowProjection!==!1?e.projection:sO(e.parent)}function b1(e,{forwardMotionProps:t=!1}={},n,r){n&&xne(n);const i=R$(e)?Une:Kne;function s(o,l){let d;const h={...T.useContext(T$),...o,layoutId:Yne(o)},{isStatic:m}=h,g=Dne(o),b=i(o,m);if(!m&&s$){Zne(h,n);const x=Xne(h);d=x.MeasureLayout,g.visualElement=Hne(e,b,h,r,x.ProjectionNode)}return la.jsxs(sg.Provider,{value:g,children:[d&&g.visualElement?la.jsx(d,{visualElement:g.visualElement,...h}):null,Vne(e,o,qne(b,g.visualElement,l),b,m,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const a=T.forwardRef(s);return a[zne]=e,a}function Yne({layoutId:e}){const t=T.useContext(t7).id;return t&&e!==void 0?t+"-"+e:e}function Zne(e,t){const n=T.useContext(H7).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?Ac(!1,r,"lazy-strict-mode"):Ts(!1,r,"lazy-strict-mode")}}function Xne(e){const{drag:t,layout:n}=pc;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Jne(e,t){if(typeof Proxy>"u")return b1;const n=new Map,r=(s,a)=>b1(s,a,e,t),i=(s,a)=>(process.env.NODE_ENV!=="production"&&f$(!1,"motion() is deprecated. Use motion.create() instead."),r(s,a));return new Proxy(i,{get:(s,a)=>a==="create"?r:(n.has(a)||n.set(a,b1(a,void 0,e,t)),n.get(a))})}function aO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Qne({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ere(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 $1(e){return e===void 0||e===1}function l4({scale:e,scaleX:t,scaleY:n}){return!$1(e)||!$1(t)||!$1(n)}function pu(e){return l4(e)||oO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function oO(e){return rT(e.x)||rT(e.y)}function rT(e){return e&&e!=="0%"}function lm(e,t,n){const r=e-n,i=t*r;return n+i}function iT(e,t,n,r,i){return i!==void 0&&(e=lm(e,i,r)),lm(e,n,r)+t}function c4(e,t=0,n=1,r,i){e.min=iT(e.min,t,n,r,i),e.max=iT(e.max,t,n,r,i)}function uO(e,{x:t,y:n}){c4(e.x,t.translate,t.scale,t.originPoint),c4(e.y,n.translate,n.scale,n.originPoint)}const sT=.999999999999,aT=1.0000000000001;function tre(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let o=0;o<i;o++){s=n[o],a=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ul(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,uO(e,a)),r&&pu(s.latestValues)&&Ul(e,s.latestValues))}t.x<aT&&t.x>sT&&(t.x=1),t.y<aT&&t.y>sT&&(t.y=1)}function Kl(e,t){e.min=e.min+t,e.max=e.max+t}function oT(e,t,n,r,i=.5){const s=Pn(e.min,e.max,i);c4(e,t,n,s,r)}function Ul(e,t){oT(e.x,t.x,t.scaleX,t.scale,t.originX),oT(e.y,t.y,t.scaleY,t.scale,t.originY)}function lO(e,t){return aO(ere(e.getBoundingClientRect(),t))}function nre(e,t,n){const r=lO(e,n),{scroll:i}=t;return i&&(Kl(r.x,i.offset.x),Kl(r.y,i.offset.y)),r}const uT=()=>({translate:0,scale:1,origin:0,originPoint:0}),zl=()=>({x:uT(),y:uT()}),lT=()=>({min:0,max:0}),Gn=()=>({x:lT(),y:lT()}),f4={current:null},cO={current:!1};function rre(){if(cO.current=!0,!!s$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>f4.current=e.matches;e.addEventListener("change",t),t()}else f4.current=!1}const ire=new WeakMap;function sre(e,t,n){for(const r in t){const i=t[r],s=n[r];if(wr(i))e.addValue(r,i);else if(wr(s))e.addValue(r,Wu(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Wu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const cT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let are=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=C$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=oi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,En.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=a;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=o,this.blockInitialAnimation=!!s,this.isControllingVariants=og(n),this.isVariantNode=Y7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];l[g]!==void 0&&wr(b)&&b.set(l[g],!1)}}mount(t){this.current=t,ire.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)),cO.current||rre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:f4.current,process.env.NODE_ENV!=="production"&&f$(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Xa(this.notifyUpdate),Xa(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=_c.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&En.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in pc){const n=pc[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Gn()}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<cT.length;r++){const i=cT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=sre(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Wu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(r7(r)||s7(r))?r=parseFloat(r):!bne(r)&&Ro.test(n)&&(r=j7(t,n)),this.setBaseTarget(t,wr(r)?r.get():r)),wr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=k$(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!wr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new c$),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){D$.render(this.render)}},fO=class extends are{constructor(){super(...arguments),this.KeyframeResolver=sne}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;wr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function dO(e,{style:t,vars:n},r,i){const s=e.style;let a;for(a in t)s[a]=t[a];i==null||i.applyProjectionStyles(s,r);for(a in n)s.setProperty(a,n[a])}function ore(e){return window.getComputedStyle(e)}let ure=class extends fO{constructor(){super(...arguments),this.type="html",this.renderInstance=dO}readValueFromInstance(t,n){var r;if(_c.has(n))return(r=this.projection)!=null&&r.isProjecting?r4(n):Cte(t,n);{const i=ore(t),s=(p$(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return lO(t,n)}build(t,n,r){M$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return O$(t,n,r)}};const hO=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 lre(e,t,n,r){dO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(hO.has(i)?i:I$(i),t.attrs[i])}let cre=class extends fO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Gn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_c.has(n)){const r=N7(n);return r&&r.default||0}return n=hO.has(n)?n:I$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return nO(t,n,r)}build(t,n,r){J7(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){lre(t,n,r,i)}mount(t){this.isSVGTag=eO(t.tagName),super.mount(t)}};const fre=(e,t)=>R$(e)?new cre(t):new ure(t,{allowProjection:e!==T.Fragment});function yd(e,t,n){const r=e.getProps();return k$(r,t,n!==void 0?n:r.custom,e)}const d4=e=>Array.isArray(e);function dre(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Wu(n))}function hre(e){return d4(e)?e[e.length-1]||0:e}function pre(e,t){const n=yd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=hre(s[a]);dre(e,a,o)}}function mre(e){return!!(wr(e)&&e.add)}function h4(e,t){const n=e.getValue("willChange");if(mre(n))return n.add(t);if(!n&&Za.WillChange){const r=new Za.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function pO(e){return e.props[rO]}const gre=e=>e!==null;function vre(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(gre),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const yre={type:"spring",stiffness:500,damping:25,restSpeed:10},bre=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$re={type:"keyframes",duration:.8},xre={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wre=(e,{keyframes:t})=>t.length>2?$re:_c.has(e)?e.startsWith("scale")?bre(t[1]):yre:xre;function Cre({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const L$=(e,t,n,r={},i,s)=>a=>{const o=E$(r,e)||{},l=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ss(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};Cre(o)||Object.assign(h,wre(e,h)),h.duration&&(h.duration=Ss(h.duration)),h.repeatDelay&&(h.repeatDelay=Ss(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)),(Za.instantAnimations||Za.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!s&&t.get()!==void 0){const g=vre(h.keyframes,o);if(g!==void 0){En.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new w$(h):new Wte(h)};function Ere({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function mO(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);const l=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const m=e.getValue(h,e.latestValues[h]??null),g=o[h];if(g===void 0||d&&Ere(d,h))continue;const b={delay:n,...E$(s||{},h)},x=m.get();if(x!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===x&&!b.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const E=pO(e);if(E){const C=window.MotionHandoffAnimation(E,h,En);C!==null&&(b.startTime=C,w=!0)}}h4(e,h),m.start(L$(h,m,g,e.shouldReduceMotion&&L7.has(h)?{type:!1}:b,e,w));const S=m.animation;S&&l.push(S)}return a&&Promise.all(l).then(()=>{En.update(()=>{a&&pre(e,a)})}),l}function p4(e,t,n={}){var l;const r=yd(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(mO(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return Sre(e,t,d,h,m,g,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[d,h]=o==="beforeChildren"?[s,a]:[a,s];return d().then(()=>h())}else return Promise.all([s(),a(n.delay)])}function Sre(e,t,n=0,r=0,i=0,s=1,a){const o=[],l=e.variantChildren.size,d=(l-1)*i,h=typeof r=="function",m=h?g=>r(g,l):s===1?(g=0)=>g*i:(g=0)=>d-g*i;return Array.from(e.variantChildren).sort(Dre).forEach((g,b)=>{g.notify("AnimationStart",t),o.push(p4(g,t,{...a,delay:n+(h?0:r)+m(b)}).then(()=>g.notify("AnimationComplete",t)))}),Promise.all(o)}function Dre(e,t){return e.sortNodePosition(t)}function Are(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>p4(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=p4(e,t,n);else{const i=typeof t=="function"?yd(e,t,n.custom):t;r=Promise.all(mO(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function gO(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 Tre=_$.length;function vO(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?vO(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Tre;n++){const r=_$[n],i=e.props[r];(gd(i)||i===!1)&&(t[r]=i)}return t}const Pre=[...P$].reverse(),_re=P$.length;function Mre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Are(e,n,r)))}function Fre(e){let t=Mre(e),n=fT(),r=!0;const i=l=>(d,h)=>{var g;const m=yd(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:x,...w}=m;d={...d,...w,...x}}return d};function s(l){t=l(e)}function a(l){const{props:d}=e,h=vO(e.parent)||{},m=[],g=new Set;let b={},x=1/0;for(let S=0;S<_re;S++){const E=Pre[S],C=n[E],A=d[E]!==void 0?d[E]:h[E],k=gd(A),M=E===l?C.isActive:null;M===!1&&(x=S);let R=A===h[E]&&A!==d[E]&&k;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...b},!C.isActive&&M===null||!A&&!C.prevProp||ag(A)||typeof A=="boolean")continue;const K=Rre(C.prevProp,A);let H=K||E===l&&C.isActive&&!R&&k||S>x&&k,le=!1;const ae=Array.isArray(A)?A:[A];let I=ae.reduce(i(E),{});M===!1&&(I={});const{prevResolvedValues:$e={}}=C,we={...$e,...I},W=L=>{H=!0,g.has(L)&&(le=!0,g.delete(L)),C.needsAnimating[L]=!0;const B=e.getValue(L);B&&(B.liveStyle=!1)};for(const L in we){const B=I[L],he=$e[L];if(b.hasOwnProperty(L))continue;let U=!1;d4(B)&&d4(he)?U=!gO(B,he):U=B!==he,U?B!=null?W(L):g.add(L):B!==void 0&&g.has(L)?W(L):C.protectedKeys[L]=!0}C.prevProp=A,C.prevResolvedValues=I,C.isActive&&(b={...b,...I}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(R&&K)||le)&&m.push(...ae.map(L=>({animation:L,options:{type:E}})))}if(g.size){const S={};if(typeof d.initial!="boolean"){const E=yd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);E&&E.transition&&(S.transition=E.transition)}g.forEach(E=>{const C=e.getBaseTarget(E),A=e.getValue(E);A&&(A.liveStyle=!0),S[E]=C??null}),m.push({animation:S})}let w=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(m):Promise.resolve()}function o(l,d){var m;if(n[l].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,d)}),n[l].isActive=d;const h=a(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=fT(),r=!0}}}function Rre(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gO(t,e):!1}function du(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fT(){return{animate:du(!0),whileInView:du(),whileHover:du(),whileTap:du(),whileDrag:du(),whileFocus:du(),exit:du()}}let Bo=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},kre=class extends Bo{constructor(t){super(t),t.animationState||(t.animationState=Fre(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ag(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}},Ore=0,Ire=class extends Bo{constructor(){super(...arguments),this.id=Ore++}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 Lre={animation:{Feature:kre},exit:{Feature:Ire}};function bd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Wd(e){return{point:{x:e.pageX,y:e.pageY}}}const Bre=e=>t=>A$(t)&&e(t,Wd(t));function Zf(e,t,n,r){return bd(e,t,Bre(n),r)}const yO=1e-4,Vre=1-yO,Nre=1+yO,bO=.01,jre=0-bO,Kre=0+bO;function zr(e){return e.max-e.min}function Ure(e,t,n){return Math.abs(e-t)<=n}function dT(e,t,n,r=.5){e.origin=r,e.originPoint=Pn(t.min,t.max,e.origin),e.scale=zr(n)/zr(t),e.translate=Pn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Vre&&e.scale<=Nre||isNaN(e.scale))&&(e.scale=1),(e.translate>=jre&&e.translate<=Kre||isNaN(e.translate))&&(e.translate=0)}function Xf(e,t,n,r){dT(e.x,t.x,n.x,r?r.originX:void 0),dT(e.y,t.y,n.y,r?r.originY:void 0)}function hT(e,t,n){e.min=n.min+t.min,e.max=e.min+zr(t)}function zre(e,t,n){hT(e.x,t.x,n.x),hT(e.y,t.y,n.y)}function pT(e,t,n){e.min=t.min-n.min,e.max=e.min+zr(t)}function Jf(e,t,n){pT(e.x,t.x,n.x),pT(e.y,t.y,n.y)}function zi(e){return[e("x"),e("y")]}const $O=({current:e})=>e?e.ownerDocument.defaultView:null,mT=(e,t)=>Math.abs(e-t);function qre(e,t){const n=mT(e.x,t.x),r=mT(e.y,t.y);return Math.sqrt(n**2+r**2)}class xO{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=w1(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,x=qre(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!x)return;const{point:w}=g,{timestamp:S}=xr;this.history.push({...w,timestamp:S});const{onStart:E,onMove:C}=this.handlers;b||(E&&E(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=x1(b,this.transformPagePoint),En.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:x,onSessionEnd:w,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=w1(g.type==="pointercancel"?this.lastMoveEventInfo:x1(b,this.transformPagePoint),this.history);this.startEvent&&x&&x(g,E),w&&w(g,E)},!A$(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const o=Wd(t),l=x1(o,this.transformPagePoint),{point:d}=l,{timestamp:h}=xr;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,w1(l,this.history)),this.removeListeners=Ud(Zf(this.contextWindow,"pointermove",this.handlePointerMove),Zf(this.contextWindow,"pointerup",this.handlePointerUp),Zf(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xa(this.updatePoint)}}function x1(e,t){return t?{point:t(e.point)}:e}function gT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function w1({point:e},t){return{point:e,delta:gT(e,wO(t)),offset:gT(e,Wre(t)),velocity:Hre(t,.1)}}function Wre(e){return e[0]}function wO(e){return e[e.length-1]}function Hre(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=wO(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ss(t)));)n--;if(!r)return{x:0,y:0};const s=aa(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Gre(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pn(n,e,r.max):Math.min(e,n)),e}function vT(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 Yre(e,{top:t,left:n,bottom:r,right:i}){return{x:vT(e.x,n,i),y:vT(e.y,t,r)}}function yT(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 Zre(e,t){return{x:yT(e.x,t.x),y:yT(e.y,t.y)}}function Xre(e,t){let n=.5;const r=zr(e),i=zr(t);return i>r?n=hd(t.min,t.max-r,e.min):r>i&&(n=hd(e.min,e.max-i,t.min)),Ya(0,1,n)}function Jre(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 m4=.35;function Qre(e=m4){return e===!1?e=0:e===!0&&(e=m4),{x:bT(e,"left","right"),y:bT(e,"top","bottom")}}function bT(e,t,n){return{min:$T(e,t),max:$T(e,n)}}function $T(e,t){return typeof e=="number"?e:e[t]||0}const eie=new WeakMap;class tie{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=Gn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Wd(m).point)},a=(m,g)=>{const{drag:b,dragPropagation:x,onDragStart:w}=this.getProps();if(b&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cne(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zi(E=>{let C=this.getAxisMotionValue(E).get()||0;if(oa.test(C)){const{projection:A}=this.visualElement;if(A&&A.layout){const k=A.layout.layoutBox[E];k&&(C=zr(k)*(parseFloat(C)/100))}}this.originPoint[E]=C}),w&&En.postRender(()=>w(m,g)),h4(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},o=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:x,onDirectionLock:w,onDrag:S}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:E}=g;if(x&&this.currentDirection===null){this.currentDirection=nie(E),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",g.point,E),this.updateAxis("y",g.point,E),this.visualElement.render(),S&&S(m,g)},l=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>zi(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)==null?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new xO(t,{onSessionStart:s,onStart:a,onMove:o,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:$O(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&En.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Zh(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=Gre(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&jl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Yre(r.layoutBox,t):this.constraints=!1,this.elastic=Qre(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&zi(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Jre(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!jl(t))return!1;const r=t.current;Ts(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=nre(r,i.root,this.visualElement.getTransformPagePoint());let a=Zre(i.layout.layoutBox,s);if(n){const o=n(Qne(a));this.hasMutatedConstraints=!!o,o&&(a=aO(o))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},d=zi(h=>{if(!Zh(h,n,this.currentDirection))return;let m=l&&l[h]||{};a&&(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,...s,...m};return this.startAxisValueAnimation(h,x)});return Promise.all(d).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return h4(this.visualElement,t),r.start(L$(t,r,0,n,this.visualElement,!1))}stopAnimation(){zi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){zi(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){zi(n=>{const{drag:r}=this.getProps();if(!Zh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[n];s.set(t[n]-Pn(a,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!jl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};zi(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const l=o.get();i[a]=Xre({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),zi(a=>{if(!Zh(a,t,null))return;const o=this.getAxisMotionValue(a),{min:l,max:d}=this.constraints[a];o.set(Pn(l,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;eie.set(this.visualElement,this);const t=this.visualElement.current,n=Zf(t,"pointerdown",l=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();jl(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),En.read(r);const a=bd(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(zi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=m4,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function Zh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function nie(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class rie extends Bo{constructor(t){super(t),this.removeGroupControls=es,this.removeListeners=es,this.controls=new tie(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||es}unmount(){this.removeGroupControls(),this.removeListeners()}}const xT=e=>(t,n)=>{e&&En.postRender(()=>e(t,n))};class iie extends Bo{constructor(){super(...arguments),this.removePointerDownListener=es}onPointerDown(t){this.session=new xO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$O(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:xT(t),onStart:xT(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&En.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=Zf(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 Ep={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function wT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(At.test(e))e=parseFloat(e);else return e;const n=wT(e,t.target.x),r=wT(e,t.target.y);return`${n}% ${r}%`}},sie={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ro.parse(e);if(i.length>5)return r;const s=Ro.createTransformer(e),a=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=o,i[1+a]/=l;const d=Pn(o,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),s(i)}};let CT=!1;class aie extends T.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Ane(oie),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),CT&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Ep.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,CT=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||En.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),D$.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 CO(e){const[t,n]=$ne(),r=T.useContext(t7);return la.jsx(aie,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(iO),isPresent:t,safeToRemove:n})}const oie={borderRadius:{...Sf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sf,borderTopRightRadius:Sf,borderBottomLeftRadius:Sf,borderBottomRightRadius:Sf,boxShadow:sie};function uie(e,t,n){const r=wr(e)?e:Wu(e);return r.start(L$("",r,t,n)),r.animation}const lie=(e,t)=>e.depth-t.depth;class cie{constructor(){this.children=[],this.isDirty=!1}add(t){o$(this.children,t),this.isDirty=!0}remove(t){u$(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(lie),this.isDirty=!1,this.children.forEach(t)}}function fie(e,t){const n=oi.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Xa(r),e(s-t))};return En.setup(r,!0),()=>Xa(r)}const EO=["TopLeft","TopRight","BottomLeft","BottomRight"],die=EO.length,ET=e=>typeof e=="string"?parseFloat(e):e,ST=e=>typeof e=="number"||At.test(e);function hie(e,t,n,r,i,s){i?(e.opacity=Pn(0,n.opacity??1,pie(r)),e.opacityExit=Pn(t.opacity??1,0,mie(r))):s&&(e.opacity=Pn(t.opacity??1,n.opacity??1,r));for(let a=0;a<die;a++){const o=`border${EO[a]}Radius`;let l=DT(t,o),d=DT(n,o);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||ST(l)===ST(d)?(e[o]=Math.max(Pn(ET(l),ET(d),r),0),(oa.test(d)||oa.test(l))&&(e[o]+="%")):e[o]=d}(t.rotate||n.rotate)&&(e.rotate=Pn(t.rotate||0,n.rotate||0,r))}function DT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const pie=SO(0,.5,h7),mie=SO(.5,.95,es);function SO(e,t,n){return r=>r<e?0:r>t?1:n(hd(e,t,r))}function AT(e,t){e.min=t.min,e.max=t.max}function ji(e,t){AT(e.x,t.x),AT(e.y,t.y)}function TT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function PT(e,t,n,r,i){return e-=t,e=lm(e,1/n,r),i!==void 0&&(e=lm(e,1/i,r)),e}function gie(e,t=0,n=1,r=.5,i,s=e,a=e){if(oa.test(t)&&(t=parseFloat(t),t=Pn(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=Pn(s.min,s.max,r);e===s&&(o-=t),e.min=PT(e.min,t,n,o,i),e.max=PT(e.max,t,n,o,i)}function _T(e,t,[n,r,i],s,a){gie(e,t[n],t[r],t[i],t.scale,s,a)}const vie=["x","scaleX","originX"],yie=["y","scaleY","originY"];function MT(e,t,n,r){_T(e.x,t,vie,n?n.x:void 0,r?r.x:void 0),_T(e.y,t,yie,n?n.y:void 0,r?r.y:void 0)}function FT(e){return e.translate===0&&e.scale===1}function DO(e){return FT(e.x)&&FT(e.y)}function RT(e,t){return e.min===t.min&&e.max===t.max}function bie(e,t){return RT(e.x,t.x)&&RT(e.y,t.y)}function kT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function AO(e,t){return kT(e.x,t.x)&&kT(e.y,t.y)}function OT(e){return zr(e.x)/zr(e.y)}function IT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class $ie{constructor(){this.members=[]}add(t){o$(this.members,t),t.scheduleRender()}remove(t){if(u$(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 s=this.members[i];if(s.isPresent!==!1){r=s;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 xie(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}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 o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const C1=["","X","Y","Z"],wie=1e3;let Cie=0;function E1(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function TO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=pO(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",En,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&TO(r)}function PO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},o=t==null?void 0:t()){this.id=Cie++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Die),this.nodes.forEach(_ie),this.nodes.forEach(Mie),this.nodes.forEach(Aie)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new cie)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new c$),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const l=this.eventHandlers.get(a);l&&l.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=W7(a)&&!gne(a),this.instance=a;const{layoutId:o,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),e){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;En.read(()=>{m=window.innerWidth}),e(a,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=fie(g,250),Ep.hasAnimatedSinceResize&&(Ep.hasAnimatedSinceResize=!1,this.nodes.forEach(VT)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&d&&(o||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||d.getDefaultTransition()||Iie,{onLayoutAnimationStart:w,onLayoutAnimationComplete:S}=d.getProps(),E=!this.targetLayout||!AO(this.targetLayout,b),C=!m&&g;if(this.options.layoutRoot||this.resumeFrom||C||m&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...E$(x,"layout"),onPlay:w,onComplete:S};(d.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(h,C)}else m||VT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Xa(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(Fie),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&TO(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:o,layout:l}=this.options;if(o===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(LT);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(BT);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Pie),this.nodes.forEach(Eie),this.nodes.forEach(Sie)):this.nodes.forEach(BT),this.clearAllSnapshots();const o=oi.now();xr.delta=Ya(0,1e3/60,o-xr.timestamp),xr.timestamp=o,xr.isProcessing=!0,h1.update.process(xr),h1.preRender.process(xr),h1.render.process(xr),xr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,D$.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Tie),this.sharedNodes.forEach(Rie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,En.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){En.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!zr(this.snapshot.measuredBox.x)&&!zr(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 a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Gn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!DO(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&this.instance&&(o||pu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return a&&(l=this.removeTransform(l)),Lie(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:a}=this.options;if(!a)return Gn();const o=a.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(Bie))){const{scroll:h}=this.root;h&&(Kl(o.x,h.offset.x),Kl(o.y,h.offset.y))}return o}removeElementScroll(a){var l;const o=Gn();if(ji(o,a),(l=this.scroll)!=null&&l.wasRoot)return o;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&&ji(o,a),Kl(o.x,m.offset.x),Kl(o.y,m.offset.y))}return o}applyTransform(a,o=!1){const l=Gn();ji(l,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ul(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),pu(h.latestValues)&&Ul(l,h.latestValues)}return pu(this.latestValues)&&Ul(l,this.latestValues),l}removeTransform(a){const o=Gn();ji(o,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!pu(d.latestValues))continue;l4(d.latestValues)&&d.updateSnapshot();const h=Gn(),m=d.measurePageBox();ji(h,m),MT(o,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return pu(this.latestValues)&&MT(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==xr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var g;const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=xr.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Gn(),this.relativeTargetOrigin=Gn(),Jf(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),ji(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Gn(),this.targetWithTransforms=Gn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zre(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ji(this.target,this.layout.layoutBox),uO(this.target,this.targetDelta)):ji(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=Gn(),this.relativeTargetOrigin=Gn(),Jf(this.relativeTargetOrigin,this.target,b.target),ji(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||l4(this.parent.latestValues)||oO(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 x;const a=this.getLead(),o=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===xr.timestamp&&(l=!1),l)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;ji(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;tre(this.layoutCorrected,this.treeScale,this.path,o),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Gn());const{target:b}=a;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(TT(this.prevProjectionDelta.x,this.projectionDelta.x),TT(this.prevProjectionDelta.y,this.projectionDelta.y)),Xf(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!IT(this.projectionDelta.x,this.prevProjectionDelta.x)||!IT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var o;if((o=this.options.visualElement)==null||o.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zl(),this.projectionDelta=zl(),this.projectionDeltaWithTransform=zl()}setAnimationOrigin(a,o=!1){const l=this.snapshot,d=l?l.latestValues:{},h={...this.latestValues},m=zl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const g=Gn(),b=l?l.source:void 0,x=this.layout?this.layout.source:void 0,w=b!==x,S=this.getStack(),E=!S||S.members.length<=1,C=!!(w&&!E&&this.options.crossfade===!0&&!this.path.some(Oie));this.animationProgress=0;let A;this.mixTargetDelta=k=>{const M=k/1e3;NT(m.x,a.x,M),NT(m.y,a.y,M),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jf(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kie(this.relativeTarget,this.relativeTargetOrigin,g,M),A&&bie(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=Gn()),ji(A,this.relativeTarget)),w&&(this.animationValues=h,hie(h,d,this.latestValues,M,C,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var o,l,d;this.notifyListeners("animationStart"),(o=this.currentAnimation)==null||o.stop(),(d=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||d.stop(),this.pendingAnimation&&(Xa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=En.update(()=>{Ep.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Wu(0)),this.currentAnimation=uie(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),a.onUpdate&&a.onUpdate(h)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(wie),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:l,layout:d,latestValues:h}=a;if(!(!o||!l||!d)){if(this!==a&&this.layout&&d&&_O(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Gn();const m=zr(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+m;const g=zr(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+g}ji(o,l),Ul(o,h),Xf(this.projectionDeltaWithTransform,this.layoutCorrected,o,h)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new $ie),this.sharedNodes.get(a).add(o);const d=o.options.initialPromotionConfig;o.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const d={};l.z&&E1("z",a,d,this.animationValues);for(let h=0;h<C1.length;h++)E1(`rotate${C1[h]}`,a,d,this.animationValues),E1(`skew${C1[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}applyProjectionStyles(a,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Cp(o==null?void 0:o.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Cp(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!pu(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const h=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=xie(this.projectionDeltaWithTransform,this.treeScale,h);l&&(m=l(h,m)),a.transform=m;const{x:g,y:b}=this.projectionDelta;a.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,d.animationValues?a.opacity=d===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:a.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const x in vd){if(h[x]===void 0)continue;const{correct:w,applyTo:S,isCSSVariable:E}=vd[x],C=m==="none"?h[x]:w(h[x],d);if(S){const A=S.length;for(let k=0;k<A;k++)a[S[k]]=C}else E?this.options.visualElement.renderState.vars[x]=C:a[x]=C}this.options.layoutId&&(a.pointerEvents=d===this?Cp(o==null?void 0:o.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var o;return(o=a.currentAnimation)==null?void 0:o.stop()}),this.root.nodes.forEach(LT),this.root.sharedNodes.clear()}}}function Eie(e){e.updateLayout()}function Sie(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,a=t.source!==e.layout.source;s==="size"?zi(m=>{const g=a?t.measuredBox[m]:t.layoutBox[m],b=zr(g);g.min=r[m].min,g.max=g.min+b}):_O(s,t.layoutBox,r)&&zi(m=>{const g=a?t.measuredBox[m]:t.layoutBox[m],b=zr(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const o=zl();Xf(o,r,t.layoutBox);const l=zl();a?Xf(l,e.applyTransform(i,!0),t.measuredBox):Xf(l,r,t.layoutBox);const d=!DO(o);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=Gn();Jf(x,t.layoutBox,g.layoutBox);const w=Gn();Jf(w,r,b.layoutBox),AO(x,w)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:o,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Die(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 Aie(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Tie(e){e.clearSnapshot()}function LT(e){e.clearMeasurements()}function BT(e){e.isLayoutDirty=!1}function Pie(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function VT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _ie(e){e.resolveTargetDelta()}function Mie(e){e.calcProjection()}function Fie(e){e.resetSkewAndRotation()}function Rie(e){e.removeLeadSnapshot()}function NT(e,t,n){e.translate=Pn(t.translate,0,n),e.scale=Pn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function jT(e,t,n,r){e.min=Pn(t.min,n.min,r),e.max=Pn(t.max,n.max,r)}function kie(e,t,n,r){jT(e.x,t.x,n.x,r),jT(e.y,t.y,n.y,r)}function Oie(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Iie={duration:.45,ease:[.4,0,.1,1]},KT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),UT=KT("applewebkit/")&&!KT("chrome/")?Math.round:es;function zT(e){e.min=UT(e.min),e.max=UT(e.max)}function Lie(e){zT(e.x),zT(e.y)}function _O(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ure(OT(t),OT(n),.2)}function Bie(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Vie=PO({attachResizeListener:(e,t)=>bd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),S1={current:void 0},MO=PO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!S1.current){const e=new Vie({});e.mount(window),e.setOptions({layoutScroll:!0}),S1.current=e}return S1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Nie={pan:{Feature:iie},drag:{Feature:rie,ProjectionNode:MO,MeasureLayout:CO}};function qT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&En.postRender(()=>s(t,Wd(t)))}let jie=class extends Bo{mount(){const{current:t}=this.node;t&&(this.unmount=fne(t,(n,r)=>(qT(this.node,r,"Start"),i=>qT(this.node,i,"End"))))}unmount(){}},Kie=class extends Bo{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=Ud(bd(this.node.current,"focus",()=>this.onFocus()),bd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function WT(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),s=r[i];s&&En.postRender(()=>s(t,Wd(t)))}let Uie=class extends Bo{mount(){const{current:t}=this.node;t&&(this.unmount=mne(t,(n,r)=>(WT(this.node,r,"Start"),(i,{success:s})=>WT(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const g4=new WeakMap,D1=new WeakMap,zie=e=>{const t=g4.get(e.target);t&&t(e)},qie=e=>{e.forEach(zie)};function Wie({root:e,...t}){const n=e||document;D1.has(n)||D1.set(n,{});const r=D1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(qie,{root:e,...t})),r[i]}function Hie(e,t,n){const r=Wie(t);return g4.set(e,n),r.observe(e),()=>{g4.delete(e),r.unobserve(e)}}const Gie={some:0,all:1};let Yie=class extends Bo{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:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Gie[i]},o=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,s&&!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 Hie(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Zie(t,n))&&this.startObserver()}unmount(){}};function Zie({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Xie={inView:{Feature:Yie},tap:{Feature:Uie},focus:{Feature:Kie},hover:{Feature:jie}},Jie={layout:{ProjectionNode:MO,MeasureLayout:CO}},Qie={...Lre,...Xie,...Nie,...Jie},FO=Jne(Qie,fre);function RO(e){const t=Kd(()=>Wu(e)),{isStatic:n}=T.useContext(T$);if(n){const[,r]=T.useState(e);T.useEffect(()=>t.on("change",r),[])}return t}function kO(e,t){const n=RO(t()),r=()=>n.set(t());return r(),n7(()=>{const i=()=>En.preRender(r,!1,!0),s=e.map(a=>a.on("change",i));return()=>{s.forEach(a=>a()),Xa(r)}}),n}function ese(e){Yf.current=[],e();const t=kO(Yf.current,e);return Yf.current=void 0,t}function tse(e,t,n,r){if(typeof e=="function")return ese(e);const i=typeof t=="function"?t:vne(t,n,r);return Array.isArray(e)?HT(e,i):HT([e],([s])=>i(s))}function HT(e,t){const n=Kd(()=>[]);return kO(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const OO=T.createContext(null);function nse(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const s=r>0?1:-1,a=e[i+s];if(!a)return e;const o=e[i],l=a.layout,d=Pn(l.min,l.max,.5);return s===1&&o.layout.max+n>d||s===-1&&o.layout.min+n<d?wee(e,i,i+s):e}function rse({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...s},a){const o=Kd(()=>FO[t]),l=[],d=T.useRef(!1);Ts(!!i,"Reorder.Group must be provided a values prop","reorder-values");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(ase)},updateOrder:(m,g,b)=>{if(d.current)return;const x=nse(l,m,g,b);l!==x&&(d.current=!0,r(x.map(sse).filter(w=>i.indexOf(w)!==-1)))}};return T.useEffect(()=>{d.current=!1}),la.jsx(o,{...s,ref:a,ignoreStrict:!0,children:la.jsx(OO.Provider,{value:h,children:e})})}const ise=T.forwardRef(rse);function sse(e){return e.value}function ase(e,t){return e.layout.min-t.layout.min}function GT(e,t=0){return wr(e)?e:RO(t)}function ose({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:s=!0,...a},o){const l=Kd(()=>FO[r]),d=T.useContext(OO),h={x:GT(t.x),y:GT(t.y)},m=tse([h.x,h.y],([w,S])=>w||S?1:"unset");Ts(!!d,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:b,updateOrder:x}=d;return la.jsx(l,{drag:g,...a,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:s,onDrag:(w,S)=>{const{velocity:E}=S;E[g]&&x(n,h[g].get(),E[g]),i&&i(w,S)},onLayoutMeasure:w=>b(n,w),ref:o,ignoreStrict:!0,children:e})}const use=T.forwardRef(ose);var Sp={exports:{}},lse=Sp.exports,YT;function cse(){return YT||(YT=1,function(e,t){(function(n,r){e.exports=r()})(lse,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,s){var a=i.prototype,o=a.format;s.en.formats=n,a.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,w){var S=w&&w.toUpperCase();return x||g[w]||n[w]||g[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,C,A){return C||A.slice(1)})})}(l,d===void 0?{}:d);return o.call(this,h)}}})}(Sp)),Sp.exports}var fse=cse();const dse=ci(fse),ZT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=rt(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},IO=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?ZT(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>ZT(i,n,e))}},hse=(e,t)=>{t.shouldUseNativeValidation&&IO(e,t);const n={};for(const r in e){const i=rt(t.fields,r),s=Object.assign(e[r]||{},{ref:i&&i.ref});if(pse(t.names||Object.keys(e),r)){const a=Object.assign({},rt(n,r));en(a,"root",s),en(n,r,a)}else en(n,r,s)}return n},pse=(e,t)=>{const n=XT(t);return e.some(r=>XT(r).match(`^${n}\\.\\d+`))};function XT(e){return e.replace(/\]|\[/g,"")}function mse(e,t,n){return n===void 0&&(n={}),function(r,i,s){try{return Promise.resolve(function(a,o){try{var l=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return s.shouldUseNativeValidation&&IO({},s),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return o(d)}return l&&l.then?l.then(void 0,o):l}(0,function(a){if(!a.inner)throw a;return{values:{},errors:hse((o=a,l=!s.shouldUseNativeValidation&&s.criteriaMode==="all",(o.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]=$5(h.path,l,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),s)};var o,l}))}catch(a){return Promise.reject(a)}}}var Kf={exports:{}},gse=Kf.exports,JT;function vse(){return JT||(JT=1,function(e,t){(function(n,r){r(t,T)})(gse,function(n,r){function i(W){return W&&typeof W=="object"&&"default"in W?W:{default:W}}var s=i(r),a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Yi<"u"?Yi:typeof self<"u"?self:{},o={exports:{}};(function(W,ie){typeof navigator<"u"&&function(O,L){W.exports=L()}(a,function(){var O="http://www.w3.org/2000/svg",L="",B=!1,he=-999999,U=function(p){B=!!p},te=function(){return B},xe=function(p){L=p},De=function(){return L};function _e(c){return document.createElement(c)}function Me(c,p){var v,$=c.length,P;for(v=0;v<$;v+=1){P=c[v].prototype;for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&(p.prototype[_]=P[_])}}function Ye(c){function p(){}return p.prototype=c,p}var Ge=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 $,P=this.audios.length;for($=0;$<P;$+=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}}(),Ae=function(){function c(v,$){var P=0,_=[],z;switch(v){case"int16":case"uint8c":z=1;break;default:z=1.1;break}for(P=0;P<$;P+=1)_.push(z);return _}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 Ke(c){return Array.apply(null,{length:c})}var We=!0,Ve=null,Te="",tt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),yt=Math.pow,Jt=Math.sqrt,xt=Math.floor,Mt=Math.min,Ti=150,mt=Math.PI/180,me=.5519;function Se(c,p,v,$){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=$<0?-1:1}function Le(c,p){this.type=c,this.direction=p<0?-1:1}function it(c,p,v,$){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=$<0?-1:1}function Qe(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function Xe(c,p){this.type=c,this.target=p}function gt(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function kt(c){this.type="configError",this.nativeError=c}var wt=function(){var c=0;return function(){return c+=1,Te+"__lottie_element_"+c}}();function yn(c,p,v){var $,P,_,z,pe,Q,ye,Ce;switch(z=Math.floor(c*6),pe=c*6-z,Q=v*(1-p),ye=v*(1-pe*p),Ce=v*(1-(1-pe)*p),z%6){case 0:$=v,P=Ce,_=Q;break;case 1:$=ye,P=v,_=Q;break;case 2:$=Q,P=v,_=Ce;break;case 3:$=Q,P=ye,_=v;break;case 4:$=Ce,P=Q,_=v;break;case 5:$=v,P=Q,_=ye;break}return[$,P,_]}function Cr(c,p,v){var $=Math.max(c,p,v),P=Math.min(c,p,v),_=$-P,z,pe=$===0?0:_/$,Q=$/255;switch($){case P:z=0;break;case c:z=p-v+_*(p<v?6:0),z/=6*_;break;case p:z=v-c+_*2,z/=6*_;break;case v:z=c-p+_*4,z/=6*_;break}return[z,pe,Q]}function qt(c,p){var v=Cr(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),yn(v[0],v[1],v[2])}function _t(c,p){var v=Cr(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),yn(v[0],v[1],v[2])}function Lt(c,p){var v=Cr(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),yn(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($,P,_){return $<0&&($=0),P<0&&(P=0),_<0&&(_=0),"#"+c[$]+c[P]+c[_]}})();var Wt=function(p){We=!!p},gr=function(){return We},Zr=function(p){Ve=p},fi=function(){return Ve},kr=function(p){Ti=p},Rs=function(){return Ti},Vo=function(p){Te=p};function $t(c){return document.createElementNS(O,c)}function di(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?di=function(v){return typeof v}:di=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},di(c)}var ha=function(){var c=1,p=[],v,$,P={onmessage:function(){},postMessage:function(ee){v({data:ee})}},_={postMessage:function(ee){P.onmessage({data:ee})}};function z(F){if(window.Worker&&window.Blob&&te()){var ee=new Blob(["var _workerSelf = self; self.onmessage = ",F.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(ee);return new Worker(Y)}return v=F,P}function pe(){$||($=z(function(ee){function Y(){function ce(Ie,be){var ue,J,ge=Ie.length,Ne,ke,lt,Tt;for(J=0;J<ge;J+=1)if(ue=Ie[J],"ks"in ue&&!ue.completed){if(ue.completed=!0,ue.hasMask){var Et=ue.masksProperties;for(ke=Et.length,Ne=0;Ne<ke;Ne+=1)if(Et[Ne].pt.k.i)G(Et[Ne].pt.k);else for(Tt=Et[Ne].pt.k.length,lt=0;lt<Tt;lt+=1)Et[Ne].pt.k[lt].s&&G(Et[Ne].pt.k[lt].s[0]),Et[Ne].pt.k[lt].e&&G(Et[Ne].pt.k[lt].e[0])}ue.ty===0?(ue.layers=V(ue.refId,be),ce(ue.layers,be)):ue.ty===4?j(ue.shapes):ue.ty===5&&ot(ue)}}function q(Ie,be){if(Ie){var ue=0,J=Ie.length;for(ue=0;ue<J;ue+=1)Ie[ue].t===1&&(Ie[ue].data.layers=V(Ie[ue].data.refId,be),ce(Ie[ue].data.layers,be))}}function Z(Ie,be){for(var ue=0,J=be.length;ue<J;){if(be[ue].id===Ie)return be[ue];ue+=1}return null}function V(Ie,be){var ue=Z(Ie,be);return ue?ue.layers.__used?JSON.parse(JSON.stringify(ue.layers)):(ue.layers.__used=!0,ue.layers):null}function j(Ie){var be,ue=Ie.length,J,ge;for(be=ue-1;be>=0;be-=1)if(Ie[be].ty==="sh")if(Ie[be].ks.k.i)G(Ie[be].ks.k);else for(ge=Ie[be].ks.k.length,J=0;J<ge;J+=1)Ie[be].ks.k[J].s&&G(Ie[be].ks.k[J].s[0]),Ie[be].ks.k[J].e&&G(Ie[be].ks.k[J].e[0]);else Ie[be].ty==="gr"&&j(Ie[be].it)}function G(Ie){var be,ue=Ie.i.length;for(be=0;be<ue;be+=1)Ie.i[be][0]+=Ie.v[be][0],Ie.i[be][1]+=Ie.v[be][1],Ie.o[be][0]+=Ie.v[be][0],Ie.o[be][1]+=Ie.v[be][1]}function ne(Ie,be){var ue=be?be.split("."):[100,100,100];return Ie[0]>ue[0]?!0:ue[0]>Ie[0]?!1:Ie[1]>ue[1]?!0:ue[1]>Ie[1]?!1:Ie[2]>ue[2]?!0:ue[2]>Ie[2]?!1:null}var oe=function(){var Ie=[4,4,14];function be(J){var ge=J.t.d;J.t.d={k:[{s:ge,t:0}]}}function ue(J){var ge,Ne=J.length;for(ge=0;ge<Ne;ge+=1)J[ge].ty===5&&be(J[ge])}return function(J){if(ne(Ie,J.v)&&(ue(J.layers),J.assets)){var ge,Ne=J.assets.length;for(ge=0;ge<Ne;ge+=1)J.assets[ge].layers&&ue(J.assets[ge].layers)}}}(),de=function(){var Ie=[4,7,99];return function(be){if(be.chars&&!ne(Ie,be.v)){var ue,J=be.chars.length;for(ue=0;ue<J;ue+=1){var ge=be.chars[ue];ge.data&&ge.data.shapes&&(j(ge.data.shapes),ge.data.ip=0,ge.data.op=99999,ge.data.st=0,ge.data.sr=1,ge.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}},be.chars[ue].t||(ge.data.shapes.push({ty:"no"}),ge.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 Ie=[5,7,15];function be(J){var ge=J.t.p;typeof ge.a=="number"&&(ge.a={a:0,k:ge.a}),typeof ge.p=="number"&&(ge.p={a:0,k:ge.p}),typeof ge.r=="number"&&(ge.r={a:0,k:ge.r})}function ue(J){var ge,Ne=J.length;for(ge=0;ge<Ne;ge+=1)J[ge].ty===5&&be(J[ge])}return function(J){if(ne(Ie,J.v)&&(ue(J.layers),J.assets)){var ge,Ne=J.assets.length;for(ge=0;ge<Ne;ge+=1)J.assets[ge].layers&&ue(J.assets[ge].layers)}}}(),et=function(){var Ie=[4,1,9];function be(J){var ge,Ne=J.length,ke,lt;for(ge=0;ge<Ne;ge+=1)if(J[ge].ty==="gr")be(J[ge].it);else if(J[ge].ty==="fl"||J[ge].ty==="st")if(J[ge].c.k&&J[ge].c.k[0].i)for(lt=J[ge].c.k.length,ke=0;ke<lt;ke+=1)J[ge].c.k[ke].s&&(J[ge].c.k[ke].s[0]/=255,J[ge].c.k[ke].s[1]/=255,J[ge].c.k[ke].s[2]/=255,J[ge].c.k[ke].s[3]/=255),J[ge].c.k[ke].e&&(J[ge].c.k[ke].e[0]/=255,J[ge].c.k[ke].e[1]/=255,J[ge].c.k[ke].e[2]/=255,J[ge].c.k[ke].e[3]/=255);else J[ge].c.k[0]/=255,J[ge].c.k[1]/=255,J[ge].c.k[2]/=255,J[ge].c.k[3]/=255}function ue(J){var ge,Ne=J.length;for(ge=0;ge<Ne;ge+=1)J[ge].ty===4&&be(J[ge].shapes)}return function(J){if(ne(Ie,J.v)&&(ue(J.layers),J.assets)){var ge,Ne=J.assets.length;for(ge=0;ge<Ne;ge+=1)J.assets[ge].layers&&ue(J.assets[ge].layers)}}}(),Je=function(){var Ie=[4,4,18];function be(J){var ge,Ne=J.length,ke,lt;for(ge=Ne-1;ge>=0;ge-=1)if(J[ge].ty==="sh")if(J[ge].ks.k.i)J[ge].ks.k.c=J[ge].closed;else for(lt=J[ge].ks.k.length,ke=0;ke<lt;ke+=1)J[ge].ks.k[ke].s&&(J[ge].ks.k[ke].s[0].c=J[ge].closed),J[ge].ks.k[ke].e&&(J[ge].ks.k[ke].e[0].c=J[ge].closed);else J[ge].ty==="gr"&&be(J[ge].it)}function ue(J){var ge,Ne,ke=J.length,lt,Tt,Et,$n;for(Ne=0;Ne<ke;Ne+=1){if(ge=J[Ne],ge.hasMask){var Ht=ge.masksProperties;for(Tt=Ht.length,lt=0;lt<Tt;lt+=1)if(Ht[lt].pt.k.i)Ht[lt].pt.k.c=Ht[lt].cl;else for($n=Ht[lt].pt.k.length,Et=0;Et<$n;Et+=1)Ht[lt].pt.k[Et].s&&(Ht[lt].pt.k[Et].s[0].c=Ht[lt].cl),Ht[lt].pt.k[Et].e&&(Ht[lt].pt.k[Et].e[0].c=Ht[lt].cl)}ge.ty===4&&be(ge.shapes)}}return function(J){if(ne(Ie,J.v)&&(ue(J.layers),J.assets)){var ge,Ne=J.assets.length;for(ge=0;ge<Ne;ge+=1)J.assets[ge].layers&&ue(J.assets[ge].layers)}}}();function Be(Ie){Ie.__complete||(et(Ie),oe(Ie),de(Ie),Oe(Ie),Je(Ie),ce(Ie.layers,Ie.assets),q(Ie.chars,Ie.assets),Ie.__complete=!0)}function ot(Ie){Ie.t.a.length===0&&"m"in Ie.t.p}var ct={};return ct.completeData=Be,ct.checkColors=et,ct.checkChars=de,ct.checkPathProperties=Oe,ct.checkShapes=Je,ct.completeLayers=ce,ct}if(_.dataManager||(_.dataManager=Y()),_.assetLoader||(_.assetLoader=function(){function ce(Z){var V=Z.getResponseHeader("content-type");return V&&Z.responseType==="json"&&V.indexOf("json")!==-1||Z.response&&di(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function q(Z,V,j,G){var ne,oe=new XMLHttpRequest;try{oe.responseType="json"}catch{}oe.onreadystatechange=function(){if(oe.readyState===4)if(oe.status===200)ne=ce(oe),j(ne);else try{ne=ce(oe),j(ne)}catch(de){G&&G(de)}};try{oe.open(["G","E","T"].join(""),Z,!0)}catch{oe.open(["G","E","T"].join(""),V+"/"+Z,!0)}oe.send()}return{load:q}}()),ee.data.type==="loadAnimation")_.assetLoader.load(ee.data.path,ee.data.fullPath,function(ce){_.dataManager.completeData(ce),_.postMessage({id:ee.data.id,payload:ce,status:"success"})},function(){_.postMessage({id:ee.data.id,status:"error"})});else if(ee.data.type==="complete"){var fe=ee.data.animation;_.dataManager.completeData(fe),_.postMessage({id:ee.data.id,payload:fe,status:"success"})}else ee.data.type==="loadData"&&_.assetLoader.load(ee.data.path,ee.data.fullPath,function(ce){_.postMessage({id:ee.data.id,payload:ce,status:"success"})},function(){_.postMessage({id:ee.data.id,status:"error"})})}),$.onmessage=function(F){var ee=F.data,Y=ee.id,fe=p[Y];p[Y]=null,ee.status==="success"?fe.onComplete(ee.payload):fe.onError&&fe.onError()})}function Q(F,ee){c+=1;var Y="processId_"+c;return p[Y]={onComplete:F,onError:ee},Y}function ye(F,ee,Y){pe();var fe=Q(ee,Y);$.postMessage({type:"loadAnimation",path:F,fullPath:window.location.origin+window.location.pathname,id:fe})}function Ce(F,ee,Y){pe();var fe=Q(ee,Y);$.postMessage({type:"loadData",path:F,fullPath:window.location.origin+window.location.pathname,id:fe})}function Re(F,ee,Y){pe();var fe=Q(ee,Y);$.postMessage({type:"complete",animation:F,id:fe})}return{loadAnimation:ye,loadData:Ce,completeAnimation:Re}}(),Nc=function(){var c=function(){var q=_e("canvas");q.width=1,q.height=1;var Z=q.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),q}();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 $(q,Z,V){var j="";if(q.e)j=q.p;else if(Z){var G=q.p;G.indexOf("images/")!==-1&&(G=G.split("/")[1]),j=Z+G}else j=V,j+=q.u?q.u:"",j+=q.p;return j}function P(q){var Z=0,V=setInterval((function(){var j=q.getBBox();(j.width||Z>500)&&(this._imageLoaded(),clearInterval(V)),Z+=1}).bind(this),50)}function _(q){var Z=$(q,this.assetsPath,this.path),V=$t("image");tt?this.testImageLoaded(V):V.addEventListener("load",this._imageLoaded,!1),V.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),V.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(V):this._elementHelper.appendChild(V);var j={img:V,assetData:q};return j}function z(q){var Z=$(q,this.assetsPath,this.path),V=_e("img");V.crossOrigin="anonymous",V.addEventListener("load",this._imageLoaded,!1),V.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),V.src=Z;var j={img:V,assetData:q};return j}function pe(q){var Z={assetData:q},V=$(q,this.assetsPath,this.path);return ha.loadData(V,(function(j){Z.img=j,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function Q(q,Z){this.imagesLoadedCb=Z;var V,j=q.length;for(V=0;V<j;V+=1)q[V].layers||(!q[V].t||q[V].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(q[V]))):q[V].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(q[V]))))}function ye(q){this.path=q||""}function Ce(q){this.assetsPath=q||""}function Re(q){for(var Z=0,V=this.images.length;Z<V;){if(this.images[Z].assetData===q)return this.images[Z].img;Z+=1}return null}function F(){this.imagesLoadedCb=null,this.images.length=0}function ee(){return this.totalImages===this.loadedAssets}function Y(){return this.totalFootages===this.loadedFootagesCount}function fe(q,Z){q==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function ce(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=P.bind(this),this.createFootageData=pe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return ce.prototype={loadAssets:Q,setAssetsPath:Ce,setPath:ye,loadedImages:ee,loadedFootages:Y,destroy:F,getAsset:Re,createImgData:z,createImageData:_,imageLoaded:p,footageLoaded:v,setCacheType:fe},ce}();function el(){}el.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var $=this._cbs[p],P=0;P<$.length;P+=1)$[P](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,P=this._cbs[p].length;$<P;)this._cbs[p][$]===v&&(this._cbs[p].splice($,1),$-=1,P-=1),$+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var jc=function(){function c(p){for(var v=p.split(`\r
135
- `),$={},P,_=0,z=0;z<v.length;z+=1)P=v[z].split(":"),P.length===2&&($[P[0]]=P[1].trim(),_+=1);if(_===0)throw new Error;return $}return function(p){for(var v=[],$=0;$<p.length;$+=1){var P=p[$],_={time:P.tm,duration:P.dr};try{_.payload=JSON.parse(p[$].cm)}catch{try{_.payload=c(p[$].cm)}catch{_.payload={name:p[$].cm}}}v.push(_)}return v}}(),tl=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var $=0,P=this.compositions.length;$<P;){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}}(),No={},nl=function(p,v){No[p]=v};function is(c){return No[c]}function ss(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ss=function(v){return typeof v}:ss=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ss(c)}var bt=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=wt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=gr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=tl(),this.imagePreloader=new Nc,this.audioController=Ge(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Se("drawnFrame",0,0,0)};Me([el],bt),bt.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=is(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")),ha.loadAnimation(c.path,this.configAnimation,this.onSetupError))},bt.prototype.onSetupError=function(){this.trigger("data_failed")},bt.prototype.setupAnimation=function(c){ha.completeAnimation(c,this.configAnimation)},bt.prototype.setData=function(c,p){p&&ss(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 P=$.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:"";P==="false"?v.loop=!1:P==="true"?v.loop=!0:P!==""&&(v.loop=parseInt(P,10));var _=$.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=_!=="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 z=$.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:"";z==="false"&&(v.prerender=!1),this.setParams(v)},bt.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,P=c.layers,_,z=P.length;for(_=0;_<z;_+=1)for(v=0;v<$;){if(p[v].id===P[_].id){p[v]=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,ha.completeAnimation(this.animationData,this.onSegmentComplete)},bt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=fi();p&&p.initExpressions(this),this.loadNextSegment()},bt.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,ha.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},bt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},bt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},bt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},bt.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=jc(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},bt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},bt.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=fi();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},bt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,$=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,$)},bt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},bt.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")},bt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},bt.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")))},bt.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())},bt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},bt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},bt.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},bt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var $=Number(c);if(isNaN($)){var P=this.getMarkerData(c);P&&this.goToAndStop(P.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},bt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var $=Number(c);if(isNaN($)){var P=this.getMarkerData(c);P&&(P.duration?this.playSegments([P.time,P.time+P.duration],!0):this.goToAndStop(P.time,!0))}else this.goToAndStop($,p,v);this.play()}},bt.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"))}},bt.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")},bt.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)},bt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),ss(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()},bt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},bt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},bt.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)},bt.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},bt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},bt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},bt.prototype.setLoop=function(c){this.loop=c},bt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},bt.prototype.getVolume=function(){return this.audioController.getVolume()},bt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},bt.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},bt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},bt.prototype.getPath=function(){return this.path},bt.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},bt.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},bt.prototype.hide=function(){this.renderer.hide()},bt.prototype.show=function(){this.renderer.show()},bt.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},bt.prototype.updateDocumentData=function(c,p,v){try{var $=this.renderer.getElementByPath(c);$.updateDocumentData(p,v)}catch{}},bt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new Se(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 it(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new Le(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new Qe(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new Xe(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Se(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new it(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new Le(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Qe(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Xe(c,this))},bt.prototype.triggerRenderFrameError=function(c){var p=new gt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},bt.prototype.triggerConfigError=function(c){var p=new kt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var Sn=function(){var c={},p=[],v=0,$=0,P=0,_=!0,z=!1;function pe(be){for(var ue=0,J=be.target;ue<$;)p[ue].animation===J&&(p.splice(ue,1),ue-=1,$-=1,J.isPaused||Re()),ue+=1}function Q(be,ue){if(!be)return null;for(var J=0;J<$;){if(p[J].elem===be&&p[J].elem!==null)return p[J].animation;J+=1}var ge=new bt;return F(ge,be),ge.setData(be,ue),ge}function ye(){var be,ue=p.length,J=[];for(be=0;be<ue;be+=1)J.push(p[be].animation);return J}function Ce(){P+=1,et()}function Re(){P-=1}function F(be,ue){be.addEventListener("destroy",pe),be.addEventListener("_active",Ce),be.addEventListener("_idle",Re),p.push({elem:ue,animation:be}),$+=1}function ee(be){var ue=new bt;return F(ue,null),ue.setParams(be),ue}function Y(be,ue){var J;for(J=0;J<$;J+=1)p[J].animation.setSpeed(be,ue)}function fe(be,ue){var J;for(J=0;J<$;J+=1)p[J].animation.setDirection(be,ue)}function ce(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.play(be)}function q(be){var ue=be-v,J;for(J=0;J<$;J+=1)p[J].animation.advanceTime(ue);v=be,P&&!z?window.requestAnimationFrame(q):_=!0}function Z(be){v=be,window.requestAnimationFrame(q)}function V(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.pause(be)}function j(be,ue,J){var ge;for(ge=0;ge<$;ge+=1)p[ge].animation.goToAndStop(be,ue,J)}function G(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.stop(be)}function ne(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.togglePause(be)}function oe(be){var ue;for(ue=$-1;ue>=0;ue-=1)p[ue].animation.destroy(be)}function de(be,ue,J){var ge=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ne,ke=ge.length;for(Ne=0;Ne<ke;Ne+=1)J&&ge[Ne].setAttribute("data-bm-type",J),Q(ge[Ne],be);if(ue&&ke===0){J||(J="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var Tt=_e("div");Tt.style.width="100%",Tt.style.height="100%",Tt.setAttribute("data-bm-type",J),lt.appendChild(Tt),Q(Tt,be)}}function Oe(){var be;for(be=0;be<$;be+=1)p[be].animation.resize()}function et(){!z&&P&&_&&(window.requestAnimationFrame(Z),_=!1)}function Je(){z=!0}function Be(){z=!1,et()}function ot(be,ue){var J;for(J=0;J<$;J+=1)p[J].animation.setVolume(be,ue)}function ct(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.mute(be)}function Ie(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.unmute(be)}return c.registerAnimation=Q,c.loadAnimation=ee,c.setSpeed=Y,c.setDirection=fe,c.play=ce,c.pause=V,c.stop=G,c.togglePause=ne,c.searchAnimations=de,c.resize=Oe,c.goToAndStop=j,c.destroy=oe,c.freeze=Je,c.unfreeze=Be,c.setVolume=ot,c.mute=ct,c.unmute=Ie,c.getRegisteredAnimations=ye,c}(),pa=function(){var c={};c.getBezierEasing=v;var p={};function v(Z,V,j,G,ne){var oe=ne||("bez_"+Z+"_"+V+"_"+j+"_"+G).replace(/\./g,"p");if(p[oe])return p[oe];var de=new q([Z,V,j,G]);return p[oe]=de,de}var $=4,P=.001,_=1e-7,z=10,pe=11,Q=1/(pe-1),ye=typeof Float32Array=="function";function Ce(Z,V){return 1-3*V+3*Z}function Re(Z,V){return 3*V-6*Z}function F(Z){return 3*Z}function ee(Z,V,j){return((Ce(V,j)*Z+Re(V,j))*Z+F(V))*Z}function Y(Z,V,j){return 3*Ce(V,j)*Z*Z+2*Re(V,j)*Z+F(V)}function fe(Z,V,j,G,ne){var oe,de,Oe=0;do de=V+(j-V)/2,oe=ee(de,G,ne)-Z,oe>0?j=de:V=de;while(Math.abs(oe)>_&&++Oe<z);return de}function ce(Z,V,j,G){for(var ne=0;ne<$;++ne){var oe=Y(V,j,G);if(oe===0)return V;var de=ee(V,j,G)-Z;V-=de/oe}return V}function q(Z){this._p=Z,this._mSampleValues=ye?new Float32Array(pe):new Array(pe),this._precomputed=!1,this.get=this.get.bind(this)}return q.prototype={get:function(V){var j=this._p[0],G=this._p[1],ne=this._p[2],oe=this._p[3];return this._precomputed||this._precompute(),j===G&&ne===oe?V:V===0?0:V===1?1:ee(this._getTForX(V),G,oe)},_precompute:function(){var V=this._p[0],j=this._p[1],G=this._p[2],ne=this._p[3];this._precomputed=!0,(V!==j||G!==ne)&&this._calcSampleValues()},_calcSampleValues:function(){for(var V=this._p[0],j=this._p[2],G=0;G<pe;++G)this._mSampleValues[G]=ee(G*Q,V,j)},_getTForX:function(V){for(var j=this._p[0],G=this._p[2],ne=this._mSampleValues,oe=0,de=1,Oe=pe-1;de!==Oe&&ne[de]<=V;++de)oe+=Q;--de;var et=(V-ne[de])/(ne[de+1]-ne[de]),Je=oe+et*Q,Be=Y(Je,j,G);return Be>=P?ce(V,Je,j,G):Be===0?Je:fe(V,oe,oe+Q,j,G)}},c}(),rl=function(){function c(p){return p.concat(Ke(p.length))}return{double:c}}(),Er=function(){return function(c,p,v){var $=0,P=c,_=Ke(P),z={newElement:pe,release:Q};function pe(){var ye;return $?($-=1,ye=_[$]):ye=p(),ye}function Q(ye){$===P&&(_=rl.double(_),P*=2),v&&v(ye),_[$]=ye,$+=1}return z}}(),il=function(){function c(){return{addedLength:0,percents:Ae("float32",Rs()),lengths:Ae("float32",Rs())}}return Er(8,c)}(),sl=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var $,P=v.lengths.length;for($=0;$<P;$+=1)il.release(v.lengths[$]);v.lengths.length=0}return Er(8,c,p)}();function Kc(){var c=Math;function p(F,ee,Y,fe,ce,q){var Z=F*fe+ee*ce+Y*q-ce*fe-q*F-Y*ee;return Z>-.001&&Z<.001}function v(F,ee,Y,fe,ce,q,Z,V,j){if(Y===0&&q===0&&j===0)return p(F,ee,fe,ce,Z,V);var G=c.sqrt(c.pow(fe-F,2)+c.pow(ce-ee,2)+c.pow(q-Y,2)),ne=c.sqrt(c.pow(Z-F,2)+c.pow(V-ee,2)+c.pow(j-Y,2)),oe=c.sqrt(c.pow(Z-fe,2)+c.pow(V-ce,2)+c.pow(j-q,2)),de;return G>ne?G>oe?de=G-ne-oe:de=oe-ne-G:oe>ne?de=oe-ne-G:de=ne-G-oe,de>-1e-4&&de<1e-4}var $=function(){return function(F,ee,Y,fe){var ce=Rs(),q,Z,V,j,G,ne=0,oe,de=[],Oe=[],et=il.newElement();for(V=Y.length,q=0;q<ce;q+=1){for(G=q/(ce-1),oe=0,Z=0;Z<V;Z+=1)j=yt(1-G,3)*F[Z]+3*yt(1-G,2)*G*Y[Z]+3*(1-G)*yt(G,2)*fe[Z]+yt(G,3)*ee[Z],de[Z]=j,Oe[Z]!==null&&(oe+=yt(de[Z]-Oe[Z],2)),Oe[Z]=de[Z];oe&&(oe=Jt(oe),ne+=oe),et.percents[q]=G,et.lengths[q]=ne}return et.addedLength=ne,et}}();function P(F){var ee=sl.newElement(),Y=F.c,fe=F.v,ce=F.o,q=F.i,Z,V=F._length,j=ee.lengths,G=0;for(Z=0;Z<V-1;Z+=1)j[Z]=$(fe[Z],fe[Z+1],ce[Z],q[Z+1]),G+=j[Z].addedLength;return Y&&V&&(j[Z]=$(fe[Z],fe[0],ce[Z],q[0]),G+=j[Z].addedLength),ee.totalLength=G,ee}function _(F){this.segmentLength=0,this.points=new Array(F)}function z(F,ee){this.partialLength=F,this.point=ee}var pe=function(){var F={};return function(ee,Y,fe,ce){var q=(ee[0]+"_"+ee[1]+"_"+Y[0]+"_"+Y[1]+"_"+fe[0]+"_"+fe[1]+"_"+ce[0]+"_"+ce[1]).replace(/\./g,"p");if(!F[q]){var Z=Rs(),V,j,G,ne,oe,de=0,Oe,et,Je=null;ee.length===2&&(ee[0]!==Y[0]||ee[1]!==Y[1])&&p(ee[0],ee[1],Y[0],Y[1],ee[0]+fe[0],ee[1]+fe[1])&&p(ee[0],ee[1],Y[0],Y[1],Y[0]+ce[0],Y[1]+ce[1])&&(Z=2);var Be=new _(Z);for(G=fe.length,V=0;V<Z;V+=1){for(et=Ke(G),oe=V/(Z-1),Oe=0,j=0;j<G;j+=1)ne=yt(1-oe,3)*ee[j]+3*yt(1-oe,2)*oe*(ee[j]+fe[j])+3*(1-oe)*yt(oe,2)*(Y[j]+ce[j])+yt(oe,3)*Y[j],et[j]=ne,Je!==null&&(Oe+=yt(et[j]-Je[j],2));Oe=Jt(Oe),de+=Oe,Be.points[V]=new z(Oe,et),Je=et}Be.segmentLength=de,F[q]=Be}return F[q]}}();function Q(F,ee){var Y=ee.percents,fe=ee.lengths,ce=Y.length,q=xt((ce-1)*F),Z=F*ee.addedLength,V=0;if(q===ce-1||q===0||Z===fe[q])return Y[q];for(var j=fe[q]>Z?-1:1,G=!0;G;)if(fe[q]<=Z&&fe[q+1]>Z?(V=(Z-fe[q])/(fe[q+1]-fe[q]),G=!1):q+=j,q<0||q>=ce-1){if(q===ce-1)return Y[q];G=!1}return Y[q]+(Y[q+1]-Y[q])*V}function ye(F,ee,Y,fe,ce,q){var Z=Q(ce,q),V=1-Z,j=c.round((V*V*V*F[0]+(Z*V*V+V*Z*V+V*V*Z)*Y[0]+(Z*Z*V+V*Z*Z+Z*V*Z)*fe[0]+Z*Z*Z*ee[0])*1e3)/1e3,G=c.round((V*V*V*F[1]+(Z*V*V+V*Z*V+V*V*Z)*Y[1]+(Z*Z*V+V*Z*Z+Z*V*Z)*fe[1]+Z*Z*Z*ee[1])*1e3)/1e3;return[j,G]}var Ce=Ae("float32",8);function Re(F,ee,Y,fe,ce,q,Z){ce<0?ce=0:ce>1&&(ce=1);var V=Q(ce,Z);q=q>1?1:q;var j=Q(q,Z),G,ne=F.length,oe=1-V,de=1-j,Oe=oe*oe*oe,et=V*oe*oe*3,Je=V*V*oe*3,Be=V*V*V,ot=oe*oe*de,ct=V*oe*de+oe*V*de+oe*oe*j,Ie=V*V*de+oe*V*j+V*oe*j,be=V*V*j,ue=oe*de*de,J=V*de*de+oe*j*de+oe*de*j,ge=V*j*de+oe*j*j+V*de*j,Ne=V*j*j,ke=de*de*de,lt=j*de*de+de*j*de+de*de*j,Tt=j*j*de+de*j*j+j*de*j,Et=j*j*j;for(G=0;G<ne;G+=1)Ce[G*4]=c.round((Oe*F[G]+et*Y[G]+Je*fe[G]+Be*ee[G])*1e3)/1e3,Ce[G*4+1]=c.round((ot*F[G]+ct*Y[G]+Ie*fe[G]+be*ee[G])*1e3)/1e3,Ce[G*4+2]=c.round((ue*F[G]+J*Y[G]+ge*fe[G]+Ne*ee[G])*1e3)/1e3,Ce[G*4+3]=c.round((ke*F[G]+lt*Y[G]+Tt*fe[G]+Et*ee[G])*1e3)/1e3;return Ce}return{getSegmentsLength:P,getNewSegment:Re,getPointInSegment:ye,buildBezierData:pe,pointOnLine2D:p,pointOnLine3D:v}}var Xr=Kc(),st=function(){var c=he,p=Math.abs;function v(ce,q){var Z=this.offsetTime,V;this.propType==="multidimensional"&&(V=Ae("float32",this.pv.length));for(var j=q.lastIndex,G=j,ne=this.keyframes.length-1,oe=!0,de,Oe,et;oe;){if(de=this.keyframes[G],Oe=this.keyframes[G+1],G===ne-1&&ce>=Oe.t-Z){de.h&&(de=Oe),j=0;break}if(Oe.t-Z>ce){j=G;break}G<ne-1?G+=1:(j=0,oe=!1)}et=this.keyframesMetadata[G]||{};var Je,Be,ot,ct,Ie,be,ue=Oe.t-Z,J=de.t-Z,ge;if(de.to){et.bezierData||(et.bezierData=Xr.buildBezierData(de.s,Oe.s||de.e,de.to,de.ti));var Ne=et.bezierData;if(ce>=ue||ce<J){var ke=ce>=ue?Ne.points.length-1:0;for(Be=Ne.points[ke].point.length,Je=0;Je<Be;Je+=1)V[Je]=Ne.points[ke].point[Je]}else{et.__fnct?be=et.__fnct:(be=pa.getBezierEasing(de.o.x,de.o.y,de.i.x,de.i.y,de.n).get,et.__fnct=be),ot=be((ce-J)/(ue-J));var lt=Ne.segmentLength*ot,Tt,Et=q.lastFrame<ce&&q._lastKeyframeIndex===G?q._lastAddedLength:0;for(Ie=q.lastFrame<ce&&q._lastKeyframeIndex===G?q._lastPoint:0,oe=!0,ct=Ne.points.length;oe;){if(Et+=Ne.points[Ie].partialLength,lt===0||ot===0||Ie===Ne.points.length-1){for(Be=Ne.points[Ie].point.length,Je=0;Je<Be;Je+=1)V[Je]=Ne.points[Ie].point[Je];break}else if(lt>=Et&&lt<Et+Ne.points[Ie+1].partialLength){for(Tt=(lt-Et)/Ne.points[Ie+1].partialLength,Be=Ne.points[Ie].point.length,Je=0;Je<Be;Je+=1)V[Je]=Ne.points[Ie].point[Je]+(Ne.points[Ie+1].point[Je]-Ne.points[Ie].point[Je])*Tt;break}Ie<ct-1?Ie+=1:oe=!1}q._lastPoint=Ie,q._lastAddedLength=Et-Ne.points[Ie].partialLength,q._lastKeyframeIndex=G}}else{var $n,Ht,dr,Jn,Nn;if(ne=de.s.length,ge=Oe.s||de.e,this.sh&&de.h!==1)if(ce>=ue)V[0]=ge[0],V[1]=ge[1],V[2]=ge[2];else if(ce<=J)V[0]=de.s[0],V[1]=de.s[1],V[2]=de.s[2];else{var Un=_(de.s),zn=_(ge),br=(ce-J)/(ue-J);P(V,$(Un,zn,br))}else for(G=0;G<ne;G+=1)de.h!==1&&(ce>=ue?ot=1:ce<J?ot=0:(de.o.x.constructor===Array?(et.__fnct||(et.__fnct=[]),et.__fnct[G]?be=et.__fnct[G]:($n=de.o.x[G]===void 0?de.o.x[0]:de.o.x[G],Ht=de.o.y[G]===void 0?de.o.y[0]:de.o.y[G],dr=de.i.x[G]===void 0?de.i.x[0]:de.i.x[G],Jn=de.i.y[G]===void 0?de.i.y[0]:de.i.y[G],be=pa.getBezierEasing($n,Ht,dr,Jn).get,et.__fnct[G]=be)):et.__fnct?be=et.__fnct:($n=de.o.x,Ht=de.o.y,dr=de.i.x,Jn=de.i.y,be=pa.getBezierEasing($n,Ht,dr,Jn).get,de.keyframeMetadata=be),ot=be((ce-J)/(ue-J)))),ge=Oe.s||de.e,Nn=de.h===1?de.s[G]:de.s[G]+(ge[G]-de.s[G])*ot,this.propType==="multidimensional"?V[G]=Nn:V=Nn}return q.lastIndex=j,V}function $(ce,q,Z){var V=[],j=ce[0],G=ce[1],ne=ce[2],oe=ce[3],de=q[0],Oe=q[1],et=q[2],Je=q[3],Be,ot,ct,Ie,be;return ot=j*de+G*Oe+ne*et+oe*Je,ot<0&&(ot=-ot,de=-de,Oe=-Oe,et=-et,Je=-Je),1-ot>1e-6?(Be=Math.acos(ot),ct=Math.sin(Be),Ie=Math.sin((1-Z)*Be)/ct,be=Math.sin(Z*Be)/ct):(Ie=1-Z,be=Z),V[0]=Ie*j+be*de,V[1]=Ie*G+be*Oe,V[2]=Ie*ne+be*et,V[3]=Ie*oe+be*Je,V}function P(ce,q){var Z=q[0],V=q[1],j=q[2],G=q[3],ne=Math.atan2(2*V*G-2*Z*j,1-2*V*V-2*j*j),oe=Math.asin(2*Z*V+2*j*G),de=Math.atan2(2*Z*G-2*V*j,1-2*Z*Z-2*j*j);ce[0]=ne/mt,ce[1]=oe/mt,ce[2]=de/mt}function _(ce){var q=ce[0]*mt,Z=ce[1]*mt,V=ce[2]*mt,j=Math.cos(q/2),G=Math.cos(Z/2),ne=Math.cos(V/2),oe=Math.sin(q/2),de=Math.sin(Z/2),Oe=Math.sin(V/2),et=j*G*ne-oe*de*Oe,Je=oe*de*ne+j*G*Oe,Be=oe*G*ne+j*de*Oe,ot=j*de*ne-oe*G*Oe;return[Je,Be,ot,et]}function z(){var ce=this.comp.renderedFrame-this.offsetTime,q=this.keyframes[0].t-this.offsetTime,Z=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(ce===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Z&&ce>=Z||this._caching.lastFrame<q&&ce<q))){this._caching.lastFrame>=ce&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var V=this.interpolateValue(ce,this._caching);this.pv=V}return this._caching.lastFrame=ce,this.pv}function pe(ce){var q;if(this.propType==="unidimensional")q=ce*this.mult,p(this.v-q)>1e-5&&(this.v=q,this._mdf=!0);else for(var Z=0,V=this.v.length;Z<V;)q=ce[Z]*this.mult,p(this.v[Z]-q)>1e-5&&(this.v[Z]=q,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 ce,q=this.effectsSequence.length,Z=this.kf?this.pv:this.data.k;for(ce=0;ce<q;ce+=1)Z=this.effectsSequence[ce](Z);this.setVValue(Z),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ye(ce){this.effectsSequence.push(ce),this.container.addDynamicProperty(this)}function Ce(ce,q,Z,V){this.propType="unidimensional",this.mult=Z||1,this.data=q,this.v=Z?q.k*Z:q.k,this.pv=q.k,this._mdf=!1,this.elem=ce,this.container=V,this.comp=ce.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Q,this.setVValue=pe,this.addEffect=ye}function Re(ce,q,Z,V){this.propType="multidimensional",this.mult=Z||1,this.data=q,this._mdf=!1,this.elem=ce,this.container=V,this.comp=ce.comp,this.k=!1,this.kf=!1,this.frameId=-1;var j,G=q.k.length;for(this.v=Ae("float32",G),this.pv=Ae("float32",G),this.vel=Ae("float32",G),j=0;j<G;j+=1)this.v[j]=q.k[j]*this.mult,this.pv[j]=q.k[j];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Q,this.setVValue=pe,this.addEffect=ye}function F(ce,q,Z,V){this.propType="unidimensional",this.keyframes=q.k,this.keyframesMetadata=[],this.offsetTime=ce.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=q,this.mult=Z||1,this.elem=ce,this.container=V,this.comp=ce.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=Q,this.setVValue=pe,this.interpolateValue=v,this.effectsSequence=[z.bind(this)],this.addEffect=ye}function ee(ce,q,Z,V){this.propType="multidimensional";var j,G=q.k.length,ne,oe,de,Oe;for(j=0;j<G-1;j+=1)q.k[j].to&&q.k[j].s&&q.k[j+1]&&q.k[j+1].s&&(ne=q.k[j].s,oe=q.k[j+1].s,de=q.k[j].to,Oe=q.k[j].ti,(ne.length===2&&!(ne[0]===oe[0]&&ne[1]===oe[1])&&Xr.pointOnLine2D(ne[0],ne[1],oe[0],oe[1],ne[0]+de[0],ne[1]+de[1])&&Xr.pointOnLine2D(ne[0],ne[1],oe[0],oe[1],oe[0]+Oe[0],oe[1]+Oe[1])||ne.length===3&&!(ne[0]===oe[0]&&ne[1]===oe[1]&&ne[2]===oe[2])&&Xr.pointOnLine3D(ne[0],ne[1],ne[2],oe[0],oe[1],oe[2],ne[0]+de[0],ne[1]+de[1],ne[2]+de[2])&&Xr.pointOnLine3D(ne[0],ne[1],ne[2],oe[0],oe[1],oe[2],oe[0]+Oe[0],oe[1]+Oe[1],oe[2]+Oe[2]))&&(q.k[j].to=null,q.k[j].ti=null),ne[0]===oe[0]&&ne[1]===oe[1]&&de[0]===0&&de[1]===0&&Oe[0]===0&&Oe[1]===0&&(ne.length===2||ne[2]===oe[2]&&de[2]===0&&Oe[2]===0)&&(q.k[j].to=null,q.k[j].ti=null));this.effectsSequence=[z.bind(this)],this.data=q,this.keyframes=q.k,this.keyframesMetadata=[],this.offsetTime=ce.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Z||1,this.elem=ce,this.container=V,this.comp=ce.comp,this.getValue=Q,this.setVValue=pe,this.interpolateValue=v,this.frameId=-1;var et=q.k[0].s.length;for(this.v=Ae("float32",et),this.pv=Ae("float32",et),j=0;j<et;j+=1)this.v[j]=c,this.pv[j]=c;this._caching={lastFrame:c,lastIndex:0,value:Ae("float32",et)},this.addEffect=ye}function Y(ce,q,Z,V,j){var G;if(!q.k.length)G=new Ce(ce,q,V,j);else if(typeof q.k[0]=="number")G=new Re(ce,q,V,j);else switch(Z){case 0:G=new F(ce,q,V,j);break;case 1:G=new ee(ce,q,V,j);break}return G.effectsSequence.length&&j.addDynamicProperty(G),G}var fe={getProp:Y};return fe}();function dn(){}dn.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 as=function(){function c(){return Ae("float32",2)}return Er(8,c)}();function hi(){this.c=!1,this._length=0,this._maxLength=8,this.v=Ke(this._maxLength),this.o=Ke(this._maxLength),this.i=Ke(this._maxLength)}hi.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=as.newElement(),this.o[v]=as.newElement(),this.i[v]=as.newElement(),v+=1},hi.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},hi.prototype.doubleArrayLength=function(){this.v=this.v.concat(Ke(this._maxLength)),this.i=this.i.concat(Ke(this._maxLength)),this.o=this.o.concat(Ke(this._maxLength)),this._maxLength*=2},hi.prototype.setXYAt=function(c,p,v,$,P){var _;switch(this._length=Math.max(this._length,$+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":_=this.v;break;case"i":_=this.i;break;case"o":_=this.o;break;default:_=[];break}(!_[$]||_[$]&&!P)&&(_[$]=as.newElement()),_[$][0]=c,_[$][1]=p},hi.prototype.setTripleAt=function(c,p,v,$,P,_,z,pe){this.setXYAt(c,p,"v",z,pe),this.setXYAt(v,$,"o",z,pe),this.setXYAt(P,_,"i",z,pe)},hi.prototype.reverse=function(){var c=new hi;c.setPathData(this.c,this._length);var p=this.v,v=this.o,$=this.i,P=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],$[0][0],$[0][1],v[0][0],v[0][1],0,!1),P=1);var _=this._length-1,z=this._length,pe;for(pe=P;pe<z;pe+=1)c.setTripleAt(p[_][0],p[_][1],$[_][0],$[_][1],v[_][0],v[_][1],pe,!1),_-=1;return c},hi.prototype.length=function(){return this._length};var Xn=function(){function c(){return new hi}function p(P){var _=P._length,z;for(z=0;z<_;z+=1)as.release(P.v[z]),as.release(P.i[z]),as.release(P.o[z]),P.v[z]=null,P.i[z]=null,P.o[z]=null;P._length=0,P.c=!1}function v(P){var _=$.newElement(),z,pe=P._length===void 0?P.v.length:P._length;for(_.setLength(pe),_.c=P.c,z=0;z<pe;z+=1)_.setTripleAt(P.v[z][0],P.v[z][1],P.o[z][0],P.o[z][1],P.i[z][0],P.i[z][1],z);return _}var $=Er(4,c,p);return $.clone=v,$}();function jo(){this._length=0,this._maxLength=4,this.shapes=Ke(this._maxLength)}jo.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ke(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},jo.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Xn.release(this.shapes[c]);this._length=0};var ks=function(){var c={newShapeCollection:P,release:_},p=0,v=4,$=Ke(v);function P(){var z;return p?(p-=1,z=$[p]):z=new jo,z}function _(z){var pe,Q=z._length;for(pe=0;pe<Q;pe+=1)Xn.release(z.shapes[pe]);z._length=0,p===v&&($=rl.double($),v*=2),$[p]=z,p+=1}return c}(),pi=function(){var c=-999999;function p(q,Z,V){var j=V.lastIndex,G,ne,oe,de,Oe,et,Je,Be,ot,ct=this.keyframes;if(q<ct[0].t-this.offsetTime)G=ct[0].s[0],oe=!0,j=0;else if(q>=ct[ct.length-1].t-this.offsetTime)G=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],oe=!0;else{for(var Ie=j,be=ct.length-1,ue=!0,J,ge,Ne;ue&&(J=ct[Ie],ge=ct[Ie+1],!(ge.t-this.offsetTime>q));)Ie<be-1?Ie+=1:ue=!1;if(Ne=this.keyframesMetadata[Ie]||{},oe=J.h===1,j=Ie,!oe){if(q>=ge.t-this.offsetTime)Be=1;else if(q<J.t-this.offsetTime)Be=0;else{var ke;Ne.__fnct?ke=Ne.__fnct:(ke=pa.getBezierEasing(J.o.x,J.o.y,J.i.x,J.i.y).get,Ne.__fnct=ke),Be=ke((q-(J.t-this.offsetTime))/(ge.t-this.offsetTime-(J.t-this.offsetTime)))}ne=ge.s?ge.s[0]:J.e[0]}G=J.s[0]}for(et=Z._length,Je=G.i[0].length,V.lastIndex=j,de=0;de<et;de+=1)for(Oe=0;Oe<Je;Oe+=1)ot=oe?G.i[de][Oe]:G.i[de][Oe]+(ne.i[de][Oe]-G.i[de][Oe])*Be,Z.i[de][Oe]=ot,ot=oe?G.o[de][Oe]:G.o[de][Oe]+(ne.o[de][Oe]-G.o[de][Oe])*Be,Z.o[de][Oe]=ot,ot=oe?G.v[de][Oe]:G.v[de][Oe]+(ne.v[de][Oe]-G.v[de][Oe])*Be,Z.v[de][Oe]=ot}function v(){var q=this.comp.renderedFrame-this.offsetTime,Z=this.keyframes[0].t-this.offsetTime,V=this.keyframes[this.keyframes.length-1].t-this.offsetTime,j=this._caching.lastFrame;return j!==c&&(j<Z&&q<Z||j>V&&q>V)||(this._caching.lastIndex=j<q?this._caching.lastIndex:0,this.interpolateShape(q,this.pv,this._caching)),this._caching.lastFrame=q,this.pv}function $(){this.paths=this.localShapeCollection}function P(q,Z){if(q._length!==Z._length||q.c!==Z.c)return!1;var V,j=q._length;for(V=0;V<j;V+=1)if(q.v[V][0]!==Z.v[V][0]||q.v[V][1]!==Z.v[V][1]||q.o[V][0]!==Z.o[V][0]||q.o[V][1]!==Z.o[V][1]||q.i[V][0]!==Z.i[V][0]||q.i[V][1]!==Z.i[V][1])return!1;return!0}function _(q){P(this.v,q)||(this.v=Xn.clone(q),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function z(){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 q;this.kf?q=this.pv:this.data.ks?q=this.data.ks.k:q=this.data.pt.k;var Z,V=this.effectsSequence.length;for(Z=0;Z<V;Z+=1)q=this.effectsSequence[Z](q);this.setVValue(q),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function pe(q,Z,V){this.propType="shape",this.comp=q.comp,this.container=q,this.elem=q,this.data=Z,this.k=!1,this.kf=!1,this._mdf=!1;var j=V===3?Z.pt.k:Z.ks.k;this.v=Xn.clone(j),this.pv=Xn.clone(this.v),this.localShapeCollection=ks.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=$,this.effectsSequence=[]}function Q(q){this.effectsSequence.push(q),this.container.addDynamicProperty(this)}pe.prototype.interpolateShape=p,pe.prototype.getValue=z,pe.prototype.setVValue=_,pe.prototype.addEffect=Q;function ye(q,Z,V){this.propType="shape",this.comp=q.comp,this.elem=q,this.container=q,this.offsetTime=q.data.st,this.keyframes=V===3?Z.pt.k:Z.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var j=this.keyframes[0].s[0].i.length;this.v=Xn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,j),this.pv=Xn.clone(this.v),this.localShapeCollection=ks.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)]}ye.prototype.getValue=z,ye.prototype.interpolateShape=p,ye.prototype.setVValue=_,ye.prototype.addEffect=Q;var Ce=function(){var q=me;function Z(V,j){this.v=Xn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ks.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=j.d,this.elem=V,this.comp=V.comp,this.frameId=-1,this.initDynamicPropertyContainer(V),this.p=st.getProp(V,j.p,1,0,this),this.s=st.getProp(V,j.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 j=this.p.v[0],G=this.p.v[1],ne=this.s.v[0]/2,oe=this.s.v[1]/2,de=this.d!==3,Oe=this.v;Oe.v[0][0]=j,Oe.v[0][1]=G-oe,Oe.v[1][0]=de?j+ne:j-ne,Oe.v[1][1]=G,Oe.v[2][0]=j,Oe.v[2][1]=G+oe,Oe.v[3][0]=de?j-ne:j+ne,Oe.v[3][1]=G,Oe.i[0][0]=de?j-ne*q:j+ne*q,Oe.i[0][1]=G-oe,Oe.i[1][0]=de?j+ne:j-ne,Oe.i[1][1]=G-oe*q,Oe.i[2][0]=de?j+ne*q:j-ne*q,Oe.i[2][1]=G+oe,Oe.i[3][0]=de?j-ne:j+ne,Oe.i[3][1]=G+oe*q,Oe.o[0][0]=de?j+ne*q:j-ne*q,Oe.o[0][1]=G-oe,Oe.o[1][0]=de?j+ne:j-ne,Oe.o[1][1]=G+oe*q,Oe.o[2][0]=de?j-ne*q:j+ne*q,Oe.o[2][1]=G+oe,Oe.o[3][0]=de?j-ne:j+ne,Oe.o[3][1]=G-oe*q}},Me([dn],Z),Z}(),Re=function(){function q(Z,V){this.v=Xn.newElement(),this.v.setPathData(!0,0),this.elem=Z,this.comp=Z.comp,this.data=V,this.frameId=-1,this.d=V.d,this.initDynamicPropertyContainer(Z),V.sy===1?(this.ir=st.getProp(Z,V.ir,0,0,this),this.is=st.getProp(Z,V.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=st.getProp(Z,V.pt,0,0,this),this.p=st.getProp(Z,V.p,1,0,this),this.r=st.getProp(Z,V.r,0,mt,this),this.or=st.getProp(Z,V.or,0,0,this),this.os=st.getProp(Z,V.os,0,.01,this),this.localShapeCollection=ks.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return q.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 V=Math.floor(this.pt.v)*2,j=Math.PI*2/V,G=!0,ne=this.or.v,oe=this.ir.v,de=this.os.v,Oe=this.is.v,et=2*Math.PI*ne/(V*2),Je=2*Math.PI*oe/(V*2),Be,ot,ct,Ie,be=-Math.PI/2;be+=this.r.v;var ue=this.data.d===3?-1:1;for(this.v._length=0,Be=0;Be<V;Be+=1){ot=G?ne:oe,ct=G?de:Oe,Ie=G?et:Je;var J=ot*Math.cos(be),ge=ot*Math.sin(be),Ne=J===0&&ge===0?0:ge/Math.sqrt(J*J+ge*ge),ke=J===0&&ge===0?0:-J/Math.sqrt(J*J+ge*ge);J+=+this.p.v[0],ge+=+this.p.v[1],this.v.setTripleAt(J,ge,J-Ne*Ie*ct*ue,ge-ke*Ie*ct*ue,J+Ne*Ie*ct*ue,ge+ke*Ie*ct*ue,Be,!0),G=!G,be+=j*ue}},convertPolygonToPath:function(){var V=Math.floor(this.pt.v),j=Math.PI*2/V,G=this.or.v,ne=this.os.v,oe=2*Math.PI*G/(V*4),de,Oe=-Math.PI*.5,et=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,de=0;de<V;de+=1){var Je=G*Math.cos(Oe),Be=G*Math.sin(Oe),ot=Je===0&&Be===0?0:Be/Math.sqrt(Je*Je+Be*Be),ct=Je===0&&Be===0?0:-Je/Math.sqrt(Je*Je+Be*Be);Je+=+this.p.v[0],Be+=+this.p.v[1],this.v.setTripleAt(Je,Be,Je-ot*oe*ne*et,Be-ct*oe*ne*et,Je+ot*oe*ne*et,Be+ct*oe*ne*et,de,!0),Oe+=j*et}this.paths.length=0,this.paths[0]=this.v}},Me([dn],q),q}(),F=function(){function q(Z,V){this.v=Xn.newElement(),this.v.c=!0,this.localShapeCollection=ks.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Z,this.comp=Z.comp,this.frameId=-1,this.d=V.d,this.initDynamicPropertyContainer(Z),this.p=st.getProp(Z,V.p,1,0,this),this.s=st.getProp(Z,V.s,1,0,this),this.r=st.getProp(Z,V.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return q.prototype={convertRectToPath:function(){var V=this.p.v[0],j=this.p.v[1],G=this.s.v[0]/2,ne=this.s.v[1]/2,oe=Mt(G,ne,this.r.v),de=oe*(1-me);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(V+G,j-ne+oe,V+G,j-ne+oe,V+G,j-ne+de,0,!0),this.v.setTripleAt(V+G,j+ne-oe,V+G,j+ne-de,V+G,j+ne-oe,1,!0),oe!==0?(this.v.setTripleAt(V+G-oe,j+ne,V+G-oe,j+ne,V+G-de,j+ne,2,!0),this.v.setTripleAt(V-G+oe,j+ne,V-G+de,j+ne,V-G+oe,j+ne,3,!0),this.v.setTripleAt(V-G,j+ne-oe,V-G,j+ne-oe,V-G,j+ne-de,4,!0),this.v.setTripleAt(V-G,j-ne+oe,V-G,j-ne+de,V-G,j-ne+oe,5,!0),this.v.setTripleAt(V-G+oe,j-ne,V-G+oe,j-ne,V-G+de,j-ne,6,!0),this.v.setTripleAt(V+G-oe,j-ne,V+G-de,j-ne,V+G-oe,j-ne,7,!0)):(this.v.setTripleAt(V-G,j+ne,V-G+de,j+ne,V-G,j+ne,2),this.v.setTripleAt(V-G,j-ne,V-G,j-ne+de,V-G,j-ne,3))):(this.v.setTripleAt(V+G,j-ne+oe,V+G,j-ne+de,V+G,j-ne+oe,0,!0),oe!==0?(this.v.setTripleAt(V+G-oe,j-ne,V+G-oe,j-ne,V+G-de,j-ne,1,!0),this.v.setTripleAt(V-G+oe,j-ne,V-G+de,j-ne,V-G+oe,j-ne,2,!0),this.v.setTripleAt(V-G,j-ne+oe,V-G,j-ne+oe,V-G,j-ne+de,3,!0),this.v.setTripleAt(V-G,j+ne-oe,V-G,j+ne-de,V-G,j+ne-oe,4,!0),this.v.setTripleAt(V-G+oe,j+ne,V-G+oe,j+ne,V-G+de,j+ne,5,!0),this.v.setTripleAt(V+G-oe,j+ne,V+G-de,j+ne,V+G-oe,j+ne,6,!0),this.v.setTripleAt(V+G,j+ne-oe,V+G,j+ne-oe,V+G,j+ne-de,7,!0)):(this.v.setTripleAt(V-G,j-ne,V-G+de,j-ne,V-G,j-ne,1,!0),this.v.setTripleAt(V-G,j+ne,V-G,j+ne-de,V-G,j+ne,2,!0),this.v.setTripleAt(V+G,j+ne,V+G-de,j+ne,V+G,j+ne,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:$},Me([dn],q),q}();function ee(q,Z,V){var j;if(V===3||V===4){var G=V===3?Z.pt:Z.ks,ne=G.k;ne.length?j=new ye(q,Z,V):j=new pe(q,Z,V)}else V===5?j=new F(q,Z):V===6?j=new Ce(q,Z):V===7&&(j=new Re(q,Z));return j.k&&q.addDynamicProperty(j),j}function Y(){return pe}function fe(){return ye}var ce={};return ce.getShapeProp=ee,ce.getConstructorFunction=Y,ce.getKeyframedConstructorFunction=fe,ce}();/*!
136
- Transformation Matrix v2.0
137
- (c) Epistemex 2014-2015
138
- www.epistemex.com
139
- By Ken Fyrstenberg
140
- Contributions by leeoniya.
141
- License: MIT, header required.
142
- */var Ln=function(){var c=Math.cos,p=Math.sin,v=Math.tan,$=Math.round;function P(){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 _(ue){if(ue===0)return this;var J=c(ue),ge=p(ue);return this._t(J,-ge,0,0,ge,J,0,0,0,0,1,0,0,0,0,1)}function z(ue){if(ue===0)return this;var J=c(ue),ge=p(ue);return this._t(1,0,0,0,0,J,-ge,0,0,ge,J,0,0,0,0,1)}function pe(ue){if(ue===0)return this;var J=c(ue),ge=p(ue);return this._t(J,0,ge,0,0,1,0,0,-ge,0,J,0,0,0,0,1)}function Q(ue){if(ue===0)return this;var J=c(ue),ge=p(ue);return this._t(J,-ge,0,0,ge,J,0,0,0,0,1,0,0,0,0,1)}function ye(ue,J){return this._t(1,J,ue,1,0,0)}function Ce(ue,J){return this.shear(v(ue),v(J))}function Re(ue,J){var ge=c(J),Ne=p(J);return this._t(ge,Ne,0,0,-Ne,ge,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,v(ue),1,0,0,0,0,1,0,0,0,0,1)._t(ge,-Ne,0,0,Ne,ge,0,0,0,0,1,0,0,0,0,1)}function F(ue,J,ge){return!ge&&ge!==0&&(ge=1),ue===1&&J===1&&ge===1?this:this._t(ue,0,0,0,0,J,0,0,0,0,ge,0,0,0,0,1)}function ee(ue,J,ge,Ne,ke,lt,Tt,Et,$n,Ht,dr,Jn,Nn,Un,zn,br){return this.props[0]=ue,this.props[1]=J,this.props[2]=ge,this.props[3]=Ne,this.props[4]=ke,this.props[5]=lt,this.props[6]=Tt,this.props[7]=Et,this.props[8]=$n,this.props[9]=Ht,this.props[10]=dr,this.props[11]=Jn,this.props[12]=Nn,this.props[13]=Un,this.props[14]=zn,this.props[15]=br,this}function Y(ue,J,ge){return ge=ge||0,ue!==0||J!==0||ge!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ue,J,ge,1):this}function fe(ue,J,ge,Ne,ke,lt,Tt,Et,$n,Ht,dr,Jn,Nn,Un,zn,br){var ft=this.props;if(ue===1&&J===0&&ge===0&&Ne===0&&ke===0&&lt===1&&Tt===0&&Et===0&&$n===0&&Ht===0&&dr===1&&Jn===0)return ft[12]=ft[12]*ue+ft[15]*Nn,ft[13]=ft[13]*lt+ft[15]*Un,ft[14]=ft[14]*dr+ft[15]*zn,ft[15]*=br,this._identityCalculated=!1,this;var fn=ft[0],Qr=ft[1],ki=ft[2],cs=ft[3],vi=ft[4],fs=ft[5],ds=ft[6],Zt=ft[7],xn=ft[8],Us=ft[9],yi=ft[10],hs=ft[11],bi=ft[12],ps=ft[13],zs=ft[14],uo=ft[15];return ft[0]=fn*ue+Qr*ke+ki*$n+cs*Nn,ft[1]=fn*J+Qr*lt+ki*Ht+cs*Un,ft[2]=fn*ge+Qr*Tt+ki*dr+cs*zn,ft[3]=fn*Ne+Qr*Et+ki*Jn+cs*br,ft[4]=vi*ue+fs*ke+ds*$n+Zt*Nn,ft[5]=vi*J+fs*lt+ds*Ht+Zt*Un,ft[6]=vi*ge+fs*Tt+ds*dr+Zt*zn,ft[7]=vi*Ne+fs*Et+ds*Jn+Zt*br,ft[8]=xn*ue+Us*ke+yi*$n+hs*Nn,ft[9]=xn*J+Us*lt+yi*Ht+hs*Un,ft[10]=xn*ge+Us*Tt+yi*dr+hs*zn,ft[11]=xn*Ne+Us*Et+yi*Jn+hs*br,ft[12]=bi*ue+ps*ke+zs*$n+uo*Nn,ft[13]=bi*J+ps*lt+zs*Ht+uo*Un,ft[14]=bi*ge+ps*Tt+zs*dr+uo*zn,ft[15]=bi*Ne+ps*Et+zs*Jn+uo*br,this._identityCalculated=!1,this}function ce(){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 q(ue){for(var J=0;J<16;){if(ue.props[J]!==this.props[J])return!1;J+=1}return!0}function Z(ue){var J;for(J=0;J<16;J+=1)ue.props[J]=this.props[J];return ue}function V(ue){var J;for(J=0;J<16;J+=1)this.props[J]=ue[J]}function j(ue,J,ge){return{x:ue*this.props[0]+J*this.props[4]+ge*this.props[8]+this.props[12],y:ue*this.props[1]+J*this.props[5]+ge*this.props[9]+this.props[13],z:ue*this.props[2]+J*this.props[6]+ge*this.props[10]+this.props[14]}}function G(ue,J,ge){return ue*this.props[0]+J*this.props[4]+ge*this.props[8]+this.props[12]}function ne(ue,J,ge){return ue*this.props[1]+J*this.props[5]+ge*this.props[9]+this.props[13]}function oe(ue,J,ge){return ue*this.props[2]+J*this.props[6]+ge*this.props[10]+this.props[14]}function de(){var ue=this.props[0]*this.props[5]-this.props[1]*this.props[4],J=this.props[5]/ue,ge=-this.props[1]/ue,Ne=-this.props[4]/ue,ke=this.props[0]/ue,lt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ue,Tt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ue,Et=new Ln;return Et.props[0]=J,Et.props[1]=ge,Et.props[4]=Ne,Et.props[5]=ke,Et.props[12]=lt,Et.props[13]=Tt,Et}function Oe(ue){var J=this.getInverseMatrix();return J.applyToPointArray(ue[0],ue[1],ue[2]||0)}function et(ue){var J,ge=ue.length,Ne=[];for(J=0;J<ge;J+=1)Ne[J]=Oe(ue[J]);return Ne}function Je(ue,J,ge){var Ne=Ae("float32",6);if(this.isIdentity())Ne[0]=ue[0],Ne[1]=ue[1],Ne[2]=J[0],Ne[3]=J[1],Ne[4]=ge[0],Ne[5]=ge[1];else{var ke=this.props[0],lt=this.props[1],Tt=this.props[4],Et=this.props[5],$n=this.props[12],Ht=this.props[13];Ne[0]=ue[0]*ke+ue[1]*Tt+$n,Ne[1]=ue[0]*lt+ue[1]*Et+Ht,Ne[2]=J[0]*ke+J[1]*Tt+$n,Ne[3]=J[0]*lt+J[1]*Et+Ht,Ne[4]=ge[0]*ke+ge[1]*Tt+$n,Ne[5]=ge[0]*lt+ge[1]*Et+Ht}return Ne}function Be(ue,J,ge){var Ne;return this.isIdentity()?Ne=[ue,J,ge]:Ne=[ue*this.props[0]+J*this.props[4]+ge*this.props[8]+this.props[12],ue*this.props[1]+J*this.props[5]+ge*this.props[9]+this.props[13],ue*this.props[2]+J*this.props[6]+ge*this.props[10]+this.props[14]],Ne}function ot(ue,J){if(this.isIdentity())return ue+","+J;var ge=this.props;return Math.round((ue*ge[0]+J*ge[4]+ge[12])*100)/100+","+Math.round((ue*ge[1]+J*ge[5]+ge[13])*100)/100}function ct(){for(var ue=0,J=this.props,ge="matrix3d(",Ne=1e4;ue<16;)ge+=$(J[ue]*Ne)/Ne,ge+=ue===15?")":",",ue+=1;return ge}function Ie(ue){var J=1e4;return ue<1e-6&&ue>0||ue>-1e-6&&ue<0?$(ue*J)/J:ue}function be(){var ue=this.props,J=Ie(ue[0]),ge=Ie(ue[1]),Ne=Ie(ue[4]),ke=Ie(ue[5]),lt=Ie(ue[12]),Tt=Ie(ue[13]);return"matrix("+J+","+ge+","+Ne+","+ke+","+lt+","+Tt+")"}return function(){this.reset=P,this.rotate=_,this.rotateX=z,this.rotateY=pe,this.rotateZ=Q,this.skew=Ce,this.skewFromAxis=Re,this.shear=ye,this.scale=F,this.setTransform=ee,this.translate=Y,this.transform=fe,this.applyToPoint=j,this.applyToX=G,this.applyToY=ne,this.applyToZ=oe,this.applyToPointArray=Be,this.applyToTriplePoints=Je,this.applyToPointStringified=ot,this.toCSS=ct,this.to2dCSS=be,this.clone=Z,this.cloneFromProps=V,this.equals=q,this.inversePoints=et,this.inversePoint=Oe,this.getInverseMatrix=de,this._t=this.transform,this.isIdentity=ce,this._identity=!0,this._identityCalculated=!1,this.props=Ae("float32",16),this.reset()}}();function no(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?no=function(v){return typeof v}:no=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},no(c)}var Ut={};function Uc(c){xe(c)}function al(){Sn.searchAnimations()}function zc(c){Wt(c)}function Ko(c){Vo(c)}function ma(c){return Sn.loadAnimation(c)}function ol(c){if(typeof c=="string")switch(c){case"high":kr(200);break;default:case"medium":kr(50);break;case"low":kr(10);break}else!isNaN(c)&&c>1&&kr(c)}function Uo(){return typeof navigator<"u"}function qc(c,p){c==="expressions"&&Zr(p)}function Wc(c){switch(c){case"propertyFactory":return st;case"shapePropertyFactory":return pi;case"matrix":return Ln;default:return null}}Ut.play=Sn.play,Ut.pause=Sn.pause,Ut.setLocationHref=Uc,Ut.togglePause=Sn.togglePause,Ut.setSpeed=Sn.setSpeed,Ut.setDirection=Sn.setDirection,Ut.stop=Sn.stop,Ut.searchAnimations=al,Ut.registerAnimation=Sn.registerAnimation,Ut.loadAnimation=ma,Ut.setSubframeRendering=zc,Ut.resize=Sn.resize,Ut.goToAndStop=Sn.goToAndStop,Ut.destroy=Sn.destroy,Ut.setQuality=ol,Ut.inBrowser=Uo,Ut.installPlugin=qc,Ut.freeze=Sn.freeze,Ut.unfreeze=Sn.unfreeze,Ut.setVolume=Sn.setVolume,Ut.mute=Sn.mute,Ut.unmute=Sn.unmute,Ut.getRegisteredAnimations=Sn.getRegisteredAnimations,Ut.useWebWorker=U,Ut.setIDPrefix=Ko,Ut.__getFactory=Wc,Ut.version="5.10.2";function Hc(){document.readyState==="complete"&&(clearInterval(cl),al())}function ul(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 qo=document.getElementsByTagName("script"),ga=qo.length-1,ll=qo[ga]||{src:""};zo=ll.src?ll.src.replace(/^[^\?]+\??/,""):"",ul("renderer")}var cl=setInterval(Hc,100);try{no(ie)!=="object"&&(window.bodymovin=Ut)}catch{}var Or=function(){var c={},p={};c.registerModifier=v,c.getModifier=$;function v(P,_){p[P]||(p[P]=_)}function $(P,_,z){return new p[P](_,z)}return c}();function vr(){}vr.prototype.initModifierProperties=function(){},vr.prototype.addShapeToModifier=function(){},vr.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var p={shape:c.sh,data:c,localShapeCollection:ks.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&c.setAsAnimated()}},vr.prototype.init=function(c,p){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p),this.frameId=he,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},vr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Me([dn],vr);function Ir(){}Me([vr],Ir),Ir.prototype.initModifierProperties=function(c,p){this.s=st.getProp(c,p.s,0,.01,this),this.e=st.getProp(c,p.e,0,.01,this),this.o=st.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},Ir.prototype.addShapeToModifier=function(c){c.pathsData=[]},Ir.prototype.calculateShapeEdges=function(c,p,v,$,P){var _=[];p<=1?_.push({s:c,e:p}):c>=1?_.push({s:c-1,e:p-1}):(_.push({s:c,e:1}),_.push({s:0,e:p-1}));var z=[],pe,Q=_.length,ye;for(pe=0;pe<Q;pe+=1)if(ye=_[pe],!(ye.e*P<$||ye.s*P>$+v)){var Ce,Re;ye.s*P<=$?Ce=0:Ce=(ye.s*P-$)/v,ye.e*P>=$+v?Re=1:Re=(ye.e*P-$)/v,z.push([Ce,Re])}return z.length||z.push([0,0]),z},Ir.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)sl.release(c[p]);return c.length=0,c},Ir.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 P=p;p=v,v=P}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 _,z,pe=this.shapes.length,Q,ye,Ce,Re,F,ee=0;if(v===p)for(z=0;z<pe;z+=1)this.shapes[z].localShapeCollection.releaseShapes(),this.shapes[z].shape._mdf=!0,this.shapes[z].shape.paths=this.shapes[z].localShapeCollection,this._mdf&&(this.shapes[z].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(z=0;z<pe;z+=1)this.shapes[z].pathsData.length=0,this.shapes[z].shape._mdf=!0}else{var Y=[],fe,ce;for(z=0;z<pe;z+=1)if(fe=this.shapes[z],!fe.shape._mdf&&!this._mdf&&!c&&this.m!==2)fe.shape.paths=fe.localShapeCollection;else{if(_=fe.shape.paths,ye=_._length,F=0,!fe.shape._mdf&&fe.pathsData.length)F=fe.totalShapeLength;else{for(Ce=this.releasePathsData(fe.pathsData),Q=0;Q<ye;Q+=1)Re=Xr.getSegmentsLength(_.shapes[Q]),Ce.push(Re),F+=Re.totalLength;fe.totalShapeLength=F,fe.pathsData=Ce}ee+=F,fe.shape._mdf=!0}var q=p,Z=v,V=0,j;for(z=pe-1;z>=0;z-=1)if(fe=this.shapes[z],fe.shape._mdf){for(ce=fe.localShapeCollection,ce.releaseShapes(),this.m===2&&pe>1?(j=this.calculateShapeEdges(p,v,fe.totalShapeLength,V,ee),V+=fe.totalShapeLength):j=[[q,Z]],ye=j.length,Q=0;Q<ye;Q+=1){q=j[Q][0],Z=j[Q][1],Y.length=0,Z<=1?Y.push({s:fe.totalShapeLength*q,e:fe.totalShapeLength*Z}):q>=1?Y.push({s:fe.totalShapeLength*(q-1),e:fe.totalShapeLength*(Z-1)}):(Y.push({s:fe.totalShapeLength*q,e:fe.totalShapeLength}),Y.push({s:0,e:fe.totalShapeLength*(Z-1)}));var G=this.addShapes(fe,Y[0]);if(Y[0].s!==Y[0].e){if(Y.length>1){var ne=fe.shape.paths.shapes[fe.shape.paths._length-1];if(ne.c){var oe=G.pop();this.addPaths(G,ce),G=this.addShapes(fe,Y[1],oe)}else this.addPaths(G,ce),G=this.addShapes(fe,Y[1])}this.addPaths(G,ce)}}fe.shape.paths=ce}}},Ir.prototype.addPaths=function(c,p){var v,$=c.length;for(v=0;v<$;v+=1)p.addShape(c[v])},Ir.prototype.addSegment=function(c,p,v,$,P,_,z){P.setXYAt(p[0],p[1],"o",_),P.setXYAt(v[0],v[1],"i",_+1),z&&P.setXYAt(c[0],c[1],"v",_),P.setXYAt($[0],$[1],"v",_+1)},Ir.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)},Ir.prototype.addShapes=function(c,p,v){var $=c.pathsData,P=c.shape.paths.shapes,_,z=c.shape.paths._length,pe,Q,ye=0,Ce,Re,F,ee,Y=[],fe,ce=!0;for(v?(Re=v._length,fe=v._length):(v=Xn.newElement(),Re=0,fe=0),Y.push(v),_=0;_<z;_+=1){for(F=$[_].lengths,v.c=P[_].c,Q=P[_].c?F.length:F.length+1,pe=1;pe<Q;pe+=1)if(Ce=F[pe-1],ye+Ce.addedLength<p.s)ye+=Ce.addedLength,v.c=!1;else if(ye>p.e){v.c=!1;break}else p.s<=ye&&p.e>=ye+Ce.addedLength?(this.addSegment(P[_].v[pe-1],P[_].o[pe-1],P[_].i[pe],P[_].v[pe],v,Re,ce),ce=!1):(ee=Xr.getNewSegment(P[_].v[pe-1],P[_].v[pe],P[_].o[pe-1],P[_].i[pe],(p.s-ye)/Ce.addedLength,(p.e-ye)/Ce.addedLength,F[pe-1]),this.addSegmentFromArray(ee,v,Re,ce),ce=!1,v.c=!1),ye+=Ce.addedLength,Re+=1;if(P[_].c&&F.length){if(Ce=F[pe-1],ye<=p.e){var q=F[pe-1].addedLength;p.s<=ye&&p.e>=ye+q?(this.addSegment(P[_].v[pe-1],P[_].o[pe-1],P[_].i[0],P[_].v[0],v,Re,ce),ce=!1):(ee=Xr.getNewSegment(P[_].v[pe-1],P[_].v[0],P[_].o[pe-1],P[_].i[0],(p.s-ye)/q,(p.e-ye)/q,F[pe-1]),this.addSegmentFromArray(ee,v,Re,ce),ce=!1,v.c=!1)}else v.c=!1;ye+=Ce.addedLength,Re+=1}if(v._length&&(v.setXYAt(v.v[fe][0],v.v[fe][1],"i",fe),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),ye>p.e)break;_<z-1&&(v=Xn.newElement(),ce=!0,Y.push(v),Re=0)}return Y};function Os(){}Me([vr],Os),Os.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=st.getProp(c,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Os.prototype.processPath=function(c,p){var v=p/100,$=[0,0],P=c._length,_=0;for(_=0;_<P;_+=1)$[0]+=c.v[_][0],$[1]+=c.v[_][1];$[0]/=P,$[1]/=P;var z=Xn.newElement();z.c=c.c;var pe,Q,ye,Ce,Re,F;for(_=0;_<P;_+=1)pe=c.v[_][0]+($[0]-c.v[_][0])*v,Q=c.v[_][1]+($[1]-c.v[_][1])*v,ye=c.o[_][0]+($[0]-c.o[_][0])*-v,Ce=c.o[_][1]+($[1]-c.o[_][1])*-v,Re=c.i[_][0]+($[0]-c.i[_][0])*-v,F=c.i[_][1]+($[1]-c.i[_][1])*-v,z.setTripleAt(pe,Q,ye,Ce,Re,F,_);return z},Os.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,z=this.amount.v;if(z!==0){var pe,Q;for(v=0;v<$;v+=1){if(pe=this.shapes[v],Q=pe.localShapeCollection,!(!pe.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),pe.shape._mdf=!0,p=pe.shape.paths.shapes,_=pe.shape.paths._length,P=0;P<_;P+=1)Q.addShape(this.processPath(p[P],z));pe.shape.paths=pe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var ro=function(){var c=[0,0];function p(Q){var ye=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||ye,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 ye;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Ce,Re;if(ye=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)/ye,0),Re=this.p.getValueAtTime(this.p.keyframes[0].t/ye,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/ye,0),Re=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ye,0)):(Ce=this.p.pv,Re=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ye,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Ce=[],Re=[];var F=this.px,ee=this.py;F._caching.lastFrame+F.offsetTime<=F.keyframes[0].t?(Ce[0]=F.getValueAtTime((F.keyframes[0].t+.01)/ye,0),Ce[1]=ee.getValueAtTime((ee.keyframes[0].t+.01)/ye,0),Re[0]=F.getValueAtTime(F.keyframes[0].t/ye,0),Re[1]=ee.getValueAtTime(ee.keyframes[0].t/ye,0)):F._caching.lastFrame+F.offsetTime>=F.keyframes[F.keyframes.length-1].t?(Ce[0]=F.getValueAtTime(F.keyframes[F.keyframes.length-1].t/ye,0),Ce[1]=ee.getValueAtTime(ee.keyframes[ee.keyframes.length-1].t/ye,0),Re[0]=F.getValueAtTime((F.keyframes[F.keyframes.length-1].t-.01)/ye,0),Re[1]=ee.getValueAtTime((ee.keyframes[ee.keyframes.length-1].t-.01)/ye,0)):(Ce=[F.pv,ee.pv],Re[0]=F.getValueAtTime((F._caching.lastFrame+F.offsetTime-.01)/ye,F.offsetTime),Re[1]=ee.getValueAtTime((ee._caching.lastFrame+ee.offsetTime-.01)/ye,ee.offsetTime))}else Re=c,Ce=Re;this.v.rotate(-Math.atan2(Ce[1]-Re[1],Ce[0]-Re[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function $(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function P(){}function _(Q){this._addDynamicProperty(Q),this.elem.addDynamicProperty(Q),this._isDirty=!0}function z(Q,ye,Ce){if(this.elem=Q,this.frameId=-1,this.propType="transform",this.data=ye,this.v=new Ln,this.pre=new Ln,this.appliedTransformations=0,this.initDynamicPropertyContainer(Ce||Q),ye.p&&ye.p.s?(this.px=st.getProp(Q,ye.p.x,0,0,this),this.py=st.getProp(Q,ye.p.y,0,0,this),ye.p.z&&(this.pz=st.getProp(Q,ye.p.z,0,0,this))):this.p=st.getProp(Q,ye.p||{k:[0,0,0]},1,0,this),ye.rx){if(this.rx=st.getProp(Q,ye.rx,0,mt,this),this.ry=st.getProp(Q,ye.ry,0,mt,this),this.rz=st.getProp(Q,ye.rz,0,mt,this),ye.or.k[0].ti){var Re,F=ye.or.k.length;for(Re=0;Re<F;Re+=1)ye.or.k[Re].to=null,ye.or.k[Re].ti=null}this.or=st.getProp(Q,ye.or,1,mt,this),this.or.sh=!0}else this.r=st.getProp(Q,ye.r||{k:0},0,mt,this);ye.sk&&(this.sk=st.getProp(Q,ye.sk,0,mt,this),this.sa=st.getProp(Q,ye.sa,0,mt,this)),this.a=st.getProp(Q,ye.a||{k:[0,0,0]},1,0,this),this.s=st.getProp(Q,ye.s||{k:[100,100,100]},1,.01,this),ye.o?this.o=st.getProp(Q,ye.o,0,.01,Q):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}z.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:$,autoOrient:P},Me([dn],z),z.prototype.addDynamicProperty=_,z.prototype._addDynamicProperty=dn.prototype.addDynamicProperty;function pe(Q,ye,Ce){return new z(Q,ye,Ce)}return{getTransformProperty:pe}}();function yr(){}Me([vr],yr),yr.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.c=st.getProp(c,p.c,0,null,this),this.o=st.getProp(c,p.o,0,null,this),this.tr=ro.getTransformProperty(c,p.tr,this),this.so=st.getProp(c,p.tr.so,0,.01,this),this.eo=st.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 Ln,this.rMatrix=new Ln,this.sMatrix=new Ln,this.tMatrix=new Ln,this.matrix=new Ln},yr.prototype.applyTransforms=function(c,p,v,$,P,_){var z=_?-1:1,pe=$.s.v[0]+(1-$.s.v[0])*(1-P),Q=$.s.v[1]+(1-$.s.v[1])*(1-P);c.translate($.p.v[0]*z*P,$.p.v[1]*z*P,$.p.v[2]),p.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),p.rotate(-$.r.v*z*P),p.translate($.a.v[0],$.a.v[1],$.a.v[2]),v.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),v.scale(_?1/pe:pe,_?1/Q:Q),v.translate($.a.v[0],$.a.v[1],$.a.v[2])},yr.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)},yr.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)},yr.prototype.cloneElements=function(c){var p=JSON.parse(JSON.stringify(c));return this.resetElements(p),p},yr.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)},yr.prototype.processShapes=function(c){var p,v,$,P,_,z=!1;if(this._mdf||c){var pe=Math.ceil(this.c.v);if(this._groups.length<pe){for(;this._groups.length<pe;){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(),z=!0}_=0;var ye;for($=0;$<=this._groups.length-1;$+=1){if(ye=_<pe,this._groups[$]._render=ye,this.changeGroupRender(this._groups[$].it,ye),!ye){var Ce=this.elemsData[$].it,Re=Ce[Ce.length-1];Re.transform.op.v!==0?(Re.transform.op._mdf=!0,Re.transform.op.v=0):Re.transform.op._mdf=!1}_+=1}this._currentCopies=pe;var F=this.o.v,ee=F%1,Y=F>0?Math.floor(F):Math.ceil(F),fe=this.pMatrix.props,ce=this.rMatrix.props,q=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(F>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(F<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,P=this.data.m===1?1:-1,_=this._currentCopies;for(var V,j;_;){if(p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,j=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&&P===1||$!==this._currentCopies-1&&P===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(ce[0],ce[1],ce[2],ce[3],ce[4],ce[5],ce[6],ce[7],ce[8],ce[9],ce[10],ce[11],ce[12],ce[13],ce[14],ce[15]),this.matrix.transform(q[0],q[1],q[2],q[3],q[4],q[5],q[6],q[7],q[8],q[9],q[10],q[11],q[12],q[13],q[14],q[15]),this.matrix.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],fe[8],fe[9],fe[10],fe[11],fe[12],fe[13],fe[14],fe[15]),V=0;V<j;V+=1)v[V]=this.matrix.props[V];this.matrix.reset()}else for(this.matrix.reset(),V=0;V<j;V+=1)v[V]=this.matrix.props[V];Z+=1,_-=1,$+=P}}else for(_=this._currentCopies,$=0,P=1;_;)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,_-=1,$+=P;return z},yr.prototype.addShape=function(){};function va(){}Me([vr],va),va.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.rd=st.getProp(c,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},va.prototype.processPath=function(c,p){var v=Xn.newElement();v.c=c.c;var $,P=c._length,_,z,pe,Q,ye,Ce,Re=0,F,ee,Y,fe,ce,q;for($=0;$<P;$+=1)_=c.v[$],pe=c.o[$],z=c.i[$],_[0]===pe[0]&&_[1]===pe[1]&&_[0]===z[0]&&_[1]===z[1]?($===0||$===P-1)&&!c.c?(v.setTripleAt(_[0],_[1],pe[0],pe[1],z[0],z[1],Re),Re+=1):($===0?Q=c.v[P-1]:Q=c.v[$-1],ye=Math.sqrt(Math.pow(_[0]-Q[0],2)+Math.pow(_[1]-Q[1],2)),Ce=ye?Math.min(ye/2,p)/ye:0,ce=_[0]+(Q[0]-_[0])*Ce,F=ce,q=_[1]-(_[1]-Q[1])*Ce,ee=q,Y=F-(F-_[0])*me,fe=ee-(ee-_[1])*me,v.setTripleAt(F,ee,Y,fe,ce,q,Re),Re+=1,$===P-1?Q=c.v[0]:Q=c.v[$+1],ye=Math.sqrt(Math.pow(_[0]-Q[0],2)+Math.pow(_[1]-Q[1],2)),Ce=ye?Math.min(ye/2,p)/ye:0,Y=_[0]+(Q[0]-_[0])*Ce,F=Y,fe=_[1]+(Q[1]-_[1])*Ce,ee=fe,ce=F-(F-_[0])*me,q=ee-(ee-_[1])*me,v.setTripleAt(F,ee,Y,fe,ce,q,Re),Re+=1):(v.setTripleAt(c.v[$][0],c.v[$][1],c.o[$][0],c.o[$][1],c.i[$][0],c.i[$][1],Re),Re+=1);return v},va.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,z=this.rd.v;if(z!==0){var pe,Q;for(v=0;v<$;v+=1){if(pe=this.shapes[v],Q=pe.localShapeCollection,!(!pe.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),pe.shape._mdf=!0,p=pe.shape.paths.shapes,_=pe.shape.paths._length,P=0;P<_;P+=1)Q.addShape(this.processPath(p[P],z));pe.shape.paths=pe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ya(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function Pi(c){return Math.abs(c)<=1e-5}function mi(c,p,v){return c*(1-v)+p*v}function or(c,p,v){return[mi(c[0],p[0],v),mi(c[1],p[1],v)]}function _i(c,p,v){if(c===0)return[];var $=p*p-4*c*v;if($<0)return[];var P=-p/(2*c);if($===0)return[P];var _=Math.sqrt($)/(2*c);return[P-_,P+_]}function Wo(c,p,v,$){return[-c+3*p-3*v+$,3*c-6*p+3*v,-3*c+3*p,c]}function fl(c){return new mn(c,c,c,c,!1)}function mn(c,p,v,$,P){P&&os(c,p)&&(p=or(c,$,1/3)),P&&os(v,$)&&(v=or(c,$,2/3));var _=Wo(c[0],p[0],v[0],$[0]),z=Wo(c[1],p[1],v[1],$[1]);this.a=[_[0],z[0]],this.b=[_[1],z[1]],this.c=[_[2],z[2]],this.d=[_[3],z[3]],this.points=[c,p,v,$]}mn.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]]},mn.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]]},mn.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},mn.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},mn.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Pi(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 Pi($)?$>0&&$<1?[p]:[]:[p-$,p+$].filter(function(P){return P>0&&P<1})},mn.prototype.split=function(c){if(c<=0)return[fl(this.points[0]),this];if(c>=1)return[this,fl(this.points[this.points.length-1])];var p=or(this.points[0],this.points[1],c),v=or(this.points[1],this.points[2],c),$=or(this.points[2],this.points[3],c),P=or(p,v,c),_=or(v,$,c),z=or(P,_,c);return[new mn(this.points[0],p,P,z,!0),new mn(z,_,$,this.points[3],!0)]};function Ho(c,p){var v=c.points[0][p],$=c.points[c.points.length-1][p];if(v>$){var P=$;$=v,v=P}for(var _=_i(3*c.a[p],2*c.b[p],c.c[p]),z=0;z<_.length;z+=1)if(_[z]>0&&_[z]<1){var pe=c.point(_[z])[p];pe<v?v=pe:pe>$&&($=pe)}return{min:v,max:$}}mn.prototype.bounds=function(){return{x:Ho(this,0),y:Ho(this,1)}},mn.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 ba(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 Go(c){var p=c.bez.split(.5);return[ba(p[0],c.t1,c.t),ba(p[1],c.t,c.t2)]}function dl(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 Lr(c,p,v,$,P,_){if(dl(c,p)){if(v>=_||c.width<=$&&c.height<=$&&p.width<=$&&p.height<=$){P.push([c.t,p.t]);return}var z=Go(c),pe=Go(p);Lr(z[0],pe[0],v+1,$,P,_),Lr(z[0],pe[1],v+1,$,P,_),Lr(z[1],pe[0],v+1,$,P,_),Lr(z[1],pe[1],v+1,$,P,_)}}mn.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var $=[];return Lr(ba(this,0,1),ba(c,0,1),0,p,$,v),$},mn.shapeSegment=function(c,p){var v=(p+1)%c.length();return new mn(c.v[p],c.o[p],c.i[v],c.v[v],!0)},mn.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new mn(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function Yo(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 Is(c,p,v,$){var P=[c[0],c[1],1],_=[p[0],p[1],1],z=[v[0],v[1],1],pe=[$[0],$[1],1],Q=Yo(Yo(P,_),Yo(z,pe));return Pi(Q[2])?null:[Q[0]/Q[2],Q[1]/Q[2]]}function Ls(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function $a(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function os(c,p){return ya(c[0],p[0])&&ya(c[1],p[1])}function xa(){}Me([vr],xa),xa.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amplitude=st.getProp(c,p.s,0,null,this),this.frequency=st.getProp(c,p.r,0,null,this),this.pointsType=st.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 io(c,p,v,$,P,_,z){var pe=v-Math.PI/2,Q=v+Math.PI/2,ye=p[0]+Math.cos(v)*$*P,Ce=p[1]-Math.sin(v)*$*P;c.setTripleAt(ye,Ce,ye+Math.cos(pe)*_,Ce-Math.sin(pe)*_,ye+Math.cos(Q)*z,Ce-Math.sin(Q)*z,c.length())}function hl(c,p){var v=[p[0]-c[0],p[1]-c[1]],$=-Math.PI*.5,P=[Math.cos($)*v[0]-Math.sin($)*v[1],Math.sin($)*v[0]+Math.cos($)*v[1]];return P}function Gc(c,p){var v=p===0?c.length()-1:p-1,$=(p+1)%c.length(),P=c.v[v],_=c.v[$],z=hl(P,_);return Math.atan2(0,1)-Math.atan2(z[1],z[0])}function wa(c,p,v,$,P,_,z){var pe=Gc(p,v),Q=p.v[v%p._length],ye=p.v[v===0?p._length-1:v-1],Ce=p.v[(v+1)%p._length],Re=_===2?Math.sqrt(Math.pow(Q[0]-ye[0],2)+Math.pow(Q[1]-ye[1],2)):0,F=_===2?Math.sqrt(Math.pow(Q[0]-Ce[0],2)+Math.pow(Q[1]-Ce[1],2)):0;io(c,p.v[v%p._length],pe,z,$,F/((P+1)*2),Re/((P+1)*2))}function Yc(c,p,v,$,P,_){for(var z=0;z<$;z+=1){var pe=(z+1)/($+1),Q=P===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,ye=p.normalAngle(pe),Ce=p.point(pe);io(c,Ce,ye,_,v,Q/(($+1)*2),Q/(($+1)*2)),_=-_}return _}xa.prototype.processPath=function(c,p,v,$){var P=c._length,_=Xn.newElement();if(_.c=c.c,c.c||(P-=1),P===0)return _;var z=-1,pe=mn.shapeSegment(c,0);wa(_,c,0,p,v,$,z);for(var Q=0;Q<P;Q+=1)z=Yc(_,pe,p,v,$,-z),Q===P-1&&!c.c?pe=null:pe=mn.shapeSegment(c,(Q+1)%P),wa(_,c,Q+1,p,v,$,z);return _},xa.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,z=this.amplitude.v,pe=Math.max(0,Math.round(this.frequency.v)),Q=this.pointsType.v;if(z!==0){var ye,Ce;for(v=0;v<$;v+=1){if(ye=this.shapes[v],Ce=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),ye.shape._mdf=!0,p=ye.shape.paths.shapes,_=ye.shape.paths._length,P=0;P<_;P+=1)Ce.addShape(this.processPath(p[P],z,pe,Q));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ca(c,p,v){var $=Math.atan2(p[0]-c[0],p[1]-c[1]);return[Ls(c,$,v),Ls(p,$,v)]}function Yt(c,p){var v,$,P,_,z,pe,Q;Q=Ca(c.points[0],c.points[1],p),v=Q[0],$=Q[1],Q=Ca(c.points[1],c.points[2],p),P=Q[0],_=Q[1],Q=Ca(c.points[2],c.points[3],p),z=Q[0],pe=Q[1];var ye=Is(v,$,P,_);ye===null&&(ye=$);var Ce=Is(z,pe,P,_);return Ce===null&&(Ce=z),new mn(v,ye,Ce,pe)}function nn(c,p,v,$,P){var _=p.points[3],z=v.points[0];if($===3||os(_,z))return _;if($===2){var pe=-p.tangentAngle(1),Q=-v.tangentAngle(0)+Math.PI,ye=Is(_,Ls(_,pe+Math.PI/2,100),z,Ls(z,pe+Math.PI/2,100)),Ce=ye?$a(ye,_):$a(_,z)/2,Re=Ls(_,pe,2*Ce*me);return c.setXYAt(Re[0],Re[1],"o",c.length()-1),Re=Ls(z,Q,2*Ce*me),c.setTripleAt(z[0],z[1],z[0],z[1],Re[0],Re[1],c.length()),z}var F=os(_,p.points[2])?p.points[0]:p.points[2],ee=os(z,v.points[1])?v.points[3]:v.points[1],Y=Is(F,_,z,ee);return Y&&$a(Y,_)<P?(c.setTripleAt(Y[0],Y[1],Y[0],Y[1],Y[0],Y[1],c.length()),Y):_}function se(c,p){var v=c.intersections(p);return v.length&&ya(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Fe(c,p){var v=c.slice(),$=p.slice(),P=se(c[c.length-1],p[0]);return P&&(v[c.length-1]=c[c.length-1].split(P[0])[0],$[0]=p[0].split(P[1])[1]),c.length>1&&p.length>1&&(P=se(c[0],p[p.length-1]),P)?[[c[0].split(P[0])[0]],[p[p.length-1].split(P[1])[1]]]:[v,$]}function ze(c){for(var p,v=1;v<c.length;v+=1)p=Fe(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=Fe(c[c.length-1],c[0]),c[c.length-1]=p[0],c[0]=p[1]),c}function ht(c,p){var v=c.inflectionPoints(),$,P,_,z;if(v.length===0)return[Yt(c,p)];if(v.length===1||ya(v[1],1))return _=c.split(v[0]),$=_[0],P=_[1],[Yt($,p),Yt(P,p)];_=c.split(v[0]),$=_[0];var pe=(v[1]-v[0])/(1-v[0]);return _=_[1].split(pe),z=_[0],P=_[1],[Yt($,p),Yt(z,p),Yt(P,p)]}function bn(){}Me([vr],bn),bn.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=st.getProp(c,p.a,0,null,this),this.miterLimit=st.getProp(c,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},bn.prototype.processPath=function(c,p,v,$){var P=Xn.newElement();P.c=c.c;var _=c.length();c.c||(_-=1);var z,pe,Q,ye=[];for(z=0;z<_;z+=1)Q=mn.shapeSegment(c,z),ye.push(ht(Q,p));if(!c.c)for(z=_-1;z>=0;z-=1)Q=mn.shapeSegmentInverted(c,z),ye.push(ht(Q,p));ye=ze(ye);var Ce=null,Re=null;for(z=0;z<ye.length;z+=1){var F=ye[z];for(Re&&(Ce=nn(P,Re,F[0],v,$)),Re=F[F.length-1],pe=0;pe<F.length;pe+=1)Q=F[pe],Ce&&os(Q.points[0],Ce)?P.setXYAt(Q.points[1][0],Q.points[1][1],"o",P.length()-1):P.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],P.length()),P.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],P.length()),Ce=Q.points[3]}return ye.length&&nn(P,Re,ye[0][0],v,$),P},bn.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,z=this.amount.v,pe=this.miterLimit.v,Q=this.lineJoin;if(z!==0){var ye,Ce;for(v=0;v<$;v+=1){if(ye=this.shapes[v],Ce=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),ye.shape._mdf=!0,p=ye.shape.paths.shapes,_=ye.shape.paths._length,P=0;P<_;P+=1)Ce.addShape(this.processPath(p[P],z,Q,pe));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function sr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",$="normal",P=p.length,_,z=0;z<P;z+=1)switch(_=p[z].toLowerCase(),_){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 ur=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"],P=[65039,8205];function _(j){var G=j.split(","),ne,oe=G.length,de=[];for(ne=0;ne<oe;ne+=1)G[ne]!=="sans-serif"&&G[ne]!=="monospace"&&de.push(G[ne]);return de.join(",")}function z(j,G){var ne=_e("span");ne.setAttribute("aria-hidden",!0),ne.style.fontFamily=G;var oe=_e("span");oe.innerText="giItT1WQy@!-/#",ne.style.position="absolute",ne.style.left="-10000px",ne.style.top="-10000px",ne.style.fontSize="300px",ne.style.fontVariant="normal",ne.style.fontStyle="normal",ne.style.fontWeight="normal",ne.style.letterSpacing="0",ne.appendChild(oe),document.body.appendChild(ne);var de=oe.offsetWidth;return oe.style.fontFamily=_(j)+", "+G,{node:oe,w:de,parent:ne}}function pe(){var j,G=this.fonts.length,ne,oe,de=G;for(j=0;j<G;j+=1)this.fonts[j].loaded?de-=1:this.fonts[j].fOrigin==="n"||this.fonts[j].origin===0?this.fonts[j].loaded=!0:(ne=this.fonts[j].monoCase.node,oe=this.fonts[j].monoCase.w,ne.offsetWidth!==oe?(de-=1,this.fonts[j].loaded=!0):(ne=this.fonts[j].sansCase.node,oe=this.fonts[j].sansCase.w,ne.offsetWidth!==oe&&(de-=1,this.fonts[j].loaded=!0)),this.fonts[j].loaded&&(this.fonts[j].sansCase.parent.parentNode.removeChild(this.fonts[j].sansCase.parent),this.fonts[j].monoCase.parent.parentNode.removeChild(this.fonts[j].monoCase.parent)));de!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Q(j,G){var ne=document.body&&G?"svg":"canvas",oe,de=sr(j);if(ne==="svg"){var Oe=$t("text");Oe.style.fontSize="100px",Oe.setAttribute("font-family",j.fFamily),Oe.setAttribute("font-style",de.style),Oe.setAttribute("font-weight",de.weight),Oe.textContent="1",j.fClass?(Oe.style.fontFamily="inherit",Oe.setAttribute("class",j.fClass)):Oe.style.fontFamily=j.fFamily,G.appendChild(Oe),oe=Oe}else{var et=new OffscreenCanvas(500,500).getContext("2d");et.font=de.style+" "+de.weight+" 100px "+j.fFamily,oe=et}function Je(Be){return ne==="svg"?(oe.textContent=Be,oe.getComputedTextLength()):oe.measureText(Be).width}return{measureText:Je}}function ye(j,G){if(!j){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=j.list;return}if(!document.body){this.isLoaded=!0,j.list.forEach(function(be){be.helper=Q(be),be.cache={}}),this.fonts=j.list;return}var ne=j.list,oe,de=ne.length,Oe=de;for(oe=0;oe<de;oe+=1){var et=!0,Je,Be;if(ne[oe].loaded=!1,ne[oe].monoCase=z(ne[oe].fFamily,"monospace"),ne[oe].sansCase=z(ne[oe].fFamily,"sans-serif"),!ne[oe].fPath)ne[oe].loaded=!0,Oe-=1;else if(ne[oe].fOrigin==="p"||ne[oe].origin===3){if(Je=document.querySelectorAll('style[f-forigin="p"][f-family="'+ne[oe].fFamily+'"], style[f-origin="3"][f-family="'+ne[oe].fFamily+'"]'),Je.length>0&&(et=!1),et){var ot=_e("style");ot.setAttribute("f-forigin",ne[oe].fOrigin),ot.setAttribute("f-origin",ne[oe].origin),ot.setAttribute("f-family",ne[oe].fFamily),ot.type="text/css",ot.innerText="@font-face {font-family: "+ne[oe].fFamily+"; font-style: normal; src: url('"+ne[oe].fPath+"');}",G.appendChild(ot)}}else if(ne[oe].fOrigin==="g"||ne[oe].origin===1){for(Je=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Be=0;Be<Je.length;Be+=1)Je[Be].href.indexOf(ne[oe].fPath)!==-1&&(et=!1);if(et){var ct=_e("link");ct.setAttribute("f-forigin",ne[oe].fOrigin),ct.setAttribute("f-origin",ne[oe].origin),ct.type="text/css",ct.rel="stylesheet",ct.href=ne[oe].fPath,document.body.appendChild(ct)}}else if(ne[oe].fOrigin==="t"||ne[oe].origin===2){for(Je=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Be=0;Be<Je.length;Be+=1)ne[oe].fPath===Je[Be].src&&(et=!1);if(et){var Ie=_e("link");Ie.setAttribute("f-forigin",ne[oe].fOrigin),Ie.setAttribute("f-origin",ne[oe].origin),Ie.setAttribute("rel","stylesheet"),Ie.setAttribute("href",ne[oe].fPath),G.appendChild(Ie)}}ne[oe].helper=Q(ne[oe],G),ne[oe].cache={},this.fonts.push(ne[oe])}Oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ce(j){if(j){this.chars||(this.chars=[]);var G,ne=j.length,oe,de=this.chars.length,Oe;for(G=0;G<ne;G+=1){for(oe=0,Oe=!1;oe<de;)this.chars[oe].style===j[G].style&&this.chars[oe].fFamily===j[G].fFamily&&this.chars[oe].ch===j[G].ch&&(Oe=!0),oe+=1;Oe||(this.chars.push(j[G]),de+=1)}}}function Re(j,G,ne){for(var oe=0,de=this.chars.length;oe<de;){if(this.chars[oe].ch===j&&this.chars[oe].style===G&&this.chars[oe].fFamily===ne)return this.chars[oe];oe+=1}return(typeof j=="string"&&j.charCodeAt(0)!==13||!j)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",j,G,ne)),p}function F(j,G,ne){var oe=this.getFontByName(G),de=j.charCodeAt(0);if(!oe.cache[de+1]){var Oe=oe.helper;if(j===" "){var et=Oe.measureText("|"+j+"|"),Je=Oe.measureText("||");oe.cache[de+1]=(et-Je)/100}else oe.cache[de+1]=Oe.measureText(j)/100}return oe.cache[de+1]*ne}function ee(j){for(var G=0,ne=this.fonts.length;G<ne;){if(this.fonts[G].fName===j)return this.fonts[G];G+=1}return this.fonts[0]}function Y(j,G){var ne=j.toString(16)+G.toString(16);return $.indexOf(ne)!==-1}function fe(j,G){return G?j===P[0]&&G===P[1]:j===P[1]}function ce(j){return v.indexOf(j)!==-1}function q(){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=fe,Z.isCombinedCharacter=ce;var V={addChars:Ce,addFonts:ye,getCharData:Re,getFontByName:ee,measureText:F,checkLoadedFonts:pe,setIsLoaded:q};return Z.prototype=V,Z}();function Kn(){}Kn.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 Dn=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 Mi(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Fi(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Zo(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function so(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function lr(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Ea(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function ih(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function sh(){this.p={}}function Zc(c,p){var v=c.ef||[];this.effectElements=[];var $,P=v.length,_;for($=0;$<P;$+=1)_=new ao(v[$],p),this.effectElements.push(_)}function ao(c,p){this.init(c,p)}Me([dn],ao),ao.prototype.getValue=ao.prototype.iterateDynamicProperties,ao.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,$=this.data.ef.length,P,_=this.data.ef;for(v=0;v<$;v+=1){switch(P=null,_[v].ty){case 0:P=new Mi(_[v],p,this);break;case 1:P=new Fi(_[v],p,this);break;case 2:P=new Zo(_[v],p,this);break;case 3:P=new so(_[v],p,this);break;case 4:case 7:P=new ih(_[v],p,this);break;case 10:P=new lr(_[v],p,this);break;case 11:P=new Ea(_[v],p,this);break;case 5:P=new Zc(_[v],p);break;default:P=new sh(_[v]);break}P&&this.effectElements.push(P)}};function us(){}us.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=Dn(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=wt(),this.data.sr||(this.data.sr=1),this.effectsManager=new Zc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Bn(){}Bn.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var $,P=this.dynamicProperties.length;for($=0;$<P;$+=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 Bs(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)}Bs.prototype.prepareFrame=function(){},Me([Kn,us,Bn],Bs),Bs.prototype.getBaseElement=function(){return null},Bs.prototype.renderFrame=function(){},Bs.prototype.destroy=function(){},Bs.prototype.initExpressions=function(){},Bs.prototype.getFootageData=function(){return this.footageData};function hn(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?st.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=st.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}hn.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))},Me([Kn,us,Bn],hn),hn.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))},hn.prototype.show=function(){},hn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},hn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},hn.prototype.resume=function(){this._canPlay=!0},hn.prototype.setRate=function(c){this.audio.rate(c)},hn.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},hn.prototype.getBaseElement=function(){return null},hn.prototype.destroy=function(){},hn.prototype.sourceRectAtTime=function(){},hn.prototype.initExpressions=function(){};function cr(){}cr.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()},cr.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)}},cr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},cr.prototype.createAudio=function(c){return new hn(c,this.globalData,this)},cr.prototype.createFootage=function(c){return new Bs(c,this.globalData,this)},cr.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},cr.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,$,P=this.layers.length;for(p=0;p<v;p+=1)for($=0;$<P;){if(this.layers[$].id===c[p].id){this.layers[$]=c[p];break}$+=1}},cr.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},cr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},cr.prototype.buildElementParenting=function(c,p,v){for(var $=this.elements,P=this.layers,_=0,z=P.length;_<z;)P[_].ind==p&&(!$[_]||$[_]===!0?(this.buildItem(_),this.addPendingElement(c)):(v.push($[_]),$[_].setAsParent(),P[_].parent!==void 0?this.buildElementParenting(c,P[_].parent,v):c.setHierarchy(v))),_+=1},cr.prototype.addPendingElement=function(c){this.pendingElements.push(c)},cr.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($)}},cr.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},cr.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var $,P=this.elements.length;for($=0;$<P;$+=1)if(this.elements[$].data.nm===p){v=this.elements[$];break}}return c.length===0?v:v.getElementByPath(c)},cr.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new ur,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 Sa(){}Sa.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?ro.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Ln},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,P=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;$<P;){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;$<P;$+=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,P=this.comp;$;)P.finalTransform?(P.data.hasMask&&v.splice(0,0,P.finalTransform),P=P.comp):$=!1;var _,z=v.length,pe;for(_=0;_<z;_+=1)pe=v[_].mat.applyToPointArray(0,0,0),p=[p[0]-pe[0],p[1]-pe[1],0];return p},mHelper:new Ln};function Sr(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,P,_=this.masksProperties?this.masksProperties.length:0;this.viewData=Ke(_),this.solidPath="";var z,pe=this.masksProperties,Q=0,ye=[],Ce,Re,F=wt(),ee,Y,fe,ce,q="clipPath",Z="clip-path";for(P=0;P<_;P+=1)if((pe[P].mode!=="a"&&pe[P].mode!=="n"||pe[P].inv||pe[P].o.k!==100||pe[P].o.x)&&(q="mask",Z="mask"),(pe[P].mode==="s"||pe[P].mode==="i")&&Q===0?(ee=$t("rect"),ee.setAttribute("fill","#ffffff"),ee.setAttribute("width",this.element.comp.data.w||0),ee.setAttribute("height",this.element.comp.data.h||0),ye.push(ee)):ee=null,z=$t("path"),pe[P].mode==="n")this.viewData[P]={op:st.getProp(this.element,pe[P].o,0,.01,this.element),prop:pi.getShapeProp(this.element,pe[P],3),elem:z,lastPath:""},$.appendChild(z);else{Q+=1,z.setAttribute("fill",pe[P].mode==="s"?"#000000":"#ffffff"),z.setAttribute("clip-rule","nonzero");var V;if(pe[P].x.k!==0?(q="mask",Z="mask",ce=st.getProp(this.element,pe[P].x,0,null,this.element),V=wt(),Y=$t("filter"),Y.setAttribute("id",V),fe=$t("feMorphology"),fe.setAttribute("operator","erode"),fe.setAttribute("in","SourceGraphic"),fe.setAttribute("radius","0"),Y.appendChild(fe),$.appendChild(Y),z.setAttribute("stroke",pe[P].mode==="s"?"#000000":"#ffffff")):(fe=null,ce=null),this.storedData[P]={elem:z,x:ce,expan:fe,lastPath:"",lastOperator:"",filterId:V,lastRadius:0},pe[P].mode==="i"){Re=ye.length;var j=$t("g");for(Ce=0;Ce<Re;Ce+=1)j.appendChild(ye[Ce]);var G=$t("mask");G.setAttribute("mask-type","alpha"),G.setAttribute("id",F+"_"+Q),G.appendChild(z),$.appendChild(G),j.setAttribute("mask","url("+De()+"#"+F+"_"+Q+")"),ye.length=0,ye.push(j)}else ye.push(z);pe[P].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[P]={elem:z,lastPath:"",op:st.getProp(this.element,pe[P].o,0,.01,this.element),prop:pi.getShapeProp(this.element,pe[P],3),invRect:ee},this.viewData[P].prop.k||this.drawPath(pe[P],this.viewData[P].prop.v,this.viewData[P])}for(this.maskElement=$t(q),_=ye.length,P=0;P<_;P+=1)this.maskElement.appendChild(ye[P]);Q>0&&(this.maskElement.setAttribute("id",F),this.element.maskedElement.setAttribute(Z,"url("+De()+"#"+F+")"),$.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Sr.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Sr.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 P=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("+De()+"#"+this.storedData[v].filterId+")")),P.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))}},Sr.prototype.getMaskelement=function(){return this.maskElement},Sr.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},Sr.prototype.drawPath=function(c,p,v){var $=" M"+p.v[0][0]+","+p.v[0][1],P,_;for(_=p._length,P=1;P<_;P+=1)$+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[P][0]+","+p.i[P][1]+" "+p.v[P][0]+","+p.v[P][1];if(p.c&&_>1&&($+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==$){var z="";v.elem&&(p.c&&(z=c.inv?this.solidPath+$:$),v.elem.setAttribute("d",z)),v.lastPath=$}},Sr.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Vs=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p($,P){var _=$t("filter");return _.setAttribute("id",$),P!==!0&&(_.setAttribute("filterUnits","objectBoundingBox"),_.setAttribute("x","0%"),_.setAttribute("y","0%"),_.setAttribute("width","100%"),_.setAttribute("height","100%")),_}function v(){var $=$t("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}(),pl=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}(),cn={},ls="filter_result_";function ml(c){var p,v="SourceGraphic",$=c.data.ef?c.data.ef.length:0,P=wt(),_=Vs.createFilter(P,!0),z=0;this.filters=[];var pe;for(p=0;p<$;p+=1){pe=null;var Q=c.data.ef[p].ty;if(cn[Q]){var ye=cn[Q].effect;pe=new ye(_,c.effectsManager.effectElements[p],c,ls+z,v),v=ls+z,cn[Q].countsAsEffect&&(z+=1)}pe&&this.filters.push(pe)}z&&(c.globalData.defs.appendChild(_),c.layerElement.setAttribute("filter","url("+De()+"#"+P+")")),this.filters.length&&c.addRenderableComponent(this)}ml.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function Xo(){}Xo.prototype={initRendererElement:function(){this.layerElement=$t("g")},createContainerElements:function(){this.matteElement=$t("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=$t("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 $=$t("clipPath"),P=$t("path");P.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var _=wt();if($.setAttribute("id",_),$.appendChild(P),this.globalData.defs.appendChild($),this.checkMasks()){var z=$t("g");z.setAttribute("clip-path","url("+De()+"#"+_+")"),z.appendChild(this.layerElement),this.transformedElement=z,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+De()+"#"+_+")")}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 Sr(this.data,this,this.globalData),this.renderableEffectsManager=new ml(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,$,P,_,z;if(p===1||p===3){var pe=$t("mask");pe.setAttribute("id",v),pe.setAttribute("mask-type",p===3?"luminance":"alpha"),_=$t("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),pe.appendChild(_),this.globalData.defs.appendChild(pe),!pl.maskType&&p===1&&(pe.setAttribute("mask-type","luminance"),$=wt(),P=Vs.createFilter($),this.globalData.defs.appendChild(P),P.appendChild(Vs.createAlphaToLuminanceFilter()),z=$t("g"),z.appendChild(_),pe.appendChild(z),z.setAttribute("filter","url("+De()+"#"+$+")"))}else if(p===2){var Q=$t("mask");Q.setAttribute("id",v),Q.setAttribute("mask-type","alpha");var ye=$t("g");Q.appendChild(ye),$=wt(),P=Vs.createFilter($);var Ce=$t("feComponentTransfer");Ce.setAttribute("in","SourceGraphic"),P.appendChild(Ce);var Re=$t("feFuncA");Re.setAttribute("type","table"),Re.setAttribute("tableValues","1.0 0.0"),Ce.appendChild(Re),this.globalData.defs.appendChild(P);var F=$t("rect");F.setAttribute("width",this.comp.data.w),F.setAttribute("height",this.comp.data.h),F.setAttribute("x","0"),F.setAttribute("y","0"),F.setAttribute("fill","#ffffff"),F.setAttribute("opacity","0"),ye.setAttribute("filter","url("+De()+"#"+$+")"),ye.appendChild(F),_=$t("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ye.appendChild(_),pl.maskType||(Q.setAttribute("mask-type","luminance"),P.appendChild(Vs.createAlphaToLuminanceFilter()),z=$t("g"),ye.appendChild(F),z.appendChild(this.layerElement),ye.appendChild(z)),this.globalData.defs.appendChild(Q)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+De()+"#"+p+")")}};function Ns(){}Ns.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 Jo(){}(function(){var c={initElement:function(v,$,P){this.initFrame(),this.initBaseData(v,$,P),this.initTransform(v,$,P),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()}};Me([Kn,Ye(c)],Jo)})();function Qo(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}}Me([us,Sa,Xo,Ns,Bn,Jo],Qo),Qo.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=$t("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)},Qo.prototype.sourceRectAtTime=function(){return this.sourceRect};function mg(c,p){this.elem=c,this.pos=p}function Xc(){}Xc.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,P=v.length;$<P;){if(v[$].elem===p)return v[$].pos;$+=1}return 0},addProcessedElement:function(p,v){for(var $=this.processedElements,P=$.length;P;)if(P-=1,$[P].elem===p){$[P].pos=v;return}$.push(new mg(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var eu={1:"butt",2:"round",3:"square"},Da={1:"miter",2:"round",3:"bevel"};function ah(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,P=c.length;$<P;){if(c[$].mProps.dynamicProperties.length){this._isAnimated=!0;break}$+=1}}ah.prototype.setAsAnimated=function(){this._isAnimated=!0};function Jc(c,p){this.data=c,this.type=c.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=c.hd===!0,this.pElem=$t("path"),this.msElem=null}Jc.prototype.reset=function(){this.d="",this._mdf=!1};function tu(c,p,v,$){this.elem=c,this.frameId=-1,this.dataProps=Ke(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=Ae("float32",p.length?p.length-1:0),this.dashoffset=Ae("float32",1),this.initDynamicPropertyContainer($);var P,_=p.length||0,z;for(P=0;P<_;P+=1)z=st.getProp(c,p[P].v,0,0,this),this.k=z.k||this.k,this.dataProps[P]={n:p[P].n,p:z};this.k||this.getValue(!0),this._isAnimated=this.k}tu.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}},Me([dn],tu);function gl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=st.getProp(c,p.o,0,.01,this),this.w=st.getProp(c,p.w,0,null,this),this.d=new tu(c,p.d||{},"svg",this),this.c=st.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Me([dn],gl);function vl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=st.getProp(c,p.o,0,.01,this),this.c=st.getProp(c,p.c,1,255,this),this.style=v}Me([dn],vl);function Qc(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Me([dn],Qc);function nu(c,p,v){this.data=p,this.c=Ae("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=Ae("float32",$),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=$,this.initDynamicPropertyContainer(v),this.prop=st.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}nu.prototype.comparePoints=function(c,p){for(var v=0,$=this.o.length/2,P;v<$;){if(P=Math.abs(c[v*4]-c[p*4+v*2]),P>.01)return!1;v+=1}return!0},nu.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},nu.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,$,P;for(p=0;p<v;p+=1)$=p%4===0?100:255,P=Math.round(this.prop.v[p]*$),this.c[p]!==P&&(this.c[p]=P,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,P=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==P&&(this.o[p-this.data.p*4]=P,this._omdf=!c);this._mdf=!c}},Me([dn],nu);function js(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}js.prototype.initGradientData=function(c,p,v){this.o=st.getProp(c,p.o,0,.01,this),this.s=st.getProp(c,p.s,1,null,this),this.e=st.getProp(c,p.e,1,null,this),this.h=st.getProp(c,p.h||{k:0},0,.01,this),this.a=st.getProp(c,p.a||{k:0},0,mt,this),this.g=new nu(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},js.prototype.setGradientData=function(c,p){var v=wt(),$=$t(p.t===1?"linearGradient":"radialGradient");$.setAttribute("id",v),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse");var P=[],_,z,pe;for(pe=p.g.p*4,z=0;z<pe;z+=4)_=$t("stop"),$.appendChild(_),P.push(_);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+De()+"#"+v+")"),this.gf=$,this.cst=P},js.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,$,P,_=$t("mask"),z=$t("path");_.appendChild(z);var pe=wt(),Q=wt();_.setAttribute("id",Q);var ye=$t(c.t===1?"linearGradient":"radialGradient");ye.setAttribute("id",pe),ye.setAttribute("spreadMethod","pad"),ye.setAttribute("gradientUnits","userSpaceOnUse"),P=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;$<P;$+=2)v=$t("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),ye.appendChild(v),Ce.push(v);z.setAttribute(c.ty==="gf"?"fill":"stroke","url("+De()+"#"+pe+")"),c.ty==="gs"&&(z.setAttribute("stroke-linecap",eu[c.lc||2]),z.setAttribute("stroke-linejoin",Da[c.lj||2]),c.lj===1&&z.setAttribute("stroke-miterlimit",c.ml)),this.of=ye,this.ms=_,this.ost=Ce,this.maskId=Q,p.msElem=z}},Me([dn],js);function yl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=st.getProp(c,p.w,0,null,this),this.d=new tu(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Me([js,dn],yl);function gg(){this.it=[],this.prevViewData=[],this.gr=$t("g")}function oh(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 Dr=function(p,v,$,P){if(v===0)return"";var _=p.o,z=p.i,pe=p.v,Q,ye=" M"+P.applyToPointStringified(pe[0][0],pe[0][1]);for(Q=1;Q<v;Q+=1)ye+=" C"+P.applyToPointStringified(_[Q-1][0],_[Q-1][1])+" "+P.applyToPointStringified(z[Q][0],z[Q][1])+" "+P.applyToPointStringified(pe[Q][0],pe[Q][1]);return $&&v&&(ye+=" C"+P.applyToPointStringified(_[Q-1][0],_[Q-1][1])+" "+P.applyToPointStringified(z[0][0],z[0][1])+" "+P.applyToPointStringified(pe[0][0],pe[0][1]),ye+="z"),ye},ef=function(){var c=new Ln,p=new Ln,v={createRenderFunction:$};function $(Re){switch(Re.ty){case"fl":return pe;case"gf":return ye;case"gs":return Q;case"st":return Ce;case"sh":case"el":case"rc":case"sr":return z;case"tr":return P;case"no":return _;default:return null}}function P(Re,F,ee){(ee||F.transform.op._mdf)&&F.transform.container.setAttribute("opacity",F.transform.op.v),(ee||F.transform.mProps._mdf)&&F.transform.container.setAttribute("transform",F.transform.mProps.v.to2dCSS())}function _(){}function z(Re,F,ee){var Y,fe,ce,q,Z,V,j=F.styles.length,G=F.lvl,ne,oe,de,Oe,et;for(V=0;V<j;V+=1){if(q=F.sh._mdf||ee,F.styles[V].lvl<G){for(oe=p.reset(),Oe=G-F.styles[V].lvl,et=F.transformers.length-1;!q&&Oe>0;)q=F.transformers[et].mProps._mdf||q,Oe-=1,et-=1;if(q)for(Oe=G-F.styles[V].lvl,et=F.transformers.length-1;Oe>0;)de=F.transformers[et].mProps.v.props,oe.transform(de[0],de[1],de[2],de[3],de[4],de[5],de[6],de[7],de[8],de[9],de[10],de[11],de[12],de[13],de[14],de[15]),Oe-=1,et-=1}else oe=c;if(ne=F.sh.paths,fe=ne._length,q){for(ce="",Y=0;Y<fe;Y+=1)Z=ne.shapes[Y],Z&&Z._length&&(ce+=Dr(Z,Z._length,Z.c,oe));F.caches[V]=ce}else ce=F.caches[V];F.styles[V].d+=Re.hd===!0?"":ce,F.styles[V]._mdf=q||F.styles[V]._mdf}}function pe(Re,F,ee){var Y=F.style;(F.c._mdf||ee)&&Y.pElem.setAttribute("fill","rgb("+xt(F.c.v[0])+","+xt(F.c.v[1])+","+xt(F.c.v[2])+")"),(F.o._mdf||ee)&&Y.pElem.setAttribute("fill-opacity",F.o.v)}function Q(Re,F,ee){ye(Re,F,ee),Ce(Re,F,ee)}function ye(Re,F,ee){var Y=F.gf,fe=F.g._hasOpacity,ce=F.s.v,q=F.e.v;if(F.o._mdf||ee){var Z=Re.ty==="gf"?"fill-opacity":"stroke-opacity";F.style.pElem.setAttribute(Z,F.o.v)}if(F.s._mdf||ee){var V=Re.t===1?"x1":"cx",j=V==="x1"?"y1":"cy";Y.setAttribute(V,ce[0]),Y.setAttribute(j,ce[1]),fe&&!F.g._collapsable&&(F.of.setAttribute(V,ce[0]),F.of.setAttribute(j,ce[1]))}var G,ne,oe,de;if(F.g._cmdf||ee){G=F.cst;var Oe=F.g.c;for(oe=G.length,ne=0;ne<oe;ne+=1)de=G[ne],de.setAttribute("offset",Oe[ne*4]+"%"),de.setAttribute("stop-color","rgb("+Oe[ne*4+1]+","+Oe[ne*4+2]+","+Oe[ne*4+3]+")")}if(fe&&(F.g._omdf||ee)){var et=F.g.o;for(F.g._collapsable?G=F.cst:G=F.ost,oe=G.length,ne=0;ne<oe;ne+=1)de=G[ne],F.g._collapsable||de.setAttribute("offset",et[ne*2]+"%"),de.setAttribute("stop-opacity",et[ne*2+1])}if(Re.t===1)(F.e._mdf||ee)&&(Y.setAttribute("x2",q[0]),Y.setAttribute("y2",q[1]),fe&&!F.g._collapsable&&(F.of.setAttribute("x2",q[0]),F.of.setAttribute("y2",q[1])));else{var Je;if((F.s._mdf||F.e._mdf||ee)&&(Je=Math.sqrt(Math.pow(ce[0]-q[0],2)+Math.pow(ce[1]-q[1],2)),Y.setAttribute("r",Je),fe&&!F.g._collapsable&&F.of.setAttribute("r",Je)),F.e._mdf||F.h._mdf||F.a._mdf||ee){Je||(Je=Math.sqrt(Math.pow(ce[0]-q[0],2)+Math.pow(ce[1]-q[1],2)));var Be=Math.atan2(q[1]-ce[1],q[0]-ce[0]),ot=F.h.v;ot>=1?ot=.99:ot<=-1&&(ot=-.99);var ct=Je*ot,Ie=Math.cos(Be+F.a.v)*ct+ce[0],be=Math.sin(Be+F.a.v)*ct+ce[1];Y.setAttribute("fx",Ie),Y.setAttribute("fy",be),fe&&!F.g._collapsable&&(F.of.setAttribute("fx",Ie),F.of.setAttribute("fy",be))}}}function Ce(Re,F,ee){var Y=F.style,fe=F.d;fe&&(fe._mdf||ee)&&fe.dashStr&&(Y.pElem.setAttribute("stroke-dasharray",fe.dashStr),Y.pElem.setAttribute("stroke-dashoffset",fe.dashoffset[0])),F.c&&(F.c._mdf||ee)&&Y.pElem.setAttribute("stroke","rgb("+xt(F.c.v[0])+","+xt(F.c.v[1])+","+xt(F.c.v[2])+")"),(F.o._mdf||ee)&&Y.pElem.setAttribute("stroke-opacity",F.o.v),(F.w._mdf||ee)&&(Y.pElem.setAttribute("stroke-width",F.w.v),Y.msElem&&Y.msElem.setAttribute("stroke-width",F.w.v))}return v}();function gn(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=[]}Me([us,Sa,Xo,Xc,Ns,Bn,Jo],gn),gn.prototype.initSecondaryElement=function(){},gn.prototype.identityMatrix=new Ln,gn.prototype.buildExpressionInterface=function(){},gn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},gn.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,$,P=this.stylesList.length,_,z=[],pe=!1;for($=0;$<P;$+=1){for(_=this.stylesList[$],pe=!1,z.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(_)!==-1&&(z.push(v),pe=v._isAnimated||pe);z.length>1&&pe&&this.setShapesAsAnimated(z)}},gn.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},gn.prototype.createStyleElement=function(c,p){var v,$=new Jc(c,p),P=$.pElem;if(c.ty==="st")v=new gl(this,c,$);else if(c.ty==="fl")v=new vl(this,c,$);else if(c.ty==="gf"||c.ty==="gs"){var _=c.ty==="gf"?js:yl;v=new _(this,c,$),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),P.setAttribute("mask","url("+De()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new Qc(this,c,$));return(c.ty==="st"||c.ty==="gs")&&(P.setAttribute("stroke-linecap",eu[c.lc||2]),P.setAttribute("stroke-linejoin",Da[c.lj||2]),P.setAttribute("fill-opacity","0"),c.lj===1&&P.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&P.setAttribute("fill-rule","evenodd"),c.ln&&P.setAttribute("id",c.ln),c.cl&&P.setAttribute("class",c.cl),c.bm&&(P.style["mix-blend-mode"]=Dn(c.bm)),this.stylesList.push($),this.addToAnimatedContents(c,v),v},gn.prototype.createGroupElement=function(c){var p=new gg;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"]=Dn(c.bm)),p},gn.prototype.createTransformElement=function(c,p){var v=ro.getTransformProperty(this,c,this),$=new oh(v,v.o,p);return this.addToAnimatedContents(c,$),$},gn.prototype.createShapeElement=function(c,p,v){var $=4;c.ty==="rc"?$=5:c.ty==="el"?$=6:c.ty==="sr"&&($=7);var P=pi.getShapeProp(this,c,$,this),_=new ah(p,v,P);return this.shapes.push(_),this.addShapeToModifiers(_),this.addToAnimatedContents(c,_),_},gn.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:ef.createRenderFunction(c),element:p,data:c})},gn.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])},gn.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()},gn.prototype.searchShapes=function(c,p,v,$,P,_,z){var pe=[].concat(_),Q,ye=c.length-1,Ce,Re,F=[],ee=[],Y,fe,ce;for(Q=ye;Q>=0;Q-=1){if(ce=this.searchProcessedElement(c[Q]),ce?p[Q]=v[ce-1]:c[Q]._render=z,c[Q].ty==="fl"||c[Q].ty==="st"||c[Q].ty==="gf"||c[Q].ty==="gs"||c[Q].ty==="no")ce?p[Q].style.closed=!1:p[Q]=this.createStyleElement(c[Q],P),c[Q]._render&&p[Q].style.pElem.parentNode!==$&&$.appendChild(p[Q].style.pElem),F.push(p[Q].style);else if(c[Q].ty==="gr"){if(!ce)p[Q]=this.createGroupElement(c[Q]);else for(Re=p[Q].it.length,Ce=0;Ce<Re;Ce+=1)p[Q].prevViewData[Ce]=p[Q].it[Ce];this.searchShapes(c[Q].it,p[Q].it,p[Q].prevViewData,p[Q].gr,P+1,pe,z),c[Q]._render&&p[Q].gr.parentNode!==$&&$.appendChild(p[Q].gr)}else c[Q].ty==="tr"?(ce||(p[Q]=this.createTransformElement(c[Q],$)),Y=p[Q].transform,pe.push(Y)):c[Q].ty==="sh"||c[Q].ty==="rc"||c[Q].ty==="el"||c[Q].ty==="sr"?(ce||(p[Q]=this.createShapeElement(c[Q],pe,P)),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"?(ce?(fe=p[Q],fe.closed=!1):(fe=Or.getModifier(c[Q].ty),fe.init(this,c[Q]),p[Q]=fe,this.shapeModifiers.push(fe)),ee.push(fe)):c[Q].ty==="rp"&&(ce?(fe=p[Q],fe.closed=!0):(fe=Or.getModifier(c[Q].ty),p[Q]=fe,fe.init(this,c,Q,p),this.shapeModifiers.push(fe),z=!1),ee.push(fe));this.addProcessedElement(c[Q],Q+1)}for(ye=F.length,Q=0;Q<ye;Q+=1)F[Q].closed=!0;for(ye=ee.length,Q=0;Q<ye;Q+=1)ee[Q].closed=!0},gn.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"))},gn.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)},gn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function bl(c,p,v,$,P,_){this.o=c,this.sw=p,this.sc=v,this.fc=$,this.m=P,this.p=_,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!$,m:!0,p:!0}}bl.prototype.update=function(c,p,v,$,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 z=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,z=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,z=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,z=!0),this.fc!==$&&(this.fc=$,this._mdf.fc=!0,z=!0),this.m!==P&&(this.m=P,this._mdf.m=!0,z=!0),_.length&&(this.p[0]!==_[0]||this.p[1]!==_[1]||this.p[4]!==_[4]||this.p[5]!==_[5]||this.p[12]!==_[12]||this.p[13]!==_[13])&&(this.p=_,this._mdf.p=!0,z=!0),z};function fr(c,p){this._frameId=he,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)}fr.prototype.defaultBoxWidth=[0,0],fr.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},fr.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},fr.prototype.searchProperty=function(){return this.searchKeyframes()},fr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},fr.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},fr.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 $,P=this.effectsSequence.length,_=c||this.data.d.k[this.keysIndex].s;for($=0;$<P;$+=1)v!==this.keysIndex?_=this.effectsSequence[$](_,_.t):_=this.effectsSequence[$](this.currentData,_.t);p!==_&&this.setCurrentData(_),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},fr.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},fr.prototype.buildFinalText=function(c){for(var p=[],v=0,$=c.length,P,_,z=!1;v<$;)P=c.charCodeAt(v),ur.isCombinedCharacter(P)?p[p.length-1]+=c.charAt(v):P>=55296&&P<=56319?(_=c.charCodeAt(v+1),_>=56320&&_<=57343?(z||ur.isModifier(P,_)?(p[p.length-1]+=c.substr(v,2),z=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):P>56319?(_=c.charCodeAt(v+1),ur.isZeroWidthJoiner(P,_)?(z=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):ur.isZeroWidthJoiner(P)?(p[p.length-1]+=c.charAt(v),z=!0):p.push(c.charAt(v)),v+=1;return p},fr.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,$=[],P,_,z,pe=0,Q,ye=v.m.g,Ce=0,Re=0,F=0,ee=[],Y=0,fe=0,ce,q,Z=p.getFontByName(c.f),V,j=0,G=sr(Z);c.fWeight=G.weight,c.fStyle=G.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),_=c.finalText.length,c.finalLineHeight=c.lh;var ne=c.tr/1e3*c.finalSize,oe;if(c.sz)for(var de=!0,Oe=c.sz[0],et=c.sz[1],Je,Be;de;){Be=this.buildFinalText(c.t),Je=0,Y=0,_=Be.length,ne=c.tr/1e3*c.finalSize;var ot=-1;for(P=0;P<_;P+=1)oe=Be[P].charCodeAt(0),z=!1,Be[P]===" "?ot=P:(oe===13||oe===3)&&(Y=0,z=!0,Je+=c.finalLineHeight||c.finalSize*1.2),p.chars?(V=p.getCharData(Be[P],Z.fStyle,Z.fFamily),j=z?0:V.w*c.finalSize/100):j=p.measureText(Be[P],c.f,c.finalSize),Y+j>Oe&&Be[P]!==" "?(ot===-1?_+=1:P=ot,Je+=c.finalLineHeight||c.finalSize*1.2,Be.splice(P,ot===P?1:0,"\r"),ot=-1,Y=0):(Y+=j,Y+=ne);Je+=Z.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&et<Je?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Be,_=c.finalText.length,de=!1)}Y=-ne,j=0;var ct=0,Ie;for(P=0;P<_;P+=1)if(z=!1,Ie=c.finalText[P],oe=Ie.charCodeAt(0),oe===13||oe===3?(ct=0,ee.push(Y),fe=Y>fe?Y:fe,Y=-2*ne,Q="",z=!0,F+=1):Q=Ie,p.chars?(V=p.getCharData(Ie,Z.fStyle,p.getFontByName(c.f).fFamily),j=z?0:V.w*c.finalSize/100):j=p.measureText(Q,c.f,c.finalSize),Ie===" "?ct+=j+ne:(Y+=j+ne+ct,ct=0),$.push({l:j,an:j,add:Ce,n:z,anIndexes:[],val:Q,line:F,animatorJustifyOffset:0}),ye==2){if(Ce+=j,Q===""||Q===" "||P===_-1){for((Q===""||Q===" ")&&(Ce-=j);Re<=P;)$[Re].an=Ce,$[Re].ind=pe,$[Re].extra=j,Re+=1;pe+=1,Ce=0}}else if(ye==3){if(Ce+=j,Q===""||P===_-1){for(Q===""&&(Ce-=j);Re<=P;)$[Re].an=Ce,$[Re].ind=pe,$[Re].extra=j,Re+=1;Ce=0,pe+=1}}else $[pe].ind=pe,$[pe].extra=0,pe+=1;if(c.l=$,fe=Y>fe?Y:fe,ee.push(Y),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=fe,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 be=v.a,ue,J;q=be.length;var ge,Ne,ke=[];for(ce=0;ce<q;ce+=1){for(ue=be[ce],ue.a.sc&&(c.strokeColorAnim=!0),ue.a.sw&&(c.strokeWidthAnim=!0),(ue.a.fc||ue.a.fh||ue.a.fs||ue.a.fb)&&(c.fillColorAnim=!0),Ne=0,ge=ue.s.b,P=0;P<_;P+=1)J=$[P],J.anIndexes[ce]=Ne,(ge==1&&J.val!==""||ge==2&&J.val!==""&&J.val!==" "||ge==3&&(J.n||J.val==" "||P==_-1)||ge==4&&(J.n||P==_-1))&&(ue.s.rn===1&&ke.push(Ne),Ne+=1);v.a[ce].s.totalChars=Ne;var lt=-1,Tt;if(ue.s.rn===1)for(P=0;P<_;P+=1)J=$[P],lt!=J.anIndexes[ce]&&(lt=J.anIndexes[ce],Tt=ke.splice(Math.floor(Math.random()*ke.length),1)[0]),J.anIndexes[ce]=Tt}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=Z.ascent*c.finalSize/100},fr.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)},fr.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},fr.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},fr.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var vg=function(){var c=Math.max,p=Math.min,v=Math.floor;function $(_,z){this._currentTextLength=-1,this.k=!1,this.data=z,this.elem=_,this.comp=_.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(_),this.s=st.getProp(_,z.s||{k:0},0,0,this),"e"in z?this.e=st.getProp(_,z.e,0,0,this):this.e={v:100},this.o=st.getProp(_,z.o||{k:0},0,0,this),this.xe=st.getProp(_,z.xe||{k:0},0,0,this),this.ne=st.getProp(_,z.ne||{k:0},0,0,this),this.sm=st.getProp(_,z.sm||{k:100},0,0,this),this.a=st.getProp(_,z.a,0,.01,this),this.dynamicProperties.length||this.getValue()}$.prototype={getMult:function(z){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var pe=0,Q=0,ye=1,Ce=1;this.ne.v>0?pe=this.ne.v/100:Q=-this.ne.v/100,this.xe.v>0?ye=1-this.xe.v/100:Ce=1+this.xe.v/100;var Re=pa.getBezierEasing(pe,Q,ye,Ce).get,F=0,ee=this.finalS,Y=this.finalE,fe=this.data.sh;if(fe===2)Y===ee?F=z>=Y?1:0:F=c(0,p(.5/(Y-ee)+(z-ee)/(Y-ee),1)),F=Re(F);else if(fe===3)Y===ee?F=z>=Y?0:1:F=1-c(0,p(.5/(Y-ee)+(z-ee)/(Y-ee),1)),F=Re(F);else if(fe===4)Y===ee?F=0:(F=c(0,p(.5/(Y-ee)+(z-ee)/(Y-ee),1)),F<.5?F*=2:F=1-2*(F-.5)),F=Re(F);else if(fe===5){if(Y===ee)F=0;else{var ce=Y-ee;z=p(c(0,z+.5-ee),Y-ee);var q=-ce/2+z,Z=ce/2;F=Math.sqrt(1-q*q/(Z*Z))}F=Re(F)}else fe===6?(Y===ee?F=0:(z=p(c(0,z+.5-ee),Y-ee),F=(1+Math.cos(Math.PI+Math.PI*2*z/(Y-ee)))/2),F=Re(F)):(z>=v(ee)&&(z-ee<0?F=c(0,p(p(Y,1)-(ee-z),1)):F=c(0,p(Y-z,1))),F=Re(F));if(this.sm.v!==100){var V=this.sm.v*.01;V===0&&(V=1e-8);var j=.5-V*.5;F<j?F=0:(F=(F-j)/V,F>1&&(F=1))}return F*this.a.v},getValue:function(z){this.iterateDynamicProperties(),this._mdf=z||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,z&&this.data.r===2&&(this.e.v=this._currentTextLength);var pe=this.data.r===2?1:100/this.data.totalChars,Q=this.o.v/pe,ye=this.s.v/pe+Q,Ce=this.e.v/pe+Q;if(ye>Ce){var Re=ye;ye=Ce,Ce=Re}this.finalS=ye,this.finalE=Ce}},Me([dn],$);function P(_,z,pe){return new $(_,z)}return{getTextSelectorProp:P}}();function yg(c,p,v){var $={propType:!1},P=st.getProp,_=p.a;this.a={r:_.r?P(c,_.r,0,mt,v):$,rx:_.rx?P(c,_.rx,0,mt,v):$,ry:_.ry?P(c,_.ry,0,mt,v):$,sk:_.sk?P(c,_.sk,0,mt,v):$,sa:_.sa?P(c,_.sa,0,mt,v):$,s:_.s?P(c,_.s,1,.01,v):$,a:_.a?P(c,_.a,1,0,v):$,o:_.o?P(c,_.o,0,.01,v):$,p:_.p?P(c,_.p,1,0,v):$,sw:_.sw?P(c,_.sw,0,0,v):$,sc:_.sc?P(c,_.sc,1,0,v):$,fc:_.fc?P(c,_.fc,1,0,v):$,fh:_.fh?P(c,_.fh,0,0,v):$,fs:_.fs?P(c,_.fs,0,.01,v):$,fb:_.fb?P(c,_.fb,0,.01,v):$,t:_.t?P(c,_.t,0,0,v):$},this.s=vg.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function Aa(c,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=p,this._elem=v,this._animatorsData=Ke(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}Aa.prototype.searchProperties=function(){var c,p=this._textData.a.length,v,$=st.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new yg(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)},Aa.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,P=this._textData,_=this.mHelper,z=this._renderType,pe=this.renderedLetters.length,Q,ye,Ce,Re,F=c.l,ee,Y,fe,ce,q,Z,V,j,G,ne,oe,de,Oe,et,Je;if(this._hasMaskedPath){if(Je=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Be=Je.v;this._pathData.r.v&&(Be=Be.reverse()),ee={tLength:0,segments:[]},Re=Be._length-1;var ot;for(de=0,Ce=0;Ce<Re;Ce+=1)ot=Xr.buildBezierData(Be.v[Ce],Be.v[Ce+1],[Be.o[Ce][0]-Be.v[Ce][0],Be.o[Ce][1]-Be.v[Ce][1]],[Be.i[Ce+1][0]-Be.v[Ce+1][0],Be.i[Ce+1][1]-Be.v[Ce+1][1]]),ee.tLength+=ot.segmentLength,ee.segments.push(ot),de+=ot.segmentLength;Ce=Re,Je.v.c&&(ot=Xr.buildBezierData(Be.v[Ce],Be.v[0],[Be.o[Ce][0]-Be.v[Ce][0],Be.o[Ce][1]-Be.v[Ce][1]],[Be.i[0][0]-Be.v[0][0],Be.i[0][1]-Be.v[0][1]]),ee.tLength+=ot.segmentLength,ee.segments.push(ot),de+=ot.segmentLength),this._pathData.pi=ee}if(ee=this._pathData.pi,Y=this._pathData.f.v,V=0,Z=1,ce=0,q=!0,ne=ee.segments,Y<0&&Je.v.c)for(ee.tLength<Math.abs(Y)&&(Y=-Math.abs(Y)%ee.tLength),V=ne.length-1,G=ne[V].points,Z=G.length-1;Y<0;)Y+=G[Z].partialLength,Z-=1,Z<0&&(V-=1,G=ne[V].points,Z=G.length-1);G=ne[V].points,j=G[Z-1],fe=G[Z],oe=fe.partialLength}Re=F.length,Q=0,ye=0;var ct=c.finalSize*1.2*.714,Ie=!0,be,ue,J,ge,Ne;ge=$.length;var ke,lt=-1,Tt,Et,$n,Ht=Y,dr=V,Jn=Z,Nn=-1,Un,zn,br,ft,fn,Qr,ki,cs,vi="",fs=this.defaultPropsArray,ds;if(c.j===2||c.j===1){var Zt=0,xn=0,Us=c.j===2?-.5:-1,yi=0,hs=!0;for(Ce=0;Ce<Re;Ce+=1)if(F[Ce].n){for(Zt&&(Zt+=xn);yi<Ce;)F[yi].animatorJustifyOffset=Zt,yi+=1;Zt=0,hs=!0}else{for(J=0;J<ge;J+=1)be=$[J].a,be.t.propType&&(hs&&c.j===2&&(xn+=be.t.v*Us),ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?Zt+=be.t.v*ke[0]*Us:Zt+=be.t.v*ke*Us);hs=!1}for(Zt&&(Zt+=xn);yi<Ce;)F[yi].animatorJustifyOffset=Zt,yi+=1}for(Ce=0;Ce<Re;Ce+=1){if(_.reset(),Un=1,F[Ce].n)Q=0,ye+=c.yOffset,ye+=Ie?1:0,Y=Ht,Ie=!1,this._hasMaskedPath&&(V=dr,Z=Jn,G=ne[V].points,j=G[Z-1],fe=G[Z],oe=fe.partialLength,ce=0),vi="",cs="",Qr="",ds="",fs=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Nn!==F[Ce].line){switch(c.j){case 1:Y+=de-c.lineWidths[F[Ce].line];break;case 2:Y+=(de-c.lineWidths[F[Ce].line])/2;break}Nn=F[Ce].line}lt!==F[Ce].ind&&(F[lt]&&(Y+=F[lt].extra),Y+=F[Ce].an/2,lt=F[Ce].ind),Y+=v[0]*F[Ce].an*.005;var bi=0;for(J=0;J<ge;J+=1)be=$[J].a,be.p.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?bi+=be.p.v[0]*ke[0]:bi+=be.p.v[0]*ke),be.a.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?bi+=be.a.v[0]*ke[0]:bi+=be.a.v[0]*ke);for(q=!0,this._pathData.a.v&&(Y=F[0].an*.5+(de-this._pathData.f.v-F[0].an*.5-F[F.length-1].an*.5)*lt/(Re-1),Y+=this._pathData.f.v);q;)ce+oe>=Y+bi||!G?(Oe=(Y+bi-ce)/fe.partialLength,Et=j.point[0]+(fe.point[0]-j.point[0])*Oe,$n=j.point[1]+(fe.point[1]-j.point[1])*Oe,_.translate(-v[0]*F[Ce].an*.005,-(v[1]*ct)*.01),q=!1):G&&(ce+=fe.partialLength,Z+=1,Z>=G.length&&(Z=0,V+=1,ne[V]?G=ne[V].points:Je.v.c?(Z=0,V=0,G=ne[V].points):(ce-=fe.partialLength,G=null)),G&&(j=fe,fe=G[Z],oe=fe.partialLength));Tt=F[Ce].an/2-F[Ce].add,_.translate(-Tt,0,0)}else Tt=F[Ce].an/2-F[Ce].add,_.translate(-Tt,0,0),_.translate(-v[0]*F[Ce].an*.005,-v[1]*ct*.01,0);for(J=0;J<ge;J+=1)be=$[J].a,be.t.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),(Q!==0||c.j!==0)&&(this._hasMaskedPath?ke.length?Y+=be.t.v*ke[0]:Y+=be.t.v*ke:ke.length?Q+=be.t.v*ke[0]:Q+=be.t.v*ke));for(c.strokeWidthAnim&&(br=c.sw||0),c.strokeColorAnim&&(c.sc?zn=[c.sc[0],c.sc[1],c.sc[2]]:zn=[0,0,0]),c.fillColorAnim&&c.fc&&(ft=[c.fc[0],c.fc[1],c.fc[2]]),J=0;J<ge;J+=1)be=$[J].a,be.a.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?_.translate(-be.a.v[0]*ke[0],-be.a.v[1]*ke[1],be.a.v[2]*ke[2]):_.translate(-be.a.v[0]*ke,-be.a.v[1]*ke,be.a.v[2]*ke));for(J=0;J<ge;J+=1)be=$[J].a,be.s.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?_.scale(1+(be.s.v[0]-1)*ke[0],1+(be.s.v[1]-1)*ke[1],1):_.scale(1+(be.s.v[0]-1)*ke,1+(be.s.v[1]-1)*ke,1));for(J=0;J<ge;J+=1){if(be=$[J].a,ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),be.sk.propType&&(ke.length?_.skewFromAxis(-be.sk.v*ke[0],be.sa.v*ke[1]):_.skewFromAxis(-be.sk.v*ke,be.sa.v*ke)),be.r.propType&&(ke.length?_.rotateZ(-be.r.v*ke[2]):_.rotateZ(-be.r.v*ke)),be.ry.propType&&(ke.length?_.rotateY(be.ry.v*ke[1]):_.rotateY(be.ry.v*ke)),be.rx.propType&&(ke.length?_.rotateX(be.rx.v*ke[0]):_.rotateX(be.rx.v*ke)),be.o.propType&&(ke.length?Un+=(be.o.v*ke[0]-Un)*ke[0]:Un+=(be.o.v*ke-Un)*ke),c.strokeWidthAnim&&be.sw.propType&&(ke.length?br+=be.sw.v*ke[0]:br+=be.sw.v*ke),c.strokeColorAnim&&be.sc.propType)for(fn=0;fn<3;fn+=1)ke.length?zn[fn]+=(be.sc.v[fn]-zn[fn])*ke[0]:zn[fn]+=(be.sc.v[fn]-zn[fn])*ke;if(c.fillColorAnim&&c.fc){if(be.fc.propType)for(fn=0;fn<3;fn+=1)ke.length?ft[fn]+=(be.fc.v[fn]-ft[fn])*ke[0]:ft[fn]+=(be.fc.v[fn]-ft[fn])*ke;be.fh.propType&&(ke.length?ft=Lt(ft,be.fh.v*ke[0]):ft=Lt(ft,be.fh.v*ke)),be.fs.propType&&(ke.length?ft=qt(ft,be.fs.v*ke[0]):ft=qt(ft,be.fs.v*ke)),be.fb.propType&&(ke.length?ft=_t(ft,be.fb.v*ke[0]):ft=_t(ft,be.fb.v*ke))}}for(J=0;J<ge;J+=1)be=$[J].a,be.p.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),this._hasMaskedPath?ke.length?_.translate(0,be.p.v[1]*ke[0],-be.p.v[2]*ke[1]):_.translate(0,be.p.v[1]*ke,-be.p.v[2]*ke):ke.length?_.translate(be.p.v[0]*ke[0],be.p.v[1]*ke[1],-be.p.v[2]*ke[2]):_.translate(be.p.v[0]*ke,be.p.v[1]*ke,-be.p.v[2]*ke));if(c.strokeWidthAnim&&(Qr=br<0?0:br),c.strokeColorAnim&&(ki="rgb("+Math.round(zn[0]*255)+","+Math.round(zn[1]*255)+","+Math.round(zn[2]*255)+")"),c.fillColorAnim&&c.fc&&(cs="rgb("+Math.round(ft[0]*255)+","+Math.round(ft[1]*255)+","+Math.round(ft[2]*255)+")"),this._hasMaskedPath){if(_.translate(0,-c.ls),_.translate(0,v[1]*ct*.01+ye,0),this._pathData.p.v){et=(fe.point[1]-j.point[1])/(fe.point[0]-j.point[0]);var ps=Math.atan(et)*180/Math.PI;fe.point[0]<j.point[0]&&(ps+=180),_.rotate(-ps*Math.PI/180)}_.translate(Et,$n,0),Y-=v[0]*F[Ce].an*.005,F[Ce+1]&&lt!==F[Ce+1].ind&&(Y+=F[Ce].an/2,Y+=c.tr*.001*c.finalSize)}else{switch(_.translate(Q,ye,0),c.ps&&_.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:_.translate(F[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[F[Ce].line]),0,0);break;case 2:_.translate(F[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[F[Ce].line])/2,0,0);break}_.translate(0,-c.ls),_.translate(Tt,0,0),_.translate(v[0]*F[Ce].an*.005,v[1]*ct*.01,0),Q+=F[Ce].l+c.tr*.001*c.finalSize}z==="html"?vi=_.toCSS():z==="svg"?vi=_.to2dCSS():fs=[_.props[0],_.props[1],_.props[2],_.props[3],_.props[4],_.props[5],_.props[6],_.props[7],_.props[8],_.props[9],_.props[10],_.props[11],_.props[12],_.props[13],_.props[14],_.props[15]],ds=Un}pe<=Ce?(Ne=new bl(ds,Qr,ki,cs,vi,fs),this.renderedLetters.push(Ne),pe+=1,this.lettersChangedFlag=!0):(Ne=this.renderedLetters[Ce],this.lettersChangedFlag=Ne.update(ds,Qr,ki,cs,vi,fs)||this.lettersChangedFlag)}}},Aa.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Aa.prototype.mHelper=new Ln,Aa.prototype.defaultPropsArray=[],Me([dn],Aa);function gi(){}gi.prototype.initElement=function(c,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,p,v),this.textProperty=new fr(this,c.t,this.dynamicProperties),this.textAnimator=new Aa(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)},gi.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)},gi.prototype.createPathShape=function(c,p){var v,$=p.length,P,_="";for(v=0;v<$;v+=1)p[v].ty==="sh"&&(P=p[v].ks.k,_+=Dr(P,P.i.length,!0,c));return _},gi.prototype.updateDocumentData=function(c,p){this.textProperty.updateDocumentData(c,p)},gi.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},gi.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},gi.prototype.applyTextPropertiesToMatrix=function(c,p,v,$,P){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($,P,0)},gi.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},gi.prototype.emptyProp=new bl,gi.prototype.destroy=function(){};var bg={shapes:[]};function Ar(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Me([us,Sa,Xo,Ns,Bn,Jo,gi],Ar),Ar.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=$t("text"))},Ar.prototype.buildTextContents=function(c){for(var p=0,v=c.length,$=[],P="";p<v;)c[p]==="\r"||c[p]===""?($.push(P),P=""):P+=c[p],p+=1;return $.push(P),$},Ar.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},Ar.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=Ke(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 P=v.fWeight,_=v.fStyle;this.layerElement.setAttribute("font-style",_),this.layerElement.setAttribute("font-weight",P)}this.layerElement.setAttribute("aria-label",v.t);var z=v.l||[],pe=!!this.globalData.fontManager.chars;p=z.length;var Q,ye=this.mHelper,Ce="",Re=this.data.singleShape,F=0,ee=0,Y=!0,fe=v.tr*.001*v.finalSize;if(Re&&!pe&&!v.sz){var ce=this.textContainer,q="start";switch(v.j){case 1:q="end";break;case 2:q="middle";break;default:q="start";break}ce.setAttribute("text-anchor",q),ce.setAttribute("letter-spacing",fe);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||$t("tspan"),Q.textContent=Z[c],Q.setAttribute("x",0),Q.setAttribute("y",ee),Q.style.display="inherit",ce.appendChild(Q),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=Q,ee+=v.finalLineHeight;this.layerElement.appendChild(ce)}else{var V=this.textSpans.length,j;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!pe||!Re||c===0){if(Q=V>c?this.textSpans[c].span:$t(pe?"g":"text"),V<=c){if(Q.setAttribute("stroke-linecap","butt"),Q.setAttribute("stroke-linejoin","round"),Q.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=Q,pe){var G=$t("g");Q.appendChild(G),this.textSpans[c].childSpan=G}this.textSpans[c].span=Q,this.layerElement.appendChild(Q)}Q.style.display="inherit"}if(ye.reset(),Re&&(z[c].n&&(F=-fe,ee+=v.yOffset,ee+=Y?1:0,Y=!1),this.applyTextPropertiesToMatrix(v,ye,z[c].line,F,ee),F+=z[c].l||0,F+=fe),pe){j=this.globalData.fontManager.getCharData(v.finalText[c],$.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var ne;if(j.t===1)ne=new Jr(j.data,this.globalData,this);else{var oe=bg;j.data&&j.data.shapes&&(oe=this.buildShapeData(j.data,v.finalSize)),ne=new gn(oe,this.globalData,this)}if(this.textSpans[c].glyph){var de=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(de.layerElement),de.destroy()}this.textSpans[c].glyph=ne,ne._debug=!0,ne.prepareFrame(0),ne.renderFrame(),this.textSpans[c].childSpan.appendChild(ne.layerElement),j.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Re&&Q.setAttribute("transform","translate("+ye.props[12]+","+ye.props[13]+")"),Q.textContent=z[c].val,Q.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Re&&Q&&Q.setAttribute("d",Ce)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},Ar.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},Ar.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))},Ar.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 P,_,z;for(c=0;c<p;c+=1)$[c].n||(P=v[c],_=this.textSpans[c].span,z=this.textSpans[c].glyph,z&&z.renderFrame(),P._mdf.m&&_.setAttribute("transform",P.m),P._mdf.o&&_.setAttribute("opacity",P.o),P._mdf.sw&&_.setAttribute("stroke-width",P.sw),P._mdf.sc&&_.setAttribute("stroke",P.sc),P._mdf.fc&&_.setAttribute("fill",P.fc))}};function tf(c,p,v){this.initElement(c,p,v)}Me([Qo],tf),tf.prototype.createContent=function(){var c=$t("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Ks(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Ks.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Ks.prototype.renderFrame=function(){},Ks.prototype.getBaseElement=function(){return null},Ks.prototype.destroy=function(){},Ks.prototype.sourceRectAtTime=function(){},Ks.prototype.hide=function(){},Me([us,Sa,Ns,Bn],Ks);function Vn(){}Me([cr],Vn),Vn.prototype.createNull=function(c){return new Ks(c,this.globalData,this)},Vn.prototype.createShape=function(c){return new gn(c,this.globalData,this)},Vn.prototype.createText=function(c){return new Ar(c,this.globalData,this)},Vn.prototype.createImage=function(c){return new Qo(c,this.globalData,this)},Vn.prototype.createSolid=function(c){return new tf(c,this.globalData,this)},Vn.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=$t("clipPath"),$=$t("rect");$.setAttribute("width",c.w),$.setAttribute("height",c.h),$.setAttribute("x",0),$.setAttribute("y",0);var P=wt();v.setAttribute("id",P),v.appendChild($),this.layerElement.setAttribute("clip-path","url("+De()+"#"+P+")"),p.appendChild(v),this.layers=c.layers,this.elements=Ke(c.layers.length)},Vn.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},Vn.prototype.updateContainerSize=function(){},Vn.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},Vn.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,fi()&&(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 P=p[$],_=P.getMatte(this.layers[c].tt);v.setMatte(_)}}}},Vn.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,P=this.elements[$],_=P.getMatte(this.layers[p].tt);c.setMatte(_);break}p+=1}}},Vn.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()}},Vn.prototype.appendElementInPos=function(c,p){var v=c.getBaseElement();if(v){for(var $=0,P;$<p;)this.elements[$]&&this.elements[$]!==!0&&this.elements[$].getBaseElement()&&(P=this.elements[$].getBaseElement()),$+=1;P?this.layerElement.insertBefore(v,P):this.layerElement.appendChild(v)}},Vn.prototype.hide=function(){this.layerElement.style.display="none"},Vn.prototype.show=function(){this.layerElement.style.display="block"};function Ri(){}Me([us,Sa,Ns,Bn,Jo],Ri),Ri.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()},Ri.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))}},Ri.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()},Ri.prototype.setElements=function(c){this.elements=c},Ri.prototype.getElements=function(){return this.elements},Ri.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Ri.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Jr(c,p,v){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Ke(this.layers.length):[],this.initElement(c,p,v),this.tm=c.tm?st.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}Me([Vn,Ri,Xo],Jr),Jr.prototype.createComp=function(c){return new Jr(c,this.globalData,this)};function oo(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=$t("svg");var v="";if(p&&p.title){var $=$t("title"),P=wt();$.setAttribute("id",P),$.textContent=p.title,this.svgElement.appendChild($),v+=P}if(p&&p.description){var _=$t("desc"),z=wt();_.setAttribute("id",z),_.textContent=p.description,this.svgElement.appendChild(_),v+=" "+z}v&&this.svgElement.setAttribute("aria-labelledby",v);var pe=$t("defs");this.svgElement.appendChild(pe);var Q=$t("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:pe,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Me([Vn],oo),oo.prototype.createComp=function(c){return new Jr(c,this.globalData,this)},nl("svg",oo),Or.registerModifier("tm",Ir),Or.registerModifier("pb",Os),Or.registerModifier("rp",yr),Or.registerModifier("rd",va),Or.registerModifier("zz",xa),Or.registerModifier("op",bn),Ut})})(o,o.exports);var l=o.exports;function d(W,ie){var O=W==null?null:typeof Symbol<"u"&&W[Symbol.iterator]||W["@@iterator"];if(O!=null){var L,B,he,U,te=[],xe=!0,De=!1;try{if(he=(O=O.call(W)).next,ie!==0)for(;!(xe=(L=he.call(O)).done)&&(te.push(L.value),te.length!==ie);xe=!0);}catch(_e){De=!0,B=_e}finally{try{if(!xe&&O.return!=null&&(U=O.return(),Object(U)!==U))return}finally{if(De)throw B}}return te}}function h(W,ie){var O=Object.keys(W);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(W);ie&&(L=L.filter(function(B){return Object.getOwnPropertyDescriptor(W,B).enumerable})),O.push.apply(O,L)}return O}function m(W){for(var ie=1;ie<arguments.length;ie++){var O=arguments[ie]!=null?arguments[ie]:{};ie%2?h(Object(O),!0).forEach(function(L){g(W,L,O[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(O)):h(Object(O)).forEach(function(L){Object.defineProperty(W,L,Object.getOwnPropertyDescriptor(O,L))})}return W}function g(W,ie,O){return ie=M(ie),ie in W?Object.defineProperty(W,ie,{value:O,enumerable:!0,configurable:!0,writable:!0}):W[ie]=O,W}function b(W,ie){if(W==null)return{};var O={},L=Object.keys(W),B,he;for(he=0;he<L.length;he++)B=L[he],!(ie.indexOf(B)>=0)&&(O[B]=W[B]);return O}function x(W,ie){if(W==null)return{};var O=b(W,ie),L,B;if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(W);for(B=0;B<he.length;B++)L=he[B],!(ie.indexOf(L)>=0)&&Object.prototype.propertyIsEnumerable.call(W,L)&&(O[L]=W[L])}return O}function w(W,ie){return S(W)||d(W,ie)||E(W,ie)||A()}function S(W){if(Array.isArray(W))return W}function E(W,ie){if(W){if(typeof W=="string")return C(W,ie);var O=Object.prototype.toString.call(W).slice(8,-1);if(O==="Object"&&W.constructor&&(O=W.constructor.name),O==="Map"||O==="Set")return Array.from(W);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return C(W,ie)}}function C(W,ie){(ie==null||ie>W.length)&&(ie=W.length);for(var O=0,L=new Array(ie);O<ie;O++)L[O]=W[O];return L}function A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
143
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(W,ie){if(typeof W!="object"||W===null)return W;var O=W[Symbol.toPrimitive];if(O!==void 0){var L=O.call(W,ie);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ie==="string"?String:Number)(W)}function M(W){var ie=k(W,"string");return typeof ie=="symbol"?ie:String(ie)}var R=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],K=function(ie,O){var L=ie.animationData,B=ie.loop,he=ie.autoplay,U=ie.initialSegment,te=ie.onComplete,xe=ie.onLoopComplete,De=ie.onEnterFrame,_e=ie.onSegmentStart,Me=ie.onConfigReady,Ye=ie.onDataReady,Ge=ie.onDataFailed,Ae=ie.onLoadedImages,Ke=ie.onDOMLoaded,We=ie.onDestroy;ie.lottieRef,ie.renderer,ie.name,ie.assetsPath,ie.rendererSettings;var Ve=x(ie,R),Te=r.useState(!1),tt=w(Te,2),yt=tt[0],Jt=tt[1],xt=r.useRef(),Mt=r.useRef(null),Ti=function(){var _t;(_t=xt.current)===null||_t===void 0||_t.play()},mt=function(){var _t;(_t=xt.current)===null||_t===void 0||_t.stop()},me=function(){var _t;(_t=xt.current)===null||_t===void 0||_t.pause()},Se=function(_t){var Lt;(Lt=xt.current)===null||Lt===void 0||Lt.setSpeed(_t)},Le=function(_t,Lt){var Wt;(Wt=xt.current)===null||Wt===void 0||Wt.goToAndPlay(_t,Lt)},it=function(_t,Lt){var Wt;(Wt=xt.current)===null||Wt===void 0||Wt.goToAndStop(_t,Lt)},Qe=function(_t){var Lt;(Lt=xt.current)===null||Lt===void 0||Lt.setDirection(_t)},Xe=function(_t,Lt){var Wt;(Wt=xt.current)===null||Wt===void 0||Wt.playSegments(_t,Lt)},gt=function(_t){var Lt;(Lt=xt.current)===null||Lt===void 0||Lt.setSubframe(_t)},kt=function(_t){var Lt;return(Lt=xt.current)===null||Lt===void 0?void 0:Lt.getDuration(_t)},wt=function(){var _t;(_t=xt.current)===null||_t===void 0||_t.destroy(),xt.current=void 0},yn=function(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Lt;if(Mt.current){(Lt=xt.current)===null||Lt===void 0||Lt.destroy();var Wt=m(m(m({},ie),_t),{},{container:Mt.current});return xt.current=l.loadAnimation(Wt),Jt(!!xt.current),function(){var gr;(gr=xt.current)===null||gr===void 0||gr.destroy(),xt.current=void 0}}};r.useEffect(function(){var qt=yn();return function(){return qt==null?void 0:qt()}},[L,B]),r.useEffect(function(){xt.current&&(xt.current.autoplay=!!he)},[he]),r.useEffect(function(){if(xt.current){if(!U){xt.current.resetSegments(!0);return}!Array.isArray(U)||!U.length||((xt.current.currentRawFrame<U[0]||xt.current.currentRawFrame>U[1])&&(xt.current.currentRawFrame=U[0]),xt.current.setSegment(U[0],U[1]))}},[U]),r.useEffect(function(){var qt=[{name:"complete",handler:te},{name:"loopComplete",handler:xe},{name:"enterFrame",handler:De},{name:"segmentStart",handler:_e},{name:"config_ready",handler:Me},{name:"data_ready",handler:Ye},{name:"data_failed",handler:Ge},{name:"loaded_images",handler:Ae},{name:"DOMLoaded",handler:Ke},{name:"destroy",handler:We}],_t=qt.filter(function(Wt){return Wt.handler!=null});if(_t.length){var Lt=_t.map(function(Wt){var gr;return(gr=xt.current)===null||gr===void 0||gr.addEventListener(Wt.name,Wt.handler),function(){var Zr;(Zr=xt.current)===null||Zr===void 0||Zr.removeEventListener(Wt.name,Wt.handler)}});return function(){Lt.forEach(function(Wt){return Wt()})}}},[te,xe,De,_e,Me,Ye,Ge,Ae,Ke,We]);var Cr=s.default.createElement("div",m({style:O,ref:Mt},Ve));return{View:Cr,play:Ti,stop:mt,pause:me,setSpeed:Se,goToAndStop:it,goToAndPlay:Le,setDirection:Qe,playSegments:Xe,setSubframe:gt,getDuration:kt,destroy:wt,animationContainerRef:Mt,animationLoaded:yt,animationItem:xt.current}};function H(W){var ie=W.getBoundingClientRect(),O=ie.top,L=ie.height,B=window.innerHeight-O,he=window.innerHeight+L;return B/he}function le(W,ie,O){var L=W.getBoundingClientRect(),B=L.top,he=L.left,U=L.width,te=L.height,xe=(ie-he)/U,De=(O-B)/te;return{x:xe,y:De}}var ae=function(ie){var O=ie.wrapperRef,L=ie.animationItem,B=ie.mode,he=ie.actions;r.useEffect(function(){var U=O.current;if(!(!U||!L||!he.length)){L.stop();var te=function(){var _e=null,Me=function(){var Ge=H(U),Ae=he.find(function(We){var Ve=We.visibility;return Ve&&Ge>=Ve[0]&&Ge<=Ve[1]});if(Ae){if(Ae.type==="seek"&&Ae.visibility&&Ae.frames.length===2){var Ke=Ae.frames[0]+Math.ceil((Ge-Ae.visibility[0])/(Ae.visibility[1]-Ae.visibility[0])*Ae.frames[1]);//! goToAndStop must be relative to the start of the current segment
144
- L.goToAndStop(Ke-L.firstFrame-1,!0)}Ae.type==="loop"&&(_e===null||_e!==Ae.frames||L.isPaused)&&(L.playSegments(Ae.frames,!0),_e=Ae.frames),Ae.type==="play"&&L.isPaused&&(L.resetSegments(!0),L.play()),Ae.type==="stop"&&L.goToAndStop(Ae.frames[0]-L.firstFrame-1,!0)}};return document.addEventListener("scroll",Me),function(){document.removeEventListener("scroll",Me)}},xe=function(){var _e=function(Ae,Ke){var We=Ae,Ve=Ke;if(We!==-1&&Ve!==-1){var Te=le(U,We,Ve);We=Te.x,Ve=Te.y}var tt=he.find(function(xt){var Mt=xt.position;return Mt&&Array.isArray(Mt.x)&&Array.isArray(Mt.y)?We>=Mt.x[0]&&We<=Mt.x[1]&&Ve>=Mt.y[0]&&Ve<=Mt.y[1]:Mt&&!Number.isNaN(Mt.x)&&!Number.isNaN(Mt.y)?We===Mt.x&&Ve===Mt.y:!1});if(tt){if(tt.type==="seek"&&tt.position&&Array.isArray(tt.position.x)&&Array.isArray(tt.position.y)&&tt.frames.length===2){var yt=(We-tt.position.x[0])/(tt.position.x[1]-tt.position.x[0]),Jt=(Ve-tt.position.y[0])/(tt.position.y[1]-tt.position.y[0]);L.playSegments(tt.frames,!0),L.goToAndStop(Math.ceil((yt+Jt)/2*(tt.frames[1]-tt.frames[0])),!0)}tt.type==="loop"&&L.playSegments(tt.frames,!0),tt.type==="play"&&(L.isPaused&&L.resetSegments(!1),L.playSegments(tt.frames)),tt.type==="stop"&&L.goToAndStop(tt.frames[0],!0)}},Me=function(Ae){_e(Ae.clientX,Ae.clientY)},Ye=function(){_e(-1,-1)};return U.addEventListener("mousemove",Me),U.addEventListener("mouseout",Ye),function(){U.removeEventListener("mousemove",Me),U.removeEventListener("mouseout",Ye)}};switch(B){case"scroll":return te();case"cursor":return xe()}}},[B,L])},I=function(ie){var O=ie.actions,L=ie.mode,B=ie.lottieObj,he=B.animationItem,U=B.View,te=B.animationContainerRef;return ae({actions:O,animationItem:he,mode:L,wrapperRef:te}),U},$e=["style","interactivity"],we=function(ie){var O,L,B,he=ie.style,U=ie.interactivity,te=x(ie,$e),xe=K(te,he),De=xe.View,_e=xe.play,Me=xe.stop,Ye=xe.pause,Ge=xe.setSpeed,Ae=xe.goToAndStop,Ke=xe.goToAndPlay,We=xe.setDirection,Ve=xe.playSegments,Te=xe.setSubframe,tt=xe.getDuration,yt=xe.destroy,Jt=xe.animationContainerRef,xt=xe.animationLoaded,Mt=xe.animationItem;return r.useEffect(function(){ie.lottieRef&&(ie.lottieRef.current={play:_e,stop:Me,pause:Ye,setSpeed:Ge,goToAndPlay:Ke,goToAndStop:Ae,setDirection:We,playSegments:Ve,setSubframe:Te,getDuration:tt,destroy:yt,animationContainerRef:Jt,animationLoaded:xt,animationItem:Mt})},[(O=ie.lottieRef)===null||O===void 0?void 0:O.current]),I({lottieObj:{View:De,play:_e,stop:Me,pause:Ye,setSpeed:Ge,goToAndStop:Ae,goToAndPlay:Ke,setDirection:We,playSegments:Ve,setSubframe:Te,getDuration:tt,destroy:yt,animationContainerRef:Jt,animationLoaded:xt,animationItem:Mt},actions:(L=U==null?void 0:U.actions)!==null&&L!==void 0?L:[],mode:(B=U==null?void 0:U.mode)!==null&&B!==void 0?B:"scroll"})};n.LottiePlayer=l,n.default=we,n.useLottie=K,n.useLottieInteractivity=I,Object.defineProperty(n,"__esModule",{value:!0})})}(Kf,Kf.exports)),Kf.exports}var yse=vse();const bse=ci(yse),$se=T.createContext({});function xse(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const B$=typeof window<"u",wse=B$?T.useLayoutEffect:T.useEffect,LO=T.createContext(null),BO=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Cse(e){return typeof e=="object"&&e!==null}function VO(e){return Cse(e)&&"offsetHeight"in e}const Xh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ese(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(h){a.has(h)&&(d.schedule(h),e()),h(o)}const d={schedule:(h,m=!1,g=!1)=>{const x=g&&i?n:r;return m&&a.add(h),x.has(h)||x.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(o=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const Ja={},Sse=40;function NO(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Xh.reduce((A,k)=>(A[k]=Ese(s),A),{}),{setup:o,read:l,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:x}=a,w=()=>{const A=Ja.useManualTiming?i.timestamp:performance.now();n=!1,Ja.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(A-i.timestamp,Sse),1)),i.timestamp=A,i.isProcessing=!0,o.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(w))},S=()=>{n=!0,r=!0,i.isProcessing||e(w)};return{schedule:Xh.reduce((A,k)=>{const M=a[k];return A[k]=(R,K=!1,H=!1)=>(n||S(),M.schedule(R,K,H)),A},{}),cancel:A=>{for(let k=0;k<Xh.length;k++)a[Xh[k]].cancel(A)},state:i,steps:a}}const Mc=e=>e,{schedule:Ps,cancel:v4,state:cm}=NO(typeof requestAnimationFrame<"u"?requestAnimationFrame:Mc,!0),V$=T.createContext({strict:!1}),QT={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 QT)mc[e]={isEnabled:t=>QT[e].some(n=>!!t[n])};function e2(e){for(const t in e)mc[t]={...mc[t],...e[t]}}function Dse({children:e,features:t,strict:n=!1}){const[,r]=T.useState(!A1(t)),i=T.useRef(void 0);if(!A1(t)){const{renderer:s,...a}=t;i.current=s,e2(a)}return T.useEffect(()=>{A1(t)&&t().then(({renderer:s,...a})=>{e2(a),i.current=s,r(!0)})},[]),la.jsx(V$.Provider,{value:{renderer:i.current,strict:n},children:e})}function A1(e){return typeof e=="function"}const Ase=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 fm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ase.has(e)}let jO=e=>!fm(e);function Tse(e){e&&(jO=t=>t.startsWith("on")?!fm(t):e(t))}try{Tse(require("@emotion/is-prop-valid").default)}catch{}function Pse(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(jO(i)||n===!0&&fm(i)||!t&&!fm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const t2=new Set;function N$(e,t,n){e||t2.has(t)||(console.warn(t),t2.add(t))}function _se(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&N$(!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 ug=T.createContext({});function lg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $d(e){return typeof e=="string"||Array.isArray(e)}const j$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],K$=["initial",...j$];function cg(e){return lg(e.animate)||K$.some(t=>$d(e[t]))}function KO(e){return!!(cg(e)||e.variants)}function Mse(e,t){if(cg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||$d(n)?n:void 0,animate:$d(r)?r:void 0}}return e.inherit!==!1?t:{}}function Fse(e){const{initial:t,animate:n}=Mse(e,T.useContext(ug));return T.useMemo(()=>({initial:t,animate:n}),[n2(t),n2(n)])}function n2(e){return Array.isArray(e)?e.join(" "):e}const Rse=Symbol.for("motionComponentSymbol");function UO(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function kse(e,t,n){return T.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):UO(n)&&(n.current=r))},[t])}const U$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ose="framerAppearId",zO="data-"+U$(Ose),Ise=T.createContext({}),{schedule:Lse}=NO(queueMicrotask,!1);function Bse(e,t,n,r,i){var w,S;const{visualElement:s}=T.useContext(ug),a=T.useContext(V$),o=T.useContext(LO),l=T.useContext(BO).reducedMotion,d=T.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const h=d.current,m=T.useContext(Ise);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Vse(d.current,n,i,m);const g=T.useRef(!1);T.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[zO],x=T.useRef(!!b&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,b))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,b)));return wse(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Lse.render(h.render),x.current&&h.animationState&&h.animationState.animateChanges())}),T.useEffect(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,b)}),x.current=!1))}),h}function Vse(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:qO(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&UO(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:d})}function qO(e){if(e)return e.options.allowProjection!==!1?e.projection:qO(e.parent)}let Hd=()=>{},Hu=()=>{};process.env.NODE_ENV!=="production"&&(Hd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Hu=(e,t)=>{if(!e)throw new Error(t)});function Nse({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function s(o,l){let d;const h={...T.useContext(BO),...o,layoutId:jse(o)},{isStatic:m}=h,g=Fse(o),b=r(o,m);if(!m&&B$){Kse(h,e);const x=Use(h);d=x.MeasureLayout,g.visualElement=Bse(i,b,h,t,x.ProjectionNode)}return la.jsxs(ug.Provider,{value:g,children:[d&&g.visualElement?la.jsx(d,{visualElement:g.visualElement,...h}):null,n(i,o,kse(b,g.visualElement,l),b,m,g.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const a=T.forwardRef(s);return a[Rse]=i,a}function jse({layoutId:e}){const t=T.useContext($se).id;return t&&e!==void 0?t+"-"+e:e}function Kse(e,t){T.useContext(V$).strict,process.env.NODE_ENV}function Use(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 WO=e=>t=>typeof t=="string"&&t.startsWith(e),HO=WO("--"),zse=WO("var(--"),z$=e=>zse(e)?qse.test(e.split("/*")[0].trim()):!1,qse=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Wse={},Fc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rc=new Set(Fc);function GO(e,{layout:t,layoutId:n}){return Rc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Wse[e]||e==="opacity")}const YO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Gu=(e,t,n)=>n>t?t:n<e?e:n,kc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xd={...kc,transform:e=>Gu(0,1,e)},Jh={...kc,default:1},r2={...kc,transform:Math.round},Gd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$o=Gd("deg"),nc=Gd("%"),Pt=Gd("px"),Hse=Gd("vh"),Gse=Gd("vw"),i2={...nc,parse:e=>nc.parse(e)/100,transform:e=>nc.transform(e*100)},Yse={rotate:$o,rotateX:$o,rotateY:$o,rotateZ:$o,scale:Jh,scaleX:Jh,scaleY:Jh,scaleZ:Jh,skew:$o,skewX:$o,skewY:$o,distance:Pt,translateX:Pt,translateY:Pt,translateZ:Pt,x:Pt,y:Pt,z:Pt,perspective:Pt,transformPerspective:Pt,opacity:xd,originX:i2,originY:i2,originZ:Pt},q$={borderWidth:Pt,borderTopWidth:Pt,borderRightWidth:Pt,borderBottomWidth:Pt,borderLeftWidth:Pt,borderRadius:Pt,radius:Pt,borderTopLeftRadius:Pt,borderTopRightRadius:Pt,borderBottomRightRadius:Pt,borderBottomLeftRadius:Pt,width:Pt,maxWidth:Pt,height:Pt,maxHeight:Pt,top:Pt,right:Pt,bottom:Pt,left:Pt,padding:Pt,paddingTop:Pt,paddingRight:Pt,paddingBottom:Pt,paddingLeft:Pt,margin:Pt,marginTop:Pt,marginRight:Pt,marginBottom:Pt,marginLeft:Pt,backgroundPositionX:Pt,backgroundPositionY:Pt,...Yse,zIndex:r2,fillOpacity:xd,strokeOpacity:xd,numOctaves:r2},Zse={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Xse=Fc.length;function Jse(e,t,n){let r="",i=!0;for(let s=0;s<Xse;s++){const a=Fc[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const d=YO(o,q$[a]);if(!l){i=!1;const h=Zse[a]||a;r+=`${h}(${d}) `}n&&(t[a]=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:s}=e;let a=!1,o=!1;for(const l in t){const d=t[l];if(Rc.has(l)){a=!0;continue}else if(HO(l)){i[l]=d;continue}else{const h=YO(d,q$[l]);l.startsWith("origin")?(o=!0,s[l]=h):r[l]=h}}if(t.transform||(a||n?r.transform=Jse(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const H$=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),qr=e=>!!(e&&e.getVelocity);function ZO(e,t,n){for(const r in t)!qr(t[r])&&!GO(r,n)&&(e[r]=t[r])}function Qse({transformTemplate:e},t){return T.useMemo(()=>{const n=H$();return W$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function eae(e,t){const n=e.style||{},r={};return ZO(r,n,e),Object.assign(r,Qse(e,t)),r}function tae(e,t){const n={},r=eae(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 nae={offset:"stroke-dashoffset",array:"stroke-dasharray"},rae={offset:"strokeDashoffset",array:"strokeDasharray"};function iae(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?nae:rae;e[s.offset]=Pt.transform(-r);const a=Pt.transform(t),o=Pt.transform(n);e[s.array]=`${a} ${o}`}function XO(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,d,h){if(W$(e,o,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&iae(m,i,s,a,!1)}const JO=()=>({...H$(),attrs:{}}),QO=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sae(e,t,n,r){const i=T.useMemo(()=>{const s=JO();return XO(s,t,QO(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};ZO(s,e.style,e),i.style={...s,...i.style}}return i}const aae=["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 G$(e){return typeof e!="string"||e.includes("-")?!1:!!(aae.indexOf(e)>-1||/[A-Z]/u.test(e))}function oae(e=!1){return(n,r,i,{latestValues:s},a)=>{const l=(G$(n)?sae:tae)(r,s,a,n),d=Pse(r,typeof n=="string",e),h=n!==T.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=T.useMemo(()=>qr(m)?m.get():m,[m]);return T.createElement(n,{...h,children:g})}}function s2(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Y$(e,t,n,r){if(typeof t=="function"){const[i,s]=s2(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=s2(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function uae(e){return qr(e)?e.get():e}function lae({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:cae(n,r,i,e),renderState:t()}}const eI=e=>(t,n)=>{const r=T.useContext(ug),i=T.useContext(LO),s=()=>lae(e,t,r,i);return n?s():xse(s)};function cae(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=uae(s[g]);let{initial:a,animate:o}=e;const l=cg(e),d=KO(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?o:a;if(m&&typeof m!="boolean"&&!lg(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const x=Y$(e,g[b]);if(x){const{transitionEnd:w,transition:S,...E}=x;for(const C in E){let A=E[C];if(Array.isArray(A)){const k=h?A.length-1:0;A=A[k]}A!==null&&(i[C]=A)}for(const C in w)i[C]=w[C]}}}return i}function Z$(e,t,n){var s;const{style:r}=e,i={};for(const a in r)(qr(r[a])||t.style&&qr(t.style[a])||GO(a,e)||((s=n==null?void 0:n.getValue(a))==null?void 0:s.liveStyle)!==void 0)&&(i[a]=r[a]);return i}const fae={useVisualState:eI({scrapeMotionValuesFromProps:Z$,createRenderState:H$})};function tI(e,t,n){const r=Z$(e,t,n);for(const i in e)if(qr(e[i])||qr(t[i])){const s=Fc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const dae={useVisualState:eI({scrapeMotionValuesFromProps:tI,createRenderState:JO})};function hae(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...G$(r)?dae:fae,preloadedFeatures:e,useRender:oae(i),createVisualElement:t,Component:r};return Nse(a)}}const pae=hae(),mae=_se(pae);function wd(e,t,n){const r=e.getProps();return Y$(r,t,n!==void 0?n:r.custom,e)}const y4=e=>Array.isArray(e);let Dp;function gae(){Dp=void 0}const Xi={now:()=>(Dp===void 0&&Xi.set(cm.isProcessing||Ja.useManualTiming?cm.timestamp:performance.now()),Dp),set:e=>{Dp=e,queueMicrotask(gae)}};function vae(e,t){e.indexOf(t)===-1&&e.push(t)}function yae(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class nI{constructor(){this.subscriptions=[]}add(t){return vae(this.subscriptions,t),()=>yae(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 s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function rI(e,t){return t?e*(1e3/t):0}const a2=30,bae=e=>!isNaN(parseFloat(e));class $ae{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var a,o;const s=Xi.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&((o=this.events.renderRequest)==null||o.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Xi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bae(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&N$(!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 nI);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ps.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Xi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>a2)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,a2);return rI(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dm(e,t){return new $ae(e,t)}function xae(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dm(n))}function wae(e){return y4(e)?e[e.length-1]||0:e}function Cae(e,t){const n=wd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=wae(s[a]);xae(e,a,o)}}function Eae(e){return!!(qr(e)&&e.add)}function Sae(e,t){const n=e.getValue("willChange");if(Eae(n))return n.add(t);if(!n&&Ja.WillChange){const r=new Ja.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Dae(e){return e.props[zO]}const Aae=e=>e!==null;function Tae(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Aae),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Pae={type:"spring",stiffness:500,damping:25,restSpeed:10},_ae=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Mae={type:"keyframes",duration:.8},Fae={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Rae=(e,{keyframes:t})=>t.length>2?Mae:Rc.has(e)?e.startsWith("scale")?_ae(t[1]):Pae:Fae;function kae({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:d,...h}){return!!Object.keys(h).length}function iI(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ua=e=>e*1e3,Wa=e=>e/1e3,Qf=e=>Math.round(e*1e5)/1e5,X$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Oae(e){return e==null}const Iae=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,J$=(e,t)=>n=>!!(typeof n=="string"&&Iae.test(n)&&n.startsWith(e)||t&&!Oae(n)&&Object.prototype.hasOwnProperty.call(n,t)),sI=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(X$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},Lae=e=>Gu(0,255,e),T1={...kc,transform:e=>Math.round(Lae(e))},Du={test:J$("rgb","red"),parse:sI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+T1.transform(e)+", "+T1.transform(t)+", "+T1.transform(n)+", "+Qf(xd.transform(r))+")"};function Bae(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 b4={test:J$("#"),parse:Bae,transform:Du.transform},ql={test:J$("hsl","hue"),parse:sI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nc.transform(Qf(t))+", "+nc.transform(Qf(n))+", "+Qf(xd.transform(r))+")"},Pr={test:e=>Du.test(e)||b4.test(e)||ql.test(e),parse:e=>Du.test(e)?Du.parse(e):ql.test(e)?ql.parse(e):b4.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Du.transform(e):ql.transform(e)},Vae=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Nae(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(X$))==null?void 0:t.length)||0)+(((n=e.match(Vae))==null?void 0:n.length)||0)>0}const aI="number",oI="color",jae="var",Kae="var(",o2="${}",Uae=/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 s=0;const o=t.replace(Uae,l=>(Pr.test(l)?(r.color.push(s),i.push(oI),n.push(Pr.parse(l))):l.startsWith(Kae)?(r.var.push(s),i.push(jae),n.push(l)):(r.number.push(s),i.push(aI),n.push(parseFloat(l))),++s,o2)).split(o2);return{values:n,split:o,indexes:r,types:i}}function uI(e){return Cd(e).values}function lI(e){const{split:t,types:n}=Cd(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===aI?s+=Qf(i[a]):o===oI?s+=Pr.transform(i[a]):s+=i[a]}return s}}const zae=e=>typeof e=="number"?0:e;function qae(e){const t=uI(e);return lI(e)(t.map(zae))}const Oc={test:Nae,parse:uI,createTransformer:lI,getAnimatableNone:qae};function P1(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 Wae({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=P1(l,o,e+1/3),s=P1(l,o,e),a=P1(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function hm(e,t){return n=>n>0?t:e}const fg=(e,t,n)=>e+(t-e)*n,_1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Hae=[b4,Du,ql],Gae=e=>Hae.find(t=>t.test(e));function u2(e){const t=Gae(e);if(Hd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ql&&(n=Wae(n)),n}const l2=(e,t)=>{const n=u2(e),r=u2(t);if(!n||!r)return hm(e,t);const i={...n};return s=>(i.red=_1(n.red,r.red,s),i.green=_1(n.green,r.green,s),i.blue=_1(n.blue,r.blue,s),i.alpha=fg(n.alpha,r.alpha,s),Du.transform(i))},$4=new Set(["none","hidden"]);function Yae(e,t){return $4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}const Zae=(e,t)=>n=>t(e(n)),dg=(...e)=>e.reduce(Zae);function Xae(e,t){return n=>fg(e,t,n)}function Q$(e){return typeof e=="number"?Xae:typeof e=="string"?z$(e)?hm:Pr.test(e)?l2:eoe:Array.isArray(e)?cI:typeof e=="object"?Pr.test(e)?l2:Jae:hm}function cI(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>Q$(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function Jae(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Q$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Qae(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}const eoe=(e,t)=>{const n=Oc.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?$4.has(e)&&!i.values.length||$4.has(t)&&!r.values.length?Yae(e,t):dg(cI(Qae(r,i),i.values),n):(Hd(!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.`),hm(e,t))};function fI(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?fg(e,t,n):Q$(e)(e,t)}const toe=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ps.update(t,n),stop:()=>v4(t),now:()=>cm.isProcessing?cm.timestamp:Xi.now()}},dI=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(s/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},pm=2e4;function ex(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<pm;)t+=n,r=e.next(t);return t>=pm?1/0:t}function noe(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(ex(r),pm);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Wa(i)}}const roe=5;function hI(e,t,n){const r=Math.max(t-roe,0);return rI(n-e(r),t-r)}const Rn={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},M1=.001;function ioe({duration:e=Rn.duration,bounce:t=Rn.bounce,velocity:n=Rn.velocity,mass:r=Rn.mass}){let i,s;Hd(e<=ua(Rn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Gu(Rn.minDamping,Rn.maxDamping,a),e=Gu(Rn.minDuration,Rn.maxDuration,Wa(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,b=x4(d,a),x=Math.exp(-m);return M1-g/b*x},s=d=>{const m=d*a*e,g=m*n+n,b=Math.pow(a,2)*Math.pow(d,2)*e,x=Math.exp(-m),w=x4(Math.pow(d,2),a);return(-i(d)+M1>0?-1:1)*((g-b)*x)/w}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-M1+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,l=aoe(i,s,o);if(e=ua(e),isNaN(l))return{stiffness:Rn.stiffness,damping:Rn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const soe=12;function aoe(e,t,n){let r=n;for(let i=1;i<soe;i++)r=r-e(r)/t(r);return r}function x4(e,t){return e*Math.sqrt(1-t*t)}const ooe=["duration","bounce"],uoe=["stiffness","damping","mass"];function c2(e,t){return t.some(n=>e[n]!==void 0)}function loe(e){let t={velocity:Rn.velocity,stiffness:Rn.stiffness,damping:Rn.damping,mass:Rn.mass,isResolvedFromDuration:!1,...e};if(!c2(e,uoe)&&c2(e,ooe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Gu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Rn.mass,stiffness:i,damping:s}}else{const n=ioe(e);t={...t,...n,mass:Rn.mass},t.isResolvedFromDuration=!0}return t}function mm(e=Rn.visualDuration,t=Rn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=loe({...n,velocity:-Wa(n.velocity||0)}),x=g||0,w=d/(2*Math.sqrt(l*h)),S=a-s,E=Wa(Math.sqrt(l/h)),C=Math.abs(S)<5;r||(r=C?Rn.restSpeed.granular:Rn.restSpeed.default),i||(i=C?Rn.restDelta.granular:Rn.restDelta.default);let A;if(w<1){const M=x4(E,w);A=R=>{const K=Math.exp(-w*E*R);return a-K*((x+w*E*S)/M*Math.sin(M*R)+S*Math.cos(M*R))}}else if(w===1)A=M=>a-Math.exp(-E*M)*(S+(x+E*S)*M);else{const M=E*Math.sqrt(w*w-1);A=R=>{const K=Math.exp(-w*E*R),H=Math.min(M*R,300);return a-K*((x+w*E*S)*Math.sinh(H)+M*S*Math.cosh(H))/M}}const k={calculatedDuration:b&&m||null,next:M=>{const R=A(M);if(b)o.done=M>=m;else{let K=M===0?x:0;w<1&&(K=M===0?ua(x):hI(A,M,R));const H=Math.abs(K)<=r,le=Math.abs(a-R)<=i;o.done=H&&le}return o.value=o.done?a:R,o},toString:()=>{const M=Math.min(ex(k),pm),R=dI(K=>k.next(M*K).value,M,30);return M+"ms "+R},toTransition:()=>{}};return k}mm.applyToOptions=e=>{const t=noe(e,100,mm);return e.ease=t.ease,e.duration=ua(t.duration),e.type="keyframes",e};function w4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=H=>o!==void 0&&H<o||l!==void 0&&H>l,x=H=>o===void 0?l:l===void 0||Math.abs(o-H)<Math.abs(l-H)?o:l;let w=n*t;const S=m+w,E=a===void 0?S:a(S);E!==S&&(w=E-m);const C=H=>-w*Math.exp(-H/r),A=H=>E+C(H),k=H=>{const le=C(H),ae=A(H);g.done=Math.abs(le)<=d,g.value=g.done?E:ae};let M,R;const K=H=>{b(g.value)&&(M=H,R=mm({keyframes:[g.value,x(g.value)],velocity:hI(A,H,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return K(0),{calculatedDuration:null,next:H=>{let le=!1;return!R&&M===void 0&&(le=!0,k(H),K(H)),M!==void 0&&H>=M?R.next(H-M):(!le&&k(H),g)}}}const pI=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function coe(e,t,n){const r=[],i=n||Ja.mix||fI,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Mc:t;o=dg(l,o)}r.push(o)}return r}function foe(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Hu(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=coe(t,r,i),l=o.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=pI(e[m],e[m+1],h);return o[m](g)};return n?h=>d(Gu(e[0],e[s-1],h)):d}function doe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=pI(0,t,r);e.push(fg(n,1,i))}}function hoe(e){const t=[0];return doe(t,e.length-1),t}function poe(e,t){return e.map(n=>n*t)}const mI=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,moe=1e-7,goe=12;function voe(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=mI(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>moe&&++o<goe);return a}function Yd(e,t,n,r){if(e===t&&n===r)return Mc;const i=s=>voe(s,0,1,e,n);return s=>s===0||s===1?s:mI(i(s),t,r)}const yoe=Yd(.42,0,1,1),boe=Yd(0,0,.58,1),gI=Yd(.42,0,.58,1),$oe=e=>Array.isArray(e)&&typeof e[0]!="number",vI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yI=e=>t=>1-e(1-t),bI=Yd(.33,1.53,.69,.99),tx=yI(bI),$I=vI(tx),xI=e=>(e*=2)<1?.5*tx(e):.5*(2-Math.pow(2,-10*(e-1))),nx=e=>1-Math.sin(Math.acos(e)),xoe=yI(nx),wI=vI(nx),CI=e=>Array.isArray(e)&&typeof e[0]=="number",f2={linear:Mc,easeIn:yoe,easeInOut:gI,easeOut:boe,circIn:nx,circInOut:wI,circOut:xoe,backIn:tx,backInOut:$I,backOut:bI,anticipate:xI},woe=e=>typeof e=="string",d2=e=>{if(CI(e)){Hu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Yd(t,n,r,i)}else if(woe(e))return Hu(f2[e]!==void 0,`Invalid easing type '${e}'`),f2[e];return e};function Coe(e,t){return e.map(()=>t||gI).splice(0,e.length-1)}function Wl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=$oe(r)?r.map(d2):d2(r),s={done:!1,value:t[0]},a=poe(n&&n.length===t.length?n:hoe(t),e),o=foe(a,t,{ease:Array.isArray(i)?i:Coe(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const Eoe=e=>e!==null;function rx(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(Eoe),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const Soe={decay:w4,inertia:w4,tween:Wl,keyframes:Wl,spring:mm};function EI(e){typeof e.type=="string"&&(e.type=Soe[e.type])}class ix{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Doe=e=>e/100;class sx extends ix{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Xi.now()&&this.tick(Xi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;EI(t);const{type:n=Wl,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Wl;process.env.NODE_ENV!=="production"&&l!==Wl&&Hu(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),l!==Wl&&typeof o[0]!="number"&&(this.mixKeyframes=dg(Doe,fI(o[0],o[1])),o=[0,100]);const d=l({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=ex(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:x,onUpdate:w,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const E=this.currentTime-d*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?E<0:E>i;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,k=r;if(m){const H=Math.min(this.currentTime,i)/o;let le=Math.floor(H),ae=H%1;!ae&&H>=1&&(ae=1),ae===1&&le--,le=Math.min(le,m+1),!!(le%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/o)):g==="mirror"&&(k=a)),A=Gu(0,1,ae)*o}const M=C?{done:!1,value:h[0]}:k.next(A);s&&(M.value=s(M.value));let{done:R}=M;!C&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return K&&x!==w4&&(M.value=rx(h,this.options,S,this.speed)),w&&w(M.value),K&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return Wa(this.calculatedDuration)}get time(){return Wa(this.currentTime)}set time(t){var n;t=ua(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Xi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Wa(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=toe,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Aoe(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Au=e=>e*180/Math.PI,C4=e=>{const t=Au(Math.atan2(e[1],e[0]));return E4(t)},Toe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:C4,rotateZ:C4,skewX:e=>Au(Math.atan(e[1])),skewY:e=>Au(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},E4=e=>(e=e%360,e<0&&(e+=360),e),h2=C4,p2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),m2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Poe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:p2,scaleY:m2,scale:e=>(p2(e)+m2(e))/2,rotateX:e=>E4(Au(Math.atan2(e[6],e[5]))),rotateY:e=>E4(Au(Math.atan2(-e[2],e[0]))),rotateZ:h2,rotate:h2,skewX:e=>Au(Math.atan(e[4])),skewY:e=>Au(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function S4(e){return e.includes("scale")?1:0}function D4(e,t){if(!e||e==="none")return S4(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Poe,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Toe,i=o}if(!i)return S4(t);const s=r[t],a=i[1].split(",").map(Moe);return typeof s=="function"?s(a):a[s]}const _oe=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return D4(n,t)};function Moe(e){return parseFloat(e.trim())}const g2=e=>e===kc||e===Pt,Foe=new Set(["x","y","z"]),Roe=Fc.filter(e=>!Foe.has(e));function koe(e){const t=[];return Roe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ru={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>D4(t,"x"),y:(e,{transform:t})=>D4(t,"y")};Ru.translateX=Ru.x;Ru.translateY=Ru.y;const ku=new Set;let A4=!1,T4=!1,P4=!1;function SI(){if(T4){const e=Array.from(ku).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=koe(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(([s,a])=>{var o;(o=r.getValue(s))==null||o.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}T4=!1,A4=!1,ku.forEach(e=>e.complete(P4)),ku.clear()}function DI(){ku.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(T4=!0)})}function Ooe(){P4=!0,DI(),SI(),P4=!1}class ax{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(ku.add(this),A4||(A4=!0,Ps.read(DI),Ps.resolveKeyframes(SI))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}Aoe(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ku.delete(this)}cancel(){this.state==="scheduled"&&(ku.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ioe=e=>e.startsWith("--");function Loe(e,t,n){Ioe(t)?e.style.setProperty(t,n):e.style[t]=n}function ox(e){let t;return()=>(t===void 0&&(t=e()),t)}const Boe=ox(()=>window.ScrollTimeline!==void 0),Voe={};function Noe(e,t){const n=ox(e);return()=>Voe[t]??n()}const AI=Noe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Uf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,v2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Uf([0,.65,.55,1]),circOut:Uf([.55,0,1,.45]),backIn:Uf([.31,.01,.66,-.59]),backOut:Uf([.33,1.53,.69,.99])};function TI(e,t){if(e)return typeof e=="function"?AI()?dI(e,t):"ease-out":CI(e)?Uf(e):Array.isArray(e)?e.map(n=>TI(n,t)||v2.easeOut):v2[e]}function joe(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},d=void 0){const h={[t]:n};l&&(h.offset=l);const m=TI(o,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function PI(e){return typeof e=="function"&&"applyToOptions"in e}function Koe({type:e,...t}){return PI(e)&&AI()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Uoe extends ix{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Hu(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const d=Koe(t);this.animation=joe(n,r,i,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const h=rx(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):Loe(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Wa(Number(t))}get time(){return Wa(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ua(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Boe()?(this.animation.timeline=t,Mc):n(this)}}const _I={anticipate:xI,backInOut:$I,circInOut:wI};function zoe(e){return e in _I}function qoe(e){typeof e.ease=="string"&&zoe(e.ease)&&(e.ease=_I[e.ease])}const y2=10;class Woe extends Uoe{constructor(t){qoe(t),EI(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new sx({...a,autoplay:!1}),l=ua(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-y2).value,o.sample(l).value,y2),o.stop()}}const b2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Oc.test(e)||e==="0")&&!e.startsWith("url("));function Hoe(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 Goe(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=b2(i,t),o=b2(s,t);return Hd(a===o,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!a||!o?!1:Hoe(e)||(n==="spring"||PI(n))&&r}const Yoe=new Set(["opacity","clipPath","filter","transform"]),Zoe=ox(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Xoe(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!VO((d=t==null?void 0:t.owner)==null?void 0:d.current))return!1;const{onUpdate:o,transformTemplate:l}=t.owner.getProps();return Zoe()&&n&&Yoe.has(n)&&(n!=="transform"||!l)&&!o&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const Joe=40;class Qoe extends ix{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:d,element:h,...m}){var x;super(),this.stop=()=>{var w,S;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(S=this.keyframeResolver)==null||S.cancel()},this.createdAt=Xi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:l,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||ax;this.keyframeResolver=new b(o,(w,S,E)=>this.onKeyframesResolved(w,S,g,!E),l,d,h),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:l,isHandoff:d,onUpdate:h}=r;this.resolvedAt=Xi.now(),Goe(t,s,a,o)||((Ja.instantAnimations||!l)&&(h==null||h(rx(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Joe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&Xoe(g)?new Woe({...g,element:g.motionValue.owner.current}):new sx(g);b.finished.then(()=>this.notifyFinished()).catch(Mc),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Ooe()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const eue=(e,t,n,r={},i,s)=>a=>{const o=iI(r,e)||{},l=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ua(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};kae(o)||Object.assign(h,Rae(e,h)),h.duration&&(h.duration=ua(h.duration)),h.repeatDelay&&(h.repeatDelay=ua(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)),(Ja.instantAnimations||Ja.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!s&&t.get()!==void 0){const g=Tae(h.keyframes,o);if(g!==void 0){Ps.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new sx(h):new Qoe(h)},MI=new Set(["width","height","top","left","right","bottom",...Fc]);function tue({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function FI(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);const l=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const m=e.getValue(h,e.latestValues[h]??null),g=o[h];if(g===void 0||d&&tue(d,h))continue;const b={delay:n,...iI(s||{},h)},x=m.get();if(x!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===x&&!b.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const E=Dae(e);if(E){const C=window.MotionHandoffAnimation(E,h,Ps);C!==null&&(b.startTime=C,w=!0)}}Sae(e,h),m.start(eue(h,m,g,e.shouldReduceMotion&&MI.has(h)?{type:!1}:b,e,w));const S=m.animation;S&&l.push(S)}return a&&Promise.all(l).then(()=>{Ps.update(()=>{a&&Cae(e,a)})}),l}function _4(e,t,n={}){var l;const r=wd(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(FI(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return nue(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[d,h]=o==="beforeChildren"?[s,a]:[a,s];return d().then(()=>h())}else return Promise.all([s(),a(n.delay)])}function nue(e,t,n=0,r=0,i=1,s){const a=[],o=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>o-d*r;return Array.from(e.variantChildren).sort(rue).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(_4(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function rue(e,t){return e.sortNodePosition(t)}function iue(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>_4(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=_4(e,t,n);else{const i=typeof t=="function"?wd(e,t,n.custom):t;r=Promise.all(FI(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function RI(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 sue=K$.length;function kI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?kI(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<sue;n++){const r=K$[n],i=e.props[r];($d(i)||i===!1)&&(t[r]=i)}return t}const aue=[...j$].reverse(),oue=j$.length;function uue(e){return t=>Promise.all(t.map(({animation:n,options:r})=>iue(e,n,r)))}function lue(e){let t=uue(e),n=$2(),r=!0;const i=l=>(d,h)=>{var g;const m=wd(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:x,...w}=m;d={...d,...w,...x}}return d};function s(l){t=l(e)}function a(l){const{props:d}=e,h=kI(e.parent)||{},m=[],g=new Set;let b={},x=1/0;for(let S=0;S<oue;S++){const E=aue[S],C=n[E],A=d[E]!==void 0?d[E]:h[E],k=$d(A),M=E===l?C.isActive:null;M===!1&&(x=S);let R=A===h[E]&&A!==d[E]&&k;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...b},!C.isActive&&M===null||!A&&!C.prevProp||lg(A)||typeof A=="boolean")continue;const K=cue(C.prevProp,A);let H=K||E===l&&C.isActive&&!R&&k||S>x&&k,le=!1;const ae=Array.isArray(A)?A:[A];let I=ae.reduce(i(E),{});M===!1&&(I={});const{prevResolvedValues:$e={}}=C,we={...$e,...I},W=L=>{H=!0,g.has(L)&&(le=!0,g.delete(L)),C.needsAnimating[L]=!0;const B=e.getValue(L);B&&(B.liveStyle=!1)};for(const L in we){const B=I[L],he=$e[L];if(b.hasOwnProperty(L))continue;let U=!1;y4(B)&&y4(he)?U=!RI(B,he):U=B!==he,U?B!=null?W(L):g.add(L):B!==void 0&&g.has(L)?W(L):C.protectedKeys[L]=!0}C.prevProp=A,C.prevResolvedValues=I,C.isActive&&(b={...b,...I}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(R&&K)||le)&&m.push(...ae.map(L=>({animation:L,options:{type:E}})))}if(g.size){const S={};if(typeof d.initial!="boolean"){const E=wd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);E&&E.transition&&(S.transition=E.transition)}g.forEach(E=>{const C=e.getBaseTarget(E),A=e.getValue(E);A&&(A.liveStyle=!0),S[E]=C??null}),m.push({animation:S})}let w=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(m):Promise.resolve()}function o(l,d){var m;if(n[l].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,d)}),n[l].isActive=d;const h=a(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=$2(),r=!0}}}function cue(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!RI(t,e):!1}function hu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $2(){return{animate:hu(!0),whileInView:hu(),whileHover:hu(),whileTap:hu(),whileDrag:hu(),whileFocus:hu(),exit:hu()}}class Ic{constructor(t){this.isMounted=!1,this.node=t}update(){}}class fue extends Ic{constructor(t){super(t),t.animationState||(t.animationState=lue(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();lg(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let due=0;class hue extends Ic{constructor(){super(...arguments),this.id=due++}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 pue={animation:{Feature:fue},exit:{Feature:hue}};function x2(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const mue=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function OI(e){return{point:{x:e.pageX,y:e.pageY}}}function gue({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vue(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const w2=()=>({min:0,max:0}),II=()=>({x:w2(),y:w2()});function yue(e,t){return gue(vue(e.getBoundingClientRect(),t))}const bue={y:!1};function $ue(){return bue.y}function xue(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function LI(e,t){const n=xue(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function C2(e){return!(e.pointerType==="touch"||$ue())}function wue(e,t,n={}){const[r,i,s]=LI(e,n),a=o=>{if(!C2(o))return;const{target:l}=o,d=t(l,o);if(typeof d!="function"||!l)return;const h=m=>{C2(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}function E2(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Ps.postRender(()=>s(t,OI(t)))}class Cue extends Ic{mount(){const{current:t}=this.node;t&&(this.unmount=wue(t,(n,r)=>(E2(this.node,r,"Start"),i=>E2(this.node,i,"End"))))}unmount(){}}class Eue extends Ic{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=dg(x2(this.node.current,"focus",()=>this.onFocus()),x2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const BI=(e,t)=>t?e===t?!0:BI(e,t.parentElement):!1,Sue=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Due(e){return Sue.has(e.tagName)||e.tabIndex!==-1}const Ap=new WeakSet;function S2(e){return t=>{t.key==="Enter"&&e(t)}}function F1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Aue=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=S2(()=>{if(Ap.has(n))return;F1(n,"down");const i=S2(()=>{F1(n,"up")}),s=()=>F1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function D2(e){return mue(e)&&!0}function Tue(e,t,n={}){const[r,i,s]=LI(e,n),a=o=>{const l=o.currentTarget;if(!D2(o))return;Ap.add(l);const d=t(l,o),h=(b,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Ap.has(l)&&Ap.delete(l),D2(b)&&typeof d=="function"&&d(b,{success:x})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||BI(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),VO(o)&&(o.addEventListener("focus",d=>Aue(d,i)),!Due(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function A2(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),s=r[i];s&&Ps.postRender(()=>s(t,OI(t)))}class Pue extends Ic{mount(){const{current:t}=this.node;t&&(this.unmount=Tue(t,(n,r)=>(A2(this.node,r,"Start"),(i,{success:s})=>A2(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const M4=new WeakMap,R1=new WeakMap,_ue=e=>{const t=M4.get(e.target);t&&t(e)},Mue=e=>{e.forEach(_ue)};function Fue({root:e,...t}){const n=e||document;R1.has(n)||R1.set(n,{});const r=R1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Mue,{root:e,...t})),r[i]}function Rue(e,t,n){const r=Fue(t);return M4.set(e,n),r.observe(e),()=>{M4.delete(e),r.unobserve(e)}}const kue={some:0,all:1};class Oue extends Ic{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:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:kue[i]},o=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,s&&!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 Rue(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Iue(t,n))&&this.startObserver()}unmount(){}}function Iue({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Lue={inView:{Feature:Oue},tap:{Feature:Pue},focus:{Feature:Eue},hover:{Feature:Cue}},F4={current:null},VI={current:!1};function Bue(){if(VI.current=!0,!!B$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>F4.current=e.matches;e.addListener(t),t()}else F4.current=!1}const Vue=new WeakMap;function Nue(e,t,n){for(const r in t){const i=t[r],s=n[r];if(qr(i))e.addValue(r,i);else if(qr(s))e.addValue(r,dm(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,dm(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const NI=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),jI=e=>/^0[^.\s]+$/u.test(e),jue={test:e=>e==="auto",parse:e=>e},KI=e=>t=>t.test(e),UI=[kc,Pt,nc,$o,Gse,Hse,jue],T2=e=>UI.find(KI(e)),Kue=[...UI,Pr,Oc],Uue=e=>Kue.find(KI(e)),zue=new Set(["brightness","contrast","saturate","opacity"]);function que(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(X$)||[];if(!r)return e;const i=n.replace(r,"");let s=zue.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Wue=/\b([a-z-]*)\(.*?\)/gu,R4={...Oc,getAnimatableNone:e=>{const t=e.match(Wue);return t?t.map(que).join(" "):e}},Hue={...q$,color:Pr,backgroundColor:Pr,outlineColor:Pr,fill:Pr,stroke:Pr,borderColor:Pr,borderTopColor:Pr,borderRightColor:Pr,borderBottomColor:Pr,borderLeftColor:Pr,filter:R4,WebkitFilter:R4},zI=e=>Hue[e];function qI(e,t){let n=zI(e);return n!==R4&&(n=Oc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const P2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Gue{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ax,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Xi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ps.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=a;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=o,this.blockInitialAnimation=!!s,this.isControllingVariants=cg(n),this.isVariantNode=KO(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];l[g]!==void 0&&qr(b)&&b.set(l[g],!1)}}mount(t){this.current=t,Vue.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)),VI.current||Bue(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:F4.current,process.env.NODE_ENV!=="production"&&N$(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(),v4(this.notifyUpdate),v4(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=Rc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ps.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in 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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):II()}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<P2.length;r++){const i=P2[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Nue(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=dm(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(NI(r)||jI(r))?r=parseFloat(r):!Uue(r)&&Oc.test(n)&&(r=qI(t,n)),this.setBaseTarget(t,qr(r)?r.get():r)),qr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Y$(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!qr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new nI),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}const Yue=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Zue(e){const t=Yue.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Xue=4;function WI(e,t,n=1){Hu(n<=Xue,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Zue(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return NI(a)?parseFloat(a):a}return z$(i)?WI(i,t,n+1):i}function Jue(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||jI(e):!0}const Que=new Set(["auto","none","0"]);function ele(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Que.has(s)&&Cd(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=qI(n,i)}class tle extends ax{constructor(t,n,r,i,s){super(t,n,r,i,s,!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(),z$(d))){const h=WI(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!MI.has(r)||t.length!==2)return;const[i,s]=t,a=T2(i),o=T2(s);if(a!==o)if(g2(a)&&g2(o))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else Ru[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Jue(t[i]))&&r.push(i);r.length&&ele(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=Ru[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 o;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Ru[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([l,d])=>{t.getValue(l).set(d)}),this.resolveNoneKeyframes()}}class HI extends Gue{constructor(){super(...arguments),this.KeyframeResolver=tle}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;qr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function GI(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}function nle(e){return window.getComputedStyle(e)}class rle extends HI{constructor(){super(...arguments),this.type="html",this.renderInstance=GI}readValueFromInstance(t,n){var r;if(Rc.has(n))return(r=this.projection)!=null&&r.isProjecting?S4(n):_oe(t,n);{const i=nle(t),s=(HO(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yue(t,n)}build(t,n,r){W$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Z$(t,n,r)}}const YI=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 ile(e,t,n,r){GI(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(YI.has(i)?i:U$(i),t.attrs[i])}class sle extends HI{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=II}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Rc.has(n)){const r=zI(n);return r&&r.default||0}return n=YI.has(n)?n:U$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return tI(t,n,r)}build(t,n,r){XO(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){ile(t,n,r,i)}mount(t){this.isSVGTag=QO(t.tagName),super.mount(t)}}const ale=(e,t)=>G$(e)?new sle(t):new rle(t,{allowProjection:e!==T.Fragment}),ole={renderer:ale,...pue,...Lue},ule=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ZI=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),lle=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),cle=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,n)=>new Set([...t,...n]),[])),fle=(e,t)=>{t=t||cle(e);let n=t,r=t;ZI(t)&&(n=t.map(s=>s.label),r=t.map(s=>s.key));const i=e.map(s=>r.map(a=>dle(a,s)));return[n,...i]},dle=(e,t)=>{const n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,i,s,a){const o=r[i];if(o==null)a.splice(1);else return o},t);return n===void 0?e in t?t[e]:"":n},hle=e=>typeof e>"u"||e===null?"":e,XI=(e,t=",",n='"')=>e.filter(r=>r).map(r=>r.map(i=>hle(i)).map(i=>`${n}${i}${n}`).join(t)).join(`
145
- `),ple=(e,t,n,r)=>XI(t?[t,...e]:e,n,r),mle=(e,t,n,r)=>XI(fle(e,t),n,r),gle=(e,t,n,r)=>t?`${t.join(n)}
146
- ${e}`:e.replace(/"/g,'""'),JI=(e,t,n,r)=>{if(ZI(e))return mle(e,t,n,r);if(lle(e))return ple(e,t,n,r);if(typeof e=="string")return gle(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},QI=(e,t,n,r,i)=>{const s=JI(e,n,r,i),a=ule()?"application/csv":"text/csv",o=new Blob([t?"\uFEFF":"",s],{type:a}),l=`data:${a};charset=utf-8,${t?"\uFEFF":""}${s}`,d=window.URL||window.webkitURL;return typeof d.createObjectURL>"u"?l:d.createObjectURL(o)};var Qh={exports:{}},ep={exports:{}},un={};/** @license React v16.13.1
147
- * react-is.production.min.js
148
- *
149
- * Copyright (c) Facebook, Inc. and its affiliates.
150
- *
151
- * This source code is licensed under the MIT license found in the
152
- * LICENSE file in the root directory of this source tree.
153
- */var _2;function vle(){if(_2)return un;_2=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,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=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,w=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function A(M){if(typeof M=="object"&&M!==null){var R=M.$$typeof;switch(R){case t:switch(M=M.type,M){case l:case d:case r:case s:case i:case m:return M;default:switch(M=M&&M.$$typeof,M){case o:case h:case x:case b:case a:return M;default:return R}}case n:return R}}}function k(M){return A(M)===d}return un.AsyncMode=l,un.ConcurrentMode=d,un.ContextConsumer=o,un.ContextProvider=a,un.Element=t,un.ForwardRef=h,un.Fragment=r,un.Lazy=x,un.Memo=b,un.Portal=n,un.Profiler=s,un.StrictMode=i,un.Suspense=m,un.isAsyncMode=function(M){return k(M)||A(M)===l},un.isConcurrentMode=k,un.isContextConsumer=function(M){return A(M)===o},un.isContextProvider=function(M){return A(M)===a},un.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},un.isForwardRef=function(M){return A(M)===h},un.isFragment=function(M){return A(M)===r},un.isLazy=function(M){return A(M)===x},un.isMemo=function(M){return A(M)===b},un.isPortal=function(M){return A(M)===n},un.isProfiler=function(M){return A(M)===s},un.isStrictMode=function(M){return A(M)===i},un.isSuspense=function(M){return A(M)===m},un.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===r||M===d||M===s||M===i||M===m||M===g||typeof M=="object"&&M!==null&&(M.$$typeof===x||M.$$typeof===b||M.$$typeof===a||M.$$typeof===o||M.$$typeof===h||M.$$typeof===S||M.$$typeof===E||M.$$typeof===C||M.$$typeof===w)},un.typeOf=A,un}var ln={};/** @license React v16.13.1
154
- * react-is.development.js
155
- *
156
- * Copyright (c) Facebook, Inc. and its affiliates.
157
- *
158
- * This source code is licensed under the MIT license found in the
159
- * LICENSE file in the root directory of this source tree.
160
- */var M2;function yle(){return M2||(M2=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,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=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,w=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function A(Te){return typeof Te=="string"||typeof Te=="function"||Te===r||Te===d||Te===s||Te===i||Te===m||Te===g||typeof Te=="object"&&Te!==null&&(Te.$$typeof===x||Te.$$typeof===b||Te.$$typeof===a||Te.$$typeof===o||Te.$$typeof===h||Te.$$typeof===S||Te.$$typeof===E||Te.$$typeof===C||Te.$$typeof===w)}function k(Te){if(typeof Te=="object"&&Te!==null){var tt=Te.$$typeof;switch(tt){case t:var yt=Te.type;switch(yt){case l:case d:case r:case s:case i:case m:return yt;default:var Jt=yt&&yt.$$typeof;switch(Jt){case o:case h:case x:case b:case a:return Jt;default:return tt}}case n:return tt}}}var M=l,R=d,K=o,H=a,le=t,ae=h,I=r,$e=x,we=b,W=n,ie=s,O=i,L=m,B=!1;function he(Te){return B||(B=!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.")),U(Te)||k(Te)===l}function U(Te){return k(Te)===d}function te(Te){return k(Te)===o}function xe(Te){return k(Te)===a}function De(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===t}function _e(Te){return k(Te)===h}function Me(Te){return k(Te)===r}function Ye(Te){return k(Te)===x}function Ge(Te){return k(Te)===b}function Ae(Te){return k(Te)===n}function Ke(Te){return k(Te)===s}function We(Te){return k(Te)===i}function Ve(Te){return k(Te)===m}ln.AsyncMode=M,ln.ConcurrentMode=R,ln.ContextConsumer=K,ln.ContextProvider=H,ln.Element=le,ln.ForwardRef=ae,ln.Fragment=I,ln.Lazy=$e,ln.Memo=we,ln.Portal=W,ln.Profiler=ie,ln.StrictMode=O,ln.Suspense=L,ln.isAsyncMode=he,ln.isConcurrentMode=U,ln.isContextConsumer=te,ln.isContextProvider=xe,ln.isElement=De,ln.isForwardRef=_e,ln.isFragment=Me,ln.isLazy=Ye,ln.isMemo=Ge,ln.isPortal=Ae,ln.isProfiler=Ke,ln.isStrictMode=We,ln.isSuspense=Ve,ln.isValidElementType=A,ln.typeOf=k}()),ln}var F2;function e9(){return F2||(F2=1,process.env.NODE_ENV==="production"?ep.exports=vle():ep.exports=yle()),ep.exports}/*
161
- object-assign
162
- (c) Sindre Sorhus
163
- @license MIT
164
- */var k1,R2;function ble(){if(R2)return k1;R2=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(a).map(function(h){return a[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 k1=i()?Object.assign:function(s,a){for(var o,l=r(s),d,h=1;h<arguments.length;h++){o=Object(arguments[h]);for(var m in o)t.call(o,m)&&(l[m]=o[m]);if(e){d=e(o);for(var g=0;g<d.length;g++)n.call(o,d[g])&&(l[d[g]]=o[d[g]])}}return l},k1}var O1,k2;function ux(){if(k2)return O1;k2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return O1=e,O1}var I1,O2;function t9(){return O2||(O2=1,I1=Function.call.bind(Object.prototype.hasOwnProperty)),I1}var L1,I2;function $le(){if(I2)return L1;I2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ux(),n={},r=t9();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,o,l,d){if(process.env.NODE_ENV!=="production"){for(var h in s)if(r(s,h)){var m;try{if(typeof s[h]!="function"){var g=Error((l||"React class")+": "+o+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=s[h](a,h,l,o,null,t)}catch(x){m=x}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+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 "+o+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},L1=i,L1}var B1,L2;function xle(){if(L2)return B1;L2=1;var e=e9(),t=ble(),n=ux(),r=t9(),i=$le(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return B1=function(o,l){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(U){var te=U&&(d&&U[d]||U[h]);if(typeof te=="function")return te}var g="<<anonymous>>",b={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:C(),arrayOf:A,element:k(),elementType:M(),instanceOf:R,node:ae(),objectOf:H,oneOf:K,oneOfType:le,shape:$e,exact:we};function x(U,te){return U===te?U!==0||1/U===1/te:U!==U&&te!==te}function w(U,te){this.message=U,this.data=te&&typeof te=="object"?te:{},this.stack=""}w.prototype=Error.prototype;function S(U){if(process.env.NODE_ENV!=="production")var te={},xe=0;function De(Me,Ye,Ge,Ae,Ke,We,Ve){if(Ae=Ae||g,We=We||Ge,Ve!==n){if(l){var Te=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Te.name="Invariant Violation",Te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var tt=Ae+":"+Ge;!te[tt]&&xe<3&&(s("You are manually calling a React.PropTypes validation function for the `"+We+"` prop on `"+Ae+"`. 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."),te[tt]=!0,xe++)}}return Ye[Ge]==null?Me?Ye[Ge]===null?new w("The "+Ke+" `"+We+"` is marked as required "+("in `"+Ae+"`, but its value is `null`.")):new w("The "+Ke+" `"+We+"` is marked as required in "+("`"+Ae+"`, but its value is `undefined`.")):null:U(Ye,Ge,Ae,Ke,We)}var _e=De.bind(null,!1);return _e.isRequired=De.bind(null,!0),_e}function E(U){function te(xe,De,_e,Me,Ye,Ge){var Ae=xe[De],Ke=O(Ae);if(Ke!==U){var We=L(Ae);return new w("Invalid "+Me+" `"+Ye+"` of type "+("`"+We+"` supplied to `"+_e+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return S(te)}function C(){return S(a)}function A(U){function te(xe,De,_e,Me,Ye){if(typeof U!="function")return new w("Property `"+Ye+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Ge=xe[De];if(!Array.isArray(Ge)){var Ae=O(Ge);return new w("Invalid "+Me+" `"+Ye+"` of type "+("`"+Ae+"` supplied to `"+_e+"`, expected an array."))}for(var Ke=0;Ke<Ge.length;Ke++){var We=U(Ge,Ke,_e,Me,Ye+"["+Ke+"]",n);if(We instanceof Error)return We}return null}return S(te)}function k(){function U(te,xe,De,_e,Me){var Ye=te[xe];if(!o(Ye)){var Ge=O(Ye);return new w("Invalid "+_e+" `"+Me+"` of type "+("`"+Ge+"` supplied to `"+De+"`, expected a single ReactElement."))}return null}return S(U)}function M(){function U(te,xe,De,_e,Me){var Ye=te[xe];if(!e.isValidElementType(Ye)){var Ge=O(Ye);return new w("Invalid "+_e+" `"+Me+"` of type "+("`"+Ge+"` supplied to `"+De+"`, expected a single ReactElement type."))}return null}return S(U)}function R(U){function te(xe,De,_e,Me,Ye){if(!(xe[De]instanceof U)){var Ge=U.name||g,Ae=he(xe[De]);return new w("Invalid "+Me+" `"+Ye+"` of type "+("`"+Ae+"` supplied to `"+_e+"`, expected ")+("instance of `"+Ge+"`."))}return null}return S(te)}function K(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function te(xe,De,_e,Me,Ye){for(var Ge=xe[De],Ae=0;Ae<U.length;Ae++)if(x(Ge,U[Ae]))return null;var Ke=JSON.stringify(U,function(Ve,Te){var tt=L(Te);return tt==="symbol"?String(Te):Te});return new w("Invalid "+Me+" `"+Ye+"` of value `"+String(Ge)+"` "+("supplied to `"+_e+"`, expected one of "+Ke+"."))}return S(te)}function H(U){function te(xe,De,_e,Me,Ye){if(typeof U!="function")return new w("Property `"+Ye+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Ge=xe[De],Ae=O(Ge);if(Ae!=="object")return new w("Invalid "+Me+" `"+Ye+"` of type "+("`"+Ae+"` supplied to `"+_e+"`, expected an object."));for(var Ke in Ge)if(r(Ge,Ke)){var We=U(Ge,Ke,_e,Me,Ye+"."+Ke,n);if(We instanceof Error)return We}return null}return S(te)}function le(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var te=0;te<U.length;te++){var xe=U[te];if(typeof xe!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(xe)+" at index "+te+"."),a}function De(_e,Me,Ye,Ge,Ae){for(var Ke=[],We=0;We<U.length;We++){var Ve=U[We],Te=Ve(_e,Me,Ye,Ge,Ae,n);if(Te==null)return null;Te.data&&r(Te.data,"expectedType")&&Ke.push(Te.data.expectedType)}var tt=Ke.length>0?", expected one of type ["+Ke.join(", ")+"]":"";return new w("Invalid "+Ge+" `"+Ae+"` supplied to "+("`"+Ye+"`"+tt+"."))}return S(De)}function ae(){function U(te,xe,De,_e,Me){return W(te[xe])?null:new w("Invalid "+_e+" `"+Me+"` supplied to "+("`"+De+"`, expected a ReactNode."))}return S(U)}function I(U,te,xe,De,_e){return new w((U||"React class")+": "+te+" type `"+xe+"."+De+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function $e(U){function te(xe,De,_e,Me,Ye){var Ge=xe[De],Ae=O(Ge);if(Ae!=="object")return new w("Invalid "+Me+" `"+Ye+"` of type `"+Ae+"` "+("supplied to `"+_e+"`, expected `object`."));for(var Ke in U){var We=U[Ke];if(typeof We!="function")return I(_e,Me,Ye,Ke,L(We));var Ve=We(Ge,Ke,_e,Me,Ye+"."+Ke,n);if(Ve)return Ve}return null}return S(te)}function we(U){function te(xe,De,_e,Me,Ye){var Ge=xe[De],Ae=O(Ge);if(Ae!=="object")return new w("Invalid "+Me+" `"+Ye+"` of type `"+Ae+"` "+("supplied to `"+_e+"`, expected `object`."));var Ke=t({},xe[De],U);for(var We in Ke){var Ve=U[We];if(r(U,We)&&typeof Ve!="function")return I(_e,Me,Ye,We,L(Ve));if(!Ve)return new w("Invalid "+Me+" `"+Ye+"` key `"+We+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(xe[De],null," ")+`
165
- Valid keys: `+JSON.stringify(Object.keys(U),null," "));var Te=Ve(Ge,We,_e,Me,Ye+"."+We,n);if(Te)return Te}return null}return S(te)}function W(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(W);if(U===null||o(U))return!0;var te=m(U);if(te){var xe=te.call(U),De;if(te!==U.entries){for(;!(De=xe.next()).done;)if(!W(De.value))return!1}else for(;!(De=xe.next()).done;){var _e=De.value;if(_e&&!W(_e[1]))return!1}}else return!1;return!0;default:return!1}}function ie(U,te){return U==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function O(U){var te=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":ie(te,U)?"symbol":te}function L(U){if(typeof U>"u"||U===null)return""+U;var te=O(U);if(te==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return te}function B(U){var te=L(U);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function he(U){return!U.constructor||!U.constructor.name?g:U.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},B1}var V1,B2;function wle(){if(B2)return V1;B2=1;var e=ux();function t(){}function n(){}return n.resetWarningCache=t,V1=function(){function r(a,o,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 s={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 s.PropTypes=s,s},V1}var V2;function Cle(){if(V2)return Qh.exports;if(V2=1,process.env.NODE_ENV!=="production"){var e=e9(),t=!0;Qh.exports=xle()(e.isElement,t)}else Qh.exports=wle()();return Qh.exports}var Ei=Cle();const nt=ci(Ei),n9={data:Ei.oneOfType([Ei.string,Ei.array,Ei.func]).isRequired,headers:Ei.array,target:Ei.string,separator:Ei.string,filename:Ei.string,uFEFF:Ei.bool,onClick:Ei.func,asyncOnClick:Ei.bool,enclosingCharacter:Ei.string},r9={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},Ele={target:"_blank"};class N2 extends T.Component{constructor(t){super(t),this.state={}}buildURI(){return QI(...arguments)}componentDidMount(){const{data:t,headers:n,separator:r,enclosingCharacter:i,uFEFF:s,target:a,specs:o,replace:l}=this.props;this.state.page=window.open(this.buildURI(t,s,n,r,i),a,o,l)}getWindow(){return this.state.page}render(){return null}}mf(N2,"defaultProps",Object.assign(r9,Ele)),mf(N2,"propTypes",n9);var np;let Sle=(np=class extends T.Component{constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return QI(...arguments)}handleLegacy(t,n=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:r,headers:i,separator:s,filename:a,enclosingCharacter:o,uFEFF:l}=this.props,d=n&&typeof r=="function"?r():r;let h=new Blob([l?"\uFEFF":"",JI(d,i,s,o)]);return window.navigator.msSaveBlob(h,a),!1}}handleAsyncClick(t){const n=r=>{if(r===!1){t.preventDefault();return}this.handleLegacy(t,!0)};this.props.onClick(t,n)}handleSyncClick(t){if(this.props.onClick(t)===!1){t.preventDefault();return}this.handleLegacy(t)}handleClick(){return t=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(t):this.handleSyncClick(t);this.handleLegacy(t)}}render(){const{data:t,headers:n,separator:r,filename:i,uFEFF:s,children:a,onClick:o,asyncOnClick:l,enclosingCharacter:d,...h}=this.props,g=typeof window>"u"?"":this.buildURI(t,s,n,r,d);return la.jsx("a",{download:i,...h,ref:b=>this.link=b,target:"_self",href:g,onClick:this.handleClick(),children:a})}},mf(np,"defaultProps",r9),mf(np,"propTypes",n9),np);const Dle=Sle;var N1,j2;function Ale(){if(j2)return N1;j2=1;function e(t){return t==null}return N1=e,N1}var Tle=Ale();const Ple=ci(Tle);/**
166
- * react-table
167
- *
168
- * Copyright (c) TanStack
169
- *
170
- * This source code is licensed under the MIT license found in the
171
- * LICENSE.md file in the root directory of this source tree.
172
- *
173
- * @license MIT
174
- */function _le(e,t){return e?Mle(e)?He.createElement(e,t):e:null}function Mle(e){return Fle(e)||typeof e=="function"||Rle(e)}function Fle(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Rle(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var j1,K2;function kle(){if(K2)return j1;K2=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return j1=e,j1}var K1,U2;function Ole(){if(U2)return K1;U2=1;var e=Ec(),t=Object.create,n=function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var s=new r;return r.prototype=void 0,s}}();return K1=n,K1}var U1,z2;function Ile(){if(z2)return U1;z2=1;var e=ak(),t=e(Object.getPrototypeOf,Object);return U1=t,U1}var z1,q2;function Lle(){if(q2)return z1;q2=1;var e=kle(),t=Ole(),n=e7(),r=Qk(),i=Ile(),s=da(),a=k3(),o=M3(),l=Ec(),d=L3();function h(m,g,b){var x=s(m),w=x||a(m)||d(m);if(g=r(g,4),b==null){var S=m&&m.constructor;w?b=x?new S:[]:l(m)?b=o(S)?t(i(m)):{}:b={}}return(w?e:n)(m,function(E,C,A){return g(b,E,C,A)}),b}return z1=h,z1}var Ble=Lle();const Vle=ci(Ble);function i9(e){return t=>typeof t===e}var Nle=i9("function"),jle=e=>e===null,W2=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",H2=e=>!Kle(e)&&!jle(e)&&(Nle(e)||typeof e=="object"),Kle=i9("undefined");function Ule(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Wr(e[r],t[r]))return!1;return!0}function zle(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 qle(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(!Wr(n[1],t.get(n[0])))return!1;return!0}function Wle(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 Wr(e,t){if(e===t)return!0;if(e&&H2(e)&&t&&H2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Ule(e,t);if(e instanceof Map&&t instanceof Map)return qle(e,t);if(e instanceof Set&&t instanceof Set)return Wle(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return zle(e,t);if(W2(e)&&W2(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 s=n[i];if(!(s==="_owner"&&e.$$typeof)&&!Wr(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var Hle=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Gle=["bigint","boolean","null","number","string","symbol","undefined"];function hg(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Yle(t))return t}function Ms(e){return t=>hg(t)===e}function Yle(e){return Hle.includes(e)}function Lc(e){return t=>typeof t===e}function Zle(e){return Gle.includes(e)}var Xle=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ut(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ut.array(e))return"Array";if(ut.plainFunction(e))return"Function";const t=hg(e);return t||"Object"}ut.array=Array.isArray;ut.arrayOf=(e,t)=>!ut.array(e)&&!ut.function(t)?!1:e.every(n=>t(n));ut.asyncGeneratorFunction=e=>hg(e)==="AsyncGeneratorFunction";ut.asyncFunction=Ms("AsyncFunction");ut.bigint=Lc("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=Ms("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&Xle.every(t=>t in e);ut.empty=e=>ut.string(e)&&e.length===0||ut.array(e)&&e.length===0||ut.object(e)&&!ut.map(e)&&!ut.set(e)&&Object.keys(e).length===0||ut.set(e)&&e.size===0||ut.map(e)&&e.size===0;ut.error=Ms("Error");ut.function=Lc("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=Ms("GeneratorFunction");ut.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;ut.iterable=e=>!ut.nullOrUndefined(e)&&ut.function(e[Symbol.iterator]);ut.map=Ms("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>Lc("number")(e)&&!ut.nan(e);ut.numericString=e=>ut.string(e)&&e.length>0&&!Number.isNaN(Number(e));ut.object=e=>!ut.nullOrUndefined(e)&&(ut.function(e)||typeof e=="object");ut.oneOf=(e,t)=>ut.array(e)?e.indexOf(t)>-1:!1;ut.plainFunction=Ms("Function");ut.plainObject=e=>{if(hg(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||Zle(typeof e);ut.promise=Ms("Promise");ut.propertyOf=(e,t,n)=>{if(!ut.object(e)||!t)return!1;const r=e[t];return ut.function(n)?n(r):ut.defined(r)};ut.regexp=Ms("RegExp");ut.set=Ms("Set");ut.string=Lc("string");ut.symbol=Lc("symbol");ut.undefined=Lc("undefined");ut.weakMap=Ms("WeakMap");ut.weakSet=Ms("WeakSet");var dt=ut;function Jle(...e){return e.every(t=>dt.string(t)||dt.array(t)||dt.plainObject(t))}function Qle(e,t,n){return s9(e,t)?[e,t].every(dt.array)?!e.some(J2(n))&&t.some(J2(n)):[e,t].every(dt.plainObject)?!Object.entries(e).some(X2(n))&&Object.entries(t).some(X2(n)):t===n:!1}function G2(e,t,n){const{actual:r,key:i,previous:s,type:a}=n,o=na(e,i),l=na(t,i);let d=[o,l].every(dt.number)&&(a==="increased"?o<l:o>l);return dt.undefined(r)||(d=d&&l===r),dt.undefined(s)||(d=d&&o===s),d}function Y2(e,t,n){const{key:r,type:i,value:s}=n,a=na(e,r),o=na(t,r),l=i==="added"?a:o,d=i==="added"?o:a;if(!dt.nullOrUndefined(s)){if(dt.defined(l)){if(dt.array(l)||dt.plainObject(l))return Qle(l,d,s)}else return Wr(d,s);return!1}return[a,o].every(dt.array)?!d.every(lx(l)):[a,o].every(dt.plainObject)?ece(Object.keys(l),Object.keys(d)):![a,o].every(h=>dt.primitive(h)&&dt.defined(h))&&(i==="added"?!dt.defined(a)&&dt.defined(o):dt.defined(a)&&!dt.defined(o))}function Z2(e,t,{key:n}={}){let r=na(e,n),i=na(t,n);if(!s9(r,i))throw new TypeError("Inputs have different types");if(!Jle(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(dt.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function X2(e){return([t,n])=>dt.array(e)?Wr(e,n)||e.some(r=>Wr(r,n)||dt.array(n)&&lx(n)(r)):dt.plainObject(e)&&e[t]?!!e[t]&&Wr(e[t],n):Wr(e,n)}function ece(e,t){return t.some(n=>!e.includes(n))}function J2(e){return t=>dt.array(e)?e.some(n=>Wr(n,t)||dt.array(t)&&lx(t)(n)):Wr(e,t)}function Df(e,t){return dt.array(e)?e.some(n=>Wr(n,t)):Wr(e,t)}function lx(e){return t=>e.some(n=>Wr(n,t))}function s9(...e){return e.every(dt.array)||e.every(dt.number)||e.every(dt.plainObject)||e.every(dt.string)}function na(e,t){return dt.plainObject(e)||dt.array(e)?dt.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):dt.number(t)?e[t]:e:e}function gm(e,t){if([e,t].some(dt.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>dt.plainObject(h)||dt.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return Y2(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=na(e,h),x=na(t,h),w=dt.defined(m),S=dt.defined(g);if(w||S){const E=S?Df(g,b):!Df(m,b),C=Df(m,x);return E&&C}return[b,x].every(dt.array)||[b,x].every(dt.plainObject)?!Wr(b,x):b!==x}catch{return!1}},changedFrom:(h,m,g)=>{if(!dt.defined(h))return!1;try{const b=na(e,h),x=na(t,h),w=dt.defined(g);return Df(m,b)&&(w?Df(g,x):!w)}catch{return!1}},decreased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return G2(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=Z2(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=Z2(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return G2(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return Y2(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var q1,Q2;function tce(){if(Q2)return q1;Q2=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;q1={left:i("scrollLeft"),top:i("scrollTop")};function i(o){return function(d,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=a);var b=r(),x=d[o],w=m.ease||s,S=isNaN(m.duration)?350:+m.duration,E=!1;return x===h?g(e,d[o]):requestAnimationFrame(A),C;function C(){E=!0}function A(k){if(E)return g(t,d[o]);var M=r(),R=n(1,(M-b)/S),K=w(R);d[o]=K*(h-x)+x,R<1?requestAnimationFrame(A):requestAnimationFrame(function(){g(null,d[o])})}}}function s(o){return .5*(1-Math.cos(Math.PI*o))}function a(){}return q1}var nce=tce();const rce=ci(nce);var Tp={exports:{}},ice=Tp.exports,eP;function sce(){return eP||(eP=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(ice,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})}(Tp)),Tp.exports}var ace=sce();const a9=ci(ace);var W1,tP;function oce(){if(tP)return W1;tP=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,W1=n,W1}var uce=oce();const nP=ci(uce);var H1,rP;function lce(){if(rP)return H1;rP=1;var e=function(C){return t(C)&&!n(C)};function t(E){return!!E&&typeof E=="object"}function n(E){var C=Object.prototype.toString.call(E);return C==="[object RegExp]"||C==="[object Date]"||s(E)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function s(E){return E.$$typeof===i}function a(E){return Array.isArray(E)?[]:{}}function o(E,C){return C.clone!==!1&&C.isMergeableObject(E)?w(a(E),E,C):E}function l(E,C,A){return E.concat(C).map(function(k){return o(k,A)})}function d(E,C){if(!C.customMerge)return w;var A=C.customMerge(E);return typeof A=="function"?A:w}function h(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(C){return Object.propertyIsEnumerable.call(E,C)}):[]}function m(E){return Object.keys(E).concat(h(E))}function g(E,C){try{return C in E}catch{return!1}}function b(E,C){return g(E,C)&&!(Object.hasOwnProperty.call(E,C)&&Object.propertyIsEnumerable.call(E,C))}function x(E,C,A){var k={};return A.isMergeableObject(E)&&m(E).forEach(function(M){k[M]=o(E[M],A)}),m(C).forEach(function(M){b(E,M)||(g(E,M)&&A.isMergeableObject(C[M])?k[M]=d(M,A)(E[M],C[M],A):k[M]=o(C[M],A))}),k}function w(E,C,A){A=A||{},A.arrayMerge=A.arrayMerge||l,A.isMergeableObject=A.isMergeableObject||e,A.cloneUnlessOtherwiseSpecified=o;var k=Array.isArray(C),M=Array.isArray(E),R=k===M;return R?k?A.arrayMerge(E,C,A):x(E,C,A):o(C,A)}w.all=function(C,A){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(k,M){return w(k,M,A)},{})};var S=w;return H1=S,H1}var cce=lce();const Cs=ci(cce);/**!
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 Zd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",fce=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Zd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function dce(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function hce(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},fce))}}var pce=Zd&&window.Promise,mce=pce?dce:hce;function o9(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Qu(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function cx(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Xd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Qu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Xd(cx(e))}function u9(e){return e&&e.referenceNode?e.referenceNode:e}var iP=Zd&&!!(window.MSInputMethodContext&&document.documentMode),sP=Zd&&/MSIE 10/.test(navigator.userAgent);function Bc(e){return e===11?iP:e===10?sP:iP||sP}function gc(e){if(!e)return document.documentElement;for(var t=Bc(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&&Qu(n,"position")==="static"?gc(n):n}function gce(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||gc(e.firstElementChild)===e}function k4(e){return e.parentNode!==null?k4(e.parentNode):e}function vm(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,s=document.createRange();s.setStart(r,0),s.setEnd(i,0);var a=s.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return gce(a)?a:gc(a);var o=k4(e);return o.host?vm(o.host,t):vm(e,k4(t).host)}function vc(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,s=e.ownerDocument.scrollingElement||i;return s[n]}return e[n]}function vce(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=vc(t,"top"),i=vc(t,"left"),s=n?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=i*s,e.right+=i*s,e}function aP(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 oP(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Bc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function l9(e){var t=e.body,n=e.documentElement,r=Bc(10)&&getComputedStyle(n);return{height:oP("Height",t,n,r),width:oP("Width",t,n,r)}}var yce=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},bce=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}}(),yc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Ji=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 ko(e){return Ji({},e,{right:e.left+e.width,bottom:e.top+e.height})}function O4(e){var t={};try{if(Bc(10)){t=e.getBoundingClientRect();var n=vc(e,"top"),r=vc(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},s=e.nodeName==="HTML"?l9(e.ownerDocument):{},a=s.width||e.clientWidth||i.width,o=s.height||e.clientHeight||i.height,l=e.offsetWidth-a,d=e.offsetHeight-o;if(l||d){var h=Qu(e);l-=aP(h,"x"),d-=aP(h,"y"),i.width-=l,i.height-=d}return ko(i)}function fx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Bc(10),i=t.nodeName==="HTML",s=O4(e),a=O4(t),o=Xd(e),l=Qu(t),d=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var m=ko({top:s.top-a.top-d,left:s.left-a.left-h,width:s.width,height:s.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(o):t===o&&o.nodeName!=="BODY")&&(m=vce(m,t)),m}function $ce(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=fx(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:vc(n),o=t?0:vc(n,"left"),l={top:a-r.top+r.marginTop,left:o-r.left+r.marginLeft,width:i,height:s};return ko(l)}function c9(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Qu(e,"position")==="fixed")return!0;var n=cx(e);return n?c9(n):!1}function f9(e){if(!e||!e.parentElement||Bc())return document.documentElement;for(var t=e.parentElement;t&&Qu(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function dx(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},a=i?f9(e):vm(e,u9(t));if(r==="viewport")s=$ce(a,i);else{var o=void 0;r==="scrollParent"?(o=Xd(cx(t)),o.nodeName==="BODY"&&(o=e.ownerDocument.documentElement)):r==="window"?o=e.ownerDocument.documentElement:o=r;var l=fx(o,a,i);if(o.nodeName==="HTML"&&!c9(a)){var d=l9(e.ownerDocument),h=d.height,m=d.width;s.top+=l.top-l.marginTop,s.bottom=h+l.top,s.left+=l.left-l.marginLeft,s.right=m+l.left}else s=l}n=n||0;var g=typeof n=="number";return s.left+=g?n:n.left||0,s.top+=g?n:n.top||0,s.right-=g?n:n.right||0,s.bottom-=g?n:n.bottom||0,s}function xce(e){var t=e.width,n=e.height;return t*n}function d9(e,t,n,r,i){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=dx(n,r,s,i),o={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(o).map(function(g){return Ji({key:g},o[g],{area:xce(o[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 h9(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?f9(t):vm(t,u9(n));return fx(n,i,r)}function p9(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),s={width:e.offsetWidth+i,height:e.offsetHeight+r};return s}function ym(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 m9(e,t,n){n=n.split("-")[0];var r=p9(e),i={width:r.width,height:r.height},s=["right","left"].indexOf(n)!==-1,a=s?"top":"left",o=s?"left":"top",l=s?"height":"width",d=s?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,n===o?i[o]=t[o]-r[d]:i[o]=t[ym(o)],i}function Jd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function wce(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Jd(e,function(i){return i[t]===n});return e.indexOf(r)}function g9(e,t,n){var r=n===void 0?e:e.slice(0,wce(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=i.function||i.fn;i.enabled&&o9(s)&&(t.offsets.popper=ko(t.offsets.popper),t.offsets.reference=ko(t.offsets.reference),t=s(t,i))}),t}function Cce(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=h9(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=d9(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=m9(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=g9(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function v9(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function hx(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],s=i?""+i+n:e;if(typeof document.body.style[s]<"u")return s}return null}function Ece(){return this.state.isDestroyed=!0,v9(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[hx("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function y9(e){var t=e.ownerDocument;return t?t.defaultView:window}function b9(e,t,n,r){var i=e.nodeName==="BODY",s=i?e.ownerDocument.defaultView:e;s.addEventListener(t,n,{passive:!0}),i||b9(Xd(s.parentNode),t,n,r),r.push(s)}function Sce(e,t,n,r){n.updateBound=r,y9(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Xd(e);return b9(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Dce(){this.state.eventsEnabled||(this.state=Sce(this.reference,this.options,this.state,this.scheduleUpdate))}function Ace(e,t){return y9(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 Tce(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Ace(this.reference,this.state))}function px(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function I4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&px(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Pce(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function _ce(e){return I4(e.instance.popper,e.styles),Pce(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&I4(e.arrowElement,e.arrowStyles),e}function Mce(e,t,n,r,i){var s=h9(i,t,e,n.positionFixed),a=d9(n.placement,s,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),I4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Fce(e,t){var n=e.offsets,r=n.popper,i=n.reference,s=Math.round,a=Math.floor,o=function(E){return E},l=s(i.width),d=s(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?s:a:o,w=t?s:o;return{left:x(b&&!m&&t?r.left-1:r.left),top:w(r.top),bottom:w(r.bottom),right:x(r.right)}}var Rce=Zd&&/Firefox/i.test(navigator.userAgent);function kce(e,t){var n=t.x,r=t.y,i=e.offsets.popper,s=Jd(e.instance.modifiers,function(A){return A.name==="applyStyle"}).gpuAcceleration;s!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=s!==void 0?s:t.gpuAcceleration,o=gc(e.instance.popper),l=O4(o),d={position:i.position},h=Fce(e,window.devicePixelRatio<2||!Rce),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=hx("transform"),x=void 0,w=void 0;if(m==="bottom"?o.nodeName==="HTML"?w=-o.clientHeight+h.bottom:w=-l.height+h.bottom:w=h.top,g==="right"?o.nodeName==="HTML"?x=-o.clientWidth+h.right:x=-l.width+h.right:x=h.left,a&&b)d[b]="translate3d("+x+"px, "+w+"px, 0)",d[m]=0,d[g]=0,d.willChange="transform";else{var S=m==="bottom"?-1:1,E=g==="right"?-1:1;d[m]=w*S,d[g]=x*E,d.willChange=m+", "+g}var C={"x-placement":e.placement};return e.attributes=Ji({},C,e.attributes),e.styles=Ji({},d,e.styles),e.arrowStyles=Ji({},e.offsets.arrow,e.arrowStyles),e}function $9(e,t,n){var r=Jd(e,function(o){var l=o.name;return l===t}),i=!!r&&e.some(function(o){return o.name===n&&o.enabled&&o.order<r.order});if(!i){var s="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return i}function Oce(e,t){var n;if(!$9(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],s=e.offsets,a=s.popper,o=s.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=p9(r)[d];o[b]-x<a[m]&&(e.offsets.popper[m]-=a[m]-(o[b]-x)),o[m]+x>a[b]&&(e.offsets.popper[m]+=o[m]+x-a[b]),e.offsets.popper=ko(e.offsets.popper);var w=o[m]+o[d]/2-x/2,S=Qu(e.instance.popper),E=parseFloat(S["margin"+h]),C=parseFloat(S["border"+h+"Width"]),A=w-e.offsets.popper[m]-E-C;return A=Math.max(Math.min(a[d]-x,A),0),e.arrowElement=r,e.offsets.arrow=(n={},yc(n,m,Math.round(A)),yc(n,g,""),n),e}function Ice(e){return e==="end"?"start":e==="start"?"end":e}var x9=["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"],G1=x9.slice(3);function uP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=G1.indexOf(e),r=G1.slice(n+1).concat(G1.slice(0,n));return t?r.reverse():r}var Y1={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Lce(e,t){if(v9(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=dx(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=ym(r),s=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Y1.FLIP:a=[r,i];break;case Y1.CLOCKWISE:a=uP(r);break;case Y1.COUNTERCLOCKWISE:a=uP(r,!0);break;default:a=t.behavior}return a.forEach(function(o,l){if(r!==o||a.length===l+1)return e;r=e.placement.split("-")[0],i=ym(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),w=m(d.top)<m(n.top),S=m(d.bottom)>m(n.bottom),E=r==="left"&&b||r==="right"&&x||r==="top"&&w||r==="bottom"&&S,C=["top","bottom"].indexOf(r)!==-1,A=!!t.flipVariations&&(C&&s==="start"&&b||C&&s==="end"&&x||!C&&s==="start"&&w||!C&&s==="end"&&S),k=!!t.flipVariationsByContent&&(C&&s==="start"&&x||C&&s==="end"&&b||!C&&s==="start"&&S||!C&&s==="end"&&w),M=A||k;(g||E||M)&&(e.flipped=!0,(g||E)&&(r=a[l+1]),M&&(s=Ice(s)),e.placement=r+(s?"-"+s:""),e.offsets.popper=Ji({},e.offsets.popper,m9(e.instance.popper,e.offsets.reference,e.placement)),e=g9(e.instance.modifiers,e,"flip"))}),e}function Bce(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],s=Math.floor,a=["top","bottom"].indexOf(i)!==-1,o=a?"right":"bottom",l=a?"left":"top",d=a?"width":"height";return n[o]<s(r[l])&&(e.offsets.popper[l]=s(r[l])-n[d]),n[l]>s(r[o])&&(e.offsets.popper[l]=s(r[o])),e}function Vce(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+i[1],a=i[2];if(!s)return e;if(a.indexOf("%")===0){var o=void 0;switch(a){case"%p":o=n;break;case"%":case"%r":default:o=r}var l=ko(o);return l[t]/100*s}else if(a==="vh"||a==="vw"){var d=void 0;return a==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*s}else return s}function Nce(e,t,n,r){var i=[0,0],s=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(h){return h.trim()}),o=a.indexOf(Jd(a,function(h){return h.search(/,|\s/)!==-1}));a[o]&&a[o].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=o!==-1?[a.slice(0,o).concat([a[o].split(l)[0]]),[a[o].split(l)[1]].concat(a.slice(o+1))]:[a];return d=d.map(function(h,m){var g=(m===1?!s:s)?"height":"width",b=!1;return h.reduce(function(x,w){return x[x.length-1]===""&&["+","-"].indexOf(w)!==-1?(x[x.length-1]=w,b=!0,x):b?(x[x.length-1]+=w,b=!1,x):x.concat(w)},[]).map(function(x){return Vce(x,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){px(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function jce(e,t){var n=t.offset,r=e.placement,i=e.offsets,s=i.popper,a=i.reference,o=r.split("-")[0],l=void 0;return px(+n)?l=[+n,0]:l=Nce(n,s,a,o),o==="left"?(s.top+=l[0],s.left-=l[1]):o==="right"?(s.top+=l[0],s.left+=l[1]):o==="top"?(s.left+=l[0],s.top-=l[1]):o==="bottom"&&(s.left+=l[0],s.top+=l[1]),e.popper=s,e}function Kce(e,t){var n=t.boundariesElement||gc(e.instance.popper);e.instance.reference===n&&(n=gc(n));var r=hx("transform"),i=e.instance.popper.style,s=i.top,a=i.left,o=i[r];i.top="",i.left="",i[r]="";var l=dx(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=s,i.left=a,i[r]=o,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])),yc({},b,x)},secondary:function(b){var x=b==="right"?"left":"top",w=h[x];return h[b]>l[b]&&!t.escapeWithReference&&(w=Math.min(h[x],l[b]-(b==="right"?h.width:h.height))),yc({},x,w)}};return d.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Ji({},h,m[b](g))}),e.offsets.popper=h,e}function Uce(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,s=i.reference,a=i.popper,o=["bottom","top"].indexOf(n)!==-1,l=o?"left":"top",d=o?"width":"height",h={start:yc({},l,s[l]),end:yc({},l,s[l]+s[d]-a[d])};e.offsets.popper=Ji({},a,h[r])}return e}function zce(e){if(!$9(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Jd(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 qce(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,s=r.reference,a=["left","right"].indexOf(n)!==-1,o=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=s[n]-(o?i[a?"width":"height"]:0),e.placement=ym(t),e.offsets.popper=ko(i),e}var Wce={shift:{order:100,enabled:!0,fn:Uce},offset:{order:200,enabled:!0,fn:jce,offset:0},preventOverflow:{order:300,enabled:!0,fn:Kce,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Bce},arrow:{order:500,enabled:!0,fn:Oce,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Lce,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:qce},hide:{order:800,enabled:!0,fn:zce},computeStyle:{order:850,enabled:!0,fn:kce,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:_ce,onLoad:Mce,gpuAcceleration:void 0}},Hce={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Wce},Ed=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};yce(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=mce(this.update.bind(this)),this.options=Ji({},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(Ji({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=Ji({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return Ji({name:a},r.options.modifiers[a])}).sort(function(a,o){return a.order-o.order}),this.modifiers.forEach(function(a){a.enabled&&o9(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return bce(e,[{key:"update",value:function(){return Cce.call(this)}},{key:"destroy",value:function(){return Ece.call(this)}},{key:"enableEventListeners",value:function(){return Dce.call(this)}},{key:"disableEventListeners",value:function(){return Tce.call(this)}}]),e}();Ed.Utils=(typeof window<"u"?window:global).PopperUtils;Ed.placements=x9;Ed.Defaults=Hce;var Gce=["innerHTML","ownerDocument","style","attributes","nodeValue"],Yce=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Zce=["bigint","boolean","null","number","string","symbol","undefined"];function pg(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Xce(t))return t}function Fs(e){return function(t){return pg(t)===e}}function Xce(e){return Yce.includes(e)}function Vc(e){return function(t){return typeof t===e}}function Jce(e){return Zce.includes(e)}function je(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(je.array(e))return"Array";if(je.plainFunction(e))return"Function";var t=pg(e);return t||"Object"}je.array=Array.isArray;je.arrayOf=function(e,t){return!je.array(e)&&!je.function(t)?!1:e.every(function(n){return t(n)})};je.asyncGeneratorFunction=function(e){return pg(e)==="AsyncGeneratorFunction"};je.asyncFunction=Fs("AsyncFunction");je.bigint=Vc("bigint");je.boolean=function(e){return e===!0||e===!1};je.date=Fs("Date");je.defined=function(e){return!je.undefined(e)};je.domElement=function(e){return je.object(e)&&!je.plainObject(e)&&e.nodeType===1&&je.string(e.nodeName)&&Gce.every(function(t){return t in e})};je.empty=function(e){return je.string(e)&&e.length===0||je.array(e)&&e.length===0||je.object(e)&&!je.map(e)&&!je.set(e)&&Object.keys(e).length===0||je.set(e)&&e.size===0||je.map(e)&&e.size===0};je.error=Fs("Error");je.function=Vc("function");je.generator=function(e){return je.iterable(e)&&je.function(e.next)&&je.function(e.throw)};je.generatorFunction=Fs("GeneratorFunction");je.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};je.iterable=function(e){return!je.nullOrUndefined(e)&&je.function(e[Symbol.iterator])};je.map=Fs("Map");je.nan=function(e){return Number.isNaN(e)};je.null=function(e){return e===null};je.nullOrUndefined=function(e){return je.null(e)||je.undefined(e)};je.number=function(e){return Vc("number")(e)&&!je.nan(e)};je.numericString=function(e){return je.string(e)&&e.length>0&&!Number.isNaN(Number(e))};je.object=function(e){return!je.nullOrUndefined(e)&&(je.function(e)||typeof e=="object")};je.oneOf=function(e,t){return je.array(e)?e.indexOf(t)>-1:!1};je.plainFunction=Fs("Function");je.plainObject=function(e){if(pg(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};je.primitive=function(e){return je.null(e)||Jce(typeof e)};je.promise=Fs("Promise");je.propertyOf=function(e,t,n){if(!je.object(e)||!t)return!1;var r=e[t];return je.function(n)?n(r):je.defined(r)};je.regexp=Fs("RegExp");je.set=Fs("Set");je.string=Vc("string");je.symbol=Vc("symbol");je.undefined=Vc("undefined");je.weakMap=Fs("WeakMap");je.weakSet=Fs("WeakSet");function w9(e){return function(t){return typeof t===e}}var Qce=w9("function"),efe=function(e){return e===null},lP=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},cP=function(e){return!tfe(e)&&!efe(e)&&(Qce(e)||typeof e=="object")},tfe=w9("undefined"),L4=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 nfe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!ui(e[r],t[r]))return!1;return!0}function rfe(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 ife(e,t){var n,r,i,s;if(e.size!==t.size)return!1;try{for(var a=L4(e.entries()),o=a.next();!o.done;o=a.next()){var l=o.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var d=L4(e.entries()),h=d.next();!h.done;h=d.next()){var l=h.value;if(!ui(l[1],t.get(l[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}return!0}function sfe(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=L4(e.entries()),s=i.next();!s.done;s=i.next()){var a=s.value;if(!t.has(a[0]))return!1}}catch(o){n={error:o}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function ui(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 nfe(e,t);if(e instanceof Map&&t instanceof Map)return ife(e,t);if(e instanceof Set&&t instanceof Set)return sfe(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return rfe(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();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 s=n[i];if(!(s==="_owner"&&e.$$typeof)&&!ui(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function afe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return je.string(n)||je.array(n)||je.plainObject(n)})}function ofe(e,t,n){return C9(e,t)?[e,t].every(je.array)?!e.some(mP(n))&&t.some(mP(n)):[e,t].every(je.plainObject)?!Object.entries(e).some(pP(n))&&Object.entries(t).some(pP(n)):t===n:!1}function fP(e,t,n){var r=n.actual,i=n.key,s=n.previous,a=n.type,o=ra(e,i),l=ra(t,i),d=[o,l].every(je.number)&&(a==="increased"?o<l:o>l);return je.undefined(r)||(d=d&&l===r),je.undefined(s)||(d=d&&o===s),d}function dP(e,t,n){var r=n.key,i=n.type,s=n.value,a=ra(e,r),o=ra(t,r),l=i==="added"?a:o,d=i==="added"?o:a;if(!je.nullOrUndefined(s)){if(je.defined(l)){if(je.array(l)||je.plainObject(l))return ofe(l,d,s)}else return ui(d,s);return!1}return[a,o].every(je.array)?!d.every(mx(l)):[a,o].every(je.plainObject)?ufe(Object.keys(l),Object.keys(d)):![a,o].every(function(h){return je.primitive(h)&&je.defined(h)})&&(i==="added"?!je.defined(a)&&je.defined(o):je.defined(a)&&!je.defined(o))}function hP(e,t,n){var r=n===void 0?{}:n,i=r.key,s=ra(e,i),a=ra(t,i);if(!C9(s,a))throw new TypeError("Inputs have different types");if(!afe(s,a))throw new TypeError("Inputs don't have length");return[s,a].every(je.plainObject)&&(s=Object.keys(s),a=Object.keys(a)),[s,a]}function pP(e){return function(t){var n=t[0],r=t[1];return je.array(e)?ui(e,r)||e.some(function(i){return ui(i,r)||je.array(r)&&mx(r)(i)}):je.plainObject(e)&&e[n]?!!e[n]&&ui(e[n],r):ui(e,r)}}function ufe(e,t){return t.some(function(n){return!e.includes(n)})}function mP(e){return function(t){return je.array(e)?e.some(function(n){return ui(n,t)||je.array(t)&&mx(t)(n)}):ui(e,t)}}function Af(e,t){return je.array(e)?e.some(function(n){return ui(n,t)}):ui(e,t)}function mx(e){return function(t){return e.some(function(n){return ui(n,t)})}}function C9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(je.array)||e.every(je.number)||e.every(je.plainObject)||e.every(je.string)}function ra(e,t){if(je.plainObject(e)||je.array(e)){if(je.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return je.number(t)?e[t]:e}return e}function lfe(e,t){if([e,t].some(je.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return je.plainObject(m)||je.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return dP(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var x=ra(e,m),w=ra(t,m),S=je.defined(g),E=je.defined(b);if(S||E){var C=E?Af(b,x):!Af(g,x),A=Af(g,w);return C&&A}return[x,w].every(je.array)||[x,w].every(je.plainObject)?!ui(x,w):x!==w}catch{return!1}},i=function(m,g,b){if(!je.defined(m))return!1;try{var x=ra(e,m),w=ra(t,m),S=je.defined(b);return Af(g,x)&&(S?Af(b,w):!S)}catch{return!1}},s=function(m,g){return je.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},a=function(m,g,b){if(!je.defined(m))return!1;try{return fP(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},o=function(m){try{var g=hP(e,t,{key:m}),b=g[0],x=g[1];return!!b.length&&!x.length}catch{return!1}},l=function(m){try{var g=hP(e,t,{key:m}),b=g[0],x=g[1];return!b.length&&!!x.length}catch{return!1}},d=function(m,g,b){if(!je.defined(m))return!1;try{return fP(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return dP(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:s,decreased:a,emptied:o,filled:l,increased:d,removed:h}}function gP(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 Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(n),!0).forEach(function(r){_r(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(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 cfe(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,S9(r.key),r)}}function eh(e,t,n){return t&&cfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _r(e,t,n){return t=S9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function th(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&&B4(e,t)}function bm(e){return bm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bm(e)}function B4(e,t){return B4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},B4(e,t)}function ffe(){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 dfe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function E9(e,t){if(e==null)return{};var n=dfe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ba(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hfe(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 Ba(e)}function nh(e){var t=ffe();return function(){var r=bm(e),i;if(t){var s=bm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return hfe(this,i)}}function pfe(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 S9(e){var t=pfe(e,"string");return typeof t=="symbol"?t:String(t)}var mfe={flip:{padding:20},preventOverflow:{padding:10}},gfe="The typeValidator argument must be a function with the signature function(props, propName, componentName).",vfe="The error message is optional, but must be a string if provided.";function yfe(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function bfe(e,t){return Object.hasOwnProperty.call(e,t)}function $fe(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function xfe(e,t){if(typeof e!="function")throw new TypeError(gfe);if(t&&typeof t!="string")throw new TypeError(vfe)}function vP(e,t,n){return xfe(e,n),function(r,i,s){for(var a=arguments.length,o=new Array(a>3?a-3:0),l=3;l<a;l++)o[l-3]=arguments[l];return yfe(t,r,i,s)?bfe(r,i)?e.apply(void 0,[r,i,s].concat(o)):$fe(r,i,s):e.apply(void 0,[r,i,s].concat(o))}}var Xt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Tf=za.createPortal!==void 0;function Zs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Z1(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function tp(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,s=e.debug,a=s===void 0?!1:s,o=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){je.plainObject(l)&&l.key?o.apply(console,[l.key,l.value]):o.apply(console,[l])}):o.apply(console,[n]),console.groupEnd())}function wfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Cfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Efe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),Cfe(e,t,i)},wfe(e,t,i,r)}function yP(){}var D9=function(e){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(n,[{key:"componentDidMount",value:function(){Zs()&&(this.node||this.appendNode(),Tf||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Zs()&&(Tf||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Zs()||!this.node||(Tf||za.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,s=i.id,a=i.zIndex;this.node||(this.node=document.createElement("div"),s&&(this.node.id=s),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Zs())return null;var i=this.props,s=i.children,a=i.setRef;if(this.node||this.appendNode(),Tf)return za.createPortal(s,this.node);var o=za.unstable_renderSubtreeIntoContainer(this,s.length>1?T.createElement("div",null,s):s[0],this.node);return a(o),null}},{key:"renderReact16",value:function(){var i=this.props,s=i.hasChildren,a=i.placement,o=i.target;return s?this.renderPortal():o||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Tf?this.renderReact16():null}}]),n}(T.Component);_r(D9,"propTypes",{children:nt.oneOfType([nt.element,nt.array]),hasChildren:nt.bool,id:nt.oneOfType([nt.string,nt.number]),placement:nt.string,setRef:nt.func.isRequired,target:nt.oneOfType([nt.object,nt.string]),zIndex:nt.number});var A9=function(e){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(n,[{key:"parentStyle",get:function(){var i=this.props,s=i.placement,a=i.styles,o=a.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return s.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=o):s.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=o):s.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):s.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,s=i.placement,a=i.setArrowRef,o=i.styles,l=o.arrow,d=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,x=l.spread,w={display:h,position:b},S,E=x,C=m;return s.startsWith("top")?(S="0,0 ".concat(E/2,",").concat(C," ").concat(E,",0"),w.bottom=0,w.marginLeft=g,w.marginRight=g):s.startsWith("bottom")?(S="".concat(E,",").concat(C," ").concat(E/2,",0 0,").concat(C),w.top=0,w.marginLeft=g,w.marginRight=g):s.startsWith("left")?(C=x,E=m,S="0,0 ".concat(E,",").concat(C/2," 0,").concat(C),w.right=0,w.marginTop=g,w.marginBottom=g):s.startsWith("right")&&(C=x,E=m,S="".concat(E,",").concat(C," ").concat(E,",0 0,").concat(C/2),w.left=0,w.marginTop=g,w.marginBottom=g),T.createElement("div",{className:"__floater__arrow",style:this.parentStyle},T.createElement("span",{ref:a,style:w},T.createElement("svg",{width:E,height:C,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},T.createElement("polygon",{points:S,fill:d}))))}}]),n}(T.Component);_r(A9,"propTypes",{placement:nt.string.isRequired,setArrowRef:nt.func.isRequired,styles:nt.object.isRequired});var Sfe=["color","height","width"];function T9(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,s=n.width,a=E9(n,Sfe);return T.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},T.createElement("svg",{width:"".concat(s,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},T.createElement("g",null,T.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}))))}T9.propTypes={handleClick:nt.func.isRequired,styles:nt.object.isRequired};function P9(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,s=e.positionWrapper,a=e.showCloseButton,o=e.title,l=e.styles,d={content:T.isValidElement(t)?t:T.createElement("div",{className:"__floater__content",style:l.content},t)};return o&&(d.title=T.isValidElement(o)?o:T.createElement("div",{className:"__floater__title",style:l.title},o)),n&&(d.footer=T.isValidElement(n)?n:T.createElement("div",{className:"__floater__footer",style:l.footer},n)),(a||s)&&!je.boolean(i)&&(d.close=T.createElement(T9,{styles:l.close,handleClick:r})),T.createElement("div",{className:"__floater__container",style:l.container},d.close,d.title,d.content,d.footer)}P9.propTypes={content:nt.node.isRequired,footer:nt.node,handleClick:nt.func.isRequired,open:nt.bool,positionWrapper:nt.bool.isRequired,showCloseButton:nt.bool.isRequired,styles:nt.object.isRequired,title:nt.node};var _9=function(e){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(n,[{key:"style",get:function(){var i=this.props,s=i.disableAnimation,a=i.component,o=i.placement,l=i.hideArrow,d=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,x=h.floaterClosing,w=h.floaterOpening,S=h.floaterWithAnimation,E=h.floaterWithComponent,C={};return l||(o.startsWith("top")?C.padding="0 0 ".concat(m,"px"):o.startsWith("bottom")?C.padding="".concat(m,"px 0 0"):o.startsWith("left")?C.padding="0 ".concat(m,"px 0 0"):o.startsWith("right")&&(C.padding="0 0 0 ".concat(m,"px"))),[Xt.OPENING,Xt.OPEN].indexOf(d)!==-1&&(C=Tn(Tn({},C),w)),d===Xt.CLOSING&&(C=Tn(Tn({},C),x)),d===Xt.OPEN&&!s&&(C=Tn(Tn({},C),S)),o==="center"&&(C=Tn(Tn({},C),b)),a&&(C=Tn(Tn({},C),E)),Tn(Tn({},g),C)}},{key:"render",value:function(){var i=this.props,s=i.component,a=i.handleClick,o=i.hideArrow,l=i.setFloaterRef,d=i.status,h={},m=["__floater"];return s?T.isValidElement(s)?h.content=T.cloneElement(s,{closeFn:a}):h.content=s({closeFn:a}):h.content=T.createElement(P9,this.props),d===Xt.OPEN&&m.push("__floater__open"),o||(h.arrow=T.createElement(A9,this.props)),T.createElement("div",{ref:l,className:m.join(" "),style:this.style},T.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(T.Component);_r(_9,"propTypes",{component:nt.oneOfType([nt.func,nt.element]),content:nt.node,disableAnimation:nt.bool.isRequired,footer:nt.node,handleClick:nt.func.isRequired,hideArrow:nt.bool.isRequired,open:nt.bool,placement:nt.string.isRequired,positionWrapper:nt.bool.isRequired,setArrowRef:nt.func.isRequired,setFloaterRef:nt.func.isRequired,showCloseButton:nt.bool,status:nt.string.isRequired,styles:nt.object.isRequired,title:nt.node});var M9=function(e){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(n,[{key:"render",value:function(){var i=this.props,s=i.children,a=i.handleClick,o=i.handleMouseEnter,l=i.handleMouseLeave,d=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(s)if(T.Children.count(s)===1)if(!T.isValidElement(s))b=T.createElement("span",null,s);else{var x=je.function(s.type)?"innerRef":"ref";b=T.cloneElement(T.Children.only(s),_r({},x,d))}else b=s;return b?T.createElement("span",{ref:h,style:Tn(Tn({},g),m),onClick:a,onMouseEnter:o,onMouseLeave:l},b):null}}]),n}(T.Component);_r(M9,"propTypes",{children:nt.node,handleClick:nt.func.isRequired,handleMouseEnter:nt.func.isRequired,handleMouseLeave:nt.func.isRequired,setChildRef:nt.func.isRequired,setWrapperRef:nt.func.isRequired,style:nt.object,styles:nt.object.isRequired});var Dfe={zIndex:100};function Afe(e){var t=Cs(Dfe,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 Tfe=["arrow","flip","offset"],Pfe=["position","top","right","bottom","left"],gx=function(e){th(n,e);var t=nh(n);function n(r){var i;return Qd(this,n),i=t.call(this,r),_r(Ba(i),"setArrowRef",function(s){i.arrowRef=s}),_r(Ba(i),"setChildRef",function(s){i.childRef=s}),_r(Ba(i),"setFloaterRef",function(s){i.floaterRef=s}),_r(Ba(i),"setWrapperRef",function(s){i.wrapperRef=s}),_r(Ba(i),"handleTransitionEnd",function(){var s=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:s===Xt.OPENING?Xt.OPEN:Xt.IDLE},function(){var o=i.state.status;a(o===Xt.OPEN?"open":"close",i.props)})}),_r(Ba(i),"handleClick",function(){var s=i.props,a=s.event,o=s.open;if(!je.boolean(o)){var l=i.state,d=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&d)&&(tp({title:"click",data:[{event:a,status:h===Xt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),_r(Ba(i),"handleMouseEnter",function(){var s=i.props,a=s.event,o=s.open;if(!(je.boolean(o)||Z1())){var l=i.state.status;i.event==="hover"&&l===Xt.IDLE&&(tp({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),_r(Ba(i),"handleMouseLeave",function(){var s=i.props,a=s.event,o=s.eventDelay,l=s.open;if(!(je.boolean(l)||Z1())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(tp({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),o?[Xt.OPENING,Xt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},o*1e3)):i.toggle(Xt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Xt.INIT,statusWrapper:Xt.INIT},i._isMounted=!1,i.hasMounted=!1,Zs()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return eh(n,[{key:"componentDidMount",value:function(){if(Zs()){var i=this.state.positionWrapper,s=this.props,a=s.children,o=s.open,l=s.target;this._isMounted=!0,tp({title:"init",data:{hasChildren:!!a,hasTarget:!!l,isControlled:je.boolean(o),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&l&&je.boolean(o)}}},{key:"componentDidUpdate",value:function(i,s){if(Zs()){var a=this.props,o=a.autoOpen,l=a.open,d=a.target,h=a.wrapperOptions,m=lfe(s,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var x;je.boolean(l)&&(x=l?Xt.OPENING:Xt.CLOSING),this.toggle(x)}(i.wrapperOptions.position!==h.position||i.target!==d)&&this.changeWrapperPosition(this.props),b("status",Xt.IDLE)&&l?this.toggle(Xt.OPEN):g("status",Xt.INIT,Xt.IDLE)&&o&&this.toggle(Xt.OPEN),this.popper&&b("status",Xt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Xt.OPENING)||b("status",Xt.CLOSING))&&Efe(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Zs()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,o=this.props,l=o.disableFlip,d=o.getPopper,h=o.hideArrow,m=o.offset,g=o.placement,b=o.wrapperOptions,x=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Xt.IDLE});else if(s&&this.floaterRef){var w=this.options,S=w.arrow,E=w.flip,C=w.offset,A=E9(w,Tfe);new Ed(s,this.floaterRef,{placement:g,modifiers:Tn({arrow:Tn({enabled:!h,element:this.arrowRef},S),flip:Tn({enabled:!l,behavior:x},E),offset:Tn({offset:"0, ".concat(m,"px")},C)},A),onCreate:function(R){var K;if(i.popper=R,!((K=i.floaterRef)!==null&&K!==void 0&&K.isConnected)){i.setState({needsUpdate:!0});return}d(R,"floater"),i._isMounted&&i.setState({currentPlacement:R.placement,status:Xt.IDLE}),g!==R.placement&&setTimeout(function(){R.instance.update()},1)},onUpdate:function(R){i.popper=R;var K=i.state.currentPlacement;i._isMounted&&R.placement!==K&&i.setState({currentPlacement:R.placement})}})}if(a){var k=je.undefined(b.offset)?0:b.offset;new Ed(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(k,"px")},flip:{enabled:!1}},onCreate:function(R){i.wrapperPopper=R,i._isMounted&&i.setState({statusWrapper:Xt.IDLE}),d(R,"wrapper"),g!==R.placement&&setTimeout(function(){R.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var s;(s=i.floaterRef)!==null&&s!==void 0&&s.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var s=i.target,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!s})}},{key:"toggle",value:function(i){var s=this.state.status,a=s===Xt.OPEN?Xt.CLOSING:Xt.OPENING;je.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||Zs()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,s=i.disableHoverToClick,a=i.event;return a==="hover"&&Z1()&&!s?"click":a}},{key:"options",get:function(){var i=this.props.options;return Cs(mfe,i||{})}},{key:"styles",get:function(){var i=this,s=this.state,a=s.status,o=s.positionWrapper,l=s.statusWrapper,d=this.props.styles,h=Cs(Afe(d),d);if(o){var m;[Xt.IDLE].indexOf(a)===-1||[Xt.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Tn(Tn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},o||(Pfe.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Tn(Tn({},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(!Zs())return null;var i=this.props.target;return i?je.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,s=i.currentPlacement,a=i.positionWrapper,o=i.status,l=this.props,d=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,x=l.hideArrow,w=l.id,S=l.open,E=l.showCloseButton,C=l.style,A=l.target,k=l.title,M=T.createElement(M9,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:C,styles:this.styles.wrapper},d),R={};return a?R.wrapperInPortal=M:R.wrapperAsChildren=M,T.createElement("span",null,T.createElement(D9,{hasChildren:!!d,id:w,placement:s,setRef:this.setFloaterRef,target:A,zIndex:this.styles.options.zIndex},T.createElement(_9,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:x||s==="center",open:S,placement:s,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:E,status:o,styles:this.styles,title:k}),R.wrapperInPortal),R.wrapperAsChildren)}}]),n}(T.Component);_r(gx,"propTypes",{autoOpen:nt.bool,callback:nt.func,children:nt.node,component:vP(nt.oneOfType([nt.func,nt.element]),function(e){return!e.content}),content:vP(nt.node,function(e){return!e.component}),debug:nt.bool,disableAnimation:nt.bool,disableFlip:nt.bool,disableHoverToClick:nt.bool,event:nt.oneOf(["hover","click"]),eventDelay:nt.number,footer:nt.node,getPopper:nt.func,hideArrow:nt.bool,id:nt.oneOfType([nt.string,nt.number]),offset:nt.number,open:nt.bool,options:nt.object,placement:nt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:nt.bool,style:nt.object,styles:nt.object,target:nt.oneOfType([nt.object,nt.string]),title:nt.node,wrapperOptions:nt.shape({offset:nt.number,placement:nt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:nt.bool})});_r(gx,"defaultProps",{autoOpen:!1,callback:yP,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:yP,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var _fe=Object.defineProperty,Mfe=(e,t,n)=>t in e?_fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pt=(e,t,n)=>Mfe(e,typeof t!="symbol"?t+"":t,n),an={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Hi={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"},Rt={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Kt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function Eo(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function F9(e){return e?e.getBoundingClientRect():null}function Ffe(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((s,a)=>s-a),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 Ua(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 Rfe(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Sd(e,t,n){if(!e)return Tu();const r=a9(e);if(r){if(r.isSameNode(Tu()))return n?document:Tu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Tu()}return r}function rh(e,t){if(!e)return!1;const n=Sd(e,t);return n?!n.isSameNode(Tu()):!1}function kfe(e){return e.offsetParent!==document.body}function bc(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Rfe(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?bc(e.parentNode,t):!1}function Ofe(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 Ife(e,t,n){var r,i,s;const a=F9(e),o=Sd(e,n),l=rh(e,n),d=bc(e);let h=0,m=(r=a==null?void 0:a.top)!=null?r:0;if(l&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(s=o==null?void 0:o.scrollTop)!=null?s:0;m=g-b}else o instanceof HTMLElement&&(h=o.scrollTop,!l&&!bc(e)&&(m+=h),o.isSameNode(Tu())||(m+=Tu().scrollTop));return Math.floor(m-t)}function Lfe(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:s=0}=(r=a9(e))!=null?r:{};let a=e.getBoundingClientRect().top+s;i&&(rh(e,n)||kfe(e))&&(a-=i);const o=Math.floor(a-t);return o<0?0:o}function Tu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Bfe(e,t){const{duration:n,element:r}=t;return new Promise((i,s)=>{const{scrollTop:a}=r,o=e>a?e-a:a-e;rce.top(r,e,{duration:o<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?s(l):i())})}var Pf=za.createPortal!==void 0;function R9(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 Pp(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Xs(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let s=nP(e);if(s)(s.includes("{step}")||s.includes("{steps}"))&&r&&i&&(s=s.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(T.isValidElement(e)&&!Object.values(e.props).length&&Pp(e.type)==="function"){const a=e.type({});s=Xs(a,t)}else s=nP(n);return s}function Vfe(e,t){return!dt.plainObject(e)||!dt.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Nfe(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,s,a,o)=>s+s+a+a+o+o),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 bP(e){return e.disableBeacon||e.placement==="center"}function $P(){return!["chrome","safari","firefox","opera"].includes(R9())}function Oo({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(s=>{dt.plainObject(s)&&s.key?i.apply(console,[s.key,s.value]):i.apply(console,[s])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function jfe(e){return Object.keys(e)}function k9(e,...t){if(!dt.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function Kfe(e,...t){if(!dt.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function V4(e,t,n){const r=s=>s.replace("{step}",String(t)).replace("{steps}",String(n));if(Pp(e)==="string")return r(e);if(!T.isValidElement(e))return e;const{children:i}=e.props;if(Pp(i)==="string"&&i.includes("{step}"))return T.cloneElement(e,{children:r(i)});if(Array.isArray(i))return T.cloneElement(e,{children:i.map(s=>typeof s=="string"?r(s):V4(s,t,n))});if(Pp(e.type)==="function"&&!Object.values(e.props).length){const s=e.type({});return V4(s,t,n)}return e}function Ufe(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:s,target:a}=e;return!s.disableScrolling&&(!t||i||n===Rt.TOOLTIP)&&s.placement!=="center"&&(!s.isFixed||!bc(a))&&r!==n&&[Rt.BEACON,Rt.TOOLTIP].includes(n)}var zfe={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},O9={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},qfe={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:O9,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Wfe={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:[]},Hfe={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},_f={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},xP={borderRadius:4,position:"absolute"};function Gfe(e,t){var n,r,i,s,a;const{floaterProps:o,styles:l}=e,d=Cs((n=t.floaterProps)!=null?n:{},o??{}),h=Cs(l??{},(r=t.styles)!=null?r:{}),m=Cs(Hfe,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},w={beacon:{..._f,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(${Nfe(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:{..._f,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{..._f,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{..._f,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{..._f,color:m.textColor,fontSize:14},overlay:{...x,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...x},overlayLegacyCenter:{...x,backgroundColor:m.overlayColor},spotlight:{...xP,backgroundColor:"gray"},spotlightLegacy:{...xP,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(s=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:s.color)!=null?a:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return Cs(w,h)}function Yfe(e){return Kfe(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Fl(e,t){var n,r,i,s,a,o;const l=t??{},d=Cs.all([qfe,Yfe(e),l],{isMergeableObject:dt.plainObject}),h=Gfe(e,d),m=rh(Ua(d.target),d.disableScrollParentFix),g=Cs.all([zfe,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=Cs((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(a=(s=e.spotlightPadding)!=null?s:d.spotlightPadding)!=null?a:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:Cs.all([O9,(o=e.locale)!=null?o:{},d.locale||{}]),floaterProps:g,styles:k9(h,"floaterStyles")}}function I9(e,t=!1){return dt.plainObject(e)?e.target?!0:(Oo({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Oo({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function wP(e,t=!1){return dt.array(e)?e.every(n=>I9(n,t)):(Oo({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var L9={action:"init",controlled:!1,index:0,lifecycle:Rt.INIT,origin:null,size:0,status:Kt.IDLE},CP=jfe(k9(L9,"controlled","size")),Zfe=class{constructor(e){pt(this,"beaconPopper"),pt(this,"tooltipPopper"),pt(this,"data",new Map),pt(this,"listener"),pt(this,"store",new Map),pt(this,"addListener",i=>{this.listener=i}),pt(this,"setSteps",i=>{const{size:s,status:a}=this.getState(),o={size:i.length,status:a};this.data.set("steps",i),a===Kt.WAITING&&!s&&i.length&&(o.status=Kt.RUNNING),this.setState(o)}),pt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),pt(this,"setPopper",(i,s)=>{i==="beacon"?this.beaconPopper=s:this.tooltipPopper=s}),pt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),pt(this,"close",(i=null)=>{const{index:s,status:a}=this.getState();a===Kt.RUNNING&&this.setState({...this.getNextState({action:an.CLOSE,index:s+1,origin:i})})}),pt(this,"go",i=>{const{controlled:s,status:a}=this.getState();if(s||a!==Kt.RUNNING)return;const o=this.getSteps()[i];this.setState({...this.getNextState({action:an.GO,index:i}),status:o?a:Kt.FINISHED})}),pt(this,"info",()=>this.getState()),pt(this,"next",()=>{const{index:i,status:s}=this.getState();s===Kt.RUNNING&&this.setState(this.getNextState({action:an.NEXT,index:i+1}))}),pt(this,"open",()=>{const{status:i}=this.getState();i===Kt.RUNNING&&this.setState({...this.getNextState({action:an.UPDATE,lifecycle:Rt.TOOLTIP})})}),pt(this,"prev",()=>{const{index:i,status:s}=this.getState();s===Kt.RUNNING&&this.setState({...this.getNextState({action:an.PREV,index:i-1})})}),pt(this,"reset",(i=!1)=>{const{controlled:s}=this.getState();s||this.setState({...this.getNextState({action:an.RESET,index:0}),status:i?Kt.RUNNING:Kt.READY})}),pt(this,"skip",()=>{const{status:i}=this.getState();i===Kt.RUNNING&&this.setState({action:an.SKIP,lifecycle:Rt.INIT,status:Kt.SKIPPED})}),pt(this,"start",i=>{const{index:s,size:a}=this.getState();this.setState({...this.getNextState({action:an.START,index:dt.number(i)?i:s},!0),status:a?Kt.RUNNING:Kt.WAITING})}),pt(this,"stop",(i=!1)=>{const{index:s,status:a}=this.getState();[Kt.FINISHED,Kt.SKIPPED].includes(a)||this.setState({...this.getNextState({action:an.STOP,index:s+(i?1:0)}),status:Kt.PAUSED})}),pt(this,"update",i=>{var s,a;if(!Vfe(i,CP))throw new Error(`State is not valid. Valid keys: ${CP.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(s=i.action)!=null?s:an.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:an.INIT,controlled:dt.number(n),continuous:t,index:dt.number(n)?n:0,lifecycle:Rt.INIT,origin:null,status:r.length?Kt.READY:Kt.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")||""}:{...L9}}getNextState(e,t=!1){var n,r,i,s,a;const{action:o,controlled:l,index:d,size:h,status:m}=this.getState(),g=dt.number(e.index)?e.index:d,b=l&&!t?d:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:o,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:Rt.INIT,origin:(i=e.origin)!=null?i:null,size:(s=e.size)!=null?s:h,status:b===h?Kt.FINISHED:(a=e.status)!=null?a: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:s,origin:a=null,size:o,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",s),this.store.set("origin",a),this.store.set("size",o),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 Xfe(e){return new Zfe(e)}function Jfe({styles:e}){return He.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var Qfe=Jfe,ede=class extends He.Component{constructor(){super(...arguments),pt(this,"isActive",!1),pt(this,"resizeTimeout"),pt(this,"scrollTimeout"),pt(this,"scrollParent"),pt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),pt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Rt.INIT,Rt.BEACON,Rt.COMPLETE,Rt.ERROR];return t||(e?r.includes(n):n!==Rt.TOOLTIP)}),pt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:s,width:a}=this.spotlightStyles,o=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,d=o>=s&&o<=s+n,m=l>=r&&l<=r+a&&d;m!==t&&this.updateState({mouseOverSpotlight:m})}),pt(this,"handleScroll",()=>{const{target:e}=this.props,t=Ua(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 bc(t,"sticky")&&this.updateState({})}),pt(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=Ua(r);this.scrollParent=Sd(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&rh(i,!0)&&Oo({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:s}=this.props,{changed:a}=gm(e,this.props);if(a("target")||a("disableScrollParentFix")){const o=Ua(s);this.scrollParent=Sd(o??document.body,n,!0)}a("lifecycle",Rt.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:o}=this.state;o||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===Rt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Rt.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 $P()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Ffe(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:s,spotlightPadding:a=0,styles:o,target:l}=this.props,d=Ua(l),h=F9(d),m=bc(d),g=Ife(d,a,i);return{...$P()?o.spotlightLegacy:o.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+a*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:s?"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)+a*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:s}=this;if(r())return null;let a=n!=="center"&&e&&He.createElement(Qfe,{styles:s});if(R9()==="safari"){const{mixBlendMode:o,zIndex:l,...d}=i;a=He.createElement("div",{style:{...d}},a),delete i.backgroundColor}return He.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},tde=class extends He.Component{constructor(){super(...arguments),pt(this,"node",null)}componentDidMount(){const{id:e}=this.props;Eo()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Pf||this.renderReact15())}componentDidUpdate(){Eo()&&(Pf||this.renderReact15())}componentWillUnmount(){!Eo()||!this.node||(Pf||rp.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Eo())return;const{children:e}=this.props;this.node&&rp.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Eo()||!Pf)return null;const{children:e}=this.props;return this.node?rp.createPortal(e,this.node):null}render(){return Pf?this.renderReact16():null}},nde=class{constructor(e,t){if(pt(this,"element"),pt(this,"options"),pt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),pt(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)}),pt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),pt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),pt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let s=document.activeElement?r.indexOf(document.activeElement):0;s===-1||!i&&s+1===r.length?s=0:i&&s===0?s=r.length-1:s+=i?-1:1,r[s].focus()}),pt(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"}),pt(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}),pt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),pt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),pt(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()}},rde=class extends He.Component{constructor(e){if(super(e),pt(this,"beacon",null),pt(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"&&(dt.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{dt.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:s,size:a,step:o,styles:l}=this.props,d=Xs(i.open),h={"aria-label":d,onClick:s,onMouseEnter:s,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=He.createElement(g,{continuous:t,index:n,isLastStep:r,size:a,step:o,...h})}else m=He.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},He.createElement("span",{style:l.beaconInner}),He.createElement("span",{style:l.beaconOuter}));return m}};function ide({styles:e,...t}){const{color:n,height:r,width:i,...s}=e;return T.createElement("button",{style:s,type:"button",...t},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"},T.createElement("g",null,T.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 sde=ide;function ade(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:s,skipProps:a,step:o,tooltipProps:l}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:x,title:w}=o,S={};return S.primary=He.createElement("button",{"data-test-id":"button-primary",style:x.buttonNext,type:"button",...s}),b&&!i&&(S.skip=He.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:x.buttonSkip,type:"button",...a})),!h&&r>0&&(S.back=He.createElement("button",{"data-test-id":"button-back",style:x.buttonBack,type:"button",...t})),S.close=!m&&He.createElement(sde,{"data-test-id":"button-close",styles:x.buttonClose,...n}),He.createElement("div",{key:"JoyrideTooltip","aria-label":Xs(w??d),className:"react-joyride__tooltip",style:x.tooltip,...l},He.createElement("div",{style:x.tooltipContainer},w&&He.createElement("h1",{"aria-label":Xs(w),style:x.tooltipTitle},w),He.createElement("div",{style:x.tooltipContent},d)),!g&&He.createElement("div",{style:x.tooltipFooter},He.createElement("div",{style:x.tooltipFooterSpacer},S.skip),S.back,S.primary),S.close)}var ode=ade,ude=class extends He.Component{constructor(){super(...arguments),pt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),pt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),pt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),pt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),pt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:s}=this.props,{back:a,close:o,last:l,next:d,nextLabelWithProgress:h,skip:m}=s.locale,g=Xs(a),b=Xs(o),x=Xs(l),w=Xs(d),S=Xs(m);let E=o,C=b;if(e){if(E=d,C=w,s.showProgress&&!n){const A=Xs(h,{step:t+1,steps:i});E=V4(h,t+1,i),C=A}n&&(E=l,C=x)}return{backProps:{"aria-label":g,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:o,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":C,children:E,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},skipProps:{"aria-label":S,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:S},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:s}=this.props,{beaconComponent:a,tooltipComponent:o,...l}=s;let d;if(o){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=o;d=He.createElement(m,{...h})}else d=He.createElement(ode,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:s});return d}},lde=class extends He.Component{constructor(){super(...arguments),pt(this,"scope",null),pt(this,"tooltip",null),pt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Rt.TOOLTIP})}),pt(this,"setTooltipRef",e=>{this.tooltip=e}),pt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:s,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||s.placement==="center")&&i===Rt.INIT&&a.update({action:r,lifecycle:Rt.READY}),(n=s.floaterProps)!=null&&n.getPopper&&s.floaterProps.getPopper(e,t)}),pt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:s}=this.props;return He.createElement(ude,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:s,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;Oo({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:s,debug:a,helpers:o,index:l,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:x,changedFrom:w}=gm(e,this.props),S=o.info(),E=i&&n!==an.CLOSE&&(l>0||n===an.PREV),C=x("action")||x("index")||x("lifecycle")||x("status"),A=w("lifecycle",[Rt.TOOLTIP,Rt.INIT],Rt.INIT),k=x("action",[an.NEXT,an.PREV,an.SKIP,an.CLOSE]),M=s&&l===e.index;if(k&&(A||M)&&r({...S,index:e.index,lifecycle:Rt.COMPLETE,step:e.step,type:Hi.STEP_AFTER}),g.placement==="center"&&m===Kt.RUNNING&&x("index")&&n!==an.START&&d===Rt.INIT&&b.update({lifecycle:Rt.READY}),C){const R=Ua(g.target),K=!!R;K&&Ofe(R)?(w("status",Kt.READY,Kt.RUNNING)||w("lifecycle",Rt.INIT,Rt.READY))&&r({...S,step:g,type:Hi.STEP_BEFORE}):(console.warn(K?"Target not visible":"Target not mounted",g),r({...S,type:Hi.TARGET_NOT_FOUND,step:g}),s||b.update({index:l+(n===an.PREV?-1:1)}))}w("lifecycle",Rt.INIT,Rt.READY)&&b.update({lifecycle:bP(g)||E?Rt.TOOLTIP:Rt.BEACON}),x("index")&&Oo({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),x("lifecycle",Rt.BEACON)&&r({...S,step:g,type:Hi.BEACON}),x("lifecycle",Rt.TOOLTIP)&&(r({...S,step:g,type:Hi.TOOLTIP}),h&&this.tooltip&&(this.scope=new nde(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),w("lifecycle",[Rt.TOOLTIP,Rt.INIT],Rt.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 bP(t)||e===Rt.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:s,step:a}=this.props,o=Ua(a.target);return!I9(a)||!dt.domElement(o)?null:He.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},He.createElement(gx,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},He.createElement(rde,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===s,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:s,step:a,styles:a.styles})))}},B9=class extends He.Component{constructor(e){super(e),pt(this,"helpers"),pt(this,"store"),pt(this,"callback",a=>{const{callback:o}=this.props;dt.function(o)&&o(a)}),pt(this,"handleKeyboard",a=>{const{index:o,lifecycle:l}=this.state,{steps:d}=this.props,h=d[o];l===Rt.TOOLTIP&&a.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),pt(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:o}=this.props;Fl(this.props,o[a]).disableOverlayClose||this.helpers.close("overlay")}),pt(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Xfe({...e,controlled:r&&dt.number(i)}),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;Oo({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),s(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!Eo())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;wP(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Eo())return;const{action:n,controlled:r,index:i,status:s}=this.state,{debug:a,run:o,stepIndex:l,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:x,stop:w,update:S}=this.store,{changed:E}=gm(e,this.props),{changed:C,changedFrom:A}=gm(t,this.state),k=Fl(this.props,d[i]),M=!Wr(m,d),R=dt.number(l)&&E("stepIndex"),K=Ua(k.target);if(M&&(wP(d,a)?b(d):console.warn("Steps are not valid",d)),E("run")&&(o?x(l):w()),R){let ae=dt.number(h)&&h<l?an.NEXT:an.PREV;n===an.STOP&&(ae=an.START),[Kt.FINISHED,Kt.SKIPPED].includes(s)||S({action:n===an.CLOSE?an.CLOSE:ae,index:l,lifecycle:Rt.INIT})}!r&&s===Kt.RUNNING&&i===0&&!K&&(this.store.update({index:i+1}),this.callback({...this.state,type:Hi.TARGET_NOT_FOUND,step:k}));const H={...this.state,index:i,step:k};if(C("action",[an.NEXT,an.PREV,an.SKIP,an.CLOSE])&&C("status",Kt.PAUSED)){const ae=Fl(this.props,d[t.index]);this.callback({...H,index:t.index,lifecycle:Rt.COMPLETE,step:ae,type:Hi.STEP_AFTER})}if(C("status",[Kt.FINISHED,Kt.SKIPPED])){const ae=Fl(this.props,d[t.index]);r||this.callback({...H,index:t.index,lifecycle:Rt.COMPLETE,step:ae,type:Hi.STEP_AFTER}),this.callback({...H,type:Hi.TOUR_END,step:ae,index:t.index}),g()}else A("status",[Kt.IDLE,Kt.READY],Kt.RUNNING)?this.callback({...H,type:Hi.TOUR_START}):(C("status")||C("action",an.RESET))&&this.callback({...H,type:Hi.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:s=!1,scrollDuration:a,scrollOffset:o=20,scrollToFirstStep:l=!1,steps:d}=this.props,h=Fl(this.props,d[t]),m=Ua(h.target),g=Ufe({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Kt.RUNNING&&g){const b=rh(m,s),x=Sd(m,s);let w=Math.floor(Lfe(m,o,s))||0;Oo({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const S=this.store.getPopper("beacon"),E=this.store.getPopper("tooltip");if(n===Rt.BEACON&&S){const{offsets:C,placement:A}=S;!["bottom"].includes(A)&&!b&&(w=Math.floor(C.popper.top-o))}else if(n===Rt.TOOLTIP&&E){const{flipped:C,offsets:A,placement:k}=E;["top","right","left"].includes(k)&&!C&&!b?w=Math.floor(A.popper.top-o):w-=h.spotlightPadding}w=w>=0?w:0,r===Kt.RUNNING&&Bfe(w,{element:x,duration:a}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!Eo())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:s,scrollToFirstStep:a=!1,steps:o}=this.props,l=n===Kt.RUNNING,d={};if(l&&o[e]){const h=Fl(this.props,o[e]);d.step=He.createElement(lde,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:s,shouldScroll:!h.disableScrolling&&(e!==0||a),step:h,store:this.store}),d.overlay=He.createElement(tde,{id:"react-joyride-portal"},He.createElement(ede,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return He.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};pt(B9,"defaultProps",Wfe);var cde=B9;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=dR;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=Q5;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Od;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=r_;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=nr;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=jG;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=cR;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Rr;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=jH;exports.$293f70390ea03370$export$497855f14858aa34=OG;exports.$32489daedd52963e$export$1315d136e6f7581=HG;exports.$337b884510726a0d$export$c6fdb837b070b4ff=vG;exports.$36a0ac60f04457c5$export$136073280381448e=MH;exports.$3c0fc76039f1c516$export$60e84778edff6d26=QR;exports.$40df3f8667284809$export$d55e7ee900f34e93=XG;exports.$46a4342aab3d8076$export$87e0539f600c24e5=TH;exports.$47b897dc8cdb026b$export$8d15029008292ae=qH;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=UH;exports.$6057a3d2a53a12fd$export$42df105a73306d51=UG;exports.$64244302c3013299$export$dd0bbc9b26defe37=XW;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=fH;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=ZG;exports.$93c38a5e28be6249$export$e50a61c1de9f574=gY;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=AH;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=JG;exports.$a916eb452884faea$export$b7a616150fdb9f44=cH;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=iY;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=cY;exports.$bb77f239b46e8c72$export$3274cf84b703fff=__;exports.$bcca50147b47f54d$export$56b2c08e277f365=zH;exports.$c132121280ec012d$export$50eacbbf140a3141=AG;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=PG;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=VG;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=PH;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=vY;exports.$f2f8a6077418541e$export$542a6fd13ac93354=gG;exports.$fae977aafc393c5c$export$588937bcd60ade55=DW;exports.$fae977aafc393c5c$export$6b862160d295c8e=SW;exports.ACTIONS=an;exports.AdvancedImage=XJ;exports.CSVLink=Dle;exports.Cloudinary=WQ;exports.Controller=Cz;exports.EVENTS=Hi;exports.FormProvider=xz;exports.Je=LK;exports.LazyMotion=Dse;exports.Lottie=bse;exports.M=xs;exports.R=Zu;exports.ReorderGroup=ise;exports.ReorderItem=use;exports.STATUS=Kt;exports.Xe=BK;exports._=yz;exports.autoUpdate=zU;exports.components_default=cde;exports.ct=NK;exports.dayjs=TZ;exports.dayjs_minExports=ok;exports.domAnimation=ole;exports.ee=ck;exports.flexRender=_le;exports.flip=QU;exports.isEqual=SZ;exports.isNil=Ple;exports.isNumber=MZ;exports.lazyload=zJ;exports.localizedFormat=dse;exports.lodashExports=c5;exports.m=mae;exports.nt=q4;exports.o=mse;exports.offset=XU;exports.placeholder=GJ;exports.prismExports=xee;exports.q=j3;exports.shift=JU;exports.some=bee;exports.st=WP;exports.transform=Vle;exports.useController=b5;exports.useFieldArray=Lz;exports.useFloating=fz;exports.useFloating$1=a5;exports.useFocus=dz;exports.useForm=Bz;exports.useFormContext=Pd;exports.useHover=lz;exports.useInteractions=hz;exports.useRole=mz;exports.useWatch=y5;